{"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":"19bac3cf-b05f-54ab-9801-da4156c9e839","task_key":"default--v0~2e1~2e0~5fhf--19bac3cf-b05f-54ab-9801-da4156c9e839","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 19bac3cf-b05f-54ab-9801-da4156c9e839","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import bs4\\nimport requests\\nimport re\\nimport csv\\ndef task_func(url=\\\"http://example.com\\\", csv_path=\\\"emails.csv\\\", \\n          regex=r\\\"\\\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\\\.[A-Z|a-z]{2,7}\\\\b\\\", \\n          headers={'User-Agent': 'Mozilla/5.0'}):\\n\",\"complete_prompt\":\"import bs4\\nimport requests\\nimport re\\nimport csv\\n\\ndef task_func(url=\\\"http://example.com\\\", csv_path=\\\"emails.csv\\\", \\n          regex=r\\\"\\\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\\\.[A-Z|a-z]{2,7}\\\\b\\\", \\n          headers={'User-Agent': 'Mozilla/5.0'}):\\n    \\\"\\\"\\\"\\n    Scrapes a web page to extract all email addresses using a specified regular expression pattern and writes them to a CSV file. The csv file is\\n    always created eventhough no email is found in the url. The header of the csv should be \\\"Emails\\\".\\n\\n    Parameters:\\n    - url (str): The URL of the web page to scrape. Default is \\\"http://example.com\\\".\\n    - csv_path (str): The filesystem path where the CSV file should be saved. Default is \\\"emails.csv\\\".\\n    - regex (str): The regular expression pattern used to identify email addresses. Default is a pattern that matches common email formats.\\n    - headers (dict): The HTTP headers to use for the request. Default includes a User-Agent header.\\n\\n    Returns:\\n    - str: The path to the CSV file where the extracted email addresses have been saved.\\n\\n    Requirements:\\n    - bs4\\n    - requests\\n    - re\\n    - csv\\n    \\n    Examples:\\n    >>> task_func()\\n    'emails.csv'\\n    >>> task_func(url=\\\"http://another-example.com\\\", csv_path=\\\"another_emails.csv\\\")\\n    'another_emails.csv'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Scrapes a web page to extract all email addresses using a specified regular expression pattern and writes them to a CSV file. The csv file is always created eventhough no email is found in the url. The header of the csv should be \\\"Emails\\\".\\nThe function should output with:\\n    str: The path to the CSV file where the extracted email addresses have been saved.\\nYou should write self-contained code starting with:\\n```\\nimport bs4\\nimport requests\\nimport re\\nimport csv\\ndef task_func(url=\\\"http://example.com\\\", csv_path=\\\"emails.csv\\\", \\n          regex=r\\\"\\\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\\\.[A-Z|a-z]{2,7}\\\\b\\\", \\n          headers={'User-Agent': 'Mozilla/5.0'}):\\n```\",\"libs\":\"['csv', 're', 'bs4', 'requests']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}