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

Claim 9:
10. 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 the system, a plurality of simplified source code samples from the source code sample, via series of iterative code reductions of the source code sample, wherein the plurality of simplified source code samples have different amounts of complexity according to the code complexity metric;
generating, by the system, an augmented training dataset for training an artificial intelligence model to incorporate code complexity into the artificial intelligence model, by:
selecting a simplified source code sample from a subset of the plurality of simplified source code samples that are determined to be correct according to one or more correctness criteria, and have a same task profile as the source code sample according to one or more validation criteria, and
adding the simplified source code sample to the training dataset to generate the augmented training dataset; and

training, by the system, the artificial intelligence model using the augmented training dataset, 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.