Leveraging Historical Associations between Requirements and Source Code to Identify Impacted Classes

被引:10
作者
Falessi, Davide [1 ]
Roll, Justin [1 ]
Guo, Jin L. C. [2 ]
Cleland-Huang, Jane [3 ]
机构
[1] Calif Polytech State Univ San Luis Obispo, San Luis Obispo, CA 93407 USA
[2] McGill Univ, Sch Comp Sci, Montreal, PQ H3A 0G4, Canada
[3] Univ Notre Dame, Comp Sci & Engn, South Bend, IN 46556 USA
基金
美国国家科学基金会;
关键词
Measurement; Semantics; Natural language processing; Complexity theory; Open source software; Task analysis; Impact analysis; mining software repositories; traceability; SOFTWARE; LINKS; VALIDATION; GENERATION; MANAGEMENT; METRICS; AGILE;
D O I
10.1109/TSE.2018.2861735
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
As new requirements are introduced and implemented in a software system, developers must identify the set of source code classes which need to be changed. Therefore, past effort has focused on predicting the set of classes impacted by a requirement. In this paper, we introduce and evaluate a new type of information based on the intuition that the set of requirements which are associated with historical changes to a specific class are likely to exhibit semantic similarity to new requirements which impact that class. This new Requirements to Requirements Set (R2RS) family of metrics captures the semantic similarity between a new requirement and the set of existing requirements previously associated with a class. The aim of this paper is to present and evaluate the usefulness of R2RS metrics in predicting the set of classes impacted by a requirement. We consider 18 different R2RS metrics by combining six natural language processing techniques to measure the semantic similarity among texts (e.g., VSM) and three distribution scores to compute overall similarity (e.g., average among similarity scores). We evaluate if R2RS is useful for predicting impacted classes in combination and against four other families of metrics that are based upon temporal locality of changes, direct similarity to code, complexity metrics, and code smells. Our evaluation features five classifiers and 78 releases belonging to four large open-source projects, which result in over 700,000 candidate impacted classes. Experimental results show that leveraging R2RS information increases the accuracy of predicting impacted classes practically by an average of more than 60 percent across the various classifiers and projects.
引用
收藏
页码:420 / 441
页数:22
相关论文
共 120 条
  • [1] Acharya M, 2011, 2011 33RD INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), P746, DOI 10.1145/1985793.1985898
  • [2] [Anonymous], 2009, Entropy and information theory
  • [3] [Anonymous], 2018, Addison-Wesley Signature Series
  • [4] [Anonymous], 2016, EMPIR SOFTW ENG
  • [5] [Anonymous], ILM12011200618 TU IL
  • [6] [Anonymous], 2011, INT S FDN SOFTWARE E, DOI DOI 10.1145/2024445.2024454
  • [7] [Anonymous], THESIS
  • [8] [Anonymous], APACHE IGNITE PROJEC
  • [9] [Anonymous], APACHE ISIS PROJECT
  • [10] [Anonymous], APACHE ACCUMULO PROJ