{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,2,28]],"date-time":"2026-02-28T07:45:45Z","timestamp":1772264745666,"version":"3.50.1"},"reference-count":29,"publisher":"MDPI AG","issue":"12","license":[{"start":{"date-parts":[[2020,12,17]],"date-time":"2020-12-17T00:00:00Z","timestamp":1608163200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Symmetry"],"abstract":"<jats:p>Automated program repair is an effective way to ensure software quality and improve software development efficiency. At present, there are many methods and tools of automated program reapir in real world, but most of them have low repair accuracy, resulting in a large number of incorrect patches in the generated patches. To solve this problem, we propose a patch quality evaluation method based on semantic distance, which measures the semantic distance of patches by using features of interval distance, output coverage, and path matching. For each evaluation feature, we give a quantitative formula to obtain a specific distance value and use the distance to calculate the recommended patch value to measure the quality of the patch. Our quality evaluation method evaluated 279 patches from previous program repair tools, including Nopol, DynaMoth, ACS, jGenProg, and CapGen. This quality evaluation method successfully arranged the correct patches before the plausible but incorrect patches, and it recommended the higher-ranked patches to users first. On this basis, we compared our evaluation method with the existing evaluation methods and judged the evaluation ability of each feature. We showed that our proposed patch quality evaluation method can improve the repair accuracy of repair tools.<\/jats:p>","DOI":"10.3390\/sym12122102","type":"journal-article","created":{"date-parts":[[2020,12,17]],"date-time":"2020-12-17T21:21:49Z","timestamp":1608240109000},"page":"2102","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":4,"title":["Priority Measurement of Patches for Program Repair Based on Semantic Distance"],"prefix":"10.3390","volume":"12","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-0787-5806","authenticated-orcid":false,"given":"Yukun","family":"Dong","sequence":"first","affiliation":[{"name":"College of Computer Science and Technology, China University of Petroleum, Qingdao 266580, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Meng","family":"Wu","sequence":"additional","affiliation":[{"name":"College of Computer Science and Technology, China University of Petroleum, Qingdao 266580, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Li","family":"Zhang","sequence":"additional","affiliation":[{"name":"College of Computer Science and Technology, China University of Petroleum, Qingdao 266580, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Wenjing","family":"Yin","sequence":"additional","affiliation":[{"name":"College of Computer Science and Technology, China University of Petroleum, Qingdao 266580, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Mengying","family":"Wu","sequence":"additional","affiliation":[{"name":"College of Computer Science and Technology, China University of Petroleum, Qingdao 266580, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Haojie","family":"Li","sequence":"additional","affiliation":[{"name":"College of Computer Science and Technology, China University of Petroleum, Qingdao 266580, China"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2020,12,17]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"34","DOI":"10.1109\/TSE.2017.2755013","article-title":"Automatic Software Repair: A Survey","volume":"45","author":"Gazzola","year":"2019","journal-title":"IEEE Trans. Softw. Eng."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"54","DOI":"10.1109\/TSE.2011.104","article-title":"GenProg: A Generic Method for Automatic Software Repair","volume":"38","author":"Nguyen","year":"2012","journal-title":"IEEE Trans. Softw. Eng."},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Le Goues, C., Dewey-Vogt, M., Forrest, S., and Weimer, W. (2012, January 2\u20139). A Systematic Study of Automated Program Repair: Fixing 55 out of 105 Bugs for $8 Each. Proceedings of the International Conference on Software Engineering, Zurich, Switzerland.","DOI":"10.1109\/ICSE.2012.6227211"},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Wang, S., Wen, M., Chen, L., Yi, X., and Mao, X. (2019, January 19\u201320). How Different Is It Between Machine-Generated and Developer-Provided Patches? An Empirical Study on the Correct Patches Generated by Automated Program Repair Techniques. Proceedings of the 13th ACM\/IEEE International Symposium on Empirical Software Engineering and Measurement, Porto de Galinhas, Brazil.","DOI":"10.1109\/ESEM.2019.8870172"},{"key":"ref_5","unstructured":"Qi, X., and Steven, R. (2017). Identifying Test-Suite-Overfitted Patches through Test Case Generation. ISSTA, ACM."},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Le, D.X., Bao, L., Lo, D., Xia, X., and Li, S. (2019, January 25\u201331). On Reliability of Patch Correctness Assessment. Proceedings of the IEEE\/ACM 41st International Conference on Software Engineering (ICSE), Montreal, QC, Canada.","DOI":"10.1109\/ICSE.2019.00064"},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Le, X.B.D., Lo, D., and Goues, C.L. (2016, January 14\u201318). History Driven Program Repair. Proceedings of the IEEE International Conference on Software Analysis, Suita, Japan.","DOI":"10.1109\/SANER.2016.76"},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"298","DOI":"10.1145\/2914770.2837617","article-title":"Automatic Patch Generation by Learning Correct Code","volume":"51","author":"Long","year":"2016","journal-title":"ACM Sigplan Notices"},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"33","DOI":"10.1007\/s10664-018-9619-4","article-title":"Alleviating Patch Overfitting with Automatic Test Generation: A Study of Feasibility and Effectiveness for the Nopol Repair System","volume":"24","author":"Yu","year":"2019","journal-title":"Empir. Softw. Eng."},{"key":"ref_10","unstructured":"Xiong, Y., Liu, X., Zeng, M., Zhang, L., and Huang, G. (June, January 27). Identifying Patch Correctness in Test-based Program Repair. Proceedings of the International Conference on Software Engineering, Gothenburg, Sweden."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"34","DOI":"10.1109\/TSE.2016.2560811","article-title":"Nopol: Automatic Repair of Conditional Statement Bugs in Java Programs","volume":"43","author":"Xuan","year":"2017","journal-title":"IEEE Trans. Softw. Eng."},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"DeMarco, F., Xuan, J., Le Berre, D., and Monperrus, M. (2014, January 31). Automatic Repair of Buggy If Conditions and Missing Preconditions with SMT. Proceedings of the 6th International Workshop on Constraints in Software Testing, Verification, and Analysis, CSTVA 2014, Hyderabad, India.","DOI":"10.1145\/2593735.2593740"},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Durieux, T., and Monperrus, M. (2016). DynaMoth: Dynamic Code Synthesis for Automatic Program Repair. Proceedings of the International Workshop on Automation of Software Test, ACM.","DOI":"10.1145\/2896921.2896931"},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Xiong, Y., Wang, J., Yan, R., Zhang, J., Han, S., Huang, G., and Zhang, L. (2017, January 20\u201328). Precise Condition Synthesis for Program Repair. Proceedings of the 2017 IEEE\/ACM 39th International Conference on Software Engineering (ICSE), Buenos Aires, Argentina.","DOI":"10.1109\/ICSE.2017.45"},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Matias, M., and Martin, M. (2016, January 18\u201320). ASTOR: A Program Repair Library for Java. Proceedings of the International Symposium on Software Testing & Analysis, Saarbr\u00fccken, Germany.","DOI":"10.1145\/2931037.2948705"},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Wen, M., Chen, J., Wu, R., Hao, D., and Cheung, S.C. (June, January 27). Context-Aware Patch Generation for Better Automated Program Repair. Proceedings of the 2018 IEEE\/ACM 40th International Conference on Software Engineering (ICSE), Gothenburg, Sweden.","DOI":"10.1145\/3180155.3180233"},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Saha, R.K., Lyu, Y., Yoshida, H., and Prasad, M.R. (November, January 30). Elixir: Effective Object-oriented Program Repair. Proceedings of the 2017 32nd IEEE\/ACM International Conference on Automated Software Engineering (ASE), Urbana, IL, USA.","DOI":"10.1109\/ASE.2017.8115675"},{"key":"ref_18","unstructured":"Xin, Q., and Reiss, S.P. (November, January 30). Leveraging Syntax-related Code for Automated Program Repair. Proceedings of the IEEE\/ACM International Conference on Automated Software Engineering, Urbana, IL, USA."},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Nguyen, H.D., Qi, D., Roychoudhury, A., and Chandra, S. (2013, January 18\u201326). SemFix: Program Repair via Semantic Analysis. Proceedings of the International Conference on Software Engineering, San Francisco, CA, USA.","DOI":"10.1109\/ICSE.2013.6606623"},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Jiang, J., Xiong, Y., Zhang, H., Gao, Q., and Chen, X. (2018). Shaping Program Repair Space with Existing Patches and Similar Code. Proceedings of the International Symposium on Software Testing & Analysis, ACM.","DOI":"10.1145\/3213846.3213871"},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Lou, Y., Ghanbari, A., Li, X., Zhang, L., Zhang, H., Hao, D., and Zhang, L. (2020). Can Automated Program Repair Refine Fault Localization? A Unified Debugging Approach. ISSTA\u201920: 29th ACM SIGSOFT International Symposium on Software Testing and Analysis, ACM.","DOI":"10.1145\/3395363.3397351"},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Qi, Z., Long, F., Achour, S., and Rinard, M. (2015, January 12\u201317). An Analysis of Patch Plausibility and Correctness for Generate-and-validate Patch Generation Systems. Proceedings of the 2015 International Symposium on Software Testing and Analysis, Baltimore, MD, USA.","DOI":"10.1145\/2771783.2771791"},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Tao, Y., Kim, J., Kim, S., and Xu, C. (2014). Automatically Generated Patches as Debugging Aids: A Human Study. FSE 2014: Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering, ACM.","DOI":"10.1145\/2635868.2635873"},{"key":"ref_24","unstructured":"(2020, March 30). javalang. Available online: https:\/\/github.com\/c2nes\/javalang."},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"1936","DOI":"10.1007\/s10664-016-9470-4","article-title":"Automatic repair of real bugs in Java: A large-scale experiment on the Defects4J dataset","volume":"22","author":"Martinez","year":"2016","journal-title":"Empir. Softw. Eng."},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Smith, E.K., Barr, E.T., Le Goues, C., and Brun, Y. (2015). Is the Cure Worse Than the Disease? Overfitting in Automated Program Repair. ESEC\/FSE 2015: Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering, ACM.","DOI":"10.1145\/2786805.2786825"},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Tan, S.H., Yoshida, H., Prasad, M.R., and Roychoudhury, A. (2016). Anti-patterns in Search-Based Program Repair. FSE 2016: Proceedings of the 2016 24th ACM SIGSOFT International Symposium on Foundations of Software Engineering, ACM.","DOI":"10.1145\/2950290.2950295"},{"key":"ref_28","unstructured":"Thomas, D., and Martin, M. (2016). IntroClassJava: A Benchmark of 297 Small and Buggy Java Programs. [Ph.D. Thesis, Universite Lille 1]."},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"1236","DOI":"10.1109\/TSE.2015.2454513","article-title":"The ManyBugs and IntroClass benchmarks for automated repair of C programs","volume":"41","author":"Claire","year":"2015","journal-title":"IEEE Trans. Softw. Eng."}],"container-title":["Symmetry"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2073-8994\/12\/12\/2102\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T10:46:12Z","timestamp":1760179572000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2073-8994\/12\/12\/2102"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2020,12,17]]},"references-count":29,"journal-issue":{"issue":"12","published-online":{"date-parts":[[2020,12]]}},"alternative-id":["sym12122102"],"URL":"https:\/\/doi.org\/10.3390\/sym12122102","relation":{},"ISSN":["2073-8994"],"issn-type":[{"value":"2073-8994","type":"electronic"}],"subject":[],"published":{"date-parts":[[2020,12,17]]}}}