首页> 外文会议>ICITMI2012 >An Approach to detect Similar Script Functions in Web Applications based on Calling Information
【24h】

An Approach to detect Similar Script Functions in Web Applications based on Calling Information

机译:基于调用信息检测Web应用程序中类似脚本函数的方法

获取原文

摘要

Cloned code might exacerbate a system maintenance problem, so it is important to remove duplicate code to improve system performance. In web development, script code can often be duplicated as a unit of a script function. Previous research for detecting similar script functions forecasted candidates of similar script functions based on the name of the function and classified the detected candidates into four similarity levels by comparing factors contained within the script functions. There are two key issues that need to be considered to detect similar script functions when using that method. One was that a pair of similar script functions needs to have the same name to be detected. The other was that some modifications particularly such as adding or removing calling statements were not identified after detecting. Adding or removing calling statements might prevent identification for duplicate script function. In this paper, we propose a novel approach to detect similar script functions that can determine the similarity of a script function by evaluating the structural similarity of function code and the calling structure. The evaluation for detecting the structural similarity of code and the calling structure is performed based on a similarity metric, FSIM, which we have defined. We showed the usefulness of FSIM by applying it to three open source projects.
机译:克隆代码可能会激发系统维护问题,因此删除重复代码是为了提高系统性能。在Web开发中,脚本代码通常可以复制为脚本函数的单位。以前的研究基于函数的名称,通过比较脚本函数中包含的因素将检测到的候选者分为四个相似度水平的类似脚本函数的预测相似脚本函数的预测候选者。使用该方法时需要考虑检测类似脚本函数的两个关键问题。一个是,一对类似的脚本函数需要检测到相同的名称。另一个是,在检测后未识别出特别是诸如添加或移除呼叫语句的一些修改。添加或删除调用语句可能会阻止识别重复脚本函数。在本文中,我们提出了一种探测类似脚本函数的新方法,可以通过评估功能代码和呼叫结构的结构相似性来确定脚本功能的相似性。用于检测代码和呼叫结构的结构相似性的评估是基于我们定义的相似度量FSIM执行的。通过将其应用于三个开源项目,我们展示了FSIM的有用性。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号