Invention Application
- Patent Title: ADAPTING EXISTING SOURCE CODE SNIPPETS TO NEW CONTEXTS
-
Application No.: US17901128Application Date: 2022-09-01
-
Publication No.: US20230004366A1Publication Date: 2023-01-05
- Inventor: Qianyu Zhang , Bin Ni , Rishabh Singh , Olivia Hatalsky
- Applicant: X Development LLC
- Applicant Address: US CA Mountain View
- Assignee: X Development LLC
- Current Assignee: X Development LLC
- Current Assignee Address: US CA Mountain View
- Main IPC: G06F8/41
- IPC: G06F8/41 ; G06F8/34 ; G06F8/36 ; G06F8/71 ; G06F16/00

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
- US11822909B2 Adapting existing source code snippets to new contexts Public/Granted day:2023-11-21
Information query