Sherlock N-overlap: Invasive Normalization and Overlap Coefficient for the Similarity Analysis Between Source Code
- 15 November 2018
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Computers
- Vol. 68 (5) , 740-751
Abstract
Some tools for detecting similarity, such as Sherlock, compare textual documents of any nature, but have limitations to compare source code files. The presence or absence of blank spaces between structure elements, variable names, among other actions interfere with the similarity index found. This paper evidences that the preprocessing of the source code improves Sherlock' performance. The results are based on experiments conducted with 66 source code previously plagiarized, and a base formed by 2160 codes created by students of engineering courses in programming classes. In this last set, the situation of similarity was not previously known, so a method was created to calculate precision and recall, in a relative way, based on a set of reference tools, as a kind of oracle. Our approach, called Sherlock N-overlap obtained, in most of the cases tested, similarity indexes superior to other complex tools such as MOSS, JPlag and SIM.Keywords
Funding Information
- Coordenação de Aperfeiçoamento de Pessoal de Nível Superior
This publication has 26 references indexed in Scilit:
- A Source Code Similarity System for Plagiarism DetectionThe Computer Journal, 2012
- Efficient plagiarism detection for large code repositoriesSoftware: Practice and Experience, 2006
- POLYPHONET2006
- Plaggie2006
- Similarity estimation techniques from rounding algorithms2002
- Plagiarism in programming assignmentsIEEE Transactions on Education, 1999
- YAP31996
- Features of Similarity1988
- An empirical approach for detecting program similarity and plagiarism within a university programming environmentComputers & Education, 1987
- Measures of the Amount of Ecologic Association Between SpeciesEcology, 1945