DocumentCode :
2384518
Title :
Cross-project build co-change prediction
Author :
Xin Xia ; Lo, David ; McIntosh, Shane ; Shihab, Emad ; Hassan, Ahmed E.
Author_Institution :
Coll. of Comput. Sci. & Technol., Zhejiang Univ., Hangzhou, China
fYear :
2015
fDate :
2-6 March 2015
Firstpage :
311
Lastpage :
320
Abstract :
Build systems orchestrate how human-readable source code is translated into executable programs. In a software project, source code changes can induce changes in the build system (aka. build co-changes). It is difficult for developers to identify when build co-changes are necessary due to the complexity of build systems. Prediction of build co-changes works well if there is a sufficient amount of training data to build a model. However, in practice, for new projects, there exists a limited number of changes. Using training data from other projects to predict the build co-changes in a new project can help improve the performance of the build co-change prediction. We refer to this problem as cross-project build co-change prediction. In this paper, we propose CroBuild, a novel cross-project build co-change prediction approach that iteratively learns new classifiers. CroBuild constructs an ensemble of classifiers by iteratively building classifiers and assigning them weights according to its prediction error rate. Given that only a small proportion of code changes are build co-changing, we also propose an imbalance-aware approach that learns a threshold boundary between those code changes that are build co-changing and those that are not in order to construct classifiers in each iteration. To examine the benefits of CroBuild, we perform experiments on 4 large datasets including Mozilla, Eclipse-core, Lucene, and Jazz, comprising a total of 50,884 changes. On average, across the 4 datasets, CroBuild achieves a F1-score of up to 0.408. We also compare CroBuild with other approaches such as a basic model, AdaBoost proposed by Freund et al., and TrAdaBoost proposed by Dai et al.. On average, across the 4 datasets, the CroBuild approach yields an improvement in F1-scores of 41.54%, 36.63%, and 36.97% over the basic model, AdaBoost, and TrAdaBoost, respectively.
Keywords :
program compilers; project management; software maintenance; source code (software); CroBuild; Eclipse-core; Jazz; Lucene; Mozilla; TrAdaBoost; build systems complexity; classifiers; code changes; cross-project build co-change prediction; executable programs; human-readable source code; imbalance-aware approach; prediction error rate; software project; threshold boundary; Buildings; Data models; Error analysis; Measurement; Predictive models; Training; Training data; Build Co-change Prediction; Cross-project; Imbalance Data; Transfer Learning;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Analysis, Evolution and Reengineering (SANER), 2015 IEEE 22nd International Conference on
Conference_Location :
Montreal, QC
Type :
conf
DOI :
10.1109/SANER.2015.7081841
Filename :
7081841
Link To Document :
بازگشت