The 28th IEEE/ACM International Conference on Automated Software Engineering (ASE '13)
Link to Published Version
Journal or Book Title
Proceedings of the 28th IEEE/ACM International Conference on Automated Software Engineering
November 11-15, 2013
Silicon Valley, CA
In this paper, we present a large-scale study of repetitiveness of code changes in software evolution. We collected a large data set of 2,841 Java projects, with 1.7 billion source lines of code (SLOC) at the latest revisions, 1.8 million code change revisions (0.4 million fixes), 6.2 million changed files, and 2.5 billion changed SLOCs. A change is considered repeated within or cross-project if it matches another change having occurred in the history of the project or another project, respectively. We report the following important findings. First, repetitiveness of changes could be as high as 70-100% at small sizes and decreases exponentially as size increases. Second, repetitiveness is higher and more stable in the cross-project setting than in the within-project one. Third, fixing changes repeat similarly to general changes. Importantly, learning code changes and recommending them in software evolution is beneficial with accuracy for top-1 recommendation of over 30% and top-3 of nearly 35%. Repeated fixing changes could also be useful for automatic program repair.
© 2013 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.
Nguyen, Hoan Anh; Nguyen, Anh Tuan; Nguyen, Tung Thanh; Nguyen, Tien N.; and Rajan, Hridesh, "A study of repetitiveness of code changes in software evolution" (2013). Computer Science Conference Presentations, Posters and Proceedings. 5.