Automatic detection of Feature Envy and Data Class code smells using machine learning

Published: 01 Jan 2024, Last Modified: 08 Nov 2024Expert Syst. Appl. 2024EveryoneRevisionsBibTeXCC BY-SA 4.0
Abstract: Highlights•We detect Feature Envy and Data Class code smells using pre-trained code embeddings.•We compare handcrafted code metrics with automatically inferred code embeddings.•We test the performance of smell detectors on the large manually labeled dataset.•Embedding capture crucial semantics and do not suffer metric extraction limitations.•Code embedding and code metrics have comparable smell detection performance.
Loading