The Community for Technology Leaders
2013 VII Brazilian Symposium on Software Components, Architectures and Reuse (2013)
Brasilia Brazil
Sept. 29, 2013 to Oct. 4, 2013
pp: 99-108
Otavio Augusto Lazzarini Lemos , Sci. & Technol. Dept., Fed. Univ. of Sao Paulo, Sao Jose dos Campos, Brazil
Adriano Carvalho de Paula , Sci. & Technol. Dept., Fed. Univ. of Sao Paulo, Sao Jose dos Campos, Brazil
Gustavo Konishi , Sci. & Technol. Dept., Fed. Univ. of Sao Paulo, Sao Jose dos Campos, Brazil
Joel Ossher , Donald Bren Sch. of Inf. & Comput. Sci., Univ. of California at Irvine, Irvine, CA, USA
Cristina Lopes , Donald Bren Sch. of Inf. & Comput. Sci., Univ. of California at Irvine, Irvine, CA, USA
ABSTRACT
Test-driven code search (TDCS) is an approach to code search and reuse that uses test cases as inputs to form the search query. Together with the test cases that provide more semantics to the search task, keywords taken from class and method names are still required. Therefore, the effectiveness of the approach also relies on how good these keywords are, i.e., how frequently they are chosen by developers to name the desired functions. To help users choose adequate words in their query test cases, visual aids can be used. In this paper we propose thesaurus-based tag clouds to show developers terms that are more frequently used in the code repository to improve their search. Terms are generated by looking up words similar to the initial keywords on a thesaurus. Tag clouds are then formed based on the frequency in which these terms appear in the code base. Our approach was implemented with an English thesaurus as an extension to CodeGenie, a Java- and Eclipse-based TDCS tool. Our evaluation shows that the approach can help improve the number of returned results. We also noticed the visual aid can be especially useful for non-native speakers of the language in which the code repository is written. These users are frequently unaware of the most common terms used to name specific functionality in the code, in the given language.
INDEX TERMS
Tag clouds, Thesauri, Cloud computing, Visualization, Search problems, Color
CITATION

O. A. Lazzarini Lemos, A. Carvalho de Paula, G. Konishi, J. Ossher, S. Bajracharya and C. Lopes, "Using Thesaurus-Based Tag Clouds to Improve Test-Driven Code Search," 2013 VII Brazilian Symposium on Software Components, Architectures and Reuse(SBCARS), Brasilia Brazil, 2014, pp. 99-108.
doi:10.1109/SBCARS.2013.21
423 ms
(Ver 3.3 (11022016))