Hybrid Model with Multi-Level Code Representation for Multi-Label Code Smell Detection (077)

计算机科学 重构代码 抽象语法树 代码气味 编码(集合论) 代码段 人工智能 静态程序分析 源代码 抽象语法 机器学习 程序设计语言 解析 软件 语法 软件质量 软件开发 集合(抽象数据类型)
作者
Yichen Li,An Liu,Lei Zhao,Xiaofang Zhang
出处
期刊:International Journal of Software Engineering and Knowledge Engineering [World Scientific]
卷期号:32 (11n12): 1643-1666
标识
DOI:10.1142/s0218194022500723
摘要

Code smell is an indicator of potential problems in a software design that have a negative impact on readability and maintainability. Hence, detecting code smells in a timely and effective manner can provide guides for developers in refactoring. Fortunately, many approaches like metric-based, heuristic-based, machine-learning-based and deep-learning-based have been proposed to detect code smells. However, existing methods, using the simple code representation to describe different code smells unilaterally, cannot efficiently extract enough rich information from source code. In addition, one code snippet often has several code smells at the same time and there is a lack of multi-label code smell detection based on deep learning. In this paper, we present a large-scale dataset for the multi-label code smell detection task since there is still no publicly sufficient dataset for this task. The release of this dataset would push forward the research in this field. Based on it, we propose a hybrid model with multi-level code representation to further optimize the code smell detection. First, we parse the code into the abstract syntax tree (AST) with control and data flow edges and the graph convolution network is applied to get the prediction at the syntactic and semantic level. Then we use the bidirectional long-short term memory network with attention mechanism to analyze the code tokens at the token-level in the meanwhile. Finally, we get the fusion prediction result of the models. Experimental results illustrate that our proposed model outperforms the state-of-the-art methods not only in single code smell detection but also in multi-label code smell detection.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
大幅提高文件上传限制,最高150M (2024-4-1)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
谭平完成签到,获得积分10
刚刚
Avatar完成签到,获得积分10
1秒前
孤独念双完成签到 ,获得积分10
2秒前
CWNU_HAN应助week采纳,获得30
3秒前
zz发布了新的文献求助10
4秒前
曾无忧应助QIXIAO采纳,获得10
5秒前
云泥完成签到 ,获得积分10
6秒前
7秒前
7秒前
10秒前
xie完成签到,获得积分10
10秒前
10秒前
13秒前
浮曳发布了新的文献求助10
14秒前
九宫格发布了新的文献求助10
14秒前
老仙翁完成签到,获得积分10
14秒前
ding应助zz采纳,获得10
14秒前
周小浪完成签到,获得积分10
15秒前
16秒前
小燚完成签到 ,获得积分10
22秒前
毓香谷的春天完成签到 ,获得积分10
23秒前
ding应助迷人可乐采纳,获得10
24秒前
27秒前
坛子完成签到,获得积分10
32秒前
33秒前
禁止完成签到,获得积分20
33秒前
望望旺发布了新的文献求助10
33秒前
35秒前
充电宝应助科研通管家采纳,获得10
36秒前
36秒前
36秒前
完美世界应助科研通管家采纳,获得10
36秒前
36秒前
wanci应助科研通管家采纳,获得30
36秒前
小二郎应助科研通管家采纳,获得10
36秒前
37秒前
天天快乐应助科研通管家采纳,获得10
37秒前
酷波er应助科研通管家采纳,获得10
37秒前
领导范儿应助科研通管家采纳,获得10
37秒前
37秒前
高分求助中
请在求助之前详细阅读求助说明!!!! 20000
Sphäroguß als Werkstoff für Behälter zur Beförderung, Zwischen- und Endlagerung radioaktiver Stoffe - Untersuchung zu alternativen Eignungsnachweisen: Zusammenfassender Abschlußbericht 1500
One Man Talking: Selected Essays of Shao Xunmei, 1929–1939 1000
Yuwu Song, Biographical Dictionary of the People's Republic of China 700
[Lambert-Eaton syndrome without calcium channel autoantibodies] 520
The Three Stars Each: The Astrolabes and Related Texts 500
india-NATO Dialogue: Addressing International Security and Regional Challenges 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 有机化学 工程类 生物化学 纳米技术 物理 内科学 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 电极 光电子学 量子力学
热门帖子
关注 科研通微信公众号,转发送积分 2469503
求助须知:如何正确求助?哪些是违规求助? 2136690
关于积分的说明 5444090
捐赠科研通 1861086
什么是DOI,文献DOI怎么找? 925612
版权声明 562702
科研通“疑难数据库(出版商)”最低求助积分说明 495140