PCRepair: A Context-Aware Template-Based Approach for Automated Program Repair

Automated Program Repair (APR) is increasingly vital for managing the complexity of modern software systems. However, current APR techniques suffer from inefficiently selecting repair components, resulting in suboptimal patches. To address these limitations, we propose PCRepair, a context-aware template-based methodology for automated software fault repair. This approach integrates predefined repair templates with context-aware analysis to improve repair accuracy and efficiency. PCRepair first localizes suspicious statements via the Ochiai technique, then matches their contextual patterns with relevant templates. This strategy narrows the search space and generates semantically relevant candidate patches. We prioritize these patches using a weighted fusion similarity metric and sequentially validate them against existing test cases. Evaluations on the Defects4J benchmark show that PCRepair successfully repaired 38 defects, demonstrating competitive performance compared to existing methods, particularly in terms of repair efficiency, with a 9.62% success rate and an average repair time of fewer than 30 min per defect.

Authors

Institutions

Publication Details

Journal
International Journal of Software Engineering and Knowledge Engineering
Published
2025-10-08
DOI
https://doi.org/10.1142/s0218194025500731
Primary Topic
Molecular Biology Techniques and Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

PCRepair: A Context-Aware Template-Based Approach for Automated Program Repair

Yonghe Chu, Heling Cao, Miaolei Deng, Weihao Zhang et al.
International Journal of Software Engineering and Knowledge Engineering
Molecular Biology Techniques and Applications
article

PCRepair: A Context-Aware Template-Based Approach for Automated Program Repair

Yonghe Chu, Heling Cao, Miaolei Deng, Weihao Zhang, Zhenghao He, Yun Wang
article en

Abstract

Automated Program Repair (APR) is increasingly vital for managing the complexity of modern software systems. However, current APR techniques suffer from inefficiently selecting repair components, resulting in suboptimal patches. To address these limitations, we propose PCRepair, a context-aware template-based methodology for automated software fault repair. This approach integrates predefined repair templates with context-aware analysis to improve repair accuracy and efficiency. PCRepair first localizes suspicious statements via the Ochiai technique, then matches their contextual patterns with relevant templates. This strategy narrows the search space and generates semantically relevant candidate patches. We prioritize these patches using a weighted fusion similarity metric and sequentially validate them against existing test cases. Evaluations on the Defects4J benchmark show that PCRepair successfully repaired 38 defects, demonstrating competitive performance compared to existing methods, particularly in terms of repair efficiency, with a 9.62% success rate and an average repair time of fewer than 30 min per defect.

International Journal of Software Engineering and Knowledge EngineeringVol. 36(03)
Henan University of Technology (CN), Henan University of Engineering (CN)
Openalex Percentile: Top 75%
Molecular Biology Techniques and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

PCRepair: A Context-Aware Template-Based Approach for Automated Program Repair — Yonghe Chu, Heling Cao, et al. · International Journal of Software Engineering and Knowledge Engineering (2025) | TGRS Research Map | TGRS