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

Hybrid depth defect prediction method based on code snippet analysis

A technology of code fragments and prediction methods, which is applied in the field of mixed deep defect prediction of open source software, can solve problems such as uneven code quality and potential safety hazards of open source software, and achieve improved data processing capabilities and automatic learning capabilities, improved capabilities, and improved The effect of accuracy

Pending Publication Date: 2020-12-04
STATE GRID INFORMATION & TELECOMM BRANCH +1
View PDF10 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to solve the technical problems of uneven code quality and potential safety hazards in open source software, and propose a method for predicting mixed depth defects of open source software based on code fragment analysis to predict whether the input code unit set contains defects , to ensure the security of using open source software

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
  • Hybrid depth defect prediction method based on code snippet analysis
  • Hybrid depth defect prediction method based on code snippet analysis
  • Hybrid depth defect prediction method based on code snippet analysis

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The method of the present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

[0025] A hybrid deep defect prediction method for open source software based on code fragment analysis, including a program slicing method based on the key points of the defect library and a defect prediction method based on hybrid deep learning.

[0026] Step 1: Based on the program slicing method of the key points of the defect library, the code characteristics of open source software are proposed. Vectorize the open source software code unit set containing defects, and represent the features into a vector form that the deep learning model can process.

[0027] Step 1.1: Guided by the open source software defect library, define the key points of open source software program slicing in the defect library, so that the slicing tool can accurately locate the code part containing defect features.

[0028] Further, the defect librar...

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 hybrid depth defect prediction method based on code snippet analysis, and belongs to the technical field of computer software defect prediction. According to the method, firstly, based on a program slicing method of defect library key points, an open source software code unit set containing defects is vectorized, and features are expressed as a vector form which can be processed by a deep learning model; then, based on a defect prediction method of hybrid deep learning, the classification and prediction capabilities of a hybrid deep model are improved, and a defect prediction classifier is obtained through training; and finally, defect prediction is performed on the open source software based on the trained defect prediction classifier, and target code snippets are outputted in a classified manner. According to the method, the pre-designed defect library key points are taken as the entry point of program slicing, the code snippets containing defect characteristics are extracted from the open source codes and are vectorized and expressed; and the hybrid model is obtained based on the multiple deep learning methods, so that the data processing capability and the automatic learning capability of the model can be effectively improved.

Description

technical field [0001] The invention relates to an open source software hybrid deep defect prediction technology based on code segment analysis, and belongs to the technical field of computer software defect prediction. Background technique [0002] With the development of computer technology, especially the rise of Internet technology and related enterprises, open source software has become the mainstream in various aspects such as research and development framework, operating system, compilation tool chain, database, and WEB server. In the informatization construction of major enterprises and institutions, the application scope of open source software has gradually expanded. Open source components that have been widely used include: R&D frameworks (such as Spring, Struts, etc.), operating systems (such as ubuntu), databases (such as Mysql), middleware (such as Tomcat), functional components (such as Zookeeper, Solr), etc. Open source software has the characteristics of op...

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/36G06N3/04G06N3/08
CPCG06F11/3608G06N3/08G06N3/045
Inventor 张攀沈亮来风刚吕俊峰谢磊任颖文粟仁杰高董英蒋鑫
Owner STATE GRID INFORMATION & TELECOMM BRANCH