Invention Grant
- Patent Title: Adapting existing source code snippets to new contexts
-
Application No.: US17901128Application Date: 2022-09-01
-
Publication No.: US11822909B2Publication Date: 2023-11-21
- Inventor: Qianyu Zhang , Bin Ni , Rishabh Singh , Olivia Hatalsky
- Applicant: Google LLC
- Applicant Address: US CA Mountain View
- Assignee: GOOGLE LLC
- Current Assignee: GOOGLE LLC
- Current Assignee Address: US CA Mountain View
- Agency: Gray Ice Higdon
- Main IPC: G06F8/34
- IPC: G06F8/34 ; G06F8/41 ; G06F8/36 ; G06F8/71 ; G06F16/00 ; G06F16/242 ; G06N3/088 ; G06N3/045

Abstract:
Implementations are described herein for adapting existing source code snippets to new contexts. In various implementations, a command may be detected to incorporate an existing source code snippet into destination source code. An embedding may be generated based on the existing source code snippet, e.g., by processing the existing source code snippet using an encoder. The destination source code may be processed to identify one or more decoder constraints. Subject to the one or more decoder constraints, the embedding may be processed using a decoder to generate a new version of the existing source code snippet that is adapted to the destination source code.
Public/Granted literature
- US20230004366A1 ADAPTING EXISTING SOURCE CODE SNIPPETS TO NEW CONTEXTS Public/Granted day:2023-01-05
Information query