Datasets:
Daily refresh: 36602 games
Browse files- README.md +18 -22
- data/puzzlescript_games.jsonl +2 -2
- dedup_master.json +29 -7
README.md
CHANGED
|
@@ -22,20 +22,18 @@ configs:
|
|
| 22 |
|
| 23 |
# PuzzleScript Human-Authored Games (Full Gist Corpus)
|
| 24 |
|
| 25 |
-
**34,
|
| 26 |
-
|
| 27 |
|
| 28 |
-
This is the **full** corpus:
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
(listed in `quarantine_ps_plus_manifest.txt`, reproducible via
|
| 34 |
-
`detect_non_vanilla.py`).
|
| 35 |
|
| 36 |
-
Each game defines
|
| 37 |
-
|
| 38 |
-
|
| 39 |
|
| 40 |
## Fields
|
| 41 |
|
|
@@ -56,18 +54,16 @@ dynamics, as well as code generation, program synthesis, and game design.
|
|
| 56 |
```python
|
| 57 |
from datasets import load_dataset
|
| 58 |
ds = load_dataset("smearle/puzzlescript-gists", split="train")
|
| 59 |
-
unique = ds.filter(lambda r: r["is_dedup_representative"]) # 24,
|
| 60 |
```
|
| 61 |
|
| 62 |
-
A game is
|
| 63 |
-
|
| 64 |
-
retained as distinct (see `dedup_master.py` for the layered exact → normalized →
|
| 65 |
-
canonical-token pipeline).
|
| 66 |
|
| 67 |
## Provenance & license
|
| 68 |
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
|
|
|
| 22 |
|
| 23 |
# PuzzleScript Human-Authored Games (Full Gist Corpus)
|
| 24 |
|
| 25 |
+
**34,139** human-authored [PuzzleScript](https://www.puzzlescript.net/) games — the
|
| 26 |
+
complete source text of each — collected from public GitHub gists.
|
| 27 |
|
| 28 |
+
This is the **full** corpus: every distinct gist is kept, and each row is tagged
|
| 29 |
+
with its deduplication cluster so you can reduce to a unique set with a one-line
|
| 30 |
+
filter. The deduplication is reproducible from the shipped `dedup_master.json` +
|
| 31 |
+
`dedup_master.py`; non-vanilla PuzzleScript-Plus files are excluded (listed in
|
| 32 |
+
`quarantine_ps_plus_manifest.txt`, reproducible via `detect_non_vanilla.py`).
|
|
|
|
|
|
|
| 33 |
|
| 34 |
+
Each game defines rewrite rules (mechanics) and one or more levels (initial
|
| 35 |
+
states) — useful for **world models** of grid-puzzle dynamics, code generation,
|
| 36 |
+
program synthesis, and game design.
|
| 37 |
|
| 38 |
## Fields
|
| 39 |
|
|
|
|
| 54 |
```python
|
| 55 |
from datasets import load_dataset
|
| 56 |
ds = load_dataset("smearle/puzzlescript-gists", split="train")
|
| 57 |
+
unique = ds.filter(lambda r: r["is_dedup_representative"]) # 24,735 distinct games
|
| 58 |
```
|
| 59 |
|
| 60 |
+
A game is a duplicate only when **both** its mechanics and levels fingerprints
|
| 61 |
+
match an already-kept game, so genuine small variants are retained.
|
|
|
|
|
|
|
| 62 |
|
| 63 |
## Provenance & license
|
| 64 |
|
| 65 |
+
Collected from public GitHub gists (the canonical PuzzleScript share target) and
|
| 66 |
+
other public PuzzleScript archives. Rows are anonymized to a provenance category;
|
| 67 |
+
the gist `id` is retained as the identifier. These are third-party, human-authored
|
| 68 |
+
works redistributed for research; treat each game as belonging to its original
|
| 69 |
+
author. License: `other`.
|
data/puzzlescript_games.jsonl
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:cb465167c8f2d6473cc9ff6ec7c5039bb6112ed7ce492d8f9a2ffa22b17b61c5
|
| 3 |
+
size 309855132
|
dedup_master.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
{
|
| 2 |
"master_dir": "/home/jupyter-smearle/puzzlescript-gists",
|
| 3 |
-
"n_files":
|
| 4 |
-
"n_unique_content":
|
| 5 |
-
"n_after_dedup":
|
| 6 |
"removed_as_dups": 9837,
|
| 7 |
"parse_status_counts": {
|
| 8 |
"parse_error": 4293,
|
| 9 |
-
"ok":
|
| 10 |
"preprocess_error": 292,
|
| 11 |
"timeout": 38
|
| 12 |
},
|
| 13 |
-
"n_parsed_candidates":
|
| 14 |
-
"n_distinct_mechanics":
|
| 15 |
-
"n_distinct_levelsets":
|
| 16 |
"n_mechanics_shared_by_2plus": 2712,
|
| 17 |
"candidates": [
|
| 18 |
{
|
|
@@ -136311,6 +136311,17 @@
|
|
| 136311 |
"n_dups": 0,
|
| 136312 |
"members": []
|
| 136313 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136314 |
{
|
| 136315 |
"file": "6880313.txt",
|
| 136316 |
"label": "6880313",
|
|
@@ -204805,6 +204816,17 @@
|
|
| 204805 |
"a2569222bc5942fd321c71200edf2dc0.txt"
|
| 204806 |
]
|
| 204807 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204808 |
{
|
| 204809 |
"file": "932b185c23e0b9ac2851.txt",
|
| 204810 |
"label": "932b185c23e0b9ac2851",
|
|
|
|
| 1 |
{
|
| 2 |
"master_dir": "/home/jupyter-smearle/puzzlescript-gists",
|
| 3 |
+
"n_files": 36602,
|
| 4 |
+
"n_unique_content": 32335,
|
| 5 |
+
"n_after_dedup": 26765,
|
| 6 |
"removed_as_dups": 9837,
|
| 7 |
"parse_status_counts": {
|
| 8 |
"parse_error": 4293,
|
| 9 |
+
"ok": 31979,
|
| 10 |
"preprocess_error": 292,
|
| 11 |
"timeout": 38
|
| 12 |
},
|
| 13 |
+
"n_parsed_candidates": 22896,
|
| 14 |
+
"n_distinct_mechanics": 16657,
|
| 15 |
+
"n_distinct_levelsets": 19399,
|
| 16 |
"n_mechanics_shared_by_2plus": 2712,
|
| 17 |
"candidates": [
|
| 18 |
{
|
|
|
|
| 136311 |
"n_dups": 0,
|
| 136312 |
"members": []
|
| 136313 |
},
|
| 136314 |
+
{
|
| 136315 |
+
"file": "68800aa58a31343bb63eff9e3b8200d4.txt",
|
| 136316 |
+
"label": "68800aa58a31343bb63eff9e3b8200d4",
|
| 136317 |
+
"content_hash": "38d5f1005384135808e7dae2ba6c7aa3c400f426",
|
| 136318 |
+
"group_key": "T:08e49a254cfc0912:8ce980981f05e25d",
|
| 136319 |
+
"parse_status": "ok",
|
| 136320 |
+
"n_objs": 12,
|
| 136321 |
+
"n_levels": 10,
|
| 136322 |
+
"n_dups": 0,
|
| 136323 |
+
"members": []
|
| 136324 |
+
},
|
| 136325 |
{
|
| 136326 |
"file": "6880313.txt",
|
| 136327 |
"label": "6880313",
|
|
|
|
| 204816 |
"a2569222bc5942fd321c71200edf2dc0.txt"
|
| 204817 |
]
|
| 204818 |
},
|
| 204819 |
+
{
|
| 204820 |
+
"file": "93268e7329a887054727ade664c24193.txt",
|
| 204821 |
+
"label": "93268e7329a887054727ade664c24193",
|
| 204822 |
+
"content_hash": "73553c6baf80c5ef899ea2a1a8678c226d2f43bf",
|
| 204823 |
+
"group_key": "T:0a06059ea259f527:d325e3512384ea39",
|
| 204824 |
+
"parse_status": "ok",
|
| 204825 |
+
"n_objs": 20,
|
| 204826 |
+
"n_levels": 6,
|
| 204827 |
+
"n_dups": 0,
|
| 204828 |
+
"members": []
|
| 204829 |
+
},
|
| 204830 |
{
|
| 204831 |
"file": "932b185c23e0b9ac2851.txt",
|
| 204832 |
"label": "932b185c23e0b9ac2851",
|