Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Applet code similarity determination method and device, server and storage medium

A determination method and a technology for small programs, applied in the computer field, can solve the problems of a large number of small programs, affecting the online speed of small programs, and low efficiency of code similarity detection of small programs, and achieve the effect of improving detection efficiency and improving online speed.

Pending Publication Date: 2020-08-21
TENCENT TECH (SHENZHEN) CO LTD
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the code similarity detection tools used in related technologies can only determine the similarity between programs by comparing two codes. When applied to small program code detection, due to the large number of small programs, the detection of small program code similarity The efficiency is low, which affects the online speed of the applet

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Applet code similarity determination method and device, server and storage medium
  • Applet code similarity determination method and device, server and storage medium
  • Applet code similarity determination method and device, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0067] In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0068] For the convenience of understanding, the nouns involved in the embodiments of the present application are introduced below:

[0069] Mini-program: Mini-program is an application program developed based on a programming language and dependent on the host program to run. It is an application form between traditional web pages and traditional applications. Run the applet in the host program.

[0070] Host program: In the computer environment, the software environment on which the software depends is called the host environment, and the environment is called the host. The host program in the embodiment of the present application is an application program used to provide an operating environment for the applet. The host appl...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an applet code similarity determination method and device, a server and a storage medium, and relates to the field of computers. The method comprises the steps of obtaining anabstract syntax tree of a small program code corresponding to a first small program; performing feature extraction on the abstract syntax tree based on a parent-child relationship between nodes in theabstract syntax tree to obtain code features of the first applet; generating a first applet fingerprint of the first applet according to the code features; and according to the first applet fingerprint and a second applet fingerprint of a second applet in an applet fingerprint library, determining code similarity between the first applet and the second applet. By adopting the method provided by the embodiment of the invention, the applet fingerprint is generated for the existing applet in advance based on the abstract syntax tree, then similarity detection can be carried out by utilizing theapplet fingerprint stored in the applet fingerprint library, source codes of every two applets do not need to be analyzed and compared, and the applet code similarity detection efficiency is improved.

Description

technical field [0001] The present application relates to the field of computers, in particular to a method, device, server and storage medium for determining similarity of applet codes. Background technique [0002] An applet is a program that depends on a host program to run. Users only need to install the host program, and can add and use various small programs in the host program at any time. [0003] The developer of the host program provides an open platform, and the developer of the mini program can upload the mini program through the open platform. The developer of the host program will review the content of the mini program, and after passing the review, the mini program will be launched. In addition, in order to ensure the homogeneity of Mini Programs, while conducting content review, the Mini Program codes will be checked for similarity, so as to detect plagiarism of Mini Program codes. In the related art, code similarity detection tools are usually used for cod...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/41G06F8/75
CPCG06F8/42
Inventor 徐松斌
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products