18384348. REFACTORING NON-COMPLIANT CODE INTO COMPLIANT CODE (Microsoft Technology Licensing, LLC)
REFACTORING NON-COMPLIANT CODE INTO COMPLIANT CODE
Organization Name
Microsoft Technology Licensing, LLC
Inventor(s)
Justin Allen Hutchings of Sammamish WA US
Ryan Joseph Salva of Palm Springs CA US
REFACTORING NON-COMPLIANT CODE INTO COMPLIANT CODE
This abstract first appeared for US patent application 18384348 titled 'REFACTORING NON-COMPLIANT CODE INTO COMPLIANT CODE
Original Abstract Submitted
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.
(Ad) Transform your business with AI in minutes, not months
Trusted by 1,000+ companies worldwide