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

250 results about "Snippet" patented technology

Snippet is a programming term for a small region of re-usable source code, machine code, or text. Ordinarily, these are formally defined operative units to incorporate into larger programming modules. Snippet management is a feature of some text editors, program source code editors, IDEs, and related software. It allows the user to avoid repetitive typing in the course of routine edit operations.

Code-change based prompt for code repair

A source code repair system generates a prompt including a few-shot examples of code changes made previously to correct a particular source code vulnerability. The prompt is given to a large language model to generate repair code for a source code snippet having the same vulnerability. Code changes made for a particular source code vulnerability, in the form of code diffs, are clustered into groups of closely related code change embeddings. A select few of the code diffs in each group having a closest mean of the cluster are used as the few-shot examples for the corresponding source code vulnerability.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Systems and methods for searching and summarizing financial related documents, and user interface for displaying the same

ActiveUS20250061141A1DocumentationSnippet
Systems and methods for searching, summarizing, and automating workflows for financial related documents, and a user interface for displaying the same, are disclosed. The summaries are generated in response to a user query or through natural-language, conversational chat, and they provide the user with underlying supporting documentation to allow the user to follow-up and / or confirm as necessary. An AI-powered document search is performed to identify relevant documents and relevant snippets within the documents. The relevant snippets and / or documents are then summarized by one or more AI models. The models use metadata associated with the documents from the document search to rank the snippets for summarization. AI agents further automate the workflow.
Owner:ALPHASENSE INC

Localizing vulnerabilities in source code at a token-level

A vulnerability detection and repair system utilize a classifier model to detect a software vulnerability in a source code snippet and the tokens in the source code snippet attributable to the vulnerability. A large language model is then given the vulnerable source code snippet, its vulnerability type, the vulnerability tokens, and a few-shot examples to determine whether or not the source code snippet includes the identified vulnerability. The few-shot examples include positive and negative samples of the type of vulnerability to guide the large language model towards the correct output.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Enterprise-level classification of data-items in an enterprise repository and prevention of leakage of personally identifiable information (PII)

Device, system, and method for automatically detecting and classifying personally identifiable information (PII) in documents and files. A method includes performing a deterministic rule-based search, in a plurality of stored documents, for PII data-items. If the deterministic rule-based search indicates that a particular document is more likely than not to contain a PII data-items then the method includes: extracting a textual snippet from the particular document, wherein the textual snippets surrounds the PII data-item; adding the textual snippet and the particular document to one or more training datasets utilized for training a Large Language Model (LLM) configured to find PII data-items in documents for Named Entity Recognition (NER) in those documents.
Owner:VARONIS SYSTEMS INC

Repository-level augmentation of prompts for code completion

A code completion system utilizes a large language model to complete a partially-formed source code snippet of a source code program given a prompt that includes a repository-level context, an extended context and a local context. The repository-level extended context includes a few-shot examples and a focal context. The few-shot examples are code fragments from the repository having a close similarity to the partially-formed source code snippet. The focal context includes method signatures and namespace information of methods of custom classes defined in the repository. The augmentation of the prompt with the various context data enables the model to predict more relevant code completion candidates for custom data without training the model on the custom data.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Ai-modified code recommendation in context of a developer tool

Techniques are described herein that are capable of providing a recommendation of AI-modified code in context of a developer tool. Based at least on code being developed in a developer tool, an interface element is provided in a user interface of the developer tool. The interface element is configured to receive a prompt that specifies a modification to be performed on the code. Based at least on receipt of the prompt, an AI model is automatically caused to perform the modification on at least a snippet of the code to provide a modified snippet. The modified snippet is processed using a language intelligence tool of the developer tool to provide a processed version of the modified snippet. A recommendation to replace the snippet in the code with the modified snippet is provided by causing the processed version of the modified snippet to be displayed via the user interface.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC +1

Generative interface for multi-platform content

Embodiments described herein relate to systems and methods for automatically generating content for a generative answer interface of a collaboration platform. The system receives a natural language user input identifying corresponding blocks of text or snippets using a content extraction service. A prompt is generated using the blocks of text and is used to obtain a generative response. The generative response and links to corresponding content are displayed in the generative answer interface and can be inserted into content of the collaboration platform. The systems and methods described use a network architecture that includes a prompt generation service and a set of one or more purpose-configured large language model instances (LLMs) and / or other trained classifiers or natural language processors used to provide generative responses for content collaboration platforms.
Owner:ATLASSIAN PTY LTD

Source code vulnerability detection and repair through machine learning

A neural classifier model is used to detect cybersecurity vulnerabilities in the source code predicted by a deep learning code generation model having been trained on source code possibly containing security bugs. Upon the classifier model classifying a given source code snippet as likely containing a cybersecurity vulnerability, a proposed repair for the cybersecurity vulnerability is predicted from a neural decoder transformer model having been trained on non-vulnerable source code. The neural decoder transformer model is used to predict source code that repairs the cybersecurity vulnerability given the source code classified with a cybersecurity vulnerability.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Audio Video Summarizer

The presently disclosed embodiments may include a computer readable medium including instructions that when executed by one or more processing devices cause the one or more processing devices to: receive an identification of at least one source audio or video with audio file, generate a textual transcript based on an audio component associated with the at least one source audio or video with audio file, edit the textual transcript to provide a formatted textual transcript, segment the formatted textual transcript into two or more segments, generate at least one summary snippet associated with the two or more segments, and cause the at least one summary snippet to be shown on a display together with a representation of the at least one source audio or video with audio file.
Owner:AL21 LABS

Code review comment generation via retrieval-augmented transformer with chunk cross-attention

A retrieval-augmented neural transformer model with chunk cross-attention predicts a code review given a proposed source code change, represented as a code diff hunk, and a set of historical code review comments. The code diff hunk represents proposed edits to a source code snippet with its surrounding context that has not been changed. The historical code review comments are associated with code edits that are semantically similar to the proposed source code changes. The code diff hunk is partitioned into chunks which are used to find semantically similar historical code review comments. The set of historical code review comments is aggregated and used to guide the model in makings its predictions.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Code processing model training method and code task processing method

The embodiment of the invention provides a code processing model training method and a code task processing method. The code processing model training method comprises the steps of obtaining a sample code document and a sample record document; analyzing the sample record document, and respectively determining sample modification fragments of the sample code fragments; for the first sample code snippet, generating sample description information of the first sample modification snippet according to the first sample code snippet and the first sample modification snippet; and training the initial processing model by utilizing the sample problem, the plurality of sample code fragments, the plurality of sample modification fragments and the sample description information of the plurality of sample modification fragments to obtain a code processing model. The high-quality model training data is automatically constructed, and the model training efficiency is improved.
Owner:ALIBABA (CHINA) CO LTD

System and method for processing environmental, social, and governance reports

A computing device of a system is deployed within a communication network for processing environmental, social, and governance (ESG) reports. The computing device is configured to obtain an ESG report of an entity, receive a question in natural language regarding information contained in or inferable from the ESG report, convert the ESG report into page-wise pieces of text, determine an answer to the question based at least upon the page-wise pieces of text of the ESG report, determine a location of a snippet related to the answer in the page-wise pieces of text of the ESG report, generate a bounding box through which the snippet is highlighted in a page containing the snippet, crop the page based on the bounding box, and display a cropped image of the page.
Owner:VELOCITYEHS HOLDINGS INC

Source code vulnerability detection and repair through machine learning

A neural classifier model is used to detect cybersecurity vulnerabilities in the source code predicted by a deep learning code generation model having been trained on source code possibly containing security bugs. Upon the classifier model classifying a given source code snippet as likely containing a cybersecurity vulnerability, a proposed repair for the cybersecurity vulnerability is predicted from a neural decoder transformer model having been trained on non-vulnerable source code. The neural decoder transformer model is used to predict source code that repairs the cybersecurity vulnerability given the source code classified with a cybersecurity vulnerability.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Retrieval-augmented code completion

A retrieval-augmented code completion system uses the context of a partially-formed source code snippet of a source code program and a hint to predict the source code tokens needed to complete the partially-formed source code snippet. The hint is a source code segment that completes a semantically-similar source code segment of the partially-formed source code snippet. The hint is found in a retrieval source code database using a hybrid retrieval technique. A deep learning decoder model uses the context of the partially-formed source code snippet and the hint to predict the most likely candidate sequence of source code tokens to complete the partially-formed source code snippet.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Using generative artificial intelligence to evaluate fine-tuned language models

Methods and systems are provided for using generative artificial intelligence to evaluate fine-tuned language models. In embodiments described herein, natural language text snippets are generated via a generative language model based on corresponding data. A language model is fine-tuned into a fine-tuned language model via a language model fine-tuning component using the natural language text snippets and the corresponding data as training data. Independent natural language text snippets are generated via the generative language model based on the corresponding data. Each independent natural language text snippet is different than each corresponding natural language text snippet. An evaluation metric of the fine-tuned language model is generated via an evaluation component based on the independent natural language text snippets and the corresponding data.
Owner:ADOBE INC

Method and system to classify news snippets into categories using an ensemble of machine learning models

PendingUS20240330780A1Ensemble learningBiological modelsNatural language inferenceText categorization
This disclosure relates generally to method and system to classify news snippets into categories using an ensemble of machine learning models. The ensemble is between a bidirectional long short memory (BILSTM) based text classification network and a pretrained language model (PLM) based natural language inference (NLI) which is robust and accurate for such categorization. The method trains a first machine learning model using a training dataset to learn text representations. Further, the training dataset is used to finetune a second machine learning model to classify at least one unlabeled news snippet of unknown category based on a premise-hypothesis pair. Further, an ensemble of machine learning models is generated by using the first machine learning model and the second machine learning model to classify a set of test news snippets received as input request to corresponding category.
Owner:TATA CONSULTANCY SERVICES LTD

Intelligent auxiliary method and system for software development

The invention discloses an intelligent assistance method and system for software development, particularly relates to the field of software development assistance, is used for solving the problem of code snippet screening and recommendation, and aims to analyze an abstract syntax tree of code snippets through a systematic method, construct a dependency graph and a time sequence dependency graph, and calculate early warning isolation and a functional functional rate. Screening high-value code snippets by combining the indexes; converting the code snippets into high-dimensional vectors by using a deep learning model, capturing grammar and semantic features, understanding the intention of a developer in real time through a situation analysis model, and adjusting a code recommendation strategy; clustering and classifying the code snippets by using an unsupervised learning algorithm to form a code snippet library with similar semantics and related functions; the accuracy of classification, clustering and similarity calculation of the code snippets is improved, code search and recommendation are effectively supported, the development process is optimized, the reuse rate and the system stability are improved, and the maintenance cost is reduced.
Owner:TIBET CHENGMEI TECH CO LTD

Question and answer processing method and device

The embodiment of the invention discloses a question and answer processing method and device. The method comprises the steps of obtaining a natural language question text; matching is conducted in a code library through the natural language question text, candidate code snippets are obtained, and the code library comprises code snippets obtained after analysis and snippet extraction are conducted on target codes; filtering out candidate code snippets which are not matched with an intention category in the candidate code snippets by utilizing the intention category obtained by performing intention recognition on the natural language question text; and selecting a target code snippet from the filtered candidate code snippets, and generating a reply for the natural language question text by using the target code snippet. According to the method, intention recognition is performed on the natural language question text, and the candidate codes are filtered, so that the question and answer processing accuracy is improved.
Owner:ALIBABA (CHINA) CO LTD

Digital assistant for providing visualization of snippet information

This relates generally to intelligent automated assistants and, more specifically, to provide intelligent visualization of snippet information. An example method includes receiving a user request and in response to receiving the user request, determining a response for the user request, determining a format for a visual representation of the response, identifying one or more virtual objects based on the format for the visual representation of the response, determining a size for each of the one or more virtual objects based on context information associated with the response, and displaying the one or more virtual objects within a background environment based on the size for each of the one or more virtual objects and geometry of the background environment.
Owner:APPLE INC

Dynamic malicious software detection model black box confrontation disturbance method based on large model

The invention relates to artificial intelligence and network security technologies, in particular to a dynamic malicious software detection model black box confrontation disturbance method based on a large model. According to the method, a dynamic malicious software detection model is given, and an API sequence sample set is constructed; training by adopting a machine learning algorithm to obtain a proxy malicious software detection model; constructing a generator, obtaining a trained generator by utilizing an agent malicious software detection model through adversarial training, and performing feature space adversarial disturbance on the API feature vector of the malicious software sample by utilizing the trained generator to obtain an API feature vector after adversarial disturbance; obtaining an API difference vector based on the API feature vector of the malicious software sample and the API feature vector after confrontation disturbance; and generating a function code snippet by using the large model, and modifying the source code of the malicious software sample according to the function code snippet to obtain a final anti-disturbance code. According to the method, the work of manual coding is avoided, and the attack resisting efficiency is greatly improved.
Owner:ZHEJIANG UNIV OF TECH

Code generation method and related equipment

The invention provides a code generation method which is executed by a code generation system, the code generation system is used for automatically generating a test code, and the method comprises the following steps: receiving a test step description input by a user, retrieving a text code pair vector library and a test method vector library according to the test step description, the text code pair vector library comprises description texts and vectors formed by corresponding test codes, and the test method vector library comprises vectors formed by the test method calling examples; and according to the test code snippets and the test methods corresponding to the similar test step descriptions, reasoning through a large language model (LLM), generating test codes corresponding to the test step descriptions, and presenting the test codes corresponding to the test step descriptions to a user. According to the method, retrieval and LLM reasoning are combined, the complex test code can be automatically generated, and the automatic development efficiency of the complex test scene is improved.
Owner:HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD

Snippet information generation method and apparatus, search result display method and apparatus, device, and medium

The present invention relates to a snippet information generation method and apparatus, a search result display method and apparatus, a device, and a medium. The search result display method includes: in response to search content, obtaining a first research result; displaying, in a search result page, snippet information corresponding to the first search result, wherein the snippet information is generated on the basis of detailed content and snippet attributes of the first search result, the snippet attributes comprise at least one of the snippet row number, the snippet area size, and snippet typesetting information, and the snippet attributes are determined on the basis of key content matched with the search content in the detailed content.
Owner:DOUYIN VISION CO LTD

Code review method, system and device, storage medium and program product

The invention discloses a code review method, system and device, a storage medium and a program product, and the method comprises the steps: cleaning a to-be-reviewed code snippet, and obtaining an incremental code snippet and position information; vectorizing the incremental code snippets; semantic query is conducted on the vectorized incremental code snippet data based on an ES database according to the cosine law, development rules of similar semantics are obtained and ranked from high to low according to similarity values, and a preset number of first several snippets are obtained; recombining cue words, wherein the recombining cue words comprise incremental code snippets and a preset number of development rules; and sending the recombined cue word to a general generative large model to obtain an examination suggestion. The code snippets to be examined are pushed to the gilab warehouse by a developer, and are cleaned by the gilab warehouse through webhook triggering. According to the review method, the whole process is automatic, the review efficiency is high, review can be conducted according to the development rules in the team, knowledge sharing is achieved, the review result is objective, and the problem that the text exceeds the upper limit is avoided.
Owner:BEIJING ZHUZHE INFORMATION TECHNOLOGY CO LTD

System and method for prioritizing code violations using machine learning and datasets of vulnerable and vanilla code snippets

Method for prioritizing code violations in a computer program, using machine learning includes: analyzing the computer program for code violations; extracting code snippets containing violations from the computer program; training a machine learning model to differentiate between vulnerable and non-vulnerable code in the extracted code snippets; inputting the extracted code snippets to a trained machine learning model to assign a vulnerability probability score to each snippet, wherein each vulnerability probability score indicates a severity of the violation for a respective snippet; ranking the code snippets based on their respective vulnerability probability score, wherein a higher score indicates a higher likelihood of causing severe vulnerabilities; and displaying the ranked code snippets to be fixed for their code violations.
Owner:PARASOFT CORP

Code review comment generation via retrieval-augmented transformer with chunk cross- attention

A retrieval-augmented neural transformer model with chunk cross-attention predicts a code review given a proposed source code change, represented as a code diff hunk, and a set of historical code review comments. The code diff hunk represents proposed edits to a source code snippet with its surrounding context that has not been changed. The historical code review comments are associated with code edits that are semantically similar to the proposed source code changes. The code diff hunk is partitioned into chunks which are used to find semantically similar historical code review comments. The set of historical code review comments is aggregated and used to guide the model in makings its predictions.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Code generation

Embodiments of the present disclosure provide a code generation method, a device, and a storage medium. In the embodiments of the present disclosure, a custom retrieval library can be constructed, wherein the custom retrieval library comprises sub-snippets segmented from reference code snippets; on this basis, a target sub-snippet meeting a preset similarity requirement can be retrieved for an uncompleted code from the custom retrieval library; and then a code context of the target sub-snippet can be acquired to generate a retrieval result. Since the custom retrieval library is at the sub-snippet level, the code diversity in the custom retrieval library can be effectively enhanced, and various code variants can be covered, so that the retrieval precision can be effectively improved, effectively improving the quality of retrieval results. Moreover, prompt information can be constructed on the basis of the generated retrieval result and input into a code generation model.
Owner:CLOUD INTELLIGENCE ASSETS HOLDING (SINGAPORE) PTE LTD

Code modification method, system and equipment based on CURD scene and medium

The invention is applicable to the technical field of code development, and provides a code modification method based on a CURD scene, which comprises the following steps: acquiring a business demand of code modification, and acquiring a data model required by code modification according to the business demand; based on the data model, obtaining a code file related to a CURD scene during code modification; analyzing a calling relationship among functions related to the CURD scene in the code file, and constructing a function calling graph; on the basis of the service requirements and the data model, service code snippets are generated, the service code snippets are combined and modified to the code file, code modification of the service requirements can be processed, and development efficiency and code quality are further improved.
Owner:ANHUI SANQI JIYU NETWORK TECH CO LTD

Container dynamic measurement method and device based on shared kernel

The invention provides a container dynamic measurement method and device based on a shared kernel, and the method comprises the steps: generating a file measurement key value pair and a process code segment measurement key value pair through combining a namespace identifier corresponding to a container with a reference value of a key file required when the container runs and a code segment reference value of an application process; determining a to-be-measured container based on the hook function; and when the current namespace identifier of the to-be-measured container is in a pre-stored naming double linked list, comparing the file abstract value of the key file and the process code segment abstract value of the application process running in the to-be-measured container with a pre-stored measurement key value pair to obtain a comparison result. According to the method provided by the invention, the distinguishing of the multi-container file is realized based on the namespace identifier, so that the dynamic measurement of the multiple containers is realized, and the credibility and the security of the full-life-cycle operation of the containers in the multi-container environment based on the shared kernel are ensured.
Owner:BEIJING UNIV OF TECH

General algorithm reflection evolution method based on large language model

The invention discloses a general algorithm reflection evolution (MHRE) method based on a large language model. The MHRE method comprises the steps of individual coding, population construction and population iterative optimization. In the individual coding stage, the large language model generates code snippets containing performance functions and architecture functions, and the snippets define basic structures and behaviors of population individuals. In the population construction stage, a prompt word of a specific task is used for further refining code snippets, and initial population individuals are formed. In the population iterative optimization stage, through a cross evolution module, a cooperative evolution module, a framework upgrading module and other modules, iterative optimization of population individuals is achieved in combination with a generation-standardization-evaluation-selection loop module (GSES), and algorithm individuals with the optimal performance are generated. The MHRE method can automatically generate, optimize and evaluate a plurality of algorithms, improves the adaptability, universality and optimization effect of the algorithms, and is especially suitable for complex optimization tasks such as industrial production, resource allocation and logistics path planning.
Owner:TSINGHUA SHENZHEN INTERNATIONAL GRADUATE SCHOOL

Localizing vulnerabilities in source code at a token-level

A vulnerability detection and repair system utilize a classifier model to detect a software vulnerability in a source code snippet and the tokens in the source code snippet attributable to the vulnerability. A large language model is then given the vulnerable source code snippet, its vulnerability type, the vulnerability tokens, and a few-shot examples to determine whether or not the source code snippet includes the identified vulnerability. The few-shot examples include positive and negative samples of the type of vulnerability to guide the large language model towards the correct output.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC