arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1711.05340cs.SE
收藏

通过利用Source Code更改来增强对维护活动的自动提交分类

Boosting Automatic Commit Classification Into Maintenance Activities By Utilizing Source Code Changes

Stanislav Levin, Amiram Yehudai

摘要:

背景资料:了解在源代码存储库中执行的维护活动可以帮助从业人员减少不确定性,并通过提前规划和预分配资源来提高成本效益。研究界使用3个主要的分类类别进行维护活动:纠正:故障修复;完善:系统改进;适应:新功能引入。以前在这方面的工作主要集中在评估提交分类(到维护活动)模型在一个单一的软件项目的范围。目的:在这项工作中,我们试图设计一个提交分类模型,能够提供高精度和Kappa在不同的项目。此外,我们希望比较利用词频分析、源代码变化及其组合的分类模型的准确性和Kappa特性。方法:我们提出了一种新的方法,自动分类到维护活动的提交,利用源代码的变化(例如,语句添加,方法删除等)。我们报告的结果是基于研究来自不同专业领域的11个流行的开源项目,我们手动分类了1151个提交,每个研究项目超过100个。我们的模型使用85%的数据集进行训练,而剩下的15%用作测试集。结果如下:我们的方法显示了76%的准确率和63%的科恩kappa(在这种情况下被认为是“好”)的测试数据集,超过20个百分点的改进,以及在跨项目分类的背景下相对提升约40%。结论:我们表明,通过使用源代码更改与提交消息词频分析相结合,我们能够以项目不可知的方式大大提高分类质量。

英文摘要:

Background: Understanding maintenance activities performed in a source code repository could help practitioners reduce uncertainty and improve cost-effectiveness by planning ahead and pre-allocating resources towards source code maintenance. The research community uses 3 main classification categories for maintenance activities: Corrective: fault fixing; Perfective: system improvements; Adaptive: new feature introduction. Previous work in this area has mostly concentrated on evaluating commit classification (into maintenance activities) models in the scope of a single software project. Aims: In this work we seek to design a commit classification model capable of providing high accuracy and Kappa across different projects. In addition, we wish to compare the accuracy and kappa characteristics of classification models that utilize word frequency analysis, source code changes, and combination thereof. Method: We suggest a novel method for automatically classifying commits into maintenance activities by utilizing source code changes (e.g, statement added, method removed, etc.). The results we report are based on studying 11 popular open source projects from various professional domains from which we had manually classified 1151 commits, over 100 from each of the studied projects. Our models were trained using 85% of the dataset, while the remaining 15% were used as a test set. Results: Our method shows a promising accuracy of 76% and Cohen's kappa of 63% (considered "Good" in this context) for the test dataset, an improvement of over 20 percentage points, and a relative boost of ~40% in the context of cross-project classification. Conclusions: We show that by using source code changes in combination with commit message word frequency analysis we are able to considerably boost classification quality in a project agnostic manner.

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

↑