TheGreatRambler commited on
Commit
0768ac4
1 Parent(s): dc8753f

Create README

Browse files
Files changed (1) hide show
  1. README.md +293 -0
README.md ADDED
@@ -0,0 +1,293 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - multilingual
4
+ license:
5
+ - cc-by-nc-sa-4.0
6
+ multilinguality:
7
+ - multilingual
8
+ size_categories:
9
+ - 100M<n<1B
10
+ source_datasets:
11
+ - original
12
+ task_categories:
13
+ - text-generation
14
+ - structure-prediction
15
+ - object-detection
16
+ - text-mining
17
+ - information-retrieval
18
+ - other
19
+ task_ids:
20
+ - other
21
+ pretty_name: Mario Maker 2 ninji levels
22
+ ---
23
+
24
+ # Mario Maker 2 ninjis
25
+ Part of the [Mario Maker 2 Dataset Collection](https://tgrcode.com/posts/mario_maker_2_datasets)
26
+
27
+ ## Dataset Description
28
+ The Mario Maker 2 ninji levels dataset consists of 21 ninji levels from Nintendo's online service and aids `TheGreatRambler/mm2_ninji`. The dataset was created using the self-hosted [Mario Maker 2 api](https://tgrcode.com/posts/mario_maker_2_api) over the course of 1 month in February 2022.
29
+
30
+ ### How to use it
31
+ You can load and iterate through the dataset with the following code:
32
+
33
+ ```python
34
+ from datasets import load_dataset
35
+
36
+ ds = load_dataset("TheGreatRambler/mm2_ninji_level", split="train")
37
+ print(next(iter(ds)))
38
+
39
+ #OUTPUT:
40
+ {
41
+ 'data_id': 12171034,
42
+ 'name': 'Rolling Snowballs',
43
+ 'description': 'Make your way through the snowfields, and keep an eye\nout for Spikes and Snow Pokeys! Stomping on Snow Pokeys\nwill turn them into small snowballs, which you can pick up\nand throw. Play this course as many times as you want,\nand see if you can find the fastest way to the finish!',
44
+ 'uploaded': 1575532800,
45
+ 'ended': 1576137600,
46
+ 'gamestyle': 3,
47
+ 'theme': 6,
48
+ 'medal_time': 26800,
49
+ 'clear_condition': 0,
50
+ 'clear_condition_magnitude': 0,
51
+ 'unk3_0': 1309513,
52
+ 'unk3_1': 62629737,
53
+ 'unk3_2': 4355893,
54
+ 'unk5': 1,
55
+ 'unk6': 0,
56
+ 'unk9': 0,
57
+ 'level_data': [some binary data]
58
+ }
59
+ ```
60
+ Each row is a ninji level denoted by `data_id`. `TheGreatRambler/mm2_ninji` refers to these levels.
61
+
62
+ ## Data Structure
63
+
64
+ ### Data Instances
65
+
66
+ ```python
67
+ {
68
+ 'data_id': 12171034,
69
+ 'name': 'Rolling Snowballs',
70
+ 'description': 'Make your way through the snowfields, and keep an eye\nout for Spikes and Snow Pokeys! Stomping on Snow Pokeys\nwill turn them into small snowballs, which you can pick up\nand throw. Play this course as many times as you want,\nand see if you can find the fastest way to the finish!',
71
+ 'uploaded': 1575532800,
72
+ 'ended': 1576137600,
73
+ 'gamestyle': 3,
74
+ 'theme': 6,
75
+ 'medal_time': 26800,
76
+ 'clear_condition': 0,
77
+ 'clear_condition_magnitude': 0,
78
+ 'unk3_0': 1309513,
79
+ 'unk3_1': 62629737,
80
+ 'unk3_2': 4355893,
81
+ 'unk5': 1,
82
+ 'unk6': 0,
83
+ 'unk9': 0,
84
+ 'level_data': [some binary data]
85
+ }
86
+ ```
87
+
88
+ ### Data Fields
89
+
90
+ |Field|Type|Description|
91
+ |---|---|---|
92
+ |data_id|int|The data ID of this ninji level|
93
+ |name|string|Name|
94
+ |description|string|Description|
95
+ |uploaded|int|UTC timestamp of when this was uploaded|
96
+ |ended|int|UTC timestamp of when this event ended|
97
+ |gamestyle|int|Gamestyle, enum below|
98
+ |theme|int|Theme, enum below|
99
+ |medal_time|int|Time to get a medal in milliseconds|
100
+ |clear_condition|int|Clear condition, enum below|
101
+ |clear_condition_magnitude|int|If applicable, the magnitude of the clear condition|
102
+ |unk3_0|int|Unknown|
103
+ |unk3_1|int|Unknown|
104
+ |unk3_2|int|Unknown|
105
+ |unk5|int|Unknown|
106
+ |unk6|int|Unknown|
107
+ |unk9|int|Unknown|
108
+ |level_data|bytes|The GZIP compressed decrypted level data, a kaitai struct file is provided to read this|
109
+ |one_screen_thumbnail|bytes|The one screen course thumbnail, as a JPEG binary|
110
+ |one_screen_thumbnail_url|string|The old URL of this thumbnail|
111
+ |one_screen_thumbnail_size|int|The filesize of this thumbnail|
112
+ |one_screen_thumbnail_filename|string|The filename of this thumbnail|
113
+ |entire_thumbnail|bytes|The entire course thumbnail, as a JPEG binary|
114
+ |entire_thumbnail_url|string|The old URL of this thumbnail|
115
+ |entire_thumbnail_size|int|The filesize of this thumbnail|
116
+ |entire_thumbnail_filename|string|The filename of this thumbnail|
117
+
118
+ ### Data Splits
119
+
120
+ The dataset only contains a train split.
121
+
122
+ ## Enums
123
+
124
+ The dataset contains some enum integer fields. They match those used by `TheGreatRambler/mm2_level` for the most part, but they are reproduced below:
125
+
126
+ ```python
127
+ GameStyles = {
128
+ 0: "SMB1",
129
+ 1: "SMB3",
130
+ 2: "SMW",
131
+ 3: "NSMBU",
132
+ 4: "SM3DW"
133
+ }
134
+
135
+ CourseThemes = {
136
+ 0: "Overworld",
137
+ 1: "Underground",
138
+ 2: "Castle",
139
+ 3: "Airship",
140
+ 4: "Underwater",
141
+ 5: "Ghost house",
142
+ 6: "Snow",
143
+ 7: "Desert",
144
+ 8: "Sky",
145
+ 9: "Forest"
146
+ }
147
+
148
+ ClearConditions = {
149
+ 137525990: "Reach the goal without landing after leaving the ground.",
150
+ 199585683: "Reach the goal after defeating at least/all (n) Mechakoopa(s).",
151
+ 272349836: "Reach the goal after defeating at least/all (n) Cheep Cheep(s).",
152
+ 375673178: "Reach the goal without taking damage.",
153
+ 426197923: "Reach the goal as Boomerang Mario.",
154
+ 436833616: "Reach the goal while wearing a Shoe.",
155
+ 713979835: "Reach the goal as Fire Mario.",
156
+ 744927294: "Reach the goal as Frog Mario.",
157
+ 751004331: "Reach the goal after defeating at least/all (n) Larry(s).",
158
+ 900050759: "Reach the goal as Raccoon Mario.",
159
+ 947659466: "Reach the goal after defeating at least/all (n) Blooper(s).",
160
+ 976173462: "Reach the goal as Propeller Mario.",
161
+ 994686866: "Reach the goal while wearing a Propeller Box.",
162
+ 998904081: "Reach the goal after defeating at least/all (n) Spike(s).",
163
+ 1008094897: "Reach the goal after defeating at least/all (n) Boom Boom(s).",
164
+ 1051433633: "Reach the goal while holding a Koopa Shell.",
165
+ 1061233896: "Reach the goal after defeating at least/all (n) Porcupuffer(s).",
166
+ 1062253843: "Reach the goal after defeating at least/all (n) Charvaargh(s).",
167
+ 1079889509: "Reach the goal after defeating at least/all (n) Bullet Bill(s).",
168
+ 1080535886: "Reach the goal after defeating at least/all (n) Bully/Bullies.",
169
+ 1151250770: "Reach the goal while wearing a Goomba Mask.",
170
+ 1182464856: "Reach the goal after defeating at least/all (n) Hop-Chops.",
171
+ 1219761531: "Reach the goal while holding a Red POW Block. OR Reach the goal after activating at least/all (n) Red POW Block(s).",
172
+ 1221661152: "Reach the goal after defeating at least/all (n) Bob-omb(s).",
173
+ 1259427138: "Reach the goal after defeating at least/all (n) Spiny/Spinies.",
174
+ 1268255615: "Reach the goal after defeating at least/all (n) Bowser(s)/Meowser(s).",
175
+ 1279580818: "Reach the goal after defeating at least/all (n) Ant Trooper(s).",
176
+ 1283945123: "Reach the goal on a Lakitu's Cloud.",
177
+ 1344044032: "Reach the goal after defeating at least/all (n) Boo(s).",
178
+ 1425973877: "Reach the goal after defeating at least/all (n) Roy(s).",
179
+ 1429902736: "Reach the goal while holding a Trampoline.",
180
+ 1431944825: "Reach the goal after defeating at least/all (n) Morton(s).",
181
+ 1446467058: "Reach the goal after defeating at least/all (n) Fish Bone(s).",
182
+ 1510495760: "Reach the goal after defeating at least/all (n) Monty Mole(s).",
183
+ 1656179347: "Reach the goal after picking up at least/all (n) 1-Up Mushroom(s).",
184
+ 1665820273: "Reach the goal after defeating at least/all (n) Hammer Bro(s.).",
185
+ 1676924210: "Reach the goal after hitting at least/all (n) P Switch(es). OR Reach the goal while holding a P Switch.",
186
+ 1715960804: "Reach the goal after activating at least/all (n) POW Block(s). OR Reach the goal while holding a POW Block.",
187
+ 1724036958: "Reach the goal after defeating at least/all (n) Angry Sun(s).",
188
+ 1730095541: "Reach the goal after defeating at least/all (n) Pokey(s).",
189
+ 1780278293: "Reach the goal as Superball Mario.",
190
+ 1839897151: "Reach the goal after defeating at least/all (n) Pom Pom(s).",
191
+ 1969299694: "Reach the goal after defeating at least/all (n) Peepa(s).",
192
+ 2035052211: "Reach the goal after defeating at least/all (n) Lakitu(s).",
193
+ 2038503215: "Reach the goal after defeating at least/all (n) Lemmy(s).",
194
+ 2048033177: "Reach the goal after defeating at least/all (n) Lava Bubble(s).",
195
+ 2076496776: "Reach the goal while wearing a Bullet Bill Mask.",
196
+ 2089161429: "Reach the goal as Big Mario.",
197
+ 2111528319: "Reach the goal as Cat Mario.",
198
+ 2131209407: "Reach the goal after defeating at least/all (n) Goomba(s)/Galoomba(s).",
199
+ 2139645066: "Reach the goal after defeating at least/all (n) Thwomp(s).",
200
+ 2259346429: "Reach the goal after defeating at least/all (n) Iggy(s).",
201
+ 2549654281: "Reach the goal while wearing a Dry Bones Shell.",
202
+ 2694559007: "Reach the goal after defeating at least/all (n) Sledge Bro(s.).",
203
+ 2746139466: "Reach the goal after defeating at least/all (n) Rocky Wrench(es).",
204
+ 2749601092: "Reach the goal after grabbing at least/all (n) 50-Coin(s).",
205
+ 2855236681: "Reach the goal as Flying Squirrel Mario.",
206
+ 3036298571: "Reach the goal as Buzzy Mario.",
207
+ 3074433106: "Reach the goal as Builder Mario.",
208
+ 3146932243: "Reach the goal as Cape Mario.",
209
+ 3174413484: "Reach the goal after defeating at least/all (n) Wendy(s).",
210
+ 3206222275: "Reach the goal while wearing a Cannon Box.",
211
+ 3314955857: "Reach the goal as Link.",
212
+ 3342591980: "Reach the goal while you have Super Star invincibility.",
213
+ 3346433512: "Reach the goal after defeating at least/all (n) Goombrat(s)/Goombud(s).",
214
+ 3348058176: "Reach the goal after grabbing at least/all (n) 10-Coin(s).",
215
+ 3353006607: "Reach the goal after defeating at least/all (n) Buzzy Beetle(s).",
216
+ 3392229961: "Reach the goal after defeating at least/all (n) Bowser Jr.(s).",
217
+ 3437308486: "Reach the goal after defeating at least/all (n) Koopa Troopa(s).",
218
+ 3459144213: "Reach the goal after defeating at least/all (n) Chain Chomp(s).",
219
+ 3466227835: "Reach the goal after defeating at least/all (n) Muncher(s).",
220
+ 3481362698: "Reach the goal after defeating at least/all (n) Wiggler(s).",
221
+ 3513732174: "Reach the goal as SMB2 Mario.",
222
+ 3649647177: "Reach the goal in a Koopa Clown Car/Junior Clown Car.",
223
+ 3725246406: "Reach the goal as Spiny Mario.",
224
+ 3730243509: "Reach the goal in a Koopa Troopa Car.",
225
+ 3748075486: "Reach the goal after defeating at least/all (n) Piranha Plant(s)/Jumping Piranha Plant(s).",
226
+ 3797704544: "Reach the goal after defeating at least/all (n) Dry Bones.",
227
+ 3824561269: "Reach the goal after defeating at least/all (n) Stingby/Stingbies.",
228
+ 3833342952: "Reach the goal after defeating at least/all (n) Piranha Creeper(s).",
229
+ 3842179831: "Reach the goal after defeating at least/all (n) Fire Piranha Plant(s).",
230
+ 3874680510: "Reach the goal after breaking at least/all (n) Crates(s).",
231
+ 3974581191: "Reach the goal after defeating at least/all (n) Ludwig(s).",
232
+ 3977257962: "Reach the goal as Super Mario.",
233
+ 4042480826: "Reach the goal after defeating at least/all (n) Skipsqueak(s).",
234
+ 4116396131: "Reach the goal after grabbing at least/all (n) Coin(s).",
235
+ 4117878280: "Reach the goal after defeating at least/all (n) Magikoopa(s).",
236
+ 4122555074: "Reach the goal after grabbing at least/all (n) 30-Coin(s).",
237
+ 4153835197: "Reach the goal as Balloon Mario.",
238
+ 4172105156: "Reach the goal while wearing a Red POW Box.",
239
+ 4209535561: "Reach the Goal while riding Yoshi.",
240
+ 4269094462: "Reach the goal after defeating at least/all (n) Spike Top(s).",
241
+ 4293354249: "Reach the goal after defeating at least/all (n) Banzai Bill(s)."
242
+ }
243
+ ```
244
+
245
+ <!-- TODO create detailed statistics -->
246
+ <!--
247
+ ## Dataset Statistics
248
+
249
+ The dataset contains 115M files and the sum of all the source code file sizes is 873 GB (note that the size of the dataset is larger due to the extra fields). A breakdown per language is given in the plot and table below:
250
+
251
+ ![dataset-statistics](https://huggingface.co/datasets/codeparrot/github-code/resolve/main/github-code-stats-alpha.png)
252
+
253
+ | | Language |File Count| Size (GB)|
254
+ |---:|:-------------|---------:|-------:|
255
+ | 0 | Java | 19548190 | 107.70 |
256
+ | 1 | C | 14143113 | 183.83 |
257
+ | 2 | JavaScript | 11839883 | 87.82 |
258
+ | 3 | HTML | 11178557 | 118.12 |
259
+ | 4 | PHP | 11177610 | 61.41 |
260
+ | 5 | Markdown | 8464626 | 23.09 |
261
+ | 6 | C++ | 7380520 | 87.73 |
262
+ | 7 | Python | 7226626 | 52.03 |
263
+ | 8 | C# | 6811652 | 36.83 |
264
+ | 9 | Ruby | 4473331 | 10.95 |
265
+ | 10 | GO | 2265436 | 19.28 |
266
+ | 11 | TypeScript | 1940406 | 24.59 |
267
+ | 12 | CSS | 1734406 | 22.67 |
268
+ | 13 | Shell | 1385648 | 3.01 |
269
+ | 14 | Scala | 835755 | 3.87 |
270
+ | 15 | Makefile | 679430 | 2.92 |
271
+ | 16 | SQL | 656671 | 5.67 |
272
+ | 17 | Lua | 578554 | 2.81 |
273
+ | 18 | Perl | 497949 | 4.70 |
274
+ | 19 | Dockerfile | 366505 | 0.71 |
275
+ | 20 | Haskell | 340623 | 1.85 |
276
+ | 21 | Rust | 322431 | 2.68 |
277
+ | 22 | TeX | 251015 | 2.15 |
278
+ | 23 | Batchfile | 236945 | 0.70 |
279
+ | 24 | CMake | 175282 | 0.54 |
280
+ | 25 | Visual Basic | 155652 | 1.91 |
281
+ | 26 | FORTRAN | 142038 | 1.62 |
282
+ | 27 | PowerShell | 136846 | 0.69 |
283
+ | 28 | Assembly | 82905 | 0.78 |
284
+ | 29 | Julia | 58317 | 0.29 |
285
+ -->
286
+
287
+ ## Dataset Creation
288
+
289
+ The dataset was created over a little more than a month in Febuary 2022 using the self hosted [Mario Maker 2 api](https://tgrcode.com/posts/mario_maker_2_api). As requests made to Nintendo's servers require authentication the process had to be done with upmost care and limiting download speed as to not overload the API and risk a ban. There are no intentions to create an updated release of this dataset.
290
+
291
+ ## Considerations for Using the Data
292
+
293
+ As these 21 levels were made and vetted by Nintendo the dataset contains no harmful language or depictions.