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 条
  • [41] Software vulnerability code clone detection method based on characteristic metrics
    Gan, Shui-Tao
    Qin, Xiao-Jun
    Chen, Zuo-Ning
    Wang, Lin-Zhang
    Ruan Jian Xue Bao/Journal of Software, 2015, 26 (02): : 348 - 363
  • [42] On the Structural Code Clone Detection Problem: A Survey and Software Metric Based Approach
    Kapdan, Mustafa
    Aktas, Mehmet
    Yigit, Melike
    COMPUTATIONAL SCIENCE AND ITS APPLICATIONS - ICCSA 2014, PT V, 2014, 8583 : 492 - +
  • [43] An empirical study of code reuse between GitHub and stack overflow during software development
    Chen, Xiangping
    Xu, Furen
    Huang, Yuan
    Zhou, Xiaocong
    Zheng, Zibin
    JOURNAL OF SYSTEMS AND SOFTWARE, 2024, 210
  • [44] Enhanced Pre-processing and Parameterization Process of Generic Code Clone Detection Model for Clones in Java']Java Applications
    Mokhtar, Nur Nadzirah
    Muharak-Ali, Al-Fahim
    Hamza, Mohd Azwan Mohamad
    INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2020, 11 (06) : 570 - 577
  • [45] Software Code Cloning Detection and Future Scope Development-Latest Short Review
    Patil, Ritesh V.
    Patil, Lalit V.
    Shinde, Sachin V.
    Joshi, S. D.
    2014 RECENT ADVANCES AND INNOVATIONS IN ENGINEERING (ICRAIE), 2014,
  • [46] Machine Learning Approaches to Code Similarity Measurement: A Systematic Review
    Zhang, Zixian
    Saber, Takfarinas
    IEEE ACCESS, 2025, 13 : 51729 - 51764
  • [47] Development of deep learning software to improve HPLC and GC predictions using a new crown-ether based mesogenic stationary phase and beyond
    Belaid, Warda Fella
    Dekhira, Azeddine
    Lesot, Philippe
    Ferroukhi, Ouassila
    JOURNAL OF CHROMATOGRAPHY A, 2025, 1739
  • [48] CONCORD: Clone-Aware Contrastive Learning for Source Code
    Ding, Yangruibo
    Chakraborty, Saikat
    Buratti, Luca
    Pujar, Saurabh
    Morari, Alessandro
    Kaiser, Gail
    Ray, Baishakhi
    PROCEEDINGS OF THE 32ND ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2023, 2023, : 26 - 38
  • [49] Review Sharing via Deep Semi-Supervised Code Clone Detection
    Guo, Chenkai
    Yang, Hui
    Huang, Dengrong
    Zhang, Jianwen
    Dong, Naipeng
    Xu, Jing
    Zhu, Jingwen
    IEEE ACCESS, 2020, 8 (24948-24965) : 24948 - 24965
  • [50] A systematic literature review on the use of machine learning in code clone research
    Kaur, Manpreet
    Rattan, Dhavleesh
    COMPUTER SCIENCE REVIEW, 2023, 47