已入深夜,您辛苦了!由于当前在线用户较少,发布求助请尽量完整的填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!祝你早点完成任务,早点休息,好梦!

Python Code Smell Detection Using Machine Learning

Python(编程语言) 计算机科学 机器学习 人工智能 可维护性 可测试性 特征选择 单元测试 回归检验 软件 工具箱 软件质量 程序设计语言 软件系统 软件开发 软件工程 软件建设 哲学 认识论
作者
Natthida Vatanapakorn,Chitsutha Soomlek,Pusadee Seresangtakul
标识
DOI:10.1109/icsec56337.2022.10049330
摘要

Python is an increasingly popular programming language used in various software projects and domains. Code smells in Python significantly influences the maintainability, understandability, testability issues. This paper proposes a machine learning-based code smell detection for Python programs. We trained eight machine learning models with a dataset based on 115 open-source Python projects, 39 class-level software metrics, and 22 function-level software metrics. We intended to identify five code smell types in both class and function levels, i.e., long method, long parameter list, large class long scope chaining, and long based class list. Correlation-based feature selection (CFS) and logistic regression-forward stepwise (conditional) selection were employed to improve the performance of the model. This research concluded with an empirical evaluation of the performance of the machine learning approaches against the tuning machine method. The results show that the machine learning method achieved 99.72% accuracy when identifying long method and long base class list. The machine learning-based code smell detection also outperformed the tuning machine method. Moreover, we also found a set of high-impact features that contributed most when identifying each type of code smell.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
大幅提高文件上传限制,最高150M (2024-4-1)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
3秒前
李晓雨完成签到 ,获得积分10
4秒前
7秒前
咸鱼想翻身完成签到,获得积分10
8秒前
生动鸿完成签到,获得积分10
13秒前
汉堡包应助过儿过儿采纳,获得10
14秒前
翠翠发布了新的文献求助10
14秒前
15秒前
Tonsil01发布了新的文献求助30
20秒前
充电宝应助不找了采纳,获得10
22秒前
29秒前
29秒前
30秒前
SOLOMON应助yunnguw采纳,获得10
34秒前
啊哈哈哈关注了科研通微信公众号
34秒前
JET_Li发布了新的文献求助10
34秒前
寒冷的雪珍完成签到,获得积分10
36秒前
不会起名完成签到,获得积分10
43秒前
休思完成签到 ,获得积分10
44秒前
45秒前
wjq发布了新的文献求助10
46秒前
互助遵法尚德应助七里香采纳,获得10
49秒前
奔鱼发布了新的文献求助10
50秒前
lyp完成签到,获得积分20
51秒前
52秒前
smottom应助JET_Li采纳,获得10
56秒前
慕青应助奔鱼采纳,获得10
57秒前
笑忘书。发布了新的文献求助10
58秒前
星月完成签到 ,获得积分10
1分钟前
打打应助FYOOU采纳,获得10
1分钟前
8R60d8应助七里香采纳,获得10
1分钟前
Tonsil01发布了新的文献求助30
1分钟前
情怀应助科研通管家采纳,获得10
1分钟前
shinysparrow应助科研通管家采纳,获得10
1分钟前
研友_VZG7GZ应助科研通管家采纳,获得10
1分钟前
小尹同学应助科研通管家采纳,获得30
1分钟前
shinysparrow应助科研通管家采纳,获得10
1分钟前
完美世界应助科研通管家采纳,获得10
1分钟前
852应助科研通管家采纳,获得10
1分钟前
yyyalles应助科研通管家采纳,获得10
1分钟前
高分求助中
请在求助之前详细阅读求助说明!!!! 20000
One Man Talking: Selected Essays of Shao Xunmei, 1929–1939 1000
The Three Stars Each: The Astrolabes and Related Texts 900
Yuwu Song, Biographical Dictionary of the People's Republic of China 700
Bernd Ziesemer - Maos deutscher Topagent: Wie China die Bundesrepublik eroberte 500
A radiographic standard of reference for the growing knee 400
Epilepsy: A Comprehensive Textbook 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 有机化学 工程类 生物化学 纳米技术 物理 内科学 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 电极 光电子学 量子力学
热门帖子
关注 科研通微信公众号,转发送积分 2472471
求助须知:如何正确求助?哪些是违规求助? 2138596
关于积分的说明 5450127
捐赠科研通 1862443
什么是DOI,文献DOI怎么找? 926147
版权声明 562786
科研通“疑难数据库(出版商)”最低求助积分说明 495373