{"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":"noindex","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[]}},"task_id":"2b71f3dd-c0e2-5955-a4d9-74b6a8424ce0","task_key":"default--v0~2e1~2e0~5fhf--2b71f3dd-c0e2-5955-a4d9-74b6a8424ce0","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 2b71f3dd-c0e2-5955-a4d9-74b6a8424ce0","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import re\\nimport smtplib\\n# Constants\\nTEXT = \\\"Josie Smith [3996 COLLEGE AVENUE, SOMETOWN, MD 21003]Mugsy Dog Smith [2560 OAK ST, GLENMEADE, WI 14098]\\\"\\nRECEPIENT_ADDRESS = \\\"names@gmail.com\\\"\\nSMTP_SERVER = \\\"smtp.gmail.com\\\"\\nSMTP_PORT = 587\\nEMAIL_ADDRESS = \\\"your.email@gmail.com\\\"\\nEMAIL_PASSWORD = \\\"your.password\\\"\\ndef task_func(text=TEXT, smtp_server=SMTP_SERVER, smtp_port=SMTP_PORT, email_address=EMAIL_ADDRESS, email_password=EMAIL_PASSWORD, recepient_address=RECEPIENT_ADDRESS, smtp=None):\\n\",\"complete_prompt\":\"import re\\nimport smtplib\\n\\n# Constants\\nTEXT = \\\"Josie Smith [3996 COLLEGE AVENUE, SOMETOWN, MD 21003]Mugsy Dog Smith [2560 OAK ST, GLENMEADE, WI 14098]\\\"\\nRECEPIENT_ADDRESS = \\\"names@gmail.com\\\"\\nSMTP_SERVER = \\\"smtp.gmail.com\\\"\\nSMTP_PORT = 587\\nEMAIL_ADDRESS = \\\"your.email@gmail.com\\\"\\nEMAIL_PASSWORD = \\\"your.password\\\"\\n\\ndef task_func(text=TEXT, smtp_server=SMTP_SERVER, smtp_port=SMTP_PORT, email_address=EMAIL_ADDRESS, email_password=EMAIL_PASSWORD, recepient_address=RECEPIENT_ADDRESS, smtp=None):\\n    \\\"\\\"\\\"\\n    Extract all names from a string that is not enclosed by square brackets and send the names in an email.\\n\\n    Parameters:\\n    text (str): The text from which to extract names.\\n    smtp_server (str): The SMTP server to use for sending the email.\\n    smtp_port (int): The port to use for the SMTP server.\\n    email_address (str): The email address from which to send the email.\\n    email_password (str): The password for the email address.\\n    recepient_address (str): The recepient email adress.\\n    \\n    Returns:\\n    list: A list of extracted names.\\n    \\n    Note:\\n    - The message in the email is formatted in \\\"Subject: Extracted Names\\\\n\\\\n\\\" with the extracted name \\\"\\\\nJosie Smith\\\\nMugsy Dog Smith\\\".\\n\\n    Requirements:\\n    - re\\n    - smtplib\\n\\n    Example:\\n    >>> from unittest.mock import MagicMock\\n    >>> mock_smtp_instance = MagicMock()\\n    >>> mock_smtp = MagicMock(return_value=mock_smtp_instance)\\n    >>> task_func(text=\\\"Josie Smith [3996 COLLEGE AVENUE, SOMETOWN, MD 21003]Mugsy Dog Smith [2560 OAK ST, GLENMEADE, WI 14098]\\\", smtp=mock_smtp)\\n    ['Josie Smith', 'Mugsy Dog Smith']\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Extract all names from a string that is not enclosed by square brackets and send the names in an email.\\nNote that: The message in the email is formatted in \\\"Subject: Extracted Names\\\\n\\\\n\\\" with the extracted name \\\"\\\\nJosie Smith\\\\nMugsy Dog Smith\\\".\\nThe function should output with:\\n    list: A list of extracted names.\\nYou should write self-contained code starting with:\\n```\\nimport re\\nimport smtplib\\n# Constants\\nTEXT = \\\"Josie Smith [3996 COLLEGE AVENUE, SOMETOWN, MD 21003]Mugsy Dog Smith [2560 OAK ST, GLENMEADE, WI 14098]\\\"\\nRECEPIENT_ADDRESS = \\\"names@gmail.com\\\"\\nSMTP_SERVER = \\\"smtp.gmail.com\\\"\\nSMTP_PORT = 587\\nEMAIL_ADDRESS = \\\"your.email@gmail.com\\\"\\nEMAIL_PASSWORD = \\\"your.password\\\"\\ndef task_func(text=TEXT, smtp_server=SMTP_SERVER, smtp_port=SMTP_PORT, email_address=EMAIL_ADDRESS, email_password=EMAIL_PASSWORD, recepient_address=RECEPIENT_ADDRESS, smtp=None):\\n```\",\"libs\":\"['smtplib', 're']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}