TransClone: A Language Agnostic Code Clone Detector

We introduce TransClone, a language-agnostic clone detection tool that leverages a source-to-source translator and an extended version of the graph matching network to detect clones. This tool accepts a source directory or directories as input and identifies code clones within it. It comes with a co...

Full description

Saved in:
Bibliographic Details
Published in2023 IEEE 17th International Workshop on Software Clones (IWSC) pp. 29 - 32
Main Authors Pinku, Subroto Nag, Mondal, Debajyoti, Roy, Chanchal K.
Format Conference Proceeding
LanguageEnglish
Published IEEE 01.10.2023
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:We introduce TransClone, a language-agnostic clone detection tool that leverages a source-to-source translator and an extended version of the graph matching network to detect clones. This tool accepts a source directory or directories as input and identifies code clones within it. It comes with a command line interface and reports identified clones in a CSV file format. Currently, it supports code written in Java and Python. However, TransClone's modular structure provides a flexible way to augment clone-detection support for multiple languages, as better code translators become available. Our experiment on the benchmark dataset shows that it can detect clones with high precision and recall. The TransClone tool including the datasets and trained model can be found here 1 1https://github.com/subrotonpi/transclone.
ISSN:2572-6587
DOI:10.1109/IWSC60764.2023.00012