{"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":"57a34e4f-c51d-54a2-9396-986df5ce8b45","task_key":"default--v0~2e1~2e0~5fhf--57a34e4f-c51d-54a2-9396-986df5ce8b45","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 57a34e4f-c51d-54a2-9396-986df5ce8b45","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import sqlite3\\nfrom random import choice, seed\\nimport os\\ndef task_func(db_name, table_name, num_entries, random_seed=None):\\n\",\"complete_prompt\":\"import sqlite3\\nfrom random import choice, seed\\nimport os\\n\\n\\ndef task_func(db_name, table_name, num_entries, random_seed=None):\\n    \\\"\\\"\\\"\\n    Create an SQLite3 table and fill it with random data using the provided database and table names.\\n\\n    The function populates the table with columns 'name', 'age', 'height' using random data from the\\n    following constants:\\n    - NAMES: List of names ['John', 'Jane', 'Steve', 'Emma', 'Liam', 'Olivia']\\n    - AGES: Range of ages from 18 to 65.\\n    - HEIGHTS: Range of heights from 150cm to 200cm.\\n\\n    Parameters:\\n    db_name (str): The name of the SQLite3 database.\\n    table_name (str): The name of the table to create and populate.\\n    num_entries (int): The number of entries to insert. Must not be negative.\\n    random_seed (int, optional): The seed for generating random values. Default is None.\\n\\n    Returns:\\n    str: The absolute path of the SQLite3 database file.\\n\\n    Raises:\\n    ValueError: If num_entries is negative.\\n    \\n    Requirements:\\n    - sqlite3\\n    - random.choice\\n    - random.seed\\n    - os\\n\\n    Example:\\n    >>> db_path = task_func('test.db', 'People', 100, random_seed=42)\\n    >>> print(db_path)\\n    '/absolute/path/to/test.db'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Create an SQLite3 table and fill it with random data using the provided database and table names. The function populates the table with columns 'name', 'age', 'height' using random data from the following constants: - NAMES: List of names ['John', 'Jane', 'Steve', 'Emma', 'Liam', 'Olivia'] - AGES: Range of ages from 18 to 65. - HEIGHTS: Range of heights from 150cm to 200cm.\\nThe function should raise the exception for: ValueError: If num_entries is negative.\\nThe function should output with:\\n    str: The absolute path of the SQLite3 database file.\\nYou should write self-contained code starting with:\\n```\\nimport sqlite3\\nfrom random import choice, seed\\nimport os\\ndef task_func(db_name, table_name, num_entries, random_seed=None):\\n```\",\"libs\":\"['sqlite3', 'random', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}