基于IR的分类器配置对方法级缺陷定位性能和工作量的影响
The Impact of IR-based Classifier Configuration on the Performance and the Effort of Method-Level Bug Localization
摘要:
上下文:基于IR的错误定位是一个分类器,它帮助开发人员定位有错误的源代码实体(例如,文件和方法)。这种基于IR的分类器具有可以不同地配置的各种参数(例如,实体表示的选择)。目的:在本文中,我们调查的影响,选择基于IR的分类器配置的top-k性能和所需的努力,以检查源代码实体之前,定位在方法级别的错误。方法:我们对两个软件系统的5,266个错误报告执行了大空间的分类器配置,总共3,172个,即,Eclipse和Mozilla结果如下:我们发现:(1)分类器配置的选择对top-k性能的影响从0.44%到36%,所需的工作量从4,395到50,000 Kbps;(2)具有相似top-k性能的分类器配置可能需要不同的工作量;(3)VSM实现了最好的top-k性能和方法级错误定位所需的最少工作量;(4)随机挑选在最佳前k分类器配置的20%内执行的配置的可能性平均为5.4%,并且最小努力的可能性平均为1%;(5)与分析数据的实体表示相关的配置对前k性能和所需努力两者具有最大影响;以及(6)在方法级获得的最有效的分类器配置也可以在文件级使用(反之亦然)。结论:我们的研究结果使我们得出这样的结论,配置有很大的影响的top-k的性能和所需的努力方法级的错误定位,建议基于IR的配置设置应仔细选择和所需的努力度量应包括在未来的错误定位研究。
英文摘要:
Context: IR-based bug localization is a classifier that assists developers in locating buggy source code entities (e.g., files and methods) based on the content of a bug report. Such IR-based classifiers have various parameters that can be configured differently (e.g., the choice of entity representation). Objective: In this paper, we investigate the impact of the choice of the IR-based classifier configuration on the top-k performance and the required effort to examine source code entities before locating a bug at the method level. Method: We execute a large space of classifier configuration, 3,172 in total, on 5,266 bug reports of two software systems, i.e., Eclipse and Mozilla. Results: We find that (1) the choice of classifier configuration impacts the top-k performance from 0.44% to 36% and the required effort from 4,395 to 50,000 LOC; (2) classifier configurations with similar top-k performance might require different efforts; (3) VSM achieves both the best top-k performance and the least required effort for method-level bug localization; (4) the likelihood of randomly picking a configuration that performs within 20% of the best top-k classifier configuration is on average 5.4% and that of the least effort is on average 1%; (5) configurations related to the entity representation of the analyzed data have the most impact on both the top-k performance and the required effort; and (6) the most efficient classifier configuration obtained at the method-level can also be used at the file-level (and vice versa). Conclusion: Our results lead us to conclude that configuration has a large impact on both the top-k performance and the required effort for method-level bug localization, suggesting that the IR-based configuration settings should be carefully selected and the required effort metric should be included in future bug localization studies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。