File size: 2,239 Bytes
c5eda3f
 
955afff
 
 
 
 
 
 
 
cef02b8
955afff
 
 
af3e985
 
cef02b8
d2dca23
af3e985
cef02b8
d2dca23
af3e985
cef02b8
d2dca23
cef02b8
 
bc92ca8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
955afff
 
 
 
cb91018
955afff
cb91018
955afff
cb91018
c5eda3f
955afff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cef02b8
955afff
 
 
 
 
 
cef02b8
955afff
 
 
cef02b8
d2dca23
 
 
942d80b
 
 
cef02b8
 
 
942d80b
 
 
 
cef02b8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
---
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}
}