benchmarks.wiki / Public workspace
HumanEval
Code
HumanEval asks for a Python function body from a docstring and signature, checked by hidden unit tests. It is the original functional-correctness benchmark for code generation.
humaneval
Full text: eligible public problems include text, images and discussion.
Reference links
At a glance
What a problem looks like
A Python function signature and docstring in prompt, with the entry point named. The reference solution and the tests are kept out of the prompt.
How it is scored
For the 164 imported problems, every column outside the prompt is separated into restricted storage, but the converter does not interpret it, so this catalogue does not claim a usable answer key exists.
Why it is hard
Correctness is decided by execution, not by resemblance to a reference: a plausible-looking function that fails one edge case scores zero.
Cite
@misc{chen2021evaluating,
title={Evaluating Large Language Models Trained on Code},
author={Mark Chen and Jerry Tworek and Heewoo Jun and Qiming Yuan and Henrique Ponde de Oliveira Pinto and Jared Kaplan and Harri Edwards and Yuri Burda and Nicholas Joseph and Greg Brockman and Alex Ray and Raul Puri and Gretchen Krueger and Michael Petrov and Heidy Khlaaf and Girish Sastry and Pamela Mishkin and Brooke Chan and Scott Gray and Nick Ryder and Mikhail Pavlov and Alethea Power and Lukasz Kaiser and Mohammad Bavarian and Clemens Winter and Philippe Tillet and Felipe Petroski Such and Dave Cummings and Matthias Plappert and Fotios Chantzis and Elizabeth Barnes and Ariel Herbert-Voss and William Hebgen Guss and Alex Nichol and Alex Paino and Nikolas Tezak and Jie Tang and Igor Babuschkin and Suchir Balaji and Shantanu Jain and William Saunders and Christopher Hesse and Andrew N. Carr and Jan Leike and Josh Achiam and Vedant Misra and Evan Morikawa and Alec Radford and Matthew Knight and Miles Brundage and Mira Murati and Katie Mayer and Peter Welinder and Bob McGrew and Dario Amodei and Sam McCandlish and Ilya Sutskever and Wojciech Zaremba},
year={2021},
eprint={2107.03374},
archivePrefix={arXiv},
primaryClass={cs.LG}
}Discussion
Contribute
Share a reproduction, report an evaluation issue, or suggest a correction to this benchmark overview.
Tasks
Whole public benchmark.
- Public problems
- 164
- Formats
- text (164)
- Problems with images
- 0
- Answer availability
- Answer availability not recorded (164)
- Configs
- openai_humaneval (164)
- Splits
- test (164)
- Awaiting a first discussion
- 164
- Problems with a discussion
- 0
- Public contributions
- 0
Provenance and terms
Pinned source revisions, newest first:
7dce6050a7d6d172f3cc5c32aa97f52fa1a2e544· acquired 2026-09-11 · release143d6b426d5d
- FIX = """
Answer availability not recorded
- def count_nums(arr):
Answer availability not recorded
- def correct_bracketing(brackets: str):
Answer availability not recorded
- def sort_third(l: list):
Answer availability not recorded
- from typing import List
Answer availability not recorded
- def solution(lst):
Answer availability not recorded
- def below_threshold(l: list, t: int):
Answer availability not recorded
- def fix_spaces(text):
Answer availability not recorded
- def largest_smallest_integers(lst):
Answer availability not recorded
- def sort_array(arr):
Answer availability not recorded
- def flip_case(string: str) -> str:
Answer availability not recorded
- import math
Answer availability not recorded
- def tri(n):
Answer availability not recorded
- def solve(s):
Answer availability not recorded
- def triangle_area(a, b, c):
Answer availability not recorded
- def words_in_sentence(sentence):
Answer availability not recorded
- from typing import List
Answer availability not recorded
- from typing import List
Answer availability not recorded
- def fruit_distribution(s,n):
Answer availability not recorded
- def sort_even(l: list):
Answer availability not recorded
- def get_closest_vowel(word):
Answer availability not recorded
- from typing import List
Answer availability not recorded
- def pairs_sum_to_zero(l):
Answer availability not recorded
- def derivative(xs: list):
Answer availability not recorded
- def median(l: list):
Answer availability not recorded
- from typing import List
Answer availability not recorded
- def check_dict_case(dict):
Answer availability not recorded
- from typing import List
Answer availability not recorded
- def add_elements(arr, k):
Answer availability not recorded
- def hex_key(num):
Answer availability not recorded
- def iscube(a):
Answer availability not recorded
- def numerical_letter_grade(grades):
Answer availability not recorded
- def rounded_avg(n, m):
Answer availability not recorded
- def is_bored(S):
Answer availability not recorded
- def prime_fib(n: int):
Answer availability not recorded
- def how_many_times(string: str, substring: str) -> int:
Answer availability not recorded
- def right_angle_triangle(a, b, c):
Answer availability not recorded
- def is_nested(string):
Answer availability not recorded
- def will_it_fly(q,w):
Answer availability not recorded
- from typing import List
Answer availability not recorded
- def prime_length(string):
Answer availability not recorded
- from typing import List
Answer availability not recorded
- def generate_integers(a, b):
Answer availability not recorded
- def string_to_md5(text):
Answer availability not recorded
- def max_element(l: list):
Answer availability not recorded
- def is_happy(s):
Answer availability not recorded
- def encode_shift(s: str):
Answer availability not recorded
- def unique_digits(x):
Answer availability not recorded
- def get_positive(l: list):
Answer availability not recorded
- def strlen(string: str) -> int:
Answer availability not recorded