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

一种自动化的bug修复模式检测方法

Towards an automated approach for bug fix pattern detection

Fernanda Madeiral, Thomas Durieux, Victor Sobreira, Marcelo Maia

摘要:

缺陷数据集的特征是必不可少的,以支持自动程序修复工具的评估。在以前的工作中,我们手动研究了Defects4J数据集中近400个人类编写的补丁(bug修复),并使用属性(如修复模式)对其进行注释。然而,在不同的数据集中手动查找这些模式是繁琐和耗时的。为了解决这个问题,我们设计并实现了PPD,补丁中的修复模式检测器,它在抽象语法树级别执行源代码更改分析。在本文中,我们报告了PPD及其对Defects4J的评估,其中我们将自动检测的结果与以前的手动分析结果进行了比较。我们发现,PPD的总体精确度为91%,总体召回率为92%,我们得出结论,PPD有可能检测到尽可能多的修复模式,人类手动分析。

英文摘要:

The characterization of bug datasets is essential to support the evaluation of automatic program repair tools. In a previous work, we manually studied almost 400 human-written patches (bug fixes) from the Defects4J dataset and annotated them with properties, such as repair patterns. However, manually finding these patterns in different datasets is tedious and time-consuming. To address this activity, we designed and implemented PPD, a detector of repair patterns in patches, which performs source code change analysis at abstract-syntax tree level. In this paper, we report on PPD and its evaluation on Defects4J, where we compare the results from the automated detection with the results from the previous manual analysis. We found that PPD has overall precision of 91% and overall recall of 92%, and we conclude that PPD has the potential to detect as many repair patterns as human manual analysis.

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

↑