{"id":42926679,"url":"https://github.com/coderefinery/word-count","last_synced_at":"2026-01-30T18:10:32.245Z","repository":{"id":51284001,"uuid":"191454217","full_name":"coderefinery/word-count","owner":"coderefinery","description":"Example project we use in the reproducibility lesson.","archived":false,"fork":false,"pushed_at":"2024-09-19T06:08:25.000Z","size":870,"stargazers_count":8,"open_issues_count":1,"forks_count":53,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-10T04:46:43.150Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/coderefinery.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-06-11T21:40:48.000Z","updated_at":"2024-09-19T06:08:28.000Z","dependencies_parsed_at":"2024-03-04T16:12:41.437Z","dependency_job_id":"63fe94c8-6af3-4085-b8da-f89b2db95466","html_url":"https://github.com/coderefinery/word-count","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coderefinery/word-count","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderefinery%2Fword-count","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderefinery%2Fword-count/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderefinery%2Fword-count/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderefinery%2Fword-count/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderefinery","download_url":"https://codeload.github.com/coderefinery/word-count/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderefinery%2Fword-count/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28917035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T16:37:38.804Z","status":"ssl_error","status_checked_at":"2026-01-30T16:37:37.878Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-01-30T18:10:31.792Z","updated_at":"2026-01-30T18:10:32.240Z","avatar_url":"https://github.com/coderefinery.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/coderefinery/word-count/HEAD)\n\n# Word count example\n\nThis example project will count words in a given text and plot a bar chart of the 10\nmost common words.\n\n![](https://coderefinery.github.io/reproducible-research/_images/arrows.png)\n\n## Dependencies\n\nSee `environment.yml`.\n\n\n## Usage\n\nIn this example we wish to: \n1. Analyze word frequencies using [statistics/count.py](https://github.com/coderefinery/word-count/blob/main/statistics/count.py)\n   for 4 books (they are all in the [data](https://github.com/coderefinery/word-count/tree/main/data) directory).\n2. Plot a histogram using [plot/plot.py](https://github.com/coderefinery/word-count/blob/main/plot/plot.py)\n\nFor one book (`isles.txt`) use the scripts like this:\n```\n$ python code/count.py data/isles.txt \u003e statistics/isles.data\n$ python code/plot.py --data-file statistics/isles.data --plot-file plot/isles.png\n```\n\nTo run these scripts for all books you can collect these calls all into one bash script and run it with `bash run_all.sh`. \nOne step further and less code, you could also loop through all known book titles in a bash script and run it with: `bash run_all_loop.sh`.\n\n### Workflow\n\nImplemented using Snakemake in `Snakefile`.\n\n### Tests\n\nEnd to end tests are provided in the test directory.\n\n## Acknowledgement\n\nInspired by and derived from https://hpc-carpentry.github.io/hpc-python/\n  which is distributed under\n  [Creative Commons Attribution license (CC-BY 4.0)](https://creativecommons.org/licenses/by/4.0/).\n\n## CodeRefinery workshop\n\nWe use this example in the CodeRefinery workshop in this lesson:\n- https://coderefinery.github.io/reproducible-research/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderefinery%2Fword-count","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderefinery%2Fword-count","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderefinery%2Fword-count/lists"}