{"kind":"task","effective_mode":"full","benchmark":{"kind":"benchmark","effective_mode":"full","slug":"bigcodebench","formal_name":"BigCodeBench","introduction":"BigCodeBench poses 1,140 function-level tasks drawn across 139 libraries. It tests whether a model can compose several real APIs correctly rather than write one self-contained function.","introduction_ja":"","introduction_en":"","category":"Category not supplied","task_count":null,"acquisition_status":"Acquisition status not supplied","official_url":"https://bigcode-bench.github.io/","indexing_mode":"index","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[],"history":"","construction":"","limitations":"","saturation":"","scores":[]}},"task_id":"e7da1f92-01e5-5d58-88f9-d707f1e2de31","task_key":"default--v0~2e1~2e0~5fhf--e7da1f92-01e5-5d58-88f9-d707f1e2de31","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf e7da1f92-01e5-5d58-88f9-d707f1e2de31","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import csv\\nimport random\\ndef task_func(file_path,\\n          num_rows,\\n          gender=['Male', 'Female', 'Non-Binary'],\\n          countries=['USA', 'UK', 'Canada', 'Australia', 'India'],\\n          seed=None):\\n\",\"complete_prompt\":\"import csv\\nimport random\\n\\ndef task_func(file_path,\\n          num_rows,\\n          gender=['Male', 'Female', 'Non-Binary'],\\n          countries=['USA', 'UK', 'Canada', 'Australia', 'India'],\\n          seed=None):\\n    \\\"\\\"\\\"\\n    Generates a CSV file with random data for the fields ['Name', 'Age', 'Gender', 'Country'].\\n    The number of rows in the CSV file is determined by the 'num_rows' parameter.\\n\\n    The Ages are randomly sampled integers in the range [20, 60].\\n    The names are generated by randomly choosing 5 uppercase characters from the english alphabet.\\n\\n    \\n    If num_rows <= 0 a csv containing only the headers is generated.\\n\\n    Parameters:\\n    file_path (str): The file path where the CSV file should be created.\\n    num_rows (int): The number of rows of random data to generate.\\n    gender (list of str, optional): The list of genders to sample from.\\n        Defaults to ['Male', 'Female', 'Non-Binary'].\\n    countries (list of str, optional): The list of countries to sample from.\\n        Defaults to ['USA', 'UK', 'Canada', 'Australia', 'India'].\\n    seed (int, optional): The seed used for random sampling.\\n        Defaults to None.\\n\\n    Returns:\\n    str: The file path of the generated CSV file.\\n\\n    Requirements:\\n    - csv\\n    - random\\n\\n    Example:\\n    >>> task_func('/tmp/data.csv', 100)\\n    '/tmp/data.csv'\\n\\n    >>> task_func('/test.csv', 100, gender=['test'], countries['Albania', 'Germany', 'Austria'], seed=12)\\n    'test.csv'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generates a CSV file with random data for the fields ['Name', 'Age', 'Gender', 'Country']. The number of rows in the CSV file is determined by the 'num_rows' parameter. The Ages are randomly sampled integers in the range [20, 60]. The names are generated by randomly choosing 5 uppercase characters from the english alphabet. If num_rows <= 0 a csv containing only the headers is generated. >>> task_func('/test.csv', 100, gender=['test'], countries['Albania', 'Germany', 'Austria'], seed=12) 'test.csv'\\nThe function should output with:\\n    str: The file path of the generated CSV file.\\nYou should write self-contained code starting with:\\n```\\nimport csv\\nimport random\\ndef task_func(file_path,\\n          num_rows,\\n          gender=['Male', 'Female', 'Non-Binary'],\\n          countries=['USA', 'UK', 'Canada', 'Australia', 'India'],\\n          seed=None):\\n```\",\"libs\":\"['csv', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}