Code warehouse system based on labels
An object code and tag technology, applied in the field of tag-based code warehouse system, can solve the problems of wasting resources, unable to apply code logic, consuming large resources, etc., to avoid waste of resources, reduce network traffic, and reduce volume.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] Such as figure 1 As shown, the present embodiment provides a label-based code warehouse system, including: a front-end user module (2), a search engine (3) and a code warehouse (4);
[0043]The front-end user module (2) is used to monitor the operation instructions of the integrated development environment (1);
[0044] The search engine (3) is configured to search the code warehouse (4) according to the operation instruction to obtain the target code fragment and the target code label corresponding to the operation instruction, and store the target code fragment and the The object code label is sent to the integrated development environment (2) for display by the integrated development environment (1);
[0045] The front-end user module (2) is configured to insert the target code fragment into the code file according to the further operation instruction after display.
[0046] In traditional code editing work, code reuse is generally achieved through function calls. ...
Embodiment 2
[0053] Based on Embodiment 1, this embodiment provides a tag-based code warehouse (4) system, and further includes: a code submission and labeling module (5), used for submitting the code file when submitting the code file The code storage fragments are tagged, so as to obtain the corresponding storage tags, and the code storage fragments and storage tags are sent to the code warehouse (4) for storage.
[0054] In this embodiment, in the process of building the code warehouse (4), the label is generally marked when the code is submitted. Specifically, when the user submits the code fragment through the integrated development environment (1) , the user interface of the integrated development environment (1) will show the user which tags are available for selection through the UI interface, and guide the user to select the tags, so as to obtain the appropriate tags. For example, a code fragment is written in JAVA , its role is to provide login logic for the OA system, which can ...
Embodiment 3
[0056] Based on Embodiment 2, this embodiment provides a label-based code warehouse (4) system, and the front-end user module (2) specifically includes:
[0057] A keyword retrieval submodule (2-1), configured to obtain a code prefix according to the position of the cursor in the integrated development environment (1), and input the code prefix as a keyword into the search engine (3) to search.
[0058] In this embodiment, the code fragments in the code warehouse (4) are generally retrieved by keywords. Specifically, when the code fragments are constructed, the code fragments will be given a name, and the user can input the code The code fragment can be obtained by the name of the fragment, and the code fragment can also be obtained by specifically retrieving the content of the code fragment.
[0059] Preferably, it also includes: a label retrieval submodule (2-2), which is used to obtain the corresponding target code label according to the label selection operation in the op...
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