• Home
  • Search
  • TCCCD: Triplet-Based Cross-Language Code Clone Detection
  • Cite Icon6
  • https://doi.org/10.3390/app132112084Copy DOI Icon

TCCCD: Triplet-Based Cross-Language Code Clone Detection

Show More
  • Abstract
  • Highlights & Summary
  • PDF
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Code cloning is a common practice in software development, where developers reuse existing code to accelerate programming speed and enhance work efficiency. Existing clone-detection methods mainly focus on code clones within a single programming language. To address the challenge of code clone instances in cross-platform development, we propose a novel method called TCCCD, which stands for Triplet-Based Cross-Language Code Clone Detection. Our approach is based on machine learning and can accurately detect code clone instances between different programming languages. We used the pre-trained model UniXcoder to map programs written in different languages into the same vector space and learn their code representations. Then, we fine-tuned TCCCD using triplet learning to improve its effectiveness in cross-language clone detection. To assess the effectiveness of our proposed approach, we conducted thorough comparative experiments using the dataset provided by the paper titled CLCDSA (Cross Language Code Clone Detection using Syntactical Features and API Documentation). The experimental results demonstrated a significant improvement of our approach over the state-of-the-art baselines, with precision, recall, and F1-measure scores of 0.96, 0.91, and 0.93, respectively. In summary, we propose a novel cross-language code-clone-detection method called TCCCD. TCCCD leverages the pre-trained model UniXcode for source code representation and fine-tunes the model using triplet learning. In the experimental results, TCCCD outperformed the state-of-the-art baselines in terms of the precision, recall, and F1-measure.

Loading PDF

Similar Papers
  • Conference Article
  • Citations61

Incremental Code Clone Detection: A PDG-based Approach

  • Oct 01, 2011
  • Yoshiki Higo +3
  • Conference Article
  • Citations12

Rule-directed code clone synchronization

  • May 01, 2016
  • Xiao Cheng +4
  • Research Article

An Empirical Study on the Characteristics of Reusable Code Clones

  • Jan 23, 2026
  • ACM Transactions on Software Engineering and Methodology
  • Chunli Yu +3
  • Research Article

Code Clone Detection Model: A SWOT Analysis Perspective

  • Oct 01, 2018
  • Advanced Science Letters
  • Al-Fahim Mubarak-Ali +2
  • Research Article
  • Citations2

Proposing and Evaluating Clone Detection Approaches with Preprocessing Input Source Files

  • Jan 01, 2015
  • IEICE Transactions on Information and Systems
  • Eunjong Choi +3
  • Conference Article
  • Citations4

A Model-driven Approach for Token Based Code Clone Detection Techniques - An Introduction to UMLCCD

  • Mar 02, 2019
  • Qurat Ul Ain +3
  • Conference Article
  • Citations4

A Deep Learning Based Approach to Detect Code Clones

  • Dec 01, 2020
  • Guangjie Li +3
  • Conference Article
  • Citations1

Research on the Model of Legacy Software Reuse Based on Code Clone Detection

  • Sep 01, 2013
  • Meng Fanqi +1
  • Conference Article

Code Clone Detection via Software Visualization Representation Learning

  • Jul 01, 2023
  • Proceedings/Proceedings of the ... International Conference on Software Engineering and Knowledge Engineering
  • Shaojian Qiu +4
  • Conference Article
  • Citations9

Rearranging the order of program statements for code clone detection

  • Feb 21, 2017
  • Yusuke Sabi +2
  • Conference Article
  • Citations3

Supporting clone analysis with tag cloud visualization

  • Nov 16, 2014
  • Manamu Sano +4
  • PDF
  • Research Article
  • Citations1

Improve Representation for Cross-Language Clone Detection by Pretrain Using Tree Autoencoder

  • Jan 01, 2022
  • Intelligent Automation & Soft Computing
  • Huading Ling +4
  • Conference Article
  • Citations6

An Empirical Comparison on the Results of Different Clone Detection Setups for C-based Projects

  • May 01, 2023
  • Yan Zhou +4
  • Conference Article
  • Citations10

An Empirical Study of the Copy and Paste Behavior during Development

  • May 01, 2015
  • Tarek M Ahmed +2
  • Book Chapter
  • Citations25

Code Clone Detection—A Systematic Review

  • Jan 01, 2021
  • G Shobha +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.