{"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":"597a66dd-05e6-5e1e-a87b-127b785e0682","task_key":"default--v0~2e1~2e0~5fhf--597a66dd-05e6-5e1e-a87b-127b785e0682","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 597a66dd-05e6-5e1e-a87b-127b785e0682","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nimport random\\ndef task_func(dictionary, item, seed):\\n\",\"complete_prompt\":\"import pandas as pd\\nimport random\\n\\n\\ndef task_func(dictionary, item, seed):\\n    \\\"\\\"\\\"\\n    Converts a dictionary to a pandas DataFrame and find the locations of a particular item in the resulting DataFrame.\\n    Counts the number of occurences and adds a random integer x, where 0 <=x < 10, to it.\\n\\n    Parameters:\\n    dict (dictionary): The dictionary to search.\\n    item (str): The item to find.\\n    seed(int): seed for random number generation.\\n\\n    Returns:\\n    list: A list of tuples. Each tuple contains the row-index and column-name where the item is found.\\n    int: The number of occurences with the added random number.\\n    DataFrame: The converted dictionary.\\n\\n    Requirements:\\n    - pandas\\n    - random\\n\\n    Example:\\n    >>> dict = {'A': ['apple', 'banana'], 'B': ['orange', 'apple']}\\n    >>> task_func(dict, 'apple', seed=12)\\n    ([(0, 'A'), (1, 'B')], 9,         A       B\\n    0   apple  orange\\n    1  banana   apple)\\n    \\n    >>> dict = {'A': ['a', 'b', 'e'], 'B': ['c', 'd', 'd'], '2': ['asdf', 'ddd', 'aaaa'], '12': ['e', 'e', 'd']}\\n    >>> task_func(dict, 'e', seed=2)\\n    ([(2, 'A'), (0, '12'), (1, '12')], 3,    A  B     2 12\\n    0  a  c  asdf  e\\n    1  b  d   ddd  e\\n    2  e  d  aaaa  d)\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Converts a dictionary to a pandas DataFrame and find the locations of a particular item in the resulting DataFrame. Counts the number of occurences and adds a random integer x, where 0 <=x < 10, to it. >>> dict = {'A': ['a', 'b', 'e'], 'B': ['c', 'd', 'd'], '2': ['asdf', 'ddd', 'aaaa'], '12': ['e', 'e', 'd']} >>> task_func(dict, 'e', seed=2) ([(2, 'A'), (0, '12'), (1, '12')], 3,    A  B     2 12 0  a  c  asdf  e 1  b  d   ddd  e 2  e  d  aaaa  d)\\nThe function should output with:\\n    list: A list of tuples. Each tuple contains the row-index and column-name where the item is found.\\n    int: The number of occurences with the added random number.\\n    DataFrame: The converted dictionary.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nimport random\\ndef task_func(dictionary, item, seed):\\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":[]}