tim-dettmers commited on
Commit
1688d2f
·
verified ·
1 Parent(s): e051ebe

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +117 -0
README.md ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ pretty_name: AGGS GitHub structural corpus
4
+ tags:
5
+ - agent-guided-graph-search
6
+ - github
7
+ - code-search
8
+ - dependency-graph
9
+ - bnbcode
10
+ task_categories:
11
+ - other
12
+ size_categories:
13
+ - 10M<n<100M
14
+ ---
15
+
16
+ # AGGS GitHub structural corpus
17
+
18
+ This snapshot supports repository discovery and dependency-graph navigation
19
+ without redistributing source content. Its manifest records the exact build ID,
20
+ schema version, artifact hashes, byte sizes, row counts, and audited structural
21
+ symbol count.
22
+
23
+ ## Contents
24
+
25
+ - canonical GitHub `owner/repository` and PyPI package identifiers;
26
+ - typed package/repository/native dependency relations and numeric evidence;
27
+ - repository-relative source paths;
28
+ - qualified symbol names and symbol kinds; and
29
+ - whitespace-normalized signatures capped at 1,024 UTF-8 bytes.
30
+
31
+ The graph is a PostgreSQL custom-format dump compressed with xz. The matching
32
+ Tantivy search index is a zstd-compressed tar archive. A target-specific Rust
33
+ query executable is the third artifact. The graph and index carry one build ID
34
+ and graph schema version; mixing generations is rejected, and all three
35
+ artifacts are SHA-256 verified.
36
+
37
+ ## Deliberate exclusions
38
+
39
+ The snapshot contains no source archives, source bodies or snippets, comments,
40
+ docstrings, README text, repository/package descriptions, copied license text,
41
+ or local archive paths. Archive availability is false. Consequently,
42
+ `source-search` and `fetch` are unavailable; use ordinary search for structural
43
+ facts and obtain source separately under its repository's terms when needed.
44
+
45
+ ## Sources and licensing boundary
46
+
47
+ The catalog combines generated dependency data from deps.dev's public BigQuery
48
+ tables, PyPI package metadata, GitHub public-repository metadata, and structural
49
+ facts extracted from public repositories. deps.dev documents its generated
50
+ data under CC BY 4.0; that license does not relicense fields originating from
51
+ PyPI, GitHub, or repositories. GitHub public visibility likewise does not place
52
+ repository content in the public domain.
53
+
54
+ The snapshot therefore does not claim one blanket copyright license over all
55
+ identifiers or declarations. Its paths, names, kinds, and signatures are
56
+ provided as structural/API facts under the applicable source terms and law.
57
+ The signature allowance is a product risk decision, not legal advice or a
58
+ conclusion for every jurisdiction. Users who retrieve source must comply with
59
+ the corresponding repository license.
60
+
61
+ Primary provenance references:
62
+
63
+ - https://docs.deps.dev/faq/
64
+ - https://docs.deps.dev/bigquery/v1/#data
65
+ - https://cloud.google.com/bigquery/public-data
66
+ - https://docs.github.com/en/site-policy/github-terms/github-terms-of-service
67
+
68
+ ## Verification and installation
69
+
70
+ The release pipeline first runs `github_structure_audit.py` over the five-field
71
+ JSONL stream, then `github_snapshot.py` rejects incomplete or non-structural
72
+ builds, prose/archive leakage, mixed identities, and count mismatches before it
73
+ writes `manifest.json`. Install with:
74
+
75
+ ```bash
76
+ bnbcode research install --code --execute
77
+ ```
78
+
79
+ The installer verifies both SHA-256 hashes, graph row counts, build/profile
80
+ identity, and archive paths/symlinks before atomically placing the index and
81
+ writing `~/.config/opencode/arxiv_graph.env` discovery settings.
82
+
83
+ ## Rebuilding from scratch
84
+
85
+ The `builder/` directory holds the acquisition-time metadata inputs for
86
+ recreating this corpus without BigQuery or the GitHub search API: the
87
+ package/repository catalog, the PyPI dependency edges, and the PyPI package
88
+ metadata export. These are public registry facts, not source content.
89
+ `aggs/scripts/github_build_from_scratch.py` stages them, shallow-clones every
90
+ catalogued public repository, extracts native dependency evidence, runs the
91
+ closed-schema structural extractor and independent audit, and builds the same
92
+ graph schema and structural profile as this snapshot. Because cloning observes
93
+ current default-branch HEADs, a fresh build matches this snapshot's structure
94
+ and pipeline but not necessarily its exact rows where repositories have moved
95
+ or disappeared. Source is fetched directly from each repository under that
96
+ repository's license.
97
+
98
+
99
+ ## Current snapshot
100
+
101
+ | Snapshot date | Repositories | Packages | Graph edges | Artifact bytes | Backend target |
102
+ |---|---:|---:|---:|---:|---|
103
+ | 2026-08-19 | 52,520 | 509,232 | 2,468,590 | 1,580,778,877 | linux-x64 |
104
+
105
+ Build ID: `1787128807-160c21c9d3c3dc41`. See `manifest.json` for artifact hashes,
106
+ individual byte sizes, table counts, and graph schema version.
107
+
108
+ ## Builder inputs
109
+
110
+ | Repositories | PyPI edges | Metadata rows | Builder bytes |
111
+ |---:|---:|---:|---:|
112
+ | 47,272 | 2,250,939 | 38,542 | 367,477,631 |
113
+
114
+ The `builder/` directory contains the repository catalog and PyPI dependency
115
+ exports needed to rebuild this corpus from scratch by cloning the catalogued
116
+ repositories. See `builder/manifest.json` for hashes and the dataset card
117
+ body for the rebuild procedure.