Datasets:

Languages:
English
ArXiv:
License:
andstor commited on
Commit
c74fc6f
1 Parent(s): 90524fa

Add GitHub subset

Browse files

Add the GitHub subset of "the pile" to the dataset. Uses the "pile_preliminary_components".

Files changed (1) hide show
  1. the_pile.py +9 -1
the_pile.py CHANGED
@@ -48,6 +48,7 @@ _LICENSES = {
48
  "pubmed_central": "Unknown",
49
  "ubuntu_irc": "Unknown",
50
  "uspto": "Unknown",
 
51
  }
52
 
53
  _HOST_URL = "https://the-eye.eu"
@@ -66,6 +67,7 @@ _DATA_URLS = {
66
  "pubmed_central": f"{_HOST_URL}/public/AI/pile_preliminary_components/PMC_extracts.tar.gz",
67
  "ubuntu_irc": f"{_HOST_URL}/public/AI/pile_preliminary_components/ubuntu_irc_until_2020_9_1.jsonl.zst",
68
  "uspto": f"{_HOST_URL}/public/AI/pile_preliminary_components/pile_uspto.tar",
 
69
  }
70
 
71
  _FEATURES = {
@@ -129,6 +131,12 @@ _FEATURES = {
129
  "meta": datasets.Value("string"),
130
  }
131
  ),
 
 
 
 
 
 
132
  }
133
 
134
 
@@ -243,7 +251,7 @@ class ThePile(datasets.GeneratorBasedBuilder):
243
  "meta": meta,
244
  }
245
  key += 1
246
- elif subset == "uspto":
247
  import zstandard as zstd
248
 
249
  for path, file in files[subset]:
 
48
  "pubmed_central": "Unknown",
49
  "ubuntu_irc": "Unknown",
50
  "uspto": "Unknown",
51
+ "github": "Unknown",
52
  }
53
 
54
  _HOST_URL = "https://the-eye.eu"
 
67
  "pubmed_central": f"{_HOST_URL}/public/AI/pile_preliminary_components/PMC_extracts.tar.gz",
68
  "ubuntu_irc": f"{_HOST_URL}/public/AI/pile_preliminary_components/ubuntu_irc_until_2020_9_1.jsonl.zst",
69
  "uspto": f"{_HOST_URL}/public/AI/pile_preliminary_components/pile_uspto.tar",
70
+ "github": f"{_HOST_URL}/public/AI/pile_preliminary_components/github.tar",
71
  }
72
 
73
  _FEATURES = {
 
131
  "meta": datasets.Value("string"),
132
  }
133
  ),
134
+ "github": datasets.Features(
135
+ {
136
+ "text": datasets.Value("string"),
137
+ "meta": datasets.Value("string"),
138
+ }
139
+ ),
140
  }
141
 
142
 
 
251
  "meta": meta,
252
  }
253
  key += 1
254
+ elif subset in {"uspto", "github"}:
255
  import zstandard as zstd
256
 
257
  for path, file in files[subset]: