Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Defect error correction method based on code modification mode difference

An error correction method and code modification technology, applied in the field of software maintenance, which can solve the problem of not being able to detect whether there are problems in the fixed defects

Active Publication Date: 2019-06-21
YANGZHOU UNIV
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at the defects in the prior art, the purpose of the present invention is to overcome the deficiencies in the prior art, provide a defect error correction method based on the differences in code modification modes, and solve the problem that it is impossible to detect the existence of repaired defects in the prior art The technical difficulty of the problem, this method can detect the possible problems of the resolved defects, save the time of finding defect repair problems, and enhance the developer's defect repair experience

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
  • Defect error correction method based on code modification mode difference
  • Defect error correction method based on code modification mode difference
  • Defect error correction method based on code modification mode difference

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Such as figure 2 The shown defect correction method based on differences in code modification modes includes the following steps:

[0029] (1) Use the crawler to obtain the defect report whose status is resolved in Bugzilla, the defect retrieval platform, including its title (title), description (description), relationship between defects, and code parts, and perform data cleaning, and then sort by defect report ID (serial number) The order of the defect reports connected by the duplicate (repeated) relationship forms a cluster;

[0030] (2) Use the TF-IDF (term frequency–inverse document frequency) algorithm to extract keywords from the title and description of defects in each cluster, and use them as the subject words of the cluster;

[0031] (3) After confirming the subject words of the clusters, use the TF-IDF algorithm to extract keywords from the remaining defect reports and add them to the clusters of corresponding keywords;

[0032] (4) For the reports in eac...

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 defect error correction method based on code modification mode difference in the technical field of software maintenance. The method includes the following steps: first obtaining a defect report in the bug search platform Bugzilla by the crawler, and forming a cluster of defect reports connected by the non-repetitive relationship according to the order of the defect reportID; and reusing the TF-IDF algorithm for each cluster to extract the title and description of the internal defect by keywords, and extracting the remaining defect reports from the keywords and addedto the cluster of corresponding keywords; wherein comparing the source code submitted by each of the two reports to acquire the code clone pair and searching the diff information of the cloned part ofthe active code in the defect report, respectively, modifying the mode difference map for each diff information; finally, calculating the difference ratio to determine whether the defect modificationhas a problem. According to the method, developers are helped to find out the problems existing in the modified defects more quickly and conveniently.

Description

technical field [0001] The invention belongs to the technical field of software maintenance, in particular to a method for correcting defects based on differences in code modification modes. Background technique [0002] Nowadays, with the continuous development of technology and the rise of the intelligent age, people's demand for software is increasing. When developers encounter some unsolvable defect problems in the process of software development and maintenance, they often need to obtain more defect-related information by searching some open source software defect platforms, such as GitHub (a platform for open source and private software projects) hosting platform), Stack Overflow (a program-related IT technical question-and-answer website), Bugzilla (an open source defect tracking system) and other platforms. But sometimes the developer finds that bug reports with status resolved, verified or closed have problems reappearing, so the status changes to reopened, such as...

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/75
Inventor 魏颖孙小兵李斌
Owner YANGZHOU UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products