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

22 results about "Redundant code" patented technology

In computer programming, redundant code is source code or compiled code in a computer program that is unnecessary, such as...

Text internationalization method and device of iOS application, electronic equipment and storage medium

The application provides a text internationalization method and device of an iOS application, an electronic device and a storage medium. The method comprises the following steps: creating a globalization label for displaying text, and the globalization label inherits a label control for displaying text in the iOS; defining a computed property for the globalization label, and the computed property is used for internationalization processing of an external parameter; when the computed property is assigned by using the external parameter, the external parameter is internationalized by using a preset property assignment calling method, the internationalized external parameter is assigned to an original text of an editor, and an internationalized original text is obtained; and after the computed property of the globalization label receives an external calling request, the internationalized original text is returned to an external caller. The implementation manner of the application is simple, there is no repeated redundant code, the user can uniformly manage the code, and the code reconstruction and replacement cost is reduced.
Owner:CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD

Interface routing methods, devices, equipment and media

This invention discloses an interface routing method, apparatus, device, and medium. The method includes: receiving a routing request sent by an application module to link to a target interface, and obtaining a target interface identifier associated with the target interface in the routing request; determining whether a routing dictionary stored in the routing module includes a registered interface identifier that matches the target interface identifier; the routing dictionary includes multiple sets of registered routing relationship data, each set of registered routing relationship data including a registered interface identifier and a registered interface address associated with the registered interface identifier; when it is determined that the routing dictionary includes a registered interface identifier that matches the target interface identifier, determining the registered interface address associated with the registered interface identifier that matches the target interface identifier as the target interface address; and redirecting to the target interface according to the target interface address. This invention reduces repetitive and redundant code and achieves unified management of interface redirection.
Owner:SHENZHEN PROSCENIC TECH CO LTD

Target page generation method and device, computer device, and storage medium

The application relates to a target page generation method and device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: writing a to-be-laid-out data source into a sub-view control of a to-be-generated page, the sub-view control inherits a page layout of a corresponding parent view control; analyzing the to-be-laid-out data by using the sub-view control, determining elements of the to-be-generated page, and generating a page layout partition model of the to-be-generated page according to positions of the elements; inputting the page layout partition model into the parent view control, and generating a target page according to the page layout partition model by using a proxy method encapsulated by the parent view control. The method does not need to use the proxy method for multiple times when generating the target page, avoids generating a large amount of redundant codes, improves the page generation efficiency of a terminal, and only needs to modify the page layout in the parent view control when the page layout changes, so that the layout of the sub-view control does not need to be set again, and the workload of a developer is reduced.
Owner:KANG JIAN INFORMATION TECH (SHENZHEN) CO LTD

A data processing method and apparatus

The application discloses a data processing method and device, and relates to the technical field of computers. A specific implementation manner of the method comprises the following steps: receiving a definition operation of a syntax rule and a syntax label of an index calculation expression; using the syntax rule to perform lexical analysis and syntax analysis on the index calculation expression, and obtaining a syntax analysis tree; creating an accessor to traverse the syntax analysis tree, and replacing the syntax label in a node in the syntax analysis tree with implementation logic code of the corresponding syntax rule by analyzing the node; determining an index identifier in the index calculation expression, obtaining index data corresponding to the index identifier, processing the index data in sequence according to the position of the node where the implementation logic code is located in the syntax analysis tree, obtaining processing result data, and returning the processing result data. In the implementation manner, for an index definer who can give a data expression, the index definer can efficiently define and efficiently execute a new index without writing redundant codes, and the learning cost and operation cost are relatively low.
Owner:JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD

Method, apparatus and device for determining redundant code, and storage medium

This application provides a method, apparatus, device, and storage medium for determining redundant code. The method involves acquiring access data corresponding to multiple page links in a project to be processed, and a file dependency graph corresponding to the project; determining target page links that meet preset conditions based on preset duration and access thresholds, according to the access data corresponding to the multiple page links; identifying cleanable redundant code files based on the target page link data and the file dependency graph; and cleaning up the redundant code files. This technical solution can more accurately clean up redundant code.
Owner:BEIJING XIAKEHUI INFORMATION TECH CO LTD

Front-end page generation method and device, computer device and storage medium

PendingCN122331898AComputer hardwareRedundant code
This invention relates to the field of artificial intelligence technology and discloses a front-end page generation method, apparatus, computer device, and storage medium. The method includes: obtaining a component development file corresponding to a page design source file, wherein the component development file is a front-end page development file generated after the page design source file is transcoded using a transcoding tool; identifying redundant elements in the component development file based on a recognition method corresponding to different development element types, wherein the redundant elements include unreferenced development elements; filtering out redundant code corresponding to the redundant elements in the component development file to generate an optimized component development file; and generating a front-end page corresponding to the page design source file based on the optimized component development file. This method can be applied to front-end page generation scenarios in fintech and healthcare, reducing the file size of the component development file generated after transcoding by the transcoding tool, thereby improving the loading speed of the front-end page.
Owner:CHINA PING AN LIFE INSURANCE CO LTD

Reverse planetary roller screw pair parametric modeling method

The invention provides a reverse planetary roller screw pair parametric modeling method. The method comprises the following steps: carrying out macro recording on a part three-dimensional modeling process by using a solidworks macro recording function to obtain a macro program; arranging the obtained macro recording program, and removing redundant codes; adding a library file and a connection program into the VB6.0 software to realize connection with the Solidworks software; copying a macro recording code into VB6.0 software, and modifying and perfecting the macro recording code; establishing a reverse planetary roller screw pair parameterized modeling human-computer interaction interface in VB6.0 software; inputting the structural size of the part, and driving solidworks through a program to carry out three-dimensional modeling on the part of the reverse planetary roller screw pair; according to the method, secondary development is carried out on solidwork, parametric modeling of the reverse planetary roller screw pair is achieved, and the requirement for rapid and accurate modeling is met.
Owner:NANJING UNIV OF SCI & TECH

A horizontal table splitting method and device, electronic equipment and storage medium

The application discloses a horizontal table splitting method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring the service type of all data of a service table, performing a horizontal table splitting operation on the service table according to the service type to obtain a plurality of sub-tables; establishing the implementation class of each sub-table and the index value corresponding to the implementation class according to the service type of each sub-table, and storing the implementation class of each sub-table into a spring container, wherein each implementation class shares one data access object interface; associating the index value with a preset proxy class interface, and making the proxy class interface inherit the data access object interface in the spring container, so as to find the implementation class of the corresponding sub-table in the spring container through the index value. The application solves the technical problems of high repeated code amount and redundant code amount and low code flexibility in the current table splitting.
Owner:PING AN BANK CO LTD

Data compression method and device, electronic equipment, medium and product

The invention provides a data compression method and apparatus, an electronic device, a medium and a product. The method comprises the steps of obtaining to-be-compressed text data; determining a single character and a target text character string contained in the text data; wherein the target text character string is a text character string meeting a preset compression condition; obtaining a preset compression coding table; wherein the compressed encoding table comprises a plurality of encoding characters; determining redundant coding characters except the single character in the compressed coding table; updating the compressed encoding table to establish a first mapping relation between the single character and the corresponding encoding character in the compressed encoding table, and establishing a second mapping relation between the target text character string and the redundant encoding character in the compressed encoding table; and based on the updated compression coding table, compressing the text data to obtain a compressed data field. According to the invention, the data storage length can be reduced, so that the storage space is saved.
Owner:CHINA TELECOM CLOUD TECH CO LTD

Resource pool processing method and device, equipment, medium and resource pool management framework

PendingCN121858318AAvoid writing separateavoid writingInterprogram communicationProgram loading/initiatingResource poolRedundant code
The invention provides a resource pool processing method and device, equipment, a medium and a resource pool management framework, and relates to the technical field of OpenStack management. The method is applied to a resource pool management framework, the resource pool management framework comprises a resource management service and a driving layer, and the method comprises the following steps: the driving layer obtains a target resource pool identifier of a to-be-created resource and a reference request parameter required for creating the resource; obtaining a target OpenStack version number and target interface information corresponding to the target resource pool; obtaining a reference OpenStack version number and a plurality of interface conversion functions; according to the reference OpenStack version number and the target OpenStack version number, generating a version number conversion chain; according to the version number conversion chain, the reference request parameter and the plurality of interface conversion functions, recursively determining a target request parameter of the target OpenStack version number; and based on the target request parameter and the target interface information, performing resource creation on the target resource pool. According to the method, redundant codes of the driving layer are reduced, and the maintenance cost of the codes is reduced.
Owner:CHINA UNITED NETWORK COMM GRP CO LTD +2

An apparatus and method for constructing a web front-end application based on object technology

ActiveCN116149648BWeb applicationRedundant code
This invention discloses an apparatus and method for building web front-end applications based on object technology, belonging to the field of Internet technology. It solves the technical problems of existing technologies for building web front-end applications, such as the high learning cost caused by the separation of HTML, CSS, and JavaScript in traditional native methods; difficulties in data access between components during runtime in component-based methods; instability of common basic code and redundant code during component reuse; and difficulties in code understanding, porting, and debugging due to significant differences between component-based implementations and traditional native methods. It includes a main application base class, page view base class, storage base class, event base class, and loading and packaging tool base class, encapsulating common and basic functions in these base classes, while the specific page and function-related code required by the web application is implemented by their respective derived classes. This invention is convenient and quick to build, has a low learning cost, overcomes the problems of unstable common basic code and redundant code in existing component-based methods, and reduces the complexity of inter-component access and operation.
Owner:CHENGDU SUOJI TECH CO LTD

A method and system for identifying redundant code based on a dataflow graph

The application provides a kind of redundant code identification method and system based on data flow graph, solve the problem that prior art cannot comprehensively identify multiple types of redundant code. Through the set operation processing of interface access log, full station scanning result and code repository information, a set of abandoned interfaces is identified;Based on static analysis tool and abstract syntax tree, dynamic call detection and data flow analysis are carried out to identify a set of internal useless codes;Then, through the state check and log analysis of consumer running state, script execution record and task scheduling configuration, a set of abandoned scripts and a set of abandoned consumers are identified and merged to form a set of abandoned components;Further, a system call graph is constructed to perform reverse reachability analysis, to identify a set of cascading abandoned codes;Finally, based on the above various sets, a complete redundant code report containing statistical data, detailed list and risk assessment is generated.
Owner:BEIJING YULORE INNOVATION TECH

Pressure measurement method and device of distributed system, electronic equipment and storage medium

PendingCN121907857ATransmissionRedundant codeJava
The invention relates to a pressure measurement method and device for a distributed system, electronic equipment and a storage medium. The method comprises the following steps: receiving a pressure measurement request initiated by a service end; in response to the pressure measurement request, judging whether a service application corresponding to the pressure measurement request is matched with a preset shadow resource rule or not based on the pressure measurement identifier; if the preset shadow resource rule is matched, routing the pressure test request to a corresponding shadow resource according to a preset hierarchical routing strategy in the shadow resource rule; and if the preset shadow resource rule is not matched, carrying the pressure measurement identifier to the request of the downstream service, so that the downstream service re-executes until the full-link pressure measurement process is completed. Physical isolation of pressure measurement data and production data is achieved from the source, the data pollution problem is thoroughly avoided, manual pressure measurement data cleaning is not needed, and the operation and maintenance cost is greatly reduced; and the pressure measurement identifier is extracted and transmitted in a non-intrusive manner by relying on the Java probe, so that a developer is prevented from manually modifying a service code, and the influence of a redundant code on a service system is eliminated.
Owner:BEIJING QIYI CENTURY SCI & TECH CO LTD

Redundant code bit protection method based on CRC and timestamp, medium and equipment

The invention discloses a redundant code bit protection method based on CRC (cyclic redundancy check) and a timestamp, which comprises the following steps: a data sending step which is executed by a first system and comprises the following steps: acquiring original data to be sent, and calculating a first cyclic redundancy check code of the original data; acquiring a first timestamp of the first system; performing first logic operation on the first cyclic redundancy check code and a first timestamp to generate a sending check code; sending a data packet containing the original data and the sending check code; the data receiving and redundant code generating step is executed by the second system and comprises the following steps of: receiving a data packet, analyzing original data and sending a check code; acquiring a second timestamp of a second system; performing second logical operation on the sending check code and a second timestamp to obtain a receiving check code; recalculating the original data to obtain a second cyclic redundancy check code; and converting to generate a redundancy code based on the received check code and the second cyclic redundancy check code. According to the invention, deep coupling of data timeliness protection and CRC verification can be realized.
Owner:CASCO SIGNAL LTD

Multi-dimensional source code redundancy analysis method based on AI

The invention provides a multi-dimensional source code redundancy analysis method based on AI. The method relates to the technical field of software engineering and intelligent program analysis, and comprises the following steps: analyzing a source code through a grammar analyzer to generate a corresponding abstract syntax tree, and performing code slicing based on the abstract syntax tree to generate a code snippet set. And performing semantic coding on the code snippet set to generate a semantic feature vector, wherein the semantic coding adopts a deep learning semantic coding model. According to the AI-based multi-dimensional source code redundancy analysis method, source codes are analyzed through a grammar analyzer to generate an abstract syntax tree, and redundancy analysis of the source codes is successfully realized further through code slicing and deep learning of a semantic coding model. Through multi-dimensional mapping and weighted fusion calculation of semantic features and historical evolution data, redundant codes can be effectively detected, and the accuracy and efficiency of code analysis are improved.
Owner:HUITONGDA NETWORK CO LTD

Distributed storage method of blockchain

This application discloses a distributed storage method for blockchain, which includes: generating a set of coded fragments corresponding to a target block and a hash value corresponding to each coded fragment according to a preset erasure coding technique, wherein the number of each coded fragment is the same as the number of client nodes, and the set of coded fragments contains all block data of the target block and redundant coded fragments equal to the number of tolerable Byzantine nodes; generating a Merkle tree and a Merkle tree path using the hash values ​​corresponding to each coded fragment as leaf nodes; broadcasting each coded fragment and its corresponding Merkle tree path to the corresponding client nodes for verification and confirmation by each client node to determine whether consensus needs to be reached with the server master node; and storing the set of coded fragments corresponding to the target block on each consensus client node after consensus is reached. Therefore, this application optimizes the storage performance of blockchain while ensuring the correctness and integrity of the stored transaction data.
Owner:SUN YAT SEN UNIV

Code management method, device and equipment

The invention discloses a code management method, device and equipment. The method comprises the steps of obtaining a target code set and demand information, wherein the target code set comprises at least one target code; according to the target code set and the demand information, target code blocks are determined, and the target code blocks and the demand information have relevance; according to the target code block, code statistical information corresponding to the target code set is determined, and the code statistical information comprises an abnormal submission code quantity, a service effective code quantity, a redundant code quantity in the service effective code quantity, position information corresponding to the redundant code quantity and modification suggestion description information; the redundant code quantity comprises a split redundant code quantity and a repeated redundant code quantity. By means of the method, the target code block is determined by combining the demand information, and business validity analysis of the code is achieved; by determining the code statistical information corresponding to the target code set, the validity of the code is evaluated from multiple dimensions, and the accuracy and comprehensiveness of code management are improved.
Owner:CHINA MOBILE (XIONGAN) ICT CO LTD +3

A memory safety management method and apparatus

A memory safety management method is disclosed, comprising: inserting a check statement to check pointer attributes before a risky statement in a first program; the risky statement is a statement in the first program that calls a pointer to access memory, and the pointer attribute is the attribute of the pointer in the risky statement; performing redundant code elimination on the first transformed program and the check statement respectively to obtain a first eliminated program and a second eliminated program; the first transformed program is an intermediate representation generated by compiling the first program; performing machine instruction conversion on the second eliminated program during compilation to obtain a second transformed program; and generating a target executable file based at least on the second transformed program and the first eliminated program. This method performs redundancy optimization on the first program before the check statement performs compilation conversion during compilation, which can improve the performance of code optimization during compilation.
Owner:HUAWEI TECH CO LTD

Project redundancy dependency detection method and device fusing bytecode and source code analysis

The invention discloses a project redundancy dependency detection method and device fusing bytecode and source code analysis, and the method comprises the steps: firstly obtaining direct dependency from input project data, and constructing a dependency-class knowledge base; then, performing byte code level analysis of classes and methods on the compiled project data by adopting a preset byte code framework, and extracting a visible calling relationship during operation; analyzing the input item data by adopting a source code analysis method based on an abstract syntax tree to obtain a calling relationship which cannot be reflected by byte codes; analyzing the jar file of the input project data by adopting a preset tool, and generating a calling relationship between classes and methods in the project; and finally, according to the calling relationship extracted in the previous step and the dependency-class knowledge base, identifying the used dependency and the redundant dependency. According to the method, a redundant code recognition mechanism is combined in the redundant dependency detection process for the first time, fusion of dependency analysis and code use analysis is achieved, and the accuracy and comprehensiveness of redundant dependency detection are improved.
Owner:HUAZHONG NORMAL UNIV

Method, device, system, equipment, cluster, product and medium for preventing generation of redundant codes

The invention provides a method, a device, a system and equipment for preventing generation of redundant codes, a cluster, a product and a medium. The method is applied to an early warning module, the early warning module is externally connected to a large code model, and the method comprises the steps that in the reasoning process of the large code model, a semantic vector of a target code unit output by the large code model is obtained, the target code unit comprises one or more code units, and the semantic vector is stored in the target code unit; the code unit is a basic grammar unit in a code; on the basis of the semantic vector of the target code unit, predicting the probability that the code large model currently generates redundant codes; under the condition that the probability is larger than a preset probability threshold value, a stop notice is sent to the code large model, and the stop notice is used for indicating the code large model to conduct reasoning. According to the scheme, generation of redundant codes can be effectively prevented, and the code generation efficiency of the code large model is improved.
Owner:HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD +1

Open world standardization processing method and system

The invention discloses an open world standardization processing method and system, and the method comprises the following steps: S1, dividing an open world scene into a plurality of logic tiles, abstracting all to-be-managed scene objects into a unified basic data structure, and forming tile data associated with the logic tiles; s2, in a working thread independent of a main thread, based on the tile data, executing hierarchical loading, unloading management and integrated data rejection for the logic tiles; and S3, synchronizing the rendering data processed by the working thread to a main thread, and calling a graphic engine interface by the main thread to instantiate and render. According to the application, the load of a main thread is remarkably reduced, a unified data abstraction and tile management framework is realized on the architecture, different modules such as physical modules, illumination modules and audio modules can be accessed in the same normal form, redundant codes are eliminated, and the system complexity is reduced.
Owner:SHANGHAI JIMI NETWORK TECHNOLOGY CO LTD

Search engine query processing method and apparatus

This invention discloses a search engine query processing method and apparatus. The method includes: receiving query code; the query code comprising a custom data structure composed of multiple predefined functions; the predefined functions including query type functions, aggregation functions, and logical type functions; the custom data structure encoding multiple sub-queries in a nested manner; converting the query code into a structured message based on the custom data structure; translating the structured message into a query language according to search engine language specifications; and requesting query results from the search engine using the query language to obtain the query results returned by the search engine. This invention can improve query processing efficiency and reduce redundant code development.
Owner:BEIJING YAKE PAYMENT TECHNOLOGY CO LTD