The patent badge is an abbreviated version of the USPTO patent document. The patent badge does contain a link to the full patent document.

The patent badge is an abbreviated version of the USPTO patent document. The patent badge covers the following: Patent number, Date patent was issued, Date patent was filed, Title of the patent, Applicant, Inventor, Assignee, Attorney firm, Primary examiner, Assistant examiner, CPCs, and Abstract. The patent badge does contain a link to the full patent document (in Adobe Acrobat format, aka pdf). To download or print any patent click here.

Date of Patent:
Sep. 02, 2025

Filed:

Jun. 02, 2023
Applicant:

Microsoft Technology Licensing, Llc., Redmond, WA (US);

Inventors:

Aaron Yue-Chiu Chan, Provo, UT (US);

Anant Kharkar, Huntersville, NC (US);

Yevhen Mohylevskyy, Redmond, WA (US);

Kalpathy Sitaraman Sivaraman, Redmond, WA (US);

Neelakantan Sundaresan, Bellevue, WA (US);

Roshanak Zilouchian Moghaddam, Kirkland, WA (US);

Assignee:
Attorney:
Primary Examiner:
Int. Cl.
CPC ...
G06F 21/57 (2013.01);
U.S. Cl.
CPC ...
G06F 21/577 (2013.01); G06F 2221/033 (2013.01);
Abstract

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.


Find Patent Forward Citations

Loading…