Introduction
In the realm of software engineering, a "code clone" refers to source code fragments that are identical or significantly similar. While cloning can accelerate development through reuse, it is frequently categorized as a "bad smell"—a practice that increases maintenance overhead and facilitates the propagation of bugs. Despite numerous studies on specific aspects like detection or evolution, a holistic "big picture" of the field has been missing. This research addresses that gap by mapping the entire code clone landscape, analyzing over 1,200 papers published between 2011 and 2020 to identify major trends, key contributors, and the divergence between academic and industrial priorities.
Methodology
The authors employed a rigorous Systematic Literature Review (SLR) methodology to ensure a comprehensive and unbiased analysis. The process followed a structured five-step pipeline designed to distill a massive volume of literature into a manageable, classified database.
The filtering process was extensive, starting from over 26,000 extracted papers and narrowing down to the final dataset through multiple stages of duplication removal and relevance checks. This rigorous approach ensured that only high-quality, relevant research was included in the final analysis.
Key Insights and Landscape Analysis
The analysis revealed several critical trends within the code clone research community:
The Industry-Academia Gap
A significant finding is the disparity in focus between academia and industry. While academic research is heavily weighted toward detection techniques (the "how"), industry shows a much higher relative interest in clone management, evaluation, and refactoring (the "so what?"). Industrial stakeholders prioritize the long-term health and maintainability of codebases over the mere identification of clones.
Researcher Network Dynamics
The field exhibits a "small world" phenomenon. Although thousands of authors have published on code clones, the majority contribute only a single paper. A small elite group of researchers drives the bulk of persistent, long-term research, indicating a highly concentrated core of expertise.
Evolution of Sub-fields
The authors identified ten primary sub-fields. Clone Detection Technique remains the largest (749 papers), followed by Clone Analysis (183) and Clone Evolution (143). Interestingly, clone detection is increasingly being used as a foundational tool for other domains, such as malware detection, license violation identification, and vulnerability discovery.
Geographic and Venue Trends
China, India, the USA, Canada, and Japan emerged as the top five contributing nations. The International Workshop on Software Clones (IWSC) remains the premier venue, hosting 34% of top-tier publications in this space.
Future Directions and Limitations
While the field has matured, several challenges remain for future researchers and practitioners:
- Scalability: Current detection methods struggle with the massive scale of modern codebases, which can reach billions of lines. Efficiency and scalability represent the next major frontier.
- Tooling and Integration: There is a pressing need for better visualization and management frameworks that integrate directly into Integrated Development Environments (IDEs), allowing developers to manage clones in real-time.
- Industry Participation: With only 8.66% of papers involving industry authors, there is a clear opportunity for deeper collaboration to bridge the gap between theoretical research and practical application.
The study concludes that while pure detection research has slightly declined since its 2012 peak, practical applications in management and visualization are on the rise, signaling a shift toward more applied software engineering research.
Summary updated