{"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":"66583ca7-0b6f-5ccc-91ea-c9c5e1debde5","task_key":"default--v0~2e1~2e0~5fhf--66583ca7-0b6f-5ccc-91ea-c9c5e1debde5","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 66583ca7-0b6f-5ccc-91ea-c9c5e1debde5","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nfrom sklearn.cluster import DBSCAN\\ndef task_func(data, cols):\\n\",\"complete_prompt\":\"import pandas as pd\\nfrom sklearn.cluster import DBSCAN\\n\\ndef task_func(data, cols):\\n    \\\"\\\"\\\"\\n    Perform DBSCAN clustering on the data by transforming it into a DataFrame and recording the clusters in a new column named 'Cluster'.\\n    Please choose the parameters eps=3 and min_samples=2.\\n    \\n    Parameters:\\n    - data (list): List of lists with the data, where the length of the inner list equals the number of columns\\n    - cols (list): List of column names\\n    \\n    Returns:\\n    - df (DataFrame): The DataFrame with a new 'Cluster' column.\\n\\n    Requirements:\\n    - pandas\\n    - sklearn\\n\\n    Example:\\n    >>> data = [[5.1, 3.5], [4.9, 3.0], [4.7, 3.2]]\\n    >>> cols = ['x', 'y']\\n    >>> df = task_func(data, cols)\\n    >>> print(df)\\n         x    y  Cluster\\n    0  5.1  3.5        0\\n    1  4.9  3.0        0\\n    2  4.7  3.2        0\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Perform DBSCAN clustering on the data by transforming it into a DataFrame and recording the clusters in a new column named 'Cluster'. Please choose the parameters eps=3 and min_samples=2.\\nThe function should output with:\\n    df (DataFrame): The DataFrame with a new 'Cluster' column.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nfrom sklearn.cluster import DBSCAN\\ndef task_func(data, cols):\\n```\",\"libs\":\"['pandas', 'sklearn']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}