A method for recommend code lines base on depth perception of programming field 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]First, cut the Java project obtained on the open source software platform GitHub to obtain a code segment with independent and complete functions, and write it into a file. 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 the above step 2 and the processing method of the basic data types given in Table 1, a code segment set S1 with a unified format is obtained.
[0055] The class name, method name and comment information of each code segment in the code segment set S1 are extracted, and stored in the disk in the form of class name#method name comment information, to obtain a data set D1.
[0056] Obtain each method block that has been processed and has the same format from the above code segment set S1, ignore the method declaration on its first line, start from line n+1, the previous n ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap