System and method for automatically tagging source code

An automatic labeling and source code technology, applied in the field of data processing, can solve problems such as time-consuming, labor-intensive omissions, and non-unique branch IDs, and achieve the effect of reducing processing complexity and manual intervention

Active Publication Date: 2015-12-02
YONYOU NETWORK TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] However, in related technologies, programmers manually maintain branch IDs and comment statements in the source code. On the one hand, it is extremely time-consuming and laborious for programmers; on the other hand, due to the huge number of branches in the source code, It is easy to happen that the branch ID is not unique, missing, etc.

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
  • System and method for automatically tagging source code
  • System and method for automatically tagging source code
  • System and method for automatically tagging source code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to understand the above-mentioned purpose, features and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other.

[0036] In the following description, many specific details are set forth in order to fully understand the present invention. However, the present invention can also be implemented in other ways different from those described here. Therefore, the protection scope of the present invention is not limited by the specific details disclosed below. EXAMPLE LIMITATIONS.

[0037] figure 1 A schematic block diagram of a system for automatically marking source code according to an embodiment of the present invention is shown.

[0038] Such as figure 1 As shown, the sy...

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 system for automatically marking a source code. The system comprises a code reading unit for reading the source code of any source file into a character string variable and decomposing the character string variable into a string array, a level determining unit for prereading retraction format characters of multiple rows of statements and determining statement levels, a type judging unit for determining whether each statement is a branch / loop statement or not according to an initial keyword, a statement processing unit for adding a unique identification and a comment statement in each branch of a statement body part of each branch / loop statement, and a variable storing unit for storing outcome variables into the source file after all the statements in the string array are processed. The invention further provides a corresponding method for automatically marking the source code. By adopting the technical scheme, branch / loop statements in the source code can be automatically identified, and the unique identifications and rem statements are automatically added, so that manual intervention is reduced, and the processing complexity is lowered.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a system for automatically marking source codes and a method for automatically marking source codes. Background technique [0002] Black box testing is a testing method based on software product requirements and design specifications, focusing on confirming and verifying whether software products meet the specifications. White box testing is a test based on source code logic. It focuses on confirming and verifying whether the software source code conforms to the development specification, whether the business logic meets the design requirements, and pays attention to the statement coverage and path coverage in the source code business logic. [0003] The above two test methods focus on different test objects and different evaluation indicators. For a long time, a complete black-box testing theory and method tool system and a white-box testing theory and method tool syste...

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): G06F9/30
Inventor 曹峰
Owner YONYOU NETWORK TECH CO LTD
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