{"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":"90230d34-25b3-5756-baec-89801147f236","task_key":"default--v0~2e1~2e0~5fhf--90230d34-25b3-5756-baec-89801147f236","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 90230d34-25b3-5756-baec-89801147f236","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from flask import Flask\\nfrom flask_restful import Resource, Api\\nimport requests\\ndef task_func(api_url, template_folder):\\n\",\"complete_prompt\":\"from flask import Flask\\nfrom flask_restful import Resource, Api\\nimport requests\\n\\ndef task_func(api_url, template_folder):\\n    \\\"\\\"\\\"\\n    Creates a Flask application with a RESTful API endpoint. The endpoint, when accessed,\\n    fetches data from an external API and returns the response as JSON. It is configured\\n    to use a specified templates folder, which must be provided when calling this function.\\n    The URL for the external API must also be provided when initializing the app.\\n\\n    Parameters:\\n    - api_url (str): The URL of the external API from which data is fetched.\\n    - template_folder (str): The path to the folder containing Flask templates.\\n\\n    Returns:\\n    - app (Flask): A Flask application instance with a configured RESTful API endpoint.\\n    \\n    Requirements:\\n    - flask.Flask\\n    - flask_restful.Resource\\n    - flask_restful.Api\\n    - requests\\n\\n    Example:\\n    >>> app = task_func('https://api.example.com/data', 'templates')\\n    >>> 'data' in [str(route) for route in app.url_map.iter_rules()]\\n    True\\n    >>> api = Api(app)\\n    >>> type(api).__name__\\n    'Api'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Creates a Flask application with a RESTful API endpoint. The endpoint, when accessed, fetches data from an external API and returns the response as JSON. It is configured to use a specified templates folder, which must be provided when calling this function. The URL for the external API must also be provided when initializing the app.\\nThe function should output with:\\n    app (Flask): A Flask application instance with a configured RESTful API endpoint.\\nYou should write self-contained code starting with:\\n```\\nfrom flask import Flask\\nfrom flask_restful import Resource, Api\\nimport requests\\ndef task_func(api_url, template_folder):\\n```\",\"libs\":\"['flask_restful', 'flask', 'requests']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}