• Home
  • Search
  • Deep learning code fragments for code clone detection
  • Cite Icon638
  • https://doi.org/10.1145/2970276.2970326Copy DOI Icon

Deep learning code fragments for code clone detection

  • Aug 25, 2016
  • Martin White +3 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Code clone detection is an important problem for software maintenance and evolution. Many approaches consider either structure or identifiers, but none of the existing detection techniques model both sources of information. These techniques also depend on generic, handcrafted features to represent code fragments. We introduce learning-based detection techniques where everything for representing terms and fragments in source code is mined from the repository. Our code analysis supports a framework, which relies on deep learning, for automatically linking patterns mined at the lexical level with patterns mined at the syntactic level. We evaluated our novel learning-based approach for code clone detection with respect to feasibility from the point of view of software maintainers. We sampled and manually evaluated 398 file- and 480 method-level pairs across eight real-world Java systems; 93% of the file- and method-level samples were evaluated to be true positives. Among the true positives, we found pairs mapping to all four clone types. We compared our approach to a traditional structure-oriented technique and found that our learning-based approach detected clones that were either undetected or suboptimally reported by the prominent tool Deckard. Our results affirm that our learning-based approach is suitable for clone detection and a tenable technique for researchers.

Similar Papers
  • Conference Article
  • Citations309

Supervised Deep Features for Software Functional Clone Detection by Exploiting Lexical and Syntactical Information in Source Code

  • Aug 01, 2017
  • Huihui Wei +1
  • Research Article
  • Citations12

A comparative study on the intensity and harmfulness of late propagation in near-miss code clones

  • Jan 22, 2016
  • Software Quality Journal
  • Manishankar Mondal +2
  • Conference Article
  • Citations351

VUDDY: A Scalable Approach for Vulnerable Code Clone Discovery

  • May 01, 2017
  • Seulbae Kim +3
  • Book Chapter
  • Citations1

Comprehending Code Fragment in Code Clones: A Literature-Based Perspective

  • Nov 22, 2019
  • Sarveshwar Bharti +1
  • Conference Article
  • Citations9

Rearranging the order of program statements for code clone detection

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

Rule-directed code clone synchronization

  • May 01, 2016
  • Xiao Cheng +4
  • Conference Article
  • Citations2

How Compact Will My System Be? A Fully-Automated Way to Calculate LoC Reduced by Clone Refactoring

  • Dec 01, 2019
  • Tasuku Nakagawa +3
  • Conference Article
  • Citations61

Incremental Code Clone Detection: A PDG-based Approach

  • Oct 01, 2011
  • Yoshiki Higo +3
  • Book Chapter
  • Citations25

Code Clone Detection—A Systematic Review

  • Jan 01, 2021
  • G Shobha +3
  • 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
  • Citations47

Boreas: an accurate and scalable token-based approach to code clone detection

  • Sep 03, 2012
  • Yang Yuan +1
  • Conference Article
  • Citations21

On Precision of Code Clone Detection Tools

  • Feb 01, 2019
  • Farima Farmahinifarahani +4
  • 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

A novel detection approach for statement clones

  • May 01, 2013
  • Qing Qing Shi +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.