CN111782264A - Code classification information extraction method and device, computer equipment and storage medium - Google Patents

Code classification information extraction method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111782264A
CN111782264A CN202010713142.8A CN202010713142A CN111782264A CN 111782264 A CN111782264 A CN 111782264A CN 202010713142 A CN202010713142 A CN 202010713142A CN 111782264 A CN111782264 A CN 111782264A
Authority
CN
China
Prior art keywords
code
log
classification information
preset
submission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010713142.8A
Other languages
Chinese (zh)
Inventor
李泽民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202010713142.8A priority Critical patent/CN111782264A/en
Publication of CN111782264A publication Critical patent/CN111782264A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems

Abstract

The embodiment of the invention discloses a code classification information extraction method, a code classification information extraction device, computer equipment and a storage medium. The method belongs to the technical field of research and development process optimization. The method comprises the following steps: judging whether the current time reaches a preset time node or not; if the current time reaches a preset time node, acquiring a code submission log of the code version management tool in a preset statistical time period; determining code classification information according to the code submission log, wherein the code submission log comprises the code classification information; writing the code classification information into a preset recording file; and sending the record file to a preset auditing terminal. Therefore, the code can be directly checked by the checking personnel according to the record file without manually screening the code submission log, so that manual mistakes are avoided, and the checking efficiency is improved.

Description

Code classification information extraction method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of research and development process optimization, in particular to a code classification information extraction method and device, computer equipment and a storage medium.
Background
The SVN is an abbreviation of Subversion and is a code version management tool of open source codes. Similarly, Git is also a code version management tool for open source code. The code version management tool can effectively and quickly process the version management of projects from small to very large.
The two code version management tools provide a tracking function of a submission log and can realize the management of the code version. However, when code review is performed by the two code version management tools described above, developers are required to manually filter from their code submission logs. The manual screening and checking mode is easy to make mistakes and has low efficiency.
Disclosure of Invention
The embodiment of the invention provides a code classification information extraction method, a code classification information extraction device, computer equipment and a storage medium, and aims to improve the accuracy and efficiency of code information extraction.
In a first aspect, an embodiment of the present invention provides a method for extracting code classification information, where the method includes:
judging whether the current time reaches a preset time node or not;
if the current time reaches a preset time node, acquiring a code submission log of a code version management tool in a preset statistical time period, wherein the end point of the statistical time period is the preset time node, and the starting point of the statistical time period is the time starting point of a preset duration before the preset time node;
determining code classification information according to the code submission log, wherein the code submission log comprises the code classification information;
writing the code classification information into a preset recording file;
and sending the record file to a preset auditing terminal.
In a second aspect, an embodiment of the present invention further provides a device for extracting code classification information, where the device includes:
the judging unit is used for judging whether the current time reaches a preset time node or not;
the device comprises a first obtaining unit, a second obtaining unit and a third obtaining unit, wherein the first obtaining unit is used for obtaining a code submission log of a code version management tool in a preset counting time period if the current time reaches a preset time node, the end point of the counting time period is the preset time node, and the starting point of the counting time period is the time starting point of a preset duration before the preset time node;
the first determining unit is used for determining code classification information according to the code submitting log, and the code submitting log comprises the code classification information;
the recording unit is used for writing the code classification information into a preset recording file;
and the sending unit is used for sending the record file to a preset auditing terminal.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the above method when executing the computer program.
In a fourth aspect, the present invention also provides a computer-readable storage medium, which stores a computer program, and the computer program can implement the above method when being executed by a processor.
The embodiment of the invention provides a code classification information extraction method and device, computer equipment and a storage medium. Wherein the method comprises the following steps: judging whether the current time reaches a preset time node or not; if the current time reaches a preset time node, acquiring a code submission log of the code version management tool in a preset statistical time period; determining code classification information according to the code submission log, wherein the code submission log comprises the code classification information; writing the code classification information into a preset recording file; and sending the record file to a preset auditing terminal. By applying the technical scheme of the embodiment of the invention, the code submission log of the code version management tool is obtained; determining code classification information according to the code submission log; writing the code classification information into a preset recording file; and sending the record file to an auditing terminal, so that code classification information can be automatically acquired from a code submitting log of a code version management tool and recorded in the record file. Therefore, the code can be directly checked by the checking personnel according to the record file without manually screening the code submission log, so that manual mistakes are avoided, and the checking efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a code classification information extraction method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for extracting code classification information according to an embodiment of the present invention;
fig. 3 is a schematic sub-flow chart of a method for extracting code classification information according to an embodiment of the present invention;
fig. 4 is a schematic block diagram of a code classification information extraction apparatus according to an embodiment of the present invention;
fig. 5 is another schematic block diagram of a code classification information extraction apparatus according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a first filtering unit of a code classification information extraction apparatus according to an embodiment of the present invention;
fig. 7 is a schematic block diagram of a first determining unit of a code classification information extracting apparatus according to an embodiment of the present invention;
fig. 8 is a schematic block diagram of a second obtaining unit of the code classification information extracting apparatus according to the embodiment of the present invention;
fig. 9 is a schematic block diagram of a recording unit of a code classification information extraction apparatus according to an embodiment of the present invention;
fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Referring to fig. 1 and fig. 2, fig. 1 is a schematic view of an application scenario of a code classification information extraction method according to an embodiment of the present invention. Fig. 2 is a schematic flowchart of a code classification information extraction method according to an embodiment of the present invention. The code classification information extraction method is applied to the code management server 1. The code management server 1 acquires a code submission log of a code version management tool; the code management server 1 determines code classification information according to the code submission log; the code management server 1 writes the code classification information into a preset recording file; and the code management server 1 sends the record file to a preset auditing terminal 2.
Fig. 2 is a schematic flowchart of a code classification information extraction method according to an embodiment of the present invention. As shown, the method includes the following steps S1-S5.
And S1, judging whether the current time reaches a preset time node.
In specific implementation, whether the current time reaches a preset time node is judged. It should be noted that the time node can be set by those skilled in the art according to actual situations. For example, the time nodes may be set to 0, 6, 12, and 18 points per day, which is not specifically limited in this embodiment.
And if the current time does not reach the preset time node, returning to the step of judging whether the current time reaches the preset time node or not until the time node reaches.
And S2, if the current time reaches a preset time node, acquiring a code submission log of the code version management tool in a preset statistical time period, wherein the end point of the statistical time period is the preset time node, and the starting point of the statistical time period is the time starting point of a preset duration before the preset time node.
A code version management tool refers to a tool that manages the code of an item. In the embodiment of the present invention, the code version management tool may be specifically SVN or Git. If the code submitted by the user is received, the code version management tool generates a code submission log to record the code submitted by the user, the full path, the submission date and the submitter.
In the embodiment of the invention, the code submission log of the code version management tool is obtained. In a specific implementation, the code version management tool stores the code submission log in a preset database. Accordingly, the code submission log of the code version management tool is extracted from the preset database.
In specific implementation, if the current time reaches a preset time node, a code submission log of the code version management tool in a preset statistical time period is acquired. The end point of the characteristic statistic time interval is a preset time node, the start point of the characteristic statistic time interval is a time start point of a preset time length before the preset time node, and it should be noted that the preset time length can be set by a person skilled in the art. For example, the preset time period may be 6 hours. With the above setting, the code submission log can be acquired every 6 hours.
And S2, determining code classification information according to the code submission log.
In a specific implementation, code classification information is determined from the code submission log. The code classification information specifically includes a code, a submission date, a submitter, and a module to which the code belongs. The code submission log includes code classification information.
Referring to fig. 3, in an embodiment, the code submission log includes a code, a full path, a submission date, and a submitter, and the step S2 includes the following steps S21-S22:
and S21, extracting the codes, the full path, the submission date and the submitter in the code submission log.
In specific implementation, information such as the code, the full path, the submission date, the submitter and the like in the code submission log is extracted.
It should be noted that the format of the code submission log is generally: code \ full path \ date submitted \ submitter. The above-mentioned information is separated by means of a separator \ ". Therefore, the separators are located first, and then the information of each code is extracted in sequence.
And S22, determining the module to which the code belongs according to the full path.
In a specific implementation, the full path of the code corresponds to the module to which the code belongs one to one, so that the module to which the code belongs can be determined according to the full path.
In an embodiment, the step S22 includes the following steps: and determining the module to which the code belongs according to the full path and a preset full path-module corresponding relation.
In specific implementation, the full path-module correspondence is stored in advance, and after the full path of the code is acquired, the module to which the code belongs is determined according to the acquired full path and the preset full path-module correspondence.
And S3, writing the code classification information into a preset recording file.
In specific implementation, the code classification information is written into a preset recording file. The record file may be specifically an Excel file or a Word file.
In an embodiment, the step S3 specifically includes: and writing the codes, the submission date, the submitter and the modules to which the codes belong in the code submission log into a preset recording file.
In specific implementation, the codes, the submission dates, the submitters and the modules to which the codes belong in the code submission log are written into a preset recording file.
And S4, sending the record file to an auditing terminal.
In specific implementation, the record file is sent to an audit terminal. The auditing terminal is a terminal used by an auditor. Therefore, the code can be audited by the auditor according to the record file, the code submission log does not need to be screened manually, manual mistakes are avoided, and the auditing efficiency is improved.
In one embodiment, the code classification information extraction method further includes: and if a log screening request sent by an auditing terminal is received, screening a code submission log meeting the log screening request from the code submission logs of the code version management tool according to the log screening request.
In specific implementation, if a log screening request sent by an auditing terminal is received, a code submitting log meeting the log screening request is screened from the code submitting logs of the code version management tool according to the log screening request.
The audit terminal refers to a terminal used by an auditor.
In one embodiment, the log screening request includes a screening period, the steps of: screening a code submitting log meeting the log screening request from the code submitting logs of the code version management tool according to the log screening request, which specifically comprises the following steps: and screening a feature code submission log from the code submission log of the code version management tool, wherein the submission time of the feature code submission log is within the screening time period.
It should be noted that the filtering time period can be set by the user, so that the user can filter the code submission log as required.
By applying the technical scheme of the embodiment of the invention, the code submission log of the code version management tool is obtained; determining code classification information according to the code submission log; writing the code classification information into a preset recording file; and sending the record file to an auditing terminal, so that code classification information can be automatically acquired from a code submitting log of a code version management tool and recorded in the record file. Therefore, the code can be directly checked by the checking personnel according to the record file without manually screening the code submission log, so that manual mistakes are avoided, and the checking efficiency is improved.
Fig. 4 is a schematic block diagram of a code classification information extraction apparatus 70 according to an embodiment of the present invention. As shown in fig. 4, the present invention also provides a code classification information extraction device 70 corresponding to the above code classification information extraction method. The code classification information extraction device 70 includes a unit for executing the above-described code classification information extraction method, and the code classification information extraction device 70 may be configured in a server. Specifically, referring to fig. 4, the code classification information extraction device 70 includes a judgment unit 71, an acquisition unit 72, a first determination unit 73, a recording unit 74, and a transmission unit 75.
A judging unit 71, configured to judge whether the current time reaches a preset time node;
a first obtaining unit 72, configured to obtain a code submission log of the code version management tool in a preset statistical time period if a current time reaches a preset time node, where an end point of the statistical time period is the preset time node, and a starting point of the statistical time period is a time starting point of a preset duration before the preset time node;
a first determining unit 73, configured to determine code classification information according to the code submission log, where the code submission log includes the code classification information;
a recording unit 74, configured to write the code classification information into a preset recording file;
a sending unit 75, configured to send the record file to a preset audit terminal.
As shown in fig. 5, in an embodiment, the code classification information extraction apparatus 70 further includes a first filtering unit 76.
And a first screening unit 76, configured to, if a log screening request sent by an audit terminal is received, screen, according to the log screening request, a code submission log that meets the log screening request from the code submission logs of the code version management tool.
As shown in fig. 6, in one embodiment, the first screening unit 76 includes a second screening unit 761.
A second screening unit 761, configured to screen a feature code submission log from the code submission log of the code version management tool, where a submission time of the feature code submission log is within the screening period.
As shown in fig. 7, in an embodiment, the code submission log includes a code, a full path, a submission date, and a submitter, and the first determining unit 73 includes an extracting unit 731 and a second determining unit 732.
An extracting unit 731, configured to extract the code, the full path, the submission date, and the submitter in the code submission log.
A second determining unit 732, configured to determine a module to which the code belongs according to the full path.
As shown in fig. 8, in an embodiment, the second determining unit 732 includes a third determining unit 7321.
A third determining unit 7321, configured to determine a module to which the code belongs according to the full path and a preset full path-module correspondence.
As shown in fig. 9, in one embodiment, the recording unit 74 includes a writing unit 741.
The writing unit 741 is configured to write the code, the submission date, the submitter, and the module to which the code belongs in the code submission log into a preset recording file.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation processes of the code classification information extraction apparatus 70 and each unit may refer to the corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, no further description is provided herein.
The code classification information extraction means 70 described above may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 10.
Referring to fig. 10, fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a server. The server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 10, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, causes the processor 502 to perform a code classification information extraction method.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be caused to execute a code classification information extraction method.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 10 is a block diagram of only a portion of the configuration relevant to the present teachings and is not intended to limit the computing device 500 to which the present teachings may be applied, and that a particular computing device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following steps:
judging whether the current time reaches a preset time node or not;
if the current time reaches a preset time node, acquiring a code submission log of a code version management tool in a preset statistical time period, wherein the end point of the statistical time period is the preset time node, and the starting point of the statistical time period is the time starting point of a preset duration before the preset time node;
determining code classification information according to the code submission log, wherein the code submission log comprises the code classification information;
writing the code classification information into a preset recording file;
and sending the record file to a preset auditing terminal.
In one embodiment, processor 502 further implements the steps of:
and if a log screening request sent by an auditing terminal is received, screening a code submission log meeting the log screening request from the code submission logs of the code version management tool according to the log screening request.
In an embodiment, the log screening request includes a screening time period, and when the processor 502 implements the step of screening the code submission log meeting the log screening request from the code submission logs of the code version management tool according to the log screening request, the following steps are specifically implemented:
and screening a feature code submission log from the code submission log of the code version management tool, wherein the submission time of the feature code submission log is within the screening time period.
In an embodiment, the code submission log includes a code, a full path, a submission date, and a submitter, and when the processor 502 implements the step of determining code classification information according to the code submission log, the following steps are implemented:
extracting codes, full paths, submission dates and submitters in the code submission logs;
and determining the module to which the code belongs according to the full path.
In an embodiment, when the processor 502 implements the step of determining the module to which the code belongs according to the full path, the following steps are specifically implemented:
and determining the module to which the code belongs according to the full path and a preset full path-module corresponding relation.
In an embodiment, when the processor 502 implements the step of writing the code classification information into the preset recording file, the following steps are specifically implemented:
and writing the codes, the submission date, the submitter and the modules to which the codes belong in the code submission log into a preset recording file.
It should be understood that, in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program may be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program. The computer program, when executed by a processor, causes the processor to perform the steps of:
judging whether the current time reaches a preset time node or not;
if the current time reaches a preset time node, acquiring a code submission log of a code version management tool in a preset statistical time period, wherein the end point of the statistical time period is the preset time node, and the starting point of the statistical time period is the time starting point of a preset duration before the preset time node;
determining code classification information according to the code submission log, wherein the code submission log comprises the code classification information;
writing the code classification information into a preset recording file;
and sending the record file to a preset auditing terminal.
In an embodiment, the processor, in executing the computer program, further implements the steps of:
and if a log screening request sent by an auditing terminal is received, screening a code submission log meeting the log screening request from the code submission logs of the code version management tool according to the log screening request.
In an embodiment, the log screening request includes a screening time period, and when the processor executes the computer program to implement the step of screening, from the code submission logs of the code version management tool, the code submission logs meeting the log screening request according to the log screening request, the following steps are specifically implemented:
and screening a feature code submission log from the code submission log of the code version management tool, wherein the submission time of the feature code submission log is within the screening time period.
In an embodiment, the code submission log includes a code, a full path, a submission date, and a submitter, and when the processor executes the computer program to implement the step of determining code classification information according to the code submission log, the following steps are specifically implemented:
extracting codes, full paths, submission dates and submitters in the code submission logs;
and determining the module to which the code belongs according to the full path.
In an embodiment, when the processor executes the computer program to implement the step of determining the module to which the code belongs according to the full path, the following steps are specifically implemented:
and determining the module to which the code belongs according to the full path and a preset full path-module corresponding relation.
In an embodiment, when the processor executes the computer program to implement the step of writing the code classification information into a preset recording file, the following steps are specifically implemented:
and writing the codes, the submission date, the submitter and the modules to which the codes belong in the code submission log into a preset recording file.
The storage medium is an entity and non-transitory storage medium, and may be various entity storage media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, while the invention has been described with respect to the above-described embodiments, it will be understood that the invention is not limited thereto but may be embodied with various modifications and changes.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A code classification information extraction method is characterized by comprising the following steps:
judging whether the current time reaches a preset time node or not;
if the current time reaches a preset time node, acquiring a code submission log of a code version management tool in a preset statistical time period, wherein the end point of the statistical time period is the preset time node, and the starting point of the statistical time period is the time starting point of a preset duration before the preset time node;
determining code classification information according to the code submission log, wherein the code submission log comprises the code classification information;
writing the code classification information into a preset recording file;
and sending the record file to a preset auditing terminal.
2. The code classification information extraction method according to claim 1, characterized by further comprising:
and if a log screening request sent by an auditing terminal is received, screening a code submission log meeting the log screening request from the code submission logs of the code version management tool according to the log screening request.
3. The method of claim 2, wherein the log screening request includes a screening period, and the screening, according to the log screening request, a code submission log that satisfies the log screening request from code submission logs of the code version management tool includes:
and screening a feature code submission log from the code submission log of the code version management tool, wherein the submission time of the feature code submission log is within the screening time period.
4. The method of claim 1, wherein the code submission log includes a code, a full path, a submission date, and a submitter, and wherein determining code classification information from the code submission log comprises:
extracting codes, full paths, submission dates and submitters in the code submission logs;
and determining the module to which the code belongs according to the full path.
5. The method according to claim 4, wherein the determining the module to which the code belongs according to the full path includes:
and determining the module to which the code belongs according to the full path and a preset full path-module corresponding relation.
6. The method for extracting code classification information according to claim 5, wherein the writing the code classification information into a preset recording file includes:
and writing the codes, the submission date, the submitter and the modules to which the codes belong in the code submission log into a preset recording file.
7. A code classification information extraction apparatus characterized by comprising:
the judging unit is used for judging whether the current time reaches a preset time node or not;
the device comprises a first obtaining unit, a second obtaining unit and a third obtaining unit, wherein the first obtaining unit is used for obtaining a code submission log of a code version management tool in a preset counting time period if the current time reaches a preset time node, the end point of the counting time period is the preset time node, and the starting point of the counting time period is the time starting point of a preset duration before the preset time node;
the first determining unit is used for determining code classification information according to the code submitting log, and the code submitting log comprises the code classification information;
the recording unit is used for writing the code classification information into a preset recording file;
and the sending unit is used for sending the record file to a preset auditing terminal.
8. The code classification information extraction device according to claim 7, characterized by further comprising:
and the first screening unit is used for screening out a code submitting log meeting a log screening request from the code submitting logs of the code version management tool according to the log screening request if the log screening request sent by the auditing terminal is received.
9. A computer arrangement, characterized in that the computer arrangement comprises a memory having stored thereon a computer program and a processor implementing the method according to any of claims 1-6 when executing the computer program.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when being executed by a processor, is adapted to carry out the method according to any one of claims 1-6.
CN202010713142.8A 2020-07-22 2020-07-22 Code classification information extraction method and device, computer equipment and storage medium Pending CN111782264A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010713142.8A CN111782264A (en) 2020-07-22 2020-07-22 Code classification information extraction method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010713142.8A CN111782264A (en) 2020-07-22 2020-07-22 Code classification information extraction method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111782264A true CN111782264A (en) 2020-10-16

Family

ID=72763814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010713142.8A Pending CN111782264A (en) 2020-07-22 2020-07-22 Code classification information extraction method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111782264A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113407225A (en) * 2021-06-23 2021-09-17 未鲲(上海)科技服务有限公司 Code list generation method and device, computer equipment and storage medium
CN113553052A (en) * 2021-06-09 2021-10-26 麒麟软件有限公司 Method for automatically recognizing security-related code submissions using an Attention-coded representation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113553052A (en) * 2021-06-09 2021-10-26 麒麟软件有限公司 Method for automatically recognizing security-related code submissions using an Attention-coded representation
CN113407225A (en) * 2021-06-23 2021-09-17 未鲲(上海)科技服务有限公司 Code list generation method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109240886B (en) Exception handling method, exception handling device, computer equipment and storage medium
CN106980573B (en) Method, device and system for constructing test case request object
CN107798047B (en) Repeated work order detection method, device, server and medium
CN111782264A (en) Code classification information extraction method and device, computer equipment and storage medium
CN110471945B (en) Active data processing method, system, computer equipment and storage medium
JP6756379B2 (en) Log analysis methods, systems and programs
CN113190401B (en) Abnormality monitoring method for fast game, electronic device, mobile terminal and storage medium
US10657028B2 (en) Method for replicating production behaviours in a development environment
CN111694815A (en) Database anomaly detection method and device
CN112328499A (en) Test data generation method, device, equipment and medium
CN109284331B (en) Certificate making information acquisition method based on service data resources, terminal equipment and medium
JPWO2018066661A1 (en) Log analysis method, system and recording medium
CN111199146A (en) Test report generation method and device, computer equipment and storage medium
CN110046086B (en) Expected data generation method and device for test and electronic equipment
CN111966339B (en) Buried point parameter input method and device, computer equipment and storage medium
CN110795308A (en) Server inspection method, device, equipment and storage medium
CN106569731B (en) Limit storage method, device and equipment
CN115455059A (en) Method, device and related medium for analyzing user behavior based on underlying data
CN114942905A (en) Migration data verification method, device, equipment and storage medium
CN114416581A (en) Method, device and equipment for determining test failure reason
CN114090673A (en) Data processing method, equipment and storage medium for multiple data sources
CN109635033B (en) Method for processing million-level stock data, collecting logs and importing logs into database
CN112817952A (en) Data quality evaluation method and system
CN116303627B (en) Query method and device for semiconductor test data, electronic equipment and storage medium
CN116661758B (en) Method, device, electronic equipment and medium for optimizing log framework configuration

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination