code_contests_cpp / README.md
hytopot's picture
Update README with dataset information
a25249a verified

Code Contests C++ Dataset

This dataset contains C++ programming solutions extracted from the DeepMind Code Contests dataset.

Source

This dataset is derived from the DeepMind Code Contests dataset, which contains programming problems and solutions from various coding competition platforms.

Original Dataset Citation

@article{li2022competition,
  title={Competition-level code generation with alphacode},
  author={Li, Yujia and Choi, David and Chung, Junyoung and Kushman, Nate and Schrittwieser, Julian and Leblond, R{\'e}mi and Eccles, Tom and Keeling, James and Gimeno, Felix and Lago, Agustin Dal and others},
  journal={Science},
  volume={378},
  number={6624},
  pages={1092--1097},
  year={2022},
  publisher={American Association for the Advancement of Science}
}

Dataset Description

  • Format: CSV file with a single 'text' column containing C++ programs
  • Splits: train, test, valid (preserved from original dataset)
  • Source Languages: Only C++ (language ID 2 from the original dataset)
  • Preprocessing:
    • Filtered to include only C++ solutions
    • Extracted program text only
    • Preserved original dataset splits

Usage

from datasets import load_dataset

# Load the dataset
dataset = load_dataset("hytopot/code_contests_cpp")

# Access different splits
train_data = dataset["train"]
test_data = dataset["test"]
valid_data = dataset["valid"]

# Example: Print first program in training set
print("First training program:")
print(train_data[0]["text"][:200] + "...")

License

This dataset is derived from the DeepMind Code Contests dataset and is subject to the same license terms as the original dataset. Please refer to the original dataset for licensing information.