repo
stringlengths
12
37
commit_hash
stringlengths
40
40
completion_file
dict
completion_lines
dict
repo_snapshot
sequence
completion_lines_raw
dict
ossf__fuzz-introspector
cb07b07f82792fa47720cc8ccd3e088ed65d9ba2
{"filename":"src/fuzz_introspector/data_loader.py","content":"# Copyright 2021 Fuzz Introspector Aut(...TRUNCATED)
{"infile":[149,222,159],"inproject":[],"common":[169],"commited":[75,45,77,141,58],"non_informative"(...TRUNCATED)
{"filename":[".gitignore","CODE_OF_CONDUCT.md","Dockerfile","LICENSE","README.md","build_all.sh","co(...TRUNCATED)
{"commited":[75,45,77,141,58],"common":[169],"infile":[149,222,159],"inproject":[],"non_informative"(...TRUNCATED)
ossf__fuzz-introspector
cb07b07f82792fa47720cc8ccd3e088ed65d9ba2
{"filename":"src/fuzz_introspector/datatypes/fuzzer_profile.py","content":"# Copyright 2022 Fuzz Int(...TRUNCATED)
{"infile":[262,263,264,265,266,267,332,206,275,307],"inproject":[],"common":[99],"commited":[],"non_(...TRUNCATED)
{"filename":[".gitignore","CODE_OF_CONDUCT.md","Dockerfile","LICENSE","README.md","build_all.sh","co(...TRUNCATED)
{"commited":[],"common":[99],"infile":[262,263,264,265,266,267,332,206,275,307],"inproject":[],"non_(...TRUNCATED)
ossf__fuzz-introspector
cb07b07f82792fa47720cc8ccd3e088ed65d9ba2
{"filename":"src/fuzz_introspector/datatypes/project_profile.py","content":"# Copyright 2022 Fuzz In(...TRUNCATED)
{"infile":[227,198,139,174,175,178,184,185],"inproject":[],"common":[],"commited":[74,76],"non_infor(...TRUNCATED)
{"filename":[".gitignore","CODE_OF_CONDUCT.md","Dockerfile","LICENSE","README.md","build_all.sh","co(...TRUNCATED)
{"commited":[74,76],"common":[],"infile":[227,198,139,174,175,178,184,185],"inproject":[],"non_infor(...TRUNCATED)
fedml-ai__fedml
5c590151a0682dfdd9beedc97636f9176ba00331
{"filename":"test/grpc_benchmark/benchmark/plot/draw_raw.py","content":"# light vs heavy\n# 0: GCPP (...TRUNCATED)
{"infile":[323,229,327,233,593,505],"inproject":[],"common":[],"commited":[],"non_informative":[582,(...TRUNCATED)
{"filename":[".gitignore",".travis.yml","LICENSE","README.md",".github/FUNDING.yml"],"content":[".DS(...TRUNCATED)
{"commited":[],"common":[],"infile":[323,229,327,233,593,500,598,505],"inproject":[],"non_informativ(...TRUNCATED)
fedml-ai__fedml
5c590151a0682dfdd9beedc97636f9176ba00331
{"filename":"doc/theme/lightning_sphinx_theme/pt_lightning_sphinx_theme/extensions/pytorch_tutorials(...TRUNCATED)
{"infile":[100],"inproject":[],"common":[],"commited":[],"non_informative":[140,176,5],"random":[372(...TRUNCATED)
{"filename":[".gitignore",".travis.yml","LICENSE","README.md",".github/FUNDING.yml"],"content":[".DS(...TRUNCATED)
{"commited":[],"common":[],"infile":[100],"inproject":[],"non_informative":[0,1,2,3,4,5,6,7,8,9,10,1(...TRUNCATED)
fedml-ai__fedml
b20a2e2bb09dfaaa394047be93f6ac180c05b2be
{"filename":"test/grpc_benchmark/benchmark/plot/draw_rec.py","content":"import matplotlib.pyplot as (...TRUNCATED)
{"infile":[178],"inproject":[],"common":[],"commited":[],"non_informative":[72,90,158,196,26],"rando(...TRUNCATED)
{"filename":[".gitignore",".travis.yml","LICENSE","README.md",".github/FUNDING.yml"],"content":[".DS(...TRUNCATED)
{"commited":[],"common":[],"infile":[178],"inproject":[],"non_informative":[0,1,2,3,4,5,6,7,8,9,12,1(...TRUNCATED)
fedml-ai__fedml
f62a516182e050f45973868a3ad6b625eade0346
{"filename":"test/grpc_benchmark/benchmark/plot/draw_gpt.py","content":"import matplotlib.pyplot as (...TRUNCATED)
{"infile":[224,201,203],"inproject":[],"common":[],"commited":[],"non_informative":[159,126,23,206],(...TRUNCATED)
{"filename":[".gitignore",".travis.yml","LICENSE","README.md",".github/FUNDING.yml"],"content":[".DS(...TRUNCATED)
{"commited":[],"common":[],"infile":[224,201,203],"inproject":[],"non_informative":[0,1,2,3,4,5,6,7,(...TRUNCATED)
fedml-ai__fedml
b20a2e2bb09dfaaa394047be93f6ac180c05b2be
{"filename":"python/fedml/data/edge_case_examples/data_loader.py","content":"import copy\nimport cop(...TRUNCATED)
{"infile":[112,240,115,118],"inproject":[],"common":[],"commited":[500,905,420,404,151,154,829,302,6(...TRUNCATED)
{"filename":[".gitignore",".travis.yml","LICENSE","README.md",".github/FUNDING.yml"],"content":[".DS(...TRUNCATED)
{"commited":[515,905,785,404,151,154,411,420,679,298,302,688,694,950,56,59,829,449,77,80,993,98,482,(...TRUNCATED)
Significant-Gravitas__Auto-GPT
e5cef441e24685b509c1faab82eddf1daef8dd13
{"filename":"benchmark/agbenchmark/utils/utils.py","content":"# radio charts, logs, helper functions(...TRUNCATED)
{"infile":[97,66,171,211],"inproject":[],"common":[112,281,90,45],"commited":[68,105,75,43,110,115,1(...TRUNCATED)
{"filename":["LICENSE","gui/.gitignore","gui/.metadata","gui/LICENSE","gui/README.md","gui/analysis_(...TRUNCATED)
{"commited":[68,105,75,43,110,115,127],"common":[112,281,90,45],"infile":[97,66,171,211,221],"inproj(...TRUNCATED)
Significant-Gravitas__Auto-GPT
e5cef441e24685b509c1faab82eddf1daef8dd13
{"filename":"benchmark/agbenchmark/utils/challenge.py","content":"import glob\nimport math\nimport o(...TRUNCATED)
{"infile":[43,220,205,214,293,47,225,240,247,245,202,218,64,244,227,246,60],"inproject":[],"common":(...TRUNCATED)
{"filename":["LICENSE","gui/.gitignore","gui/.metadata","gui/LICENSE","gui/README.md","gui/analysis_(...TRUNCATED)
{"commited":[133,267,145,146,276,281,28,287,36,299,300,49,58,69,197,74,203,204,77,206,210,83,212,216(...TRUNCATED)

LCA Project Level Code Completion

How to load the dataset

from datasets import load_dataset

ds = load_dataset('JetBrains-Research/lca-codegen-small', split='test')

Data Point Structure

  • repo – repository name in format {GitHub_user_name}__{repository_name}
  • commit_hash – commit hash
  • completion_file – dictionary with the completion file content in the following format:
  • filename – filepath to the completion file
  • content – content of the completion file
  • completion_lines – dictionary where keys are classes of lines and values are a list of integers (numbers of lines to complete). The classes are:
  • committed – line contains at least one function or class that was declared in the committed files from commit_hash
  • inproject – line contains at least one function or class that was declared in the project (excluding previous)
  • infile – line contains at least one function or class that was declared in the completion file (excluding previous)
  • common – line contains at least one function or class that was classified to be common, e.g., main, get, etc (excluding previous)
  • non_informative – line that was classified to be non-informative, e.g. too short, contains comments, etc
  • random – randomly sampled from the rest of the lines
  • repo_snapshot – dictionary with a snapshot of the repository before the commit. Has the same structure as completion_file, but filenames and contents are orginized as lists.
  • completion_lines_raw – the same as completion_lines, but before sampling.

How we collected the data

To collect the data, we cloned repositories from GitHub where the main language is Python. The completion file for each data point is a .py file that was added to the repository in a commit. The state of the repository before this commit is the repo snapshot.

Small dataset is defined by number of characters in .py files from the repository snapshot. This number is less than 48K.

Dataset Stats

  • Number of datapoints: 144
  • Number of repositories: 46
  • Number of commits: 63

Completion File

  • Number of lines, median: 310.5
  • Number of lines, min: 201
  • Number of lines, max: 1916

Repository Snapshot

  • .py files: median 4, from 0 to 52
  • non .py files: median 19.5, from 1 to 1044
  • .py lines: median 128
  • non .py lines: median 1227

Line Counts:

  • infile: 1430
  • inproject: 95
  • common: 500
  • committed: 1426
  • non-informative: 532
  • random: 703
  • total: 4686

Scores

HF Space

Downloads last month
72
Edit dataset card

Collection including JetBrains-Research/lca-codegen-small