Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Standard template generation method and device and electronic equipment

A standard template, template technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve the problems of lack of codes, high labor costs of software development, etc., and achieve the effect of reducing labor costs

Active Publication Date: 2019-05-07
上海众源网络有限公司
View PDF2 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Some types of code lack uniform standards, such as using xml (Extensible Markup Language, Extensible Markup Language) or json (javascript object notation, Javascript object notation) to write The code needs to be manually agreed upon by software developers with a lot of relevant coding experience, which may bring high labor costs to software development

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Standard template generation method and device and electronic equipment
  • Standard template generation method and device and electronic equipment
  • Standard template generation method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.

[0046] see figure 1 , figure 1 The method for generating the standard template provided by the embodiment of the present invention may include:

[0047] S110. Acquire a document object model of a standard code block as a template structure.

[0048] Wherein, the template structure includes a plurality of nodes, and the plurality of nodes are used to represent the content contained in the standard code block. The standard code block is pre-tested to determine that there is no abnormality, and the detection of the standard code block can be performed by using a dynamic detection technology. The standard code block may be a code block selected by the user from the code warehouse according to actual needs, for example, a code block selected from an xml configuration file in the code warehouse as a standard ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a standard template generation method and device and electronic equipment. The method comprises the steps of obtaining a document object model of a standard code block as a template structure, wherein the template structure comprises a plurality of nodes; Screening out a document object model of which the subtree similarity with the template structure is higher than a preset first subtree similarity threshold from the document object models of the plurality of normal code blocks as a reference structure; For each reference structure, determining the common subtree containing the most nodes in the reference structure as the longest common subtree of the reference structure, the common subtree being the subtree contained in the reference structure andthe template structure; And for each node in the longest common subtree of each reference structure and each node in the plurality of nodes, marking the value of the node as the normal value of the node with the same name as the node in the template structure to obtain a standard template. A standard template can be automatically generated, and the labor cost of software development is effectively reduced.

Description

technical field [0001] The invention relates to the technical field of code specification, in particular to a method, device and electronic equipment for generating a standard template. Background technique [0002] In the process of software development, different software developers may have their own coding habits, such as the habit of using different naming methods, data formats, etc., which may make the code blocks written by different software developers incompatible with each other, and the software may appear abnormal. Problems with high probability may require a lot of manpower and time to troubleshoot exceptions, resulting in low software development efficiency. In the prior art, software developers can code according to a unified standard, and the standard can specify naming methods, data formats, and the like. [0003] The inventor found in the process of realizing the present invention that there are at least the following problems in the prior art: [0004] S...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/24G06F17/22G06F16/33G06F8/73
Inventor 李恒
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
Eureka Blog
Learn More
PatSnap group products