arrow
返回

Python code smells detection using conventional machine learning models

Python代码使用传统机器学习模型进行气味检测

delete2023-05-29
delete7
delete
OA
AI
R
Rana Sandouka
H
Hamoud Aljamaan *
DOI:10.7717/peerj-cs.1370delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
Code smells are poor code design or implementation that affect the code maintenance process and reduce the software quality. Therefore, code smell detection is important in software building. Recent studies utilized machine learning algorithms for code smell detection. However, most of these studies focused on code smell detection using Java programming language code smell datasets. This article proposes a Python code smell dataset for Large Class and Long Method code smells. The built dataset contains 1,000 samples for each code smell, with 18 features extracted from the source code. Furthermore, we investigated the detection performance of six machine learning models as baselines in Python code smells detection. The baselines were evaluated based on Accuracy and Matthews correlation coefficient (MCC) measures. Results indicate the superiority of Random Forest ensemble in Python Large Class code smell detection by achieving the highest detection performance of 0.77 MCC rate, while decision tree was the best performing model in Python Long Method code smell detection by achieving the highest MCC Rate of 0.89.
Keyword:
Python
Code smell
Detection
Machine learning
Large class
Long method
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

err分享
err收藏
Code smell severity classification using machine learning techniques
err2017-07-01
err98
PREAI
errFontana, Francesca Arcelli; Zanoni, Marco
err分享
err收藏
Developers' perception matters: machine learning to detect developer-sensitive smells
err2022-10-12
err0
PREAI
errOliveira, Daniel; Assuncao, Wesley K. G.; Garcia, Alessandro; Fonseca, Baldoino; Ribeiro, Marcio
err分享
err收藏
Code smell detection by deep direct-learning and transfer-learning?
err2021-06-01
err51
errOAAI
errSharma, Tushar; Efstathiou, Vasiliki; Louridas, Panos; Spinellis, Diomidis
err分享
err收藏

期刊

PeerJ Computer Science 封面图
PeerJ Computer Science
IF:
2.5
论文数:
3.4K
被引数:
9.4K

机构

暂无机构信息
引用论文

引用论文

err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
err分享
err收藏
BDTEX: A GQM-based Bayesian approach for the detection of antipatterns
err2011-04-01
err143
PREAI
errKhomh, Foutse; Vaucher, Stephane; Gueheneuc, Yann-Gael; Sahraoui, Houari
err分享
err收藏
In Vivo Analysis of the Role of O-Glycosylations of Von Willebrand Factor
err2012-05-17
err0
errOAAI
errIdinath Badirou; Mohamad Kurdi; Paulette Legendre; Julie Rayes; Marijke Bryckaert; Caterina Casari; Peter J. Lenting; Olivier D. Christophe; Cecile V. Denis
err分享
err收藏
Code smell detection by deep direct-learning and transfer-learning?
err2021-06-01
err51
errOAAI
errSharma, Tushar; Efstathiou, Vasiliki; Louridas, Panos; Spinellis, Diomidis
err分享
err收藏
Code smells and their collocations: A large-scale experiment on open-source systems
err2018-10-01
err24
PREAI
errWalter, Bartosz; Fontana, Francesca Arcelli; Ferme, Vincenzo
err分享
err收藏
学者 查看更多内容