arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1808.10033cs.SE
收藏

Source Code相似性检验在软件缺陷预测中的应用

Use of Source Code Similarity Metrics in Software Defect Prediction

Ahmet Okutan

摘要:

近年来,缺陷预测在经验软件工程领域受到了极大的关注。在维护阶段之前预测软件缺陷对于降低软件维护成本和提高软件产品的整体质量具有重要意义。有不同类型的产品,过程和开发人员为基础的软件度量提出了迄今为止,以衡量软件系统的缺陷。本文建议使用一套新的软件度量标准,它是基于软件项目中的源代码文件之间的相似性检测。为了发现软件系统的不同文件之间的源代码相似性,使用剽窃和克隆检测技术。为每个文件计算两个简单的相似性度量,考虑其与项目中有缺陷和无缺陷文件的总体相似性。使用这些相似性度量,我们预测一个特定的文件是否有缺陷。我们在10个开放的源数据集上的实验表明,根据检测到的相似性的量,建议的度量可以实现显着更好的性能相比,现有的静态代码度量的曲线下面积(AUC)。

英文摘要:

In recent years, defect prediction has received a great deal of attention in the empirical software engineering world. Predicting software defects before the maintenance phase is very important not only to decrease the maintenance costs but also increase the overall quality of a software product. There are different types of product, process, and developer based software metrics proposed so far to measure the defectiveness of a software system. This paper suggests to use a novel set of software metrics which are based on the similarities detected among the source code files in a software project. To find source code similarities among different files of a software system, plagiarism and clone detection techniques are used. Two simple similarity metrics are calculated for each file, considering its overall similarity to the defective and non defective files in the project. Using these similarity metrics, we predict whether a specific file is defective or not. Our experiments on 10 open source data sets show that depending on the amount of detected similarity, proposed metrics could achieve significantly better performance compared to the existing static code metrics in terms of the area under the curve (AUC).

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

↑