{"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":"8bcf1753-3a1d-5010-a882-6901e8c2fb33","task_key":"default--v0~2e1~2e0~5fhf--8bcf1753-3a1d-5010-a882-6901e8c2fb33","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 8bcf1753-3a1d-5010-a882-6901e8c2fb33","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from random import randint, seed\\nimport pandas as pd\\n# Method\\ndef task_func(goals, penalties, rng_seed=None):\\n\",\"complete_prompt\":\"from random import randint, seed\\nimport pandas as pd\\n\\n\\n# Method\\ndef task_func(goals, penalties, rng_seed=None):\\n    \\\"\\\"\\\"\\n    Generate a Pandas DataFrame with colomns 'Team' and 'Match Result' of the results of football matches for multiple\\n    teams, incorporating random goals and penalties. Penalties are converted into fines using a predefined cost.\\n\\n    Parameters:\\n    - goals (int): The maximum number of goals a team can score in a match. Must be non-negative.\\n    - penalties (int): The maximum number of penalties a team can receive in a match. Must be non-negative.\\n    - rng_seed (int, optional): Seed for the random number generator to ensure reproducible results. Defaults to None.\\n\\n    Returns:\\n    - pd.DataFrame: A pandas DataFrame with columns ['Team', 'Match Result'], detailing each team's goals and accumulated fines.\\n\\n    Requirements:\\n    - pandas\\n    - random\\n\\n    Example:\\n    >>> seed(42)  # Setting seed for reproducibility in this example\\n    >>> results = task_func(5, 3, 42)\\n    >>> print(results)\\n         Team      Match Result\\n    0  Team A     (5 goals, $0)\\n    1  Team B  (0 goals, $2000)\\n    2  Team C  (1 goals, $1000)\\n    3  Team D     (1 goals, $0)\\n    4  Team E     (5 goals, $0)\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generate a Pandas DataFrame with colomns 'Team' and 'Match Result' of the results of football matches for multiple teams, incorporating random goals and penalties. Penalties are converted into fines using a predefined cost.\\nThe function should output with:\\n    pd.DataFrame: A pandas DataFrame with columns ['Team', 'Match Result'], detailing each team's goals and accumulated fines.\\nYou should write self-contained code starting with:\\n```\\nfrom random import randint, seed\\nimport pandas as pd\\n# Method\\ndef task_func(goals, penalties, rng_seed=None):\\n```\",\"libs\":\"['pandas', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}