{"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":"a7d62ae9-7f46-5ba5-a893-730d83eed460","task_key":"default--v0~2e1~2e0~5fhf--a7d62ae9-7f46-5ba5-a893-730d83eed460","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf a7d62ae9-7f46-5ba5-a893-730d83eed460","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import random\\nimport string\\nimport hashlib\\nimport time\\ndef task_func(data_dict: dict, seed=0) -> dict:\\n\",\"complete_prompt\":\"import random\\nimport string\\nimport hashlib\\nimport time\\n\\n\\ndef task_func(data_dict: dict, seed=0) -> dict:\\n    \\\"\\\"\\\"\\n    Process the given dictionary by performing the following operations:\\n    1. Add a key \\\"a\\\" with a value of 1.\\n    2. Generate a random salt of length 5 using lowercase ASCII letters.\\n    3. For each key-value pair in the dictionary, concatenate the value with the generated salt, \\n       hash the concatenated string using SHA-256, and update the value with the hashed string.\\n    4. Add a 'timestamp' key with the current UNIX timestamp as its value.\\n\\n    Parameters:\\n    data_dict (dict): The dictionary to be processed. Values should be string-convertible.\\n    seed (int, Optional): Seed value for the random number generator. Defaults to 0.\\n\\n    Returns:\\n    dict: The processed dictionary with the hashed values and added keys.\\n\\n    Requirements:\\n    - Uses the random, string, hashlib, and time libraries.\\n\\n    Example:\\n    >>> task_func({'key': 'value'})[\\\"key\\\"]\\n    '8691a011016e0fba3c2b0b8a26e4c9c722975f1defe42f580ab55a9c97dfccf8'\\n\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Process the given dictionary by performing the following operations: 1. Add a key \\\"a\\\" with a value of 1. 2. Generate a random salt of length 5 using lowercase ASCII letters. 3. For each key-value pair in the dictionary, concatenate the value with the generated salt, hash the concatenated string using SHA-256, and update the value with the hashed string. 4. Add a 'timestamp' key with the current UNIX timestamp as its value.\\nThe function should output with:\\n    dict: The processed dictionary with the hashed values and added keys.\\nYou should write self-contained code starting with:\\n```\\nimport random\\nimport string\\nimport hashlib\\nimport time\\ndef task_func(data_dict: dict, seed=0) -> dict:\\n```\",\"libs\":\"['hashlib', 'random', 'string', 'time']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}