five

irds/codesearchnet

收藏
Hugging Face2023-01-05 更新2024-03-04 收录
下载链接:
https://hf-mirror.com/datasets/irds/codesearchnet
下载链接
链接失效反馈
官方服务:
资源简介:
--- pretty_name: '`codesearchnet`' viewer: false source_datasets: [] task_categories: - text-retrieval --- # Dataset Card for `codesearchnet` The `codesearchnet` dataset, provided by the [ir-datasets](https://ir-datasets.com/) package. For more information about the dataset, see the [documentation](https://ir-datasets.com/codesearchnet#codesearchnet). # Data This dataset provides: - `docs` (documents, i.e., the corpus); count=2,070,536 This dataset is used by: [`codesearchnet_challenge`](https://huggingface.co/datasets/irds/codesearchnet_challenge), [`codesearchnet_test`](https://huggingface.co/datasets/irds/codesearchnet_test), [`codesearchnet_train`](https://huggingface.co/datasets/irds/codesearchnet_train), [`codesearchnet_valid`](https://huggingface.co/datasets/irds/codesearchnet_valid) ## Usage ```python from datasets import load_dataset docs = load_dataset('irds/codesearchnet', 'docs') for record in docs: record # {'doc_id': ..., 'repo': ..., 'path': ..., 'func_name': ..., 'code': ..., 'language': ...} ``` Note that calling `load_dataset` will download the dataset (or provide access instructions when it's not public) and make a copy of the data in 🤗 Dataset format. ## Citation Information ``` @article{Husain2019CodeSearchNet, title={CodeSearchNet Challenge: Evaluating the State of Semantic Code Search}, author={Hamel Husain and Ho-Hsiang Wu and Tiferet Gazit and Miltiadis Allamanis and Marc Brockschmidt}, journal={ArXiv}, year={2019} } ```
提供机构:
irds
原始信息汇总

数据集概述

数据集名称

codesearchnet

数据集来源

ir-datasets 包提供。

数据集内容

  • 文档数量: 2,070,536
  • 文档内容: 包含 doc_id, repo, path, func_name, code, language 等信息。

数据集用途

该数据集被用于以下子集:

  • codesearchnet_challenge
  • codesearchnet_test
  • codesearchnet_train
  • codesearchnet_valid

数据集加载示例

python from datasets import load_dataset

docs = load_dataset(irds/codesearchnet, docs) for record in docs: record # {doc_id: ..., repo: ..., path: ..., func_name: ..., code: ..., language: ...}

引用信息

@article{Husain2019CodeSearchNet, title={CodeSearchNet Challenge: Evaluating the State of Semantic Code Search}, author={Hamel Husain and Ho-Hsiang Wu and Tiferet Gazit and Miltiadis Allamanis and Marc Brockschmidt}, journal={ArXiv}, year={2019} }

5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作