It is a command line tool to calculate Hits-of-Code metric in a source code repository (at the moment we support Git 2+ and Subversion 1.7+). You can read more about Hits-of-Code metric in this blog post: Hits-of-Code Instead of SLoC.
Install it first:
$ gem install hoc
Run it locally and read its output:
$ hoc --help
For Subversion statistics you must have diffstat installed.
How to contribute
$ bundle update $ bundle exec rake
If it's clean and you don't see any error messages, submit your pull request.