CN109918078A - Code relies on management method, device, computer equipment and storage medium - Google Patents

Code relies on management method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109918078A
CN109918078A CN201910062097.1A CN201910062097A CN109918078A CN 109918078 A CN109918078 A CN 109918078A CN 201910062097 A CN201910062097 A CN 201910062097A CN 109918078 A CN109918078 A CN 109918078A
Authority
CN
China
Prior art keywords
function
analyzed
code
version
interface
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
CN201910062097.1A
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.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN201910062097.1A priority Critical patent/CN109918078A/en
Publication of CN109918078A publication Critical patent/CN109918078A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This application involves technical field of data processing, more particularly to a kind of code relies on management method, device, computer equipment and storage medium, the described method includes: obtaining the code file for having function to be analyzed, function to be analyzed is extracted from code file, obtain argument of function to be analyzed, after independent variable is entered ginseng to function to be analyzed, according to the operation result of function to be analyzed, the type function of function to be analyzed is obtained;The case where obtaining the interface using function to be analyzed, calling the function to be analyzed according to interface carries out all functions to be analyzed under same version to cluster one function packet of formation after obtaining the version information of function to be analyzed;It obtains each of function packet function to be analyzed and is coated with operating condition when calling in the function, judged according to the correctness that operating condition treats the version information of analytic function.The application makes developer is clear from which version that system has relied on each function, brings great convenience to system maintenance, upgrading.

Description

Code relies on management method, device, computer equipment and storage medium
Technical field
Management method, device, computer is relied on this application involves technical field of data processing more particularly to a kind of code to set Standby and storage medium.
Background technique
Currently, the code how checked in a system has relied on which version in which module or library, has ratio in the industry More mature scheme, such as Maven POM configuration.Maven (is generally stored in by reading the item file of dependence item In pom.xml), find out their dependence etc..The definition in the POM of each project is only needed to directly rely on relationship, Maven Rest part can be automatically processed.
But code relies on management and only rests in module or library level, function level can not be recorded, for example one is The different editions of system may rely on the different functions under identical version module, which system version pair is existing method can not judge Which function answered.
Summary of the invention
In view of this, it is necessary to can not be mentioned aiming at the problem that function level is recorded in existing dependence management process Management method, device, computer equipment and storage medium are relied on for a kind of code.
A kind of code dependence management method, includes the following steps:
The code file for having function to be analyzed is obtained, the function to be analyzed is extracted from the code file, is obtained The argument of function to be analyzed is taken, after the independent variable is entered ginseng to the function to be analyzed, according to the letter to be analyzed Several operation results obtains the type function of the function to be analyzed;
The case where obtaining the interface using the function to be analyzed, calling the function to be analyzed according to the interface, obtains All functions to be analyzed under same version are subjected to cluster after to the version information of the function to be analyzed and form a letter Number packet;
It obtains function to be analyzed described in each of described function packet and is coated with operating condition when calling in the function, Judged according to correctness of the operating condition to the version information of the function to be analyzed.
In a wherein possible embodiment, it is described to obtain the code file for having function to be analyzed, from the code The function to be analyzed is extracted in file, obtains the argument of function to be analyzed, and the independent variable is entered into ginseng described in After function to be analyzed, according to the operation result of the function to be analyzed, the type function of the function to be analyzed is obtained, comprising:
Task of classification analysis is carried out to function is received, extraction belt needs the code file of analytic function;
The minimum paragraph for obtaining the function to be analyzed for including in the code file is extracted from the minimum paragraph The independent variable out;
The independent variable is entered ginseng by the existing operation result for obtaining the function to be analyzed for including in the code file Operation is carried out into all functions to be analyzed, is compared with the existing operation result of the function to be analyzed, if unanimously The type of the function to be analyzed is then determined according to the existing operation result, otherwise basis enters to join the operation knot that operation obtains Fruit determines the type of the function to be analyzed.
In a wherein possible embodiment, the interface obtained using the function to be analyzed connects according to described The case where mouthful calling the function to be analyzed, obtains all institutes under same version after the version information of the function to be analyzed It states function to be analyzed and carries out cluster one function packet of formation, comprising:
According to the type of the function to be analyzed, the function to be analyzed is assigned with signature identification, according to the feature mark Know, obtains the interface using the function to be analyzed;
Preset several timed tasks for extracting data are obtained, when the timed task is triggered, are extracted each described The data that interface calls;
All calculated results of the function to be analyzed are extracted from the data that the interface calls;
The identical calculated result of any two is classified as same version function, it will be all described to be analyzed under same version Function carries out being clustered into a function packet.
It is described to obtain function to be analyzed described in each of described function packet and exist in a wherein possible embodiment Operating condition when function coating is called, according to the operating condition to the correct of the version information of the function to be analyzed Property is judged, comprising:
The data information that each described interface calls is obtained, the function packet is extracted from the data information;
Each of described function packet under same version function to be analyzed is successively called to carry out operation, if described Function to be analyzed normally exports operation result, then obtains the correct feedback information of version of the function to be analyzed, if it is described to Analytic function throw exception error code is then carried out according to version information of the exception error code to the function to be analyzed The correct feedback information of version of the function to be analyzed is obtained after amendment.
Described to receive task of classification analysis is carried out to function in a wherein possible embodiment, extraction belt needs The code file of analytic function, comprising:
The carrying out classification analysis to function of the task is received, the Function feature code of the task is obtained;
All code files are traversed, mark band has the code file of the Function feature code;
It obtains preset code file and extracts threshold value, the generation in the code file with the Function feature code When the quantity of code is more than that the code file extracts threshold value, the code text with the Function feature code is extracted Part.
It is described to obtain the function to be analyzed for including in the code file in a wherein possible embodiment Minimum paragraph extracts the independent variable from the minimum paragraph, comprising:
Obtain initial paragraph from the code file, the initial paragraph contain at least one or it is more than one to Analytic function;
One desired length is set for the initial paragraph, according to the length of the initial paragraph and the desired length Comparison result obtains the weight threshold of the minimum paragraph, the weight threshold=(K/F)/G, wherein comparison result F=is (just Beginning paragraph length-redundancy value)/desired length, G is the adjusting thresholds factor and G is the number greater than 1, and K is attribute weight density;
As the comparison result F=1, the minimum paragraph is obtained, the bracket in the minimum paragraph is inquired, extracts Content in the bracket is to get arriving the independent variable.
In a wherein possible embodiment, the data information for obtaining each described interface and calling, from described The function packet is extracted in data information, comprising:
The ID mark for obtaining each interface, identifies according to the ID, determines the corresponding function packet of the interface;
Verifying function version request information is obtained, extracts start context from the verifying function version request information;
According to the start context, the function with the start context is extracted from the data information of the interface Packet, wherein the start context that the function to be analyzed has is that system assigns automatically in function upgrading.
A kind of code dependence managing device, including following module:
Type function obtains module, is set as obtaining the code file for having function to be analyzed, from the code file The function to be analyzed is extracted, the argument of function to be analyzed is obtained, the independent variable is entered to join to described to be analyzed After function, according to the operation result of the function to be analyzed, the type function of the function to be analyzed is obtained;
Function call analysis module is set as obtaining the interface using the function to be analyzed, be called according to the interface The case where function to be analyzed, obtain after the version information of the function to be analyzed will under same version it is all it is described to point Analysis function carries out cluster and forms a function packet;
Function version determining module is set as obtaining function to be analyzed described in each of described function packet in the letter Operating condition when number coating is called is carried out according to correctness of the operating condition to the version information of the function to be analyzed Judgement.
A kind of computer equipment, including memory and processor are stored with computer-readable instruction in the memory, institute When stating computer-readable instruction and being executed by the processor, so that the processor executes the step that above-mentioned code relies on management method Suddenly.
A kind of storage medium being stored with computer-readable instruction, the computer-readable instruction are handled by one or more When device executes, so that one or more processors execute the step of above-mentioned code relies on management method.
Above-mentioned code relies on management method, device, computer equipment and storage medium, has function to be analyzed by obtaining Code file, extract the function to be analyzed from the code file, obtain the argument of function to be analyzed, will After the independent variable enters ginseng to the function to be analyzed, according to the operation result of the function to be analyzed, obtain described to be analyzed The type function of function;The interface using the function to be analyzed is obtained, the function to be analyzed is called according to the interface Situation obtains that all functions to be analyzed under same version are carried out cluster shape after the version information of the function to be analyzed At a function packet;It obtains function to be analyzed described in each of described function packet and is coated with operation feelings when calling in the function Condition allows exploitation according to the technical solution that correctness of the operating condition to the version information of the function to be analyzed is judged Person is clear from which version that system has relied on each function, brings great convenience to system maintenance, upgrading.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the application Limitation.
Fig. 1 is the overall flow figure that a kind of code of the application in one embodiment relies on management method;
Fig. 2 is that the type function acquisition process that a kind of code of the application in one embodiment relies in management method is shown It is intended to;
Fig. 3 is that the function call analytic process that a kind of code of the application in one embodiment relies in management method is shown It is intended to;
Fig. 4 is the structure chart that a kind of code of the application in one embodiment relies on managing device.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in the description of the present application Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition Other one or more features, integer, step, operation, element, component and/or their group.
Fig. 1 is the overall flow figure that a kind of code of the application in one embodiment relies on management method, such as Fig. 1 institute Show, a kind of code dependence management method, comprising the following steps:
S1 obtains the code file for having function to be analyzed, the function to be analyzed is extracted from the code file, The argument of function to be analyzed is obtained, after the independent variable is entered ginseng to the function to be analyzed, according to described to be analyzed The operation result of function obtains the type function of the function to be analyzed;
Specifically, obtaining the preset code file with function to be analyzed extracts threshold value, when generation in the code file When code amount reaches the code file and extracts threshold value, the function to be analyzed is extracted from the code file, to it is described to When analytic function is extracted, the characteristic character of function to be analyzed is identified first, then according to the characteristic character to both ends Escape character (ESC) section obtains the function to be analyzed.
The case where S2 obtains the interface using the function to be analyzed, calls the function to be analyzed according to the interface, All functions to be analyzed under same version are carried out to cluster formation one after obtaining the version information of the function to be analyzed Function packet;
Specifically, obtaining the allocating time that the interface calls the function to be analyzed, determined according to the allocating time The interface calls the version of the function to be analyzed, is inquired according to the number of version and has this start context in each interface Function to be analyzed.
S3 obtains function to be analyzed described in each of described function packet in the function and is coated with operation feelings when calling Condition judges according to correctness of the operating condition to the version information of the function to be analyzed.
Specifically, function to be analyzed described in each of described function packet is numbered, according to the letter to be analyzed Several numbers successively runs function to be analyzed, if error information occur when running to some function to be analyzed and stopping transporting Row, then check for BUG according to error information, treat the letter of analytic function using BUG fix tool when detecting BUG Number versions are modified, when not detecting BUG, it tries are run again, or by error information and corresponding to be analyzed Function information saves and is recorded as unique file, convenient for the technical staff such as O&M or debugging reference.
The present embodiment, by effectively determine to function version, to bring great convenience to system maintenance, upgrading.
Fig. 2 is that the type function acquisition process that a kind of code of the application in one embodiment relies in management method is shown It is intended to, as shown, the S1, obtains the code file for having function to be analyzed, is extracted from the code file described Function to be analyzed obtains the argument of function to be analyzed, after the independent variable is entered ginseng to the function to be analyzed, according to The operation result of the function to be analyzed obtains the type function of the function to be analyzed, comprising:
S101, task of classification analysis is carried out to function is received, extraction belt needs the code file of analytic function;
Wherein, the feature code of the task refers to and such as numbers, and presets in service, recursive call is to task It is marked.
S102, the minimum paragraph for obtaining the function to be analyzed for including in the code file, from the minimum paragraph In extract the independent variable;
Specifically, inquiring the Function feature character of function to be analyzed included in the code file, such as to be analyzed Function is hash function, then Function feature character is Hash, is looked into same a line of the Function feature character or next line Additional character is ask, for example "=" obtains then using the bebinning character of the Function feature character as starting point by terminal of additional character To the minimum paragraph.
S103, the existing operation result for obtaining the function to be analyzed for including in the code file, will be described from change It measures ginseng and carries out operation into all functions to be analyzed, be compared with the existing operation result of the function to be analyzed, The type of the function to be analyzed is determined according to the existing operation result if consistent, otherwise basis enters to join what operation obtained Operation result determines the type of the function to be analyzed.
Wherein, existing operation result is obtained from the historical data obtained after all previous carry out operation of function to be analyzed 's.
The present embodiment, the operation result by treating analytic function are analyzed, to preferably obtain the type of function.
Fig. 3 is that the function call analytic process that a kind of code of the application in one embodiment relies in management method is shown It is intended to, as shown, the S2, obtains the interface using the function to be analyzed, is called according to the interface described to be analyzed The case where function, carries out all functions to be analyzed under same version after obtaining the version information of the function to be analyzed Cluster forms a function packet, comprising:
S201, according to the type of the function to be analyzed, assign the function to be analyzed with signature identification, according to the spy Sign mark, obtains the interface using the function to be analyzed;
Specifically, the initial in the type of the function to be analyzed is obtained, using the initial as signature identification time Total interface is gone through, the data that the interface generates are extracted after the interface with the signature identification is marked, interface generates Data include all data by interactive interfacing.
S202, preset several timed tasks for extracting data are obtained, when the timed task is triggered, extraction is each The data that the interface calls;
Wherein, it is preset it is several extract data timed task be according to code file extract frequency historical data It arrives.
S203, all calculated results that the function to be analyzed is extracted from the data that the interface calls;
S204, the identical calculated result of any two is classified as same version function, it will be all described under same version Function to be analyzed carries out being clustered into a function packet.
Specifically, needing to introduce error correction function to calculated result before being compared to any two calculated result It is modified, final calculated result is obtained after amendment, comparison of coherence then is carried out to any two calculated result again, if two A calculated result is within preset error threshold, then it is assumed that the two calculated results are identical result.
The present embodiment, the operation result by treating analytic function carries out consistency analysis, to promote same version letter The accuracy rate of number identification.
In one embodiment, the S3 obtains function to be analyzed described in each of described function packet in the letter Operating condition when number coating is called is carried out according to correctness of the operating condition to the version information of the function to be analyzed Judgement, comprising:
The data information that each described interface calls is obtained, the function packet is extracted from the data information;
Each of described function packet under same version function to be analyzed is successively called to carry out operation, if described Function to be analyzed normally exports operation result, then obtains the correct feedback information of version of the function to be analyzed, if it is described to Analytic function throw exception error code is then carried out according to version information of the exception error code to the function to be analyzed The correct feedback information of version of the function to be analyzed is obtained after amendment.
Specifically, BUG fix tool can be used and identified to error code when treating analytic function and being modified After obtain the corresponding reparation code of the error code, obtained after being modified according to the reparation code to the error code to The right version of analytic function.
The present embodiment, by operation function to be analyzed so that whether the version for verifying function to be analyzed is correct.
In one embodiment, described 101, task of classification analysis is carried out to function is received, extraction belt has letter to be analyzed Several code files, comprising:
The carrying out classification analysis to function of the task is received, the Function feature code of the task is obtained;
All code files are traversed, mark band has the code file of the Function feature code;
Wherein, the signature identification of function can be the last letter of the initial splicing superior function of function, such as hash function The signature identification of Hash is Hh, and Hh is searched in code file can be obtained by all code files comprising hash function.
It obtains preset code file and extracts threshold value, the generation in the code file with the Function feature code When the quantity of code is more than that the code file extracts threshold value, the code text with the Function feature code is extracted Part.
The present embodiment is set by extracting code in code file, to preferably track the production of function to be analyzed The raw time, to preferably determine version information.
In one embodiment, the S202, obtain the minimum of the function to be analyzed for including in the code file Paragraph extracts the independent variable from the minimum paragraph, comprising:
Obtain initial paragraph from the code file, the initial paragraph contain at least one or it is more than one to Analytic function;
One desired length is set for the initial paragraph, according to the length of the initial paragraph and the desired length Comparison result obtains the weight threshold of the minimum paragraph, the weight threshold=(K/F)/G, wherein comparison result F=is (just Beginning paragraph length-redundancy value)/desired length, G is the adjusting thresholds factor and G is the number greater than 1, and K is attribute weight density;
As the comparison result F=1, the minimum paragraph is obtained, the bracket in the minimum paragraph is inquired, extracts Content in the bracket is to get arriving the independent variable.
Specifically, the desired length of the initial paragraph is obtained after being weighted and averaged calculating according to historical data; Distance i.e. according to historical data apart from present moment assigns different weights, the power of the historical data nearest apart from present moment Weight is maximum, and the weight of the historical data farthest apart from present moment is minimum.Adjusting thresholds factor G and attribute weight density K are then It is calculated after the data obtained when being calculated according to the length last time of initial paragraph using genetic algorithm.
The present embodiment is effectively limited by the length to minimum paragraph, to be more quickly by independent variable out Parameter.
In one embodiment, the S301, obtain the data information that each described interface calls, believe from the data The function packet is extracted in breath, comprising:
The ID mark for obtaining each interface, identifies according to the ID, determines the corresponding function packet of the interface;
Specifically, the initial of first data when record interface generation first time data interaction, with first number According to initial as interface ID identify.
Verifying function version request information is obtained, extracts start context from the verifying function version request information;
Specifically, the verifying function version request information is divided into several subsegments, inquire in each subsegment whether Include digital information, extracts all digital informations, the start context is obtained after splicing.
According to the start context, the function with the start context is extracted from the data information of the interface Packet, wherein the start context that the function to be analyzed has is that system assigns automatically in function upgrading.
The present embodiment calls situation to be monitored, obtains function to be analyzed well in interface by interface function Service condition.
In one embodiment it is proposed that a kind of code relies on managing device, as shown in figure 4, including following module:
Type function obtains module 41, is set as obtaining the code file for having function to be analyzed, from the code file In extract the function to be analyzed, obtain the argument of function to be analyzed, by the independent variable enter ginseng to it is described to point After analysing function, according to the operation result of the function to be analyzed, the type function of the function to be analyzed is obtained;
Function call analysis module 42 is set as obtaining the interface using the function to be analyzed, according to the interface tune The case where with the function to be analyzed, obtain after the version information of the function to be analyzed by under same version it is all it is described to Analytic function carries out cluster and forms a function packet;
Function version determining module 43 is set as obtaining function to be analyzed described in each of described function packet described Operating condition when function coating is called, according to the operating condition to the correctness of the version information of the function to be analyzed into Row judgement.
A kind of computer equipment, including memory and processor are stored with computer-readable instruction in the memory, institute When stating computer-readable instruction and being executed by the processor so that the processor execute code described in the various embodiments described above according to The step of relying management method.
A kind of storage medium being stored with computer-readable instruction, the computer-readable instruction are handled by one or more When device executes, so that one or more processors execute the step of code described in the various embodiments described above relies on management method.Institute Stating storage medium can be non-volatile memory medium.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of the technical characteristic in example to be all described, as long as however, lance is not present in the combination of these technical characteristics Shield all should be considered as described in this specification.
The some exemplary embodiments of the application above described embodiment only expresses, wherein describe it is more specific and detailed, But it cannot be understood as the limitations to the application the scope of the patents.It should be pointed out that for the ordinary skill of this field For personnel, without departing from the concept of this application, various modifications and improvements can be made, these belong to the application Protection scope.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of code relies on management method characterized by comprising
The code file for having function to be analyzed is obtained, the function to be analyzed is extracted from the code file, obtains institute Argument of function to be analyzed is stated, after the independent variable is entered ginseng to the function to be analyzed, according to the function to be analyzed Operation result obtains the type function of the function to be analyzed;
The case where obtaining the interface using the function to be analyzed, calling the function to be analyzed according to the interface, obtains institute All functions to be analyzed under same version are carried out to cluster one function packet of formation after stating the version information of function to be analyzed;
It obtains function to be analyzed described in each of described function packet and is coated with operating condition when calling in the function, according to The operating condition judges the correctness of the version information of the function to be analyzed.
2. code according to claim 1 relies on management method, which is characterized in that described to obtain with function to be analyzed Code file extracts the function to be analyzed from the code file, the argument of function to be analyzed is obtained, by institute It states independent variable to enter to join to after the function to be analyzed, according to the operation result of the function to be analyzed, obtains the letter to be analyzed Several type function, comprising:
Task of classification analysis is carried out to function is received, extraction belt needs the code file of analytic function;
The minimum paragraph for obtaining the function to be analyzed for including in the code file extracts institute from the minimum paragraph State independent variable;
The independent variable is entered ginseng to institute by the existing operation result for obtaining the function to be analyzed for including in the code file Have in the function to be analyzed and carry out operation, is compared with the existing operation result of the function to be analyzed, the root if consistent The type of the function to be analyzed is determined according to the existing operation result, it is otherwise true according to entering to join the operation result that operation obtains The type of the fixed function to be analyzed.
3. code according to claim 1 relies on management method, which is characterized in that the acquisition uses the letter to be analyzed Several interfaces, according to the interface call the function to be analyzed the case where, after obtaining the version information of the function to be analyzed All functions to be analyzed under same version are subjected to cluster and form a function packet, comprising:
According to the type of the function to be analyzed, assigns the function to be analyzed and obtained with signature identification according to the signature identification Take the interface using the function to be analyzed;
It obtains preset several timed tasks for extracting data and extracts each interface when the timed task is triggered The data of calling;
All calculated results of the function to be analyzed are extracted from the data that the interface calls;
The identical calculated result of any two is classified as same version function, by all functions to be analyzed under same version It carries out being clustered into a function packet.
4. code according to claim 1 relies on management method, which is characterized in that every in the acquisition function packet One function to be analyzed is coated with operating condition when calling in the function, according to the operating condition to described to be analyzed The correctness of the version information of function is judged, comprising:
The data information that each described interface calls is obtained, the function packet is extracted from the data information;
Each of described function packet under same version function to be analyzed is successively called to carry out operation, if described wait divide Analysis function normally exports operation result, then the correct feedback information of version of the function to be analyzed is obtained, if described to be analyzed Function throw exception error code is then modified according to version information of the exception error code to the function to be analyzed The correct feedback information of version of the function to be analyzed is obtained afterwards.
5. code according to claim 2 relies on management method, which is characterized in that described receive carries out classification point to function The task of analysis, extraction belt need the code file of analytic function, comprising:
The carrying out classification analysis to function of the task is received, the Function feature code of the task is obtained;
All code files are traversed, mark band has the code file of the Function feature code;
It obtains preset code file and extracts threshold value, when the code in the code file with the Function feature code When quantity is more than that the code file extracts threshold value, the code file for having the Function feature code is extracted.
6. code according to claim 2 relies on management method, which is characterized in that described obtain is wrapped in the code file The minimum paragraph of the function to be analyzed contained extracts the independent variable from the minimum paragraph, comprising:
Obtain initial paragraph from the code file, the initial paragraph contains at least one or more than one to be analyzed Function;
One desired length is set for the initial paragraph, according to the comparison of the length of the initial paragraph and the desired length As a result, obtaining the weight threshold of the minimum paragraph, the weight threshold=(K/F)/G, wherein comparison result F=(initial language Segment length-redundancy value)/desired length, G is the adjusting thresholds factor and G is the number greater than 1, and K is attribute weight density;
As the comparison result F=1, the minimum paragraph is obtained, the bracket in the minimum paragraph is inquired, extracts described Content in bracket is to get arriving the independent variable.
7. code according to claim 4 relies on management method, which is characterized in that described each described interface tune of acquisition Data information extracts the function packet from the data information, comprising:
The ID mark for obtaining each interface, identifies according to the ID, determines the corresponding function packet of the interface;
Verifying function version request information is obtained, extracts start context from the verifying function version request information;
According to the start context, the function packet with the start context is extracted from the data information of the interface, In, the start context that the function to be analyzed has is that system assigns automatically in function upgrading.
8. a kind of code relies on managing device characterized by comprising
Type function obtains module, is set as obtaining the code file for having function to be analyzed, extract from the code file The function to be analyzed out obtains the argument of function to be analyzed, and the independent variable is entered ginseng and arrives the function to be analyzed Afterwards, according to the operation result of the function to be analyzed, the type function of the function to be analyzed is obtained;
Function call analysis module is set as obtaining the interface using the function to be analyzed, according to interface calling The case where function to be analyzed, obtains all letters to be analyzed under same version after the version information of the function to be analyzed Number carries out cluster and forms a function packet;
Function version determining module is set as obtaining function to be analyzed described in each of described function packet in the function packet Operating condition when called, sentences according to correctness of the operating condition to the version information of the function to be analyzed It is disconnected.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described When computer-readable instruction is executed by the processor, so that the processor executes such as any one of claims 1 to 7 right It is required that the code relies on the step of management method.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more When device executes, so that one or more processors execute the code as described in any one of claims 1 to 7 claim and rely on pipe The step of reason method.
CN201910062097.1A 2019-01-23 2019-01-23 Code relies on management method, device, computer equipment and storage medium Pending CN109918078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910062097.1A CN109918078A (en) 2019-01-23 2019-01-23 Code relies on management method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910062097.1A CN109918078A (en) 2019-01-23 2019-01-23 Code relies on management method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109918078A true CN109918078A (en) 2019-06-21

Family

ID=66960582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910062097.1A Pending CN109918078A (en) 2019-01-23 2019-01-23 Code relies on management method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109918078A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110262803A (en) * 2019-06-30 2019-09-20 潍柴动力股份有限公司 A kind of generation method and device of dependence

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110262803A (en) * 2019-06-30 2019-09-20 潍柴动力股份有限公司 A kind of generation method and device of dependence

Similar Documents

Publication Publication Date Title
CN108595157B (en) Block chain data processing method, device, equipment and storage medium
US20210279164A1 (en) Real Time Application Error Identification and Mitigation
US9940581B2 (en) Ontology-aided business rule extraction using machine learning
CN109635110A (en) Data processing method, device, equipment and computer readable storage medium
US20230289828A1 (en) Data processing method, computer device, and readable storage medium
US9715409B2 (en) Job delay detection method and information processing apparatus
CN111309539A (en) Abnormity monitoring method and device and electronic equipment
US8813229B2 (en) Apparatus, system, and method for preventing infection by malicious code
CN110941528A (en) Log buried point setting method, device and system based on fault
CN108491254A (en) A kind of dispatching method and device of data warehouse
US10838791B1 (en) Robust event prediction
CN112181804A (en) Parameter checking method, equipment and storage medium
CN115174231A (en) AI-Knowledge-Base-based network fraud analysis method and server
CN115102836A (en) Network equipment fault analysis method and device and storage medium
CN109324959A (en) A kind of method, server and the computer readable storage medium of automatic transfer data
US20210097551A1 (en) Customer Service Ticket Prioritization Using Multiple Time-Based Machine Learning Models
CN109918078A (en) Code relies on management method, device, computer equipment and storage medium
CN109558887A (en) A kind of method and apparatus of predictive behavior
CN111309994A (en) User matching method and device, electronic equipment and readable storage medium
CN112783508B (en) File compiling method, device, equipment and storage medium
CN107256167B (en) Upgrade control method and upgrade control equipment applied to application system migration
CN115065597B (en) Container resource allocation method, device, medium and equipment
CN115167896A (en) Method and device for updating software version, storage medium and electronic equipment
CN116303320A (en) Real-time task management method, device, equipment and medium based on log file
US10339037B1 (en) Recommendation engine for recommending prioritized performance test workloads based on release risk profiles

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