首页> 外国专利> Methods for detecting plagiarism in software code implementing a design pattern, including detecting a design pattern implemented in the software code and creating a representation that implements program logic associated with at least one function implementing the design pattern

Methods for detecting plagiarism in software code implementing a design pattern, including detecting a design pattern implemented in the software code and creating a representation that implements program logic associated with at least one function implementing the design pattern

机译:用于在实现设计模式的软件代码中检测抄袭的方法,包括检测在软件代码中实现的设计模式并创建实现与至少一个与实现设计模式的功能相关的程序逻辑的表示形式

摘要

Methods and instructions embodied in non-transitory media for the detection of plagiarism in software code implementing a design pattern are described. Steps involved may include receiving input comprising the software code at least one design pattern implemented in the software code, identifying at least one function call to a function in a class implementing the design pattern in the software code, and creating a representation of the called function in the class containing the function call, wherein the function call and the function to which it corresponds is characteristic of the design pattern; and where the created representation implements program logic associated with at least one function implementing the design pattern, including the called function. The function call may be replaced with the representation of the called function. Additionally, the modified code may then be compared with one or more target files.
机译:描述了在非暂时性介质中包含的用于检测实现设计模式的软件代码中的窃的方法和指令。所涉及的步骤可以包括:接收包括软件代码的输入,该输入包括在软件代码中实现的至少一个设计模式;识别对实现软件代码中的设计模式的类中的函数的至少一个函数调用;以及创建被调用函数的表示。在包含函数调用的类中,其中函数调用及其所对应的函数是设计模式的特征;以及所创建的表示实现与至少一个实现所述设计模式的功能相关的程序逻辑,所述功能包括所述被调用功能。函数调用可以替换为被调用函数的表示。另外,然后可以将修改后的代码与一个或多个目标文件进行比较。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号