Mora / Datasets / openai/openai_humaneval

OpenAI HumanEvalFree and public

The HumanEval dataset released by OpenAI includes 164 programming problems with a function sig- nature, docstring, body, and several unit tests. They were handwritten to ensure not to be included in the training set of code generation models.

Published on
Hugging Faceopenai/openai_humaneval
Price
Free
License
mit
Allows
Commercial
Labels
Labeled by people, says the publisher
Rows
164 in test
Languages
en
Downloads
331,511
Last updated
2024-01-04

What each record holds

FieldType
task_idstring
promptstring
canonical_solutionstring
teststring
entry_pointstring

First rows, as published

task_idpromptcanonical_solutiontestentry_point
HumanEval/0from typing import List def has_close_elements(numbers: List[float], threshold: float) -> bool: """ Check if in given list of numbers, for idx, elem in enumerate(numbers): for idx2, elem2 in enumerate(numbers): if idx != idx2: distance METADATA = { 'author': 'jt', 'dataset': 'test' } def check(candidate): assert candidate([1.0, 2.0, 3.9, 4.0, 5.0, 2.2], 0.3)has_close_elements
HumanEval/1from typing import List def separate_paren_groups(paren_string: str) -> List[str]: """ Input to this function is a string containing m result = [] current_string = [] current_depth = 0 for c in paren_string: if c == '(': current_depth += METADATA = { 'author': 'jt', 'dataset': 'test' } def check(candidate): assert candidate('(()()) ((())) () ((())()())') == [ separate_paren_groups
HumanEval/2 def truncate_number(number: float) -> float: """ Given a positive floating point number, it can be decomposed into and integer par return number % 1.0 METADATA = { 'author': 'jt', 'dataset': 'test' } def check(candidate): assert candidate(3.5) == 0.5 assert abs(candidatetruncate_number

Mora looked inside (rows, columns, first rows) but did not check rights or quality. "Allows" reads the declared license only.