Datasets:
Upload 4 files
Browse files- cpp_dataset/README.md +103 -0
- cpp_dataset/test/test.jsonl +0 -0
- cpp_dataset/train/train.jsonl +0 -0
- cpp_dataset/validation/validation.jsonl +0 -0
cpp_dataset/README.md
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
- fill-mask
|
| 6 |
+
language:
|
| 7 |
+
- code
|
| 8 |
+
size_categories:
|
| 9 |
+
- 1K<n<10K
|
| 10 |
+
dataset_info:
|
| 11 |
+
- config_name: cpp
|
| 12 |
+
features:
|
| 13 |
+
- name: func_code_string
|
| 14 |
+
dtype: string
|
| 15 |
+
splits:
|
| 16 |
+
- name: train
|
| 17 |
+
num_bytes: 0
|
| 18 |
+
num_examples: 3000
|
| 19 |
+
- name: test
|
| 20 |
+
num_bytes: 0
|
| 21 |
+
num_examples: 100
|
| 22 |
+
- name: validation
|
| 23 |
+
num_bytes: 0
|
| 24 |
+
num_examples: 1000
|
| 25 |
+
download_size: 0
|
| 26 |
+
dataset_size: 0
|
| 27 |
+
- config_name: cpp
|
| 28 |
+
features:
|
| 29 |
+
- name: func_code_string
|
| 30 |
+
dtype: string
|
| 31 |
+
splits:
|
| 32 |
+
- name: train
|
| 33 |
+
num_bytes: 1429272535
|
| 34 |
+
num_examples: 454451
|
| 35 |
+
- name: test
|
| 36 |
+
num_bytes: 82377246
|
| 37 |
+
num_examples: 26909
|
| 38 |
+
- name: validation
|
| 39 |
+
num_bytes: 42358315
|
| 40 |
+
num_examples: 15328
|
| 41 |
+
download_size: 1060569153
|
| 42 |
+
dataset_size: 1554008096
|
| 43 |
+
configs:
|
| 44 |
+
- config_name: default
|
| 45 |
+
data_files:
|
| 46 |
+
- split: train
|
| 47 |
+
path: "cpp_dataset/train/train.jsonl"
|
| 48 |
+
- split: test
|
| 49 |
+
path: "cpp_dataset/test/test.jsonl"
|
| 50 |
+
- split: validation
|
| 51 |
+
path: "cpp_dataset/validation/validation.jsonl"
|
| 52 |
+
---
|
| 53 |
+
|
| 54 |
+
# C++ Dataset
|
| 55 |
+
> documentation source: https://huggingface.co/docs/datasets/main/en/repository_structure
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
### Supported Tasks and Leaderboards
|
| 60 |
+
|
| 61 |
+
- `language-modeling`: The dataset can be used to train a model for modelling programming languages, which consists in building language models for programming languages.
|
| 62 |
+
|
| 63 |
+
### Language
|
| 64 |
+
|
| 65 |
+
- C++ **programming** language
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
## Dataset Structure
|
| 71 |
+
|
| 72 |
+
### Data Instances
|
| 73 |
+
|
| 74 |
+
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.
|
| 75 |
+
```
|
| 76 |
+
{
|
| 77 |
+
'id': '0',
|
| 78 |
+
'func_code_string': 'organisation/repository'
|
| 79 |
+
}
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
### Data Fields
|
| 83 |
+
|
| 84 |
+
- `id`: Arbitrary number
|
| 85 |
+
- `func_code_string`: actual code line (each line is a whole C++ program)
|
| 86 |
+
|
| 87 |
+
### Data Splits
|
| 88 |
+
|
| 89 |
+
Three splits are available as `.jsonl`:
|
| 90 |
+
- train (3000 lines)
|
| 91 |
+
- test (100 lines)
|
| 92 |
+
- valid (1000 lines)
|
| 93 |
+
|
| 94 |
+
### Citation Information
|
| 95 |
+
|
| 96 |
+
- based on this dataset source: https://huggingface.co/datasets/nguyentruong-ins/codeforces_cpp_cleaned/tree/main/data
|
| 97 |
+
- based on format and idea: https://huggingface.co/datasets/code_search_net
|
| 98 |
+
- expanded by
|
| 99 |
+
@article{husain2019codesearchnet,
|
| 100 |
+
title={C++ Dataset},
|
| 101 |
+
author={Klaes, Malte},
|
| 102 |
+
year={2024}
|
| 103 |
+
}
|
cpp_dataset/test/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cpp_dataset/train/train.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cpp_dataset/validation/validation.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|