Tritor: Detecting Semantic Code Clones by Building Social Network-Based Triads Model

被引:1
作者
Zou, Deqing [1 ,2 ]
Feng, Siyue [1 ,2 ]
Wu, Yueming [3 ]
Suo, Wenqi [1 ,2 ]
Jin, Hai [1 ,4 ]
机构
[1] Huazhong Univ Sci & Technol, Hubei Key Lab Distributed Syst Secur, Cluster & Grid Comp Lab,Hubei Engn Res Ctr Big Da, Natl Engn Res Ctr Big Data Technol & Syst Serv Co, Wuhan, Peoples R China
[2] Huazhong Univ Sci & Technol, Sch Cyber Sci & Engn, Wuhan 430074, Peoples R China
[3] Nanyang Technol Univ, Singapore, Singapore
[4] Huazhong Univ Sci & Technol, Sch Comp Sci & Technol, Wuhan 430074, Peoples R China
来源
PROCEEDINGS OF THE 31ST ACM JOINT MEETING EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, ESEC/FSE 2023 | 2023年
基金
美国国家科学基金会;
关键词
Semantic Clones; Abstract Syntax Tree; Social Network; Triads;
D O I
10.1145/3611643.3616354
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Code clone detection refers to finding the functional similarities between two code fragments, which is becoming increasingly important with the evolution of software engineering. Numbers of code clone detection methods have been proposed, including tree-based methods that are capable of detecting semantic code clones. However, since tree structure is complex, these methods are difficult to apply to large-scale clone detection. In this paper, we propose a scalable semantic code clone detector based on semantically enhanced abstract syntax tree. Specifically, we add the control flow and data flow details into the original tree and regard the enhanced tree as a social network. Thenwe build a social network-based triads model to collect the similarity features between the two methods by analyzing different types of triads within the network. After obtaining all features, we use them to train a machine learning-based code clone detector (i.e., Tritor). Our comparative experimental results show that Tritor is superior to SourcererCC, RtvNN, Deckard, ASTNN, TBCNN, CDLH, and SCDetector, are equally good with DeepSim and FCCA. As for scalability, Tritor is about 39 times faster than another current state-of-the-art tree-based code clone detector ASTNN.
引用
收藏
页码:771 / 783
页数:13
相关论文
共 50 条
  • [31] A multi-theoretical kernel-based approach to social network-based recommendation
    Li, Xin
    Wang, Mengyue
    Liang, T. -P.
    DECISION SUPPORT SYSTEMS, 2014, 65 : 95 - 104
  • [32] NetSpam: A Network-Based Spam Detection Framework for Reviews in Online Social Media
    Shehnepoor, Saeedreza
    Salehi, Mostafa
    Farahbakhsh, Reza
    Crespi, Noel
    IEEE TRANSACTIONS ON INFORMATION FORENSICS AND SECURITY, 2017, 12 (07) : 1585 - 1595
  • [33] Social Network-Based Trust Computing in P2P Environments
    Liu, Fengming
    Ding, Yongsheng
    2008 7TH WORLD CONGRESS ON INTELLIGENT CONTROL AND AUTOMATION, VOLS 1-23, 2008, : 2130 - 2135
  • [34] Development and Efficacy Testing of a Social Network-Based Competitive Application for Weight Loss
    Lee, Jisan
    Kim, Jeongeun
    TELEMEDICINE AND E-HEALTH, 2016, 22 (05) : 410 - 418
  • [35] Information Diffusion Model Based on Social Network
    Zhang Wei
    Ye Yanqing
    Tan Hanlin
    Dai Qiwei
    Li Taowei
    PROCEEDINGS OF THE 2012 INTERNATIONAL CONFERENCE OF MODERN COMPUTER SCIENCE AND APPLICATIONS, 2013, 191 : 145 - 150
  • [36] A social network evolution model based on seniority
    Yi-Kuang Ko
    Jing-Kai Lou
    Cheng-Te Li
    Shou-De Lin
    Shyh-Kang Jeng
    Social Network Analysis and Mining, 2012, 2 (2) : 107 - 119
  • [37] Research on Marketing Model Based on Social Network
    Kong, Guibao
    2018 INTERNATIONAL WORKSHOP ON ADVANCES IN SOCIAL SCIENCES (IWASS 2018), 2019, : 27 - 30
  • [38] Recommendation on Social Network Based on Graph Model
    Li, Jun
    Ma, Shuchao
    Hong, Shuang
    PROCEEDINGS OF THE 31ST CHINESE CONTROL CONFERENCE, 2012, : 7548 - 7551
  • [39] A Hybrid Social Network-based Collaborative Filtering Method for Personalized Manufacturing Service Recommendation
    Zhang, S.
    Yang, W. T.
    Xu, S.
    Zhang, W. Y.
    INTERNATIONAL JOURNAL OF COMPUTERS COMMUNICATIONS & CONTROL, 2017, 12 (05) : 728 - 740
  • [40] Development of the Social Network-Based Intervention "Powerful Together with Diabetes" Using Intervention Mapping
    Vissenberg, Charlotte
    Nierkens, Vera
    Uitewaal, Paul J. M.
    Middelkoop, Barend J. C.
    Nijpels, Giel
    Stronks, Karien
    FRONTIERS IN PUBLIC HEALTH, 2017, 5