Code naming recommendation method and system, storage medium and equipment

A recommendation method and code technology, applied in the software field, can solve problems such as the influence of personal style, achieve the effects of reducing time costs, facilitating rapid review, and improving standardization

Active Publication Date: 2021-03-09
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The existing commonly used naming conventions generally require code naming to be clear, searchable, avoid ambiguity and reserved words, etc., and formulate general specifications for naming variables, constants, functions (methods), comments, etc., the current mainstream The naming recommendation system of the integrated development environment (IDE, Integrated Development Environment) adopts simple naming rules for automatic associative completion. It is difficult to name methods and classes, and it is easy to name the code if manual naming is used. Influenced by programmer's experience and personal style

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
  • Code naming recommendation method and system, storage medium and equipment
  • Code naming recommendation method and system, storage medium and equipment
  • Code naming recommendation method and system, storage medium and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In order to make the object, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0029] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used to distinguish two entities with the same name or different parameters. It can be seen that "first" and "second" " is only for the convenience of expression, and should not be understood as limiting the embodiment of the present invention. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, of a process, method, system, product or other steps or elements inherent in a process, method, system, product, or device comprising a series of steps or elements.

[0030] Based on the above purpo...

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 invention provides a code naming recommendation method and system, a storage medium and equipment, and the method comprises the following steps: scanning completed codes in a public code library and an internal code library, and carrying out the training of a code naming mode through a seq2seq model; scanning and reasoning unfinished codes in the internal code library based on a training result to obtain an initial recommended name; scanning the unfinished code through a defined attribute judgment rule to obtain a corresponding category mark value and a service mark value; and defining a trimming rule based on the category mark value and the service mark value, and reconstructing the initial recommended name through the trimming rule to obtain a recommended name. According to the method, standardization in the code writing process can be improved through recommendation naming, the time cost for optimizing the codes is reduced, the readability of the codes is enhanced, meanwhile, auditors can quickly audit the codes, and the auditing efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of software, in particular to a code naming recommendation method, system, storage medium and equipment. Background technique [0002] In the process of code writing, naming files, functions, and variables visually and conforming to the standard can not only increase the readability of the program, but also reflect the programmer's programming style. Good naming habits can effectively improve the maintainability of the program. Early code naming conventions, such as the Hungarian nomenclature, identified the scope, type, etc. of the variable by adding the corresponding lowercase symbol symbol in front of the variable name as a prefix. The existing commonly used naming conventions generally require code naming to be clear, searchable, avoid ambiguity and reserved words, etc., and formulate general specifications for naming variables, constants, functions (methods), comments, etc., the current mainstream The...

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
IPC IPC(8): G06F8/41G06N3/04G06N3/06G06N3/08G06N5/04
CPCG06F8/44G06N3/061G06N3/084G06N5/046G06N3/047G06N3/045
Inventor 曹文康
Owner SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
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