https://github.com/casperdcl/ghstat
Plot summaries of lines of code written
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
Repository
Plot summaries of lines of code written
Basic Info
Statistics
- Stars: 11
- Watchers: 1
- Forks: 2
- Open Issues: 1
- Releases: 2
Topics
Metadata Files
README.md
ghstat
Automatically plot total lines of code (LoC) written.

Full breakdown

Usage
Workflow
Requirements:
python3- e.g.
uses: actions/setup-python@v2
- e.g.
- secrets
- a personal access token with scopes:
reporead: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
- Website: https://cdcl.ml
- Repositories: 136
- Profile: https://github.com/casperdcl
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
Top Committers
| Name | 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
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
Rankings
Dependencies
- argopt *
- matplotlib *
- pyyaml *
- tqdm *
- actions/checkout v2 composite
- actions/github-script v2 composite
- ./.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