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

RunBugRun——面向自动程序修复的可执行数据集

RunBugRun -- An Executable Dataset for Automated Program Repair

Julian Aron Prenner, Romain Robbes

AI总结:

本研究提出RunBugRun数据集,包含45万对多语言可执行有缺陷/已修复程序及编译测试基础设施,旨在推动神经程序修复超越静态代码表示并促进基于执行的特征使用。

摘要:

最近,我们可以注意到自动程序修复(APR)正向数据驱动技术转变,尤其是深度神经网络。这需要在数十万甚至数百万个不可执行的代码片段上进行训练。我们希望引起人们对神经程序修复(NPR)中常被忽视的代码执行方面的关注。代码执行具有几个显著优势:它允许对候选修复进行基于测试的评估,并能提供有价值的信息以辅助修复。在本研究中,我们提出了一个包含450,000对小型有缺陷/已修复程序对的完全可执行数据集,这些程序最初提交至编程竞赛网站,使用八种不同的编程语言编写。伴随该数据集,我们提供了用于编译、安全执行和测试程序的基础设施,以及细粒度的缺陷类型标签。作为参考,我们提供了两个基线的基本评估结果:一个基于生成并验证的方法,另一个基于深度学习。通过该数据集,我们希望实现以下目标:推动神经程序修复超越完全静态的代码表示,促进基于执行的特征的使用,并通过纳入多种不同语言,平衡当前APR数据集和基准中Java的主导地位。

英文摘要:

Recently, we can notice a transition to data-driven techniques in Automated Program Repair (APR), in particular towards deep neural networks. This entails training on hundreds of thousands or even millions of non-executable code fragments. We would like to bring more attention to an aspect of code often neglected in Neural Program Repair (NPR), namely its execution. Code execution has several significant advantages. It allows for test-based evaluation of candidate fixes and can provide valuable information to aid repair. In this work we present a fully executable dataset of 450,000 small buggy/fixed program pairs originally submitted to programming competition websites written in eight different programming languages. Along with the dataset we provide infrastructure to compile, safely execute and test programs as well as fine-grained bug-type labels. To give a point of reference, we provide basic evaluation results for two baselines, one based on a generate-and-validate approach and one on deep learning. With this dataset we follow several goals: we want to lift Neural Program Repair beyond fully static code representations, foster the use of execution-based features and, by including several different languages, counterbalance the predominance of Java in the current landscape of APR datasets and benchmarks.

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

↑