Development of a Code Clone Search Tool for Open Source Repositories

Development of a Code Clone Search Tool for Open Source Repositories
复制标题

开源存储库的代码克隆搜索工具的开发

DOI:
10.11185/imt.7.1370
复制
发表时间:
2012
期刊:
Information and Media Technologies
影响因子:
--
通讯作者:
Pei Xia
Pei Xia
中科院分区:
--
文献类型:
--
作者:
Kurosaki;T.;Pei Xia

文献摘要

相似文献

在开源系统中发现代码克隆对于有效和安全地重用现有的开源软件非常重要。在本文中,我们提出了一种新的搜索模型,开放代码克隆搜索,探索在互联网上的开源代码库中的代码克隆。基于该搜索模型,我们设计并实现了一个原型系统OpenCCCNET。该系统将查询代码片段作为其输入,并返回包含查询的代码克隆的代码片段。它利用公开的代码搜索引擎作为外部资源。我们使用OpenCCOS对Java代码进行了几个案例研究。这些案例研究表明了我们的系统的适用性。
Finding code clones in the open source systems is important for efficient and safe reuse of existing open source software. In this paper, we propose a novel search model, open code clone search, to explore code clones in open source repositories on the Internet. Based on this search model, we have designed and implemented a prototype system named OpenCCFinder. This system takes a query code fragment as its input, and returns the code fragments containing the code clones with the query. It utilizes publicly available code search engines as external resources. Using OpenCCFinder, we have conducted several case studies for Java code. These case studies show the applicability of our system.