{"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":"a1d316b9-163d-568a-9ba3-b01e637889ce","task_key":"default--v0~2e1~2e0~5fhf--a1d316b9-163d-568a-9ba3-b01e637889ce","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf a1d316b9-163d-568a-9ba3-b01e637889ce","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import csv\\nimport os\\nfrom datetime import datetime\\nfrom random import randint\\nimport matplotlib.pyplot as plt\\nimport pandas as pd\\n# Constants\\nVEHICLE_TYPES = ['Car', 'Bus', 'Truck', 'Bike']\\nOUTPUT_DIR = './output'\\ndef task_func(hours, output_dir=OUTPUT_DIR):\\n\",\"complete_prompt\":\"import csv\\nimport os\\nfrom datetime import datetime\\nfrom random import randint\\nimport matplotlib.pyplot as plt\\nimport pandas as pd\\n\\n# Constants\\nVEHICLE_TYPES = ['Car', 'Bus', 'Truck', 'Bike']\\nOUTPUT_DIR = './output'\\n\\n\\ndef task_func(hours, output_dir=OUTPUT_DIR):\\n    \\\"\\\"\\\"\\n    Generates traffic data for different vehicle types over a specified number of hours,\\n    saves the data to a CSV file with coloumns 'Time', 'Car', 'Bus', 'Truck', and 'Bike',\\n    and plots the data in a line chart with 'Time' on x-axis and 'Vehicle Count' on y-axis.\\n\\n    Parameters:\\n    - hours (int): Number of hours to generate data for.\\n    - output_dir (str, optional): The output file path\\n\\n    Returns:\\n    - tuple: Path to the CSV file and the matplotlib axes object of the line plot.\\n\\n    Requirements:\\n    - pandas\\n    - os\\n    - csv\\n    - matplotlib.pyplot\\n    - random\\n    - datetime\\n\\n    Example:\\n    >>> import matplotlib\\n    >>> file_path, ax = task_func(2)  # Generate data for 2 hours\\n    >>> isinstance(file_path, str)\\n    True\\n    >>> 'traffic_data.csv' in file_path\\n    True\\n    >>> isinstance(ax, matplotlib.axes.Axes)\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generates traffic data for different vehicle types over a specified number of hours, saves the data to a CSV file with coloumns 'Time', 'Car', 'Bus', 'Truck', and 'Bike', and plots the data in a line chart with 'Time' on x-axis and 'Vehicle Count' on y-axis.\\nThe function should output with:\\n    tuple: Path to the CSV file and the matplotlib axes object of the line plot.\\nYou should write self-contained code starting with:\\n```\\nimport csv\\nimport os\\nfrom datetime import datetime\\nfrom random import randint\\nimport matplotlib.pyplot as plt\\nimport pandas as pd\\n# Constants\\nVEHICLE_TYPES = ['Car', 'Bus', 'Truck', 'Bike']\\nOUTPUT_DIR = './output'\\ndef task_func(hours, output_dir=OUTPUT_DIR):\\n```\",\"libs\":\"['pandas', 'matplotlib', 'random', 'os', 'csv', 'datetime']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}