• Home
  • Search
  • On Precision of Code Clone Detection Tools
  • Cite Icon21
  • https://doi.org/10.1109/saner.2019.8668015Copy DOI Icon

On Precision of Code Clone Detection Tools

  • Feb 1, 2019
  • Farima Farmahinifarahani +4 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Precision and recall are the main metrics used to measure the correctness of clone detectors. These metrics require the existence of labeled datasets containing the ground truth - samples of clone and non-clone pairs. For source code clone detectors, in particular, there are some techniques, as well as a concrete framework, for automatically evaluating recall, down to different types of clones. However, evaluating precision is still challenging, because of the intensive and specialized manual effort required to accomplish the task. Moreover, when precision is reported, it is typically done over all types of clones, making it hard to assess the strengths and weaknesses of the corresponding clone detectors. This paper presents systematic experiments to evaluate precision of eight code clone detection tools. Three judges independently reviewed 12,800 clone pairs to compute the undifferentiated and type-based precision of these tools. Besides providing a useful baseline for future research in code clone detection, another contribution of our work is to unveil important considerations to take into account when doing precision measurements and reporting the results. Specifically, our work shows that the reported precision of these tools leads to significantly different conclusions and insights about the tools when different types of clones are taken into account. It also stresses, once again, the importance of reporting inter-rater agreement.

Similar Papers
  • Research Article
  • Citations68

Siamese: scalable and incremental code clone search via multiple code representations

  • Mar 05, 2019
  • Empirical Software Engineering
  • Chaiyong Ragkhitwetsagul +1
  • Conference Article
  • Citations9

Rearranging the order of program statements for code clone detection

  • Feb 21, 2017
  • Yusuke Sabi +2
  • Conference Article

Towards Informative Tagging of Code Fragments to Support the Investigation of Code Clones

  • Oct 01, 2021
  • Daisuke Nishioka +1
  • Research Article

RioCC: Efficient and Accurate Class-Level Code Recommendation Based on Deep Code Clone Detection.

  • Feb 14, 2026
  • Entropy (Basel, Switzerland)
  • Hongcan Gao +2
  • Book Chapter
  • Citations25

Code Clone Detection—A Systematic Review

  • Jan 01, 2021
  • G Shobha +3
  • Conference Article
  • Citations11

Generating clone references with less human subjectivity

  • May 01, 2016
  • Yusuke Yuki +3
  • Research Article
  • Citations20

Adult schistosome cDNA libraries as a source of antigens for the study of experimental and human schistosomiasis

  • Feb 01, 1986
  • Molecular & Biochemical Parasitology
  • Matty Knight +6
  • Conference Article
  • Citations1

Research on the Model of Legacy Software Reuse Based on Code Clone Detection

  • Sep 01, 2013
  • Meng Fanqi +1
  • Conference Article
  • Citations638

Deep learning code fragments for code clone detection

  • Aug 25, 2016
  • Martin White +3
  • Conference Article
  • Citations61

Incremental Code Clone Detection: A PDG-based Approach

  • Oct 01, 2011
  • Yoshiki Higo +3
  • Research Article
  • Citations12

A comparative study on the intensity and harmfulness of late propagation in near-miss code clones

  • Jan 22, 2016
  • Software Quality Journal
  • Manishankar Mondal +2
  • Conference Article
  • Citations12

Rule-directed code clone synchronization

  • May 01, 2016
  • Xiao Cheng +4
  • Research Article

Code Clone Detection Model: A SWOT Analysis Perspective

  • Oct 01, 2018
  • Advanced Science Letters
  • Al-Fahim Mubarak-Ali +2
  • Research Article
  • Citations3

Code Clone Detection with Convolutional Neural Networks

  • Jan 31, 2020
  • Bilişim Teknolojileri Dergisi
  • Harun Di̇şli̇ +1
  • Research Article
  • Citations2

Proposing and Evaluating Clone Detection Approaches with Preprocessing Input Source Files

  • Jan 01, 2015
  • IEICE Transactions on Information and Systems
  • Eunjong Choi +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.