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

基于文本相似度的故障定位

Fault Localization Using Textual Similarities

Zachary P. Fry, Westley Weimer

摘要:

维护是软件成本的主要组成部分,并且本地化报告的缺陷是维护的重要组成部分。我们提出了一种可扩展的方法,利用缺陷报告和源代码中存在的自然语言来识别可能与所讨论的缺陷相关的文件。我们的技术是独立于语言的,不需要测试用例。该方法将报告和代码表示为单独的结构化文档,并基于利用文档间关系的文档相似性度量对源文件进行排名。我们评估了我们的方法对轻量级基线技术和最先进的工具的结果报告的故障定位精度。在经验评估的5345个历史缺陷,从程序总计650万行代码,我们的方法减少了超过91%的文件检查每个缺陷。此外,我们定性和定量地研究我们的方法所使用的文本和表面特征的效用。

英文摘要:

Maintenance is a dominant component of software cost, and localizing reported defects is a significant component of maintenance. We propose a scalable approach that leverages the natural language present in both defect reports and source code to identify files that are potentially related to the defect in question. Our technique is language-independent and does not require test cases. The approach represents reports and code as separate structured documents and ranks source files based on a document similarity metric that leverages inter-document relationships. We evaluate the fault-localization accuracy of our method against both lightweight baseline techniques and also reported results from state-of-the-art tools. In an empirical evaluation of 5345 historical defects from programs totaling 6.5 million lines of code, our approach reduced the number of files inspected per defect by over 91%. Additionally, we qualitatively and quantitatively examine the utility of the textual and surface features used by our approach.

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

↑