{"kind":"task","effective_mode":"full","benchmark":{"kind":"benchmark","effective_mode":"full","slug":"humaneval","formal_name":"HumanEval","introduction":"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.","introduction_ja":"","introduction_en":"","category":"Category not supplied","task_count":null,"acquisition_status":"Acquisition status not supplied","official_url":"https://huggingface.co/datasets/openai/openai_humaneval","indexing_mode":"noindex","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[]}},"task_id":"8cc01580-bf09-53a5-9ee9-d06de8f6a6f3","task_key":"openai~5fhumaneval--test--8cc01580-bf09-53a5-9ee9-d06de8f6a6f3","task_revision_id":"1","upstream_id":"","short_description":"def intersection(interval1, interval2):","config":"openai_humaneval","split":"test","body":"{\"entry_point\":\"intersection\",\"prompt\":\"\\ndef intersection(interval1, interval2):\\n    \\\"\\\"\\\"You are given two intervals,\\n    where each interval is a pair of integers. For example, interval = (start, end) = (1, 2).\\n    The given intervals are closed which means that the interval (start, end)\\n    includes both start and end.\\n    For each given interval, it is assumed that its start is less or equal its end.\\n    Your task is to determine whether the length of intersection of these two \\n    intervals is a prime number.\\n    Example, the intersection of the intervals (1, 3), (2, 4) is (2, 3)\\n    which its length is 1, which not a prime number.\\n    If the length of the intersection is a prime number, return \\\"YES\\\",\\n    otherwise, return \\\"NO\\\".\\n    If the two intervals don't intersect, return \\\"NO\\\".\\n\\n\\n    [input/output] samples:\\n    intersection((1, 2), (2, 3)) ==> \\\"NO\\\"\\n    intersection((-1, 1), (0, 4)) ==> \\\"NO\\\"\\n    intersection((-3, -1), (-5, 5)) ==> \\\"YES\\\"\\n    \\\"\\\"\\\"\\n\"}","display_format":"text","language":"","answer_status":"unknown","assets":[],"source_url":"https://huggingface.co/datasets/openai/openai_humaneval","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}