{"id":20245492,"url":"https://github.com/marcusolsson/freq","last_synced_at":"2025-10-12T09:32:59.106Z","repository":{"id":57628642,"uuid":"216110255","full_name":"marcusolsson/freq","owner":"marcusolsson","description":"Display frequency distributions from the command-line.","archived":false,"fork":false,"pushed_at":"2025-05-12T19:41:29.000Z","size":24,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-12T09:32:11.291Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/marcusolsson.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-10-18T21:35:37.000Z","updated_at":"2025-06-13T11:43:39.000Z","dependencies_parsed_at":"2025-10-12T09:31:01.666Z","dependency_job_id":null,"html_url":"https://github.com/marcusolsson/freq","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/marcusolsson/freq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcusolsson%2Ffreq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcusolsson%2Ffreq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcusolsson%2Ffreq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcusolsson%2Ffreq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcusolsson","download_url":"https://codeload.github.com/marcusolsson/freq/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcusolsson%2Ffreq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010936,"owners_count":26084837,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-11-14T09:21:28.457Z","updated_at":"2025-10-12T09:32:59.100Z","avatar_url":"https://github.com/marcusolsson.png","language":"Go","readme":"# freq\n\nCommand-line utility application for displaying frequencies as histograms or bar charts, from the standard input.\n\nFor text input, `freq` returns a bar chart:\n\n```shell\n$ cat file.txt | freq\nbar  ██████████▏ 1\nfoo  ████████████████████▏ 2\ntest ██████████████████████████████▏ 3\n```\n\nFor numerical datasets, add the `--histogram` option to display a frequency distribution:\n\n```shell\n$ cat dataset.txt | freq --histogram --justify\n  2-3 █████ 28\n  3-4 █████████████████████████████▌ 167\n  4-5 ██████████████████████████████▏ 170\n  5-6 ████████████████████████████▌ 161\n  6-7 █████████████ 73\n  7-8 ██████████▌ 59\n  8-9 █████████▎ 52\n 9-10 ████▋ 26\n10-11 ███▏ 17\n11-12 ██▊ 15\n```\n\n## Installation\n\n```bash\ngo install github.com/marcusolsson/freq@latest\n```\n\n## Usage\n\nShow top contributors to a Git repository:\n\n```bash\ngit --no-pager log --format='%aN' | freq\n```\n\nShow most frequently used words in a document:\n\n```bash\ncat file.txt | tr -d '[:punct:]' | tr '[:upper:]' '[:lower:]' | tr '[:space:]' '\\n' | freq\n```\n\nShow distribution of word lengths in a document:\n\n```bash\ncat file.txt | tr -d '[:punct:]' | tr '[:upper:]' '[:lower:]' | tr '[:space:]' '\\n' | xargs -I'%' -n1 sh -c \"echo % | wc -m\" | freq --histogram\n```\n\nShow distribution of pull request age for a GitHub project, using the GitHub CLI.\n\n```\ngh pr list -s opened -f '%ct%n' | xargs -n1 -I'{}' sh -c 'echo $(($(date +%s)-{}))' | freq --histogram --buckets=20\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcusolsson%2Ffreq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcusolsson%2Ffreq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcusolsson%2Ffreq/lists"}