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

Claim 5:
6. A system, comprising:
a memory that stores computer executable components; and
a processor, operably coupled to the memory, and that executes the computer executable components stored in the memory, wherein the computer executable components comprise:
a simplification component that:
identifies, from source code samples within a training dataset, a source code sample having a threshold amount of complexity according to a code complexity metric, and
generates, 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

a model training component that trains an artificial intelligence model to incorporate code complexity into the artificial intelligence model, based on an augmented training dataset that comprises the a subset of the plurality of simplified source code samples, wherein the subset of the plurality of simplified source code samples are 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.