Datasets:
Tasks:
Text Retrieval
Formats:
parquet
Sub-tasks:
document-retrieval
Size:
100K - 1M
ArXiv:
License:
Update CodeSearchNet data file URLs
#3
by albertvillanova HF Staff - opened
Files changed (3)
- README.md+30
- code_x_glue_tc_nl_code_search_adv.py+1-1
- dataset_infos.jsonDeleted-1
100 unmodified lines101102103104105106136 unmodified lines243244245246247248100 unmodified lines## Dataset Description- **Homepage:** https://github.com/microsoft/CodeXGLUE/tree/main/Text-Code/NL-code-search-Adv### Dataset Summary136 unmodified lines### Citation Information```@article{husain2019codesearchnet,title={Codesearchnet challenge: Evaluating the state of semantic code search},author={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},100 unmodified lines101102103104105106107136 unmodified lines244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278100 unmodified lines## Dataset Description- **Homepage:** https://github.com/microsoft/CodeXGLUE/tree/main/Text-Code/NL-code-search-Adv- **Paper:** https://arxiv.org/abs/2102.04664### Dataset Summary136 unmodified lines### Citation Information```@article{DBLP:journals/corr/abs-2102-04664,author = {Shuai Lu andDaya Guo andShuo Ren andJunjie Huang andAlexey Svyatkovskiy andAmbrosio Blanco andColin B. Clement andDawn Drain andDaxin Jiang andDuyu Tang andGe Li andLidong Zhou andLinjun Shou andLong Zhou andMichele Tufano andMing Gong andMing Zhou andNan Duan andNeel Sundaresan andShao Kun Deng andShengyu Fu andShujie Liu},title = {CodeXGLUE: {A} Machine Learning Benchmark Dataset for Code Understandingand Generation},journal = {CoRR},volume = {abs/2102.04664},year = {2021}}@article{husain2019codesearchnet,title={Codesearchnet challenge: Evaluating the state of semantic code search},author={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},
51 unmodified lines5253545556575851 unmodified lines_SUPERVISED_KEYS = ["docstring", "docstring_tokens"]def generate_urls(self, split_name, language):yield "language", f"https://s3.amazonaws.com/code-search-net/CodeSearchNet/v2/{language}.zip"yield "dataset", "dataset.zip"def get_data_files(self, split_name, file_paths, language):51 unmodified lines5253545556575851 unmodified lines_SUPERVISED_KEYS = ["docstring", "docstring_tokens"]def generate_urls(self, split_name, language):yield "language", f"https://huggingface.co/datasets/code_search_net/resolve/main/data/{language}.zip"yield "dataset", "dataset.zip"def get_data_files(self, split_name, file_paths, language):
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}}README.md+30
code_x_glue_tc_nl_code_search_adv.py+1-1
dataset_infos.jsonDeleted-1