{"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":"f9c0cbdc-b555-5df0-90f1-e07d9f46a398","task_key":"default--v0~2e1~2e0~5fhf--f9c0cbdc-b555-5df0-90f1-e07d9f46a398","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf f9c0cbdc-b555-5df0-90f1-e07d9f46a398","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from flask import Flask\\nfrom flask_mail import Mail, Message\\ndef task_func(smtp_server, smtp_port, smtp_user, smtp_password, template_folder):\\n\",\"complete_prompt\":\"from flask import Flask\\nfrom flask_mail import Mail, Message\\n\\ndef task_func(smtp_server, smtp_port, smtp_user, smtp_password, template_folder):\\n    \\\"\\\"\\\"\\n    Creates a Flask application configured to send emails using Flask-Mail.\\n    It sets up the necessary SMTP configuration dynamically based on provided parameters\\n    and defines a route to send a test email.\\n\\n    Parameters:\\n        smtp_server (str): The SMTP server address.\\n        smtp_port (int): The SMTP server port.\\n        smtp_user (str): The SMTP username.\\n        smtp_password (str): The SMTP password.\\n        template_folder (str): The folder path for email templates.\\n\\n    Requirements:\\n    - flask.Flask\\n    - flask_mail.Mail\\n    - flask_mail.Message\\n\\n    Returns:\\n        Flask: A Flask application instance configured for sending emails.\\n\\n    Examples:\\n    >>> app = task_func('smtp.example.com', 587, 'user@example.com', 'password', 'templates')\\n    >>> type(app).__name__\\n    'Flask'\\n    >>> app.config['MAIL_USERNAME'] == 'user@example.com'\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Creates a Flask application configured to send emails using Flask-Mail. It sets up the necessary SMTP configuration dynamically based on provided parameters and defines a route to send a test email.\\nThe function should output with:\\n    Flask: A Flask application instance configured for sending emails.\\nYou should write self-contained code starting with:\\n```\\nfrom flask import Flask\\nfrom flask_mail import Mail, Message\\ndef task_func(smtp_server, smtp_port, smtp_user, smtp_password, template_folder):\\n```\",\"libs\":\"['flask_mail', 'flask']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}