{"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":"7da90148-09d8-50b8-ab54-13481f5f19f4","task_key":"openai~5fhumaneval--test--7da90148-09d8-50b8-ab54-13481f5f19f4","task_revision_id":"1","upstream_id":"","short_description":"def get_max_triples(n):","config":"openai_humaneval","split":"test","body":"{\"entry_point\":\"get_max_triples\",\"prompt\":\"\\ndef get_max_triples(n):\\n    \\\"\\\"\\\"\\n    You are given a positive integer n. You have to create an integer array a of length n.\\n        For each i (1 ≤ i ≤ n), the value of a[i] = i * i - i + 1.\\n        Return the number of triples (a[i], a[j], a[k]) of a where i < j < k, \\n    and a[i] + a[j] + a[k] is a multiple of 3.\\n\\n    Example :\\n        Input: n = 5\\n        Output: 1\\n        Explanation: \\n        a = [1, 3, 7, 13, 21]\\n        The only valid triple is (1, 7, 13).\\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":[]}