{"id":18026831,"url":"https://github.com/yegor256/hoc","last_synced_at":"2025-03-27T01:31:28.853Z","repository":{"id":23118572,"uuid":"26473118","full_name":"yegor256/hoc","owner":"yegor256","description":"Hits-of-Code Command Line Calculator, for Git and Subversion","archived":false,"fork":false,"pushed_at":"2024-05-22T12:43:08.000Z","size":184,"stargazers_count":61,"open_issues_count":10,"forks_count":12,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-05-22T13:55:21.356Z","etag":null,"topics":["command-line-tool","git","hits-of-code","metrics","ruby","subversion"],"latest_commit_sha":null,"homepage":"https://www.yegor256.com/2014/11/14/hits-of-code.html","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yegor256.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-11-11T06:48:08.000Z","updated_at":"2024-05-31T06:27:42.851Z","dependencies_parsed_at":"2023-07-14T11:15:39.013Z","dependency_job_id":"70d4a6ea-1be2-4fdc-a670-4e5730e7b8c0","html_url":"https://github.com/yegor256/hoc","commit_stats":{"total_commits":189,"total_committers":8,"mean_commits":23.625,"dds":0.2962962962962963,"last_synced_commit":"5f6be5afdb3a11cd18b3317fb049880e74af3af1"},"previous_names":["teamed/hoc"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fhoc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fhoc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fhoc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fhoc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yegor256","download_url":"https://codeload.github.com/yegor256/hoc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245764715,"owners_count":20668466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line-tool","git","hits-of-code","metrics","ruby","subversion"],"created_at":"2024-10-30T08:08:13.318Z","updated_at":"2025-03-27T01:31:28.845Z","avatar_url":"https://github.com/yegor256.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)\n[![DevOps By Rultor.com](http://www.rultor.com/b/yegor256/hoc)](http://www.rultor.com/p/yegor256/hoc)\n[![We recommend RubyMine](https://www.elegantobjects.org/rubymine.svg)](https://www.jetbrains.com/ruby/)\n\n[![rake](https://github.com/yegor256/hoc/actions/workflows/rake.yml/badge.svg)](https://github.com/yegor256/hoc/actions/workflows/rake.yml)\n[![Gem Version](https://badge.fury.io/rb/hoc.svg)](http://badge.fury.io/rb/hoc)\n[![Maintainability](https://api.codeclimate.com/v1/badges/4302208cf578d101143e/maintainability)](https://codeclimate.com/github/yegor256/hoc/maintainability)\n[![Test Coverage](https://img.shields.io/codecov/c/github/yegor256/hoc.svg)](https://codecov.io/github/yegor256/hoc?branch=master)\n[![Hits-of-Code](https://hitsofcode.com/github/yegor256/hoc)](https://hitsofcode.com/view/github/yegor256/hoc)\n\nIt is a command line tool to calculate Hits-of-Code metric\nin a source code repository (at the moment we support Git 2+ and Subversion 1.7+).\nYou can read more about Hits-of-Code metric in this blog post:\n[Hits-of-Code Instead of SLoC](http://www.yegor256.com/2014/11/14/hits-of-code.html).\n\nYou can also use [hitsofcode.com](https://hitsofcode.com) by\n[Valentin Brandl](https://www.vbrandl.net/), if you want to have a badge\nin your repo.\n\nInstall it first:\n\n```bash\n$ gem install hoc\n```\n\nRun it locally and read its output:\n\n```bash\n$ hoc --help\n```\n\nFor Subversion statistics you must have\n[diffstat](http://sourceforge.net/projects/mingw/files/MSYS/Extension/diffstat/)\ninstalled.\n\n## How to contribute\n\nRead [these guidelines](https://www.yegor256.com/2014/04/15/github-guidelines.html).\nMake sure your build is green before you contribute\nyour pull request. You will need to have [Ruby](https://www.ruby-lang.org/en/) 2.3+ and\n[Bundler](https://bundler.io/) installed. Then:\n\n```\n$ bundle update\n$ bundle exec rake\n```\n\nIf it's clean and you don't see any error messages, submit your pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Fhoc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyegor256%2Fhoc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Fhoc/lists"}