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

971results about "Code refactoring" patented technology

Intelligent programming auxiliary method and system based on multi-mode AI language model

The invention discloses an intelligent programming auxiliary method and system based on a multi-modal AI language model, and belongs to the technical field of programming auxiliary tools. The method comprises the following steps: a multi-modal input processing stage; a dynamic context modeling stage; a hierarchical semantic analysis stage; in the code generation stage, codes are generated in two stages by adopting a Codex-Plus large model; the reinforcement learning driven code optimization stage is used for carrying out multi-objective optimization and reward function design on the codes generated in the code generation stage; a multi-dimensional feedback stage; an interaction and visualization stage; code semantic deep analysis, dynamic context sensing, multi-target optimization generation and real-time interactive feedback are realized by fusing code texts, natural language description, developer behavior data and a domain knowledge graph, and programming efficiency and code quality can be remarkably improved.
Owner:积至(海南)信息技术有限公司

Live app testing within an app editor for an information technology and security operations application

Techniques are described for providing a built-in “app” editor for an information technology (IT) and security operations application that enables users to create, modify, and test operation of apps under development within the editor. Some IT and security operations applications enable users to extend the applications by adding connectivity to third party technologies to run custom actions. For example, a user might create a custom app to enable an IT and security operations application to connect to an external service providing information about malicious Internet Protocol (IP) addresses, to connect to a relevant cloud provider service, or to interact with a firewall or other type of computing device used in a user's computing environment. Given the broad set of technologies that can be orchestrated by an IT and security operations application, apps broadly enable users to add custom functionality to interface with virtually any technology of interest.
Owner:CISCO TECHNOLOGY INC

Method and system for quickly constructing and multiplexing application framework

The invention provides a rapid construction and reuse method and system for an application framework, and relates to the technical field of application framework construction, and the method comprises the following steps: mapping code snippets to a high-dimensional tensor space, extracting multi-level code features, and constructing a code association graph and a deep semantic network; constructing a hierarchical Bayesian network based on the spatial-temporal feature map, executing variational reasoning and adaptive particle filtering, and generating a reconstruction code; driving a multi-level generation network by using a dual-dimension discriminator, optimizing a code structure and a dependency relationship, and generating a final optimization code through program slicing and incremental synthesis; according to the method, rapid construction and reuse of the application framework are realized, and the code quality and the execution efficiency are improved.
Owner:北京科杰科技有限公司

Refactoring non-compliant code into compliant code

Techniques for intelligently prompting an LLM to refactor code are disclosed. A code snippet is accessed. This code is identified as potentially comprising a reference to an out-of-compliance library. Context for the code snippet is generated. An LLM prompt is then built. This prompt will be fed to the LLM, and the prompt instructs the LLM to refactor the code snippet into modified code, which calls a compliant library. Output of the LLM is displayed. This output is based on the LLM operating in response to the LLM prompt. The output includes a proposed rewritten version of the code snippet.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Method for converting models to programs

In variants, the method can include generating mapping model training data, determining the mapping model, and predicting a program based on a transformer. The method can optionally include evaluating the mapping model, running analyses on the program, and / or utilizing the program and / or generated program analyses. The method functions to convert transformer models into programs that can be characterized and / or analyzed using program analysis techniques.
Owner:MARTIAN LEARNING INC

Method and system for developing software through integrated development environment in infrastructure construction field

The invention provides a method for developing software through an integrated development environment in the field of infrastructure construction, which comprises the following steps: receiving user demand information, and obtaining a user intention keyword; forming a demand model based on the obtained user intention keyword; endowing feature vectors to the engineering components in the engineering component library; selecting a plurality of high-matching-degree engineering components; analyzing the selected engineering components, extracting key characteristics and configuration requirements, and converting the key characteristics and the configuration requirements into numerical feature vectors; calling a corresponding metadata model according to the feature vector, and generating a default configuration template; analyzing the configuration difference of the engineering component in different application scenes to optimize the default configuration template content; and in combination with the optimized configuration template and a domain-specific template language, generating a software code through a template engine. The invention aims to provide an efficient and composite development tool for the engineering industry so as to support rapid application program development, equipment integration and intelligent decision making.
Owner:CHINA TRANSPORT INFORMATION TECH GRP CO LTD

Automatic code defect repairing method based on static code analysis tool and artificial intelligence

The invention provides an automatic code defect repairing method based on a static code analysis tool and artificial intelligence. The method comprises the following steps: constructing a training data set; constructing an artificial intelligence model used for code generation; using the training data set to optimize an artificial intelligence model; constructing a static code analysis tool, and integrating the static code analysis tool into a software development continuous integration and continuous delivery deployment automation process; constructing a service component of a human-computer interaction interface, and integrating the static code analysis tool and the code warehouse; and carrying out code defect analysis and repair by applying the artificial intelligence model through a service component of a human-computer interaction interface. The method disclosed by the invention is applied to a software research and development stage, is beneficial to improving the development efficiency, ensuring the product quality and reducing the human input, and has a remarkable practical value.
Owner:HUBEI CENT CHINA TECH DEV OF ELECTRIC POWER +1

Adaptive code scanning

Systems, methods, and other embodiments associated with adaptive code scanning are described. In one example method, a valid configuration that specifies approved parameters of use for a software component is defined. Software code is scanned to detect that the software component exists in the software code. Where the component is detected, the software code is scanned to identify implemented parameters of use for the software component. The implemented parameters are compared to the approved parameters. Based on the comparison, the software component is determined to be not implemented according to the valid configuration. Where the software component is implemented according to the valid configuration, the method automatically determines to proceed with the automated action based on the implemented parameters. The automated action is performed to adapt to the implemented parameters.
Owner:ORACLE INT CORP

Automatic construction and publishing method based on UE5

The invention provides a UE5-based automatic construction and release method, and relates to the technical field of software development, the UE5-based automatic construction and release method comprises a construction module and a release module, and the construction module comprises the basic steps of construction triggering, pre-construction task execution, client and server packaging, log recording and automatic alarm. The release module comprises the basic steps of differential packet generation, version detection and automatic release, the intelligent prediction trigger carries out deep learning analysis on project development historical data, the peak period of code submission and the code conflict risk can be accurately predicted, construction is automatically triggered in the low-risk and resource idle period, and the construction efficiency is improved. The problem of low resource utilization efficiency caused by lack of multi-dimensional comprehensive judgment in a traditional construction triggering mode is effectively avoided.
Owner:SHANGHAI YINSHENG INFORMATION TECH CO LTD

Optimization of source code to address inefficiencies

Disclosed herein are embodiments of systems, methods, and products for modernizing and optimizing legacy software. A computing device may perform an automated runtime performance profiling process. The performance profiler may automatically profile the legacy software at runtime, monitor the memory usage and module activities of the legacy software, and pinpoint / identify a subset of inefficient functions in the legacy software that scale poorly or otherwise inefficient. The computing device may further perform a source code analysis and refactoring process. The computing device may parse the source code of the subset of inefficient functions and identify code violations within the source code. The computing device may provide one or more refactoring options to optimize the source code. Each refactoring option may comprise a change to the source code configured to correct the code violations. The computing device may refactor the source code based on a selected refactoring option.
Owner:ARCHITECTURE TECH CORP

Code reconstruction method, system and equipment based on function identification and medium

The invention discloses a code reconstruction method, system and device based on function recognition and a medium, and the method specifically comprises the steps: scanning a project file topological structure, and constructing a knowledge graph based on a code import relation and a technology stack feature; performing context enhancement by analyzing the code function description and combining with the knowledge graph to generate a code modification instruction set; based on the code modification instruction set, in combination with data stream sensitivity marking and performance portrait analysis, evaluating the target code to obtain an evaluation result; based on an evaluation result, matching a historical optimal practice mode through a graph neural network, and generating an optimization scheme which retains an original design style; by comparing abstract syntax tree differences between original codes and verified optimization schemes, only functional logic nodes are replaced, and legal code style features are reserved. According to the method, the efficiency and quality of code reconstruction and optimization are improved, and a more convenient, efficient and intelligent code processing tool is provided for software developers.
Owner:广州三七极耀网络科技有限公司

Intelligent Bug management method and platform based on AI large model

The invention discloses an intelligent Bug management method and platform based on an AI large model. The method comprises the steps that structured error codes, unstructured log texts and development communication records are collected; standardized Bug features are obtained after preprocessing; semantic matching is performed based on a CodeBERT large model to generate a historical similar Bug case set, and a problem code segment is analyzed and positioned in combination with an AST abstract syntax tree; according to the project technology stack features, the historical similar Bug case set and the problem code segment, generating a repair scheme including code modification suggestions, automatically generated repair code snippets and implementation risk assessment; constructing and optimizing a triple knowledge graph; and finally, associating the standardized Bug features, the problem code segment, the repair scheme and the knowledge graph to obtain a Bug diagnosis result, and outputting the Bug diagnosis result. According to the method, intelligent positioning and accurate repairing of the Bug are achieved, the average Bug solving time is remarkably shortened, and meanwhile automatic precipitation of development experience is achieved through the continuously optimized knowledge graph.
Owner:FUJIAN HEALTH ROAD HEALTH TECHNOLOGY CO LTD

Code file rewriting method and device based on large language model

The invention relates to a code file rewriting method and device based on a large language model, and the method comprises the steps: analyzing a source code file, obtaining the structure of a source code, and enabling the structure of the source code to comprise the definition of each function and the position of each function code in the source code file; respectively inputting each function code into a large language model, and respectively processing according to each cue word to complete rewriting of each function code; and combining each rewritten function code corresponding to each position in the source code file to form a rewritten code file. According to the invention, a scheme for optimizing and rewriting the codes based on the large language model and the file level can be provided.
Owner:KYLAND TECH CO LTD

Code generation method and related equipment

The invention discloses a code generation method, which comprises the following steps that: a code development platform receives input information of a user in a first code file in a project, acquires a context in the file and a first cross-file context according to a static structure of the project, and acquires a second cross-file context according to behavior characteristics of the user in a development project, obtaining a third cross-file context according to the evolution coupling degree of at least one second code file in a code warehouse of the project and the first code file, and generating prompt information according to the input information, the context in the file, the first cross-file context, the second cross-file context and the third cross-file context, and inputting the prompt information into the code generation model for reasoning to obtain at least one group of generation codes, and displaying the at least one group of generation codes to the user. According to the method, the multi-dimensional item-level context and the user input serve as the input of the code generation model, the capability of the code generation model for utilizing the cross-file context in the code generation process is improved, and the code generation effect is improved.
Owner:HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD

Secure code analysis copilot

An approach is provided that identifies a vulnerability corresponding to an initial source code. Then, the approach generates a prompt comprising the initial source code and the vulnerability. The approach inputs the prompt into an artificial intelligence model (AIM) that is trained to determine whether the initial source code comprises the vulnerability. In turn, the approach removes, using the AIM, the vulnerability from the initial source code to produce a refactored source code in response to determining that the initial source code comprises the vulnerability.
Owner:CROWDSTRIKE

Software package source code optimization method of cross-instruction-set architecture

The invention provides a software package source code optimization method of a cross-instruction-set architecture. The method comprises the following steps: step 1, retrieving and collecting various architecture migration optimization cases; step 2, the verified optimization cases are accumulated through the optimization library; 3, collecting a software package source code with a poor migration effect in a project, and providing the software package source code to a big language model to generate an optimization suggestion of migration between an original architecture and a target architecture; 4, inputting the to-be-optimized software package source code and the optimization suggestion into the large language model to generate a candidate optimization code; 5, further evaluating and screening the candidate optimization codes; step 6, retrieving in the optimization library based on the semantic features of the current code to obtain an excellent instance; step 7, performing optimization again by using a large language model; and step 8, evaluating a construction speed increase rate and function consistency. According to the scheme, a double-stage task decomposition strategy is adopted, the semantic drift risk is effectively reduced, and the accuracy of instruction-level conflict repair is improved.
Owner:NANJING UNIV OF INFORMATION SCI & TECH

Code repairing method and device based on large language model, equipment and medium

The embodiment of the invention provides a code repairing method, device and equipment based on a large language model.The method comprises the following steps that a code to be repaired is analyzed through a code scanning tool on the basis of a coding specification, error information of the code to be repaired is obtained, the error information comprises an error number, a violation rule, a supplementary description, an error example, a correction example, an error type and an error code segment; generating a cue word template according to a historical repair sample and a coding specification of the large language model, and filling the cue word template with the error information to generate a filled cue word; and inputting the filled cue word into the large language model to generate a repair code segment, judging whether the repair code segment accords with a set conversion specification, and if the repair code segment accords with the conversion specification, replacing the code to be repaired with the repair code segment to generate a repaired code. According to the scheme, the code is repaired through an end-to-end automatic process, and the code repairing efficiency is improved.
Owner:BEIHANG UNIV

Retrieval enhanced warehouse-level code completion method based on semantic topology and disambiguation redundancy pruning

The invention discloses a retrieval enhanced warehouse-level code completion method based on semantic topology and disambiguation redundancy pruning. Firstly, a key value code library for accurate mapping of source code fragments and induction sub-graphs is constructed through a specific slicing algorithm; in the retrieval stage, four-level layered optimization is adopted, structural similarity is evaluated by extracting a deep semantic relationship, trimming accurate duplicate items and using a new graph-based measurement (tradeoff is performed on editing according to topological importance), results are reordered to maximize correlation and diversity, candidate items are systematically refined, and the retrieval efficiency is improved. The problems of retrieval redundancy solidification and surface similarity misleading are solved, meanwhile, cross-module dependence is analyzed through an external perception identifier disambiguator, and the problem of cross-file symbol ambiguity is solved; and finally, fusing an optimization result to generate a prompt to drive the LLM to generate higher-quality output. According to the invention, through coordination of semantic and structural signals, strong performance can be obtained even in a large-scale and resource-limited code library. Meanwhile, the design allows it to be orthogonally complementary to other cross-file methods, providing collaborative improvements when used in combination.
Owner:NANJING UNIV OF AERONAUTICS & ASTRONAUTICS

Intelligent software development auxiliary system and use method

The invention provides an intelligent software development auxiliary system and a use method, and belongs to the technical field of computer software development. The system comprises a project demand analysis module which is used for obtaining and analyzing project demand data and generating feature vectors of demands; the code style optimization module is used for analyzing semantics and styles of the original codes, analyzing and normalizing the original code structures, and generating code structures and style specifications meeting project standards; the intelligent code completion module is used for analyzing context semantics of the codes after style optimization, generating code completion suggestions conforming to project standards in combination with project demand data, and outputting structured completion code snippets; the technology stack intelligent recommendation module automatically recommends an optimal technology stack for the project according to the project demand data and the optimized code structure; and the development behavior risk detection module monitors programming behaviors of developers in real time, captures abnormal operations, marks potential risks and generates operation optimization suggestions.
Owner:JINAN LANLIANHUA NETWORK TECHNOLOGY CO LTD

Code recommendation method and apparatus, and device and computer-readable storage medium

The present application belongs to the technical field of artificial intelligence. Disclosed are a code recommendation method and apparatus, and a device and a computer-readable storage medium. The method comprises: acquiring code generation information, wherein the code generation information is used for describing a programming task of a code; generating at least one candidate code on the basis of the code generation information; determining from among the at least one candidate code a candidate code to be repaired, wherein the candidate code to be repaired comprises a wrong parameter, which does not meet at least one of a syntax constraint and semantic constraint of a programming language corresponding to the programming task; and repairing the wrong parameter comprised in the candidate code to be repaired, so as to obtain a repaired candidate code, and recommending the repaired candidate code and an unrepaired candidate code among the at least one candidate code, wherein the unrepaired candidate code is different from the candidate code to be repaired. After a candidate code is generated, a candidate code having an error is automatically repaired, thereby improving the accuracy of a recommended code.
Owner:HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD

Code reconstruction method and system based on data stream slicing and large language model driving

The invention discloses a code reconstruction method and system based on data stream slicing and large language model driving, and belongs to the field of software engineering. The method comprises five parts of code preprocessing, data stream analysis, construction of cue words of a large language model, function testing and code review. According to the method, firstly, codes needing to be reconstructed are preprocessed and converted into a unified format; secondly, performing data stream analysis on the preprocessed codes, and dividing independent logic blocks; generating cue words according to a data flow analysis result and historical behaviors, and inputting the cue words into a large language model to obtain reconstructed codes; and finally, the codes before and after reconstruction are tested, and whether re-reconstruction is needed is detected, so that reconstruction of the long method codes is realized, and the accuracy and efficiency of code function division and method extraction are optimized.
Owner:HANGZHOU DIANZI UNIV

Code defect detection method and system based on large model

The invention provides a code defect detection method and system based on a large model. The method comprises the following steps: generating an enhanced semantic understanding vector corresponding to an initial source code by utilizing a pre-trained large-scale language model in combination with an attention mechanism; identifying the logic error pattern to determine the defect type and position of the initial source code; the reinforcement learning algorithm selects an optimal repair path by simulating a plurality of repair paths and evaluating the effectiveness of each repair path, and generates a repair code snippet through the optimal repair path; replacing a corresponding part in the initial source code with the repair code snippet, and generating a target source code; performing quality scoring on the target source code based on the code quality evaluation model to obtain a quality feedback result; and outputting the target source code with the change annotation and the quality feedback result. According to the method and the device, the speed and the accuracy of finding and solving coding errors in the software development process are improved, and meanwhile, the quality of repaired codes is also ensured.
Owner:LUSTER LIGHTWAVE CO LTD

Learning session-specific code recommendations for editing code files

Session-specific edit recommendations may be made for editing a code file. After a code editing session is started, code file edits may be captured. A machine learning technique may be applied to learn the code edits and recommend alternative code portions for portions of the code file during the code editing session. The recommendations may be provided and accepted, or not, via an interface of a code editor application.
Owner:AMAZON TECH INC

Code reconstruction method and system, computing device, storage medium and program product

Embodiments of the present invention provide a code reconstruction method and system, a computing device, a storage medium and a program product wherein the code reconstruction method comprises: performing code analysis on a to-be-reconstructed initial code to generate a target reconstruction scheme wherein the target reconstruction scheme comprises a code reconstruction plan and a code test plan; the code reconstruction plan comprises a function dependency relationship of the target code; analyzing a function dependency relationship in the code reconstruction plan, and generating at least two code reconstruction tasks corresponding to the initial code; executing the at least two code reconstruction tasks in sequence to obtain each initial code snippet, and iteratively optimizing each initial code snippet through static analysis and dynamic verification until candidate code snippets conforming to a function dependency relationship are generated; and compiling a test case of each candidate code snippet based on the code test plan, and testing each candidate code snippet based on each test case to obtain a plurality of target code snippets conforming to the function dependency relationship. And the coherence and the consistency of the reconstructed codes are ensured.
Owner:BEIJING URBAN CONSTR INTELLIGENT CONTROL TECH CO LTD

Automatically identifying application programming interfaces based on application artifacts

One or more application programming interfaces to be implemented for an application are automatically identified. The automatically identifying includes determining within the application one or more artifacts to be implemented as the one or more application programming interfaces. For an artifact of the one or more artifacts, one or more requests of the artifact are determined. The one or more requests are part of an application programming interface signature for an application programming interface identified based on the artifact. For an application programming interface identified based on the artifact, one or more definitions are generated. The one or more definitions include one or more definitions for the one or more requests of the artifact.
Owner:INTERNATIONAL BUSINESS MACHINE CORPORATION

Complex code modification via chain of thought prompting

Techniques for complex code modification via chain of thought prompting are described. A modification service obtains code to be modified according to a modification goal, and can decompose the modification goal, via use of a database or a machine learning model, to identify a set of modification steps. The set of modification steps may be organized according to a chain of thoughts, tree of thoughts, or graph of thoughts. The modification service can execute the set of modification steps via use of a machine learning model to yield modified code, which can be returned to a user.
Owner:AMAZON TECH INC

Software development management method based on big data

The invention discloses a software development management method based on big data, and relates to the technical field of software development management, and the method comprises the steps: collecting multi-source development data, transmitting the multi-source development data to a data lake in real time through a distributed message queue, and generating a structured data stream with a timestamp and a time sequence relation graph; performing Monte Carlo sampling on the three-dimensional radiation field model of the neural radiation field and the causal influence graph, simulating the cascade influence submitted by the current code, and outputting a risk value and a dependency chain; loading a neural radiation field three-dimensional code space model, a node risk value and a dependency chain, dynamically rendering a causal influence path, and generating a visual risk report; and generating a code optimization task according to the visual risk report, submitting an optimized code version to a code library, and calibrating parameters of the neural radiation field three-dimensional code space model. According to the method, the spatio-temporal characteristics of code change are analyzed, Monte Carlo simulation is combined, hidden dependence and a risk conduction chain are identified, and the comprehensiveness and predictive ability of framework corruption analysis are improved.
Owner:XIAN HIGH PRESSURE VALVE FACTORY GRP CO LTD

Code optimization and reconstruction system

The invention provides a code optimization and reconstruction system which comprises a code analysis module used for analyzing the structure, behavior and operation performance of an initial source code of a program and preliminarily repairing the initial source code according to an analysis result to obtain a target source code; the demand and architecture analysis module is used for analyzing the consistency of the demand of the program and the architecture of the target source code and monitoring the demand change of the program; when inconsistency between the demand and the architecture is identified or the demand is changed, recommending a code architecture and a mode according to a consistency analysis result and the demand change; and the optimization and reconstruction module is used for analyzing potential defects of code modes, performance bottlenecks and code changes of the target source codes and generating optimization and reconstruction suggestions or automatically optimizing and reconstructing codes. According to the system, the manual code review time is shortened, and the code optimization and reconstruction efficiency is improved; manual intervention is reduced, and the code optimization and reconstruction accuracy is improved.
Owner:CHUANGYUN RONGDA INFORMATION TECH (TIANJIN) CO LTD