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

635 results about "Codebase" patented technology

In software development, a codebase (or code base) is a collection of source code used to build a particular software system, application, or software component. Typically, a codebase includes only human-written source code files; thus, a codebase usually does not include source code files generated by tools (generated files) or binary library files (object files), as they can be built from the human-written source code. However, it generally does include configuration and property files, as they are the data necessary for the build.

Customized prompt generation service for software engineering tasks

A customized prompt generation service automates prompts to a large language model to perform a specified software engineering task. The service stores the custom data of a client that includes code diff hunks, source code segments, code reviews, repaired code, and unit tests from a code base or repository of the client. Prompt templates are associated with each software engineering task that include the requisite information needed for the large language model to perform the target task. A prompt to a large language model includes examples of the software engineering task from the custom data of the client of the service.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Code search for examples to augment model prompt

A user query for information regarding data of a codebase is answered by a large language model given a prompt that includes examples of code segments from the codebase that are similar to the user query. The code segments from the codebase are associated with metadata that includes both natural language text and source code. The search for the examples of code segments from the codebase is based on embeddings of code segments and associated metadata that are closely similar to an embedding of the user query and context.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Cross-framework code migration method and system, electronic equipment and storage medium

The invention provides a cross-frame code migration method and system, electronic equipment and a storage medium, and the code migration method comprises the steps: carrying out the frame-level conversion of a first frame code, and generating a target engineering skeleton adaptive to a second frame protocol; analyzing the construction configuration and the entry file, determining an entry point and a compiling rule of code migration, analyzing the first frame code through an abstract syntax tree, and generating a target code range list needing to be migrated; and according to the target code range list and the dependency item list, applying a preset conversion rule to the first framework code, and generating a second framework code adaptive to a second framework protocol. Through automatic framework-level conversion and dynamic rule adaptation, rapid migration from the first framework code to the second framework code is realized, a multi-terminal code library is unified, the manpower development cost is reduced, synchronous operation of business iteration and migration is supported, and the development efficiency is improved.
Owner:SHANGHAI TRAVEL INFORMATION TECH CO LTD

Code defect prediction method, readable storage medium and computer program product

The embodiment of the invention discloses a code defect prediction method, a readable storage medium and a computer program product. The method comprises the following steps: constructing a plurality of prediction models and a plurality of agents; when the code library is updated, determining a plurality of update items, and obtaining new version codes of the plurality of update items; obtaining potential code defect types and potential code defect descriptions of a plurality of update items based on the new version code and the plurality of prediction models; generating defect reports of a plurality of update items based on the potential code defect types, the potential code defect descriptions and the plurality of agents; and carrying out authenticity verification on the defect report, and repairing the new version code after the authenticity verification is passed. According to the method, code defects can be efficiently and accurately predicted, and a defect report is given for repairing related defects, so that software research and development are facilitated.
Owner:ZHONGBEI UNIV

Automated merge conflict resolution with transformers

An automated system for resolving program merges uses neural transformers with attention. In one aspect, a neural encoder transformer model is trained from developer-resolved merge conflicts to learn to predict a resolution strategy that aids a developer in constructing a merged program. In a second aspect, a neural decoder transformer model is trained on the syntax and semantics of different source code programming languages to predict a merge resolution consisting of interleaved lines of source code from programs A, B, or O, where programs A and B contain changes to code base O.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Multi-round reasoning and feedback optimization method and system for industrial software codes

The invention belongs to but is not limited to the technical field of software development, and particularly relates to a multi-round reasoning and feedback optimization method and system for industrial software codes, and the method comprises the steps: S1, vector code library establishment: the establishment of a vector code library is composed of three parts of feedback establishment, vector database establishment and format summarization; s2, code reasoning optimization: the code reasoning optimization mainly comprises four aspects: control flow graph analysis, multi-query generation and reciprocal ranking fusion retrieval, reasoning generation subtask and code chain submodule generation, and code combination completion; and S3, feedback optimization: the feedback optimization is composed of score feedback optimization and log feedback optimization. According to the method, an automatic verification mechanism is introduced, logic consistency check and performance evaluation are carried out on the generated and optimized codes, and the correctness and execution efficiency of the codes are ensured. The verification mechanism can find and correct errors in real time in each stage of generation, so that the cost of manual verification is reduced, and the development efficiency is improved.
Owner:GUANGDONG UNIV OF PETROCHEMICAL TECH

Guided dynamic analysis of code with static code analysis

Targeted dynamic analysis of code is provided by utilizing static analysis and dynamic analysis. A static code analysis system can operate to generate an initial analysis of code. The results of the initial analysis may be used to target a dynamic analysis system to analyze portions of code identified by the static analysis as potentially containing defects. In some cases, a preliminary dynamic analysis may be used to generate code inputs that may be utilized in future analyses to determine the inputs necessary to target particular code paths identified by a static analysis as potentially defective. Future updates to the code base may utilize the generated data to target analysis to code paths affected by the updates.
Owner:AMAZON TECH INC

Intelligent run-time complication identification and solutions for a codebase

Systems, methods, and devices are provided to intelligently identify run-time complications within a codebase and provide recommended solutions for the identified run-time complications. A behavioral model of the codebase is accessed that depicts a run-time behavior of the codebase. The behavioral model generated is then interrogated to predict run-time complications within the codebase. Recommended solutions are generated and provided in a user interface for resolving the run-time complications.
Owner:APPLAND INC

Systems and methods for resolving code vulnerabilities through collaborative agents

Systems and methods for resolving code vulnerabilities through collaborative agents which may include accessing a code base of an identified vulnerability; configuring a plurality of autonomous agents, each comprising a predefined agent role associated with application security remediation process; executing a directed workflow of the plurality of agents, wherein the workflow is a conditional sequence of agent-driven processing steps for generating a proposed resolution to the identified vulnerability; and outputting a candidate resolution for the vulnerability based on results produced by the workflow.
Owner:HARNESS INC

Intelligent code change recognition system, method and device based on large language model and medium

The invention discloses an intelligent code change recognition system, method and device based on a large language model and a medium, and relates to the field of software code review and large language models. The system comprises a code monitoring module, a prompt word module, a large language model module and a user-defined rule module. The code monitoring module monitors a code library event and transmits information; the cue word module generates natural language cue words; the large language model module gives a change recognition result based on the cue words and the code review knowledge base; and the custom rule module manages personalized review rules. A code pushing event is monitored through the code monitoring module, the code pushing event is analyzed by the large language model module after being processed by the prompt word module, whether a change request is created or not is intelligently judged, and a knowledge base is updated by utilizing a historical review result. According to the method, unreasonable change requests are reduced, the review workload is reduced, the accuracy and adaptability are improved, and personalized requirements are met.
Owner:GUANGZHOU CANWAY TECH CO LTD

Advanced Cybersecurity System for Real-Time Phishing Detection, Account Takeover Fraud Prevention, and Software Repository Optimization Using Machine Learning Techniques

Systems and processes are disclosed for enhancing cybersecurity and optimizing software repositories through integration of web crawling, web scraping, feature engineering, and advanced machine learning algorithms to detect phishing attempts, prevent account takeover fraud, and identify unused code in repositories. The system collects and refines data from various sources, including transaction logs, customer databases, device details, external data sources, and historical fraud data, to build comprehensive datasets. Feature engineering creates new, meaningful features from the refined data, which are used to train and evaluate machine learning models. The best-performing models are deployed in production to monitor incoming communications and transactions in real-time, flagging suspicious activities and optimizing codebases. This processing ensures timely detection and prevention of security threats while maintaining efficient software development processes. Robust protection is provided against evolving cyber threats and enhances software performance and security through continuous learning and adaptation.
Owner:BANK OF AMERICA CORP

Programming assistant framework, programming assisting method, equipment, medium and product

The invention discloses a programming assistant framework, a programming assisting method, equipment, a medium and a product, and relates to the technical field of artificial intelligence, and the programming assistant framework comprises a DevOps platform integration module, a DevOps platform integration module, a DevOps platform integration module, a DevOps platform integration module, a DevOps platform integration module and a DevOps platform integration module, wherein the DevOps platform integration module is used for receiving input information sent by any link in links for code development and maintenance; the input information is sent to a code completion and dialogue function module; the code completion and dialogue function module is used for acquiring code related problems in input information, reading source codes in a project code library, and performing abstract syntax tree analysis on the source codes to obtain an abstract syntax tree; and the RAG retrieval enhancement generation module is used for performing semantic recognition on code related problems to obtain a user intention, traversing the abstract syntax tree according to the user intention, determining code context information, obtaining retrieval information according to the user intention and the code context information, and outputting code suggestions generated according to the retrieval information. The overall development efficiency in the development process is improved.
Owner:CHINA MERCHANTS SECURITIES CO LTD

Low-code automatic development method and system based on AI and medium

The invention discloses an AI-based low-code automatic development method and system and a medium, mainly relates to the technical field of image processing, and is used for solving the existing problems that the demand conversion efficiency is low, the code quality depends on manpower, and the complex scene support is insufficient. Comprising the steps of extracting a current functional entity corresponding to a code function core feature; based on the current functional entity and the historical functional entity, extracting an associated sub-graph containing the current functional entity and the historical functional entity from a preset knowledge graph corresponding to the demand technical field; dSL grammar corresponding to the demand technical field is obtained, entity nodes related to the associated sub-atlas, inter-node interaction logic rules and code function core features are input into the DSL grammar, and intermediate representation IR is obtained; and according to the intermediate representation IR, the code function core features and the current function entity, a model trained by a large-scale code library is utilized to generate a specific code.
Owner:INSPUR YUNZHOU (SHANDONG) IND INTERNET CO LTD

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

Data construction method, code question-answering method, task platform and code question-answering system

The embodiment of the invention provides a data construction method, a code question-answering method, a task platform and a code question-answering system. The data construction method comprises the steps of obtaining a first code snippet and an initial sample question for the first code snippet; rewriting the initial sample problem by using a text processing model and taking directory structure information of a sample code warehouse in the code library as context information to obtain a sample problem; based on the first code snippets and the sample questions, recalling related second code snippets from a code library; the text processing model is utilized, the second code snippets serve as context information, sample answers corresponding to the sample questions are generated, the sample questions and the sample answers are sample data used for training a code question and answer model, and the code question and answer model is suitable for a code warehouse. The data construction efficiency is improved, the data construction cost is reduced, the model obtained through training is adaptive to the code warehouse, and the user experience is improved.
Owner:ALIBABA (CHINA) CO LTD

Code translation method and device based on large language model

The invention discloses a code translation method and device based on a large language model, and the method comprises the steps: firstly executing an architecture understanding workflow, and forming an architecture design document O1 of a code library; according to the architecture design document O1 of the code library, in combination with the demand document P1, code translation task decomposition workflow is executed, and a task planning list O2 is formed; elements in the task planning list O2 are sequentially extracted, and the code debugging workflow is executed to complete code translation and debugging work. A warehouse-level code architecture understanding workflow, a code translation task planning workflow and a code debugging workflow are constructed based on a large language model (LLM), and the workflows are organically combined to realize automatic translation of warehouse-level codes. According to the method, the limitation of function level translation in the prior art can be broken through, automatic translation of warehouse level codes is realized, the development cost is greatly reduced, and the translation efficiency is improved.
Owner:ZHEJIANG LAB

Code diagnosis method, system and equipment

The invention relates to a code diagnosis method, system and equipment, and the method comprises the steps: carrying out the preprocessing of code data, and generating structured data; vectorizing the structured data to construct a vector database; based on a user diagnosis request, a retrieval enhancement generation technology is adopted to retrieve related context fragments; screening out target context fragments, combining the target context fragments into context information, and outputting the context information to a large language model; the large language model identifies potential problems in the code data and generates repair suggestions. According to the method, efficient retrieval can be performed in a large-scale code library on the basis of the large language model by combining and applying a retrieval enhancement generation technology, necessary and accurate context information related to a user diagnosis request is provided for the large language model, so that the large language model can identify potential problems in codes more accurately; and a targeted repair suggestion is automatically generated.
Owner:CORECHENG (BEIJING) TECHNOLOGY CO LTD

Teaching strategy optimization model and grammar error early warning method based on data mining

The invention relates to the field of wisdom education, and particularly discloses a teaching strategy optimization model and grammar error early warning method based on data mining, and the method comprises the following steps: S1, obtaining original code data in a student code library in real time, and preprocessing the original code data to obtain a structured data matrix; s2, for the structured data matrix, generating a grammar parse tree through a grammar parser, positioning error nodes and extracting context features by using a node traversal algorithm, and constructing a single-error multi-dimensional feature vector; meanwhile, an error association rule base is constructed based on historical error data, a causal relationship across error types is identified, and dynamic knowledge graph data is formed. According to the technical scheme, association analysis and deep mining can be carried out on the multi-source learning data, dynamic solution suggestions for student individual errors or group generality errors are formed, and teachers are assisted to quickly adapt to dynamically changing learning requirements of the students.
Owner:CHONGQING VOCATIONAL COLLEGE OF IND & INFORMATION TECH

Code positioning method based on programming language migration

The invention discloses a code positioning method based on programming language migration, relates to computer software, and aims to refine functions into typical processes to construct a function library and a total keyword table, generate function tags through simulation transformation and design a subject term self-checking crawler system. A large number of accurate primary and secondary language code segments are obtained based on a subject relevancy discrimination method and a Hash matching method to construct a primary and secondary code library, an adversarial generator is pre-trained based on an adversarial training strategy to achieve alignment of primary and secondary language features, and a large model encoder is finely adjusted by adopting comparative learning in combination with the primary code library to maximize separability of code representation. A pre-training Softmax regression classifier is assisted to realize function label endowing of a code segment, a to-be-positioned word and a to-be-positioned code are acquired, the to-be-positioned code is split, the to-be-positioned word is identified based on a dual-channel query strategy to select a positive example, and the positive example and the code segment are input into a pre-training and fine-tuning network to realize code positioning of a specified function or a specified typical process.
Owner:NINGBO JINWANG INFORMATION IND CO LTD

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

Intelligent review method and system applied to data processing

The invention discloses an intelligent review method and system applied to data processing. The method comprises the steps of obtaining historical review data; constructing a target review rule code library and a target review problem library according to the historical review data; obtaining a preset first model; training the first model based on the target review rule code library and the target review problem library to obtain a target code review model and a target operation monitoring model; reviewing a preset data processing algorithm through the target code reviewing model and the target operation monitoring model to obtain a target reviewing result; generating a target review report according to the target review result; and according to the target review report, updating contents in the target review rule code library and / or the target review problem library, and performing update training on the target code review model and the target operation monitoring model. By adopting the method and the device, the compliance of algorithm codes in the data processing and training process can be ensured, the data security is ensured, and data leakage is prevented.
Owner:SHENZHEN SHANGSHU COM TECH CO LTD

Automatic test case generation method and device and medium

The invention relates to the technical field of automatic testing, and discloses an automatic test case generation method and device and a medium, and the method comprises the steps: constructing test case knowledge bases of different fields, and carrying out dynamic and static joint feature analysis on code libraries corresponding to field test data; performing intention recognition on the test demand data, and performing atomization operation on the test demand data according to the test demand intention; identifying a test demand code block associated with the test demand data; generating a basic test case of the test demand code block according to the atomization parameter, and injecting an abnormal stream into the basic test case according to the atomization parameter to obtain a target test case; and selecting a similar test case corresponding to the target test case from the test case knowledge base, performing regression test on the test demand code block by using the regression test case, and optimizing the regression test case according to a test result to obtain an automatic test case. According to the invention, the coverage rate during test case generation can be improved.
Owner:深圳市分期乐网络科技有限公司

Query resolution using codebase analysis and generative artificial intelligence models

Technology for assisting software developers in searching, understanding, and identifying particular portions of codebases is provided herein. With the given tools, a user can submit a natural language query. The system will analyze the query and identify relevant portions of the codebase using a previously generated behavioral map of the codebase. Once relevant portions of the codebase are identified, the system generates a prompt for submission to a foundation model to elicit a response to the user's query. The response provided to the user will be complete and relevant to the user's particular codebase.
Owner:APPLAND INC

Automatic code review method and system based on code large model

The invention relates to an automatic code review method and system based on a code large model. The method comprises a historical code library; preprocessing the collected data according to the requirements of downstream tasks; the pre-processed code data set is subjected to embed storage, and the pre-processed code data set is subjected to embed storage; performing instruction fine tuning and efficient parameter fine tuning on the code large model by adopting the preprocessed code data set to obtain a trained model capable of performing code review; obtaining a code submitted to a code warehouse by a developer, comparing the code with a corresponding code of a previous version to obtain a code diff, and combining the code diff with a context to obtain a to-be-reviewed code; inputting a to-be-reviewed code into the trained model to obtain an output review comment; and inputting the to-be-reviewed code and the review comment into the trained model again, and finally outputting the revised code. And the revised code is merged into a main branch of the warehouse. According to the method, the consumption of human resources in the code review process can be remarkably reduced, and the code quality and development efficiency are improved.
Owner:CHONGQING UNIV

Equipment test model code generation method based on large model

The invention discloses an equipment test model code generation method based on a large model, and the method comprises the steps: designing an equipment digital test demand analysis module which is used for constructing an equipment digital test identification framework system through combining demand description to extract a digital test demand generated by an equipment test model modeling code; designing a large model training code collecting and processing module, and generating a high-quality code data set; the design equipment test model code library module is used for carrying out structured storage on the high-quality code data set, constructing a knowledge graph based on structured data and designing a vectorization dynamic query function; and designing a large model pre-training and fine tuning module, and performing secondary pre-training and fine tuning on the base code large model by using the high-quality code set and a vectorization dynamic query function to generate a final equipment test model code. According to the method, the code generation speed and accuracy are remarkably improved, and it is ensured that the generated code has wide adaptability and universality.
Owner:BEIHANG UNIV

Collaborative learning-based annotation code library purification method and device

PendingCN118981331ACapture complex relationships flexiblyImprove execution efficiencyWeb data indexingBiological modelsAnnotation TypeEngineering
The invention discloses an annotation type code library purification method and device based on collaborative learning, collaborative learning is completed through an unsupervised driving component and a supervised filtering component, the unsupervised driving component is combined with a WTFF algorithm, a complete code snippet is obtained to establish a guide query corpus, and the guide query corpus is extracted. Primarily filtering the original annotation code pair by using a defined grammar rule-based filter, and removing data with abnormal grammar features; the supervised filtering assembly introduces a variational auto-encoder model based on a self-attention mechanism. According to the method, a guide query corpus is used for supervising and training a sampling model of a variational auto-encoder model, annotation code pairs which are preliminarily cleaned from an unsupervised driving component are used as input, and annotation code pairs which are semantically close to natural language query are further selected. According to the method, empirical evaluation is carried out on different test sets, and experimental results show that high efficiency is achieved, and the method is superior to an existing reference model in a code search task.
Owner:YUNNAN UNIV

Automatically generating code using a codebase-specific structure configuration

A computerized method generates a structure configuration from a codebase and generates application code using the structure configuration. Code examples of the codebase are obtained, and a structure configuration is generated using the obtained code examples and a standard configuration dataset. The structure configuration includes code components specific to the codebase. Labels that are indicative of component attributes are assigned to the code components of the structure configuration. A code generation request is received, and the request is converted into a plurality of feature prompts. At least one code component is mapped to each feature prompt based on semantic similarity of the feature prompt to a label of the mapped code component. Application code is generated using the mapped code components. The generated application code is deployed for execution. This method enables the automatic generation of code that conforms to common patterns and accurately exhibits the features requested.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

System Validation Using Machine-Learning Language Model-Based Integration Tests for Software Applications

An online system performs inference requests in conjunction with the model serving system to perform AI (text-based LLM or multi-modal transformer)-generated integration test variants. Instead of rigid code-specified integration tests, the LLM creates integration test variants that follow a specification. Given one or more files from the codebase of an application and a specification for integration testing, the LLM compiles an integration test including a series of actions (e.g., API calls) as runnable code and assertions about the state of the application after the actions are executed.
Owner:MAPLEBEAR INC

Automated test identification and implementation in a database environment

A codebase system that maintains and utilizes a dynamic mapping between a collection of tests and files within a codebase to ensure error detection and code validity. The codebase system accesses a collection of tests configured to process files within the codebase to identify errors. It then generates a mapping by executing these tests to determine the specific files each test operates on. Upon detecting updates to the test collection, the codebase system updates this mapping by re-executing the updated tests, identifying the new set of files for each test, and aggregating these updates into the existing mapping. When changes to the files in the codebase are detected, the codebase system accesses the updated mapping to identify which tests relate to the altered files. The codebase system then executes this relevant subset of tests to validate the modifications made to the files.
Owner:GUSTO INC

Video acquisition method and device based on modular low coupling

The invention discloses a video acquisition method and device based on modular low coupling, and relates to the technical field of video processing. The method comprises the following steps: initializing a video processing system, creating a unified system resource management interface, and realizing centralized management of video acquisition, encoding, decoding, OSD control and NPU push modules; based on a modular design principle, video acquisition, coding, decoding, OSD control and NPU push functions are packaged into independent modules, and data interaction between the modules is realized through a standardized interface. The video processing system is modularly designed, and a unified standardized interface is provided, so that the effect of greatly reducing project code coupling is achieved, a developer does not need to pay attention to underlying logic when calling the interface, and module function independence is guaranteed; by means of the modular interface design, developers can rapidly integrate platform functions, development work can be completed without deeply knowing the whole code library, and therefore the project development efficiency is improved.
Owner:XIAN XINCHEN ELECTRONIC TECH CO LTD