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

221 results about "Code transformation" patented technology

Natural language to low code conversion method based on multi-modal reinforcement learning

The invention discloses a method for converting a natural language into a low code based on multi-modal reinforcement learning, which comprises the following steps of: performing word segmentation, embedding and multi-layer feature extraction on a natural language instruction input by a user, combining a self-attention mechanism and a graph attention mechanism, extracting and optimizing an original semantic feature vector, and automatically identifying a business field; semantic relationship triples in the domain knowledge graph are fused, and a multi-modal semantic alignment and context enhancement strategy is adopted, so that the accuracy and stability of semantic representation are remarkably improved; when semantic drift or ambiguity is detected, a multi-candidate correction mechanism is triggered to obtain a better analysis result, and the robustness of semantic understanding is enhanced; and finally, mapping an analysis result into an instruction which can be identified by a low-code platform, automatically generating a code structure, continuously optimizing a semantic model and a knowledge graph based on user feedback, realizing adaptive learning, and improving the conversion efficiency and quality from a natural language to codes.
Owner:GUANGZHOU ZHUORUI DIGITAL TECHNOLOGY CO LTD

System for assisting to transplant Android language to ArkTS (Arkaus) language of swan Mongolia

The invention relates to the technical field of computer software engineering and cross-platform development, in particular to a system for assisting in transplanting Android language to ArkTS (ArkTS) of the swan Mongolia, which comprises a code input module for acquiring Java and Kotlin double-language source codes, an analysis module for analyzing codes by using an improved grammar analysis algorithm, and a storage module for storing the codes. The translation module constructs an abstract syntax tree based on an analysis result and generates an attribute description array, and the generation module generates an ArkTS interface code according to the attribute description array; the distributed computing architecture realizes efficient task scheduling and processing, and the post-processing optimization module guarantees the code quality. Through multi-module cooperation, the probability-rule fusion algorithm, the type dynamic mapping and other technologies, code transplantation can be rapidly and accurately completed, the large project transplantation period is shortened from several weeks to several days, the manual correction cost is reduced, the code conversion accuracy and the system stability are improved, and the development of the wide-gap application ecology is powerfully promoted.
Owner:XIAMEN BEST DIGITAL TECH CO LTD

Code quality adaptive evaluation and optimization method, system, equipment and medium

The invention provides a code quality adaptive evaluation and optimization method, system and device and a medium, and belongs to the technical field of computers. The method comprises the following steps: performing redundant information cleaning and standardization processing on an original code; selecting an adaptive parser to convert the processed code into an abstract syntax tree, and optimizing the abstract syntax tree; performing embedding processing on each node of the abstract syntax tree by using a pre-trained deep learning model to generate a node semantic vector, and performing aggregation, feature extraction and vector normalization operation to obtain a semantic vector representing code semantic features; extracting a dependency relationship from the abstract syntax tree to construct a program dependency graph, extracting node features by using a neural network model, and generating a dependency relationship analysis result; based on the semantic vector and the dependency analysis result, identifying a code potential problem by using an optimization algorithm and generating an optimization suggestion; codes are automatically modified according to optimization suggestions, the optimization effect is re-evaluated, and related models and algorithms are iteratively optimized according to feedback information.
Owner:浪潮智慧科技有限公司 +2

Java-to-ArkTS code conversion method and system based on large model

The invention provides a Java-to-ArkTS code conversion method and system based on a large model, and belongs to the field of computers.The Java-to-ArkTS code conversion method comprises the steps that S1, a Java project to be converted is comprehensively analyzed, the dependency relationship and semantic information between files are extracted, and a code knowledge graph is constructed; s2, determining a code conversion sequence based on the code knowledge graph, extracting context information and multi-modal semantic information of a to-be-converted code, and completing conversion from Java to TS codes in combination with a multi-agent cooperation mechanism; and S3, comparing and analyzing the TS code with an official ArkTS coding specification, identifying a violation code, and correcting and verifying the violation code through a plurality of intelligent agents to generate an ArkTS code which accords with the ArkTS grammar specification and is consistent in semantics. According to the method, the automatic migration from the Java project to the ArkTS project can be effectively supported, the project migration efficiency and the code quality are improved, and the manual intervention cost is reduced.
Owner:BEIHANG UNIV

Program creation assistance device and computer program

[Problem] To enable a user who creates a control program used in a programmable logic controller to enjoy the benefit of an LLM. [Solution] First information pertaining to an input / output apparatus connected to a PLC, second information pertaining to at least one of a command or a program module for controlling the input / output apparatus, and third information indicating control content implemented in combination with the command or the program module are received in a natural language. On the basis of same, a natural language prompt for generating a text code corresponding to a ladder diagram is generated. The prompt is transmitted to the LLM and an answer sentence is received from the LLM. A text code included in the answer sentence is converted into a ladder diagram. In addition, the prompt includes fourth information that constrains the text code included in the answer sentence to be suitable for the conversion into the ladder diagram.
Owner:KEYENCE CORP

Context aware transcoding and optimization based on neural network

Systems and methods for efficiently converting program code from a source language to a target language. Input source code is parsed into an intermediate representation (IR) using a processor device. Structural and semantic models of the source code are established by applying static analysis to the IR, and a program architecture of the target code is constructed from the IR, including generating context-aware placeholders. The IR is transformed into a single static assignment (SSA) form, and a system dependency graph (SDG) is constructed from the SSA form. The SDG is traversed to sort the translation tasks, and the sorted tasks are translated into a target language using a large language model (LLM). A translated program is generated by integrating the translated code segment into a coherent program structure in the target language.
Owner:INTERNATIONAL BUSINESS MACHINE CORPORATION

Standardizing enterprise software code through LLMs

A computer-implemented method and system standardize code patterns within enterprise software environments. A code modernization system utilizes a Large Language Model (LLM) and a specialized prompt library. The library includes pattern recognition prompts to guide the LLM in identifying specific code patterns within selected software code, potentially using enterprise-specific context. It also includes standardized solution prompts to guide the LLM in generating replacement code conforming to predefined enterprise standards for the identified patterns. The system orchestrates communication, transmitting code and relevant prompts to the LLM and receiving identified patterns and subsequently the generated standardized replacement code. This automated approach facilitates improved code quality, consistency, maintainability, and can support code translation efforts within the enterprise.
Owner:MORGAN STANLEY SERVICES GROUP INC

Program code intelligent conversion method and system based on knowledge graph

The invention relates to the technical field of computer science, in particular to an intelligent program code conversion method and system based on a knowledge graph. The method comprises the following steps: acquiring a source code and performing structured analysis to generate an initial feature vector of a node; constructing a semantic topology network based on the initial feature vector of the node, dynamically updating the node feature vector and the edge weight, generating an optimized semantic topology network, and mapping the node feature vector to a target semantic space in combination with a cross-language semantic mapping rule of the knowledge graph to generate a target semantic vector; and based on the basic framework of the target language, constructing an initial code, and recursively filling the code snippets to generate a target code. The problem that a traditional code conversion method lacks universality and deep mining of program semantics is solved. A complex dependency relationship is often difficult to effectively identify and analyze, so that the performance and the maintainability of generated codes are relatively poor; and a dynamic adjustment mechanism is lacked, so that the accuracy and integrity of generated codes are relatively low.
Owner:山东衡昊信息技术有限公司

Custom code assistant system facilitating code conversion methodology

ActiveUS20250224944A1Semantic analysisVersion controlSoftware distributionLinguistic model
Systems and methods obtain a translation request accompanying source code of source file(s) for conversion. Formatting of the source code of the source file(s) is verified and the source code is converted to target code that includes target file(s). The converting (i) maps programming language functions of the source code to corresponding programming language functions of the target code and (ii) utilizes, through customized prompt template(s), one or more large language models (LLMs) hosted by a cloud platform during the code conversion, where a source application that uses the source code includes TIBCO™ software. The target file(s) are distributed.
Owner:TRUIST BANK

Text-based software source code multistage feature generation method

The invention relates to a text-based software source code multistage feature generation method, and belongs to the technical field of software code reuse detection. According to the method, the Hash values of the file and the effective code are calculated through the Hash algorithm, the file fingerprint and the code fingerprint are formed and used for file or code-level code reuse detection, the detection efficiency is high, and the detection result is accurate; effective code hash values are calculated through a hash algorithm, code fingerprints are formed and used for code reuse detection of the code level, the influence of code modification modes such as adding or deleting annotations, spaces, table making characters, car returning and line feed codes on code reuse detection in the code reuse process is eliminated, and the detection rate of code reuse detection is increased; according to the method, the features of the file, the effective code and the code block are calculated through the Hash algorithm, the software source code with the complex content is converted into a set of Hash values with the fixed length, the code reuse detection efficiency is improved, and efficient code reuse detection in a large-scale data scene is achieved.
Owner:BEIJING INST OF COMP TECH & APPL

Black box code search model backdoor attack method based on learnable discrete code transformation

A black box code search model backdoor attack method based on learnable discrete code transformation comprises the steps that a learnable backdoor generator is constructed, and malicious codes with backdoors are generated on the premise that internal parameters of a damaged model are not accessed through the learnable discrete code transformation. Firstly, an agent model capable of simulating victim model behaviors is trained through query-response data; secondly, on the proxy model, a discrete selection process is differentiable by using a re-parameterization sampling technology, and a backdoor generator is trained in combination with a multi-objective loss function so as to realize effectiveness and concealment of backdoor implantation; according to the method, the limitation of a black box is successfully bypassed by constructing the proxy model, and a new possibility is provided for an attacker. A backdoor generation process is integrated into a differentiable training framework through learnable discrete transformation, so that end-to-end learnability is realized, and an attack strategy can be automatically optimized.
Owner:NANJING UNIV OF POSTS & TELECOMM

Test method, test device, test tool, storage medium and computer equipment

The invention discloses a test method, a test device, a test tool, a storage medium and computer equipment. The method comprises the following steps: in response to an instruction of executing a test task of a target application in a target scene, determining a test path of at least one to-be-tested functional component associated with the test task; identifying the type of a network communication mechanism between the to-be-tested functional components; mapping a network communication protocol of the to-be-tested functional component to a code conversion template corresponding to the network communication mechanism category to form a test script code of the to-be-tested functional component; and sequentially running the test script code of the at least one to-be-tested functional component based on the test path to execute the test task. According to the method provided by the invention, the time and workload of developing and maintaining a test tool or an engine are reduced, simulation in a real scene can be realized, state monitoring of the target application in the target scene is facilitated, and the quality of the application is evaluated more comprehensively.
Owner:BEIJING CENTURY TAL EDUCATION TECH CO LTD

Code generation method and device based on script syntax, equipment and medium

The invention provides a code generation method, device and equipment based on script grammar and a medium, and the method comprises the steps that firstly, a target text in an editing area is acquired, and the grammar of the target text is script grammar; segmenting the target text to generate at least one character string, and constructing a corresponding syntax tree for each character string to form a syntax tree queue; and finally, traversing the syntax tree queue, and converting each syntax tree into a target code according to a preset grammar and code conversion rule. According to the method, more standard and unified C + + enabling judgment logic codes can be quickly and efficiently generated.
Owner:AUTOLINK INFORMATION TECHNOLOGY CO LTD

Systems and methods for dynamically generating and mapping unicode for cross-distributed network data transmissions

ActiveUS20250330197A1Code conversionSchema mappingLinguistic model
Systems, computer program products, and methods are described herein for generating and mapping unicode for cross-distributed network data transmissions. The present disclosure is configured to identify a cross-distributed network data transmission comprising source ledger code; generate a core schema for a destination ledger, wherein the destination ledger is based on data of the cross-distributed network data transmission; generate, by a ledger transformation module, a data dictionary, wherein the ledger transformation module receives ledger code from a large language model (LLM); generate code mapping instructions for the cross-distributed network data transmission based on the core schema for the destination ledger; convert the source ledger code to a unicode; receive, by a receiver schema mapping module, the unicode and the code mapping instructions; and generate, by the receiver schema mapping module, an intermediary ledger comprising the unicode and based on the code mapping instructions.
Owner:BANK OF AMERICA CORP

Cross-language migration method based on hybrid expert and code conversion data

The invention provides a cross-language migration method based on mixed experts and code conversion data, which comprises the following steps of: 1, synthesizing the code conversion data based on a data distillation method to obtain a code conversion data set; step 2, constructing a hybrid expert model; 3, training the hybrid expert model constructed in the step 2 by using the code conversion data set obtained in the step 1 to obtain a trained hybrid expert model; and step 4, realizing cross-language migration by using the trained hybrid expert model. According to the invention, the hybrid expert structure can ensure that the English ability is unchanged in the code conversion data training process, so that the cross-language enhancement effect of the code conversion data can be further stimulated; the method can be applied to all open source large models in an unlimited manner, and the English cross-language migration capability can be transferred to any language, so that the multi-language capability of the model is effectively improved.
Owner:NANJING UNIV

Custom code assistant system facilitating code conversion methodology

Systems and methods obtain a translation request accompanying source code of source file(s) for conversion. Formatting of the source code of the source file(s) is verified and the source code is converted to target code that includes target file(s). The converting (i) maps programming language functions of the source code to corresponding programming language functions of the target code and (ii) utilizes, through customized prompt template(s), one or more large language models (LLMs) hosted by a cloud platform during the code conversion, where a source application that uses the source code includes TIBCO™ software. The target file(s) are distributed.
Owner:TRUIST BANK

Compiling method and device of operator, equipment and medium

The invention provides an operator compiling method and device, equipment and a medium, and relates to the technical field of artificial intelligence. The operator compiling method comprises the following steps: obtaining a to-be-compiled operator source code, wherein the operator source code is a code compiled by adopting a field-specific language based on Triton; converting the operator source code into Triton intermediate representation, wherein the Triton intermediate representation is used for representing computational logic of the operator source code; carrying out optimization which does not involve chip information on an operator based on the Triton intermediate representation to obtain an optimized intermediate representation; and compiling the optimized intermediate representation through a Triton compiler corresponding to the target chip to obtain a target code. Open sources can be conveniently realized in partial stages in the operator compiling process, so that the partial compiling process of the operator can be conveniently optimized and expanded based on the open sources.
Owner:ZHONGKE JIAHE (HANGZHOU) TECHNOLOGY CO LTD

Automatic vulnerability detection method based on intermediate pseudo code and graph neural network

The invention provides an automatic vulnerability detection method based on an intermediate pseudo code and a graph neural network. The method comprises the following steps: converting an assembly code of a binary program into a pseudo code; identifying a sensitive function; constructing a data dependency graph (PDG), and extracting a data dependency sub-graph by taking the key function as a central node; generating a graph semantic embedding vector by combining a pre-training model CodeT5-small and a graph attention network (GAT), and generating a graph structure embedding vector by using a node2vec algorithm; training is carried out through a double-branch feature analysis model based on a graph convolutional neural network (GCN) and a classification model of a multi-layer perceptron (MLP); and detecting vulnerabilities by using the trained model. According to the method, the sensitive function vulnerability of the binary program can be distinguished under the condition that source codes do not exist, the accuracy and efficiency of automatic vulnerability mining are remarkably improved, the limitation of a traditional automatic vulnerability mining method is effectively solved, and the method has important practical application value.
Owner:NANJING UNIV OF POSTS & TELECOMM

Apparatus and method for analyzing vulnerabilities of smart contract code

InactiveEP4564207A1Platform integrity maintainanceRepresentation languageSmart contract
The present invention provides an apparatus for analyzing vulnerabilities of smart contract code, the apparatus including: a meta-information extraction unit configured to extract meta-information about input code, which is source code of a smart contract; an intermediate representation language conversion unit configured to convert the input code into an intermediate representation language based on the meta-information extracted by the meta-information extraction unit; a code analysis unit configured to detect whether there is vulnerable code or a rule violation case by analyzing the input code converted into the intermediate representation language by the intermediate representation language conversion unit; and a vulnerability detection unit configured to generate a final vulnerability model by detecting a vulnerability based on the vulnerable code or the rule violation case detected by the code analysis unit, and also provides an analysis method using the apparatus.
Owner:SOOHO IO INC

Code conversion method and device, electronic equipment and storage medium

The invention provides a code conversion method and device, electronic equipment and a storage medium, the method is applied to an intelligent agent running in the electronic equipment, and the method comprises the steps that to-be-converted original code data is acquired, and the original code data follows a first protocol; on the basis of a preset rule and a target knowledge base, a function module area and a variable definition area corresponding to the original code data are generated, and the preset rule is used for limiting basic constraint standards of different variables and motion instructions in a second protocol; a plurality of variable definition cases matched with the second protocol and function module cases corresponding to different motion instructions are stored in the target knowledge base; and generating target code data corresponding to the original code data according to the function module area and the variable definition area. According to the method, the robot native code can be automatically converted into the code conforming to the universal open protocol of the automatic system, manual code conversion is not needed, the conversion efficiency is high, and the integration difficulty and cost of the automatic system can be reduced.
Owner:MIDEA GRP (SHANGHAI) CO LTD +1

Composite QR code verification method and system based on code transformation mechanism

The invention provides a composite QR code verification method and system based on a coding transformation mechanism. The system comprises a code generation system, a QR code generation system and a verification server. During generation, the first code and the second code are generated, the codes are converted, the composite QR code meeting the verification rule can be generated, and the composite QR code can be verified. The composite QR code can be applied to the fields of commodity anti-counterfeiting, process management and the like so as to guarantee the authenticity of the commodity endowed with the composite QR code or the reliability of the process management process.
Owner:SICHUAN QIANTAIREN INVESTMENT MANAGEMENT

Code conversion method and related device

The invention discloses a code conversion method and a related device, and the method comprises the steps: obtaining an input code, carrying out the grammatical analysis of the input code, and generating an abstract syntax tree which comprises a plurality of nodes; coding a code text in the input code to generate a first semantic vector; encoding the structure in the abstract syntax tree to generate a second semantic vector; processing the first semantic vector, and converting the first semantic vector into a second semantic vector; generating a control flow diagram according to the abstract syntax tree, and constructing a data flow diagram; determining a plurality of semantic units according to the control flow diagram and the data flow diagram; obtaining a preset domain knowledge graph, wherein the preset domain knowledge graph comprises a plurality of concept nodes; according to the concept nodes and the semantic units, analyzing the second semantic vector to obtain a target semantic vector, decoding the target semantic vector into a target language, and generating a target code. By adopting the method and the device, code conversion expansibility and accuracy can be improved.
Owner:WEBANK (CHINA)

Source code correction program and source code correction device

PendingJP2026013547AProgram code adaptionCode compilationSoftware engineeringCoding conventions
To efficiently prepare a program of high quality corresponding to various coding rules and various using program languages.SOLUTION: By the processing 2, the definition file A2 is used to convert the source code described in the predetermined program language into intermediate codes separated for each component having a meaning. The intermediate codes are converted into post-proofreading intermediate codes matched with the coding convention of the target program language by using a coding convention definition file A3 by processing 3. Further, by the process 4, the post-proofreading intermediate codes are converted into post-proofreading source codes of the target program language by using the source code conversion definition file A4.SELECTED DRAWING: Figure 3
Owner:SAXA

Code conversion method and device, storage medium and program product

The embodiment of the invention provides a code conversion method and device, a storage medium and a program product. The method comprises the following steps: in response to a code conversion request triggered for a to-be-converted service, obtaining a first code corresponding to the to-be-converted service and an archived file on which the to-be-converted service depends; wherein the first code is a code written by adopting a first programming language. Analyzing an archived file on which the to-be-converted service depends and a sub-project object configuration file in the archived file, extracting class basic information and a dependency relationship, and further determining a first field and a first method contained in the first code, field type conversion processing is carried out on the first field, parameter type conversion processing is carried out on the parameters in the first method, and finally the second code conforming to the second programming language is generated, so that automatic code conversion between different language programming types is realized, the difficulty and workload of cross-language code conversion are reduced, and the efficiency of cross-language code conversion is improved. And the conversion efficiency and the accuracy of the conversion result are improved.
Owner:BEIJING 58 INFORMATION TTECH CO LTD

Cross-language interaction malicious behavior detection method based on high-order function

The invention discloses a cross-language interaction malicious behavior detection method based on a high-order function, and relates to the technical field of computer security. The method comprises the following steps: receiving a source code of a certain program, modeling a cross-language interface in the program, and identifying and marking a cross-language calling boundary; different language source codes are converted into universal intermediate representations (IR), the IR is combined, and cross-language calling points are marked; constructing a global cross-language function call graph and a control flow graph, determining a function analysis sequence by inverse topological sorting to perform dependency analysis on each function, and abstracting dependency information in the processes into a function abstract in a high-order function form; and parameter instantiation is carried out when function calling is processed, so that the dependency relationship between the cross-language APIs is obtained. According to the method, efficient analysis and transmission of the cross-language dependency relationship are realized through the high-order function abstract and the dependency matrix, the high overhead of constructing a complex system dependency graph by a traditional method is avoided, and the analysis efficiency and the detection accuracy are improved.
Owner:NANJING UNIV OF POSTS & TELECOMM

National cryptographic algorithm acceleration system based on Numba just-in-time compiling technology

The invention relates to the technical field of national cryptographic algorithm acceleration, and discloses a national cryptographic algorithm acceleration system based on a Numba just-in-time compiling technology. The numerical calculation mode reconstruction module is used for performing numerical calculation mode reconstruction on SM2 elliptic curve scalar multiplication, SM3 message extension round function, SM4 nonlinear transformation and ZUC flow generation logic contained in the national cryptographic algorithm core calculation module by utilizing an LLVM compiling chain of Numba, and converting an interpretively executed Python code into an optimized machine code adaptive to hardware; key function compiling acceleration is achieved through a (at) njit decorator, hot spot operation is dynamically recognized through compiling scheduling, and a differential instruction optimization strategy is loaded; the platform shows multiple technical advantages: on the development efficiency level, by presetting a standardized acceleration module library and an automatic compiling tool chain, the integration complexity of a national cryptographic algorithm is greatly reduced; in the aspect of operation performance, the compilation optimization depth is better than that of a general interpreter acceleration scheme; in the aspect of safety controllability, the mathematical theory basis of the national cryptographic algorithm is completely reserved, and hidden risks possibly introduced by black box type hardware acceleration are avoided.
Owner:SOUTHWEST PETROLEUM UNIV

Method and device for optimizing automatic generation of front-end codes

The invention relates to the field of artificial intelligence, and particularly provides a front-end code automatic generation optimization method and device, and the method comprises the following steps: S1, a design draft feature extraction module analyzes a layer structure, a style attribute and an interaction intention of a design draft, and generates structured design draft feature data; s2, a multi-modal large model code generation module generates a preliminary front-end code; s3, a code optimization engine converts the preliminary front-end code into an AST (abstract syntax tree), and dynamically optimizes a code structure through an AST traversal optimization algorithm; s4, the runtime performance monitoring and increment optimization module monitors performance indexes of the front-end application in real time and dynamically adjusts a code structure according to feedback data; and S5, the multi-frame adapter adapts the generated codes to different front-end frames. Compared with the prior art, the method has the advantages that the front-end development efficiency, the code quality and the dynamic adaptive capacity can be improved, and the method is suitable for rapid iteration and performance optimization requirements in a complex service scene.
Owner:INSPUR TIANYUAN COMM INFORMATION SYST CO LTD

Resource processing service data sending method and device, equipment, storage medium and program product

The invention relates to the technical field of data processing, and discloses a resource processing service data sending method and device, equipment, a storage medium and a program product. The method comprises the following steps: adding a service type and a service number of a target resource processing service into a to-be-distributed pool; according to the corresponding relation between the service type and the background system, the corresponding relation between the service type and the system interface and the service type in the pool to be distributed, constructing a data processing record, and adding the data processing record into a data pool of the background system; determining a target data processing record in a data pool of the target background system; and starting the available sending thread to determine the service data of the corresponding target resource processing service, and sending the service data to the target system interface according to the data adaptation requirement of the target system interface, so that the target background system processes the service data. The method can adapt to the newly-added or offline change of a background system, and does not need to carry out large code transformation.
Owner:CHINA CONSTRUCTION BANK +1

Code generation method, model training method, and related products

This application discloses code generation methods, model training methods, and related products, applicable to computer technology and AI fields. In this application, the code generation device deploys at least one model or has the ability to invoke at least one model. The device can acquire code to be converted written in a first programming language, perform semantic mapping on the code to be converted to obtain an intermediate representation, and use at least one model and the intermediate representation to obtain target code using a second programming language. This application utilizes at least one model to convert code into another programming language, achieving lexical-level semantic mapping during conversion, ensuring semantic consistency between the generated code and the original language, and enabling efficient and accurate conversion of the code's programming language. This application also provides corresponding model training methods and other related products.
Owner:HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD