Code operation and maintenance party determination method and device, equipment and readable storage medium

By performing style identification and analysis on the target code segment, combined with the existing code style set and inheritance identification, the target operation and maintenance party is selected, which solves the problem of low efficiency and accuracy in determining the code operation and maintenance party in the existing technology, and achieves a more efficient and accurate operation and maintenance party identification.

CN118567700APending Publication Date: 2024-08-30CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410706439.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The existing code submission record method is insufficient in efficiency and accuracy when determining the code operation and maintenance party. Especially in vehicle software development, due to the large number of code submission records, the efficiency and accuracy of the operation and maintenance party determination are low.

Method used

By identifying the style of the target code segment, the target code style set is generated, and combined with the existing code style set and inheritance identification of each code operation and maintenance party, the target operation and maintenance party is selected from each operation and maintenance party, and the style overlap number and matching are used value to determine the most likely operation and maintenance method.

Benefits of technology

The efficiency and accuracy of the code operation and maintenance party's determination are improved. By introducing inheritance identification and code style analysis, the accuracy and efficiency of the operation and maintenance party's determination are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567700A
    Figure CN118567700A
Patent Text Reader

Abstract

The invention relates to a code operation and maintenance party determination method and device, equipment and a readable storage medium. The method comprises the steps that style recognition is conducted on a target code segment, a target code style set corresponding to the target code segment is obtained, and a target operation and maintenance party corresponding to the target code segment is selected from all code operation and maintenance parties according to the target code style set, existing code style sets of all the code operation and maintenance parties and the inclusion situation of the target code segment on inheritance identification. By adopting the method, the determination efficiency and accuracy of the code operation and maintenance party can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment and readable storage medium for determining a code operation and maintenance party. Background Art

[0002] With the continuous development of vehicle-mounted software, in order to ensure the reliability of vehicle-mounted software operation, the operation and maintenance party that writes the vehicle-mounted software needs to perform regular maintenance on the software. Since the writing of vehicle-mounted software requires the collaboration of multiple operation and maintenance parties, the operation and maintenance party corresponding to each part of the software code can be queried through the code submission records associated with the vehicle-mounted software.

[0003] However, since there are a large number of code submission records for software codes, using the existing method of determining the operation and maintenance party corresponding to the code through the code submission records will reduce the efficiency and accuracy of determining the code operation and maintenance party. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device, equipment and readable storage medium for determining a code operation and maintenance party in response to the above technical problems, which can improve the efficiency and accuracy of determining the code operation and maintenance party.

[0005] In a first aspect, the present application provides a method for determining a code operation and maintenance party, comprising:

[0006] Performing style recognition on the target code segment to obtain a target code style set corresponding to the target code segment;

[0007] According to the target code style set, the existing code style sets of each code operation and maintenance party, and the inclusion of the inheritance identifier by the target code segment, a target operation and maintenance party corresponding to the target code segment is selected from each code operation and maintenance party.

[0008] In one embodiment, performing style recognition on a target code segment to obtain a target code style set corresponding to the target code segment includes:

[0009] The target code segment is scanned line by line to obtain the number of codes in each line of code in the target code segment and the writing information of each line of code segment under preset dimensions; wherein the preset dimensions include at least one of a comment dimension, a naming dimension, a variable declaration dimension, a function writing dimension and a logic use dimension; according to the number of codes in each line of code in the target code segment and the writing information of each line of code under the preset dimensions, the target code segment is style identified to obtain a target code style set corresponding to the target code segment.

[0010] In one embodiment, selecting a target operation and maintenance party corresponding to the target code segment from the code operation and maintenance parties according to the target code style set, the existing code style sets of the code operation and maintenance parties, and the inclusion of the inheritance identifier by the target code segment includes:

[0011] When the target code segment contains an inheritance identifier, the target operation and maintenance party corresponding to the target code is selected from various code operation and maintenance parties based on the code inheritance relationship corresponding to the inheritance identifier; when the target code segment does not contain an inheritance identifier, the target operation and maintenance party corresponding to the target code segment is selected from various code operation and maintenance parties based on the target code style set and the existing code style sets of various code operation and maintenance parties.

[0012] In one embodiment, selecting a target operation and maintenance party corresponding to the target code segment from each code operation and maintenance party according to the target code style set and the existing code style sets of each code operation and maintenance party includes:

[0013] According to a preset code style list, a first code style subset is extracted from the target code style set; the amount of style overlap between the existing code style set of each code operation and maintenance party and the first code style subset is determined; according to the amount of style overlap between the existing code style set of each code operation and maintenance party and the first code style subset, a target operation and maintenance party corresponding to the target code segment is selected from each code operation and maintenance party.

[0014] In one embodiment, selecting a target operation and maintenance party corresponding to the target code segment from each code operation and maintenance party according to the amount of style overlap between the existing code style set of each code operation and maintenance party and the first code style subset includes:

[0015] The code operation and maintenance party corresponding to the largest number of style overlaps is taken as the first operation and maintenance party; when the number of first operation and maintenance parties is at least two, the first matching value between each first operation and maintenance party and the target code segment is determined according to the standard style score of the target code style in the first code style subset included in each first operation and maintenance party; according to the first matching value between each first operation and maintenance party and the target code segment, a target operation and maintenance party corresponding to the target code segment is selected from each first operation and maintenance party.

[0016] In one embodiment, according to the first matching value between each first operation and maintenance party and the target code segment, selecting a target operation and maintenance party corresponding to the target code segment from each first operation and maintenance party includes:

[0017] If there are at least two largest first matching values ​​among each first matching value, then the other target code styles in the target code style set except the first code style subset are taken as the second code style subset; the first operation and maintenance parties corresponding to the largest first matching value are all taken as the second operation and maintenance parties; based on the overlapping code styles between the existing code style set of each second operation and maintenance party and the second code style subset, the second matching value of each second operation and maintenance party and the target code segment is determined; based on the second matching value between each second operation and maintenance party and the target code segment, the target operation and maintenance party corresponding to the target code segment is selected from each second operation and maintenance party.

[0018] In one embodiment, determining a second matching value between each second operator and the target code segment according to the overlapping code styles between the existing code style set of each second operator and the second code style subset includes:

[0019] For each second operation and maintenance party, the sum of the importance ratios of the overlapping code styles corresponding to the second operation and maintenance party in the existing code style set of the second operation and maintenance party is used as the second matching value between the second operation and maintenance party and the target code segment.

[0020] In one embodiment, selecting a target operation and maintenance party corresponding to the target code segment from each second operation and maintenance party according to the second matching value between each second operation and maintenance party and the target code segment includes:

[0021] The second operation and maintenance party corresponding to the largest second matching value among the second operation and maintenance parties is used as the target operation and maintenance party of the target code segment.

[0022] In one embodiment, according to the first matching value between each first operation and maintenance party and the target code segment, selecting a target operation and maintenance party corresponding to the target code from each first operation and maintenance party includes:

[0023] If there is a maximum first matching value among the first matching values, the first operation and maintenance party corresponding to the maximum first matching value among the first operation and maintenance parties is used as the target operation and maintenance party of the target code.

[0024] In a second aspect, the present application further provides a device for determining a code operation and maintenance party, including:

[0025] A style recognition module is used to perform style recognition on a target code segment to obtain a target code style set corresponding to the target code segment;

[0026] The operation and maintenance party determination module is used to select a target operation and maintenance party corresponding to the target code segment from various code operation and maintenance parties according to the target code style set, the existing code style sets of various code operation and maintenance parties, and the inclusion of inheritance identifiers by the target code segment.

[0027] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0028] Performing style recognition on the target code segment to obtain a target code style set corresponding to the target code segment;

[0029] According to the target code style set, the existing code style sets of each code operation and maintenance party, and the inclusion of the inheritance identifier by the target code segment, a target operation and maintenance party corresponding to the target code segment is selected from each code operation and maintenance party.

[0030] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0031] Performing style recognition on the target code segment to obtain a target code style set corresponding to the target code segment;

[0032] According to the target code style set, the existing code style sets of each code operation and maintenance party, and the inclusion of the inheritance identifier by the target code segment, a target operation and maintenance party corresponding to the target code segment is selected from each code operation and maintenance party.

[0033] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0034] Performing style recognition on the target code segment to obtain a target code style set corresponding to the target code segment;

[0035] According to the target code style set, the existing code style sets of each code operation and maintenance party, and the inclusion of the inheritance identifier by the target code segment, a target operation and maintenance party corresponding to the target code segment is selected from each code operation and maintenance party.

[0036] The above-mentioned method, device, equipment and readable storage medium for determining the code operation and maintenance party obtain the target code style set corresponding to the target code segment by performing style recognition on the target code segment, and then select the target operation and maintenance party corresponding to the target code segment from each code operation and maintenance party according to the target code style set, the existing code style sets of each code operation and maintenance party, and the inclusion of inheritance identifiers in the target code segment. Compared with the related art, in which the operation and maintenance party corresponding to the code segment is determined by querying the code submission records one by one, the above-mentioned method, on the one hand, introduces inheritance identifiers and determines the target operation and maintenance party through the logic of code inheritance, which can improve the efficiency of determining the target operation and maintenance party; on the other hand, by analyzing the code style of the target code segment, and combining the target code style set obtained by the analysis, and fully analyzing the existing code style sets of each code operation and maintenance party, the target operation and maintenance party is determined, which can ensure the accuracy of the target operation and maintenance party. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 An application environment diagram of a method for determining a code operation and maintenance party in an embodiment;

[0039] Figure 2A A flowchart of a method for determining a code operation and maintenance party in an embodiment;

[0040] Figure 2B A diagram showing the corresponding relationship between the code operation and maintenance party and the code in an embodiment;

[0041] Figure 3 A schematic diagram of a process for determining a target code style set in one embodiment;

[0042] Figure 4A A submission record of a code file in an embodiment;

[0043] Figure 4B A diagram showing the correspondence relationship of code files in an embodiment;

[0044] Figure 4C A schematic diagram of a code inheritance relationship in an embodiment;

[0045] Figure 5 A schematic diagram of a process for determining a target operation and maintenance party in an embodiment;

[0046] Figure 6 A schematic diagram of a process for determining a target operation and maintenance party in another embodiment;

[0047] Figure 7 A schematic diagram of a process for determining a target operation and maintenance party in yet another embodiment;

[0048] Figure 8 A flowchart of a method for determining a code operation and maintenance party in another embodiment;

[0049] Fig. 9 It is a structural block diagram of a device for determining a code operation and maintenance party in an embodiment;

[0050] Fig.10 It is a structural block diagram of a device for determining a code operation and maintenance party in another embodiment;

[0051] Fig.11 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] The code operation and maintenance party determination method provided in the embodiment of the present application can be applied to the following examples: Figure 1In the application environment shown. Among them, the terminal 102 communicates with the operation and maintenance party identification device 104 through the network. The data storage system can store the data that the operation and maintenance party identification device 104 needs to process. For example, the operation and maintenance party identification device 104 performs style recognition on the target code segment to obtain the target code style set corresponding to the target code segment; then, according to the target code style set, the existing code style sets of each code operator, and the inclusion of the inheritance identifier in the target code segment, the target operator corresponding to the target code segment is selected from each code operator, and the target operator is fed back to the terminal 102 held by the target operator. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablet computers, Internet of Things devices, etc. The operation and maintenance party identification device 104 can be a server, or a terminal with powerful computing capabilities.

[0054] With the continuous development of vehicle software, in order to ensure the reliability of vehicle software operation and the efficiency of vehicle software development, it is generally necessary to use multiple operators to develop and operate the same vehicle software at the same time. Therefore, in order to locate the operator corresponding to the target code segment in the vehicle software, the operator corresponding to the target code segment can be found from the code submission records corresponding to each operator.

[0055] However, due to the large number of code submission records, the existing method of querying the operation and maintenance party corresponding to the target code segment one by one based on the code submission records will reduce the efficiency and accuracy of determining the code operation and maintenance party.

[0056] Based on this, in an exemplary embodiment, a method for determining a code operation and maintenance party is provided, and the method is applied to Figure 1 The following is an example of the operation and maintenance party identifying the device. Figure 2A As shown, the specific steps include:

[0057] S201, performing style recognition on a target code segment to obtain a target code style set corresponding to the target code segment.

[0058] Among them, the target code segment refers to the code segment that needs to identify the corresponding operation and maintenance party; the target code style is used to reflect the code writing style of the target code segment; and the target code style set is a collection of target code styles contained in the target code segment.

[0059] Optionally, the terminal can be used to submit the target code segment to the operation and maintenance party's identification device; then, after the operation and maintenance party's identification device obtains the target code segment, the target code segment can be scanned line by line by opening a thread and asynchronous background execution to identify the target code style set corresponding to the target code segment.

[0060] It is understandable that in order to improve the recognition efficiency of the target code segment, the target code segment can be segmented in advance, and then the style recognition is performed based on the segmentation results. The smallest segmentation unit of the code segment can be: file, class, line, function and member variable. These segmentation units are divided from large to small according to performance and business requirements.

[0061] For example, for different business modules, since the maintenance dimensions of each business module are different, the segmentation dimensions can be different. For example, the login module is developed by three operation and maintenance personnel, each of whom is responsible for different functions, so the segmentation unit can be set as a class; the vehicle control module is developed by five operation and maintenance personnel, and there is an intersection between their businesses, so the segmentation unit can be set as a function or member variable.

[0062] S202, selecting a target operation and maintenance party corresponding to the target code segment from among the code operation and maintenance parties according to the target code style set, the existing code style sets of the code operation and maintenance parties, and the inclusion of the inheritance identifier by the target code segment.

[0063] Among them, the code operation and maintenance party refers to the operation and maintenance party with code operation and maintenance responsibilities; the existing code style set is used to represent the collection of common writing styles used by the code operation and maintenance party when writing code; the inheritance identifier refers to the identification information used to mark whether there is an inheritance record for the target code segment; the target operation and maintenance party refers to the operation and maintenance party that assists in maintaining the target code segment.

[0064] It is understandable that there will inevitably be personnel changes in the operation and maintenance team. For a certain code segment, if the current operation and maintenance personnel of the code segment leaves the operation and maintenance team, in order to ensure the reliability of the operation of the code segment, it is necessary to reallocate an operation and maintenance personnel to the code segment. At this time, an inheritance identifier can be assigned to the code segment to map the new operation and maintenance personnel corresponding to the code segment.

[0065] In the process of coding, for each code operator, the existing code style set of the code operator can be determined based on the code operator's historical code writing records, questionnaires, self-tests, evaluations by others, and overall evaluations by the operation and maintenance department. The corresponding relationships between each code operator and the existing code style set, as well as between each code segment, are as follows: Figure 2B shown.

[0066] Optionally, it is possible to determine whether the target code segment has undergone code inheritance operations based on the inclusion of inheritance identifiers in the target code segment; then, based on the code inheritance result of the target code segment and the degree of match between the target code style set and the existing code style sets of each code operation and maintenance party, select a target operation and maintenance party corresponding to the target code segment from each code operation and maintenance party.

[0067] It is understandable that in order to standardize the code writing operation, comments corresponding to the code file are usually generated at the front of the code file. Therefore, when the operator identification device reads the comment information in the target code segment, the operator in the comment information can be used as a reference value, and after determining the target operator corresponding to the target code segment, the target operator is compared with the reference value to determine whether the target operator is the real operator corresponding to the target code segment. The comment information may include but is not limited to the file name, operator name, and creation date, etc.; the code file may contain multiple code segments.

[0068] Alternatively, in order to ensure the accuracy of the target operation and maintenance party, the target code segment can be sent to the target operation and maintenance party, which will determine whether the operation and maintenance party identification result at this time is correct. If so, the target code segment will be marked so that the next time the operation and maintenance party of the target code segment is determined, it can be directly fed back to the target operation and maintenance party; if not, the target code segment and the target operation and maintenance party can be sent to the exception analysis end, which will analyze the cause of the abnormal result based on the actual operation and maintenance party corresponding to the target code segment, and then optimize the operation and maintenance party identification equipment based on the cause of the abnormal result.

[0069] In the above-mentioned method for determining the code operator, the target code style set corresponding to the target code segment is obtained by performing style recognition on the target code segment, and then the target operator corresponding to the target code segment is selected from each code operator according to the target code style set, the existing code style sets of each code operator, and the inclusion of inheritance identifiers in the target code segment. Compared with the related art, in which the operator corresponding to the code segment is determined by querying the code submission records one by one, the above-mentioned method, on the one hand, introduces inheritance identifiers and determines the target operator through the logic of code inheritance, which can improve the efficiency of determining the target operator; on the other hand, by analyzing the code style of the target code segment, and combining the target code style set obtained by the analysis with the existing code style sets of each code operator to fully analyze, the target operator is determined, which can ensure the accuracy of the target operator.

[0070] In order to ensure the accuracy of the target code style set, based on the above embodiment, in this embodiment, an optional method for determining the target code style set is provided, such as Figure 3 As shown, the specific steps include:

[0071] S301, scanning the target code segment line by line to obtain the code quantity of each line of code in the target code segment and the writing information of each line of code segment under a preset dimension.

[0072] The preset dimensions include at least one of the annotation dimension, the naming dimension, the variable declaration dimension, the function writing dimension and the logic use dimension; the writing information refers to the relevant information about the code writing under each preset dimension.

[0073] Exemplarily, the comment dimension may include the comment quantity dimension, the comment symbol dimension, and the comment position dimension. In the comment quantity dimension, the written information may be the number of lines of the statistical comment quantity; in the comment symbol dimension, the written information may be the type of the statistical comment symbol; in the comment position dimension, the written information may be the relative position of the statistical comment in the code segment.

[0074] The naming dimension can include the constant naming dimension and the function naming dimension. In the constant naming dimension, the information can be written to count whether the constant is encapsulated, for example, whether the constant is not encapsulated, or the constant is encapsulated into a local variable / global variable before use; in the function naming dimension, the function writing method can be counted, for example, whether it is the common camel case writing method, or the language corresponding to the function name, such as Pinyin or English, or whether the function name is abbreviated.

[0075] The variable declaration dimension may include a local variable declaration dimension. In the local variable declaration dimension, the written information may be a count of the number of local variable declarations.

[0076] The function writing dimension may include the function row and column dimension and the function nesting dimension. In the function row and column dimension, the writing information may be the number of rows and columns occupied by the statistical function; in the function nesting dimension, the writing information may be the number of layers of the statistical function nesting.

[0077] The logic usage dimension may include a logic line break dimension. In the logic line break dimension, the written information may be a statistical line break method when using common code logic. For example, a line break before a loop logic or a line break before a judgment logic.

[0078] Optionally, after scanning the target code segment line by line, the code quantity of each line of code in the target code segment can be directly obtained; at the same time, after scanning the target code segment line by line, the writing information of each line of code segment under the preset dimension can be obtained based on the preset dimension.

[0079] S302, performing style recognition on the target code segment according to the number of codes in each line of code in the target code segment and the writing information of each line of code under a preset dimension, to obtain a target code style set corresponding to the target code segment.

[0080] Optionally, the line breaking style of the target code segment can be determined based on the number of codes in each line of code in the target code segment, for example, each code sentence is broken into one line, or multiple codes are broken into one line. Then, for each line of code, the style of the line of code can be identified based on the writing information of the line of code under preset dimensions, and then the target code style corresponding to the line of code can be determined.

[0081] Furthermore, statistics may be collected on the line breaking style of the target code segment and the target code style corresponding to each line of code, thereby obtaining a target code style set corresponding to the target code segment.

[0082] For example, by performing style recognition on the target code segment A, we can get "The first line (line number 115): The searched style is: the function name is long; it is written in camel case; and each word is a full name. The second line (line number 116): Constant naming - direct use. The third line (line number 117): Normal logic before line break. The fourth line (line number 118): No style. The fifth line (line number 119): No style. The sixth line (line number 120): No style. The seventh line (line number 121): No style. The eighth line (line number 12 2): Line break before normal logic. Line 9 (line number 123): Constant naming - global variables. Line 10 (line number 124): No style yet. Line 11 (line number 125): No style yet. Line 12 (line number 126): No style yet. Line 13 (line number 127): No style yet. ", at this time, the target code style set corresponding to the target code segment A is A1{long function name; camel case; full name of English word; constant naming - direct use; line break before normal logic; constant naming - global variables; each code sentence is wrapped}.

[0083] In this embodiment, the number of codes in each line of code obtained by scanning can reflect the line breaking habits of the target code segment to a certain extent. Subsequently, the target code style set is determined by combining the writing information and line breaking habits of each line of code segment under preset dimensions, which can ensure the comprehensiveness and accuracy of the target code style set.

[0084] In order to ensure the accuracy of the determination of the target operation and maintenance party, on the basis of the above embodiments, in this embodiment, an optional method for determining the target operation and maintenance party is provided, specifically, when the target code segment contains an inheritance identifier, the target operation and maintenance party corresponding to the target code is selected from each code operation and maintenance party according to the code inheritance relationship corresponding to the inheritance identifier; when the target code segment does not contain an inheritance identifier, the target operation and maintenance party corresponding to the target code segment is selected from each code operation and maintenance party according to the target code style set and the existing code style sets of each code operation and maintenance party.

[0085] Among them, the code inheritance relationship refers to the operation and maintenance ownership of a code segment after the original operation and maintenance personnel of the code segment leave the operation and maintenance team.

[0086] It is understandable that in order to clarify the ownership of code operation and maintenance, the correspondence between code segments and operation and maintenance personnel can be pre-divided according to the code submission records in the recent period. For example, Figure 4A , Figure 4Ais the submission record of the code file. Each code segment in the code file has a corresponding submission record. The first code segment and the third code segment are both submitted by the operation and maintenance party M, so the first code segment and the third code segment need to be merged. The second code segment is submitted by the operation and maintenance party N, so the second code segment can have a separate correspondence. At this time, refer to Figure 4B , the corresponding relationship of the code files is: "Operation and maintenance party M-the first code segment and the third code segment; operation and maintenance party N-the second code segment".

[0087] Furthermore, when developer N leaves the operation and maintenance team, the original correspondence of the second code segment needs to be deleted, or the correspondence needs to be set invalid; then, refer to Figure 4C , the second code segment can be assigned to the operation and maintenance party M, that is, the second code segment is inherited by the operation and maintenance party M, and the subsequent operation and maintenance operations of the second code segment need to be handled by the operation and maintenance party M.

[0088] Based on this, when the target code segment contains an inheritance identifier, the inheritance identifier can be used as an index to retrieve from the code inheritance relationship record to determine the code inheritance relationship corresponding to the inheritance identifier; subsequently, the operation and maintenance party included in the code inheritance relationship can be used as the target operation and maintenance party corresponding to the target code.

[0089] When the target code segment does not include an inheritance identifier, a target operator corresponding to the target code segment may be selected from various code operators based on a match between the target code style set and existing code style sets of various code operators.

[0090] In this embodiment, when two different inheritance identifiers are included, the target operation and maintenance party is determined by different determination methods respectively, which can ensure the accuracy of the determination of the target operation and maintenance party.

[0091] In order to ensure the accuracy of the determination of the target operation and maintenance party, based on the above embodiment, in this embodiment, another optional method for determining the target operation and maintenance party is provided, such as Figure 5 As shown, the specific steps include:

[0092] S501 : extracting a first coding style subset from a target coding style set according to a preset coding style list.

[0093] The preset code style list is used to store the code style lists that are frequently used by each code operation and maintenance party; the first code style subset refers to the set of code styles in the target code style set that are repeated in the preset code style list.

[0094] Optionally, for each code operation and maintenance party, the total number of code style occurrences corresponding to the code operation and maintenance party and the number of times each code style appears can be determined based on all code segments associated with the code operation and maintenance party; then, the style proportion corresponding to each code style can be determined based on the total number of code style occurrences and the number of times each code style appears.

[0095] Furthermore, the style proportions of the code operation and maintenance party can be sorted according to the size relationship, and the code styles corresponding to the style proportions ranked in the front of the preset number can be filled into the preset code style list; or, the code styles with a style proportion greater than 50% can be filled into the preset code style list; or, the code styles can be customized and selected manually and filled into the preset code style list.

[0096] Optionally, after obtaining the preset code style list determined based on each code operation and maintenance party, the code styles included in the preset code style list may be extracted from the target code style set to generate a first code style subset.

[0097] It is understandable that in order to more quickly select the first code style subset during the style recognition process, each code style in the preset code style list may be colored. For example, if there are five code styles in the preset code style list, these five code styles need to be colored, and the relevant information of these five code styles (such as the corresponding operation and maintenance parties and code blocks) is stored separately.

[0098] S502: Determine the number of style overlaps between the existing code style set of each code operation and maintenance party and the first code style subset.

[0099] Among them, the number of style overlaps refers to the number of overlaps in code styles.

[0100] Yes, for each code maintenance party, the number of style overlaps between the existing code style set of the code maintenance party and the first code style subset can be counted. For example, the existing code style set is {a; c; d}, and the first code style subset is {a; b; c}, then the number of style overlaps is 2.

[0101] S503 , selecting a target operation and maintenance party corresponding to the target code segment from each code operation and maintenance party according to the number of style overlaps between the existing code style set of each code operation and maintenance party and the first code style subset.

[0102] Optionally, after determining the amount of style overlap between the existing code style set of each code operator and the first code style subset, the code operators may be screened based on the amount of style overlap, and then a target operator corresponding to the target code segment may be selected from the code operators.

[0103] For example, since the number of style overlaps can represent the similarity between the existing code style set and the target code segment to a certain extent, the code operation and maintenance party with the largest number of style overlaps can be directly used as the target operation and maintenance party.

[0104] In this embodiment, a first code style subset is introduced, and the accuracy of determining the target operation and maintenance party can be ensured by selecting the target operation and maintenance party corresponding to the target code segment from various code operation and maintenance parties according to the number of style overlaps determined based on the first code style subset.

[0105] In order to ensure the accuracy of the determination of the target operation and maintenance party, based on the above embodiment, in this embodiment, another optional method for determining the target operation and maintenance party is provided, such as Figure 6 As shown, the specific steps include:

[0106] S601: The code operation and maintenance party corresponding to the largest number of style overlaps is used as the first operation and maintenance party.

[0107] Among them, the first operation and maintenance party refers to the code operation and maintenance party with the largest number of style overlaps.

[0108] Optionally, the overlapping numbers of each style may be sorted by size, and the code operation and maintenance party corresponding to the largest overlapping number of styles ranked first is used as the first operation and maintenance party.

[0109] S602, when the number of first operation and maintenance parties is at least two, determine a first matching value between each first operation and maintenance party and the target code segment according to the standard style score of the target code style in the first code style subset included in each first operation and maintenance party.

[0110] Among them, the target code style refers to the code style included in the first code style subset; the standard style score refers to the standard score corresponding to the code style; the first matching value is used to characterize the degree of matching between the existing code style set associated with the first operation and maintenance party and the first code style subset corresponding to the target code segment.

[0111] It can be understood that in order to ensure the standardization of the first matching value, each code style in the preset code style list can be scored in advance, and the scoring result can be used as the standard style score corresponding to each code style, wherein the scoring method can be to uniformly score each code style based on the uniqueness of each code style under the overall code operation and maintenance dimension.

[0112] Optionally, when the number of first operation and maintenance parties is at least two, for each first operation and maintenance party, the standard style score of each target code style in the first code style subset included in the first operation and maintenance party can be determined; then the sum of the code style scores is taken as the first matching value corresponding to the first operation and maintenance party.

[0113] It can be understood that if there is only one first operation and maintenance party, it proves that there is a code operation and maintenance party whose existing code set overlaps with the target code segment much more than other code operation and maintenance parties. At this time, the first operation and maintenance party can be directly used as the target operation and maintenance party.

[0114] S603: Select a target operation and maintenance party corresponding to the target code segment from each first operation and maintenance party according to a first matching value between each first operation and maintenance party and the target code segment.

[0115] Optionally, after determining the first matching value between each first operation and maintenance party and the target code segment, the target operation and maintenance party corresponding to the target code segment can be selected from each first operation and maintenance party based on the size relationship between each first matching value. Exemplarily, if there is a maximum first matching value among each first matching value, the first operation and maintenance party corresponding to the maximum first matching value among each first operation and maintenance party is used as the target operation and maintenance party of the target code.

[0116] Optionally, if there is only one maximum first matching value among the first matching values, it proves that there is a code operation and maintenance party among the first operation and maintenance parties that has the highest degree of match with the target code segment, that is, the first operation and maintenance party corresponding to the largest first matching value. Therefore, the first operation and maintenance party corresponding to the largest first matching value can be directly used as the target operation and maintenance party of the target code.

[0117] For example, the standard style scores of each target code style in the first code style subset included in the first operation and maintenance party E are 70 and 100 respectively, then the first matching value corresponding to the first operation and maintenance party E is 170; the standard style scores of each target code style in the first code style subset included in the first operation and maintenance party F are 40 and 45 respectively, then the first matching value corresponding to the first operation and maintenance party F is 85. At this time, it can be determined that the target operation and maintenance party is E.

[0118] In this embodiment, the first operation and maintenance party is introduced, and the first matching value between each first operation and maintenance party and the target code segment is determined respectively, and then the target operation and maintenance party is determined based on each first matching value, so that the accuracy of the target operation and maintenance party can be guaranteed.

[0119] In order to ensure the accuracy of the determination of the target operation and maintenance party, based on the above embodiment, in this embodiment, another optional method for determining the target operation and maintenance party is provided, such as Figure 7 As shown, the specific steps include:

[0120] S701: If there are at least two largest first matching values ​​among the first matching values, other target code styles in the target code style set except the first code style subset are used as a second code style subset.

[0121] Among them, other target code styles refer to the remaining code styles in the target code style set except the first code style subset; the second code style subset refers to a set used to store other target code styles.

[0122] Optionally, if there are at least two largest first matching values ​​among the first matching values, it is necessary to select the target operation and maintenance party in combination with other target code styles in the target code style set except the first code style subset. Therefore, each other target code style can be used as the second code style subset.

[0123] S702: The first operation and maintenance parties corresponding to the largest first matching values ​​are all used as second operation and maintenance parties.

[0124] The second operation and maintenance party refers to the code operation and maintenance party corresponding to the maximum first matching value.

[0125] Optionally, since there are at least two largest first matching values ​​among the first matching values, in order to further screen out the target maintenance party, the first operation and maintenance party corresponding to the largest first matching value may be screened out, and the screened first operation and maintenance party may be used as the second operation and maintenance party.

[0126] S703: Determine a second matching value between each second operation and maintenance party and the target code segment according to the overlapping code styles between the existing code style set of each second operation and maintenance party and the second code style subset.

[0127] The overlapping code style refers to the overlapping code style between the existing code style set and the second code style subset; the second matching value is used to represent the degree of matching between the existing code style set associated with the second operation and maintenance party and the second code style subset corresponding to the target code segment.

[0128] Optionally, after the second operation and maintenance party is determined, in order to accurately determine the overlap between the existing code style set of the second operation and maintenance party and the second code style subset, for each second operation and maintenance party, the existing code style set of the second operation and maintenance party can be compared with the second code style subset, and the overlapping code style can be used as the overlapping code style corresponding to the second operation and maintenance party.

[0129] Furthermore, the second matching value between the second operation and maintenance party and the target code segment may be determined according to the importance of each overlapping code style corresponding to the second operation and maintenance party in the existing code style set of the second operation and maintenance party.

[0130] Exemplarily, for each second operation and maintenance party, the sum of the importance ratios of the overlapping code styles corresponding to the second operation and maintenance party in the existing code style set of the second operation and maintenance party is used as the second matching value between the second operation and maintenance party and the target code segment.

[0131] Optionally, referring to the above step S501, the style proportion corresponding to each code style in the existing code style set (ie, the ratio of the number of occurrences of each code style to the total number of occurrences of the code style) may be used as the importance proportion of the code.

[0132] Furthermore, for each second operation and maintenance party, after determining the importance ratios of the overlapping code styles corresponding to the second operation and maintenance party, the sum of the importance ratios may be used as the second matching value between the second operation and maintenance party and the target code segment.

[0133] For example, the overlapping code styles corresponding to the second operator G and the second operator H are both g and h, where the importance of g in the second operator G is 30%, so the second matching value of g in the second operator G is 30, and the importance of h in the second operator G is 10%, so the second matching value of h in the second operator G is 10. At this time, the second matching value of the second operator G is 40.

[0134] Furthermore, the importance of g in the second operation and maintenance party H is 10%, so the second matching value of g in the second operation and maintenance party H is 10, and the importance of h in the second operation and maintenance party H is 5%, so the second matching value of h in the second operation and maintenance party H is 5. At this time, the second matching value of the second operation and maintenance party G is 15.

[0135] S704: Select a target operation and maintenance party corresponding to the target code segment from each second operation and maintenance party according to the second matching value between each second operation and maintenance party and the target code segment.

[0136] Optionally, after determining the second matching value between each second operation and maintenance party and the target code segment, the target operation and maintenance party corresponding to the target code segment can be selected from each second operation and maintenance party based on the magnitude relationship of each second matching value. Exemplarily, the second operation and maintenance party corresponding to the largest second matching value among each second operation and maintenance party is selected as the target operation and maintenance party of the target code segment.

[0137] It can be understood that since the second matching value can reflect the overlap between the overlapping code style and the existing code style set to a certain extent, and the greater the overlap between the overlapping code style and the existing code style set, the greater the possibility that the second operation and maintenance party corresponding to the existing code style set will write the target code segment, therefore, the second operation and maintenance party corresponding to the largest second matching value can be directly used as the target operation and maintenance party of the target code segment.

[0138] In this embodiment, a second matching value is introduced. By selecting a target operation and maintenance party corresponding to the target code segment from each second operation and maintenance party based on the second matching value between each second operation and maintenance party and the target code segment, the accuracy of determining the target operation and maintenance party can be ensured.

[0139] On the basis of the above embodiments, in this embodiment, a method for arranging a device pipeline is provided, specifically, first declaring a parent class or interface with basic functions to run the program execution function. For example, the interface can be named Node to run the execFunc() function; then, steps such as scanning the target code segment and scoring each code operation and maintenance party based on the target code style set are declared as a subclass or implementation class of Node, and a specific execFunc() function is generated according to the above execution logic.

[0140] Furthermore, between each step, the output parameter of the previous step can be used as the input parameter of the current step. Each parameter is also a parent class or interface, which can be named Param, and contains the data structure specific to each step.

[0141] Optionally, the execution order between nodes can be dynamically configured based on the configuration file or the integrated manager according to the feedback results or business needs. In addition, when the implementation of a specific node is changed, a new specific step object can be declared and inherited from Node. Therefore, each specific node can retain its own historical information after modification.

[0142] In this embodiment, a method for arranging equipment assembly lines is provided, which can ensure that the operation and maintenance party can identify the reliability of equipment operation.

[0143] Based on the above embodiments, in this embodiment, a method for eliminating dangerous styles is provided. Specifically, the code styles can be graded in advance, for example, the styles can be divided into recommended code styles, good code styles, neutral code styles, bad code styles, and high-risk red warning code styles.

[0144] Subsequently, based on the style classification, each code style in the existing code style set of each code operation and maintenance party is checked. If an existing code style set contains bad styles or high-risk red warning styles, a style abnormality prompt (such as an email prompt, etc.) is sent to the code operation and maintenance party corresponding to the existing code style set and the person in charge of the operation and maintenance team of the code operation and maintenance party through a third-party tool.

[0145] In this embodiment, by classifying the code styles into levels, it is possible to effectively monitor bad code styles and high-risk red warning code styles, thereby ensuring the reliability of code writing.

[0146] Figure 8 FIG. 2 is a flow chart of a method for determining a code operation and maintenance party in another embodiment. Based on the above embodiment, this embodiment provides an optional example of a method for determining a code operation and maintenance party. Figure 8 The specific implementation process is as follows:

[0147] S801, scanning the target code segment line by line to obtain the code quantity of each line of code in the target code segment, the writing information of each line of code segment under a preset dimension, and the inclusion of inheritance identifiers in the target code segment.

[0148] The preset dimension includes at least one of an annotation dimension, a naming dimension, a variable declaration dimension, a function writing dimension, and a logic use dimension.

[0149] S802, performing style recognition on the target code segment according to the number of codes in each line of code in the target code segment and the writing information of each line of code under a preset dimension, to obtain a target code style set corresponding to the target code segment.

[0150] S803, determine whether the target code segment contains an inheritance identifier, if so, execute S804; if not, execute S805.

[0151] S804: Select a target operation and maintenance party corresponding to the target code from various code operation and maintenance parties according to the code inheritance relationship corresponding to the inheritance identifier.

[0152] S805 , extracting a first coding style subset from the target coding style set according to a preset coding style list.

[0153] S806: Determine the number of style overlaps between the existing code style sets of each code operation and maintenance party and the first code style subset.

[0154] S807: The code operation and maintenance party corresponding to the largest number of style overlaps is used as the first operation and maintenance party.

[0155] S808, determine whether there is only one first operation and maintenance party, if so, execute S809; if not, execute S810.

[0156] S809: Set the first operation and maintenance party as the target operation and maintenance party.

[0157] S810: Determine a first matching value between each first operation and maintenance party and the target code segment according to a standard style score of a target code style in a first code style subset included in each first operation and maintenance party.

[0158] S811: When there are at least two largest first matching values ​​among the first matching values, other target code styles in the target code style set except the first code style subset are used as a second code style subset.

[0159] It can be understood that if there is a maximum first matching value among the first matching values, the first operation and maintenance party corresponding to the maximum first matching value among the first operation and maintenance parties will be used as the target operation and maintenance party of the target code.

[0160] S812: The first operation and maintenance parties corresponding to the largest first matching values ​​are all used as second operation and maintenance parties.

[0161] S813: Determine a second matching value between each second operation and maintenance party and the target code segment according to the overlapping code styles between the existing code style set of each second operation and maintenance party and the second code style subset.

[0162] Optionally, for each second operation and maintenance party, the sum of the importance ratios of the overlapping code styles corresponding to the second operation and maintenance party in the existing code style set of the second operation and maintenance party is used as the second matching value between the second operation and maintenance party and the target code segment.

[0163] S814: Use the second operation and maintenance party corresponding to the largest second matching value among the second operation and maintenance parties as the target operation and maintenance party of the target code segment.

[0164] The specific process of the above S801-S814 can be found in the description of the above method embodiment. The implementation principle and technical effect are similar and will not be repeated here.

[0165] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0166] Based on the same inventive concept, the embodiment of the present application also provides a device for determining a code operator and maintenance party for implementing the method for determining a code operator and maintenance party involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more code operator and maintenance party determination devices provided below can refer to the limitations of the method for determining a code operator and maintenance party above, and will not be repeated here.

[0167] In an exemplary embodiment, Fig. 9 As shown, a device 1 for determining a code operator is provided, comprising: a style recognition module 10 and an operator determination module 20, wherein:

[0168] A style recognition module 10 is used to perform style recognition on a target code segment to obtain a target code style set corresponding to the target code segment;

[0169] The operator determination module 20 is used to select a target operator corresponding to the target code segment from various code operators according to the target code style set, the existing code style sets of various code operators, and the inclusion of inheritance identifiers by the target code segment.

[0170] In an exemplary embodiment, the style identification module 10 has a function for:

[0171] The target code segment is scanned line by line to obtain the number of codes in each line of code in the target code segment and the writing information of each line of code segment under preset dimensions; wherein the preset dimensions include at least one of a comment dimension, a naming dimension, a variable declaration dimension, a function writing dimension and a logic use dimension; according to the number of codes in each line of code in the target code segment and the writing information of each line of code under the preset dimensions, the target code segment is style identified to obtain a target code style set corresponding to the target code segment.

[0172] In an exemplary embodiment, Fig.10 As shown, the operation and maintenance party determination module 20 includes:

[0173] The first determining unit 21 is used to select a target operation and maintenance party corresponding to the target code from various code operation and maintenance parties according to the code inheritance relationship corresponding to the inheritance identifier when the target code segment includes the inheritance identifier;

[0174] The second determining unit 22 is used to select a target operation and maintenance party corresponding to the target code segment from various code operation and maintenance parties according to the target code style set and the existing code style sets of various code operation and maintenance parties when the target code segment does not contain the inheritance identifier.

[0175] In an exemplary embodiment, the second determining unit 22 includes:

[0176] A first subunit is used to extract a first coding style subset from a target coding style set according to a preset coding style list;

[0177] The second subunit is used to determine the amount of style overlap between the existing code style set of each code operation and maintenance party and the first code style subset;

[0178] The third subunit is used to select a target operation and maintenance party corresponding to the target code segment from each code operation and maintenance party according to the amount of style overlap between the existing code style set of each code operation and maintenance party and the first code style subset.

[0179] In an exemplary embodiment, the third subunit is specifically configured to:

[0180] The code operation and maintenance party corresponding to the largest number of style overlaps is taken as the first operation and maintenance party; when the number of first operation and maintenance parties is at least two, the first matching value between each first operation and maintenance party and the target code segment is determined according to the standard style score of the target code style in the first code style subset included in each first operation and maintenance party; according to the first matching value between each first operation and maintenance party and the target code segment, a target operation and maintenance party corresponding to the target code segment is selected from each first operation and maintenance party.

[0181] In an exemplary embodiment, the third subunit is further configured to:

[0182] If there are at least two largest first matching values ​​among each first matching value, then the other target code styles in the target code style set except the first code style subset are taken as the second code style subset; the first operation and maintenance parties corresponding to the largest first matching value are all taken as the second operation and maintenance parties; based on the overlapping code styles between the existing code style set of each second operation and maintenance party and the second code style subset, the second matching value of each second operation and maintenance party and the target code segment is determined; based on the second matching value between each second operation and maintenance party and the target code segment, the target operation and maintenance party corresponding to the target code segment is selected from each second operation and maintenance party.

[0183] In an exemplary embodiment, the third subunit is further configured to:

[0184] For each second operation and maintenance party, the sum of the importance ratios of the overlapping code styles corresponding to the second operation and maintenance party in the existing code style set of the second operation and maintenance party is used as the second matching value between the second operation and maintenance party and the target code segment.

[0185] In an exemplary embodiment, the third subunit is further configured to:

[0186] The second operation and maintenance party corresponding to the largest second matching value among the second operation and maintenance parties is used as the target operation and maintenance party of the target code segment.

[0187] In an exemplary embodiment, the third subunit is further configured to:

[0188] If there is a maximum first matching value among the first matching values, the first operation and maintenance party corresponding to the maximum first matching value among the first operation and maintenance parties is used as the target operation and maintenance party of the target code.

[0189] Each module in the above-mentioned code operation and maintenance party determination device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0190] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig.11 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the existing code style set data of each operation and maintenance party. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for determining a code operation and maintenance party is implemented.

[0191] Those skilled in the art will understand that Fig.11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0192] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0193] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0194] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0195] It should be noted that the user information (including but not limited to the information of each operation and maintenance party, etc.) and data (including but not limited to the existing code style sets of each operation and maintenance party, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0196] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0197] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0198] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for determining a code operation and maintenance party, characterized in that: The method comprises: Performing style recognition on the target code segment to obtain a target code style set corresponding to the target code segment; A target operation and maintenance party corresponding to the target code segment is selected from among the code operation and maintenance parties according to the target code style set, the existing code style sets of the code operation and maintenance parties, and the inclusion of the inheritance identifier by the target code segment.

2. The method according to claim 1, characterized in that: The performing style recognition on the target code segment to obtain a target code style set corresponding to the target code segment includes: Scanning the target code segment line by line to obtain the code quantity of each line of code in the target code segment and the writing information of each line of code segment under a preset dimension; wherein the preset dimension includes at least one of a comment dimension, a naming dimension, a variable declaration dimension, a function writing dimension, and a logic use dimension; According to the code quantity of each line of code in the target code segment and the writing information of each line of code under a preset dimension, the target code segment is style identified to obtain a target code style set corresponding to the target code segment.

3. The method according to claim 1, characterized in that The selecting a target operation and maintenance party corresponding to the target code segment from each code operation and maintenance party according to the target code style set, the existing code style sets of each code operation and maintenance party, and the inclusion of the inheritance identifier by the target code segment includes: In the case where the target code segment includes an inheritance identifier, selecting a target operation and maintenance party corresponding to the target code from various code operation and maintenance parties according to the code inheritance relationship corresponding to the inheritance identifier; In the case that the target code segment does not include an inheritance identifier, a target operation and maintenance party corresponding to the target code segment is selected from various code operation and maintenance parties according to the target code style set and existing code style sets of various code operation and maintenance parties.

4. The method according to claim 3, characterized in that The selecting a target operation and maintenance party corresponding to the target code segment from each code operation and maintenance party according to the target code style set and the existing code style sets of each code operation and maintenance party includes: Extracting a first coding style subset from the target coding style set according to a preset coding style list; Determine the amount of style overlap between the existing code style set of each code operation and maintenance party and the first code style subset; A target operation and maintenance party corresponding to the target code segment is selected from each code operation and maintenance party according to the amount of style overlap between the existing code style set of each code operation and maintenance party and the first code style subset.

5. The method according to claim 4, characterized in that The selecting, from each code operation and maintenance party, a target operation and maintenance party corresponding to the target code segment according to the number of style overlaps between the existing code style set of each code operation and maintenance party and the first code style subset, includes: The code operator corresponding to the largest number of style overlaps is selected as the first operator; When the number of the first operation and maintenance parties is at least two, determining a first matching value between each first operation and maintenance party and the target code segment according to a standard style score of a target code style in the first code style subset included in each first operation and maintenance party; According to the first matching value between each first operation and maintenance party and the target code segment, a target operation and maintenance party corresponding to the target code segment is selected from each first operation and maintenance party.

6. The method according to claim 5, characterized in that The step of selecting a target operation and maintenance party corresponding to the target code segment from each first operation and maintenance party according to a first matching value between each first operation and maintenance party and the target code segment includes: If there are at least two largest first matching values ​​among the first matching values, taking other target code styles in the target code style set except the first code style subset as the second code style subset; The first operation and maintenance parties corresponding to the largest first matching values ​​are all used as the second operation and maintenance parties; Determining a second matching value between each second operation and maintenance party and the target code segment according to overlapping code styles between an existing code style set of each second operation and maintenance party and the second code style subset; According to the second matching value between each second operation and maintenance party and the target code segment, a target operation and maintenance party corresponding to the target code segment is selected from each second operation and maintenance party.

7. The method according to claim 6, characterized in that The determining, according to the overlapping code styles between the existing code style set of each second operation and maintenance party and the second code style subset, a second matching value between each second operation and maintenance party and the target code segment includes: For each second operation and maintenance party, the sum of the importance ratios of the overlapping code styles corresponding to the second operation and maintenance party in the existing code style set of the second operation and maintenance party is used as the second matching value between the second operation and maintenance party and the target code segment.

8. The method according to claim 6, characterized in that The selecting, according to the second matching value between each second operation and maintenance party and the target code segment, a target operation and maintenance party corresponding to the target code segment from each second operation and maintenance party comprises: The second operation and maintenance party corresponding to the largest second matching value among the second operation and maintenance parties is used as the target operation and maintenance party of the target code segment.

9. The method according to claim 5, characterized in that The step of selecting a target operation and maintenance party corresponding to the target code from each first operation and maintenance party according to a first matching value between each first operation and maintenance party and the target code segment includes: If there is a maximum first matching value among the first matching values, the first operation and maintenance party corresponding to the maximum first matching value among the first operation and maintenance parties is used as the target operation and maintenance party of the target code.

10. A device for determining a code operation and maintenance party, characterized in that: The device comprises: A style recognition module is used to perform style recognition on a target code segment to obtain a target code style set corresponding to the target code segment; The operation and maintenance party determination module is used to select a target operation and maintenance party corresponding to the target code segment from various code operation and maintenance parties according to the target code style set, the existing code style sets of various code operation and maintenance parties, and the inclusion of inheritance identifiers by the target code segment.

11. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.