Index-based Java software code clone detection method
A detection method and software code technology, applied in the field of program understanding, can solve problems such as the validity discount of detection methods
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0025] The specific implementation of the index-based Java software code clone detection method provided by the present invention is mainly divided into 3 steps (such as figure 1 Shown):
[0026] (1) Assuming that it has been established in memory according to steps (1), (2) and (3) , with . In the preprocessing stage, the available memory is limited. The source code of each source file in the set of source files to be tested is read in sequence, and the source code is lexically analyzed and normalized to obtain the "sentence line number" corresponding to each source file. Character sequence" key-value pair collection, establish "file path File latest timestamp" key-value pair and update . (2) In the cloning detection stage, if the file to be detected has not been modified, then directly Obtain the corresponding files in Set of values, otherwise the "statement line number Lexical item sequence" every other The line statement is regarded as a code segment, and the file pa...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com