Datasets:

Modalities:
Tabular
Text
Formats:
parquet
ArXiv:
Libraries:
Datasets
Dask
License:
Razvan27 commited on
Commit
9a5d651
·
verified ·
1 Parent(s): be7fb1c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +38 -33
README.md CHANGED
@@ -3211,17 +3211,34 @@ configs:
3211
  - split: train
3212
  path: data/WebAssembly/train-*
3213
  ---
3214
- # DISCLAIMER
3215
-
3216
- This represents only a subset of the final dataset (taking into account the new HuggingFace LFS storage limits). The complete dataset will be released following the camera-ready submission of our paper.
3217
-
3218
  # The Heap Dataset
3219
 
3220
  We develop **The Heap**, a new contamination-free multilingual code dataset comprising 57 languages, which facilitates LLM evaluation reproducibility. The reproduction packge can be found [here](https://anonymous.4open.science/r/heap-forge/README.md).
3221
 
3222
  # Is your code in The Heap?
3223
 
3224
- An opt-out mechanism will be provided for the final release of the dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3225
 
3226
  # Collection
3227
 
@@ -3332,19 +3349,23 @@ The final dataset structure is shown in the example below.
3332
 
3333
  ```json
3334
  {
 
3335
  "file_name": "Font.java",
3336
  "file_path": ".../lateralgm/resources/Font.java",
3337
  "content": "*/ package org.lateralgm.resources; import java.util.EnumMap; import org.lateralgm.main.Prefs; ...",
3338
- "file_size": 1,985,
3339
  "language": "Java",
3340
  "extension": ".java",
 
 
 
 
3341
  "repo_name": "lwizchz/GameMaker-HTML5-Player",
3342
  "repo_stars": 22,
3343
  "repo_forks": 9,
3344
  "repo_open_issues": 0,
3345
- "repo_created_at": "2011-09-10T16:05:20Z",
3346
- "repo_pushed_at": "2013-05-06T23:00:17Z",
3347
- "sha": "00046809b218b2c058f4be7...",
3348
  "exact_duplicates_stackv1": False,
3349
  "exact_duplicates_stackv2": True,
3350
  "near_duplicates_stackv1": True,
@@ -3357,18 +3378,23 @@ The final dataset structure is shown in the example below.
3357
 
3358
  ### Dataset Fields
3359
 
 
3360
  - **file_name**: name of the file extracted from its repo
3361
  - **file_path**: path to the file in its repo
3362
  - **content**: content of the file
3363
- - **file_size**: size of the file
3364
  - **language**: language of the file
 
 
 
 
3365
  - **extension**: language extension of the file
3366
  - **repo_name**: complete name of the file's repo
3367
  - **repo_stars**: number of stars of the file's repo
3368
  - **repo_forks**: number of forks of the file's repo
3369
  - **repo_open_issues**: number of open issues of the file's repo at the extraction date
3370
- - **repo_created_at**: creation date of the file's repo
3371
- - **repo_pushed_at**: date of the most recent push to the file's repo until the extraction date
3372
  - **exact_duplicates_pubdataset**: boolean flag stating if there are any exact duplicate files found against another public dataset (The Stackv2, The Stack, RedPajama, GithubCode, CodeParrot)
3373
  - **near_duplicates_pubdataset**: boolean flag stating if there are any near duplicate files found against another public dataset (The Stackv2, The Stack, RedPajama, GithubCode, CodeParrot)
3374
 
@@ -3435,24 +3461,3 @@ The distribution of the languages in The Heap is presented in the table below. T
3435
  | Vue | 14,858 | 457,605 | 321,502 |
3436
  | WebAssembly | 68 | 834 | 544 |
3437
  | Total | 733,564 | 96,945,943 | 32,666,778 |
3438
-
3439
- # Usage
3440
-
3441
- Using the Datasets API, our dataset can be used as follows:
3442
-
3443
- ```python
3444
- from datasets import load_dataset
3445
-
3446
- dataset_name = 'redpajama'
3447
- language = 'Python'
3448
-
3449
- ds = load_dataset(
3450
- "AISE-TUDelft/the-heap",
3451
- f"{language}",
3452
- split="train",
3453
- num_proc=16
3454
- )
3455
-
3456
- ds = ds.filter(lambda x: not x[f'exact_duplicates_{dataset_name}'] and not x[f'near_duplicates_{dataset_name}'])
3457
-
3458
- ```
 
3211
  - split: train
3212
  path: data/WebAssembly/train-*
3213
  ---
 
 
 
 
3214
  # The Heap Dataset
3215
 
3216
  We develop **The Heap**, a new contamination-free multilingual code dataset comprising 57 languages, which facilitates LLM evaluation reproducibility. The reproduction packge can be found [here](https://anonymous.4open.science/r/heap-forge/README.md).
3217
 
3218
  # Is your code in The Heap?
3219
 
3220
+ If you would like to have your data removed from the dataset, follow the instructions on [GitHub](https://github.com/AISE-TUDelft/The-Heap-opt-out).
3221
+
3222
+ # Usage
3223
+
3224
+ Using the Datasets API, our dataset can be used as follows:
3225
+
3226
+ ```python
3227
+ from datasets import load_dataset
3228
+
3229
+ dataset_name = 'redpajama'
3230
+ language = 'Python'
3231
+
3232
+ ds = load_dataset(
3233
+ "AISE-TUDelft/the-heap",
3234
+ f"{language}",
3235
+ split="train",
3236
+ num_proc=16
3237
+ )
3238
+
3239
+ ds = ds.filter(lambda x: not x[f'exact_duplicates_{dataset_name}'] and not x[f'near_duplicates_{dataset_name}'])
3240
+
3241
+ ```
3242
 
3243
  # Collection
3244
 
 
3349
 
3350
  ```json
3351
  {
3352
+ "id": 538,
3353
  "file_name": "Font.java",
3354
  "file_path": ".../lateralgm/resources/Font.java",
3355
  "content": "*/ package org.lateralgm.resources; import java.util.EnumMap; import org.lateralgm.main.Prefs; ...",
3356
+ "size": 1,985,
3357
  "language": "Java",
3358
  "extension": ".java",
3359
+ "total_lines": 3,835,
3360
+ "avg_line_length": 29,834,
3361
+ "max_line_length": 567,
3362
+ "alphanum_fraction": 0,645,
3363
  "repo_name": "lwizchz/GameMaker-HTML5-Player",
3364
  "repo_stars": 22,
3365
  "repo_forks": 9,
3366
  "repo_open_issues": 0,
3367
+ "repo_license": "GPL-3.0",
3368
+ "repo_extraction_date": "9/19/2024, 2:48:21 PM (Europe/Amsterdam)"
 
3369
  "exact_duplicates_stackv1": False,
3370
  "exact_duplicates_stackv2": True,
3371
  "near_duplicates_stackv1": True,
 
3378
 
3379
  ### Dataset Fields
3380
 
3381
+ - **id**: unique ID of the file
3382
  - **file_name**: name of the file extracted from its repo
3383
  - **file_path**: path to the file in its repo
3384
  - **content**: content of the file
3385
+ - **size**: size of the file
3386
  - **language**: language of the file
3387
+ - **total_lines**: number of total lines of the file
3388
+ - **avg_line_length**: average line length of the file
3389
+ - **max_line_length**: max line length of the file
3390
+ - **alphanum_fraction**: alphanumeric fraction of the file
3391
  - **extension**: language extension of the file
3392
  - **repo_name**: complete name of the file's repo
3393
  - **repo_stars**: number of stars of the file's repo
3394
  - **repo_forks**: number of forks of the file's repo
3395
  - **repo_open_issues**: number of open issues of the file's repo at the extraction date
3396
+ - **repo_license**: license of the file's repo
3397
+ - **repo_extraction_date**: extraction date of file's repo
3398
  - **exact_duplicates_pubdataset**: boolean flag stating if there are any exact duplicate files found against another public dataset (The Stackv2, The Stack, RedPajama, GithubCode, CodeParrot)
3399
  - **near_duplicates_pubdataset**: boolean flag stating if there are any near duplicate files found against another public dataset (The Stackv2, The Stack, RedPajama, GithubCode, CodeParrot)
3400
 
 
3461
  | Vue | 14,858 | 457,605 | 321,502 |
3462
  | WebAssembly | 68 | 834 | 544 |
3463
  | Total | 733,564 | 96,945,943 | 32,666,778 |