{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,11,18]],"date-time":"2025-11-18T09:30:53Z","timestamp":1763458253241,"version":"3.37.3"},"reference-count":29,"publisher":"World Scientific Pub Co Pte Ltd","issue":"10","funder":[{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["62272225"],"award-info":[{"award-number":["62272225"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Int. J. Soft. Eng. Knowl. Eng."],"published-print":{"date-parts":[[2023,10]]},"abstract":"<jats:p> Comments are summary descriptions of code snippets. When analyzing and maintaining programs, developers tend to read tidy comments rather than lengthy code. To prevent developers from misunderstanding the program or leading to potential bugs, ensuring the consistency and co-evolution of comments and the corresponding code is an integral development activity in practice. Nevertheless, when modifying code, developers sometimes neglect to update the relevant comments, resulting in inconsistency. Such comments may pose threats to the comprehension and maintenance of the software. In our study, we propose an overall approach named Context and Refactor based Comment Updater (CRCU). CRCU is a Just-In-Time (JIT) comment updater for specific commits. It takes a commit-id as input and updates all the method comments in this commit according to the code change. CRCU could be viewed as an optimization and augmentation of existing comment updaters, especially those that rely only on neural networks. Compared to the existing comment updaters, CRCU fully leverages the programming context and refactoring types of the modified methods to improve its performance. In addition, several customized enhancements in data pre-processing are introduced in CRCU to handle and filter out low-quality commits. We conduct extensive experiments to evaluate the effectiveness of CRCU. The evaluation results show that CRCU combined with the state-of-the-art approaches could improve the average Accuracy by 6.87% and reduce the developers\u2019 edits by 0.298 on average. <\/jats:p>","DOI":"10.1142\/s0218194023500456","type":"journal-article","created":{"date-parts":[[2023,7,11]],"date-time":"2023-07-11T13:53:59Z","timestamp":1689083639000},"page":"1619-1649","source":"Crossref","is-referenced-by-count":1,"title":["Boosting Just-In-Time Code Comment Updating Via Programming Context and Refactor"],"prefix":"10.1142","volume":"33","author":[{"given":"Xiangbo","family":"Mi","sequence":"first","affiliation":[{"name":"College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics, Nanjing, P.R. China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-8437-6640","authenticated-orcid":false,"given":"Jingxuan","family":"Zhang","sequence":"additional","affiliation":[{"name":"College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics, Nanjing, P.R. China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Yixuan","family":"Tang","sequence":"additional","affiliation":[{"name":"College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics, Nanjing, P.R. China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Yue","family":"Ju","sequence":"additional","affiliation":[{"name":"College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics, Nanjing, P.R. China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Jinpeng","family":"Lan","sequence":"additional","affiliation":[{"name":"College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics, Nanjing, P.R. China"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"219","published-online":{"date-parts":[[2023,8,14]]},"reference":[{"key":"S0218194023500456BIB001","first-page":"215","volume-title":"Proc. 5th Int. Conf. Software Engineering","author":"Woodfield S. N.","year":"1981"},{"issue":"4","key":"S0218194023500456BIB002","first-page":"1","volume":"30","author":"Ying A. T.","year":"2005","journal-title":"ACM SIGSOFT Software Eng. Notes"},{"key":"S0218194023500456BIB003","first-page":"68","volume-title":"Proc. 23rd Annual Int. Conf. Design of Communication: Documenting & Designing for Pervasive Information","author":"de Souza S. C. B.","year":"2005"},{"key":"S0218194023500456BIB004","first-page":"145","volume-title":"Proc. 21 ACM SIGOPS Symp. Operating Systems Principles","author":"Tan L.","year":"2007"},{"key":"S0218194023500456BIB005","first-page":"53","volume-title":"2019 IEEE\/ACM 27th Int. Conf. Program Comprehension","author":"Wen F.","year":"2019"},{"issue":"4","key":"S0218194023500456BIB006","doi-asserted-by":"crossref","first-page":"1640","DOI":"10.1109\/TSE.2022.3185458","volume":"49","author":"Lin B.","year":"2023","journal-title":"IEEE Trans. Software Eng."},{"key":"S0218194023500456BIB007","doi-asserted-by":"crossref","first-page":"585","DOI":"10.1145\/3324884.3416581","volume-title":"Proc. 35th IEEE\/ACM Int. Conf. Automated Software Engineering","author":"Liu Z.","year":"2020"},{"key":"S0218194023500456BIB009","first-page":"11","volume-title":"2011 33rd Int. Conf. Software Engineering","author":"Tan L.","year":"2011"},{"issue":"1","key":"S0218194023500456BIB012","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1109\/TSE.2021.3138909","volume":"49","author":"Liu Z.","year":"2023","journal-title":"IEEE Trans. Software Engineering"},{"key":"S0218194023500456BIB013","first-page":"70","volume-title":"14th Working Conf. Reverse Engineering","author":"Fluri B.","year":"2007"},{"issue":"4","key":"S0218194023500456BIB014","doi-asserted-by":"crossref","first-page":"367","DOI":"10.1007\/s11219-009-9075-x","volume":"17","author":"Fluri B.","year":"2009","journal-title":"Software Quality J."},{"key":"S0218194023500456BIB015","first-page":"65","volume-title":"2020 IEEE 20th Int. Working Conf. Source Code Analysis and Manipulation","author":"Stulova N.","year":"2020"},{"key":"S0218194023500456BIB016","doi-asserted-by":"crossref","first-page":"260","DOI":"10.1109\/ICST.2012.106","volume-title":"2012 IEEE 5th Int. Conf. Software Testing, Verification and Validation","author":"Tan S. H.","year":"2012"},{"key":"S0218194023500456BIB017","doi-asserted-by":"crossref","first-page":"35662","DOI":"10.1109\/ACCESS.2020.2975093","volume":"8","author":"Chen C.","year":"2020","journal-title":"IEEE Access"},{"key":"S0218194023500456BIB018","first-page":"200","volume-title":"2018 IEEE\/ACM 26th Int. Conf. Program Comprehension","author":"Hu X.","year":"2018"},{"key":"S0218194023500456BIB019","doi-asserted-by":"crossref","first-page":"111036","DOI":"10.1016\/j.jss.2021.111036","volume":"181","author":"Li Z.","year":"2021","journal-title":"J. Syst. Software"},{"key":"S0218194023500456BIB020","first-page":"132","volume-title":"CASCON","author":"Tsantalis N.","year":"2013"},{"issue":"10","key":"S0218194023500456BIB021","doi-asserted-by":"crossref","first-page":"166","DOI":"10.1145\/354222.353183","volume":"35","author":"Demeyer S.","year":"2000","journal-title":"ACM SIGPLAN Not."},{"key":"S0218194023500456BIB022","first-page":"404","volume-title":"European conf. Object-Oriented Programming","author":"Dig D.","year":"2006"},{"issue":"12","key":"S0218194023500456BIB023","doi-asserted-by":"crossref","first-page":"2786","DOI":"10.1109\/TSE.2020.2968072","volume":"47","author":"Silva D.","year":"2021","journal-title":"IEEE Trans. Software Eng."},{"key":"S0218194023500456BIB024","doi-asserted-by":"crossref","first-page":"269","DOI":"10.1109\/MSR.2017.14","volume-title":"2017 IEEE\/ACM 14th Int. Conf. Mining Software Repositories","author":"Silva D.","year":"2017"},{"key":"S0218194023500456BIB027","doi-asserted-by":"crossref","first-page":"313","DOI":"10.1145\/2642937.2642982","volume-title":"Proc. 29th ACM\/IEEE Int. Conf. Automated Software Eng.","author":"Falleri J.-R.","year":"2014"},{"issue":"3","key":"S0218194023500456BIB030","doi-asserted-by":"crossref","first-page":"930","DOI":"10.1109\/TSE.2020.3007722","volume":"48","author":"Tsantalis N.","year":"2022","journal-title":"IEEE Trans. Software Eng."},{"key":"S0218194023500456BIB032","first-page":"371","volume-title":"Proc. 18th ACM SIGSOFT Int. Symp. Foundations of Software Engineering","author":"Kim M.","year":"2010"},{"key":"S0218194023500456BIB033","first-page":"951","volume-title":"Companion of the 30th Int. Conf. Software Engineering","author":"Xing Z.","year":"2008"},{"key":"S0218194023500456BIB035","doi-asserted-by":"crossref","first-page":"390","DOI":"10.18653\/v1\/2021.emnlp-main.32","volume-title":"2021 Conf. Empirical Methods in Natural Language Proc.","author":"Schick T.","year":"2021"},{"key":"S0218194023500456BIB036","doi-asserted-by":"crossref","first-page":"107791","DOI":"10.1016\/j.knosys.2021.107791","volume":"237","author":"Suleiman D.","year":"2022","journal-title":"Knowl.-Based Syst."},{"key":"S0218194023500456BIB040","first-page":"802","author":"Shi X.","year":"2015","journal-title":"Proc. 28th Int. Conf. Neural Inform. Process. Syst."},{"key":"S0218194023500456BIB044","first-page":"2692","author":"Vinyals O.","year":"2015","journal-title":"Proc. 28th Int. Conf. Neural Inform. Proc. Syst."}],"container-title":["International Journal of Software Engineering and Knowledge Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.worldscientific.com\/doi\/pdf\/10.1142\/S0218194023500456","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2023,10,13]],"date-time":"2023-10-13T06:49:34Z","timestamp":1697179774000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.worldscientific.com\/doi\/10.1142\/S0218194023500456"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,8,14]]},"references-count":29,"journal-issue":{"issue":"10","published-print":{"date-parts":[[2023,10]]}},"alternative-id":["10.1142\/S0218194023500456"],"URL":"https:\/\/doi.org\/10.1142\/s0218194023500456","relation":{},"ISSN":["0218-1940","1793-6403"],"issn-type":[{"type":"print","value":"0218-1940"},{"type":"electronic","value":"1793-6403"}],"subject":[],"published":{"date-parts":[[2023,8,14]]}}}