In short.
CodeContests is a competitive programming dataset for developers and researchers training or evaluating code-generating AI, but meaningful evaluation requires withholding private tests and supplying a code execution system. Used in AlphaCode training, it combines English problems, human solutions and public, private and generated tests. Its schema includes language identifiers, difficulty information and execution constraints. The documentation supports contest-focused experiments; it does not establish dataset quality, reproducible benchmark results or performance on everyday software development. Dataset loading, training and solution execution were not performed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is limited to the complete captured CodeContests README at the exact supplied revision, including its CC BY 4.0 declaration and acknowledgments for Codeforces, Description2Code and CodeNet. Dataset files, other repository folders and every linked page are excluded. Actual record contents, loading procedures, execution behavior, benchmark performance and item-level rights were not independently assessed. Nothing was executed.
The overview
Identity
CodeContests is published as deepmind/code_contests on Hugging Face. Each record represents a competitive programming problem. The card says it was used to train AlphaCode and links the paper Competition-Level Code Generation with AlphaCode [https://arxiv.org/abs/2203.07814v1].
The documented sources are Aizu, AtCoder, CodeChef, Codeforces and HackerEarth, with some training material drawn from Description2Code and CodeNet. Problem descriptions are in English; some records retain an original description and a translation flag.
Assessment
The dataset is a useful fit for contest-focused code generation because it connects problem statements to both human programs and test cases. This supports studying whether generated programs solve specified algorithmic tasks.
Its documented use in AlphaCode does not establish that another model will reproduce AlphaCode's results. The supplied card contains no measured results, dataset quality audit or evidence of transfer to application development and maintenance.
Users
Researchers can use the problem-and-solution structure for training experiments and the test cases for evaluating generated programs. Experienced developers building evaluation systems can use the language labels, execution limits and problem metadata to configure their judges.
Beginners can understand individual records as a programming question, example tests and candidate answers. Building a model-training or automated judging system requires additional knowledge and software; the card is not a complete tutorial.
Capabilities
Records contain descriptions, public_tests, private_tests, generated_tests, correct solutions and incorrect_solutions. Additional fields describe the source, difficulty, Codeforces metadata, time and memory limits, and any required input or output filenames.
Solution language identifiers are UNKNOWN_LANGUAGE=0, PYTHON=1 for Python 2, CPP=2, PYTHON3=3 and JAVA=4. The documented splits contain 13,328 training records, 117 validation records and 165 test records. Actual field completeness and language distributions are unknown.
Using it
Requirements
Training requires a separately chosen model, training software and compute budget. Evaluating programs requires suitable compilers or interpreters and a code runner that handles the recorded time limits, memory limits and input/output conventions. These are practical requirements inferred from the schema; the card supplies no execution environment.
Python 2 and Python 3 submissions need distinct handling. Some problems expect files instead of standard input and output, and time_limit can be absent. Supported dependency versions, hardware requirements and storage needs are not specified.
Mechanism
The task maps a natural-language problem description to a program that solves it. Correct solutions provide training examples, while input/output pairs provide cases against which candidate programs can be checked. Incorrect solutions are separately identified.
Public tests may be included in model inputs. Private tests must be withheld from evaluation inputs. Generated tests are created by modifying public and private inputs and validating them with known correct solutions; because they can derive from private inputs, their permitted use needs an explicit evaluation rule.
The card describes n@k as the percentage of problems solved using n submissions from k samples per problem. It refers to the paper for fuller evaluation details and supplies no benchmark score.
Setup
The card identifies the dataset repository [https://github.com/deepmind/code_contests/]. It does not provide installation commands, a loader API, dependency versions or download-size information, so an exact loading recipe cannot be established from this document.
After obtaining the records, preserve the supplied splits, inspect language identifiers and missing limits, and define which fields enter model prompts. An evaluator also needs explicit rules for compilation failures, runtime failures, output comparison and submission selection. Those implementation details are not specified in the card.
Example
The illustrated record is 76_B. Mice. Its source identifier 2 denotes Codeforces, its cf_rating is 2100, its time limit is 0.5 seconds and its memory limit is 256,000,000 bytes. It includes public, private and generated test pairs alongside correct and incorrect programs.
An illustrative evaluation would provide the description and public tests to a model, then execute its candidate programs against withheld tests under the recorded limits. The displayed record contains truncated descriptions, tests and code, so it is not a complete runnable example. No execution or correctness result is established.
Assessment & evidence
Limitations
Difficulty labels from different sources are explicitly described as non-comparable. For Codeforces problems, the card recommends cf_rating when available. Names can coincide across sources, and Codeforces contest IDs do not increase consistently with time; neither should be assumed to provide a unique identifier or reliable chronology.
The card leaves personal and sensitive information, social impact, biases and other known limitations undocumented. Duplicate rates, overlap between splits, test completeness, solution-label accuracy and missing-field rates are unknown. Included test cases cannot by themselves prove correctness for every valid input.
Reasoning
The strongest supported use is contest-focused generation: descriptions supply model inputs, correct programs supply possible training targets and tests supply execution checks. Separately marked incorrect programs also suggest experiments on recognizing or repairing failed solutions, although no repair protocol or error taxonomy is documented.
Interpreting results requires more than naming the dataset. State n and k, sampling and submission-selection procedures, available prompt fields and execution rules. These recommendations follow from the documented scoring method and hidden-test distinction; the card does not supply a complete reproducible protocol.
Alternatives
The card names Description2Code [https://github.com/ethancaballero/description2code] and CodeNet [https://github.com/IBM/Project_CodeNet] as upstream datasets. They are relevant starting points for comparing source collections, but the supplied evidence does not establish equivalent tests, splits or contest coverage.
Their current contents and usability were not assessed. Because CodeContests incorporates some material from these datasets, combining them warrants checking for overlapping examples rather than assuming independent data.
Evidence
The available evidence is the complete dataset README at revision 802411c3010cb00d1b05bad57ca77365a3c699d6 [https://huggingface.co/datasets/deepmind/code_contests/raw/802411c3010cb00d1b05bad57ca77365a3c699d6/README.md]. It documents the schema, split counts, source collections, test distinctions and license notices.
Dataset files and linked pages were not examined. The card's statements were not independently verified against actual records. Nothing was loaded, trained, executed or benchmarked.
Access & freshness
Costs
The card states no purchase price, access fee or hosting charge. Download size, storage requirements and training or evaluation costs are unknown.
A practical budget would depend on the chosen model, number of generated candidates, execution times and compute environment. The card provides no measurements or cost estimates for those choices.
Rights
The card declares the dataset available under CC BY 4.0 and links the legal text [https://creativecommons.org/licenses/by/4.0/legalcode]. It acknowledges Codeforces materials, Description2Code materials under MIT and CodeNet materials under Apache 2.0.
Retain the dataset attribution and source notices when preparing reuse or redistribution, and consult the applicable license texts. The linked legal documents, individual source-item rights and any additional platform conditions were not assessed.
Freshness
The supplied README was captured on 14 November 2026 from a fixed repository revision and cites a 2022 AlphaCode paper. The capture date does not establish when the dataset was released or last updated.
The card provides no release history or support commitment. Current maintenance activity, the latest dataset contents, download availability and compatibility with current loading libraries are unknown.
Actions
Before committing to a training experiment, obtain the records, verify the documented splits and inspect language coverage, missing fields and overlap with other training data. Keep correct and incorrect solutions distinct and preserve attribution and source notices.
For evaluation, define permitted model inputs, withhold private tests, decide how generated tests are handled and document n@k settings. Verify the execution environment on a small set of complete records before scaling. These are recommended next steps; none has been performed.
