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 条
  • [41] A heuristic approach to social network-based and context-aware mobile services recommendation
    Wang L.
    Meng X.
    Zhang Y.
    Journal of Convergence Information Technology, 2011, 6 (10) : 339 - 346
  • [42] A Social Network Model Based on Topology Vision
    Hsiao, Ping-Nan
    COMPLEX SCIENCES, PT 2, 2009, 5 : 1398 - 1409
  • [43] Detecting Dynamic Topics in Social Network Using Citation based Anomaly Detection
    Kayalvizhi, P. .
    Selvi, C. Anoor
    PROCEEDINGS OF 2015 IEEE 9TH INTERNATIONAL CONFERENCE ON INTELLIGENT SYSTEMS AND CONTROL (ISCO), 2015,
  • [44] A social network-based system for supporting interactive collaboration in knowledge sharing over peer-to-peer network
    Yang, Stephen J. H.
    Chen, Irene Y. L.
    INTERNATIONAL JOURNAL OF HUMAN-COMPUTER STUDIES, 2008, 66 (01) : 36 - 50
  • [45] A Heuristic Model of Network-Based Group Decision Making for E-Services
    Chang, Wei-Lun
    Lo, Yi-Ping
    Hong, Yu-Ting
    PROCEEDINGS OF THE 2009 SIXTH INTERNATIONAL CONFERENCE ON INFORMATION TECHNOLOGY: NEW GENERATIONS, VOLS 1-3, 2009, : 326 - 331
  • [46] Leader identification in an online health community for cancer survivors: a social network-based classification approach
    Kang Zhao
    Greta E. Greer
    John Yen
    Prasenjit Mitra
    Kenneth Portier
    Information Systems and e-Business Management, 2015, 13 : 629 - 645
  • [47] Leader identification in an online health community for cancer survivors: a social network-based classification approach
    Zhao, Kang
    Greer, Greta E.
    Yen, John
    Mitra, Prasenjit
    Portier, Kenneth
    INFORMATION SYSTEMS AND E-BUSINESS MANAGEMENT, 2015, 13 (04) : 629 - 645
  • [48] SenseTrust: A Sentiment Based Trust Model in Social Network
    Mohammadi, Alireza
    Golpayegani, Seyyed Alireza Hashemi
    JOURNAL OF THEORETICAL AND APPLIED ELECTRONIC COMMERCE RESEARCH, 2021, 16 (06): : 2031 - 2050
  • [49] A Hierarchical Social Network-based P2P SIP System for Mobile Environments
    Li, Bo-Wei
    Wang, Kuochen
    Hsieh, Yi-Ling
    2010 IEEE 21ST INTERNATIONAL SYMPOSIUM ON PERSONAL INDOOR AND MOBILE RADIO COMMUNICATIONS (PIMRC), 2010, : 2581 - 2585
  • [50] Social Network Link Predict Based On AF Model
    Chang, Cheng
    Yao, Xiying
    2011 INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE AND NETWORK TECHNOLOGY (ICCSNT), VOLS 1-4, 2012, : 415 - 418