arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2202.02387cs.SEcs.AI
收藏

从四种不同来源自动识别自认技术债务

Automatic Identification of Self-Admitted Technical Debt from Four Different Sources

University of Groningen(格罗宁根大学)

Yikun Li, Mohamed Soliman, Paris Avgeriou

AI总结:

本文提出整合代码注释、提交消息、拉取请求和问题跟踪系统四类来源的 SATD 自动识别方法,F1 达 0.611,并基于 103 个开源项目揭示其分布、关键词与跨来源关系。

摘要:

技术债务是指为实现短期目标而采取捷径,却牺牲软件系统长期可维护性和可演化性的做法。很大一部分技术债务由开发者自己明确报告,这通常被称为自认技术债务(Self-Admitted Technical Debt,SATD)。以往工作集中于从源代码注释和问题跟踪器中识别 SATD。然而,目前尚无从提交消息、拉取请求等其他来源,或通过组合多种来源自动识别 SATD 的方法。因此,我们提出并评估了一种自动化 SATD 识别方法,该方法整合了四种来源:源代码注释、提交消息、拉取请求和问题跟踪系统。研究结果表明,我们的方法优于基线方法,在从上述四种来源检测四类 SATD(即代码/设计债务、需求债务、文档债务和测试债务)时,平均 F1 分数达到 0.611。随后,我们分析了 2360 万条代码注释、130 万条提交消息、370 万个问题部分和 170 万个拉取请求部分,以刻画 103 个开源项目中的 SATD 特征。此外,我们还研究了 SATD 关键词以及不同来源中 SATD 之间的关系。结果尤其表明:1)SATD 均匀分布在所有来源中;2)就共享 SATD 关键词的数量而言,问题和拉取请求是最相似的两个来源,其次是提交消息,再其次是代码注释;3)不同来源中的 SATD 项之间存在四种关系。

英文摘要:

Technical debt refers to taking shortcuts to achieve short-term goals while sacrificing the long-term maintainability and evolvability of software systems. A large part of technical debt is explicitly reported by the developers themselves; this is commonly referred to as Self-Admitted Technical Debt or SATD. Previous work has focused on identifying SATD from source code comments and issue trackers. However, there are no approaches available for automatically identifying SATD from other sources such as commit messages and pull requests, or by combining multiple sources. Therefore, we propose and evaluate an approach for automated SATD identification that integrates four sources: source code comments, commit messages, pull requests, and issue tracking systems. Our findings show that our approach outperforms baseline approaches and achieves an average F1-score of 0.611 when detecting four types of SATD (i.e., code/design debt, requirement debt, documentation debt, and test debt) from the four aforementioned sources. Thereafter, we analyze 23.6M code comments, 1.3M commit messages, 3.7M issue sections, and 1.7M pull request sections to characterize SATD in 103 open-source projects. Furthermore, we investigate the SATD keywords and relations between SATD in different sources. The findings indicate, among others, that: 1) SATD is evenly spread among all sources; 2) issues and pull requests are the two most similar sources regarding the number of shared SATD keywords, followed by commit messages, and then followed by code comments; 3) there are four kinds of relations between SATD items in the different sources.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑