Incremental origin analysis of source code files
Daniela Steidl, Benjamin Hummel, Elmar Juergens · Working Conference on Mining Software Repositories (MSR) · 2014
The history of software systems tracked by version control systems is often incomplete because many file movements are not recorded. However, static code analyses that mine the file history, such as change frequency or code churn, produce precise results only if the complete history of a source code file is available. In this paper, we show that up to 38.9% of the files in open source systems have an incomplete history, and we propose an incremental, commit-based approach to reconstruct the history based on clone information and name similarity. With this approach, the history of a file can be reconstructed across repository boundaries and thus provides accurate information for any source code analysis. We evaluate the approach in terms of correctness, completeness, performance, and relevance with a case study among seven open source systems and a developer survey.
Cited by 22 works. doi:10.1145/2597073.2597111
Authors
References
- Use of relative code churn measures to predict system defect density
- An empirical study of code clone genealogies
- A comparative analysis of the efficiency of change metrics and static code attributes for defect prediction
- Using origin analysis to detect merging and splitting of source code entities
- Finding refactorings via change metrics
- Detection of software modules with high debug code churn in a very large legacy system
- An integrated approach for studying architectural evolution
- Index-based code clone detection: incremental, distributed, scalable
- An automatic approach to identify class evolution discontinuities
- When functions change their names: automatic detection of origin relationships