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,...

Full description

Saved in:
Bibliographic Details
Main Authors Singh, Rishabh, Hatalsky, Olivia, Zhang, Qianyu, Ni, Bin
Format Patent
LanguageEnglish
Published 05.01.2023
Subjects
Online AccessGet full text

Cover

Loading…
More Information
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