• Home
  • Search
  • RioCC: Efficient and Accurate Class-Level Code Recommendation Based on Deep Code Clone Detection.
  • https://doi.org/10.3390/e28020223Copy DOI Icon

RioCC: Efficient and Accurate Class-Level Code Recommendation Based on Deep Code Clone Detection.

Show More
  • Abstract
  • Literature Map
  • Similar Papers
Abstract

Context: Code recommendation plays an important role in improving programming efficiency and software quality. Existing approaches mainly focus on method- or API-level recommendations, which limits their effectiveness to local code contexts. From a multi-stage recommendation perspective, class-level code recommendation aims to efficiently narrow a large candidate code space while preserving essential structural information. Objective: This paper proposes RioCC, a class-level code recommendation framework that leverages deep forest-based code clone detection to progressively reduce the candidate space and improve recommendation efficiency in large-scale code spaces. Method: RioCC models the recommendation process as a coarse-to-fine candidate reduction procedure. In the coarse-grained stage, a quick search-based filtering module performs rapid candidate screening and initial similarity estimation, effectively pruning irrelevant candidates and narrowing the search space. In the fine-grained stage, a deep forest-based analysis with cascade learning and multi-grained scanning captures context- and structure-aware representations of class-level code fragments, enabling accurate similarity assessment and recommendation. This two-stage design explicitly separates coarse candidate filtering from detailed semantic matching to balance efficiency and accuracy. Results: Experiments on a large-scale dataset containing 192,000 clone pairs from BigCloneBench and a collected code pool show that RioCC consistently outperforms state-of-the-art methods, including CCLearner, Oreo, and RSharer, across four types of code clones, while significantly accelerating the recommendation process with comparable detection accuracy. Conclusions: By explicitly formulating class-level code recommendation as a staged retrieval and refinement problem, RioCC provides an efficient and scalable solution for large-scale code recommendation and demonstrates the practical value of integrating lightweight filtering with deep forest-based learning.

Similar Papers
  • Conference Article
  • Citations21

On Precision of Code Clone Detection Tools

  • Feb 01, 2019
  • Farima Farmahinifarahani +4
  • Book Chapter
  • Citations25

Code Clone Detection—A Systematic Review

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

Code Clone Detection Model: A SWOT Analysis Perspective

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

Code Clone Detection with Convolutional Neural Networks

  • Jan 31, 2020
  • Bilişim Teknolojileri Dergisi
  • Harun Di̇şli̇ +1
  • 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
  • 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
  • Citations3

Supporting clone analysis with tag cloud visualization

  • Nov 16, 2014
  • Manamu Sano +4
  • Conference Article
  • Citations9

Rearranging the order of program statements for code clone detection

  • Feb 21, 2017
  • Yusuke Sabi +2
  • 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
  • Citations638

Deep learning code fragments for code clone detection

  • Aug 25, 2016
  • Martin White +3
  • Book Chapter
  • Citations1

Recommendation Based on Java Code Analysis and Search

  • Nov 09, 2020
  • Frontiers in artificial intelligence and applications
  • Shanqing Fu +4
  • 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
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.