Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
12
26
prompt
stringlengths
24
3.12k
expected_domain
stringclasses
1 value
ground_truth_answer
stringlengths
94
5.44k
⌀
hybrid_synthetic_gsm8k_001
Design a script evaluating Michael's total carpet replacement cost in an 18 by 12 foot room, summing the per-square-foot rates of $12 for carpet, $2 for padding, $4 for removal, and $34 for installation.
hybrid
def calculate_total_cost(): length = 18 width = 12 area = length * width cost_carpet = 12 cost_padding = 2 cost_removal = 4 cost_installation = 34 total_cost_per_sqft = cost_carpet + cost_padding + cost_removal + cost_installation total_cost = area * total_cost_per_sqft return to...
hybrid_synthetic_gsm8k_002
Develop a generational math script calculating Great Grandma Jones's descendants. Multiply her 3 children by 3 to find grandchildren, and multiply that by 3 to find the number of great grand-babies at the reunion.
hybrid
def descendants(): children = 3 grandchildren = children * 3 great_grandchildren = grandchildren * 3 return great_grandchildren print(descendants())
hybrid_synthetic_gsm8k_003
Marissa's 30 students started with 10 pencils each, used 1/5 of them after two months, and finished the year with 1/3 of the remaining pencils. Write a program tracking these changes to print the number of pencils left.
hybrid
def pencils_left(): students = 30 pencils_per_student = 10 total_pencils = students * pencils_per_student used_first = total_pencils / 5 remaining = total_pencils - used_first left_at_end = remaining / 3 return int(left_at_end) print(pencils_left())
hybrid_synthetic_gsm8k_004
Write a reverse-calculation algorithm finding Seth's original number of stickers. Rob ended up with 7 stickers from Kris, who kept 9 after receiving the remainder from Luis. Luis had initially used half of the stickers he received from Seth, which was half of Seth's original total.
hybrid
def seth_stickers(): rob_stickers = 7 kris_kept = 9 kris_received_from_luis = rob_stickers + kris_kept luis_received_from_seth = kris_received_from_luis * 2 seth_original = luis_received_from_seth * 2 return seth_original print(seth_stickers())
hybrid_synthetic_gsm8k_005
Write a computational planner determining the total days Lauren needs to complete her cartooning project. The project requires 45 large, 36 medium, and 49 small picture scenes. Her daily output limits are exclusively 5 large, or 6 medium, or 7 small picture scenes per day.
hybrid
def total_days(): large = 45 medium = 36 small = 49 days_large = large / 5 days_medium = medium / 6 days_small = small / 7 return int(days_large + days_medium + days_small) print(total_days())
hybrid_synthetic_gsm8k_006
Program a countdown logic resolving John and Jack's commute. Subtract their 6-minute walk to the library and 13-minute walk to the fire station from their total 30-minute window to reveal their remaining buffer time before being late.
hybrid
def buffer_time(): total_window = 30 walk_library = 6 walk_fire_station = 13 remaining_time = total_window - (walk_library + walk_fire_station) return remaining_time print(buffer_time())
hybrid_synthetic_gsm8k_007
Joey starts with 214 points and scores 26, while Marcy has 225 points and scores 10. Write a comparative script to calculate by how many points Joey is winning.
hybrid
def winning_margin(): joey_score = 214 + 26 marcy_score = 225 + 10 return joey_score - marcy_score print(winning_margin())
hybrid_synthetic_gsm8k_008
Bennet wants to make a total of $135 by selling 20 eggplants at $3 each and 25 ears of corn. Develop a pricing script to calculate the exact monetary price he must charge per ear of corn.
hybrid
def corn_price(): target = 135 eggplants = 20 eggplant_price = 3 corns = 25 eggplant_revenue = eggplants * eggplant_price corn_revenue_needed = target - eggplant_revenue return corn_revenue_needed / corns print(corn_price())
hybrid_synthetic_gsm8k_009
Implement a decade-long tree population simulation for Tom. Start with 50 trees, net an additional 8 trees per year for 10 years by factoring in 10 planted and 2 chopped, and then output the final count after applying a 30 percent mortality rate.
hybrid
def tree_population(): start = 50 planted = 10 chopped = 2 net_per_year = planted - chopped years = 10 total_before_mortality = start + (net_per_year * years) mortality_rate = 0.30 final_count = total_before_mortality * (1 - mortality_rate) return int(final_count) print(tree_populat...
hybrid_synthetic_gsm8k_010
Implement a percentage-calculating algorithm for Mrs. Smith's garden that systematically evaluates a total of 100 plants by removing the 25% allocated as indoor plants, calculating the outdoor plants as two-thirds of the remainder, and determining the final percentage representation of the leftover flowering plants.
hybrid
def flowering_percentage(): total = 100 indoor = total * 0.25 remainder = total - indoor outdoor = remainder * (2 / 3) flowering = remainder - outdoor percentage = (flowering / total) * 100 return int(percentage) print(flowering_percentage())
hybrid_synthetic_gsm8k_011
Create a program to deduce the first plane's daily flights to France, given a second plane makes 44 flights to Poland (half the first plane's total), and the first plane flies 75% of its trips to Greece and splits the rest between France and Germany.
hybrid
def flights_to_france(): plane2_poland = 44 plane1_total = plane2_poland * 2 plane1_greece = plane1_total * 0.75 rest = plane1_total - plane1_greece france = rest / 2 return int(france) print(flights_to_france())
hybrid_synthetic_gsm8k_012
Sara wants to buy herself a new jacket and 2 pairs of shoes. The jacket she wants costs $30 and each pair of shoes cost $20. Sara babysits the neighbor's kids 4 times, earning $5 each time she babysits them. Her parents pay her $4 each time she mows the lawn. If Sara already had $10 saved before she started babysitting...
hybrid
def mow_lawn_times(): jacket_cost = 30 shoes_cost = 2 * 20 total_cost = jacket_cost + shoes_cost savings = 10 babysitting = 4 * 5 money_have = savings + babysitting money_needed = total_cost - money_have mow_pay = 4 return int(money_needed / mow_pay) print(mow_lawn_times())
hybrid_synthetic_gsm8k_013
Write an algorithm to determine Ahito's running distance given that he, Amber, and Micah ran 52 miles in total. Incorporate the facts that Amber ran 8 miles and Micah ran 3.5 times what Amber ran.
hybrid
def ahito_distance(): total = 52 amber = 8 micah = amber * 3.5 ahito = total - amber - micah return ahito print(ahito_distance())
hybrid_synthetic_gsm8k_014
Implement a solver to find the number of mint tea cups per row. Lana divides 27 cups into 3 rows, puts equal parts chamomile and mint in each row, and uses the remaining cups for 15 cinnamon teas.
hybrid
def mint_per_row(): total_cups = 27 cinnamon = 15 remaining = total_cups - cinnamon rows = 3 remaining_per_row = remaining / rows mint_per_row = remaining_per_row / 2 return int(mint_per_row) print(mint_per_row())
hybrid_synthetic_gsm8k_015
Formulate a daily diet cost tracker that reverse-engineers the price of a single carrot by taking Ellen's $11 total, subtracting her $6 salad and her $3 yogurt (calculated as half the salad's price), and mathematically dividing the remainder by the two carrots she consumes.
hybrid
def carrot_price(): total = 11 salad = 6 yogurt = salad / 2 remainder = total - salad - yogurt carrots = 2 return remainder / carrots print(carrot_price())
hybrid_synthetic_gsm8k_016
Write a program computing the total pages in a 1.5-inch thick book, given the paper stacks at 100 sheets to the inch and is printed on both sides.
hybrid
def total_pages(): thickness = 1.5 sheets_per_inch = 100 total_sheets = thickness * sheets_per_inch pages = total_sheets * 2 return int(pages) print(total_pages())
hybrid_synthetic_gsm8k_017
Bill signed up for a streaming service at $8 a month for the first 6 months, which then went up to $12 a month. After 8 months of the normal rate, the price increased to $14 a month. Code an algorithm to evaluate his total cost for 2 years.
hybrid
def streaming_cost(): months_total = 24 period1_months = 6 period1_rate = 8 period2_months = 8 period2_rate = 12 period3_months = months_total - (period1_months + period2_months) period3_rate = 14 total = (period1_months * period1_rate) + (period2_months * period2_rate) + (period3_months...
hybrid_synthetic_gsm8k_018
Local firefighters raised $2100 in their first 3 hours toward a $6300 goal. Write a loop or simple function to determine the total hours needed to reach the goal assuming an equal amount is raised every hour.
hybrid
def hours_to_goal(): raised = 2100 hours_spent = 3 goal = 6300 hourly_rate = raised / hours_spent return int(goal / hourly_rate) print(hours_to_goal())
hybrid_synthetic_gsm8k_019
Damien finds 10 bottle caps a day, each worth $0.25. Code an earnings-projection loop to find the total money he makes over a 30-day month.
hybrid
def bottle_cap_earnings(): caps_per_day = 10 value_per_cap = 0.25 days = 30 total_earnings = 0 for _ in range(days): total_earnings += caps_per_day * value_per_cap return total_earnings print(bottle_cap_earnings())
hybrid_synthetic_gsm8k_020
Write a truck customizer app that totals Bill's purchase. Start with a $30,000 base price, add a $7,500 king cab, a leather seat upgrade at one-third the king cab's price, running boards at $500 less than the leather seats, and a $1500 light package.
hybrid
def truck_cost(): base = 30000 king_cab = 7500 leather_seats = king_cab / 3 running_boards = leather_seats - 500 light_package = 1500 return int(base + king_cab + leather_seats + running_boards + light_package) print(truck_cost())
hybrid_synthetic_gsm8k_021
Write a computational model to figure out the hours required for 5 people to paint a whole house, given that one person can paint half a house in 5 days.
hybrid
def painting_hours(): one_person_half_house_days = 5 one_person_whole_house_days = one_person_half_house_days * 2 five_people_days = one_person_whole_house_days / 5 hours_per_day = 24 return int(five_people_days * hours_per_day) print(painting_hours())
hybrid_synthetic_gsm8k_022
An orchard sold 2000 apples packaged in bags of 10. At $5 per bag, implement a quick calculation in your favorite programming language to find their total earnings.
hybrid
def total_earnings(): apples = 2000 apples_per_bag = 10 price_per_bag = 5 bags = apples / apples_per_bag return int(bags * price_per_bag) print(total_earnings())
hybrid_synthetic_gsm8k_023
Create code that computes the distance Henry traveled between his two rest stops on a 60-mile bike ride, given the first stop was at mile 20 and the second was 15 miles from the finish line.
hybrid
def distance_between_stops(): total_distance = 60 stop1 = 20 stop2 = total_distance - 15 return stop2 - stop1 print(distance_between_stops())
hybrid_synthetic_gsm8k_024
Write code computing the weight of a Mastiff by scaling a 10-pound Affenpinscher to a Dachshund which is twice as heavy, to a Papillon which is 1/4 the Dachshund, and finally multiplying the Papillon by 44 for the Mastiff.
hybrid
def mastiff_weight(): affenpinscher = 10 dachshund = affenpinscher * 2 papillon = dachshund / 4 mastiff = papillon * 44 return int(mastiff) print(mastiff_weight())
hybrid_synthetic_gsm8k_025
Write a programmatic snippet that outputs the total distance covered by each of two trains over two days, given they both travel 80 miles west on the first day and 150 miles north on the second.
hybrid
def train_distance(): day1_dist = 80 day2_dist = 150 total_distance_covered = day1_dist + day2_dist return total_distance_covered print(train_distance())
hybrid_synthetic_gsm8k_026
Write a loan calculator to find Karan's monthly payment on a 3650 dollar loan over 5 months with a 10 percent total interest added.
hybrid
def monthly_payment(): loan_amount = 3650 interest_rate = 0.10 months = 5 total_owed = loan_amount + (loan_amount * interest_rate) return int(total_owed / months) print(monthly_payment())
hybrid_synthetic_gsm8k_027
Formulate a code snippet to calculate the number of emails James responds to in a 5-day work week, given he receives 80 emails daily and skips responding to 20% of them.
hybrid
def total_emails_responded(): daily_received = 80 skip_rate = 0.20 daily_responded = daily_received * (1 - skip_rate) days = 5 return int(daily_responded * days) print(total_emails_responded())
hybrid_synthetic_gsm8k_028
Implement an algorithm to find the combined weight of Grace and Alex, automatically calculating Alex's weight as 2 pounds less than four times Grace's 125 pounds.
hybrid
def combined_weight(): grace = 125 alex = (4 * grace) - 2 return grace + alex print(combined_weight())
hybrid_synthetic_gsm8k_029
Write a program that calculates Pauline's total museum expenses over 8 years. For the first 5 years, she pays $2 per visit, 3 times a year; for the next 3 years, her 3 annual visits cost 150% more per ticket.
hybrid
def museum_expenses(): first_period_years = 5 visits_per_year = 3 first_ticket_cost = 2 first_period_total = first_period_years * visits_per_year * first_ticket_cost second_period_years = 3 second_ticket_cost = first_ticket_cost + (first_ticket_cost * 1.50) second_period_total = second_...
hybrid_synthetic_gsm8k_030
Draft code to compute Susan's annual magazine deliveries by adding the issues from three 12-issue magazines, one 6-issue magazine, and one magazine that delivers four times as many issues as the 6-issue one.
hybrid
def total_issues(): twelve_issue_mags = 3 * 12 six_issue_mags = 1 * 6 four_times_mag = 4 * 6 return twelve_issue_mags + six_issue_mags + four_times_mag print(total_issues())
hybrid_synthetic_gsm8k_031
Draft a program that sequences the distinct weights of four individuals starting with Martin's 55 kg, adding 16 kg for Carl, adding 8 kg to Carl's output for Christian, and finally subtracting 5 kg from Christian to programmatically output Harry's weight.
hybrid
def harrys_weight(): martin = 55 carl = martin + 16 christian = carl + 8 harry = christian - 5 return harry print(harrys_weight())
hybrid_synthetic_gsm8k_032
Code a cost calculator for Bud's weekly macaroni and cheese (a $1.00 box of pasta, $3.00 of cheddar, and $6.00 of gruyere), and multiply by 52 to find his annual expense.
hybrid
def annual_expense(): pasta = 1.00 cheddar = 3.00 gruyere = 6.00 weekly_cost = pasta + cheddar + gruyere weeks = 52 return int(weekly_cost * weeks) print(annual_expense())
hybrid_synthetic_gsm8k_033
Write a script to deduce the initial size of Jennie's already-stamped letter pile. The logic should take the 60 unstamped letters, calculate one-third of them being stamped and moved over, and subtract that from the final count of 30 already-stamped letters.
hybrid
def initial_stamped(): unstamped = 60 stamped_and_moved = unstamped / 3 final_stamped = 30 initial_size = final_stamped - stamped_and_moved return int(initial_size) print(initial_stamped())
hybrid_synthetic_gsm8k_034
Four students scored a total of 251 points in a board game. Naomi scored 68 of the points. Yuri scored 10 more than half as many points as Naomi and Brianna scored 17 points more than Naomi. Develop a programmatic solver that identifies how many points Jojo scored.
hybrid
def jojo_score(): total_points = 251 naomi = 68 yuri = (naomi / 2) + 10 brianna = naomi + 17 jojo = total_points - (naomi + yuri + brianna) return int(jojo) print(jojo_score())
hybrid_synthetic_gsm8k_035
Code a distribution function that takes two bags of 55 tortilla chips and divides them equally among Mitchell's five family members, returning the chips per person.
hybrid
def chips_per_person(): bags = 2 chips_per_bag = 55 total_chips = bags * chips_per_bag family_members = 5 return int(total_chips / family_members) print(chips_per_person())
hybrid_synthetic_gsm8k_036
Code a physics simulation for a bouncy ball dropped from a 3rd-floor balcony (each story is 24 feet high). If it bounces to 2/3rds of its previous height on each bounce, calculate its peak height on the second bounce.
hybrid
def peak_height_second_bounce(): drop_height = 3 * 24 bounce_ratio = 2 / 3 bounce_1 = drop_height * bounce_ratio bounce_2 = bounce_1 * bounce_ratio return int(bounce_2) print(peak_height_second_bounce())
hybrid_synthetic_gsm8k_037
Code a resource calculator for Tim's lemonade that requires 6 lemons per cup for 4 standard gallons, plus an extra gallon for Allen that requires twice the lemon juice (12 lemons).
hybrid
def total_lemons(): cups_per_gallon = 16 standard_gallons = 4 standard_cups = standard_gallons * cups_per_gallon standard_lemons = standard_cups * 6 allen_gallons = 1 allen_cups = allen_gallons * cups_per_gallon allen_lemons = allen_cups * 12 return standard_lemons + allen_lemo...
hybrid_synthetic_gsm8k_038
Four pizzas cost a total of 64 dollars, and two of them collectively cost 30 dollars. Assuming the other two pizzas are equally priced, code an equation-solving function to find the cost of one of these remaining pizzas.
hybrid
def pizza_cost(): total_cost = 64 cost_of_two = 30 remaining_cost = total_cost - cost_of_two cost_per_remaining = remaining_cost / 2 return int(cost_per_remaining) print(pizza_cost())
hybrid_synthetic_gsm8k_039
Develop an algorithm to calculate the final number of trees planted at Ashley's school during a reforestation campaign, assuming 40 classes that each contain an average of 25 students and 3 teachers, where every child plants a single tree and every teacher plants two.
hybrid
def total_trees(): classes = 40 students_per_class = 25 teachers_per_class = 3 trees_per_student = 1 trees_per_teacher = 2 total_students = classes * students_per_class total_teachers = classes * teachers_per_class student_trees = total_students * trees_per_student teacher_...
hybrid_synthetic_gsm8k_040
Using a programming language of your choice, calculate the remaining red and blue shoe boxes in Tim's possession after he takes 3 of his 7 blue boxes and a third of his 9 red boxes on a fishing trip.
hybrid
def remaining_boxes(): blue_initial = 7 blue_taken = 3 blue_remaining = blue_initial - blue_taken red_initial = 9 red_taken = red_initial / 3 red_remaining = red_initial - red_taken return int(blue_remaining + red_remaining) print(remaining_boxes())
hybrid_synthetic_gsm8k_041
Produce a coded solution that calculates the total additional feet of line the dock caretaker must purchase, applying a 3-to-1 ratio for 200 feet of dock and subtracting the 6 feet of line currently in inventory.
hybrid
def additional_line(): dock_length = 200 ratio = 3 line_needed = dock_length * ratio inventory = 6 purchase_needed = line_needed - inventory return purchase_needed print(additional_line())
hybrid_synthetic_gsm8k_042
Write an automated ledger script that tallies Scarlett's purchases: a $10.00 aquarium, two $2.50 bags of rocks, three $2.00 coral pieces, twenty $0.50 fish, and $2.00 for fish food, outputting her final total spend.
hybrid
def total_spend(): aquarium = 10.00 rocks = 2 * 2.50 coral = 3 * 2.00 fish = 20 * 0.50 food = 2.00 total = aquarium + rocks + coral + fish + food return total print(total_spend())
hybrid_synthetic_gsm8k_043
Develop code to find the percentage of students in a 20-person dance class who chose hip-hop, given that 20% chose contemporary and 25% of the remainder chose jazz.
hybrid
def hip_hop_percentage(): total_students = 20 contemporary = total_students * 0.20 remainder = total_students - contemporary jazz = remainder * 0.25 hip_hop = remainder - jazz percentage = (hip_hop / total_students) * 100 return int(percentage) print(hip_hop_percentage())
hybrid_synthetic_gsm8k_044
Program a pricing calculator for a payphone that bills the first 16 minutes at $0.25 per minute and any subsequent minutes at $0.20 per minute, then evaluate the cost of a 36-minute call.
hybrid
def call_cost(): total_minutes = 36 first_minutes = 16 first_rate = 0.25 subsequent_minutes = total_minutes - first_minutes subsequent_rate = 0.20 cost = (first_minutes * first_rate) + (subsequent_minutes * subsequent_rate) return cost print(call_cost())
hybrid_synthetic_gsm8k_045
Use code to solve the ratio problem where Regina's 9 novels from last year represent exactly 3 quarters of her current year's output, and return the number of novels written this year.
hybrid
def current_year_novels(): last_year = 9 current_year = last_year * (4 / 3) return int(current_year) print(current_year_novels())
hybrid_synthetic_gsm8k_046
There are 4 snails in one aquarium and 32 snails in another aquarium. The difference between the number of snails in the two aquariums is twice the amount of fish in both aquariums. If both aquariums have the same number of fish in them, code a routine to parse how many fish are there in each aquarium.
hybrid
def fish_per_aquarium(): snails_1 = 4 snails_2 = 32 difference = snails_2 - snails_1 total_fish = difference / 2 fish_per_tank = total_fish / 2 return int(fish_per_tank) print(fish_per_aquarium())
hybrid_synthetic_gsm8k_047
Write a function that adds up the thickness of four books, where the first is 31mm, the second is 50mm, the third is 5mm thinner than the second, and the fourth is twice the first.
hybrid
def total_thickness(): book_1 = 31 book_2 = 50 book_3 = book_2 - 5 book_4 = book_1 * 2 return book_1 + book_2 + book_3 + book_4 print(total_thickness())
hybrid_synthetic_gsm8k_048
Code a statistical summary for Johnny's dad's horse racing bets to find his average loss for the day. He lost $5 on race one, won $1 more than twice his previous loss on race two, and lost 1.5 times his race two winnings on race three.
hybrid
def average_loss(): race_1 = -5 race_2_winnings = (abs(race_1) * 2) + 1 race_2 = race_2_winnings race_3 = -(race_2_winnings * 1.5) total_net = race_1 + race_2 + race_3 return abs(total_net) / 3 print(average_loss())
hybrid_synthetic_gsm8k_049
An appliance store sells a total of 40 TVs in a week: 1/4 are smart TVs, 1/8 are analog TVs, and the rest are OLED TVs. Write an inventory-breakdown function to find the exact number of OLED TVs sold.
hybrid
def oled_tvs_sold(): total = 40 smart = total / 4 analog = total / 8 oled = total - smart - analog return int(oled) print(oled_tvs_sold())
hybrid_synthetic_gsm8k_050
A team of 4 painters worked on a mansion for 3/8ths of a day every day for 3 weeks. Write an algorithmic function to calculate the total hours of work put in by each individual painter.
hybrid
def hours_per_painter(): days = 3 * 7 hours_per_day = 24 daily_work_hours = (3 / 8) * hours_per_day total_hours = daily_work_hours * days return int(total_hours) print(hours_per_painter())
hybrid_synthetic_gsm8k_051
Create a script to tally Karen's salon bill by summing a $35 manicure and a $40 pedicure, applying a 20% discount to that combo, and then adding $3 for nail art on each of her 10 fingers.
hybrid
def total_salon_bill(): manicure = 35 pedicure = 40 combo_total = manicure + pedicure discount_rate = 0.20 combo_discounted = combo_total * (1 - discount_rate) fingers = 10 nail_art_per_finger = 3 nail_art_total = fingers * nail_art_per_finger total_bill = combo_discounted + nail_art...
hybrid_synthetic_gsm8k_052
Program a loop or calculation to find how many cookies Jenny eats out of a 36-cookie bag, given she packs 4 daily for her son for 5 days and her husband eats 1 daily for 7 days.
hybrid
def cookies_jenny_eats(): total_cookies = 36 son_daily = 4 son_days = 5 son_total = son_daily * son_days husband_daily = 1 husband_days = 7 husband_total = husband_daily * husband_days jenny_eats = total_cookies - son_total - husband_total return jenny_eats print(cookies_jenny_eats(...
hybrid_synthetic_gsm8k_053
Write a match timer routine that calculates the entire duration of Sarah's basketball game, comprising four 12-minute quarters plus a 5-minute overtime tie-breaker extension.
hybrid
def game_duration(): quarters = 4 minutes_per_quarter = 12 regular_time = quarters * minutes_per_quarter overtime = 5 total_duration = regular_time + overtime return total_duration print(game_duration())
hybrid_synthetic_gsm8k_054
Develop an expense calculation program for 44 seniors: a 20 dollar frame with a 20 percent logo fee each, two 5 dollar pins total, and cords at 12 dollars each for the one-fourth of seniors who are officers.
hybrid
def senior_expenses(): seniors = 44 frame_base = 20 logo_fee = 0.20 frame_cost = frame_base + (frame_base * logo_fee) pins_cost = 2 * 5 cost_per_senior = frame_cost + pins_cost base_total = seniors * cost_per_senior officers = seniors / 4 cord_cost = 12 cords_total = officer...
hybrid_synthetic_gsm8k_055
Write a script to track Walter's 60 apples as he eats 2/5 of them, gives 25% of the remainder to his sister, and then sells the rest at $3 each, outputting his final monetary return.
hybrid
def walter_apples_return(): total_apples = 60 eaten = total_apples * (2 / 5) remainder = total_apples - eaten sister = remainder * 0.25 sold_apples = remainder - sister price_per_apple = 3 total_return = sold_apples * price_per_apple return int(total_return) print(walter_apples_return()...
hybrid_synthetic_gsm8k_056
Code a personal finance script for Greta. Process her $2400.00 paycheck by withdrawing 50% for retirement and 20% of the original gross for her car payment, returning her leftover spending money.
hybrid
def greta_leftover(): paycheck = 2400.00 retirement = paycheck * 0.50 car_payment = paycheck * 0.20 leftover = paycheck - retirement - car_payment return leftover print(greta_leftover())
hybrid_synthetic_gsm8k_057
Molly is ordering food for 16 people. 10 want chicken salad at $6.50 each, and 6 want pasta salad at $6 each. Write an expression or small program to calculate her total catering bill.
hybrid
def catering_bill(): chicken_salad_count = 10 chicken_salad_price = 6.50 pasta_salad_count = 6 pasta_salad_price = 6.00 total_bill = (chicken_salad_count * chicken_salad_price) + (pasta_salad_count * pasta_salad_price) return total_bill print(catering_bill())
hybrid_synthetic_gsm8k_058
Write a program to calculate the total weight of Solomon's store inventory, knowing he adds 20 marbles to a base of 50, receives two-fifths of his purchased amount from his father, and each marble weighs 2 kilograms.
hybrid
def marbles_weight(): base = 50 purchased = 20 from_father = purchased * (2 / 5) total_marbles = base + purchased + from_father weight_per_marble = 2 total_weight = total_marbles * weight_per_marble return int(total_weight) print(marbles_weight())
hybrid_synthetic_gsm8k_059
Develop a script to sum the friend networks of Amy and Lily, taking Lily's fixed count of 50 friends and adding Amy's count, which is dynamically defined as 20 more than Lily's.
hybrid
def total_friends(): lily = 50 amy = lily + 20 return lily + amy print(total_friends())
hybrid_synthetic_gsm8k_060
Design an algebraic age-solving program that outputs Jean's age. First, use Jan's age of 30 to find Mark's age 2 years ago as 5 years older than half of Jan's age, update Mark to his current age, and add 2 to find Jean's.
hybrid
def jeans_age(): jan = 30 mark_2_years_ago = (jan / 2) + 5 mark_current = mark_2_years_ago + 2 jean = mark_current + 2 return int(jean) print(jeans_age())
hybrid_synthetic_gsm8k_061
Automate the weight reduction calculation for Uriah's book bag. If he needs to shed 15 pounds total and removes 30 comic books weighing 0.25 pounds each, how many 0.5-pound toys must he also remove?
hybrid
def toys_to_remove(): target_shed = 15 comics_count = 30 comic_weight = 0.25 comics_total = comics_count * comic_weight remaining_shed = target_shed - comics_total toy_weight = 0.5 toys_count = remaining_shed / toy_weight return int(toys_count) print(toys_to_remove())
hybrid_synthetic_gsm8k_062
Construct an automated calculator to figure out Mishka's total clothing expenditure for 3 pairs of shorts at $16.50 each, 3 pairs of pants at $22.50 each, and 3 pairs of shoes at $42 each.
hybrid
def clothing_expenditure(): shorts_cost = 3 * 16.50 pants_cost = 3 * 22.50 shoes_cost = 3 * 42.00 total_cost = shorts_cost + pants_cost + shoes_cost return total_cost print(clothing_expenditure())
hybrid_synthetic_gsm8k_063
Misha picks out 4 blouses from a 30% off rack, where the regular price is $20 each. Write code to calculate the total discounted cost.
hybrid
def discounted_cost(): blouses = 4 regular_price = 20 discount = 0.30 discounted_price = regular_price * (1 - discount) total_cost = blouses * discounted_price return total_cost print(discounted_cost())
hybrid_synthetic_gsm8k_064
Colorado City uses 40% of the Colorado River's water, and 80% of that allotment goes to industrial use. Formulate a query or script to calculate the percentage of the river's total water dedicated to the city's non-industrial purposes.
hybrid
def non_industrial_percentage(): city_share = 40 industrial_share_of_city = 0.80 industrial_total = city_share * industrial_share_of_city non_industrial_total = city_share - industrial_total return non_industrial_total print(non_industrial_percentage())
hybrid_synthetic_gsm8k_065
Implement a duration calculator mapping out the total time of John's cassette. The tape features 2 songs, where the first is 5 minutes long and the second is 60% longer.
hybrid
def cassette_duration(): song1 = 5 song2 = song1 * (1 + 0.60) total_duration = song1 + song2 return total_duration print(cassette_duration())
hybrid_synthetic_gsm8k_066
A salesman purchased 48 sneakers for $576, sold 17 at a $20 flash sale, and the rest for $25 each. Write a profit-calculating algorithm for this scenario in dollars.
hybrid
def calculate_profit(): purchase_cost = 576 total_sneakers = 48 sale_sneakers = 17 sale_price = 20 regular_price = 25 regular_sneakers = total_sneakers - sale_sneakers revenue = (sale_sneakers * sale_price) + (regular_sneakers * regular_price) profit = revenue - purchase_cost re...
hybrid_synthetic_gsm8k_067
Helga taps her right foot 300 times/min and her left foot 250 times/min with arms down, but both feet slow to 200 taps/min when her arms are raised. Write a routine to calculate her total taps during a 5-minute dance where arms are raised for exactly 2 minutes.
hybrid
def total_taps(): total_time = 5 raised_time = 2 down_time = total_time - raised_time down_rate = 300 + 250 raised_rate = 200 + 200 total = (down_time * down_rate) + (raised_time * raised_rate) return total print(total_taps())
hybrid_synthetic_gsm8k_068
A laptop is priced at $1000 with a 20% discount applied. Write a simple calculator script that outputs the final cost the user has to pay.
hybrid
def final_cost(): price = 1000 discount = 0.20 cost = price * (1 - discount) return int(cost) print(final_cost())
hybrid_synthetic_gsm8k_069
Parker chews 4 pieces of gum daily from packs containing 15 pieces each. Develop an arithmetic function that outputs the total packs he must purchase to supply his habit for 30 days.
hybrid
def gum_packs_needed(): daily_chew = 4 days = 30 total_gum = daily_chew * days pack_size = 15 packs_needed = total_gum / pack_size return int(packs_needed) print(gum_packs_needed())
hybrid_synthetic_gsm8k_070
A cat consumes 9 sausages in 30 minutes, whereas a dog finishes the same amount in two-thirds of that time. Program a script to compute the average time it takes the two animals to finish the sausages.
hybrid
def average_time(): cat_time = 30 dog_time = cat_time * (2 / 3) avg = (cat_time + dog_time) / 2 return int(avg) print(average_time())
hybrid_synthetic_gsm8k_071
Generate a script calculating the math problems Chris has left for Thursday out of an initial 100, if he does 12 on Monday, three times that on Tuesday, and a quarter of the remainder on Wednesday.
hybrid
def problems_for_thursday(): total = 100 monday = 12 tuesday = monday * 3 remaining_after_tue = total - (monday + tuesday) wednesday = remaining_after_tue / 4 thursday = remaining_after_tue - wednesday return int(thursday) print(problems_for_thursday())
hybrid_synthetic_gsm8k_072
Code a mathematical solver to determine the pounds of candy at 1.5 dollars a pound Billy bought with 10 dollars, if he spent half his remaining change on 40 gumballs at 5 cents each.
hybrid
def candy_pounds(): total_money = 10.0 gumballs = 40 gumball_price = 0.05 gumballs_cost = gumballs * gumball_price remaining_change = gumballs_cost * 2 candy_cost = total_money - remaining_change candy_price_per_pound = 1.5 pounds = candy_cost / candy_price_per_pound return int(pound...
hybrid_synthetic_gsm8k_073
Implement code simulating a cashier's change-giving process for Adam. Deduct the cost of seven $0.50 candies (Type A) and ten $0.75 candies (Type B) from a $15 payment, returning the change.
hybrid
def calculate_change(): payment = 15.00 type_a_cost = 7 * 0.50 type_b_cost = 10 * 0.75 total_cost = type_a_cost + type_b_cost change = payment - total_cost return change print(calculate_change())
hybrid_synthetic_gsm8k_074
Model Richard's soda experiment in a script. His driveway is 24 feet wide, and he spaces bottles every 3 feet. It takes 5 seconds to travel between consecutive bottles to drop the candy in. Output the total seconds required to set off all the fountains.
hybrid
def experiment_time(): driveway_width = 24 spacing = 3 intervals = driveway_width / spacing bottles = intervals + 1 travels = bottles - 1 time_per_travel = 5 total_time = travels * time_per_travel return int(total_time) print(experiment_time())
hybrid_synthetic_gsm8k_075
Develop a profit estimation tool for Kim's housekeeping business. The code should factor in 8 total clients, subtract the expense of 2 bottles of bleach at $2 each and 1 pack of cloths at $5 per client, from a projected weekly income of $92.
hybrid
def kims_profit(): clients = 8 bleach_cost = 2 * 2 cloths_cost = 5 expense_per_client = bleach_cost + cloths_cost total_expense = clients * expense_per_client weekly_income = 92 profit = weekly_income - total_expense return profit print(kims_profit())
hybrid_synthetic_gsm8k_076
Bob's pond originally has 3 orange and 4 white fish. He adds 17 mixed orange and white fish, resulting in a pond with twice as many orange fish as white fish. Draft an algebraic solver in code to deduce how many white fish Bob bought at the store.
hybrid
def bought_white_fish(): original_orange = 3 original_white = 4 added_total = 17 total_fish = original_orange + original_white + added_total # orange = 2 * white => orange + white = 3 * white = total_fish final_white = total_fish / 3 bought_white = final_white - original_white retur...
hybrid_synthetic_gsm8k_077
Draft an accounting script for Dean, who starts with 28 dollars, buys 6 toy cars at 2 dollars and 5 teddy bears at 1 dollar, and then receives an extra generous 10 dollars from his mother.
hybrid
def deans_money(): start = 28 cars = 6 * 2 bears = 5 * 1 spent = cars + bears mom = 10 final = start - spent + mom return final print(deans_money())
hybrid_synthetic_gsm8k_078
Code a grocery tally script for Roger. Compute the total spent on a week's supply of coffee at 1 pound per day, applying a 20% markup to his normal $5 per pound brand, plus a $2 donut.
hybrid
def rogers_groceries(): days = 7 lbs_per_day = 1 total_lbs = days * lbs_per_day normal_price = 5 markup = 0.20 new_price = normal_price * (1 + markup) coffee_total = total_lbs * new_price donut = 2 total_spent = coffee_total + donut return int(total_spent) print(rogers_groceries...
hybrid_synthetic_gsm8k_079
Construct a short application logic snippet returning the final length of each ribbon piece after Marty takes 100 centimeters of ribbon, cuts it into 4 equal parts, and then divides each of those into 5 equal parts.
hybrid
def final_ribbon_length(): initial_length = 100 first_cut = initial_length / 4 second_cut = first_cut / 5 return int(second_cut) print(final_ribbon_length())
hybrid_synthetic_gsm8k_080
Design a function that takes two library DVDs with 356 and 135 previous plays respectively, and computes their combined remaining plays before both reach their 1000-play breaking point.
hybrid
def remaining_dvd_plays(): max_plays = 1000 dvd1_prev = 356 dvd2_prev = 135 dvd1_rem = max_plays - dvd1_prev dvd2_rem = max_plays - dvd2_prev return dvd1_rem + dvd2_rem print(remaining_dvd_plays())
hybrid_synthetic_gsm8k_081
Create a script computing the total hours accumulated from Bobby's office breaks over 5 days. The program needs to account for a 30-minute lunch alongside two 15-minute breaks per day.
hybrid
def total_break_hours(): lunch = 30 breaks = 2 * 15 daily_minutes = lunch + breaks days = 5 total_minutes = daily_minutes * days total_hours = total_minutes / 60 return int(total_hours) print(total_break_hours())
hybrid_synthetic_gsm8k_082
Write a function evaluating how many milliliters of water Hannah must drink, given a requirement of 60 ml per kilometer and a workout consisting of 8 laps of 0.25 km each.
hybrid
def water_needed(): water_per_km = 60 laps = 8 lap_dist = 0.25 total_dist = laps * lap_dist total_water = total_dist * water_per_km return int(total_water) print(water_needed())
hybrid_synthetic_gsm8k_083
Implement code to total the skeins of wool Martha must purchase to knit a hat needing 2 skeins, a scarf needing 4, a sweater needing 12, mittens needing 1, and socks needing 2, for each of her three triplet grandchildren.
hybrid
def total_skeins(): hat = 2 scarf = 4 sweater = 12 mittens = 1 socks = 2 per_child = hat + scarf + sweater + mittens + socks grandchildren = 3 total = per_child * grandchildren return total print(total_skeins())
hybrid_synthetic_gsm8k_084
Create a script that tracks a new program's downloads over three months and outputs the total, starting with 60 in month one, multiplying by three for month two, and applying a 30% reduction to month two's total to find month three.
hybrid
def total_downloads(): month_1 = 60 month_2 = month_1 * 3 reduction = 0.30 month_3 = month_2 * (1 - reduction) total = month_1 + month_2 + month_3 return int(total) print(total_downloads())
hybrid_synthetic_gsm8k_085
A company spends $15000 on advertising for a year, and then spends a third of that amount on advertising for another year. Code a financial formula checking what's the total amount the company spent on advertising for the two years.
hybrid
def advertising_spend(): year_1 = 15000 year_2 = year_1 / 3 total = year_1 + year_2 return int(total) print(advertising_spend())
hybrid_synthetic_gsm8k_086
Model the blinking sequence of a lighthouse programmatically to find out how long it will take to blink 459 times, knowing it currently blinks 255 times in 5 minutes.
hybrid
def blink_time(): current_blinks = 255 current_time = 5 blinks_per_minute = current_blinks / current_time target_blinks = 459 target_time = target_blinks / blinks_per_minute return int(target_time) print(blink_time())
hybrid_synthetic_gsm8k_087
Create an algorithm that works backward to find Jackie's pre-summer height by doubling Albert's 36 inch to find Anne's height, subtracting 2 inch for Jackie's current height, and finally deducting her 3 inch summer growth.
hybrid
def jackie_pre_summer_height(): albert = 36 anne = albert * 2 jackie_current = anne - 2 jackie_pre_summer = jackie_current - 3 return jackie_pre_summer print(jackie_pre_summer_height())
hybrid_synthetic_gsm8k_088
Write a payroll processor computing Jen's April income. She works 7.5 hours a day for 6 days a week at an hourly rate of $1.5. Include an additional $10 perfect attendance bonus, assuming she incurred no absences across the exactly 4 weeks in April.
hybrid
def april_income(): hours_per_day = 7.5 days_per_week = 6 hourly_rate = 1.5 weeks_in_april = 4 bonus = 10 weekly_pay = hours_per_day * days_per_week * hourly_rate base_pay = weekly_pay * weeks_in_april total_pay = base_pay + bonus return total_pay print(april_income())
hybrid_synthetic_gsm8k_089
Michael's horse runs for 30 minutes at 32 MPH, eating 1/2 a bail of hay per mile run. If hay costs $3 a bail and he has six 5-dollar bills, create a function to evaluate Michael's remaining change.
hybrid
def remaining_change(): run_time_hours = 30 / 60 speed = 32 miles = run_time_hours * speed hay_per_mile = 0.5 hay_total = miles * hay_per_mile hay_cost = 3 total_cost = hay_total * hay_cost paid = 6 * 5 change = paid - total_cost return int(change) print(remaining_change())
hybrid_synthetic_gsm8k_090
Write a reverse-calculation script to find out how many vacuum cleaners Melanie originally had, knowing she sold one-third at the green house, 2 at the red house, half the remainder at the orange house, and ended up with exactly 5 left.
hybrid
def original_vacuum_cleaners(): final = 5 before_orange = final * 2 before_red = before_orange + 2 original = before_red / (1 - 1/3) return int(original) print(original_vacuum_cleaners())
hybrid_synthetic_gsm8k_091
Mary buys 3 bags of M&Ms. The first bag has 300 M&Ms in it. The second bag has 12 more M&Ms than the first, and the third bag has a hole in it, so it only has half the number of M&Ms that the first bag had. Output a programmatic solver extracting how many M&Ms Mary got total.
hybrid
def total_m_and_ms(): bag1 = 300 bag2 = bag1 + 12 bag3 = bag1 / 2 total = bag1 + bag2 + bag3 return int(total) print(total_m_and_ms())
hybrid_synthetic_gsm8k_092
Model the guest count of a hotel in code. Starting with a fully booked hotel of 100 guests, 24 check out early and 15 check out late. In the afternoon, twice as many people check in as those who checked out late, and 7 more check in after dinner. Have the code print the final number of guests.
hybrid
def final_guest_count(): start = 100 check_out_early = 24 check_out_late = 15 afternoon_check_in = 2 * check_out_late dinner_check_in = 7 final = start - check_out_early - check_out_late + afternoon_check_in + dinner_check_in return final print(final_guest_count())
hybrid_synthetic_gsm8k_093
Write a script to calculate Allen's age a decade from now, utilizing the current age ratio of Darrell to Allen which is 7:11, and their combined current age of 162.
hybrid
def allens_future_age(): combined_age = 162 ratio_darrell = 7 ratio_allen = 11 total_parts = ratio_darrell + ratio_allen age_per_part = combined_age / total_parts allen_current = age_per_part * ratio_allen allen_future = allen_current + 10 return int(allen_future) print(allens_future_ag...
hybrid_synthetic_gsm8k_094
Develop code to determine Kate's potential revenue from melting three 64-piece crayon boxes into muffin crayons of 8 pieces each and selling them for $1.50 apiece.
hybrid
def kate_revenue(): boxes = 3 crayons_per_box = 64 total_crayons = boxes * crayons_per_box pieces_per_muffin = 8 muffins = total_crayons / pieces_per_muffin price_per_muffin = 1.50 revenue = muffins * price_per_muffin return revenue print(kate_revenue())
hybrid_synthetic_gsm8k_095
Develop a script tracking John's cooking class progress. Calculate his total class time over 6 weeks at 4 times a week for 2 hours per session, then divide by 1.5 to output the total number of recipes he learned.
hybrid
def recipes_learned(): weeks = 6 sessions_per_week = 4 hours_per_session = 2 total_hours = weeks * sessions_per_week * hours_per_session hours_per_recipe = 1.5 recipes = total_hours / hours_per_recipe return int(recipes) print(recipes_learned())
hybrid_synthetic_gsm8k_096
Two classes have a combined total of 80 students, split evenly, with girls making up 40% of each individual class. Write an algorithm to deduce the exact number of boys in each class.
hybrid
def boys_per_class(): total_students = 80 students_per_class = total_students / 2 girls_percentage = 0.40 girls_per_class = students_per_class * girls_percentage boys = students_per_class - girls_per_class return int(boys) print(boys_per_class())
hybrid_synthetic_gsm8k_097
Programmatically isolate Walt's Wednesday walking mileage by taking his 41-mile Monday-to-Wednesday total and subtracting Monday's 4 miles and Tuesday's distance, which is exactly 6 times Monday's amount.
hybrid
def wednesday_mileage(): total = 41 monday = 4 tuesday = monday * 6 wednesday = total - monday - tuesday return wednesday print(wednesday_mileage())
hybrid_synthetic_gsm8k_098
Write a basic program that subtracts 13 sick teachers from a total staff of 82 at Rydell Elementary, then adds 9 substitute teachers to output the total number of teachers present that Friday.
hybrid
def teachers_present(): total_staff = 82 sick = 13 substitutes = 9 present = total_staff - sick + substitutes return present print(teachers_present())
hybrid_synthetic_gsm8k_099
Code a structural model of Richard's 15-floor apartment building with 8 units per floor to calculate the exact number of vacant units, given that 75% of the building is occupied.
hybrid
def vacant_units(): floors = 15 units_per_floor = 8 total_units = floors * units_per_floor occupied_rate = 0.75 vacant_rate = 1 - occupied_rate vacant = total_units * vacant_rate return int(vacant) print(vacant_units())
hybrid_synthetic_gsm8k_100
Write a snippet of code that aggregates the weight of John's car (1200 lbs), luggage (250 lbs), and two children (150 lbs total), then calculates the 1% force required to push it.
hybrid
def push_force(): car = 1200 luggage = 250 children = 150 total_weight = car + luggage + children force = total_weight * 0.01 return int(force) print(push_force())
End of preview. Expand in Data Studio

Multi-Adapter Routing Evaluation Datasets & Benchmark Logs

This repository contains the custom evaluation datasets and raw experimental logs.


Dataset Summary

  1. Synthetic Hybrid Dataset (264 rows): Synthetically generated prompts that combine GSM8K mathematical reasoning contexts with explicit requirements for executable Python script implementations.
  2. Filtered WildChat Dataset (142 rows): Extracted from unstructured real-world user conversations in allenai/WildChat. Filtered to isolate natural user queries requiring both mathematical logic and code generation.
  3. Full Evaluation Logs: Raw JSON outputs for all five evaluated configurations (base, pure_math, pure_code, hybrid_adapter, routed) across all five benchmark tiers (gsm8k, codefeedback, mixed, hybrid, wildchat).

Dataset Schema

Both the Synthetic Hybrid and Filtered WildChat evaluation splits share a standardized JSON schema:

Column Type Description
id string Unique identifier for the evaluation prompt.
prompt string The input query passed to the Meta-Router and LLM.
expected_domain string Ground-truth routing domain label (e.g., "hybrid").
ground_truth_answer string Reference solution generated for LLM-as-a-Judge verification.

Evaluation Log Schema

The raw evaluation result files record per-query telemetry across the 25 evaluation runs:

  • dataset: Evaluated benchmark tier (gsm8k, codefeedback, mixed, hybrid, wildchat).
  • configuration: Active model setup (base, pure_math, pure_code, hybrid_adapter, routed).
  • prompt_id: Unique sample ID.
  • expected_domain: Ground-truth domain label.
  • routed_domain: Domain selected by the 6D Random Forest Meta-Router.
  • router_confidence: Meta-Router probability score for the selected class.
  • routing_correct: Boolean indicating whether routed_domain == expected_domain.
  • adapter_switch_ms: Latency (in milliseconds) required to switch or disable the LoRA adapter in VRAM.
  • generation_ms: Amortized token generation time in milliseconds.
  • tokens_generated: Total new tokens produced.
  • tps: Generation throughput in tokens per second.
  • execution_correct: Boolean accuracy verified via exact math extraction or the Gemini LLM-as-a-Judge pipeline.
  • prompt, generated_response, ground_truth_answer: Full text artifacts.

Usage

from datasets import load_dataset

# Load the dataset repository
dataset = load_dataset("ozgur-coban/multi-adapter-datasets")
Downloads last month
106