A code line recommendation method based on depth perception of programming scene context
A technology of depth perception and recommendation method, which is applied in the field of code recommendation without query, can solve problems such as lack of functions, and achieve the effect of improving accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0051]Firstly, the Java project acquired on the open source software platform GitHub is cut to obtain code segments with independent and complete functions, and write them into files. Taking the project ASTGeneration as an example, the form of a single code segment obtained after cutting is as follows:
[0052]
[0053]
[0054] After the source code is processed using the object processing method described in step 2 above and the basic data type processing method given in Table 1, a code segment set S1 with a unified format is obtained.
[0055] Extract the class name, method name and comment information of each code segment in the code segment set S1, save them in the disk in the form of class name#method name comment information, and obtain the data set D1.
[0056] Obtain each method block that has been processed and has the same format from the above code segment set S1, ignoring the method declaration on the first line, starting from line n+1, and the previous n li...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


