{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,1,9]],"date-time":"2026-01-09T10:54:21Z","timestamp":1767956061782,"version":"3.49.0"},"reference-count":51,"publisher":"World Scientific Pub Co Pte Ltd","issue":"03","funder":[{"name":"the Innovative Funds Plan of Henan University of Technology","award":["2022ZKCJ14"],"award-info":[{"award-number":["2022ZKCJ14"]}]},{"name":"Key Laboratory of Grain Information Processing and Control(Henan University of Technology), Ministry of Education","award":["KFJJ2022006"],"award-info":[{"award-number":["KFJJ2022006"]}]},{"DOI":"10.13039\/501100001809","name":"Natural Science Foundation of China","doi-asserted-by":"crossref","award":[". 62276091"],"award-info":[{"award-number":[". 62276091"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"crossref"}]},{"DOI":"10.13039\/501100001809","name":"Natural Science Foundation of China","doi-asserted-by":"crossref","award":["62206087"],"award-info":[{"award-number":["62206087"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"crossref"}]},{"DOI":"10.13039\/501100001809","name":"Natural Science Foundation of China","doi-asserted-by":"crossref","award":["61602154"],"award-info":[{"award-number":["61602154"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"crossref"}]},{"name":"Cultivation Programme for Young Backbone Teachers in Henan University of Technology","award":["21420158"],"award-info":[{"award-number":["21420158"]}]},{"name":"General Program of Henan Provincial Natural Science Foundation","award":["242300420279"],"award-info":[{"award-number":["242300420279"]}]},{"name":"National Natural Science Foundation of China Cultivation Project in Henan University of Technology","award":["31490139"],"award-info":[{"award-number":["31490139"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Int. J. Soft. Eng. Knowl. Eng."],"published-print":{"date-parts":[[2026,3,15]]},"abstract":"<jats:p>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.<\/jats:p>","DOI":"10.1142\/s0218194025500731","type":"journal-article","created":{"date-parts":[[2025,10,8]],"date-time":"2025-10-08T10:01:35Z","timestamp":1759917695000},"page":"431-454","source":"Crossref","is-referenced-by-count":0,"title":["PCRepair: A Context-Aware Template-Based Approach for Automated Program Repair"],"prefix":"10.1142","volume":"36","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-0610-9061","authenticated-orcid":false,"given":"Heling","family":"Cao","sequence":"first","affiliation":[{"name":"Key Laboratory of Grain Information Processing and Control, (Henan University of Technology), Ministry of Education, Zhengzhou 450001, P.\u00a0R.\u00a0China"},{"name":"Henan Key Laboratory of Grain Photoelectric Detection and Control, Henan University of Technology Zhengzhou 450001, P.\u00a0R.\u00a0China"},{"name":"College of Information Science and Engineering, Henan University of Technology, Zhengzhou 450001, P.\u00a0R.\u00a0China"},{"name":"Henan International Joint Laboratory of Grain Information Processing, Zhengzhou 450001, P.\u00a0R.\u00a0China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0009-0000-6793-8173","authenticated-orcid":false,"given":"Weihao","family":"Zhang","sequence":"additional","affiliation":[{"name":"Key Laboratory of Grain Information Processing and Control, (Henan University of Technology), Ministry of Education, Zhengzhou 450001, P.\u00a0R.\u00a0China"},{"name":"Henan Key Laboratory of Grain Photoelectric Detection and Control, Henan University of Technology Zhengzhou 450001, P.\u00a0R.\u00a0China"},{"name":"College of Information Science and Engineering, Henan University of Technology, Zhengzhou 450001, P.\u00a0R.\u00a0China"},{"name":"Henan International Joint Laboratory of Grain Information Processing, Zhengzhou 450001, P.\u00a0R.\u00a0China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6681-4187","authenticated-orcid":false,"given":"Yun","family":"Wang","sequence":"additional","affiliation":[{"name":"Key Laboratory of Grain Information Processing and Control, (Henan University of Technology), Ministry of Education, Zhengzhou 450001, P.\u00a0R.\u00a0China"},{"name":"Henan Key Laboratory of Grain Photoelectric Detection and Control, Henan University of Technology Zhengzhou 450001, P.\u00a0R.\u00a0China"},{"name":"College of Information Science and Engineering, Henan University of Technology, Zhengzhou 450001, P.\u00a0R.\u00a0China"},{"name":"Henan International Joint Laboratory of Grain Information Processing, Zhengzhou 450001, P.\u00a0R.\u00a0China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-5756-8356","authenticated-orcid":false,"given":"Yonghe","family":"Chu","sequence":"additional","affiliation":[{"name":"Key Laboratory of Grain Information Processing and Control, (Henan University of Technology), Ministry of Education, Zhengzhou 450001, P.\u00a0R.\u00a0China"},{"name":"Henan Key Laboratory of Grain Photoelectric Detection and Control, Henan University of Technology Zhengzhou 450001, P.\u00a0R.\u00a0China"},{"name":"College of Information Science and Engineering, Henan University of Technology, Zhengzhou 450001, P.\u00a0R.\u00a0China"},{"name":"Henan International Joint Laboratory of Grain Information Processing, Zhengzhou 450001, P.\u00a0R.\u00a0China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-4366-4643","authenticated-orcid":false,"given":"Miaolei","family":"Deng","sequence":"additional","affiliation":[{"name":"Key Laboratory of Grain Information Processing and Control, (Henan University of Technology), Ministry of Education, Zhengzhou 450001, P.\u00a0R.\u00a0China"},{"name":"Henan Key Laboratory of Grain Photoelectric Detection and Control, Henan University of Technology Zhengzhou 450001, P.\u00a0R.\u00a0China"},{"name":"College of Information Science and Engineering, Henan University of Technology, Zhengzhou 450001, P.\u00a0R.\u00a0China"},{"name":"Henan International Joint Laboratory of Grain Information Processing, Zhengzhou 450001, P.\u00a0R.\u00a0China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0009-0008-0089-0054","authenticated-orcid":false,"given":"Zhenghao","family":"He","sequence":"additional","affiliation":[{"name":"Key Laboratory of Grain Information Processing and Control, (Henan University of Technology), Ministry of Education, Zhengzhou 450001, P.\u00a0R.\u00a0China"},{"name":"Henan Key Laboratory of Grain Photoelectric Detection and Control, Henan University of Technology Zhengzhou 450001, P.\u00a0R.\u00a0China"},{"name":"College of Information Science and Engineering, Henan University of Technology, Zhengzhou 450001, P.\u00a0R.\u00a0China"},{"name":"Henan International Joint Laboratory of Grain Information Processing, Zhengzhou 450001, P.\u00a0R.\u00a0China"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"219","published-online":{"date-parts":[[2025,11,7]]},"reference":[{"key":"S0218194025500731BIB001","doi-asserted-by":"publisher","DOI":"10.1109\/CEC.2008.4630793"},{"key":"S0218194025500731BIB002","doi-asserted-by":"publisher","DOI":"10.1145\/1569901.1570031"},{"key":"S0218194025500731BIB003","doi-asserted-by":"publisher","DOI":"10.1145\/1735223.1735249"},{"key":"S0218194025500731BIB004","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2011.104"},{"key":"S0218194025500731BIB005","doi-asserted-by":"publisher","DOI":"10.1109\/ICST.2010.66"},{"key":"S0218194025500731BIB006","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2013.6606623"},{"key":"S0218194025500731BIB007","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2016.2560811"},{"key":"S0218194025500731BIB008","doi-asserted-by":"publisher","DOI":"10.1145\/2884781.2884807"},{"key":"S0218194025500731BIB009","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2013.6606626"},{"key":"S0218194025500731BIB010","doi-asserted-by":"publisher","DOI":"10.1145\/3293882.3330577"},{"key":"S0218194025500731BIB011","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-019-09780-z"},{"key":"S0218194025500731BIB012","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE48619.2023.00127"},{"issue":"9","key":"S0218194025500731BIB013","first-page":"1943","volume":"47","author":"Chen Z.","year":"2019","journal-title":"IEEE Trans. Softw. Eng."},{"key":"S0218194025500731BIB014","doi-asserted-by":"publisher","DOI":"10.1145\/3180155.3180233"},{"key":"S0218194025500731BIB015","doi-asserted-by":"publisher","DOI":"10.1109\/SANER.2019.8668043"},{"key":"S0218194025500731BIB016","doi-asserted-by":"publisher","DOI":"10.1145\/3395363.3397369"},{"key":"S0218194025500731BIB017","doi-asserted-by":"publisher","DOI":"10.1145\/3611643.3613892"},{"key":"S0218194025500731BIB018","doi-asserted-by":"publisher","DOI":"10.1145\/3540250.3549101"},{"key":"S0218194025500731BIB019","doi-asserted-by":"crossref","unstructured":"C. S. Xia and L. Zhang, Keep the conversation going: Fixing 162 out of 337 bugs for $0.42 each using ChatGPT, 2023, arXiv:2304.00385.","DOI":"10.1145\/3650212.3680323"},{"key":"S0218194025500731BIB020","doi-asserted-by":"publisher","DOI":"10.1145\/3650212.3680328"},{"key":"S0218194025500731BIB021","doi-asserted-by":"publisher","DOI":"10.1145\/3377811.3380345"},{"key":"S0218194025500731BIB022","doi-asserted-by":"publisher","DOI":"10.1145\/3632746"},{"key":"S0218194025500731BIB023","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE48619.2023.00126"},{"key":"S0218194025500731BIB024","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-023-10346-3"},{"key":"S0218194025500731BIB025","doi-asserted-by":"publisher","DOI":"10.1145\/3540250.3549098"},{"key":"S0218194025500731BIB026","doi-asserted-by":"publisher","DOI":"10.1145\/2568225.2568254"},{"key":"S0218194025500731BIB027","doi-asserted-by":"publisher","DOI":"10.1016\/j.jnca.2022.103365"},{"key":"S0218194025500731BIB028","doi-asserted-by":"publisher","DOI":"10.1109\/SANER.2016.76"},{"key":"S0218194025500731BIB029","doi-asserted-by":"publisher","DOI":"10.1145\/3212695"},{"key":"S0218194025500731BIB030","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-016-9470-4"},{"key":"S0218194025500731BIB031","doi-asserted-by":"publisher","DOI":"10.1016\/j.ins.2016.03.015"},{"key":"S0218194025500731BIB032","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2017.45"},{"key":"S0218194025500731BIB033","doi-asserted-by":"publisher","DOI":"10.1016\/j.asoc.2024.111445"},{"key":"S0218194025500731BIB034","unstructured":"M. Vasic, A. Kanade, P. Maniatis, D. Bieber and R. Singh, Neural program repair by jointly learning to localize and repair (2019), arXiv:1904.01720."},{"key":"S0218194025500731BIB035","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2016.2521368"},{"key":"S0218194025500731BIB036","doi-asserted-by":"publisher","DOI":"10.1145\/1095430.1081736"},{"key":"S0218194025500731BIB037","doi-asserted-by":"publisher","DOI":"10.1145\/1595696.1595767"},{"key":"S0218194025500731BIB038","doi-asserted-by":"publisher","DOI":"10.1145\/363958.363994"},{"key":"S0218194025500731BIB039","doi-asserted-by":"publisher","DOI":"10.1145\/1963190.1963191"},{"key":"S0218194025500731BIB040","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-013-9282-8"},{"key":"S0218194025500731BIB041","doi-asserted-by":"publisher","DOI":"10.1145\/1572272.1572283"},{"key":"S0218194025500731BIB042","doi-asserted-by":"publisher","DOI":"10.1109\/MSR.2015.38"},{"key":"S0218194025500731BIB043","first-page":"121","volume-title":"Proc. 40th Int. Conf. Software Engineering","author":"Huang J.","year":"2018"},{"key":"S0218194025500731BIB044","doi-asserted-by":"publisher","DOI":"10.1109\/ICST.2019.00020"},{"key":"S0218194025500731BIB045","doi-asserted-by":"publisher","DOI":"10.1109\/ASE.2017.8115675"},{"key":"S0218194025500731BIB046","doi-asserted-by":"publisher","DOI":"10.1109\/SANER.2019.8667970"},{"key":"S0218194025500731BIB047","doi-asserted-by":"publisher","DOI":"10.1145\/3180155.3180245"},{"issue":"8","key":"S0218194025500731BIB048","first-page":"786","volume":"46","author":"Chakraborty S. K.","year":"2019","journal-title":"IEEE Trans. Softw. Eng."},{"key":"S0218194025500731BIB049","doi-asserted-by":"publisher","DOI":"10.1145\/3340544"},{"key":"S0218194025500731BIB050","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE43902.2021.00107"},{"key":"S0218194025500731BIB051","doi-asserted-by":"publisher","DOI":"10.1145\/3510003.3510177"}],"container-title":["International Journal of Software Engineering and Knowledge Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.worldscientific.com\/doi\/pdf\/10.1142\/S0218194025500731","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,1,9]],"date-time":"2026-01-09T09:13:04Z","timestamp":1767949984000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.worldscientific.com\/doi\/10.1142\/S0218194025500731"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,11,7]]},"references-count":51,"journal-issue":{"issue":"03","published-print":{"date-parts":[[2026,3,15]]}},"alternative-id":["10.1142\/S0218194025500731"],"URL":"https:\/\/doi.org\/10.1142\/s0218194025500731","relation":{},"ISSN":["0218-1940","1793-6403"],"issn-type":[{"value":"0218-1940","type":"print"},{"value":"1793-6403","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,11,7]]}}}