Patent ID: 11947940
Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 15:
16. A computer-implemented method, comprising:
identifying, by a system operatively coupled to a processor, from source code samples within a training dataset, a source code sample having a threshold amount of complexity according to a code complexity metric;
generating, by a system operatively coupled to a processor, using a simplification algorithm, a plurality of simplified source code samples from the source code sample, wherein the simplification algorithm removes one or more portions of the source code sample, and wherein the plurality of simplified source code samples have less complexity than the source code sample according to the code complexity metric; and
training, by the system, an artificial intelligence model to incorporate code complexity into the artificial intelligence model, based on an augmented training dataset that comprises a subset of the plurality of simplified source code samples, wherein the subset of the plurality of simplified source code sample is determined to be correct according to one or more correctness criteria, and wherein the training comprises iteratively training the artificial intelligence model by selecting simplified source code samples from the subset of the plurality of simplified source code samples in a progressive order from least code complexity to most code complexity.