[Paper Review] A systematic literature review on source code similarity measurement and clone detection: techniques, applications, and challenges
This systematic literature review analyzes 136 primary studies on source code similarity measurement and clone detection, evaluating techniques, tools, applications, and challenges across eight methodologies and five domains. It identifies 80 tools, with strong Java (49%) and C/C++ (37%) support, highlights limited datasets (only 8 publicly available), and reveals key challenges including lack of empirical validation, hybrid methods, and multi-paradigm language support.
Measuring and evaluating source code similarity is a fundamental software engineering activity that embraces a broad range of applications, including but not limited to code recommendation, duplicate code, plagiarism, malware, and smell detection. This paper proposes a systematic literature review and meta-analysis on code similarity measurement and evaluation techniques to shed light on the existing approaches and their characteristics in different applications. We initially found over 10000 articles by querying four digital libraries and ended up with 136 primary studies in the field. The studies were classified according to their methodology, programming languages, datasets, tools, and applications. A deep investigation reveals 80 software tools, working with eight different techniques on five application domains. Nearly 49% of the tools work on Java programs and 37% support C and C++, while there is no support for many programming languages. A noteworthy point was the existence of 12 datasets related to source code similarity measurement and duplicate codes, of which only eight datasets were publicly accessible. The lack of reliable datasets, empirical evaluations, hybrid methods, and focuses on multi-paradigm languages are the main challenges in the field. Emerging applications of code similarity measurement concentrate on the development phase in addition to the maintenance.
Motivation & Objective
- To identify and categorize existing techniques for source code similarity measurement and clone detection.
- To analyze the distribution of tools, programming languages, and datasets used across studies.
- To evaluate the maturity and reliability of empirical evaluations in the field.
- To identify emerging applications beyond maintenance, particularly in development phases.
- To highlight critical challenges such as lack of public datasets, limited multi-paradigm support, and insufficient hybrid approaches.
Proposed method
- Conducted a systematic literature review by querying four digital libraries to identify relevant studies.
- Screened and selected 136 primary studies based on predefined inclusion and exclusion criteria.
- Classified studies by methodology, programming language, datasets, tools, and application domains.
- Performed meta-analysis to synthesize findings across studies, focusing on tool characteristics and technique prevalence.
- Mapped 80 software tools to eight distinct detection techniques and five application domains.
- Evaluated dataset availability and quality, identifying only eight of twelve datasets as publicly accessible.
Experimental results
Research questions
- RQ1What are the dominant techniques used in source code similarity measurement and clone detection?
- RQ2Which programming languages are most commonly targeted by existing tools and studies?
- RQ3How many publicly available datasets exist for code similarity and clone detection, and what is their quality?
- RQ4What are the primary applications of code similarity measurement in software engineering?
- RQ5What are the major challenges hindering progress in this research area?
Key findings
- A total of 80 software tools were identified, with 49% targeting Java and 37% targeting C and C++.
- Only 8 out of 12 identified datasets related to code similarity and clone detection are publicly accessible.
- The majority of studies focus on maintenance-phase applications such as clone detection and bug detection.
- There is a notable lack of empirical evaluations and benchmarking across studies, limiting reproducibility.
- Hybrid approaches combining multiple techniques are underexplored, despite their potential for improved accuracy.
- Support for multi-paradigm and less common programming languages remains minimal or nonexistent.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.