Classifying code as introducing a bug or not introducing a bug to train a bug detection algorithm
AssigneeInternational Business Machines Corporation
InventorsAlexander Sobran, Bo Zhang
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorsAlexander Sobran, Bo Zhang
Estimating the term…
Provided are a computer program product, system, and method for classifying code as introducing a bug or not introducing a bug to train a bug detection algorithm. For each commit in a commit history of code changes to the code base, a determination is made of lines of code changed by the commit. For each line of code changed by the commit, a determination is made as to whether the commit is for a bug fix. A determination is made as to whether a previous commit changing the line of code changed by the commit for the bug fix in response to determining that the commit is for the bug fix. Indication is made that the previous commit introduced a bug. The algorithm is trained to classify changes to lines of code by commits indicated as having introduced a bug as bug introducing commits.
A computer program product for training an algorithm to determine whether code changes to a code file will result in a code error, the computer program product comprising a computer readable storage medium having computer readable program code embodied therein that is executable to perform operations, the operations comprising:
A system for training an algorithm to determine whether code changes to a code file will result in a code error, comprising:
A method for training an algorithm executed in a computer system to determine whether code changes to a code file will result in a code error, comprising:
Dependencies are inferred from the claim text.