A Code Smell Refactoring Approach using GNNs
HanYu Zhang, Tomoji Kishi

TL;DR
This paper introduces a graph neural network-based method for refactoring code smells, utilizing class- and method-level graphs, and demonstrates its superior performance over traditional approaches.
Contribution
It presents a novel GNN-based approach with semi-automated dataset generation for effective code smell refactoring.
Findings
Achieves superior performance compared to traditional methods.
Effectively refactors three common code smells.
Utilizes a semi-automated dataset generation process.
Abstract
Code smell is a great challenge in software refactoring, which indicates latent design or implementation flaws that may degrade the software maintainability and evolution. Over the past decades, a variety of refactoring approaches have been proposed, which can be broadly classified into metrics-based, rule-based, and machine learning-based approaches. Recent years, deep learning-based approaches have also attracted widespread attention. However, existing techniques exhibit various limitations. Metrics- and rule-based approaches rely heavily on manually defined heuristics and thresholds, whereas deep learning-based approaches are often constrained by dataset availability and model design. In this study, we proposed a graph-based deep learning approach for code smell refactoring. Specifically, we designed two types of input graphs (class-level and method-level) and employed both graph…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
