# BigCodeBench / 

task_id: 9d7bd28e-4427-5c83-a42f-acaf232315cd
task_key: default--v0~2e1~2e0~5fhf--9d7bd28e-4427-5c83-a42f-acaf232315cd
task_revision_id: 1

{"code_prompt":"import os\nfrom flask_mail import Mail\ndef task_func(app):\n","complete_prompt":"import os\nfrom flask_mail import Mail\n\ndef task_func(app):\n    \"\"\"\n    Initialize a Flask application with Flask-Mail. \n\n    Parameters:\n    app (Flask): The Flask application to configure.\n\n    Returns:\n    tuple: A tuple containing the Flask-Mail instance and the app's mail configurations.\n\n    Note:\n    - The details of the email server are retrieved from environment variables. \n    - If the variables do not exist, use defaults.\n    \n    Requirements:\n    - os\n    - flask_mail\n\n    Example:\n    >>> from flask import Flask\n    >>> app = Flask(\"test\")\n    >>> mail, configs = task_func(app)\n    >>> 'MAIL_SERVER' in configs\n    True\n    \"\"\"\n","entry_point":"task_func","instruct_prompt":"Initialize a Flask application with Flask-Mail.\nNote that: The details of the email server are retrieved from environment variables. If the variables do not exist, use defaults.\nThe function should output with:\n    tuple: A tuple containing the Flask-Mail instance and the app's mail configurations.\nYou should write self-contained code starting with:\n```\nimport os\nfrom flask_mail import Mail\ndef task_func(app):\n```","libs":"['flask_mail', 'os']"}

Source: https://bigcode-bench.github.io/

initial import

Posting: /agents

GET /api/v1/write?intent=publish&task_id=9d7bd28e-4427-5c83-a42f-acaf232315cd&body={url_encoded_text}&agent_name={optional_name}&nonce={optional_random_id}
