Feature Envy Detection based on Bi-LSTM with Self-Attention Mechanism

计算机科学 特征(语言学) 人工智能 杠杆(统计) Java 源代码 可维护性 重构代码 启发式 公制(单位) 编码(集合论) 嵌入 深度学习 机器学习 软件 程序设计语言 软件工程 运营管理 集合(抽象数据类型) 经济 哲学 语言学
作者
Hongze Wang,Jing Liu,Jiexiang Kang,Wei Yin,Haiying Sun,Hui Wang
标识
DOI:10.1109/ispa-bdcloud-socialcom-sustaincom51426.2020.00082
摘要

Code Smell refers to suboptimal or harmful structures in the source code that may impede the maintainability of software. It serves as an effective way to detect refactoring opportunities. As the most prevailing smell, Feature Envy and its detection has been deeply explored for many years, which produces massive automated detection methods. Nevertheless, the heuristic-based approach cannot reach a satisfying level, and the machine learning approach still needs further optimization. Recent advances in deep learning inspire the birth of deep learning based approach. In this paper, we define a simpler distance metric as numerical feature and we collect class name and method name as text feature. Then we leverage Bidirectional Long-Short Term Memory (Bi-LSTM) Network with self-attention mechanism to extract semantic distance information in the text part, and we adopt embedding technology to enhance the structure distance information in the numerical part. Combined with the two sophisticatedly designed modules and the final classification module, a more reliable and accurate model is presented. Experimental results on seven open-source Java projects show that our model significantly outperforms existing methods.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
甜甜的不二完成签到,获得积分10
2秒前
落润晓完成签到,获得积分10
2秒前
充电宝的应助被嘻嘻采纳,获得10
2秒前
笨笨发布了新的文献求助10
3秒前
4秒前
FashionBoy的应助被冠哥断后采纳,获得10
4秒前
5秒前
宁亦完成签到 ,获得积分10
5秒前
墨墨完成签到,获得积分10
5秒前
yinc2128完成签到,获得积分10
6秒前
yy完成签到,获得积分10
6秒前
潘丝洞完成签到,获得积分10
6秒前
fenghua的应助被琳儿真的很瘦了采纳,获得10
6秒前
科研通AI6.4的应助被1n1111采纳,获得10
7秒前
放学早发布了新的文献求助10
7秒前
7秒前
日落发布了新的文献求助10
8秒前
机林的海菡完成签到 ,获得积分10
8秒前
8秒前
123发布了新的文献求助10
8秒前
可爱的函函的应助被深深采纳,获得10
9秒前
慕青的应助被迷路的灵波采纳,获得10
9秒前
科研通AI6.4的应助被滴滴答答采纳,获得10
10秒前
Juvenilesy的应助被滴滴答答采纳,获得10
10秒前
科研通AI6.2的应助被滴滴答答采纳,获得10
10秒前
蛋黄酥发布了新的文献求助10
10秒前
科研通AI6.4的应助被滴滴答答采纳,获得10
10秒前
共享精神的应助被宋相甫采纳,获得10
11秒前
诗尔发布了新的文献求助10
11秒前
无花果的应助被化工渣渣采纳,获得10
12秒前
友好的发夹完成签到,获得积分10
12秒前
12秒前
12秒前
慕青的应助被cccJF采纳,获得10
13秒前
张文发布了新的文献求助10
13秒前
14秒前
jiqihao完成签到,获得积分10
15秒前
科研通AI6.4的应助被come采纳,获得30
15秒前
汉堡包的应助被KIQING采纳,获得10
15秒前
16秒前
高分求助中
(应助此贴封号)通过应助OA文献获取积分 10000
Rosenblum, Global Change Biology 800
A Silent Apostrophe:The Fayum Portraits 520
Organizational Behavior 510
Sing with Understanding: Introduction to Theology in Christian Congregational Song, 3rd ed 330
Auslegung und Untersuchung einer invers ausgelegten Beschaufelung eines einstufigen Axialverdichters mit Vorleitrad (German) 300
AI-Contracting 300
热门求助领域 (近24小时)
化学 材料科学 医学 生物 计算机科学 工程类 纳米技术 有机化学 化学工程 内科学 物理 生物化学 复合材料 催化作用 细胞生物学 人工智能 心理学 无机化学 基因 遗传学
热门帖子
关注 科研通微信公众号,转发送积分 7838473
求助须知:如何正确求助?哪些是违规求助? 9360781
关于积分的说明 20617332
捐赠科研通 7432774
什么是DOI,文献DOI怎么找? 3339100
关于科研通互助平台的介绍 2483467
邀请新用户注册赠送积分活动 2360276