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

Code search method and device based on semantics

A search method and code technology, applied in the field of big data, can solve problems such as limited effects, inability to search semantically, and no semantic code search tools, etc., and achieve the effect of convenient development work

Pending Publication Date: 2021-09-24
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] To sum up, in the existing technology, code search uses keywords to search, which cannot be searched according to semantics, and the effect is relatively limited
At present, in the software development industry, there is no suitable semantic code search tool

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
  • Code search method and device based on semantics
  • Code search method and device based on semantics
  • Code search method and device based on semantics

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0052]Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthe...

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 belongs to the technical field of big data, and provides a code search method and device based on semantics. The code search method based on semantics comprises the steps of: carrying out operator node processing and data flow edge processing on codes in a target code library to generate a program expression equivalence diagram; converting the search condition of a user is into an E-PEG program expression diagram; and searching the E-PEG program expression diagram in the program expression equivalence diagram to query a target code. According to the code search method and device based on semantics, the code search range can be effectively expanded, cross-development language code search is supported, and the code search efficiency is effectively improved by applying a high-speed cache; various development language grammar rules can be expanded and configured, and the application range is expanded.

Description

technical field [0001] The invention belongs to the technical field of big data, in particular relates to a distributed system service call, in particular to a semantic-based code search method and device. Background technique [0002] With the popularization of computer technology, the code volume in software is getting larger and larger. With the software development work, it is a common and daunting task to find all the codes with similar logic in the code base. . For example, if a bug is found in a piece of customary code, the developer needs to modify all programs that contain this code. In addition, for the sake of efficiency and quality, developers often need to find and refer to existing codes from the code base to write new codes, or find some codes that need to be refactored. Traditional code search is helpful in locating this type of code, but it still misses some code changes that are not foreseen by the normal pattern (code keywords). With the rise of artific...

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
IPC IPC(8): G06F16/245
CPCG06F16/245
Inventor 谢伟潘玲王磊吴冕冠
Owner INDUSTRIAL AND COMMERCIAL BANK OF CHINA
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