malteklaes's picture
Update README.md
d2dca23 verified
---
license: apache-2.0
task_categories:
- text-generation
- fill-mask
language:
- code
size_categories:
- 1K<n<10K
dataset_info:
- config_name: cpp
features:
- name: func_code_string
dtype: string
splits:
- name: train
num_bytes: 0
num_examples: 50000
- name: test
num_bytes: 0
num_examples: 10000
- name: validation
num_bytes: 0
num_examples: 10000
download_size: 0
dataset_size: 0
- config_name: cpp
features:
- name: func_code_string
dtype: string
splits:
- name: train
num_bytes: 1429272535
num_examples: 454451
- name: test
num_bytes: 82377246
num_examples: 26909
- name: validation
num_bytes: 42358315
num_examples: 15328
download_size: 1060569153
dataset_size: 1554008096
configs:
- config_name: default
data_files:
- split: train
path: "cpp_dataset/train/train.jsonl"
- split: test
path: "cpp_dataset/test/test.jsonl"
- split: validation
path: "cpp_dataset/validation/validation.jsonl"
---
# C++ Dataset
> documentation source: https://huggingface.co/docs/datasets/main/en/repository_structure
### 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.
### Language
- C++ **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',
'func_code_string': 'organisation/repository'
}
```
### Data Fields
- `id`: Arbitrary number
- `func_code_string`: actual code line (each line is a whole C++ program)
### Data Splits
Three splits are available as `.jsonl`:
- train (50000 lines)
- test (10000 lines)
- valid (10000 lines)
### Citation Information
- based on this dataset source: https://huggingface.co/datasets/nguyentruong-ins/codeforces_cpp_cleaned/tree/main/data
- based on format and idea: https://huggingface.co/datasets/code_search_net
- expanded by
@article{husain2019codesearchnet,
title={C++ Dataset},
author={Klaes, Malte},
year={2024}
}