xiongchiamiov/github-pr-stats — pull request #5 by livibetter (2014-04-14 02:51:11+00:00)
Title: Fix bucket KeyError on addition and deletion stats, align numbers

The keys were generated differently by bucket_value() and bucketed_range(), 10-19 and 11-20, respectively. They didn't match, therefore a KeyError.

1-10 should be right bucket range, since we won't see 0 additions or deletions. I also added valueLength in order to align the key better for the presentation.