arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1606.03266cs.SE
收藏

小心这个承诺!影响性软件变更研究

Watch out for This Commit! A Study of Influential Software Changes

Daoyuan Li, Li Li, Dongsun Kim, Tegawendé F. Bissyandé, David Lo, Yves Le Traon

摘要:

一个单一的代码更改可能会对广泛的软件系统及其用户产生重大影响。例如,1)添加新功能可能会将缺陷分散到多个模块中,而2)更改API方法可以提高所有客户端程序的性能。开发人员在提交时通常不清楚他们或其他人的更改是否有影响力。相反,它在影响系统的许多方面之后才有影响力。本文研究了有影响力的软件变更,并提出了一种方法来识别他们早期,即,当它们被应用时。我们首先进行了事后分析,发现现有的影响力的变化,通过使用的直觉,如孤立的变化和变化所涉及的其他变化在10个开源项目。然后,我们通过一个开放的卡片排序过程对所有已识别的更改进行重新分类。随后,我们对89名开发人员进行了调查,以确认我们有影响力的变化类别。最后,我们从我们的地面真相中提取特征,包括变更的复杂性、提交日志中的术语和协同变更图中的文件中心性等指标,以构建机器学习分类器。实验结果表明,我们的预测模型在随机样本的情况下分别达到了86.8%的准确率、74%的召回率和80.4%的F-测度。

英文摘要:

One single code change can significantly influence a wide range of software systems and their users. For example, 1) adding a new feature can spread defects in several modules, while 2) changing an API method can improve the performance of all client programs. Developers often may not clearly know whether their or others' changes are influential at commit time. Rather, it turns out to be influential after affecting many aspects of a system later. This paper investigates influential software changes and proposes an approach to identify them early, i.e., immediately when they are applied. We first conduct a post-mortem analysis to discover existing influential changes by using intuitions such as isolated changes and changes referred by other changes in 10 open source projects. Then we re-categorize all identified changes through an open-card sorting process. Subsequently, we conduct a survey with 89 developers to confirm our influential change categories. Finally, from our ground truth we extract features, including metrics such as the complexity of changes, terms in commit logs and file centrality in co-change graphs, to build machine learning classifiers. The experiment results show that our prediction model achieves overall with random samples 86.8% precision, 74% recall and 80.4% F-measure respectively.

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

↑