arrow
Return

Clone-Seeker: Effective Code Clone Search Using Annotations

delete2022-01-01
delete4
delete
OA
AI
M
Muhammad Hammad *
Ö
Önder Babur
H
Hamid Abdul Basit
M
Mark van den Brand
DOI:10.1109/ACCESS.2022.3145686delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Source code search plays an important role in software development, e.g. for exploratory development or opportunistic reuse of existing code from a code base. Often, exploration of different implementations with the same functionality is needed for tasks like automated software transplantation, software diversification, and software repair. Code clones, which are syntactically or semantically similar code fragments, are perfect candidates for such tasks. Searching for code clones involves a given search query to retrieve the relevant code fragments. We propose a novel approach called Clone-Seeker that focuses on utilizing clone class features in retrieving code clones. For this purpose, we generate metadata for each code clone in the form of a natural language document. The metadata includes a pre-processed list of identifiers from the code clones augmented with a list of keywords indicating the semantics of the code clone. This keyword list can be extracted from a manually annotated general description of the clone class, or automatically generated from the source code of the entire clone class. This approach helps developers to perform code clone search based on a search query written either as source code terms, or as natural language. With various experiments, we show that (1) Clone-Seeker is effective in finding clones from BigCloneBench dataset by applying code queries and natural language queries; 2) Clone-Seeker has a higher recall when searching for semantic code clones (i.e., Type-4) in BigCloneBench than the state-of-the-art; 3) Clone-Seeker is a generalized technique as it is effective in finding clones in Project CodeNet dataset by applying code queries and natural language queries. 4) Clone-Seeker with manual annotation outperforms other variants in finding clones on the basis of natural language queries
Keywords:
Codes
Cloning
Natural languages
Software
Search engines
Semantics
Writing
Annotation
code clone
code clone search
keyword extraction
information retrieval
Clone-advisor: recommending code tokens and clone methods with deep learning and information retrieval
err2021-11-09
err3
errOAAI
errHammad, Muhammad; Babur, Onder; Basit, Hamid Abdul; van den Brand, Mark
errShare
errSave
errShare
errSave
Prioritisation of code clones using a genetic algorithm
err2024-06-01
err0
PREAI
errAzadi, Umberto; Walter, Bartosz; Fontana, Francesca Arcelli
errShare
errSave
A Systematic Review on Code Clone Detection
err2019-01-01
err84
errOAAI
errUl Ain, Qurat; Butt, Wasi Haider; Anwar, Muhammad Waseem; Azam, Farooque; Maqbool, Bilal
errShare
errSave
Is cloned code really stable?
err2017-07-05
err28
PREAI
errMondal, Manishankar; Rahman, Md Saidur; Roy, Chanchal K.; Schneider, Kevin A.
errShare
errSave
Challenging Machine Learning-Based Clone Detectors via Semantic-Preserving Code Transformations
err2023-05-01
err8
errOAAI
errZhang, Weiwei; Guo, Shengjian; Zhang, Hongyu; Sui, Yulei; Xue, Yinxing; Xu, Yun
errShare
errSave

Journal

IEEE Access cover
IEEE Access
IF:
3.6
Papers:
10.1W
Citations:
36.3W

Organization

E
Eindhoven University of Technology
Scholars:
1.1K
Papers: 415
Citations: 1.4W
P
Prince Sultan University
Scholars:
230
Papers: 124
Citations: 1.5K
Cited Papers

Cited Papers

No Perisaccadic Mislocalization with Abruptly Cancelled Saccades
err2014-04-16
err0
errOAAI
errJeroen Atsma; Femke Maij; Brian D. Corneil; W. Pieter Medendorp
errShare
errSave
Dual Hole Transport Layers Heterojunction and Band Alignment Engineered Mo:BiVO4 Photoanodes for Efficient Water Splitting (Small 37/2024)
err2024-09-13
err0
PREAI
errGuilin Wang; Tongxin Tang; Kai‐Hang Ye; Xin Ding; Junwei Chen; WenHao Zou; Yushen Xiao; JieYu Li; Long Zhao; Chaojie Chen; Sitong Ge; Lei Li; Xiujuan Wei; Chao Chen; Yang Cao; Zhan Lin; Shanqing Zhang
errShare
errSave
errShare
errSave
Lys63/Met1-hybrid ubiquitin chains are commonly formed during the activation of innate immune signalling
err2016-06-01
err0
errOAAI
errChristoph H. Emmerich; Siddharth Bakshi; Ian R. Kelsall; Juanma Ortiz-Guerrero; Natalia Shpiro; Philip Cohen
errShare
errSave
Protocadherins: a large family of cadherin-related molecules in central nervous system.
err1993-06-01
err0
errOAAI
errK. Sano; H. Tanihara; R.L. Heimark; S. Obata; M. Davidson; T. St John; S. Taketani; S. Suzuki
errShare
errSave
Neuroscience research in Africa: Current status
err2016-06-01
err0
errOAAI
errFoad Abd-Allah; Najib Kissani; Anthony William; Mohammed Ibrahim Oraby; Ramez Reda Moustafa; Ehab Shaker; Mohamed Soliman El-Tamawy; Raad Shakir
errShare
errSave
Continental smokers couple mantle degassing and distinctive microbiology within continents
err2016-02-01
err0
errOAAI
errLaura J. Crossey; Karl E. Karlstrom; Brandon Schmandt; Ryan R. Crow; Daniel R. Colman; Brandi Cron; Cristina D. Takacs-Vesbach; Clifford N. Dahm; Diana E. Northup; David R. Hilton; Jason W. Ricketts; Anthony R. Lowry
errShare
errSave
What do developers search for on the web?
err2017-04-09
err132
PREAI
errXia, Xin; Bao, Lingfeng; Lo, David; Kochhar, Pavneet Singh; Hassan, Ahmed E.; Xing, Zhenchang
errShare
errSave
Unusual Photoisomerization Pathway in a Near-Infrared Light Absorbing Enzymerhodopsin
err2022-10-06
err0
PREAI
errMasahiro Sugiura; Kazuki Ishikawa; Kota Katayama; Yuji Sumii; Rei Abe-Yoshizumi; Satoshi P. Tsunoda; Yuji Furutani; Norio Shibata; Leonid S. Brown; Hideki Kandori
errShare
errSave
researcher View more