亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!身体可是革命的本钱,早点休息,好梦!

Automatic detection of Long Method and God Class code smells through neural source code embeddings

代码气味 计算机科学 源代码 启发式 编码(集合论) 人工智能 机器学习 公制(单位) 代码评审 静态程序分析 软件质量 软件 程序设计语言 软件开发 运营管理 经济 集合(抽象数据类型) 操作系统
作者
Aleksandar Kovačević,Јелена Сливка,Dragan Vidaković,Katarina-Glorija Grujić,Nikola Luburić,Simona Prokić,Goran Sladić
出处
期刊:Expert Systems With Applications [Elsevier BV]
卷期号:204: 117607-117607 被引量:45
标识
DOI:10.1016/j.eswa.2022.117607
摘要

Code smells are structures in code that often harm its quality. Manually detecting code smells is challenging, so researchers proposed many automatic detectors. Traditional code smell detectors employ metric-based heuristics, but researchers have recently adopted a Machine-Learning (ML) based approach. This paper compares the performance of multiple ML-based code smell detection models against multiple metric-based heuristics for detection of God Class and Long Method code smells. We assess the effectiveness of different source code representations for ML: we evaluate the effectiveness of traditionally used code metrics against code embeddings (code2vec, code2seq, and CuBERT). This study is the first to evaluate the effectiveness of pre-trained neural source code embeddings for code smell detection to the best of our knowledge. This approach helped us leverage the power of transfer learning – our study is the first to explore whether the knowledge mined from code understanding models can be transferred to code smell detection. A secondary contribution of our research is the systematic evaluation of the effectiveness of code smell detection approaches on the same large-scale, manually labeled MLCQ dataset. Almost every study that proposes a detection approach tests this approach on the dataset unique for the study. Consequently, we cannot directly compare the reported performances to derive the best-performing approach.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
ponymjj发布了新的文献求助10
2秒前
在水一方应助hyy采纳,获得10
8秒前
唠叨的轩轩完成签到,获得积分10
9秒前
10秒前
Rn完成签到 ,获得积分0
12秒前
romeo完成签到,获得积分10
13秒前
zl发布了新的文献求助10
16秒前
心灵美语兰完成签到 ,获得积分10
25秒前
希望天下0贩的0应助zl采纳,获得10
25秒前
Lucky完成签到,获得积分10
26秒前
wab完成签到,获得积分0
27秒前
Wsh发布了新的文献求助10
29秒前
脑洞疼应助Lucky采纳,获得10
32秒前
阿兹卡班完成签到 ,获得积分10
32秒前
zl完成签到,获得积分20
40秒前
44秒前
44秒前
活泼一斩完成签到,获得积分10
50秒前
帅小鱼完成签到,获得积分10
52秒前
53秒前
缓慢流沙发布了新的文献求助10
53秒前
53秒前
一条狗发布了新的文献求助10
54秒前
Fein_W发布了新的文献求助10
1分钟前
脑洞疼应助大力的蚂蚁采纳,获得30
1分钟前
汉堡包应助陈生采纳,获得10
1分钟前
1分钟前
Sun完成签到,获得积分10
1分钟前
1分钟前
英俊的铭应助XY星雨XY采纳,获得10
1分钟前
Yoopenoy关注了科研通微信公众号
1分钟前
Christine发布了新的文献求助10
1分钟前
这祈祷的声音完成签到 ,获得积分10
1分钟前
陈生发布了新的文献求助10
1分钟前
WoeiQune发布了新的文献求助10
1分钟前
科研通AI6.1应助Come_On_luguo采纳,获得10
1分钟前
田様应助科研通管家采纳,获得10
1分钟前
1分钟前
1分钟前
1分钟前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Salmon nasal cartilage-derived proteoglycan complexes influence the gut microbiota and bacterial metabolites in mice 2000
The Composition and Relative Chronology of Dynasties 16 and 17 in Egypt 1500
Picture this! Including first nations fiction picture books in school library collections 1500
SMITHS Ti-6Al-2Sn-4Zr-2Mo-Si: Ti-6Al-2Sn-4Zr-2Mo-Si Alloy 850
Signals, Systems, and Signal Processing 610
Learning manta ray foraging optimisation based on external force for parameters identification of photovoltaic cell and module 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6376215
求助须知:如何正确求助?哪些是违规求助? 8189486
关于积分的说明 17294132
捐赠科研通 5430088
什么是DOI,文献DOI怎么找? 2872831
邀请新用户注册赠送积分活动 1849393
关于科研通互助平台的介绍 1694974