Unlock instant, AI-driven research and patent intelligence for your innovation.

Software code recommendation method based on JEAN

A recommendation method and software code technology, applied in the field of information retrieval, can solve problems such as non-compliance with requirements, low quality, and difficulty in filtering out valuable information.

Active Publication Date: 2021-06-15
NANTONG UNIVERSITY
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, studies have shown that software developers spend an average of about 21% of their development time on web searches. This is because with the continuous development of Internet-related technologies, the speed of information dissemination has also increased significantly, resulting in an increasingly serious problem of information overload. , it is becoming more and more difficult to screen out valuable information from massive amounts of data
[0003] Developers will search for the code snippets they need through search engines or online question-and-answer forums. However, there will be many low-quality or unsuitable answers in the code snippets retrieved through search engines or online question-and-answer forums.

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
  • Software code recommendation method based on JEAN
  • Software code recommendation method based on JEAN
  • Software code recommendation method based on JEAN

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0075] In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will describe in detail with reference to the drawings and specific embodiments.

[0076] The invention provides a JEAN-based software code recommendation method, which is mainly used to solve the problem of recommending code segments to developers during software development. First collect a large number of code segments with descriptions, and then extract the Tokens, Method name, API sequence element information in the code segment and the corresponding description of the code segment as a training set. The next step is to use the collected training set to use the above model training method to train the JEAN model. After the model is trained, the code base is built, and then the JEAN model extracts Tokens, Method name, and API sequence element information for each code segment in the code base, and uses the code embedding representa...

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 provides a JEAN-based software code recommendation method, which is mainly used for solving the problem of recommending code segments to developers in software development. The method comprises the following steps: S1, constructing a JEAN model; S2, collecting a java code segment data set with description from GitHub, and pre-processing the java code segment data set as a training set for training a JEAN model; S3, constructing a code library, and embedding all code segments in the code library into code vectors by using a code embedding representation module in the JEAN model; S4, performing online code search by a developer , and after query is input, embedding the query into a query vector by a description embedding representation module in the JEAN model; and S5, calculating the similarity between the query vector and all code vectors in the code library by using cosine similarity, and returning a code segment of the vector most relevant to the query vector. According to the method, software developers can be effectively helped to recommend proper code segments according to own requirements, and the method has relatively high accuracy and efficiency.

Description

technical field [0001] The invention belongs to the technical field of information retrieval, and in particular relates to a JEAN-based software code recommendation method. Background technique [0002] In the process of software development, in order to realize certain program functions, developers often have to perform some unfamiliar programming tasks. When developers encounter these programming problems, they tend to search the web for code snippets that can solve these programming problems. However, studies have shown that software developers spend an average of about 21% of their development time on web searches. This is because with the continuous development of Internet-related technologies, the speed of information dissemination has also increased significantly, resulting in an increasingly serious problem of information overload. , It is becoming more and more difficult to screen out valuable information from massive amounts of data. [0003] Developers will sear...

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): G06F16/335G06F8/71
CPCG06F16/335G06F8/71
Inventor 文万志王仕强周杰陆晓虹梁文栋赵甜程实
Owner NANTONG UNIVERSITY