Datasets:
Upload README.md
Browse files
README.md
CHANGED
|
@@ -8,66 +8,26 @@ language:
|
|
| 8 |
size_categories:
|
| 9 |
- 1K<n<10K
|
| 10 |
dataset_info:
|
| 11 |
-
- config_name:
|
| 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 |
splits:
|
| 36 |
- name: train
|
| 37 |
-
num_bytes:
|
| 38 |
-
num_examples:
|
| 39 |
- name: test
|
| 40 |
-
num_bytes:
|
| 41 |
-
num_examples:
|
| 42 |
- name: validation
|
| 43 |
-
num_bytes:
|
| 44 |
-
num_examples:
|
| 45 |
-
download_size:
|
| 46 |
-
dataset_size:
|
| 47 |
- config_name: cpp
|
| 48 |
features:
|
| 49 |
-
- name: repository_name
|
| 50 |
-
dtype: string
|
| 51 |
-
- name: func_path_in_repository
|
| 52 |
-
dtype: string
|
| 53 |
-
- name: func_name
|
| 54 |
-
dtype: string
|
| 55 |
-
- name: whole_func_string
|
| 56 |
-
dtype: string
|
| 57 |
-
- name: language
|
| 58 |
-
dtype: string
|
| 59 |
- name: func_code_string
|
| 60 |
dtype: string
|
| 61 |
-
- name: func_code_tokens
|
| 62 |
-
sequence: string
|
| 63 |
-
- name: func_documentation_string
|
| 64 |
-
dtype: string
|
| 65 |
-
- name: func_documentation_tokens
|
| 66 |
-
sequence: string
|
| 67 |
-
- name: split_name
|
| 68 |
-
dtype: string
|
| 69 |
-
- name: func_code_url
|
| 70 |
-
dtype: string
|
| 71 |
splits:
|
| 72 |
- name: train
|
| 73 |
num_bytes: 1429272535
|
|
@@ -115,48 +75,29 @@ A data point consists of a function code along with its documentation. Each data
|
|
| 115 |
```
|
| 116 |
{
|
| 117 |
'id': '0',
|
| 118 |
-
'
|
| 119 |
-
'func_path_in_repository': 'src/path/to/file.py',
|
| 120 |
-
'func_name': 'func',
|
| 121 |
-
'whole_func_string': 'def func(args):\n"""Docstring"""\n [...]',
|
| 122 |
-
'language': 'python',
|
| 123 |
-
'func_code_string': '[...]',
|
| 124 |
-
'func_code_tokens': ['def', 'func', '(', 'args', ')', ...],
|
| 125 |
-
'func_documentation_string': 'Docstring',
|
| 126 |
-
'func_documentation_string_tokens': ['Docstring'],
|
| 127 |
-
'split_name': 'train',
|
| 128 |
-
'func_code_url': 'https://github.com/<org>/<repo>/blob/<hash>/src/path/to/file.py#L111-L150'
|
| 129 |
}
|
| 130 |
```
|
| 131 |
|
| 132 |
### Data Fields
|
| 133 |
|
| 134 |
- `id`: Arbitrary number
|
| 135 |
-
- `
|
| 136 |
-
- `func_path_in_repository`: tl;dr: path to the file which holds the function in the repository
|
| 137 |
-
- `func_name`: name of the function in the file
|
| 138 |
-
- `whole_func_string`: Code + documentation of the function
|
| 139 |
-
- `language`: Programming language in whoch the function is written
|
| 140 |
-
- `func_code_string`: Function code
|
| 141 |
-
- `func_code_tokens`: Tokens yielded by Treesitter
|
| 142 |
-
- `func_documentation_string`: Function documentation
|
| 143 |
-
- `func_documentation_string_tokens`: Tokens yielded by Treesitter
|
| 144 |
-
- `split_name`: Name of the split to which the example belongs (one of train, test or valid)
|
| 145 |
-
- `func_code_url`: URL to the function code on Github
|
| 146 |
|
| 147 |
### Data Splits
|
| 148 |
|
| 149 |
-
Three splits are available
|
| 150 |
-
- train
|
| 151 |
-
- test
|
| 152 |
-
- valid
|
| 153 |
|
| 154 |
### Citation Information
|
| 155 |
|
| 156 |
-
- based on
|
| 157 |
-
|
|
|
|
| 158 |
@article{husain2019codesearchnet,
|
| 159 |
title={C++ Dataset},
|
| 160 |
author={Klaes, Malte},
|
| 161 |
year={2024}
|
| 162 |
-
}
|
|
|
|
| 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
|
|
|
|
| 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 |
+
}
|