{"id":23543290,"url":"https://github.com/orchestr7/git-stat","last_synced_at":"2025-05-15T07:10:04.989Z","repository":{"id":53055869,"uuid":"302297343","full_name":"orchestr7/git-stat","owner":"orchestr7","description":"Command line application for getting statistics from the github","archived":false,"fork":false,"pushed_at":"2023-12-15T11:40:27.000Z","size":108,"stargazers_count":2,"open_issues_count":8,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-17T09:34:32.157Z","etag":null,"topics":["github","github-api","github-stats","stargazers","statistics"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/orchestr7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-10-08T09:51:39.000Z","updated_at":"2021-04-08T14:39:12.000Z","dependencies_parsed_at":"2024-06-16T14:34:36.060Z","dependency_job_id":"291ebe16-2442-49d7-8c9b-ce5172e15f90","html_url":"https://github.com/orchestr7/git-stat","commit_stats":null,"previous_names":["orchestr7/git-stat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchestr7%2Fgit-stat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchestr7%2Fgit-stat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchestr7%2Fgit-stat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchestr7%2Fgit-stat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orchestr7","download_url":"https://codeload.github.com/orchestr7/git-stat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254292067,"owners_count":22046427,"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":["github","github-api","github-stats","stargazers","statistics"],"created_at":"2024-12-26T06:26:42.104Z","updated_at":"2025-05-15T07:10:04.902Z","avatar_url":"https://github.com/orchestr7.png","language":"Kotlin","readme":"[![Run diKTat code style analysis](https://github.com/akuleshov7/git-stat/workflows/Run%20diKTat%20code%20style%20analysis/badge.svg)](https://github.com/cqfn/diktat)\n[![License](https://img.shields.io/github/license/akuleshov7/git-stat)](https://github.com/git-stat/blob/master/LICENSE)\n[![Hits-of-Code](https://hitsofcode.com/github/akuleshov7/git-stat?branch=main)](https://hitsofcode.com/view/github/akuleshov7/git-stat?branch=main)\n\n\nGitHub - is an outstanding platform that provides all kinds of insights about the project.\nBut sometimes you need to get extra statistics that cannot be found on github directly.\n[GitHub API](https://developer.github.com/v3/) provides all needed information to get and calculate all needed statistics.\nThis command-line application will do exactly this thing.\n\n## Run as CLI-application\n- Download and extract `git-stat-0.1.0.zip/git-stat-0.1.0.tar`\n- **Windows**: run `git-stat.bat` from `bin/` directory; \n  **Linux**: execute `git-stat` from `bin/` directory\n\n`git-stat` is a command line application powered by java. You will need to install java to run it.\nFixMe: One day when `kotlin` will be mature enough and git-stat will automatically become a native application.\n\nTo run .jar file directly do (see the list of options here: [cli-arguments](#arguments)):\n`$ git-stat --options`\n\n## Build executable application \n- Build zip: `$ gradlew distZip`\n- Build tar: `$ gradlew distTar`\n\n## Example of usage for calculating unique stargazers \n`git-stat -t stargazers -r \"akuleshov7/diktat-demo, cqfn/diktat, yegor256/tacit\" -e`\n\n1) `-t stargazers -r cqfn/veniq,cqfn/aibolit -e`\n2) `-t stargazers -o artipie -e`\n3) `-t stargazers -r cqfn/diktat,akuleshov7/huawei-yapf -e`\n4) `-t stargazers -r cqfn/degitx,cqfn/degitx-simulator,cqfn/degit`\n\nThis will output the following with `--extended` option ([cli-arguments](#arguments)):\n```bash\n[INFO] getting statistics for the following repositories: akuleshov7/diktat-demo, cqfn/diktat, yegor256/tacit\n[INFO] Number of stargazers: 1362\n[INFO] Number of duplicated stars: 4\n[INFO] Unique stargazers: akuleshov7, kentr0w, petertrr, yegor256\n[INFO] Duplicated stars: User:akuleshov7 Stars:2; User:kentr0w Stars:2; User:petertrr Stars:2; User:yegor256 Stars:2\n```\n\nIn this set of repositories 4 stars are duplications and 1362 unique stargazers\n\n## \u003ca name=\"arguments\"\u003e\u003c/a\u003e Cli-arguments\n`--debug/-d` - Debug mode to see additional information about the program execution \\\n`--help/-h` - Obviously - it will print `help` information \\\n`--configPath/-c` - Full path to a configuration file (FixMe: this will be added later) \\\n`--extended/-e` - Extended report with more statistic for your type of report. For STARGAZERS it will not only print numbers, but also will list names of stargazers. \\\n`--type/-t` - Type of statistics. Available types:\n- STARGAZERS - to get unique/duplicated stargazers for repositories\n- FORKS - to get information about forks\n- WATCHERS - to get information about watchers of provided repositories\n\n`--repos/-r` - List of repositories that should be scanned. Example: `\"cqfn/diKTat, yegor256/tacit\"` \\\n`--organizations/-o` - List of organizations that should be scanned\n \n## Errors and resolution\nPlease note that it is possible to run `git-stat` application in `--debug` mode. Some of problems can be understood by debug information.\nBut below are most frequent issues: \n- `403 rate limit exceeded`: github has strict limitations on the number of requests to it's API. We are able to run **only 60 requests**!\n- `ClientRequestException`: there is some kind of misprint in the name of the repository or the URL is broken\n- `TimeoutCancellationException`: current timeout is 10000 ms on each request\n- `SocketException`: usually the problem appears with the proxy enabled\n- `UnknownHostException`: looks like you are out of Internet or you connection is not stable\n\n## How to contribute?\n\nBefore you make a pull request, make sure the build is clean as we have lot of tests and other prechecks:\n\n```bash\n$ gradlew.bat clean build\n```\n\nAlso see our [Contributing Policy](CONTRIBUTING.md) and [Code of Conduct](CODE_OF_CONDUCT.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forchestr7%2Fgit-stat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forchestr7%2Fgit-stat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forchestr7%2Fgit-stat/lists"}