Supercharge Your Innovation With Domain-Expert AI Agents!

Method for automatically generating outline and label for code modification

A code modification and automatic generation technology, applied in the field of code modification-oriented summary and automatic label generation, can solve the problems of huge amount of information, heavy workload, poor readability, etc., and achieve strong readability and sufficient information Effect

Active Publication Date: 2015-10-21
扬州叮当科技有限公司
View PDF5 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, manual generation of code modification information is a huge workload, and the code modification information written by developers is often subjective, and the description sentences may be confusing, so it is necessary to automatically generate code modification summaries
[0004] In this field, relevant personnel have conducted research on automatically generating code summaries, Luis Fernando Cortés-Coy et al. (10.1109 / SCAM.2014.14, 28-29) based on the tree difference algorithm to obtain method code modification through Change Distiller technology, there are also The well-known diffs technology analyzes the differences between code texts, but in these technologies, the generated code modification submission information is often informative and poorly readable, and only describes the code differences from the perspective of what, and There is no description of why information, that is, the reason for the code modification here, etc., but the why information is more concerned by developers, and developers want to know what is the reason for the modification here
There is no relevant research report on this problem in the prior art

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 automatically generating outline and label for code modification
  • Method for automatically generating outline and label for code modification
  • Method for automatically generating outline and label for code modification

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0041] A code modification-oriented summary and label automatic generation method, (the specific process is as follows figure 1 shown) the specific steps are as follows:

[0042] Step 1) According to the determined modification type (the modification type is summarized as figure 2 As shown), we analyze the text before and after code modification and the source code containing bug-report. For some source code without bug-report, we only analyze the text before and after code modification, analyze the association rules, and obtain the association rule results.

[0043] Step 2) Determine the modification type of this code according to the result of the association rule. For example: by analyzing the source code before and after, we use the association rules to judge that a certain error has been corrected, and the type of corresponding code modification is Corrective (error-correcting maintenance). For some code modifications with bug-report, analyze the bug summary descriptio...

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 discloses a method for automatically generating an outline and a label for a code modification. According to the submitted code modification, the method can automatically generate descriptive information about the code modification, then generates the content outline according to the generated descriptive information of the code modification and generates the label related to the code modification. The method provides software maintenance staffs with the code modification outline, lets software development staffs read and understand historical software modifications easily, increases quality of modification submission and helps the development staffs better understand the modifications.

Description

[0001] Field [0002] The invention relates to the field of software maintenance, in particular to a summary and label automatic generation method for code modification. The method automatically generates a code modification summary for the submitted code modification, and uses a tag topic model to recommend tags related to the modification content to assist maintenance personnel in understanding the code modification. Background technique [0003] In the field of software maintenance, software products are generally continuously upgraded and maintained in order to meet the changing needs of users. In order to realize a certain maintenance request, developers need to continuously improve the functions of the software according to the needs of users. After modification, developers need Fill out the program modification registration form, and write down the differences between the old and new programs on the program change notice. However, manual generation of code modification...

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): G06F11/36
Inventor 孙小兵沈金凤刘湘月李斌李云
Owner 扬州叮当科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More