{"id":30104245,"url":"https://github.com/ggcr/codecurator","last_synced_at":"2026-05-18T03:35:55.142Z","repository":{"id":291232069,"uuid":"976174955","full_name":"ggcr/codecurator","owner":"ggcr","description":"A Rust tool for curating and processing GitHub repos as datasets 🦀","archived":false,"fork":false,"pushed_at":"2025-07-01T10:20:38.000Z","size":246,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T11:31:17.490Z","etag":null,"topics":["datasets","github","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ggcr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-05-01T16:24:57.000Z","updated_at":"2025-07-01T10:20:52.000Z","dependencies_parsed_at":"2025-06-07T11:23:35.041Z","dependency_job_id":"a07275f2-d4da-4406-b419-3bd379c0bbf2","html_url":"https://github.com/ggcr/codecurator","commit_stats":null,"previous_names":["ggcr/curateml","ggcr/codecurator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ggcr/codecurator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggcr%2Fcodecurator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggcr%2Fcodecurator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggcr%2Fcodecurator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggcr%2Fcodecurator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ggcr","download_url":"https://codeload.github.com/ggcr/codecurator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggcr%2Fcodecurator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269649304,"owners_count":24453499,"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-08-09T02:00:10.424Z","response_time":111,"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":["datasets","github","rust"],"created_at":"2025-08-09T22:33:31.322Z","updated_at":"2026-05-18T03:35:55.124Z","avatar_url":"https://github.com/ggcr.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeCurator\n\nAn end-to-end tool for curating GitHub repositories into structured code datasets.\n\n- **Fast parallel processing** - Download and extract with configurable workers\n- **Smart filtering** - Only processes programming files using GitHub Linguist\n- **GPT-2 tokenization** - Ready-to-use token counts for ML workflows\n- **Efficient caching** - Uses ETags to avoid re-downloading unchanged repos\n\nPerfect for curating training data, running code analysis, or creating repository archives.\n\n\n### Installation\n\n```bash\ncargo install --path .\n```\n\n### Usage\n\nCreate an input file with one GitHub repository per line:\n\n```jsonl\n\"microsoft/vscode\"\n\"vercel/next.js\"\n\"tensorflow/tensorflow\"\n\"bitcoin/bitcoin\"\n\"rust-lang/rust\"\n\"kubernetes/kubernetes\"\n\"facebook/react\"\n\"docker/compose\"\n\"ansible/ansible\"\n\"elastic/elasticsearch\"\n```\n\n**Download repositories:**\n```bash\ncodecurator download ./configs/repos.jsonl\n```\n\nThis creates ZIP files in `./zip/repos/`. Downloads from `main` branch first, falls back to `master` if needed.\n\n**Extract and process:**\n```bash\ncodecurator extract ./configs/repos.jsonl --languages Python Rust Verilog\n```\n\nProcesses all programming files from `./zip/repos/`, tokenizes content, and outputs structured data to `./jsonl/repos/`.\n\n**Deduplication:**\n```bash\ncodecurator dedupe ./configs/repos.jsonl\n```\nHashes the contents of all files and deduplicates them. Stores the final data to `/dedup/` by default.\n\n**Statistics:**\n```bash\n$ bash stats/count_records.sh ./jsonl/\nTotal records: 110645\n\n$ bash stats/count_tokens.sh ./dedup/\nTotal tokens: 346574283\n```\n\n![Visitors](https://visitor-badge.laobi.icu/badge?page_id=ggcr.codecurator)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggcr%2Fcodecurator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fggcr%2Fcodecurator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggcr%2Fcodecurator/lists"}