Understand the HumanEval-X Benchmark
mainHumanEval-X is a multilingual code generation benchmark designed to measure the functional correctness of generated code across multiple languages. It contains 820 high-quality hand-written samples covering Python, C++, Java, JavaScript, and Go.
Supported Tasks
- Code Generation: Input consists of a function declaration and a docstring; the output is the function implementation.
- Code Translation: Input consists of function declarations in two languages and the implementation in the source language; the output is the implementation in the target language.
Evaluation Metric
It uses the unbiased pass@k metric (as used in Codex) where $n=200$ and $k \in {1, 10, 100}$:
$$\text{pass}@k := \mathbb{E}[1-\frac{\binom{n-c}{k}}{\binom{n}{k}}]$$