{"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":"5a0483da-9a43-5d10-9a9d-0af0d6f84bc5","task_key":"default--v0~2e1~2e0~5fhf--5a0483da-9a43-5d10-9a9d-0af0d6f84bc5","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 5a0483da-9a43-5d10-9a9d-0af0d6f84bc5","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import sqlite3\\nimport numpy as np\\nfrom random import choice, seed\\ndef task_func(db_path, table_name, num_entries, random_seed=None):\\n\",\"complete_prompt\":\"import sqlite3\\nimport numpy as np\\nfrom random import choice, seed\\n\\n\\ndef task_func(db_path, table_name, num_entries, random_seed=None):\\n    \\\"\\\"\\\"\\n    Insert random data into an SQLite3 table that contains random names, ages, and heights.\\n    If the table does not exist, it will be created.\\n    This function uses the following constants:\\n    - NAMES: List of possible names ['John', 'Jane', 'Steve', 'Emma', 'Liam', 'Olivia'].\\n    - AGES: Range of possible ages from 18 to 64.\\n    - HEIGHTS: Range of possible heights from 150cm to 199cm.\\n\\n    Parameters:\\n    db_path (str): The path to the SQLite3 database file.\\n    table_name (str): The name of the table to insert data into.\\n    num_entries (int): The number of entries to insert. Must not be negative.\\n    random_seed (int, optional): Seed for random number generation. Defaults to None (no fixed seed).\\n\\n    Returns:\\n    int: The number of rows inserted.\\n\\n    Raises:\\n    ValueError: If num_entries is negative.\\n    \\n    Requirements:\\n    - sqlite3\\n    - numpy\\n    - random.choice\\n    - random.seed\\n\\n    Example:\\n    >>> task_func('path_to_test.db', 'People', 100, random_seed=42)\\n    100\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Insert random data into an SQLite3 table that contains random names, ages, and heights. If the table does not exist, it will be created. This function uses the following constants: - NAMES: List of possible names ['John', 'Jane', 'Steve', 'Emma', 'Liam', 'Olivia']. - AGES: Range of possible ages from 18 to 64. - HEIGHTS: Range of possible heights from 150cm to 199cm.\\nThe function should raise the exception for: ValueError: If num_entries is negative.\\nThe function should output with:\\n    int: The number of rows inserted.\\nYou should write self-contained code starting with:\\n```\\nimport sqlite3\\nimport numpy as np\\nfrom random import choice, seed\\ndef task_func(db_path, table_name, num_entries, random_seed=None):\\n```\",\"libs\":\"['sqlite3', 'numpy', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}