In this paper, we present an approach to improve source code retrieval using the structure of control statements. We develop a lexical parser that extracts structural information for each method including control statements and method identifiers. We present a source code retrieval model, named "derived structure retrieval model," in which a retrieval conditions are defined as a sequence of control statements and/or method identifiers, and meaningful search conditions are derived from the given sequence. Experiments on the source code of Struts 2 Core show that the derived structure retrieval model outperforms the vector space retrieval model. © 2013 Springer-Verlag.
CITATION STYLE
Udagawa, Y. (2013). An approach to retrieving similar source codes by control structure and method identifiers. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 7808 LNCS, pp. 252–259). https://doi.org/10.1007/978-3-642-37401-2_26
Mendeley helps you to discover research relevant for your work.