Publication: Clone Swarm: A Cloud Based Code-Clone Analysis Tool

A code clone is defined as a pair of similar code fragments within a software system. While code clones are not always harmful, they can have a detrimental effect on the overall quality of a software system due to the propagation of bugs and other maintenance implications. Because of this, software developers need to analyse the code clones that exist in a software system. However, despite the availability of several clone detection systems, the adoption of such tools outside of the clone community remains low. A possible reason for this is the difficulty and complexity involved in setting up and using these tools. In this paper, we present Clone Swarm, a code clone analytics tool that identifies clones in a project and presents the information in an easily accessible manner. Clone Swarm is publicly available and can mine any open-sourced GIT repository. Clone Swarm internally uses NiCad, a popular clone detection tool in the cloud and lets users interactively explore code clones using a webbased interface at multiple granularity levels (Function and Block level). Clone results are visualized in multiple overviews, all the way from a high-level plot down to an individual line by line comparison view of cloned fragments. Also, to facilitate future research in the area of clone detection and analysis, users can directly download the clone detection results for their projects. Clone Swarm is available online at clone-swarm.usask.ca. The source code for Clone Swarm is freely available under the MIT license on GitHub.

Downloads

PDF

Participants

Venkat Bandi Chanchal K. Roy
Carl Gutwin
University of Saskatchewan

Citation

Bandi, V.K., Roy, C., Gutwin, C. 2020. Clone Swarm: A Cloud Based Code-Clone Analysis Tool. In International Workshop on Software Clones, SANER, 2020, London, Ontario. To appear.

BibTeX

@inproceedings {555-sanerws20iwscmain-preprint,
author= {Venkat Bandi and Chanchal K. Roy and Carl Gutwin},
title= {Clone Swarm: A Cloud Based Code-Clone Analysis Tool},
booktitle= {International Workshop on Software Clones, SANER, 2020},
year= {2020},
address= {London, Ontario}
}