Update Scotch.py
Browse files
Scotch.py
CHANGED
|
@@ -51,7 +51,8 @@ _LICENSE = "The MIT License"
|
|
| 51 |
# The HuggingFace dataset library don't host the datasets but only point to the original files
|
| 52 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
| 53 |
languages=['python','javascript','java','go']
|
| 54 |
-
|
|
|
|
| 55 |
_URLs['all']=_URLs.copy()
|
| 56 |
|
| 57 |
|
|
|
|
| 51 |
# The HuggingFace dataset library don't host the datasets but only point to the original files
|
| 52 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
| 53 |
languages=['python','javascript','java','go']
|
| 54 |
+
language_map={'python':'py','javascript':'js','go':'go','java':'java'}
|
| 55 |
+
_URLs = {lang:f'https://scotch.s3.amazonaws.com/{language_map[lang]}.tar.gz' for lang in languages}
|
| 56 |
_URLs['all']=_URLs.copy()
|
| 57 |
|
| 58 |
|