Using contextual information to predict co-changes

被引:14
作者
Wiese, Igor Scaliante [1 ]
Re, Reginaldo [1 ]
Steinmacher, Igor [1 ]
Kuroda, Rodrigo Takashi [2 ]
Oliva, Gustavo Ansaldi [3 ]
Treude, Christoph [3 ]
Gerosa, Marco Aurelio [3 ]
机构
[1] Fed Univ Technol Parana UTFPR, Comp Sci Dept, Campo Mourao, PR, Brazil
[2] Fed Univ Technol Parana UTFPR, PPGI PPGI UTFPR CP, Campo Mourao, PR, Brazil
[3] Univ Sao Paulo, Dept Comp Sci, Sao Paulo, SP, Brazil
基金
巴西圣保罗研究基金会;
关键词
Contextual information; Co-change prediction; Software change context; Change coupling; Change propagation; Change impact analysis;
D O I
10.1016/j.jss.2016.07.016
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Background: Co-change prediction makes developers aware of which artifacts will change together with the artifact they are working on. In the past, researchers relied on structural analysis to build prediction models. More recently, hybrid approaches relying on historical information and textual analysis have been proposed. Despite the advances in the area, software developers still do not use these approaches widely, presumably because of the number of false recommendations. We conjecture that the contextual information of software changes collected from issues, developers' communication, and commit meta-data captures the change patterns of software artifacts and can improve the prediction models. Objective: Our goal is to develop more accurate co-change prediction models by using contextual information from software changes. Method: We selected pairs of files based on relevant association rules and built a prediction model for each pair relying on their associated contextual information. We evaluated our approach on two open source projects, namely Apache CXF and Derby. Besides calculating model accuracy metrics, we also performed a feature selection analysis to identify the best predictors when characterizing co-changes and to reduce overfitting. Results: Our models presented low rates of false negatives (similar to 8% average rate) and false positives (similar to 11% average rate). We obtained prediction models with AUC values ranging from 0.89 to 1.00 and our models outperformed association rules, our baseline model, when we compared their precision values. Commit-related metrics were the most frequently selected ones for both projects. On average, 6 out of 23 metrics were necessary to build the classifiers. Conclusions: Prediction models based on contextual information from software changes are accurate and, consequently, they can be used to support software maintenance and evolution, warning developers when they miss relevant artifacts while performing a software change. (C) 2016 Elsevier Inc. All rights reserved.
引用
收藏
页码:220 / 235
页数:16
相关论文
共 72 条
[11]  
Bohner S. A., 1996, SOFTWARE CHANGE IMPA
[12]   Random forests [J].
Breiman, L .
MACHINE LEARNING, 2001, 45 (01) :5-32
[13]  
Brezillon P., 2004, P IFIP WG8 3 INT C D, P115
[14]  
Briand L.C., 1999, P IEEE INT C SOFT MA
[15]  
Canfora G., 2010, IEEE INT C SOFTW MAI
[16]   How changes affect software entropy: an empirical study [J].
Canfora, Gerardo ;
Cerulo, Luigi ;
Cimitile, Marta ;
Di Penta, Massimiliano .
EMPIRICAL SOFTWARE ENGINEERING, 2014, 19 (01) :1-38
[17]   Software Dependencies, Work Dependencies, and Their Impact on Failures [J].
Cataldo, Marcelo ;
Mockus, Audris ;
Roberts, Jeffrey A. ;
Herbsleb, James D. .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2009, 35 (06) :864-878
[18]  
Ceccarelli M., 2010, 2010 32nd International Conference on Software Engineering (ICSE), P163, DOI 10.1145/1810295.1810320
[19]  
CONWAY ME, 1968, DATAMATION, V14, P28
[20]   Evaluating defect prediction approaches: a benchmark and an extensive comparison [J].
D'Ambros, Marco ;
Lanza, Michele ;
Robbes, Romain .
EMPIRICAL SOFTWARE ENGINEERING, 2012, 17 (4-5) :531-577