Datasets:

Languages:
code
Multilinguality:
multilingual
Language Creators:
machine-generated
Annotations Creators:
no-annotation
Source Datasets:
original
ArXiv:
Tags:
License:

Update dataset URL from S3 to Zenodo

#6
Files changed (1) hide show
  1. code_search_net.py +4 -3
code_search_net.py CHANGED
@@ -49,13 +49,14 @@ _HOMEPAGE = "https://github.com/github/CodeSearchNet"
49
 
50
  _LICENSE = "Various"
51
 
52
- _S3_BUCKET_URL = "https://s3.amazonaws.com/code-search-net/CodeSearchNet/v2/"
 
 
53
  _AVAILABLE_LANGUAGES = ["python", "java", "javascript", "go", "ruby", "php"]
54
- _URLs = {language: _S3_BUCKET_URL + f"{language}.zip" for language in _AVAILABLE_LANGUAGES}
55
  # URLs for "all" are just the concatenation of URLs for all languages
56
  _URLs["all"] = _URLs.copy()
57
 
58
-
59
  class CodeSearchNet(datasets.GeneratorBasedBuilder):
60
  """ "CodeSearchNet corpus: proxy dataset for semantic code search."""
61
 
 
49
 
50
  _LICENSE = "Various"
51
 
52
+ # URL to dataset updated as per commit:
53
+ # https://github.com/microsoft/CodeXGLUE/commit/b8590790716d3251a6950e860cd43fd82f5a35a6
54
+ _ZENODO_URL = "https://zenodo.org/record/7857872/files/"
55
  _AVAILABLE_LANGUAGES = ["python", "java", "javascript", "go", "ruby", "php"]
56
+ _URLs = {language: _ZENODO_URL + f"{language}.zip" for language in _AVAILABLE_LANGUAGES}
57
  # URLs for "all" are just the concatenation of URLs for all languages
58
  _URLs["all"] = _URLs.copy()
59
 
 
60
  class CodeSearchNet(datasets.GeneratorBasedBuilder):
61
  """ "CodeSearchNet corpus: proxy dataset for semantic code search."""
62