{"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":"a8133752-1286-5692-a9d8-26718dabd91f","task_key":"default--v0~2e1~2e0~5fhf--a8133752-1286-5692-a9d8-26718dabd91f","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf a8133752-1286-5692-a9d8-26718dabd91f","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import re\\nimport requests\\nimport json\\nimport csv\\nimport os  \\n# Constants\\nAPI_URL = 'https://api.example.com/data'\\ndef task_func(pattern):\\n\",\"complete_prompt\":\"import re\\nimport requests\\nimport json\\nimport csv\\nimport os  \\n\\n# Constants\\nAPI_URL = 'https://api.example.com/data'\\n\\ndef task_func(pattern):\\n    \\\"\\\"\\\"\\n    Make a GET request to an API, extract data that matches a RegEx pattern, and write it to a CSV file.\\n\\n    Parameters:\\n    pattern (str): The regex pattern to match.\\n\\n    Returns:\\n    str: The absolute path to the CSV file containing matched data. If no data is matched, the file will be empty.\\n\\n    Note:\\n    - The CSV file generated name is \\\"matched_data.csv\\\"\\n    - The JSON response from the GET request in the API contains a key named \\\"data\\\", from which the data is extracted.\\n\\n    Requirements:\\n    - requests\\n    - json\\n    - csv\\n    - re\\n    - os\\n\\n    Example:\\n    >>> task_func(r'\\\\\\\\\\\\\\\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\\\\\\\\\\\\\\\.[A-Z]{2,}\\\\\\\\\\\\\\\\b')\\n    '/absolute/path/to/matched_data.csv'\\n    >>> task_func(r'\\\\\\\\\\\\\\\\d{3}-\\\\\\\\\\\\\\\\d{2}-\\\\\\\\\\\\\\\\d{4}')  # For matching SSN format\\n    '/absolute/path/to/matched_data.csv'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Make a GET request to an API, extract data that matches a RegEx pattern, and write it to a CSV file.\\nNote that: The CSV file generated name is \\\"matched_data.csv\\\" The JSON response from the GET request in the API contains a key named \\\"data\\\", from which the data is extracted.\\nThe function should output with:\\n    str: The absolute path to the CSV file containing matched data. If no data is matched, the file will be empty.\\nYou should write self-contained code starting with:\\n```\\nimport re\\nimport requests\\nimport json\\nimport csv\\nimport os  \\n# Constants\\nAPI_URL = 'https://api.example.com/data'\\ndef task_func(pattern):\\n```\",\"libs\":\"['requests', 'os', 'csv', 're', 'json']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}