Add expanded GitHub ML seed and update dataset card
Browse files
.gitattributes
CHANGED
|
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
data/observations/2026/09/24/expanded-seed-20260924.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -16,9 +16,11 @@ A broad, evolving index of public GitHub repositories that may present a machine
|
|
| 16 |
|
| 17 |
Each row is a **discovery candidate**, not a verified claim of novelty, correctness, reproducibility, or scientific quality. The collection favors recall and includes borderline candidates. Repository metadata and labels can be incomplete or stale. The registry is intended to support discovery and reduce duplicated Modelome research; it is not a comprehensive census of ML work.
|
| 18 |
|
|
|
|
|
|
|
| 19 |
## Data files
|
| 20 |
|
| 21 |
-
The collector appends machine-readable JSON Lines observations by UTC
|
| 22 |
|
| 23 |
```text
|
| 24 |
README.md
|
|
@@ -28,7 +30,7 @@ state/checkpoint.json
|
|
| 28 |
state/backfill.json
|
| 29 |
```
|
| 30 |
|
| 31 |
-
Each JSONL row is one observation, not a unique repository across the full history.
|
| 32 |
|
| 33 |
## Fields
|
| 34 |
|
|
@@ -53,29 +55,48 @@ Labels are open vocabulary, multi-label, and subject to change. They can describ
|
|
| 53 |
|
| 54 |
Daily collection searches for recently pushed candidates, records the queries that found each repository, and appends observations. Repository searches include `fork:true` unless a configured query already specifies a `fork:` qualifier, so forks and reproductions can be discovered; `fork` marks forked projects. Within a run, matches merge by numeric `github_id`, never by mutable `name`. Across runs, the observation history is append-only; to materialize a current view, group by `github_id` and select the greatest `observed_at`. Historical backfill searches creation dates beginning at 2008-01-01 by default. It partitions by date and recursively splits dense intervals when GitHub approaches its per-search result ceiling; coverage records each query and date partition. It resumes from the separate `state/backfill.json` checkpoint, while daily progress uses `state/checkpoint.json`. An older backfill observation does not displace a newer snapshot in a current view.
|
| 55 |
|
| 56 |
-
The source is GitHub's public repository metadata and Search API. GitHub Search caps each query at 1,000 returned results and at 4,000 repositories searched, and is subject to request limits, timeouts, incomplete responses, and indexing gaps. Broad query coverage and backfills improve recall but cannot guarantee exhaustiveness. Results can include false positives, and not all novel ML work is hosted on GitHub or discoverable by the configured queries. See the [official Search API documentation](https://docs.github.com/en/rest/search/search).
|
| 57 |
|
| 58 |
## Access
|
| 59 |
|
| 60 |
-
|
|
|
|
|
|
|
| 61 |
|
| 62 |
-
Observation files are JSON Lines stored under date-partitioned Hub paths. To load them with 🤗 Datasets, first download the repository files locally, then pass
|
| 63 |
|
| 64 |
```python
|
| 65 |
from pathlib import Path
|
|
|
|
| 66 |
from huggingface_hub import snapshot_download
|
| 67 |
from datasets import load_dataset
|
| 68 |
|
| 69 |
root = Path(snapshot_download(
|
| 70 |
repo_id="modelomics/gh-ml",
|
| 71 |
repo_type="dataset",
|
| 72 |
-
allow_patterns=["data/observations/**/*.jsonl"],
|
| 73 |
))
|
| 74 |
files = sorted(str(path) for path in root.glob("data/observations/**/*.jsonl"))
|
|
|
|
|
|
|
| 75 |
observations = load_dataset("json", data_files=files, split="train")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
```
|
| 77 |
|
| 78 |
-
|
| 79 |
|
| 80 |
## License and attribution
|
| 81 |
|
|
|
|
| 16 |
|
| 17 |
Each row is a **discovery candidate**, not a verified claim of novelty, correctness, reproducibility, or scientific quality. The collection favors recall and includes borderline candidates. Repository metadata and labels can be incomplete or stale. The registry is intended to support discovery and reduce duplicated Modelome research; it is not a comprehensive census of ML work.
|
| 18 |
|
| 19 |
+
The display name is **GitHub ML**; `gh-ml` is the dataset and code repository slug.
|
| 20 |
+
|
| 21 |
## Data files
|
| 22 |
|
| 23 |
+
The collector appends machine-readable JSON Lines observations by UTC publication date, with run coverage and resumable checkpoints, using this layout:
|
| 24 |
|
| 25 |
```text
|
| 26 |
README.md
|
|
|
|
| 30 |
state/backfill.json
|
| 31 |
```
|
| 32 |
|
| 33 |
+
Each JSONL row is one observation, not a unique repository across the full history. A run deduplicates matches by `github_id`, but later runs append new snapshots. To create a current view, combine all observation files, group by numeric `github_id`, and retain the row with the greatest `observed_at`; `github_id` remains stable if the repository is renamed. Keep the full history when change over time matters. Coverage JSON records the query or query/date partitions attempted, result counts, pages scanned, outcome status, and any coverage gap. `state/checkpoint.json` stores daily collection progress and `state/backfill.json` stores independent historical backfill progress. Successful empty sweeps still add coverage and update the checkpoint, but have no JSONL file. Run records and coverage are append-only; checkpoint files and the dataset card are updated as collection continues. See [Hugging Face repository structure](https://huggingface.co/docs/datasets/main/repository_structure) and [dataset cards](https://huggingface.co/docs/hub/en/datasets-cards).
|
| 34 |
|
| 35 |
## Fields
|
| 36 |
|
|
|
|
| 55 |
|
| 56 |
Daily collection searches for recently pushed candidates, records the queries that found each repository, and appends observations. Repository searches include `fork:true` unless a configured query already specifies a `fork:` qualifier, so forks and reproductions can be discovered; `fork` marks forked projects. Within a run, matches merge by numeric `github_id`, never by mutable `name`. Across runs, the observation history is append-only; to materialize a current view, group by `github_id` and select the greatest `observed_at`. Historical backfill searches creation dates beginning at 2008-01-01 by default. It partitions by date and recursively splits dense intervals when GitHub approaches its per-search result ceiling; coverage records each query and date partition. It resumes from the separate `state/backfill.json` checkpoint, while daily progress uses `state/checkpoint.json`. An older backfill observation does not displace a newer snapshot in a current view.
|
| 57 |
|
| 58 |
+
The source is GitHub's public repository metadata and Search API. GitHub Search caps each query at 1,000 returned results and at 4,000 repositories searched, and is subject to request limits, timeouts, incomplete responses, and indexing gaps. A coverage `status` of `capped` or `incomplete`, or `coverage_gap: true`, flags known gaps; check `coverage_gap_reason` and the other per-query fields. Broad query coverage and backfills improve recall but cannot guarantee exhaustiveness. Results can include false positives, and not all novel ML work is hosted on GitHub or discoverable by the configured queries. See the [official Search API documentation](https://docs.github.com/en/rest/search/search).
|
| 59 |
|
| 60 |
## Access
|
| 61 |
|
| 62 |
+
This dataset is maintained at [`modelomics/gh-ml`](https://huggingface.co/datasets/modelomics/gh-ml). The collection workflow appends new observations and coverage records to this repository over time. Publishing requires an `HF_TOKEN` with write permission to the dataset repository; the GitHub Actions workflow checks for the secret and exits before collection if it is missing. Actions supplies `GITHUB_TOKEN` for GitHub Search. To recover a scheduled run, use **Run workflow** in Actions: each successful run commits its cursor with the observations and coverage, while a failed search leaves the prior Hub checkpoint available for retry.
|
| 63 |
+
|
| 64 |
+
For local publishing, set `HF_TOKEN` in the environment or sign in with `uv run hf auth login`; the collector reads the saved Hugging Face CLI token. GitHub authentication can be provided through `GITHUB_TOKEN` or `gh auth login` (the collector reads `gh auth token`). The HF token must have write permission on `modelomics/gh-ml`. For local recovery, rerun using the same `--output-dir` so the local cursor is reused; the default is `~/.local/share/modelomics-gh-ml/runs`. Use `--no-publish` for local-only collection, which writes run files without requiring Hugging Face credentials.
|
| 65 |
|
| 66 |
+
Observation files are JSON Lines stored under date-partitioned Hub paths. To load them with 🤗 Datasets, first download the repository files locally, then pass all observation paths. `datasets` is an additional package for this example (`uv add datasets` in a local environment, or install it separately); it is not needed by the collector.
|
| 67 |
|
| 68 |
```python
|
| 69 |
from pathlib import Path
|
| 70 |
+
import json
|
| 71 |
from huggingface_hub import snapshot_download
|
| 72 |
from datasets import load_dataset
|
| 73 |
|
| 74 |
root = Path(snapshot_download(
|
| 75 |
repo_id="modelomics/gh-ml",
|
| 76 |
repo_type="dataset",
|
| 77 |
+
allow_patterns=["data/observations/**/*.jsonl", "coverage/*.json"],
|
| 78 |
))
|
| 79 |
files = sorted(str(path) for path in root.glob("data/observations/**/*.jsonl"))
|
| 80 |
+
if not files:
|
| 81 |
+
raise RuntimeError("The dataset has no observation files yet")
|
| 82 |
observations = load_dataset("json", data_files=files, split="train")
|
| 83 |
+
|
| 84 |
+
# Current snapshot: one latest row for each stable GitHub repository ID.
|
| 85 |
+
latest = {}
|
| 86 |
+
for row in observations:
|
| 87 |
+
previous = latest.get(row["github_id"])
|
| 88 |
+
if previous is None or row["observed_at"] > previous["observed_at"]:
|
| 89 |
+
latest[row["github_id"]] = row
|
| 90 |
+
current = list(latest.values())
|
| 91 |
+
|
| 92 |
+
# Coverage is per run; keep it separate from repository rows.
|
| 93 |
+
coverage = [
|
| 94 |
+
json.loads(path.read_text())
|
| 95 |
+
for path in sorted((root / "coverage").glob("*.json"))
|
| 96 |
+
]
|
| 97 |
```
|
| 98 |
|
| 99 |
+
Coverage is per run; it is not a list of repositories. Daily coverage rows describe pushed-date search windows; backfill rows describe created-date partitions. A `complete_sweep` of `false` usually means the request budget left a cursor to resume. Within each run's `queries`, review `status`, `coverage_gap`, `coverage_gap_reason`, `incomplete_results`, and `search_limit_reached`. Coverage and checkpoint JSON are operational metadata, not rows in the repository table. Hub checkpoints let scheduled or manually dispatched Actions runs resume; locally, reuse the same `--output-dir` to resume local state.
|
| 100 |
|
| 101 |
## License and attribution
|
| 102 |
|
coverage/expanded-seed-20260924.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/observations/2026/09/24/expanded-seed-20260924.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:896fdd05e6dc76850bcb7e3f6434b400e734abccbcddba92dedba8066f459314
|
| 3 |
+
size 28359666
|
manifests/expanded-seed-20260924.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"coverage_file": "coverage-expanded-seed-20260924.json",
|
| 3 |
+
"failed_query_count": 0,
|
| 4 |
+
"manifest_file": "manifest-expanded-seed-20260924.json",
|
| 5 |
+
"observations_file": "observations-expanded-seed-20260924.jsonl",
|
| 6 |
+
"published": true,
|
| 7 |
+
"readme_file": "README.md",
|
| 8 |
+
"repo_id": "modelomics/gh-ml",
|
| 9 |
+
"run_id": "expanded-seed-20260924",
|
| 10 |
+
"sample_scope": "one first page of up to 100 repositories per current catalog query, including forks",
|
| 11 |
+
"selected_query_count": 412,
|
| 12 |
+
"started_at": "2026-09-24T10:49:00Z",
|
| 13 |
+
"successful_query_count": 412,
|
| 14 |
+
"sum_of_query_total_counts": 37709099,
|
| 15 |
+
"target_revision": "refs/pr/1",
|
| 16 |
+
"unique_repository_count": 34848
|
| 17 |
+
}
|