Tree-based Mining of Fine-grained Code Changes to Detect Unknown Change Patterns

被引:2
|
作者
Higo, Yoshiki [1 ]
Matsumoto, Junnosuke [1 ]
Kusumoto, Shinji [1 ]
机构
[1] Osaka Univ, Grad Sch Informat Sci & Technol, Suita, Osaka, Japan
关键词
Mining code change pattern; Repository mining; Edit script; Code change pattern; EFFICIENT ALGORITHM;
D O I
10.1109/APSEC53868.2021.00014
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In software development, source code is repeatedly changed due to various reasons. Similar code changes are called change patterns. Identifying change patterns is useful to support software development in a variety of ways. For example, change patterns can be used to collect ingredients for code completion or automated program repair. Many research studies have proposed various techniques that detect change patterns. For example, Negara et al. proposed a technique that derives change patterns from the edit scripts. Negara's technique can detect fine-grained change patterns, but we consider that there is room to improve their technique. We found that Negara's technique occasionally generates change patterns from structurally-different changes, and we also uncovered that the reason why such change patterns are generated is that their technique performs text comparisons in matching changes. In this study, we propose a new change mining technique to detect change patterns only from structurally-identical changes by taking into account the structure of the abstract syntax trees. We implemented the proposed technique as a tool, TC2P, and we compared it with Negara's technique. As a result, we confirmed that TC2P was not only able to detect change patterns more adequately than the prior technique but also to detect change patterns that were not detected by the prior technique.
引用
收藏
页码:61 / 71
页数:11
相关论文
共 50 条
  • [21] Fine-Grained Code Clone Detection with Block-Based Splitting of Abstract Syntax Tree
    Hu, Tiancheng
    Xu, Zijing
    Fang, Yilin
    Wu, Yueming
    Yuan, Bin
    Zou, Deqing
    Jin, Hai
    PROCEEDINGS OF THE 32ND ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2023, 2023, : 89 - 100
  • [22] Retrieving Data Constraint Implementations Using Fine-Grained Code Patterns
    Florez, Juan Manuel
    Perry, Jonathan
    Wei, Shiyi
    Marcus, Andrian
    Proceedings - International Conference on Software Engineering, 2022, 2022-May : 1893 - 1905
  • [23] Retrieving Data Constraint Implementations Using Fine-Grained Code Patterns
    Florez, Juan Manuel
    Perry, Jonathan
    Wei, Shiyi
    Marcus, Andrian
    2022 ACM/IEEE 44TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2022), 2022, : 1893 - 1905
  • [24] ChangeMacroRecorder: Accurate Recording of Fine-Grained Textual Changes of Source Code
    Maruyama, Katsuhisa
    Hayashi, Shinpei
    Omori, Takayuki
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2020, E103D (11): : 2262 - 2277
  • [25] ChangeMacroRecorder: Accurate Recording of Fine-Grained Textual Changes of Source Code∗
    Maruyama K.
    Hayashi S.
    Omori T.
    IEICE Transactions on Information and Systems, 2020, E103D (11) : 2262 - 2277
  • [26] The Delta Maintainability Model: Measuring Maintainability of Fine-Grained Code Changes
    di Biase, Marco
    Rastogi, Ayushi
    Bruntink, Magiel
    van Deursen, Arie
    2019 IEEE/ACM INTERNATIONAL CONFERENCE ON TECHNICAL DEBT (TECHDEBT 2019), 2019, : 113 - 122
  • [27] Using Topic Model to Suggest Fine-grained Source Code Changes
    Hoan Anh Nguyen
    Anh Tuan Nguyen
    Nguyen, Tien N.
    32ND IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2016), 2016, : 201 - 211
  • [28] Mining Tree-Based Frequent Patterns from XML
    Mazuran, Mirjana
    Quintarelli, Elisa
    Tanca, Letizia
    FLEXIBLE QUERY ANSWERING SYSTEMS: 8TH INTERNATIONAL CONFERENCE, FQAS 2009, 2009, 5822 : 287 - 299
  • [29] Logical Coupling Based on Fine-Grained Change Information
    Robbes, Romain
    Pollet, Damien
    Lanza, Michele
    FIFTEENTH WORKING CONFERENCE ON REVERSE ENGINEERING, PROCEEDINGS, 2008, : 42 - 46
  • [30] Phase-based fine-grained change detection
    Wang, Xuzhi
    Wan, Liang
    Lin, Di
    Feng, Wei
    EXPERT SYSTEMS WITH APPLICATIONS, 2023, 227