Fingerprint feature generation method and matching method for code snippets
A code fragment and fingerprint feature technology, applied in the fingerprint feature generation method and matching field of code fragments, can solve the problems of inconsistent matching results, inaccurate analysis of software group composition, etc., and improve the search effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0066] The following is attached Figure 1 to Figure 2 The application is described in further detail.
[0067] The embodiment of the present application discloses a method for generating fingerprint features of code fragments. refer to figure 1 , the fingerprint feature generation method of the code fragment includes the following steps:
[0068] S100. Obtain the source code of the code fragment.
[0069] The source code can be obtained by manually inputting the code, or directly calling the stored code from a preset database, as long as the source code can be obtained.
[0070] S200. Perform code cleaning on the source code to obtain a continuous character string carrying code line number information.
[0071] Wherein, the code cleaning includes at least one of the following: removing newline characters, removing spaces, and removing comment information. In addition to the above-mentioned several cleaning methods, the staff can also set the objects that need to be remov...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

