Just-In-Time TODO-Missed Commits Detection

被引:0
|
作者
Wang, Haoye [1 ]
Gao, Zhipeng [2 ]
Hu, Xing [3 ]
Lo, David [5 ]
Grundy, John
Wang, Xinyu [3 ,4 ]
机构
[1] Hangzhou City Univ, Hangzhou 310015, Peoples R China
[2] Zhejiang Univ, Shanghai Inst Adv Study, Shanghai 201210, Peoples R China
[3] Zhejiang Univ, Sch Technol, Hangzhou 310058, Peoples R China
[4] Zhejiang Univ, Coll Comp Sci & Technol, Hangzhou 188065, Peoples R China
[5] Singapore Management Univ, Comp Sci, Singapore, 3800, Singapore
基金
中国国家自然科学基金; 新加坡国家研究基金会;
关键词
Codes; Task analysis; Training; !text type='Python']Python[!/text; Stars; Software quality; Software development management; Technical debt; TODO comment; code-comment inconsistency; suboptimal implementation; PREDICTION;
D O I
10.1109/TSE.2024.3405005
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
TODO comments play an important role in helping developers to manage their tasks and communicate with other team members. TODO comments are often introduced by developers as a type of technical debt, such as a reminder to add/remove features or a request to optimize the code implementations. These can all be considered as notifications for developers to revisit regarding the current suboptimal solutions. TODO comments often bring short-term benefits - higher productivity or shorter development cost - and indicate attention needs to be paid for the long-term software quality. Unfortunately, due to their lack of knowledge or experience and/or the time constraints, developers sometimes may forget or even not be aware of suboptimal implementations. The loss of the TODO comments for these suboptimal solutions may hurt the software quality and reliability in the long-term. Therefore it is beneficial to remind the developers of the suboptimal solutions whenever they change the code. In this work, we refer this problem to the task of detecting TODO-missed commits, and we propose a novel approach named TDReminder (TODO comment Reminder) to address the task. With the help of TDReminder, developers can identify possible missing TODO commits just-in-time when submitting a commit. Our approach has two phases: offline training and online inference. We first embed code change and commit message into contextual vector representations using two neural encoders respectively. The association between these representations is learned by our model automatically. In the online inference phase, TDReminder leverages the trained model to compute the likelihood of a commit being a TODO-missed commit. We evaluate TDReminder on datasets crawled from 10k popular Python and Java repositories in GitHub respectively. Our experimental results show that TDReminder outperforms a set of benchmarks by a large margin in TODO-missed commits detection. Moreover, to better help developers use TDReminder in practice, we have incorporated Large Language Models (LLMs) with our approach to provide explainable recommendations. The user study shows that our tool can effectively inform developers not only "when" to add TODOs, but also "where" and "what" TODOs should be added, verifying the value of our tool in practical application.
引用
收藏
页码:2732 / 2752
页数:21
相关论文
共 50 条
  • [31] Moving Window and Just-in-Time Soft Sensor Model Based on Time Differences Considering a Small Number of Measurements
    Kaneko, Hiromasa
    Funatsu, Kimito
    INDUSTRIAL & ENGINEERING CHEMISTRY RESEARCH, 2015, 54 (02) : 700 - 704
  • [32] Improving the Performance of Just-In-Time Learning-Based Soft Sensor Through Data Augmentation
    Jiang, Xiaoyu
    Ge, Zhiqiang
    IEEE TRANSACTIONS ON INDUSTRIAL ELECTRONICS, 2022, 69 (12) : 13716 - 13726
  • [33] Dynamic Optimization of Conflict-Free Routing of Automated Guided Vehicles for Just-in-Time Delivery
    Nishida, Kosei
    Nishi, Tatsushi
    IEEE TRANSACTIONS ON AUTOMATION SCIENCE AND ENGINEERING, 2023, 20 (03) : 2099 - 2114
  • [34] Just-in-time defect prediction enhanced by the joint method of line label fusion and file filtering
    Zhang, Huan
    Kuang, Li
    Wu, Aolang
    Zhao, Qiuming
    Yang, Xiaoxian
    IET SOFTWARE, 2023, 17 (04) : 378 - 391
  • [35] Just-in-Time Kernel Learning with Adaptive Parameter Selection for Soft Sensor Modeling of Batch Processes
    Liu, Yi
    Gao, Zengliang
    Li, Ping
    Wang, Haiqing
    INDUSTRIAL & ENGINEERING CHEMISTRY RESEARCH, 2012, 51 (11) : 4313 - 4327
  • [36] Simplified Deep Forest Model Based Just-in-Time Defect Prediction for Android Mobile Apps
    Zhao, Kunsong
    Xu, Zhou
    Zhang, Tao
    Tang, Yutian
    Yan, Meng
    IEEE TRANSACTIONS ON RELIABILITY, 2021, 70 (02) : 848 - 859
  • [37] Integrated parameter optimization approach: Just-in-time (JIT) operational control strategy for TBM tunnelling
    Li, Xiaojun
    Zhao, Sicheng
    Shen, Yi
    Li, Gang
    Zhu, Hehua
    TUNNELLING AND UNDERGROUND SPACE TECHNOLOGY, 2023, 135
  • [38] Integration of just-in-time learning with variational autoencoder for cell culture process monitoring based on Raman spectroscopy
    Rashedi, Mohammad
    Khodabandehlou, Hamid
    Wang, Tony
    Demers, Matthew
    Tulsyan, Aditya
    Garvin, Christopher
    Undey, Cenk
    BIOTECHNOLOGY AND BIOENGINEERING, 2024, 121 (07) : 2205 - 2224
  • [39] A Novel Just-in-Time Learning Strategy for Soft Sensing with Improved Similarity Measure Based on Mutual Information and PLS
    Song, Yueli
    Ren, Minglun
    SENSORS, 2020, 20 (13) : 1 - 18
  • [40] Wireless just-in-time training of mobile skilled support personnel - art. no. 62500R
    Bandera, Cesar
    Marsico, Michael
    Rosen, Mitchel
    Schlegel, Barry
    Mobile Multimedia/Image Processing for Military and Security Applications, 2006, 6250 : R2500 - R2500