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-0047220
A hall has 24 rows of 14 seats, and 8 seats are empty. How many people are seated? Translated to Python: ```python rows = 24 per_row = 14 empty = 8 seated = rows * per_row - empty # 328 print(seated) ``` The program outputs: 328 328 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "328", "printed": "328", "notation": null}
nlprog_det-setting-0047221
Divide 287 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain? Let the code do the arithmetic: ```python total = 287 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` This prints 31 each, 8 left over. The an...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "31 each, 8 left over", "printed": "31 each, 8 left over", "notation": null}
nlprog_det-setting-0047222
<|start|><|system|> You are a data assistant.<|eot|> <|user|> How much sales tax is charged on a $46.91 purchase at 8%?<|eot|> <|assistant|> ```python price = 46.91 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 3.7527999999999997 print(f"{tax:.2f}") ``` (Result: 3.75) The tax is $3.75.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "How much sales tax is charged on a $46.91 purchase at 8%?" }, { "role": "assistant", "content": "```python\nprice = 46.91\ntax_rate = 8 / 100 # 0.08\ntax = price * tax_rate # 3.7527999999999...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "3.75", "printed": "3.75", "notation": null}
nlprog_det-setting-0047223
A 39 lb package ships at $8 base plus $2.50/lb. What is the charge? The charge is $105.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "105.50", "printed": "105.50", "notation": null}
nlprog_det-setting-0047224
A garage charges $4 an hour, never more than $20 a day. How much for 1 hours? Computation in Python: ```python rate = 4 hours = 1 daily_max = 20 cost = min(rate * hours, daily_max) # 4 print(cost) ``` Run it and it prints 4. Parking costs $4.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0047225
Ana lends $8,000 at 5% simple interest per year for 6 years. How much interest is earned? principal = 8000 rate = 5 / 100 # 0.05 years = 6 interest = principal * rate * years # 2400.0 print(f"{interest:.2f}") Output of the run: 2400.00 The interest is $2,400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0047226
An office budget of $20,000 has expenses of $2,502, $2,408. How much of the budget is left? Python, step by step: ```python budget = 20000 expenses = [2502, 2408] left = budget - sum(expenses) # 15090 print(left) ``` On running, it outputs 15090. $15,090 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "15090", "printed": "15090", "notation": null}
nlprog_det-setting-0047227
The landlord deducts $45 from a $1,500 deposit. What is returned to the tenant? Written as code: ```python deposit = 1500 deductions = [45] refund = deposit - sum(deductions) # 1455 print(refund) ``` That prints 1455. The refund is $1,455.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1455", "printed": "1455", "notation": null}
nlprog_det-setting-0047228
13 chairs cost $3 apiece. With 8% tax added, what is the total? Python, step by step: ```python quantity = 13 unit_price = 3 subtotal = quantity * unit_price total = subtotal * (1 + 8 / 100) print(f"{total:.2f}") ``` The code prints: 42.12 The total with tax is $42.12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "42.12", "printed": "42.12", "notation": null}
nlprog_det-setting-0047229
Tobias was born on September 6, 1953. How old is Tobias on March 26, 2024? Translated to Python: ```python from datetime import date born = date(1953, 9, 6) # datetime.date(1953, 9, 6) on = date(2024, 3, 26) # datetime.date(2024, 3, 26) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 70 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
161
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0047230
Pack A has 10 items for $7.60. Pack B has 15 items for $16.50. Which has the lower price per item? Written as code: ```python pack_a = 7.6 / 10 # 0.76 pack_b = 16.5 / 15 # 1.1 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Out = A Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0047231
What is a 22% tip on a $137.08 bill? Python code: ```python bill = 137.08 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 30.157600000000002 print(f"{tip:.2f}") ``` # printed: 30.16 The tip is $30.16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "30.16", "printed": "30.16", "notation": null}
nlprog_det-setting-0047232
<|start|><|user|> Which is cheaper per unit: 12 for $7.99 (A) or 15 for $31.11 (B)?<|eot|> <|assistant|> A has the lower unit price.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 12 for $7.99 (A) or 15 for $31.11 (B)?" }, { "role": "assistant", "content": "A has the lower unit price." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0047233
Straight-line depreciation: cost $12,000, salvage $3,000, 3 years. How much per year? Let the code do the arithmetic: ```python cost = 12000 salvage = 3000 years = 3 per_year = (cost - salvage) / years # 3000.0 print(f"{per_year:.2f}") ``` Running it prints 3000.00, as expected. Depreciation is $3,000.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0047234
A car gets 20 miles per gallon. Gas is $4.12 a gallon. What does fuel cost for a 300-mile trip? Fuel costs $61.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "61.80", "printed": "61.80", "notation": null}
nlprog_det-setting-0047235
Convert 1 h 29 min (the length of a meeting) to minutes. Python: ```python hours = 1 minutes = 29 total_minutes = hours * 60 + minutes # 89 print(total_minutes) ``` Executing it gives 89. The meeting lasted 89 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "89", "printed": "89", "notation": null}
nlprog_det-setting-0047236
<|start|><|user|> At 40 miles per hour, how many minutes does a 270-mile trip take?<|eot|> <|assistant|> ```python distance = 270 speed = 40 minutes = distance / speed * 60 # 405.0 print(round(minutes)) ``` That prints 405. 405 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 40 miles per hour, how many minutes does a 270-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 270\nspeed = 40\nminutes = distance / speed * 60 # 405.0\nprint(round(minutes))\n```\nThat prints 405.\n\n405 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "405", "printed": "405", "notation": null}
nlprog_det-setting-0047237
A 12 × 3 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? 9 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0047238
Find the mean of these test scores: 57, 99, 52, 76, 95, 58 and 74. Set it up in Python: ```python scores = [57, 99, 52, 76, 95, 58, 74] average = sum(scores) // len(scores) # 73 print(average) ``` # printed: 73 The mean is 73.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0047239
At 1% a month (simple), what interest builds on $4,000 over 3 months? Let the code do the arithmetic: ```python balance = 4000 monthly_rate = 1 / 100 # 0.01 months = 3 interest = balance * monthly_rate * months # 120.0 print(f"{interest:.2f}") ``` Output — 120.00 $120.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "120.00", "printed": "120.00", "notation": null}
nlprog_det-setting-0047240
Shipping costs $8 plus $1.20 per pound. What does a 32-pound parcel cost to ship? Here is the program. ```python base = 8 per_pound = 1.2 weight = 32 cost = base + per_pound * weight # 46.4 print(f"{cost:.2f}") ``` stdout: 46.40 The charge is $46.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "46.40", "printed": "46.40", "notation": null}
nlprog_det-setting-0047241
How many meters are in 54.1 kilometers? Let's compute it with Python. ```python km = 54.1 meters = km * 1000 # 54100.0 print(round(meters)) ``` Interpreter output: 54100 54,100 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "54100", "printed": "54100", "notation": null}
nlprog_det-setting-0047242
A shift starts at 10:40 AM and lasts 105 minutes. When does it end? A few lines of Python do it: ```python start = 10 * 60 + 40 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Out — 12:25 PM The shift finishes at 12:25 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "12:25 PM", "printed": "12:25 PM", "notation": null}
nlprog_det-setting-0047243
Meals are $79 per day and lodging $140 per night. What is the allowance for 5 days and 4 nights? The Python version: ```python days = 5 meal_rate = 79 lodging_rate = 140 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 955 print(total) ``` Run result — 955 That comes to $955.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "955", "printed": "955", "notation": null}
nlprog_det-setting-0047244
Monthly rent is $1,500. A tenant moves in with 24 days left in a 31-day month. What is the prorated rent? Translated to Python: ```python rent = 1500 days_in_month = 31 days_occupied = 24 prorated = rent * days_occupied / days_in_month # 1161.2903225806451 print(f"{prorated:.2f}") ``` The script prints: 1161.29 The ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "1161.29", "printed": "1161.29", "notation": null}
nlprog_det-setting-0047245
261 volunteers are split into 5 equal teams. How many are on each team, and how many are left over? Program: ```python total = 261 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` # printed: 52 each, 1 left over 52 each, 1 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "52 each, 1 left over", "printed": "52 each, 1 left over", "notation": null}
nlprog_det-setting-0047246
<|start|><|user|> What is 30 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 30 fahrenheit = celsius * 9 / 5 + 32 # 86.0 print(round(fahrenheit)) ``` Running this gives: 86 It equals 86 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 30 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 30\nfahrenheit = celsius * 9 / 5 + 32 # 86.0\nprint(round(fahrenheit))\n```\nRunning this gives: 86\n\nIt equals 86 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0047247
<|start|><|user|> Convert 8,369 USD to CAD at 1 USD = 1.35 CAD.<|eot|> <|assistant|> ```python amount = 8369 rate = 1.35 converted = amount * rate # 11298.150000000001 print(f"{converted:.2f}") ``` Out — 11298.15 That is 11,298.15 CAD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 8,369 USD to CAD at 1 USD = 1.35 CAD." }, { "role": "assistant", "content": "```python\namount = 8369\nrate = 1.35\nconverted = amount * rate # 11298.150000000001\nprint(f\"{converted:.2f}\")\n```\nOut — 11298.15\n\nThat is 11,298.15 CAD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "11298.15", "printed": "11298.15", "notation": null}
nlprog_det-setting-0047248
<|start|><|user|> A deposition lasted 2 hours and 17 minutes. How many minutes is that?<|eot|> <|assistant|> hours = 2 minutes = 17 total_minutes = hours * 60 + minutes # 137 print(total_minutes) Python prints: 137 The deposition lasted 137 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A deposition lasted 2 hours and 17 minutes. How many minutes is that?" }, { "role": "assistant", "content": " hours = 2\n minutes = 17\n total_minutes = hours * 60 + minutes # 137\n print(total_minutes)\nPython prints: 137\n\nThe deposition lasted 137 m...
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "137", "printed": "137", "notation": null}
nlprog_det-setting-0047249
<|start|><|system|> You have access to these functions: [{"name": "sandbox_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "translate", "descriptio...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"sandbox_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
304
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0047250
<|start|><|user|> A garage charges $2 an hour, never more than $18 a day. How much for 12 hours?<|eot|> <|assistant|> ```python rate = 2 hours = 12 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` Running it prints 18. Parking costs $18.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $2 an hour, never more than $18 a day. How much for 12 hours?" }, { "role": "assistant", "content": "```python\nrate = 2\nhours = 12\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\nRunning it prints 18.\n\nParking costs...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0047251
An unpaid balance of $12,000 accrues 2% simple interest per month. How much interest accrues in 3 months? Computation in Python: ```python balance = 12000 monthly_rate = 2 / 100 # 0.02 months = 3 interest = balance * monthly_rate * months # 720.0 print(f"{interest:.2f}") ``` Execution result: 720.00 $720.00 accrues...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0047252
Counting the first and last day, how many days are there from April 9, 2025 through April 29, 2025? As Python: ```python from datetime import date first = date(2025, 4, 9) # datetime.date(2025, 4, 9) last = date(2025, 4, 29) # datetime.date(2025, 4, 29) days = (last - first).days + 1 # 21 print(days) ``` Result = 2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0047253
<|start|><|user|> Equal monthly payments repay $9,000 plus 6% simple yearly interest over 36 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 9000 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 1620.0 payment = (principal + interest) / months # 2...
chat
[ { "role": "user", "content": "Equal monthly payments repay $9,000 plus 6% simple yearly interest over 36 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 9000\nannual_rate = 6 / 100 # 0.06\nmonths = 36\ninterest = principal * annual_rate * months / 1...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "295.00", "printed": "295.00", "notation": null}
nlprog_det-setting-0047254
Convert 3 h 17 min (the length of a deposition) to minutes. Written as code: ```python hours = 3 minutes = 17 total_minutes = hours * 60 + minutes # 197 print(total_minutes) ``` This prints 197. The deposition lasted 197 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "197", "printed": "197", "notation": null}
nlprog_det-setting-0047255
<|start|><|user|> At 60 miles per hour, how many minutes does a 345-mile trip take?<|eot|> <|assistant|> The trip takes 345 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 60 miles per hour, how many minutes does a 345-mile trip take?" }, { "role": "assistant", "content": "The trip takes 345 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "345", "printed": "345", "notation": null}
nlprog_det-setting-0047256
What percentage of $4,000 is $800? The computation: ```python budget = 4000 spent = 800 percent = spent / budget * 100 # 20.0 print(round(percent, 1)) ``` This prints 20.0. That is 20.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0047257
Counting the first and last day, how many days are there from October 25, 2027 through November 10, 2027? Python version: ```python from datetime import date first = date(2027, 10, 25) # datetime.date(2027, 10, 25) last = date(2027, 11, 10) # datetime.date(2027, 11, 10) days = (last - first).days + 1 # 17 print(day...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0047258
<|start|><|user|> What is the total rent on a 24-month lease at $2,875 a month?<|eot|> <|assistant|> ```python monthly_rent = 2875 months = 24 total = monthly_rent * months # 69000 print(total) ``` Run output: 69000 In total, $69,000 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 24-month lease at $2,875 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 2875\nmonths = 24\ntotal = monthly_rent * months # 69000\nprint(total)\n```\nRun output: 69000\n\nIn total, $69,000 is paid." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "69000", "printed": "69000", "notation": null}
nlprog_det-setting-0047259
Starting with 870 rulers and using 34 per day, how many remain after 6 days? Let's compute it with Python. ```python stock = 870 per_day = 34 days = 6 left = stock - per_day * days # 666 print(left) ``` The run gives 666, as expected. 666 rulers are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "666", "printed": "666", "notation": null}
nlprog_det-setting-0047260
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "math_engine", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippe...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"math_engine\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"descriptio...
nlprog_det
setting
original
null
deterministic
[]
[]
281
{"gold": "2022-02-18", "printed": "2022-02-18", "notation": null}
nlprog_det-setting-0047261
60 of 80 members attended. What percent attended? ```python present = 60 total = 80 percent = present / total * 100 # 75.0 print(round(percent, 1)) ``` Execution prints: 75.0 Attendance was 75.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "75.0", "printed": "75.0", "notation": null}
nlprog_det-setting-0047262
Hana's scores were 58, 58, 70, 56, 100, 66 and 89. What is the average score? ```python scores = [58, 58, 70, 56, 100, 66, 89] average = sum(scores) // len(scores) print(average) ``` It prints 71, as expected. The average score is 71.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0047263
Counting the first and last day, how many days are there from March 17, 2021 through March 30, 2021? That is 14 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0047264
Each of Cyrus's swims burns 150 calories. How many calories over 6 swims? Translated to Python: ```python per_session = 150 sessions = 6 total = per_session * sessions # 900 print(total) ``` # run result: 900 900 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0047265
Counting only Monday through Friday, how many business days are there after February 22, 2021 through March 24, 2021? Python code: ```python from datetime import date, timedelta start = date(2021, 2, 22) end = date(2021, 3, 24) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).wee...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0047267
A recipe for 8 people uses 300 grams of lentils. How many grams are needed for 2 people? Program: grams = 300 serves = 8 needed_for = 2 scaled = grams * needed_for // serves # 75 print(scaled) (Out: 75) Use 75 g of lentils.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0047268
Counting only Monday through Friday, how many business days are there after January 9, 2021 through January 25, 2021? 11 weekdays.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0047269
Prorate $1,500 of monthly rent for 15 days of a 31-day month. As Python: ```python rent = 1500 days_in_month = 31 days_occupied = 15 prorated = rent * days_occupied / days_in_month # 725.8064516129032 print(f"{prorated:.2f}") ``` The printout reads 725.81. The prorated rent is $725.81.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "725.81", "printed": "725.81", "notation": null}
nlprog_det-setting-0047270
How many meters are in 35.6 kilometers? As Python: ```python km = 35.6 meters = km * 1000 # 35600.0 print(round(meters)) ``` Result: 35600 That is 35,600 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "35600", "printed": "35600", "notation": null}
nlprog_det-setting-0047272
A customer buys 1 staplers at $4 each, 5 water bottles at $17 each and pays with $100. How much change is due? items = [(1, 4), (5, 17)] total = sum(q * p for q, p in items) paid = 100 change = paid - total print(change) (Out: 11) The change is $11.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0047273
Walls total 636 sq ft and each can covers 300 sq ft. How many cans should be bought? The computation: ```python import math area = 636 coverage = 300 cans = math.ceil(area / coverage) # 3 print(cans) ``` # result: 3 Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0047274
One can of paint covers 400 square feet. How many cans are needed for 158 square feet of wall? As a program: ```python import math area = 158 coverage = 400 cans = math.ceil(area / coverage) print(cans) ``` It outputs 1. 1 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0047275
What is the total rent on a 18-month lease at $850 a month? Script: ```python monthly_rent = 850 months = 18 total = monthly_rent * months print(total) ``` Printed result — 15300 In total, $15,300 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "15300", "printed": "15300", "notation": null}
nlprog_det-setting-0047276
How many 2-foot square tiles cover a 9 ft by 7 ft floor (round up)? Python makes this quick: ```python import math length = 9 width = 7 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 16 print(tiles) ``` The run gives 16, as expected. It takes 16 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0047277
<|start|><|system|> Tool definitions: [{"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": "py...
chat
[ { "role": "system", "content": "Tool definitions:\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\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
326
{"gold": "811.20", "printed": "811.20", "notation": null}
nlprog_det-setting-0047278
Walls total 1143 sq ft and each can covers 300 sq ft. How many cans should be bought? We write it as a program: ```python import math area = 1143 coverage = 300 cans = math.ceil(area / coverage) # 4 print(cans) ``` Out: 4 Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0047279
From 2009 to 2012, how many years is that? In code: start_year = 2009 end_year = 2012 print(end_year - start_year) # printed: 3 That is 3 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0047280
<|start|><|user|> 8 boxes hold 10 rulers each. After 20 are handed out, how many are left?<|eot|> <|assistant|> 60 rulers are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "8 boxes hold 10 rulers each. After 20 are handed out, how many are left?" }, { "role": "assistant", "content": "60 rulers are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0047281
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> A pack of 4 binders sells for $88. What does each cost?<|eot|> <|assistant|> ```python total = 88 count = 4 per_item = total // count # 22 print(per_item) ``` The script prints 22. Each one costs $22.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "A pack of 4 binders sells for $88. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 88\ncount = 4\nper_item = total // count # 22\nprint(per_item)\n...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0047282
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> A court charges $5 per request plus $0.25 per page after the first 10 pages. What does a 42-page copy cost?<|eot|> <|assistant|> ```python pages = 42 base = 5 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 13.0 print(f"{c...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "A court charges $5 per request plus $0.25 per page after the first 10 pages. What does a 42-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 42\nbase = 5\nper_page = 0.25...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "13.00", "printed": "13.00", "notation": null}
nlprog_det-setting-0047283
<|start|><|system|> Tools you may use: [{"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> 118 volunteers are split into 9 e...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "13 each, 1 left over", "printed": "13 each, 1 left over", "notation": null}
nlprog_det-setting-0047284
<|start|><|user|> Notice was given on November 24, 2020. The notice period is 60 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2020, 11, 24) # datetime.date(2020, 11, 24) end = start + timedelta(days=60) # datetime.date(2021, 1, 23) print(end.isoformat())...
chat
[ { "role": "user", "content": "Notice was given on November 24, 2020. The notice period is 60 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2020, 11, 24) # datetime.date(2020, 11, 24)\nend = start + timedelta(days...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2021-01-23", "printed": "2021-01-23", "notation": null}
nlprog_det-setting-0047285
A court charges $5 per request plus $0.25 per page after the first 10 pages. What does a 5-page copy cost? ```python pages = 5 base = 5 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 5.0 print(f"{cost:.2f}") ``` stdout: 5.00 The copy costs $5.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "5.00", "printed": "5.00", "notation": null}
nlprog_det-setting-0047286
4 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? A short script: ```python award = 96000 fee = award * 25 / 100 # 24000.0 remaining = award - fee # 72000.0 per_client = remaining / 4 # 18000.0 print(f"{per_client:.2f}") ``` Console output: 18000.00 Each cli...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0047288
With $4,000 in costs and $8,000 in revenue, what percent of revenue is profit? Round to one decimal. Python makes this quick: ```python revenue = 8000 costs = 4000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 50.0 print(round(margin, 1)) ``` Shell output: 50.0 The margin is 50.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0047289
<|start|><|user|> A filing cabinet costs $45. It is 25% off. What is the sale price?<|eot|> <|assistant|> ```python price = 45 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 33.75 print(f"{sale_price:.2f}") ``` The printout reads: 33.75 The sale price is $33.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A filing cabinet costs $45. It is 25% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 45\ndiscount = 25 / 100 # 0.25\nsale_price = price * (1 - discount) # 33.75\nprint(f\"{sale_price:.2f}\")\n```\nThe printout reads: 33.75\n...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "33.75", "printed": "33.75", "notation": null}
nlprog_det-setting-0047290
Someone born January 15, 1981 turns how old by May 15, 2020? Give the age in whole years. Translated to Python: ```python from datetime import date born = date(1981, 1, 15) # datetime.date(1981, 1, 15) on = date(2020, 5, 15) # datetime.date(2020, 5, 15) age = on.year - born.year - ((on.month, on.day) < (born.month, ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0047291
Copies cost $15 plus $0.25 for each page beyond 20. How much for 72 pages? A short script: pages = 72 base = 15 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 28.0 print(f"{cost:.2f}") This prints 28.00, as expected. The copy costs $28.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "28.00", "printed": "28.00", "notation": null}
nlprog_det-setting-0047292
Find the mean of these test scores: 91, 75, 73, 88, 62 and 91. A short script: ```python scores = [91, 75, 73, 88, 62, 91] average = sum(scores) // len(scores) # 80 print(average) ``` # out: 80 The mean is 80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0047293
Split $2,648 between Sami and Mei in the ratio 3 to 5. What is Sami's share? Python does the arithmetic: ```python total = 2648 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 993 print(share_a) ``` Out: 993 Sami's share is $993.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "993", "printed": "993", "notation": null}
nlprog_det-setting-0047294
<|start|><|user|> Fixed costs are $2,500. Each unit sells for $30 and costs $20 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 2500 price = 30 variable = 20 units = math.ceil(fixed / (price - variable)) # 250 print(units) ``` Execution prints 250, as expected. B...
chat
[ { "role": "user", "content": "Fixed costs are $2,500. Each unit sells for $30 and costs $20 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 2500\nprice = 30\nvariable = 20\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0047295
A water bill is $20 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 3 thousand gallons? The bill is $35.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "35.30", "printed": "35.30", "notation": null}
nlprog_det-setting-0047296
<|start|><|user|> After an initial $0, the remainder of a $24,000 grant is paid in 6 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 24000 up_front = 0 installments = 6 each = (grant - up_front) / installments # 4000.0 print(f"{each:.2f}") ``` The code prints 4000.00. $4,000.00 per installment....
chat
[ { "role": "user", "content": "After an initial $0, the remainder of a $24,000 grant is paid in 6 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 24000\nup_front = 0\ninstallments = 6\neach = (grant - up_front) / installments # 4000.0\nprint(f\"{each:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0047297
<|start|><|user|> A lease runs for 24 months at $2,100 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 2100 months = 24 total = monthly_rent * months # 50400 print(total) ``` stdout = 50400 The rent over the term is $50,400.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 24 months at $2,100 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 2100\nmonths = 24\ntotal = monthly_rent * months # 50400\nprint(total)\n```\nstdout = 50400\n\nThe rent over ...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "50400", "printed": "50400", "notation": null}
nlprog_det-setting-0047299
<|start|><|user|> What does $2,000 grow to in 3 years at 2% annual compounding?<|eot|> <|assistant|> ```python principal = 2000 rate = 2 / 100 # 0.02 years = 3 value = principal * (1 + rate) ** years # 2122.416 print(f"{value:.2f}") ``` (Output: 2122.42) The balance is $2,122.42.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $2,000 grow to in 3 years at 2% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 2000\nrate = 2 / 100 # 0.02\nyears = 3\nvalue = principal * (1 + rate) ** years # 2122.416\nprint(f\"{value:.2f}\")\n```\n(Output: 2122.42)\...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "2122.42", "printed": "2122.42", "notation": null}
nlprog_det-setting-0047300
Fines run at $250 per day up to a maximum of $5,000. How much after 26 days? Translated to Python: per_day = 250 days = 26 cap = 5000 fine = min(per_day * days, cap) # 5000 print(fine) # program output: 5000 The fine is $5,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0047301
A garage charges $5 an hour, never more than $18 a day. How much for 11 hours? Coded up: ```python rate = 5 hours = 11 daily_max = 18 cost = min(rate * hours, daily_max) print(cost) ``` # result: 18 The charge is $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0047302
What simple interest does $1,000 earn at 2% a year over 5 years? In code: principal = 1000 rate = 2 / 100 # 0.02 years = 5 interest = principal * rate * years # 100.0 print(f"{interest:.2f}") Run result = 100.00 The interest is $100.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "100.00", "printed": "100.00", "notation": null}
nlprog_det-setting-0047303
<|start|><|user|> A party has 28 days to respond to a motion served on October 10, 2022, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2022, 10, 10) # datetime.date(2022, 10, 10) response_days = 28 mail_days = ...
chat
[ { "role": "user", "content": "A party has 28 days to respond to a motion served on October 10, 2022, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2022, 10, 10) # dat...
nlprog_det
setting
original
null
deterministic
[]
[]
176
{"gold": "2022-11-10", "printed": "2022-11-10", "notation": null}
nlprog_det-setting-0047304
<|start|><|user|> Lucia buys 5 boxes of 10 rulers each and gives away 19 rulers. How many rulers are left?<|eot|> <|assistant|> ```python boxes = 5 per_box = 10 given_away = 19 left = boxes * per_box - given_away # 31 print(left) ``` Console: 31 That leaves 31 rulers.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Lucia buys 5 boxes of 10 rulers each and gives away 19 rulers. How many rulers are left?" }, { "role": "assistant", "content": "```python\nboxes = 5\nper_box = 10\ngiven_away = 19\nleft = boxes * per_box - given_away # 31\nprint(left)\n```\nConsole:\n31\n\nThat lea...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0047305
<|start|><|user|> Each of Lena's bike rides burns 150 calories. How many calories over 5 bike rides?<|eot|> <|assistant|> ```python per_session = 150 sessions = 5 total = per_session * sessions # 750 print(total) ``` Out — 750 750 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Lena's bike rides burns 150 calories. How many calories over 5 bike rides?" }, { "role": "assistant", "content": "```python\nper_session = 150\nsessions = 5\ntotal = per_session * sessions # 750\nprint(total)\n```\nOut — 750\n\n750 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0047306
<|start|><|user|> 4 books come back 23 days late, at $0.10 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.1 days_late = 23 books = 4 fine = per_day * days_late * books # 9.200000000000001 print(f"{fine:.2f}") ``` The interpreter prints: 9.20 $9.20 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 books come back 23 days late, at $0.10 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.1\ndays_late = 23\nbooks = 4\nfine = per_day * days_late * books # 9.200000000000001\nprint(f\"{fine:.2f}\")\n```\nThe interpreter p...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "9.20", "printed": "9.20", "notation": null}
nlprog_det-setting-0047307
How many days are there from June 3, 2018 to June 11, 2018? ```python from datetime import date first = date(2018, 6, 3) # datetime.date(2018, 6, 3) second = date(2018, 6, 11) # datetime.date(2018, 6, 11) print((second - first).days) ``` (Execution result: 8) There are 8 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0047308
<|start|><|user|> A measure needs at least 67% of 66 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 66 needed = math.ceil(voters * 67 / 100) # 45 print(needed) ``` The script prints: 45 45 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 67% of 66 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 66\nneeded = math.ceil(voters * 67 / 100) # 45\nprint(needed)\n```\nThe script prints: 45\n\n45 votes are needed." ...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0047309
<|start|><|user|> Convert 62.7 km to meters.<|eot|> <|assistant|> ```python km = 62.7 meters = km * 1000 # 62700.0 print(round(meters)) ``` That prints: 62700 62,700 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 62.7 km to meters." }, { "role": "assistant", "content": "```python\nkm = 62.7\nmeters = km * 1000 # 62700.0\nprint(round(meters))\n```\nThat prints: 62700\n\n62,700 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "62700", "printed": "62700", "notation": null}
nlprog_det-setting-0047310
At an exchange rate of 1.35 USD per CHF, how many USD is 293 CHF? Python code: ```python amount = 293 rate = 1.35 converted = amount * rate # 395.55 print(f"{converted:.2f}") ``` (Console output: 395.55) It converts to 395.55 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "395.55", "printed": "395.55", "notation": null}
nlprog_det-setting-0047312
Walls total 1059 sq ft and each can covers 350 sq ft. How many cans should be bought? Set it up in Python: ```python import math area = 1059 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) ``` # output: 4 Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0047314
A 8% increase is applied to $1,250 monthly rent. What is the new amount? Python code: ```python rent = 1250 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1350.0 print(f"{new_rent:.2f}") ``` Run result: 1350.00 It rises to $1,350.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1350.00", "printed": "1350.00", "notation": null}
nlprog_det-setting-0047315
<|start|><|system|> Tools you may use: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "interpreter", "description": "Executes Python code ...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\...
nlprog_det
setting
original
null
deterministic
[]
[]
310
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0047316
<|start|><|system|> Tools (call with JSON): [{"name": "code_runner", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "get_weather", "descripti...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"code_runner\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
315
{"gold": "2023-04-04", "printed": "2023-04-04", "notation": null}
nlprog_det-setting-0047318
<|start|><|user|> At $21.36 an hour, what does 20 hours of work pay?<|eot|> <|assistant|> rate = 21.36 hours = 20 earnings = rate * hours # 427.2 print(f"{earnings:.2f}") Run it and it prints: 427.20 That earns $427.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $21.36 an hour, what does 20 hours of work pay?" }, { "role": "assistant", "content": " rate = 21.36\n hours = 20\n earnings = rate * hours # 427.2\n print(f\"{earnings:.2f}\")\nRun it and it prints: 427.20\n\nThat earns $427.20." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "427.20", "printed": "427.20", "notation": null}
nlprog_det-setting-0047319
From 2012 to 2029, how many years is that? Let's compute it with Python. ```python start_year = 2012 end_year = 2029 print(end_year - start_year) ``` The run gives 17. That is 17 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0047320
6 walks at 400 calories each burn how many calories in total? Let's compute it with Python. ```python per_session = 400 sessions = 6 total = per_session * sessions # 2400 print(total) ``` This prints 2400. 2400 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "2400", "printed": "2400", "notation": null}
nlprog_det-setting-0047321
At $0.65 per mile, what is the reimbursement for 91 miles? In Python: ```python miles = 91 rate = 0.65 reimbursement = miles * rate # 59.15 print(f"{reimbursement:.2f}") ``` stdout: 59.15 The reimbursement is $59.15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "59.15", "printed": "59.15", "notation": null}
nlprog_det-setting-0047322
<|start|><|user|> $1,000 is invested at 4% compounded yearly. What is it worth after 3 years?<|eot|> <|assistant|> The balance is $1,124.86.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$1,000 is invested at 4% compounded yearly. What is it worth after 3 years?" }, { "role": "assistant", "content": "The balance is $1,124.86." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "1124.86", "printed": "1124.86", "notation": null}
nlprog_det-setting-0047323
243 volunteers are split into 3 equal teams. How many are on each team, and how many are left over? The program: ```python total = 243 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Run output: 81 each, 0 left over The answer: 81 each, 0 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "81 each, 0 left over", "printed": "81 each, 0 left over", "notation": null}
nlprog_det-setting-0047324
Convert 3.8 km to meters. Let the code do the arithmetic: ```python km = 3.8 meters = km * 1000 # 3800.0 print(round(meters)) ``` When run, it prints 3800, as expected. That is 3,800 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "3800", "printed": "3800", "notation": null}
nlprog_det-setting-0047325
A $240 dinner bill gets a 20% tip, and 4 people share the cost equally. What is each person's share? In code: ```python bill = 240 tip_rate = 20 / 100 people = 4 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` Execution result: 72.00 Each person pays $72.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0047326
Someone born March 17, 1995 turns how old by August 4, 2023? Give the age in whole years. Code: from datetime import date born = date(1995, 3, 17) on = date(2023, 8, 4) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) print(age) Output — 28 The age is 28 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "28", "printed": "28", "notation": null}