Investigating Vector-Based Detection of Code Clones Using BigCloneBench

Kazuki Yokoi, Eunjong Choi, Norihiro Yoshida, Katsuro Inoue · 2018

In a vector-based approach to detecting code clones from source code, all code fragments in the source are mapped to a vector space and then code fragments are detected as code clones if they are neighbors in the vector space. So far, our research group has developed a vector-based approach using TF-IDF and cosine similarity. For the improvement of the vector-based approach, we preliminary investigated what kind of vectorization algorithms and similarity measurements are effective in terms of recall and detection time. In this paper, we present preliminary investigation results using BigCloneBench, a large-scale code clone benchmark.

Read the paper · More papers on PaperTik