Source Code Metrics for Software Defects Prediction

被引:2
|
作者
Rebro, Dominik Arne [1 ]
Rossi, Bruno [1 ]
Chren, Stanislav [1 ]
机构
[1] Masaryk Univ, Brno, Czech Republic
来源
38TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING, SAC 2023 | 2023年
关键词
Software Defect Prediction; Software Metrics; Mining Software Repositories; Software Quality;
D O I
10.1145/3555776.3577809
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
In current research, there are contrasting results about the applicability of software source code metrics as features for defect prediction models. The goal of the paper is to evaluate the adoption of software metrics in models for software defect prediction, identifying the impact of individual source code metrics. With an empirical study on 275 release versions of 39 Java projects mined from GitHub, we compute 12 software metrics and collect software defect information. We train and compare three defect classification models. The results across all projects indicate that Decision Tree (DT) and Random Forest (RF) classifiers show the best results. Among the highest-performing individual metrics are NOC, NPA, DIT, and LCOM5. While other metrics, such as CBO, do not bring significant improvements to the models.
引用
收藏
页码:1469 / 1472
页数:4
相关论文
共 50 条
  • [21] A Practical Failure Prediction Model based on Code Smells and Software Development Metrics
    Schuetz, Martin
    Ploesch, Reinhold
    PROCEEDINGS OF THE 4TH EUROPEAN SYMPOSIUM ON SOFTWARE ENGINEERING, ESSE 2023, 2024, : 14 - 22
  • [22] Mining Static Code Metrics for a Robust Prediction of Software Defect-Proneness
    Li, Lianfa
    Leung, Hareton
    2011 FIFTH INTERNATIONAL SYMPOSIUM ON EMPIRICAL SOFTWARE ENGINEERING AND MEASUREMENT (ESEM 2011), 2011, : 207 - 214
  • [23] Evaluation of Sampling Techniques in Software Fault Prediction Using Metrics and Code Smells
    Kaur, Kamaldeep
    Kaur, Parmeet
    2017 INTERNATIONAL CONFERENCE ON ADVANCES IN COMPUTING, COMMUNICATIONS AND INFORMATICS (ICACCI), 2017, : 1377 - 1386
  • [24] PREDICTION OF DEFECT DENSITY FOR OPEN SOURCE SOFTWARE USING REPOSITORY METRICS
    Verma, Dinesh
    Kumar, Shishir
    JOURNAL OF WEB ENGINEERING, 2017, 16 (3-4): : 293 - 310
  • [25] SOFTWARE FUNCTION, SOURCE LINES OF CODE, AND DEVELOPMENT EFFORT PREDICTION - A SOFTWARE SCIENCE VALIDATION
    ALBRECHT, AJ
    GAFFNEY, JE
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1983, 9 (06) : 639 - 648
  • [26] A catalog of metrics at source code level for vulnerability prediction: A systematic mapping study
    Codabux, Zadia
    Zakia Sultana, Kazi
    Chowdhury, Md Naseef-Ur-Rahman
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2024, 36 (07)
  • [27] Sextant: A Tool to Specify and Visualize Software Metrics for Java']Java Source-Code
    Winter, Victor
    Reinke, Carl
    Guerrero, Jonathan
    2013 4TH INTERNATIONAL WORKSHOP ON EMERGING TRENDS IN SOFTWARE METRICS (WETSOM), 2013, : 49 - 55
  • [28] Data stream mining for predicting software build outcomes using source code metrics
    Finlay, Jacqui
    Pears, Russel
    Connor, Andy M.
    INFORMATION AND SOFTWARE TECHNOLOGY, 2014, 56 (02) : 183 - 198
  • [29] Predicting Vulnerabilities in Computer Source Code Using Non-Investigated Software Metrics
    Agbenyegah, Francis Kwadzo
    Chen, Jinfu
    Asante, Micheal
    Akpaku, Ernest
    SOFTWARE QUALITY JOURNAL, 2025, 33 (01)
  • [30] Can Software Project Maturity Be Accurately Predicted Using Internal Source Code Metrics?
    Grechanik, Mark
    Prabhu, Nitin
    Graham, Daniel
    Poshyvanyk, Denys
    Shah, Mohak
    MACHINE LEARNING AND DATA MINING IN PATTERN RECOGNITION (MLDM 2016), 2016, 9729 : 774 - 789