{"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":"e253259f-401c-58bf-9fe5-079d91a983b9","task_key":"default--v0~2e1~2e0~5fhf--e253259f-401c-58bf-9fe5-079d91a983b9","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf e253259f-401c-58bf-9fe5-079d91a983b9","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import os\\nfrom sendgrid import SendGridAPIClient\\nfrom sendgrid.helpers.mail import Mail\\nfrom python_http_client.exceptions import HTTPError\\ndef task_func(dir, api_key, recipient_email):\\n\",\"complete_prompt\":\"import os\\nfrom sendgrid import SendGridAPIClient\\nfrom sendgrid.helpers.mail import Mail\\nfrom python_http_client.exceptions import HTTPError\\n\\ndef task_func(dir, api_key, recipient_email):\\n    \\\"\\\"\\\"\\n    Get a list of files in a directory and send that list by e-mail to a specific recipient using a provided SendGrid API key.\\n\\n    Parameters:\\n    - dir (str): The directory to list.\\n    - api_key (str): The SendGrid API key for authentication.\\n    - recipient_email (str): The email address of the recipient.\\n\\n    Returns:\\n    - bool: True if the email was sent successfully. Specifically, a successful send is indicated by an HTTP status code in the 2xx range, which denotes success. False is returned if the directory does not exist.\\n\\n    Raises:\\n    - FileNotFoundError: If the specified directory does not exist.\\n    - HTTPError: If an HTTP error occurs during the sending process.\\n    - Exception: For any other exceptions that may occur during the execution.\\n\\n    Requirements:\\n    - os\\n    - sendgrid.SendGridAPIClient\\n    - sendgrid.helpers.mail.Mail\\n    - python_http_client.exceptions.HTTPError\\n\\n    Example:\\n    >>> isinstance(task_func('./test_directory', 'YOUR_SENDGRID_API_KEY', 'YOUR_EMAIL'), bool)\\n    True\\n    >>> task_func('/nonexistent_directory', 'YOUR_SENDGRID_API_KEY', 'YOUR_EMAIL')  # This will return False, as the directory does not exist.\\n    False\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Get a list of files in a directory and send that list by e-mail to a specific recipient using a provided SendGrid API key.\\nThe function should raise the exception for: FileNotFoundError: If the specified directory does not exist. HTTPError: If an HTTP error occurs during the sending process. Exception: For any other exceptions that may occur during the execution.\\nThe function should output with:\\n    bool: True if the email was sent successfully. Specifically, a successful send is indicated by an HTTP status code in the 2xx range, which denotes success. False is returned if the directory does not exist.\\nYou should write self-contained code starting with:\\n```\\nimport os\\nfrom sendgrid import SendGridAPIClient\\nfrom sendgrid.helpers.mail import Mail\\nfrom python_http_client.exceptions import HTTPError\\ndef task_func(dir, api_key, recipient_email):\\n```\",\"libs\":\"['python_http_client', 'sendgrid', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}