Leveraging structural properties of source code graphs for just-in-time bug prediction

被引:0
|
作者
Md Nadim
Debajyoti Mondal
Chanchal K. Roy
机构
[1] University of Saskatchewan,
来源
关键词
Source code visualization; Graph representation; Graph attribute; Machine learning models; Feature selection; Classification;
D O I
暂无
中图分类号
学科分类号
摘要
The most common use of data visualization is to minimize the complexity for proper understanding. A graph is one of the most commonly used representations for understanding relational data. It produces a simplified representation of data that is challenging to comprehend if kept in a textual format. In this study, we propose a methodology to utilize the relational properties of source code in the form of a graph to identify Just-in-Time (JIT) bug prediction in software systems during different revisions of software evolution and maintenance. We presented a method to convert the source codes of commit patches to equivalent graph representations and named it Source Code Graph (SCG). To understand and compare multiple source code graphs, we extracted several structural properties of these .graphs, such as the density, number of cycles, nodes, edges, etc. We then utilized the attribute values of those SCGs to visualize and detect buggy software commits. We process more than 246 K software commits from 12 subject systems in this investigation. Our investigation on these 12 open-source software projects written in C++ and Java programming languages shows that if we combine the features from SCG with conventional features used in similar studies, we will get the increased performance of Machine Learning (ML) based buggy commit detection models. We also find the increase of F1 Scores in predicting buggy and non-buggy commits statistically significant using the Wilcoxon Signed Rank Test. Since SCG-based feature values represent the style or structural properties of source code updates or changes in the software system, it suggests the importance of careful maintenance of source code style or structure for keeping a software system bug-free.
引用
收藏
相关论文
共 50 条
  • [41] On Automating Hybrid Execution of Ahead-of-Time and Just-in-Time Compiled Code
    Pichler, Christoph
    Li, Paley
    Schatz, Roland
    Mossenbock, Hanspeter
    PROCEEDINGS OF THE 16TH ACM SIGPLAN INTERNATIONAL WORKSHOP ON VIRTUAL MACHINES AND INTERMEDIATE LANGUAGES, VMIL 2024, 2024, : 1 - 11
  • [42] TypeOut: Leveraging Just-in-Time Self-Afirmation for Smartphone Overuse Reduction
    Xu, Xuhai
    Zou, Tianyuan
    Han, Xiao
    Li, Yanzhang
    Wang, Ruolin
    Yuan, Tianyi
    Wang, Yuntao
    Shi, Yuanchun
    Mankoff, Jennifer
    Dey, Anind K.
    PROCEEDINGS OF THE 2022 CHI CONFERENCE ON HUMAN FACTORS IN COMPUTING SYSTEMS (CHI' 22), 2022,
  • [43] Fast, effective code generation in a just-in-time Java']Java compiler
    Adl-Tabatabai, AR
    Cierniak, M
    Lueh, GY
    Parikh, VM
    Stichnoth, JM
    ACM SIGPLAN NOTICES, 1998, 33 (05) : 280 - 290
  • [44] On Code Example-Aided Just-In-Time Learning for Programming Education
    Li, Zheng
    Gorrepati, Sridhar Sai
    Greer, Desmond
    PROCEEDINGS OF THE 2023 30TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE, APSEC 2023, 2023, : 622 - 626
  • [45] Code size and performance optimization for mobile JavaScript just-in-time compiler
    Lee, Seong-Won
    Moon, Soo-Mook
    Jung, Won-Ki
    Oh, Jin-Seok
    Oh, Hyeong-Seok
    Proceedings - Annual Workshop on Interaction between Compilers and Computer Architectures, INTERACT, 2010,
  • [46] Just-in-time Customer Churn Prediction: With and Without Data Transformation
    Amin, Adnan
    Shah, Babar
    Khattak, Asad Masood
    Baker, Thar
    Durani, Hamood Ur Rahman
    Anwar, Sajid
    2018 IEEE CONGRESS ON EVOLUTIONARY COMPUTATION (CEC), 2018, : 244 - 250
  • [47] The Impact of Mislabeled Changes by SZZ on Just-in-Time Defect Prediction
    Fan, Yuanrui
    Xia, Xin
    da Costa, Daniel Alencar
    Lo, David
    Hassan, Ahmed E.
    Li, Shanping
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2021, 47 (08) : 1559 - 1586
  • [48] A Replication Study: Just-In-Time Defect Prediction with Ensemble Learning
    Young, Steven
    Abdou, Tamer
    Bener, Ayse
    2018 IEEE/ACM 6TH INTERNATIONAL WORKSHOP ON REALIZING ARTIFICIAL INTELLIGENCE SYNERGIES IN SOFTWARE ENGINEERING (RAISE), 2018, : 42 - 47
  • [49] Feature Sets in Just-in-Time Defect Prediction: An Empirical Evaluation
    Bludau, Peter
    Pretschner, Alexander
    PROCEEDINGS OF THE 18TH INTERNATIONAL CONFERENCE ON PREDICTIVE MODELS AND DATA ANALYTICS IN SOFTWARE ENGINEERING, PROMISE 2022, 2022, : 22 - 31
  • [50] Towards Reliable Online Just-in-Time Software Defect Prediction
    Cabral, George G.
    Minku, Leandro L.
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2023, 49 (03) : 1342 - 1358