albertvillanova HF staff commited on
Commit
fc262e6
1 Parent(s): fab4a96

Update CodeSearchNet data file URLs (#3)

Browse files

- Update CodeSearchNet data file URLs (74f0a1fef8a09ca66950abb51566c023efa636b9)
- Delete legacy dataset_infos.json (7bfee947a4c58df5eee863e752c1c7859efcafc5)
- Update citation information (d93a97be64d8c31c0098508f3a82753d701a90c5)
- Add paper (d003096c8ce2dd99d04584da95a1faacd3967389)

README.md CHANGED
@@ -101,6 +101,7 @@ dataset_info:
101
  ## Dataset Description
102
 
103
  - **Homepage:** https://github.com/microsoft/CodeXGLUE/tree/main/Text-Code/NL-code-search-Adv
 
104
 
105
  ### Dataset Summary
106
 
@@ -243,6 +244,35 @@ Computational Use of Data Agreement (C-UDA) License.
243
  ### Citation Information
244
 
245
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
246
  @article{husain2019codesearchnet,
247
  title={Codesearchnet challenge: Evaluating the state of semantic code search},
248
  author={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},
 
101
  ## Dataset Description
102
 
103
  - **Homepage:** https://github.com/microsoft/CodeXGLUE/tree/main/Text-Code/NL-code-search-Adv
104
+ - **Paper:** https://arxiv.org/abs/2102.04664
105
 
106
  ### Dataset Summary
107
 
 
244
  ### Citation Information
245
 
246
  ```
247
+ @article{DBLP:journals/corr/abs-2102-04664,
248
+ author = {Shuai Lu and
249
+ Daya Guo and
250
+ Shuo Ren and
251
+ Junjie Huang and
252
+ Alexey Svyatkovskiy and
253
+ Ambrosio Blanco and
254
+ Colin B. Clement and
255
+ Dawn Drain and
256
+ Daxin Jiang and
257
+ Duyu Tang and
258
+ Ge Li and
259
+ Lidong Zhou and
260
+ Linjun Shou and
261
+ Long Zhou and
262
+ Michele Tufano and
263
+ Ming Gong and
264
+ Ming Zhou and
265
+ Nan Duan and
266
+ Neel Sundaresan and
267
+ Shao Kun Deng and
268
+ Shengyu Fu and
269
+ Shujie Liu},
270
+ title = {CodeXGLUE: {A} Machine Learning Benchmark Dataset for Code Understanding
271
+ and Generation},
272
+ journal = {CoRR},
273
+ volume = {abs/2102.04664},
274
+ year = {2021}
275
+ }
276
  @article{husain2019codesearchnet,
277
  title={Codesearchnet challenge: Evaluating the state of semantic code search},
278
  author={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},
code_x_glue_tc_nl_code_search_adv.py CHANGED
@@ -52,7 +52,7 @@ class CodeXGlueCtCodeToTextBaseImpl(TrainValidTestChild):
52
  _SUPERVISED_KEYS = ["docstring", "docstring_tokens"]
53
 
54
  def generate_urls(self, split_name, language):
55
- yield "language", f"https://s3.amazonaws.com/code-search-net/CodeSearchNet/v2/{language}.zip"
56
  yield "dataset", "dataset.zip"
57
 
58
  def get_data_files(self, split_name, file_paths, language):
 
52
  _SUPERVISED_KEYS = ["docstring", "docstring_tokens"]
53
 
54
  def generate_urls(self, split_name, language):
55
+ yield "language", f"https://huggingface.co/datasets/code_search_net/resolve/main/data/{language}.zip"
56
  yield "dataset", "dataset.zip"
57
 
58
  def get_data_files(self, split_name, file_paths, language):
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"default": {"description": "CodeXGLUE NL-code-search-Adv dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Text-Code/NL-code-search-Adv\n\nThe dataset we use comes from CodeSearchNet and we filter the dataset as the following:\n- Remove examples that codes cannot be parsed into an abstract syntax tree.\n- Remove examples that #tokens of documents is < 3 or >256\n- Remove examples that documents contain special tokens (e.g. <img ...> or https:...)\n- Remove examples that documents are not English.\n", "citation": "@article{husain2019codesearchnet,\ntitle={Codesearchnet challenge: Evaluating the state of semantic code search},\nauthor={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},\njournal={arXiv preprint arXiv:1909.09436},\nyear={2019}\n}", "homepage": "https://github.com/madlag/CodeXGLUE/tree/main/Text-Code/NL-code-search-Adv", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "repo": {"dtype": "string", "id": null, "_type": "Value"}, "path": {"dtype": "string", "id": null, "_type": "Value"}, "func_name": {"dtype": "string", "id": null, "_type": "Value"}, "original_string": {"dtype": "string", "id": null, "_type": "Value"}, "language": {"dtype": "string", "id": null, "_type": "Value"}, "code": {"dtype": "string", "id": null, "_type": "Value"}, "code_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "docstring": {"dtype": "string", "id": null, "_type": "Value"}, "docstring_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "sha": {"dtype": "string", "id": null, "_type": "Value"}, "url": {"dtype": "string", "id": null, "_type": "Value"}, "docstring_summary": {"dtype": "string", "id": null, "_type": "Value"}, "parameters": {"dtype": "string", "id": null, "_type": "Value"}, "return_statement": {"dtype": "string", "id": null, "_type": "Value"}, "argument_list": {"dtype": "string", "id": null, "_type": "Value"}, "identifier": {"dtype": "string", "id": null, "_type": "Value"}, "nwo": {"dtype": "string", "id": null, "_type": "Value"}, "score": {"dtype": "float32", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": {"input": "docstring", "output": "docstring_tokens"}, "task_templates": null, "builder_name": "code_x_glue_tc_nl_code_search_adv", "config_name": "default", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 820716084, "num_examples": 251820, "dataset_name": "code_x_glue_tc_nl_code_search_adv"}, "validation": {"name": "validation", "num_bytes": 23468834, "num_examples": 9604, "dataset_name": "code_x_glue_tc_nl_code_search_adv"}, "test": {"name": "test", "num_bytes": 47433760, "num_examples": 19210, "dataset_name": "code_x_glue_tc_nl_code_search_adv"}}, "download_checksums": {"https://s3.amazonaws.com/code-search-net/CodeSearchNet/v2/python.zip": {"num_bytes": 940909997, "checksum": "7223c6460bebfa85697b586da91e47bc5d64790a4d60bba5917106458ab6b40e"}, "https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Text-Code/NL-code-search-Adv/dataset.zip": {"num_bytes": 25115627, "checksum": "b4d5157699ca3bda7a33674f17d7b24294b4c8f36f650cea01d3d0dbcefdc656"}}, "download_size": 966025624, "post_processing_size": null, "dataset_size": 891618678, "size_in_bytes": 1857644302}}