JUCS - Journal of Universal Computer Science 21(13): 1708-1725, doi: 10.3217/jucs-021-13-1708
Cross-Language Source Code Re-Use Detection Using Latent Semantic Analysis
expand article infoEnrique Flores, Alberto Barrón-Cedeño§, Lidia Moreno, Paolo Rosso|
‡ Universitat Politècnica de Valencia, Valencia, Spain§ Qatar Computing Research Institute, Soha, Qatar| Technical University of Valencia, Valencia, Spain
Open Access
Abstract
Nowadays, Internet is the main source to get information from blogs, encyclopedias, discussion forums, source code repositories, and more resources which are available just one click away. The temptation to re-use these materials is very high. Even source codes are easily available through a simple search on the Web. There is a need of detecting potential instances of source code re-use. Source code re-use detection has usually been approached comparing source codes in their compiled version. When dealing with cross-language source code re-use, traditional approaches can deal only with the programming languages supported by the compiler. We assume that a source code is a piece of text ,with its syntax and structure, so we aim at applying models for free text re-use detection to source code. In this paper we compare a Latent Semantic Analysis (LSA) approach with previously used text re-use detection models for measuring cross-language similarity in source code. The LSA-based approach shows slightly better results than the other models, being able to distinguish between re-used and related source codes with a high performance.
Keywords
cross-language re-use detection, source code, plagiarism, latent semantic analysis