https://github.com/casperdcl/ghstat

Plot summaries of lines of code written

https://github.com/casperdcl/ghstat

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.4%) to scientific vocabulary

Keywords

actions author code-analysis gist gistbox git github graph log pinned-gist plot readme statistics stats
Last synced: 5 months ago · JSON representation

Repository

Plot summaries of lines of code written

Basic Info
  • Host: GitHub
  • Owner: casperdcl
  • License: other
  • Language: Python
  • Default Branch: v2
  • Homepage:
  • Size: 80.1 KB
Statistics
  • Stars: 11
  • Watchers: 1
  • Forks: 2
  • Open Issues: 1
  • Releases: 2
Topics
actions author code-analysis gist gistbox git github graph log pinned-gist plot readme statistics stats
Created about 5 years ago · Last pushed 6 months ago
Metadata Files
Readme Funding

README.md

ghstat

Automatically plot total lines of code (LoC) written.

Full breakdown

Usage

Workflow

Requirements:

  • python3
    • e.g. uses: actions/setup-python@v2
  • secrets
    • a personal access token with scopes:
    • repo
    • read:user (optional)
    • gist (optional)
    • a gist ID which will store the generated graphs (optional)

Example:

yaml name: ghstat on: push: schedule: - cron: '0 0 * * *' # every midnight jobs: ghstat: runs-on: ubuntu-latest steps: - uses: actions/setup-python@v2 - uses: casperdcl/ghstat@v2 with: github-token: ${{ secrets.GH_TOKEN }} gist-id: ${{ secrets.GIST_ID }} # user: casperdcl # default inferred from github-token # author: 'Casper da Costa-Luis' # for `git log --author`, default inferred # repos-incl: '' # space separated list (e.g. myuser/arepo myorg/arepo) # repos-skip: '' # space separated list (e.g. myuser/arepo myorg/arepo conda-forge) # lang-names: '' # space separated list (e.g. conf:INI cuh:Cuda)

Using a GIST_ID of 7f351ce61f01cfcfb5cfa53097954435, the result is visible at https://gist.github.com/casperdcl/7f351ce61f01cfcfb5cfa53097954435.

Running locally

Python and ${GH_TOKEN} are required; other env vars are optional.

bash python -m pip install -r requirements.txt GH_TOKEN=... \ AUTHOR=... \ GH_USER=... \ REPOS_INCL=... \ REPOS_SKIP=... \ GH_GIST_ID=... \ LANG_NAMES=... \ bash ghstat.sh

Owner

  • Name: Casper da Costa-Luis
  • Login: casperdcl
  • Kind: user
  • Location: London, UK

Open Core Software Consultant & Technical Product Manager; Computational Physicist; member of IEEE, IOP, & @python Software Foundation

GitHub Events

Total
  • Watch event: 1
  • Push event: 4
Last Year
  • Watch event: 1
  • Push event: 4

Committers

Last synced: over 1 year ago

All Time
  • Total Commits: 56
  • Total Committers: 1
  • Avg Commits per committer: 56.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 5
  • Committers: 1
  • Avg Commits per committer: 5.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Casper da Costa-Luis c****l@p****g 56
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 0
  • Total pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: 1 minute
  • Total issue authors: 0
  • Total pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 1
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • pre-commit-ci[bot] (2)
  • casperdcl (1)
Top Labels
Issue Labels
Pull Request Labels
bug (1) framework (1)

Packages

  • Total packages: 1
  • Total downloads: unknown
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 18
github actions: casperdcl/ghstat

Calculate Lines of Code (LoC) written for a GitHub user

  • License: other
  • Latest release: v2.7.6
    published over 4 years ago
  • Versions: 18
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 0.0%
Stargazers count: 15.6%
Forks count: 17.4%
Average: 18.3%
Dependent repos count: 40.3%
Last synced: 5 months ago

Dependencies

requirements.txt pypi
  • argopt *
  • matplotlib *
  • pyyaml *
  • tqdm *
.github/workflows/comment-bot.yml actions
  • actions/checkout v2 composite
  • actions/github-script v2 composite
.github/workflows/daily.yml actions
  • ./.github/.. * composite
  • actions/cache v1 composite
  • actions/checkout v2 composite
  • actions/setup-go v2 composite
  • actions/setup-python v2 composite
  • reviewdog/action-setup v1 composite
action.yml actions