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 条
  • [31] A Fine-Grained Data Mining Model Based on Psychometric Data
    Wang, Zhenzhen
    2020 5TH INTERNATIONAL CONFERENCE ON MECHANICAL, CONTROL AND COMPUTER ENGINEERING (ICMCCE 2020), 2020, : 1135 - 1138
  • [32] User preference mining based on fine-grained sentiment analysis
    Xiao, Yan
    Li, Congdong
    Thurer, Matthias
    Liu, Yide
    Qu, Ting
    JOURNAL OF RETAILING AND CONSUMER SERVICES, 2022, 68
  • [33] Studying Fine-Grained Co-Evolution Patterns of Production and Test Code
    Marsavina, Cosmin
    Romano, Daniele
    Zaidman, Andy
    2014 14TH IEEE INTERNATIONAL WORKING CONFERENCE ON SOURCE CODE ANALYSIS AND MANIPULATION (SCAM 2014), 2014, : 195 - 204
  • [34] Understanding Software Changes: Extracting, Classifying, and Presenting Fine-Grained Source Code Changes
    Frick, Veit
    2020 ACM/IEEE 42ND INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS (ICSE-COMPANION 2020), 2020, : 226 - 229
  • [35] Supporting Merge Conflict Resolution by Using Fine-Grained Code Change History
    Nishimura, Yuichi
    Maruyama, Katsuhisa
    2016 IEEE 23RD INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER), VOL 1, 2016, : 661 - 664
  • [36] Exploring the Impact of Code Smells on Fine-Grained Structural Change-Proneness
    Liu, Huihui
    Li, Bixin
    Yang, Yibiao
    Ma, Wanwangying
    Jia, Ru
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2018, 28 (10) : 1487 - 1516
  • [37] API Code Recommendation using Statistical Learning from Fine-Grained Changes
    Anh Tuan Nguyen
    Hilton, Michael
    Codoban, Mihai
    Hoan Anh Nguyen
    Mast, Lily
    Rademacher, Eli
    Nguyen, Tien N.
    Dig, Danny
    FSE'16: PROCEEDINGS OF THE 2016 24TH ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON FOUNDATIONS OF SOFTWARE ENGINEERING, 2016, : 511 - 522
  • [38] FIRA: Fine-Grained Graph-Based Code Change Representation for Automated Commit Message Generation
    Dong, Jinhao
    Lou, Yiling
    Zhu, Qihao
    Sun, Zeyu
    Li, Zhilin
    Zhang, Wenjie
    Hao, Dan
    2022 ACM/IEEE 44TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2022), 2022, : 970 - 981
  • [39] Tree-Based Mining for Discovering Patterns of Human Interaction in Meetings
    Yu, Zhiwen
    Yu, Zhiyong
    Zhou, Xingshe
    Becker, Christian
    Nakamura, Yuichi
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2012, 24 (04) : 759 - 768
  • [40] Study on Fine-Grained View Mining based on Network Subjective Text
    Wang, Liping
    Liu, Yanling
    PROCEEDINGS OF 2016 5TH INTERNATIONAL CONFERENCE ON SOCIAL SCIENCE, EDUCATION AND HUMANITIES RESEARCH, 2016, 69 : 1385 - 1388