Patent ID: 9038030
Filing Date: 2015-05-19
Classification: G06F

Abstract:
1. A method for predicting one or more defects in a computer program, comprising: obtaining, by a program analysis computing apparatus, a version history for a plurality of source code files associated with the computer program; generating, by the program analysis computing apparatus, at least one defect probability value for each of the plurality of source code files using at least one metric and the version history, wherein the version history includes a plurality of commits of each of the plurality of source code files to a version control system and each of the commits includes context information including at least one of a timestamp, a source code file identifier, or a commit message and the at least one metric is selected from a risky profile index (RPI) metric, a defect sequence intensity index (DSII) metric, or a file dependency churn index (FDCI) metric; identifying, by the program analysis computing apparatus, one or more of the plurality of source code files having a higher risk of including one or more defects than one or more other of the plurality of source code files based on the generated defect probability values; identifying, by the program analysis computing apparatus, a plurality of defect fix commits including determining at least one of when the identifier included in each of the plurality of commits corresponds to a defect or when the application of a regular expression to the commit message of each of the plurality of commits results in a match; and outputting, by the program analysis computing apparatus, information regarding each of the one or more identified source code files.