TheGreatRambler commited on
Commit
bd0d604
1 Parent(s): 99b1d39

Update README

Browse files
Files changed (1) hide show
  1. README.md +16 -56
README.md CHANGED
@@ -95,27 +95,27 @@ level_data = next(iter(ds))["level_data"]
95
  level = Level(KaitaiStream(BytesIO(zlib.decompress(level_data))))
96
 
97
  # NOTE level.overworld.objects is a fixed size (limitation of Kaitai struct)
98
- # must iterate by object_count or null objects will be iterated over
99
  for i in range(level.overworld.object_count):
100
  obj = level.overworld.objects[i]
101
- print("x:%d y:%d id:%s" % (obj.x, obj.y, obj.id))
102
 
103
  #OUTPUT:
104
  """\
105
- x:1200 y:400 id:ObjId.block
106
- x:1360 y:400 id:ObjId.block
107
- x:1360 y:240 id:ObjId.block
108
- x:1520 y:240 id:ObjId.block
109
- x:1680 y:240 id:ObjId.block
110
- x:1680 y:400 id:ObjId.block
111
- x:1840 y:400 id:ObjId.block
112
- x:2000 y:400 id:ObjId.block
113
- x:2160 y:400 id:ObjId.block
114
- x:2320 y:400 id:ObjId.block
115
- x:2480 y:560 id:ObjId.block
116
- x:2480 y:720 id:ObjId.block
117
- x:2480 y:880 id:ObjId.block
118
- x:2160 y:880 id:ObjId.block
119
  ...
120
  """
121
  ```
@@ -374,46 +374,6 @@ ClearConditions = {
374
  ```
375
 
376
  <!-- TODO create detailed statistics -->
377
- <!--
378
- ## Dataset Statistics
379
-
380
- 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:
381
-
382
- ![dataset-statistics](https://huggingface.co/datasets/codeparrot/github-code/resolve/main/github-code-stats-alpha.png)
383
-
384
- | | Language |File Count| Size (GB)|
385
- |---:|:-------------|---------:|-------:|
386
- | 0 | Java | 19548190 | 107.70 |
387
- | 1 | C | 14143113 | 183.83 |
388
- | 2 | JavaScript | 11839883 | 87.82 |
389
- | 3 | HTML | 11178557 | 118.12 |
390
- | 4 | PHP | 11177610 | 61.41 |
391
- | 5 | Markdown | 8464626 | 23.09 |
392
- | 6 | C++ | 7380520 | 87.73 |
393
- | 7 | Python | 7226626 | 52.03 |
394
- | 8 | C# | 6811652 | 36.83 |
395
- | 9 | Ruby | 4473331 | 10.95 |
396
- | 10 | GO | 2265436 | 19.28 |
397
- | 11 | TypeScript | 1940406 | 24.59 |
398
- | 12 | CSS | 1734406 | 22.67 |
399
- | 13 | Shell | 1385648 | 3.01 |
400
- | 14 | Scala | 835755 | 3.87 |
401
- | 15 | Makefile | 679430 | 2.92 |
402
- | 16 | SQL | 656671 | 5.67 |
403
- | 17 | Lua | 578554 | 2.81 |
404
- | 18 | Perl | 497949 | 4.70 |
405
- | 19 | Dockerfile | 366505 | 0.71 |
406
- | 20 | Haskell | 340623 | 1.85 |
407
- | 21 | Rust | 322431 | 2.68 |
408
- | 22 | TeX | 251015 | 2.15 |
409
- | 23 | Batchfile | 236945 | 0.70 |
410
- | 24 | CMake | 175282 | 0.54 |
411
- | 25 | Visual Basic | 155652 | 1.91 |
412
- | 26 | FORTRAN | 142038 | 1.62 |
413
- | 27 | PowerShell | 136846 | 0.69 |
414
- | 28 | Assembly | 82905 | 0.78 |
415
- | 29 | Julia | 58317 | 0.29 |
416
- -->
417
 
418
  ## Dataset Creation
419
 
 
95
  level = Level(KaitaiStream(BytesIO(zlib.decompress(level_data))))
96
 
97
  # NOTE level.overworld.objects is a fixed size (limitation of Kaitai struct)
98
+ # must iterate by object_count or null objects will be included
99
  for i in range(level.overworld.object_count):
100
  obj = level.overworld.objects[i]
101
+ print("X: %d Y: %d ID: %s" % (obj.x, obj.y, obj.id))
102
 
103
  #OUTPUT:
104
  """\
105
+ X: 1200 Y: 400 ID: ObjId.block
106
+ X: 1360 Y: 400 ID: ObjId.block
107
+ X: 1360 Y: 240 ID: ObjId.block
108
+ X: 1520 Y: 240 ID: ObjId.block
109
+ X: 1680 Y: 240 ID: ObjId.block
110
+ X: 1680 Y: 400 ID: ObjId.block
111
+ X: 1840 Y: 400 ID: ObjId.block
112
+ X: 2000 Y: 400 ID: ObjId.block
113
+ X: 2160 Y: 400 ID: ObjId.block
114
+ X: 2320 Y: 400 ID: ObjId.block
115
+ X: 2480 Y: 560 ID: ObjId.block
116
+ X: 2480 Y: 720 ID: ObjId.block
117
+ X: 2480 Y: 880 ID: ObjId.block
118
+ X: 2160 Y: 880 ID: ObjId.block
119
  ...
120
  """
121
  ```
 
374
  ```
375
 
376
  <!-- TODO create detailed statistics -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
377
 
378
  ## Dataset Creation
379