Skip to content

kopanitsa/Google-Bug-Prediction-Score

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

implemented google's bug prediction score.
To know algorithm, please see
http://www.publickey1.jp/blog/11/post_193.html
or
http://google-engtools.blogspot.com/2011/12/bug-prediction-at-google.html

This script calculate the score of each class recursively.
Result is outputted as csv file.

How To Use:
$ cp <this script> <root of your project>
$ cd <root of your project>
$ python bugfix_score.py --target=<full path to target directory> [extension=<extension>] [--package=<True>]
if you set extension, this script is applied to set extension.
(e.g. if you set "java", only scores of xxx.java file is outputted.)
if you set package as True, this script calc value of each directories.

Note:
Project must be managed with git.

Contact:
Takahiro Okada (@kopanitsa)