US 11,775,267 B2
Identification and application of related source code edits
Grigory Bronevetsky, San Ramon, CA (US)
Assigned to GOOGLE LLC, Mountain View, CA (US)
Filed by Google LLC, Mountain View, CA (US)
Filed on Dec. 7, 2021, as Appl. No. 17/544,104.
Prior Publication US 2023/0176838 A1, Jun. 8, 2023
Int. Cl. G06F 9/44 (2018.01); G06F 8/38 (2018.01); G06F 8/41 (2018.01)
CPC G06F 8/38 (2013.01) [G06F 8/433 (2013.01)] 18 Claims
OG exemplary drawing
 
1. A method implemented using one or more processors, comprising:
detecting a first edit made to a first source code snippet in a source code editor;
identifying a second edit to make to a second source code snippet, wherein the identifying includes:
traversing one or more graphs to determine one or more edge sequences between nodes corresponding to the first and second source code snippets,
comparing the one or more edge sequences to a plurality of reference edge sequences between nodes corresponding to historical co-occurrences of the first and second code edits,
determining the one or more edge sequences match the plurality of reference edge sequences of at least a threshold number or percentage of the historical co-occurrences of the first and second code edits, and
identifying the second edit based on the comparing and the determining; and
causing the source code editor to provide output, wherein the output comprises a recommendation to implement the second edit.