Are Smell-Based Metrics Actually Useful in Effort-Aware Structural Change-Proneness Prediction? An Empirical Study

被引:4
|
作者
Liu, Huihui [1 ]
Yu, Yijun [2 ]
Li, Bixin [1 ]
Yang, Yibiao [3 ]
Jia, Ru [4 ]
机构
[1] Southeast Univ, Sch Engn & Comp Sci, Nanjing, Jiangsu, Peoples R China
[2] Open Univ, Ctr Res Comp, Milton Keynes, Bucks, England
[3] Nanjing Univ, State Key Lab Novel Software Technol, Nanjing, Jiangsu, Peoples R China
[4] Swinburne Univ Technol, Sch Software & Elect Engn, Melbourne, Vic, Australia
基金
中国国家自然科学基金; 英国工程与自然科学研究理事会;
关键词
code smell; structual change; effort-aware; change-proneness prediction; CODE SMELLS; IMPACT;
D O I
10.1109/APSEC.2018.00046
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Bad code smells (also named as code smells) are symptoms of poor design choices in implementation. Existing studies empirically confirmed that the presence of code smells increases the likelihood of subsequent changes (i.e., change-proness). However, to the best of our knowledge, no prior studies have leveraged smell-based metrics to predict particular change type (i.e., structural changes). Moreover, when evaluating the effectiveness of smell-based metrics in structural change-proneness prediction, none of existing studies take into account of the effort inspecting those change-prone source code. In this paper, we consider five smell-based metrics for effort-aware structural change-proneness prediction and compare these metrics with a baseline of well-known CK metrics in predicting particular categories of change types. Specifically, we first employ univariate logistic regression to analyze the correlation between each smell-based metric and structural change-proneness. Then, we build multivariate prediction models to examine the effectiveness of smell-based metrics in effort-aware structural change-proneness prediction when used alone and used together with the baseline metrics, respectively. Our experiments are conducted on six Java open-source projects with up to 60 versions and results indicate that: (1) all smell-based metrics are significantly related to structural change-proneness, except metric ANOS in hive and SCM in camel after removing confounding effect of file size; (2) in most cases, smell-based metrics outperform the baseline metrics in predicting structural change-proneness; and (3) when used together with the baseline metrics, the smell-based metrics are more effective to predict change-prone files with being aware of inspection effort.
引用
收藏
页码:315 / 324
页数:10
相关论文
共 9 条
  • [1] Are Slice-Based Cohesion Metrics Actually Useful in Effort-Aware Post-Release Fault-Proneness Prediction? An Empirical Study
    Yang, Yibiao
    Zhou, Yuming
    Lu, Hongmin
    Chen, Lin
    Chen, Zhenyu
    Xu, Baowen
    Leung, Hareton
    Zhang, Zhenyu
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2015, 41 (04) : 331 - 357
  • [2] An Empirical Study on Dependence Clusters for Effort-Aware Fault-Proneness Prediction
    Yang, Yibiao
    Harman, Mark
    Krinke, Jens
    Islam, Syed
    Binkley, David
    Zhou, Yuming
    Xu, Baowen
    [J]. 2016 31ST IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE), 2016, : 296 - 307
  • [3] Empirical analysis of network measures for effort-aware fault-proneness prediction
    Ma, Wanwangying
    Chen, Lin
    Yang, Yibiao
    Zhou, Yuming
    Xu, Baowen
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2016, 69 : 50 - 70
  • [4] Effort-Aware Fault-Proneness Prediction Using Non-API-Based Package-Modularization Metrics
    Shaikh, Mohsin
    Tunio, Irfan
    Khan, Jawad
    Jung, Younhyun
    [J]. MATHEMATICS, 2024, 12 (14)
  • [5] An Empirical Study of Learning to Rank Techniques for Effort-Aware Defect Prediction
    Yu, Xiao
    Bennin, Kwabena Ebo
    Liu, Jin
    Keung, Jacky Wai
    Yin, Xiaofei
    Xu, Zhou
    [J]. 2019 IEEE 26TH INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING (SANER), 2019, : 298 - 309
  • [6] The impact of feature selection techniques on effort-aware defect prediction: An empirical study
    Li, Fuyang
    Lu, Wanpeng
    Keung, Jacky Wai
    Yu, Xiao
    Gong, Lina
    Li, Juan
    [J]. IET SOFTWARE, 2023, 17 (02) : 168 - 193
  • [7] Bug numbers matter: An empirical study of effort-aware defect prediction using class labels versus bug numbers
    Yang, Peixin
    Zeng, Ziyao
    Zhu, Lin
    Zhang, Yanjiao
    Wang, Xin
    Ma, Chuanxiang
    Hu, Wenhua
    [J]. SOFTWARE-PRACTICE & EXPERIENCE, 2024, : 49 - 78
  • [8] Empirical Study about Class Change Proneness Prediction using Software Metrics and Code Smells
    Forte Martins, Antonio Diogo
    Melo, Cristiano
    Monteiro, Jose Maria
    Machado, Javam de Castro
    [J]. PROCEEDINGS OF THE 22ND INTERNATIONAL CONFERENCE ON ENTERPRISE INFORMATION SYSTEMS (ICEIS), VOL 1, 2020, : 140 - 147
  • [9] Software fault prediction based on change metrics using hybrid algorithms: An empirical study
    Rhmann, Wasiur
    Pandey, Babita
    Ansari, Gufran
    Pandey, D. K.
    [J]. JOURNAL OF KING SAUD UNIVERSITY-COMPUTER AND INFORMATION SCIENCES, 2020, 32 (04) : 419 - 424