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-0075700
From a $10,000 retainer, 12 hours at $250/hour have been drawn. What remains? Python, step by step: ```python retainer = 10000 hours = 12 rate = 250 left = retainer - hours * rate # 7000 print(left) ``` The script prints 7000, as expected. $7,000 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "7000", "printed": "7000", "notation": null}
nlprog_det-setting-0075701
<|start|><|user|> Copies cost $15 plus $0.50 for each page beyond 10. How much for 88 pages?<|eot|> <|assistant|> ```python pages = 88 base = 15 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 54.0 print(f"{cost:.2f}") ``` stdout — 54.00 The total is $54.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $15 plus $0.50 for each page beyond 10. How much for 88 pages?" }, { "role": "assistant", "content": "```python\npages = 88\nbase = 15\nper_page = 0.5\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page # 54.0\nprint(f\"{cost:.2f}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0075702
Fines run at $25 per day up to a maximum of $1,000. How much after 58 days? Computing it: ```python per_day = 25 days = 58 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Run it and it prints: 1000 $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0075703
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "search_cas...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"code_runner\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\...
nlprog_det
setting
original
null
deterministic
[]
[]
349
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0075704
Prorate $900 of monthly rent for 9 days of a 30-day month. Here is the program. ```python rent = 900 days_in_month = 30 days_occupied = 9 prorated = rent * days_occupied / days_in_month # 270.0 print(f"{prorated:.2f}") ``` Output = 270.00 The prorated rent is $270.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "270.00", "printed": "270.00", "notation": null}
nlprog_det-setting-0075705
<|start|><|user|> With 30% off, what does a $75 backpack cost?<|eot|> <|assistant|> The sale price is $52.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 30% off, what does a $75 backpack cost?" }, { "role": "assistant", "content": "The sale price is $52.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "52.50", "printed": "52.50", "notation": null}
nlprog_det-setting-0075706
A count moves from 500 to 700. By what percent did it change (use a minus sign for a drop)? Program: ```python old = 500 new = 700 change = (new - old) / old * 100 # 40.0 print(round(change)) ``` The script prints 40. It changed by 40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0075707
What day of the week is August 9, 2012? Written as code: ```python from datetime import date hearing = date(2012, 8, 9) # datetime.date(2012, 8, 9) print(hearing.strftime("%A")) ``` stdout — Thursday It is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0075708
A storeroom has 669 notebooks. The office uses 33 a day. How many are left after 7 days? One way, in code: ```python stock = 669 per_day = 33 days = 7 left = stock - per_day * days # 438 print(left) ``` It prints: 438 438 notebooks are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "438", "printed": "438", "notation": null}
nlprog_det-setting-0075709
Each storage box holds 25 files. How many boxes are needed for 466 files? One way, in code: ```python import math files = 466 per_box = 25 boxes = math.ceil(files / per_box) # 19 print(boxes) ``` Console: 19 It takes 19 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0075710
<|start|><|user|> A $24,000 grant pays $0 up front and the rest in 6 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 24000 up_front = 0 installments = 6 each = (grant - up_front) / installments # 4000.0 print(f"{each:.2f}") ``` (Printed result: 4000.00) $4,000.00 per installm...
chat
[ { "role": "user", "content": "A $24,000 grant pays $0 up front and the rest in 6 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 24000\nup_front = 0\ninstallments = 6\neach = (grant - up_front) / installments # 4000.0\nprint(f\"{each:...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0075711
<|start|><|user|> What is the total rent on a 36-month lease at $1,640 a month?<|eot|> <|assistant|> ```python monthly_rent = 1640 months = 36 total = monthly_rent * months # 59040 print(total) ``` Run it and it prints: 59040 The rent over the term is $59,040.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 36-month lease at $1,640 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 1640\nmonths = 36\ntotal = monthly_rent * months # 59040\nprint(total)\n```\nRun it and it prints: 59040\n\nThe rent over the term is $59,...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "59040", "printed": "59040", "notation": null}
nlprog_det-setting-0075712
6 walks at 250 calories each burn how many calories in total? Set it up in Python: ```python per_session = 250 sessions = 6 total = per_session * sessions print(total) ``` Result = 1500 1500 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0075713
Under a 35% contingency agreement, what fee is owed on a $12,000 award? Let the code do the arithmetic: ```python recovery = 12000 rate = 35 / 100 # 0.35 fee = recovery * rate # 4200.0 print(f"{fee:.2f}") ``` # out: 4200.00 The lawyer's fee comes to $4,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "4200.00", "printed": "4200.00", "notation": null}
nlprog_det-setting-0075714
A count moves from 400 to 500. By what percent did it change (use a minus sign for a drop)? Python code: ```python old = 400 new = 500 change = (new - old) / old * 100 # 25.0 print(round(change)) ``` It outputs 25. It changed by 25%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0075715
Monthly: $29. Annual: $312. What is saved per year by paying annually? ```python monthly = 29 yearly = 312 savings = monthly * 12 - yearly # 36 print(savings) ``` The program prints 36, as expected. The annual plan saves $36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0075717
Attendance was 55 out of 80. Express it as a percent. Computation in Python: ```python present = 55 total = 80 percent = present / total * 100 # 68.75 print(round(percent, 1)) ``` The interpreter prints: 68.8 Attendance was 68.8%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "68.8", "printed": "68.8", "notation": null}
nlprog_det-setting-0075719
<|start|><|user|> A lawyer's fee is 30% of a $90,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 90000 rate = 30 / 100 # 0.3 fee = recovery * rate # 27000.0 print(f"{fee:.2f}") ``` # printed: 27000.00 The fee is $27,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 30% of a $90,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 90000\nrate = 30 / 100 # 0.3\nfee = recovery * rate # 27000.0\nprint(f\"{fee:.2f}\")\n```\n# printed: 27000.00\n\nThe fee is $27,000.00....
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "27000.00", "printed": "27000.00", "notation": null}
nlprog_det-setting-0075720
A 6-day trip pays $79 a day for meals and $140 a night for lodging (5 nights). What is the total allowance? Let the code do the arithmetic: ```python days = 6 meal_rate = 79 lodging_rate = 140 nights = days - 1 # 5 total = days * meal_rate + nights * lodging_rate # 1174 print(total) ``` Printed: 1174 The allowance ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "1174", "printed": "1174", "notation": null}
nlprog_det-setting-0075721
<|start|><|user|> Monthly: $15. Annual: $162. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 15 yearly = 162 savings = monthly * 12 - yearly # 18 print(savings) ``` That prints 18. The annual plan saves $18.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $15. Annual: $162. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 15\nyearly = 162\nsavings = monthly * 12 - yearly # 18\nprint(savings)\n```\nThat prints 18.\n\nThe annual plan saves $18." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0075722
A measure needs at least 60% of 267 votes. How many votes is that, rounded up? Let's compute it with Python. ```python import math voters = 267 needed = math.ceil(voters * 60 / 100) print(needed) ``` Execution result — 161 161 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "161", "printed": "161", "notation": null}
nlprog_det-setting-0075723
Jamal earns a 6% commission on $102,919 of sales. What is the commission? In Python: ```python sales = 102919 rate = 6 / 100 # 0.06 commission = sales * rate # 6175.139999999999 print(f"{commission:.2f}") ``` # stdout: 6175.14 Jamal earns $6,175.14.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "6175.14", "printed": "6175.14", "notation": null}
nlprog_det-setting-0075724
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Starting from $8,000, the team spends $2,095, $770, $327, $395. What remains?<|eot|> <|assistant|> ```python budget = 8000 expenses = [2095, 770, 327, 395] left = budget - sum(expenses) # 4413 print(left) ``` Run result — 4413 $4,413 is left.<|eot|>...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Starting from $8,000, the team spends $2,095, $770, $327, $395. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nexpenses = [2095, 770, 327, 395]\nleft = b...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "4413", "printed": "4413", "notation": null}
nlprog_det-setting-0075725
Fuel for 450 miles at 30 mpg, with gas at $4.59/gallon: what is the cost? The trip uses $68.85 of gas.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "68.85", "printed": "68.85", "notation": null}
nlprog_det-setting-0075726
A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 37-page copy cost? As Python: ```python pages = 37 base = 15 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 18.7 print(f"{cost:.2f}") ``` Console output — 18.70 The total is $18.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "18.70", "printed": "18.70", "notation": null}
nlprog_det-setting-0075727
How many meters are in 72.5 kilometers? Here is the program. ```python km = 72.5 meters = km * 1000 # 72500.0 print(round(meters)) ``` # console output: 72500 72,500 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "72500", "printed": "72500", "notation": null}
nlprog_det-setting-0075728
<|start|><|user|> A pack of 25 badges sells for $1325. What does each cost?<|eot|> <|assistant|> ```python total = 1325 count = 25 per_item = total // count # 53 print(per_item) ``` The program prints 53, as expected. The unit price is $53.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 25 badges sells for $1325. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 1325\ncount = 25\nper_item = total // count # 53\nprint(per_item)\n```\nThe program prints 53, as expected.\n\nThe unit price is $53." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0075730
<|start|><|user|> How many days are there from October 3, 2020 to February 26, 2021?<|eot|> <|assistant|> It is 146 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many days are there from October 3, 2020 to February 26, 2021?" }, { "role": "assistant", "content": "It is 146 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "146", "printed": "146", "notation": null}
nlprog_det-setting-0075731
At a 8% tax rate, what is the tax on $203.92? A few lines of Python do it: ```python price = 203.92 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 16.3136 print(f"{tax:.2f}") ``` (Out: 16.31) The tax is $16.31.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "16.31", "printed": "16.31", "notation": null}
nlprog_det-setting-0075732
<|start|><|user|> A shift runs from 11:01 AM to 11:39 AM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 11 * 60 + 1 # 661 end = 11 * 60 + 39 # 699 print(end - start) ``` Execution result: 38 It is 38 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 11:01 AM to 11:39 AM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 11 * 60 + 1 # 661\nend = 11 * 60 + 39 # 699\nprint(end - start)\n```\nExecution result: 38\n\nIt is 38 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0075733
<|start|><|user|> A court charges $5 per request plus $0.10 per page after the first 0 pages. What does a 96-page copy cost?<|eot|> <|assistant|> The copy costs $14.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A court charges $5 per request plus $0.10 per page after the first 0 pages. What does a 96-page copy cost?" }, { "role": "assistant", "content": "The copy costs $14.60." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "14.60", "printed": "14.60", "notation": null}
nlprog_det-setting-0075734
<|start|><|user|> Count 30 days forward from April 3, 2022. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2022, 4, 3) # datetime.date(2022, 4, 3) end = start + timedelta(days=30) # datetime.date(2022, 5, 3) print(end.isoformat()) ``` (Out: 2022-05-03) That date i...
chat
[ { "role": "user", "content": "Count 30 days forward from April 3, 2022. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 4, 3) # datetime.date(2022, 4, 3)\nend = start + timedelta(days=30) # datetime.date(2022, 5, 3)\...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "2022-05-03", "printed": "2022-05-03", "notation": null}
nlprog_det-setting-0075735
A service costs $29 a month or $300 a year. How much does the yearly plan save over 12 monthly payments? As Python: ```python monthly = 29 yearly = 300 savings = monthly * 12 - yearly # 48 print(savings) ``` Printed — 48 $48 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0075736
<|start|><|user|> Convert 13.2 km to meters.<|eot|> <|assistant|> ```python km = 13.2 meters = km * 1000 print(round(meters)) ``` # output: 13200 13,200 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 13.2 km to meters." }, { "role": "assistant", "content": "```python\nkm = 13.2\nmeters = km * 1000\nprint(round(meters))\n```\n# output: 13200\n\n13,200 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "13200", "printed": "13200", "notation": null}
nlprog_det-setting-0075738
<|start|><|user|> From 2005 to 2039, how many years is that?<|eot|> <|assistant|> ```python start_year = 2005 end_year = 2039 print(end_year - start_year) ``` The program outputs 34. 34 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2005 to 2039, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2005\nend_year = 2039\nprint(end_year - start_year)\n```\nThe program outputs 34.\n\n34 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0075739
<|start|><|system|> You can call tools. Available tools: [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "code_runner", "description": "Python sandbox for calculations. Returns printed...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"code_runner\", \"descrip...
nlprog_det
setting
original
null
deterministic
[]
[]
315
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0075740
A hall has 21 rows of 10 seats, and 28 seats are empty. How many people are seated? 182 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "182", "printed": "182", "notation": null}
nlprog_det-setting-0075741
Monthly: $9. Annual: $96. What is saved per year by paying annually? We write it as a program: ```python monthly = 9 yearly = 96 savings = monthly * 12 - yearly # 12 print(savings) ``` The interpreter prints 12. The annual plan saves $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0075742
<|start|><|user|> 2 clients win $48,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> award = 48000 fee = award * 30 / 100 # 14400.0 remaining = award - fee # 33600.0 per_client = remaining / 2 # 16800.0 print(f"{per_client:.2f}") The pr...
chat
[ { "role": "user", "content": "2 clients win $48,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": " award = 48000\n fee = award * 30 / 100 # 14400.0\n remaining = award - fee # 33600.0\n per_client = remai...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "16800.00", "printed": "16800.00", "notation": null}
nlprog_det-setting-0075743
<|start|><|system|> You may call the tools below. [{"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "define_wo...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source co...
nlprog_det
setting
original
null
deterministic
[]
[]
384
{"gold": "12 each, 4 left over", "printed": "12 each, 4 left over", "notation": null}
nlprog_det-setting-0075744
Notice was given on December 27, 2020. The notice period is 90 days. When does it run out? Python code: from datetime import date, timedelta start = date(2020, 12, 27) # datetime.date(2020, 12, 27) end = start + timedelta(days=90) # datetime.date(2021, 3, 27) print(end.isoformat()) The code prints: 2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2021-03-27", "printed": "2021-03-27", "notation": null}
nlprog_det-setting-0075745
<|start|><|user|> Meals are $64 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights?<|eot|> <|assistant|> That comes to $676.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Meals are $64 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights?" }, { "role": "assistant", "content": "That comes to $676." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "676", "printed": "676", "notation": null}
nlprog_det-setting-0075746
Zoe lends $12,000 at 8% simple interest per year for 2 years. How much interest is earned? The interest is $1,920.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "1920.00", "printed": "1920.00", "notation": null}
nlprog_det-setting-0075747
If a 5-year limitations period starts on February 4, 2024, when does it end? A short script: ```python from datetime import date accrued = date(2024, 2, 4) # datetime.date(2024, 2, 4) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2029, 2, 4) print(expires.isoformat()) ``` On running,...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2029-02-04", "printed": "2029-02-04", "notation": null}
nlprog_det-setting-0075748
<|start|><|user|> Convert 15 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = 15 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) ``` (Execution result: 59) That is 59 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 15 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = 15\nfahrenheit = celsius * 9 / 5 + 32\nprint(round(fahrenheit))\n```\n(Execution result: 59)\n\nThat is 59 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0075749
At a 5% tax rate, what is the tax on $69.28? Here's the code. ```python price = 69.28 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 3.4640000000000004 print(f"{tax:.2f}") ``` Executed, it shows 3.46. $3.46 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "3.46", "printed": "3.46", "notation": null}
nlprog_det-setting-0075750
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "eval_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|>...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"eval_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source ...
nlprog_det
setting
original
null
deterministic
[]
[]
227
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0075751
What simple interest does $5,000 earn at 3% a year over 5 years? Let the code do the arithmetic: ```python principal = 5000 rate = 3 / 100 # 0.03 years = 5 interest = principal * rate * years # 750.0 print(f"{interest:.2f}") ``` # output: 750.00 It earns $750.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "750.00", "printed": "750.00", "notation": null}
nlprog_det-setting-0075752
<|start|><|user|> 24 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 24 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Result — 4 each, 4 left over 4 each, 4 left over.<...
chat
[ { "role": "user", "content": "24 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 24\ngroups = 5\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left ove...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "4 each, 4 left over", "printed": "4 each, 4 left over", "notation": null}
nlprog_det-setting-0075754
A client paid a $10,000 retainer. The firm has billed 14 hours at $275 per hour. How much of the retainer is left? $6,150 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "6150", "printed": "6150", "notation": null}
nlprog_det-setting-0075755
A 648-page report must be reviewed in 12 days. How many pages a day is that, evenly? ```python pages = 648 days = 12 per_day = pages // days print(per_day) ``` Printed: 54 That is 54 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0075756
Equal monthly payments repay $2,400 plus 5% simple yearly interest over 36 months. How large is a payment? Here's the code. ```python principal = 2400 annual_rate = 5 / 100 # 0.05 months = 36 interest = principal * annual_rate * months / 12 # 360.0 payment = (principal + interest) / months # 76.66666666666667 print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "76.67", "printed": "76.67", "notation": null}
nlprog_det-setting-0075757
<|start|><|user|> A shift runs from 8:36 AM to 3:36 PM. How long is it in minutes?<|eot|> <|assistant|> It is 420 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 8:36 AM to 3:36 PM. How long is it in minutes?" }, { "role": "assistant", "content": "It is 420 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "420", "printed": "420", "notation": null}
nlprog_det-setting-0075758
<|start|><|user|> Shipping costs $8 plus $2.00 per pound. What does a 8-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 8 per_pound = 2.0 weight = 8 cost = base + per_pound * weight # 24.0 print(f"{cost:.2f}") ``` The program prints: 24.00 Shipping costs $24.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $8 plus $2.00 per pound. What does a 8-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 8\nper_pound = 2.0\nweight = 8\ncost = base + per_pound * weight # 24.0\nprint(f\"{cost:.2f}\")\n```\nThe program prints: 24.00...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0075759
<|start|><|system|> Be brief and correct.<|eot|> <|user|> With 40% off, what does a $120 jacket cost?<|eot|> <|assistant|> ```python price = 120 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 72.0 print(f"{sale_price:.2f}") ``` Running it prints: 72.00 It costs $72.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "With 40% off, what does a $120 jacket cost?" }, { "role": "assistant", "content": "```python\nprice = 120\ndiscount = 40 / 100 # 0.4\nsale_price = price * (1 - discount) # 72.0\nprint(f\"{sale_p...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0075760
At 2% a month (simple), what interest builds on $2,500 over 4 months? In Python: ```python balance = 2500 monthly_rate = 2 / 100 # 0.02 months = 4 interest = balance * monthly_rate * months # 200.0 print(f"{interest:.2f}") ``` The run gives 200.00. $200.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0075761
An attorney bills 8 hours at $410 per hour. What is the bill? ```python hours = 8 rate = 410 bill = hours * rate # 3280 print(f"{bill:.2f}") ``` Run result = 3280.00 The bill is $3,280.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "3280.00", "printed": "3280.00", "notation": null}
nlprog_det-setting-0075763
The rules require 2/3 of 57 members (round up) to be present. How many is that? A few lines of Python do it: ```python import math members = 57 quorum = math.ceil(members * 2 / 3) # 38 print(quorum) ``` Execution prints: 38 38 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0075764
<|start|><|system|> Tools you may use: [{"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "search_cases", "description": "Search...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"code_runner\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progra...
nlprog_det
setting
original
null
deterministic
[]
[]
282
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0075765
<|start|><|system|> Available functions (JSON Schema): {"name": "python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> The bridge was fini...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
199
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0075766
A 9-day trip pays $74 a day for meals and $140 a night for lodging (8 nights). What is the total allowance? Python makes this quick: days = 9 meal_rate = 74 lodging_rate = 140 nights = days - 1 # 8 total = days * meal_rate + nights * lodging_rate # 1786 print(total) When run, it prints 1786. ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1786", "printed": "1786", "notation": null}
nlprog_det-setting-0075767
<|start|><|user|> From 2017 to 2044, how many years is that?<|eot|> <|assistant|> ```python start_year = 2017 end_year = 2044 print(end_year - start_year) ``` This prints 27. That is 27 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2017 to 2044, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2017\nend_year = 2044\nprint(end_year - start_year)\n```\nThis prints 27.\n\nThat is 27 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0075769
<|start|><|user|> A penalty of $100 a day accrues, capped at $5,000. What is owed after 39 days?<|eot|> <|assistant|> ```python per_day = 100 days = 39 cap = 5000 fine = min(per_day * days, cap) # 3900 print(fine) ``` Interpreter output: 3900 $3,900 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $100 a day accrues, capped at $5,000. What is owed after 39 days?" }, { "role": "assistant", "content": "```python\nper_day = 100\ndays = 39\ncap = 5000\nfine = min(per_day * days, cap) # 3900\nprint(fine)\n```\nInterpreter output: 3900\n\n$3,900 is ow...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "3900", "printed": "3900", "notation": null}
nlprog_det-setting-0075770
<|start|><|user|> 159 copies of a 12-page packet are printed at $0.12 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 12 copies = 159 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 228.95999999999998 print(f"{cost:.2f}") ``` Executed, it shows: 228.96 Printing costs $228.96.<|eot|> <|...
chat
[ { "role": "user", "content": "159 copies of a 12-page packet are printed at $0.12 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 12\ncopies = 159\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page # 228.95999999999998\nprint(f\"{cost:.2f}\")\n```...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "228.96", "printed": "228.96", "notation": null}
nlprog_det-setting-0075772
Convert 3 h 30 min (the length of a deposition) to minutes. The program: ```python hours = 3 minutes = 30 total_minutes = hours * 60 + minutes # 210 print(total_minutes) ``` Result: 210 The deposition lasted 210 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "210", "printed": "210", "notation": null}
nlprog_det-setting-0075773
How long, in days, is it from July 28, 2019 until December 22, 2019? from datetime import date first = date(2019, 7, 28) # datetime.date(2019, 7, 28) second = date(2019, 12, 22) # datetime.date(2019, 12, 22) print((second - first).days) The program outputs 147. There are 147 days between the two dat...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "147", "printed": "147", "notation": null}
nlprog_det-setting-0075774
<|start|><|user|> Fuel for 180 miles at 40 mpg, with gas at $3.45/gallon: what is the cost?<|eot|> <|assistant|> The trip uses $15.53 of gas.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fuel for 180 miles at 40 mpg, with gas at $3.45/gallon: what is the cost?" }, { "role": "assistant", "content": "The trip uses $15.53 of gas." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "15.53", "printed": "15.53", "notation": null}
nlprog_det-setting-0075775
Ada earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 43-hour week? Computation in Python: ```python rate = 16.0 hours = 43 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 72.0 pay = regular + overtime # 712.0 print(f"{pay:.2f}") ``` Interpreter output — 712.00 Th...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "712.00", "printed": "712.00", "notation": null}
nlprog_det-setting-0075776
With 22 rows of 18 chairs and 23 empty chairs, how many chairs are taken? Coded up: ```python rows = 22 per_row = 18 empty = 23 seated = rows * per_row - empty # 373 print(seated) ``` stdout: 373 373 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "373", "printed": "373", "notation": null}
nlprog_det-setting-0075777
<|start|><|user|> Monthly rent is $900. A tenant moves in with 18 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 900 days_in_month = 30 days_occupied = 18 prorated = rent * days_occupied / days_in_month # 540.0 print(f"{prorated:.2f}") ``` Python prints 540.00. The tenan...
chat
[ { "role": "user", "content": "Monthly rent is $900. A tenant moves in with 18 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 900\ndays_in_month = 30\ndays_occupied = 18\nprorated = rent * days_occupied / days_in_month # 540.0\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "540.00", "printed": "540.00", "notation": null}
nlprog_det-setting-0075778
From a $5,000 retainer, 3 hours at $200/hour have been drawn. What remains? Here is a short program for it. ```python retainer = 5000 hours = 3 rate = 200 left = retainer - hours * rate # 4400 print(left) ``` Executing it gives 4400. $4,400 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "4400", "printed": "4400", "notation": null}
nlprog_det-setting-0075779
Printing costs 12 cents a page. What does it cost to print 140 copies of a 21-page handout? Written as code: ```python pages = 21 copies = 140 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 352.8 print(f"{cost:.2f}") ``` Printed result — 352.80 The job costs $352.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "352.80", "printed": "352.80", "notation": null}
nlprog_det-setting-0075781
Express 191 hours in days and hours. ```python hours = 191 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The interpreter prints 7 days and 23 hours. That is 7 days and 23 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "7 days and 23 hours", "printed": "7 days and 23 hours", "notation": null}
nlprog_det-setting-0075783
<|start|><|user|> Convert 15 °C to Fahrenheit.<|eot|> <|assistant|> It equals 59 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 15 °C to Fahrenheit." }, { "role": "assistant", "content": "It equals 59 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0075784
507 files go into boxes of 12. How many boxes does that take? It takes 43 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0075785
Shipping costs $8 plus $1.50 per pound. What does a 18-pound parcel cost to ship? Coded up: ```python base = 8 per_pound = 1.5 weight = 18 cost = base + per_pound * weight # 35.0 print(f"{cost:.2f}") ``` Output = 35.00 The charge is $35.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "35.00", "printed": "35.00", "notation": null}
nlprog_det-setting-0075786
At a 6% tax rate, what is the tax on $672.12? Python code: ```python price = 672.12 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 40.3272 print(f"{tax:.2f}") ``` The code prints: 40.33 The tax is $40.33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "40.33", "printed": "40.33", "notation": null}
nlprog_det-setting-0075788
<|start|><|user|> Pilar and Xavier share $912 in the ratio 3:5. How much does Pilar get?<|eot|> <|assistant|> ```python total = 912 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 342 print(share_a) ``` It outputs 342. Pilar gets $342.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Pilar and Xavier share $912 in the ratio 3:5. How much does Pilar get?" }, { "role": "assistant", "content": "```python\ntotal = 912\nparts_a = 3\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 342\nprint(share_a)\n```\nIt outputs 342.\n\nPilar get...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "342", "printed": "342", "notation": null}
nlprog_det-setting-0075789
A trial runs from April 20, 2027 to April 28, 2027, counting both days. How many calendar days is that? Written as code: ```python from datetime import date first = date(2027, 4, 20) # datetime.date(2027, 4, 20) last = date(2027, 4, 28) # datetime.date(2027, 4, 28) days = (last - first).days + 1 # 9 print(days) ```...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0075790
<|start|><|system|> You have access to these functions: {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text....
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"interpreter\", \"description\...
nlprog_det
setting
original
null
deterministic
[]
[]
294
{"gold": "38.5", "printed": "38.5", "notation": null}
nlprog_det-setting-0075791
An invoice lists 3 sticky pads at $12 each, plus 8% sales tax. What is the invoice total? In code: ```python quantity = 3 unit_price = 12 subtotal = quantity * unit_price # 36 total = subtotal * (1 + 8 / 100) # 38.88 print(f"{total:.2f}") ``` The program prints 38.88, as expected. The invoice total is $38.88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "38.88", "printed": "38.88", "notation": null}
nlprog_det-setting-0075792
A meal costs $96.02. How much is a 15% tip? The computation: ```python bill = 96.02 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 14.402999999999999 print(f"{tip:.2f}") ``` Printed: 14.40 The tip is $14.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "14.40", "printed": "14.40", "notation": null}
nlprog_det-setting-0075793
<|start|><|user|> A recipe for 4 people uses 150 grams of lentils. How many grams are needed for 10 people?<|eot|> <|assistant|> ```python grams = 150 serves = 4 needed_for = 10 scaled = grams * needed_for // serves # 375 print(scaled) ``` That prints 375. 375 grams of lentils are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 4 people uses 150 grams of lentils. How many grams are needed for 10 people?" }, { "role": "assistant", "content": "```python\ngrams = 150\nserves = 4\nneeded_for = 10\nscaled = grams * needed_for // serves # 375\nprint(scaled)\n```\nThat prints 375.\n...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0075796
<|start|><|user|> One can of paint covers 250 square feet. How many cans are needed for 185 square feet of wall?<|eot|> <|assistant|> ```python import math area = 185 coverage = 250 cans = math.ceil(area / coverage) # 1 print(cans) ``` Interpreter output — 1 1 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 250 square feet. How many cans are needed for 185 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 185\ncoverage = 250\ncans = math.ceil(area / coverage) # 1\nprint(cans)\n```\nInterpreter output — 1...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0075797
<|start|><|user|> Ivan buys 11 boxes of 12 flash drives each and gives away 15 flash drives. How many flash drives are left?<|eot|> <|assistant|> ```python boxes = 11 per_box = 12 given_away = 15 left = boxes * per_box - given_away # 117 print(left) ``` # out: 117 That leaves 117 flash drives.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Ivan buys 11 boxes of 12 flash drives each and gives away 15 flash drives. How many flash drives are left?" }, { "role": "assistant", "content": "```python\nboxes = 11\nper_box = 12\ngiven_away = 15\nleft = boxes * per_box - given_away # 117\nprint(left)\n```\n# ou...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "117", "printed": "117", "notation": null}
nlprog_det-setting-0075798
A 637-page report must be reviewed in 13 days. How many pages a day is that, evenly? Python: ```python pages = 637 days = 13 per_day = pages // days # 49 print(per_day) ``` Output: 49 That is 49 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "49", "printed": "49", "notation": null}
nlprog_det-setting-0075800
<|start|><|user|> Scale 300 g of flour from 4 servings to 10 servings.<|eot|> <|assistant|> ```python grams = 300 serves = 4 needed_for = 10 scaled = grams * needed_for // serves print(scaled) ``` Printed result: 750 Use 750 g of flour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 300 g of flour from 4 servings to 10 servings." }, { "role": "assistant", "content": "```python\ngrams = 300\nserves = 4\nneeded_for = 10\nscaled = grams * needed_for // serves\nprint(scaled)\n```\nPrinted result: 750\n\nUse 750 g of flour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0075801
<|start|><|user|> How much sales tax is charged on a $269.27 purchase at 5%?<|eot|> <|assistant|> ```python price = 269.27 tax_rate = 5 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` Out: 13.46 $13.46 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $269.27 purchase at 5%?" }, { "role": "assistant", "content": "```python\nprice = 269.27\ntax_rate = 5 / 100\ntax = price * tax_rate\nprint(f\"{tax:.2f}\")\n```\nOut: 13.46\n\n$13.46 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "13.46", "printed": "13.46", "notation": null}
nlprog_det-setting-0075803
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> Split $1,421 between Malik and Cyrus in the ratio 2 to 5. What is Malik's share?<|eot|> <|assistant|> ```python total = 1421 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 406 print(share_a) ``` # result: 406 Malik gets $406.<|eot|...
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "Split $1,421 between Malik and Cyrus in the ratio 2 to 5. What is Malik's share?" }, { "role": "assistant", "content": "```python\ntotal = 1421\nparts_a = 2\nparts_b = 5\nshare_a = total * parts_...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "406", "printed": "406", "notation": null}
nlprog_det-setting-0075804
<|start|><|system|> Be concise.<|eot|> <|user|> 12 boxes hold 25 markers each. After 20 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 12 per_box = 25 given_away = 20 left = boxes * per_box - given_away # 280 print(left) ``` Running it prints 280. That leaves 280 markers.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "12 boxes hold 25 markers each. After 20 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 12\nper_box = 25\ngiven_away = 20\nleft = boxes * per_box - given_away #...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "280", "printed": "280", "notation": null}
nlprog_det-setting-0075805
Monthly: $12. Annual: $114. What is saved per year by paying annually? Translated to Python: ```python monthly = 12 yearly = 114 savings = monthly * 12 - yearly # 30 print(savings) ``` (Run result: 30) $30 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0075806
How many meters are in 4 kilometers? Script: km = 4 meters = km * 1000 # 4000 print(round(meters)) Out = 4000 4,000 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
57
{"gold": "4000", "printed": "4000", "notation": null}
nlprog_det-setting-0075807
<|start|><|user|> From a $5,000 retainer, 7 hours at $250/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 5000 hours = 7 rate = 250 left = retainer - hours * rate # 3250 print(left) ``` # result: 3250 $3,250 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $5,000 retainer, 7 hours at $250/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 5000\nhours = 7\nrate = 250\nleft = retainer - hours * rate # 3250\nprint(left)\n```\n# result: 3250\n\n$3,250 of the retainer i...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "3250", "printed": "3250", "notation": null}
nlprog_det-setting-0075808
The rules require 2/3 of 33 members (round up) to be present. How many is that? ```python import math members = 33 quorum = math.ceil(members * 2 / 3) # 22 print(quorum) ``` Execution result — 22 22 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0075809
Straight-line depreciation: cost $18,000, salvage $2,000, 8 years. How much per year? Coded up: ```python cost = 18000 salvage = 2000 years = 8 per_year = (cost - salvage) / years # 2000.0 print(f"{per_year:.2f}") ``` The program outputs: 2000.00 Depreciation is $2,000.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0075811
<|start|><|system|> You can call tools. Available tools: [{"name": "code_runner", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> A gar...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"code_runner\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
221
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0075812
A lawyer's fee is 33% of a $90,000 recovery. How large is the fee? Programmatically: ```python recovery = 90000 rate = 33 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` (Result: 29700.00) The fee is $29,700.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "29700.00", "printed": "29700.00", "notation": null}
nlprog_det-setting-0075813
Fines run at $250 per day up to a maximum of $2,500. How much after 12 days? Written as code: ```python per_day = 250 days = 12 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` # stdout: 2500 The fine is $2,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0075814
A measure needs at least 67% of 89 votes. How many votes is that, rounded up? Code: ```python import math voters = 89 needed = math.ceil(voters * 67 / 100) # 60 print(needed) ``` When run, it prints: 60 60 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0075815
<|start|><|user|> The building opened in 2017. How many years had passed by 2052?<|eot|> <|assistant|> ```python start_year = 2017 end_year = 2052 print(end_year - start_year) ``` The program prints 35, as expected. 35 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The building opened in 2017. How many years had passed by 2052?" }, { "role": "assistant", "content": "```python\nstart_year = 2017\nend_year = 2052\nprint(end_year - start_year)\n```\nThe program prints 35, as expected.\n\n35 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "35", "printed": "35", "notation": null}