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-0081512
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Which is cheaper per unit: 10 for $6.21 (A) or 15 for $10.00 (B)?<|eot|> <|assistant|> ```python pack_a = 6.21 / 10 pack_b = 10.0 / 15 cheaper = "A" if pack_a < pack_b else "B" print(cheaper) ``` The program prints: A Pack A is cheaper per it...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Which is cheaper per unit: 10 for $6.21 (A) or 15 for $10.00 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 6.21 / 10\npack_b = 10.0 / 15\ncheaper = \"A\" if pa...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0081513
<|start|><|user|> Monthly rent is $2,400. A tenant moves in with 12 days left in a 31-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 2400 days_in_month = 31 days_occupied = 12 prorated = rent * days_occupied / days_in_month # 929.0322580645161 print(f"{prorated:.2f}") ``` Running it prints...
chat
[ { "role": "user", "content": "Monthly rent is $2,400. A tenant moves in with 12 days left in a 31-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 2400\ndays_in_month = 31\ndays_occupied = 12\nprorated = rent * days_occupied / days_in_month # 929.03...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "929.03", "printed": "929.03", "notation": null}
nlprog_det-setting-0081514
What commission does Xavier make on $33,345 in sales at 2%? The commission is $666.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "666.90", "printed": "666.90", "notation": null}
nlprog_det-setting-0081515
A recipe for 4 people uses 240 grams of oats. How many grams are needed for 3 people? Here is a short program for it. ```python grams = 240 serves = 4 needed_for = 3 scaled = grams * needed_for // serves # 180 print(scaled) ``` The script prints 180. Use 180 g of oats.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0081516
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> What day of the week is August 3, 2005?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2005, 8, 3) # datetime.date(2005, 8, 3) print(hearing.strftime("%A")) ``` The program prints: Wednesday August 3, 2005 is a Wednesday.<|eot|>...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "What day of the week is August 3, 2005?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2005, 8, 3) # datetime.date(2005, 8, 3)\nprint(hearing.s...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0081517
<|start|><|user|> 63 of 80 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 63 total = 80 percent = present / total * 100 # 78.75 print(round(percent, 1)) ``` What it prints: 78.8 Attendance was 78.8%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "63 of 80 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 63\ntotal = 80\npercent = present / total * 100 # 78.75\nprint(round(percent, 1))\n```\nWhat it prints: 78.8\n\nAttendance was 78.8%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "78.8", "printed": "78.8", "notation": null}
nlprog_det-setting-0081518
<|start|><|user|> Papers were served by mail on February 21, 2022. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2022, 2, 21) # datetime.date(2022, 2, 21) response_days = 28 mail_days = 3 d...
chat
[ { "role": "user", "content": "Papers were served by mail on February 21, 2022. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2022, 2, 21) # datet...
nlprog_det
setting
original
null
deterministic
[]
[]
176
{"gold": "2022-03-24", "printed": "2022-03-24", "notation": null}
nlprog_det-setting-0081519
<|start|><|user|> After an initial $6,000, the remainder of a $12,000 grant is paid in 4 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 12000 up_front = 6000 installments = 4 each = (grant - up_front) / installments # 1500.0 print(f"{each:.2f}") ``` That prints 1500.00. $1,500.00 per installme...
chat
[ { "role": "user", "content": "After an initial $6,000, the remainder of a $12,000 grant is paid in 4 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 12000\nup_front = 6000\ninstallments = 4\neach = (grant - up_front) / installments # 1500.0\nprint(f\"{e...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0081520
<|start|><|user|> After an initial $6,000, the remainder of a $12,000 grant is paid in 4 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 12000 up_front = 6000 installments = 4 each = (grant - up_front) / installments # 1500.0 print(f"{each:.2f}") ``` The run gives 1500.00, as expected. $1,500.0...
chat
[ { "role": "user", "content": "After an initial $6,000, the remainder of a $12,000 grant is paid in 4 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 12000\nup_front = 6000\ninstallments = 4\neach = (grant - up_front) / installments # 1500.0\nprint(f\"{e...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0081521
<|start|><|user|> What does $5,000 grow to in 2 years at 3% annual compounding?<|eot|> <|assistant|> It is worth $5,304.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $5,000 grow to in 2 years at 3% annual compounding?" }, { "role": "assistant", "content": "It is worth $5,304.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "5304.50", "printed": "5304.50", "notation": null}
nlprog_det-setting-0081522
Walls total 1044 sq ft and each can covers 250 sq ft. How many cans should be bought? Python version: ```python import math area = 1044 coverage = 250 cans = math.ceil(area / coverage) print(cans) ``` Execution prints 5, as expected. Buy 5 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0081523
Of a $8,000 budget, $4,000 has been spent. What percent is that? Let the code do the arithmetic: budget = 8000 spent = 4000 percent = spent / budget * 100 # 50.0 print(round(percent, 1)) Interpreter output — 50.0 That is 50.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0081524
<|start|><|user|> A garage charges $4 an hour, never more than $15 a day. How much for 5 hours?<|eot|> <|assistant|> Parking costs $15.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $4 an hour, never more than $15 a day. How much for 5 hours?" }, { "role": "assistant", "content": "Parking costs $15." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0081525
Express 308 hours in days and hours. In code: ```python hours = 308 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` # printed result: 12 days and 20 hours That is 12 days and 20 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "12 days and 20 hours", "printed": "12 days and 20 hours", "notation": null}
nlprog_det-setting-0081526
A 220-mile drive at a steady 60 mph takes how many minutes? Computing it: distance = 220 speed = 60 minutes = distance / speed * 60 print(round(minutes)) Result = 220 The trip takes 220 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
62
{"gold": "220", "printed": "220", "notation": null}
nlprog_det-setting-0081527
How many minutes pass from 8:23 AM to 12:47 PM on the same day? Program: ```python start = 8 * 60 + 23 # 503 end = 12 * 60 + 47 # 767 print(end - start) ``` Running this gives: 264 264 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "264", "printed": "264", "notation": null}
nlprog_det-setting-0081528
A meal costs $94.62. How much is a 15% tip? The computation: ```python bill = 94.62 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 14.193 print(f"{tip:.2f}") ``` (Printed result: 14.19) The tip is $14.19.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "14.19", "printed": "14.19", "notation": null}
nlprog_det-setting-0081529
One can of paint covers 250 square feet. How many cans are needed for 979 square feet of wall? ```python import math area = 979 coverage = 250 cans = math.ceil(area / coverage) # 4 print(cans) ``` Console: 4 4 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0081530
If a 3-year limitations period starts on March 3, 2015, when does it end? In Python: from datetime import date accrued = date(2015, 3, 3) years = 3 expires = accrued.replace(year=accrued.year + years) print(expires.isoformat()) Run output — 2018-03-03 The period expires on March 3, 2018.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "2018-03-03", "printed": "2018-03-03", "notation": null}
nlprog_det-setting-0081531
<|start|><|system|> Answer in plain English.<|eot|> <|user|> At an exchange rate of 0.74 CAD per USD, how many CAD is 4,974 USD?<|eot|> <|assistant|> That is 3,680.76 CAD.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "At an exchange rate of 0.74 CAD per USD, how many CAD is 4,974 USD?" }, { "role": "assistant", "content": "That is 3,680.76 CAD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
56
{"gold": "3680.76", "printed": "3680.76", "notation": null}
nlprog_det-setting-0081532
What simple interest does $2,500 earn at 2% a year over 2 years? ```python principal = 2500 rate = 2 / 100 # 0.02 years = 2 interest = principal * rate * years # 100.0 print(f"{interest:.2f}") ``` # result: 100.00 It earns $100.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "100.00", "printed": "100.00", "notation": null}
nlprog_det-setting-0081533
<|start|><|user|> A 7 × 15 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 7 width = 15 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 27 print(tiles) ``` The code prints: 27 27 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 7 × 15 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 7\nwidth = 15\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 27\nprint(tiles)\n```\nThe code pri...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0081534
2.5 hours of work at $150 an hour: what is the total charge? Script: ```python hours = 2.5 rate = 150 bill = hours * rate # 375.0 print(f"{bill:.2f}") ``` Printed — 375.00 That comes to $375.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "375.00", "printed": "375.00", "notation": null}
nlprog_det-setting-0081535
The landlord deducts $200 from a $1,000 deposit. What is returned to the tenant? Python version: ```python deposit = 1000 deductions = [200] refund = deposit - sum(deductions) # 800 print(refund) ``` That prints: 800 The refund is $800.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0081536
<|start|><|user|> Fines run at $250 per day up to a maximum of $1,000. How much after 12 days?<|eot|> <|assistant|> ```python per_day = 250 days = 12 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Printed result: 1000 $1,000 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $250 per day up to a maximum of $1,000. How much after 12 days?" }, { "role": "assistant", "content": "```python\nper_day = 250\ndays = 12\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\nPrinted result: 1000\n\n$1,000 is owed." ...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0081537
<|start|><|system|> Available functions (JSON Schema): {"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "get_weather", "descript...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
325
{"gold": "13500.00", "printed": "13500.00", "notation": null}
nlprog_det-setting-0081538
<|start|><|user|> Each of Xavier's walks burns 400 calories. How many calories over 3 walks?<|eot|> <|assistant|> 1200 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Xavier's walks burns 400 calories. How many calories over 3 walks?" }, { "role": "assistant", "content": "1200 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0081539
A lease runs for 18 months at $975 per month. How much rent is paid over the whole term? Here's the code. ```python monthly_rent = 975 months = 18 total = monthly_rent * months # 17550 print(total) ``` The script prints: 17550 The rent over the term is $17,550.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "17550", "printed": "17550", "notation": null}
nlprog_det-setting-0081540
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> How many of 51 votes make 60% (round up)?<|eot|> <|assistant|> ```python import math voters = 51 needed = math.ceil(voters * 60 / 100) # 31 print(needed) ``` # console output: 31 At least 31 votes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "How many of 51 votes make 60% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 51\nneeded = math.ceil(voters * 60 / 100) # 31\nprint(needed)\n```\n# console ou...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0081541
<|start|><|user|> What is 25 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 25 fahrenheit = celsius * 9 / 5 + 32 # 77.0 print(round(fahrenheit)) ``` Output: 77 It equals 77 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 25 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 25\nfahrenheit = celsius * 9 / 5 + 32 # 77.0\nprint(round(fahrenheit))\n```\nOutput: 77\n\nIt equals 77 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0081542
<|start|><|user|> An office budget of $25,000 has expenses of $576, $3,160, $3,328. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 25000 expenses = [576, 3160, 3328] left = budget - sum(expenses) # 17936 print(left) ``` Console: 17936 $17,936 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $25,000 has expenses of $576, $3,160, $3,328. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 25000\nexpenses = [576, 3160, 3328]\nleft = budget - sum(expenses) # 17936\nprint(left)\n```\nConsole:\n1793...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "17936", "printed": "17936", "notation": null}
nlprog_det-setting-0081543
<|start|><|user|> Sofia earns a 6% commission on $102,529 of sales. What is the commission?<|eot|> <|assistant|> sales = 102529 rate = 6 / 100 # 0.06 commission = sales * rate # 6151.74 print(f"{commission:.2f}") Output = 6151.74 Sofia earns $6,151.74.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sofia earns a 6% commission on $102,529 of sales. What is the commission?" }, { "role": "assistant", "content": " sales = 102529\n rate = 6 / 100 # 0.06\n commission = sales * rate # 6151.74\n print(f\"{commission:.2f}\")\nOutput = 6151.74\n\nSofia ear...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "6151.74", "printed": "6151.74", "notation": null}
nlprog_det-setting-0081544
With 40% off, what does a $60 filing cabinet cost? We write it as a program: ```python price = 60 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 36.0 print(f"{sale_price:.2f}") ``` The run gives 36.00, as expected. The sale price is $36.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0081545
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> After a 25% fee is taken from a $30,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 30000 fee = award * 25 / 100 # 7500.0 remaining = award - fee # 22500.0 per_client = ...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "After a 25% fee is taken from a $30,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 30...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "5625.00", "printed": "5625.00", "notation": null}
nlprog_det-setting-0081546
A measure needs at least 67% of 121 votes. How many votes is that, rounded up? In Python: import math voters = 121 needed = math.ceil(voters * 67 / 100) # 82 print(needed) It prints 82, as expected. 82 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0081547
A car travels 83 miles in 0.5 hours. What is its average speed in miles per hour? ```python distance = 83 hours = 0.5 speed = distance / hours # 166.0 print(round(speed)) ``` It prints 166, as expected. The average speed is 166 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "166", "printed": "166", "notation": null}
nlprog_det-setting-0081548
Convert 30.3 km to meters. Python makes this quick: ```python km = 30.3 meters = km * 1000 # 30300.0 print(round(meters)) ``` Printed = 30300 30,300 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "30300", "printed": "30300", "notation": null}
nlprog_det-setting-0081549
On which weekday does March 2, 2007 fall? We can compute it in Python. ```python from datetime import date hearing = date(2007, 3, 2) # datetime.date(2007, 3, 2) print(hearing.strftime("%A")) ``` Console: Friday It is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0081550
Printing costs 10 cents a page. What does it cost to print 137 copies of a 41-page handout? Here's the code. pages = 41 copies = 137 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 561.7 print(f"{cost:.2f}") (Printed result: 561.70) Printing costs $561.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "561.70", "printed": "561.70", "notation": null}
nlprog_det-setting-0081551
How much sales tax is charged on a $19.96 purchase at 9%? Python makes this quick: ```python price = 19.96 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 1.7964 print(f"{tax:.2f}") ``` Printed = 1.80 $1.80 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1.80", "printed": "1.80", "notation": null}
nlprog_det-setting-0081552
<|start|><|system|> Tool definitions: [{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> A trial runs from November ...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s...
nlprog_det
setting
original
null
deterministic
[]
[]
233
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0081553
What is 0 degrees Celsius in Fahrenheit? Set it up in Python: ```python celsius = 0 fahrenheit = celsius * 9 / 5 + 32 # 32.0 print(round(fahrenheit)) ``` Console output — 32 It equals 32 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0081554
<|start|><|user|> 4 hours of work at $250 an hour: what is the total charge?<|eot|> <|assistant|> ```python hours = 4 rate = 250 bill = hours * rate # 1000 print(f"{bill:.2f}") ``` Executed, it shows: 1000.00 The bill is $1,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 hours of work at $250 an hour: what is the total charge?" }, { "role": "assistant", "content": "```python\nhours = 4\nrate = 250\nbill = hours * rate # 1000\nprint(f\"{bill:.2f}\")\n```\nExecuted, it shows: 1000.00\n\nThe bill is $1,000.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0081555
<|start|><|system|> Available functions (JSON Schema): {"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}} {"name": "py_exec", "description":...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
369
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0081556
A clerk's office charges $125 for each filing. Helga submits 15 filings. What is the total fee? A few lines of Python do it: ```python fee = 125 filings = 15 total = fee * filings # 1875 print(total) ``` stdout — 1875 The total fee is $1,875.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1875", "printed": "1875", "notation": null}
nlprog_det-setting-0081557
12 of 20 members attended. What percent attended? A Python solution: ```python present = 12 total = 20 percent = present / total * 100 # 60.0 print(round(percent, 1)) ``` The interpreter prints: 60.0 Attendance was 60.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "60.0", "printed": "60.0", "notation": null}
nlprog_det-setting-0081558
Someone works 24 hours at $16.01 per hour. What are the earnings? Let's compute it with Python. ```python rate = 16.01 hours = 24 earnings = rate * hours # 384.24 print(f"{earnings:.2f}") ``` Python prints 384.24. That earns $384.24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "384.24", "printed": "384.24", "notation": null}
nlprog_det-setting-0081559
<|start|><|user|> To read 272 pages in 16 days, how many pages per day are needed?<|eot|> <|assistant|> pages = 272 days = 16 per_day = pages // days # 17 print(per_day) (Printed: 17) 17 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 272 pages in 16 days, how many pages per day are needed?" }, { "role": "assistant", "content": " pages = 272\n days = 16\n per_day = pages // days # 17\n print(per_day)\n(Printed: 17)\n\n17 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0081560
<|start|><|user|> The paralegal logged 2.5 hours at a rate of $300. How much is billed?<|eot|> <|assistant|> ```python hours = 2.5 rate = 300 bill = hours * rate # 750.0 print(f"{bill:.2f}") ``` # stdout: 750.00 That comes to $750.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The paralegal logged 2.5 hours at a rate of $300. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 2.5\nrate = 300\nbill = hours * rate # 750.0\nprint(f\"{bill:.2f}\")\n```\n# stdout: 750.00\n\nThat comes to $750.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "750.00", "printed": "750.00", "notation": null}
nlprog_det-setting-0081561
A car travels 546 miles in 2 hours. What is its average speed in miles per hour? It averages 273 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "273", "printed": "273", "notation": null}
nlprog_det-setting-0081562
<|start|><|system|> You are a data assistant.<|eot|> <|user|> A car gets 30 miles per gallon. Gas is $4.59 a gallon. What does fuel cost for a 180-mile trip?<|eot|> <|assistant|> Fuel costs $27.54.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "A car gets 30 miles per gallon. Gas is $4.59 a gallon. What does fuel cost for a 180-mile trip?" }, { "role": "assistant", "content": "Fuel costs $27.54." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
59
{"gold": "27.54", "printed": "27.54", "notation": null}
nlprog_det-setting-0081563
After an initial $6,000, the remainder of a $30,000 grant is paid in 12 equal parts. What is each part? Let's compute it with Python. ```python grant = 30000 up_front = 6000 installments = 12 each = (grant - up_front) / installments # 2000.0 print(f"{each:.2f}") ``` (Out: 2000.00) Each installment is $2,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0081564
At a 6% tax rate, what is the tax on $343.46? As a program: ```python price = 343.46 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 20.607599999999998 print(f"{tax:.2f}") ``` Result: 20.61 The tax is $20.61.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "20.61", "printed": "20.61", "notation": null}
nlprog_det-setting-0081565
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Mateo and Eamon share $1,255 in the ratio 2:3. How much does Mateo get?<|eot|> <|assistant|> total = 1255 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 502 print(share_a) # run result: 502 Mateo gets $502.<|eot...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Mateo and Eamon share $1,255 in the ratio 2:3. How much does Mateo get?" }, { "role": "assistant", "content": " total = 1255\n parts_a = 2\n parts_b = 3\n share_a = total * parts_a //...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "502", "printed": "502", "notation": null}
nlprog_det-setting-0081566
A 4-day trip pays $59 a day for meals and $175 a night for lodging (3 nights). What is the total allowance? Set it up in Python: ```python days = 4 meal_rate = 59 lodging_rate = 175 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 761 print(total) ``` Run output: 761 The allowance is $761.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "761", "printed": "761", "notation": null}
nlprog_det-setting-0081567
Papers were served by mail on June 28, 2024. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? Script: ```python from datetime import date, timedelta served = date(2024, 6, 28) # datetime.date(2024, 6, 28) response_days = 28 mail_days = 3 due = served + timedelta(days=respo...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
181
{"gold": "2024-07-29", "printed": "2024-07-29", "notation": null}
nlprog_det-setting-0081568
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> How many weekdays (Monday to Friday) fall after August 23, 2021 up to and including September 7, 2021?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2021, 8, 23) end = date(2021, 9, 7) count = 0 for k in range(1, (end -...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "How many weekdays (Monday to Friday) fall after August 23, 2021 up to and including September 7, 2021?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelt...
nlprog_det
setting
original
null
deterministic
[]
[]
168
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0081569
<|start|><|system|> You may call the tools below. [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "compute", "description": "E...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"tit...
nlprog_det
setting
original
null
deterministic
[]
[]
368
{"gold": "371", "printed": "371", "notation": null}
nlprog_det-setting-0081570
<|start|><|user|> After an initial $0, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 60000 up_front = 0 installments = 12 each = (grant - up_front) / installments # 5000.0 print(f"{each:.2f}") ``` The program prints 5000.00. $5,000.00 per install...
chat
[ { "role": "user", "content": "After an initial $0, 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 = 0\ninstallments = 12\neach = (grant - up_front) / installments # 5000.0\nprint(f\"{each:....
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "5000.00", "printed": "5000.00", "notation": null}
nlprog_det-setting-0081571
<|start|><|user|> How much sales tax is charged on a $698.03 purchase at 9%?<|eot|> <|assistant|> ```python price = 698.03 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 62.8227 print(f"{tax:.2f}") ``` Executing it gives 62.82. $62.82 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $698.03 purchase at 9%?" }, { "role": "assistant", "content": "```python\nprice = 698.03\ntax_rate = 9 / 100 # 0.09\ntax = price * tax_rate # 62.8227\nprint(f\"{tax:.2f}\")\n```\nExecuting it gives 62.82.\n\n$62.82 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "62.82", "printed": "62.82", "notation": null}
nlprog_det-setting-0081572
Convert 2 h 28 min (the length of a film) to minutes. A short script: ```python hours = 2 minutes = 28 total_minutes = hours * 60 + minutes # 148 print(total_minutes) ``` Printed — 148 The film lasted 148 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "148", "printed": "148", "notation": null}
nlprog_det-setting-0081573
A $2,500 security deposit has deductions of $150. How much is refunded? $2,350 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "2350", "printed": "2350", "notation": null}
nlprog_det-setting-0081574
After a 25% fee is taken from a $60,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? Each client gets $11,250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "11250.00", "printed": "11250.00", "notation": null}
nlprog_det-setting-0081575
What average speed covers 114 miles in 1.5 hours? Let's compute it with Python. ```python distance = 114 hours = 1.5 speed = distance / hours # 76.0 print(round(speed)) ``` Executing it gives 76. It averages 76 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0081576
<|start|><|user|> After a 25% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 72000 fee = award * 25 / 100 # 18000.0 remaining = award - fee # 54000.0 per_client = remaining / 4 # 13500.0 print(f"{per_client:.2f}")...
chat
[ { "role": "user", "content": "After a 25% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 72000\nfee = award * 25 / 100 # 18000.0\nremaining = award - fee # 54000.0\nper_cl...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "13500.00", "printed": "13500.00", "notation": null}
nlprog_det-setting-0081577
Sales went from 400 to 420. What is the percent change? Python: ```python old = 400 new = 420 change = (new - old) / old * 100 # 5.0 print(round(change)) ``` That prints 5. It changed by 5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0081578
Buying 2 lanyards at $23 each, 3 headsets at $25 each, someone hands over $150. What change comes back? A few lines of Python do it: ```python items = [(2, 23), (3, 25)] total = sum(q * p for q, p in items) # 121 paid = 150 change = paid - total # 29 print(change) ``` (Output: 29) $29 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0081579
With $4,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal. We can compute it in Python. ```python revenue = 9000 costs = 4000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 55.55555555555556 print(round(margin, 1)) ``` Printed = 55.6 Profit is 55.6% of re...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "55.6", "printed": "55.6", "notation": null}
nlprog_det-setting-0081580
At 50 miles per hour, how many minutes does a 100-mile trip take? Computing it: ```python distance = 100 speed = 50 minutes = distance / speed * 60 # 120.0 print(round(minutes)) ``` Execution result — 120 The trip takes 120 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0081581
An unpaid balance of $7,500 accrues 2% simple interest per month. How much interest accrues in 3 months? Programmatically: balance = 7500 monthly_rate = 2 / 100 # 0.02 months = 3 interest = balance * monthly_rate * months # 450.0 print(f"{interest:.2f}") Shell output: 450.00 $450.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0081582
An attorney bills 10.5 hours at $150 per hour. What is the bill? ```python hours = 10.5 rate = 150 bill = hours * rate # 1575.0 print(f"{bill:.2f}") ``` (stdout: 1575.00) That comes to $1,575.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0081584
A lease runs for 12 months at $1,475 per month. How much rent is paid over the whole term? Here is a short program for it. ```python monthly_rent = 1475 months = 12 total = monthly_rent * months # 17700 print(total) ``` Execution result — 17700 In total, $17,700 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "17700", "printed": "17700", "notation": null}
nlprog_det-setting-0081585
<|start|><|user|> What commission does Signe make on $28,549 in sales at 8%?<|eot|> <|assistant|> ```python sales = 28549 rate = 8 / 100 # 0.08 commission = sales * rate # 2283.92 print(f"{commission:.2f}") ``` Printed: 2283.92 Signe earns $2,283.92.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Signe make on $28,549 in sales at 8%?" }, { "role": "assistant", "content": "```python\nsales = 28549\nrate = 8 / 100 # 0.08\ncommission = sales * rate # 2283.92\nprint(f\"{commission:.2f}\")\n```\nPrinted:\n2283.92\n\nSigne earns $2,283.92." ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "2283.92", "printed": "2283.92", "notation": null}
nlprog_det-setting-0081586
<|start|><|user|> What simple interest does $1,000 earn at 5% a year over 4 years?<|eot|> <|assistant|> ```python principal = 1000 rate = 5 / 100 # 0.05 years = 4 interest = principal * rate * years # 200.0 print(f"{interest:.2f}") ``` Executed, it shows 200.00. The interest is $200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $1,000 earn at 5% a year over 4 years?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 5 / 100 # 0.05\nyears = 4\ninterest = principal * rate * years # 200.0\nprint(f\"{interest:.2f}\")\n```\nExecuted, it shows ...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0081587
Counting only Monday through Friday, how many business days are there after April 7, 2021 through May 8, 2021? In code: ```python from datetime import date, timedelta start = date(2021, 4, 7) end = date(2021, 5, 8) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0081588
A trial runs from June 12, 2026 to June 17, 2026, counting both days. How many calendar days is that? Let the code do the arithmetic: ```python from datetime import date first = date(2026, 6, 12) # datetime.date(2026, 6, 12) last = date(2026, 6, 17) # datetime.date(2026, 6, 17) days = (last - first).days + 1 # 6 pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0081589
A hall has 23 rows of 14 seats, and 3 seats are empty. How many people are seated? Python makes this quick: ```python rows = 23 per_row = 14 empty = 3 seated = rows * per_row - empty # 319 print(seated) ``` (Console output: 319) 319 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "319", "printed": "319", "notation": null}
nlprog_det-setting-0081590
From a $5,000 retainer, 11 hours at $275/hour have been drawn. What remains? Computing it: ```python retainer = 5000 hours = 11 rate = 275 left = retainer - hours * rate # 1975 print(left) ``` The script prints 1975, as expected. The remaining balance is $1,975.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1975", "printed": "1975", "notation": null}
nlprog_det-setting-0081591
A party has 28 days to respond to a motion served on May 16, 2020, with 3 days added because service was by mail. When is the response due? Python: ```python from datetime import date, timedelta served = date(2020, 5, 16) # datetime.date(2020, 5, 16) response_days = 28 mail_days = 3 due = served + timedelta(days=resp...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
171
{"gold": "2020-06-16", "printed": "2020-06-16", "notation": null}
nlprog_det-setting-0081592
Each of Hana's walks burns 250 calories. How many calories over 7 walks? Let's compute it with Python. ```python per_session = 250 sessions = 7 total = per_session * sessions # 1750 print(total) ``` # printed: 1750 1750 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0081593
A $120 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share? ```python bill = 120 tip_rate = 15 / 100 # 0.15 people = 3 each = bill * (1 + tip_rate) / people # 46.0 print(f"{each:.2f}") ``` Executing it gives 46.00. Each person pays $46.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "46.00", "printed": "46.00", "notation": null}
nlprog_det-setting-0081594
<|start|><|system|> Tools you may use: [{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> How many weekdays (Monday to Fri...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code...
nlprog_det
setting
original
null
deterministic
[]
[]
288
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0081595
<|start|><|user|> 24 of 40 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 24 total = 40 percent = present / total * 100 # 60.0 print(round(percent, 1)) ``` That prints: 60.0 Attendance was 60.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "24 of 40 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 24\ntotal = 40\npercent = present / total * 100 # 60.0\nprint(round(percent, 1))\n```\nThat prints: 60.0\n\nAttendance was 60.0%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "60.0", "printed": "60.0", "notation": null}
nlprog_det-setting-0081596
<|start|><|system|> Be concise.<|eot|> <|user|> What percentage of $10,000 is $2,200?<|eot|> <|assistant|> That is 22.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "What percentage of $10,000 is $2,200?" }, { "role": "assistant", "content": "That is 22.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "22.0", "printed": "22.0", "notation": null}
nlprog_det-setting-0081597
Someone works 38 hours at $21.24 per hour. What are the earnings? Written as code: ```python rate = 21.24 hours = 38 earnings = rate * hours # 807.1199999999999 print(f"{earnings:.2f}") ``` Execution prints 807.12, as expected. That earns $807.12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "807.12", "printed": "807.12", "notation": null}
nlprog_det-setting-0081598
How many of 45 votes make 60% (round up)? As a program: ```python import math voters = 45 needed = math.ceil(voters * 60 / 100) # 27 print(needed) ``` This prints 27, as expected. At least 27 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0081599
Water costs $15 a month plus $4.20 for each 1,000 gallons over 2,000. What is owed for 11,000 gallons? Script: ```python base = 15 rate = 4.2 used = 11 free = 2 bill = base + rate * max(0, used - free) # 52.800000000000004 print(f"{bill:.2f}") ``` Run output — 52.80 The bill is $52.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "52.80", "printed": "52.80", "notation": null}
nlprog_det-setting-0081600
<|start|><|system|> Tool definitions: [{"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Straight-line depreciat...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
250
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0081601
At $28.64 an hour, what does 38 hours of work pay? Code: ```python rate = 28.64 hours = 38 earnings = rate * hours # 1088.32 print(f"{earnings:.2f}") ``` The script prints: 1088.32 The pay is $1,088.32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1088.32", "printed": "1088.32", "notation": null}
nlprog_det-setting-0081602
A customer buys 6 headsets at $11 each, 3 keyboards at $20 each and pays with $150. How much change is due? A few lines of Python do it: ```python items = [(6, 11), (3, 20)] total = sum(q * p for q, p in items) # 126 paid = 150 change = paid - total # 24 print(change) ``` Run result: 24 The change is $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0081603
A hall has 5 rows of 12 seats, and 25 seats are empty. How many people are seated? Computation in Python: ```python rows = 5 per_row = 12 empty = 25 seated = rows * per_row - empty # 35 print(seated) ``` The code prints 35. 35 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0081604
<|start|><|user|> How many days are there from May 12, 2028 to January 31, 2029?<|eot|> <|assistant|> It is 264 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many days are there from May 12, 2028 to January 31, 2029?" }, { "role": "assistant", "content": "It is 264 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "264", "printed": "264", "notation": null}
nlprog_det-setting-0081605
<|start|><|system|> Give the answer first.<|eot|> <|user|> Jonas earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 50-hour week?<|eot|> <|assistant|> rate = 25.0 hours = 50 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{...
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "Jonas earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 50-hour week?" }, { "role": "assistant", "content": " rate = 25.0\n hours = 50\n regular = 40 * ra...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1375.00", "printed": "1375.00", "notation": null}
nlprog_det-setting-0081607
<|start|><|user|> A clerk's office charges $90 for each filing. Xavier submits 12 filings. What is the total fee?<|eot|> <|assistant|> The total fee is $1,080.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $90 for each filing. Xavier submits 12 filings. What is the total fee?" }, { "role": "assistant", "content": "The total fee is $1,080." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "1080", "printed": "1080", "notation": null}
nlprog_det-setting-0081608
<|start|><|system|> Be concise.<|eot|> <|user|> Counting only Monday through Friday, how many business days are there after November 10, 2025 through November 15, 2025?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2025, 11, 10) end = date(2025, 11, 15) count = 0 for k in ra...
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after November 10, 2025 through November 15, 2025?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0081609
The landlord deducts $120 from a $1,500 deposit. What is returned to the tenant? ```python deposit = 1500 deductions = [120] refund = deposit - sum(deductions) # 1380 print(refund) ``` On running, it outputs 1380. $1,380 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "1380", "printed": "1380", "notation": null}
nlprog_det-setting-0081610
Each of Lucia's swims burns 350 calories. How many calories over 3 swims? 1050 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0081611
Sales went from 1,000 to 750. What is the percent change? Program: ```python old = 1000 new = 750 change = (new - old) / old * 100 # -25.0 print(round(change)) ``` Run it and it prints -25. The change is -25%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "-25", "printed": "-25", "notation": null}
nlprog_det-setting-0081612
Wen drove 320 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement? Script: ```python miles = 320 rate = 0.65 reimbursement = miles * rate # 208.0 print(f"{reimbursement:.2f}") ``` The code prints 208.00. The reimbursement is $208.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "208.00", "printed": "208.00", "notation": null}
nlprog_det-setting-0081613
<|start|><|user|> A meal costs $142.75. How much is a 15% tip?<|eot|> <|assistant|> ```python bill = 142.75 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 21.412499999999998 print(f"{tip:.2f}") ``` (stdout: 21.41) Leave $21.41.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $142.75. How much is a 15% tip?" }, { "role": "assistant", "content": "```python\nbill = 142.75\ntip_rate = 15 / 100 # 0.15\ntip = bill * tip_rate # 21.412499999999998\nprint(f\"{tip:.2f}\")\n```\n(stdout: 21.41)\n\nLeave $21.41." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "21.41", "printed": "21.41", "notation": null}