Programming and Computer Software · 2017 · 10 citations · 11 references
ComputingComputer ScienceComputational LinguisticsMachine LearningNatural Language ProcessingLanguage ModelingLanguage ModelsN-gram AnalysisSupport Vector MachinesText MiningText Similarity AnalysisClassification AccuracyCode Similarity AnalysisLatent Semantic AnalysisN-gram SimilaritySemantic SimilaritySoftware Code SimilaritySource CodesText Similarity Features
We present a method for measuring similarity between source codes. We approach this task from the machine learning perspective using character and word n-grams as features and examining different machine learning algorithms. Furthermore, we explore the contribution of the latent semantic analysis in this task. We developed a corpus in order to evaluate the proposed approach. The corpus consists of around 10,000 source codes written in the Karel programming language to solve 100 different tasks. The results show that the highest classification accuracy is achieved when using Support Vector Machines classifier, applying the latent semantic analysis, and selecting as features trigrams of words.
11
Mark Hall, Eibe Frank, Geoffrey Holmes et al. · ACM SIGKDD Explorations Newsletter · 2009 · 17.8K citations
Indexing by latent semantic analysis
Scott Deerwester, Susan Dumais, George W. Furnas et al. · Journal of the American Society for Information Science · 1990 · 12.8K citations
Thomas J. McCabe · IEEE Transactions on Software Engineering · 1976 · 5.8K citations
Saul Schleimer, Daniel Shawcross Wilkerson, Alex Aiken · 2003 · 1.1K citations