Datasets:

Modalities:
Tabular
Text
Formats:
parquet
ArXiv:
Libraries:
Datasets
Dask
License:
the-heap / README.md
Razvan27's picture
Update README.md
b2b58b5 verified
metadata
license: gpl-3.0
dataset_info:
  - config_name: ANTLR
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv2
        dtype: bool
    splits:
      - name: train
        num_bytes: 7510977
        num_examples: 538
    download_size: 2675840
    dataset_size: 7510977
  - config_name: Ada
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv2
        dtype: bool
    splits:
      - name: train
        num_bytes: 511278642
        num_examples: 34068
    download_size: 96614773
    dataset_size: 511278642
  - config_name: Agda
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv2
        dtype: bool
    splits:
      - name: train
        num_bytes: 15361938
        num_examples: 3021
    download_size: 5215635
    dataset_size: 15361938
  - config_name: Apex
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
    splits:
      - name: train
        num_bytes: 23996381
        num_examples: 7561
    download_size: 5783937
    dataset_size: 23996381
  - config_name: Assembly
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 1981007204
        num_examples: 101093
    download_size: 522351165
    dataset_size: 1981007204
  - config_name: C
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
      - name: near_duplicates_githubcode
        dtype: bool
    splits:
      - name: train
        num_bytes: 55418864677
        num_examples: 3076470
    download_size: 17212240803
    dataset_size: 55418864677
  - config_name: C#
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
      - name: near_duplicates_githubcode
        dtype: bool
    splits:
      - name: train
        num_bytes: 21339310443
        num_examples: 3257456
    download_size: 4999194821
    dataset_size: 21339310443
  - config_name: C++
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
    splits:
      - name: train
        num_bytes: 52867745746
        num_examples: 4469823
    download_size: 15576488275
    dataset_size: 52867745746
  - config_name: COBOL
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 6354750
        num_examples: 1172
    download_size: 1580432
    dataset_size: 6354750
  - config_name: Clojure
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 1291914609
        num_examples: 269118
    download_size: 408923396
    dataset_size: 1291914609
  - config_name: Common Lisp
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 131655045
        num_examples: 13922
    download_size: 42618151
    dataset_size: 131655045
  - config_name: Coq
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 443362412
        num_examples: 22549
    download_size: 109662779
    dataset_size: 443362412
  - config_name: Crystal
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 28728700
        num_examples: 6818
    download_size: 9197310
    dataset_size: 28728700
  - config_name: Cuda
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 200429766
        num_examples: 12418
    download_size: 53335186
    dataset_size: 200429766
  - config_name: D
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 510570843
        num_examples: 54034
    download_size: 109300069
    dataset_size: 510570843
  - config_name: Dart
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 2144845428
        num_examples: 412675
    download_size: 573104555
    dataset_size: 2144845428
  - config_name: EJS
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
    splits:
      - name: train
        num_bytes: 69992145
        num_examples: 12832
    download_size: 19991541
    dataset_size: 69992145
  - config_name: Elixir
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 435157867
        num_examples: 102874
    download_size: 128283753
    dataset_size: 435157867
  - config_name: Emacs Lisp
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 239724854
        num_examples: 7312
    download_size: 81744342
    dataset_size: 239724854
  - config_name: Erlang
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 308591403
        num_examples: 27322
    download_size: 89768203
    dataset_size: 308591403
  - config_name: F#
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 172856155
        num_examples: 13282
    download_size: 42586227
    dataset_size: 172856155
  - config_name: Forth
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 66905489
        num_examples: 5129
    download_size: 23940678
    dataset_size: 66905489
  - config_name: Go
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_githubcode
        dtype: bool
    splits:
      - name: train
        num_bytes: 25046545203
        num_examples: 2328529
    download_size: 7593190802
    dataset_size: 25046545203
  - config_name: Groovy
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 203145694
        num_examples: 47366
    download_size: 56029180
    dataset_size: 203145694
  - config_name: Hack
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
    splits:
      - name: train
        num_bytes: 287985128
        num_examples: 37189
    download_size: 113961086
    dataset_size: 287985128
  - config_name: Haskell
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 615832401
        num_examples: 106583
    download_size: 208489602
    dataset_size: 615832401
  - config_name: Java
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_githubcode
        dtype: bool
    splits:
      - name: train
        num_bytes: 31844651079
        num_examples: 5168193
    download_size: 8127900245
    dataset_size: 31844651079
  - config_name: JavaScript
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_githubcode
        dtype: bool
    splits:
      - name: train
        num_bytes: 43525990057
        num_examples: 1907803
    download_size: 15383888418
    dataset_size: 43525990057
  - config_name: Julia
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 298620590
        num_examples: 36830
    download_size: 98110198
    dataset_size: 298620590
  - config_name: Kotlin
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 3703734952
        num_examples: 1042136
    download_size: 1021795287
    dataset_size: 3703734952
  - config_name: Less
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 93979013
        num_examples: 7308
    download_size: 25483878
    dataset_size: 93979013
  - config_name: Lua
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 7912766347
        num_examples: 905120
    download_size: 2298420302
    dataset_size: 7912766347
  - config_name: Mathematica
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
    splits:
      - name: train
        num_bytes: 4713765438
        num_examples: 21208
    download_size: 2519969870
    dataset_size: 4713765438
  - config_name: Matlab
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
    splits:
      - name: train
        num_bytes: 3452066464
        num_examples: 599085
    download_size: 1134214891
    dataset_size: 3452066464
  - config_name: NetLogo
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 41583405
        num_examples: 855
    download_size: 11494213
    dataset_size: 41583405
  - config_name: NewLisp
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
    splits:
      - name: train
        num_bytes: 50986862
        num_examples: 5123
    download_size: 13095573
    dataset_size: 50986862
  - config_name: Nix
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 196365435
        num_examples: 70407
    download_size: 72725113
    dataset_size: 196365435
  - config_name: OCaml
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 545917402
        num_examples: 60863
    download_size: 189898513
    dataset_size: 545917402
  - config_name: Objective-C
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
    splits:
      - name: train
        num_bytes: 2896581136
        num_examples: 520332
    download_size: 861034075
    dataset_size: 2896581136
  - config_name: PHP
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
      - name: near_duplicates_githubcode
        dtype: bool
    splits:
      - name: train
        num_bytes: 24399139840
        num_examples: 3310243
    download_size: 7188346390
    dataset_size: 24399139840
  - config_name: Pascal
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 5802131664
        num_examples: 180652
    download_size: 1875884424
    dataset_size: 5802131664
  - config_name: Perl
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_githubcode
        dtype: bool
    splits:
      - name: train
        num_bytes: 3279292222
        num_examples: 224753
    download_size: 1040654475
    dataset_size: 3279292222
  - config_name: Processing
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 82142513
        num_examples: 20304
    download_size: 27676978
    dataset_size: 82142513
  - config_name: Prolog
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 523394698
        num_examples: 17570
    download_size: 150267232
    dataset_size: 523394698
  - config_name: Python
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
      - name: near_duplicates_codeparrot
        dtype: bool
      - name: near_duplicates_githubcode
        dtype: bool
      - name: exact_duplicates_githubcode
        dtype: bool
      - name: exact_duplicates_codeparrot
        dtype: bool
    splits:
      - name: train
        num_bytes: 16267034803
        num_examples: 1595919
    download_size: 5004234209
    dataset_size: 16267034803
  - config_name: R
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 85119542
        num_examples: 11679
    download_size: 26896524
    dataset_size: 85119542
  - config_name: Raku
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
    splits:
      - name: train
        num_bytes: 954459
        num_examples: 689
    download_size: 379585
    dataset_size: 954459
  - config_name: Ruby
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_githubcode
        dtype: bool
    splits:
      - name: train
        num_bytes: 2271538867
        num_examples: 662915
    download_size: 710201834
    dataset_size: 2271538867
  - config_name: Rust
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_githubcode
        dtype: bool
    splits:
      - name: train
        num_bytes: 7063726414
        num_examples: 802707
    download_size: 2002966049
    dataset_size: 7063726414
  - config_name: SQL
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_githubcode
        dtype: bool
    splits:
      - name: train
        num_bytes: 369918207
        num_examples: 40800
    download_size: 80061540
    dataset_size: 369918207
  - config_name: Scala
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_redpajama
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_githubcode
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_redpajama
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_githubcode
        dtype: bool
    splits:
      - name: train
        num_bytes: 937416206
        num_examples: 210630
    download_size: 292372201
    dataset_size: 937416206
  - config_name: Scheme
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 1302712946
        num_examples: 50222
    download_size: 444183470
    dataset_size: 1302712946
  - config_name: Scilab
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 39780040
        num_examples: 3896
    download_size: 18917752
    dataset_size: 39780040
  - config_name: Starlark
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
    splits:
      - name: train
        num_bytes: 3415162
        num_examples: 487
    download_size: 1304191
    dataset_size: 3415162
  - config_name: Swift
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 2209604083
        num_examples: 434849
    download_size: 618204236
    dataset_size: 2209604083
  - config_name: Vue
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 1825065040
        num_examples: 321502
    download_size: 556576193
    dataset_size: 1825065040
  - config_name: WebAssembly
    features:
      - name: id
        dtype: int64
      - name: file_name
        dtype: string
      - name: file_path
        dtype: string
      - name: content
        dtype: string
      - name: size
        dtype: int64
      - name: language
        dtype: string
      - name: extension
        dtype: string
      - name: total_lines
        dtype: int64
      - name: avg_line_length
        dtype: float64
      - name: max_line_length
        dtype: int64
      - name: alphanum_fraction
        dtype: float64
      - name: repo_name
        dtype: string
      - name: repo_stars
        dtype: int64
      - name: repo_forks
        dtype: int64
      - name: repo_open_issues
        dtype: int64
      - name: repo_license
        dtype: string
      - name: repo_extraction_date
        dtype: string
      - name: exact_duplicates_stackv2
        dtype: bool
      - name: exact_duplicates_stackv1
        dtype: bool
      - name: near_duplicates_stackv2
        dtype: bool
      - name: near_duplicates_stackv1
        dtype: bool
    splits:
      - name: train
        num_bytes: 74028223
        num_examples: 544
    download_size: 21059883
    dataset_size: 74028223
configs:
  - config_name: ANTLR
    data_files:
      - split: train
        path: data/ANTLR/train-*
  - config_name: Ada
    data_files:
      - split: train
        path: data/Ada/train-*
  - config_name: Agda
    data_files:
      - split: train
        path: data/Agda/train-*
  - config_name: Apex
    data_files:
      - split: train
        path: data/Apex/train-*
  - config_name: Assembly
    data_files:
      - split: train
        path: data/Assembly/train-*
  - config_name: C
    data_files:
      - split: train
        path: data/C/train-*
  - config_name: C#
    data_files:
      - split: train
        path: data/C#/train-*
  - config_name: C++
    data_files:
      - split: train
        path: data/C++/train-*
  - config_name: COBOL
    data_files:
      - split: train
        path: data/COBOL/train-*
  - config_name: Clojure
    data_files:
      - split: train
        path: data/Clojure/train-*
  - config_name: Common Lisp
    data_files:
      - split: train
        path: data/Common Lisp/train-*
  - config_name: Coq
    data_files:
      - split: train
        path: data/Coq/train-*
  - config_name: Crystal
    data_files:
      - split: train
        path: data/Crystal/train-*
  - config_name: Cuda
    data_files:
      - split: train
        path: data/Cuda/train-*
  - config_name: D
    data_files:
      - split: train
        path: data/D/train-*
  - config_name: Dart
    data_files:
      - split: train
        path: data/Dart/train-*
  - config_name: EJS
    data_files:
      - split: train
        path: data/EJS/train-*
  - config_name: Elixir
    data_files:
      - split: train
        path: data/Elixir/train-*
  - config_name: Emacs Lisp
    data_files:
      - split: train
        path: data/Emacs Lisp/train-*
  - config_name: Erlang
    data_files:
      - split: train
        path: data/Erlang/train-*
  - config_name: F#
    data_files:
      - split: train
        path: data/F#/train-*
  - config_name: Forth
    data_files:
      - split: train
        path: data/Forth/train-*
  - config_name: Go
    data_files:
      - split: train
        path: data/Go/train-*
  - config_name: Groovy
    data_files:
      - split: train
        path: data/Groovy/train-*
  - config_name: Hack
    data_files:
      - split: train
        path: data/Hack/train-*
  - config_name: Haskell
    data_files:
      - split: train
        path: data/Haskell/train-*
  - config_name: Java
    data_files:
      - split: train
        path: data/Java/train-*
  - config_name: JavaScript
    data_files:
      - split: train
        path: data/JavaScript/train-*
  - config_name: Julia
    data_files:
      - split: train
        path: data/Julia/train-*
  - config_name: Kotlin
    data_files:
      - split: train
        path: data/Kotlin/train-*
  - config_name: Less
    data_files:
      - split: train
        path: data/Less/train-*
  - config_name: Lua
    data_files:
      - split: train
        path: data/Lua/train-*
  - config_name: Mathematica
    data_files:
      - split: train
        path: data/Mathematica/train-*
  - config_name: Matlab
    data_files:
      - split: train
        path: data/Matlab/train-*
  - config_name: NetLogo
    data_files:
      - split: train
        path: data/NetLogo/train-*
  - config_name: NewLisp
    data_files:
      - split: train
        path: data/NewLisp/train-*
  - config_name: Nix
    data_files:
      - split: train
        path: data/Nix/train-*
  - config_name: OCaml
    data_files:
      - split: train
        path: data/OCaml/train-*
  - config_name: Objective-C
    data_files:
      - split: train
        path: data/Objective-C/train-*
  - config_name: PHP
    data_files:
      - split: train
        path: data/PHP/train-*
  - config_name: Pascal
    data_files:
      - split: train
        path: data/Pascal/train-*
  - config_name: Perl
    data_files:
      - split: train
        path: data/Perl/train-*
  - config_name: Processing
    data_files:
      - split: train
        path: data/Processing/train-*
  - config_name: Prolog
    data_files:
      - split: train
        path: data/Prolog/train-*
  - config_name: Python
    data_files:
      - split: train
        path: data/Python/train-*
  - config_name: R
    data_files:
      - split: train
        path: data/R/train-*
  - config_name: Raku
    data_files:
      - split: train
        path: data/Raku/train-*
  - config_name: Ruby
    data_files:
      - split: train
        path: data/Ruby/train-*
  - config_name: Rust
    data_files:
      - split: train
        path: data/Rust/train-*
  - config_name: SQL
    data_files:
      - split: train
        path: data/SQL/train-*
  - config_name: Scala
    data_files:
      - split: train
        path: data/Scala/train-*
  - config_name: Scheme
    data_files:
      - split: train
        path: data/Scheme/train-*
  - config_name: Scilab
    data_files:
      - split: train
        path: data/Scilab/train-*
  - config_name: Starlark
    data_files:
      - split: train
        path: data/Starlark/train-*
  - config_name: Swift
    data_files:
      - split: train
        path: data/Swift/train-*
  - config_name: Vue
    data_files:
      - split: train
        path: data/Vue/train-*
  - config_name: WebAssembly
    data_files:
      - split: train
        path: data/WebAssembly/train-*

The Heap Dataset

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.

Is your code in The Heap?

If you would like to have your data removed from the dataset, follow the instructions on GitHub.

Usage

Using the Datasets API, our dataset can be used as follows:

from datasets import load_dataset

dataset_name = 'redpajama'
language = 'Python'

ds = load_dataset(
    "AISE-TUDelft/the-heap",
    f"{language}",
    split="train",
    num_proc=16
)

ds = ds.filter(lambda x: not x[f'exact_duplicates_{dataset_name}'] and not x[f'near_duplicates_{dataset_name}'])

Collection

We collect up to 50,000 public repositories using the GitHub API, focusing on license type, star count, and creation date. Repositories with non-permissive licenses are prioritized to reduce contamination, as public code datasets we deduplicate against primarily focus on permissive or no-license repositories. We select repositories created before August 2024 in decreasing order of their star counts. To handle GitHub rate limits, we use timeouts and pagination during the scraping process.

Copyleft licenses included in the The Heap

License Family
CECILL-1.0, CECILL-1.1, CECILL-2.0,
CECILL-2.1, CECILL-C, EPL-1.0, EPL-2.0,
LGPL-2.1, LGPL-3.0, MS-RL, MPL-2.0
Weak Copyleft
GPL-2.0, GPL-3.0 Strong Copyleft
AGPL-3.0, EUPL-1.1, EUPL-1.2, OSL-3.0 Network Copyleft

The features we extract for each repository are illustrated in the example below.

  {
    "id": 126178683,
    "full_name": "halo-dev/halo",
    "html_url": "https://github.com/halo-dev/halo",
    "stargazers_count": 29115,
    "forks_count": 8985,
    "watchers_count": 29115,
    "open_issues_count": 278,
    "language": "Java",
    "created_at": "2018-03-21T12:56:52Z",
    "pushed_at": "2023-10-28T16:29:39Z",
    "license": {
      "key": "gpl-3.0",
      "name": "GNU General Public License v3.0",
      "spdx_id": "GPL-3.0",
      "url": "https://api.github.com/licenses/gpl-3.0",
      "node_id": "MDc6TGljZW5zZTk="
    },
    "retrieval_date": "10/30/2023, 3:24:57 PM (Europe/Amsterdam)"
  }

Repository Fields

  • id: unique id of the repo
  • full_name: complete name of the repo
  • html_url: URL to the repo
  • stargazers_count: number of stars of the repo
  • forks_count: number of forks of the repo
  • watchers_count: number of watchers of the repo
  • open_issues_count: number of open issues of the repo at the extraction time
  • language: main language of the repo
  • created_at: creation date of the repo
  • pushed_at: date of the most recent push to the repo until the extraction date
  • license: license type of the repo
  • retrieval_date: date when the repo was scraped from GitHub

We start by retrieving repositories with more than 900 stars using two-month tumbling windows. If we hit the 1000 repository limit per window (for a personal GitHub account), we shorten the search space to a one-month window and restart the iteration. Otherwise, the window advances by two months. Once the entire timeframe (until August 2024) is covered, we reduce the star search space: between 900 and 100 stars, we decrease the interval by 50 (e.g. search between [900, 850]), between 100 and 10 stars, we decrease the interval by 10, and for the last 10 stars, we decrease by 1. Since most repositories fall within the 0-100 star range (e.g. Figure 1 showcases the distribution of repositories with up to 500 stars for Java), using the creation date and star count filters helps us avoid API limits and scrape more data by narrowing the search space. The creation date window can be reduced even further (week or day level), in order to extract more data. We remove any potential duplicated repositories obtained due to the pagination process. Lastly, we extract all the files corresponding to each language. We extend the programming languages extension list used for The Stack with 4 languages: EJS, Raku, Starlark, and WebAssembly.

Figure 1: Distribution of scraped repositories with at most 500 stars.

Figure 1: Distribution of scraped repositories with at most 500 stars for Java

Cleaning

The next stage in our dataset pipeline is the cleaning procedure. We exclude any files larger than 10 MB and those with fewer than 10 words.

Deduplication

The final stage of our dataset pipeline is the deduplication process. We apply both exact and near deduplication against open code datasets listed in the table below.

Open code datasets used for deduplication

Dataset Source
The Stack V2 All permissively licensed and unlicensed files collected in the Software Heritage archive.
The Stack All permissively licensed repositories collected in the GHArchive and scraped from GitHub.
Red Pajama Repositories from the GitHub dataset hosted by Google BigQuery licensed under MIT, BSD, or Apache licenses.
GitHub Code Repositories from the GitHub dataset hosted by Google BigQuery.
CodeParrot All Python files from the GitHub dataset hosted by Google BigQuery.

Exact Deduplication

We remove exact duplicates within our dataset itself, and then we apply exact deduplication against the open datasets. For that, we use the sha256 function to generate hashes for each file. We choose this hash function because it provides a uniform distribution of hash values, minimizes collisions, and ensures even distribution across the hash space.

Near Deduplication

We apply the MinHashLSH algorithm using the datasketch1 library. To calculate the minhashes, we use the same hash function as above, but we extract the first 16 bytes to generate 128-bit hash values. This approach balances the need for a strong hash function with the efficiency of a shorter hash length.

Additionally, we use 128 file permutations for LSH, with weights of 0.4 for precision and 0.6 for recall. We generate 7-character shingles after lowercasing the file content and removing whitespace. We find that 7-shingles provide a reasonable trade-off between the number of shingles and the data processed, being small enough to keep the number of unique shingles manageable yet large enough to provide meaningful comparisons. It was shown that the number of shingles should be large enough to ensure a low probability of shingles appearing across documents, with k = 5 suggested for smaller documents such as emails. However, code files usually contain a larger dictionary of characters than emails, including arithmetic and comparison operators which are less frequent in emails. Thus, given the increased complexity and size of code files, we consider 7-shingles to be appropriate to capture sufficient context, ensuring uniqueness and reducing false positives, which smaller shingles such as k = 5 might fail to achieve. Furthermore, k = 9 was shown to be a safe choice for large research articles, however, for our needs, 7-shingles strike a balance between accuracy and computational efficiency, crucial for handling the extensive size of the datasets. This choice provides better computational efficiency by reducing the number of comparisons while maintaining a manageable shingle space. Lastly, we use a Jaccard similarity threshold of 0.7, which proved to be efficient for both SantaCoder and StarCoder models. A high threshold reduces false positives, leading to fewer unnecessary comparisons and lower computational overhead. Moreover, this standard threshold value has been shown to be robust for duplicate detection.

Instead of removing exact and near duplicates found against other open datasets, we add a boolean mask to our dataset. This approach enhances reproducibility by allowing researchers to filter the dataset for unique files, according to their specific requirements.

The final dataset structure is shown in the example below.

{
    "id": 538,
    "file_name": "Font.java",
    "file_path": ".../lateralgm/resources/Font.java",
    "content": "*/ package org.lateralgm.resources; import java.util.EnumMap; import org.lateralgm.main.Prefs; ...",
    "size": 1,985,
    "language": "Java",
    "extension": ".java",
    "total_lines": 3,835,
    "avg_line_length": 29,834,
    "max_line_length": 567,
    "alphanum_fraction": 0,645,
    "repo_name": "lwizchz/GameMaker-HTML5-Player",
    "repo_stars": 22,
    "repo_forks": 9,
    "repo_open_issues": 0,
    "repo_license": "GPL-3.0",
    "repo_extraction_date": "9/19/2024, 2:48:21 PM (Europe/Amsterdam)"
    "exact_duplicates_stackv1": False,
    "exact_duplicates_stackv2": True,
    "near_duplicates_stackv1": True,
    "near_duplicates_stackv2": False,
     ....
 
  } 

Dataset Fields

  • id: unique ID of the file
  • file_name: name of the file extracted from its repo
  • file_path: path to the file in its repo
  • content: content of the file
  • size: size of the file
  • language: language of the file
  • total_lines: number of total lines of the file
  • avg_line_length: average line length of the file
  • max_line_length: max line length of the file
  • alphanum_fraction: alphanumeric fraction of the file
  • extension: language extension of the file
  • repo_name: complete name of the file's repo
  • repo_stars: number of stars of the file's repo
  • repo_forks: number of forks of the file's repo
  • repo_open_issues: number of open issues of the file's repo at the extraction date
  • repo_license: license of the file's repo
  • repo_extraction_date: extraction date of file's repo
  • 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)
  • 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)

The distribution of the languages in The Heap is presented in the table below. The third column shows the number of files collected after filtering based on file size and word count. The last column indicates the number of files remaining after removing exact duplicates within the dataset, with exact and near duplicates compared to other datasets flagged among the remaining files.

Programming languages included in The Heap

Language Repositories Raw Files Unique Files
Ada 676 41,367 34,068
Agda 142 5,483 3,021
ANTLR 101 564 538
Apex 253 17,833 7,561
Assembly 7,100 208,896 101,093
C 50,000 16,585,280 3,076,470
C# 50,000 5,906,716 3,257,456
C++ 50,000 14,891,856 4,469,823
Clojure 27,107 380,567 269,118
Cobol 341 2,242 1,172
Common Lisp 796 45,083 13,922
Coq 477 54,137 22,549
Cuda 1,191 26,948 12,418
Crystal 368 11,606 6,818
D 1,185 185,630 54,034
Dart 11,907 484,935 412,675
EJS 1,475 15,513 12,832
Elixir 2,371 643,856 102,874
Emacs Lisp 377 8,260 7,312
Erlang 1,240 55,932 27,322
F# 876 22,152 13,282
Forth 222 28,287 5,129
Go 50,000 8,506,379 2,328,529
Groovy 2,198 60,299 47,366
Hack 1,379 84,916 37,189
Haskell 8,023 122,788 106,583
Java 50,000 6,989,601 5,168,193
JavaScript 50,000 8,289,901 1,907,803
Julia 2,859 46,284 36,830
Kotlin 21,665 1,467,343 1,042,136
Less 433 17,276 7,308
Lua 42,241 4,605,230 905,120
Mathematica 1,528 164,498 21,208
Matlab 20,828 1,051,354 599,085
NetLogo 332 900 855
NewLisp 35 5,819 5,123
Nix 1,892 75,093 70,407
Objective-C 7,700 1,899,714 520,332
OCaml 1,961 121,890 60,863
Pascal 5,218 330,832 180,652
Perl 14,673 1,798,520 224,753
PHP 50,000 12,707,727 3,310,243
Processing 2,950 24,723 20,304
Prolog 1,071 38,995 17,570
Python 50,000 2,290,182 1,595,919
R 44,993 589,139 11,679
Raku 158 1384 689
Ruby 13,378 1,579,635 662,915
Rust 42,847 2,496,177 802,707
Scala 5,893 749,370 210,630
Scheme 1,878 106,620 50,222
Scilab 199 4,531 3,896
SQL 130 47,185 40,800
Starlark 146 524 487
Swift 13,924 633,819 434,849
Vue 14,858 457,605 321,502
WebAssembly 68 834 544
Total 733,663 96,945,943 32,666,778