Exploring the Impact of Code Clones on Deep Learning Software

被引:2
作者
Mo, Ran [1 ]
Zhang, Yao [1 ]
Wang, Ush Uo [1 ]
Zhang, Uan [1 ]
Xiong, Pu [1 ]
Li, Zengyang [1 ]
Zhao, Yang [1 ]
机构
[1] Cent China Normal Univ, Wuhan, Hubei, Peoples R China
基金
中国国家自然科学基金;
关键词
Deep learning software; code clone; co-changed clone; CCFINDER;
D O I
10.1145/3607181
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Deep learning (DL) is a really active topic in recent years. Code cloning is a common code implementation that could negatively impact software maintenance. For DL software, developers rely heavily on frameworks to implement DL features. Meanwhile, to guarantee efficiency, developers often reuse the steps and configuration settings for building DL models. These may bring code copy-pastes or reuses inducing code clones. However, there is little work exploring code clones' impact on DL software. In this article, we conduct an empirical study and show that: (1) code clones are prevalent in DL projects, about 16.3% of code fragments encounter clones, which is almost twice larger than the traditional projects; (2) 75.6% of DL projects contain co-changed clones, meaning changes are propagated among cloned fragments, which can bring maintenance difficulties; (3) Percentage of the clones and Number of clone lines are associated with the emergence of co-changes; (4) the prevalence of Code clones varies in DL projects with different frameworks, but the difference is not significant; (5) Type 1 co-changed clones often spread over different folders, but Types 2 and 3 co-changed clones mainly occur within the same files or folders; (6) 57.1% of all co-changed clones are involved in bugs.
引用
收藏
页数:34
相关论文
共 50 条
  • [31] CloneRipples: predicting change propagation between code clone instances by graph-based deep learning
    Wu, Yijian
    Chen, Yuan
    Peng, Xin
    Hu, Bin
    Wang, Xiaochen
    Fu, Baiqiang
    Zhao, Wenyun
    EMPIRICAL SOFTWARE ENGINEERING, 2025, 30 (01)
  • [32] Changes of Evaluation Values on Component Rank Model by Taking Code Clones into Consideration
    Yokomori, Reishi
    Yoshida, Norihiro
    Noro, Masami
    Inoue, Katsuro
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2018, E101D (01): : 130 - 141
  • [33] How Slim Will My System Be? Estimating Refactored Code Size by Merging Clones
    Yoshida, Norihiro
    Ishizu, Takuya
    Edwards, Bufurod, III
    Inoue, Katsuro
    2018 IEEE/ACM 26TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC 2018), 2018, : 352 - 360
  • [34] How are functionally similar code clones syntactically different? An empirical study and a benchmark
    Wagner, Stefan
    Abdulkhaleq, Asim
    Bogicevic, Ivan
    Ostberg, Jan-Peter
    Ramadani, Jasmin
    PEERJ COMPUTER SCIENCE, 2016,
  • [35] A Retrospective on Developing Code Clone Detector CCFinder and Its Impact
    Kamiya, Toshihiro
    Kusumoto, Shinji
    Inoue, Katsuro
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2025, 51 (03) : 808 - 813
  • [36] Code clone analysis environment for supporting software development and maintenance
    Ueda, Yaslishi
    Kamiya, Toshihiro
    Kusumoto, Shinjii
    Inoue, Katsuro
    ELECTRONICS AND COMMUNICATIONS IN JAPAN PART III-FUNDAMENTAL ELECTRONIC SCIENCE, 2006, 89 (11): : 10 - 18
  • [37] Structural Code Clone Detection Methodology Using Software Metrics
    Aktas, Mehmet S.
    Kapdan, Mustafa
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2016, 26 (02) : 307 - 332
  • [38] CLORIFI: software vulnerability discovery using code clone verification
    Li, Hongzhe
    Kwon, Hyuckmin
    Kwon, Jonghoon
    Lee, Heejo
    CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2016, 28 (06) : 1900 - 1917
  • [39] An Effective Approach Using Dissimilarity Measures To Estimate Software Code Clone
    Patil, Ritesh V.
    Joshi, Shashank. D.
    Shinde, Sachin V.
    Khanna, V.
    2015 INTERNATIONAL CONFERENCE ON ELECTRICAL, ELECTRONICS, SIGNALS, COMMUNICATION AND OPTIMIZATION (EESCO), 2015,
  • [40] A Novel Approach for Improving the Quality of Software Code using Reverse Engineering
    Elghadhafi, Hamza A.
    Abdelaziz, Tawfig M.
    Maatuk, Abdelsalam M.
    ICEMIS'18: PROCEEDINGS OF THE FOURTH INTERNATIONAL CONFERENCE ON ENGINEERING AND MIS, 2018,