Dataset Preview
Duplicate

The dataset viewer should be available soon. Please retry later.

row_index
int64
task_fingerprint
string
dialogue_history
list
turns
list
answer
string
termination
string
num_agent_turns
int64
num_user_calls
int64
elapsed_seconds
float64
manifest_fingerprint
string
reward
float64
status
string
0
b244645161b011cd9b1cd7f0321ebeb5ad6026f474ad0e4343e55b7dc171eeb0
[ { "role": "user", "content": "Write a Python function that applies a fixed-point FIR filter to an input signal. The function should take the input signal, filter coefficients, word length, and fraction length as arguments. The output should be the filtered signal.The signature of the function is: def apply_...
[ { "step": 1, "input_tokens": 314, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 314, "completion_tokens": 138 }, "raw_response": "def apply_fixed_point_fir_filter(input_signal, coefficients, word_length, fraction_length):\n ...
def apply_fixed_point_fir_filter(input_signal, coefficients, word_length, fraction_length): output_signal = [] for i in range(len(input_signal)): sum_val = 0 for j in range(len(coefficients)): if i + j < len(input_signal): sum_val += input_signal[i + j] * coefficients...
answer
2
1
4.266458
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0
completed
1
aef348e4ce0541841bb66acc3c572e796988d13b5a55414858f7cf5e3eafd29a
[ { "role": "user", "content": "I need a Python function to represent Lance Armstrong's willingness to change his testimony based on some entities and conditions. Please help me write it.The signature of the function is: def get_lance_armstrong_testimony(entity, has_criminal_charges, deadline_met=False)" },...
[ { "step": 1, "input_tokens": 300, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 300, "completion_tokens": 39 }, "raw_response": "Sure, could you clarify how the function should determine the testimony based on the entities, cr...
def get_lance_armstrong_testimony(entity, has_criminal_charges, deadline_met=False): if entity == 'USADA' and has_criminal_charges and deadline_met: return True if entity == 'truth and reconciliation commission' and deadline_met: return True if entity == 'Oprah Winfrey': return False...
answer
2
1
3.87696
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
1
completed
2
fe3bd0f6b7354022e08254785edb21fa62fe897ac2e2360fd672bc98fd4da301
[ { "role": "user", "content": "I want an LLM agent to write a python function for me. I am hosting a radio show and I have guests who have traveled to many countries, I want the function to summarize their travel experiences based on the countries they visited.The signature of the function is: def summarize_...
[ { "step": 1, "input_tokens": 308, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 308, "completion_tokens": 60 }, "raw_response": "Sure, could you please provide more details about the format of the travel_history parameter and ...
def summarize_travel_experiences(travel_history): return "Countries visited: " + ", ".join(travel_history)
answer
2
1
3.011924
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0
completed
3
5280303615d936cc7a7a0a2d3e3b3b462d7711e4e737b572d9ad0886b353d4dd
[ { "role": "user", "content": "Hey, I'm having trouble keeping track of my progress in Soul Calibur IV. Can you write a Python function that calculates my overall score based on my performance in different game modes? I want to be able to input my number of multiplayer wins, my score in Tower of Lost Souls, ...
[ { "step": 1, "input_tokens": 371, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 371, "completion_tokens": 32 }, "raw_response": "Sure, could you please clarify how the weighted score is calculated? For example, what are the we...
def calculate_player_score(multiplayer_wins, tower_of_lost_souls_score, story_mode_completion_time, arcade_mode_score): weighted_score = 0.4 * multiplayer_wins + 0.3 * tower_of_lost_souls_score + 0.2 * (1 - story_mode_completion_time / 3600) + 0.1 * arcade_mode_score return round(weighted_score * 100)
answer
2
1
3.470515
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
1
completed
4
2dc5ed2d69e016c6f926be9ca778eb2caacdeb57922a1b8a4442d7067d12e408
[ { "role": "user", "content": "I want you to write a Python function that calculates a score based on the SimCity reviews I provide. It should take into account both the MobyScore and the User Reviews, but I'm not sure what weights to give them. Can you figure it out?The signature of the function is: def cal...
[ { "step": 1, "input_tokens": 320, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 320, "completion_tokens": 54 }, "raw_response": "Sure, could you clarify how the score is calculated? For example, is the score a weighted average...
def calculate_weighted_score(reviews, weights={'MobyScore': 0.6, 'User Reviews': 0.4}): if isinstance(reviews, dict): moby_score = reviews['MobyScore'] user_reviews = reviews['User Reviews'] else: moby_score = sum(r['MobyScore'] for r in reviews) user_reviews = sum(r['User Review...
answer
5
4
11.17542
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0.5
completed
5
87b46cac3774f3f9eb7ad19215f960d396fd1561f164d14ee59edabf42ccb77a
[ { "role": "user", "content": "Can you write a python function that takes into account the document structure of my MongoDB collection and returns an optimized schema design? The function should process the document structure which is a list of field names and types, and collection size, and return a diction...
[ { "step": 1, "input_tokens": 315, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 315, "completion_tokens": 31 }, "raw_response": "Sure, could you please provide an example of the input format for document_structure and collecti...
def optimize_schema(document_structure, collection_size): schema = {} for field in document_structure: if isinstance(field, dict): schema[field['name']] = field['type'] else: schema[field] = str(type(field).__name__) return schema
answer
5
4
5.689407
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0.8
completed
6
d84f963a04197dcb3ea44effcd318d8d28e82b410050d00ba9f33b3d13e99af9
[ { "role": "user", "content": "I need a Python function to calculate the minimum number of community service hours required in our school. We have students, employees, and volunteers who contribute to the community service hours. Can you write a function that takes into account the number of students, employ...
[ { "step": 1, "input_tokens": 346, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 346, "completion_tokens": 32 }, "raw_response": "Sure, could you clarify how the calculation is done? For example, is there a specific formula or ...
def calculate_minimum_community_service_hours(students, employees, employees_hours_worked, volunteers, volunteer_hours_contributed): total_hours_worked = employees_hours_worked required_hours = (students * 10) + (total_hours_worked / 2) - volunteer_hours_contributed return max(0, required_hours)
answer
3
2
4.114578
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0
completed
7
6ec31b4bb073c7e540db207d9f0f5106b207d038f15611152dd075aa82b8f426
[ { "role": "user", "content": "I need a Python function to calculate the percentage of financed aid for refugee support in various regions. The article I read said that only 18 percent of the United Nations' $54 million appeal for refugee aid in the Central African Republic has been financed. I'd like the fu...
[ { "step": 1, "input_tokens": 345, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 345, "completion_tokens": 39 }, "raw_response": "I WANT TO ANSWER:\ndef calculate_financed_aid_percentage(total_aid, financed_aid):\n return (f...
def calculate_financed_aid_percentage(total_aid, financed_aid): return (financed_aid / total_aid) * 100
answer
1
0
0.268626
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
1
completed
8
a752b9e97633288d6a55cc663565b804e57d29a1620b75c19a5962247676cd9e
[ { "role": "user", "content": "I need a Python function to calculate the average speed of a driver in miles per hour. The function should take into account the total distance traveled and the total time taken. Can you help me write this function? The unit of the inputs should be miles and minutes respectivel...
[ { "step": 1, "input_tokens": 319, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 319, "completion_tokens": 39 }, "raw_response": "I WANT TO ANSWER:\ndef calculate_average_speed(total_distance_miles, total_time_minutes):\n ho...
def calculate_average_speed(total_distance_miles, total_time_minutes): hours = total_time_minutes / 60 return total_distance_miles / hours
answer
1
0
0.253906
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0.9
completed
9
f578d2c48ca9d6dc3b003c2d52e214b5e4db4c3fdc1650de530012059bd41c35
[ { "role": "user", "content": "I need a Python function to determine the ranking of Dakar Rally riders based on their stage times. I have a list of overall standings, but I want to see how the riders rank after each stage. Can you write a function that takes in the stage times and rider names, and outputs th...
[ { "step": 1, "input_tokens": 324, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 324, "completion_tokens": 63 }, "raw_response": "Sure, could you clarify how the ranking is determined? For example, is the rider with the fastest...
def compute_ranking(stage_times, rider_names): # Create a list of tuples (time, rider_name) rider_times = list(zip(stage_times, rider_names)) # Sort the list by time in ascending order (fastest first) sorted_riders = sorted(rider_times, key=lambda x: x[0]) # Extract the rider names in the sorted ord...
answer
3
2
4.128182
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0
completed
10
697030d3429e815c456edaec4ae908ae94615c4f451d232da03490592d5b36c7
[ { "role": "user", "content": "I need a Python function that can help me determine the type of child based on their behavior. The function should take in parameters such as talkativeness level, attention span, ability to play alone, and frequency of questions. Can the agent help me come up with this function...
[ { "step": 1, "input_tokens": 330, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 330, "completion_tokens": 27 }, "raw_response": "Sure, could you clarify how the categorization is determined? For example, what are the criteria ...
def categorize_child(talkativeness_level, attention_span, play_alone_ability, question_frequency): if talkativeness_level > 8 and attention_span < 5 and play_alone_ability < 3 and question_frequency > 10: return 'Extroverted and Demanding' if talkativeness_level > 6 and attention_span < 7 and play_alone...
answer
6
5
9.237646
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0.6
completed
11
60433a4f1811fa675075c0d212978be7ac68d708ee9401e8f417e58a93a689d3
[ { "role": "user", "content": "Write a python function to help me find a suitable desktop machine for office use, considering factors like touch screen, operating system, and budget. I want to use the function to determine the ideal desktop machine based on these criteria.The signature of the function is: de...
[ { "step": 1, "input_tokens": 315, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 315, "completion_tokens": 150 }, "raw_response": "def get_recommended_desktop(office_use, budget, touch_screen, os_preference):\n if office_use...
def get_recommended_desktop(office_use, budget, touch_screen, os_preference): if office_use and budget >= 1000 and touch_screen and os_preference == "Windows": return "Dell XPS 15" elif office_use and budget >= 700 and not touch_screen and os_preference == "Windows": return "HP Pavilion" eli...
answer
2
1
3.225093
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0
completed
12
0239454f65578ff47552db4563fee36f082fcf9d72bbe0fb0fca8529f1459747
[ { "role": "user", "content": "Please write a python function that can verify a list of outfits for a given occasion. Based on some predefined rules, the function should return True if all outfits are suitable for the occasion, and False otherwise.The signature of the function is: def verify_outfits(occasion...
[ { "step": 1, "input_tokens": 306, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 306, "completion_tokens": 38 }, "raw_response": "def verify_outfits(occasion, outfits, allowed_outfits):\n for outfit in outfits:\n if o...
def verify_outfits(occasion, outfits, allowed_outfits): for outfit in outfits: if outfit not in allowed_outfits[occasion]: return False return True
answer
2
1
4.14588
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0
completed
13
97ec2f631511b0812c6b8f9e4718e50f831d3d44696c868345d0fed796da0fe7
[ { "role": "user", "content": "Can the agent write a Python function to calculate the total weight of fish caught by each fisherman in the tournament and rank them based on their total weight?The signature of the function is: def calculate_total_weight_and_rank(fishermen_data)" }, { "role": "assistan...
[ { "step": 1, "input_tokens": 295, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 295, "completion_tokens": 67 }, "raw_response": "Sure, could you please provide the structure or format of the input data (fishermen_data) that th...
def calculate_total_weight_and_rank(fishermen_data): # Calculate total weight for each fisherman total_weights = {fisherman['name']: sum(fisherman['days']) for fisherman in fishermen_data} # Sort fishermen by total weight in descending order sorted_fishermen = sorted(total_weights.items(), key=lamb...
answer
2
1
2.510209
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0
completed
14
8fdded340fee13255ec3721c911842a372edb6eb445c1b4ab135be8370fa4d72
[ { "role": "user", "content": "I need a Python function to calculate the total cost of the recyclables collected by our, ahem, 'business associates' in New Jersey. They collect different types of recyclables and I need to know the total cost based on the weights and prices per ton. Can you write a function f...
[ { "step": 1, "input_tokens": 332, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 332, "completion_tokens": 50 }, "raw_response": "Sure, could you clarify how the input parameters are structured? For example, are the recyclable_...
def calculate_total_recycling_cost(recyclable_types, weights, prices_per_ton): total_cost = 0 for i in range(len(recyclable_types)): recyclable = recyclable_types[i] weight = weights[i] if recyclable in prices_per_ton: total_cost += weight * prices_per_ton[recyclable] ret...
answer
2
1
2.933335
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
1
completed
15
4be51126c850bd07fc58a02cd2d29089b9fd826817eab4e653ee194398c6d6c1
[ { "role": "user", "content": "I'm trying to determine the total amount of tips I should give to my service providers during the holiday season. I have a list of service providers and their respective tip amounts, as well as the number of individuals I need to tip in each category. Can you write a python fun...
[ { "step": 1, "input_tokens": 332, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 332, "completion_tokens": 48 }, "raw_response": "Sure, could you please provide an example of the input format for `tip_amounts` and `individuals_...
def calculate_total_tips(tip_amounts, individuals_tipped): return sum(tip_amounts[provider] for provider in individuals_tipped) * len(individuals_tipped)
answer
3
2
3.702875
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0
completed
16
d41435d18ee4f78d22e4b84b64e05cbe779cad23b733db2ead8cdea3cd5bc101
[ { "role": "user", "content": "Could you write a Python function that determines the amount of greenhouse gas emissions a country needs to cut by a certain year? I know the European Union, Canada, and Japan are aiming to halve their emissions by 2050, but I'm not sure how to calculate this. Can you please he...
[ { "step": 1, "input_tokens": 336, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 336, "completion_tokens": 63 }, "raw_response": "Sure, could you clarify how the reduction_percentage is applied? For example, is it a percentage ...
def calculate_emission_cuts(current_emissions, reduction_percentage, year_target): years_remaining = year_target - 2023 emission_cut = (current_emissions * reduction_percentage) / 100 * years_remaining return float(emission_cut)
answer
4
3
4.566698
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
1
completed
17
f075017244f23bf4c46cd3b50cce5dbd6b6cfc6eea04eb541acd83d35aa9ef15
[ { "role": "user", "content": "I need a Python function that can track the spread of red tides along coastlines and calculate their economic and environmental impact. The function should take into account the location and size of the blooms, as well as the local economy and marine life. Can you help me write...
[ { "step": 1, "input_tokens": 331, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 331, "completion_tokens": 59 }, "raw_response": "Sure, could you clarify how the input parameters are structured? For example, are the bloom_locat...
def analyze_red_tides(bloom_locations, bloom_sizes, coastal_economies, marine_life): total_impact = 0 for location in bloom_locations: if location in bloom_sizes and location in coastal_economies and location in marine_life: economic_contribution = bloom_sizes[location] * coastal_economies[l...
answer
4
3
6.063644
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
1
completed
18
259594489d058bbd4c9098d74a6b9e11c38225919312535a40ea0a73709f7e9e
[ { "role": "user", "content": "Can you write a Python function that determines which athletes should be tested for H.I.V. based on the number of appearances and the calendar year? The function should consider the Nevada state rule that a boxer must provide a certified result of an H.I.V. test either before h...
[ { "step": 1, "input_tokens": 341, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 341, "completion_tokens": 56 }, "raw_response": "Sure, could you clarify how the 'previous_test_results' parameter is structured? Are these result...
def should_test_for_hiv(athlete_appearances, calendar_year, previous_test_results): test_list = [] for athlete, appearances in athlete_appearances.items(): if appearances <= 1 and calendar_year < 1988: test_list.append(athlete) elif appearances > 1: last_test_year = previ...
answer
5
4
7.899012
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0.3
completed
19
937b8e69f76af8f284107223f448b71dc548eec294c42bad9dcdd6beb7945da3
[ { "role": "user", "content": "I need a python function that takes a list of events related to the Plastic People of the Universe and calculates the number of imprisonments and the total prison time served by the band members and their associates. The events are in a list of dictionaries, where each dictiona...
[ { "step": 1, "input_tokens": 327, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 327, "completion_tokens": 51 }, "raw_response": "Sure, could you please clarify how the events are structured in the list of dictionaries? For exa...
def count_imprisonments(events): imprisonments = 0 total_prison_time = 0 for event in events: if 'description' in event and 'arrested' in event['description'].lower(): if 'prison_time' in event: total_prison_time += event['prison_time'] imprisonments += 1 ...
answer
5
4
7.568579
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
1
completed
20
e5d06f46bcdaf1610019100419b6f7eb144b0efc835f2d6994e97edb5001c637
[ { "role": "user", "content": "I want you to write a python function that takes as input a list of statements about tribal leaders in Pakistan and returns a summary of their opinions towards different organizations and locations. The function should parse the input strings, identify the leader, location, org...
[ { "step": 1, "input_tokens": 323, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 323, "completion_tokens": 32 }, "raw_response": "Sure, could you please provide some example input statements and the expected output format? This...
def parse_opinions(statements): summary = {} for stmt in statements: # Split the statement into parts parts = stmt.split() leader = parts[0] sentiment = parts[1] if 'in' in parts: location = parts[3] organization = ' '.join(parts[4:-1]) if len(part...
answer
2
1
2.640511
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0
completed
21
369ed1eafbe3edcf522b121ee07fb2150495e0f2af9d903ae37a9a330295981d
[ { "role": "user", "content": "I want you to help write a python function to calculate the death rate of patients under a specific doctor based on the total deaths and total patients they have seen. I think a death rate might be useful in helping identify doctors who may be murderers. I have doctor stats whi...
[ { "step": 1, "input_tokens": 344, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 344, "completion_tokens": 71 }, "raw_response": "def calculate_doctor_death_rate(doctor_stats):\n death_rates = []\n for stats in doctor_sta...
def calculate_doctor_death_rate(doctor_stats): death_rates = [] for stats in doctor_stats: total_patients, total_deaths = stats if total_patients == 0: death_rates.append(0.0) else: death_rates.append(total_deaths / total_patients) return death_rates
answer
2
1
2.451688
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0
completed
22
5e061d4df094d97420f8dfe210cef2a7e8c66bf8f1a4348a7bad43a06b9022a8
[ { "role": "user", "content": "I need you to write a Python function that determines the on-stage color associated with different characters from The Wizard of Oz. The function should take a character's name as input and return a string describing their on-stage color. Can you do that?The signature of the fu...
[ { "step": 1, "input_tokens": 309, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 309, "completion_tokens": 37 }, "raw_response": "Sure, could you please provide the mapping of character names to their on-stage colors? For examp...
def get_performance_color(character_name): color_map = { "Wicked Witch of the West": "black", "Scarecrow": "tattered brown", "Glinda, the Good Witch of the North": "light", "Tin Man": "metal silver", "Cowardly Lion": "golden yellow", "Emerald City guard": "green", ...
answer
5
4
8.106356
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0.6
completed
23
1278906783e57b1ba6c2a671b35f09f3174aa434e463dcd47e01811c6a3d1a00
[ { "role": "user", "content": "I want to write a program to help me choose an Integrated Development Environment (IDE) for my coding needs. However, I'm having trouble deciding between KDevelop and Qt Creator. Can you help me create a Python function that recommends an IDE based on my programming language, p...
[ { "step": 1, "input_tokens": 322, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 322, "completion_tokens": 60 }, "raw_response": "Sure, could you clarify the criteria or conditions that should be considered for recommending KDe...
def recommend_ide(language, platform, purpose): if purpose == "building KDE applications" or platform == "KDE": return "KDevelop" else: return "Qt Creator"
answer
5
4
7.167963
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0.8
completed
24
dcae2eb356e23bc071b5e15ebc7d00e87ea618edf36e90a8d4435427f53cb6fd
[ { "role": "user", "content": "Write a Python function to calculate the revenue of a hypothetical ad-powered Windows operating system. The system will display ads, and we want to know the total revenue generated. Can you write a function to compute this revenue?The signature of the function is: def calculate...
[ { "step": 1, "input_tokens": 322, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 322, "completion_tokens": 90 }, "raw_response": "def calculate_ad_revenue(num_ads, ad_type, clicks_per_ad, ad_duration, click_revenue, ad_display_...
def calculate_ad_revenue(num_ads, ad_type, clicks_per_ad, ad_duration, click_revenue, ad_display_probability): if ad_type == 'static': revenue = num_ads * ad_display_probability * clicks_per_ad * click_revenue elif ad_type == 'video': revenue = num_ads * ad_display_probability * ad_duration * cl...
answer
2
1
3.142413
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0
completed
25
6b2062eba6eb21b4cf526a55d44b4507d9dc1d7077e40a346ea9912d3bd08940
[ { "role": "user", "content": "I want the agent to write a Python function to simulate the process of loading radioactive spheres into metal tubes for brachytherapy seeds production. The function should take into account the number of spheres, the length of the tube, and the diameter of the spheres and the t...
[ { "step": 1, "input_tokens": 379, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 379, "completion_tokens": 90 }, "raw_response": "def load_brachytherapy_tube(num_spheres, tube_length, sphere_diameter, tube_diameter):\n if sp...
def load_brachytherapy_tube(num_spheres, tube_length, sphere_diameter, tube_diameter): if num_spheres * sphere_diameter > tube_length: return 'Error: Not enough space in tube for spheres' if sphere_diameter > tube_diameter: return 'Error: Spheres are too large for tube' return f'{num_spheres...
answer
2
1
2.772598
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
1
completed
26
856fa5331cd08ab930777a76a7e4b5ae1c9be53768e44afaf0d004a0ea90a947
[ { "role": "user", "content": "I want the AI to write a python function that removes consecutive duplicates in a list. I have a list of items and I want a new list with all the consecutive duplicates removed. The function should work with any type of item in the list. Can you help me figure out how to define...
[ { "step": 1, "input_tokens": 318, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 318, "completion_tokens": 62 }, "raw_response": "Sure, could you clarify how the function should handle the input list? For example, if the input ...
def compress(lst): if not lst: return [] result = [lst[0]] for item in lst[1:]: if item != result[-1]: result.append(item) return result
answer
2
1
2.040117
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
1
completed
27
11df58802e3b26741b22f308165612db31acce08d87d4b94b7dde645373f8693
[ { "role": "user", "content": "Hey agent, can you write a Python function to sort a list of game reviews based on their ratings? I have a list of games with their reviews and ratings, but I want to see the reviews in order from highest rated to lowest. Can you write a function to do that for me?The signature...
[ { "step": 1, "input_tokens": 318, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 318, "completion_tokens": 44 }, "raw_response": "Sure, could you please provide an example of the input format for the reviews? For instance, is e...
def sort_reviews(reviews): return sorted(reviews, key=lambda x: x[2])
answer
2
1
1.855597
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
1
completed
28
3d5cd75b138336266dfd43fbcfa970b41d533455709b173325cd915eed556144
[ { "role": "user", "content": "I want you to write a Python function for me. I have some text I'd like to transform by replacing certain words with their corresponding mythological references. I have a dictionary that maps the original words to their mythological equivalents. I'd like the function to take th...
[ { "step": 1, "input_tokens": 347, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 347, "completion_tokens": 46 }, "raw_response": "Sure, could you clarify how the word replacement should be done? For example, should the function...
def transform_mythological_references(text, dictionary): words = text.split() transformed_words = [] for word in words: lower_word = word.lower() if lower_word in dictionary: transformed_words.append(dictionary[lower_word]) else: transformed_words.append(word)...
answer
5
4
6.688866
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0.9
completed
29
97485f33296469441bc2262583d298398ed4b47e4ded5e3ac779cd6de3aee6af
[ { "role": "user", "content": "I need a python function to calculate the total duration of an album, but I don't care about the exact minute and seconds. Can you write me a python function that can give me just an integer value that approximates the total duration in minutes?The signature of the function is:...
[ { "step": 1, "input_tokens": 311, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 311, "completion_tokens": 50 }, "raw_response": "Sure, could you please provide me with the structure of the `album_songs` parameter? For example,...
def calculate_album_duration(album_songs): total_minutes = sum(song['duration'] for song in album_songs) return int(total_minutes)
answer
2
1
2.115404
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
1
completed
30
cb8d85314a52ec6088f3a1c50be8604d67ca5ff2bdb4207dead0bda8a1274c6b
[ { "role": "user", "content": "I'm trying to manage disk partitions, and I want a Python function that can help me determine if I can resize a partition to a certain size. I need to make sure the new size meets the minimum size requirements.The signature of the function is: def resize_partition(current_size,...
[ { "step": 1, "input_tokens": 313, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 313, "completion_tokens": 40 }, "raw_response": "Can you clarify how the `resize_available` parameter affects the logic of the function? For examp...
def resize_partition(current_size, new_size, min_required_size, resize_available=True): if not resize_available: return (False, "Resizing not available") if new_size < min_required_size: return (False, "New size does not meet the requirements") return (True, new_size)
answer
5
4
6.69656
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0.7
completed
31
5ecd42da909545750ba30af7aa98265a18bbd99764b74a5a3a0d33b64ce9238b
[ { "role": "user", "content": "I'd like you to write a Python function that can identify symmetric objects within a set. What I mean by symmetry is if an object looks the same when reflected across a certain axis. The function should take in a list of objects, where each object is a tuple of coordinates, and...
[ { "step": 1, "input_tokens": 347, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 347, "completion_tokens": 48 }, "raw_response": "Sure, could you clarify how the symmetry is determined? For example, how are the coordinates repr...
def is_symmetric(objects, symmetry_axes): symmetric_objects = [] for obj in objects: for axis in symmetry_axes: reflected = list(obj) reflected[axis] *= -1 if tuple(reflected) == obj: symmetric_objects.append(obj) break return symme...
answer
6
5
10.511609
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
1
completed
32
5dc3397e5c7773987acaa24a94956217e311cfe2c97ecd31e4fd8794fe853203
[ { "role": "user", "content": "I need a python function to look up music artist info such as their home town and preferred genre. Can you help write one?The signature of the function is: def get_top_artist_info(artist_name, artists)" }, { "role": "assistant", "content": "Sure, could you please pr...
[ { "step": 1, "input_tokens": 289, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 289, "completion_tokens": 60 }, "raw_response": "Sure, could you please provide more details about the structure of the 'artists' parameter? For e...
def get_top_artist_info(artist_name, artists): for artist in artists: if artist['name'] == artist_name: return {'home_town': artist['hometown'], 'genre': artist['genre']} return None
answer
2
1
1.957816
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0
completed
33
c733c884cb021b21c99a263601cb1f64dfc718d9c2e8912c65d93d36fbe1bc2d
[ { "role": "user", "content": "I want the agent to write a Python function that determines whether an Exempted Fishing Permit application is eligible based on the given conditions. The function should take into account the fishing zone, gear type, target species, and bycatch reduction plan.The signature of t...
[ { "step": 1, "input_tokens": 323, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 323, "completion_tokens": 134 }, "raw_response": "I WANT TO ANSWER:\ndef is_efp_eligible(fishing_zone, gear_type, target_species, bycatch_reductio...
def is_efp_eligible(fishing_zone, gear_type, target_species, bycatch_reduction_plan): # Check if fishing zone is eligible if fishing_zone not in ['North', 'South']: return False # Check if gear type is eligible if gear_type not in ['net', 'trap']: return False # Check if ta...
answer
1
0
0.820343
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0.1
completed
34
f5bfba89c671b164a13a030460b990e327a4b416b12048b35a7fa890ee0c7e05
[ { "role": "user", "content": "Design a python function to calculate the total calories of a Chipotle burrito when a user selects various ingredients such as protein, rice, beans, cheese, salsa, sour cream, guacamole, and veggies.The signature of the function is: def calculate_burrito_calories(protein, rice,...
[ { "step": 1, "input_tokens": 323, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 323, "completion_tokens": 136 }, "raw_response": "def calculate_burrito_calories(protein, rice, beans, cheese, salsa, sour_cream, guacamole, veggi...
def calculate_burrito_calories(protein, rice, beans, cheese, salsa, sour_cream, guacamole, veggies): base_calories = 300 calories_dict = { 'chicken': 165, 'steak': 150, 'carnitas': 210, 'barbacoa': 210, } calories = base_calories if protein in calories_dict: c...
answer
2
1
4.813954
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0.1
completed
35
49cc098cdce94f3b115fc125086f799a8dc213cf6a303d2e7c51f8c397654ed6
[ { "role": "user", "content": "I need a python function to determine the rate of heroin-related incidents in Ohio. The function should take into account the total number of deaths, the state population, and the time period. Can you help me write this function?The signature of the function is: def calculate_h...
[ { "step": 1, "input_tokens": 315, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 315, "completion_tokens": 34 }, "raw_response": "Sure, could you clarify how the rate is calculated? For example, is it per capita or per time per...
def calculate_heroin_incident_rate(total_deaths, population, time_period): incident_rate = (total_deaths / population) * (100000 / time_period) return incident_rate
answer
2
1
1.835759
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0.6
completed
36
dda44b6e859462e38c1d6aad32f48db9acf7ef6b6891e61216e38468cd48c814
[ { "role": "user", "content": "Can you write a Python function that calculates the defensive effectiveness of a team based on its strategy in a basketball game? The function should take into account the position of each player and the type of play (normal or last-second) to output a score representing the te...
[ { "step": 1, "input_tokens": 320, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 320, "completion_tokens": 37 }, "raw_response": "Sure, could you clarify how the player_positions parameter is structured? Are they represented as...
def calculate_defensive_effectiveness(player_positions, play_type): if play_type == 'last-second': if 'Hibbert' in player_positions and player_positions['Hibbert'].get('in_paint', False) and \ 'West' in player_positions and player_positions['West'].get('near_rim', False) and \ 'James' ...
answer
6
5
9.751591
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
1
completed
37
bdf1ea1c2fd02c47554f325c8644110fd1f519572d3374e15bd174fe00c21253
[ { "role": "user", "content": "Can you write a python function that takes into consideration a dentist's reputation, years of experience, patient's past dental care habits and the cost of treatment to determine if the dentist's diagnosis is reliable.The signature of the function is: def reliable_diagnosis(de...
[ { "step": 1, "input_tokens": 314, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 314, "completion_tokens": 33 }, "raw_response": "Sure, could you clarify how the reliability of the diagnosis is determined? For example, what are...
def reliable_diagnosis(dentist_reputation, dentist_experience, past_dental_care, treatment_cost): if dentist_reputation < 3 or dentist_experience < 5 or past_dental_care < 0.8 or treatment_cost > 1000: return False else: return True
answer
3
2
6.143813
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
1
completed
38
bc14270bfaed7bea83ba551ba739bf80d826dd2ac9178bbe437aab3e5576d985
[ { "role": "user", "content": "I want the agent to write a python function that calculates a soccer team's performance based on their game results and goals scored, the agent needs to collaborate with me to resolve the ambiguity about how the performance is calculated, for example, are the games won or lost ...
[ { "step": 1, "input_tokens": 331, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 331, "completion_tokens": 70 }, "raw_response": "Sure, could you clarify how the performance is calculated? For example, is it based on points (e....
def soccer_performance(team_name, games_won, games_drawn, games_lost, goals_for, goals_against): return (games_won * 3) + games_drawn
answer
4
3
4.797561
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0
completed
39
ef04e3b8f819362df4cfac61a3300c376bd8fc1ec758c6defdc3e2c5136c5629
[ { "role": "user", "content": "I want the LLM agent to help me develop a Python function to evaluate the environmental sustainability of a city's design. The function should take into account several factors, but I'm not sure what factors to include or how to weight them. Can you propose a solution?The signa...
[ { "step": 1, "input_tokens": 319, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 319, "completion_tokens": 43 }, "raw_response": "Sure, could you clarify how the eco_indicators are structured? Are they a dictionary, a list, or ...
def calculate_eco_score(city_design, eco_indicators): # Define weights weights = {'green_space_ratio': 0.2, 'public_transport_coverage': 0.3, 'renewable_energy_usage': 0.5} # Initialize eco_score eco_score = 0 # Calculate eco_score based on indicators and weights for indicator in eco_i...
answer
5
4
6.427336
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
1
completed
40
03fbf0493941c5d6d633e05dd400d89b16ffd443aa11e590132df159e4fd504c
[ { "role": "user", "content": "Create a Python function to calculate the required votes for a European Union proposal to pass. The function should consider different decision-making scenarios, such as simple and qualified majority voting. The agent should interact with the human user to clarify the specific ...
[ { "step": 1, "input_tokens": 339, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 339, "completion_tokens": 20 }, "raw_response": "What is the formula or logic for calculating the required votes based on the different decision-m...
def eu_proposal_votes(proposal_votes, total_member_states=25, required_majority=0.5, qualified_majority=False, blocking_minority=False): required_votes = 0 if qualified_majority: required_votes = int(total_member_states * required_majority) else: required_votes = (total_member_states // 2) +...
answer
5
4
7.787228
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
1
completed
41
86555fea48fd5afcf03d7ac6ff03800de0eae601744d4295f153db50d97e30b9
[ { "role": "user", "content": "I want a python function to decide which second baseman to play for the Cubs (Fontenot, Walker, Cedeno, or Perez) in a given situation. I want the agent to ask me questions to clarify what the situation is, such as the current player's performance and the potential replacement'...
[ { "step": 1, "input_tokens": 346, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 346, "completion_tokens": 40 }, "raw_response": "What factors are considered in deciding the optimal second baseman? For example, are there specif...
def get_optimal_second_baseman(current_player, fontenot, perez, walker, cedeno): if walker > 0.7: return "Walker" if fontenot > 0.6 and current_player < 0.4: return "Fontenot" if perez > 0.5 and walker <= 0.3: return "Perez" return "Cedeno"
answer
5
4
8.484685
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0
completed
42
be9935d6be65e28cdf6a195ba174cc9cf68b30ef54ecd4d3c8473098bf969218
[ { "role": "user", "content": "Can you write a python function to filter visa applications? My country has a list of nationality restrictions, I need to deny visa applications from people with certain nationalities, and also id that already has been issued, but I do not have the exact nationality list or id'...
[ { "step": 1, "input_tokens": 339, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 339, "completion_tokens": 47 }, "raw_response": "Sure, could you clarify how the nationality_blacklist and issued_ids parameters are structured? A...
def filter_visa_applications(visa_applications, nationality_blacklist, issued_ids): filtered = [] for app in visa_applications: if app['nationality'] in nationality_blacklist or app['id'] in issued_ids: continue filtered.append(app) return filtered
answer
2
1
2.379515
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
1
completed
43
0f1591b1e0dfc5f3aba6db9aa9f8169a8c0e4a34959b3f141b2f83513cb8d4c8
[ { "role": "user", "content": "Hey, can you write a Python function to help me validate some film credits? I have a list of actors and directors, and I want to check if they are present in a specific film database. I'm not sure how to start, can you help me figure it out?The signature of the function is: def...
[ { "step": 1, "input_tokens": 328, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 328, "completion_tokens": 43 }, "raw_response": "Sure, could you clarify how the film_database is structured? Are the actors and directors stored ...
def validate_film_credits(film_database, film_title, actors=None, directors=None): if actors is None: actors = [] if directors is None: directors = [] for actor in actors: if any(actor == entry.get('actor') for entry in film_database if entry.get('title') == film_title): ...
answer
6
5
12.226419
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0.2
completed
44
1381e70fa93cbee100f393914a50dcf152cd4fe478078a1537c7a39749508e73
[ { "role": "user", "content": "I need an LLM agent to write a python function that takes in a dictionary of donations with donor names as keys and donation amounts as values, along with a threshold amount and a list of donors to return. The function should identify donations above the threshold amount, add t...
[ { "step": 1, "input_tokens": 346, "max_tokens": 2048, "agent": { "attempts": 1, "finish_reason": "stop", "prompt_tokens": 346, "completion_tokens": 56 }, "raw_response": "def get_donations_report(donations, threshold, return_donors):\n return_dict = {}\n for don...
def get_donations_report(donations, threshold, return_donors): return_dict = {} for donor, amount in donations.items(): if amount > threshold and donor in return_donors: return_dict[donor] = amount return return_dict
answer
2
1
2.376389
bdf550c44eea40e2c29dd0799758deb98f87abe5ea8bb4e76d63298de98ba55c
0.1
completed
End of preview.

No dataset card yet

Downloads last month
439