loubnabnl HF staff commited on
Commit
174ff16
1 Parent(s): ef10eb5

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +52 -0
README.md ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators: []
3
+ language_creators:
4
+ - crowdsourced
5
+ language: ["code"]
6
+ multilinguality:
7
+ - multilingual
8
+ size_categories:
9
+ - unknown
10
+ source_datasets: []
11
+ task_categories:
12
+ - text-generation
13
+ task_ids:
14
+ - language-modeling
15
+ ---
16
+
17
+ ## Dataset Description
18
+ A subset of [the-stack](https://huggingface.co/datasets/bigcode/the-stack) dataset, from 87 programming languages, and 295 extensions.
19
+ Each language is in a separate folder under `data/` and contains folders of its extensions. We select samples from 20,000 random files of the original dataset, and keep a
20
+ maximum of 1,000 files per extension.
21
+
22
+ Check this [space](https://huggingface.co/spaces/bigcode/the-stack-inspection) for inspecting this dataset.
23
+
24
+
25
+ ## Languages
26
+
27
+ The dataset contains 87 programming languages:
28
+ ````
29
+ 'ada', 'agda', 'alloy', 'antlr', 'applescript', 'assembly', 'augeas', 'awk', 'batchfile', 'bison', 'bluespec', 'c',
30
+ 'c++', 'c-sharp', 'clojure', 'cmake', 'coffeescript', 'common-lisp', 'css', 'cuda', 'dart', 'dockerfile', 'elixir',
31
+ 'elm', 'emacs-lisp','erlang', 'f-sharp', 'fortran', 'glsl', 'go', 'groovy', 'haskell','html', 'idris', 'isabelle', 'java',
32
+ 'java-server-pages', 'javascript', 'julia', 'kotlin', 'lean', 'literate-agda', 'literate-coffeescript', 'literate-haskell',
33
+ 'lua', 'makefile', 'maple', 'markdown', 'mathematica', 'matlab', 'ocaml', 'pascal', 'perl', 'php', 'powershell', 'prolog',
34
+ 'protocol-buffer', 'python', 'r', 'racket', 'restructuredtext', 'rmarkdown', 'ruby', 'rust', 'sas', 'scala', 'scheme',
35
+ 'shell', 'smalltalk', 'solidity', 'sparql', 'sql', 'stan', 'standard-ml', 'stata', 'systemverilog', 'tcl', 'tcsh', 'tex',
36
+ 'thrift', 'typescript', 'verilog', 'vhdl', 'visual-basic', 'xslt', 'yacc', 'zig'
37
+ `````
38
+ ## Dataset Structure
39
+ You can specify which language and extension you want to load:
40
+ ```python
41
+ # to load py extension of python
42
+ from datasets import load_dataset
43
+
44
+ load_dataset("bigcode/the-stack-inspection-data", data_dir="data/python/py")
45
+
46
+ DatasetDict({
47
+ train: Dataset({
48
+ features: ['content', 'lang', 'size', 'ext', 'max_stars_count', 'avg_line_length', 'max_line_length', 'alphanum_fraction'],
49
+ num_rows: 1000
50
+ })
51
+ })
52
+ ```