smearle commited on
Commit
df9e0db
·
verified ·
1 Parent(s): 088eaed

Daily refresh: 36602 games

Browse files
Files changed (3) hide show
  1. README.md +18 -22
  2. data/puzzlescript_games.jsonl +2 -2
  3. 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,137** human-authored [PuzzleScript](https://www.puzzlescript.net/) games —
26
- the complete source text of each game — collected from public GitHub gists.
27
 
28
- This is the **full** corpus: unlike a pre-deduplicated release, every distinct
29
- gist is kept, and each row is **tagged with its deduplication cluster** so you can
30
- reduce to a unique set with a one-line filter. The deduplication is fully
31
- reproducible from the shipped manifest (`dedup_master.json`) and script
32
- (`dedup_master.py`). Non-vanilla PuzzleScript-Plus dialect files are excluded
33
- (listed in `quarantine_ps_plus_manifest.txt`, reproducible via
34
- `detect_non_vanilla.py`).
35
 
36
- Each game defines a set of rewrite rules (the mechanics) and one or more levels
37
- (initial states), making the corpus useful for **world models** of grid-puzzle
38
- dynamics, as well as code generation, program synthesis, and game design.
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,733 distinct games
60
  ```
61
 
62
- A game is treated as a duplicate only when **both** its mechanics fingerprint and
63
- its levels fingerprint match an already-kept game, so genuine small variants are
64
- retained as distinct (see `dedup_master.py` for the layered exact → normalized →
65
- canonical-token pipeline).
66
 
67
  ## Provenance & license
68
 
69
- Games were collected from public GitHub gists (the canonical PuzzleScript share
70
- target) and other public PuzzleScript archives. Rows are anonymized to a
71
- provenance category; the gist `id` is retained as the identifier. These are
72
- third-party, human-authored works redistributed for research; treat individual
73
- games as belonging to their original authors. License: `other`.
 
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:5547de976b01d01f6006f99fe538c3b7510a278ca23886b27fc37b80b2b30d20
3
- size 309829279
 
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": 36600,
4
- "n_unique_content": 32333,
5
- "n_after_dedup": 26763,
6
  "removed_as_dups": 9837,
7
  "parse_status_counts": {
8
  "parse_error": 4293,
9
- "ok": 31977,
10
  "preprocess_error": 292,
11
  "timeout": 38
12
  },
13
- "n_parsed_candidates": 22894,
14
- "n_distinct_mechanics": 16655,
15
- "n_distinct_levelsets": 19397,
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",