Method and tool for automatically filling code sample by using JavaFX
An automatic filling and sample technology, applied in the field of code, can solve the problems of huge amount of data, low code quality, and much invalid information.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0117] figure 1 It is a flow chart of the method for automatically filling code samples with JavaFX in Embodiment 1, wherein the data collection module includes an API extractor and a question information extractor, and the data processing module includes a question-answer pair preprocessor and a question-answer pair extractor, and the document Generate modules include documentation generators, figure 2 A flowchart for the various components working together. This solution takes JavaFX documents as an example, and is applied to scenarios where native API documents are used and code samples are relatively scarce, which affects the learning and development efficiency of developers. The specific steps are as follows:
[0118] Step 110, using crawler technology to access different URLs, and locating elements in the HTML document, and then crawling the text content in the located elements to obtain problem information and API information.
[0119] Before accessing the page and o...
Embodiment 2
[0144] Figure 8 It is a flow chart of processing fault recovery type question-answer pairs in Embodiment 2 of the present invention. This embodiment adds a step of processing fault recovery type question-answer pairs on the basis of the foregoing embodiments. Combine below Figure 5 The second embodiment of the present invention provides a method for automatically filling in code samples with JavaFX and a special process for handling fault repair type question-answer pairs, including the following steps:
[0145] Step 210, accessing different Uniform Resource Identifiers, and locating elements in the HTML document, and then crawling the text content located in the elements to obtain problem information and API information.
[0146] Step 220, accessing the question detailed information page through the crawler, and identifying whether the question title contains a special field, thereby judging whether the question-answer pair is a fault-recovery question-answer pair or a com...
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