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

一种自动生成的新缺陷数据集及其在缺陷预测中的验证

An Automatically Created Novel Bug Dataset and its Validation in Bug Prediction

Rudolf Ferenc, Péter Gyimesi, Gábor Gyimesi, Zoltán Tóth, Tibor Gyimóthy

摘要:

在软件开发过程中,由于频繁的代码更改,紧迫的期限等,错误是不可避免的;因此,重要的是要有工具来发现这些错误。执行错误识别的一种方式是分析来自过去的有错误的源代码元素的特性,并且使用例如机器学习模型基于相同的特性来预测当前的源代码元素。为了支持模型构建任务,代码元素及其特征被收集在所谓的错误数据集中,作为学习的输入。我们介绍\emph{BugHunter Dataset}:一种新型的自动构建和免费可用的bug数据集,包含具有广泛代码度量和bug信息的代码元素(文件,类,方法)。其他可用的bug数据集遵循传统的方法,即仅在代码的一个或多个预先选择的发布版本中收集所有源代码元素(有bug和无bug)的特征。我们的方法,另一方面,捕获的错误和固定状态的相同的源代码元素从最短的时间内,我们可以确定一个错误的存在,无论发布版本。为了展示新数据集的有用性,我们构建并评估了错误预测模型,并实现了超过0.74的F-测量值。

英文摘要:

Bugs are inescapable during software development due to frequent code changes, tight deadlines, etc.; therefore, it is important to have tools to find these errors. One way of performing bug identification is to analyze the characteristics of buggy source code elements from the past and predict the present ones based on the same characteristics, using e.g. machine learning models. To support model building tasks, code elements and their characteristics are collected in so-called bug datasets which serve as the input for learning. We present the \emph{BugHunter Dataset}: a novel kind of automatically constructed and freely available bug dataset containing code elements (files, classes, methods) with a wide set of code metrics and bug information. Other available bug datasets follow the traditional approach of gathering the characteristics of all source code elements (buggy and non-buggy) at only one or more pre-selected release versions of the code. Our approach, on the other hand, captures the buggy and the fixed states of the same source code elements from the narrowest timeframe we can identify for a bug's presence, regardless of release versions. To show the usefulness of the new dataset, we built and evaluated bug prediction models and achieved F-measure values over 0.74.

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

↑