arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.13334cs.SEcs.PL
收藏

单语句错误发生的频率是多少?ManySStuBs4J数据集

How Often Do Single-Statement Bugs Occur? The ManySStuBs4J Dataset

Rafael-Michael Karampatsis, Charles Sutton

摘要:

程序修复是软件工程中的一个重要而又困难的问题。实现可接受性能的一种方法是关注简单bug的类,例如具有单个语句修复的bug,或者匹配一小组bug模板的bug。然而,很难估计简单错误的修复技术的召回率,因为没有关于相关错误在代码中发生频率的数据集。为了填补这一空白,我们提供了一个数据集,其中包含从1,000个流行的开源Java项目中挖掘出来的153,652个单语句错误修复更改,并通过它们是否匹配16个错误模板中的任何一个进行了注释,这些模板的灵感来自最先进的程序修复技术。在最初的分析中,我们发现大约33%的简单错误修复与模板匹配,这表明相当数量的单语句错误可以用相对较小的模板集修复。此外,我们发现模板拟合错误的出现频率约为每1,600 - 2,500行代码中出现一个错误(以项目最新版本的大小衡量)。我们希望该数据集将证明为未来的工作在程序修复和经验软件工程的研究资源。

英文摘要:

Program repair is an important but difficult software engineering problem. One way to achieve acceptable performance is to focus on classes of simple bugs, such as bugs with single statement fixes, or that match a small set of bug templates. However, it is very difficult to estimate the recall of repair techniques for simple bugs, as there are no datasets about how often the associated bugs occur in code. To fill this gap, we provide a dataset of 153,652 single statement bug-fix changes mined from 1,000 popular open-source Java projects, annotated by whether they match any of a set of 16 bug templates, inspired by state-of-the-art program repair techniques. In an initial analysis, we find that about 33% of the simple bug fixes match the templates, indicating that a remarkable number of single-statement bugs can be repaired with a relatively small set of templates. Further, we find that template fitting bugs appear with a frequency of about one bug per 1,600-2,500 lines of code (as measured by the size of the project's latest version). We hope that the dataset will prove a resource for both future work in program repair and studies in empirical software engineering.

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

↑