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-0049906
A 120-day notice period begins on January 16, 2025. On what date does it end? Python, step by step: ```python from datetime import date, timedelta start = date(2025, 1, 16) # datetime.date(2025, 1, 16) end = start + timedelta(days=120) # datetime.date(2025, 5, 16) print(end.isoformat()) ``` What it prints — 2025-05-...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2025-05-16", "printed": "2025-05-16", "notation": null}
nlprog_det-setting-0049907
Of a $10,000 budget, $3,500 has been spent. What percent is that? Written as code: ```python budget = 10000 spent = 3500 percent = spent / budget * 100 # 35.0 print(round(percent, 1)) ``` Executing it gives 35.0, as expected. That is 35.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "35.0", "printed": "35.0", "notation": null}
nlprog_det-setting-0049908
Printing costs 12 cents a page. What does it cost to print 31 copies of a 37-page handout? Here's the code. ```python pages = 37 copies = 31 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 137.64 print(f"{cost:.2f}") ``` When run, it prints 137.64. The job costs $137.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "137.64", "printed": "137.64", "notation": null}
nlprog_det-setting-0049909
Olga drove 338 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement? Python version: ```python miles = 338 rate = 0.65 reimbursement = miles * rate # 219.70000000000002 print(f"{reimbursement:.2f}") ``` The program prints 219.70, as expected. The reimbursement is $219.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "219.70", "printed": "219.70", "notation": null}
nlprog_det-setting-0049910
Find the mean of these test scores: 60, 73 and 53. A Python solution: ```python scores = [60, 73, 53] average = sum(scores) // len(scores) # 62 print(average) ``` (Console output: 62) The mean is 62.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "62", "printed": "62", "notation": null}
nlprog_det-setting-0049911
<|start|><|user|> With 11 rows of 15 chairs and 12 empty chairs, how many chairs are taken?<|eot|> <|assistant|> 153 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 11 rows of 15 chairs and 12 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "153 people are seated." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "153", "printed": "153", "notation": null}
nlprog_det-setting-0049912
How many meters are in 26.4 kilometers? Python: ```python km = 26.4 meters = km * 1000 # 26400.0 print(round(meters)) ``` Run output: 26400 26,400 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "26400", "printed": "26400", "notation": null}
nlprog_det-setting-0049913
A library charges $0.15 per book per day late. What is the fine for 2 books that are 19 days late? The computation: ```python per_day = 0.15 days_late = 19 books = 2 fine = per_day * days_late * books # 5.7 print(f"{fine:.2f}") ``` Executed, it shows 5.70. $5.70 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "5.70", "printed": "5.70", "notation": null}
nlprog_det-setting-0049914
4 swims at 300 calories each burn how many calories in total? Computation in Python: ```python per_session = 300 sessions = 4 total = per_session * sessions # 1200 print(total) ``` Result = 1200 1200 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0049915
Papers were served by mail on August 21, 2020. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? Python code: ```python from datetime import date, timedelta served = date(2020, 8, 21) # datetime.date(2020, 8, 21) response_days = 14 mail_days = 3 due = served + timedelta(day...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
178
{"gold": "2020-09-07", "printed": "2020-09-07", "notation": null}
nlprog_det-setting-0049916
<|start|><|user|> A board has 38 members. A majority is more than half. How many votes make a majority?<|eot|> <|assistant|> That is 20 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A board has 38 members. A majority is more than half. How many votes make a majority?" }, { "role": "assistant", "content": "That is 20 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0049917
<|start|><|user|> Mateo earns a 3% commission on $10,972 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 10972 rate = 3 / 100 # 0.03 commission = sales * rate # 329.15999999999997 print(f"{commission:.2f}") ``` The program prints 329.16. The commission is $329.16.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Mateo earns a 3% commission on $10,972 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 10972\nrate = 3 / 100 # 0.03\ncommission = sales * rate # 329.15999999999997\nprint(f\"{commission:.2f}\")\n```\nThe program prints 3...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "329.16", "printed": "329.16", "notation": null}
nlprog_det-setting-0049918
<|start|><|user|> After a 30% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> award = 30000 fee = award * 30 / 100 # 9000.0 remaining = award - fee # 21000.0 per_client = remaining / 2 # 10500.0 print(f"{per_clie...
chat
[ { "role": "user", "content": "After a 30% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": " award = 30000\n fee = award * 30 / 100 # 9000.0\n remaining = award - fee # 21000.0\n pe...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "10500.00", "printed": "10500.00", "notation": null}
nlprog_det-setting-0049919
<|start|><|user|> How many of 131 votes make 67% (round up)?<|eot|> <|assistant|> ```python import math voters = 131 needed = math.ceil(voters * 67 / 100) # 88 print(needed) ``` Running it prints 88, as expected. At least 88 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 131 votes make 67% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 131\nneeded = math.ceil(voters * 67 / 100) # 88\nprint(needed)\n```\nRunning it prints 88, as expected.\n\nAt least 88 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "88", "printed": "88", "notation": null}
nlprog_det-setting-0049920
The rules require 1/3 of 28 members (round up) to be present. How many is that? Python does the arithmetic: ```python import math members = 28 quorum = math.ceil(members * 1 / 3) # 10 print(quorum) ``` # execution result: 10 That is 10 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0049921
4 boxes hold 25 scissors each. After 5 are handed out, how many are left? A Python solution: ```python boxes = 4 per_box = 25 given_away = 5 left = boxes * per_box - given_away print(left) ``` What it prints — 95 That leaves 95 scissors.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0049922
Shipping costs $5 plus $1.20 per pound. What does a 15-pound parcel cost to ship? Here is the program. ```python base = 5 per_pound = 1.2 weight = 15 cost = base + per_pound * weight # 23.0 print(f"{cost:.2f}") ``` This prints 23.00, as expected. The charge is $23.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "23.00", "printed": "23.00", "notation": null}
nlprog_det-setting-0049923
<|start|><|user|> Divide 149 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 149 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` (stdout: 29 each, 4 left over) 29 ...
chat
[ { "role": "user", "content": "Divide 149 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 149\ngroups = 5\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "29 each, 4 left over", "printed": "29 each, 4 left over", "notation": null}
nlprog_det-setting-0049924
<|start|><|user|> A chair costs $40. It is 40% off. What is the sale price?<|eot|> <|assistant|> ```python price = 40 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 24.0 print(f"{sale_price:.2f}") ``` # printed result: 24.00 It costs $24.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A chair costs $40. It is 40% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 40\ndiscount = 40 / 100 # 0.4\nsale_price = price * (1 - discount) # 24.0\nprint(f\"{sale_price:.2f}\")\n```\n# printed result: 24.00\n\nIt costs $2...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0049925
At 1.5% a month (simple), what interest builds on $4,000 over 3 months? We can compute it in Python. ```python balance = 4000 monthly_rate = 1.5 / 100 # 0.015 months = 3 interest = balance * monthly_rate * months # 180.0 print(f"{interest:.2f}") ``` Execution prints 180.00, as expected. $180.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "180.00", "printed": "180.00", "notation": null}
nlprog_det-setting-0049926
Fines run at $25 per day up to a maximum of $1,000. How much after 47 days? $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0049927
<|start|><|user|> Arjun was born on March 1, 1952. How old is Arjun on September 24, 2025?<|eot|> <|assistant|> ```python from datetime import date born = date(1952, 3, 1) # datetime.date(1952, 3, 1) on = date(2025, 9, 24) # datetime.date(2025, 9, 24) age = on.year - born.year - ((on.month, on.day) < (born.month, bor...
chat
[ { "role": "user", "content": "Arjun was born on March 1, 1952. How old is Arjun on September 24, 2025?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1952, 3, 1) # datetime.date(1952, 3, 1)\non = date(2025, 9, 24) # datetime.date(2025, 9, 24)\nage = on...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0049928
Under a 33% contingency agreement, what fee is owed on a $12,000 award? The lawyer's fee comes to $3,960.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "3960.00", "printed": "3960.00", "notation": null}
nlprog_det-setting-0049929
What is -15 degrees Celsius in Fahrenheit? As a program: celsius = -15 fahrenheit = celsius * 9 / 5 + 32 # 5.0 print(round(fahrenheit)) The code prints: 5 That is 5 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0049930
Each of Kofi's bike rides burns 200 calories. How many calories over 7 bike rides? ```python per_session = 200 sessions = 7 total = per_session * sessions print(total) ``` That prints 1400. 1400 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0049931
A recipe for 2 people uses 240 grams of rice. How many grams are needed for 10 people? The computation: ```python grams = 240 serves = 2 needed_for = 10 scaled = grams * needed_for // serves # 1200 print(scaled) ``` When run, it prints 1200. 1200 grams of rice are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0049933
Ivan and Grace share $4,571 in the ratio 3:4. How much does Ivan get? Programmatically: ```python total = 4571 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 1959 print(share_a) ``` That prints: 1959 Ivan's share is $1,959.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1959", "printed": "1959", "notation": null}
nlprog_det-setting-0049934
<|start|><|system|> Tool definitions: [{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters":...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"eval_python\", \"description\": \"Python sandb...
nlprog_det
setting
original
null
deterministic
[]
[]
340
{"gold": "2022-05-25", "printed": "2022-05-25", "notation": null}
nlprog_det-setting-0049935
A water bill is $15 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 22 thousand gallons? In Python: ```python base = 15 rate = 4.2 used = 22 free = 2 bill = base + rate * max(0, used - free) # 99.0 print(f"{bill:.2f}") ``` Execution prints 99.00. The bill is $99.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "99.00", "printed": "99.00", "notation": null}
nlprog_det-setting-0049936
At $0.65 per mile, what is the reimbursement for 80 miles? The Python version: ```python miles = 80 rate = 0.65 reimbursement = miles * rate # 52.0 print(f"{reimbursement:.2f}") ``` # execution result: 52.00 Goran is owed $52.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "52.00", "printed": "52.00", "notation": null}
nlprog_det-setting-0049937
A 8 × 12 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Computation in Python: ```python import math length = 8 width = 12 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 24 print(tiles) ``` The run gives 24, as expected. 24 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0049938
A shift runs from 7:53 AM to 11:11 AM. How long is it in minutes? Here's the code. start = 7 * 60 + 53 # 473 end = 11 * 60 + 11 # 671 print(end - start) Running this gives: 198 It is 198 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "198", "printed": "198", "notation": null}
nlprog_det-setting-0049939
39 mugs cost $9 apiece. With 6% tax added, what is the total? A Python solution: ```python quantity = 39 unit_price = 9 subtotal = quantity * unit_price total = subtotal * (1 + 6 / 100) print(f"{total:.2f}") ``` Run it and it prints: 372.06 The total with tax is $372.06.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "372.06", "printed": "372.06", "notation": null}
nlprog_det-setting-0049940
<|start|><|user|> 637 files go into boxes of 50. How many boxes does that take?<|eot|> <|assistant|> import math files = 637 per_box = 50 boxes = math.ceil(files / per_box) # 13 print(boxes) Console output — 13 13 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "637 files go into boxes of 50. How many boxes does that take?" }, { "role": "assistant", "content": " import math\n files = 637\n per_box = 50\n boxes = math.ceil(files / per_box) # 13\n print(boxes)\nConsole output — 13\n\n13 boxes are needed." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0049941
A 32 lb package ships at $12 base plus $1.50/lb. What is the charge? The charge is $60.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0049942
<|start|><|user|> Abel buys 7 boxes of 25 tape rolls each and gives away 4 tape rolls. How many tape rolls are left?<|eot|> <|assistant|> ```python boxes = 7 per_box = 25 given_away = 4 left = boxes * per_box - given_away # 171 print(left) ``` # output: 171 That leaves 171 tape rolls.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Abel buys 7 boxes of 25 tape rolls each and gives away 4 tape rolls. How many tape rolls are left?" }, { "role": "assistant", "content": "```python\nboxes = 7\nper_box = 25\ngiven_away = 4\nleft = boxes * per_box - given_away # 171\nprint(left)\n```\n# output: 171\...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "171", "printed": "171", "notation": null}
nlprog_det-setting-0049943
What is a 22% tip on a $154.65 bill? The Python version: ```python bill = 154.65 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 34.023 print(f"{tip:.2f}") ``` Printed = 34.02 The tip is $34.02.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "34.02", "printed": "34.02", "notation": null}
nlprog_det-setting-0049944
Counting the first and last day, how many days are there from February 22, 2024 through March 5, 2024? A few lines of Python do it: ```python from datetime import date first = date(2024, 2, 22) # datetime.date(2024, 2, 22) last = date(2024, 3, 5) # datetime.date(2024, 3, 5) days = (last - first).days + 1 # 13 print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0049945
<|start|><|system|> Tools (call with JSON): {"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> Shipping costs $8 plus $2.00 per...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"cod...
nlprog_det
setting
original
null
deterministic
[]
[]
232
{"gold": "28.00", "printed": "28.00", "notation": null}
nlprog_det-setting-0049946
A measure needs at least 67% of 183 votes. How many votes is that, rounded up? We write it as a program: ```python import math voters = 183 needed = math.ceil(voters * 67 / 100) # 123 print(needed) ``` Interpreter output — 123 123 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "123", "printed": "123", "notation": null}
nlprog_det-setting-0049947
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> A meal costs $211.71. How much is a 25% tip?<|eot|> <|assistant|> ```python bill = 211.71 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 52.9275 print(f"{tip:.2f}") ``` (Printed result: 52.93) Leave $52.93.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "A meal costs $211.71. How much is a 25% tip?" }, { "role": "assistant", "content": "```python\nbill = 211.71\ntip_rate = 25 / 100 # 0.25\ntip = bill * tip_rate # 52.9275\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "52.93", "printed": "52.93", "notation": null}
nlprog_det-setting-0049948
<|start|><|system|> Available functions (JSON Schema): {"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> What percentage of $5,000 i...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
198
{"gold": "4.0", "printed": "4.0", "notation": null}
nlprog_det-setting-0049949
A $1,000 security deposit has deductions of $150, $120 and $120. How much is refunded? Here is the program. ```python deposit = 1000 deductions = [150, 120, 120] refund = deposit - sum(deductions) # 610 print(refund) ``` Interpreter output: 610 The refund is $610.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "610", "printed": "610", "notation": null}
nlprog_det-setting-0049950
Which is cheaper per unit: 12 for $9.09 (A) or 24 for $10.89 (B)? The computation: ```python pack_a = 9.09 / 12 pack_b = 10.89 / 24 cheaper = "A" if pack_a < pack_b else "B" print(cheaper) ``` Run result — B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0049951
<|start|><|user|> Someone works 20 hours at $17.23 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 17.23 hours = 20 earnings = rate * hours # 344.6 print(f"{earnings:.2f}") ``` It prints 344.60, as expected. That earns $344.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 20 hours at $17.23 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 17.23\nhours = 20\nearnings = rate * hours # 344.6\nprint(f\"{earnings:.2f}\")\n```\nIt prints 344.60, as expected.\n\nThat earns $344.60." ...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "344.60", "printed": "344.60", "notation": null}
nlprog_det-setting-0049952
<|start|><|user|> Revenue is $38,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 38000 costs = 36000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 5.263157894736842 print(round(margin, 1)) ``` Console output — 5.3...
chat
[ { "role": "user", "content": "Revenue is $38,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 38000\ncosts = 36000\nprofit = revenue - costs # 2000\nmargin = profit / revenue * 100 # 5.263157...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "5.3", "printed": "5.3", "notation": null}
nlprog_det-setting-0049953
<|start|><|user|> Starting from $8,000, the team spends $355, $2,196, $3,583. What remains?<|eot|> <|assistant|> ```python budget = 8000 expenses = [355, 2196, 3583] left = budget - sum(expenses) # 1866 print(left) ``` When run, it prints 1866, as expected. The remaining budget is $1,866.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $8,000, the team spends $355, $2,196, $3,583. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nexpenses = [355, 2196, 3583]\nleft = budget - sum(expenses) # 1866\nprint(left)\n```\nWhen run, it prints 1866, as expected.\n...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1866", "printed": "1866", "notation": null}
nlprog_det-setting-0049954
At 1% a month (simple), what interest builds on $1,000 over 3 months? In code: ```python balance = 1000 monthly_rate = 1 / 100 # 0.01 months = 3 interest = balance * monthly_rate * months # 30.0 print(f"{interest:.2f}") ``` Run output — 30.00 The interest is $30.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "30.00", "printed": "30.00", "notation": null}
nlprog_det-setting-0049955
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Convert 10 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = 10 fahrenheit = celsius * 9 / 5 + 32 # 50.0 print(round(fahrenheit)) ``` This prints 50. It equals 50 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Convert 10 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = 10\nfahrenheit = celsius * 9 / 5 + 32 # 50.0\nprint(round(fahrenheit))\n```\nThis prints 50.\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0049956
<|start|><|user|> A 60-page report must be reviewed in 5 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 60 days = 5 per_day = pages // days # 12 print(per_day) ``` Run it and it prints: 12 That is 12 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 60-page report must be reviewed in 5 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 60\ndays = 5\nper_day = pages // days # 12\nprint(per_day)\n```\nRun it and it prints: 12\n\nThat is 12 pages per day." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0049957
<|start|><|user|> A storeroom has 251 paper reams. The office uses 19 a day. How many are left after 7 days?<|eot|> <|assistant|> ```python stock = 251 per_day = 19 days = 7 left = stock - per_day * days # 118 print(left) ``` Printed result — 118 118 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 251 paper reams. The office uses 19 a day. How many are left after 7 days?" }, { "role": "assistant", "content": "```python\nstock = 251\nper_day = 19\ndays = 7\nleft = stock - per_day * days # 118\nprint(left)\n```\nPrinted result — 118\n\n118 rema...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "118", "printed": "118", "notation": null}
nlprog_det-setting-0049958
7 walks at 400 calories each burn how many calories in total? We can compute it in Python. ```python per_session = 400 sessions = 7 total = per_session * sessions print(total) ``` Run output — 2800 That burns 2800 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "2800", "printed": "2800", "notation": null}
nlprog_det-setting-0049959
<|start|><|system|> Functions: {"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "convert_units", "description": "Convert a quantity ...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}\n{\"na...
nlprog_det
setting
original
null
deterministic
[]
[]
376
{"gold": "2018-03-09", "printed": "2018-03-09", "notation": null}
nlprog_det-setting-0049960
Convert 1 h 45 min (the length of a workshop) to minutes. Here's the code. ```python hours = 1 minutes = 45 total_minutes = hours * 60 + minutes # 105 print(total_minutes) ``` The run gives 105, as expected. The workshop lasted 105 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "105", "printed": "105", "notation": null}
nlprog_det-setting-0049961
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> At $25.73 an hour, what does 38 hours of work pay?<|eot|> <|assistant|> ```python rate = 25.73 hours = 38 earnings = rate * hours # 977.74 print(f"{earnings:.2f}") ``` Output — 977.74 The pay is $977.74.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "At $25.73 an hour, what does 38 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 25.73\nhours = 38\nearnings = rate * hours # 977.74\nprint(f\"{earni...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "977.74", "printed": "977.74", "notation": null}
nlprog_det-setting-0049962
<|start|><|user|> Diego drove 615 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> The reimbursement is $399.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Diego drove 615 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "The reimbursement is $399.75." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "399.75", "printed": "399.75", "notation": null}
nlprog_det-setting-0049963
How many weekdays (Monday to Friday) fall after February 15, 2020 up to and including February 21, 2020? Programmatically: ```python from datetime import date, timedelta start = date(2020, 2, 15) end = date(2020, 2, 21) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() <...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0049964
Prorate $1,800 of monthly rent for 22 days of a 31-day month. The program: ```python rent = 1800 days_in_month = 31 days_occupied = 22 prorated = rent * days_occupied / days_in_month # 1277.4193548387098 print(f"{prorated:.2f}") ``` Result: 1277.42 The prorated rent is $1,277.42.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "1277.42", "printed": "1277.42", "notation": null}
nlprog_det-setting-0049965
Goods bought on April 19, 2019 carry a 6-month warranty. When does it expire? The warranty ends on October 19, 2019.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "2019-10-19", "printed": "2019-10-19", "notation": null}
nlprog_det-setting-0049966
Parking is $3 per hour with a daily maximum of $20. What do 11 hours cost? Here's the code. ```python rate = 3 hours = 11 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` stdout: 20 Parking costs $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0049967
An office budget of $20,000 has expenses of $2,611, $658. How much of the budget is left? A few lines of Python do it: ```python budget = 20000 expenses = [2611, 658] left = budget - sum(expenses) # 16731 print(left) ``` Interpreter output — 16731 $16,731 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "16731", "printed": "16731", "notation": null}
nlprog_det-setting-0049968
<|start|><|user|> Papers were served by mail on July 15, 2024. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2024, 7, 15) response_days = 21 mail_days = 3 due = served + timedelta(days=respo...
chat
[ { "role": "user", "content": "Papers were served by mail on July 15, 2024. A response is due 21 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(2024, 7, 15)\nresponse_da...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2024-08-08", "printed": "2024-08-08", "notation": null}
nlprog_det-setting-0049969
Yusuf buys 7 boxes of 10 pens each and gives away 7 pens. How many pens are left? Computation in Python: ```python boxes = 7 per_box = 10 given_away = 7 left = boxes * per_box - given_away # 63 print(left) ``` # stdout: 63 That leaves 63 pens.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "63", "printed": "63", "notation": null}
nlprog_det-setting-0049970
The bridge was finished in 1998. How many years had passed by 2026? Set it up in Python: ```python start_year = 1998 end_year = 2026 print(end_year - start_year) ``` Python prints 28. That is 28 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0049971
The landlord deducts $45 and $85 from a $2,000 deposit. What is returned to the tenant? The Python version: ```python deposit = 2000 deductions = [45, 85] refund = deposit - sum(deductions) # 1870 print(refund) ``` Console output: 1870 $1,870 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1870", "printed": "1870", "notation": null}
nlprog_det-setting-0049972
A 37 lb package ships at $8 base plus $1.50/lb. What is the charge? The charge is $63.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "63.50", "printed": "63.50", "notation": null}
nlprog_det-setting-0049973
At 2% a month (simple), what interest builds on $2,500 over 5 months? Python does the arithmetic: ```python balance = 2500 monthly_rate = 2 / 100 months = 5 interest = balance * monthly_rate * months print(f"{interest:.2f}") ``` What it prints — 250.00 The interest is $250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "250.00", "printed": "250.00", "notation": null}
nlprog_det-setting-0049974
Scale 300 g of flour from 8 servings to 10 servings. Computation in Python: ```python grams = 300 serves = 8 needed_for = 10 scaled = grams * needed_for // serves # 375 print(scaled) ``` When run, it prints 375, as expected. Use 375 g of flour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0049975
<|start|><|user|> A training session lasted 2 hours and 38 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 2 minutes = 38 total_minutes = hours * 60 + minutes # 158 print(total_minutes) ``` The printout reads 158. That is 158 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A training session lasted 2 hours and 38 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 2\nminutes = 38\ntotal_minutes = hours * 60 + minutes # 158\nprint(total_minutes)\n```\nThe printout reads 158.\n\nThat is 158 minu...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "158", "printed": "158", "notation": null}
nlprog_det-setting-0049977
The paralegal logged 1.5 hours at a rate of $300. How much is billed? Written as code: hours = 1.5 rate = 300 bill = hours * rate # 450.0 print(f"{bill:.2f}") The run gives: 450.00 The bill is $450.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0049978
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Shipping costs $12 plus $0.75 per pound. What does a 32-pound parcel cost to ship?<|eot|> <|assistant|> base = 12 per_pound = 0.75 weight = 32 cost = base + per_pound * weight # 36.0 print(f"{cost:.2f}") The program prints...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Shipping costs $12 plus $0.75 per pound. What does a 32-pound parcel cost to ship?" }, { "role": "assistant", "content": " base = 12\n per_pound = 0.75\n weight = 32\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0049979
Meals are $64 per day and lodging $110 per night. What is the allowance for 9 days and 8 nights? Python makes this quick: days = 9 meal_rate = 64 lodging_rate = 110 nights = days - 1 # 8 total = days * meal_rate + nights * lodging_rate # 1456 print(total) Python prints 1456, as expected. The...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1456", "printed": "1456", "notation": null}
nlprog_det-setting-0049980
A 7-day trip pays $74 a day for meals and $175 a night for lodging (6 nights). What is the total allowance? Computing it: ```python days = 7 meal_rate = 74 lodging_rate = 175 nights = days - 1 # 6 total = days * meal_rate + nights * lodging_rate # 1568 print(total) ``` That prints: 1568 That comes to $1,568.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "1568", "printed": "1568", "notation": null}
nlprog_det-setting-0049981
A car travels 492 miles in 2 hours. What is its average speed in miles per hour? Let's compute it with Python. ```python distance = 492 hours = 2 speed = distance / hours # 246.0 print(round(speed)) ``` Run output: 246 The average speed is 246 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "246", "printed": "246", "notation": null}
nlprog_det-setting-0049982
Equipment costs $45,000, has a salvage value of $6,000, and a useful life of 5 years. What is the straight-line depreciation per year? Depreciation is $7,800.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "7800.00", "printed": "7800.00", "notation": null}
nlprog_det-setting-0049983
<|start|><|user|> A kettle costs $250. It is 25% off. What is the sale price?<|eot|> <|assistant|> ```python price = 250 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 187.5 print(f"{sale_price:.2f}") ``` # result: 187.50 It costs $187.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A kettle costs $250. It is 25% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 250\ndiscount = 25 / 100 # 0.25\nsale_price = price * (1 - discount) # 187.5\nprint(f\"{sale_price:.2f}\")\n```\n# result: 187.50\n\nIt costs $187...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "187.50", "printed": "187.50", "notation": null}
nlprog_det-setting-0049984
<|start|><|user|> A 330-page report must be reviewed in 15 days. How many pages a day is that, evenly?<|eot|> <|assistant|> That is 22 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 330-page report must be reviewed in 15 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "That is 22 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0049986
<|start|><|system|> You have access to these functions: [{"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A customer buys 3 sci...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
256
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0049987
<|start|><|system|> You may call the tools below. [{"name": "compute", "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"]}}]<|eot|> <|user|> Sales w...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"compute\", \"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\"...
nlprog_det
setting
original
null
deterministic
[]
[]
202
{"gold": "-50", "printed": "-50", "notation": null}
nlprog_det-setting-0049988
With 40% off, what does a $75 kettle cost? Programmatically: ```python price = 75 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 45.0 print(f"{sale_price:.2f}") ``` Out = 45.00 The sale price is $45.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "45.00", "printed": "45.00", "notation": null}
nlprog_det-setting-0049989
<|start|><|user|> A measure needs at least 60% of 172 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 172 needed = math.ceil(voters * 60 / 100) # 104 print(needed) ``` The program prints 104, as expected. 104 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 60% of 172 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 172\nneeded = math.ceil(voters * 60 / 100) # 104\nprint(needed)\n```\nThe program prints 104, as expected.\n\n104 ...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0049990
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"P...
nlprog_det
setting
original
null
deterministic
[]
[]
279
{"gold": "2026-02-18", "printed": "2026-02-18", "notation": null}
nlprog_det-setting-0049991
<|start|><|user|> Convert 7.1 km to meters.<|eot|> <|assistant|> ```python km = 7.1 meters = km * 1000 # 7100.0 print(round(meters)) ``` Running this gives 7100. 7,100 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 7.1 km to meters." }, { "role": "assistant", "content": "```python\nkm = 7.1\nmeters = km * 1000 # 7100.0\nprint(round(meters))\n```\nRunning this gives 7100.\n\n7,100 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "7100", "printed": "7100", "notation": null}
nlprog_det-setting-0049992
At $23.36 an hour, what does 24 hours of work pay? Written as code: ```python rate = 23.36 hours = 24 earnings = rate * hours # 560.64 print(f"{earnings:.2f}") ``` (Program output: 560.64) That earns $560.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "560.64", "printed": "560.64", "notation": null}
nlprog_det-setting-0049993
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> A shift runs from 8:31 AM to 1:30 PM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 8 * 60 + 31 # 511 end = 13 * 60 + 30 # 810 print(end - start) ``` (Output: 299) It is 299 minutes long.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "A shift runs from 8:31 AM to 1:30 PM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 31 # 511\nend = 13 * 60 + 30 # 810\nprint(end -...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "299", "printed": "299", "notation": null}
nlprog_det-setting-0049994
A 3% increase is applied to $1,800 monthly rent. What is the new amount? Script: rent = 1800 increase = 3 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") # console output: 1854.00 It rises to $1,854.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1854.00", "printed": "1854.00", "notation": null}
nlprog_det-setting-0049995
Counting only Monday through Friday, how many business days are there after October 23, 2020 through November 10, 2020? 12 weekdays.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0049996
<|start|><|user|> Counting only Monday through Friday, how many business days are there after May 27, 2027 through July 2, 2027?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2027, 5, 27) end = date(2027, 7, 2) count = 0 for k in range(1, (end - start).days + 1): if (start + timed...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after May 27, 2027 through July 2, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 5, 27)\nend = date(2027, 7, 2)\ncount = 0\nfor k...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0049997
An invoice lists 39 paper reams at $15 each, plus 5% sales tax. What is the invoice total? The total with tax is $614.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "614.25", "printed": "614.25", "notation": null}
nlprog_det-setting-0049998
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Goods bought on September 20, 2020 carry a 18-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2020, 9, 20) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(sta...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Goods bought on September 20, 2020 carry a 18-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2020, 9, 20...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "2022-03-20", "printed": "2022-03-20", "notation": null}
nlprog_det-setting-0049999
What commission does Bruna make on $43,204 in sales at 10%? A Python solution: ```python sales = 43204 rate = 10 / 100 commission = sales * rate print(f"{commission:.2f}") ``` Output of the run: 4320.40 The commission is $4,320.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "4320.40", "printed": "4320.40", "notation": null}
nlprog_det-setting-0050000
<|start|><|system|> You can call tools. Available tools: [{"name": "sandbox_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "business_days", "descr...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"sandbox_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
290
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0050001
Filing fees are $35 per document. What do 8 filings cost? Let's compute it with Python. ```python fee = 35 filings = 8 total = fee * filings # 280 print(total) ``` # stdout: 280 The total fee is $280.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "280", "printed": "280", "notation": null}
nlprog_det-setting-0050002
<|start|><|user|> After a 40% fee is taken from a $96,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 96000 fee = award * 40 / 100 # 38400.0 remaining = award - fee # 57600.0 per_client = remaining / 4 # 14400.0 print(f"{per_client:.2f}")...
chat
[ { "role": "user", "content": "After a 40% fee is taken from a $96,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 96000\nfee = award * 40 / 100 # 38400.0\nremaining = award - fee # 57600.0\nper_cl...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "14400.00", "printed": "14400.00", "notation": null}
nlprog_det-setting-0050003
<|start|><|user|> A count moves from 1,200 to 1,800. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 1200 new = 1800 change = (new - old) / old * 100 # 50.0 print(round(change)) ``` stdout — 50 The change is 50%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 1,200 to 1,800. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 1200\nnew = 1800\nchange = (new - old) / old * 100 # 50.0\nprint(round(change))\n```\nstdout — 50\n\nThe change i...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0050004
Equipment costs $12,000, has a salvage value of $0, and a useful life of 4 years. What is the straight-line depreciation per year? Programmatically: ```python cost = 12000 salvage = 0 years = 4 per_year = (cost - salvage) / years # 3000.0 print(f"{per_year:.2f}") ``` (Printed: 3000.00) $3,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0050005
Sales went from 2,000 to 1,800. What is the percent change? Computation in Python: ```python old = 2000 new = 1800 change = (new - old) / old * 100 # -10.0 print(round(change)) ``` (Out: -10) The change is -10%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "-10", "printed": "-10", "notation": null}
nlprog_det-setting-0050006
Express 356 hours in days and hours. 356 hours is 14 days and 20 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "14 days and 20 hours", "printed": "14 days and 20 hours", "notation": null}
nlprog_det-setting-0050007
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> A meal costs $81.94. How much is a 15% tip?<|eot|> <|assistant|> ```python bill = 81.94 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 12.290999999999999 print(f"{tip:.2f}") ``` Run result: 12.29 Leave $12.29.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "A meal costs $81.94. How much is a 15% tip?" }, { "role": "assistant", "content": "```python\nbill = 81.94\ntip_rate = 15 / 100 # 0.15\ntip = bill * tip_rate # 12.290999999999999\nprint(f...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "12.29", "printed": "12.29", "notation": null}
nlprog_det-setting-0050008
With 28 rows of 17 chairs and 11 empty chairs, how many chairs are taken? As Python: ```python rows = 28 per_row = 17 empty = 11 seated = rows * per_row - empty # 465 print(seated) ``` Printed — 465 465 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "465", "printed": "465", "notation": null}