Method for improving annotation rate and annotation quality of open source codes

An open source code and annotation technology, applied in software maintenance/management, program files, etc., can solve problems such as natural language search, time-consuming, code annotation, etc., and achieve the effect of improving code reuse rate and improving development efficiency

Active Publication Date: 2018-08-28
NAT UNIV OF DEFENSE TECH
View PDF10 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] At present, there is no online learning platform with code as the main body on the Internet, and there is no platform that specifically annotates the code, which makes developers unable to effectively search for the code fragments they want through natural language during the development process. It takes a lot of time to source the source code; if there is a

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
  • Method for improving annotation rate and annotation quality of open source codes
  • Method for improving annotation rate and annotation quality of open source codes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] figure 1 The flowchart of the method for improving open source code annotation rate and annotation quality for the present invention comprises the following steps:

[0038] Step 1. Establish a code data server (Code Data Server), collect open source codes from the main code hosting platforms of the Internet, and preprocess the open source codes;

[0039] Step 2. Divide the difficulty level of the code fragment into four levels: simple, medium, difficult, and difficult;

[0040] Step 3. Divide the level of user knowledge mastery, and the user level is divided into four levels: basic, entry-level, familiar, and proficient;

[0041] Step 4. Push the code fragments of the four levels to the users of the corresponding levels according to the levels, and let the users perform corresponding operations;

[0042] Step 5. Push the question automatically generated by the system for the code to the user, and the user answers it. If the answer is correct, it will display that the ...

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 method for improving annotation rate and annotation quality of open source codes. The method comprises the following steps of 1, establishing a code data server, and preprocessing the open source codes; 2, grading difficulty levels of code segments; 3, grading knowledge mastery levels of users; 3, pushing the code segments to the users of the corresponding levels accordingto the levels, thereby enabling the users to perform corresponding operations; and 5, pushing questions automatically generated for the code segments by a system to the users, performing answering bythe users, and if the answering is correct, displaying that the answering of the users is correct, and highlighting answers of the users; and if the answering is not correct, displaying that the answering of the users is wrong, and providing reference answers. According to the method, a batch of code segments with annotations and high-quality code annotations are formed after multi-time cyclic pushing; rich resources are provided for code reuse; the code retrieval efficiency of developers and the code reuse rate in a software development process are effectively improved; and the development efficiency is greatly improved.

Description

technical field [0001] The invention relates to a method for improving the annotation rate and annotation quality of open source codes. Background technique [0002] At present, there are a large number of open source software and codes on the Internet. Open source software has been widely used in various fields and plays a vital role. Because of the existence of open source, developers can introduce open source projects when developing their own projects to achieve some basic functions without reinventing the wheel, saving a lot of time and shortening the development cycle; at the same time, in order to better use open source Projects will contribute to open source projects, making the functions of open source projects more powerful, thereby attracting more users to use open source projects, forming a virtuous circle. [0003] At present, most search engines and open source communities obtain open source codes by searching keywords, so that software developers can analyze ...

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): G06F8/73
CPCG06F8/73
Inventor 王怀民王涛於杰尹刚余跃范强曾令斌张迅晖李志星曾雅蓉王威刘晋泽
Owner NAT UNIV OF DEFENSE TECH
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