Automatically Extracting Instances of Code Change Patterns with AST Analysis

by Matias Martinez, Laurence Duchien and Martin Monperrus
Abstract: A code change pattern represents a kind of recurrent modification in software. For instance, a known code change pattern consists of the change of the conditional expression of an if statement. Previous work has identified different change patterns. Complementary to the identification and definition of change patterns, the automatic extraction of pattern instances is essential to measure their empirical importance. For example, it enables one to count and compare the number of conditional expression changes in the history of different projects. In this paper we present a novel approach for search patterns instances from software history. Our technique is based on the analysis of Abstract Syntax Trees (AST) files within a given commit. We validate our approach by counting instances of 18 change patterns in 6 open-source Java projects.
 View PDF
Open-access (on arXiv.org)
Publisher version (via DOI)
Citations: [citations]
Other publications of Martin Monperrus

Cite it:

Matias Martinez, Laurence Duchien and Martin Monperrus, "Automatically Extracting Instances of Code Change Patterns with AST Analysis", In 29th IEEE International Conference on Software Maintenance, 2013.
Automatically Extracting Instances of Code Change Patterns with AST Analysis
http://arxiv.org/pdf/1309.3730
[Automatically Extracting Instances of Code Change Patterns with AST Analysis](http://arxiv.org/pdf/1309.3730) ([doi:10.1109/ICSM.2013.54](https://doi.org/10.1109/ICSM.2013.54))
\href{http://arxiv.org/pdf/1309.3730}{Automatically Extracting Instances of Code Change Patterns with AST Analysis} % \cite{1309.3730}

Bibtex Entry:

@inproceedings{1309.3730,
 title = {Automatically Extracting Instances of Code Change Patterns with AST Analysis},
 booktitle = {29th IEEE International Conference on Software Maintenance},
 year = {2013},
 doi = {10.1109/ICSM.2013.54},
 author = {Matias Martinez and Laurence Duchien and Martin Monperrus},
 url = {http://arxiv.org/pdf/1309.3730},
}
Powered by bibtexbrowser
Tagged as: