Commit ·
852c793
0
Parent(s):
Duplicate from code-search-net/code_search_net
Browse filesCo-authored-by: Parquet-converter (BOT) <parquet-converter@users.noreply.huggingface.co>
- .gitattributes +27 -0
- README.md +526 -0
- all/test-00000-of-00001.parquet +3 -0
- all/train-00000-of-00002.parquet +3 -0
- all/train-00001-of-00002.parquet +3 -0
- all/validation-00000-of-00001.parquet +3 -0
- go/test-00000-of-00001.parquet +3 -0
- go/train-00000-of-00001.parquet +3 -0
- go/validation-00000-of-00001.parquet +3 -0
- java/test-00000-of-00001.parquet +3 -0
- java/train-00000-of-00001.parquet +3 -0
- java/validation-00000-of-00001.parquet +3 -0
- javascript/test-00000-of-00001.parquet +3 -0
- javascript/train-00000-of-00001.parquet +3 -0
- javascript/validation-00000-of-00001.parquet +3 -0
- php/test-00000-of-00001.parquet +3 -0
- php/train-00000-of-00001.parquet +3 -0
- php/validation-00000-of-00001.parquet +3 -0
- python/test-00000-of-00001.parquet +3 -0
- python/train-00000-of-00001.parquet +3 -0
- python/validation-00000-of-00001.parquet +3 -0
- ruby/test-00000-of-00001.parquet +3 -0
- ruby/train-00000-of-00001.parquet +3 -0
- ruby/validation-00000-of-00001.parquet +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,526 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
| 11 |
+
- multilingual
|
| 12 |
+
size_categories:
|
| 13 |
+
- 100K<n<1M
|
| 14 |
+
- 10K<n<100K
|
| 15 |
+
- 1M<n<10M
|
| 16 |
+
source_datasets:
|
| 17 |
+
- original
|
| 18 |
+
task_categories:
|
| 19 |
+
- text-generation
|
| 20 |
+
- fill-mask
|
| 21 |
+
task_ids:
|
| 22 |
+
- language-modeling
|
| 23 |
+
- masked-language-modeling
|
| 24 |
+
paperswithcode_id: codesearchnet
|
| 25 |
+
pretty_name: CodeSearchNet
|
| 26 |
+
dataset_info:
|
| 27 |
+
- config_name: all
|
| 28 |
+
features:
|
| 29 |
+
- name: repository_name
|
| 30 |
+
dtype: string
|
| 31 |
+
- name: func_path_in_repository
|
| 32 |
+
dtype: string
|
| 33 |
+
- name: func_name
|
| 34 |
+
dtype: string
|
| 35 |
+
- name: whole_func_string
|
| 36 |
+
dtype: string
|
| 37 |
+
- name: language
|
| 38 |
+
dtype: string
|
| 39 |
+
- name: func_code_string
|
| 40 |
+
dtype: string
|
| 41 |
+
- name: func_code_tokens
|
| 42 |
+
sequence: string
|
| 43 |
+
- name: func_documentation_string
|
| 44 |
+
dtype: string
|
| 45 |
+
- name: func_documentation_tokens
|
| 46 |
+
sequence: string
|
| 47 |
+
- name: split_name
|
| 48 |
+
dtype: string
|
| 49 |
+
- name: func_code_url
|
| 50 |
+
dtype: string
|
| 51 |
+
splits:
|
| 52 |
+
- name: train
|
| 53 |
+
num_bytes: 5850594255
|
| 54 |
+
num_examples: 1880853
|
| 55 |
+
- name: test
|
| 56 |
+
num_bytes: 308625761
|
| 57 |
+
num_examples: 100529
|
| 58 |
+
- name: validation
|
| 59 |
+
num_bytes: 274563914
|
| 60 |
+
num_examples: 89154
|
| 61 |
+
download_size: 1963220197
|
| 62 |
+
dataset_size: 6433783930
|
| 63 |
+
- config_name: go
|
| 64 |
+
features:
|
| 65 |
+
- name: repository_name
|
| 66 |
+
dtype: string
|
| 67 |
+
- name: func_path_in_repository
|
| 68 |
+
dtype: string
|
| 69 |
+
- name: func_name
|
| 70 |
+
dtype: string
|
| 71 |
+
- name: whole_func_string
|
| 72 |
+
dtype: string
|
| 73 |
+
- name: language
|
| 74 |
+
dtype: string
|
| 75 |
+
- name: func_code_string
|
| 76 |
+
dtype: string
|
| 77 |
+
- name: func_code_tokens
|
| 78 |
+
sequence: string
|
| 79 |
+
- name: func_documentation_string
|
| 80 |
+
dtype: string
|
| 81 |
+
- name: func_documentation_tokens
|
| 82 |
+
sequence: string
|
| 83 |
+
- name: split_name
|
| 84 |
+
dtype: string
|
| 85 |
+
- name: func_code_url
|
| 86 |
+
dtype: string
|
| 87 |
+
splits:
|
| 88 |
+
- name: train
|
| 89 |
+
num_bytes: 738151570
|
| 90 |
+
num_examples: 317832
|
| 91 |
+
- name: test
|
| 92 |
+
num_bytes: 32286894
|
| 93 |
+
num_examples: 14291
|
| 94 |
+
- name: validation
|
| 95 |
+
num_bytes: 26888423
|
| 96 |
+
num_examples: 14242
|
| 97 |
+
download_size: 228520726
|
| 98 |
+
dataset_size: 797326887
|
| 99 |
+
- config_name: java
|
| 100 |
+
features:
|
| 101 |
+
- name: repository_name
|
| 102 |
+
dtype: string
|
| 103 |
+
- name: func_path_in_repository
|
| 104 |
+
dtype: string
|
| 105 |
+
- name: func_name
|
| 106 |
+
dtype: string
|
| 107 |
+
- name: whole_func_string
|
| 108 |
+
dtype: string
|
| 109 |
+
- name: language
|
| 110 |
+
dtype: string
|
| 111 |
+
- name: func_code_string
|
| 112 |
+
dtype: string
|
| 113 |
+
- name: func_code_tokens
|
| 114 |
+
sequence: string
|
| 115 |
+
- name: func_documentation_string
|
| 116 |
+
dtype: string
|
| 117 |
+
- name: func_documentation_tokens
|
| 118 |
+
sequence: string
|
| 119 |
+
- name: split_name
|
| 120 |
+
dtype: string
|
| 121 |
+
- name: func_code_url
|
| 122 |
+
dtype: string
|
| 123 |
+
splits:
|
| 124 |
+
- name: train
|
| 125 |
+
num_bytes: 1429270143
|
| 126 |
+
num_examples: 454451
|
| 127 |
+
- name: test
|
| 128 |
+
num_bytes: 82377090
|
| 129 |
+
num_examples: 26909
|
| 130 |
+
- name: validation
|
| 131 |
+
num_bytes: 42358211
|
| 132 |
+
num_examples: 15328
|
| 133 |
+
download_size: 425659927
|
| 134 |
+
dataset_size: 1554005444
|
| 135 |
+
- config_name: javascript
|
| 136 |
+
features:
|
| 137 |
+
- name: repository_name
|
| 138 |
+
dtype: string
|
| 139 |
+
- name: func_path_in_repository
|
| 140 |
+
dtype: string
|
| 141 |
+
- name: func_name
|
| 142 |
+
dtype: string
|
| 143 |
+
- name: whole_func_string
|
| 144 |
+
dtype: string
|
| 145 |
+
- name: language
|
| 146 |
+
dtype: string
|
| 147 |
+
- name: func_code_string
|
| 148 |
+
dtype: string
|
| 149 |
+
- name: func_code_tokens
|
| 150 |
+
sequence: string
|
| 151 |
+
- name: func_documentation_string
|
| 152 |
+
dtype: string
|
| 153 |
+
- name: func_documentation_tokens
|
| 154 |
+
sequence: string
|
| 155 |
+
- name: split_name
|
| 156 |
+
dtype: string
|
| 157 |
+
- name: func_code_url
|
| 158 |
+
dtype: string
|
| 159 |
+
splits:
|
| 160 |
+
- name: train
|
| 161 |
+
num_bytes: 480285847
|
| 162 |
+
num_examples: 123889
|
| 163 |
+
- name: test
|
| 164 |
+
num_bytes: 24056920
|
| 165 |
+
num_examples: 6483
|
| 166 |
+
- name: validation
|
| 167 |
+
num_bytes: 30168190
|
| 168 |
+
num_examples: 8253
|
| 169 |
+
download_size: 177637817
|
| 170 |
+
dataset_size: 534510957
|
| 171 |
+
- config_name: php
|
| 172 |
+
features:
|
| 173 |
+
- name: repository_name
|
| 174 |
+
dtype: string
|
| 175 |
+
- name: func_path_in_repository
|
| 176 |
+
dtype: string
|
| 177 |
+
- name: func_name
|
| 178 |
+
dtype: string
|
| 179 |
+
- name: whole_func_string
|
| 180 |
+
dtype: string
|
| 181 |
+
- name: language
|
| 182 |
+
dtype: string
|
| 183 |
+
- name: func_code_string
|
| 184 |
+
dtype: string
|
| 185 |
+
- name: func_code_tokens
|
| 186 |
+
sequence: string
|
| 187 |
+
- name: func_documentation_string
|
| 188 |
+
dtype: string
|
| 189 |
+
- name: func_documentation_tokens
|
| 190 |
+
sequence: string
|
| 191 |
+
- name: split_name
|
| 192 |
+
dtype: string
|
| 193 |
+
- name: func_code_url
|
| 194 |
+
dtype: string
|
| 195 |
+
splits:
|
| 196 |
+
- name: train
|
| 197 |
+
num_bytes: 1532562114
|
| 198 |
+
num_examples: 523712
|
| 199 |
+
- name: test
|
| 200 |
+
num_bytes: 80203721
|
| 201 |
+
num_examples: 28391
|
| 202 |
+
- name: validation
|
| 203 |
+
num_bytes: 78163768
|
| 204 |
+
num_examples: 26015
|
| 205 |
+
download_size: 507426963
|
| 206 |
+
dataset_size: 1690929603
|
| 207 |
+
- config_name: python
|
| 208 |
+
features:
|
| 209 |
+
- name: repository_name
|
| 210 |
+
dtype: string
|
| 211 |
+
- name: func_path_in_repository
|
| 212 |
+
dtype: string
|
| 213 |
+
- name: func_name
|
| 214 |
+
dtype: string
|
| 215 |
+
- name: whole_func_string
|
| 216 |
+
dtype: string
|
| 217 |
+
- name: language
|
| 218 |
+
dtype: string
|
| 219 |
+
- name: func_code_string
|
| 220 |
+
dtype: string
|
| 221 |
+
- name: func_code_tokens
|
| 222 |
+
sequence: string
|
| 223 |
+
- name: func_documentation_string
|
| 224 |
+
dtype: string
|
| 225 |
+
- name: func_documentation_tokens
|
| 226 |
+
sequence: string
|
| 227 |
+
- name: split_name
|
| 228 |
+
dtype: string
|
| 229 |
+
- name: func_code_url
|
| 230 |
+
dtype: string
|
| 231 |
+
splits:
|
| 232 |
+
- name: train
|
| 233 |
+
num_bytes: 1559643126
|
| 234 |
+
num_examples: 412178
|
| 235 |
+
- name: test
|
| 236 |
+
num_bytes: 84341908
|
| 237 |
+
num_examples: 22176
|
| 238 |
+
- name: validation
|
| 239 |
+
num_bytes: 92154630
|
| 240 |
+
num_examples: 23107
|
| 241 |
+
download_size: 581272659
|
| 242 |
+
dataset_size: 1736139664
|
| 243 |
+
- config_name: ruby
|
| 244 |
+
features:
|
| 245 |
+
- name: repository_name
|
| 246 |
+
dtype: string
|
| 247 |
+
- name: func_path_in_repository
|
| 248 |
+
dtype: string
|
| 249 |
+
- name: func_name
|
| 250 |
+
dtype: string
|
| 251 |
+
- name: whole_func_string
|
| 252 |
+
dtype: string
|
| 253 |
+
- name: language
|
| 254 |
+
dtype: string
|
| 255 |
+
- name: func_code_string
|
| 256 |
+
dtype: string
|
| 257 |
+
- name: func_code_tokens
|
| 258 |
+
sequence: string
|
| 259 |
+
- name: func_documentation_string
|
| 260 |
+
dtype: string
|
| 261 |
+
- name: func_documentation_tokens
|
| 262 |
+
sequence: string
|
| 263 |
+
- name: split_name
|
| 264 |
+
dtype: string
|
| 265 |
+
- name: func_code_url
|
| 266 |
+
dtype: string
|
| 267 |
+
splits:
|
| 268 |
+
- name: train
|
| 269 |
+
num_bytes: 110681455
|
| 270 |
+
num_examples: 48791
|
| 271 |
+
- name: test
|
| 272 |
+
num_bytes: 5359228
|
| 273 |
+
num_examples: 2279
|
| 274 |
+
- name: validation
|
| 275 |
+
num_bytes: 4830692
|
| 276 |
+
num_examples: 2209
|
| 277 |
+
download_size: 42266439
|
| 278 |
+
dataset_size: 120871375
|
| 279 |
+
config_names:
|
| 280 |
+
- all
|
| 281 |
+
- go
|
| 282 |
+
- java
|
| 283 |
+
- javascript
|
| 284 |
+
- php
|
| 285 |
+
- python
|
| 286 |
+
- ruby
|
| 287 |
+
configs:
|
| 288 |
+
- config_name: all
|
| 289 |
+
data_files:
|
| 290 |
+
- split: train
|
| 291 |
+
path: all/train-*
|
| 292 |
+
- split: test
|
| 293 |
+
path: all/test-*
|
| 294 |
+
- split: validation
|
| 295 |
+
path: all/validation-*
|
| 296 |
+
default: true
|
| 297 |
+
- config_name: go
|
| 298 |
+
data_files:
|
| 299 |
+
- split: train
|
| 300 |
+
path: go/train-*
|
| 301 |
+
- split: test
|
| 302 |
+
path: go/test-*
|
| 303 |
+
- split: validation
|
| 304 |
+
path: go/validation-*
|
| 305 |
+
- config_name: java
|
| 306 |
+
data_files:
|
| 307 |
+
- split: train
|
| 308 |
+
path: java/train-*
|
| 309 |
+
- split: test
|
| 310 |
+
path: java/test-*
|
| 311 |
+
- split: validation
|
| 312 |
+
path: java/validation-*
|
| 313 |
+
- config_name: javascript
|
| 314 |
+
data_files:
|
| 315 |
+
- split: train
|
| 316 |
+
path: javascript/train-*
|
| 317 |
+
- split: test
|
| 318 |
+
path: javascript/test-*
|
| 319 |
+
- split: validation
|
| 320 |
+
path: javascript/validation-*
|
| 321 |
+
- config_name: php
|
| 322 |
+
data_files:
|
| 323 |
+
- split: train
|
| 324 |
+
path: php/train-*
|
| 325 |
+
- split: test
|
| 326 |
+
path: php/test-*
|
| 327 |
+
- split: validation
|
| 328 |
+
path: php/validation-*
|
| 329 |
+
- config_name: python
|
| 330 |
+
data_files:
|
| 331 |
+
- split: train
|
| 332 |
+
path: python/train-*
|
| 333 |
+
- split: test
|
| 334 |
+
path: python/test-*
|
| 335 |
+
- split: validation
|
| 336 |
+
path: python/validation-*
|
| 337 |
+
- config_name: ruby
|
| 338 |
+
data_files:
|
| 339 |
+
- split: train
|
| 340 |
+
path: ruby/train-*
|
| 341 |
+
- split: test
|
| 342 |
+
path: ruby/test-*
|
| 343 |
+
- split: validation
|
| 344 |
+
path: ruby/validation-*
|
| 345 |
+
---
|
| 346 |
+
|
| 347 |
+
# Dataset Card for CodeSearchNet corpus
|
| 348 |
+
|
| 349 |
+
## Table of Contents
|
| 350 |
+
- [Dataset Description](#dataset-description)
|
| 351 |
+
- [Dataset Summary](#dataset-summary)
|
| 352 |
+
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
| 353 |
+
- [Languages](#languages)
|
| 354 |
+
- [Dataset Structure](#dataset-structure)
|
| 355 |
+
- [Data Instances](#data-instances)
|
| 356 |
+
- [Data Fields](#data-fields)
|
| 357 |
+
- [Data Splits](#data-splits)
|
| 358 |
+
- [Dataset Creation](#dataset-creation)
|
| 359 |
+
- [Curation Rationale](#curation-rationale)
|
| 360 |
+
- [Source Data](#source-data)
|
| 361 |
+
- [Annotations](#annotations)
|
| 362 |
+
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
| 363 |
+
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
| 364 |
+
- [Social Impact of Dataset](#social-impact-of-dataset)
|
| 365 |
+
- [Discussion of Biases](#discussion-of-biases)
|
| 366 |
+
- [Other Known Limitations](#other-known-limitations)
|
| 367 |
+
- [Additional Information](#additional-information)
|
| 368 |
+
- [Dataset Curators](#dataset-curators)
|
| 369 |
+
- [Licensing Information](#licensing-information)
|
| 370 |
+
- [Citation Information](#citation-information)
|
| 371 |
+
- [Contributions](#contributions)
|
| 372 |
+
|
| 373 |
+
## Dataset Description
|
| 374 |
+
- **Homepage:** https://wandb.ai/github/CodeSearchNet/benchmark
|
| 375 |
+
- **Repository:** https://github.com/github/CodeSearchNet
|
| 376 |
+
- **Paper:** https://arxiv.org/abs/1909.09436
|
| 377 |
+
- **Data:** https://doi.org/10.5281/zenodo.7908468
|
| 378 |
+
- **Leaderboard:** https://wandb.ai/github/CodeSearchNet/benchmark/leaderboard
|
| 379 |
+
|
| 380 |
+
### Dataset Summary
|
| 381 |
+
|
| 382 |
+
CodeSearchNet corpus is a dataset of 2 milllion (comment, code) pairs from opensource libraries hosted on GitHub. It contains code and documentation for several programming languages.
|
| 383 |
+
|
| 384 |
+
CodeSearchNet corpus was gathered to support the [CodeSearchNet challenge](https://wandb.ai/github/CodeSearchNet/benchmark), to explore the problem of code retrieval using natural language.
|
| 385 |
+
|
| 386 |
+
### Supported Tasks and Leaderboards
|
| 387 |
+
|
| 388 |
+
- `language-modeling`: The dataset can be used to train a model for modelling programming languages, which consists in building language models for programming languages.
|
| 389 |
+
|
| 390 |
+
### Languages
|
| 391 |
+
|
| 392 |
+
- Go **programming** language
|
| 393 |
+
- Java **programming** language
|
| 394 |
+
- Javascript **programming** language
|
| 395 |
+
- PHP **programming** language
|
| 396 |
+
- Python **programming** language
|
| 397 |
+
- Ruby **programming** language
|
| 398 |
+
|
| 399 |
+
## Dataset Structure
|
| 400 |
+
|
| 401 |
+
### Data Instances
|
| 402 |
+
|
| 403 |
+
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.
|
| 404 |
+
```
|
| 405 |
+
{
|
| 406 |
+
'id': '0',
|
| 407 |
+
'repository_name': 'organisation/repository',
|
| 408 |
+
'func_path_in_repository': 'src/path/to/file.py',
|
| 409 |
+
'func_name': 'func',
|
| 410 |
+
'whole_func_string': 'def func(args):\n"""Docstring"""\n [...]',
|
| 411 |
+
'language': 'python',
|
| 412 |
+
'func_code_string': '[...]',
|
| 413 |
+
'func_code_tokens': ['def', 'func', '(', 'args', ')', ...],
|
| 414 |
+
'func_documentation_string': 'Docstring',
|
| 415 |
+
'func_documentation_string_tokens': ['Docstring'],
|
| 416 |
+
'split_name': 'train',
|
| 417 |
+
'func_code_url': 'https://github.com/<org>/<repo>/blob/<hash>/src/path/to/file.py#L111-L150'
|
| 418 |
+
}
|
| 419 |
+
```
|
| 420 |
+
### Data Fields
|
| 421 |
+
|
| 422 |
+
- `id`: Arbitrary number
|
| 423 |
+
- `repository_name`: name of the GitHub repository
|
| 424 |
+
- `func_path_in_repository`: tl;dr: path to the file which holds the function in the repository
|
| 425 |
+
- `func_name`: name of the function in the file
|
| 426 |
+
- `whole_func_string`: Code + documentation of the function
|
| 427 |
+
- `language`: Programming language in whoch the function is written
|
| 428 |
+
- `func_code_string`: Function code
|
| 429 |
+
- `func_code_tokens`: Tokens yielded by Treesitter
|
| 430 |
+
- `func_documentation_string`: Function documentation
|
| 431 |
+
- `func_documentation_string_tokens`: Tokens yielded by Treesitter
|
| 432 |
+
- `split_name`: Name of the split to which the example belongs (one of train, test or valid)
|
| 433 |
+
- `func_code_url`: URL to the function code on Github
|
| 434 |
+
|
| 435 |
+
### Data Splits
|
| 436 |
+
|
| 437 |
+
Three splits are available:
|
| 438 |
+
- train
|
| 439 |
+
- test
|
| 440 |
+
- valid
|
| 441 |
+
|
| 442 |
+
## Dataset Creation
|
| 443 |
+
|
| 444 |
+
### Curation Rationale
|
| 445 |
+
|
| 446 |
+
[More Information Needed]
|
| 447 |
+
|
| 448 |
+
### Source Data
|
| 449 |
+
|
| 450 |
+
#### Initial Data Collection and Normalization
|
| 451 |
+
|
| 452 |
+
All information can be retrieved in the [original technical review](https://arxiv.org/pdf/1909.09436.pdf)
|
| 453 |
+
|
| 454 |
+
**Corpus collection**:
|
| 455 |
+
|
| 456 |
+
Corpus has been collected from publicly available open-source non-fork GitHub repositories, using libraries.io to identify all projects which are used by at least one other project, and sort them by “popularity” as indicated by the number of stars and forks.
|
| 457 |
+
|
| 458 |
+
Then, any projects that do not have a license or whose license does not explicitly permit the re-distribution of parts of the project were removed. Treesitter - GitHub's universal parser - has been used to then tokenize all Go, Java, JavaScript, Python, PHP and Ruby functions (or methods) using and, where available, their respective documentation text using a heuristic regular expression.
|
| 459 |
+
|
| 460 |
+
**Corpus filtering**:
|
| 461 |
+
|
| 462 |
+
Functions without documentation are removed from the corpus. This yields a set of pairs ($c_i$, $d_i$) where ci is some function documented by di. Pairs ($c_i$, $d_i$) are passed through the folllowing preprocessing tasks:
|
| 463 |
+
|
| 464 |
+
- Documentation $d_i$ is truncated to the first full paragraph to remove in-depth discussion of function arguments and return values
|
| 465 |
+
- Pairs in which $d_i$ is shorter than three tokens are removed
|
| 466 |
+
- Functions $c_i$ whose implementation is shorter than three lines are removed
|
| 467 |
+
- Functions whose name contains the substring “test” are removed
|
| 468 |
+
- Constructors and standard extenion methods (eg `__str__` in Python or `toString` in Java) are removed
|
| 469 |
+
- Duplicates and near duplicates functions are removed, in order to keep only one version of the function
|
| 470 |
+
|
| 471 |
+
#### Who are the source language producers?
|
| 472 |
+
|
| 473 |
+
OpenSource contributors produced the code and documentations.
|
| 474 |
+
|
| 475 |
+
The dataset was gatherered and preprocessed automatically.
|
| 476 |
+
|
| 477 |
+
### Annotations
|
| 478 |
+
|
| 479 |
+
#### Annotation process
|
| 480 |
+
|
| 481 |
+
[More Information Needed]
|
| 482 |
+
|
| 483 |
+
#### Who are the annotators?
|
| 484 |
+
|
| 485 |
+
[More Information Needed]
|
| 486 |
+
|
| 487 |
+
### Personal and Sensitive Information
|
| 488 |
+
|
| 489 |
+
[More Information Needed]
|
| 490 |
+
|
| 491 |
+
## Considerations for Using the Data
|
| 492 |
+
|
| 493 |
+
### Social Impact of Dataset
|
| 494 |
+
|
| 495 |
+
[More Information Needed]
|
| 496 |
+
|
| 497 |
+
### Discussion of Biases
|
| 498 |
+
|
| 499 |
+
[More Information Needed]
|
| 500 |
+
|
| 501 |
+
### Other Known Limitations
|
| 502 |
+
|
| 503 |
+
[More Information Needed]
|
| 504 |
+
|
| 505 |
+
## Additional Information
|
| 506 |
+
|
| 507 |
+
### Dataset Curators
|
| 508 |
+
|
| 509 |
+
[More Information Needed]
|
| 510 |
+
|
| 511 |
+
### Licensing Information
|
| 512 |
+
|
| 513 |
+
Each example in the dataset has is extracted from a GitHub repository, and each repository has its own license. Example-wise license information is not (yet) included in this dataset: you will need to find out yourself which license the code is using.
|
| 514 |
+
|
| 515 |
+
### Citation Information
|
| 516 |
+
|
| 517 |
+
@article{husain2019codesearchnet,
|
| 518 |
+
title={{CodeSearchNet} challenge: Evaluating the state of semantic code search},
|
| 519 |
+
author={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},
|
| 520 |
+
journal={arXiv preprint arXiv:1909.09436},
|
| 521 |
+
year={2019}
|
| 522 |
+
}
|
| 523 |
+
|
| 524 |
+
### Contributions
|
| 525 |
+
|
| 526 |
+
Thanks to [@SBrandeis](https://github.com/SBrandeis) for adding this dataset.
|
all/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a4a2767a0cae74a774f5bdf7b74626c7c17052334a4de25e005e9e45981c72c0
|
| 3 |
+
size 96096131
|
all/train-00000-of-00002.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b95cf6899f4a28043cf97f54a521c1dbed1f7e1c2a4813ed90320acf2fecf0aa
|
| 3 |
+
size 1007776926
|
all/train-00001-of-00002.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07ef6ec80c1f52ea097cafb4843ea26d1442e79e7ce4083c6a8e17eb4f0d225a
|
| 3 |
+
size 773741030
|
all/validation-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f821590fcdee74a234abdec9ba879ba4740834bf6d2d4d5a1ea06d9c74ac8a39
|
| 3 |
+
size 85606110
|
go/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cb78d8951e9623bc2460d9b29c3c4152724f28c4f685fc019e0aafa071d2b18f
|
| 3 |
+
size 9751451
|
go/train-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4e66892c2ce166318c06279f6354b499642c71873e284c11768d0d1105ef25e4
|
| 3 |
+
size 211174297
|
go/validation-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4f0f7e5f13463f7cdbf81c6e00067fc67d710abe62ed31ed74b12b5e3083fb41
|
| 3 |
+
size 7594978
|
java/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f39dc48cf7e5d99cfe41c997eca8f2e7291cb570ec4d26e74a76a188eb8fa1c
|
| 3 |
+
size 23841883
|
java/train-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d54586c650eb9d26ac31864e9e82bc7376f7c988eca5ae61a5c464a17541c12
|
| 3 |
+
size 389778264
|
java/validation-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a665e1b8b97558f345a6154746ae805163182d49005e4e369478541446b5b45a
|
| 3 |
+
size 12039780
|
javascript/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ef888d473f7e9cd6e38c116cd50749743de8a7528e3bcb29f3c45d2f3992580
|
| 3 |
+
size 8009748
|
javascript/train-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2e97aa6a5682f03c28af4bf6905493fc5ede6beebee972dfdf7be6c25c6e4ab
|
| 3 |
+
size 159368481
|
javascript/validation-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f0ad4ee53bb5adb61539f76ffe43c700804747962ba4430ceffaad0f624bd78
|
| 3 |
+
size 10259588
|
php/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df63b6785f1eba4d61141b14c6fa99aca839977b6d3f4798324310190ea20c09
|
| 3 |
+
size 23807167
|
php/train-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90a99888faaac76fe4c5b5f1be0efb5c311df89f00ffe3824d8037903371451e
|
| 3 |
+
size 460570019
|
php/validation-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1fde2d2ef113b4231549fb1d48a5dfa5aa4e58fec1baa6c229d25b7c4247ddf7
|
| 3 |
+
size 23049777
|
python/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3167e79ee7f081d825bf97b96d3a6b2d96428b00f6a98125be943384d8afae5f
|
| 3 |
+
size 28744352
|
python/train-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ad9e3a4ab10c2c1d8926d2b26ca2bfcc3aadda1477ba29a933391f93806b9fed
|
| 3 |
+
size 521785752
|
python/validation-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22eaacb46ed7e74d582409b85692ef63f5a43e99f9395c2eb736b5c8451422bb
|
| 3 |
+
size 30742555
|
ruby/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2be89df4c1d2c58c6b9606de028262a3a12bd3a0046ed478e9b3135d617c233f
|
| 3 |
+
size 1943180
|
ruby/train-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f2f6c43532ac60c922bb96229e752986fd638144ad8d171d09d4561142ad1c10
|
| 3 |
+
size 38527953
|
ruby/validation-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5872bc60e85ce36a017d01bf0c5f1706e58f42772110ee84c1e91f002b14c54b
|
| 3 |
+
size 1795306
|