HSH Intelligence commited on
Commit
f884075
·
verified ·
1 Parent(s): 799e00c

World-class dataset card: full corpus specs, schema, use cases, sales CTA

Browse files
Files changed (1) hide show
  1. README.md +222 -5
README.md CHANGED
@@ -1,5 +1,222 @@
1
- ---
2
- license: other
3
- license_name: permissive-mixed
4
- license_link: LICENSE
5
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: permissive-mixed
4
+ license_link: LICENSE
5
+ task_categories:
6
+ - text-generation
7
+ - fill-mask
8
+ - feature-extraction
9
+ language:
10
+ - en
11
+ tags:
12
+ - code
13
+ - github
14
+ - ai-training
15
+ - llm
16
+ - fine-tuning
17
+ - code-generation
18
+ - python
19
+ - javascript
20
+ - typescript
21
+ - rust
22
+ - go
23
+ - permissive-license
24
+ - apache-2.0
25
+ - mit
26
+ - commercial-safe
27
+ pretty_name: HSH Intelligence — GitHub Code AI Training Corpus (Sample)
28
+ size_categories:
29
+ - 1K<n<10K
30
+ ---
31
+
32
+ # HSH Intelligence — GitHub Code AI Training Corpus
33
+
34
+ **A 1,000-record evaluation sample of the HSH Intelligence GitHub Code AI Training Corpus.**
35
+
36
+ This is a curated, license-audited sample of source code from top-rated public GitHub repositories — prepared for large language model training, fine-tuning, and code understanding research.
37
+
38
+ The full corpus contains **5.6 TB** of source code (**211 million+ files**, **7.05 billion lines**) across **14 production languages** with **0.978 average quality score**.
39
+
40
+ ---
41
+
42
+ ## What's In This Sample
43
+
44
+ | Metric | Value |
45
+ |---|---|
46
+ | Records | 1,000 (curated subset) |
47
+ | Languages | 5 (Python, JavaScript, TypeScript, Go, Rust) |
48
+ | Format | Apache Parquet (Snappy compression) + CSV |
49
+ | Schema | 24 fields per record |
50
+ | Quality score (avg) | 0.978 / 1.000 |
51
+ | License coverage | 100% commercial-safe |
52
+
53
+ ---
54
+
55
+ ## Full Corpus Specifications
56
+
57
+ | Metric | Value |
58
+ |---|---|
59
+ | Total dataset size | 5.6 TB (raw) / 391 GB (Parquet, compressed) |
60
+ | Total records | 211 million+ code files |
61
+ | Total lines of code | 7.05 billion |
62
+ | Unique repositories | 3,710+ permissive-license repos |
63
+ | Programming languages | 14 production languages |
64
+ | Average quality score | 0.978 / 1.000 |
65
+ | Updates | Daily incremental |
66
+
67
+ **Languages covered:** Python, JavaScript, TypeScript, Go, Rust, Java, C++, Ruby, Swift, Kotlin, PHP, C#, Scala, Solidity
68
+
69
+ ---
70
+
71
+ ## Schema (24 Fields)
72
+
73
+ | Field | Type | Description |
74
+ |---|---|---|
75
+ | `id` | string | Unique record identifier |
76
+ | `repo_name` | string | GitHub repository slug (owner/repo) |
77
+ | `repo_owner` | string | GitHub username or organization |
78
+ | `repo_url` | string | Full HTTPS URL to repository |
79
+ | `file_path` | string | Relative path within repo |
80
+ | `file_name` | string | Filename with extension |
81
+ | `file_sha` | string | SHA-256 hash for deduplication |
82
+ | `code` | string | Raw source code content |
83
+ | `language` | string | Detected programming language |
84
+ | `language_extension` | string | File extension |
85
+ | `line_count` | integer | Total lines of code |
86
+ | `char_count` | integer | Character count |
87
+ | `token_count` | integer | Estimated tokens (tiktoken cl100k) |
88
+ | `license` | string | SPDX license identifier |
89
+ | `license_source` | string | Where license was detected |
90
+ | `license_confidence` | float | Detection confidence (0.0–1.0) |
91
+ | `commercial_safe` | boolean | Commercial-use safe flag |
92
+ | `repo_stars` | integer | GitHub star count |
93
+ | `repo_forks` | integer | GitHub fork count |
94
+ | `repo_description` | string | Repository description |
95
+ | `repo_primary_language` | string | Repository's dominant language |
96
+ | `repo_created_at` | timestamp | Repository creation date |
97
+ | `repo_updated_at` | timestamp | Last activity timestamp |
98
+ | `data_quality_score` | float | Composite quality score (0.0–1.0) |
99
+
100
+ ---
101
+
102
+ ## License Coverage (Commercial-Safe Only)
103
+
104
+ | License | Status | Notes |
105
+ |---|---|---|
106
+ | MIT | INCLUDED | Most permissive |
107
+ | Apache-2.0 | INCLUDED | Permissive with patent grant |
108
+ | BSD-2-Clause | INCLUDED | Permissive |
109
+ | BSD-3-Clause | INCLUDED | Permissive |
110
+ | ISC | INCLUDED | Permissive |
111
+ | GPL-2.0 / GPL-3.0 | EXCLUDED | Copyleft |
112
+ | AGPL-3.0 | EXCLUDED | Strong copyleft |
113
+ | LGPL-2.1 / LGPL-3.0 | EXCLUDED | Copyleft |
114
+ | No license / Proprietary | EXCLUDED | Default copyright |
115
+
116
+ ---
117
+
118
+ ## Quick Start
119
+
120
+ ```python
121
+ from datasets import load_dataset
122
+
123
+ # Load sample
124
+ ds = load_dataset("HSH-Intelligence/github-code-corpus-sample")
125
+
126
+ # Inspect
127
+ print(ds)
128
+ print(ds["train"][0])
129
+
130
+ # Filter to high-quality Python only
131
+ python_only = ds["train"].filter(
132
+ lambda x: x["language"] == "Python" and x["data_quality_score"] >= 0.95
133
+ )
134
+ ```
135
+
136
+ ```python
137
+ import pandas as pd
138
+
139
+ # Or load directly with pandas
140
+ df = pd.read_parquet(
141
+ "hf://datasets/HSH-Intelligence/github-code-corpus-sample/github_code_sample_1000.parquet"
142
+ )
143
+
144
+ print(df.head())
145
+ print(f"Total records: {len(df):,}")
146
+ print(f"Languages: {df['language'].value_counts()}")
147
+ ```
148
+
149
+ ---
150
+
151
+ ## Live API Demo
152
+
153
+ Try the full corpus via the live API sandbox (no signup required):
154
+
155
+ ```bash
156
+ curl -H "X-API-Key: demo-key-12345" \
157
+ "https://api.hshintelligence.com/api/v1/github-code-corpus?language=Rust&license=MIT&page_size=5"
158
+ ```
159
+
160
+ Or run the interactive Google Colab notebook:
161
+ 👉 https://links.hshintelligence.com/github-demo
162
+
163
+ ---
164
+
165
+ ## Use Cases
166
+
167
+ - **LLM pre-training** — multi-language code corpus for foundation models
168
+ - **Code completion fine-tuning** — Copilot-style models
169
+ - **Code search and retrieval** — embedding training
170
+ - **Code understanding research** — academic benchmarks
171
+ - **Vertical AI** — domain-specific code assistants
172
+
173
+ ---
174
+
175
+ ## Why This Corpus
176
+
177
+ | Vs. Alternative | HSH Edge |
178
+ |---|---|
179
+ | The Stack v2 | License-audited per file with provenance trail |
180
+ | Common Crawl code | Pre-filtered, deduplicated, quality-scored |
181
+ | Custom GitHub scraping | Saves 4+ months of engineering work |
182
+ | Internal datasets | EU AI Act Article 10 compliance ready |
183
+
184
+ ---
185
+
186
+ ## Compliance & Provenance
187
+
188
+ - **EU AI Act Article 10** ready (training data governance)
189
+ - Per-record license audit trail
190
+ - Source attribution retained (repo_name, repo_owner)
191
+ - Quality scoring per record
192
+ - No PII, no API keys, no secrets (sensitive content filtered)
193
+
194
+ Full provenance and audit report: 👉 https://links.hshintelligence.com/github-docs
195
+
196
+ ---
197
+
198
+ ## Full Corpus Access
199
+
200
+ This is a **1,000-record evaluation sample**. The full corpus is available via commercial license:
201
+
202
+ - **Format options:** Apache Parquet (default) / JSONL on request
203
+ - **Delivery:** Cloud signed URL / AWS S3 cross-cloud / sFTP
204
+ - **Custom subsets:** Filter by language, license, repo, or quality threshold
205
+ - **Updates:** Daily incremental updates included with annual licenses
206
+ - **Licensing:** 1-year non-exclusive commercial license
207
+
208
+ **Contact:** sales@healingsunhaven.com
209
+ **Website:** https://www.hshintelligence.com
210
+ **Live API:** https://api.hshintelligence.com
211
+
212
+ ---
213
+
214
+ ## About HSH Intelligence
215
+
216
+ HSH Intelligence is a Data Division of Healing Sun Haven LLC, building world-class AI training datasets and B2B intelligence products.
217
+
218
+ We build production-grade datasets across AI training, B2B intelligence, and decision-support — purpose-built for frontier AI labs and enterprise teams.
219
+
220
+ ---
221
+
222
+ *This dataset is provided for evaluation purposes. The full 5.6 TB corpus is available under commercial license. License audit and provenance documentation included with all enterprise contracts.*