版权说明 操作指南
首页 > 成果 > 详情

一种改进的基于文本的重复代码自动识别方法

认领
导出
Link by 中国知网学术期刊 Link by 万方学术期刊
反馈
分享
QQ微信 微博
成果类型:
期刊论文
论文标题(英文):
An Improved Approach for Automatic Detection of Duplicated Code Based on Text
作者:
刘伟;宾航飞;胡志刚
作者机构:
湖南中医药大学信息科学与工程学院,湖南长沙 410208
中南大学软件学院,湖南长沙 410075
中南大学软件学院,湖南长沙,410075
[宾航飞; 胡志刚] 中南大学
[刘伟] 湖南中医药大学
语种:
中文
关键词:
重复代码;代码味道;自动识别;抽象语法树
关键词(英文):
Code smell;Automatic detection;Abstract syntax tree
期刊:
软件
ISSN:
1003-6970
年:
2018
卷:
39
期:
10
页码:
68-73
机构署名:
本校为第一机构
院系归属:
信息科学与工程学院
摘要:
代码味道的识别与自动重构是近年来软件工程的热点领域之一,而重复代码是一种在软件工程中较为常见的代码味道。本文在基于文本的重复代码识别方法的基础上,通过词法分析对特定的Token作出处理后再对源代码进行对比,最后通过语法树的对比来对结果进行过滤以降低误报率。测试结果表明该方法对于重复代码有着较好的识别效果。对重复代码的自动识别算法研究有着借鉴意义,在软件的质量、维护等领域上也具有广泛的应用需求。
摘要(英文):
In the recent years, detection and automatic refactoring of code smell is one of the focus topic in software engineering, and duplicated code is a kind of common code smell. Based on the duplicated code recogni-tion method of text, the false positives can be reduced through the lexical analysis to compare the source code after handling the specific token and through the comparison with the abstract syntax tree to filter the results. The test re-sults show that the method has better detection effect of duplicated code. This has great significance in the study of automatic detection algorithm of...

反馈

验证码:
看不清楚,换一个
确定
取消

成果认领

标题:
用户 作者 通讯作者
请选择
请选择
确定
取消

提示

该栏目需要登录且有访问权限才可以访问

如果您有访问权限,请直接 登录访问

如果您没有访问权限,请联系管理员申请开通

管理员联系邮箱:yun@hnwdkj.com