2012 · 25 citations · 12 references
ComputingComputer ScienceMalware AnalysisMicroevolutionSoftware EngineeringSoftware EvolutionSoftware MaintenanceSoftware MetricsSoftware ReuseVersion ControlVersion Control SystemsClone DetectionCode Clone DetectionSource Code Change AnalysisSource Code CloningSource Code Evolution
Detecting code duplication in large code bases, or even across project boundaries, is problematic due to the massive amount of data involved. Large-scale clone detection also opens new challenges beyond asking for the provenance of a single clone fragment, such as assessing the prevalence of code clones on the entire code base, and their evolution. We propose a set of lightweight techniques that may scale up to very large amounts of source code in the presence of multiple versions. The common idea behind these techniques is to use bad hashing to get a quick answer. We report on a case study, the Squeaksource ecosystem, which features thousands of software projects, with more than 40 million versions of methods, across more than seven years of evolution. We provide estimates for the prevalence of type-1, type-2, and type-3 clones in Squeaksource.
12
On the resemblance and containment of documents
Arndt Bröder · 2002 · 1.7K citations
Clone detection using abstract syntax trees
Ira D. Baxter, A. Yahin, Leonardo de Moura et al. · 2002 · 1.3K citations
Comparison and Evaluation of Clone Detection Tools
Stefan Bellon, Rainer Koschke, Giulio Antoniol et al. · IEEE Transactions on Software Engineering · 2007 · 779 citations