Add 2014-07-06 — 254.9K events, 11 files
Browse files- README.md +79 -52
- data/commit_comments/2014/07/06.parquet +2 -2
- data/creates/2014/07/06.parquet +2 -2
- data/deletes/2014/07/06.parquet +2 -2
- data/forks/2014/07/06.parquet +2 -2
- data/issue_comments/2014/07/06.parquet +2 -2
- data/issues/2014/07/06.parquet +2 -2
- data/public_events/2014/07/06.parquet +2 -2
- data/pull_requests/2014/07/06.parquet +2 -2
- data/pushes/2014/07/06.parquet +2 -2
- data/stars/2014/07/06.parquet +2 -2
- data/wiki_pages/2014/07/06.parquet +2 -2
- stats.csv +3 -2
README.md
CHANGED
|
@@ -61,9 +61,9 @@ configs:
|
|
| 61 |
|
| 62 |
This dataset contains every public event on GitHub: every push, pull request, issue, star, fork, code review, release, and discussion across all public repositories. GitHub is the world's largest software development platform, home to over 200 million repositories and the daily work of tens of millions of developers, from individual open-source contributors to the engineering teams behind the most widely used software on earth.
|
| 63 |
|
| 64 |
-
The archive currently spans from **2011-02-12** to **2015-01-03** (1,
|
| 65 |
|
| 66 |
-
We believe this is the most complete and regularly updated structured mirror of public GitHub activity available on Hugging Face. The original 53.
|
| 67 |
|
| 68 |
The underlying data comes from [GH Archive](https://www.gharchive.org/), created by [Ilya Grigorik](https://www.igvita.com/), which has been recording every public GitHub event via the [Events API](https://docs.github.com/en/rest/activity/events) since 2011. Released under the [Open Data Commons Attribution License (ODC-By) v1.0](https://opendatacommons.org/licenses/by/1-0/).
|
| 69 |
|
|
@@ -71,7 +71,7 @@ The underlying data comes from [GH Archive](https://www.gharchive.org/), created
|
|
| 71 |
|
| 72 |
Events from today are captured in near-real-time from the GitHub Events API and stored as 5-minute blocks in `today/raw/YYYY/MM/DD/HHMM.parquet`. Each block contains a generic event record with the full JSON payload preserved for later processing. Live blocks are committed to this dataset within minutes of the events occurring.
|
| 73 |
|
| 74 |
-
**2026-03-28** — 2,
|
| 75 |
|
| 76 |
```
|
| 77 |
00:00 ████████████████████████░░░░░░ 235.4K
|
|
@@ -84,7 +84,7 @@ Events from today are captured in near-real-time from the GitHub Events API and
|
|
| 84 |
07:00 █████████████████░░░░░░░░░░░░░ 165.7K
|
| 85 |
08:00 ███████████████████████████░░░ 262.4K
|
| 86 |
09:00 ██████████████████████████████ 284.7K
|
| 87 |
-
10:00 ███████░░░░░░░░░░░░░░░░░░░░░
|
| 88 |
11:00 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0
|
| 89 |
12:00 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0
|
| 90 |
13:00 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0
|
|
@@ -119,8 +119,10 @@ Events from today are captured in near-real-time from the GitHub Events API and
|
|
| 119 |
| `payload_json` | string | Full event payload as JSON |
|
| 120 |
|
| 121 |
```python
|
| 122 |
-
# Query today's live events with DuckDB
|
|
|
|
| 123 |
import duckdb
|
|
|
|
| 124 |
duckdb.sql("""
|
| 125 |
SELECT event_type, COUNT(*) as n
|
| 126 |
FROM read_parquet('hf://datasets/open-index/open-github/today/raw/**/*.parquet')
|
|
@@ -134,7 +136,7 @@ duckdb.sql("""
|
|
| 134 |
2011 █████░░░░░░░░░░░░░░░░░░░░░░░░░ 14.1M
|
| 135 |
2012 █████████████░░░░░░░░░░░░░░░░░ 34.3M
|
| 136 |
2013 ██████████████████████████████ 74.5M
|
| 137 |
-
2014 ███████████████████
|
| 138 |
2015 █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 511.7K
|
| 139 |
```
|
| 140 |
|
|
@@ -143,7 +145,7 @@ duckdb.sql("""
|
|
| 143 |
| 2011 | 243 | 14,096,144 | 58,008 | 2.7 GB | 1.4 GB | 1h06m | 50m30s | 1h55m |
|
| 144 |
| 2012 | 291 | 34,256,841 | 117,721 | 9.2 GB | 3.2 GB | 2h14m | 3h16m | 2h50m |
|
| 145 |
| 2013 | 344 | 74,483,412 | 216,521 | 22.7 GB | 7.0 GB | 3h27m | 10h53m | 4h29m |
|
| 146 |
-
| 2014 |
|
| 147 |
| 2015 | 2 | 511,749 | 255,874 | 166.6 MB | 85.1 MB | 20s | 2m59s | 48s |
|
| 148 |
|
| 149 |
|
|
@@ -155,15 +157,16 @@ Pushes are the most common event type, representing roughly half of all GitHub a
|
|
| 155 |
2011 █████░░░░░░░░░░░░░░░░░░░░░░░░░ 6.7M
|
| 156 |
2012 ████████████░░░░░░░░░░░░░░░░░░ 16.5M
|
| 157 |
2013 ██████████████████████████████ 38.1M
|
| 158 |
-
2014 ███████████████████████░░░░░░░ 30.
|
| 159 |
2015 █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 274.6K
|
| 160 |
```
|
| 161 |
|
| 162 |
|
| 163 |
```sql
|
| 164 |
-
-- Top 20 repos by push volume this year
|
| 165 |
-
|
| 166 |
-
|
|
|
|
| 167 |
GROUP BY repo_name ORDER BY pushes DESC LIMIT 20;
|
| 168 |
```
|
| 169 |
|
|
@@ -181,11 +184,12 @@ Issue events track the full lifecycle: opened, closed, reopened, labeled, assign
|
|
| 181 |
|
| 182 |
|
| 183 |
```sql
|
| 184 |
-
-- Repos with the most issues opened this year
|
|
|
|
| 185 |
SELECT repo_name,
|
| 186 |
COUNT(*) FILTER (WHERE action = 'opened') as opened,
|
| 187 |
COUNT(*) FILTER (WHERE action = 'closed') as closed
|
| 188 |
-
FROM read_parquet('hf://datasets/open-index/open-github/data/issues/
|
| 189 |
GROUP BY repo_name ORDER BY opened DESC LIMIT 20;
|
| 190 |
```
|
| 191 |
|
|
@@ -197,22 +201,23 @@ Pull request events cover the full review cycle: opened, merged, closed, review
|
|
| 197 |
2011 ███░░░░░░░░░░░░░░░░░░░░░░░░░░░ 370.9K
|
| 198 |
2012 ███████████████░░░░░░░░░░░░░░░ 1.5M
|
| 199 |
2013 ██████████████████████████████ 2.9M
|
| 200 |
-
2014 ██████████████████████████░░░
|
| 201 |
2015 █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 20.7K
|
| 202 |
```
|
| 203 |
|
| 204 |
|
| 205 |
```sql
|
| 206 |
-
-- Top repos by merged PRs this year
|
|
|
|
| 207 |
SELECT repo_name, COUNT(*) as merged_prs
|
| 208 |
-
FROM read_parquet('hf://datasets/open-index/open-github/data/pull_requests/
|
| 209 |
-
WHERE action = '
|
| 210 |
GROUP BY repo_name ORDER BY merged_prs DESC LIMIT 20;
|
| 211 |
```
|
| 212 |
|
| 213 |
### Stars per year
|
| 214 |
|
| 215 |
-
Stars (WatchEvent in the GitHub API) reflect community interest and discovery. Starring patterns often correlate with Hacker News, Reddit, or Twitter posts.
|
| 216 |
|
| 217 |
```
|
| 218 |
2011 ██████░░░░░░░░░░░░░░░░░░░░░░░░ 1.4M
|
|
@@ -224,9 +229,10 @@ Stars (WatchEvent in the GitHub API) reflect community interest and discovery. S
|
|
| 224 |
|
| 225 |
|
| 226 |
```sql
|
| 227 |
-
-- Most starred repos this year
|
|
|
|
| 228 |
SELECT repo_name, COUNT(*) as stars
|
| 229 |
-
FROM read_parquet('hf://datasets/open-index/open-github/data/stars/
|
| 230 |
GROUP BY repo_name ORDER BY stars DESC LIMIT 20;
|
| 231 |
```
|
| 232 |
|
|
@@ -235,39 +241,48 @@ GROUP BY repo_name ORDER BY stars DESC LIMIT 20;
|
|
| 235 |
### Python (`datasets`)
|
| 236 |
|
| 237 |
```python
|
|
|
|
|
|
|
| 238 |
from datasets import load_dataset
|
| 239 |
|
| 240 |
-
# Stream all stars
|
| 241 |
ds = load_dataset("open-index/open-github", "stars", streaming=True)
|
| 242 |
for row in ds["train"]:
|
| 243 |
print(row["repo_name"], row["actor_login"], row["created_at"])
|
|
|
|
| 244 |
|
| 245 |
# Load a specific month of issues
|
| 246 |
ds = load_dataset("open-index/open-github", "issues",
|
| 247 |
-
data_files="data/issues/
|
|
|
|
| 248 |
|
| 249 |
# Load all pull requests into memory
|
| 250 |
ds = load_dataset("open-index/open-github", "pull_requests")
|
|
|
|
| 251 |
|
| 252 |
# Query today's live events
|
| 253 |
ds = load_dataset("open-index/open-github", "live", streaming=True)
|
| 254 |
for row in ds["train"]:
|
| 255 |
print(row["event_type"], row["repo_name"], row["created_at"])
|
|
|
|
| 256 |
```
|
| 257 |
|
| 258 |
### DuckDB
|
| 259 |
|
| 260 |
```sql
|
|
|
|
|
|
|
|
|
|
| 261 |
-- Top 20 most-starred repos this year
|
| 262 |
SELECT repo_name, COUNT(*) as stars
|
| 263 |
-
FROM read_parquet('hf://datasets/open-index/open-github/data/stars/
|
| 264 |
GROUP BY repo_name ORDER BY stars DESC LIMIT 20;
|
| 265 |
|
| 266 |
-
-- Most active PR reviewers (
|
| 267 |
-
SELECT actor_login, COUNT(*) as
|
| 268 |
-
FROM read_parquet('hf://datasets/open-index/open-github/data/pr_reviews/
|
| 269 |
WHERE review_state = 'approved'
|
| 270 |
-
GROUP BY actor_login ORDER BY
|
| 271 |
|
| 272 |
-- Issue open/close rates by repo
|
| 273 |
SELECT repo_name,
|
|
@@ -275,13 +290,14 @@ SELECT repo_name,
|
|
| 275 |
COUNT(*) FILTER (WHERE action = 'closed') as closed,
|
| 276 |
ROUND(COUNT(*) FILTER (WHERE action = 'closed') * 100.0 /
|
| 277 |
NULLIF(COUNT(*) FILTER (WHERE action = 'opened'), 0), 1) as close_pct
|
| 278 |
-
FROM read_parquet('hf://datasets/open-index/open-github/data/issues/
|
|
|
|
| 279 |
GROUP BY repo_name HAVING opened >= 10
|
| 280 |
ORDER BY opened DESC LIMIT 20;
|
| 281 |
|
| 282 |
-
-- Full activity timeline for a repo
|
| 283 |
SELECT event_type, created_at, actor_login
|
| 284 |
-
FROM read_parquet('hf://datasets/open-index/open-github/data/*/
|
| 285 |
WHERE repo_name = 'golang/go'
|
| 286 |
ORDER BY created_at DESC LIMIT 100;
|
| 287 |
```
|
|
@@ -289,15 +305,20 @@ ORDER BY created_at DESC LIMIT 100;
|
|
| 289 |
### Bulk download (`huggingface_hub`)
|
| 290 |
|
| 291 |
```python
|
|
|
|
|
|
|
|
|
|
| 292 |
from huggingface_hub import snapshot_download
|
| 293 |
|
| 294 |
# Download only stars data
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
|
|
|
|
|
|
| 301 |
```
|
| 302 |
|
| 303 |
For faster downloads, install `pip install huggingface_hub[hf_transfer]` and set `HF_HUB_ENABLE_HF_TRANSFER=1`.
|
|
@@ -457,13 +478,19 @@ Line-level comments on pull request diffs. Includes the diff hunk for context an
|
|
| 457 |
|
| 458 |
#### `stars`.WatchEvent
|
| 459 |
|
| 460 |
-
Repository star events.
|
| 461 |
|
| 462 |
-
**Processing:**
|
| 463 |
|
| 464 |
| Column | Type | Description |
|
| 465 |
|---|---|---|
|
| 466 |
-
| `
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 467 |
|
| 468 |
#### `forks`.ForkEvent
|
| 469 |
|
|
@@ -610,20 +637,20 @@ GitHub Discussions lifecycle: created, answered, category_changed, labeled, and
|
|
| 610 |
|
| 611 |
| Table | GitHub Event | Events | % | Description |
|
| 612 |
|-------|-------------|-------:|---:|-------------|
|
| 613 |
-
| `pushes` | PushEvent | 91,
|
| 614 |
-
| `issues` | IssuesEvent | 10,
|
| 615 |
-
| `issue_comments` | IssueCommentEvent |
|
| 616 |
-
| `pull_requests` | PullRequestEvent | 7,
|
| 617 |
-
| `pr_review_comments` | PullRequestReviewCommentEvent | 1,
|
| 618 |
-
| `stars` | WatchEvent | 17,
|
| 619 |
-
| `forks` | ForkEvent | 6,
|
| 620 |
-
| `creates` | CreateEvent | 22,
|
| 621 |
-
| `deletes` | DeleteEvent | 2,
|
| 622 |
-
| `releases` | ReleaseEvent |
|
| 623 |
-
| `commit_comments` | CommitCommentEvent | 1,
|
| 624 |
-
| `wiki_pages` | GollumEvent | 3,
|
| 625 |
| `members` | MemberEvent | 104,094 | 0.1% | Collaborator additions |
|
| 626 |
-
| `public_events` | PublicEvent | 169,
|
| 627 |
|
| 628 |
## How it's built
|
| 629 |
|
|
|
|
| 61 |
|
| 62 |
This dataset contains every public event on GitHub: every push, pull request, issue, star, fork, code review, release, and discussion across all public repositories. GitHub is the world's largest software development platform, home to over 200 million repositories and the daily work of tens of millions of developers, from individual open-source contributors to the engineering teams behind the most widely used software on earth.
|
| 63 |
|
| 64 |
+
The archive currently spans from **2011-02-12** to **2015-01-03** (1,064 days), totaling **183,087,212 events** across 16 fully structured Parquet tables. New events are fetched directly from the GitHub Events API every few seconds and committed as 5-minute Parquet blocks through an automated live pipeline, so the dataset stays current with GitHub itself.
|
| 65 |
|
| 66 |
+
We believe this is the most complete and regularly updated structured mirror of public GitHub activity available on Hugging Face. The original 53.1 GB of raw GH Archive NDJSON has been parsed, flattened, and compressed into 17.1 GB of Zstd-compressed Parquet. Every nested JSON field is expanded into typed columns — no JSON parsing needed downstream. The data is partitioned as `data/TABLE/YYYY/MM/DD.parquet`, making it straightforward to query with DuckDB, load with the `datasets` library, or process with any tool that reads Parquet.
|
| 67 |
|
| 68 |
The underlying data comes from [GH Archive](https://www.gharchive.org/), created by [Ilya Grigorik](https://www.igvita.com/), which has been recording every public GitHub event via the [Events API](https://docs.github.com/en/rest/activity/events) since 2011. Released under the [Open Data Commons Attribution License (ODC-By) v1.0](https://opendatacommons.org/licenses/by/1-0/).
|
| 69 |
|
|
|
|
| 71 |
|
| 72 |
Events from today are captured in near-real-time from the GitHub Events API and stored as 5-minute blocks in `today/raw/YYYY/MM/DD/HHMM.parquet`. Each block contains a generic event record with the full JSON payload preserved for later processing. Live blocks are committed to this dataset within minutes of the events occurring.
|
| 73 |
|
| 74 |
+
**2026-03-28** — 2,324,640 events in 3831 blocks
|
| 75 |
|
| 76 |
```
|
| 77 |
00:00 ████████████████████████░░░░░░ 235.4K
|
|
|
|
| 84 |
07:00 █████████████████░░░░░░░░░░░░░ 165.7K
|
| 85 |
08:00 ███████████████████████████░░░ 262.4K
|
| 86 |
09:00 ██████████████████████████████ 284.7K
|
| 87 |
+
10:00 █████████░░░░░░░░░░░░░░░░░░░░░ 87.8K
|
| 88 |
11:00 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0
|
| 89 |
12:00 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0
|
| 90 |
13:00 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0
|
|
|
|
| 119 |
| `payload_json` | string | Full event payload as JSON |
|
| 120 |
|
| 121 |
```python
|
| 122 |
+
# Query today's live events with DuckDB.
|
| 123 |
+
# Run: uv run live_events.py
|
| 124 |
import duckdb
|
| 125 |
+
|
| 126 |
duckdb.sql("""
|
| 127 |
SELECT event_type, COUNT(*) as n
|
| 128 |
FROM read_parquet('hf://datasets/open-index/open-github/today/raw/**/*.parquet')
|
|
|
|
| 136 |
2011 █████░░░░░░░░░░░░░░░░░░░░░░░░░ 14.1M
|
| 137 |
2012 █████████████░░░░░░░░░░░░░░░░░ 34.3M
|
| 138 |
2013 ██████████████████████████████ 74.5M
|
| 139 |
+
2014 ████████████████████████░░░░░░ 59.7M
|
| 140 |
2015 █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 511.7K
|
| 141 |
```
|
| 142 |
|
|
|
|
| 145 |
| 2011 | 243 | 14,096,144 | 58,008 | 2.7 GB | 1.4 GB | 1h06m | 50m30s | 1h55m |
|
| 146 |
| 2012 | 291 | 34,256,841 | 117,721 | 9.2 GB | 3.2 GB | 2h14m | 3h16m | 2h50m |
|
| 147 |
| 2013 | 344 | 74,483,412 | 216,521 | 22.7 GB | 7.0 GB | 3h27m | 10h53m | 4h29m |
|
| 148 |
+
| 2014 | 184 | 59,739,066 | 324,668 | 18.3 GB | 5.5 GB | 2h00m | 10h28m | 2h47m |
|
| 149 |
| 2015 | 2 | 511,749 | 255,874 | 166.6 MB | 85.1 MB | 20s | 2m59s | 48s |
|
| 150 |
|
| 151 |
|
|
|
|
| 157 |
2011 █████░░░░░░░░░░░░░░░░░░░░░░░░░ 6.7M
|
| 158 |
2012 ████████████░░░░░░░░░░░░░░░░░░ 16.5M
|
| 159 |
2013 ██████████████████████████████ 38.1M
|
| 160 |
+
2014 ███████████████████████░░░░░░░ 30.4M
|
| 161 |
2015 █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 274.6K
|
| 162 |
```
|
| 163 |
|
| 164 |
|
| 165 |
```sql
|
| 166 |
+
-- Top 20 repos by push volume this year.
|
| 167 |
+
-- Run: duckdb -c ".read pushes_top_repos.sql"
|
| 168 |
+
SELECT repo_name, COUNT(*) as pushes, SUM(size) as commits
|
| 169 |
+
FROM read_parquet('hf://datasets/open-index/open-github/data/pushes/2026/**/*.parquet')
|
| 170 |
GROUP BY repo_name ORDER BY pushes DESC LIMIT 20;
|
| 171 |
```
|
| 172 |
|
|
|
|
| 184 |
|
| 185 |
|
| 186 |
```sql
|
| 187 |
+
-- Repos with the most issues opened vs closed this year.
|
| 188 |
+
-- Run: duckdb -c ".read issues_top_repos.sql"
|
| 189 |
SELECT repo_name,
|
| 190 |
COUNT(*) FILTER (WHERE action = 'opened') as opened,
|
| 191 |
COUNT(*) FILTER (WHERE action = 'closed') as closed
|
| 192 |
+
FROM read_parquet('hf://datasets/open-index/open-github/data/issues/2026/**/*.parquet')
|
| 193 |
GROUP BY repo_name ORDER BY opened DESC LIMIT 20;
|
| 194 |
```
|
| 195 |
|
|
|
|
| 201 |
2011 ███░░░░░░░░░░░░░░░░░░░░░░░░░░░ 370.9K
|
| 202 |
2012 ███████████████░░░░░░░░░░░░░░░ 1.5M
|
| 203 |
2013 ██████████████████████████████ 2.9M
|
| 204 |
+
2014 ███████████████████████████░░░ 2.6M
|
| 205 |
2015 █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 20.7K
|
| 206 |
```
|
| 207 |
|
| 208 |
|
| 209 |
```sql
|
| 210 |
+
-- Top repos by merged PRs this year.
|
| 211 |
+
-- Run: duckdb -c ".read prs_top_merged.sql"
|
| 212 |
SELECT repo_name, COUNT(*) as merged_prs
|
| 213 |
+
FROM read_parquet('hf://datasets/open-index/open-github/data/pull_requests/2026/**/*.parquet')
|
| 214 |
+
WHERE action = 'merged'
|
| 215 |
GROUP BY repo_name ORDER BY merged_prs DESC LIMIT 20;
|
| 216 |
```
|
| 217 |
|
| 218 |
### Stars per year
|
| 219 |
|
| 220 |
+
Stars (WatchEvent in the GitHub API) reflect community interest and discovery. Starring patterns often correlate with Hacker News, Reddit, or Twitter posts. For 2012–2014 events, `repo_language`, `repo_stars_count`, and `repo_forks_count` are populated from the legacy Timeline API repository snapshot.
|
| 221 |
|
| 222 |
```
|
| 223 |
2011 ██████░░░░░░░░░░░░░░░░░░░░░░░░ 1.4M
|
|
|
|
| 229 |
|
| 230 |
|
| 231 |
```sql
|
| 232 |
+
-- Most starred repos this year.
|
| 233 |
+
-- Run: duckdb -c ".read stars_top_repos.sql"
|
| 234 |
SELECT repo_name, COUNT(*) as stars
|
| 235 |
+
FROM read_parquet('hf://datasets/open-index/open-github/data/stars/2026/**/*.parquet')
|
| 236 |
GROUP BY repo_name ORDER BY stars DESC LIMIT 20;
|
| 237 |
```
|
| 238 |
|
|
|
|
| 241 |
### Python (`datasets`)
|
| 242 |
|
| 243 |
```python
|
| 244 |
+
# Quick-start: load OpenGitHub data with the Hugging Face datasets library.
|
| 245 |
+
# Run: uv run quickstart_datasets.py
|
| 246 |
from datasets import load_dataset
|
| 247 |
|
| 248 |
+
# Stream all stars without downloading everything
|
| 249 |
ds = load_dataset("open-index/open-github", "stars", streaming=True)
|
| 250 |
for row in ds["train"]:
|
| 251 |
print(row["repo_name"], row["actor_login"], row["created_at"])
|
| 252 |
+
break # remove to stream all
|
| 253 |
|
| 254 |
# Load a specific month of issues
|
| 255 |
ds = load_dataset("open-index/open-github", "issues",
|
| 256 |
+
data_files="data/issues/2026/03/*.parquet")
|
| 257 |
+
print(f"March 2026 issues: {len(ds['train'])}")
|
| 258 |
|
| 259 |
# Load all pull requests into memory
|
| 260 |
ds = load_dataset("open-index/open-github", "pull_requests")
|
| 261 |
+
print(f"Total PRs: {len(ds['train'])}")
|
| 262 |
|
| 263 |
# Query today's live events
|
| 264 |
ds = load_dataset("open-index/open-github", "live", streaming=True)
|
| 265 |
for row in ds["train"]:
|
| 266 |
print(row["event_type"], row["repo_name"], row["created_at"])
|
| 267 |
+
break # remove to stream all
|
| 268 |
```
|
| 269 |
|
| 270 |
### DuckDB
|
| 271 |
|
| 272 |
```sql
|
| 273 |
+
-- Quick-start DuckDB queries for the OpenGitHub dataset.
|
| 274 |
+
-- Run: duckdb -c ".read quickstart.sql"
|
| 275 |
+
|
| 276 |
-- Top 20 most-starred repos this year
|
| 277 |
SELECT repo_name, COUNT(*) as stars
|
| 278 |
+
FROM read_parquet('hf://datasets/open-index/open-github/data/stars/2026/**/*.parquet')
|
| 279 |
GROUP BY repo_name ORDER BY stars DESC LIMIT 20;
|
| 280 |
|
| 281 |
+
-- Most active PR reviewers (approvals only)
|
| 282 |
+
SELECT actor_login, COUNT(*) as approvals
|
| 283 |
+
FROM read_parquet('hf://datasets/open-index/open-github/data/pr_reviews/2026/**/*.parquet')
|
| 284 |
WHERE review_state = 'approved'
|
| 285 |
+
GROUP BY actor_login ORDER BY approvals DESC LIMIT 20;
|
| 286 |
|
| 287 |
-- Issue open/close rates by repo
|
| 288 |
SELECT repo_name,
|
|
|
|
| 290 |
COUNT(*) FILTER (WHERE action = 'closed') as closed,
|
| 291 |
ROUND(COUNT(*) FILTER (WHERE action = 'closed') * 100.0 /
|
| 292 |
NULLIF(COUNT(*) FILTER (WHERE action = 'opened'), 0), 1) as close_pct
|
| 293 |
+
FROM read_parquet('hf://datasets/open-index/open-github/data/issues/2026/**/*.parquet')
|
| 294 |
+
WHERE is_pull_request = false
|
| 295 |
GROUP BY repo_name HAVING opened >= 10
|
| 296 |
ORDER BY opened DESC LIMIT 20;
|
| 297 |
|
| 298 |
+
-- Full activity timeline for a repo (one month)
|
| 299 |
SELECT event_type, created_at, actor_login
|
| 300 |
+
FROM read_parquet('hf://datasets/open-index/open-github/data/*/2026/03/*.parquet')
|
| 301 |
WHERE repo_name = 'golang/go'
|
| 302 |
ORDER BY created_at DESC LIMIT 100;
|
| 303 |
```
|
|
|
|
| 305 |
### Bulk download (`huggingface_hub`)
|
| 306 |
|
| 307 |
```python
|
| 308 |
+
# Download OpenGitHub data locally with huggingface_hub.
|
| 309 |
+
# Run: uv run quickstart_download.py
|
| 310 |
+
# For faster downloads: HF_HUB_ENABLE_HF_TRANSFER=1 uv run quickstart_download.py
|
| 311 |
from huggingface_hub import snapshot_download
|
| 312 |
|
| 313 |
# Download only stars data
|
| 314 |
+
snapshot_download("open-index/open-github", repo_type="dataset",
|
| 315 |
+
local_dir="./open-github/",
|
| 316 |
+
allow_patterns="data/stars/**/*.parquet")
|
| 317 |
+
|
| 318 |
+
# Download a specific repo's data across all tables
|
| 319 |
+
# snapshot_download("open-index/open-github", repo_type="dataset",
|
| 320 |
+
# local_dir="./open-github/",
|
| 321 |
+
# allow_patterns="data/*/2026/03/*.parquet")
|
| 322 |
```
|
| 323 |
|
| 324 |
For faster downloads, install `pip install huggingface_hub[hf_transfer]` and set `HF_HUB_ENABLE_HF_TRANSFER=1`.
|
|
|
|
| 478 |
|
| 479 |
#### `stars`.WatchEvent
|
| 480 |
|
| 481 |
+
Repository star events. Who starred which repo, and when. GitHub API quirk: the event is called `WatchEvent` but means starring. Action is always `"started"` so it is not stored.
|
| 482 |
|
| 483 |
+
**Processing:** The WatchEvent payload carries no useful fields — all signal is in the event envelope (actor, repo, timestamp). For 2012–2014 events the legacy Timeline API included a full repository snapshot, so `repo_language`, `repo_stars_count`, `repo_forks_count`, `repo_description`, and `repo_is_fork` are populated for that era. `actor_type` is also populated from the legacy `actor_attributes` object. For 2015+ events those fields are empty; `actor_avatar_url` is populated instead.
|
| 484 |
|
| 485 |
| Column | Type | Description |
|
| 486 |
|---|---|---|
|
| 487 |
+
| `actor_avatar_url` | string | Actor avatar URL (2015+) |
|
| 488 |
+
| `actor_type` | string | `User` or `Organization` (2012–2014 only) |
|
| 489 |
+
| `repo_description` | string | Repo description at star time (2012–2014 only) |
|
| 490 |
+
| `repo_language` | string | Primary language (2012–2014 only) |
|
| 491 |
+
| `repo_stars_count` | int32 | Star count at star time (2012–2014 only) |
|
| 492 |
+
| `repo_forks_count` | int32 | Fork count at star time (2012–2014 only) |
|
| 493 |
+
| `repo_is_fork` | bool | Whether the starred repo is a fork (2012–2014 only) |
|
| 494 |
|
| 495 |
#### `forks`.ForkEvent
|
| 496 |
|
|
|
|
| 637 |
|
| 638 |
| Table | GitHub Event | Events | % | Description |
|
| 639 |
|-------|-------------|-------:|---:|-------------|
|
| 640 |
+
| `pushes` | PushEvent | 91,928,911 | 50.2% | Git pushes with commits |
|
| 641 |
+
| `issues` | IssuesEvent | 10,166,406 | 5.6% | Issue lifecycle events |
|
| 642 |
+
| `issue_comments` | IssueCommentEvent | 16,029,058 | 8.8% | Comments on issues/PRs |
|
| 643 |
+
| `pull_requests` | PullRequestEvent | 7,454,215 | 4.1% | PR lifecycle events |
|
| 644 |
+
| `pr_review_comments` | PullRequestReviewCommentEvent | 1,714,050 | 0.9% | Line-level PR comments |
|
| 645 |
+
| `stars` | WatchEvent | 17,170,493 | 9.4% | Repository stars |
|
| 646 |
+
| `forks` | ForkEvent | 6,590,759 | 3.6% | Repository forks |
|
| 647 |
+
| `creates` | CreateEvent | 22,959,450 | 12.5% | Branch/tag/repo creation |
|
| 648 |
+
| `deletes` | DeleteEvent | 2,344,882 | 1.3% | Branch/tag deletion |
|
| 649 |
+
| `releases` | ReleaseEvent | 219,757 | 0.1% | Release publications |
|
| 650 |
+
| `commit_comments` | CommitCommentEvent | 1,702,606 | 0.9% | Comments on commits |
|
| 651 |
+
| `wiki_pages` | GollumEvent | 3,011,616 | 1.6% | Wiki page edits |
|
| 652 |
| `members` | MemberEvent | 104,094 | 0.1% | Collaborator additions |
|
| 653 |
+
| `public_events` | PublicEvent | 169,461 | 0.1% | Repo made public |
|
| 654 |
|
| 655 |
## How it's built
|
| 656 |
|
data/commit_comments/2014/07/06.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f4e9a6b89d4c7fae69f6843569e8afe73ddcb419485dd476e7eb65b4530e41c
|
| 3 |
+
size 61768
|
data/creates/2014/07/06.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3589431370824282ad3b0bafe5cafa0954b91e7bf0d8e905a4f8919dde11b638
|
| 3 |
+
size 1006323
|
data/deletes/2014/07/06.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac75cf8969dcb45354a294809573da46d6d11c1e97402865e6748d9a3151a94c
|
| 3 |
+
size 109199
|
data/forks/2014/07/06.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:42cbd3d988befe96b08e3eeee5e76a28b87dbbe1783def34a2d48d6c7c197d7d
|
| 3 |
+
size 241955
|
data/issue_comments/2014/07/06.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d5a43fc03f7af46f74483c8c2b318e634fd2c4d081f8e567ee3456b6e366f346
|
| 3 |
+
size 484134
|
data/issues/2014/07/06.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9fb5e169e2bedf8e9084dab239c57a96b5867b8e2d3b23640b997a45a70ee5f8
|
| 3 |
+
size 347275
|
data/public_events/2014/07/06.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb6b09fe93e43c217b0b993f21d8c22dac39c85144037df986433ca58f0158e5
|
| 3 |
+
size 9234
|
data/pull_requests/2014/07/06.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:225debbc076dfd58b45acdc8cba2aa02951c40910ab838267752d43bcd664ecf
|
| 3 |
+
size 1625474
|
data/pushes/2014/07/06.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:68c984909d53a074e074fb82fbae11a27cb9f49704404d1d13e21d6055ba35dd
|
| 3 |
+
size 19803234
|
data/stars/2014/07/06.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7b1464d3113a099f2ae29c534e30d9a341c2e8eddb369d30af7c7fd9e056b102
|
| 3 |
+
size 1273668
|
data/wiki_pages/2014/07/06.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:70e195887d3870b6b930c625ec6713363bc5acbb214210ad0bafe30b44d201d3
|
| 3 |
+
size 201805
|
stats.csv
CHANGED
|
@@ -1058,7 +1058,8 @@ date,total_events,parse_errors,pushes,issues,issue_comments,pull_requests,pr_rev
|
|
| 1058 |
2014-07-02,396669,1612,194481,21293,39623,19122,0,5656,38848,14545,45075,6766,1123,3802,4378,0,345,0,139724749,290.0,38909083,57.6,290.1,42.8
|
| 1059 |
2014-07-03,384108,1529,187822,22003,37389,18211,0,6606,39055,13800,42373,6737,1019,3033,4195,0,336,0,136822670,285.6,37599674,54.1,285.7,69.2
|
| 1060 |
2014-07-04,286151,1003,140538,15260,29960,12270,0,3507,29226,10278,33245,4818,737,2238,2845,0,226,0,94705025,199.9,27186254,41.3,199.9,117.1
|
| 1061 |
-
2014-07-05,214785,789,112381,10450,15696,8119,0,1619,24312,7807,26049,3383,552,1326,2131,0,171,0,67845437,146.4,20385555,27.2,146.4,
|
| 1062 |
-
2014-07-06,
|
|
|
|
| 1063 |
2015-01-01,218939,0,119242,9843,17045,8735,0,2173,21939,7144,23913,3843,816,1399,2196,474,177,0,73764980,79.7,37810232,15.9,79.7,0.0
|
| 1064 |
2015-01-03,292810,0,155315,15037,26081,11958,0,2946,28410,9430,31862,4560,963,1829,3178,983,258,0,100890756,100.1,51394128,4.6,100.1,48.0
|
|
|
|
| 1058 |
2014-07-02,396669,1612,194481,21293,39623,19122,0,5656,38848,14545,45075,6766,1123,3802,4378,0,345,0,139724749,290.0,38909083,57.6,290.1,42.8
|
| 1059 |
2014-07-03,384108,1529,187822,22003,37389,18211,0,6606,39055,13800,42373,6737,1019,3033,4195,0,336,0,136822670,285.6,37599674,54.1,285.7,69.2
|
| 1060 |
2014-07-04,286151,1003,140538,15260,29960,12270,0,3507,29226,10278,33245,4818,737,2238,2845,0,226,0,94705025,199.9,27186254,41.3,199.9,117.1
|
| 1061 |
+
2014-07-05,214785,789,112381,10450,15696,8119,0,1619,24312,7807,26049,3383,552,1326,2131,0,171,0,67845437,146.4,20385555,27.2,146.4,173.5
|
| 1062 |
+
2014-07-06,254915,820,128372,15819,22886,9059,0,2267,28700,8222,29684,3924,656,1670,2634,0,202,0,78504319,57.3,25164069,39.0,58.8,0.0
|
| 1063 |
+
2014-07-07,357183,1480,172536,19010,33519,16995,0,5334,38184,13669,42552,6077,840,3047,3597,0,343,0,125027387,281.2,15663104,39.2,281.2,0.0
|
| 1064 |
2015-01-01,218939,0,119242,9843,17045,8735,0,2173,21939,7144,23913,3843,816,1399,2196,474,177,0,73764980,79.7,37810232,15.9,79.7,0.0
|
| 1065 |
2015-01-03,292810,0,155315,15037,26081,11958,0,2946,28410,9430,31862,4560,963,1829,3178,983,258,0,100890756,100.1,51394128,4.6,100.1,48.0
|