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

A real-time software defect prediction method based on code representation learning

A technology for software defect prediction and code representation, which is applied in software testing/debugging, error detection/correction, instrumentation, etc. It can solve problems such as long-distance dependencies and inability to handle long-distance dependencies, so as to improve accuracy and solve long-distance dependencies. effect of dependence

Active Publication Date: 2021-06-01
NANJING TECH UNIV
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the existing traditional deep learning software defect prediction methods, there is a problem that it cannot deal with long-distance dependencies. This problem often occurs in software systems, especially in a single source code file. For example, method calls may be separated by thousands of lines. code, which leads to long-distance dependency problems

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 real-time software defect prediction method based on code representation learning
  • A real-time software defect prediction method based on code representation learning
  • A real-time software defect prediction method based on code representation learning

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043]DETAILED DESCRIPTION OF THE PREFERRED DESCRIPTION OF THE DRAWINGS FIG.

[0044]The present invention is designed such that the code represents the instant software defect prediction method for the learning representation of the learning, for implementing the code defect prediction; including code defect prediction model, and application code defects The predictive model is aimed at the modification of the modification to be detected; in which the code defect prediction model build method is actually applied, such asfigure 1 As shown, the following steps A to E are performed specifically.

[0045]Step A. Select the various types of code defects of the preset, and will be submitted to each change modification of the code library, and modify the sample as each change, and modify the sample for each change, change the sample decomposition into submission information and each code. Change information, in which each change modifies samples corresponding to each code change information, an...

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 relates to a real-time software defect prediction method based on code representation learning. With the help of the natural language model idea, the problem that traditional neural networks cannot solve long-distance dependencies is solved; first, code change information is reviewed and decomposed into two parts: submission information and code change ; Then encode the code change information to obtain word vector sequences based on word embeddings, paragraph embeddings and position embeddings; then use the attention mechanism to build the Transformer encoder model; Finally, pre-train the previous coding sequence to construct code defect prediction based on code representation learning Model. Compared with the prior art, the present invention uses the advantages of the attention mechanism to construct a Transformer encoder as a model to perform two pre-training tasks, so that the generated language model is more robust, can better represent code change information, and further improves software defects detection rate.

Description

Technical field[0001]The present invention relates to a real-time software defect prediction method based on a code representation, belonging to software analysis and defect prediction technology in software engineering.Background technique[0002]The software defect prediction technology was born in the 1970s, and the main role is to reduce the cost of software, and further protect the development quality of software. In recent years, the development of software field has developed rapidly, and the demand for high quality software at home and abroad has also increased significantly. With the development of software, the coupling of coupling in software development has also produced great hidden dangers. The software system acts as an important part of promoting my country's economic and social development, which will have a huge impact on enterprises and people when facing the above hidden dangers. In order to improve the quality of the software system, developers need to invest a lo...

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/36
CPCG06F11/3608
Inventor 祝永滕刘望舒刘学军
Owner NANJING TECH UNIV
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