Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,104 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: all
|
12 |
+
features:
|
13 |
+
- name: repository_name
|
14 |
+
dtype: string
|
15 |
+
- name: func_path_in_repository
|
16 |
+
dtype: string
|
17 |
+
- name: func_name
|
18 |
+
dtype: string
|
19 |
+
- name: whole_func_string
|
20 |
+
dtype: string
|
21 |
+
- name: language
|
22 |
+
dtype: string
|
23 |
+
- name: func_code_string
|
24 |
+
dtype: string
|
25 |
+
- name: func_code_tokens
|
26 |
+
sequence: string
|
27 |
+
- name: func_documentation_string
|
28 |
+
dtype: string
|
29 |
+
- name: func_documentation_tokens
|
30 |
+
sequence: string
|
31 |
+
- name: split_name
|
32 |
+
dtype: string
|
33 |
+
- name: func_code_url
|
34 |
+
dtype: string
|
35 |
+
configs:
|
36 |
+
- config_name: default
|
37 |
+
data_files:
|
38 |
+
- split: train
|
39 |
+
path: "train/train.jsonl"
|
40 |
+
- split: test
|
41 |
+
path: "test/test.jsonl"
|
42 |
+
- split: validation
|
43 |
+
path: "validation/validation.jsonl"
|
44 |
---
|
45 |
+
|
46 |
+
# C++ Dataset
|
47 |
+
> documentation source: https://huggingface.co/docs/datasets/main/en/repository_structure
|
48 |
+
|
49 |
+
|
50 |
+
|
51 |
+
### Supported Tasks and Leaderboards
|
52 |
+
|
53 |
+
- `language-modeling`: The dataset can be used to train a model for modelling programming languages, which consists in building language models for programming languages.
|
54 |
+
|
55 |
+
### Language
|
56 |
+
|
57 |
+
- C++ **programming** language
|
58 |
+
|
59 |
+
|
60 |
+
|
61 |
+
|
62 |
+
## Dataset Structure
|
63 |
+
|
64 |
+
### Data Instances
|
65 |
+
|
66 |
+
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.
|
67 |
+
```
|
68 |
+
{
|
69 |
+
'id': '0',
|
70 |
+
'repository_name': 'organisation/repository',
|
71 |
+
'func_path_in_repository': 'src/path/to/file.py',
|
72 |
+
'func_name': 'func',
|
73 |
+
'whole_func_string': 'def func(args):\n"""Docstring"""\n [...]',
|
74 |
+
'language': 'python',
|
75 |
+
'func_code_string': '[...]',
|
76 |
+
'func_code_tokens': ['def', 'func', '(', 'args', ')', ...],
|
77 |
+
'func_documentation_string': 'Docstring',
|
78 |
+
'func_documentation_string_tokens': ['Docstring'],
|
79 |
+
'split_name': 'train',
|
80 |
+
'func_code_url': 'https://github.com/<org>/<repo>/blob/<hash>/src/path/to/file.py#L111-L150'
|
81 |
+
}
|
82 |
+
```
|
83 |
+
|
84 |
+
### Data Fields
|
85 |
+
|
86 |
+
- `id`: Arbitrary number
|
87 |
+
- `repository_name`: name of the GitHub repository
|
88 |
+
- `func_path_in_repository`: tl;dr: path to the file which holds the function in the repository
|
89 |
+
- `func_name`: name of the function in the file
|
90 |
+
- `whole_func_string`: Code + documentation of the function
|
91 |
+
- `language`: Programming language in whoch the function is written
|
92 |
+
- `func_code_string`: Function code
|
93 |
+
- `func_code_tokens`: Tokens yielded by Treesitter
|
94 |
+
- `func_documentation_string`: Function documentation
|
95 |
+
- `func_documentation_string_tokens`: Tokens yielded by Treesitter
|
96 |
+
- `split_name`: Name of the split to which the example belongs (one of train, test or valid)
|
97 |
+
- `func_code_url`: URL to the function code on Github
|
98 |
+
|
99 |
+
### Data Splits
|
100 |
+
|
101 |
+
Three splits are available:
|
102 |
+
- train
|
103 |
+
- test
|
104 |
+
- valid
|