{"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":"0725e0b5-29a0-5517-b70c-cfb7c6db156f","task_key":"default--v0~2e1~2e0~5fhf--0725e0b5-29a0-5517-b70c-cfb7c6db156f","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 0725e0b5-29a0-5517-b70c-cfb7c6db156f","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from flask import Flask, render_template, request\\nimport json\\nimport logging\\nlogging.basicConfig(filename=\\\"out.log\\\", level=logging.INFO)\\ndef task_func(template_folder):\\n\",\"complete_prompt\":\"from flask import Flask, render_template, request\\nimport json\\nimport logging\\n\\nlogging.basicConfig(filename=\\\"out.log\\\", level=logging.INFO)\\n\\ndef task_func(template_folder):\\n    \\\"\\\"\\\"\\n    Creates a Flask application with a specified templates folder. It defines a route at the root ('/')\\n    which handles POST requests, logs the information request data as a JSON, and renders an 'index.html' template using\\n    the data provided in POST requests.\\n\\n    Parameters:\\n    template_folder (str): The folder containing the Flask application's templates.\\n\\n    Returns:\\n    flask.app.Flask: A Flask application instance configured with a root route that handles POST requests.\\n    The route logs incoming request data as JSON and serves the 'index.html' template with the provided data.\\n\\n    Requirements:\\n    - flask.Flask\\n    - flask.render_template\\n    - flask.request\\n    - json\\n    - logging\\n\\n    Example:\\n    >>> app = task_func('my_templates')\\n    >>> isinstance(app, Flask)\\n    True\\n    >>> 'POST' in app.url_map.bind('').match('/', method='POST')\\n    False\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Creates a Flask application with a specified templates folder. It defines a route at the root ('/') which handles POST requests, logs the information request data as a JSON, and renders an 'index.html' template using the data provided in POST requests.\\nThe function should output with:\\n    flask.app.Flask: A Flask application instance configured with a root route that handles POST requests.\\n    The route logs incoming request data as JSON and serves the 'index.html' template with the provided data.\\nYou should write self-contained code starting with:\\n```\\nfrom flask import Flask, render_template, request\\nimport json\\nimport logging\\nlogging.basicConfig(filename=\\\"out.log\\\", level=logging.INFO)\\ndef task_func(template_folder):\\n```\",\"libs\":\"['logging', 'flask', 'json']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}