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

挖掘FindBugs违规的修复模式

Mining Fix Patterns for FindBugs Violations

Kui Liu, Dongsun Kim, Tegawendé F. Bissyandé, Shin Yoo, Yves Le Traon

摘要:

在本文中,我们首先收集和跟踪大量的固定和未固定的违反修订的软件。实证分析表明,在发现的违规行为的分布和那些固定的,在发生率,蔓延和类别,这可以提供洞察优先侵权行为方面的差异。为了自动识别违规模式及其修复,我们提出了一种利用卷积神经网络来学习特征和聚类以重组相似实例的方法。然后,我们通过将其应用于未固定的违规行为来评估所确定的修复模式的有用性。结果表明,开发人员将接受并合并大多数(69/116)从推断的修复模式生成的修复。同样值得注意的是,产生的模式适用于软件测试和自动修复的Defects 4J主要基准测试中的四个真实错误。

英文摘要:

In this paper, we first collect and track a large number of fixed and unfixed violations across revisions of software. The empirical analyses reveal that there are discrepancies in the distributions of violations that are detected and those that are fixed, in terms of occurrences, spread and categories, which can provide insights into prioritizing violations. To automatically identify patterns in violations and their fixes, we propose an approach that utilizes convolutional neural networks to learn features and clustering to regroup similar instances. We then evaluate the usefulness of the identified fix patterns by applying them to unfixed violations. The results show that developers will accept and merge a majority (69/116) of fixes generated from the inferred fix patterns. It is also noteworthy that the yielded patterns are applicable to four real bugs in the Defects4J major benchmark for software testing and automated repair.

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

↑