Unlock instant, AI-driven research and patent intelligence for your innovation.

A Software Defect Location System Based on Source Code File Dependency

A technology of source code files and dependencies, which is applied in the field of software defect location system, can solve problems such as inaccurate location and failure to consider file dependencies, and achieve the effect of improving accuracy

Active Publication Date: 2022-01-28
BEIHANG UNIV
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The present invention aims at the defect automatic location problem based on the defect report, and aims to propose a defect location method based on source code file dependencies, so as to solve the problem that the existing method location is not accurate enough and file dependencies are not considered
[0010] Specifically, the main problems to be solved include: (1) Directly using the dependencies between source codes for positioning will introduce many irrelevant files, so it is necessary to find a quantification method for dependencies, which needs to meet two conditions: Can effectively distinguish error and non-error source code files; can cover all source code files in the current application

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 Software Defect Location System Based on Source Code File Dependency
  • A Software Defect Location System Based on Source Code File Dependency
  • A Software Defect Location System Based on Source Code File Dependency

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] The following is a preferred embodiment of the present invention and the technical solutions of the present invention will be further described in connection with the accompanying drawings, but the present invention is not limited to this embodiment.

[0042] The present invention proposes a defective positioning system based on the source code file dependencies, and the system is divided into input, operation, output three modules, where the input module is used to import the defect report and the source code file, the arithmetic module adopts a DependLoc framework , Dependloc framework overall frame figure 1 Indicated. Dependloc consists of three submodules:

[0043] CNN4TFIDF Model Submodule: The TF-IDF vector of the defect report and the source code file captures the characteristics of the text similarity, source file file length, and similar defect reports.

[0044] The vector representation of the defect report and the source code file is calculated by TF-IDF. Assume ...

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 implements a software defect location system based on source code file dependencies by using methods in the field of artificial intelligence. The system is divided into three modules: input, calculation, and output. The input module is used to import defect reports and source code files, and the output module It is used to sort the source code files according to the correlation score and output them externally. The calculation module adopts the DependLoc framework and consists of three sub-modules. The CNN4TFIDF model sub-module captures text features according to the defect report and the TF-IDF vector of the source code file; the segment RefHI encoder The sub-module encodes defect reports and source code files into vectors with source code dependency characteristics; the CNN4RefHI sub-module is based on the correlation score between defect reports and RefHI vectors of source code files; thus effectively distinguishing error and non-error source code files; Covers all source code files in the current application; the technical effect of making full use of information in defect reports and TF‑IDF vector representations of source code files.

Description

Technical field [0001] The present invention relates to the field of artificial intelligence, and more particularly to a software defect positioning system based on source code file dependencies. Background technique [0002] Open source software typically records defects using defect tracking systems such as Bugzilla and Jira, and has a large number of defect reports per day. The defect report contains the description of the defect, the relevant program status, logs, etc. when the failure is expired. Therefore, the researchers attempt to automatically position the wrong program entity based on the submitted defect report. Defect positioning based on defect reports can be seen as a query problem, that is, for a given defect report (query), you need to find a possible error in all source files (documentation) of the application, and the suspicious source file file Rank according to the possibility of an error. In recent years, research work around the defect report is mainly divid...

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): G06F11/36G06F40/30G06N3/00
CPCG06F11/3608G06F40/30G06N3/006
Inventor 孙海龙刘旭东袁薇齐斌航
Owner BEIHANG UNIV