Code library design method and detection method for rapid whole network code traceability detection

A design method and code base technology, applied in the direction of version control, software maintenance/management, etc., can solve the problems of small project coverage, low code traceability detection efficiency, poor code base architecture design, etc.

Pending Publication Date: 2021-06-18
PEKING UNIV
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, these code bases have problems such as small project coverage and insufficient support for network-wide traceability detection of codes, and poor code base architecture design, which leads to low efficiency of code traceability detection

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
  • Code library design method and detection method for rapid whole network code traceability detection
  • Code library design method and detection method for rapid whole network code traceability detection
  • Code library design method and detection method for rapid whole network code traceability detection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] Below in conjunction with accompanying drawing, further describe the present invention through embodiment, but do not limit the scope of the present invention in any way.

[0064] The present invention provides a code library design method for rapid network-wide code traceability detection, which specifically includes the following steps:

[0065] A. Obtain the list of open source software projects on the whole network through various project discovery methods. The implementation method is:

[0066]At present, most open source software projects are hosted on some popular development collaboration platforms such as GitHub, Bitbucket, GitLab and SourceForge. There are also some open source projects that are hosted on personal or project-specific websites. Therefore, in order to support network-wide traceability detection of codes, it is necessary to obtain as complete a list of open source projects as possible. Aiming at this challenge, the present invention combines v...

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 discloses a code library design method for rapid whole network code traceability detection, and the method comprises the steps: carrying out the efficient storage of a Git object in a Git open source project used in a whole network through project discovery, data extraction, data storage, code information mapping construction and data updating processes, thereby obtaining a code library, and achieving the efficient updating of the code library; adopting a storage mode of carrying out classified and partitioned storage according to Git objects; constructing relational mapping from the code file to code file information, and quickly retrieving whole network information of the code file; and adopting an efficient updating mode for the constructed super-large-scale code library, proposing a customized git feed protocol based on a Libgit2 function library, and efficiently obtaining newly-added Git object data of the remote warehouse by taking the constructed super-large-scale code library as a rear end. The code library generated by the method can be periodically and efficiently updated, and supports quick whole-network traceability detection of codes on file granularity, and the detection efficiency is high.

Description

technical field [0001] The invention provides a code library design method for rapid whole-network code traceability detection and a fast whole-network code traceability detection method based on the code library, which belong to the technical field of software engineering. Background technique [0002] With the vigorous development of open source software, a large number of excellent open source software resources have accumulated on the Internet, and more and more open source codes are used in software development. While the use of open source code improves the efficiency of software development, it also introduces risks. For example, if you do not know the source of the open source code, you cannot update the subsequent bug fixes of the open source code synchronously, and you will also expose yourself to license compliance. Among the legal risks such as legal risks and intellectual property rights, it brings different degrees of security threats and economic or reputation...

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): G06F8/70G06F8/71
CPCG06F8/70G06F8/71
Inventor 周明辉高恺何昊
Owner PEKING 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