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

18 results about "Code readability" patented technology

Code readability is key for large software projects with many developers, and where the source code that is being written will have to be modified by another person. Code readability plays a central part at the Guardian digital department, where the scale of the projects is large and developers are encouraged to rotate teams.

Method and system for cobol to java program conversion based on syntax tree

PendingCN122411953APathPingSource code file
The application discloses a COBOL-to-Java program conversion method and system based on a syntax tree, belongs to the technical field of computer program language conversion, and comprises the following steps: obtaining a COBOL source program file to be converted and configuration rules; performing lexical analysis and syntax analysis to generate an abstract syntax tree; converting COBOL syntax elements into corresponding Java semantic representations according to pre-defined semantic mapping rules; establishing an accurate access chain of a main program and COPYBOOK internal variables through variable path tracking; detecting and solving naming conflicts of COBOL different-level same-name variables based on a scope tree, and renaming variables by adding a parent class name prefix; and generating the converted Java semantic representations into a Java source code file. The application realizes high-fidelity and high-automation COBOL-to-Java conversion, significantly reduces the migration cost of a legacy system, and generates code with strong readability and excellent performance.
Owner:SHANDONG CITY COMMERCIAL BANK COOP ALLIANCE CO LTD

Code repair method and device, electronic equipment, storage medium and product

Embodiments of the present application provide a code repair method and device, electronic equipment, storage medium and product. The method comprises: extracting binary features of a packed file, inputting a pre-trained convolutional neural network model to obtain target packing features corresponding to the packed file, performing unpacking processing on the packed file to obtain an unpacked file; performing decompilation processing on the unpacked file to obtain decompiled code, and performing semantic recognition on the decompiled code by a language recognition model to perform symbol recovery processing to obtain symbol recovery code; performing structural processing on the logic of the symbol recovery code by abstract syntax tree technology to obtain structured code; and performing compilation repair processing on the structured code to obtain target code. The above scheme accurately identifies the target packing type by using the pre-trained convolutional neural network model, automatically performs targeted repair according to the target packing type, can accurately repair the influence of the packing tool on the readability of the code, and thus improves the accuracy of code repair.
Owner:SHENZHEN XINGHAN LASER TECH CO LTD

An NPU system register verification method, system and readable storage medium

PendingCN122635270AMaintainabilityCode readability
The present application relates to the technical field of chip design verification, and especially relates to an NPU system register verification method, system and readable storage medium, wherein register information is directly extracted from a chip specification document through an automatic information extraction tool, and an inefficient and error-prone link of manual arrangement is abandoned; the extracted information is converted into structured data and access constraint information is generated, and is integrated into a transaction class, unified and centralized management of access constraints is realized, scattered conditional judgments in verification code are avoided, and code readability and maintainability are significantly improved; when a register access operation is initiated, pre-checking is automatically performed by the transaction class according to the integrated access constraint information in the internal, and if the checking is passed, the operation is executed, and if the checking fails, an error is thrown, so that a constraint violation problem is captured in the transaction initiation stage, error information is intuitive, and problem positioning difficulty is greatly reduced.
Owner:CIX TECH (SHANGHAI) CO LTD

A rapid development and verification method for a wireless charging system

The technical scheme of the present application provides a wireless charging system rapid development and verification method. The present application makes full use of the advantages of high compatibility, high adaptability and high code readability of the debugging platform, and uses the same debugging platform unified debugging interface design and debugging wireless charging system. Through the method provided by the present application, the research, simulation and real demonstration of the control algorithm of the charging system in the actual deviation, disturbance and fault can be realized, and the response speed and steady state characteristics of the actual controller can also be quickly verified. The present application provides a fast, reliable and practical verification platform for verifying the key technology research of input, position and load disturbance change on the safe and stable output of the system.
Owner:SHANGHAI TECH UNIV

A flood evolution analysis method based on instant compiling technology

The application discloses a flood evolution analysis method based on instant compiling technology, mainly comprising the following steps: setting a hardware acceleration environment, specifying a calculation time and an iteration step length, loading a grid topological structure, an initial water level and an initial flow velocity, a grid roughness field and model boundary conditions, optimizing codes of a finite volume method and a HLLC shallow water equation solving algorithm based on instant compiling technology, and realizing parallel acceleration simulation of flood evolution. The method is written in Python language with strong interpretability to compile shallow water equation solving codes, and machine codes are generated by instant compiling technology during runtime to greatly improve code running efficiency. Different hardware platforms such as CPU, GPU or CUDA can be selected to perform parallel acceleration solving on the shallow water equation, simple and efficient simulation of flood evolution is realized, and the method has the advantages of strong code readability and high performance.
Owner:NANJING INST OF GEOGRAPHY & LIMNOLOGY

A method for locating a source code location of a software problem by a log, an electronic device

The application discloses a method for locating software problem source code position through a log, and electronic equipment, comprising the following steps: acquiring a log output point of the target software, creating an index record for the log output point, detecting source code position information of each log output point, analyzing log content of each log output point based on the source code position information, extracting and generating feature values corresponding to the log content, constructing a log index library, receiving an actual running log, extracting feature values of the log, and performing matching in the log index library to determine the source code position corresponding to the log output point, and locating to a specific position of the source code according to a matching result. The application is beneficial to improving code performance and readability, does not depend on code position information output in the log, reduces requirements on the log format, enhances code readability, improves the integrity of the log by scanning the code and providing suggestions for improving the log, and the like.
Owner:CHINA FAW CO LTD +1

Special effect processing method and device, electronic equipment, storage medium and program product

The embodiment of the invention provides a special effect processing method and device, electronic equipment, a storage medium and a program product. The method comprises the following steps: in response to a special effect processing request input at a client, obtaining special effect input information and a target special effect file; wherein the target special effect file comprises at least one special effect processing component and a component scheduling file; the component scheduling file comprises component scheduling logic used for scheduling the special effect processing component; and processing the special effect input information through the component scheduling file and the special effect processing component to obtain target special effect information corresponding to the special effect input information, and displaying the target special effect information on the client. According to the technical scheme provided by the embodiment of the invention, the problems that the readability of codes in the special effect file is poor and subsequent maintenance of the special effect file is inconvenient in the related technology are solved, the special effect file in special effect processing is componentized, and the readability and maintainability of the codes in the special effect file can be improved.
Owner:BEIJING ZITIAO NETWORK TECH CO LTD

Methods and plugins for automatically detecting unimplemented functions based on the Xcode protocol.

This invention provides a method and plugin for automatically detecting unimplemented protocol functions based on Xcode. It obtains the configuration file of the currently foreground Xcode project; parses the configuration file to obtain all class and protocol data for the project; calculates an array of unimplemented protocol functions based on all class and protocol data; and outputs the array in JSON format. This achieves automated detection of unimplemented protocol functions, saving time and development costs, reducing missed functions due to human error, reducing trial and error and maintenance costs, and offering high accuracy. The functions are uniformly stored in a designated area for easy viewing and modification, reducing maintenance difficulty and time, and providing good code readability.
Owner:宝宝巴士股份有限公司

Annotation statement generation method and device, storage medium and electronic equipment

PendingCN121166194AProgram documentationCode compilationEngineeringCode annotation
The invention discloses an annotation statement generation method and device, a storage medium and electronic equipment. The method comprises the steps that a target path and an annotation generation option are received, and the annotation generation option is used for indicating attribute information of a target annotation statement; determining file structure information based on the target path, the file structure information being used for determining annotation content of the target annotation statement; and generating a target annotation statement according to the file structure information and the annotation generation option, and inserting the target annotation statement in the target position. The technical problem that code readability is poor due to nonstandard code annotation is solved.
Owner:CHINA CONSTRUCTION BANK +1

Method and system for code summarization based on hypergraph representation

The application provides a code summary generation method and system based on a hypergraph representation, and relates to the technical field of code data processing. The source code is converted into an abstract syntax tree, and the abstract syntax tree is pruned; a code hypergraph is constructed using the pruned abstract syntax tree; based on the constructed code hypergraph, code hypergraph data is input into a trained summary generation model to obtain a code summary. The summary generation model includes an encoding layer, and the encoding layer includes a hypergraph neural network layer. The hypergraph neural network layer uses a three-step message passing mechanism to aggregate information of the code hypergraph data. The three-step message passing mechanism is used to aggregate high-order interaction information of the code hypergraph, breaking through the limitation of traditional ordinary graphs that can only express second-order relationships, effectively capturing high-order dependencies and group interactions in the code, fully representing the complex semantics of the code, improving the accuracy of code summary generation, accurately reflecting the core functions of the code, improving the readability of the code, and reducing the software development and maintenance cost.
Owner:HEFEI UNIV OF TECH

Automatic generation method of UML sequence diagrams compatible with multilingual code analysis

This invention provides an automatic UML sequence diagram generation method compatible with multilingual code analysis. By capturing the characteristics of C++ and Java code, it identifies the code types of each part of the mixed source code and analyzes different code types. For code marked as C++, regular expressions are used to match keywords, class information, and inheritance information of the C++ source code to be analyzed, and these are converted into parameter names. For code marked as Java, syntax and lexical analysis are used to extract class information and method call information of the Java source code to be analyzed. Corresponding Plant UML code is generated and drawn as a comprehensive UML sequence diagram. This invention's automatic UML sequence diagram generation method compatible with multilingual code analysis can intuitively reflect the functional and logical composition of mixed C++ and Java code, and intuitively reflect the interaction relationship between them. It avoids the need to view tedious source code to obtain program information and functional relationships, improving code readability and maintainability.
Owner:HEFEI UNIV OF TECH

A code readability evaluation method based on a program graph and a graph neural network

ActiveCN116048614BProgram graphData stream
The application discloses a code readability evaluation method based on a program graph and a graph neural network, mainly relates to a program graph based on an abstract syntax tree and a graph representation learning method based on a graph neural network, and comprises the following steps: firstly, converting source code into an abstract syntax tree, then adding data flow and control flow edges to obtain a program graph; then, performing node embedding on the program graph through a pre-training model and one-hot encoding; finally, obtaining source code semantic information through graph neural network learning and training to obtain a readability evaluation prediction result. The application overcomes the characteristics that current code representation methods lack semantic information extraction and are difficult to be organically integrated with a deep learning framework, proposes an effective graph representation method, and improves the readability classification accuracy.
Owner:BEIJING UNIV OF TECH

Code readability classification method and system based on hypergraph representation

The application provides a code readability classification method and system based on a hypergraph representation, and relates to the technical field of neural networks. The method comprises the following steps: constructing an abstract syntax tree according to obtained source code; adjusting edges between nodes with a parent-child relationship in the abstract syntax tree into parent-child hyperedges to obtain a code hypergraph, wherein the feature of each node in the code hypergraph is the average value of all tokens contained in the corresponding position range of each node; constructing a row-level hyperedge according to the code sequence of the source code by rows, wherein the node feature of the row-level hyperedge is the token extracted by performing word segmentation on the code by rows; extracting the node feature of the row-level hyperedge, aggregating the node features of the parent-child hyperedges in the code hypergraph, mining context semantic information in the code data, obtaining deep structure information of the source code, integrating the mined node features and hyperedge information into a node feature matrix and an association matrix, inputting the node feature matrix and the association matrix into a trained hypergraph neural network model, and obtaining a readability classification result, so that the readability classification result is more accurate.
Owner:HEFEI UNIV OF TECH

Code readability classification method and system based on hypergraph representation

The invention provides a code readability classification method and system based on hypergraph representation, and relates to the technical field of neural networks. The method comprises the following steps: constructing an abstract syntax tree according to an obtained source code; edges between nodes with the father-son relation in the abstract syntax tree are adjusted to be father-son hyperedge, a code hypergraph is obtained, and each node in the code hypergraph is characterized by the average value of all tokens contained in the position range corresponding to each node; row-level hyperedges are constructed for the code sequence of the source code according to rows, and node features of the row-level hyperedges are tokens for performing word segmentation extraction on the codes according to the rows; extracting node features of row-level hyperedges, aggregating node features of father and son hyperedges in the code hypergraph, mining context semantic information in code data to obtain deep structure information of a source code, integrating the mined node features and hyperedge information into a node feature matrix and an incidence matrix, and inputting the node feature matrix and the incidence matrix into a trained hypergraph neural network model to obtain a hypergraph neural network model; and a readability classification result is obtained, and the readability classification result is more accurate.
Owner:HEFEI UNIV OF TECH

Method for locating source code location of software issue by means of log, and electronic device

Disclosed in the present invention are a method for locating a source code location of a software issue by means of a log, and an electronic device. The method comprises: acquiring log output points of target software, and creating index records for the log output points; detecting source code location information of each log output point, analyzing the log content of each log output point on the basis of the source code location information, and extracting and generating a feature value corresponding to the log content; constructing a log index database; and receiving an actual running log, extracting a feature value of the log, performing matching in the log index database to determine source code locations corresponding to the log output points, and locating the specific location of a source code on the basis of a matching result. The present invention can improve the code performance and readability, does not depend on code location information outputted in a log, reduces requirements for a log format, enhances code readability, improves the integrity of the log by scanning the code and providing suggestions for perfecting the log.
Owner:CHINA FAW CO LTD +1

A motion controller program development system based on a general programming language

This invention discloses a motion controller program development system based on a general-purpose programming language, relating to the field of motion control software development. The system includes: a program document management module for creating, opening, closing, and synchronously managing the status of multiple motion control program documents, and supporting unified state switching between editing, compiling, running, and debugging states; an integrated editing and debugging module for providing a code editing environment conforming to the syntax of a general-purpose programming language, and integrating compilation control, debugging control, and a real-time communication interface with the motion controller hardware; and a multi-view interactive interface for simultaneously presenting program document identifiers and status views, a code editing view and debugging control panel for the currently active program document, and a program execution status and result output view. This solution reduces the time cost and technical barriers associated with learning dedicated scripting languages, and simultaneously enhances code readability and debuggability.
Owner:WUXI XIVI SCI & TECH CO LTD

Flood routing analysis method based on just-in-time compiling technology

The invention discloses a flood routing analysis method based on a just-in-time compiling technology, and the method mainly comprises the steps: setting a hardware acceleration environment, appointing calculation time and an iteration step length, loading a grid topological structure, an initial water level, an initial flow velocity, a grid roughness field and a model boundary condition, code optimization is performed on a finite volume method and an HLLC shallow water equation solving algorithm based on a just-in-time compiling technology, and parallel acceleration simulation of flood routing is realized. According to the method, a Python language with high interpretability is adopted to compile shallow water equation solving codes, the codes are generated into machine codes through an instant compiling technology during operation so as to greatly improve the code operation efficiency, different hardware platforms such as a CPU, a GPU or a CUDA can be selected to carry out parallel acceleration solving on the shallow water equation, simple and efficient simulation of flood routing is achieved, and the method is suitable for large-scale popularization and application. The method has the advantages of high code readability, high performance and the like.
Owner:NANJING INST OF GEOGRAPHY & LIMNOLOGY

Automatic Android binary anti-obfuscation method based on intelligent agent

The invention provides an automatic Android binary anti-obfuscation method and system based on an intelligent agent. The method and system are specially used for recovering logic of an Android binary file (. So) subjected to instruction replacement, false control flow injection and control flow planarization processing. According to the method, efficient automation is realized through a hybrid analysis process: an intelligent agent firstly calls a large language model to perform global scanning, identifies confusion features and generates a hierarchical task list; then, the intelligent agent is preferentially simplified, opaque predicates and false branches are removed, and preliminary purification is completed; thirdly, for the residual complex CFF structure, performing deep analysis, iteratively constructing a real control flow diagram, and removing false scheduling blocks; and finally, logically reconstructing and summarizing the RCFG and the anti-obfuscation code and generating an audit log. The hybrid analysis method effectively solves the illusion problems of symbolic execution path explosion, low efficiency of manual analysis and simple large model analysis, and significantly improves the automation degree and code readability of anti-confusion.
Owner:GUANGZHOU INSTITUTE OF TECHNOLOY XIDIAN UNIVERSITY