{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,2,21]],"date-time":"2025-02-21T06:43:24Z","timestamp":1740120204567,"version":"3.37.3"},"reference-count":41,"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":["61772200"],"award-info":[{"award-number":["61772200"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100007219","name":"Natural Science Foundation of Shanghai","doi-asserted-by":"publisher","award":["21ZR1416300"],"award-info":[{"award-number":["21ZR1416300"]}],"id":[{"id":"10.13039\/100007219","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":[[2022,10]]},"abstract":"<jats:p> Code comments are valuable for program comprehension and software maintenance. However, comments can be inconsistent or out-of-date after code changes. To tackle this problem, Just-In-Time (JIT) comment updating aims to automatically update comments with code changes. Existing approaches for this task use edit sequences of source code to model code changes. Meanwhile, recent researches indicate that neural models based on abstract syntax trees (AST) can help represent source code. In this paper, we propose a new method to learn code changes by combining code edit sequences with AST edit sequences, so that the generated new comment can be more accurate. Our approach utilizes three encoders to encode code edit sequences, AST edit sequences and old comment token sequences, respectively. The outputs of the encoders are then decoded into a sequence of edit actions, which is parsed to generate a new comment. The proposed method is evaluated on a public dataset using seven metrics, and the experimental results show that our approach outperforms the baselines. Furthermore, when the new comment has a larger edit distance than the old one, our model shows better performance. <\/jats:p>","DOI":"10.1142\/s0218194022500516","type":"journal-article","created":{"date-parts":[[2022,8,26]],"date-time":"2022-08-26T07:31:53Z","timestamp":1661499113000},"page":"1455-1476","source":"Crossref","is-referenced-by-count":1,"title":["Improving Just-In-Time Comment Updating via AST Edit Sequence"],"prefix":"10.1142","volume":"32","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-9051-5678","authenticated-orcid":false,"given":"Jiawen","family":"Huang","sequence":"first","affiliation":[{"name":"Department of Computer Science and Engineering, East China University of Science and Technology, Shanghai 200237, P.\u00a0R.\u00a0China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Huiqun","family":"Yu","sequence":"additional","affiliation":[{"name":"Department of Computer Science and Engineering, East China University of Science and Technology, Shanghai 200237, P.\u00a0R.\u00a0China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Guisheng","family":"Fan","sequence":"additional","affiliation":[{"name":"Department of Computer Science and Engineering, East China University of Science and Technology, Shanghai 200237, P.\u00a0R.\u00a0China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Ziyi","family":"Zhou","sequence":"additional","affiliation":[{"name":"Department of Computer Science and Engineering, East China University of Science and Technology, Shanghai 200237, P.\u00a0R.\u00a0China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Mingchen","family":"Li","sequence":"additional","affiliation":[{"name":"Department of Computer Science and Engineering, East China University of Science and Technology, Shanghai 200237, P.\u00a0R.\u00a0China"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"219","published-online":{"date-parts":[[2022,10,13]]},"reference":[{"key":"S0218194022500516BIB001","first-page":"215","volume-title":"Proc. 5th Int. Conf. Software Engineering","author":"Woodfield S. N.","year":"1981"},{"key":"S0218194022500516BIB002","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2017.2734091"},{"key":"S0218194022500516BIB003","first-page":"53","volume-title":"2019 IEEE\/ACM 27th Int. Conf. Program Comprehension","author":"Wen F.","year":"2019"},{"key":"S0218194022500516BIB004","first-page":"585","volume-title":"2020 35th IEEE\/ACM Int. Conf. Automated Software Engineering","author":"Liu Z.","year":"2020"},{"key":"S0218194022500516BIB005","doi-asserted-by":"publisher","DOI":"10.1145\/3519312"},{"key":"S0218194022500516BIB006","doi-asserted-by":"crossref","first-page":"1853","DOI":"10.18653\/v1\/2020.acl-main.168","volume-title":"Proc. 58th Annual Meeting of the Association for Computational Linguistics","author":"Panthaplackel S.","year":"2020"},{"issue":"4","key":"S0218194022500516BIB007","doi-asserted-by":"crossref","first-page":"653","DOI":"10.1109\/TSE.2019.2901459","volume":"47","author":"Lee S.","year":"2021","journal-title":"IEEE Trans. Software Eng."},{"key":"S0218194022500516BIB008","first-page":"1359","volume-title":"Proc. 5th Int. Conf. Software Engineering","author":"Zhai J.","year":"2020"},{"key":"S0218194022500516BIB009","first-page":"783","volume-title":"Proc. 5th Int. Conf. Software Engineering","author":"Zhang J.","year":"2019"},{"key":"S0218194022500516BIB010","first-page":"184","volume-title":"2021 IEEE\/ACM 29th Int. Conf. Program Comprehension","author":"Lin C.","year":"2021"},{"volume-title":"Int. Conf. Learning Representations","year":"2019","author":"Yin P.","key":"S0218194022500516BIB011"},{"key":"S0218194022500516BIB012","doi-asserted-by":"crossref","first-page":"4053","DOI":"10.18653\/v1\/2021.emnlp-main.332","volume-title":"Proc. 2021 Conf. Empirical Methods in Natural Language Processing","author":"Shi E.","year":"2021"},{"key":"S0218194022500516BIB013","first-page":"1078","volume-title":"Findings of the Association for Computational Linguistics","author":"Wu H.","year":"2021"},{"key":"S0218194022500516BIB014","doi-asserted-by":"publisher","DOI":"10.1145\/2642937.2642982"},{"key":"S0218194022500516BIB015","first-page":"70","volume-title":"14th Working Conf. Reverse Engineering","author":"Fluri B.","year":"2007"},{"issue":"4","key":"S0218194022500516BIB016","doi-asserted-by":"crossref","first-page":"367","DOI":"10.1007\/s11219-009-9075-x","volume":"17","author":"Fluri B.","year":"2009","journal-title":"Softw. Qual. J."},{"key":"S0218194022500516BIB017","first-page":"2073","volume-title":"Proc. 54th Annual Meeting of the Association for Computational Linguistics","author":"Iyer S.","year":"2016"},{"key":"S0218194022500516BIB018","first-page":"2091","volume-title":"Proc. 33rd Int. Conf. Machine Learning","volume":"48","author":"Allamanis M.","year":"2016"},{"key":"S0218194022500516BIB019","doi-asserted-by":"publisher","DOI":"10.1145\/3196321.3196334"},{"key":"S0218194022500516BIB020","first-page":"2269","volume-title":"Proc. Twenty-Seventh Int. Joint Conf. Artificial Intelligence","author":"Hu X.","year":"2018"},{"key":"S0218194022500516BIB021","first-page":"12:1","volume-title":"Internetware \u201919: Proc. 11th Asia-Pacific Symp. Internetware","author":"Liu B.","year":"2019"},{"key":"S0218194022500516BIB022","first-page":"795","volume-title":"Proc. 5th Int. Conf. Software Engineering","author":"LeClair A.","year":"2019"},{"key":"S0218194022500516BIB023","doi-asserted-by":"crossref","first-page":"4998","DOI":"10.18653\/v1\/2020.acl-main.449","volume-title":"Proc. 58th Annual Meeting of the Association for Computational Linguistics","author":"Ahmad W. U.","year":"2020"},{"key":"S0218194022500516BIB024","doi-asserted-by":"crossref","first-page":"397","DOI":"10.1145\/3238147.3238206","volume-title":"Proc. 33rd ACM\/IEEE Int. Conf. Automated Software Engineering","author":"Wan Y.","year":"2018"},{"key":"S0218194022500516BIB025","first-page":"1","volume-title":"Symp. Compiler Optimization","author":"Allen F. E.","year":"1970"},{"key":"S0218194022500516BIB026","first-page":"184","volume-title":"2020 IEEE\/ACM 28th Int. Conf. Program Comprehension","author":"LeClair A.","year":"2020"},{"key":"S0218194022500516BIB027","first-page":"15","volume-title":"14th Int. Conf. Evaluation of Novel Approaches to Software Engineering","author":"Moore J.","year":"2019"},{"key":"S0218194022500516BIB028","first-page":"427","volume-title":"The Thirty-Fifth AAAI Conf. Artificial Intelligence","author":"Panthaplackel S.","year":"2021"},{"volume-title":"Int. Conf. Learning Representations","year":"2021","author":"Liu S.","key":"S0218194022500516BIB029"},{"key":"S0218194022500516BIB030","first-page":"1073","volume-title":"Proc. 55th Annual Meeting of the Association for Computational Linguistics","author":"See A.","year":"2017"},{"volume-title":"Proc. Eleventh Int. Conf. Language Resources and Evaluation","year":"2018","author":"Grave E.","key":"S0218194022500516BIB031"},{"key":"S0218194022500516BIB032","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/D15-1166"},{"key":"S0218194022500516BIB033","first-page":"35","volume-title":"Workshop on Asian Translation","author":"Neubig G.","year":"2015"},{"key":"S0218194022500516BIB034","first-page":"3137","volume-title":"17th Annual Conf. North American Chapter of the Association for Computational Linguistics: Human Language Technologies","author":"Kriz R.","year":"2019"},{"key":"S0218194022500516BIB035","first-page":"65","volume-title":"Proc. ACL Workshop on Intrinsic and Extrinsic Evaluation Measures for Machine Translation and\/or Summarization","author":"Banerjee S.","year":"2005"},{"key":"S0218194022500516BIB036","first-page":"311","volume-title":"Proc. 40th Annual Meeting of the Association for Computational Linguistics","author":"Papineni K.","year":"2002"},{"volume-title":"Int. Conf. Learning Representations","year":"2015","author":"Kingma D. P.","key":"S0218194022500516BIB037"},{"key":"S0218194022500516BIB038","first-page":"87","volume-title":"Proc. 31st ACM\/IEEE Int. Conf. Automated Software Engineering","author":"White M.","year":"2016"},{"key":"S0218194022500516BIB039","doi-asserted-by":"publisher","DOI":"10.1109\/72.279181"},{"key":"S0218194022500516BIB040","first-page":"4171","volume-title":"Proc. ACL Workshop on Intrinsic and Extrinsic Evaluation Measures for Machine Translation and\/or Summarization","author":"Devlin J.","year":"2019"},{"journal-title":"CoRR","year":"2020","author":"Brown T. B.","key":"S0218194022500516BIB041"}],"container-title":["International Journal of Software Engineering and Knowledge Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.worldscientific.com\/doi\/pdf\/10.1142\/S0218194022500516","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2022,11,24]],"date-time":"2022-11-24T03:12:08Z","timestamp":1669259528000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.worldscientific.com\/doi\/10.1142\/S0218194022500516"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,10]]},"references-count":41,"journal-issue":{"issue":"10","published-print":{"date-parts":[[2022,10]]}},"alternative-id":["10.1142\/S0218194022500516"],"URL":"https:\/\/doi.org\/10.1142\/s0218194022500516","relation":{},"ISSN":["0218-1940","1793-6403"],"issn-type":[{"type":"print","value":"0218-1940"},{"type":"electronic","value":"1793-6403"}],"subject":[],"published":{"date-parts":[[2022,10]]}}}