TheGreatRambler commited on
Commit
9b3d6a7
1 Parent(s): f5acc6e

Update size

Browse files
Files changed (2) hide show
  1. README.md +2 -42
  2. example.py +0 -9
README.md CHANGED
@@ -6,7 +6,7 @@ license:
6
  multilinguality:
7
  - multilingual
8
  size_categories:
9
- - 100M<n<1B
10
  source_datasets:
11
  - original
12
  task_categories:
@@ -239,7 +239,7 @@ The dataset only contains a train split.
239
 
240
  ## Enums
241
 
242
- The dataset contains some enum integer fields. They match those used by `TheGreatRambler/mm2_level` for the most part, but they are reproduced below:
243
 
244
  ```python
245
  Regions = {
@@ -462,46 +462,6 @@ UserIsOutfit = {
462
  ```
463
 
464
  <!-- TODO create detailed statistics -->
465
- <!--
466
- ## Dataset Statistics
467
-
468
- 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:
469
-
470
- ![dataset-statistics](https://huggingface.co/datasets/codeparrot/github-code/resolve/main/github-code-stats-alpha.png)
471
-
472
- | | Language |File Count| Size (GB)|
473
- |---:|:-------------|---------:|-------:|
474
- | 0 | Java | 19548190 | 107.70 |
475
- | 1 | C | 14143113 | 183.83 |
476
- | 2 | JavaScript | 11839883 | 87.82 |
477
- | 3 | HTML | 11178557 | 118.12 |
478
- | 4 | PHP | 11177610 | 61.41 |
479
- | 5 | Markdown | 8464626 | 23.09 |
480
- | 6 | C++ | 7380520 | 87.73 |
481
- | 7 | Python | 7226626 | 52.03 |
482
- | 8 | C# | 6811652 | 36.83 |
483
- | 9 | Ruby | 4473331 | 10.95 |
484
- | 10 | GO | 2265436 | 19.28 |
485
- | 11 | TypeScript | 1940406 | 24.59 |
486
- | 12 | CSS | 1734406 | 22.67 |
487
- | 13 | Shell | 1385648 | 3.01 |
488
- | 14 | Scala | 835755 | 3.87 |
489
- | 15 | Makefile | 679430 | 2.92 |
490
- | 16 | SQL | 656671 | 5.67 |
491
- | 17 | Lua | 578554 | 2.81 |
492
- | 18 | Perl | 497949 | 4.70 |
493
- | 19 | Dockerfile | 366505 | 0.71 |
494
- | 20 | Haskell | 340623 | 1.85 |
495
- | 21 | Rust | 322431 | 2.68 |
496
- | 22 | TeX | 251015 | 2.15 |
497
- | 23 | Batchfile | 236945 | 0.70 |
498
- | 24 | CMake | 175282 | 0.54 |
499
- | 25 | Visual Basic | 155652 | 1.91 |
500
- | 26 | FORTRAN | 142038 | 1.62 |
501
- | 27 | PowerShell | 136846 | 0.69 |
502
- | 28 | Assembly | 82905 | 0.78 |
503
- | 29 | Julia | 58317 | 0.29 |
504
- -->
505
 
506
  ## Dataset Creation
507
 
 
6
  multilinguality:
7
  - multilingual
8
  size_categories:
9
+ - 1M<n<10M
10
  source_datasets:
11
  - original
12
  task_categories:
 
239
 
240
  ## Enums
241
 
242
+ The dataset contains some enum integer fields. This can be used to convert back to their string equivalents:
243
 
244
  ```python
245
  Regions = {
 
462
  ```
463
 
464
  <!-- TODO create detailed statistics -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
465
 
466
  ## Dataset Creation
467
 
example.py DELETED
@@ -1,9 +0,0 @@
1
- from datasets import load_dataset
2
-
3
- ds = load_dataset("TheGreatRambler/mm2_user", streaming=True, split="train")
4
-
5
- mii_image = next(iter(ds))["mii_image"]
6
- print("Face: https://studio.mii.nintendo.com/miis/image.png?data=%s&type=face&width=512&instanceCount=1" % mii_image)
7
- print("Body: https://studio.mii.nintendo.com/miis/image.png?data=%s&type=all_body&width=512&instanceCount=1" % mii_image)
8
- print("Face (x16): https://studio.mii.nintendo.com/miis/image.png?data=%s&type=face&width=512&instanceCount=16" % mii_image)
9
- print("Body (x16): https://studio.mii.nintendo.com/miis/image.png?data=%s&type=all_body&width=512&instanceCount=16" % mii_image)