tamnd commited on
Commit
4ab15f5
·
1 Parent(s): 0255a01

Add 2011-02-12 — 30.1K events, 11 files

Browse files
README.md ADDED
@@ -0,0 +1,536 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: odc-by
3
+ task_categories:
4
+ - text-generation
5
+ - text-classification
6
+ - feature-extraction
7
+ language:
8
+ - en
9
+ - mul
10
+ pretty_name: OpenGitHub
11
+ size_categories:
12
+ - 10M<n<100M
13
+ tags:
14
+ - github
15
+ - events
16
+ - open-source
17
+ - gharchive
18
+ - code
19
+ - software-engineering
20
+ - social
21
+ configs:
22
+ - config_name: pushes
23
+ data_files: "data/pushes/**/*.parquet"
24
+ - config_name: issues
25
+ data_files: "data/issues/**/*.parquet"
26
+ - config_name: issue_comments
27
+ data_files: "data/issue_comments/**/*.parquet"
28
+ - config_name: pull_requests
29
+ data_files: "data/pull_requests/**/*.parquet"
30
+ - config_name: pr_reviews
31
+ data_files: "data/pr_reviews/**/*.parquet"
32
+ - config_name: pr_review_comments
33
+ data_files: "data/pr_review_comments/**/*.parquet"
34
+ - config_name: stars
35
+ data_files: "data/stars/**/*.parquet"
36
+ - config_name: forks
37
+ data_files: "data/forks/**/*.parquet"
38
+ - config_name: creates
39
+ data_files: "data/creates/**/*.parquet"
40
+ - config_name: deletes
41
+ data_files: "data/deletes/**/*.parquet"
42
+ - config_name: releases
43
+ data_files: "data/releases/**/*.parquet"
44
+ - config_name: commit_comments
45
+ data_files: "data/commit_comments/**/*.parquet"
46
+ - config_name: wiki_pages
47
+ data_files: "data/wiki_pages/**/*.parquet"
48
+ - config_name: members
49
+ data_files: "data/members/**/*.parquet"
50
+ - config_name: public_events
51
+ data_files: "data/public_events/**/*.parquet"
52
+ - config_name: discussions
53
+ data_files: "data/discussions/**/*.parquet"
54
+ ---
55
+
56
+ # OpenGitHub
57
+
58
+ Every public GitHub event since 2015, parsed into 16 structured Parquet tables, ready for analysis, training, and research.
59
+
60
+ OpenGitHub covers **2011-02-12** to **2011-02-12** (1 days), totaling **30,100 events**. The original 5.6 MB of raw GH Archive NDJSON is compressed into 3.1 MB of Zstd-compressed Parquet, partitioned as `data/TABLE/YYYY/MM/DD.parquet` (one file per event type per day). All 16 event types are fully flattened into typed columns, so there is no JSON parsing needed downstream. The dataset is updated daily and released under the [Open Data Commons Attribution License (ODC-By) v1.0](https://opendatacommons.org/licenses/by/1-0/).
61
+
62
+ 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.
63
+
64
+ ## Why this dataset?
65
+
66
+ GitHub is the world's largest open-source platform, with over 200 million repositories, millions of developers, and billions of events. [GH Archive](https://www.gharchive.org/) captures every public event as gzipped NDJSON, one file per hour. Querying raw JSON at this scale is painful.
67
+
68
+ OpenGitHub fixes that. Every event is parsed, every nested field is flattened into typed Parquet columns, and the output is partitioned by date. You can `SELECT` stars, issues, PRs, and commits directly with DuckDB, Spark, pandas, or HuggingFace Data Studio.
69
+
70
+ Every field from the original GitHub API response is preserved. You can reconstruct the original event from these tables.
71
+
72
+ ## Events per year
73
+
74
+ ```
75
+ 2011 ██████████████████████████████ 30.1K
76
+ ```
77
+
78
+ | Year | Days | Events | Avg/Day | Raw Input | Parquet Output | Download | Process | Upload |
79
+ |------|-----:|-------:|--------:|----------:|---------------:|---------:|--------:|-------:|
80
+ | 2011 | 1 | 30,100 | 30,100 | 5.6 MB | 3.1 MB | 6s | 10s | — |
81
+
82
+
83
+ ### Pushes per year
84
+
85
+ ```
86
+ 2011 ██████████████████████████████ 16.7K
87
+ ```
88
+
89
+
90
+ ### Issues per year
91
+
92
+ ```
93
+ 2011 ██████████████████████████████ 1.2K
94
+ ```
95
+
96
+
97
+ ### Pull requests per year
98
+
99
+ ```
100
+ 2011 ██████████████████████████████ 799
101
+ ```
102
+
103
+
104
+ ### Stars per year
105
+
106
+ ```
107
+ 2011 ██████████████████████████████ 3.5K
108
+ ```
109
+
110
+
111
+ ## Quick start
112
+
113
+ ### Python (`datasets`)
114
+
115
+ ```python
116
+ from datasets import load_dataset
117
+
118
+ # Stream all stars
119
+ ds = load_dataset("open-index/open-github", "stars", streaming=True)
120
+ for row in ds["train"]:
121
+ print(row["repo_name"], row["actor_login"], row["created_at"])
122
+
123
+ # Load a specific month of issues
124
+ ds = load_dataset("open-index/open-github", "issues",
125
+ data_files="data/issues/2024/06/*.parquet")
126
+
127
+ # Load all pull requests into memory
128
+ ds = load_dataset("open-index/open-github", "pull_requests")
129
+ ```
130
+
131
+ ### DuckDB
132
+
133
+ ```sql
134
+ -- Top 20 most-starred repos this year
135
+ SELECT repo_name, COUNT(*) as stars
136
+ FROM read_parquet('hf://datasets/open-index/open-github/data/stars/2025/**/*.parquet')
137
+ GROUP BY repo_name ORDER BY stars DESC LIMIT 20;
138
+
139
+ -- Most active PR reviewers (approved only)
140
+ SELECT actor_login, COUNT(*) as reviews
141
+ FROM read_parquet('hf://datasets/open-index/open-github/data/pr_reviews/2025/**/*.parquet')
142
+ WHERE review_state = 'approved'
143
+ GROUP BY actor_login ORDER BY reviews DESC LIMIT 20;
144
+
145
+ -- Issue open/close rates by repo
146
+ SELECT repo_name,
147
+ COUNT(*) FILTER (WHERE action = 'opened') as opened,
148
+ COUNT(*) FILTER (WHERE action = 'closed') as closed,
149
+ ROUND(COUNT(*) FILTER (WHERE action = 'closed') * 100.0 /
150
+ NULLIF(COUNT(*) FILTER (WHERE action = 'opened'), 0), 1) as close_pct
151
+ FROM read_parquet('hf://datasets/open-index/open-github/data/issues/2025/**/*.parquet')
152
+ GROUP BY repo_name HAVING opened >= 10
153
+ ORDER BY opened DESC LIMIT 20;
154
+
155
+ -- Full activity timeline for a repo
156
+ SELECT event_type, created_at, actor_login
157
+ FROM read_parquet('hf://datasets/open-index/open-github/data/*/2025/03/*.parquet')
158
+ WHERE repo_name = 'golang/go'
159
+ ORDER BY created_at DESC LIMIT 100;
160
+ ```
161
+
162
+ ### Bulk download (`huggingface_hub`)
163
+
164
+ ```python
165
+ from huggingface_hub import snapshot_download
166
+
167
+ # Download only stars data
168
+ folder = snapshot_download(
169
+ "open-index/open-github",
170
+ repo_type="dataset",
171
+ local_dir="./open-github/",
172
+ allow_patterns="data/stars/**/*.parquet",
173
+ )
174
+ ```
175
+
176
+ For faster downloads, install `pip install huggingface_hub[hf_transfer]` and set `HF_HUB_ENABLE_HF_TRANSFER=1`.
177
+
178
+ ## Schema
179
+
180
+ ### Event envelope (shared across all 16 tables)
181
+
182
+ Every row includes these columns:
183
+
184
+ | Column | Type | Description |
185
+ |---|---|---|
186
+ | `event_id` | string | Unique GitHub event ID |
187
+ | `event_type` | string | GitHub event type (e.g. `PushEvent`, `IssuesEvent`) |
188
+ | `created_at` | string | ISO 8601 timestamp |
189
+ | `actor_id` | int64 | User ID of the actor |
190
+ | `actor_login` | string | Username of the actor |
191
+ | `repo_id` | int64 | Repository ID |
192
+ | `repo_name` | string | Full repository name (`owner/repo`) |
193
+ | `org_id` | int64 | Organization ID (0 if personal repo) |
194
+ | `org_login` | string | Organization login |
195
+
196
+ ### Per-table payload fields
197
+
198
+ #### `pushes`.PushEvent
199
+
200
+ Git push events, typically the highest volume table (~50% of all events). Each push includes the full list of commits with SHA, message, and author.
201
+
202
+ **Processing:** Each `PushEvent` produces one row. The `commits` field is a Parquet LIST of structs with fields `sha`, `message`, `author_name`, `author_email`, `distinct`, `url`. All other fields are flattened directly from `payload.*`.
203
+
204
+ | Column | Type | Description |
205
+ |---|---|---|
206
+ | `push_id` | int64 | Unique push identifier |
207
+ | `ref` | string | Git ref (e.g. `refs/heads/main`) |
208
+ | `head` | string | SHA after push |
209
+ | `before` | string | SHA before push |
210
+ | `size` | int32 | Total commits in push |
211
+ | `distinct_size` | int32 | Distinct (new) commits |
212
+ | `commits` | list\<struct\> | Commit list: `[{sha, message, author_name, author_email, distinct, url}]` |
213
+
214
+ #### `issues`.IssuesEvent
215
+
216
+ Issue lifecycle events: opened, closed, reopened, edited, labeled, assigned, milestoned, and more. Contains the full issue snapshot at event time.
217
+
218
+ **Processing:** Flattened from `payload.issue.*`. Nested objects like `issue.user` become `user_login`, `issue.milestone` becomes `milestone_id`/`milestone_title`. Labels and assignees are Parquet LIST columns.
219
+
220
+ | Column | Type | Description |
221
+ |---|---|---|
222
+ | `action` | string | opened, closed, reopened, labeled, etc. |
223
+ | `issue_id` | int64 | Issue ID |
224
+ | `issue_number` | int32 | Issue number |
225
+ | `title` | string | Issue title |
226
+ | `body` | string | Issue body (markdown) |
227
+ | `state` | string | open or closed |
228
+ | `locked` | bool | Whether comments are locked |
229
+ | `comments_count` | int32 | Comment count |
230
+ | `user_login` | string | Author username |
231
+ | `user_id` | int64 | Author user ID |
232
+ | `assignee_login` | string | Primary assignee |
233
+ | `milestone_title` | string | Milestone name |
234
+ | `labels` | list\<string\> | Label names |
235
+ | `assignees` | list\<string\> | Assignee logins |
236
+ | `reactions_total` | int32 | Total reactions |
237
+ | `issue_created_at` | timestamp | When the issue was created |
238
+ | `issue_closed_at` | timestamp | When closed (null if open) |
239
+
240
+ #### `issue_comments`.IssueCommentEvent
241
+
242
+ Comments on issues and pull requests. Each event contains both the comment and a summary of the parent issue.
243
+
244
+ **Processing:** Flattened from `payload.comment.*` and `payload.issue.*`. Comment reactions are flattened from `comment.reactions.*`. The parent issue fields are prefixed with `issue_` for context.
245
+
246
+ | Column | Type | Description |
247
+ |---|---|---|
248
+ | `action` | string | created, edited, or deleted |
249
+ | `comment_id` | int64 | Comment ID |
250
+ | `comment_body` | string | Comment text (markdown) |
251
+ | `comment_user_login` | string | Comment author |
252
+ | `comment_created_at` | string | Comment timestamp |
253
+ | `issue_number` | int32 | Parent issue/PR number |
254
+ | `issue_title` | string | Parent issue/PR title |
255
+ | `issue_state` | string | Parent state (open/closed) |
256
+ | `reactions_total` | int32 | Total reactions on comment |
257
+
258
+ #### `pull_requests`.PullRequestEvent
259
+
260
+ Pull request lifecycle: opened, closed, merged, labeled, review_requested, synchronize, and more. The richest table, containing diff stats, merge status, head/base refs, and full PR metadata.
261
+
262
+ **Processing:** Deeply flattened from `payload.pull_request.*`. Branch refs like `head.ref`, `head.sha`, `base.ref` become `head_ref`, `head_sha`, `base_ref`. Repository info from `head.repo` and `base.repo` become `head_repo_full_name`, `base_repo_full_name`. Labels and reviewers are Parquet LIST columns.
263
+
264
+ | Column | Type | Description |
265
+ |---|---|---|
266
+ | `action` | string | opened, closed, merged, synchronize, etc. |
267
+ | `pr_id` | int64 | PR ID |
268
+ | `pr_number` | int32 | PR number |
269
+ | `title` | string | PR title |
270
+ | `body` | string | PR body (markdown) |
271
+ | `state` | string | open or closed |
272
+ | `merged` | bool | Whether merged |
273
+ | `draft` | bool | Whether a draft PR |
274
+ | `commits_count` | int32 | Commit count |
275
+ | `additions` | int32 | Lines added |
276
+ | `deletions` | int32 | Lines deleted |
277
+ | `changed_files` | int32 | Files changed |
278
+ | `user_login` | string | Author username |
279
+ | `head_ref` | string | Source branch |
280
+ | `head_sha` | string | Source commit SHA |
281
+ | `base_ref` | string | Target branch |
282
+ | `head_repo_full_name` | string | Source repo |
283
+ | `base_repo_full_name` | string | Target repo |
284
+ | `merged_by_login` | string | Who merged |
285
+ | `pr_created_at` | timestamp | When the PR was opened |
286
+ | `pr_merged_at` | timestamp | When merged (null if not merged) |
287
+ | `labels` | list\<string\> | Label names |
288
+ | `requested_reviewers` | list\<string\> | Requested reviewer logins |
289
+ | `reactions_total` | int32 | Total reactions |
290
+
291
+ #### `pr_reviews`.PullRequestReviewEvent
292
+
293
+ Code review submissions: approved, changes_requested, commented, or dismissed. Each review is one row.
294
+
295
+ **Processing:** Flattened from `payload.review.*` and `payload.pull_request.*`. The review state (approved/changes_requested/commented/dismissed) is the most useful field for analyzing review patterns.
296
+
297
+ | Column | Type | Description |
298
+ |---|---|---|
299
+ | `action` | string | submitted, dismissed |
300
+ | `review_id` | int64 | Review ID |
301
+ | `review_state` | string | approved, changes_requested, commented, dismissed |
302
+ | `review_body` | string | Review body text |
303
+ | `review_submitted_at` | timestamp | Review timestamp |
304
+ | `review_user_login` | string | Reviewer username |
305
+ | `review_commit_id` | string | Commit SHA reviewed |
306
+ | `pr_id` | int64 | PR ID |
307
+ | `pr_number` | int32 | PR number |
308
+ | `pr_title` | string | PR title |
309
+
310
+ #### `pr_review_comments`.PullRequestReviewCommentEvent
311
+
312
+ Line-level comments on pull request diffs. Includes the diff hunk for context and threading via `in_reply_to_id`.
313
+
314
+ **Processing:** Flattened from `payload.comment.*` and `payload.pull_request.*`. The `diff_hunk` field contains the surrounding diff context. Thread replies reference the parent comment via `in_reply_to_id`.
315
+
316
+ | Column | Type | Description |
317
+ |---|---|---|
318
+ | `action` | string | created |
319
+ | `comment_id` | int64 | Comment ID |
320
+ | `comment_body` | string | Comment text |
321
+ | `diff_hunk` | string | Diff context |
322
+ | `path` | string | File path |
323
+ | `line` | int32 | Line number |
324
+ | `side` | string | LEFT or RIGHT |
325
+ | `in_reply_to_id` | int64 | Parent comment (threads) |
326
+ | `comment_user_login` | string | Author |
327
+ | `comment_created_at` | string | Timestamp |
328
+ | `pr_number` | int32 | PR number |
329
+ | `reactions_total` | int32 | Total reactions |
330
+
331
+ #### `stars`.WatchEvent
332
+
333
+ Repository star events. Simple, high-signal data: who starred which repo, and when. The `action` field is always `"started"` (GitHub API naming quirk: `WatchEvent` means starring, not watching).
334
+
335
+ **Processing:** Minimal flattening: only the `action` field from payload. The event envelope (actor, repo, timestamp) carries all the useful information.
336
+
337
+ | Column | Type | Description |
338
+ |---|---|---|
339
+ | `action` | string | Always `started` |
340
+
341
+ #### `forks`.ForkEvent
342
+
343
+ Repository fork events. Contains metadata about the newly created fork, including its language, license, and star count at fork time.
344
+
345
+ **Processing:** Flattened from `payload.forkee.*`. The forkee is the newly created repository. Owner info from `forkee.owner` becomes `forkee_owner_login`. License from `forkee.license` becomes `forkee_license_key`. Topics are a Parquet LIST column.
346
+
347
+ | Column | Type | Description |
348
+ |---|---|---|
349
+ | `forkee_id` | int64 | Forked repo ID |
350
+ | `forkee_full_name` | string | Fork full name (owner/repo) |
351
+ | `forkee_language` | string | Primary language |
352
+ | `forkee_stars_count` | int32 | Stars at fork time |
353
+ | `forkee_forks_count` | int32 | Forks at fork time |
354
+ | `forkee_owner_login` | string | Fork owner |
355
+ | `forkee_description` | string | Fork description |
356
+ | `forkee_license_key` | string | License SPDX key |
357
+ | `forkee_topics` | list\<string\> | Repository topics |
358
+ | `forkee_created_at` | timestamp | Fork creation time |
359
+
360
+ #### `creates`.CreateEvent
361
+
362
+ Branch, tag, or repository creation. The `ref_type` field distinguishes between them.
363
+
364
+ **Processing:** Direct mapping from `payload.*` fields. When `ref_type` is `"repository"`, the `ref` field is null and `description` contains the repo description.
365
+
366
+ | Column | Type | Description |
367
+ |---|---|---|
368
+ | `ref` | string | Ref name (branch/tag name, null for repos) |
369
+ | `ref_type` | string | `branch`, `tag`, or `repository` |
370
+ | `master_branch` | string | Default branch name |
371
+ | `description` | string | Repo description (repo creates only) |
372
+ | `pusher_type` | string | User type |
373
+
374
+ #### `deletes`.DeleteEvent
375
+
376
+ Branch or tag deletion. Repositories cannot be deleted via the Events API.
377
+
378
+ **Processing:** Direct mapping from `payload.*` fields.
379
+
380
+ | Column | Type | Description |
381
+ |---|---|---|
382
+ | `ref` | string | Deleted ref name |
383
+ | `ref_type` | string | `branch` or `tag` |
384
+ | `pusher_type` | string | User type |
385
+
386
+ #### `releases`.ReleaseEvent
387
+
388
+ Release publication events. Contains the full release metadata including tag, release notes, and assets.
389
+
390
+ **Processing:** Flattened from `payload.release.*`. Author info from `release.author` becomes `release_author_login`. Assets are a Parquet LIST of structs. Reactions flattened from `release.reactions.*`.
391
+
392
+ | Column | Type | Description |
393
+ |---|---|---|
394
+ | `action` | string | published, edited, etc. |
395
+ | `release_id` | int64 | Release ID |
396
+ | `tag_name` | string | Git tag |
397
+ | `name` | string | Release title |
398
+ | `body` | string | Release notes (markdown) |
399
+ | `draft` | bool | Draft release |
400
+ | `prerelease` | bool | Pre-release |
401
+ | `release_created_at` | timestamp | Creation time |
402
+ | `release_published_at` | timestamp | Publication time |
403
+ | `release_author_login` | string | Author |
404
+ | `assets_count` | int32 | Number of assets |
405
+ | `assets` | list\<struct\> | Assets: `[{name, label, content_type, state, size, download_count}]` |
406
+ | `reactions_total` | int32 | Total reactions |
407
+
408
+ #### `commit_comments`.CommitCommentEvent
409
+
410
+ Comments on specific commits. Can be on a specific file and line, or on the commit as a whole.
411
+
412
+ **Processing:** Flattened from `payload.comment.*`. When the comment is on a specific file, `path` and `line` are populated. Reactions flattened from `comment.reactions.*`.
413
+
414
+ | Column | Type | Description |
415
+ |---|---|---|
416
+ | `comment_id` | int64 | Comment ID |
417
+ | `commit_id` | string | Commit SHA |
418
+ | `comment_body` | string | Comment text |
419
+ | `path` | string | File path (line comments) |
420
+ | `line` | int32 | Line number |
421
+ | `position` | int32 | Diff position |
422
+ | `comment_user_login` | string | Author |
423
+ | `comment_created_at` | string | Timestamp |
424
+ | `reactions_total` | int32 | Total reactions |
425
+
426
+ #### `wiki_pages`.GollumEvent
427
+
428
+ Wiki page creates and edits. A single `GollumEvent` can contain multiple page changes, so we emit **one row per page** (not per event).
429
+
430
+ **Processing:** The `payload.pages` array is unpacked: each page in the array produces a separate row, all sharing the same event envelope. This means one GitHub event can generate multiple rows.
431
+
432
+ | Column | Type | Description |
433
+ |---|---|---|
434
+ | `page_name` | string | Page slug |
435
+ | `title` | string | Page title |
436
+ | `action` | string | `created` or `edited` |
437
+ | `sha` | string | Page revision SHA |
438
+ | `summary` | string | Edit summary |
439
+
440
+ #### `members`.MemberEvent
441
+
442
+ Collaborator additions to repositories.
443
+
444
+ **Processing:** Flattened from `payload.member.*`. The actor is who added the member; the member fields describe who was added.
445
+
446
+ | Column | Type | Description |
447
+ |---|---|---|
448
+ | `action` | string | `added` |
449
+ | `member_id` | int64 | Added user's ID |
450
+ | `member_login` | string | Added user's username |
451
+ | `member_type` | string | User type |
452
+
453
+ #### `public_events`.PublicEvent
454
+
455
+ Repository visibility changes from private to public. The simplest table, containing only the event envelope (who, which repo, when) with no additional payload columns.
456
+
457
+ **Processing:** No payload fields are extracted. The event envelope alone captures the relevant information.
458
+
459
+ #### `discussions`.DiscussionEvent
460
+
461
+ GitHub Discussions lifecycle: created, answered, category_changed, labeled, and more. Includes category, answer status, and full discussion metadata.
462
+
463
+ **Processing:** Flattened from `payload.discussion.*`. Category info from `discussion.category` becomes `category_name`/`category_slug`/`category_emoji`. Answer info becomes `answer_html_url`/`answer_chosen_at`. Labels are a Parquet LIST column. Reactions flattened from `discussion.reactions.*`.
464
+
465
+ | Column | Type | Description |
466
+ |---|---|---|
467
+ | `action` | string | created, answered, category_changed, etc. |
468
+ | `discussion_number` | int32 | Discussion number |
469
+ | `title` | string | Discussion title |
470
+ | `body` | string | Discussion body (markdown) |
471
+ | `state` | string | Discussion state |
472
+ | `comments_count` | int32 | Comment count |
473
+ | `user_login` | string | Author |
474
+ | `category_name` | string | Category name |
475
+ | `category_slug` | string | Category slug |
476
+ | `discussion_created_at` | timestamp | When created |
477
+ | `answer_chosen_at` | timestamp | When answer was accepted (null if none) |
478
+ | `labels` | list\<string\> | Label names |
479
+ | `reactions_total` | int32 | Total reactions |
480
+
481
+
482
+ ## Per-table breakdown
483
+
484
+ | Table | GitHub Event | Events | % | Description |
485
+ |-------|-------------|-------:|---:|-------------|
486
+ | `pushes` | PushEvent | 16,694 | 55.5% | Git pushes with commits |
487
+ | `issues` | IssuesEvent | 1,161 | 3.9% | Issue lifecycle events |
488
+ | `pull_requests` | PullRequestEvent | 799 | 2.7% | PR lifecycle events |
489
+ | `stars` | WatchEvent | 3,517 | 11.7% | Repository stars |
490
+ | `forks` | ForkEvent | 930 | 3.1% | Repository forks |
491
+ | `creates` | CreateEvent | 4,842 | 16.1% | Branch/tag/repo creation |
492
+ | `deletes` | DeleteEvent | 466 | 1.5% | Branch/tag deletion |
493
+ | `commit_comments` | CommitCommentEvent | 410 | 1.4% | Comments on commits |
494
+ | `wiki_pages` | GollumEvent | 1,029 | 3.4% | Wiki page edits |
495
+ | `members` | MemberEvent | 228 | 0.8% | Collaborator additions |
496
+ | `public_events` | PublicEvent | 24 | 0.1% | Repo made public |
497
+
498
+ ## How it's built
499
+
500
+ The pipeline processes each hourly GH Archive file in a single pass:
501
+
502
+ 1. **Download** the hourly `.json.gz` file from `data.gharchive.org` (typically 100 to 150 MB compressed per hour)
503
+ 2. **Decompress** and parse each line as a JSON event
504
+ 3. **Route** each event by its `type` field to one of 16 handlers
505
+ 4. **Flatten** nested JSON into typed columns. For example, `issue.user.login` becomes `issue_user_login` and `pull_request.head.repo.name` becomes `pr_head_repo_name`
506
+ 5. **Write** to Parquet with Zstd compression, partitioned as `data/TABLE/YYYY/MM/DD.parquet`
507
+ 6. **Publish** daily to HuggingFace with auto-generated stats
508
+
509
+ All scalar fields are fully flattened into typed columns. Variable-length arrays (commits, labels, assets, topics, assignees) are stored as native Parquet LIST columns — no JSON strings. All `*_at` timestamp fields use the Parquet TIMESTAMP type (UTC microsecond precision), so DuckDB, pandas, Spark, and the HuggingFace viewer all read them as native datetimes.
510
+
511
+ No events are filtered. Every public event captured by GH Archive appears in the corresponding table. Events with parse errors are logged and skipped (typically less than 0.01%).
512
+
513
+ ## Known limitations
514
+
515
+ - **Full coverage starts 2015-01-01.** Events from 2011-02-12 to 2014-12-31 are included but parsed from the deprecated Timeline API (see above).
516
+ - **Bot activity.** A significant fraction of events (especially pushes and issues) are generated by bots such as Dependabot, Renovate, and CI systems. No bot filtering is applied.
517
+ - **Event lag.** GH Archive captures events with a small delay (roughly minutes). Events during GitHub outages may be missing.
518
+ - **Coverage starts 2015-01-01 for full data.** Events from 2011-02-12 to 2014-12-31 are parsed from the deprecated Timeline API. IssuesEvent and IssueCommentEvent from that period contain only integer IDs (no title, body, or state) because the old API did not include full objects in event payloads.
519
+
520
+ ## Personal information
521
+
522
+ All data was already public on GitHub. Usernames, user IDs, and repository information are included as they appear in the GitHub Events API. Email addresses may appear in commit metadata within PushEvent payloads (from public git commit objects). No private repository data is present.
523
+
524
+ ## License
525
+
526
+ Released under the **[Open Data Commons Attribution License (ODC-By) v1.0](https://opendatacommons.org/licenses/by/1-0/)**. The underlying data is sourced from the public GitHub Events API via GH Archive. GitHub's Terms of Service apply to the original data.
527
+
528
+ ## Credits
529
+
530
+ - **[GH Archive](https://www.gharchive.org/)** by [Ilya Grigorik](https://www.igvita.com/), the foundational project that has recorded every public GitHub event since 2011
531
+ - **[GitHub Events API](https://docs.github.com/en/rest/activity/events)**, the source data stream
532
+ - Built with [Apache Parquet](https://parquet.apache.org/) (Go), published via [HuggingFace Hub](https://huggingface.co/)
533
+
534
+ ## Contact
535
+
536
+ Questions, feedback, or issues? Open a discussion on the [Community tab](https://huggingface.co/datasets/open-index/open-github/discussions).
data/commit_comments/2011/02/12.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4bb5636a5f73a9334233a2a1a4adf22d0c4fe4074a7b307757c4b850e9b9206
3
+ size 24355
data/creates/2011/02/12.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e860da12c68d6d869c889d71f5778f1d3c92293682d3b4f67d0b7869d1cc34f
3
+ size 108354
data/deletes/2011/02/12.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b20ed4d9e5fdc9352b897498a5ad0a8a6cf511518709c46d6b48236b239a03f
3
+ size 15773
data/forks/2011/02/12.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca990afb36ac0ec6f470bf8eea5865a8b7dc699b60c712942d15ee674f3c61a5
3
+ size 43951
data/issues/2011/02/12.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae309e1a4179f842e5693cf70c86f0e82f35756a2e54cdb8b885eced266c567e
3
+ size 46567
data/members/2011/02/12.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec72760a7335ddb3f660063ae3dc6e2e85ffe790d4c28b6ce0e45ba49f99fcf9
3
+ size 12384
data/public_events/2011/02/12.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07dac99292963e185c89dad19452bc3f71e6abe2bdbfe2f3d42716bffb1b15ab
3
+ size 3545
data/pull_requests/2011/02/12.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f05f4dcef5b94971df2651dd2c1560267d5d911fd8295a9bbad8f4e0f9decfd7
3
+ size 52947
data/pushes/2011/02/12.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63d229ee9ed0615b7df55ff5a37afab3e66798bbc1ef2ec2ac12ddb0d82a0576
3
+ size 2797941
data/stars/2011/02/12.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6337d494b8257704a133f3fb5c86377cb604cd80d6adacf7a6455c05e5469b6
3
+ size 104017
data/wiki_pages/2011/02/12.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d30d99d0e9e1c52616765b7fd080533e27351fe3c481518151e3b5c1462c7e5
3
+ size 79032
stats.csv ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ date,total_events,parse_errors,pushes,issues,issue_comments,pull_requests,pr_reviews,pr_review_comments,stars,forks,creates,deletes,releases,commit_comments,wiki_pages,members,public_events,discussions,bytes_read,dur_seconds,parquet_bytes,dur_download_s,dur_process_s,dur_commit_s
2
+ 2011-02-12,30100,0,16694,1161,0,799,0,0,3517,930,4842,466,0,410,1029,228,24,0,5912248,9.9,3288866,5.9,9.9,0.0