Boosting Just-In-Time Code Comment Updating Via Programming Context and Refactor

被引:1
|
作者
Mi, Xiangbo [1 ]
Zhang, Jingxuan [1 ]
Tang, Yixuan [1 ]
Ju, Yue [1 ]
Lan, Jinpeng [1 ]
机构
[1] Nanjing Univ Aeronaut & Astronaut, Coll Comp Sci & Technol, Nanjing, Peoples R China
基金
中国国家自然科学基金;
关键词
Code-comment co-evolution; refactoring type detection; programming context detection; encoder-decoder model;
D O I
10.1142/S0218194023500456
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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' edits by 0.298 on average.
引用
收藏
页码:1619 / 1649
页数:31
相关论文
共 50 条
  • [41] Dynamic programming solution to the batching problem in just-in-time flow-shops
    Yavuz, Mesut
    Tufekci, Suleyman
    COMPUTERS & INDUSTRIAL ENGINEERING, 2006, 51 (03) : 416 - 432
  • [42] Just-in-Time Compilation for Verilog A New Technique for Improving the FPGA Programming Experience
    Schkufza, Eric
    Wei, Michael
    Rossbach, Christopher J.
    TWENTY-FOURTH INTERNATIONAL CONFERENCE ON ARCHITECTURAL SUPPORT FOR PROGRAMMING LANGUAGES AND OPERATING SYSTEMS (ASPLOS XXIV), 2019, : 271 - 286
  • [43] An exploratory study on just-in-time multi-programming-language bug prediction
    Li, Zengyang
    Ji, Jiabao
    Liang, Peng
    Mo, Ran
    Liu, Hui
    INFORMATION AND SOFTWARE TECHNOLOGY, 2024, 175
  • [44] Context Modelling for Just-In-Time Mobile Information Retrieval (JIT-MobIR)
    Alidin, Az Azrinudin
    Crestani, Fabio
    PERTANIKA JOURNAL OF SCIENCE AND TECHNOLOGY, 2013, 21 (01): : 227 - 238
  • [45] Adopting Just-in-Time Teaching in the Context of an Elementary Science Education Methodology Course
    Osmond, Pamela
    Goodnough, Karen
    STUDYING TEACHER EDUCATION, 2011, 7 (01) : 77 - 91
  • [46] Rich Context Information for Just-In-Time Adaptive Intervention promoting physical activity
    Cruciani, F.
    Nugent, C.
    Cleland, I.
    McCullagh, P.
    2017 39TH ANNUAL INTERNATIONAL CONFERENCE OF THE IEEE ENGINEERING IN MEDICINE AND BIOLOGY SOCIETY (EMBC), 2017, : 849 - 852
  • [47] Scrum to Support Mobile Application Development Projects in a Just-in-time Learning Context
    Scharff, Christelle
    Verma, Ravi
    2010 ICSE WORKSHOP ON COOPERATIVE AND HUMAN ASPECTS OF SOFTWARE ENGINEERING (CHASE 2010), 2010, : 25 - 31
  • [48] DriCon: On-device Just-in-Time Context Characterization for Unexpected Driving Events
    Das, Debasree
    Chakraborty, Sandip
    Mitra, Bivas
    2023 IEEE INTERNATIONAL CONFERENCE ON PERVASIVE COMPUTING AND COMMUNICATIONS, PERCOM, 2023, : 11 - 20
  • [49] Evaluating Audio-to-Text utilizing Dragon in the Context of Just-in-Time Requirements
    Vickers, William
    Reddivari, Sandeep
    Reddivari, Kalyan
    2022 IEEE 23RD INTERNATIONAL CONFERENCE ON INFORMATION REUSE AND INTEGRATION FOR DATA SCIENCE (IRI 2022), 2022, : 124 - 125
  • [50] Context-aware notification management systems for just-in-time adaptive interventions
    Kunzler, Florian
    2019 IEEE INTERNATIONAL CONFERENCE ON PERVASIVE COMPUTING AND COMMUNICATIONS WORKSHOPS (PERCOM WORKSHOPS), 2019, : 435 - 436