iNeil77 commited on
Commit
bb84a25
·
verified ·
1 Parent(s): 89537ea

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +372 -0
README.md CHANGED
@@ -4442,3 +4442,375 @@ configs:
4442
  - split: train
4443
  path: yaml/train-*
4444
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4442
  - split: train
4443
  path: yaml/train-*
4444
  ---
4445
+
4446
+ This is a filtered version of the near-deduped `bigcode/the-stack-dedup` dataset. We further apply the following filters:
4447
+
4448
+ 1. For files forked more than 25 times, we retain them if the average line length is less than 140, the maximum line length is less than 500 and the alphanumeric fraction is more than 25%.
4449
+ 2. For files forked between 10 and 25 times, we retain them if the average line length is less than 120, the maximum line length is less than 200 and the alphanumeric fraction is more than 35%.
4450
+ 3. For files forked less than 10 times, we retain them if the average line length is less than 100, the maximum line length is less than 200 and the alphanumeric fraction is more than 40%.
4451
+ 4. We only retain language splits that still have more than 50,000 samples after the above filtering steps, with the exception of `llvm`, which we also retain. This leaves us with 60 languages.
4452
+ 5. We only retain samples from conventionally used extensions and drop samples from valid but uncommon extensions. We select the following extensions for the 60 languages:
4453
+
4454
+ ext_map = {
4455
+ "ASP":
4456
+ [
4457
+ ".asp",
4458
+ ],
4459
+ "Arduino":
4460
+ [
4461
+ ".ino"
4462
+ ],
4463
+ "AsciiDoc":
4464
+ [
4465
+ ".asciidoc",
4466
+ ],
4467
+ "Batchfile":
4468
+ [
4469
+ ".bat",
4470
+ ".cmd"
4471
+ ],
4472
+ "C":
4473
+ [
4474
+ ".c",
4475
+ ".h",
4476
+ ],
4477
+ "C#":
4478
+ [
4479
+ ".cs",
4480
+ ],
4481
+ "C++":
4482
+ [
4483
+ ".cpp",
4484
+ ".c++",
4485
+ ".cc",
4486
+ ".cxx",
4487
+ ".h++",
4488
+ ".hh",
4489
+ ".hpp",
4490
+ ".hxx",
4491
+ ],
4492
+ "CMake":
4493
+ [
4494
+ ".cmake",
4495
+ ],
4496
+ "CSS":
4497
+ [
4498
+ ".css"
4499
+ ],
4500
+ "Clojure":
4501
+ [
4502
+ ".clj",
4503
+ ],
4504
+ "CoffeeScript":
4505
+ [
4506
+ ".coffee",
4507
+ ],
4508
+ "Common Lisp":
4509
+ [
4510
+ ".lisp",
4511
+ ],
4512
+ "Crystal":
4513
+ [
4514
+ ".cr"
4515
+ ],
4516
+ "Cuda":
4517
+ [
4518
+ ".cu",
4519
+ ".cuh"
4520
+ ],
4521
+ "Dart":
4522
+ [
4523
+ ".dart"
4524
+ ],
4525
+ "Dockerfile":
4526
+ [
4527
+ ".dockerfile",
4528
+ "Dockerfile"
4529
+ ],
4530
+ "Elixir":
4531
+ [
4532
+ ".ex",
4533
+ ],
4534
+ "Emacs Lisp":
4535
+ [
4536
+ ".el",
4537
+ ".emacs",
4538
+ ],
4539
+ "Erlang":
4540
+ [
4541
+ ".erl",
4542
+ ],
4543
+ "F#":
4544
+ [
4545
+ ".fs",
4546
+ ],
4547
+ "FORTRAN":
4548
+ [
4549
+ ".f90",
4550
+ ".f",
4551
+ ".f03",
4552
+ ".f08",
4553
+ ".f77",
4554
+ ".f95",
4555
+ ],
4556
+ "GLSL":
4557
+ [
4558
+ ".glsl",
4559
+ ],
4560
+ "Go":
4561
+ [
4562
+ ".go"
4563
+ ],
4564
+ "Groovy":
4565
+ [
4566
+ ".groovy",
4567
+ ],
4568
+ "HCL":
4569
+ [
4570
+ ".hcl",
4571
+ ],
4572
+ "HTML":
4573
+ [
4574
+ ".html",
4575
+ ],
4576
+ "HTML+Django":
4577
+ [
4578
+ ".mustache",
4579
+ ".jinja"
4580
+ ],
4581
+ "HTML+ERB":
4582
+ [
4583
+ ".erb",
4584
+ ],
4585
+ "HTML+PHP":
4586
+ [
4587
+ ".phtml"
4588
+ ],
4589
+ "Haml":
4590
+ [
4591
+ ".haml",
4592
+ ],
4593
+ "Haskell":
4594
+ [
4595
+ ".hs",
4596
+ ],
4597
+ "JSON":
4598
+ [
4599
+ ".json",
4600
+ ],
4601
+ "Java":
4602
+ [
4603
+ ".java"
4604
+ ],
4605
+ "JavaScript":
4606
+ [
4607
+ ".js",
4608
+ ],
4609
+ "Julia":
4610
+ [
4611
+ ".jl"
4612
+ ],
4613
+ "Kotlin":
4614
+ [
4615
+ ".kt",
4616
+ ],
4617
+ "LLVM":
4618
+ [
4619
+ ".ll"
4620
+ ],
4621
+ "Lua":
4622
+ [
4623
+ ".lua",
4624
+ ],
4625
+ "Makefile":
4626
+ [
4627
+ "Makefile"
4628
+ ],
4629
+ "Markdown":
4630
+ [
4631
+ ".md",
4632
+ ".markdown",
4633
+ ],
4634
+ "OCaml":
4635
+ [
4636
+ ".ml",
4637
+ ],
4638
+ "Objective-C++":
4639
+ [
4640
+ ".mm"
4641
+ ],
4642
+ "PHP":
4643
+ [
4644
+ ".php",
4645
+ ".php3",
4646
+ ".php4",
4647
+ ".php5",
4648
+ ],
4649
+ "Pascal":
4650
+ [
4651
+ ".pas",
4652
+ ],
4653
+ "Perl":
4654
+ [
4655
+ ".pl",
4656
+ ],
4657
+ "PowerShell":
4658
+ [
4659
+ ".ps1",
4660
+ ".psm1"
4661
+ ],
4662
+ "Python":
4663
+ [
4664
+ ".py",
4665
+ ],
4666
+ "R":
4667
+ [
4668
+ ".r",
4669
+ ],
4670
+ "Ruby":
4671
+ [
4672
+ ".rb",
4673
+ ],
4674
+ "Rust":
4675
+ [
4676
+ ".rs",
4677
+ ],
4678
+ "SCSS":
4679
+ [
4680
+ ".scss"
4681
+ ],
4682
+ "SQL":
4683
+ [
4684
+ ".plsql",
4685
+ ".sql",
4686
+ ".ddl",
4687
+
4688
+ ],
4689
+ "Sass":
4690
+ [
4691
+ ".sass"
4692
+ ],
4693
+ "Scala":
4694
+ [
4695
+ ".scala",
4696
+ ".sbt"
4697
+ ],
4698
+ "Shell":
4699
+ [
4700
+ ".sh",
4701
+ ".bash",
4702
+ ".zsh"
4703
+ ],
4704
+ "Smalltalk":
4705
+ [
4706
+ ".st"
4707
+ ],
4708
+ "Smarty":
4709
+ [
4710
+ ".tpl"
4711
+ ],
4712
+ "Solidity":
4713
+ [
4714
+ ".sol"
4715
+ ],
4716
+ "Swift":
4717
+ [
4718
+ ".swift"
4719
+ ],
4720
+ "TOML":
4721
+ [
4722
+ ".toml"
4723
+ ],
4724
+ "TeX":
4725
+ [
4726
+ ".tex",
4727
+ ".sty",
4728
+ ],
4729
+ "Twig":
4730
+ [
4731
+ ".twig"
4732
+ ],
4733
+ "TypeScript":
4734
+ [
4735
+ ".ts",
4736
+ ],
4737
+ "Visual Basic":
4738
+ [
4739
+ ".vb",
4740
+ ],
4741
+ "Vue":
4742
+ [
4743
+ ".vue"
4744
+ ],
4745
+ "YAML":
4746
+ [
4747
+ ".yml",
4748
+ ".yaml",
4749
+ ],
4750
+ }
4751
+
4752
+ Below, we provide the language-wise token-count breakdown of the dataset as counted by the `meta-llama/Meta-Llama-3-8B` tokenizer (the full dataset is around 144 Billion tokens):
4753
+
4754
+ | **Language** | **Token\_Count** |
4755
+ |----------------|------------------|
4756
+ | Json | 18,349,014,478 |
4757
+ | Java | 16,249,736,121 |
4758
+ | C | 14,381,796,257 |
4759
+ | Python | 12,868,526,213 |
4760
+ | Javascript | 11,780,759,219 |
4761
+ | Cpp | 10,912,556,820 |
4762
+ | Php | 8,934,867,699 |
4763
+ | C\-Sharp | 6,784,433,504 |
4764
+ | Markdown | 5,614,520,807 |
4765
+ | Go | 5,561,257,406 |
4766
+ | Html | 4,956,588,993 |
4767
+ | Typescript | 4,437,582,117 |
4768
+ | Yaml | 3,464,120,199 |
4769
+ | Css | 2,472,231,309 |
4770
+ | Rust | 1,932,035,717 |
4771
+ | Ruby | 1,517,724,917 |
4772
+ | Vue | 1,188,684,557 |
4773
+ | Kotlin | 1,136,507,152 |
4774
+ | Swift | 1,051,682,820 |
4775
+ | Scala | 979,598,470 |
4776
+ | Scss | 954,556,739 |
4777
+ | Sql | 910,548,728 |
4778
+ | Shell | 735,010,998 |
4779
+ | Dart | 697,568,091 |
4780
+ | Lua | 650,818,157 |
4781
+ | Haskell | 528,482,496 |
4782
+ | Fortran | 524,261,306 |
4783
+ | Tex | 429,010,699 |
4784
+ | Julia | 322,241,716 |
4785
+ | Pascal | 245,237,366 |
4786
+ | Ocaml | 223,652,453 |
4787
+ | Perl | 215,973,238 |
4788
+ | Solidity | 212,647,529 |
4789
+ | Common\-Lisp | 177,139,498 |
4790
+ | Powershell | 172,556,068 |
4791
+ | Erlang | 171,211,323 |
4792
+ | Arduino | 166,862,916 |
4793
+ | Groovy | 166,678,846 |
4794
+ | Objective\-Cpp | 158,210,523 |
4795
+ | Html\_erb | 145,488,020 |
4796
+ | Llvm | 135,137,323 |
4797
+ | Cuda | 131,054,442 |
4798
+ | Coffeescript | 129,999,078 |
4799
+ | Smalltalk | 124,718,870 |
4800
+ | Visual\-Basic | 121,466,641 |
4801
+ | Elixir | 119,466,430 |
4802
+ | Twig | 106,160,625 |
4803
+ | F\-Sharp | 104,922,127 |
4804
+ | Toml | 101,217,092 |
4805
+ | Emacs\-Lisp | 94,724,490 |
4806
+ | Cmake | 89,707,698 |
4807
+ | Clojure | 79,005,141 |
4808
+ | Batchfile | 62,657,884 |
4809
+ | Smarty | 61,937,213 |
4810
+ | Crystal | 47,220,882 |
4811
+ | Sass | 43,661,923 |
4812
+ | Glsl | 32,127,331 |
4813
+ | Html\_php | 29,231,389 |
4814
+ | Haml | 25,043,854 |
4815
+ | Html\_django | 16,596,017 |
4816
+ | **Total** | 144,038,437,935 |