Search in source code based on identifying popular fragments

3Citations
Citations of this article
8Readers
Mendeley users who have this article in their library.
Get full text

Abstract

When programmers write new code, they are often interested in finding definitions of functions, existing, working fragments with the same or similar functionality, and reusing as much of that code as possible. Short fragments that are often returned by search engines as results to user queries do not give enough information to help programmers determine how to reuse them. Understanding code and determining how to use it, is a manual and time-consuming process. In general, programmers want to find initial points such as relevant functions. They want to easily understand how the functions are used and see the sequence of function invocations in order to understand how concepts are implemented. Our main goal is to enable programmers to find relevant functions to query terms and their usages. In our approach, identifying popular fragments is inspired by PageRank algorithm, where the "popularity" of a function is determined by how many functions call it. We designed a model based on the vector space model by which we are able to establish relevance among facts which content contains terms that match programmer's queries. The result is an ordered list of relevant functions that reflects the associations between concepts in the functions and a programmer's query. © 2013 Springer-Verlag Berlin Heidelberg.

Cite

CITATION STYLE

APA

Kuric, E., & Bieliková, M. (2013). Search in source code based on identifying popular fragments. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 7741 LNCS, pp. 408–419). https://doi.org/10.1007/978-3-642-35843-2_35

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free