Commit ·
717eb0c
0
Parent(s):
Update files from the datasets library (from 1.2.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.2.0
Files changed (11)
- .gitattributesAdded+27
- README.mdAdded+195
- code_search_net.pyAdded+219
- dataset_infos.jsonAdded+1
- dummy/all/1.0.0/dummy_data.zipAdded+3
- dummy/go/1.0.0/dummy_data.zipAdded+3
- dummy/java/1.0.0/dummy_data.zipAdded+3
- dummy/javascript/1.0.0/dummy_data.zipAdded+3
- dummy/php/1.0.0/dummy_data.zipAdded+3
- dummy/python/1.0.0/dummy_data.zipAdded+3
- dummy/ruby/1.0.0/dummy_data.zipAdded+3
123456789101112131415161718192021222324252627*.7z filter=lfs diff=lfs merge=lfs -text*.arrow filter=lfs diff=lfs merge=lfs -text*.bin filter=lfs diff=lfs merge=lfs -text*.bin.* filter=lfs diff=lfs merge=lfs -text*.bz2 filter=lfs diff=lfs merge=lfs -text*.ftz filter=lfs diff=lfs merge=lfs -text*.gz filter=lfs diff=lfs merge=lfs -text*.h5 filter=lfs diff=lfs merge=lfs -text*.joblib filter=lfs diff=lfs merge=lfs -text*.lfs.* filter=lfs diff=lfs merge=lfs -text*.model filter=lfs diff=lfs merge=lfs -text*.msgpack filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -text*.ot filter=lfs diff=lfs merge=lfs -text*.parquet filter=lfs diff=lfs merge=lfs -text*.pb filter=lfs diff=lfs merge=lfs -text*.pt filter=lfs diff=lfs merge=lfs -text*.pth filter=lfs diff=lfs merge=lfs -text*.rar filter=lfs diff=lfs merge=lfs -textsaved_model/**/* filter=lfs diff=lfs merge=lfs -text*.tar.* filter=lfs diff=lfs merge=lfs -text*.tflite filter=lfs diff=lfs merge=lfs -text*.tgz filter=lfs diff=lfs merge=lfs -text*.xz filter=lfs diff=lfs merge=lfs -text*.zip filter=lfs diff=lfs merge=lfs -text*.zstandard filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195---annotations_creators:- no-annotationlanguage_creators:- machine-generatedlanguages:- codelicenses:- other-several-licensesmultilinguality:- multilingualsize_categories:- n>1Msource_datasets:- originaltask_categories:- sequence-modelingtask_ids:- language-modeling---
# Dataset Card for CodeSearchNet corpus
## Table of Contents- [Dataset Description](#dataset-description) - [Dataset Summary](#dataset-summary) - [Supported Tasks](#supported-tasks-and-leaderboards) - [Languages](#languages)- [Dataset Structure](#dataset-structure) - [Data Instances](#data-instances) - [Data Fields](#data-instances) - [Data Splits](#data-instances)- [Dataset Creation](#dataset-creation) - [Curation Rationale](#curation-rationale) - [Source Data](#source-data) - [Annotations](#annotations) - [Personal and Sensitive Information](#personal-and-sensitive-information)- [Considerations for Using the Data](#considerations-for-using-the-data) - [Social Impact of Dataset](#social-impact-of-dataset) - [Discussion of Biases](#discussion-of-biases) - [Other Known Limitations](#other-known-limitations)- [Additional Information](#additional-information) - [Dataset Curators](#dataset-curators) - [Licensing Information](#licensing-information) - [Citation Information](#citation-information)
## Dataset Description- **Homepage:** https://wandb.ai/github/CodeSearchNet/benchmark- **Repository:** https://github.com/github/CodeSearchNet- **Paper:** https://arxiv.org/abs/1909.09436- **Leaderboard:** https://wandb.ai/github/CodeSearchNet/benchmark/leaderboard
### Dataset Summary
CodeSearchNet corpus is a dataset of 2 milllion (comment, code) pairs from opensource libraries hosted on GitHub. It contains code and documentation for several programming languages.
CodeSearchNet corpus was gathered to support the [CodeSearchNet challenge](https://wandb.ai/github/CodeSearchNet/benchmark), to explore the problem of code retrieval using natural language.
### Supported Tasks and Leaderboards
- `language-modeling`: The dataset can be used to train a model for modelling programming languages, which consists in building language models for programming languages.
### Languages
- Go **programming** language- Java **programming** language- Javascript **programming** language- PHP **programming** language- Python **programming** language- Ruby **programming** language
## Dataset Structure
### Data Instances
A data point consists of a function code along with its documentation. Each data point also contains meta data on the function, such as the repository it was extracted from.```{ 'id': '0', 'repository_name': 'organisation/repository', 'func_path_in_repository': 'src/path/to/file.py', 'func_name': 'func', 'whole_func_string': 'def func(args):\n"""Docstring"""\n [...]', 'language': 'python', 'func_code_string': '[...]', 'func_code_tokens': ['def', 'func', '(', 'args', ')', ...], 'func_documentation_string': 'Docstring', 'func_documentation_string_tokens': ['Docstring'], 'split_name': 'train', 'func_code_url': 'https://github.com/<org>/<repo>/blob/<hash>/src/path/to/file.py#L111-L150'}```### Data Fields
- `id`: Arbitrary number- `repository_name`: name of the GitHub repository- `func_path_in_repository`: tl;dr: path to the file which holds the function in the repository- `func_name`: name of the function in the file- `whole_func_string`: Code + documentation of the function- `language`: Programming language in whoch the function is written- `func_code_string`: Function code- `func_code_tokens`: Tokens yielded by Treesitter- `func_documentation_string`: Function documentation- `func_documentation_string_tokens`: Tokens yielded by Treesitter- `split_name`: Name of the split to which the example belongs (one of train, test or valid)- `func_code_url`: URL to the function code on Github
### Data Splits
Three splits are available:- train- test- valid
## Dataset Creation
### Curation Rationale
[More Information Needed]
### Source Data
#### Initial Data Collection and Normalization
All information can be retrieved in the [original technical review](https://arxiv.org/pdf/1909.09436.pdf)
**Corpus collection**:
Corpus has been collected from publicly available open-source non-fork GitHub repositories, using libraries.io to identify all projects which are used by at least one other project, and sort them by “popularity” as indicated by the number of stars and forks.
Then, any projects that do not have a license or whose license does not explicitly permit the re-distribution of parts of the project were removed. Treesitter - GitHub's universal parser - has been used to then tokenize all Go, Java, JavaScript, Python, PHP and Ruby functions (or methods) using and, where available, their respective documentation text using a heuristic regular expression.
**Corpus filtering**:
Functions without documentation are removed from the corpus. This yields a set of pairs ($c_i$, $d_i$) where ci is some function documented by di. Pairs ($c_i$, $d_i$) are passed through the folllowing preprocessing tasks:
- Documentation $d_i$ is truncated to the first full paragraph to remove in-depth discussion of function arguments and return values- Pairs in which $d_i$ is shorter than three tokens are removed- Functions $c_i$ whose implementation is shorter than three lines are removed- Functions whose name contains the substring “test” are removed- Constructors and standard extenion methods (eg `__str__` in Python or `toString` in Java) are removed- Duplicates and near duplicates functions are removed, in order to keep only one version of the function
#### Who are the source language producers?
OpenSource contributors produced the code and documentations.
The dataset was gatherered and preprocessed automatically.
### Annotations
#### Annotation process
[More Information Needed]
#### Who are the annotators?
[More Information Needed]
### Personal and Sensitive Information
[More Information Needed]
## Considerations for Using the Data
### Social Impact of Dataset
[More Information Needed]
### Discussion of Biases
[More Information Needed]
### Other Known Limitations
[More Information Needed]
## Additional Information
### Dataset Curators
[More Information Needed]
### Licensing Information
Each example in the dataset has is extracted from a GitHub repository, and each repository has its own license. Example-wise license information is not (yet) included in this dataset: you will need to find out yourself which license the code is using.
### 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}, journal={arXiv preprint arXiv:1909.09436}, year={2019}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219# coding=utf-8# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.
# Lint as: python3"""CodeSearchNet corpus: proxy dataset for semantic code search"""
# TODO: add licensing info in the examples# TODO: log richer informations (especially while extracting the jsonl.gz files)# TODO: enable custom configs; such as: "java+python"# TODO: enable fetching examples with a given license, eg: "java_MIT"
from __future__ import absolute_import, division, print_function
import jsonimport os
import datasets
_CITATION = """\@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}, journal={arXiv preprint arXiv:1909.09436}, year={2019}}"""
_DESCRIPTION = """\CodeSearchNet corpus contains about 6 million functions from open-source code \spanning six programming languages (Go, Java, JavaScript, PHP, Python, and Ruby). \The CodeSearchNet Corpus also contains automatically generated query-like \natural language for 2 million functions, obtained from mechanically scraping \and preprocessing associated function documentation."""
_HOMEPAGE = "https://github.com/github/CodeSearchNet"
_LICENSE = "Various"
_S3_BUCKET_URL = "https://s3.amazonaws.com/code-search-net/CodeSearchNet/v2/"_AVAILABLE_LANGUAGES = ["python", "java", "javascript", "go", "ruby", "php"]_URLs = {language: _S3_BUCKET_URL + f"{language}.zip" for language in _AVAILABLE_LANGUAGES}# URLs for "all" are just the concatenation of URLs for all languages_URLs["all"] = _URLs.copy()
class CodeSearchNet(datasets.GeneratorBasedBuilder): """"CodeSearchNet corpus: proxy dataset for semantic code search."""
VERSION = datasets.Version("1.0.0", "Add CodeSearchNet corpus dataset") BUILDER_CONFIGS = [ datasets.BuilderConfig( name="all", version=VERSION, description="All available languages: Java, Go, Javascript, Python, PHP, Ruby", ), datasets.BuilderConfig( name="java", version=VERSION, description="Java language", ), datasets.BuilderConfig( name="go", version=VERSION, description="Go language", ), datasets.BuilderConfig( name="python", version=VERSION, description="Pyhton language", ), datasets.BuilderConfig( name="javascript", version=VERSION, description="Javascript language", ), datasets.BuilderConfig( name="ruby", version=VERSION, description="Ruby language", ), datasets.BuilderConfig( name="php", version=VERSION, description="PHP language", ), ]
DEFAULT_CONFIG_NAME = "all"
def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, features=datasets.Features( { "repository_name": datasets.Value("string"), "func_path_in_repository": datasets.Value("string"), "func_name": datasets.Value("string"), "whole_func_string": datasets.Value("string"), "language": datasets.Value("string"), "func_code_string": datasets.Value("string"), "func_code_tokens": datasets.Sequence(datasets.Value("string")), "func_documentation_string": datasets.Value("string"), "func_documentation_tokens": datasets.Sequence(datasets.Value("string")), "split_name": datasets.Value("string"), "func_code_url": datasets.Value("string"), # TODO - add licensing info in the examples } ), # No default supervised keys supervised_keys=None, homepage=_HOMEPAGE, license=_LICENSE, citation=_CITATION, )
def _split_generators(self, dl_manager): """Returns SplitGenerators.
Note: The original data is stored in S3, and follows this unusual directory structure: ``` . ├── <language_name> # e.g. python │ └── final │ └── jsonl │ ├── test │ │ └── <language_name>_test_0.jsonl.gz │ ├── train │ │ ├── <language_name>_train_0.jsonl.gz │ │ ├── <language_name>_train_1.jsonl.gz │ │ ├── ... │ │ └── <language_name>_train_n.jsonl.gz │ └── valid │ └── <language_name>_valid_0.jsonl.gz ├── <language_name>_dedupe_definitions_v2.pkl └── <language_name>_licenses.pkl ``` """ data_urls = _URLs[self.config.name] if isinstance(data_urls, str): data_urls = {self.config.name: data_urls} # Download & extract the language archives data_dirs = [ os.path.join(directory, lang, "final", "jsonl") for lang, directory in dl_manager.download_and_extract(data_urls).items() ]
split2dirs = { split_name: [os.path.join(directory, split_name) for directory in data_dirs] for split_name in ["train", "test", "valid"] }
split2paths = dl_manager.extract( { split_name: [ os.path.join(directory, entry_name) for directory in split_dirs for entry_name in os.listdir(directory) ] for split_name, split_dirs in split2dirs.items() } )
return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "filepaths": split2paths["train"], }, ), datasets.SplitGenerator( name=datasets.Split.TEST, gen_kwargs={ "filepaths": split2paths["test"], }, ), datasets.SplitGenerator( name=datasets.Split.VALIDATION, gen_kwargs={ "filepaths": split2paths["valid"], }, ), ]
def _generate_examples(self, filepaths): """Yields the examples by iterating through the available jsonl files.""" for file_id_, filepath in enumerate(filepaths): with open(filepath, encoding="utf-8") as f: for row_id_, row in enumerate(f): # Key of the example = dir_id_ + entry_id + row_id, # to ensure all examples have a distinct key id_ = file_id_ + row_id_ data = json.loads(row) yield id_, { "repository_name": data["repo"], "func_path_in_repository": data["path"], "func_name": data["func_name"], "whole_func_string": data["original_string"], "language": data["language"], "func_code_string": data["code"], "func_code_tokens": data["code_tokens"], "func_documentation_string": data["docstring"], "func_documentation_tokens": data["docstring_tokens"], "split_name": data["partition"], "func_code_url": data["url"], }1{"all": {"description": "CodeSearchNet corpus contains about 6 million functions from open-source code spanning six programming languages (Go, Java, JavaScript, PHP, Python, and Ruby). The CodeSearchNet Corpus also contains automatically generated query-like natural language for 2 million functions, obtained from mechanically scraping and preprocessing associated function documentation.\n", "citation": "@article{husain2019codesearchnet,\n title={{CodeSearchNet} challenge: Evaluating the state of semantic code search},\n author={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},\n journal={arXiv preprint arXiv:1909.09436},\n year={2019}\n}\n", "homepage": "https://github.com/github/CodeSearchNet", "license": "Various", "features": {"repository_name": {"dtype": "string", "id": null, "_type": "Value"}, "func_path_in_repository": {"dtype": "string", "id": null, "_type": "Value"}, "func_name": {"dtype": "string", "id": null, "_type": "Value"}, "whole_func_string": {"dtype": "string", "id": null, "_type": "Value"}, "language": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_string": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "func_documentation_string": {"dtype": "string", "id": null, "_type": "Value"}, "func_documentation_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "split_name": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_url": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "code_search_net", "config_name": "all", "version": {"version_str": "1.0.0", "description": "Add CodeSearchNet corpus dataset", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 5850604083, "num_examples": 1880853, "dataset_name": "code_search_net"}, "test": {"name": "test", "num_bytes": 308626333, "num_examples": 100529, "dataset_name": "code_search_net"}, "validation": {"name": "validation", "num_bytes": 274564382, "num_examples": 89154, "dataset_name": "code_search_net"}}, "download_checksums": {"https://s3.amazonaws.com/code-search-net/CodeSearchNet/v2/python.zip": {"num_bytes": 940909997, "checksum": "7223c6460bebfa85697b586da91e47bc5d64790a4d60bba5917106458ab6b40e"}, "https://s3.amazonaws.com/code-search-net/CodeSearchNet/v2/java.zip": {"num_bytes": 1060569153, "checksum": "05f9204b1808413fab30f0e69229e298f6de4ad468279d53a2aa5797e3a78c17"}, "https://s3.amazonaws.com/code-search-net/CodeSearchNet/v2/javascript.zip": {"num_bytes": 1664713350, "checksum": "fdc743f5af27f90c77584a2d29e2b7f8cecdd00c37b433c385b888ee062936dd"}, "https://s3.amazonaws.com/code-search-net/CodeSearchNet/v2/go.zip": {"num_bytes": 487525935, "checksum": "15d23f01dc2796447e1736263e6830079289d5ef41f09988011afdcf8da6b6e5"}, "https://s3.amazonaws.com/code-search-net/CodeSearchNet/v2/ruby.zip": {"num_bytes": 111758028, "checksum": "67aee5812d0f994df745c771c7791483f2b060561495747d424e307af4b342e6"}, "https://s3.amazonaws.com/code-search-net/CodeSearchNet/v2/php.zip": {"num_bytes": 851894048, "checksum": "c3bbf0d1b10010f88b058faea876f1f5471758399e30d58c11f78ff53660ce00"}}, "download_size": 5117370511, "post_processing_size": null, "dataset_size": 6433794798, "size_in_bytes": 11551165309}, "java": {"description": "CodeSearchNet corpus contains about 6 million functions from open-source code spanning six programming languages (Go, Java, JavaScript, PHP, Python, and Ruby). The CodeSearchNet Corpus also contains automatically generated query-like natural language for 2 million functions, obtained from mechanically scraping and preprocessing associated function documentation.\n", "citation": "@article{husain2019codesearchnet,\n title={{CodeSearchNet} challenge: Evaluating the state of semantic code search},\n author={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},\n journal={arXiv preprint arXiv:1909.09436},\n year={2019}\n}\n", "homepage": "https://github.com/github/CodeSearchNet", "license": "Various", "features": {"repository_name": {"dtype": "string", "id": null, "_type": "Value"}, "func_path_in_repository": {"dtype": "string", "id": null, "_type": "Value"}, "func_name": {"dtype": "string", "id": null, "_type": "Value"}, "whole_func_string": {"dtype": "string", "id": null, "_type": "Value"}, "language": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_string": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "func_documentation_string": {"dtype": "string", "id": null, "_type": "Value"}, "func_documentation_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "split_name": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_url": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "code_search_net", "config_name": "java", "version": {"version_str": "1.0.0", "description": "Add CodeSearchNet corpus dataset", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1429272535, "num_examples": 454451, "dataset_name": "code_search_net"}, "test": {"name": "test", "num_bytes": 82377246, "num_examples": 26909, "dataset_name": "code_search_net"}, "validation": {"name": "validation", "num_bytes": 42358315, "num_examples": 15328, "dataset_name": "code_search_net"}}, "download_checksums": {"https://s3.amazonaws.com/code-search-net/CodeSearchNet/v2/java.zip": {"num_bytes": 1060569153, "checksum": "05f9204b1808413fab30f0e69229e298f6de4ad468279d53a2aa5797e3a78c17"}}, "download_size": 1060569153, "post_processing_size": null, "dataset_size": 1554008096, "size_in_bytes": 2614577249}, "go": {"description": "CodeSearchNet corpus contains about 6 million functions from open-source code spanning six programming languages (Go, Java, JavaScript, PHP, Python, and Ruby). The CodeSearchNet Corpus also contains automatically generated query-like natural language for 2 million functions, obtained from mechanically scraping and preprocessing associated function documentation.\n", "citation": "@article{husain2019codesearchnet,\n title={{CodeSearchNet} challenge: Evaluating the state of semantic code search},\n author={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},\n journal={arXiv preprint arXiv:1909.09436},\n year={2019}\n}\n", "homepage": "https://github.com/github/CodeSearchNet", "license": "Various", "features": {"repository_name": {"dtype": "string", "id": null, "_type": "Value"}, "func_path_in_repository": {"dtype": "string", "id": null, "_type": "Value"}, "func_name": {"dtype": "string", "id": null, "_type": "Value"}, "whole_func_string": {"dtype": "string", "id": null, "_type": "Value"}, "language": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_string": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "func_documentation_string": {"dtype": "string", "id": null, "_type": "Value"}, "func_documentation_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "split_name": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_url": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "code_search_net", "config_name": "go", "version": {"version_str": "1.0.0", "description": "Add CodeSearchNet corpus dataset", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 738153234, "num_examples": 317832, "dataset_name": "code_search_net"}, "test": {"name": "test", "num_bytes": 32286998, "num_examples": 14291, "dataset_name": "code_search_net"}, "validation": {"name": "validation", "num_bytes": 26888527, "num_examples": 14242, "dataset_name": "code_search_net"}}, "download_checksums": {"https://s3.amazonaws.com/code-search-net/CodeSearchNet/v2/go.zip": {"num_bytes": 487525935, "checksum": "15d23f01dc2796447e1736263e6830079289d5ef41f09988011afdcf8da6b6e5"}}, "download_size": 487525935, "post_processing_size": null, "dataset_size": 797328759, "size_in_bytes": 1284854694}, "python": {"description": "CodeSearchNet corpus contains about 6 million functions from open-source code spanning six programming languages (Go, Java, JavaScript, PHP, Python, and Ruby). The CodeSearchNet Corpus also contains automatically generated query-like natural language for 2 million functions, obtained from mechanically scraping and preprocessing associated function documentation.\n", "citation": "@article{husain2019codesearchnet,\n title={{CodeSearchNet} challenge: Evaluating the state of semantic code search},\n author={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},\n journal={arXiv preprint arXiv:1909.09436},\n year={2019}\n}\n", "homepage": "https://github.com/github/CodeSearchNet", "license": "Various", "features": {"repository_name": {"dtype": "string", "id": null, "_type": "Value"}, "func_path_in_repository": {"dtype": "string", "id": null, "_type": "Value"}, "func_name": {"dtype": "string", "id": null, "_type": "Value"}, "whole_func_string": {"dtype": "string", "id": null, "_type": "Value"}, "language": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_string": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "func_documentation_string": {"dtype": "string", "id": null, "_type": "Value"}, "func_documentation_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "split_name": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_url": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "code_search_net", "config_name": "python", "version": {"version_str": "1.0.0", "description": "Add CodeSearchNet corpus dataset", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1559645310, "num_examples": 412178, "dataset_name": "code_search_net"}, "test": {"name": "test", "num_bytes": 84342064, "num_examples": 22176, "dataset_name": "code_search_net"}, "validation": {"name": "validation", "num_bytes": 92154786, "num_examples": 23107, "dataset_name": "code_search_net"}}, "download_checksums": {"https://s3.amazonaws.com/code-search-net/CodeSearchNet/v2/python.zip": {"num_bytes": 940909997, "checksum": "7223c6460bebfa85697b586da91e47bc5d64790a4d60bba5917106458ab6b40e"}}, "download_size": 940909997, "post_processing_size": null, "dataset_size": 1736142160, "size_in_bytes": 2677052157}, "javascript": {"description": "CodeSearchNet corpus contains about 6 million functions from open-source code spanning six programming languages (Go, Java, JavaScript, PHP, Python, and Ruby). The CodeSearchNet Corpus also contains automatically generated query-like natural language for 2 million functions, obtained from mechanically scraping and preprocessing associated function documentation.\n", "citation": "@article{husain2019codesearchnet,\n title={{CodeSearchNet} challenge: Evaluating the state of semantic code search},\n author={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},\n journal={arXiv preprint arXiv:1909.09436},\n year={2019}\n}\n", "homepage": "https://github.com/github/CodeSearchNet", "license": "Various", "features": {"repository_name": {"dtype": "string", "id": null, "_type": "Value"}, "func_path_in_repository": {"dtype": "string", "id": null, "_type": "Value"}, "func_name": {"dtype": "string", "id": null, "_type": "Value"}, "whole_func_string": {"dtype": "string", "id": null, "_type": "Value"}, "language": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_string": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "func_documentation_string": {"dtype": "string", "id": null, "_type": "Value"}, "func_documentation_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "split_name": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_url": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "code_search_net", "config_name": "javascript", "version": {"version_str": "1.0.0", "description": "Add CodeSearchNet corpus dataset", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 480286523, "num_examples": 123889, "dataset_name": "code_search_net"}, "test": {"name": "test", "num_bytes": 24056972, "num_examples": 6483, "dataset_name": "code_search_net"}, "validation": {"name": "validation", "num_bytes": 30168242, "num_examples": 8253, "dataset_name": "code_search_net"}}, "download_checksums": {"https://s3.amazonaws.com/code-search-net/CodeSearchNet/v2/javascript.zip": {"num_bytes": 1664713350, "checksum": "fdc743f5af27f90c77584a2d29e2b7f8cecdd00c37b433c385b888ee062936dd"}}, "download_size": 1664713350, "post_processing_size": null, "dataset_size": 534511737, "size_in_bytes": 2199225087}, "ruby": {"description": "CodeSearchNet corpus contains about 6 million functions from open-source code spanning six programming languages (Go, Java, JavaScript, PHP, Python, and Ruby). The CodeSearchNet Corpus also contains automatically generated query-like natural language for 2 million functions, obtained from mechanically scraping and preprocessing associated function documentation.\n", "citation": "@article{husain2019codesearchnet,\n title={{CodeSearchNet} challenge: Evaluating the state of semantic code search},\n author={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},\n journal={arXiv preprint arXiv:1909.09436},\n year={2019}\n}\n", "homepage": "https://github.com/github/CodeSearchNet", "license": "Various", "features": {"repository_name": {"dtype": "string", "id": null, "_type": "Value"}, "func_path_in_repository": {"dtype": "string", "id": null, "_type": "Value"}, "func_name": {"dtype": "string", "id": null, "_type": "Value"}, "whole_func_string": {"dtype": "string", "id": null, "_type": "Value"}, "language": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_string": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "func_documentation_string": {"dtype": "string", "id": null, "_type": "Value"}, "func_documentation_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "split_name": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_url": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "code_search_net", "config_name": "ruby", "version": {"version_str": "1.0.0", "description": "Add CodeSearchNet corpus dataset", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 110681715, "num_examples": 48791, "dataset_name": "code_search_net"}, "test": {"name": "test", "num_bytes": 5359280, "num_examples": 2279, "dataset_name": "code_search_net"}, "validation": {"name": "validation", "num_bytes": 4830744, "num_examples": 2209, "dataset_name": "code_search_net"}}, "download_checksums": {"https://s3.amazonaws.com/code-search-net/CodeSearchNet/v2/ruby.zip": {"num_bytes": 111758028, "checksum": "67aee5812d0f994df745c771c7791483f2b060561495747d424e307af4b342e6"}}, "download_size": 111758028, "post_processing_size": null, "dataset_size": 120871739, "size_in_bytes": 232629767}, "php": {"description": "CodeSearchNet corpus contains about 6 million functions from open-source code spanning six programming languages (Go, Java, JavaScript, PHP, Python, and Ruby). The CodeSearchNet Corpus also contains automatically generated query-like natural language for 2 million functions, obtained from mechanically scraping and preprocessing associated function documentation.\n", "citation": "@article{husain2019codesearchnet,\n title={{CodeSearchNet} challenge: Evaluating the state of semantic code search},\n author={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},\n journal={arXiv preprint arXiv:1909.09436},\n year={2019}\n}\n", "homepage": "https://github.com/github/CodeSearchNet", "license": "Various", "features": {"repository_name": {"dtype": "string", "id": null, "_type": "Value"}, "func_path_in_repository": {"dtype": "string", "id": null, "_type": "Value"}, "func_name": {"dtype": "string", "id": null, "_type": "Value"}, "whole_func_string": {"dtype": "string", "id": null, "_type": "Value"}, "language": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_string": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "func_documentation_string": {"dtype": "string", "id": null, "_type": "Value"}, "func_documentation_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "split_name": {"dtype": "string", "id": null, "_type": "Value"}, "func_code_url": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "code_search_net", "config_name": "php", "version": {"version_str": "1.0.0", "description": "Add CodeSearchNet corpus dataset", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1532564870, "num_examples": 523712, "dataset_name": "code_search_net"}, "test": {"name": "test", "num_bytes": 80203877, "num_examples": 28391, "dataset_name": "code_search_net"}, "validation": {"name": "validation", "num_bytes": 78163924, "num_examples": 26015, "dataset_name": "code_search_net"}}, "download_checksums": {"https://s3.amazonaws.com/code-search-net/CodeSearchNet/v2/php.zip": {"num_bytes": 851894048, "checksum": "c3bbf0d1b10010f88b058faea876f1f5471758399e30d58c11f78ff53660ce00"}}, "download_size": 851894048, "post_processing_size": null, "dataset_size": 1690932671, "size_in_bytes": 2542826719}}123version https://git-lfs.github.com/spec/v1oid sha256:96d9ecc5afe9233404d42136c64ae22bdc8f60592ad3a976b8611464e8f90ef9size 18608123version https://git-lfs.github.com/spec/v1oid sha256:fb9db4fb6fecbee76af9416ea102c7b21e342832585da2eb03e5592ddd48f11asize 3770123version https://git-lfs.github.com/spec/v1oid sha256:bb0faa2e86b22ff59bb3359014b31b5eb7a80e557e0f0d1da43bbf516838bc27size 3870123version https://git-lfs.github.com/spec/v1oid sha256:f3304c62fb31489c430d1a0eb91ae28befce821238bc788a4c757a3974388b81size 4170123version https://git-lfs.github.com/spec/v1oid sha256:0f1521a2392c0ad0bf6e57b0a01e3b7107a7f7b7588a655180a2dea1155a34aesize 3820123version https://git-lfs.github.com/spec/v1oid sha256:ae0538935b38ab1b2ba8fc7050ec6e961b38e9b1e5ccebe73533b7be81b10be0size 3970123version https://git-lfs.github.com/spec/v1oid sha256:4412850928663e578853c4236a176a3704738255b2d0fe2be99142d9b60ca94fsize 3870.gitattributesAdded+27
README.mdAdded+195
code_search_net.pyAdded+219
dataset_infos.jsonAdded+1
dummy/all/1.0.0/dummy_data.zipAdded+3
dummy/go/1.0.0/dummy_data.zipAdded+3
dummy/java/1.0.0/dummy_data.zipAdded+3
dummy/javascript/1.0.0/dummy_data.zipAdded+3
dummy/php/1.0.0/dummy_data.zipAdded+3
dummy/python/1.0.0/dummy_data.zipAdded+3
dummy/ruby/1.0.0/dummy_data.zipAdded+3