{"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":"0f09b7f6-1fff-5d04-9ab1-bc3865f24d3d","task_key":"default--v0~2e1~2e0~5fhf--0f09b7f6-1fff-5d04-9ab1-bc3865f24d3d","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 0f09b7f6-1fff-5d04-9ab1-bc3865f24d3d","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import random\\nimport pandas as pd\\nimport numpy as np\\ndef task_func(n,\\n          domain=\\\"samplewebsite.com\\\",\\n          categories=['Sports', 'Technology', 'Health', 'Science', 'Business'],\\n          random_seed=None):\\n\",\"complete_prompt\":\"import random\\nimport pandas as pd\\nimport numpy as np\\n\\ndef task_func(n,\\n          domain=\\\"samplewebsite.com\\\",\\n          categories=['Sports', 'Technology', 'Health', 'Science', 'Business'],\\n          random_seed=None):\\n    \\\"\\\"\\\"\\n    Generate 'n' random articles with titles, URLs, IDs, categories, and views, and return them as a DataFrame.\\n    Views are generated by sampling from a poisson distribution with lambda=1000.\\n    \\n\\n    Parameters:\\n    n (int): The number of articles to generate.\\n    domain (str): The domain name for article URLs. Default is \\\"samplewebsite.com\\\".\\n    categories (list): List of categories for the articles. Default values are ['Sports', 'Technology', 'Health', 'Science', 'Business'].\\n    random_seeed(int): Seed for rng. Used for generating views and choosing categories.\\n\\n    Returns:\\n    DataFrame: A pandas DataFrame with columns: 'title', 'title_url', 'id', 'category', 'views'.\\n\\n    Requirements:\\n    - random\\n    - pandas\\n    - numpy\\n\\n    Example:\\n    >>> df = task_func(5, random_seed=1)\\n    >>> print(df)\\n           title                    title_url  id    category  views\\n    0  Article 0  samplewebsite.com/Article_0   0  Technology    992\\n    1  Article 1  samplewebsite.com/Article_1   1    Business    962\\n    2  Article 2  samplewebsite.com/Article_2   2      Sports    968\\n    3  Article 3  samplewebsite.com/Article_3   3      Health    991\\n    4  Article 4  samplewebsite.com/Article_4   4      Sports    993\\n\\n    >>> df = task_func(3, categories=['A', 'B'], domain='test.de', random_seed=12)\\n    >>> print(df)\\n           title          title_url  id category  views\\n    0  Article 0  test.de/Article_0   0        B    963\\n    1  Article 1  test.de/Article_1   1        B    977\\n    2  Article 2  test.de/Article_2   2        B   1048\\n\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generate 'n' random articles with titles, URLs, IDs, categories, and views, and return them as a DataFrame. Views are generated by sampling from a poisson distribution with lambda=1000. >>> df = task_func(3, categories=['A', 'B'], domain='test.de', random_seed=12) >>> print(df) title          title_url  id category  views 0  Article 0  test.de/Article_0   0        B    963 1  Article 1  test.de/Article_1   1        B    977 2  Article 2  test.de/Article_2   2        B   1048\\nThe function should output with:\\n    DataFrame: A pandas DataFrame with columns: 'title', 'title_url', 'id', 'category', 'views'.\\nYou should write self-contained code starting with:\\n```\\nimport random\\nimport pandas as pd\\nimport numpy as np\\ndef task_func(n,\\n          domain=\\\"samplewebsite.com\\\",\\n          categories=['Sports', 'Technology', 'Health', 'Science', 'Business'],\\n          random_seed=None):\\n```\",\"libs\":\"['pandas', 'numpy', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}