arrow
返回

TPCaps: a framework for code clone detection and localization based on improved CapsNet

delete2022-12-12
delete5
PRE
AI
Y
Yuancheng Li *
C
Chaohang Yu
Y
Yaqi Cui
DOI:10.1007/s10489-022-03158-3delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
In this paper, we propose TPCaps, a new code clone detection framework for addressing the inefficiency of semantic clone detection and the difficulty in locating code clones. Based on CapsNet with tokens and Program Dependence Graph (PDG), TPCaps can improve the processing rate and the capability for detecting. Firstly, TPCaps determines tokens by dataset partitioning and semantic signature, filtering out the valid code clone. Then, using the tokens mentioned above, it can detect Type-1 and Type-2 clones effectively. In addition, TPcaps generates PDG that is composed of data dependencies and control dependencies extracted from codes. Using PDG as input, the improved capsule network, we called RCapsNet, is able to detect Type-3 and Type-4 clones. Based on the CapsNet, RCapsNet introduces selective search algorithm combines with the Regional Proposal Network (RPN), where CapsNet handles the clone features to achieve detection and classification, and RPN processes the location information and updates trains the candidate frames to obtain a specific clone location. In the experimental section, we evaluate the recall and precision of the model. TPCaps shows its high accuracy compared to other models.
Keyword:
CapsNet
Program dependence graph
Semantic code clones
Tokens

期刊

Applied Intelligence 封面图
Applied Intelligence
IF:
3.5
论文数:
7.6K
被引数:
1.7W

机构

N
north china electric power university
学者数:
2.5W
论文数: 1.7W
被引数: 16
引用论文

引用论文

Sustainability of the community-based ecotourism development in the Aksu-Zhabagly nature reserve, Kazakhstan
err2022-03-07
err0
errOAAI
errImanaly Akbar; Sergeyeva Aigul Maksatovna; Myrzaliyeva Zabira Kazbekkyzy; Tazhekova Akmaral Zhaksybekkyzy; Saulembaev Altynbai Tagabayevich; Mominov Serik Abdukarimovich
err分享
err收藏
Comparison and evaluation of clone detection tools克隆检测工具的比较与评价
err2007-09-01
err510
errOAAI
errBellon, Stefan; Koschke, Rainer; Antoniol, Giuliano; Krinke, Jens; Merlo, Ettore
err分享
err收藏
A survey on clone refactoring and tracking克隆重构与跟踪研究综述
err2020-01-01
err15
PREAI
errMondal, Manishankar; Roy, Chanchal K.; Schneider, Kevin A.
err分享
err收藏
Further development of high-power pump laser diodes
err2003-12-10
err0
PREAI
errBerthold Schmidt; Norbert Lichtenstein; Boris Sverdlov; Nicolai Matuschek; Stefan Mohrdiek; Tomas Pliska; Juergen Mueller; Susanne Pawlik; Sebastian Arlt; Hans-Ulrich Pfeiffer; Arnaud Fily; Christoph Harder
err分享
err收藏
err分享
err收藏
学者 查看更多内容