Datasets:
Upload folder using huggingface_hub
Browse files- README.md +30 -91
- dataset_full.jsonl +0 -3
- dataset_full.parquet +2 -2
- dataset_noncommercial.parquet +2 -2
- dataset_permissive.jsonl +0 -3
- dataset_permissive.parquet +2 -2
- sample.jsonl +0 -3
README.md
CHANGED
|
@@ -1,91 +1,30 @@
|
|
| 1 |
-
---
|
| 2 |
-
language:
|
| 3 |
-
- en
|
| 4 |
-
- code
|
| 5 |
-
license: other
|
| 6 |
-
task_categories:
|
| 7 |
-
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
-
|
| 11 |
-
-
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
-
|
| 15 |
-
-
|
| 16 |
-
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
- **
|
| 29 |
-
- **
|
| 30 |
-
- **
|
| 31 |
-
- **Rich Annotations**: Includes GLSL dialect version, comment density, topic tagging (PBR, raymarching, lighting, compute, etc.), and complexity classification.
|
| 32 |
-
- **License Partitioning**: Permissive (MIT, Apache-2.0, BSD, CC0) vs Non-Commercial partitions.
|
| 33 |
-
- **Visual Previews**: High-quality screenshot previews linked to shader code.
|
| 34 |
-
|
| 35 |
-
## Dataset Structure & Splits
|
| 36 |
-
|
| 37 |
-
- `dataset_permissive.jsonl`: Clean, permissive open source licenses (MIT, Apache 2.0, BSD, CC0, Unlicense, Zlib).
|
| 38 |
-
- `dataset_noncommercial.jsonl`: Non-commercial educational content (CC-BY-NC-4.0, Shadertoy CC-BY-NC-SA-3.0).
|
| 39 |
-
- `dataset_full.jsonl`: Complete aggregated corpus.
|
| 40 |
-
|
| 41 |
-
## Schema Specification
|
| 42 |
-
|
| 43 |
-
Each record in JSONL contains:
|
| 44 |
-
|
| 45 |
-
```json
|
| 46 |
-
{
|
| 47 |
-
"id": "webgl_examples_bumpmapping",
|
| 48 |
-
"source": "https://github.com/damdoy/webgl_examples",
|
| 49 |
-
"source_commit": "b2c0c53...",
|
| 50 |
-
"collected_at": "2026-08-17T13:02:12+00:00",
|
| 51 |
-
"source_type": "repo",
|
| 52 |
-
"title": "Bumpmapping",
|
| 53 |
-
"api": "WebGL",
|
| 54 |
-
"glsl_version": "100",
|
| 55 |
-
"topic": "raymarching/texturing/bumpmapping/basics",
|
| 56 |
-
"difficulty": "advanced",
|
| 57 |
-
"files": [
|
| 58 |
-
{
|
| 59 |
-
"path": "bumpmapping/plane.js#[inline_1_vertex]",
|
| 60 |
-
"language": "glsl",
|
| 61 |
-
"stage": "vertex",
|
| 62 |
-
"loc": 18,
|
| 63 |
-
"comment_density": 0.0,
|
| 64 |
-
"code": "attribute vec4 vertex_pos;\n...",
|
| 65 |
-
"validation_status": "valid"
|
| 66 |
-
}
|
| 67 |
-
],
|
| 68 |
-
"validation": {
|
| 69 |
-
"glslang_valid": 2,
|
| 70 |
-
"invalid": 0,
|
| 71 |
-
"unverified": 0,
|
| 72 |
-
"has_ubo_or_ssbo": false,
|
| 73 |
-
"texture_samplers": 1
|
| 74 |
-
},
|
| 75 |
-
"preview_image": "images/webgl_examples_bumpmapping.png",
|
| 76 |
-
"license": "MIT",
|
| 77 |
-
"non_commercial": false,
|
| 78 |
-
"comment_density": 0.054,
|
| 79 |
-
"dedup_hash": "4efd6250c8b26922"
|
| 80 |
-
}
|
| 81 |
-
```
|
| 82 |
-
|
| 83 |
-
## Usage Example
|
| 84 |
-
|
| 85 |
-
```python
|
| 86 |
-
from datasets import load_dataset
|
| 87 |
-
|
| 88 |
-
dataset = load_dataset("json", data_files={"train": "dataset_permissive.jsonl"})
|
| 89 |
-
print(dataset["train"][0]["title"])
|
| 90 |
-
print(dataset["train"][0]["files"][0]["code"])
|
| 91 |
-
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- code
|
| 5 |
+
license: other
|
| 6 |
+
task_categories:
|
| 7 |
+
- text-generation
|
| 8 |
+
tags:
|
| 9 |
+
- opengl
|
| 10 |
+
- glsl
|
| 11 |
+
- webgl
|
| 12 |
+
- shaders
|
| 13 |
+
- computer-graphics
|
| 14 |
+
- 3d
|
| 15 |
+
- vulkan
|
| 16 |
+
- code-generation
|
| 17 |
+
size_categories:
|
| 18 |
+
- 1K<n<10K
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# GLSL/OpenGL & WebGPU Universal Educational Dataset for AI Training
|
| 22 |
+
|
| 23 |
+
Curated, statically validated, and educational dataset of GLSL, WGSL, and HLSL shaders, OpenGL/WebGL programs, and real-time graphics pipelines.
|
| 24 |
+
|
| 25 |
+
## Key Features
|
| 26 |
+
- **Multi-Stage Shaders**: Vertex, Fragment, Compute, Geometry, Tessellation.
|
| 27 |
+
- **Static Validation**: Validated against Khronos `glslangValidator`.
|
| 28 |
+
- **Universal Shading Targets**: Multi-target transpilation (WGSL, HLSL, MSL).
|
| 29 |
+
- **Rich Annotations**: Includes Chain-of-Thought reasoning, math models, interface specs, and synthetic bug-fix pairs.
|
| 30 |
+
- **Parquet Tables**: Full, Permissive, and Non-Commercial partitions in Apache Parquet and JSONL.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataset_full.jsonl
CHANGED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:83bd3930dd9bfe79dd4370df95ed489a94c4a0f16798ac10f6d7c685e2f85b2a
|
| 3 |
-
size 102793
|
|
|
|
|
|
|
|
|
|
|
|
dataset_full.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:14a9e6c91d8ba09bd5a744ca3fb124640df237017932eb3605d396e2a9d7a860
|
| 3 |
+
size 176
|
dataset_noncommercial.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:14a9e6c91d8ba09bd5a744ca3fb124640df237017932eb3605d396e2a9d7a860
|
| 3 |
+
size 176
|
dataset_permissive.jsonl
CHANGED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:83bd3930dd9bfe79dd4370df95ed489a94c4a0f16798ac10f6d7c685e2f85b2a
|
| 3 |
-
size 102793
|
|
|
|
|
|
|
|
|
|
|
|
dataset_permissive.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:14a9e6c91d8ba09bd5a744ca3fb124640df237017932eb3605d396e2a9d7a860
|
| 3 |
+
size 176
|
sample.jsonl
CHANGED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:83bd3930dd9bfe79dd4370df95ed489a94c4a0f16798ac10f6d7c685e2f85b2a
|
| 3 |
-
size 102793
|
|
|
|
|
|
|
|
|
|
|
|