[PYTHON] I used bugspots, a bug prediction tool in mercurial

  1. I had a lot of trouble installing mercurial for the python module (Thanks to Takano-san!) http://qiita.com/items/1714

  2. Borrow the source here http://d.hatena.ne.jp/karronoli/20120109#1326111368

In the comments in the commit log'fix(es|ed)?|close(s|d)?'A commit that hits a regular expression in is considered a bug fix. If you leave the comment in Japanese, you may say "correct". As you can see by reading, an error will occur if the corresponding character string is not hit.

  1. Reason http://www.publickey1.jp/blog/11/post_193.html

In other words, the more frequently you fix bugs and the more recently you focus on fixing them, the higher your score. And the higher the score, the more likely it is that the code is buggy in relative terms, as the algorithm shows.

  1. Output result $python bugspots.py ~/test ['server/main.py: 0.000006', 'server/foo.py: 0.000006', 'server/bar.py: 0.000006', 'bugspots.py: 0.000006']

Recommended Posts

I used bugspots, a bug prediction tool in mercurial
I created a password tool in Python.
I get a KeyError in pyclustering.xmeans
I made a CLI tool to convert images in each directory to PDF
I made a kind of simple image processing tool in Go language.
A note I looked up to make a command line tool in Python
I want to print in a comprehension
I made a payroll program in Python!
I made a browser automatic stamping tool.
I tried to implement what seems to be a Windows snipping tool in Python
When I get a chromedriver error in Selenium
A memo that I wrote a quicksort in Python
I made a useful tool for Digital Ocean
I want to create a window in Python
I tried playing a typing game in Python
I wrote a class in Python3 and Java
[Memo] I tried a pivot table in Python
I wrote a design pattern in kotlin Prototype
I made a tool to compile Hy natively
I tried adding a Python3 module in C
[PyTorch] I was a little lost in torch.max ()
I played with Diamond, a metrics collection tool
I made a tool to get new articles
I tried running alembic, a Python migration tool
I made a Caesar cryptographic program in Python.
Predict from various data in Python using Facebook Prophet, a time series prediction tool