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

真实错误的自动修复:基于Defects4J数据集的经验报告

Automatic Repair of Real Bugs: An Experience Report on the Defects4J Dataset

Matias Martinez, Thomas Durieux, Jifeng Xuan, Romain Sommerard, Martin Monperrus

摘要:

Defects4J是一个大型的、同行评审的、结构化的Java bug数据集。Defects4J中的每个bug都提供了一个测试套件和至少一个触发bug的失败测试用例。在本文中,我们报告了一个实验,以探讨自动修复缺陷4J的有效性。我们的实验结果表明,缺陷4J数据集的47个错误可以通过最先进的修复自动修复。这为Java自动修复的未来研究奠定了基础。我们手动分析了84个不同的补丁,以评估它们的真实正确性。总的来说,9个真正的Java bug可以通过基于测试套件的修复来正确修复。该分析表明,基于测试套件的修复遭受未指定的错误,其中琐碎和不正确的补丁仍然通过测试套件。就实用性而言,找到一个补丁平均需要14.8分钟。实验是在科学网格上进行的,总共计算时间为17.6天。他们所有的系统和实验结果都在Github上公开,以方便未来对自动修复的研究。

英文摘要:

Defects4J is a large, peer-reviewed, structured dataset of real-world Java bugs. Each bug in Defects4J is provided with a test suite and at least one failing test case that triggers the bug. In this paper, we report on an experiment to explore the effectiveness of automatic repair on Defects4J. The result of our experiment shows that 47 bugs of the Defects4J dataset can be automatically repaired by state-of- the-art repair. This sets a baseline for future research on automatic repair for Java. We have manually analyzed 84 different patches to assess their real correctness. In total, 9 real Java bugs can be correctly fixed with test-suite based repair. This analysis shows that test-suite based repair suffers from under-specified bugs, for which trivial and incorrect patches still pass the test suite. With respect to practical applicability, it takes in average 14.8 minutes to find a patch. The experiment was done on a scientific grid, totaling 17.6 days of computation time. All their systems and experimental results are publicly available on Github in order to facilitate future research on automatic repair.

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

↑