id
stringlengths
23
26
text
stringlengths
20
1.37k
format
stringclasses
2 values
messages
listlengths
2
4
⌀
family
stringclasses
1 value
sub
stringclasses
3 values
variant
stringclasses
1 value
variant_of
stringclasses
0 values
generator
stringclasses
1 value
sources
listlengths
0
0
source_ids
listlengths
0
0
n_tokens_alea
int64
8
494
meta
stringlengths
47
170
nlprog_det-setting-0083949
<|start|><|user|> Meals are $59 per day and lodging $110 per night. What is the allowance for 9 days and 8 nights?<|eot|> <|assistant|> ```python days = 9 meal_rate = 59 lodging_rate = 110 nights = days - 1 total = days * meal_rate + nights * lodging_rate print(total) ``` On running, it outputs: 1411 The allowance is ...
chat
[ { "role": "user", "content": "Meals are $59 per day and lodging $110 per night. What is the allowance for 9 days and 8 nights?" }, { "role": "assistant", "content": "```python\ndays = 9\nmeal_rate = 59\nlodging_rate = 110\nnights = days - 1\ntotal = days * meal_rate + nights * lodging_rate\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1411", "printed": "1411", "notation": null}
nlprog_det-setting-0083950
Monthly rent is $1,800. A tenant moves in with 12 days left in a 31-day month. What is the prorated rent? In code: ```python rent = 1800 days_in_month = 31 days_occupied = 12 prorated = rent * days_occupied / days_in_month # 696.7741935483871 print(f"{prorated:.2f}") ``` Running it prints: 696.77 The tenant owes $69...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "696.77", "printed": "696.77", "notation": null}
nlprog_det-setting-0083951
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 45 hours? We write it as a program: ```python rate = 18.5 hours = 45 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 138.75 pay = regular + overtime # 878.75 print(f"{pay:.2f}") ``` Run result: 878.75 The week...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "878.75", "printed": "878.75", "notation": null}
nlprog_det-setting-0083952
How much sales tax is charged on a $18.39 purchase at 8%? Python: ```python price = 18.39 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 1.4712 print(f"{tax:.2f}") ``` Printed result: 1.47 $1.47 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1.47", "printed": "1.47", "notation": null}
nlprog_det-setting-0083953
<|start|><|user|> Counting the first and last day, how many days are there from April 28, 2027 through May 17, 2027?<|eot|> <|assistant|> ```python from datetime import date first = date(2027, 4, 28) # datetime.date(2027, 4, 28) last = date(2027, 5, 17) # datetime.date(2027, 5, 17) days = (last - first).days + 1 # 2...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from April 28, 2027 through May 17, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2027, 4, 28) # datetime.date(2027, 4, 28)\nlast = date(2027, 5, 17) # datet...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0083954
The rules require 2/3 of 44 members (round up) to be present. How many is that? Script: ```python import math members = 44 quorum = math.ceil(members * 2 / 3) # 30 print(quorum) ``` What it prints: 30 30 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0083955
<|start|><|system|> Functions: [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}, {"name": "interpret...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
419
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0083956
<|start|><|system|> You have access to these functions: [{"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A hearing starts at 12:...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
251
{"gold": "2:50 PM", "printed": "2:50 PM", "notation": null}
nlprog_det-setting-0083957
A garage charges $4 an hour, never more than $20 a day. How much for 5 hours? The program: ```python rate = 4 hours = 5 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` # console output: 20 The charge is $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0083958
After an initial $2,000, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part? A few lines of Python do it: grant = 60000 up_front = 2000 installments = 12 each = (grant - up_front) / installments # 4833.333333333333 print(f"{each:.2f}") The program prints: 4833.33 Each i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "4833.33", "printed": "4833.33", "notation": null}
nlprog_det-setting-0083959
A $30,000 grant pays $2,000 up front and the rest in 6 equal installments. How large is each installment? Here is the program. ```python grant = 30000 up_front = 2000 installments = 6 each = (grant - up_front) / installments # 4666.666666666667 print(f"{each:.2f}") ``` stdout: 4666.67 $4,666.67 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "4666.67", "printed": "4666.67", "notation": null}
nlprog_det-setting-0083960
<|start|><|user|> Split $1,368 between Omar and Joelle in the ratio 3 to 5. What is Omar's share?<|eot|> <|assistant|> total = 1368 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) print(share_a) Python prints 513, as expected. Omar's share is $513.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $1,368 between Omar and Joelle in the ratio 3 to 5. What is Omar's share?" }, { "role": "assistant", "content": " total = 1368\n parts_a = 3\n parts_b = 5\n share_a = total * parts_a // (parts_a + parts_b)\n print(share_a)\nPython prints 513, as...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "513", "printed": "513", "notation": null}
nlprog_det-setting-0083961
Express 369 hours in days and hours. That is 15 days and 9 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
22
{"gold": "15 days and 9 hours", "printed": "15 days and 9 hours", "notation": null}
nlprog_det-setting-0083962
Pack A has 12 items for $8.42. Pack B has 18 items for $32.00. Which has the lower price per item? Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0083963
<|start|><|user|> At $19.73 an hour, what does 40 hours of work pay?<|eot|> <|assistant|> The pay is $789.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $19.73 an hour, what does 40 hours of work pay?" }, { "role": "assistant", "content": "The pay is $789.20." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "789.20", "printed": "789.20", "notation": null}
nlprog_det-setting-0083964
<|start|><|user|> How many of 249 votes make 75% (round up)?<|eot|> <|assistant|> ```python import math voters = 249 needed = math.ceil(voters * 75 / 100) # 187 print(needed) ``` When run, it prints 187, as expected. At least 187 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 249 votes make 75% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 249\nneeded = math.ceil(voters * 75 / 100) # 187\nprint(needed)\n```\nWhen run, it prints 187, as expected.\n\nAt least 187 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "187", "printed": "187", "notation": null}
nlprog_det-setting-0083965
<|start|><|user|> Each of Kofi's runs burns 200 calories. How many calories over 7 runs?<|eot|> <|assistant|> ```python per_session = 200 sessions = 7 total = per_session * sessions # 1400 print(total) ``` Run it and it prints: 1400 1400 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Kofi's runs burns 200 calories. How many calories over 7 runs?" }, { "role": "assistant", "content": "```python\nper_session = 200\nsessions = 7\ntotal = per_session * sessions # 1400\nprint(total)\n```\nRun it and it prints: 1400\n\n1400 calories in total....
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0083966
How many days are there from January 20, 2018 to February 14, 2018? In Python: from datetime import date first = date(2018, 1, 20) second = date(2018, 2, 14) print((second - first).days) # printed result: 25 It is 25 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0083967
<|start|><|user|> After an initial $6,000, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 60000 up_front = 6000 installments = 12 each = (grant - up_front) / installments # 4500.0 print(f"{each:.2f}") ``` What it prints — 4500.00 $4,500.00 per ins...
chat
[ { "role": "user", "content": "After an initial $6,000, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 60000\nup_front = 6000\ninstallments = 12\neach = (grant - up_front) / installments # 4500.0\nprint(f\"...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0083968
A 18-month warranty starts on July 5, 2026. On what date does it end? In Python: ```python from datetime import date start = date(2026, 7, 5) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` The script prints 202...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2028-01-05", "printed": "2028-01-05", "notation": null}
nlprog_det-setting-0083969
How long, in days, is it from August 4, 2023 until July 31, 2024? Python: ```python from datetime import date first = date(2023, 8, 4) # datetime.date(2023, 8, 4) second = date(2024, 7, 31) # datetime.date(2024, 7, 31) print((second - first).days) ``` The code prints 362. There are 362 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "362", "printed": "362", "notation": null}
nlprog_det-setting-0083971
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> A customer buys 2 badges at $10 each, 5 keyboards at $3 each and pays with $50. How much change is due?<|eot|> <|assistant|> ```python items = [(2, 10), (5, 3)] total = sum(q * p for q, p in items) paid = 50 change = paid - total print(chang...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "A customer buys 2 badges at $10 each, 5 keyboards at $3 each and pays with $50. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(2, 10), (5,...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0083972
From 2024 to 2046, how many years is that? Python, step by step: start_year = 2024 end_year = 2046 print(end_year - start_year) What it prints — 22 22 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
61
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0083973
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> A hall has 13 rows of 21 seats, and 34 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 13 per_row = 21 empty = 34 seated = rows * per_row - empty # 239 print(seated) ``` Running this gives 239. 239 seats ...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "A hall has 13 rows of 21 seats, and 34 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 13\nper_row = 21\nempty = 34\nseat...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "239", "printed": "239", "notation": null}
nlprog_det-setting-0083974
<|start|><|user|> 6 bike rides at 300 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 300 sessions = 6 total = per_session * sessions # 1800 print(total) ``` Result: 1800 That burns 1800 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6 bike rides at 300 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 300\nsessions = 6\ntotal = per_session * sessions # 1800\nprint(total)\n```\nResult:\n1800\n\nThat burns 1800 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0083975
How many days are there from January 22, 2019 to August 8, 2019? Programmatically: ```python from datetime import date first = date(2019, 1, 22) second = date(2019, 8, 8) print((second - first).days) ``` Result: 198 It is 198 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "198", "printed": "198", "notation": null}
nlprog_det-setting-0083976
Olga earns a 4% commission on $54,166 of sales. What is the commission? Let the code do the arithmetic: ```python sales = 54166 rate = 4 / 100 # 0.04 commission = sales * rate # 2166.64 print(f"{commission:.2f}") ``` The code prints 2166.64. The commission is $2,166.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "2166.64", "printed": "2166.64", "notation": null}
nlprog_det-setting-0083977
What is a 15% tip on a $110.32 bill? bill = 110.32 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 16.548 print(f"{tip:.2f}") # stdout: 16.55 The tip is $16.55.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "16.55", "printed": "16.55", "notation": null}
nlprog_det-setting-0083978
A storeroom has 1291 file boxes. The office uses 40 a day. How many are left after 5 days? The computation: ```python stock = 1291 per_day = 40 days = 5 left = stock - per_day * days # 1091 print(left) ``` The program outputs 1091. 1091 file boxes are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1091", "printed": "1091", "notation": null}
nlprog_det-setting-0083979
<|start|><|user|> Rent of $2,200 goes up 2%. What is the new rent?<|eot|> <|assistant|> ```python rent = 2200 increase = 2 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` The script prints 2244.00. The new rent is $2,244.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $2,200 goes up 2%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 2200\nincrease = 2 / 100\nnew_rent = rent * (1 + increase)\nprint(f\"{new_rent:.2f}\")\n```\nThe script prints 2244.00.\n\nThe new rent is $2,244.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2244.00", "printed": "2244.00", "notation": null}
nlprog_det-setting-0083980
Each of Marek's runs burns 400 calories. How many calories over 4 runs? ```python per_session = 400 sessions = 4 total = per_session * sessions # 1600 print(total) ``` stdout: 1600 1600 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "1600", "printed": "1600", "notation": null}
nlprog_det-setting-0083981
Goods bought on April 28, 2027 carry a 36-month warranty. When does it expire? Python makes this quick: ```python from datetime import date start = date(2027, 4, 28) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) `...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2030-04-28", "printed": "2030-04-28", "notation": null}
nlprog_det-setting-0083982
A 3% increase is applied to $1,800 monthly rent. What is the new amount? Written as code: rent = 1800 increase = 3 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") Running it prints 1854.00, as expected. The new rent is $1,854.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1854.00", "printed": "1854.00", "notation": null}
nlprog_det-setting-0083983
Grace and Zainab share $1,683 in the ratio 1:2. How much does Grace get? Computation in Python: ```python total = 1683 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 561 print(share_a) ``` Executing it gives: 561 Grace's share is $561.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "561", "printed": "561", "notation": null}
nlprog_det-setting-0083984
Divide 188 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain? Python: ```python total = 188 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Out: 20 each, 8 left over The answer: 20 each, 8 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "20 each, 8 left over", "printed": "20 each, 8 left over", "notation": null}
nlprog_det-setting-0083985
<|start|><|system|> Keep explanations short.<|eot|> <|user|> Prorate $1,500 of monthly rent for 13 days of a 31-day month.<|eot|> <|assistant|> ```python rent = 1500 days_in_month = 31 days_occupied = 13 prorated = rent * days_occupied / days_in_month # 629.0322580645161 print(f"{prorated:.2f}") ``` Execution prints: ...
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "Prorate $1,500 of monthly rent for 13 days of a 31-day month." }, { "role": "assistant", "content": "```python\nrent = 1500\ndays_in_month = 31\ndays_occupied = 13\nprorated = rent * days_occup...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "629.03", "printed": "629.03", "notation": null}
nlprog_det-setting-0083986
<|start|><|user|> At a 8% tax rate, what is the tax on $179.53?<|eot|> <|assistant|> ```python price = 179.53 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 14.362400000000001 print(f"{tax:.2f}") ``` # printed result: 14.36 The tax is $14.36.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 8% tax rate, what is the tax on $179.53?" }, { "role": "assistant", "content": "```python\nprice = 179.53\ntax_rate = 8 / 100 # 0.08\ntax = price * tax_rate # 14.362400000000001\nprint(f\"{tax:.2f}\")\n```\n# printed result: 14.36\n\nThe tax is $14.36." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "14.36", "printed": "14.36", "notation": null}
nlprog_det-setting-0083987
A library charges $0.25 per book per day late. What is the fine for 2 books that are 8 days late? Let's compute it with Python. ```python per_day = 0.25 days_late = 8 books = 2 fine = per_day * days_late * books # 4.0 print(f"{fine:.2f}") ``` Printed: 4.00 $4.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "4.00", "printed": "4.00", "notation": null}
nlprog_det-setting-0083988
Attendance was 20 out of 40. Express it as a percent. The Python version: present = 20 total = 40 percent = present / total * 100 # 50.0 print(round(percent, 1)) Result = 50.0 50.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0083989
<|start|><|user|> Rosa's scores were 101, 87, 57, 86, 67, 64 and 91. What is the average score?<|eot|> <|assistant|> ```python scores = [101, 87, 57, 86, 67, 64, 91] average = sum(scores) // len(scores) # 79 print(average) ``` (Output: 79) The average score is 79.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rosa's scores were 101, 87, 57, 86, 67, 64 and 91. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [101, 87, 57, 86, 67, 64, 91]\naverage = sum(scores) // len(scores) # 79\nprint(average)\n```\n(Output: 79)\n\nThe average score...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0083990
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> A shift runs from 8:59 AM to 10:43 AM. How long is it in minutes?<|eot|> <|assistant|> It is 104 minutes long.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "A shift runs from 8:59 AM to 10:43 AM. How long is it in minutes?" }, { "role": "assistant", "content": "It is 104 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0083991
A backpack costs $45. It is 30% off. What is the sale price? Python: ```python price = 45 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 31.499999999999996 print(f"{sale_price:.2f}") ``` Run it and it prints 31.50. The sale price is $31.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "31.50", "printed": "31.50", "notation": null}
nlprog_det-setting-0083992
<|start|><|user|> 1 books come back 14 days late, at $0.50 a day each. What is the fine?<|eot|> <|assistant|> per_day = 0.5 days_late = 14 books = 1 fine = per_day * days_late * books # 7.0 print(f"{fine:.2f}") Execution prints 7.00. The fine is $7.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "1 books come back 14 days late, at $0.50 a day each. What is the fine?" }, { "role": "assistant", "content": " per_day = 0.5\n days_late = 14\n books = 1\n fine = per_day * days_late * books # 7.0\n print(f\"{fine:.2f}\")\nExecution prints 7.00.\n\nT...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "7.00", "printed": "7.00", "notation": null}
nlprog_det-setting-0083993
<|start|><|user|> At $25.22 an hour, what does 38 hours of work pay?<|eot|> <|assistant|> ```python rate = 25.22 hours = 38 earnings = rate * hours # 958.3599999999999 print(f"{earnings:.2f}") ``` The printout reads 958.36. The pay is $958.36.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $25.22 an hour, what does 38 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 25.22\nhours = 38\nearnings = rate * hours # 958.3599999999999\nprint(f\"{earnings:.2f}\")\n```\nThe printout reads 958.36.\n\nThe pay is $958.36." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "958.36", "printed": "958.36", "notation": null}
nlprog_det-setting-0083994
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> After an initial $2,000, the remainder of a $60,000 grant is paid in 6 equal parts. What is each part?<|eot|> <|assistant|> grant = 60000 up_front = 2000 installments = 6 each = (grant - up_front) / installments # 9666.6...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "After an initial $2,000, the remainder of a $60,000 grant is paid in 6 equal parts. What is each part?" }, { "role": "assistant", "content": " grant = 60000\n up_fro...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "9666.67", "printed": "9666.67", "notation": null}
nlprog_det-setting-0083995
Yoko was born on December 20, 1987. How old is Yoko on September 19, 2021? Translated to Python: ```python from datetime import date born = date(1987, 12, 20) # datetime.date(1987, 12, 20) on = date(2021, 9, 19) # datetime.date(2021, 9, 19) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) #...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0083996
<|start|><|user|> Wen lends $1,000 at 2% simple interest per year for 2 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 1000 rate = 2 / 100 # 0.02 years = 2 interest = principal * rate * years # 40.0 print(f"{interest:.2f}") ``` That prints 40.00. It earns $40.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Wen lends $1,000 at 2% simple interest per year for 2 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 2 / 100 # 0.02\nyears = 2\ninterest = principal * rate * years # 40.0\nprint(f\"{interest:.2f}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0083998
<|start|><|user|> 4 walks at 250 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 250 sessions = 4 total = per_session * sessions # 1000 print(total) ``` (Console output: 1000) That burns 1000 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 walks at 250 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 250\nsessions = 4\ntotal = per_session * sessions # 1000\nprint(total)\n```\n(Console output: 1000)\n\nThat burns 1000 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0084000
<|start|><|user|> Water costs $18 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 20,000 gallons?<|eot|> <|assistant|> ```python base = 18 rate = 5.1 used = 20 free = 0 bill = base + rate * max(0, used - free) # 120.0 print(f"{bill:.2f}") ``` Result: 120.00 The bill is $120.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Water costs $18 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 20,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 18\nrate = 5.1\nused = 20\nfree = 0\nbill = base + rate * max(0, used - free) # 120.0\nprint(f\"{bill:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "120.00", "printed": "120.00", "notation": null}
nlprog_det-setting-0084001
<|start|><|user|> A hearing is set for December 2, 2001. What day of the week is that?<|eot|> <|assistant|> December 2, 2001 is a Sunday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing is set for December 2, 2001. What day of the week is that?" }, { "role": "assistant", "content": "December 2, 2001 is a Sunday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0084002
<|start|><|system|> Tools (call with JSON): [{"name": "calc", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "get_weather", "description": "Get the weather f...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"calc\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}, {\...
nlprog_det
setting
original
null
deterministic
[]
[]
305
{"gold": "48.15", "printed": "48.15", "notation": null}
nlprog_det-setting-0084003
Papers were served by mail on October 7, 2018. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? Computing it: ```python from datetime import date, timedelta served = date(2018, 10, 7) # datetime.date(2018, 10, 7) response_days = 14 mail_days = 3 due = served + timedelta(da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
178
{"gold": "2018-10-24", "printed": "2018-10-24", "notation": null}
nlprog_det-setting-0084004
If a 3-year limitations period starts on June 28, 2014, when does it end? Let the code do the arithmetic: ```python from datetime import date accrued = date(2014, 6, 28) # datetime.date(2014, 6, 28) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2017, 6, 28) print(expires.isoformat())...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2017-06-28", "printed": "2017-06-28", "notation": null}
nlprog_det-setting-0084005
<|start|><|user|> At an exchange rate of 1.12 USD per EUR, how many USD is 5,149 EUR?<|eot|> <|assistant|> ```python amount = 5149 rate = 1.12 converted = amount * rate # 5766.88 print(f"{converted:.2f}") ``` Python prints 5766.88, as expected. That is 5,766.88 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.12 USD per EUR, how many USD is 5,149 EUR?" }, { "role": "assistant", "content": "```python\namount = 5149\nrate = 1.12\nconverted = amount * rate # 5766.88\nprint(f\"{converted:.2f}\")\n```\nPython prints 5766.88, as expected.\n\nThat is 5...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "5766.88", "printed": "5766.88", "notation": null}
nlprog_det-setting-0084006
<|start|><|user|> Convert 4 h 51 min (the length of a hearing) to minutes.<|eot|> <|assistant|> ```python hours = 4 minutes = 51 total_minutes = hours * 60 + minutes # 291 print(total_minutes) ``` Printed = 291 That is 291 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 4 h 51 min (the length of a hearing) to minutes." }, { "role": "assistant", "content": "```python\nhours = 4\nminutes = 51\ntotal_minutes = hours * 60 + minutes # 291\nprint(total_minutes)\n```\nPrinted = 291\n\nThat is 291 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "291", "printed": "291", "notation": null}
nlprog_det-setting-0084007
3 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? Code: award = 30000 fee = award * 25 / 100 # 7500.0 remaining = award - fee # 22500.0 per_client = remaining / 3 # 7500.0 print(f"{per_client:.2f}") Execution result: 7500.00 Each share is...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0084008
<|start|><|user|> 4 runs at 350 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 350 sessions = 4 total = per_session * sessions # 1400 print(total) ``` This prints 1400, as expected. That burns 1400 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 runs at 350 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 350\nsessions = 4\ntotal = per_session * sessions # 1400\nprint(total)\n```\nThis prints 1400, as expected.\n\nThat burns 1400 calories." ...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0084009
<|start|><|user|> How many meters are in 58 kilometers?<|eot|> <|assistant|> ```python km = 58 meters = km * 1000 # 58000 print(round(meters)) ``` (Execution result: 58000) That is 58,000 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 58 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 58\nmeters = km * 1000 # 58000\nprint(round(meters))\n```\n(Execution result: 58000)\n\nThat is 58,000 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "58000", "printed": "58000", "notation": null}
nlprog_det-setting-0084010
<|start|><|user|> At an exchange rate of 1.12 EUR per USD, how many EUR is 6,098 USD?<|eot|> <|assistant|> ```python amount = 6098 rate = 1.12 converted = amount * rate # 6829.76 print(f"{converted:.2f}") ``` Out: 6829.76 That is 6,829.76 EUR.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.12 EUR per USD, how many EUR is 6,098 USD?" }, { "role": "assistant", "content": "```python\namount = 6098\nrate = 1.12\nconverted = amount * rate # 6829.76\nprint(f\"{converted:.2f}\")\n```\nOut: 6829.76\n\nThat is 6,829.76 EUR." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "6829.76", "printed": "6829.76", "notation": null}
nlprog_det-setting-0084012
<|start|><|user|> With 7 rows of 14 chairs and 38 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 7 per_row = 14 empty = 38 seated = rows * per_row - empty # 60 print(seated) ``` The program prints: 60 60 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 7 rows of 14 chairs and 38 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 7\nper_row = 14\nempty = 38\nseated = rows * per_row - empty # 60\nprint(seated)\n```\nThe program prints: 60\n\n60 seats are taken." ...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0084013
Someone works 40 hours at $16.40 per hour. What are the earnings? That earns $656.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "656.00", "printed": "656.00", "notation": null}
nlprog_det-setting-0084014
How many meters are in 77.3 kilometers? We write it as a program: ```python km = 77.3 meters = km * 1000 # 77300.0 print(round(meters)) ``` # stdout: 77300 77,300 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "77300", "printed": "77300", "notation": null}
nlprog_det-setting-0084015
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> A service costs $29 a month or $324 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> monthly = 29 yearly = 324 savings = monthly * 12 - yearly # 24 print(savings) Running it prints: 24 The annual...
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "A service costs $29 a month or $324 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": " monthly = 29\n yearly = 324\n savi...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0084016
3 books come back 18 days late, at $0.50 a day each. What is the fine? The computation: ```python per_day = 0.5 days_late = 18 books = 3 fine = per_day * days_late * books # 27.0 print(f"{fine:.2f}") ``` Execution prints 27.00. The fine is $27.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "27.00", "printed": "27.00", "notation": null}
nlprog_det-setting-0084017
Of a $2,000 budget, $200 has been spent. What percent is that? In code: ```python budget = 2000 spent = 200 percent = spent / budget * 100 # 10.0 print(round(percent, 1)) ``` The script prints 10.0, as expected. 10.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "10.0", "printed": "10.0", "notation": null}
nlprog_det-setting-0084018
<|start|><|user|> A customer buys 4 markers at $20 each, 5 scissors at $22 each, 4 rulers at $24 each, 6 staplers at $27 each and pays with $450. How much change is due?<|eot|> <|assistant|> ```python items = [(4, 20), (5, 22), (4, 24), (6, 27)] total = sum(q * p for q, p in items) # 448 paid = 450 change = paid - tot...
chat
[ { "role": "user", "content": "A customer buys 4 markers at $20 each, 5 scissors at $22 each, 4 rulers at $24 each, 6 staplers at $27 each and pays with $450. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(4, 20), (5, 22), (4, 24), (6, 27)]\ntotal = sum(q * p ...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0084019
<|start|><|user|> Scale 240 g of pasta from 4 servings to 12 servings.<|eot|> <|assistant|> grams = 240 serves = 4 needed_for = 12 scaled = grams * needed_for // serves # 720 print(scaled) When run, it prints: 720 720 grams of pasta are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 240 g of pasta from 4 servings to 12 servings." }, { "role": "assistant", "content": " grams = 240\n serves = 4\n needed_for = 12\n scaled = grams * needed_for // serves # 720\n print(scaled)\nWhen run, it prints: 720\n\n720 grams of pasta are ...
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "720", "printed": "720", "notation": null}
nlprog_det-setting-0084020
<|start|><|user|> What simple interest does $8,000 earn at 3% a year over 4 years?<|eot|> <|assistant|> ```python principal = 8000 rate = 3 / 100 # 0.03 years = 4 interest = principal * rate * years # 960.0 print(f"{interest:.2f}") ``` (Console output: 960.00) It earns $960.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $8,000 earn at 3% a year over 4 years?" }, { "role": "assistant", "content": "```python\nprincipal = 8000\nrate = 3 / 100 # 0.03\nyears = 4\ninterest = principal * rate * years # 960.0\nprint(f\"{interest:.2f}\")\n```\n(Console output: 96...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "960.00", "printed": "960.00", "notation": null}
nlprog_det-setting-0084021
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Py...
nlprog_det
setting
original
null
deterministic
[]
[]
274
{"gold": "2018-08-15", "printed": "2018-08-15", "notation": null}
nlprog_det-setting-0084022
<|start|><|system|> Tools you may use: [{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> 4 clients win $48,000. The lawye...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source...
nlprog_det
setting
original
null
deterministic
[]
[]
235
{"gold": "7200.00", "printed": "7200.00", "notation": null}
nlprog_det-setting-0084023
<|start|><|system|> Functions: {"name": "compute", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> Printing costs 10 cents a page. What ...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"compute\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}...
nlprog_det
setting
original
null
deterministic
[]
[]
226
{"gold": "16.90", "printed": "16.90", "notation": null}
nlprog_det-setting-0084024
At 30 miles per hour, how many minutes does a 120-mile trip take? Python, step by step: ```python distance = 120 speed = 30 minutes = distance / speed * 60 # 240.0 print(round(minutes)) ``` Execution prints 240. The trip takes 240 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0084025
A settlement of $36,000 is split equally among 8 parties. How much does each party receive? In code: ```python settlement = 36000 parties = 8 share = settlement // parties # 4500 print(share) ``` The run gives: 4500 Each party receives $4,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "4500", "printed": "4500", "notation": null}
nlprog_det-setting-0084026
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> Counting the first and last day, how many days are there from May 26, 2025 through June 16, 2025?<|eot|> <|assistant|> ```python from datetime import date first = date(2025, 5, 26) last = date(2025, 6, 16) days = (last - first).days + 1 print(days) ``` Program ...
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "Counting the first and last day, how many days are there from May 26, 2025 through June 16, 2025?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2025, 5...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0084027
A 60-day notice period begins on December 3, 2021. On what date does it end? Here's the code. ```python from datetime import date, timedelta start = date(2021, 12, 3) # datetime.date(2021, 12, 3) end = start + timedelta(days=60) # datetime.date(2022, 2, 1) print(end.isoformat()) ``` Run result = 2022-02-01 It ends ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2022-02-01", "printed": "2022-02-01", "notation": null}
nlprog_det-setting-0084028
Bilal's scores were 59, 91, 64, 95, 69, 69 and 85. What is the average score? As a program: ```python scores = [59, 91, 64, 95, 69, 69, 85] average = sum(scores) // len(scores) # 76 print(average) ``` (Output: 76) The average score is 76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0084029
Pack A has 6 items for $4.83. Pack B has 18 items for $28.58. Which has the lower price per item? Written as code: ```python pack_a = 4.83 / 6 pack_b = 28.58 / 18 cheaper = "A" if pack_a < pack_b else "B" print(cheaper) ``` Shell output: A A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0084030
<|start|><|user|> Prorate $1,200 of monthly rent for 10 days of a 31-day month.<|eot|> <|assistant|> The prorated rent is $387.10.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $1,200 of monthly rent for 10 days of a 31-day month." }, { "role": "assistant", "content": "The prorated rent is $387.10." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "387.10", "printed": "387.10", "notation": null}
nlprog_det-setting-0084031
<|start|><|user|> 589 files go into boxes of 12. How many boxes does that take?<|eot|> <|assistant|> 50 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "589 files go into boxes of 12. How many boxes does that take?" }, { "role": "assistant", "content": "50 boxes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0084032
<|start|><|user|> Equal monthly payments repay $3,600 plus 10% simple yearly interest over 24 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 3600 annual_rate = 10 / 100 # 0.1 months = 24 interest = principal * annual_rate * months / 12 # 720.0 payment = (principal + interest) / months # 1...
chat
[ { "role": "user", "content": "Equal monthly payments repay $3,600 plus 10% simple yearly interest over 24 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 3600\nannual_rate = 10 / 100 # 0.1\nmonths = 24\ninterest = principal * annual_rate * months / ...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "180.00", "printed": "180.00", "notation": null}
nlprog_det-setting-0084033
<|start|><|user|> Meals are $69 per day and lodging $110 per night. What is the allowance for 5 days and 4 nights?<|eot|> <|assistant|> ```python days = 5 meal_rate = 69 lodging_rate = 110 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 785 print(total) ``` # output: 785 That comes to $785.<...
chat
[ { "role": "user", "content": "Meals are $69 per day and lodging $110 per night. What is the allowance for 5 days and 4 nights?" }, { "role": "assistant", "content": "```python\ndays = 5\nmeal_rate = 69\nlodging_rate = 110\nnights = days - 1 # 4\ntotal = days * meal_rate + nights * lodging_rate ...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "785", "printed": "785", "notation": null}
nlprog_det-setting-0084034
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 5 months?<|eot|> <|assistant|> ```python balance = 1000 monthly_rate = 1 / 100 # 0.01 months = 5 interest = balance * monthly_rate * months # 50.0 print(f"...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 5 months?" }, { "role": "assistant", "content": "```python\nbalance = 1000\nmonthly_rate = ...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "50.00", "printed": "50.00", "notation": null}
nlprog_det-setting-0084035
At $0.62 per mile, what is the reimbursement for 365 miles? A few lines of Python do it: miles = 365 rate = 0.62 reimbursement = miles * rate # 226.3 print(f"{reimbursement:.2f}") What it prints — 226.30 Yara is owed $226.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "226.30", "printed": "226.30", "notation": null}
nlprog_det-setting-0084036
<|start|><|user|> A 612-page report must be reviewed in 18 days. How many pages a day is that, evenly?<|eot|> <|assistant|> pages = 612 days = 18 per_day = pages // days # 34 print(per_day) stdout = 34 34 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 612-page report must be reviewed in 18 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": " pages = 612\n days = 18\n per_day = pages // days # 34\n print(per_day)\nstdout = 34\n\n34 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0084037
Attendance was 31 out of 50. Express it as a percent. A Python solution: ```python present = 31 total = 50 percent = present / total * 100 # 62.0 print(round(percent, 1)) ``` Run result: 62.0 Attendance was 62.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "62.0", "printed": "62.0", "notation": null}
nlprog_det-setting-0084038
Water costs $12 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 9,000 gallons? Script: ```python base = 12 rate = 4.2 used = 9 free = 0 bill = base + rate * max(0, used - free) # 49.800000000000004 print(f"{bill:.2f}") ``` Python prints 49.80. The bill is $49.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "49.80", "printed": "49.80", "notation": null}
nlprog_det-setting-0084039
A 204-page report must be reviewed in 12 days. How many pages a day is that, evenly? Python version: ```python pages = 204 days = 12 per_day = pages // days # 17 print(per_day) ``` Shell output: 17 17 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0084040
Convert 4,154 USD to EUR at 1 USD = 1.31 EUR. The computation: amount = 4154 rate = 1.31 converted = amount * rate # 5441.74 print(f"{converted:.2f}") It prints 5441.74, as expected. That is 5,441.74 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "5441.74", "printed": "5441.74", "notation": null}
nlprog_det-setting-0084041
<|start|><|user|> A claim accrued on May 15, 2014. The limitations period is 5 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2014, 5, 15) # datetime.date(2014, 5, 15) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 5, 1...
chat
[ { "role": "user", "content": "A claim accrued on May 15, 2014. The limitations period is 5 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2014, 5, 15) # datetime.date(2014, 5, 15)\nyears = 5\nexpires = accrued.repl...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2019-05-15", "printed": "2019-05-15", "notation": null}
nlprog_det-setting-0084042
<|start|><|user|> Each of Joelle's runs burns 300 calories. How many calories over 7 runs?<|eot|> <|assistant|> ```python per_session = 300 sessions = 7 total = per_session * sessions print(total) ``` Executing it gives 2100, as expected. That burns 2100 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Joelle's runs burns 300 calories. How many calories over 7 runs?" }, { "role": "assistant", "content": "```python\nper_session = 300\nsessions = 7\ntotal = per_session * sessions\nprint(total)\n```\nExecuting it gives 2100, as expected.\n\nThat burns 2100 ca...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0084043
75 of 80 members attended. What percent attended? ```python present = 75 total = 80 percent = present / total * 100 # 93.75 print(round(percent, 1)) ``` Result = 93.8 Attendance was 93.8%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "93.8", "printed": "93.8", "notation": null}
nlprog_det-setting-0084044
After an initial $2,000, the remainder of a $24,000 grant is paid in 6 equal parts. What is each part? The program: ```python grant = 24000 up_front = 2000 installments = 6 each = (grant - up_front) / installments # 3666.6666666666665 print(f"{each:.2f}") ``` Result = 3666.67 $3,666.67 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "3666.67", "printed": "3666.67", "notation": null}
nlprog_det-setting-0084045
Straight-line depreciation: cost $30,000, salvage $6,000, 10 years. How much per year? Here is the program. ```python cost = 30000 salvage = 6000 years = 10 per_year = (cost - salvage) / years # 2400.0 print(f"{per_year:.2f}") ``` Interpreter output — 2400.00 $2,400.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0084046
Find the mean of these test scores: 61, 100, 65, 67, 72 and 91. The program: ```python scores = [61, 100, 65, 67, 72, 91] average = sum(scores) // len(scores) # 76 print(average) ``` The code prints 76. The mean is 76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0084048
<|start|><|user|> 39 envelopes cost $4 apiece. With 6% tax added, what is the total?<|eot|> <|assistant|> The total with tax is $165.36.<|eot|> <|end|>
chat
[ { "role": "user", "content": "39 envelopes cost $4 apiece. With 6% tax added, what is the total?" }, { "role": "assistant", "content": "The total with tax is $165.36." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "165.36", "printed": "165.36", "notation": null}
nlprog_det-setting-0084050
A meal costs $244.43. How much is a 18% tip? Let the code do the arithmetic: ```python bill = 244.43 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 43.9974 print(f"{tip:.2f}") ``` The interpreter prints 44.00. Leave $44.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "44.00", "printed": "44.00", "notation": null}
nlprog_det-setting-0084051
<|start|><|user|> How many minutes pass from 7:57 AM to 2:27 PM on the same day?<|eot|> <|assistant|> ```python start = 7 * 60 + 57 # 477 end = 14 * 60 + 27 # 867 print(end - start) ``` Python prints 390. 390 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 7:57 AM to 2:27 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 7 * 60 + 57 # 477\nend = 14 * 60 + 27 # 867\nprint(end - start)\n```\nPython prints 390.\n\n390 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "390", "printed": "390", "notation": null}
nlprog_det-setting-0084053
Rent of $2,200 goes up 4%. What is the new rent? It rises to $2,288.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "2288.00", "printed": "2288.00", "notation": null}
nlprog_det-setting-0084054
3 swims at 350 calories each burn how many calories in total? ```python per_session = 350 sessions = 3 total = per_session * sessions # 1050 print(total) ``` Program output — 1050 1050 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0084055
Starting from $5,000, the team spends $1,811, $3,965. What remains? As Python: ```python budget = 5000 expenses = [1811, 3965] left = budget - sum(expenses) # -776 print(left) ``` The code prints -776. The remaining budget is -$776.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "-776", "printed": "-776", "notation": null}