软件变更本地化的结构化信息检索策略
Structured Information Retrieval Strategies for Localising Software Changes
摘要:
在软件维护和演化过程中,开发人员需要通过修改现有代码或向系统中添加代码来处理大量的更改请求。有效处理变更请求需要准确定位软件变更,即确定哪些代码有问题,以及对于手头的任何类型的变更请求(如错误报告或功能请求),应在何处添加新文件。现有的自动技术,这个变化的本地化问题是有限的,在两个方面:一方面,他们只限于处理特定类型的更改请求;另一方面,他们专注于寻找文件,应修改的更改请求,但几乎没有能力推荐什么文件或包可能是新创建的。为了解决这些限制,我们受到启发,提出了一种通用的更改本地化方法来识别要修改的文件(主要是bug),同时指出应该为任意类型的更改请求创建新文件或包(主要是新功能请求)。为了解决预测要创建的程序元素的关键挑战,我们建议的SeekChanges方法利用Java项目的分层包结构,并将更改本地化问题建模为结构化信息检索(IR)任务。三个结构化的IR战略进行了系统的调查,得分和排名的文件,应该修改和软件包中,新的文件应该创建,以解决变更请求。在Apache软件基金会的四个开源Java项目上进行的大量实验表明,结构化IR策略在推荐新创建的文件方面具有良好的性能,而本地化更改请求的整体性能同样令人满意。
英文摘要:
During software maintenance and evolution, developers need to deal with a large number of change requests by modifying existing code or adding code into the system. An efficient tackling of change request calls for an accurate localising of software changes, i.e. identifying which code are problematic and where new files should be added for any type of change request at hand, such as a bug report or a feature request. Existing automatic techniques for this change localisation problem are limited in two aspects: on the one hand, they are only limited to tackle a specific type of change request; on the other hand, they are focused on finding files that should be modified for a change request, yet barely capable of recommending what files or packages might be newly created. To address the limitations, we are inspired to propose a generalised change localisation approach to identify the to-be-modified files (mostly for bugs), and at the same time point out where new files or packages should be created (mostly for new feature requests) for an arbitrary type of change request. In order to tackle the key challenge of predicting to-be-created program elements, our proposed SeekChanges approach leverages the hierarchical package structure for Java projects, and model the change localisation problem as a structured information retrieval (IR) task. A systematic investigation of three structured IR strategies is carried out for scoring and ranking both the files that should be modified and the software packages in which the new files should be created to address change requests. Extensive experiments on four open source Java projects from the Apache Software Foundation demonstrate that structured IR strategies have a good performance on recommending newly created files, while the overall performance of localising change requests is equally satisfactory.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。