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

缺陷减少计划(使用TimeLIME)

Defect Reduction Planning (using TimeLIME)

Kewen Peng, Tim Menzies

摘要:

软件发布。对软件的难以置信的更改是在以前的版本中从未更改过的东西。当计划如何减少缺陷时,最好使用合理的更改,即,在以前的版本中有一些优先级的更改。为了证明这些点,本文比较了几个缺陷减少规划工具。LIME是一种局部敏感性分析工具,可以报告更改某些代码模块(例如,从“有缺陷”到“无缺陷”)。TimeLIME是本文介绍的一个新工具,它通过将计划限制在项目中变化最大的属性上来改进LIME。在这项研究中,我们比较了LIME和TimeLIME以及其他几种缺陷减少规划算法的性能。生成的计划通过以下方式进行评估:(a)拟议的代码更改与开发人员进行的实际代码更改之间的相似性得分;以及(b)遵循计划的项目中的改进得分。对于9个项目试验,我们发现TimeLIME优于所有其他算法(9次试验中有8次)。因此,我们强烈建议使用过去的版本作为计算新版本修复的知识来源(使用TimeLIME)。除了这些关于规划缺陷减少和TimeLIME的具体结果之外,本文更普遍的观点是,我们的社区应该在使用现成的AI工具时更加小心,而不是首先应用SE知识。在这个案例研究中,用SE知识来增强标准AI算法并不难(过去的版本是规划缺陷减少的良好知识来源)。如图所示,一旦应用了SE知识,就可以产生更好的系统。

英文摘要:

Software comes in releases. An implausible change to software is something that has never been changed in prior releases. When planning how to reduce defects, it is better to use plausible changes, i.e., changes with some precedence in the prior releases. To demonstrate these points, this paper compares several defect reduction planning tools. LIME is a local sensitivity analysis tool that can report the fewest changes needed to alter the classification of some code module (e.g., from "defective" to "non-defective"). TimeLIME is a new tool, introduced in this paper, that improves LIME by restricting its plans to just those attributes which change the most within a project. In this study, we compared the performance of LIME and TimeLIME and several other defect reduction planning algorithms. The generated plans were assessed via (a) the similarity scores between the proposed code changes and the real code changes made by developers; and (b) the improvement scores seen within projects that followed the plans. For nine project trails, we found that TimeLIME outperformed all other algorithms (in 8 out of 9 trials). Hence, we strongly recommend using past releases as a source of knowledge for computing fixes for new releases (using TimeLIME). Apart from these specific results about planning defect reductions and TimeLIME, the more general point of this paper is that our community should be more careful about using off-the-shelf AI tools, without first applying SE knowledge. In this case study, it was not difficult to augment a standard AI algorithm with SE knowledge (that past releases are a good source of knowledge for planning defect reductions). As shown here, once that SE knowledge is applied, this can result in dramatically better systems.

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

↑