{"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":"4b2c1927-01f1-5581-9c02-1a77ec452654","task_key":"default--v0~2e1~2e0~5fhf--4b2c1927-01f1-5581-9c02-1a77ec452654","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 4b2c1927-01f1-5581-9c02-1a77ec452654","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import random\\nimport string\\ndef task_func(max_length, n_samples, seed=None):\\n\",\"complete_prompt\":\"import random\\nimport string\\n\\ndef task_func(max_length, n_samples, seed=None):\\n    \\\"\\\"\\\"Generate a list containing random strings of lowercase letters. Each string's length varies from 1 to `max_length`.\\n    An optional seed can be set for the random number generator for reproducible results.\\n\\n    Note:\\n    The function utilizes the `random.choices` function to generate random strings and combines them into a list.\\n\\n    Parameters:\\n    max_length (int): The maximum length of the strings.\\n    n_samples (int): The number of strings to return.\\n    seed (int, optional): A seed for the random number generator. If None, the generator is initialized without a seed.\\n\\n    Returns:\\n    list: A list containing random strings. Each string is a random combination of lowercase letters, \\n    and their lengths will vary from 1 to `max_length`.\\n\\n    Requirements:\\n    - random\\n    - string\\n\\n    Raises:\\n    ValueError: If max_length is smaller than 1.\\n\\n    Example:\\n    >>> task_func(3, 12, seed=12)\\n    ['gn', 'da', 'mq', 'rp', 'aqz', 'ex', 'o', 'b', 'vru', 'a', 'v', 'ncz']\\n    >>> task_func(5, n_samples=8, seed=1)\\n    ['ou', 'g', 'tmjf', 'avlt', 's', 'sfy', 'aao', 'rzsn']\\n\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generate a list containing random strings of lowercase letters. Each string's length varies from 1 to `max_length`. An optional seed can be set for the random number generator for reproducible results.\\nNote that: The function utilizes the `random.choices` function to generate random strings and combines them into a list.\\nThe function should raise the exception for: ValueError: If max_length is smaller than 1.\\nThe function should output with:\\n    list: A list containing random strings. Each string is a random combination of lowercase letters,\\n    and their lengths will vary from 1 to `max_length`.\\nYou should write self-contained code starting with:\\n```\\nimport random\\nimport string\\ndef task_func(max_length, n_samples, seed=None):\\n```\",\"libs\":\"['random', 'string']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}