{"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":"9a3cbbfc-d430-5a50-bfb9-c864d8520a5c","task_key":"default--v0~2e1~2e0~5fhf--9a3cbbfc-d430-5a50-bfb9-c864d8520a5c","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 9a3cbbfc-d430-5a50-bfb9-c864d8520a5c","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import numpy as np\\nimport matplotlib.pyplot as plt\\nimport os\\ndef task_func(mystrings, folder_path, seed=None):\\n\",\"complete_prompt\":\"import numpy as np\\nimport matplotlib.pyplot as plt\\nimport os\\n\\n\\ndef task_func(mystrings, folder_path, seed=None):\\n    \\\"\\\"\\\"\\n    Generates random data points to plot bar charts for each in a given list of plot names,\\n    then saves them in a specified directory.\\n\\n    This function takes a list of plot names, for each generating 10 random data points in [0, 1)\\n    to create a bar chart, then saves the bar charts as .png files in the specified directory,\\n    creating the directory if it does not exist.\\n\\n    Parameters:\\n    - mystrings (list of str): List of names for the plots.\\n                               Each is used as the title for each plot, and each is used to derive\\n                               each plot's filename by replacing spaces with underscores.\\n    - folder_path (str):       Path of the folder where the plots will be saved.\\n                               If it does not exist, the function will create it.\\n    - seed (int, optional):    A seed for the random number generator to ensure reproducible results.\\n                               Defaults to None.\\n\\n    Returns:\\n    - list: Names of the files where the plots are saved. Each file corresponds to a title from `mystrings`.\\n\\n    Raises:\\n    - FileNotFoundError: If the provided directory path does not exist and cannot be created.\\n\\n    Note:\\n    - This function deduplicates mystrings while maintaining its original order.\\n    - Random data points for bar charts are generated in the range [0, 1).\\n    - Each bar chart contains 10 data points.\\n\\n    Requirements:\\n    - numpy\\n    - matplotlib\\n    - os\\n\\n    Examples:\\n    >>> task_func(['Plot 1', 'Plot 2'], './test_images/')\\n    ['Plot_1.png', 'Plot_2.png']\\n\\n    >>> task_func(['First Plot', 'Second Plot'], './another_folder/')\\n    ['First_Plot.png', 'Second_Plot.png']\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generates random data points to plot bar charts for each in a given list of plot names, then saves them in a specified directory. This function takes a list of plot names, for each generating 10 random data points in [0, 1) to create a bar chart, then saves the bar charts as .png files in the specified directory, creating the directory if it does not exist. >>> task_func(['First Plot', 'Second Plot'], './another_folder/') ['First_Plot.png', 'Second_Plot.png']\\nNote that: This function deduplicates mystrings while maintaining its original order. Random data points for bar charts are generated in the range [0, 1). Each bar chart contains 10 data points.\\nThe function should raise the exception for: FileNotFoundError: If the provided directory path does not exist and cannot be created.\\nThe function should output with:\\n    list: Names of the files where the plots are saved. Each file corresponds to a title from `mystrings`.\\nYou should write self-contained code starting with:\\n```\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\nimport os\\ndef task_func(mystrings, folder_path, seed=None):\\n```\",\"libs\":\"['numpy', 'matplotlib', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}