Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

32 results about "Duplicate code" patented technology

Duplicate code is a computer programming term for a sequence of source code that occurs more than once, either within a program or across different programs owned or maintained by the same entity. Duplicate code is generally considered undesirable for a number of reasons. A minimum requirement is usually applied to the quantity of code that must appear in a sequence for it to be considered duplicate rather than coincidentally similar. Sequences of duplicate code are sometimes known as code clones or just clones, the automated process of finding duplications in source code is called clone detection.

Dynamic field verification method and system based on user-defined annotation

The invention discloses a dynamic field verification method and system based on user-defined annotations, belongs to the technical field of computer software, and aims to solve the technical problem of how to realize flexible and efficient parameter verification, improve development efficiency and reduce duplicated codes. The technical scheme adopted by the invention comprises the following steps: creating a user-defined annotation: defining a user-defined annotation (at) ValidateFields, and setting up a ValidateFields set in the ValidateFields set in the ValidateFields set in the ValidateFields set in the ValidateFields set in the ValidateFields set; the parameter name list receiving module is used for being marked on an input parameter of a Controller layer and receiving a character string array as a parameter name list; a field verification annotation is created, wherein an annotation (at) ValidateField used for being labeled on an entity class field is defined; creating a verification tool class: creating a verification tool class Validation Util, reading the annotation by using a reflection mechanism, and executing verification logic; and automatic logic verification: using Spring AOP to realize automatic logic verification, intercepting a method of adding (at) Validate Fields annotations in parameters, performing parameter verification through a verification tool class, executing a target method if the verification passes, and returning failure information if the verification fails without manually calling the verification tool class.
Owner:INSPUR ZHUOSHU BIG DATA IND DEV CO LTD

General data table system based on configuration

The invention relates to the technical field of data tables, and discloses a configuration-based general data table system, which comprises a system module assembly, and the system module assembly comprises a unified configuration management mechanism, a dynamic column rendering mechanism and a paging control module, the unified configuration management mechanism and the dynamic column rendering mechanism construct a unified configuration object through a tableProps method, the unified configuration management mechanism comprises a plurality of core configuration items, the dynamic column rendering mechanism comprises a plurality of basic attributes, and the configuration management mechanism and the dynamic column rendering mechanism are both connected with a storage module. According to the method, configuration type development is achieved, repeated codes are reduced, components are highly reused, upper-layer components can respond to paging changes in real time and obtain data again, flexibility of paging operation and user experience are guaranteed, columns of different types can be dynamically rendered according to different data types and service requirements, and adaptability and customizability of the table are greatly improved.
Owner:JIANGSU SUYUN INFORMATION TECH CO LTD

Multi-terminal code repetition detection and component reconstruction method and device, equipment and medium

The invention relates to the technical field of code analysis, and discloses a multi-terminal code repetition detection and component reconstruction method, device, equipment and medium, and the method comprises the steps: carrying out code analysis on a pre-acquired project code file, and identifying a code mapping relation to obtain an abstract syntax tree and a cross-platform code mapping relation, and according to the abstract syntax tree and the cross-platform code mapping relationship, carrying out repetition logic detection on the project code file to obtain a repetition detection result, according to the repetition detection result, confirming a repetition code in the project code file, carrying out cross-platform code optimization on the repetition code to obtain an optimized code, and carrying out cross-platform code optimization on the optimized code. The method comprises the steps of obtaining duplicated codes, extracting reusable components on the basis of the duplicated codes, generating a multi-end adaptive component template according to a preset condition compiling logic, and reconstructing the optimized codes according to the reusable components and the multi-end adaptive component template to obtain reconstructed codes, so that the code duplicating detection and reconstruction efficiency is improved.
Owner:SHENZHEN LEXIN SOFTWARE TECH CO LTD

Model construction method and apparatus

Embodiments of the present application provide a model construction method, comprising: displaying a model configuration interface configured with a class tree control; in response to the class tree control being selected, displaying an interface used for displaying a class tree, wherein the class tree comprises a plurality of nodes, and each node corresponds to a class and is configured with a child class adding control; in response to a child class adding control of a target node being selected, displaying a first child class adding interface used for receiving information of a class; and on the basis of the received information of the class, displaying an updated class tree on the interface, wherein the updated class tree comprises a newly added node located at the next level below the target node, and a class corresponding to the newly added node inherits from the class corresponding to the target node. According to the technical solution in the embodiments of the present application, the inheritance relationships between classes can be visually displayed, and visual inheritance is achieved, so that the structure of a model is simplified, and duplicate codes are reduced.
Owner:LIU YI

Secure flash memory module verification method and system based on parameterized reference model

The invention relates to a security flash memory module verification method and system based on a parameterized reference model, and aims to realize one-time writing and multi-position calling through packaging encryption judgment and data comparison logic, greatly reduce the duplicate code quantity of a test case, and reduce duplicate labor by using a uniform interface. By means of a parameter randomization mechanism in a construction script, automatic and multi-parameter combined verification of the secure flash memory module is realized, and the verification coverage rate is improved by parameterized automatic execution. AES key carrying is used as base class function packaging, case writing is simplified, process consistency is kept, key carrying process modularization is achieved, and maintenance cost is reduced. Various verification processes are executed under a unified framework, manual intervention is reduced, the human error probability is reduced, verification efficiency and stability are improved, meanwhile, stability and expandability of a simulation environment are improved, and the method can adapt to design and verification requirements of various security flash memory modules.
Owner:上海芯钛信息科技有限公司

Method for docking external system in supply chain system

The invention relates to a method for docking an external system in a supply chain system, and the method comprises the steps: designing a unified external system interaction framework based on message driving: defining a BaseHandler base class, and integrating getParams parameter analysis, sendRequest request sending and handleResponse response processing logic; external system configuration is stored through the relational database; the business system generates a standardized message and pushes the standardized message to a corresponding MQ theme; and monitoring Topic by the unified consumption service, querying configuration of an enabled state according to the actionCode in the message, dynamically instantiating and specifying a processor subclass, and sequentially executing parameter analysis, external request calling and response processing flows, so as to realize decoupling and dynamic expansion capabilities of business logic and external interaction. According to the method, through unified management configuration and logic, the code repetition rate is reduced, and the maintenance cost is reduced; dynamic configuration supports a quick start-stop docking function and adapts to business change requirements; the standardized process enables the code structure to be clear, and team cooperation and subsequent expansion are facilitated.
Owner:HEBEI TONGFU SHARING TECHNOLOGY CO LTD

A material coding method based on material attributes

The present invention discloses a material coding method based on material attributes, which includes the following steps in sequence: S1: according to the material category and material attributes, a rule table is set to establish a mapping relationship between the material category and the rule table, wherein the rule table includes the following items: classification code name, classification code symbol, attribute segment name and attribute segment serial number; S2: the rule table is selected to establish a coding library: the material category corresponding to the material is determined, and the rule table corresponding to the material category is selected; the material code and the attribute segment name in the rule table are used as items in the coding library, and the information content corresponding to each item is input or imported to obtain several groups, and each group is given unique pseudo-material coding information; S3: whether there is a duplicate code is determined; S4: material coding information is generated; S5: saving. The present invention is applicable to coding various different materials, has a wide range of applications, and is highly practical; it can avoid the problem of duplicate codes and improve the efficiency of material management.
Owner:VICTORY GIANT TECH HUIZHOU CO LTD

Automatic decryption method and device for encryption configuration of cloud container cluster service, computer equipment and storage medium

The invention discloses a cloud container cluster service encryption configuration automatic decryption method and device, computer equipment and a storage medium, the method comprises the following steps: loading configuration information of a target application from a configuration center, the configuration information comprising at least one encryption configuration field; identifying a target field with a (at) Decrypt annotation in the configuration information, wherein the (at) Decrypt annotation is used for marking a field needing to be decrypted; decrypting the encrypted configuration field based on a preset decryption rule to obtain a decrypted configuration value; and injecting the configuration value into the target field to complete configuration loading of the target application. By implementing the method, the development process can be simplified, code repetition is reduced, and the development efficiency is improved; in addition, different items can share the same decryption logic, code redundancy is reduced, the code reuse rate is improved, and the technical scheme can be applied to the fields of finance and medical health.
Owner:PING AN TECH (SHENZHEN) CO LTD

A method and system for preventing the printing of duplicate product serial numbers

This invention discloses a method and system for printing duplicate product serial numbers, relating to the field of industrial automation technology. The method includes: a host computer responding to a trigger signal from the automatic loading / unloading module of the production line and initiating a real-time request to a serial number management server; the server dynamically generating serial numbers and immediately marking them as "assigned" in the database to ensure uniqueness from the source; and the host computer converting the serial numbers into private instructions for the inkjet printer via a dedicated protocol conversion module and driving the printing. The system includes an automatic loading / unloading module, an inkjet printing module, a host computer, and a serial number management server. This invention, through the coordinated action of event-driven triggering, real-time server-side processing, and host computer protocol conversion, achieves automated printing synchronized with the production cycle, as well as seamless integration between the IT system and OT equipment, solving the problems of duplicate codes and traceability in printing.
Owner:SUZHOU TIANMAI THERMAL TECH

Beverage capsule system with duplicated code

A system comprising a container for containing a precursor material and a machine for preparing a beverage and / or foodstuff or a precursor of a beverage and / or foodstuff from said precursor material, the container comprising: a code arrangement comprising a plurality of code repetitions, each code encoding a binary sequence to at least partially encode preparation information, the machine comprises: a code reading system for reading a code repetition; a processing unit for processing the precursor material of the container; and electrical circuitry for controlling the processing unit based on the preparation information, where the electrical circuitry is configured to: read code repetitions to obtain a binary sequence of each code; implementing a codedecoder to determine a number of bit errors associated with the binary sequence; and determining a recipe based on the binary sequence and the number of bit errors.
Owner:SOCIETE DES PRODUITS NESTLE SA

Beverage capsule system with repeated codes

A system comprising a container for containing a precursor material, and a machine for preparing a beverage and / or food or a precursor of a beverage and / or food from the precursor material, wherein the container has a code arrangement comprising a plurality of code repetitions, each code encoding a binary sequence for at least partially encoding preparation information, and the machine comprises a code reading system for reading the code repetitions, a processing unit for processing the precursor material in the container, and an electrical circuit for controlling the processing unit based on the preparation information, wherein the electrical circuit is configured to implement a code decoder to read the code repetitions, obtain a binary sequence for each code, determine the number of bit errors associated with the binary sequence, and determine a recipe based on the binary sequence and the number of bit errors.
Owner:SOCIETE DES PRODUITS NESTLE SA

Web page control generation method, device, equipment and storage medium

The present invention discloses a webpage control generation method, apparatus, device, and storage medium. The method comprises: obtaining a program module set and a bridge selected by a client developer; determining initialization rules and injection rules based on the bridge; and generating a webpage control based on the initialization rules, the injection rules, and the program module set. The technical solution of the present invention solves both the problem of code duplication and the difficulty in management and maintenance caused by the rapid increase in the number of interaction methods and code. The webpage control can be generated based on the selected program module set and bridge.
Owner:SHANGHAI PUDONG DEVELOPMENT BANK

Material main data optimization and standardization processing method and system based on multi-dimensional matching rule

The invention is suitable for the technical field of data management, and provides a material master data optimization and standardization processing method and system based on a multi-dimensional matching rule, and the method comprises the following steps: S1, data preparation: collecting and sorting material master data, and ensuring that the data has fields matched with a standard library; s2, standard library construction: constructing a standard library containing standard data according to national standard and line standard documents, and regularly updating and maintaining the standard library; and S3, defining a matching rule: according to business requirements and data characteristics, defining a multi-dimensional matching rule including accurate matching and fuzzy matching. According to the material main data optimization and standardization processing method and system based on the multi-dimensional matching rule provided by the scheme, the problems of repeated codes, error codes and missing filling are mainly solved, and the data accuracy is ensured; material architecture optimization is completed, the encoding technology attribute problem is solved, and the reasonability of a data structure is improved; and comprehensive optimization and cleaning of the data are realized.
Owner:BEIJING HONGSHAN INFORMATION TECH RES CO LTD

Circuit board two-dimensional code repeated code monitoring method

The invention discloses a circuit board two-dimensional code repeated code monitoring method, and relates to the technical field of industrial image recognition, and the method comprises the steps: obtaining and processing a global image of a large circuit board, and obtaining a binary image; performing parallel scanning on the binarized image, identifying a locator of the two-dimensional code and determining a boundary and an angle, performing geometric correction on a two-dimensional code area based on the determined boundary and angle, and outputting a corrected standardized two-dimensional code image area; performing parallel decoding on the plurality of corrected standardized two-dimensional code image areas, reading a module sequence, restoring a corresponding data character string, and outputting a data record of a physical position coordinate; and establishing a temporary data cache region for the current large circuit board, and carrying out repeated code judgment on the data record of the physical position coordinate and the record existing in the temporary data cache region. According to the invention, the problem of quality control failure caused by pollution of repeated codes to the traceability system is solved, and the reliability and integrity of the product traceability system in the intelligent manufacturing process are ensured.
Owner:JIANG XI XU SHENG DIAN ZI GU FEN YOU XIAN GONG SI

Anti-counterfeiting product production monitoring and duplicate checking detection method, system and equipment and medium

The invention discloses an anti-counterfeiting product production monitoring and duplicate checking detection method, system and device and a medium, and the method comprises a unique identification generation method which is used for converting product number batch and page number information for identifying the uniqueness of a product into a bar code and drawing the bar code to a printing stock bleeding position; the production monitoring and duplicate checking detection and online comparison method is used for carrying out production whole-process monitoring, duplicate checking detection and online comparison on the unique identification information. According to the technical scheme, the whole production process of the anti-fake product is monitored, the production progress is monitored in real time, duplicate checking detection is achieved for the anti-fake product with one object and one code, and repeated codes are completely eradicated.
Owner:ASYUN TECHNOLOGY (FUJIAN) CO LTD

Phonetic and morphological code Chinese character input method of binary syllabification and initial consonants of head and tail components

The invention discloses a phonetic and morphological code Chinese character input method based on binary syllabification and initial consonants of head and tail components, belongs to the technical field of Chinese character input methods, and aims at solving the problems that an existing phonetic and morphological code input method is unreasonable in key position distribution, high in repeated code rate and too long in code length. The final key positions are mnemonic with the aid of final poems, are classified and distributed at 30 key positions according to final heads, and are combined with compound finals and the like; initial keys correspond to a standard English keyboard, V = zh, I = ch, U = sh, O is a zero initial, y and w are regarded as independent initial, and special keys reuse vowel keys. The initial consonants of radicals or strokes are taken by the head and tail parts, 201 radicals are adopted as the radicals, strokes are taken by non-radicals, the initial consonants of the radicals are taken by the head parts when a single character is the radicals, keys of part of the parts are adjusted, and auxiliary memorization is carried out by marking additional keys through visual elements. Common character codes are'initial consonants + final consonants + initial consonants of a first part + initial consonants of a tail part ', and the codes of words adopt different rules. The method has the advantages that no repeated code is added; the learning cost is low; the memory burden is relieved; the input efficiency is improved; and the repeated code rate is reduced.
Owner:王越泽

Adaptive code generation method and device for multi-source heterogeneous input drive, equipment and medium

The invention provides a multi-source heterogeneous input driven adaptive code generation method and device, equipment and a medium, and belongs to the technical field of software development. The method comprises the steps that multi-modal input for describing a target software function is received; analyzing the multi-modal input, and extracting structured demand information of a target software function; performing dynamic indexing on an existing code library of an item to which the target software function belongs, analyzing a dependency relationship of codes related to the target software function in the existing code library, and constructing a semantic map for the existing code library; based on the structured demand information and the semantic map, using a large language model to generate a full-stack code for a target software function, and performing duplicate code detection and correction on the full-stack code; and adding a traceability declaration to a file header or an annotation part of the full-stack code subjected to duplicate code detection and correction. By receiving the multi-mode input and automatically generating the full-stack code, the workload of manual code writing is reduced, and the software development period is shortened.
Owner:SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD

Multi-data-source data circulation method and device, equipment and storage medium

The embodiment of the invention provides a multi-data-source data circulation method and device, equipment and a storage medium, and is applied to the technical field of data processing. According to the method, a modular and extensible abstract framework is constructed, a task interface, an abstract executor, a data requester and a data converter which are used for standardizing task objects are defined, and a centralized thread pool service is introduced to realize resource isolation and concurrent scheduling. The design supports rapid gap filling type access of a new channel, through unified and standardized operation, a core framework does not need to be modified, the expandability, the code reuse rate and the maintenance efficiency of the system are improved, meanwhile, the concurrent processing capacity and the overall stability of the system are enhanced, and the implementation is easy. The problems that in the multi-source heterogeneous data processing process, expansibility is poor, codes are repeated, and maintenance is difficult are solved.
Owner:LETV NEW GENERATION (BEIJING) CULTURE MEDIA CO LTD

Web page development methods, apparatus, equipment and storage media

This invention relates to the field of computer technology and discloses a method, apparatus, device, and storage medium for developing web pages. The method includes: receiving a web page development request; responding to the request by invoking a pre-built business code library and a pre-built component code library; generating a web page framework based on the business code library; performing conversion processing on the component code library to generate component links corresponding to the component code library; introducing the component links into the web page framework; and generating the web page using the Render function of the Vue framework library. Through this method, the invention can achieve the separation of component code and business code, eliminating the need for further separation of component code, reducing code coupling among multiple developers and departments, lowering communication costs and maintenance management risks, improving page development efficiency, and solving the problem of low web page development efficiency caused by developers repeatedly reviewing code when collaborating with multiple people and departments.
Owner:PING AN HEALTH INSURANCE CO LTD

Data processing method, data processing platform and data processing device

The embodiment of the invention provides a data processing method, a data processing platform and a data processing device, the data processing method is applied to a protocol layer in the data processing platform, and the protocol layer comprises a plurality of protocol interfaces with different protocol types; the data processing method comprises the steps of obtaining to-be-processed data and a device type of the to-be-processed data in response to a data processing request; screening out a target protocol interface from the plurality of protocol interfaces according to the equipment type; and calling the target security protocol to process the to-be-processed data through the target protocol interface to obtain a data processing result. A plurality of protocol interfaces are packaged in a protocol layer, and a proper security protocol is dynamically selected according to the equipment type, so that processing codes are prevented from being independently written for each equipment or protocol, the writing of repeated codes is reduced, the protocol interfaces are uniformly called to complete data processing, errors caused by inconsistent implementation modes are reduced, and the data processing efficiency is improved. And the stability and the reliability of data processing are improved.
Owner:BEIJING URBAN CONSTR INTELLIGENT CONTROL TECH CO LTD

Method and device for generating small trend picture, computer storage medium and terminal

The invention discloses a method and device for generating a small trend picture, a computer storage medium and a terminal.The method comprises the steps that two or more first combined icon objects are constructed, and each sub-element of the first combined icon objects preconfigures interaction characteristics of button release of a trend panel; the generality composition of small trend pictures of different specifications is abstracted into a unified basic template, and a basis is provided for multiplexing a first combined icon object; according to the method, the second combined icon object is selected from the first combined icon object according to the function requirement of the to-be-generated small-trend picture, so that code repetition for realizing the small-trend picture is eliminated, and redundancy of code development and maintenance is reduced; according to the names of the sub-elements, the input parameters and item values required for configuring points in the DCS, the dynamic characteristics of trend panel updating of the second combined icon object are configured, and the differentiation requirements of different small trend pictures are met; by multiplexing the first combined icon object and differentiated configuration processing, the generation efficiency of the small-trend picture is improved.
Owner:BEIJING HELISHI CONTROL TECH CO LTD

Screen adaptive management method and related equipment

The invention provides a screen adaptive management method and related equipment, which can avoid repeated code development, difficulty in maintenance and low development efficiency. The method comprises the following steps: integrating a PageSystem UI abstraction layer in a business Page, and obtaining the UI management capability of a target system; managing the state of the UI component of the target system through an interface provided by the PageSystem UI; monitoring a state change event of a UI component of the target system, and judging whether the state change event is a preset event or not; and if the state change event is the preset event, calling a service Page to execute a corresponding operation.
Owner:WUHAN MUCANG TECH CO LTD

Model construction method and apparatus

Embodiments of the present application provide a model construction method, comprising: displaying a model configuration interface configured with a class tree control; in response to the class tree control being selected, displaying an interface used for displaying a class tree, wherein the class tree comprises a plurality of nodes, and each node corresponds to a class and is configured with a child class adding control; in response to a child class adding control of a target node being selected, displaying a first child class adding interface used for receiving information of a class; and on the basis of the received information of the class, displaying an updated class tree on the interface, wherein the updated class tree comprises a newly added node located at the next level below the target node, and a class corresponding to the newly added node inherits from the class corresponding to the target node. According to the technical solution in the embodiments of the present application, the inheritance relationships between classes can be visually displayed, and visual inheritance is achieved, so that the structure of a model is simplified, and duplicate codes are reduced.
Owner:LIU YI

A laser marking anti-duplicate code device

ActiveCN224475741UComputer hardwareScanner
This utility model provides a laser marking anti-duplicate code device, relating to the technical field of laser marking devices. It includes a positioning chassis, with a marking fixture mounted on the upper end of the chassis. A scanning unit is located on one side of the marking fixture, and an industrial barcode scanner is mounted on one side of the scanning unit. The scanning unit is connected to a marking device mounted on one side of the positioning chassis via a wire. The scanning unit is provided with an independent power supply. The scanning unit is connected in series with a marking signal button. The scanning unit is set to a normally closed state, remaining closed when a QR code is detected and normally open when no QR code is detected. When the scanning unit is normally open, it allows the output of a 24V electrical signal to the marking device for marking. When the product has already been marked, the scanning unit detects the QR code and remains in a normally closed state. At this time, even if the marking button is pressed, the circuit will not close, and no electrical signal will be output to the marking device, thereby preventing duplicate marking.
Owner:苏州奎兢精密电子有限公司

Multi-code decoding method, information matching method and product information management system

The invention provides a multi-code decoding method, an information matching method and a product information management system, and the method comprises the steps: carrying out the first processing of a product image, and obtaining a plurality of image blocks with preset sizes; an improved YOLOv8 multi-target detection model and a TensorRT reasoning acceleration technology are adopted to carry out rapid detection on each image block; eliminating repeated codes in all the image blocks, and cutting each residual code from the image block to which the residual code belongs to obtain a code block of the residual code; and for each residual code, when the confidence coefficient of the residual code exceeds a preset threshold value, calling a plurality of decoding engines according to a priority sequence to analyze the code block of the residual code, judging whether any decoding engine outputs decoding information or not, and if so, determining that decoding succeeds. The invention provides a multi-code decoding method, an information matching method and a product information management system, which are used for solving the problems of management mode lag, high management cost, low management efficiency, asymmetric product information, management errors and the like in the existing product information management.
Owner:WUHAN SANJIANG SPACE NETWORK COMM CO LTD

Method and system for generating a fixed-structure UI page based on data configuration

The present invention provides a method and system for generating a fixed-structure UI page based on data configuration, including: abstracting a page structure and customizing UI template components; defining and configuring corresponding structure data according to the page structure; and completing UI page rendering according to the custom UI template components and structure data. The present invention realizes the secondary encapsulation of the UI framework in a configuration-based manner, which can not only inherit some features of the original UI framework but also include customized functions that meet business requirements. Developers can use it as needed without having to be fully familiar with a new mode. Moreover, the plug-in method provides functions, and the scalability is very high. The more pages of the same mode, the more duplicate codes that developers can avoid, reaching more than 30%. Thus, the purposes of reducing the development difficulty, improving the development efficiency, and unifying the page style are achieved.
Owner:IND BANK CO +1

Component packaging method and device

PendingCN120780294AKnowledge representationSoftware reuseAlgorithmDuplicate code
The invention discloses a component packaging method and device, relates to the field of computers, and is used for solving the problem that a large number of similar or repeated codes exist in project codes. The method comprises the steps that for any function module, first semantic feature information corresponding to the function module is extracted from a first development document, and second semantic feature information corresponding to the function module is extracted from a second development document, based on the first semantic feature information and the second semantic feature information corresponding to the first function module and the second function module respectively, determining module similarity between the first function module and the second function module; if yes, determining the node similarity between a first node in the first function module and a second node in the second function module, and if the node similarity is higher than the module similarity, determining a node capable of being packaged, and performing component packaging on any node capable of being packaged. According to the scheme, duplicated codes in the front-end project can be identified and packaged.
Owner:WEBANK (CHINA)

Code repeatability detection method and related device

PendingCN121387699AError detection/correctionProgramming languageDuplicate content
The invention discloses a code repetition detection method and a related device, relates to the field of software development, and can obtain an online or local modified file list based on a state monitoring instruction. And identifying the type of each code file in the changed file list to obtain the file type of each code file. And according to a repetition degree detection strategy corresponding to the file type, detecting repeated contents of the code file and the target code file to obtain repetition detection result data representing the repeated contents of the code file. And finally, summarizing the repeated detection result data according to a preset generation template to obtain a repetition degree detection report. According to the method, checking can be carried out before local codes are submitted, and the code repetition degree of code changing of developers can be reduced so as to extract or quote public files in advance. And the codes are compared with the target branch codes before being merged, so that developers can be guided to process repeated parts, and the code repetition degree of front-end projects is reduced to a greater extent.
Owner:AGRICULTURAL BANK OF CHINA