Title :
Using IR methods for labeling source code artifacts: Is it worthwhile?
Author :
De Lucia, Andrea ; Penta, Massimiliano Di ; Oliveto, Rocco ; Panichella, Annibale ; Panichella, Sebastiano
Author_Institution :
Univ. of Salerno, Fisciano, Italy
Abstract :
Information Retrieval (IR) techniques have been used for various software engineering tasks, including the labeling of software artifacts by extracting “keywords” from them. Such techniques include Vector Space Models, Latent Semantic Indexing, Latent Dirichlet Allocation, as well as customized heuristics extracting words from specific source code elements. This paper investigates how source code artifact labeling performed by IR techniques would overlap (and differ) from labeling performed by humans. This has been done by asking a group of subjects to label 20 classes from two Java software systems, JHotDraw and eXVantage. Results indicate that, in most cases, automatic labeling would be more similar to human-based labeling if using simpler techniques - e.g., using words from class and method names - that better reflect how humans behave. Instead, clustering-based approaches (LSI and LDA) are much more worthwhile to be used on source code artifacts having a high verbosity, as well as for artifacts requiring more effort to be manually labeled.
Keywords :
Java; information retrieval; program compilers; source coding; IR; IR methods; JHotDraw; Java software systems; automatic labeling; clustering based approaches; eXVantage; human based labeling; information retrieval; labeling source code artifacts; latent dirichlet allocation; latent semantic indexing; software artifacts; software engineering; source code elements; vector space models; Context; Humans; Java; Labeling; Large scale integration; Matrix decomposition; Software; Empirical Studies; Information Retrieval; Latent Dirichlet Allocation; Topic Extraction;
Conference_Titel :
Program Comprehension (ICPC), 2012 IEEE 20th International Conference on
Conference_Location :
Passau
Print_ISBN :
978-1-4673-1213-4
Electronic_ISBN :
1092-8138
DOI :
10.1109/ICPC.2012.6240488