Bibliographic Details
| Title: |
SmellyCode++: Multi-Label Dataset for Code Smell Detection. |
| Authors: |
Alomari, Nawaf, Alazba, Amal, Aljamaan, Hamoud, Alshayeb, Mohammad |
| Source: |
Scientific Data; 7/12/2025, Vol. 12 Issue 1, p1-15, 15p |
| Subject Terms: |
MAINTAINABILITY (Engineering), SOFTWARE refactoring, SOFTWARE architecture, FEATURE extraction, DATA structures, COMPUTER software development |
| Abstract: |
Context: Code smells indicate poor software design, affecting maintainability. Accurate detection is vital for refactoring and quality improvement. However, existing datasets often frame detection as single-label classification, limiting realism. Objective: This paper develops a multi-label dataset for code smell detection, integrating textual features and numerical metrics from open-source Java projects. Method: We collected code from 103 Java projects, parsed it into Abstract Syntax Trees (ASTs), extracted features, and annotated samples based on prior studies. Data cleaning, unification, and merging techniques were applied to support four code smells: God Class, Data Class, Feature Envy, and Long Method. Results: The dataset comprises 107,554 samples with multi-label annotations, improving detection realism. Evaluation shows F1 scores of 95.89% (Data Class), 94.48% (God Class), 88.68% (Feature Envy), and 88.87% (Long Method). Conclusion: This dataset aids advanced studies on code smell detection, particularly for fine-tuning LLMs. Future work can expand it to other languages and additional smells, enhancing diversity and applicability. [ABSTRACT FROM AUTHOR] |
|
Copyright of Scientific Data is the property of Springer Nature and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.) |
| Database: |
Complementary Index |