Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -20,8 +20,9 @@ A curated dataset of source code from **GitHub's top trending developers (2015-2
|
|
| 20 |
|
| 21 |
## Dataset Summary
|
| 22 |
|
| 23 |
-
- **1.3M+ source code files** from
|
| 24 |
-
- **
|
|
|
|
| 25 |
- **Permissive licenses only** (MIT, Apache-2.0, BSD, ISC, etc.)
|
| 26 |
- **Rich metadata** per file: repo stars, commit count, developer trending rank, company affiliation
|
| 27 |
|
|
@@ -32,24 +33,24 @@ Each row represents a single source file:
|
|
| 32 |
| Column | Type | Description |
|
| 33 |
|--------|------|-------------|
|
| 34 |
| `file_path` | string | Path within the repo (e.g. `src/main.py`) |
|
| 35 |
-
| `file_language` | string |
|
| 36 |
| `file_size` | int64 | File size in bytes |
|
| 37 |
| `content` | string | Raw source code (UTF-8) |
|
| 38 |
| `repo_name` | string | Full repository name (`owner/repo`) |
|
| 39 |
| `repo_stars` | int64 | GitHub star count at time of collection |
|
| 40 |
-
| `repo_commit_count` | int64 | Total commits on default branch |
|
| 41 |
| `repo_license` | string | SPDX license identifier |
|
| 42 |
| `repo_description` | string | Repository description |
|
| 43 |
-
| `repo_primary_language` | string | GitHub-detected primary language |
|
| 44 |
-
| `repo_topics` | list[string] | Repository topics/tags |
|
| 45 |
| `developer_username` | string | GitHub username |
|
| 46 |
| `developer_name` | string | Developer display name |
|
| 47 |
| `developer_company` | string | Company affiliation |
|
| 48 |
-
| `developer_times_trended` | int64 | Number of times on GitHub trending page |
|
| 49 |
| `developer_best_rank` | int64 | Best trending rank achieved |
|
| 50 |
| `developer_avg_rank` | float64 | Average trending rank |
|
| 51 |
| `developer_median_rank` | float64 | Median trending rank |
|
| 52 |
|
|
|
|
|
|
|
| 53 |
## Usage
|
| 54 |
|
| 55 |
```python
|
|
@@ -82,17 +83,18 @@ Existing code datasets are massive bulk scrapes of all public GitHub repos. This
|
|
| 82 |
## Collection Methodology
|
| 83 |
|
| 84 |
1. **Developer sourcing**: 4,763 unique developers extracted from [ronantakizawa/github-top-developers](https://huggingface.co/datasets/ronantakizawa/github-top-developers), which tracks GitHub trending page appearances from 2015-2025 via Wayback Machine snapshots.
|
| 85 |
-
2. **Repository discovery**: For each developer, their top
|
| 86 |
3. **License filtering**: Only repositories with permissive licenses (MIT, Apache-2.0, BSD, ISC, Unlicense, etc.) were included.
|
| 87 |
4. **Code extraction**: Repository tarballs were downloaded and source files extracted, skipping binary files, vendored directories (`node_modules`, `vendor`, etc.), generated files, and files exceeding 1MB.
|
| 88 |
-
5. **
|
|
|
|
| 89 |
|
| 90 |
## Filtering Applied
|
| 91 |
|
| 92 |
- **Repos**: Owner-created only (no forks), permissive license, non-empty
|
| 93 |
- **Directories skipped**: `node_modules`, `vendor`, `third_party`, `dist`, `build`, `__pycache__`, `.git`, `venv`, and 30+ more
|
| 94 |
-
- **Files skipped**: Binary files, files >1MB, non-UTF-8 files
|
| 95 |
-
- **Top
|
| 96 |
|
| 97 |
## Limitations
|
| 98 |
|
|
|
|
| 20 |
|
| 21 |
## Dataset Summary
|
| 22 |
|
| 23 |
+
- **1.3M+ source code files** from repositories across ~4,700 unique developers
|
| 24 |
+
- **80+ programming languages** included (Python, JavaScript, TypeScript, Rust, Go, C/C++, Java, and more)
|
| 25 |
+
- **Source code only** — config files (JSON, YAML, TOML, etc.) and documentation (Markdown, TXT) are excluded
|
| 26 |
- **Permissive licenses only** (MIT, Apache-2.0, BSD, ISC, etc.)
|
| 27 |
- **Rich metadata** per file: repo stars, commit count, developer trending rank, company affiliation
|
| 28 |
|
|
|
|
| 33 |
| Column | Type | Description |
|
| 34 |
|--------|------|-------------|
|
| 35 |
| `file_path` | string | Path within the repo (e.g. `src/main.py`) |
|
| 36 |
+
| `file_language` | string | Language detected from file extension (e.g. `Python`, `JavaScript`) |
|
| 37 |
| `file_size` | int64 | File size in bytes |
|
| 38 |
| `content` | string | Raw source code (UTF-8) |
|
| 39 |
| `repo_name` | string | Full repository name (`owner/repo`) |
|
| 40 |
| `repo_stars` | int64 | GitHub star count at time of collection |
|
| 41 |
+
| `repo_commit_count` | int64 | Total commits on default branch (nullable — null if unavailable) |
|
| 42 |
| `repo_license` | string | SPDX license identifier |
|
| 43 |
| `repo_description` | string | Repository description |
|
| 44 |
+
| `repo_primary_language` | string | GitHub-detected primary language of the repository |
|
|
|
|
| 45 |
| `developer_username` | string | GitHub username |
|
| 46 |
| `developer_name` | string | Developer display name |
|
| 47 |
| `developer_company` | string | Company affiliation |
|
|
|
|
| 48 |
| `developer_best_rank` | int64 | Best trending rank achieved |
|
| 49 |
| `developer_avg_rank` | float64 | Average trending rank |
|
| 50 |
| `developer_median_rank` | float64 | Median trending rank |
|
| 51 |
|
| 52 |
+
**Note on language columns:** `file_language` is determined per-file from the file extension (e.g. a `.py` file is always `Python`). `repo_primary_language` is GitHub's auto-detected primary language for the entire repository. These may differ — for example, a C header file (`.h` → `C/C++ Header`) in a repo that GitHub classifies as `Python`.
|
| 53 |
+
|
| 54 |
## Usage
|
| 55 |
|
| 56 |
```python
|
|
|
|
| 83 |
## Collection Methodology
|
| 84 |
|
| 85 |
1. **Developer sourcing**: 4,763 unique developers extracted from [ronantakizawa/github-top-developers](https://huggingface.co/datasets/ronantakizawa/github-top-developers), which tracks GitHub trending page appearances from 2015-2025 via Wayback Machine snapshots.
|
| 86 |
+
2. **Repository discovery**: For each developer, their top 10 repositories by stars were selected using the GitHub API, filtered to repos they own (not forks or contributions).
|
| 87 |
3. **License filtering**: Only repositories with permissive licenses (MIT, Apache-2.0, BSD, ISC, Unlicense, etc.) were included.
|
| 88 |
4. **Code extraction**: Repository tarballs were downloaded and source files extracted, skipping binary files, vendored directories (`node_modules`, `vendor`, etc.), generated files, and files exceeding 1MB.
|
| 89 |
+
5. **Source code filtering**: Only source code files are included (80+ language extensions). Configuration files (JSON, YAML, TOML, XML, INI), documentation (Markdown, TXT, RST), and template files are excluded.
|
| 90 |
+
6. **Metadata enrichment**: Each file is linked to repository metadata (stars, language, topics) and developer metadata (trending history, company).
|
| 91 |
|
| 92 |
## Filtering Applied
|
| 93 |
|
| 94 |
- **Repos**: Owner-created only (no forks), permissive license, non-empty
|
| 95 |
- **Directories skipped**: `node_modules`, `vendor`, `third_party`, `dist`, `build`, `__pycache__`, `.git`, `venv`, and 30+ more
|
| 96 |
+
- **Files skipped**: Binary files, files >1MB, non-UTF-8 files, config/doc files (JSON, YAML, TOML, XML, Markdown, etc.)
|
| 97 |
+
- **Top 10 repos per developer** by star count
|
| 98 |
|
| 99 |
## Limitations
|
| 100 |
|