{"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":"c29a5cf2-2bdf-501e-9aca-e91976ea1c18","task_key":"default--v0~2e1~2e0~5fhf--c29a5cf2-2bdf-501e-9aca-e91976ea1c18","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf c29a5cf2-2bdf-501e-9aca-e91976ea1c18","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import sqlite3\\nimport pandas as pd\\nimport os\\ndef task_func(db_name, table_name, csv_path=\\\"data.csv\\\"):\\n\",\"complete_prompt\":\"import sqlite3\\nimport pandas as pd\\nimport os\\n\\n\\ndef task_func(db_name, table_name, csv_path=\\\"data.csv\\\"):\\n    \\\"\\\"\\\"\\n    Read SQLite3 table via pandas and export to a CSV file.\\n\\n    Parameters:\\n    - db_name (str): The path to the SQLite3 database.\\n    - table_name (str): The name of the table to export.\\n    - csv_path (str, optional): The path where the CSV file will be saved. Defaults to 'data.csv'.\\n\\n    Requirements:\\n    - sqlite3\\n    - pandas\\n    - os\\n\\n    Returns:\\n    str: The absolute path of the exported CSV file.\\n\\n    Example:\\n    >>> task_func('test.db', 'People')\\n    'data.csv'\\n    >>> task_func('/absolute/path/to/test.db', 'Orders', 'orders.csv')\\n    '/absolute/path/to/orders.csv'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Read SQLite3 table via pandas and export to a CSV file.\\nThe function should output with:\\n    str: The absolute path of the exported CSV file.\\nYou should write self-contained code starting with:\\n```\\nimport sqlite3\\nimport pandas as pd\\nimport os\\ndef task_func(db_name, table_name, csv_path=\\\"data.csv\\\"):\\n```\",\"libs\":\"['sqlite3', 'pandas', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}