首页> 外文会议>Asia-Pacific Software Engineering Conference >Interface Driven Code Clone Detection
【24h】

Interface Driven Code Clone Detection

机译:接口驱动的代码克隆检测

获取原文

摘要

Code cloning is a common code reusing technique that occurs when developers replicate similar pieces of code fragments within or between software repositories. Another replication happens when developers repeat method interfaces (i.e., method name, return and parameter types). Two methods are prone to be cloned when those have similar interfaces and perform similar functionalities. Considering this, a new lightweight Interface Driven Code Clone Detection (IDCCD) technique is proposed, that can detect clones by using method interface similarities. First, the method blocks are tokenized from the source files. For those method block tokens, interface information is extracted and indexed with mapped tokens. Then, similar interfaces are queried from that index and compared those with a similarity function for detecting clones. IDCCD is evaluated with other state of the art techniques by using BigCloneEval framework. The experimental results show that IDCCD performs similar comparing to other existing tools with a lower complexity.
机译:代码克隆是一种常见的代码重用技术,当开发人员在软件存储库之内或之间复制相似的代码片段时,就会发生这种情况。当开发人员重复方法接口(即方法名称,返回值和参数类型)时,会发生另一次复制。当两种方法具有相似的接口并执行相似的功能时,很容易克隆这两种方法。考虑到这一点,提出了一种新的轻量级接口驱动代码克隆检测(IDCCD)技术,该技术可以通过使用方法接口相似性来检测克隆。首先,从源文件中标记方法块。对于那些方法块令牌,将提取接口信息并使用映射的令牌建立索引。然后,从该索引中查询相似的接口,并将其与具有相似性功能的接口进行比较以检测克隆。通过使用BigCloneEval框架,使用其他最新技术对IDCCD进行了评估。实验结果表明,与其他现有工具相比,IDCCD的性能类似,但复杂度较低。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号