SourcererCC: Scaling Code Clone Detection to Big Code
Not on the map. Why?
Abstract (arXiv)
Despite a decade of active research, there is a marked lack in clone detectors that scale to very large repositories of source code, in particular for detecting near-miss clones where significant editing activities may take place in the cloned code. We present SourcererCC, a token-based clone detector that targets three clone types, and exploits an index to achieve scalability to large inter-project repositories using a standard workstation. SourcererCC uses an optimized inverted-index to quickly query the potential clones of a given code block. Filtering heuristics based on token ordering are used to significantly reduce the size of the index, the number of code-block comparisons needed to detect the clones, as well as the number of required token-comparisons needed to judge a potential clone. We evaluate the scalability, execution time, recall and precision of SourcererCC, and compare it to four publicly available and state-of-the-art tools. To measure recall, we use two recent benchmarks, (1) a large benchmark of real clones, BigCloneBench, and (2) a Mutation/Injection-based framework of thousands of fine-grained artificial clones. We find SourcererCC has both high recall and precision, and is able to scale to a large inter-project repository (250MLOC) using a standard workstation.
Key facts. Cited by 40 papers in the map (data through 14 Oct 2026). First posted on arXiv 20 Dec 2015.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 7; 2022: 4; 2023: 8; 2024: 6; 2025: 8; 2026: 7.
40 papers.
Sort:
By area:
- 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
- 2021Deep Learning for Android Malware Defenses: a Systematic Literature Reviewcited by 18
- 2023A systematic literature review on source code similarity measurement and clone detection: techniques, applications, and challengescited by 14
- 2022Cross-Language Binary-Source Code Matching with Intermediate Representationscited by 13
- 2021Multimodal Representation for Neural Code Searchcited by 11
- 2021Impact of Evaluation Methodologies on Code Summarizationcited by 11
- 2025How Diversely Can Language Models Solve Problems? Exploring the Algorithmic Diversity of Model-Generated Codecited by 11
- 2025A Retrieval-Augmented Generation Approach to Extracting Algorithmic Logic from Neural Networkscited by 11
- 2025Enhancing LLM-Based Neural Network Generation: Few-Shot Prompting and Efficient Validation for Automated Architecture Designcited by 10
- 2024Trained Without My Consent: Detecting Code Inclusion In Language Models Trained on Codecited by 8
- 2024Is Functional Correctness Enough to Evaluate Code Language Models? Exploring Diversity of Generated Codescited by 5
- 2023CCT-Code: Cross-Consistency Training for Multilingual Clone Detection and Code Searchcited by 4
28 more
- 2023TransformCode: A Contrastive Learning Framework for Code Embedding via Subtree Transformationcited by 4
- 2021Senatus -- A Fast and Accurate Code-to-Code Recommendation Enginecited by 3
- 2022AdaptivePaste: Code Adaptation through Learning Semantics-aware Variable Usage Representationscited by 3
- 2023REINFOREST: Reinforcing Semantic Code Similarity for Cross-Lingual Code Search Modelscited by 3
- 2023ZC3: Zero-Shot Cross-Language Code Clone Detectioncited by 3
- 2024The Struggles of LLMs in Cross-lingual Code Clone Detectioncited by 3
- 2022JEMMA: An Extensible Java Dataset for ML4Code Applicationscited by 2
- 2023xASTNN: Improved Code Representations for Industrial Practicecited by 2
- 2024Unraveling Code Clone Dynamics in Deep Learning Frameworkscited by 2
- 2026Evaluating Tool Cloning in Agentic-AI Ecosystemscited by 2
- 2021Leveraging Code Clones and Natural Language Processing for Log Statement Predictioncited by 1
- 2021Code Clone Detection based on Event Embedding and Event Dependencycited by 1
- 2024Beyond Self-learned Attention: Mitigating Attention Bias in Transformer-based Models Using Attention Guidancecited by 1
- 2026AdaptEval: A Benchmark for Evaluating Large Language Models on Code Snippet Adaptationcited by 1
- 2026TRACER: A Semantic-Aware Framework for Fine-Grained Contamination Detection in Code LLMscited by 1
- 2021Borrowing from Similar Code: A Deep Learning NLP-Based Approach for Log Statement Automationcited by 0
- 2022Understanding Long Programming Languages with Structure-Aware Sparse Attentioncited by 0
- 2023Sparse Attention-Based Neural Networks for Code Classificationcited by 0
- 2024LSem2Vec: A Simple yet Effective Two-Stage Approach for Source Code Embeddingcited by 0
- 2025Towards Understanding Deep Learning Model in Image Recognition via Coverage Testcited by 0
- 2025SLICEMATE: Accurate and Scalable Static Program Slicing via LLM-Powered Agentscited by 0
- 2025Selecting and Combining Large Language Models for Scalable Code Clone Detectioncited by 0
- 2025MAGNET: A Multi-Graph Attentional Network for Code Clone Detectioncited by 0
- 2025LLMBisect: Breaking Barriers in Bug Bisection with A Comparative Analysis Pipelinecited by 0
- 2026Deja Vu at Scale: Paraphrase-Robust Detection of Duplicate Gherkin Steps in Behaviour-Driven Software Testing with Sentence-Transformer Embeddings and a 1.1M-Step Open Benchmarkcited by 0
- 2026Learning Generalizable Multimodal Representations for Software Vulnerability Detectioncited by 0
- 2026Given, When, Then, Again: Mining Subscenario Refactoring Candidates in Behaviour-Driven Test Suites with ML Classifiers and LLM-Judge Baselinescited by 0
- 2026The Decomposition Is the Fingerprint: Per-Component Identity for Agent Skillscited by 0
- 2026The Decomposition Is the Fingerprint: Per-Component Identity for Agent Skills30 Jun 2026
- 2026TRACER: A Semantic-Aware Framework for Fine-Grained Contamination Detection in Code LLMs22 May 2026
- 2026Given, When, Then, Again: Mining Subscenario Refactoring Candidates in Behaviour-Driven Test Suites with ML Classifiers and LLM-Judge Baselines14 May 2026
- 2026Evaluating Tool Cloning in Agentic-AI Ecosystems10 May 2026
- 2026Learning Generalizable Multimodal Representations for Software Vulnerability Detection28 Apr 2026
- 2026Deja Vu at Scale: Paraphrase-Robust Detection of Duplicate Gherkin Steps in Behaviour-Driven Software Testing with Sentence-Transformer Embeddings and a 1.1M-Step Open Benchmark22 Apr 2026
- 2026AdaptEval: A Benchmark for Evaluating Large Language Models on Code Snippet Adaptation8 Jan 2026
- 2025Enhancing LLM-Based Neural Network Generation: Few-Shot Prompting and Efficient Validation for Automated Architecture Design30 Dec 2025
- 2025A Retrieval-Augmented Generation Approach to Extracting Algorithmic Logic from Neural Networks3 Dec 2025
- 2025LLMBisect: Breaking Barriers in Bug Bisection with A Comparative Analysis Pipeline30 Oct 2025
- 2025MAGNET: A Multi-Graph Attentional Network for Code Clone Detection28 Oct 2025
- 2025Selecting and Combining Large Language Models for Scalable Code Clone Detection17 Oct 2025
28 more
- 2025SLICEMATE: Accurate and Scalable Static Program Slicing via LLM-Powered Agents25 Jul 2025
- 2025Towards Understanding Deep Learning Model in Image Recognition via Coverage Test12 May 2025
- 2025How Diversely Can Language Models Solve Problems? Exploring the Algorithmic Diversity of Model-Generated Code2 Mar 2025
- 2024LSem2Vec: A Simple yet Effective Two-Stage Approach for Source Code Embedding23 Sep 2024
- 2024Is Functional Correctness Enough to Evaluate Code Language Models? Exploring Diversity of Generated Codes24 Aug 2024
- 2024The Struggles of LLMs in Cross-lingual Code Clone Detection8 Aug 2024
- 2024Unraveling Code Clone Dynamics in Deep Learning Frameworks25 Apr 2024
- 2024Beyond Self-learned Attention: Mitigating Attention Bias in Transformer-based Models Using Attention Guidance26 Feb 2024
- 2024Trained Without My Consent: Detecting Code Inclusion In Language Models Trained on Code14 Feb 2024
- 2023Sparse Attention-Based Neural Networks for Code Classification11 Nov 2023
- 2023TransformCode: A Contrastive Learning Framework for Code Embedding via Subtree Transformation10 Nov 2023
- 2023ZC3: Zero-Shot Cross-Language Code Clone Detection26 Aug 2023
- 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Review4 Jul 2023
- 2023A systematic literature review on source code similarity measurement and clone detection: techniques, applications, and challenges28 Jun 2023
- 2023CCT-Code: Cross-Consistency Training for Multilingual Clone Detection and Code Search19 May 2023
- 2023REINFOREST: Reinforcing Semantic Code Similarity for Cross-Lingual Code Search Models5 May 2023
- 2023xASTNN: Improved Code Representations for Industrial Practice13 Mar 2023
- 2022JEMMA: An Extensible Java Dataset for ML4Code Applications18 Dec 2022
- 2022Understanding Long Programming Languages with Structure-Aware Sparse Attention27 May 2022
- 2022AdaptivePaste: Code Adaptation through Learning Semantics-aware Variable Usage Representations23 May 2022
- 2022Cross-Language Binary-Source Code Matching with Intermediate Representations19 Jan 2022
- 2021Borrowing from Similar Code: A Deep Learning NLP-Based Approach for Log Statement Automation2 Dec 2021
- 2021Code Clone Detection based on Event Embedding and Event Dependency28 Nov 2021
- 2021Senatus -- A Fast and Accurate Code-to-Code Recommendation Engine5 Nov 2021
- 2021Leveraging Code Clones and Natural Language Processing for Log Statement Prediction8 Sep 2021
- 2021Impact of Evaluation Methodologies on Code Summarization22 Aug 2021
- 2021Multimodal Representation for Neural Code Search2 Jul 2021
- 2021Deep Learning for Android Malware Defenses: a Systematic Literature Review9 Mar 2021
- 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
- 2021Deep Learning for Android Malware Defenses: a Systematic Literature Reviewcited by 18
- 2023A systematic literature review on source code similarity measurement and clone detection: techniques, applications, and challengescited by 14
- 2022Cross-Language Binary-Source Code Matching with Intermediate Representationscited by 13
- 2021Multimodal Representation for Neural Code Searchcited by 11
- 2021Impact of Evaluation Methodologies on Code Summarizationcited by 11
- 2025How Diversely Can Language Models Solve Problems? Exploring the Algorithmic Diversity of Model-Generated Codecited by 11
- 2025Enhancing LLM-Based Neural Network Generation: Few-Shot Prompting and Efficient Validation for Automated Architecture Designcited by 10
- 2024Trained Without My Consent: Detecting Code Inclusion In Language Models Trained on Codecited by 8
- 2024Is Functional Correctness Enough to Evaluate Code Language Models? Exploring Diversity of Generated Codescited by 5
- 2023CCT-Code: Cross-Consistency Training for Multilingual Clone Detection and Code Searchcited by 4
- 2023TransformCode: A Contrastive Learning Framework for Code Embedding via Subtree Transformationcited by 4
12 most cited of 37 All 37 (JSON)
- 2026The Decomposition Is the Fingerprint: Per-Component Identity for Agent Skills30 Jun 2026
- 2026TRACER: A Semantic-Aware Framework for Fine-Grained Contamination Detection in Code LLMs22 May 2026
- 2026Given, When, Then, Again: Mining Subscenario Refactoring Candidates in Behaviour-Driven Test Suites with ML Classifiers and LLM-Judge Baselines14 May 2026
- 2026Learning Generalizable Multimodal Representations for Software Vulnerability Detection28 Apr 2026
- 2026Deja Vu at Scale: Paraphrase-Robust Detection of Duplicate Gherkin Steps in Behaviour-Driven Software Testing with Sentence-Transformer Embeddings and a 1.1M-Step Open Benchmark22 Apr 2026
- 2026AdaptEval: A Benchmark for Evaluating Large Language Models on Code Snippet Adaptation8 Jan 2026
- 2025Enhancing LLM-Based Neural Network Generation: Few-Shot Prompting and Efficient Validation for Automated Architecture Design30 Dec 2025
- 2025LLMBisect: Breaking Barriers in Bug Bisection with A Comparative Analysis Pipeline30 Oct 2025
- 2025MAGNET: A Multi-Graph Attentional Network for Code Clone Detection28 Oct 2025
- 2025Selecting and Combining Large Language Models for Scalable Code Clone Detection17 Oct 2025
- 2025Towards Understanding Deep Learning Model in Image Recognition via Coverage Test12 May 2025
- 2025How Diversely Can Language Models Solve Problems? Exploring the Algorithmic Diversity of Model-Generated Code2 Mar 2025
12 newest of 37 All 37 (JSON)