{"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":"9d7bd28e-4427-5c83-a42f-acaf232315cd","task_key":"default--v0~2e1~2e0~5fhf--9d7bd28e-4427-5c83-a42f-acaf232315cd","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 9d7bd28e-4427-5c83-a42f-acaf232315cd","config":"default","split":"v0.1.0_hf","body":"{\"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']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}