首页> 外文会议>International Conference on Human Computer Interactions >A Deep Learning Based Approach to Detect Code Clones
【24h】

A Deep Learning Based Approach to Detect Code Clones

机译:基于深入的学习方法来检测代码克隆

获取原文

摘要

Code clone is a kind of code smells widely exists in practice. Such code smell may lead to serious problems, e.g., code redundancy and code inconsistency. To reduce the negative impact of code clones, researchers have proposed different approaches to detect and remove code clones. However, existing code clone detection approaches mostly rely on manually designed and fine-tuned heuristic rules. Such approaches cannot be exploited in different projects and the precision of them needs to improve further. To this end, this paper proposes a deep learning based approach to detect code clones by statically extracting syntactic features from the ASTs of source files. Evaluation results suggest that the proposed approach is effective in detecting code clones, its precision is around 90%.
机译:代码克隆是一种在实践中广泛存在的代码。 这样的代码气味可能导致严重的问题,例如代码冗余和代码不一致。 为了减少代码克隆的负面影响,研究人员提出了不同的方法来检测和删除代码克隆。 但是,现有代码克隆检测方法主要依赖于手动设计和微调的启发式规则。 这种方法不能在不同的项目中利用,并且它们的精确性需要进一步改善。 为此,本文提出了一种基于深度学习的方法来通过静态提取源文件AST的句法特征来检测代码克隆。 评估结果表明,该方法在检测码克隆方面有效,其精度约为90%。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号