Patents
Literature
Patsnap Copilot is an intelligent assistant for R&D personnel, combined with Patent DNA, to facilitate innovative research.
Patsnap Copilot

80 results about "Code annotation" patented technology

Annotation is a term used in computer programming to refer to documentation and comments that may be found on code logic. Annotation is typically ignored once the code is executed or compiled.

Javadoc-based back-end interface document automatic generation method and apparatus

The invention discloses a Javadoc-based back-end interface document automatic generation method. The method specifically comprises the following steps of defining interface information in an interface file; performing description on the interface information by adopting Javadoc: describing code annotation and interface; performing automatic identification by adopting AST code analysis: identifying an input parameter, a return value type, a URL and abnormal data of the interface; and according to a definition of the interface and standard Javadoc, fully automatically generating an interface document. Through the AST code analysis technology, the back-end interface document can be fully automatically generated after all codes are changed in combination with the definition of the interface according to the Javadoc; and front-end codes can be generated according to interface data, so that the problem of desynchrony of the codes and the manually written interface document in the past is solved, the time for writing the interface document is saved, the situation of reworking caused by the problem of desynchrony of the interface document and the codes can be avoided, and the business system development efficiency is improved.
Owner:珠海牛角科技有限公司

Interface document generation method and device, electronic equipment and storage medium

The invention provides an interface document generation method and a device, electronic equipment and a storage medium. The method is applied to a program code for parameter definition based on a codeannotation of a Swagger. The method comprises the steps: receiving an interface document generation request; determining a target program code according to the interface document generation request,and obtaining a predefined interface document template associated with the target program code; analyzing a code annotation corresponding to the target program code, and obtaining attribute information of the target program code from the code annotation; importing the attribute information into the predefined interface document template to generate an interface document corresponding to the interface document generation request; displaying the interface document. The embodiment of the invention is applied to a program code for parameter definition based on a code annotation of a Swagger, and standardization and universality of the code annotation can be realized; the interface document is automatically generated according to the target program code, and the accuracy of the interface document is improved.
Owner:TAIKANG LIFE INSURANCE CO LTD

Code annotation generation method based on machine translation model

The invention discloses a code annotation generation method based on a machine translation model. The code annotation generation method comprises the steps that an obtained code corpus containing annotations is divided into a source code method sequence corpus and a corresponding source code annotation corpus; inputting source code annotations in a source code annotation corpus into the seq2seq model; extracting a source code method sequence to generate an abstract syntax tree, replacing identifiers of nodes with node categories, performing structured traversal to obtain a sequence with reserved structure information, and inputting the sequence into a seq2seq model; inputting the structural information into a coding layer to generate a coding output of an implicit state sequence and the structural information, inputting the coding output into an attention mechanism layer, and calculating a context vector according to the matching degree between the coding output of the implicit state sequence and the structural information; inputting the coding output of the structure information and the context vector into a decoding layer, and calculating the sequence probability distribution ofthe training sample target; a sequence-based machine translation model is generated from the source code annotations and the sequence probability distribution.
Owner:SUN YAT SEN UNIV

Interface document generation method and device, computer equipment and storage medium

The invention discloses an interface document generation method and device, computer equipment and a storage medium. The interface document generation method comprises the steps: obtaining a source code of a first project; screening out a class method with an interface mark from all class methods of the source code, and marking the class method with the interface mark as an interface class method;extracting interface basic information from a method body corresponding to the interface method through a reflection technology, and extracting interface additional information from code annotation information corresponding to the method body; integrating the interface basic information and the interface additional information to form first interface information; and adding the first interface information into a preset interface document template, and generating a first interface document corresponding to the first interface information according to the preset interface document template. According to the interface document generation method, the first interface document corresponding to the source code of the first project can be automatically generated, so that the consistency of the first interface document and the first interface information is ensured, and the labor cost is effectively saved, and the generation efficiency of the interface document is improved.
Owner:重庆金融资产交易所有限责任公司

Method, device and system for generating code documents in continuous integration

Embodiments of the invention disclose a method, device and system for generating code documents in continuous integration. The method comprises the following steps of: obtaining a code and a code annotation submitted by a user; judging whether the code annotation is correct or not according to the code; if the judging result is positive, storing the code and the code annotation into a code library and executing the next step; if the judging result is negative, returning prompt information; obtaining a code structure and the code annotation, and recording the code structure and the code annotation into a source file; and generating the source file into a code document according to a preset configuration file. According to the method, the code and the code annotation submitted by the users are verified to ensure the consistency between the code annotation and the code; after the verification passes, the source file is generated according to the code structure and the code annotation, submitted by a worker, of the code; and the source file is generated into the code document according to the preset configuration information. According to the method, device and system disclosed by the invention, the automatic generation and timely updating of code documents are realized, so that the manpower resources are saved, and the working efficiency and the correctness of the code documents are improved.
Owner:ZHENGZHOU YUNHAI INFORMATION TECH CO LTD

Method and system for automatically generating development document based on code annotation

The invention discloses a method and system for automatically generating a development document based on code annotation, and the method is characterized in that the method comprises the following steps: installing webpack and react-stylegidist for constructing a project; creating and configuring a styleguide.config.js file under a same-level directory of a webpack configuration file, classifyingcomponents of a project, putting the components which need to be exposed to the outside under a views directory, and obtaining .jsx file through a wildcard select\*; introducing a public style and a special style into a project through a package file, conducting global setting on an antd component library, and integrating redux data; configuring a script in a package.json; in webpack configuration, respectively adding and setting different interface addresses for different environments through env environment variables, and then normally accessing an interface through an agent. The effects ofautomatically generating code annotations of components, writing demo and corresponding instructions for various use scenes, attaching a demo source code, modifying the source code and previewing thedemo in real time are achieved.
Owner:百卓网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products