WildTrace
Collection
A reliable benchmark for evaluating training data detection in realistic, large-scale post-training settings • 6 items • Updated
messages list | membership_label int64 |
|---|---|
[
{
"role": "user",
"content": "Given a non-negative integer n, write a function `sum_odd_numbers(n)` that calculates the sum of all odd numbers from 1 to n (inclusive). Do not use any built-in functions or libraries for this task."
}
] | 1 |
[
{
"role": "user",
"content": "You are given a list of tuples, where each tuple contains information about a k-mer alignment in the format (strand, prob, level_mean, kmer). Your task is to implement a function `parse_alignment_data(data: List[Tuple[str, float, float, str]]) -> List[Dict[str, Union[str, float... | 1 |
[
{
"role": "user",
"content": "You are given a list of records, where each record is a tuple containing various fields. Your task is to implement a function that takes in the list of records and returns a new list containing only the records that have a specific field (at index `field_index`) equal to a give... | 1 |
[
{
"role": "user",
"content": "Given a list of 3D coordinates representing the positions of different particles in space and a list of corresponding atomic masses of these particles, write a function `calculate_center_of_mass(positions: List[Tuple[float, float, float]], masses: List[float]) -> Tuple[float, f... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a function `notify_device_disappearance` that simulates the removal of a device and notifies observers about the event. The function takes three parameters: a list of observers (strings), a dictionary of devices (where keys are device names and ... | 1 |
[
{
"role": "user",
"content": "You are given a list of integers representing inter-arrival times of events. Your task is to implement a function that computes the actual arrival times of these events. The first event is assumed to arrive at time 0. The arrival time for each event is the cumulative sum of the... | 1 |
[
{
"role": "user",
"content": "You are tasked with creating a Python function that verifies the validity of a list of venue categories. The function should take a list of dictionaries, where each dictionary represents a response from a venue API. Each dictionary contains a key 'categories' which holds a list... | 1 |
[
{
"role": "user",
"content": "You are given an array of integers. Your task is to write a function to calculate the proportion of positive integers in the array. The function should return the proportion as a floating-point number rounded to 6 decimal places. Implement the function `calculate_positive_propo... | 1 |
[
{
"role": "user",
"content": "Implement a function that converts a hexadecimal string into its corresponding ASCII text representation. The input will be a valid hexadecimal string. Write a function named `hex_to_ascii` that takes a single parameter, `hexadecimal`, and returns the decoded ASCII text."
}
] | 1 |
[
{
"role": "user",
"content": "You are tasked with processing emoji update events from users. Each event contains a user ID and a timestamp indicating when the event occurred. Your goal is to create a function `process_emoji_event(event: Dict[str, Union[str, float]]) -> None` that processes the given event. ... | 1 |
[
{
"role": "user",
"content": "Implement a function that takes a string as input and returns the reversed version of that string. The function should handle empty strings and special characters correctly. If the input is not a valid string, return an error message indicating that a valid string is required."... | 1 |
[
{
"role": "user",
"content": "Write a function `is_mersenne_prime(n: int) -> bool` that determines if the input integer n is a Mersenne prime number. A Mersenne prime is a prime number that can be expressed in the form 2^p - 1 where p is also a prime number. Your function should return True if n is a Mersen... | 1 |
[
{
"role": "user",
"content": "Given a list of addresses represented as a list of dictionaries, where each dictionary contains 'City' and 'State' keys, implement a function that performs the following tasks: 1. Count the number of distinct states. 2. Identify and count the number of distinct cities within ea... | 1 |
[
{
"role": "user",
"content": "You are tasked with managing a simple inventory system for a warehouse. Each item in the inventory has a unique identifier (item_id), a name, a quantity, and a price. Implement a function called `manage_inventory` that takes a list of inventory operations and returns the final ... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a text vectorization function that converts a given document into a numerical representation. The vectorization process involves assigning numerical values to each word in the document based on their frequency within the document. Your goal is t... | 1 |
[
{
"role": "user",
"content": "Write a function `calculate_median(data: List[int]) -> float` that takes a list of integers as input and computes the median value of the list. The median should be calculated by first checking if the list is sorted. If the list is not sorted, it should be sorted before computi... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a utility that retrieves the corresponding audio format based on the file extension of a given filename. The utility should utilize a predefined mapping of file extensions to their corresponding audio formats. Implement a function `get_audio_for... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a worktime statistics system for a project management tool. The system should calculate and display the average worktime statistics for tasks and inputs for a specific user. The worktime statistics are represented as a list of `WorktimeStatistic... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a function that retrieves the version number of a specified module. Your goal is to create a function `get_module_version` that takes a module name as input and returns its version number. The version number is represented by the attribute `vers... | 1 |
[
{
"role": "user",
"content": "Implement a function `string_compression(s: str) -> str` that takes a string `s` as input and compresses it by removing consecutive duplicate characters. The function should return a new string where each group of consecutive identical characters is replaced by the character fo... | 1 |
[
{
"role": "user",
"content": "Implement a function `manipulate_strings(input_list)` that takes a list of strings as input and processes it according to the following rules: 1. Remove any empty strings from the input list. 2. Remove any leading or trailing whitespaces from each string. 3. Capitalize the firs... | 1 |
[
{
"role": "user",
"content": "Given a floating-point number x, implement a function that calculates the Gamma function value using a fixed gamma of 2, following the formula: gamma(x) = (x * exp(-x)) / TAU_2, where TAU_2 is a constant equal to 2. The function should round the result to 14 decimal places. You... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a function called `clipboard_operations` that simulates a simple clipboard manager. The function takes a list of operations, where each operation is either a copy operation or a paste operation. The function should return a list of results for e... | 1 |
[
{
"role": "user",
"content": "Design a function `update_high_scores(scores: List[int], new_score: int) -> List[int]` that updates a list of the 5 highest unique scores from a game when a new score is added. The function should take in a list of existing scores and a new score, and it should return a sorted ... | 1 |
[
{
"role": "user",
"content": "Implement a function `running_total(lst)` that takes a list of integers `lst` and returns a new list containing the running total of the numbers in `lst`. The running total at each index `i` in the output list should be the sum of all elements from index `0` to `i` in the input... | 1 |
[
{
"role": "user",
"content": "Given a string representing a dotted key, you need to replace any segments of the string that are integers with asterisks ('*'). Each segment is separated by a dot ('.'). Write a function `starify(name: str) -> str` that takes this input string and returns a new string where al... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a function that filters out specific lines from a given list of strings based on certain criteria. The function should take in a list of strings and a set of ignored namespaces, and return a new list of strings that meet the filtering conditions... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a Python function that filters out hidden files and directories from a given dictionary. Hidden files and directories are those whose names start with a dot ('.'). The function should take a dictionary as input and return a new dictionary contai... | 1 |
[
{
"role": "user",
"content": "You are given two lists of integers, `verts_before` and `verts_after`, which represent the indices of vertices in a mesh before and after a transformation, respectively. Your task is to implement a function that takes these two lists and returns a new list where each element at... | 1 |
[
{
"role": "user",
"content": "You are tasked with creating a function that determines if a given string is a palindrome. A palindrome is a word, phrase, number, or other sequences of characters that reads the same forward and backward (ignoring spaces, punctuation, and capitalization). Implement a function ... | 1 |
[
{
"role": "user",
"content": "Given an array of integers representing nuclear charges, write a function `get_valence(Z: List[int]) -> List[float]` that converts each nuclear charge to its corresponding valence using a fixed mapping. The valence for each nuclear charge is defined as follows: 1 maps to 0.1, 2... | 1 |
[
{
"role": "user",
"content": "You are tasked with creating a function that simulates the execution of a command-line tool. The function should take a list of strings as input, where the first string represents the name of the tool and the subsequent strings are arguments to be passed to the tool. The functi... | 1 |
[
{
"role": "user",
"content": "Write a function `check_anagram(text1: str, text2: str) -> bool` that determines whether two given strings are anagrams of each other. Two strings are considered anagrams if they can be rearranged to form each other by using the same characters with the same frequency. The func... | 1 |
[
{
"role": "user",
"content": "Write a function `convertPascalToBar(pascal: float) -> float` that converts a given pressure from Pascals to Bar. The conversion formula is as follows: 1 Bar is equal to 100,000 Pascals. The function should return the pressure in Bar as a float."
}
] | 1 |
[
{
"role": "user",
"content": "Given a hexadecimal color string in the format '#RRGGBB', where RR, GG, and BB are two-digit hexadecimal numbers representing the red, green, and blue color components, respectively, implement a function `parse_color(hex_color)` that converts the hexadecimal color string to a d... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a function that simulates a simple control system for a quantity. The function should accept an initial value, a list of operations, and return the final value of the quantity after performing all operations. The operations can include setting a... | 1 |
[
{
"role": "user",
"content": "Given a list of strings representing tags, implement a function `unique_tags(tags: List[str]) -> List[str]` that returns a list of unique tags sorted in alphabetical order. Each tag is a non-empty string consisting of alphanumeric characters and underscores. The input list may ... | 1 |
[
{
"role": "user",
"content": "Implement a function `valid_ISBN10(isbn: str) -> bool` that checks if a given string is a valid ISBN-10 number according to the standard ISBN-10 validation rules. An ISBN-10 is considered valid if it is either a 10-digit number or a 9-digit number followed by an 'X'. The checks... | 1 |
[
{
"role": "user",
"content": "Given a color represented as a tuple or list containing three values, determine if the color is in a valid RGB format. The color can be either in the range of 0 to 255 for integers or in the range of 0.0 to 1.0 for floats. Your task is to implement the function `is_color_rgb(co... | 1 |
[
{
"role": "user",
"content": "You are tasked with managing a collection of image files and their associated tags. Write a function `tag_images(input_files: List[str], database: Optional[Dict[str, List[str]]], extra_tags: Optional[List[str]] = None) -> Tuple[Dict[str, List[str]], List[str]]`. The function sh... | 1 |
[
{
"role": "user",
"content": "Implement a function that performs a linear search to find the index of a specific target element in a given list of integers. The function should return the index of the target element if it exists in the list; otherwise, return -1. The function signature should be: def linear... | 1 |
[
{
"role": "user",
"content": "Given a vector represented as a list of numbers, implement a Python function `magnitude(v)` that calculates the magnitude of the vector. The magnitude of a vector is defined as the square root of the sum of the squares of its elements. For example, for a vector `v = [x1, x2, ..... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a Python function that simulates the process of creating new partitions for a Kafka topic. Your function should take in the topic name, the number of partitions to be added, and a list of partition assignments that specify how the new partitions... | 1 |
[
{
"role": "user",
"content": "You are tasked with creating a function that generates a secure secret key. The secret key should be a random string of 50 characters chosen from the predefined set of characters: 'abcdefghijklmnopqrstuvxyz01234567890_-!*'. Your function should return the generated secret key a... | 1 |
[
{
"role": "user",
"content": "You are given a grid of size m x n (1-indexed) where you can only move either down or right from a given cell. Write a function `count_paths(m: int, n: int) -> int` that returns the total number of distinct paths from the top-left corner (1, 1) to the bottom-right corner (m, n)... | 1 |
[
{
"role": "user",
"content": "Given a configuration dictionary that represents repositories, write a function `get_repo_paths` that takes a dictionary as input and returns a list of repository paths. The input dictionary has the following structure: it contains a key 'repos' which maps to another dictionary... | 1 |
[
{
"role": "user",
"content": "Implement a function that takes an array of integers as input and returns the maximum integer value found in that array. The function should handle both positive and negative integers, as well as arrays with a single element. If the array is empty, the function should return No... | 1 |
[
{
"role": "user",
"content": "Implement the bubble sort algorithm to sort a given list of integers in ascending order. You need to write a function that takes a list of integers as input and returns the sorted list."
}
] | 1 |
[
{
"role": "user",
"content": "Implement a function `contains_decimal(sequence)` that takes an iterable object `sequence` as input and returns `True` if the sequence contains at least one decimal (floating-point) number. Otherwise, return `False`. The input can contain elements of various types, including in... | 1 |
[
{
"role": "user",
"content": "Implement a function `generate_json_objects(heights: List[float], widths: List[float], lengths: List[float]) -> List[Dict[str, float]]` that takes three lists of floats: `heights`, `widths`, and `lengths`. Each list contains non-zero positive numbers representing the dimensions... | 1 |
[
{
"role": "user",
"content": "Implement a function `match_domains(email: str) -> bool` that takes an email address as input and returns True if the email address is valid and ends with one of the following domains: .edu, .gov, or any international domain that does not end with .com. The function should ensu... | 1 |
[
{
"role": "user",
"content": "Implement a function `heaviside_function(x)`, that takes a list of numbers `x` and returns a new list containing the evaluations of the Heaviside function for each element in `x`. The Heaviside function is defined as follows: \n- If the input is less than 0, the output should b... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a function to parse a configuration for a machine learning model. The configuration is specified as a dictionary where the keys represent various settings for the model, and the values represent the respective values for those settings. Your goa... | 1 |
[
{
"role": "user",
"content": "Write a function called `hello_world` that returns the string 'Hello, World!'."
}
] | 1 |
[
{
"role": "user",
"content": "Given a polynomial function f(x) = 3x^4, implement a function `derivative(n)` that calculates the n-th derivative of the function without using any libraries or packages. The function should return the derivative as a string in the format 'ax^b', where 'a' is the coefficient an... | 1 |
[
{
"role": "user",
"content": "Write a function `find_multiples(num: int, start: int, end: int) -> List[int]` that returns a list of all multiples of a specific integer `num` that lie within the inclusive range from `start` to `end`. The function should return an empty list if there are no multiples in that ... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a function `create_trade(**kwargs)` that accepts keyword arguments and initializes a dictionary representing a trade. The dictionary should include the keys 'book', 'created_at', and 'amount'. The 'created_at' value should be converted to ISO 86... | 1 |
[
{
"role": "user",
"content": "In a basketball game, Jan scored 3 points more than Salah. Meanwhile, Cindy outperformed both and succeeded in scoring 22 points, which is actually double the points Jan managed to score. Write a function `find_salah_score()` that returns the score of Salah based on this inform... | 1 |
[
{
"role": "user",
"content": "Given a string of text, write a function that analyzes the text to determine the frequency of each unique word. A word is defined as a sequence of non-whitespace characters. The function should ignore the case of the letters and remove any punctuation marks from the text. The o... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a function that checks if a given word can be constructed from a collection of smaller words (sub-words). The function should take two parameters: a list of words (sub-words) and a target word. Your goal is to determine if the target word can be... | 1 |
[
{
"role": "user",
"content": "Implement a recursive function `calc_factorial(x)` that computes the factorial of a non-negative integer `x`. The function should handle the following conditions: if `x` is negative, it should return an error message 'Error: Cannot compute factorial for negative numbers'. If `x... | 1 |
[
{
"role": "user",
"content": "Implement a function `fib(n)` that computes the nth Fibonacci number using an efficient algorithm. The Fibonacci sequence is defined as follows: F(0) = 0, F(1) = 1, and F(n) = F(n-1) + F(n-2) for n >= 2. Your implementation should handle large values of n (up to 10^6) efficient... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a function `add_variant_to_existing_lines(lines: List[int], variant_quantity: int) -> int` that simulates adding a variant to existing lines of stock. Each stock line has a certain available quantity, represented as a list of integers. Your func... | 1 |
[
{
"role": "user",
"content": "You are given two strings, `nodetypecategory` and `acceptedtypecategory`. Your task is to implement a function `mapTypeCategoriesToSubnetName(nodetypecategory: str, acceptedtypecategory: str) -> Optional[str]` that returns a name for a subnet that accepts `nodetypecategory` as ... | 1 |
[
{
"role": "user",
"content": "You are given two lists of strings, `text_match` and `text_diff`. Your task is to implement a function `process_text_embedding` that processes these lists into a tensor-like structure. For the purpose of this problem, assume that the function will convert the strings in `text_m... | 1 |
[
{
"role": "user",
"content": "You are given a list of points, where each point is represented as a tuple (timestamp, x, y). Your task is to identify and count the number of discontinuous points based on the following criteria: A point is considered discontinuous if the timestamp difference between it and th... | 1 |
[
{
"role": "user",
"content": "Given a string representing a non-negative integer, write a function `incrementString` that increments the integer by 1 and returns the result as a string. The function should not convert the string to an integer for the increment operation. The input string will have a length ... | 1 |
[
{
"role": "user",
"content": "You need to implement a function that takes a string input representing an integer and returns the equivalent integer value. The input string can contain leading or trailing whitespace, and may optionally start with a '+' or '-' sign. If the input string is valid, return the in... | 1 |
[
{
"role": "user",
"content": "Implement a function that converts all lowercase letters in a given string to uppercase. Additionally, replace specific symbols and numeric characters in the string with their corresponding word representations in a non-native language. The mappings are as follows: '&' to 'et',... | 1 |
[
{
"role": "user",
"content": "Implement a function `age_calc` that takes a single parameter `age`. The function should check if the provided `age` is of type `int`. If it is not an integer, the function should raise a `TypeError` with the message 'The age should be an integer'. If it is an integer, the func... | 1 |
[
{
"role": "user",
"content": "Implement a function named `count_subsequences` that determines the number of non-intersecting subsequences of a given substring within a primary string. The function should take two strings as input: the primary string and the substring, and return an integer representing the ... | 1 |
[
{
"role": "user",
"content": "You are given a 2D array of integers representing labels in an image, where 0 indicates the background. Your task is to merge labels that are below a specified minimum size with their connected neighbors. The connectivity can be either 4 or 8. If a label has no connected neighb... | 1 |
[
{
"role": "user",
"content": "Given a list of geographical locations represented by their latitude and longitude, write a function `find_next_closest_location(locations: List[Tuple[float, float]]) -> List[Tuple[float, float]]` that returns a list of the next closest location for each location in the input l... | 1 |
[
{
"role": "user",
"content": "Implement a function `hex_to_character(hex_str: str) -> str` that converts a given hexadecimal string `hex_str` into its equivalent ASCII or Unicode character. The function should validate the input to ensure it is a valid hexadecimal number and falls within the valid range for... | 1 |
[
{
"role": "user",
"content": "You are tasked with analyzing the imports from various modules in a game development framework. Your goal is to create a function named `analyze_imports` that takes no parameters and returns a dictionary containing the counts of classes and functions imported from specified mod... | 1 |
[
{
"role": "user",
"content": "Given a positive integer `num` consisting only of digits 6 and 9, implement a function that returns the maximum number you can get by changing at most one digit (6 becomes 9, and 9 becomes 6) along with the index of the digit that was changed. If no change is needed, return -1 ... | 1 |
[
{
"role": "user",
"content": "Given a list of strings in dot notation, convert it into a nested dictionary structure. Each string represents a path where the last part of the string is a leaf node (set to True) and all preceding parts are nested dictionaries. Write a function `dot_to_dict(values: List[str])... | 1 |
[
{
"role": "user",
"content": "Implement a function that calculates the number of uppercase vowel characters located at prime number positions within a given string. The positions are considered to be 1-based indexing, meaning the first character in the string is at position 1. An uppercase vowel is defined ... | 1 |
[
{
"role": "user",
"content": "Implement a function `prime_number(n)` that checks if a given integer `n` is a prime number. If `n` is a prime number, the function should return `True` and `None`. If `n` is not a prime number, the function should return `False` and the smallest divisor of `n` greater than 1. ... | 1 |
[
{
"role": "user",
"content": "Implement a function `generate_password(length: int, upper_case: bool, lower_case: bool, numbers: bool, special_chars: bool) -> str` that generates a random password based on the specified parameters. The password should have a length of `length` characters and include uppercas... | 1 |
[
{
"role": "user",
"content": "You are given a list of log entries represented by a list of dictionaries, where each dictionary contains the following keys: 'timestamp' (an integer representing the time of the log entry), 'level' (a string representing the severity level of the log entry, which can be 'INFO'... | 1 |
[
{
"role": "user",
"content": "Implement a bubble sort algorithm that sorts an array containing numeric strings and numbers in ascending order based on their numeric representation. The algorithm should include an optimization that stops the sorting process if no elements were swapped during a pass. Addition... | 1 |
[
{
"role": "user",
"content": "You are given a list of words and a predefined set of valid words (the dictionary). Your task is to implement a function that returns a set of words from the input list that are present in the valid words dictionary. Implement the function `known(words: List[str]) -> Set[str]` ... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a function to verify whether a given token is present in a specified blocklist. The blocklist is represented as a set of strings, each string being a token. Your function should return a boolean value: `True` if the token is in the blocklist, an... | 1 |
[
{
"role": "user",
"content": "You are given two lists of numerical values, one representing the actual stock prices over a series of trading days and the other representing the predicted stock prices for those same days. Write a function `compare_prices(actual: List[float], prediction: List[float]) -> List[... | 1 |
[
{
"role": "user",
"content": "You are tasked with creating a function that simulates the process of updating a Virtual Machine Interface (VMI) with specific details. The function should take in a VMI object and a list of Virtual Network (VN) objects. Each VMI object contains the following attributes: 'portg... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a password validation function. The function `validate_password` takes a password as input and checks if it adheres to the following rules: 1. It must be at least 8 characters long. 2. It must contain at least one uppercase letter, one lowercase... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a Python function that takes a dictionary representing HTTP headers as input and returns a new dictionary with the headers sorted in alphabetical order by their keys. If two headers have the same key, they should appear in the same order as in t... | 1 |
[
{
"role": "user",
"content": "You are given a dictionary containing four keys: 'Yte', 'Ytr', 'Xtr', and 'Xte'. Each key maps to a list of integers. Your task is to implement a function that returns a new dictionary that contains the same keys, but the values are transformed as follows: 'Yte' should contain ... | 1 |
[
{
"role": "user",
"content": "Given a 2D list of non-negative integers representing pairwise distances between points, write a function that computes the radius of a hypersphere for each point based on the median of the distances to all other points. Each point's radius is defined as the median of the dista... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a camera configuration function for a robotics project. The function should create a camera object based on the provided parameters and return it. The parameters for the function are as follows: \n- `pipeline`: A string representing the pipeline... | 1 |
[
{
"role": "user",
"content": "Given a positive integer d, return the count of reduced proper fractions for d such that n < d and the greatest common divisor (gcd) of n and d is 1. A reduced proper fraction is defined as a fraction where the numerator is less than the denominator and both are positive intege... | 1 |
[
{
"role": "user",
"content": "You are given a list of dates as strings in the format 'YYYY-MM-DD' and a level as an integer. Your task is to implement a function `process_dates(dates: List[str], level: int) -> List[str]` that processes the given dates based on the provided level. The function should return ... | 1 |
[
{
"role": "user",
"content": "Write a function `generate_sequence()` that produces a six-character string containing at least one lowercase alphabetical character and one numeral digit. The other four characters can be any combination of lowercase letters and digits. The final string should have its charact... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a function to delete a specific item from a list of IoT gateway IDs. The function `delete_gateway` should take a list of gateway IDs and a specific gateway ID to delete. If the gateway ID is not found in the list, the function should simply retu... | 1 |
[
{
"role": "user",
"content": "You are given a list of `restrictions`, which are integers representing unique identifiers for view restrictions on a page. You are also given a list of `passed_restrictions`, which are integers that represent the restrictions that the user has already passed. Your task is to w... | 1 |
[
{
"role": "user",
"content": "You are tasked with implementing a custom logging handler in Python that suppresses log messages. Your goal is to create a function named `custom_null_handler` that takes a list of log messages as input and returns an empty list, effectively suppressing all log messages. The fu... | 1 |
[
{
"role": "user",
"content": "You are tasked with creating a program to determine if a loan can be approved based on the monthly installment amount and the available monthly budget. Write a Python function `loan_approval` that takes two parameters: `installment` (float): the monthly installment amount for t... | 1 |
[
{
"role": "user",
"content": "You are given a list of integers and a corresponding list of frequencies for each integer. Your task is to implement a function that calculates the weighted average of the integers, handling any potential errors. The function should raise a ValueError if the lengths of the two ... | 1 |
[
{
"role": "user",
"content": "You are tasked with creating a Python function that determines whether a given number is a prime number. A prime number is defined as a natural number greater than 1 that cannot be formed by multiplying two smaller natural numbers. Your function should take an integer as input ... | 1 |
A benchmark for Oracle-RL, covering Math, Code, IF, and QA.
| Category | Member | Nonmember | Total |
|---|---|---|---|
| Math | 250 | 250 | 500 |
| Code | 250 | 250 | 500 |
| IF | 250 | 250 | 500 |
| QA | 250 | 250 | 500 |
from datasets import load_dataset
data = load_dataset("SUSTech/WildTrace-RL", "Math", split="train")
print(data[0]["messages"])
print(data[0]["membership_label"])