arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1502.03726cs.SE
收藏

一种基于主题建模的克隆组映射方法

A Novel Approach for Clone Group Mapping by using Topic Modeling

Ruixia Zhang, Liping Zhang, Huan Wang, Zhuo Chen

摘要:

克隆组映射在代码克隆的演化过程中具有非常重要的意义。将主题建模技术应用到代码克隆中,提出了一种新的克隆组映射方法。该方法不仅对Type-1和Type-2克隆有效,而且对Type-3克隆也有效,主题建模技术充分利用源文本和结构信息,将高维代码空间的映射问题转化为低维主题空间,通过克隆组主题映射间接达到克隆组映射的目的。在4个开源软件上的实验表明,该方法的查全率和查准率均达到0.99以上,能够有效、准确地实现克隆群映射的目标。

英文摘要:

Clone group mapping has a very important significance in the evolution of code clone. The topic modeling techniques were applied into code clone firstly and a new clone group mapping method was proposed. The method is very effective for not only Type-1 and Type-2 clone but also Type-3 clone .By making full use of the source text and structure information, topic modeling techniques transform the mapping problem of high-dimensional code space into a low-dimensional topic space, the goal of clone group mapping was indirectly reached by mapping clone group topics. Experiments on four open source software show that the recall and precision are up to 0.99, thus the method can effectively and accurately reach the goal of clone group mapping.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑