A Severity Assessment of Python']Python Code Smells

被引:0
|
作者
Gupta, Aakanshi [1 ]
Gandhi, Rashmi [1 ]
Jatana, Nishtha [2 ]
Jatain, Divya [2 ]
Panda, Sandeep Kumar [3 ]
Ramesh, Janjhyam Venkata Naga [4 ]
机构
[1] AUUP, Dept Comp Sci & Engn, ASET, Noida 201303, India
[2] Maharaja Surajmal Inst Technol, Delhi 110058, India
[3] ICFAI Fdn Higher Educ, Fac Sci & Technol IcfaiTech, Dept Artificial Intelligence & Data Sci, Hyderabad 501203, Telangana, India
[4] Koneru Lakshmaiah Educ Fdn, Vijayawada 522502, Andhra Pradesh, India
关键词
Software maintenance; Internet of Things; Open source software; Green design; code smell severity; cognitive complexity code smell; class change proneness; open-source software; sustainable software; SOFTWARE;
D O I
10.1109/ACCESS.2023.3327553
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Presence of code smells complicate the source code and can obstruct the development and functionality of the software project. As they represent improper behavior that might have an adverse effect on software maintenance, code smells are behavioral in nature. Python is widely used for various software engineering activities and tends tool to contain code smells that affect its quality. This study investigates five code smells diffused in 20 Python software comprising 10550 classes and analyses its severity index using metric distribution at the class level. Subsequently, a behavioral analysis has been conducted over the considered modification period (phases) for the code smell undergoing class change proneness. Furthermore, it helps to investigate the accurate multinomial classifier for mining the severity index. It witnesses the change in severity at the class level over the modification period by mapping its characteristics over various statistical functions and hypotheses. Our findings reveal that the Cognitive Complexity of code smell is the most severe one. The remaining four smells are centered around the moderate range, having an average severity index value. The results suggest that the J48 algorithm was the accurate multinomial classifier for classifying the severity of code smells with 92.98% accuracy in combination with the AdaBoost method. The findings of our empirical evaluation can be beneficial for the software developers to prioritize the code smells in the pre-refactoring phase and can help manage the code smells in forthcoming releases, subsequently saving ample time and resources spent in the development and maintenance of software projects.
引用
收藏
页码:119146 / 119160
页数:15
相关论文
共 50 条
  • [31] Development of a MOX equivalence Python']Python code package for ANICCA
    Vermeeren, Bart
    Druenne, Hubert
    [J]. EPJ NUCLEAR SCIENCES & TECHNOLOGIES, 2021, 7
  • [32] OpenMoist: A Python']Python code for transient moisture transfer analysis
    Melchor-Placencia, Carlos
    Malaga-Chuquitaype, Christian
    [J]. SOFTWAREX, 2021, 15
  • [33] Discovering Repetitive Code Changes in Python']Python ML Systems
    Dilhara, Malinda
    Ketkar, Ameya
    Sannidhi, Nikhith
    Dig, Danny
    [J]. 2022 ACM/IEEE 44TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2022), 2022, : 736 - 748
  • [34] Contribution of the language network to the comprehension of Python']Python programming code
    Liu, Yun-Fei
    Wilson, Colin
    Bedny, Marina
    [J]. BRAIN AND LANGUAGE, 2024, 251
  • [35] Assessment of multiple cardiocentesis in ball python']pythons (Python']Python regius)
    Isaza, R
    Andrews, GA
    Coke, RL
    Hunter, RP
    [J]. CONTEMPORARY TOPICS IN LABORATORY ANIMAL SCIENCE, 2004, 43 (06): : 35 - 38
  • [36] Computing with CodeRunner at Coventry University Automated summative assessment of Python']Python and C plus plus code
    Croft, David
    England, Matthew
    [J]. PROCEEDINGS OF THE 4TH CONFERENCE ON COMPUTING EDUCATION PRACTICE, CEP 2020, 2020,
  • [37] Gistable: Evaluating the Executability of Python']Python Code Snippets on GitHub
    Horton, Eric
    Parnin, Chris
    [J]. PROCEEDINGS 2018 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME), 2018, : 217 - 227
  • [38] RIdiom: Automatically Refactoring Non-Idiomatic Python']Python Code with Python']Pythonic Idioms
    Zhang, Zejun
    Xing, Zhenchang
    Xu, Xiwei
    Zhu, Liming
    [J]. 2023 IEEE/ACM 45TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS, ICSE-COMPANION, 2023, : 102 - 106
  • [39] GAP-Gen: Guided Automatic Python']Python Code Generation
    Zhao, Junchen
    Song, Yurun
    Wang, Junlin
    Harris, Ian G.
    [J]. 17TH CONFERENCE OF THE EUROPEAN CHAPTER OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS, EACL 2023, 2023, : 37 - 51
  • [40] SEMI CODE WRITING INTELLIGENT TUTORING SYSTEM FOR LEARNING PYTHON']PYTHON
    Mahdaoui, M.
    Nouh, S.
    Alaoui, M. S. Elkasmi
    Rachdi, M.
    [J]. JOURNAL OF ENGINEERING SCIENCE AND TECHNOLOGY, 2023, 18 (05): : 2560 - 2560