arrow
返回

Deep Learning Based Code Smell Detection

delete2021-01-01
delete79
PRE
AI
刘辉 封面图
刘辉 (Hui Liu) *
J
Jiahao Jin
Z
Zhifeng Xu
Z
Zou, Yanzhen
B
Bu, Yifan
张
张璐 (Lu Zhang)
DOI:10.1109/TSE.2019.2936376delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
Code smells are structures in the source code that suggest the possibility of refactorings. Consequently, developers may identify refactoring opportunities by detecting code smells. However, manual identification of code smells is challenging and tedious. To this end, a number of approaches have been proposed to identify code smells automatically or semi-automatically. Most of such approaches rely on manually designed heuristics to map manually selected source code metrics into predictions. However, it is challenging to manually select the best features. It is also difficult to manually construct the optimal heuristics. To this end, in this paper we propose a deep learning based novel approach to detecting code smells. The key insight is that deep neural networks and advanced deep learning techniques could automatically select features of source code for code smell detection, and could automatically build the complex mapping between such features and predictions. A big challenge for deep learning based smell detection is that deep learning often requires a large number of labeled training data (to tune a large number of parameters within the employed deep neural network) whereas existing datasets for code smell detection are rather small. To this end, we propose an automatic approach to generating labeled training data for the neural network based classifier, which does not require any human intervention. As an initial try, we apply the proposed approach to four common and well-known code smells, i.e., feature envy, long method, large class, and misplaced class. Evaluation results on open-source applications suggest that the proposed approach significantly improves the state-of-the-art.
Keyword:
Software
Deep learning
Feature extraction
Training data
Neural networks
Measurement
Software refactoring
code smells
identification
deep learning
quality
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

DeleSmell: Code smell detection based on deep learning and latent semantic analysis
err2022-11-01
err14
PREAI
errZhang, Yang; Ge, Chuyan; Hong, Shuai; Tian, Ruili; Dong, Chunhao; Liu, Jingjing
err分享
err收藏
Code smell detection by deep direct-learning and transfer-learning?
err2021-06-01
err51
errOAAI
errSharma, Tushar; Efstathiou, Vasiliki; Louridas, Panos; Spinellis, Diomidis
err分享
err收藏
DeepCSS: severity classification for code smell based on deep learning
err2025-05-01
err0
PREAI
errZhang, Yang; Zhang, Chunhui; Zheng, Kun; Meredith, Grant
err分享
err收藏
FedCSD: A Federated Learning Based Approach for Code-Smell Detection
err2024-01-01
err5
errOAAI
errAlawadi, Sadi; Alkharabsheh, Khalid; Alkhabbas, Fahed; Kebande, Victor R.; Awaysheh, Feras M.; Palomba, Fabio; Awad, Mohammed
err分享
err收藏

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
3.0K
被引数:
1.3W

机构

北京大学 封面图
北京大学
学者数:
9.2K
论文数: 2.8K
被引数: 7.1W
北京理工大学 封面图
北京理工大学
学者数:
7.8K
论文数: 2.3K
被引数: 3.6W
引用论文

引用论文

Recombination between an expressed immunoglobulin heavy-chain gene and a germline variable gene segment in a Ly 1+ B-cell lymphoma
err1986-08-01
err0
PREAI
errRobert Kleinfield; Richard R. Hardy; David Tarlinton; Jeffery Dangl; Leonard A. Herzenberg; Martin Weigert
err分享
err收藏
err分享
err收藏
err分享
err收藏
Fragmentation of the universe
err1983-08-01
err0
PREAI
errW. K. Brown; R. R. Karpp; D. E. Grady
err分享
err收藏
学者 查看更多内容