Enhancing the performance of code-clone detection tools using code2vec
Tae Ho Um, Sung Moon Hong, Joon Hyuk Yang, Hyo Seok Jang, Kyung-Goo Doh · Journal of Software Assessment and Valuation · 2021
Plagiarism refers to the act of using the original data as if it were one's own without revealing the source.The plagiarism of source code causes a variety of problems, including legal disputes.Plagiarism in software projects is usually determined by measuring similarity by comparing every pair of source code within two projects.However, blindly comparing every pair has been a huge computational burden, causing a major factor of not using tools of better accuracy.If we can only compare pairs that are probable to be clones, eliminating pairs that are impossible to be clones, we can concentrate more on improving the accuracy of detection.In this paper, we propose a method of selecting highly probable candidates of clone pairs by pre-classifying suspected source-codes using a machine-learning model called code2vec.