Method and system for preventing repeated submission of codes, computer equipment and storage medium

A technology for repeated submission and code, applied in software maintenance/management, software indicators, software testing/debugging, etc., can solve problems such as code redundancy

Pending Publication Date: 2019-05-10
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Based on this, it is necessary to provide a method, system, computer equipment, and storage medium for preventing code duplication submission for the problem that the source of duplication code cannot be controlled at the time of user submission in the current software engineering management, resulting in code redundancy.

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
  • Method and system for preventing repeated submission of codes, computer equipment and storage medium
  • Method and system for preventing repeated submission of codes, computer equipment and storage medium
  • Method and system for preventing repeated submission of codes, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0045] figure 1 The flow chart of the method for preventing code duplication submission provided in one embodiment of this application, as shown in the figure, includes:

[0046]S1. After obtaining the code data in each server, the original code library is established;

[0047] In this step, the code data is obtained from the SVN server and the Git server according to the configured search engine, and the obtained code data is stored and an original code library is established. Wherein, the SVN server refers to the server deployed with the SVN version control system, and SVN is the abbreviation o...

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 relates to the technical field of software development and maintenance, in particular to a method and device for preventing repeated submission of codes, computer equipment and a storagemedium. The method for preventing repeated submission of codes comprises the following steps: obtaining code data in each server and then establishing an original code library; obtaining a code submitted by a user, splitting the obtained code into code segments, and searching the code segments from the original code library; when repeated codes of the code segments do not exist in the original code library, the codes are directly submitted to the original code library; when repeated codes of the code segments exist in the original code library, calculating repeated values of the code segments; Comparing the repetition value with a threshold value, allowing code submission when the repetition value is lower than the threshold value, and not allowing code submission when the repetition value is higher than the threshold value. By controlling the source of repeated codes when the user submits the codes, the code redundancy problem in the code library is reduced, the misjudgment rate is low, and the speed is high.

Description

technical field [0001] The invention relates to the technical field of software development and maintenance, in particular to a method, system, computer equipment and storage medium for preventing repeated submission of codes. Background technique [0002] Code is a source file written by a programmer in a language supported by a development tool, and is a set of clear rule systems that represent information in a discrete form by characters, symbols, or signal symbols. Duplicate submission during code upload is the most common and troublesome problem in multi-user web applications. There are many application scenarios where code submission will encounter duplicate submission problems, such as: click the submit button twice; click the refresh button; Use the browser back button to repeat the previous operation, resulting in repeated submission of the form; use the browser history to submit the form repeatedly; the browser repeats the HTTP request; when the user submits the fo...

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): G06F8/77G06F11/36
Inventor 徐国诚
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
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