data_source
large_stringclasses
1 value
prompt
listlengths
1
1
ability
large_stringclasses
1 value
reward_model
dict
extra_info
dict
acecode
[ { "role": "user", "content": "You are tasked with writing a function that takes a list of strings and returns a new list containing only the unique strings from the input list, preserving the original order of their first appearance. Implement the function `unique_strings(strings: List[str]) -> List[str]` w...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert unique_strings(['apple', 'banana', 'apple', 'orange']) == ['apple', 'banana', 'orange']\", \"assert unique_strings(['a', 'b', 'a', 'c', 'b']) == ['a', 'b', 'c']\", \"assert unique_strings(['hello', 'world', 'hello', 'python']) == ['hello', 'world', 'python']...
{ "split": "train", "index": 77700, "acecode_id": "bigcode_python_fns_1764", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Given a string, write a function `duplicate_characters(string)` that returns a list of characters that appear more than once in the string, preserving the order of their first appearance. The returned list should not contain any duplicate characters. For example, for the input ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert duplicate_characters('abcdef') == []\", \"assert duplicate_characters('') == []\", \"assert duplicate_characters('a') == []\", \"assert duplicate_characters('aA') == []\", \"assert duplicate_characters('Python') == []\"]}" }
{ "split": "train", "index": 77701, "acecode_id": "evol_19271", "num_tests": 5 }
acecode
[ { "role": "user", "content": "Given a binary image represented as a 2D list of integers (0s and 1s), implement a function that counts the number of distinct lines formed by consecutive 1s in the image. A line can be either horizontal, vertical, or diagonal (both directions). The function should return the c...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert count_lines([[1, 1], [1, 1]]) == 2\", \"assert count_lines([[0, 0], [0, 0]]) == 0\", \"assert count_lines([[1, 0, 0, 1], [0, 1, 1, 0], [1, 0, 0, 1]]) == 5\", \"assert count_lines([[1]]) == 1\", \"assert count_lines([[0, 1], [1, 0]]) == 2\", \"assert count_li...
{ "split": "train", "index": 77702, "acecode_id": "bigcode_python_fns_34373", "num_tests": 10 }
acecode
[ { "role": "user", "content": "You are tasked with creating a function that takes a list of products and returns a formatted string containing details of each product. Each product is represented as a dictionary with the keys 'id', 'name', 'price', and 'description'. Your function should concatenate the prod...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert format_products([]) == ''\", \"assert format_products([{'id': 1, 'name': 'Product A', 'price': 10.99, 'description': 'Description for product A'}]) == 'ID: 1, Name: Product A, Price: 10.99, Description: Description for product A'\", \"assert format_products(...
{ "split": "train", "index": 77703, "acecode_id": "oss_18856", "num_tests": 13 }
acecode
[ { "role": "user", "content": "You are tasked with creating a function that takes a string representing a software version and sets two metadata entries for a build revision. The function should take a single input parameter, 'revision', which is a string in the format 'major.minor.patch' (for example, '1.0....
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert set_build_revision('1.0.0') == {'current_revision': '1.0.0', 'deprecated_revision': '1.0.0'}\", \"assert set_build_revision('2.1.5') == {'current_revision': '2.1.5', 'deprecated_revision': '2.1.5'}\", \"assert set_build_revision('0.0.1') == {'current_revisio...
{ "split": "train", "index": 77704, "acecode_id": "bigcode_python_fns_14300", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with creating a migration for a new model in an existing application. The application already has a module named `lowfat` with existing migrations, and you need to add a new model called `ExpenseCategory` to this module. The `ExpenseCategory` model should have a ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert generate_migration_script() == \\\"from django.db import migrations, models\\\\n\\\\nclass Migration(migrations.Migration):\\\\n\\\\n dependencies = [\\\\n ('lowfat', '0004_expense'),\\\\n ]\\\\n\\\\n operations = [\\\\n migrations.Cre...
{ "split": "train", "index": 77705, "acecode_id": "oss_21992", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Implement a function called `factorial` that computes the factorial of a non-negative integer `n`. The factorial of `n`, denoted as `n!`, is the product of all positive integers less than or equal to `n`. For example, `5! = 5 * 4 * 3 * 2 * 1 = 120`. Your function should return ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert factorial(0) == 1\", \"assert factorial(1) == 1\", \"assert factorial(2) == 2\", \"assert factorial(3) == 6\", \"assert factorial(4) == 24\", \"assert factorial(5) == 120\", \"assert factorial(6) == 720\", \"assert factorial(7) == 5040\", \"assert factorial(...
{ "split": "train", "index": 77706, "acecode_id": "evol_20436", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with creating a function that takes a string representing the name of an NMR machine producer and returns a specific parsing function for that producer. The function should return a lambda function that, when called, will return a string indicating which producer...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert get_parser('Agilent')() == 'Parsing data for Agilent'\", \"assert get_parser('Bruker')() == 'Parsing data for Bruker'\", \"assert get_parser('Varian')() == 'Parsing data for Varian'\", \"assert get_parser('Unknown')() == 'Producer not recognized'\", \"assert...
{ "split": "train", "index": 77707, "acecode_id": "bigcode_python_fns_18959", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are given a list of integers representing the bit widths of nodes in an operation graph. Your task is to write a function that updates all bit widths in the list to the maximum bit width found in the list. If the maximum bit width exceeds a defined acceptable limit (let's s...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert update_bit_width([8, 16, 32, 64]) == [64, 64, 64, 64]\", \"assert update_bit_width([4, 8, 15, 16, 23, 42]) == [42, 42, 42, 42, 42, 42]\", \"assert update_bit_width([1, 2, 3]) == [3, 3, 3]\", \"assert update_bit_width([64]) == [64]\", \"assert update_bit_widt...
{ "split": "train", "index": 77708, "acecode_id": "bigcode_python_fns_38362", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Implement a function `flatten_3d_matrix(matrix)` that takes a three-dimensional list (matrix) of integers, which can include positive integers, negative integers, and zeros. Your function should flatten the matrix into a one-dimensional list. Ensure that your solution can handl...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert flatten_3d_matrix([[[1, 2], [3, 4]], [[5, 6], [-7, 0]]]) == [1, 2, 3, 4, 5, 6, -7, 0]\", \"assert flatten_3d_matrix([[[1, 2, 3], [4]], [[5], [6, 7, 8]]]) == [1, 2, 3, 4, 5, 6, 7, 8]\", \"assert flatten_3d_matrix([]) == []\", \"assert flatten_3d_matrix([[[[]]...
{ "split": "train", "index": 77709, "acecode_id": "evol_1264", "num_tests": 13 }
acecode
[ { "role": "user", "content": "You are tasked with implementing a function `flush_cache(roles: List[str]) -> str` that simulates flushing a cache for a list of roles. The function takes a list of strings representing roles and returns a message indicating whether the cache was flushed successfully or if the ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert flush_cache(['webapp_servers']) == 'Cache flushed successfully.'\", \"assert flush_cache(['celery_servers']) == 'Cache flushed successfully.'\", \"assert flush_cache(['webapp_servers', 'other_servers']) == 'Cache flushed successfully.'\", \"assert flush_cach...
{ "split": "train", "index": 77710, "acecode_id": "bigcode_python_fns_14471", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Given a string `s`, return a list of merged words that contain exactly `n` consonants. A merged word is created by concatenating words that meet the consonant count requirement. Each merged word should be prefixed by the count of vowels in it. If no words meet the criteria, ret...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert select_merge_words('hello world', 3) == ['2hello']\", \"assert select_merge_words('the quick brown fox jumps', 4) == []\", \"assert select_merge_words('', 2) == []\", \"assert select_merge_words('apple banana cherry', 2) == []\", \"assert select_merge_words(...
{ "split": "train", "index": 77711, "acecode_id": "evol_4758", "num_tests": 7 }
acecode
[ { "role": "user", "content": "Implement a function that calculates the standard deviation of a given list of numerical values. The function should take a single argument, a list of floats or integers, and return the standard deviation as a float. The standard deviation should be calculated using the formula...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert abs(standard_deviation([2,4,4,4,5,5,7,9]) - 2.0) < 1e-9\", \"assert abs(standard_deviation([1, 2, 3, 4, 5]) - 1.414213562) < 1e-9\", \"assert abs(standard_deviation([7, 7, 7, 7]) - 0.0) < 1e-9\", \"assert abs(standard_deviation([1]) - 0.0) < 1e-9\", \"assert...
{ "split": "train", "index": 77712, "acecode_id": "evol_1027", "num_tests": 13 }
acecode
[ { "role": "user", "content": "Implement a function that checks if a given string is composed exclusively of uppercase alphabetic characters and numeric digits. The string can contain any combination of uppercase letters (A-Z) and numbers (0-9). Return True if the string matches this pattern, otherwise retur...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert is_uppercase_numeric_chain('AB12') == True\", \"assert is_uppercase_numeric_chain('45XY') == True\", \"assert is_uppercase_numeric_chain('X4Y2') == True\", \"assert is_uppercase_numeric_chain('A1B2C3') == True\", \"assert is_uppercase_numeric_chain('123456')...
{ "split": "train", "index": 77713, "acecode_id": "evol_31562", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Given an array containing the numbers 1 to 13 each appearing exactly twice, along with the number 15 appearing twice, write a function that checks if the number 15 is present in the array and returns its indices as a list. If 15 is not present, return an empty list. The functio...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert find_indices_of_15([3, 3, 7, 7, 1, 1, 12, 12, 11, 11, 5, 5, 6, 6, 9, 9, 8, 8, 4, 4, 2, 2, 15, 15, 10, 10]) == [22, 23]\", \"assert find_indices_of_15([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 15, 14]) == [13, 14]\", \"assert find_indices_of_15([15, 15,...
{ "split": "train", "index": 77714, "acecode_id": "evol_17218", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are given a string that contains a series of words separated by spaces. Your task is to implement a function that takes this string as input and returns a new string where each word is reversed, but the order of the words remains the same. For example, if the input string i...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert reverse_words('hello world') == 'olleh dlrow'\", \"assert reverse_words('LeetCode is awesome') == 'edoCteeL si emosewa'\", \"assert reverse_words('Python programming') == 'nohtyP gnimmargorp'\", \"assert reverse_words('Test case') == 'tseT esac'\", \"assert ...
{ "split": "train", "index": 77715, "acecode_id": "bigcode_python_fns_43215", "num_tests": 14 }
acecode
[ { "role": "user", "content": "You are tasked with writing a function that generates SEO-friendly URLs from a given string. The function should take a single string input and convert it into a URL-friendly format by performing the following operations: 1. Convert the string to lowercase. 2. Remove any specia...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert generate_seo_url('Hello World!') == 'hello-world'\", \"assert generate_seo_url('Python is awesome!') == 'python-is-awesome'\", \"assert generate_seo_url('Special @Characters #Test') == 'special-characters-test'\", \"assert generate_seo_url('Multiple space...
{ "split": "train", "index": 77716, "acecode_id": "oss_9095", "num_tests": 14 }
acecode
[ { "role": "user", "content": "You are tasked with creating a function that updates global configuration settings for a database connection based on a specified configuration name. The configurations are stored in a predefined dictionary. The function should update three global variables: SOLR_CORE, SOLR_POR...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert load_config('configA') == None\", \"assert SOLR_CORE == 'coreA'\", \"assert SOLR_PORT == 8983\", \"assert SOLR_ADDRESS == 'localhost'\", \"assert load_config('configB') == None\", \"assert load_config('non_existent_config') == None\", \"assert load_config('c...
{ "split": "train", "index": 77717, "acecode_id": "bigcode_python_fns_29877", "num_tests": 9 }
acecode
[ { "role": "user", "content": "Given a two-dimensional array of integer values, implement a function that computes the quantity of unique digits each sub-array contains. The function should return the sum of these unique counts for all sub-arrays. Each digit (0-9) should be counted uniquely for each sub-arra...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert unique_counts([[1, 2, -3, -2, 4, 5, 1], [-1, 2, 3, 2, 1], [10, 11, 12, 10]]) == ([5, 3, 3], 11)\", \"assert unique_counts([[0, 0, 0], [1, 1, 1], [2, 2, 2]]) == ([1, 1, 1], 3)\", \"assert unique_counts([[1, 2], [2, 3], [3, 4]]) == ([2, 2, 2], 6)\", \"assert u...
{ "split": "train", "index": 77718, "acecode_id": "evol_12106", "num_tests": 11 }
acecode
[ { "role": "user", "content": "You are tasked with implementing a function that simulates the creation of a user in a user pool. The function should take in a list of user details, where each user detail is a dictionary containing 'email' and 'username'. Your function should return a list of results indicati...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert create_users([{'email': 'user1@example.com', 'username': 'user1'}, {'email': 'user2@example.com', 'username': 'user2'}]) == ['User created: user1', 'User created: user2']\", \"assert create_users([{'email': 'user1@example.com', 'username': 'user1'}, {'email'...
{ "split": "train", "index": 77719, "acecode_id": "bigcode_python_fns_13951", "num_tests": 12 }
acecode
[ { "role": "user", "content": "You are tasked with creating a Python function that processes a given string to extract specific information. The input string will contain a series of comma-separated key-value pairs, where the keys are strings and the values can be either strings or integers. Your function sh...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert extract_value('help=specify API,version=1.0,users=100', 'version') == '1.0'\", \"assert extract_value('help=specify API,version=1.0,users=100', 'users') == 100\", \"assert extract_value('help=specify API,version=1.0,users=100', 'platform') == 'Key not found'...
{ "split": "train", "index": 77720, "acecode_id": "oss_28201", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are given a list of meeting time intervals, where each interval is represented as a list of two integers [start, end]. Write a function `canAttendAllMeetings(intervals)` that determines if a person can attend all meetings without any overlap. If any meetings overlap, the fu...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert canAttendAllMeetings([[0, 30], [5, 10], [15, 20]]) == False\", \"assert canAttendAllMeetings([[7, 10], [2, 4]]) == True\", \"assert canAttendAllMeetings([[1, 2], [3, 4], [5, 6]]) == True\", \"assert canAttendAllMeetings([[0, 1], [1, 2], [2, 3]]) == True\", \...
{ "split": "train", "index": 77721, "acecode_id": "evol_23191", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Given an integer n, write a function `sum_of_primes(n)` that calculates the sum of all prime numbers less than or equal to n. A prime number is defined as a natural number greater than 1 that has no positive divisors other than 1 and itself. Your function should return the sum ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert sum_of_primes(10) == 17\", \"assert sum_of_primes(0) == 0\", \"assert sum_of_primes(1) == 0\", \"assert sum_of_primes(2) == 2\", \"assert sum_of_primes(3) == 5\", \"assert sum_of_primes(4) == 5\", \"assert sum_of_primes(5) == 10\", \"assert sum_of_primes(6) ...
{ "split": "train", "index": 77722, "acecode_id": "oss_14864", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Design a program that takes a list of numbers as input and returns the corresponding ASCII character of the kth smallest number after sorting the list in ascending order. If the kth smallest number does not exist, return an error message. Implement a function `find_ascii(number...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert find_ascii([90, 77, 66, 105], 2) == 'M'\", \"assert find_ascii([65, 66, 67, 68], 1) == 'A'\", \"assert find_ascii([100, 99, 98, 97], 3) == 'c'\", \"assert find_ascii([70], 1) == 'F'\", \"assert find_ascii([72, 69, 76, 76, 79], 3) == 'L'\", \"assert find_asci...
{ "split": "train", "index": 77723, "acecode_id": "evol_23155", "num_tests": 11 }
acecode
[ { "role": "user", "content": "Given two strings, `string1` and `string2`, write a function `find_shortest_unique_substring(string1: str, string2: str) -> str` that finds the shortest substring in `string1` that contains all the unique characters present in `string2`. If no such substring exists, return an e...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert find_shortest_unique_substring('xyz', 'abc') == ''\", \"assert find_shortest_unique_substring('aaaaaa', 'a') == 'a'\", \"assert find_shortest_unique_substring('xyza', 'yz') == 'yz'\", \"assert find_shortest_unique_substring('abc', 'abc') == 'abc'\", \"assert...
{ "split": "train", "index": 77724, "acecode_id": "evol_20396", "num_tests": 11 }
acecode
[ { "role": "user", "content": "Implement a function `generate_matrix` that takes two parameters: `size`, a tuple representing the dimensions of the matrix (rows, columns), and `start`, an integer which specifies the starting number for filling the matrix. The function should return a 2D list (list of lists) ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert generate_matrix((3, 5), 1) == [[1, 2, 3, 4, 5], [6, 7, 8, 9, 10], [11, 12, 13, 14, 15]]\", \"assert generate_matrix((2, 2), 0) == [[0, 1], [2, 3]]\", \"assert generate_matrix((1, 1), 10) == [[10]]\", \"assert generate_matrix((4, 3), 5) == [[5, 6, 7], [8, 9, ...
{ "split": "train", "index": 77725, "acecode_id": "evol_10735", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with creating a function that formats and displays system information in a user-friendly manner. The function should accept the following parameters: operating_system (str), release_version (str), architecture (str), processor_type (str), python_version (str), an...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert format_system_information('Linux', '5.4.0-42-generic', 'x86_64', 'x86_64', '3.8.5', 'CPython') == 'System Information:\\\\n--------------------\\\\nOperating System: Linux\\\\nRelease Version: 5.4.0-42-generic\\\\nArchitecture: x86_64\\\\nProcessor Type: x86...
{ "split": "train", "index": 77726, "acecode_id": "oss_976", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are given the dimensions of a car represented by its height and width, a clearance value, a goal position, a minimum position, and a scaling factor. Your task is to implement the `calculate_rendering_parameters` function that computes the following parameters based on the p...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert calculate_rendering_parameters(50, 100, 10, 200, 0, 1) == {'front_wheel': (0, 10), 'back_wheel': (-25.0, 10), 'flagpole': (200.0, 100.0), 'flag': (200.0, 150.0)}\", \"assert calculate_rendering_parameters(40, 80, 5, 150, 10, 1) == {'front_wheel': (0, 5), 'ba...
{ "split": "train", "index": 77727, "acecode_id": "oss_37199", "num_tests": 9 }
acecode
[ { "role": "user", "content": "You are given a list of dictionaries, where each dictionary represents an image with two keys: 'Image_URL' (a string) and 'Image_Label' (a string). Implement a function `get_image_labels(data: List[Dict[str, str]]) -> List[str]` that extracts and returns a list of image labels ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert get_image_labels([{'Image_URL': 'http://example.com/image1.jpg', 'Image_Label': 'cat'}, {'Image_URL': 'http://example.com/image2.jpg', 'Image_Label': 'dog'}]) == ['cat', 'dog']\", \"assert get_image_labels([{'Image_URL': 'http://example.com/image3.jpg', 'Ima...
{ "split": "train", "index": 77728, "acecode_id": "evol_3452", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Given two 2D matrices represented as lists of lists, return the resulting matrix after multiplying them together. The matrices are guaranteed to be compatible for multiplication, meaning the number of columns in the first matrix equals the number of rows in the second matrix. I...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert matrix_multiply([[1, 2], [3, 4]], [[5, 6], [7, 8]]) == [[19, 22], [43, 50]]\", \"assert matrix_multiply([[1]], [[1]]) == [[1]]\", \"assert matrix_multiply([[1, 2]], [[3], [4]]) == [[11]]\", \"assert matrix_multiply([[1, 0], [0, 1]], [[5, 6], [7, 8]]) == [[5,...
{ "split": "train", "index": 77729, "acecode_id": "bigcode_python_fns_38184", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with implementing a function that simulates the process of validating a file download request. The function should check if a given file path is valid based on certain conditions. Your function should take in a file path and a list of existing files in the system...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert validate_download('file1.txt', ['file1.txt', 'file2.txt', 'file3.txt']) == 'File is ready for download'\", \"assert validate_download('file4.txt', ['file1.txt', 'file2.txt', 'file3.txt']) == 'File not found'\", \"assert validate_download('folder/', ['file1.t...
{ "split": "train", "index": 77730, "acecode_id": "bigcode_python_fns_14154", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Given a list of strings representing file paths, write a function that returns a list of unique file names found in those paths. The function should extract only the file names (without directories) from the given paths and ensure that each file name appears only once in the ou...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert get_unique_filenames(['/documents/report.doc', '/documents/report.doc', '/downloads/report.doc']) == ['report.doc']\", \"assert get_unique_filenames([]) == []\", \"assert get_unique_filenames(['/abc/xyz/file.txt', '/abc/xyz/file.txt']) == ['file.txt']\", \"a...
{ "split": "train", "index": 77731, "acecode_id": "bigcode_python_fns_18670", "num_tests": 9 }
acecode
[ { "role": "user", "content": "You are tasked with implementing a Python function that processes different types of datasets based on the value of the `dataset_type` variable. Your function should return a specific message corresponding to the dataset type. The dataset types and their corresponding messages ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert process_dataset('UNITER_VqaDataset') == 'Processing UNITER VQA dataset'\", \"assert process_dataset('COCO_DetectionDataset') == 'Processing COCO detection dataset'\", \"assert process_dataset('SQuAD_Dataset') == 'Processing SQuAD dataset'\", \"assert process...
{ "split": "train", "index": 77732, "acecode_id": "oss_35135", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with implementing a function that monitors the validation loss during a training process of a machine learning model. Your function should take a list of validation losses and a string condition that determines whether to ignore saving the model weights. The func...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert track_best_loss([0.5, 0.4, 0.3, 0.2, 0.1], 'False') == (0.1, 4, True)\", \"assert track_best_loss([0.5, 0.51, 0.49, 0.48, 0.47], 'False') == (0.47, 4, True)\", \"assert track_best_loss([0.5, 0.5, 0.5, 0.5], 'False') == (0.5, 0, False)\", \"assert track_best_...
{ "split": "train", "index": 77733, "acecode_id": "oss_37257", "num_tests": 13 }
acecode
[ { "role": "user", "content": "Write a function `areAnagrams(str1, str2)` that takes in two strings `str1` and `str2` as input and returns `True` if they are anagrams of each other, and `False` otherwise. An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typicall...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert areAnagrams('listen', 'silent') == True\", \"assert areAnagrams('hello', 'world') == False\", \"assert areAnagrams('Triangle', 'Integral') == True\", \"assert areAnagrams('The Morse Code', 'Here come dots') == True\", \"assert areAnagrams('School master', 'T...
{ "split": "train", "index": 77734, "acecode_id": "oss_17643", "num_tests": 13 }
acecode
[ { "role": "user", "content": "Given a list of strings, where each string can contain words separated by spaces, implement a function that counts the occurrence of each unique word across all strings in the list. The function should return a dictionary where the keys are the unique words and the values are t...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert count_word_occurrences(['Hello world', 'hello there', 'Hello again!']) == {'hello': 3, 'world': 1, 'there': 1, 'again': 1}\", \"assert count_word_occurrences(['Python is great', 'Python is easy', 'I love Python']) == {'python': 3, 'is': 2, 'great': 1, 'easy'...
{ "split": "train", "index": 77735, "acecode_id": "bigcode_python_fns_23025", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with creating a function that simulates a database query based on a given key. The function should take in a dictionary representing a simulated database and a key to query. If the key exists in the database, return the corresponding value. If the key does not ex...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert query_database({'a': 'apple', 'b': 'banana'}, 'a') == 'apple'\", \"assert query_database({'a': 'apple', 'b': 'banana'}, 'b') == 'banana'\", \"assert query_database({'x': 'x-ray', 'y': 'yellow'}, 'y') == 'yellow'\", \"assert query_database({'x': 'x-ray', 'y':...
{ "split": "train", "index": 77736, "acecode_id": "bigcode_python_fns_36623", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with implementing a function that simulates muting users in a voice channel. The function takes the following parameters: \n- `users`: A list of user IDs (represented as integers) to be muted. \n- `time_and_reason`: An optional parameter that is a tuple containin...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert mute_users([1, 2, 3], (10, 'Misbehavior')) == ['User 1 has been muted for 10 minutes due to Misbehavior.', 'User 2 has been muted for 10 minutes due to Misbehavior.', 'User 3 has been muted for 10 minutes due to Misbehavior.']\", \"assert mute_users([4, 5], ...
{ "split": "train", "index": 77737, "acecode_id": "oss_472", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Create a function `forge_url` that constructs a Uniform Resource Locator (URL) based on the provided components: transfer protocol, subdomain, main domain, path, matrix parameters, route parameters, query parameters, and fragment identifier. The function should take the followi...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert forge_url('https', 'mypage', 'google.com', 'search/profile', {'edit': 'True'}, {'userid': '12345'}, {'q': 'Internet Address', 'hl': 'en', 'safe': 'off'}, 'section1') == 'https://mypage.google.com/search/profile;edit=True/userid=12345?q=Internet+Address&hl=en...
{ "split": "train", "index": 77738, "acecode_id": "evol_7503", "num_tests": 14 }
acecode
[ { "role": "user", "content": "You are tasked with implementing a function that manages synchronization modules for a camera system. The function should support three operations: adding a synchronization module, removing a synchronization module, and updating a camera associated with a synchronization module...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert manage_camera_system([('add', 'Module1'), ('update', 'Module1', 'Camera1', {'id': 1}), ('add', 'Module2'), ('update', 'Module2', 'Camera2', {'id': 2}), ('remove', 'Module1')]) == {'Module2': {'Camera2': {'id': 2}}}\", \"assert manage_camera_system([('add', '...
{ "split": "train", "index": 77739, "acecode_id": "oss_14777", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Given a list of two nested lists of equal dimensions, write a function that sums their corresponding elements and returns a new nested list with the same dimensions. Each nested list will contain integers and have the same number of rows and columns. For example, summing the ne...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert sum_nested_lists([[[1, 2], [3, 4]], [[5, 6], [7, 8]]]) == [[6, 8], [10, 12]]\", \"assert sum_nested_lists([[[0, 0], [0, 0]], [[0, 0], [0, 0]]]) == [[0, 0], [0, 0]]\", \"assert sum_nested_lists([[[1, 1], [1, 1]], [[1, 1], [1, 1]]]) == [[2, 2], [2, 2]]\", \"as...
{ "split": "train", "index": 77740, "acecode_id": "evol_33729", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Implement a function that generates all unique combinations of characters from the given string. Each combination should be represented as a string, and the function should return a list of these combinations sorted in lexicographical order. The function should not include any ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert sorted(generate_combinations('abc')) == ['a', 'ab', 'abc', 'ac', 'b', 'bc', 'c']\", \"assert sorted(generate_combinations('a')) == ['a']\", \"assert sorted(generate_combinations('xyz')) == ['x', 'xy', 'xyz', 'xz', 'y', 'yz', 'z']\", \"assert sorted(generate_...
{ "split": "train", "index": 77741, "acecode_id": "evol_31822", "num_tests": 8 }
acecode
[ { "role": "user", "content": "You are given a string representing a date in the format 'YYYY-MM-DD'. Your task is to implement a function that returns a string indicating the day of the week for that date. The output should be one of 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', or 'Su...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert get_day_of_week('2023-10-01') == 'Sunday'\", \"assert get_day_of_week('2023-10-02') == 'Monday'\", \"assert get_day_of_week('2023-10-03') == 'Tuesday'\", \"assert get_day_of_week('2023-10-04') == 'Wednesday'\", \"assert get_day_of_week('2023-10-05') == 'Thur...
{ "split": "train", "index": 77742, "acecode_id": "bigcode_python_fns_19249", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Implement a function `classify_numbers(input_string: str) -> Tuple[int, int, int]` that takes a string of comma-separated numbers and returns a tuple with three integers representing the count of even numbers, odd numbers, and zeros respectively. The function should handle inva...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert classify_numbers('0,0,0') == (0, 0, 3)\", \"assert classify_numbers('-1,-2,-3,-4,-5') == (2, 3, 0)\", \"assert classify_numbers('2,4,6,8') == (4, 0, 0)\", \"assert classify_numbers('1,3,5,7,9') == (0, 5, 0)\", \"assert classify_numbers('') == (0, 0, 0)\", \"...
{ "split": "train", "index": 77743, "acecode_id": "evol_8771", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with creating a Python function that filters a list of sheet names based on a given dictionary of criteria. The function should take a list of sheet names and a dictionary mapping sheet titles to a boolean value as input. It should return a list of sheet names th...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert filter_sheets(['Sheet1', 'Sheet2', 'Data', 'Summary'], {'Sheet1': True, 'Sheet2': False, 'Data': True, 'Summary': False}) == ['Sheet1', 'Data']\", \"assert filter_sheets(['SheetA', 'SheetB', 'SheetC'], {'SheetA': True, 'SheetB': True}) == ['SheetA', 'SheetB'...
{ "split": "train", "index": 77744, "acecode_id": "oss_9769", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Implement a function `compare_multiple_anagrams(pairs: List[List[str]]) -> List[bool]` that takes a two-dimensional list of string pairs and returns a list of boolean values indicating whether each pair is anagrammatic or not. The comparison should be case insensitive, meaning ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert compare_multiple_anagrams([['Listen', 'Silent'], ['fun', 'nuf'], ['hello', 'world']]) == [True, True, False]\", \"assert compare_multiple_anagrams([['a', 'A'], ['rat', 'tar'], ['test', 'sett']]) == [True, True, True]\", \"assert compare_multiple_anagrams([['...
{ "split": "train", "index": 77745, "acecode_id": "evol_6386", "num_tests": 11 }
acecode
[ { "role": "user", "content": "Implement a function `get_even_prime_and_merge(l1: list, l2: list) -> list` that returns a list of unique even prime numbers from both input lists, merged and sorted in descending order. An even prime number is defined as a prime number that is even. The only even prime number ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert get_even_prime_and_merge([-1, 2, -4, 5, 6], [5, 3, -5, 2, -3, 3, 8, 0, 14, 4, -10]) == [2]\", \"assert get_even_prime_and_merge([], []) == []\", \"assert get_even_prime_and_merge([1, 3, 5], [7, 9, 11]) == []\", \"assert get_even_prime_and_merge([2, 2, 2], [2...
{ "split": "train", "index": 77746, "acecode_id": "evol_29172", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Implement a function that translates a string representation of an XML data structure representing a student's details into a nested dictionary. The XML structure contains personal information such as name, age, and city, as well as grades for various subjects. The function sho...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert xml_to_dict('<student><name>John</name><age>30</age><city>New York</city><grades><math>95</math><science>88</science><english>90</english></grades></student>') == {'name': 'John', 'age': '30', 'city': 'New York', 'grades': {'math': '95', 'science': '88', 'en...
{ "split": "train", "index": 77747, "acecode_id": "evol_20163", "num_tests": 15 }
acecode
[ { "role": "user", "content": "You are tasked with creating a function that validates variable names according to a specific set of rules. The function should take a string as input and return True if the string is a valid variable name, and False otherwise. A valid variable name must adhere to the following...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert validate_variable_name('my_variable') == True\", \"assert validate_variable_name('3invalid') == False\", \"assert validate_variable_name('first-name') == False\", \"assert validate_variable_name('valid_name1') == True\", \"assert validate_variable_name('_val...
{ "split": "train", "index": 77748, "acecode_id": "oss_16402", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Write a function `generate_passphrase(length: int) -> str` that generates a random passphrase of a specified length consisting of Cyrillic characters, digits, and punctuation symbols. The passphrase should be generated using a blend of these character types. The function should...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert generate_passphrase(12) is not None\", \"assert len(generate_passphrase(12)) == 12\", \"assert len(generate_passphrase(8)) == 8\", \"assert len(generate_passphrase(16)) == 16\", \"assert len(generate_passphrase(20)) == 20\", \"assert isinstance(generate_pass...
{ "split": "train", "index": 77749, "acecode_id": "evol_19294", "num_tests": 13 }
acecode
[ { "role": "user", "content": "Given a string that represents an informal Docker image tag, your task is to resolve this tag into a full Docker image tag. The following rules apply: If the tag starts with 'file:', return it as it is without the 'file:' prefix. If the tag contains a ':', return it unchanged. ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert resolve_image('3.4.6') == 'neo4j:3.4.6'\", \"assert resolve_image('latest') == 'neo4j:latest'\", \"assert resolve_image('neo4j:3.4.6') == 'neo4j:3.4.6'\", \"assert resolve_image('file:/home/me/image.tar') == '/home/me/image.tar'\", \"assert resolve_image('fi...
{ "split": "train", "index": 77750, "acecode_id": "bigcode_python_fns_24445", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with creating a server selection algorithm for a cloud computing platform. The platform has a dictionary `fullData` containing server information, where the keys are server names and the values are lists of CPU usage data for each server. Each CPU usage data list...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert findBestServer({'server1': [20, 30, 40], 'server2': [10, 20, 30, 40], 'server3': [15, 25, 35, 45]}) == 'server2'\", \"assert findBestServer({'serverA': [5, 10], 'serverB': [20], 'serverC': [5, 5, 5]}) == 'serverC'\", \"assert findBestServer({'server1': [100,...
{ "split": "train", "index": 77751, "acecode_id": "oss_31298", "num_tests": 13 }
acecode
[ { "role": "user", "content": "You are tasked with creating a function that takes a variable number of string inputs, representing aliases, and returns a dictionary with a single key 'alias' which maps to a list containing all provided aliases. Implement a function called 'create_alias_dict' that fulfills th...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert create_alias_dict('admin', 'user', 'guest') == {'alias': ['admin', 'user', 'guest']}\", \"assert create_alias_dict('root') == {'alias': ['root']}\", \"assert create_alias_dict('db_admin', 'db_user') == {'alias': ['db_admin', 'db_user']}\", \"assert create_al...
{ "split": "train", "index": 77752, "acecode_id": "bigcode_python_fns_19010", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with implementing a function that generates a URL for a fighting game challenge based on a given QQ number. The function should take an integer QQ number as input and return a formatted URL string that includes the QQ number in the appropriate place. The URL form...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert generate_fight_url(123456789) == 'https://fight.pet.qq.com/cgi-bin/petpk?cmd=fight&puin=123456789'\", \"assert generate_fight_url(987654321) == 'https://fight.pet.qq.com/cgi-bin/petpk?cmd=fight&puin=987654321'\", \"assert generate_fight_url(111222333) == 'ht...
{ "split": "train", "index": 77753, "acecode_id": "bigcode_python_fns_46834", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are given a list of dictionaries representing different items in a store. Each dictionary contains properties about the item, such as its 'category', 'brand', and 'price'. Your task is to create a function that assigns a default style property (like 'color' or 'marker') to ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert assign_style_props([{'category': 'fruit', 'brand': 'A', 'price': 1.0}, {'category': 'fruit', 'brand': 'B', 'price': 1.5}, {'category': 'vegetable', 'brand': 'A', 'price': 2.0}], 'category', ['red', 'green', 'blue']) == {'fruit': 'red', 'vegetable': 'green'}\...
{ "split": "train", "index": 77754, "acecode_id": "bigcode_python_fns_24077", "num_tests": 14 }
acecode
[ { "role": "user", "content": "You are given a 2D grid of complex numbers representing a field, and you need to extract a specific field type from this grid. The grid is defined as a 2D list of complex numbers, and the field type is specified as a string that indicates which field you want to extract. The va...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert extract_field([[1+2j, 2+3j], [3+4j, 4+5j]], 'Er') == [[1.0, 2.0], [3.0, 4.0], [2.0, 3.0], [4.0, 5.0]]\", \"assert extract_field([[0+0j, 1+1j], [2+2j, 3+3j]], 'Et') == [[0.0, 1.0], [2.0, 3.0], [0.0, 1.0], [2.0, 3.0]]\", \"assert extract_field([[5+6j, 7+8j], [...
{ "split": "train", "index": 77755, "acecode_id": "bigcode_python_fns_49959", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with implementing a function that simulates the retrieval of course evaluations based on specific criteria. The function `search_evaluations(campus, year, term_name, curriculum_abbreviation=None, course_number=None, section_id=None, student_id=None)` takes the fo...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert search_evaluations('Main Campus', 2023, 'Winter') == []\", \"assert search_evaluations('Main Campus', 2022, 'Autumn', 'CS', '101') == []\", \"assert search_evaluations('Main Campus', 2023, 'Summer', 'ENG', '201', 'A1', 'S12345') == []\", \"assert search_eval...
{ "split": "train", "index": 77756, "acecode_id": "bigcode_python_fns_16383", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with implementing a function that efficiently transfers the contents of a dictionary into a new object. You need to write a function called `initialize_attributes` that takes an `overridden` value and a variable number of keyword arguments. The `initialize_attrib...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert initialize_attributes(1, a=2, b=3).overridden == 1\", \"assert initialize_attributes(10, x=5, y=6).x == 5\", \"assert initialize_attributes(0, name='Alice', age=30).name == 'Alice'\", \"assert initialize_attributes(100, active=True, score=99).score == 99\", ...
{ "split": "train", "index": 77757, "acecode_id": "oss_11112", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with implementing a Python function that calculates the average of a list of integers. The function should take a list of integers as input and return the average as a float. If the input list is empty, the function should return 0.0. Your function should handle ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert calculate_average([1, 2, 3, 4, 5]) == 3.0\", \"assert calculate_average([-1, -2, -3, -4, -5]) == -3.0\", \"assert calculate_average([0, 0, 0]) == 0.0\", \"assert calculate_average([1, 2, 3]) == 2.0\", \"assert calculate_average([10, 20, 30, 40]) == 25.0\", \...
{ "split": "train", "index": 77758, "acecode_id": "oss_17887", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with creating a function that simulates the deployment of a chatbot model based on the user's input. The function, `deploy_model(user_bot: str, user_id: str)`, takes in two parameters: `user_bot`, which represents the name of the bot, and `user_id`, which is the ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert deploy_model('ChatBot', 'user123') == 'Model for ChatBot deployed by user user123 successfully.'\", \"assert deploy_model('Assistant', 'admin007') == 'Model for Assistant deployed by user admin007 successfully.'\", \"assert deploy_model('SupportBot', 'user45...
{ "split": "train", "index": 77759, "acecode_id": "bigcode_python_fns_33458", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with creating a function that simulates a job retrieval system. The function `get_jobs(limit: Optional[int]) -> List[Job]` should take an optional integer parameter `limit` which specifies the maximum number of job listings to be returned. If `limit` is provided,...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert get_jobs(3) == [{'id': 1, 'title': 'Software Engineer', 'company': 'Company A'}, {'id': 2, 'title': 'Data Scientist', 'company': 'Company B'}, {'id': 3, 'title': 'Web Developer', 'company': 'Company C'}]\", \"assert get_jobs(0) == []\", \"assert get_jobs(1) ...
{ "split": "train", "index": 77760, "acecode_id": "bigcode_python_fns_9287", "num_tests": 10 }
acecode
[ { "role": "user", "content": "You are tasked with simulating the behavior of a heart's pumping function and checking the normalcy of its valves. You will implement a function `simulate_heart` that performs the following tasks: \n1. Simulate the pumping function of the left side of the heart, which is repres...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert simulate_heart() == (70, 60, True)\", \"assert simulate_heart() == (70, 60, True)\", \"assert simulate_heart() == (70, 60, True)\", \"assert simulate_heart() == (70, 60, True)\", \"assert simulate_heart() == (70, 60, True)\", \"assert simulate_heart() == (70...
{ "split": "train", "index": 77761, "acecode_id": "oss_2482", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Write a function `find_rotation_index(s1: str, s2: str) -> int` that checks if two given strings are rotations of each other and returns the index from where the rotation starts in the second string. If the strings are not rotations of each other, the function should return -1....
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert find_rotation_index('abcd', 'cdab') == 2\", \"assert find_rotation_index('abcd', 'abcd') == 0\", \"assert find_rotation_index('abcd', 'bcda') == 1\", \"assert find_rotation_index('abcd', 'adbc') == -1\", \"assert find_rotation_index('hello', 'llohe') == 2\",...
{ "split": "train", "index": 77762, "acecode_id": "evol_12032", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Create a Python function that takes in a text string and returns a dictionary where the keys are the unique words from the string and the values are the lengths of those words. The function should ignore punctuation and be case insensitive.\nPlease reason step by step, then wri...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert count_word_lengths('A quick brown fox jumps over the lazy dog') == {'a': 1, 'quick': 5, 'brown': 5, 'fox': 3, 'jumps': 5, 'over': 4, 'the': 3, 'lazy': 4, 'dog': 3}\", \"assert count_word_lengths('Hello, world! Hello.') == {'hello': 5, 'world': 5}\", \"assert...
{ "split": "train", "index": 77763, "acecode_id": "evol_9612", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Given an integer n, write a function that finds the largest integer that divides n evenly but is smaller than n. If n is less than 2, return None.\nPlease reason step by step, then write a self-contained Python solution. Give your final program in a single ```python code block....
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert largest_divisor(15) == 5\", \"assert largest_divisor(20) == 10\", \"assert largest_divisor(25) == 5\", \"assert largest_divisor(2) == 1\", \"assert largest_divisor(1) == None\", \"assert largest_divisor(0) == None\", \"assert largest_divisor(-1) == None\", \...
{ "split": "train", "index": 77764, "acecode_id": "evol_19528", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Given a binary search tree (BST), implement a function `insert(root: Optional[Node], key: int) -> Node` that inserts a new key into the BST and returns the root of the modified tree. The function should maintain the properties of a binary search tree, where for each node, all k...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert insert(None, 10).val == 10\", \"assert insert(Node(10), 20).right.val == 20\", \"assert insert(Node(10), 5).left.val == 5\", \"assert insert(Node(10), 15).right.left is None\", \"assert insert(Node(10), 10).val == 10\", \"assert insert(insert(Node(10), 5), 7...
{ "split": "train", "index": 77765, "acecode_id": "evol_7752", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are given a list of assessor labels as strings and a directory path as a string. Your task is to implement a function that simulates the uploading of these assessors to a system. The function should return a list of warnings. If an assessor label contains the substring 'err...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert upload_assessors(['assessor1', 'error_assessor', 'skip', 'assessor2'], 'dummy_path') == ['error_assessor']\", \"assert upload_assessors(['normal_assessor', 'error_occurred', 'skip'], 'dummy_path') == ['error_occurred']\", \"assert upload_assessors(['error_la...
{ "split": "train", "index": 77766, "acecode_id": "bigcode_python_fns_9736", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Implement a function `convert_rgb_to_hsv(r: int, g: int, b: int) -> Tuple[float, float, float]` that converts an RGB color representation to its corresponding HSV representation. The RGB color model is defined by three integers (r, g, b) where each value ranges from 0 to 255. T...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert convert_rgb_to_hsv(255, 0, 0) == (0.0, 1.0, 1.0)\", \"assert convert_rgb_to_hsv(0, 255, 0) == (120.0, 1.0, 1.0)\", \"assert convert_rgb_to_hsv(0, 0, 255) == (240.0, 1.0, 1.0)\", \"assert convert_rgb_to_hsv(255, 255, 0) == (60.0, 1.0, 1.0)\", \"assert convert...
{ "split": "train", "index": 77767, "acecode_id": "evol_25608", "num_tests": 13 }
acecode
[ { "role": "user", "content": "Given a string representing a filename, implement a function `filename_check(file_name)` that checks if the filename is valid according to the following rules: 1. The filename must contain exactly one period. 2. The part of the filename before the period (the name) must not exc...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert filename_check('file.txt') == 'Yes'\", \"assert filename_check('doc.exe') == 'Yes'\", \"assert filename_check('image.jpg') == 'Yes'\", \"assert filename_check('data.dll') == 'Yes'\", \"assert filename_check('photo.png') == 'Yes'\", \"assert filename_check('a...
{ "split": "train", "index": 77768, "acecode_id": "evol_21275", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are given two lists of integers. Your task is to implement a function that calculates the element-wise differences between the two lists. If the lists are of different lengths, treat the shorter list as if it were padded with zeros until it matches the length of the longer ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert calculate_difference([1, 2, 3], [3, 2, 1, 4]) == [-2, 0, 2, -4]\", \"assert calculate_difference([3, 5], [1, 4, 2]) == [2, 1, -2]\", \"assert calculate_difference([0, 0, 0], [1, 1, 1]) == [-1, -1, -1]\", \"assert calculate_difference([5, 5, 5], []) == [5, 5,...
{ "split": "train", "index": 77769, "acecode_id": "oss_29676", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are given a list of reputation scores of players in a game, represented by the list `reputacoes_dos_jogadores`. The reputation scores are floating-point numbers. Your task is to implement a function that rounds the reputation scores to four decimal places, but if two consec...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert round_reputation_scores([3.14159, 2.71828, 1.61803, 4.66920]) == [3.1416, 2.7183, 1.618, 4.6692]\", \"assert round_reputation_scores([1.11111, 1.11111, 1.22222]) == [1.1111, 1.111, 1.2222]\", \"assert round_reputation_scores([0.00001, 0.00001, 0.00002]) == [...
{ "split": "train", "index": 77770, "acecode_id": "oss_14022", "num_tests": 10 }
acecode
[ { "role": "user", "content": "You are given a string consisting of uppercase letters and a set of labels, which are also uppercase letters. Your task is to implement a function `count_label_occurrences(string, labels)` that counts how many times each label appears in the string. The function should return a...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert count_label_occurrences('ZZZZZZZ', {'Z'}) == {'Z': 7}\", \"assert count_label_occurrences('HELLOHELLO', {'H', 'E', 'L', 'O'}) == {'H': 2, 'E': 2, 'L': 4, 'O': 2}\", \"assert count_label_occurrences('AABBAAC', {'A', 'B', 'C'}) == {'A': 4, 'B': 2, 'C': 1}\", \...
{ "split": "train", "index": 77771, "acecode_id": "oss_36729", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are given a dictionary where the keys are strings representing names of configuration options and the values are functions that perform some configuration action. Your task is to implement a function `apply_config(config: Dict[str, Callable[[], None]])` that executes all th...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert apply_config({'option1': lambda: 'Config option option1 applied.', 'option2': lambda: 'Config option option2 applied.'}) == ['Config option option1 applied.', 'Config option option2 applied.']\", \"assert apply_config({'optionA': lambda: 'Config option optio...
{ "split": "train", "index": 77772, "acecode_id": "bigcode_python_fns_34814", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with creating a Python function to normalize a list of numeric values by a given normalization factor. The normalization process involves dividing each value in the list by the normalization factor. Your function should implement this process for a list of non-ne...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert normalize_values([10, 20, 30], 100) == [0.1, 0.2, 0.3]\", \"assert normalize_values([0, 0, 0], 10) == [0.0, 0.0, 0.0]\", \"assert normalize_values([5, 10, 15], 5) == [1.0, 2.0, 3.0]\", \"assert normalize_values([1, 2, 3], 0) == [0.0, 0.0, 0.0]\", \"assert no...
{ "split": "train", "index": 77773, "acecode_id": "oss_21071", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Given a list of lists of integers, write a function `merge_array_list(lists)` that merges all the inner lists into a single list. The function should return a new list containing all the integers from the inner lists in the order they appear. If the input is not a list, the fun...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert merge_array_list([[1, 2], [3, 4], [5]]) == [1, 2, 3, 4, 5]\", \"assert merge_array_list([[10], [20, 30], [40, 50, 60]]) == [10, 20, 30, 40, 50, 60]\", \"assert merge_array_list([[], [1, 2], []]) == [1, 2]\", \"assert merge_array_list([[1, 2, 3]]) == [1, 2, 3...
{ "split": "train", "index": 77774, "acecode_id": "bigcode_python_fns_18248", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are given a list of integers, and you need to determine if there exists a pair of integers in the list such that their sum is equal to a specified target integer. Implement a function that takes in the list of integers and the target integer, and returns a boolean indicatin...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert has_pair_with_sum([1, 2, 3, 4, 5], 7) == True\", \"assert has_pair_with_sum([1, 2, 3, 4, 5], 10) == False\", \"assert has_pair_with_sum([-1, 0, 1, 2], 1) == True\", \"assert has_pair_with_sum([0, 0, 0, 0], 0) == True\", \"assert has_pair_with_sum([5, 3, 2, 4...
{ "split": "train", "index": 77775, "acecode_id": "bigcode_python_fns_7159", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Design a user management system for a live streaming platform. Implement a function `register_user(username: str, email: str, password: str) -> User` that registers a new user. The function should create a user object with a hashed password, ensuring that the username and email...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert register_user('user1', 'user1@example.com', 'password123').username == 'user1'\", \"assert register_user('user2', 'user2@example.com', 'password123').email == 'user2@example.com'\", \"assert isinstance(register_user('user3', 'user3@example.com', 'password123...
{ "split": "train", "index": 77776, "acecode_id": "evol_175", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with creating a Python function that can determine the file extension of a given file name. Your function should take a file name as input and return the corresponding file extension if it is a recognized Python file extension. If the file extension is not recogn...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert get_file_extension('script.py') == 'py'\", \"assert get_file_extension('document.docx') == 'The extension of the file is not python'\", \"assert get_file_extension('archive.zip') == 'The extension of the file is not python'\", \"assert get_file_extension('te...
{ "split": "train", "index": 77777, "acecode_id": "oss_27793", "num_tests": 14 }
acecode
[ { "role": "user", "content": "Create a Python function that calculates the product of all non-repeating prime numbers from a given list of integers. The function should return 0 if there are no non-repeating prime numbers present in the list. The input list may contain large integers, and it could also be e...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert product_of_non_repeating_primes([]) == 0\", \"assert product_of_non_repeating_primes([1, 4, 6]) == 0\", \"assert product_of_non_repeating_primes([2]) == 2\", \"assert product_of_non_repeating_primes([2, 2, 2]) == 0\", \"assert product_of_non_repeating_primes...
{ "split": "train", "index": 77778, "acecode_id": "evol_28994", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with creating a function that checks if a new political party can be registered based on its name. The function should take three arguments: the name of the party, its headquarters address, and its logo URL. The function must return a dictionary indicating whethe...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert register_party('New Party', '123 Main St', 'http://logo.com/logo.png') == {'status': 201, 'data': [{'party_name': 'New Party', 'hq_address': '123 Main St', 'logo_url': 'http://logo.com/logo.png'}]}\", \"assert register_party('Existing Party', '456 Elm St', '...
{ "split": "train", "index": 77779, "acecode_id": "bigcode_python_fns_37139", "num_tests": 11 }
acecode
[ { "role": "user", "content": "You are tasked with implementing a function called `append_to_list` that takes two inputs: a list and an element. Your function should append the element to the list and return the updated list. The function signature is as follows: `def append_to_list(lst: List[int], elem: int...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert append_to_list([], 5) == [5]\", \"assert append_to_list([1, 2, 3], 4) == [1, 2, 3, 4]\", \"assert append_to_list([0], 1) == [0, 1]\", \"assert append_to_list([-1, -2], 0) == [-1, -2, 0]\", \"assert append_to_list([10, 20], 30) == [10, 20, 30]\", \"assert app...
{ "split": "train", "index": 77780, "acecode_id": "bigcode_python_fns_38098", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Given a string of text, implement a function that counts the occurrences of each vowel (a, e, i, o, u) in the text, regardless of case. The function should return a dictionary where the keys are the vowels and the values are the counts of each vowel in the string. For example, ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert count_vowels('AEIOU') == {'a': 1, 'e': 1, 'i': 1, 'o': 1, 'u': 1}\", \"assert count_vowels('This is a test string') == {'a': 1, 'e': 1, 'i': 3, 'o': 0, 'u': 0}\", \"assert count_vowels('xyz') == {'a': 0, 'e': 0, 'i': 0, 'o': 0, 'u': 0}\", \"assert count_vowe...
{ "split": "train", "index": 77781, "acecode_id": "evol_19835", "num_tests": 8 }
acecode
[ { "role": "user", "content": "You are tasked with writing a function that checks whether a given identifier and a confidential string match specific predefined values. Implement a function `covert_computation(identifier: str, confidential: str) -> bool` that returns True if the identifier is 'myidentifier' ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert covert_computation('myidentifier', 'myconfidential') == True\", \"assert covert_computation('myidentifier', 'wrongconfidential') == False\", \"assert covert_computation('wrongidentifier', 'myconfidential') == False\", \"assert covert_computation('wrongidenti...
{ "split": "train", "index": 77782, "acecode_id": "evol_11859", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Implement a function `calculate_tuple_products(t)` that takes a tuple `t` as input, which may contain nested tuples, integers, floats, or strings that can be converted to numbers. The function should flatten the input tuple and compute the product of each adjacent pair of numbe...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert calculate_tuple_products(((1, 2), (3,))) == (2, 6)\", \"assert calculate_tuple_products((1, 2, 3)) == (2, 6)\", \"assert calculate_tuple_products((1, 'two', 3)) == 'Error: All elements must be numbers or strings that can be converted to numbers'\", \"assert ...
{ "split": "train", "index": 77783, "acecode_id": "evol_32030", "num_tests": 10 }
acecode
[ { "role": "user", "content": "You are tasked with creating a function that retrieves information about a specific service, referred to as 'xmatch'. Your function should return a dictionary containing a key 'args' that maps to a list of string arguments associated with the service. The function should not ta...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert get_xmatch_info() == {'args': ['arg1', 'arg2', 'arg3', 'arg4']}\", \"assert isinstance(get_xmatch_info(), dict)\", \"assert 'args' in get_xmatch_info()\", \"assert len(get_xmatch_info()['args']) == 4\", \"assert get_xmatch_info()['args'][0] == 'arg1'\", \"as...
{ "split": "train", "index": 77784, "acecode_id": "bigcode_python_fns_7287", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with creating a function that retrieves a specified number of topics from a hypothetical API based on given starting index and count. The function should take two parameters: 'start' (an integer representing the starting index of the topics) and 'count' (an integ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert retrieve_topics(0, 3) == ['Topic 0', 'Topic 1', 'Topic 2']\", \"assert retrieve_topics(2, 2) == ['Topic 2', 'Topic 3']\", \"assert retrieve_topics(5, 5) == ['Topic 5', 'Topic 6', 'Topic 7', 'Topic 8', 'Topic 9']\", \"assert retrieve_topics(10, 1) == ['Topic ...
{ "split": "train", "index": 77785, "acecode_id": "oss_3822", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are given a list of unique string identifiers called 'rsids' and a specific string identifier called 'start_rsid'. Your task is to return a new list that includes all the identifiers from 'start_rsid' to the end of the 'rsids' list. Additionally, you need to return the star...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert collect_publications(['rsid1', 'rsid2', 'rsid3'], 'rsid1') == (['rsid1', 'rsid2', 'rsid3'], 'rsid1', 0, ['rsid1', 'rsid2', 'rsid3'])\", \"assert collect_publications(['rsidA', 'rsidB', 'rsidC', 'rsidD'], 'rsidB') == (['rsidB', 'rsidC', 'rsidD'], 'rsidB', 1, ...
{ "split": "train", "index": 77786, "acecode_id": "bigcode_python_fns_18547", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with implementing a function `get_subpath(path: str) -> str`. This function takes a string `path` representing a file or directory path and returns the subpath of the given path. The subpath is defined as the portion of the path that comes after the last '/' char...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert get_subpath('/home/user/docs/') == '/'\", \"assert get_subpath('home/user/') == '/'\", \"assert get_subpath('/etc/nginx/sites-available/') == '/'\", \"assert get_subpath('') == ''\", \"assert get_subpath('/usr/local/bin/') == '/'\", \"assert get_subpath('fol...
{ "split": "train", "index": 77787, "acecode_id": "bigcode_python_fns_33218", "num_tests": 8 }
acecode
[ { "role": "user", "content": "Given a positive integer N, write a function that calculates the product of all prime numbers less than or equal to N modulo 10^9 + 7. Return the result as an integer.\nPlease reason step by step, then write a self-contained Python solution. Give your final program in a single ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert product_of_primes(1) == 1\", \"assert product_of_primes(2) == 2\", \"assert product_of_primes(3) == 6\", \"assert product_of_primes(4) == 6\", \"assert product_of_primes(5) == 30\", \"assert product_of_primes(6) == 30\", \"assert product_of_primes(7) == 210\...
{ "split": "train", "index": 77788, "acecode_id": "evol_36064", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are given a list of strings that represent file names. Each file name can either be marked as a regular file or a large file. The large files are denoted by an asterisk (*) at the end of their names. Your task is to implement a function called `list_files` that takes a list...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert list_files(['file_1', 'file_2*', 'file_3']) == [('file_1', False), ('file_2*', True), ('file_3', False)]\", \"assert list_files(['large_file*', 'small_file', 'another_large_file*']) == [('large_file*', True), ('small_file', False), ('another_large_file*', Tr...
{ "split": "train", "index": 77789, "acecode_id": "bigcode_python_fns_17471", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Implement a function that reverses the alphanumeric characters in a given string while keeping special characters and punctuation marks in their original positions. The function should take a string as input and return a new string with the alphanumeric characters reversed in p...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert reverse_string('ab-cd!e') == 'ed-cb!a'\", \"assert reverse_string('1234!5678') == '8765!4321'\", \"assert reverse_string('a1b2c3') == '3c2b1a'\", \"assert reverse_string('!@#$%^&*()') == '!@#$%^&*()'\", \"assert reverse_string('hello, world!') == 'dlrow, oll...
{ "split": "train", "index": 77790, "acecode_id": "evol_9660", "num_tests": 12 }
acecode
[ { "role": "user", "content": "You are tasked with creating a Python function that generates a command for synchronizing files and directories using the `rsync` utility. The function should take in the source path, destination path, and an optional flag for relative synchronization. The generated command sho...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert generate_rsync_command('/source', '/destination') == 'rsync --delete --info=progress2 --times /source /destination'\", \"assert generate_rsync_command('/source', '/destination', False) == 'rsync --delete --info=progress2 --times /source /destination'\", \"as...
{ "split": "train", "index": 77791, "acecode_id": "oss_24835", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are tasked with creating a function that formats a given unit title based on its index and title. The function should take in two parameters: an integer `index` representing the unit's index and a string `title` representing the unit's title. The function should return a fo...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert format_unit_title(0, 'Basic Concepts') == 'Unit 0: Basic Concepts'\", \"assert format_unit_title(1, 'Introduction to Programming') == 'Unit 1: Introduction to Programming'\", \"assert format_unit_title(2, 'Data Structures') == 'Unit 2: Data Structures'\", \"...
{ "split": "train", "index": 77792, "acecode_id": "bigcode_python_fns_2821", "num_tests": 16 }
acecode
[ { "role": "user", "content": "Design a function `encode(msg: str) -> str` that takes a string `msg` and encodes it using a predefined emoji-based code system. This system maps ten numerical digits (0-9) and ten specific punctuation marks to unique emojis. If a character in `msg` does not have an associated ...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert encode('Check this out: #Python') == 'Check this out: \\u2708Python'\", \"assert encode('No emojis here') == 'No emojis here'\", \"assert encode('Numbers 0-9') == 'Numbers 0\\ufe0f\\u20e3-9\\ufe0f\\u20e3'\", \"assert encode('Hello!') == 'Hello\\u2702'\", \"a...
{ "split": "train", "index": 77793, "acecode_id": "evol_28905", "num_tests": 9 }
acecode
[ { "role": "user", "content": "Given two parameters: 'anchor_size' and 'aspect_ratios', implement a function that returns a dictionary representing an anchor generator configuration. If 'anchor_size' is None, it should default to ((16,), (32,), (64,), (128,)). If 'aspect_ratios' is None, it should default to...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert get_anchor_generator() == {'sizes': ((16,), (32,), (64,), (128,)), 'aspect_ratios': ((0.5, 1.0, 2.0), (0.5, 1.0, 2.0), (0.5, 1.0, 2.0), (0.5, 1.0, 2.0))}\", \"assert get_anchor_generator(((32,), (64,)), None) == {'sizes': ((32,), (64,)), 'aspect_ratios': ((0...
{ "split": "train", "index": 77794, "acecode_id": "bigcode_python_fns_26295", "num_tests": 12 }
acecode
[ { "role": "user", "content": "You are tasked with managing configuration settings for a web application using a single function. The function should allow you to perform the following operations based on the input parameters: add a new configuration setting, retrieve a configuration setting, delete a config...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert manage_config_operations([('add', 'theme', 'dark'), ('get', 'theme', None)]) == ['dark']\", \"assert manage_config_operations([('add', 'font_size', 12), ('get', 'font_size', None)]) == [12]\", \"assert manage_config_operations([('add', 'lang', 'en'), ('get',...
{ "split": "train", "index": 77795, "acecode_id": "oss_12942", "num_tests": 16 }
acecode
[ { "role": "user", "content": "You are given a string `a` containing a sequence of characters that may include the following special character sequences: `--`, `-.`, and `.`. Your task is to implement a function that replaces all occurrences of `--` with `2`, `-.` with `1`, and `.` with `0` in the string `a`...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert replace_special_sequences('ab--c-.d.e') == 'ab2c1d0e'\", \"assert replace_special_sequences('--..') == '200'\", \"assert replace_special_sequences('a-b-c') == 'a-b-c'\", \"assert replace_special_sequences('...') == '000'\", \"assert replace_special_sequences...
{ "split": "train", "index": 77796, "acecode_id": "oss_5389", "num_tests": 13 }
acecode
[ { "role": "user", "content": "You are tasked with implementing a function to count the total number of words in a list of strings, where each string represents the content of a text file. Your function should take a list of strings as input, where each string contains words separated by spaces. The function...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert count_total_words(['Hello world', 'This is a test', 'Python programming']) == 8\", \"assert count_total_words(['One', 'Two', 'Three', 'Four', 'Five']) == 5\", \"assert count_total_words(['']) == 0\", \"assert count_total_words(['SingleWord']) == 1\", \"asser...
{ "split": "train", "index": 77797, "acecode_id": "oss_17", "num_tests": 15 }
acecode
[ { "role": "user", "content": "Implement a function `perform_http_request(ip_address: str, request_type: str = 'GET', timeout: int = 5) -> str` that takes an IP address as a string and performs an HTTP request to that address. The function should accommodate both IPv4 and IPv6 addresses. If the request is su...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert perform_http_request('2001:0db8:85a3:0000:0000:8a2e:0370:7334') == 'Error occurred'\", \"assert perform_http_request('::1') == 'Error occurred'\", \"assert perform_http_request('127.0.0.1') == 'Error occurred'\", \"assert perform_http_request('::ffff:192.168...
{ "split": "train", "index": 77798, "acecode_id": "evol_8695", "num_tests": 9 }
acecode
[ { "role": "user", "content": "Implement a function `bf(planet1: str, planet2: str) -> Tuple[str, float]` that takes two string parameters representing the names of planets in our solar system. The function should return a tuple containing the names of the planets positioned between `planet1` and `planet2` b...
code
{ "style": "rule", "ground_truth": "{\"tests\": [\"assert bf('Earth', 'Pluto') == (('Mars', 0.000021), ('Jupiter', 0.000074), ('Saturn', 0.000132), ('Uranus', 0.000243), ('Neptune', 0.000375))\", \"assert bf('Mercury', 'Earth') == (('Venus', 0.000027),)\", \"assert bf('Mars', 'Neptune') == (('Jupiter', 0.000074), (...
{ "split": "train", "index": 77799, "acecode_id": "evol_12269", "num_tests": 11 }