Device and method for code search recommendation based on open source knowledge

A search recommendation and code technology, applied in the field of code search recommendation devices based on open source knowledge, can solve the problems of lack of code measurement depth, insufficient constraints, single code measurement angle, etc., to achieve complete code measurement, overcome inaccurate search, Accurate search results

Active Publication Date: 2021-07-27
XIDIAN UNIV
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The purpose of the present invention is to provide a code search recommendation device and method based on open source knowledge to solve the problem that the existing technology does not fully consider the characteristics and characteristics of the code itself, resulting in the lack of code measurement depth, A large amount of code knowledge in the open source community is discarded, resulting in the problem that the generated constraints are not comprehensive enough, the code measurement angle is single, and the user's query intention and other knowledge are not fully utilized in the search process.

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
  • Device and method for code search recommendation based on open source knowledge
  • Device and method for code search recommendation based on open source knowledge
  • Device and method for code search recommendation based on open source knowledge

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The present invention will be further described below in conjunction with the accompanying drawings.

[0051] Refer to attached figure 1 , to further describe the structure of the device of the present invention.

[0052] The device of the present invention includes four modules: a code segment generation module, a code feature extraction module, a text preprocessing module and a code search module.

[0053] The code fragment generation module is used to segment codes of at least 100,000 open source projects according to the attributes of the code itself in each project, and obtain at least 1.5 million code fragments to form a code fragment library.

[0054] The code feature extraction module is used to represent all text information in each code segment in a tree form by using the abstract syntax tree AST, each node on the tree represents a feature type in the code segment, and each All the text features of a code fragment, and all the text features of all code fragm...

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 a code search recommendation device and method based on open source knowledge. The device of the present invention includes a code segment generation module, a code feature extraction module, a text preprocessing module and a code search module. The steps of the method of the present invention are: generating a code fragment library; extracting code fragment text features; generating code fragment theme features; generating code fragment structural features; generating code fragment development features; Query similarity calculation; complete recommendation based on comprehensive score. The present invention uses open source knowledge to build a code feature measurement system, extracts code segment features from multiple angles, and uses similarity calculation and weighted calculation methods to obtain comprehensive scores of code segments and complete code search recommendations, perfecting the code measurement angle and improving code search recommendations accuracy.

Description

technical field [0001] The invention belongs to the technical field of software engineering, and further relates to a code search and recommendation device and method based on open source knowledge in the technical fields of intelligent software research and development, artificial intelligence, and data mining. The present invention is suitable for the engineering development task of efficiently developing high-quality software, completes the analysis and application of knowledge in massive open source communities, realizes accurate measurement of code fragments, precise search, and improves the accuracy of code search and recommendation results. Background technique [0002] As the scale of software becomes larger and its functions more complex, the software code itself becomes larger, more complex, and full of variability. At the same time, the characteristics of continuous construction and growth of contemporary software also urgently require developers to efficiently co...

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 Patents(China)
IPC IPC(8): G06F8/20G06F16/31G06F16/33G06F40/289G06F40/30G06K9/62G06F16/951
CPCG06F8/20G06F16/316G06F16/3335G06F40/289G06F40/30G06F16/951G06F18/22
Inventor 王璐李青山曹壮罗文龙吕文琪李昊张河
Owner XIDIAN UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products