Decision Tree for Smell Code Detection in Python: A Practical Implementation

Ratnawati, Fajar and Jaroji, Jaroji (2023) Decision Tree for Smell Code Detection in Python: A Practical Implementation. In: Proceedings of the 11th International Applied Business and Engineering Conference, ABEC 2023, September 21st, 2023, Bengkalis, Riau, Indonesia.

[thumbnail of 59768.pdf] PDF
59768.pdf

Download (371kB)

Abstract

This article discusses the approach to detect code that falls under the category of code smells in the Python programming language. The methodology involves reading each line of code and subsequently analyzing whether the program contains code smells. The code analysis is performed using a model trained with decision tree and J48 algorithms. The aim of this research, apart from developing previous research, is also to improve code quality and reduce security risks. Several aspects considered in this research include the number of parameters within a class, unused variables, duplicated print statements, and the number of classes within a code program. The constructed model utilizing the decision tree algorithm is then implemented into a web-based system, where input code for smell code identification is in the form of files with the extension .py.

Item Type: Conference or Workshop Item (UNSPECIFIED)
Uncontrolled Keywords: smell code, decision tree, j48, pyhton, class, duplicated print, unused variable, parameter, machine learning
Date Deposited: 04 Mar 2026 17:13
Last Modified: 03 Dec 2026 13:17
URI: https://eprints.eai.eu/id/eprint/47421

Actions (login required)

View Item
View Item