arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2407.10906cs.SE
收藏

即时多编程语言缺陷预测的探索性研究

An Exploratory Study on Just-in-Time Multi-Programming-Language Bug Prediction

Zengyang Li, Jiabao Ji, Peng Liang, Ran Mo, Hui Liu

AI总结:

本研究针对多编程语言系统缺陷预测缺失的问题,选取指标构建即时多编程语言缺陷预测模型,验证了随机森林的适用性、核心指标的作用及跨项目预测的可行性。

摘要:

研究背景:越来越多的软件系统采用多种编程语言(PL)编写,这类系统被称为多编程语言(MPL)系统。多编程语言缺陷(MPLB)指修复过程涉及多种编程语言的缺陷。尽管MPLB的修复复杂度很高,但目前仍缺乏MPLB预测方法。研究目标:本研究旨在利用选定的预测指标构建即时(JIT)MPLB预测模型,分析各指标的重要性,进而评估跨项目JIT MPLB预测的性能。研究方法:我们采用机器学习算法,基于选定指标构建JIT MPLB预测模型,并基于我们构建的、涵盖18个Apache MPL项目的数据集,在项目内和跨项目场景下评估模型性能。研究结果:随机森林(Random Forest)适用于JIT MPLB预测。所有文件的变更代码行数、所有文件的新增代码行数,以及项目当前所有文件的总行数是JIT MPLB预测中最关键的指标。仅使用少数排名靠前的指标即可简化预测模型。在跨项目JIT MPLB预测中,使用多项目数据集训练得到的模型AUC显著高于使用单项目数据集训练的模型。研究结论:利用选定的指标集可以构建JIT MPLB预测模型,且可通过缩减指标集构建简化的JIT MPLB预测模型,同时跨项目JIT MPLB预测具备可行性。

英文摘要:

Context: An increasing number of software systems are written in multiple programming languages (PLs), which are called multi-programming-language (MPL) systems. MPL bugs (MPLBs) refers to the bugs whose resolution involves multiple PLs. Despite high complexity of MPLB resolution, there lacks MPLB prediction methods. Objective: This work aims to construct just-in-time (JIT) MPLB prediction models with selected prediction metrics, analyze the significance of the metrics, and then evaluate the performance of cross-project JIT MPLB prediction. Method: We develop JIT MPLB prediction models with the selected metrics using machine learning algorithms and evaluate the models in within-project and cross-project contexts with our constructed dataset based on 18 Apache MPL projects. Results: Random Forest is appropriate for JIT MPLB prediction. Changed LOC of all files, added LOC of all files, and the total number of lines of all files of the project currently are the most crucial metrics in JIT MPLB prediction. The prediction models can be simplified using a few top-ranked metrics. Training on the dataset from multiple projects can yield significantly higher AUC than training on the dataset from a single project for cross-project JIT MPLB prediction. Conclusions: JIT MPLB prediction models can be constructed with the selected set of metrics, which can be reduced to build simplified JIT MPLB prediction models, and cross-project JIT MPLB prediction is feasible.

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

↑