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

A Defect Correction Method Based on Code Modification Pattern Difference

A technology of code modification and error correction method, applied in the field of software maintenance, which can solve the problem of not being able to detect whether there is a problem with the fixed defect

Active Publication Date: 2022-02-11
YANGZHOU UNIV
View PDF4 Cites 0 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
  • A Defect Correction Method Based on Code Modification Pattern Difference
  • A Defect Correction Method Based on Code Modification Pattern Difference
  • A Defect Correction Method Based on Code Modification Pattern Difference

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0030] (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;

[0031] (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;

[0032] (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;

[0033] (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 present invention provides a defect correction method based on differences in code modification modes in the technical field of software maintenance, which includes the following steps: first obtain the defect reports whose status is resolved in the defect retrieval platform Bugzilla through a crawler, and follow the sequence of defect report IDs Defect reports connected by non-repetitive relationship form a cluster; then use the TF-IDF algorithm to extract keywords from the title and description of defects in each cluster, and extract keywords from the rest of the defect reports, and add corresponding keywords In the cluster; secondly, compare the source code submitted by each two reports to obtain the code clone pair, find out the diff information of the source code clone part in each defect report, and make a modification mode difference diagram for each diff information; finally, Calculate the difference ratio to judge whether there is a problem in the modification of the defect; the invention helps developers find out the problem of the modified defect 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
Patent Type & Authority Patents(China)
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