Bug report-oriented fine-grained defect positioning method

A positioning method and fine-grained technology, applied to the generation of response errors, instruments, electrical digital data processing, etc., can solve the problems of positioning effect influence, ignoring semantic information, defect positioning, etc., to reduce the loss of semantic information and improve positioning Effect, effect of efficiency improvement

Active Publication Date: 2019-11-26
YANGZHOU UNIV
View PDF4 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

These current studies regard bug reports and source code files as ordinary texts. However, natural language is used in bug reports, while code language is used in source code files. They only focus on the text similarity between the two and ignore Semantic information will have a certain impact on the effect of defect location, and fine-grained defect location cannot be achieved

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
  • Bug report-oriented fine-grained defect positioning method
  • Bug report-oriented fine-grained defect positioning method
  • Bug report-oriented fine-grained defect positioning method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] In order to make the purpose, content and advantages of the present invention clearer, the specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

[0053] Such as figure 1 A fine-grained defect location method for bug reports is shown, and the specific steps are as follows:

[0054] Step 1. This example conducts experiments on AspectJ, Lucene, OpenJpa, and Solr open source project data sets, and filters out the problem description part of the bug report whose status is fix (fixed) and verified (confirmed), and performs natural language processing steps (tokenization, stopword removal, and stemming) process the natural language of the problem description part into a list of words.

[0055] Then, based on the context information of the word, each word is processed into a 100d vector to form a feature vector of m*100 that can describe the semantic information of 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 bug report-oriented fine-grained defect positioning method in the field of software maintenance. The method comprises the following steps: firstly, obtaining a defect description feature vector based on a historical bug report, and constructing a high-frequency word corpus; extracting code blocks where defects are located, and constructing a code semantic matrix; inputtingthe feature vector and the code semantic matrix into a neural network to obtain a prediction model; training according to programs with similar functions to obtain a neural network model; replacing semantically similar words of the new bug report once, inputting the replaced feature vector into a prediction code construction model, and outputting a code semantic matrix; dividing a source code corresponding to the new bug report into code basic blocks, and respectively encoding the code basic blocks into code semantic matrixes to form a code semantic matrix list. According to the software defect repairing method, the defect positioning range is accurate to the basic code block level, and software defect repairing work can be more efficient.

Description

technical field [0001] The invention relates to a software maintenance method, in particular to a bug report-oriented defect location method, which belongs to the field of software maintenance. Background technique [0002] With the vigorous development of software technology, the expansion of software scale and the increasingly complex software products, the scale and types of software with defects also increase exponentially. The traditional manual analysis of defect causes, manual positioning and manual repair of defects can no longer meet the requirements of modern society for software maintenance. How to deal with the ever-increasing number of bug reports and the size of code files, and improve the efficiency of software defect location and repair has become one of the hotspots of researchers. [0003] At present, there are many advanced technologies for software defect location based on bug reports. The first type is based on information retrieval technology, optimiz...

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 Applications(China)
IPC IPC(8): G06F11/07G06F11/36
CPCG06F11/079G06F11/366Y02P90/30
Inventor 张婧玉孙小兵杨硕陈天浩曹琛
Owner YANGZHOU UNIV
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