{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,22]],"date-time":"2026-07-22T16:44:50Z","timestamp":1784738690428,"version":"3.55.0"},"reference-count":49,"publisher":"Springer Science and Business Media LLC","issue":"2","license":[{"start":{"date-parts":[[2025,4,18]],"date-time":"2025-04-18T00:00:00Z","timestamp":1744934400000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/www.springernature.com\/gp\/researchers\/text-and-data-mining"},{"start":{"date-parts":[[2025,4,18]],"date-time":"2025-04-18T00:00:00Z","timestamp":1744934400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.springernature.com\/gp\/researchers\/text-and-data-mining"}],"funder":[{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["No. 62302408"],"award-info":[{"award-number":["No. 62302408"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]},{"name":"Southwest Minzu University Research Startup Funds","award":["No. RQD2021096"],"award-info":[{"award-number":["No. RQD2021096"]}]}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["Autom Softw Eng"],"published-print":{"date-parts":[[2025,11]]},"DOI":"10.1007\/s10515-025-00512-w","type":"journal-article","created":{"date-parts":[[2025,4,18]],"date-time":"2025-04-18T14:30:34Z","timestamp":1744986634000},"update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":7,"title":["Context-aware prompting for LLM-based program repair"],"prefix":"10.1007","volume":"32","author":[{"given":"Yingling","family":"Li","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Muxin","family":"Cai","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Junjie","family":"Chen","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yang","family":"Xu","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Lei","family":"Huang","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jianping","family":"Li","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2025,4,18]]},"reference":[{"key":"512_CR1","doi-asserted-by":"crossref","unstructured":"Ahmed, T., Devanbu, P.: Few-shot training llms for project-specific code-summarization. In: Proceedings of the 37th IEEE\/ACM International Conference on Automated Software Engineering, pp. 1\u20135 (2022)","DOI":"10.1145\/3551349.3559555"},{"key":"512_CR2","first-page":"1877","volume":"33","author":"T Brown","year":"2020","unstructured":"Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J.D., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al.: Language models are few-shot learners. Adv. Neural. Inf. Process. Syst. 33, 1877\u20131901 (2020)","journal-title":"Adv. Neural. Inf. Process. Syst."},{"issue":"9","key":"512_CR3","first-page":"1943","volume":"47","author":"Z Chen","year":"2019","unstructured":"Chen, Z., Kommrusch, S., Tufano, M., Pouchet, L.-N., Poshyvanyk, D., Monperrus, M.: Sequencer: Sequence-to-sequence learning for end-to-end program repair. IEEE Trans. Software Eng. 47(9), 1943\u20131959 (2019)","journal-title":"IEEE Trans. Software Eng."},{"key":"512_CR4","unstructured":"Chen, M., Tworek, J., Jun, H., Yuan, Q., Pinto, H. P. D. O., Kaplan, J., Edwards, H., Burda, Y., Joseph, N., Brockman, G., et al.: Evaluating Large Language Models Trained on Code. arXiv preprint arXiv:2107.03374 (2021)"},{"key":"512_CR5","unstructured":"Fried, D., Aghajanyan, A., Lin, J., Wang, S., Wallace, E., Shi, F., Zhong, R., Yih, S., Zettlemoyer, L., Lewis, M.: Incoder: A generative model for code infilling and synthesis. In: The Eleventh International Conference on Learning Representations (2023). https:\/\/openreview.net\/forum?id=hQwb-lbM6EL"},{"key":"512_CR6","doi-asserted-by":"crossref","unstructured":"Feng, S., Chen, C.: Prompting is all you need: Automated android bug replay with large language models. In: Proceedings of the 46th IEEE\/ACM International Conference on Software Engineering, pp. 1\u201313 (2024)","DOI":"10.1145\/3597503.3608137"},{"key":"512_CR7","doi-asserted-by":"crossref","unstructured":"Ghanbari, A., Benton, S., Zhang, L.: Practical program repair via bytecode mutation. In: Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis, pp. 19\u201330 (2019)","DOI":"10.1145\/3293882.3330559"},{"key":"512_CR8","doi-asserted-by":"crossref","unstructured":"Guo, D., Lu, S., Duan, N., Wang, Y., Zhou, M., Yin, J.: Unixcoder: Unified cross-modal pre-training for code representation. In: Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics, vol. 1, pp. 7212\u20137225 (2022)","DOI":"10.18653\/v1\/2022.acl-long.499"},{"key":"512_CR9","doi-asserted-by":"crossref","unstructured":"Gazzola, L., Micucci, D., Mariani, L.: Automatic software repair: A survey. In: Proceedings of the 40th International Conference on Software Engineering, pp. 1219\u20131219 (2018)","DOI":"10.1145\/3180155.3182526"},{"issue":"5","key":"512_CR10","doi-asserted-by":"publisher","first-page":"122","DOI":"10.1145\/2902362","volume":"59","author":"A Hindle","year":"2016","unstructured":"Hindle, A., Barr, E.T., Gabel, M., Su, Z., Devanbu, P.: On the naturalness of software. Commun. ACM 59(5), 122\u2013131 (2016)","journal-title":"Commun. ACM"},{"key":"512_CR11","doi-asserted-by":"crossref","unstructured":"Just, R., Jalali, D., Ernst, M. D.: Defects4j: A database of existing faults to enable controlled testing studies for java programs. In: Proceedings of the 2014 International Symposium on Software Testing and Analysis, pp. 437\u2013440 (2014)","DOI":"10.1145\/2610384.2628055"},{"key":"512_CR12","doi-asserted-by":"crossref","unstructured":"Jiang, N., Lutellier, T., Lou, Y., Tan, L., Goldwasser, D., Zhang, X.: Knod: Domain knowledge distilled tree decoder for automated program repair. In: 2023 IEEE\/ACM 45th International Conference on Software Engineering, pp. 1251\u20131263 (2023)","DOI":"10.1109\/ICSE48619.2023.00111"},{"key":"512_CR13","doi-asserted-by":"crossref","unstructured":"Jiang, Y., Liu, H., Niu, N., Zhang, L., Hu, Y.: Extracting concise bug-fixing patches from human-written patches in version control systems. In: 2021 IEEE\/ACM 43rd International Conference on Software Engineering, pp. 686\u2013698 (2021)","DOI":"10.1109\/ICSE43902.2021.00069"},{"key":"512_CR14","doi-asserted-by":"crossref","unstructured":"Jiang, N., Lutellier, T., Tan, L.: Cure: Code-aware neural machine translation for automatic program repair. In: 2021 IEEE\/ACM 43rd International Conference on Software Engineering, pp. 1161\u20131173 (2021)","DOI":"10.1109\/ICSE43902.2021.00107"},{"key":"512_CR15","doi-asserted-by":"publisher","first-page":"1980","DOI":"10.1007\/s10664-019-09780-z","volume":"25","author":"A Koyuncu","year":"2020","unstructured":"Koyuncu, A., Liu, K., Bissyand\u00e9, T.F., Kim, D., Klein, J., Monperrus, M., Le Traon, Y.: Fixminer: Mining relevant fix patterns for automated program repair. Empir. Softw. Eng. 25, 1980\u20132024 (2020)","journal-title":"Empir. Softw. Eng."},{"key":"512_CR16","unstructured":"Kolak, S. D., Martins, R., Le\u00a0Goues, C., Hellendoorn, V. J.: Patch generation with language models: Feasibility and scaling behavior. In: Deep Learning for Code Workshop (2022)"},{"key":"512_CR17","doi-asserted-by":"crossref","unstructured":"Le, X.-B. D., Chu, D.-H., Lo, D., Le\u00a0Goues, C., Visser, W.: S3: Syntax-and semantic-guided repair synthesis via programming by examples. In: Proceedings of the 2017 11th Joint Meeting on Foundations of Software Engineering, pp. 593\u2013604 (2017)","DOI":"10.1145\/3106237.3106309"},{"issue":"12","key":"512_CR18","doi-asserted-by":"publisher","first-page":"56","DOI":"10.1145\/3318162","volume":"62","author":"C Le Goues","year":"2019","unstructured":"Le Goues, C., Pradel, M., Roychoudhury, A.: Automated program repair. Commun. ACM 62(12), 56\u201365 (2019)","journal-title":"Commun. ACM"},{"key":"512_CR19","doi-asserted-by":"crossref","unstructured":"Li, F., Jiang, J., Sun, J., Zhang, H.: Hybrid automated program repair by combining large language models and program analysis. ACM Trans. Softw. Eng. Methodol. (2024)","DOI":"10.1145\/3715004"},{"key":"512_CR20","doi-asserted-by":"crossref","unstructured":"Lin, D., Koppel, J., Chen, A., Solar-Lezama, A.: Quixbugs: A multi-lingual program repair benchmark set based on the quixey challenge. In: Proceedings Companion of the 2017 ACM SIGPLAN International Conference on Systems, Programming, Languages, and Applications: Software for Humanity, pp. 55\u201356 (2017)","DOI":"10.1145\/3135932.3135941"},{"key":"512_CR21","doi-asserted-by":"crossref","unstructured":"Liu, K., Koyuncu, A., Kim, D., Bissyand\u00e9, T. F.: Tbar: Revisiting template-based automated program repair. In: Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis, pp. 31\u201342 (2019)","DOI":"10.1145\/3293882.3330577"},{"key":"512_CR22","doi-asserted-by":"crossref","unstructured":"Lutellier, T., Pham, H. V., Pang, L., Li, Y., Wei, M., Tan, L.: Coconut: Combining context-aware neural translation models using ensemble for program repair. In: Proceedings of the 29th ACM SIGSOFT International Symposium on Software Testing and Analysis, pp. 101\u2013114 (2020)","DOI":"10.1145\/3395363.3397369"},{"key":"512_CR23","doi-asserted-by":"crossref","unstructured":"Li, Y., Wang, S., Nguyen, T. N.: Dlfix: Context-based code transformation learning for automated program repair. In: Proceedings of the ACM\/IEEE 42nd International Conference on Software Engineering, pp. 602\u2013614 (2020)","DOI":"10.1145\/3377811.3380345"},{"issue":"4","key":"512_CR24","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1145\/3579637","volume":"32","author":"K Liu","year":"2023","unstructured":"Liu, K., Zhang, J., Li, L., Koyuncu, A., Kim, D., Ge, C., Liu, Z., Klein, J., Bissyand\u00e9, T.F.: Reliable fix patterns inferred from static checkers for automated program repair. ACM Trans. Softw. Eng. Methodol. 32(4), 1\u201338 (2023)","journal-title":"ACM Trans. Softw. Eng. Methodol."},{"key":"512_CR25","unstructured":"OpenAI: Best Practices for Prompt Engineering with the OpenAI API. https:\/\/help.openai.com\/en\/articles\/. Accessed: 2024 Nov 17. (2023)"},{"key":"512_CR26","unstructured":"OpenAI: ChatGPT Model. https:\/\/platform.openai.com\/docs\/models. Accessed: 2024 Nov 17. (2024)"},{"key":"512_CR27","doi-asserted-by":"crossref","unstructured":"Prenner, J.A., Babii, H., Robbes, R.: Can Openai\u2019s codex fix bugs? an evaluation on quixbugs. In: Proceedings of the Third International Workshop on Automated Program Repair, pp. 69\u201375 (2022)","DOI":"10.1145\/3524459.3527351"},{"key":"512_CR28","doi-asserted-by":"crossref","unstructured":"Ray, B., Hellendoorn, V., Godhane, S., Tu, Z., Bacchelli, A., Devanbu, P.: On the\" naturalness\" of buggy code. In: Proceedings of the 38th International Conference on Software Engineering, pp. 428\u2013439 (2016)","DOI":"10.1145\/2884781.2884848"},{"key":"512_CR29","unstructured":"Sutskever, I., Vinyals, O., Le, Q. V.: Sequence to sequence learning with neural networks. Adv. Neural Inform. Process. Syst. 27 (2014)"},{"key":"512_CR30","doi-asserted-by":"crossref","unstructured":"Wen, M., Chen, J., Wu, R., Hao, D., Cheung, S.-C.: Context-aware patch generation for better automated program repair. In: Proceedings of the 40th International Conference on Software Engineering, pp. 1\u201311 (2018)","DOI":"10.1145\/3180155.3180233"},{"key":"512_CR31","doi-asserted-by":"crossref","unstructured":"Wang, Y., Le, H., Gotmare, A. D., Bui, N. D., Li, J., Hoi, S. C.: Codet5+: Open code large language models for code understanding and generation. arXiv preprint arXiv:2305.07922 (2023)","DOI":"10.18653\/v1\/2023.emnlp-main.68"},{"key":"512_CR32","doi-asserted-by":"crossref","unstructured":"Xu, F. F., Alon, U., Neubig, G., Hellendoorn, V. J.: A systematic evaluation of large language models of code. In: Proceedings of the 6th ACM SIGPLAN International Symposium on Machine Programming, pp. 1\u201310 (2022)","DOI":"10.1145\/3520312.3534862"},{"key":"512_CR33","doi-asserted-by":"crossref","unstructured":"Xia, C. S., Ding, Y., Zhang, L.: The plastic surgery hypothesis in the era of large language models. In: 2023 38th IEEE\/ACM International Conference on Automated Software Engineering, pp. 522\u2013534 (2023)","DOI":"10.1109\/ASE56229.2023.00047"},{"issue":"1","key":"512_CR34","doi-asserted-by":"publisher","first-page":"34","DOI":"10.1109\/TSE.2016.2560811","volume":"43","author":"J Xuan","year":"2016","unstructured":"Xuan, J., Martinez, M., Demarco, F., Clement, M., Marcote, S.L., Durieux, T., Le Berre, D., Monperrus, M.: Nopol: Automatic repair of conditional statement bugs in java programs. IEEE Trans. Softw. Eng. 43(1), 34\u201355 (2016)","journal-title":"IEEE Trans. Softw. Eng."},{"key":"512_CR35","doi-asserted-by":"crossref","unstructured":"Xia, C. S., Wei, Y., Zhang, L.: Automated program repair in the era of large pre-trained language models. In: 2023 IEEE\/ACM 45th International Conference on Software Engineering, pp. 1482\u20131494 (2023)","DOI":"10.1109\/ICSE48619.2023.00129"},{"key":"512_CR36","doi-asserted-by":"crossref","unstructured":"Xia, C. S., Zhang, L.: Less training, more repairing please: Revisiting automated program repair via zero-shot learning. In: Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering, pp. 959\u2013971 (2022)","DOI":"10.1145\/3540250.3549101"},{"key":"512_CR37","unstructured":"Xia, C. S., Zhang, L.: Conversational Automated Program Repair. arXiv preprint arXiv:2301.13246 (2023)"},{"key":"512_CR38","doi-asserted-by":"crossref","unstructured":"Xia, C. S., Zhang, L.: Automated program repair via conversation: Fixing 162 out of 337 bugs for \\$0.42 each using chatgpt. In: Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis, pp. 819\u2013831 (2024)","DOI":"10.1145\/3650212.3680323"},{"issue":"10","key":"512_CR39","doi-asserted-by":"publisher","first-page":"1040","DOI":"10.1109\/TSE.2018.2874648","volume":"46","author":"Y Yuan","year":"2018","unstructured":"Yuan, Y., Banzhaf, W.: Arja: Automated repair of java programs via multi-objective genetic programming. IEEE Trans. Softw. Eng. 46(10), 1040\u20131067 (2018)","journal-title":"IEEE Trans. Softw. Eng."},{"key":"512_CR40","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1007\/s10664-021-10003-7","volume":"26","author":"D Yang","year":"2021","unstructured":"Yang, D., Liu, K., Kim, D., Koyuncu, A., Kim, K., Tian, H., Lei, Y., Mao, X., Klein, J., Bissyand\u00e9, T.F.: Where were the repair ingredients for defects4j bugs? exploring the impact of repair ingredient retrieval on the performance of 24 program repair systems. Empir. Softw. Eng. 26, 1\u201333 (2021)","journal-title":"Empir. Softw. Eng."},{"key":"512_CR41","doi-asserted-by":"crossref","unstructured":"Ye, H., Martinez, M., Luo, X., Zhang, T., Monperrus, M.: Selfapr: Self-supervised program repair with test execution diagnostics. In: Proceedings of the 37th IEEE\/ACM International Conference on Automated Software Engineering, pp. 1\u201313 (2022)","DOI":"10.1145\/3551349.3556926"},{"key":"512_CR42","doi-asserted-by":"crossref","unstructured":"Ye, H., Martinez, M., Monperrus, M.: Neural program repair with execution-based backpropagation. In: Proceedings of the 44th International Conference on Software Engineering, pp. 1506\u20131518 (2022)","DOI":"10.1145\/3510003.3510222"},{"key":"512_CR43","doi-asserted-by":"crossref","unstructured":"Yang, B., Tian, H., Pian, W., Yu, H., Wang, H., Klein, J., Bissyand\u00e9, T. F., Jin, S.: Cref: An llm-based conversational software repair framework for programming tutors. In: Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis, pp. 882\u2013894 (2024)","DOI":"10.1145\/3650212.3680328"},{"key":"512_CR44","doi-asserted-by":"crossref","unstructured":"Yuan, W., Zhang, Q., He, T., Fang, C., Hung, N. Q. V., Hao, X., Yin, H.: Circle: Continual repair across programming languages. In: Proceedings of the 31st ACM SIGSOFT International Symposium on Software Testing and Analysis, pp. 678\u2013690 (2022)","DOI":"10.1145\/3533767.3534219"},{"issue":"2","key":"512_CR45","first-page":"1","volume":"33","author":"Q Zhang","year":"2023","unstructured":"Zhang, Q., Fang, C., Ma, Y., Sun, W., Chen, Z.: A survey of learning-based automated program repair. ACM Trans. Softw. Eng. Methodol. 33(2), 1\u201369 (2023)","journal-title":"ACM Trans. Softw. Eng. Methodol."},{"key":"512_CR46","doi-asserted-by":"crossref","unstructured":"Zhang, Q., Fang, C., Zhang, T., Yu, B., Sun, W., Chen, Z.: Gamma: Revisiting template-based automated program repair via mask prediction. In: 2023 38th IEEE\/ACM International Conference on Automated Software Engineering, pp. 535\u2013547 (2023)","DOI":"10.1109\/ASE56229.2023.00063"},{"key":"512_CR47","unstructured":"Zhang, Y., Li, G., Jin, Z., Xing, Y.: Neural program repair with program dependence analysis and effective filter mechanism. arXiv preprint arXiv:2305.09315 (2023)"},{"key":"512_CR48","doi-asserted-by":"crossref","unstructured":"Zhu, Q., Sun, Z., Xiao, Y.-a., Zhang, W., Yuan, K., Xiong, Y., Zhang, L.: A syntax-guided edit decoder for neural program repair. In: Proceedings of the 29th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, pp. 341\u2013353 (2021)","DOI":"10.1145\/3468264.3468544"},{"key":"512_CR49","doi-asserted-by":"crossref","unstructured":"Zhu, Q., Sun, Z., Zhang, W., Xiong, Y., Zhang, L.: Tare: Type-aware neural program repair. In: 2023 IEEE\/ACM 45th International Conference on Software Engineering, pp. 1443\u20131455 (2023)","DOI":"10.1109\/ICSE48619.2023.00126"}],"container-title":["Automated Software Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10515-025-00512-w.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/article\/10.1007\/s10515-025-00512-w\/fulltext.html","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10515-025-00512-w.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,9,10]],"date-time":"2025-09-10T13:57:41Z","timestamp":1757512661000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/s10515-025-00512-w"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,4,18]]},"references-count":49,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2025,11]]}},"alternative-id":["512"],"URL":"https:\/\/doi.org\/10.1007\/s10515-025-00512-w","relation":{},"ISSN":["0928-8910","1573-7535"],"issn-type":[{"value":"0928-8910","type":"print"},{"value":"1573-7535","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,4,18]]},"assertion":[{"value":"2 December 2024","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"23 March 2025","order":2,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"18 April 2025","order":3,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}},{"order":1,"name":"Ethics","group":{"name":"EthicsHeading","label":"Declarations"}},{"value":"The authors declare no Conflict of interest.","order":2,"name":"Ethics","group":{"name":"EthicsHeading","label":"Conflict of interest"}}],"article-number":"42"}}