ADAPTING EXISTING SOURCE CODE SNIPPETS TO NEW CONTEXTS
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,...
Saved in:
Main Authors | , , , |
---|---|
Format | Patent |
Language | English |
Published |
05.01.2023
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | 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. |
---|---|
Bibliography: | Application Number: US202217901128 |