arrow
返回

Revisiting Code Smell Severity Prioritization using learning to rank techniques

delete2024-09-01
delete2
PRE
AI
L
Lei Liu
G
Guancheng Lin
L
Lin Zhu
Z
Zhen Yang
P
Peilin Song
X
Xin Wang *
胡文华 封面图
胡文华 (Wenhua Hu)
DOI:10.1016/j.eswa.2024.123483delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Code Smell Severity Prioritization (CSSP) is crucial in helping software developers minimize software maintenance costs and enhance software quality, particularly when faced with limited refactoring resources. Traditional code smell prioritization methods rely heavily on manual and semi -automatic approaches based on developer experience, often demanding considerable time and effort from experienced experts. Leveraging automated machine learning techniques can effectively overcome these limitations. However, most existing machine learning -based CSSP works have only considered limited pointwise Learning To Rank (LTR) algorithms and have used inappropriate metrics (e.g., Accuracy, Spearman, and MAE) to assess the performance of models. To address these limitations, we make a comprehensive comparison of 41 pointwise, 4 pairwise, and 4 listwise LTR algorithms for CSSP on four code smell severity datasets. Furthermore, we propose the adoption of Severity@20% and Cumulative Lift Chart (CLC) as the primary evaluation metrics to assess CSSP models more effectively. The results show that: (1) The ordinal Bagging (O -Bagging) algorithm demonstrates the highest performance for CSSP, achieving superior results in Severity@20% and CLC. (2) The ordinal classification method can help the top -performing base classification algorithms Bagging and XGBoost achieve better performance for CSSP tasks. (3) A higher (lower) Accuracy, higher (lower) Spearman, and lower (higher) MAE do not reliably indicate better (worse) performance for CSSP. This further underscores that Accuracy, Spearman, and MAE are unsuitable metrics for evaluating CSSP models' effectiveness. To summarize, our study suggest that developers employ the O -Bagging algorithm for CSSP, with Severity@20% and CLC serving as the primary evaluation metrics.
Keyword:
Code smell
Severity prioritization
Learning to rank
Empirical study

期刊

Expert Systems with Applications 封面图
Expert Systems with Applications
IF:
7.5
论文数:
3.0W
被引数:
10.2W

机构

X
xi'an jiaotong university
学者数:
9.3W
论文数: 6.7W
被引数: 75
S
shandong university
学者数:
9.5W
论文数: 6.4W
被引数: 94
W
Wuhan University of Technology
学者数:
3.4W
论文数: 2.4W
被引数: 4.4W
W
wuhan university
学者数:
8.1W
论文数: 5.8W
被引数: 70
学者 查看更多机构
引用论文

引用论文

SARS-CoV2 variant-specific replicating RNA vaccines protect from disease and pathology and reduce viral shedding following challenge with heterologous SARS-CoV2 variants of concern
err
IF0
err2021-12-13
err0
errOAAI
errDavid W. Hawman; Kimberly Meade-White; Jacob Archer; Shanna Leventhal; Drew Wilson; Carl Shaia; Samantha Randall; Amit P. Khandhar; Tien-Ying Hsiang; Michael Gale; Peter Berglund; Deborah Heydenburg Fuller; Heinz Feldmann; Jesse H. Erasmus
err分享
err收藏
A multi-objective effort-aware defect prediction approach based on NSGA-II
err2023-12-01
err5
PREAI
errYu, Xiao; Liu, Liming; Zhu, Lin; Keung, Jacky Wai; Wang, Zijian; Li, Fuyang
err分享
err收藏
On the Significance of Category Prediction for Code-Comment Synchronization
err2023-03-29
err22
PREAI
errYang, Zhen; Keung, Jacky Wai; Yu, Xiao; Xiao, Yan; Jin, Zhi; Zhang, Jingyu
err分享
err收藏
Automatic detection of Long Method and God Class code smells through neural source code embeddings
err2022-10-01
err25
errOAAI
errKovacevic, Aleksandar; Slivka, Jelena; Vidakovic, Dragan; Grujic, Katarina-Glorija; Luburic, Nikola; Prokic, Simona; Sladic, Goran
err分享
err收藏
Environmental Performance Index to Assess the Situation in Regions of Ukraine in Terms of their Competitiveness
err2021-03-01
err0
errOAAI
errWladyslawa Luczka; Nadiia Shmygol; Irina Varlamova; Joanna Smoluk-Sikorska; Mariusz Malinowski
err分享
err收藏
err分享
err收藏
学者 查看更多内容