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-0050655
<|start|><|user|> Straight-line depreciation: cost $12,000, salvage $2,000, 3 years. How much per year?<|eot|> <|assistant|> $3,333.33 a year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $12,000, salvage $2,000, 3 years. How much per year?" }, { "role": "assistant", "content": "$3,333.33 a year." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "3333.33", "printed": "3333.33", "notation": null}
nlprog_det-setting-0050656
<|start|><|user|> Walls total 736 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 736 coverage = 400 cans = math.ceil(area / coverage) # 2 print(cans) ``` Execution result — 2 2 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 736 sq ft and each can covers 400 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 736\ncoverage = 400\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nExecution result — 2\n\n2 cans a...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0050657
<|start|><|system|> Tools you may use: [{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "get_weather", "...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
380
{"gold": "26 each, 0 left over", "printed": "26 each, 0 left over", "notation": null}
nlprog_det-setting-0050658
<|start|><|user|> 3 books come back 21 days late, at $0.10 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.1 days_late = 21 books = 3 fine = per_day * days_late * books # 6.300000000000001 print(f"{fine:.2f}") ``` (Printed: 6.30) $6.30 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 books come back 21 days late, at $0.10 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.1\ndays_late = 21\nbooks = 3\nfine = per_day * days_late * books # 6.300000000000001\nprint(f\"{fine:.2f}\")\n```\n(Printed: 6.30)\n...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "6.30", "printed": "6.30", "notation": null}
nlprog_det-setting-0050659
Buying 6 mugs at $28 each, 3 lanyards at $27 each, 1 folders at $10 each, 1 headsets at $28 each, someone hands over $300. What change comes back? The change is $13.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
59
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0050660
<|start|><|user|> 9 boxes hold 10 mugs each. After 19 are handed out, how many are left?<|eot|> <|assistant|> 71 mugs are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "9 boxes hold 10 mugs each. After 19 are handed out, how many are left?" }, { "role": "assistant", "content": "71 mugs are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0050661
6 friends split a $210 bill plus a 20% tip evenly. How much does each pay? Let's compute it with Python. ```python bill = 210 tip_rate = 20 / 100 # 0.2 people = 6 each = bill * (1 + tip_rate) / people # 42.0 print(f"{each:.2f}") ``` Run result = 42.00 The share is $42.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "42.00", "printed": "42.00", "notation": null}
nlprog_det-setting-0050662
<|start|><|user|> What average speed covers 214 miles in 2 hours?<|eot|> <|assistant|> ```python distance = 214 hours = 2 speed = distance / hours # 107.0 print(round(speed)) ``` The program prints: 107 The average speed is 107 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 214 miles in 2 hours?" }, { "role": "assistant", "content": "```python\ndistance = 214\nhours = 2\nspeed = distance / hours # 107.0\nprint(round(speed))\n```\nThe program prints: 107\n\nThe average speed is 107 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "107", "printed": "107", "notation": null}
nlprog_det-setting-0050663
At $31.40 an hour, what does 32 hours of work pay? As Python: rate = 31.4 hours = 32 earnings = rate * hours # 1004.8 print(f"{earnings:.2f}") Out = 1004.80 That earns $1,004.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "1004.80", "printed": "1004.80", "notation": null}
nlprog_det-setting-0050664
<|start|><|user|> A claim accrued on May 22, 2022. The limitations period is 4 years. On what date does it expire?<|eot|> <|assistant|> The period expires on May 22, 2026.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A claim accrued on May 22, 2022. The limitations period is 4 years. On what date does it expire?" }, { "role": "assistant", "content": "The period expires on May 22, 2026." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "2026-05-22", "printed": "2026-05-22", "notation": null}
nlprog_det-setting-0050665
A measure needs at least 67% of 137 votes. How many votes is that, rounded up? Script: ```python import math voters = 137 needed = math.ceil(voters * 67 / 100) # 92 print(needed) ``` What it prints — 92 92 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "92", "printed": "92", "notation": null}
nlprog_det-setting-0050666
<|start|><|user|> A storeroom has 1974 desk lamps. The office uses 8 a day. How many are left after 10 days?<|eot|> <|assistant|> ```python stock = 1974 per_day = 8 days = 10 left = stock - per_day * days # 1894 print(left) ``` What it prints — 1894 1894 desk lamps are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 1974 desk lamps. The office uses 8 a day. How many are left after 10 days?" }, { "role": "assistant", "content": "```python\nstock = 1974\nper_day = 8\ndays = 10\nleft = stock - per_day * days # 1894\nprint(left)\n```\nWhat it prints — 1894\n\n1894 ...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1894", "printed": "1894", "notation": null}
nlprog_det-setting-0050667
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 47 hours? A Python solution: ```python rate = 18.5 hours = 47 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 194.25 pay = regular + overtime # 934.25 print(f"{pay:.2f}") ``` The script prints 934.25. The week...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "934.25", "printed": "934.25", "notation": null}
nlprog_det-setting-0050668
Monthly: $9. Annual: $72. What is saved per year by paying annually? Python version: ```python monthly = 9 yearly = 72 savings = monthly * 12 - yearly # 36 print(savings) ``` Program output: 36 The annual plan saves $36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0050669
Flooring at $4/sq ft for a 24 ft × 10 ft room costs how much? It costs $960.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "960", "printed": "960", "notation": null}
nlprog_det-setting-0050670
<|start|><|user|> Each of Idris's swims burns 200 calories. How many calories over 5 swims?<|eot|> <|assistant|> ```python per_session = 200 sessions = 5 total = per_session * sessions # 1000 print(total) ``` Output: 1000 1000 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Idris's swims burns 200 calories. How many calories over 5 swims?" }, { "role": "assistant", "content": "```python\nper_session = 200\nsessions = 5\ntotal = per_session * sessions # 1000\nprint(total)\n```\nOutput:\n1000\n\n1000 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0050671
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> 6 walks at 350 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 350 sessions = 6 total = per_session * sessions print(total) ``` # out: 2100 That burns 2100 calories.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "6 walks at 350 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 350\nsessions = 6\ntotal = per_session * sessions\nprint(total)...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0050672
129 copies of a 14-page packet are printed at $0.10 per page. What is the cost? We can compute it in Python. ```python pages = 14 copies = 129 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 180.60000000000002 print(f"{cost:.2f}") ``` Executing it gives: 180.60 Printing costs $180.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "180.60", "printed": "180.60", "notation": null}
nlprog_det-setting-0050673
<|start|><|user|> What average speed covers 536 miles in 2 hours?<|eot|> <|assistant|> ```python distance = 536 hours = 2 speed = distance / hours # 268.0 print(round(speed)) ``` stdout: 268 The average speed is 268 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 536 miles in 2 hours?" }, { "role": "assistant", "content": "```python\ndistance = 536\nhours = 2\nspeed = distance / hours # 268.0\nprint(round(speed))\n```\nstdout:\n268\n\nThe average speed is 268 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "268", "printed": "268", "notation": null}
nlprog_det-setting-0050674
The paralegal logged 1.5 hours at a rate of $350. How much is billed? The bill is $525.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "525.00", "printed": "525.00", "notation": null}
nlprog_det-setting-0050675
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> Leon has 4 documents to file, and each filing costs $75. How much are the filing fees in total?<|eot|> <|assistant|> The total fee is $300.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "Leon has 4 documents to file, and each filing costs $75. How much are the filing fees in total?" }, { "role": "assistant", "content": "The total fee is $300." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0050676
What is the total rent on a 24-month lease at $850 a month? We can compute it in Python. monthly_rent = 850 months = 24 total = monthly_rent * months # 20400 print(total) The script prints: 20400 The rent over the term is $20,400.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "20400", "printed": "20400", "notation": null}
nlprog_det-setting-0050677
Convert 7,173 USD to EUR at 1 USD = 0.92 EUR. Python makes this quick: ```python amount = 7173 rate = 0.92 converted = amount * rate # 6599.16 print(f"{converted:.2f}") ``` # stdout: 6599.16 It converts to 6,599.16 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "6599.16", "printed": "6599.16", "notation": null}
nlprog_det-setting-0050678
<|start|><|user|> An unpaid balance of $1,000 accrues 2% simple interest per month. How much interest accrues in 3 months?<|eot|> <|assistant|> $60.00 accrues.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An unpaid balance of $1,000 accrues 2% simple interest per month. How much interest accrues in 3 months?" }, { "role": "assistant", "content": "$60.00 accrues." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0050679
Bilal earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 46-hour week? Python code: ```python rate = 22.4 hours = 46 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 201.59999999999997 pay = regular + overtime # 1097.6 print(f"{pay:.2f}") ``` Printed — 1097.60 The w...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "1097.60", "printed": "1097.60", "notation": null}
nlprog_det-setting-0050680
An attorney bills 12 hours at $180 per hour. What is the bill? Here is the program. ```python hours = 12 rate = 180 bill = hours * rate # 2160 print(f"{bill:.2f}") ``` Output of the run: 2160.00 The bill is $2,160.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "2160.00", "printed": "2160.00", "notation": null}
nlprog_det-setting-0050681
<|start|><|user|> Equal monthly payments repay $6,000 plus 8% simple yearly interest over 36 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 6000 annual_rate = 8 / 100 # 0.08 months = 36 interest = principal * annual_rate * months / 12 # 1440.0 payment = (principal + interest) / months # 2...
chat
[ { "role": "user", "content": "Equal monthly payments repay $6,000 plus 8% simple yearly interest over 36 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 6000\nannual_rate = 8 / 100 # 0.08\nmonths = 36\ninterest = principal * annual_rate * months / 1...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "206.67", "printed": "206.67", "notation": null}
nlprog_det-setting-0050682
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Zoe was born on February 28, 1954. How old is Zoe on June 9, 2023?<|eot|> <|assistant|> ```python from datetime import date born = date(1954, 2, 28) # datetime.date(1954, 2, 28) on = date(2023, 6, 9) # datetime.date(2023, 6, 9) age = on.year...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Zoe was born on February 28, 1954. How old is Zoe on June 9, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1954, 2, 28) # datet...
nlprog_det
setting
original
null
deterministic
[]
[]
165
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0050683
<|start|><|user|> A party has 14 days to respond to a motion served on June 18, 2024, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2024, 6, 18) response_days = 14 mail_days = 3 due = served + timedelta(days=res...
chat
[ { "role": "user", "content": "A party has 14 days to respond to a motion served on June 18, 2024, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2024, 6, 18)\nresponse_...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2024-07-05", "printed": "2024-07-05", "notation": null}
nlprog_det-setting-0050685
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> A count moves from 1,000 to 850. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 1000 new = 850 change = (new - old) / old * 100 # -15.0 print(round(change)) ``` Output — -15 The change is -15%.<...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "A count moves from 1,000 to 850. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 1000\nnew = 850\nchange = (new ...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0050686
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours? Computing it: ```python rate = 20.0 hours = 43 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 90.0 pay = regular + overtime # 890.0 print(f"{pay:.2f}") ``` Out = 890.00 Amir earns $890.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "890.00", "printed": "890.00", "notation": null}
nlprog_det-setting-0050687
<|start|><|system|> You may call the tools below. [{"name": "calculator", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Copies cost $15 plus...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"calculator\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
243
{"gold": "31.50", "printed": "31.50", "notation": null}
nlprog_det-setting-0050688
What is the total rent on a 24-month lease at $850 a month? The rent over the term is $20,400.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "20400", "printed": "20400", "notation": null}
nlprog_det-setting-0050689
<|start|><|user|> Printing costs 10 cents a page. What does it cost to print 137 copies of a 40-page handout?<|eot|> <|assistant|> ```python pages = 40 copies = 137 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 548.0 print(f"{cost:.2f}") ``` Out: 548.00 Printing costs $548.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Printing costs 10 cents a page. What does it cost to print 137 copies of a 40-page handout?" }, { "role": "assistant", "content": "```python\npages = 40\ncopies = 137\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 548.0\nprint(f\"{cost:.2f}\")\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "548.00", "printed": "548.00", "notation": null}
nlprog_det-setting-0050691
The statute was enacted in 2010. How many years had passed by 2015? Computing it: ```python start_year = 2010 end_year = 2015 print(end_year - start_year) ``` Run it and it prints 5. 5 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0050692
What does $5,000 grow to in 5 years at 4% annual compounding? As a program: ```python principal = 5000 rate = 4 / 100 # 0.04 years = 5 value = principal * (1 + rate) ** years # 6083.264512000001 print(f"{value:.2f}") ``` # out: 6083.26 The balance is $6,083.26.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "6083.26", "printed": "6083.26", "notation": null}
nlprog_det-setting-0050693
<|start|><|user|> At an exchange rate of 1.08 EUR per USD, how many EUR is 4,357 USD?<|eot|> <|assistant|> ```python amount = 4357 rate = 1.08 converted = amount * rate # 4705.56 print(f"{converted:.2f}") ``` Output — 4705.56 That is 4,705.56 EUR.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.08 EUR per USD, how many EUR is 4,357 USD?" }, { "role": "assistant", "content": "```python\namount = 4357\nrate = 1.08\nconverted = amount * rate # 4705.56\nprint(f\"{converted:.2f}\")\n```\nOutput — 4705.56\n\nThat is 4,705.56 EUR." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "4705.56", "printed": "4705.56", "notation": null}
nlprog_det-setting-0050694
Convert 15 °C to Fahrenheit. ```python celsius = 15 fahrenheit = celsius * 9 / 5 + 32 # 59.0 print(round(fahrenheit)) ``` Console output — 59 It equals 59 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0050695
Express 319 hours in days and hours. Here's the code. ```python hours = 319 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Output of the run — 13 days and 7 hours That is 13 days and 7 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "13 days and 7 hours", "printed": "13 days and 7 hours", "notation": null}
nlprog_det-setting-0050696
Fines run at $50 per day up to a maximum of $2,500. How much after 21 days? Translated to Python: per_day = 50 days = 21 cap = 2500 fine = min(per_day * days, cap) # 1050 print(fine) Python prints 1050. $1,050 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0050697
A hearing lasted 2 hours and 50 minutes. How many minutes is that? Computation in Python: ```python hours = 2 minutes = 50 total_minutes = hours * 60 + minutes # 170 print(total_minutes) ``` Running this gives: 170 That is 170 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "170", "printed": "170", "notation": null}
nlprog_det-setting-0050698
<|start|><|user|> At $0.67 per mile, what is the reimbursement for 404 miles?<|eot|> <|assistant|> Elena is owed $270.68.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.67 per mile, what is the reimbursement for 404 miles?" }, { "role": "assistant", "content": "Elena is owed $270.68." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "270.68", "printed": "270.68", "notation": null}
nlprog_det-setting-0050699
A 28 lb package ships at $10 base plus $1.20/lb. What is the charge? Computing it: ```python base = 10 per_pound = 1.2 weight = 28 cost = base + per_pound * weight # 43.6 print(f"{cost:.2f}") ``` This prints 43.60. The charge is $43.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "43.60", "printed": "43.60", "notation": null}
nlprog_det-setting-0050700
3 claimants share a $15,000 settlement equally. What is each share? As a program: ```python settlement = 15000 parties = 3 share = settlement // parties # 5000 print(share) ``` Running this gives 5000. Each share is $5,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0050701
<|start|><|user|> How much sales tax is charged on a $466.17 purchase at 9%?<|eot|> <|assistant|> ```python price = 466.17 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 41.9553 print(f"{tax:.2f}") ``` Out — 41.96 The tax is $41.96.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $466.17 purchase at 9%?" }, { "role": "assistant", "content": "```python\nprice = 466.17\ntax_rate = 9 / 100 # 0.09\ntax = price * tax_rate # 41.9553\nprint(f\"{tax:.2f}\")\n```\nOut — 41.96\n\nThe tax is $41.96." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "41.96", "printed": "41.96", "notation": null}
nlprog_det-setting-0050702
Dara was born on August 20, 2008. How old is Dara on October 1, 2021? Computing it: ```python from datetime import date born = date(2008, 8, 20) # datetime.date(2008, 8, 20) on = date(2021, 10, 1) # datetime.date(2021, 10, 1) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 13 print(age) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0050703
A measure needs at least 67% of 13 votes. How many votes is that, rounded up? Coded up: import math voters = 13 needed = math.ceil(voters * 67 / 100) # 9 print(needed) stdout: 9 9 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0050704
After an initial $3,000, the remainder of a $30,000 grant is paid in 3 equal parts. What is each part? The Python version: grant = 30000 up_front = 3000 installments = 3 each = (grant - up_front) / installments # 9000.0 print(f"{each:.2f}") Executing it gives: 9000.00 Each installment is $9,000.0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0050705
Attendance was 30 out of 40. Express it as a percent. Here is the program. ```python present = 30 total = 40 percent = present / total * 100 # 75.0 print(round(percent, 1)) ``` The program prints 75.0, as expected. 75.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "75.0", "printed": "75.0", "notation": null}
nlprog_det-setting-0050706
4 clients win $60,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? As Python: ```python award = 60000 fee = award * 25 / 100 # 15000.0 remaining = award - fee # 45000.0 per_client = remaining / 4 # 11250.0 print(f"{per_client:.2f}") ``` Result: 11250.00 Each client gets $11,...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "11250.00", "printed": "11250.00", "notation": null}
nlprog_det-setting-0050707
<|start|><|user|> Count 14 days forward from September 7, 2020. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2020, 9, 7) # datetime.date(2020, 9, 7) end = start + timedelta(days=14) # datetime.date(2020, 9, 21) print(end.isoformat()) ``` Run it and it prints: 202...
chat
[ { "role": "user", "content": "Count 14 days forward from September 7, 2020. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2020, 9, 7) # datetime.date(2020, 9, 7)\nend = start + timedelta(days=14) # datetime.date(2020, 9,...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "2020-09-21", "printed": "2020-09-21", "notation": null}
nlprog_det-setting-0050708
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> 3 friends split a $150 bill plus a 20% tip evenly. How much does each pay?<|eot|> <|assistant|> Each person pays $60.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "3 friends split a $150 bill plus a 20% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "Each person pays $60.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0050709
A claim accrued on July 15, 2022. The limitations period is 4 years. On what date does it expire? As a program: from datetime import date accrued = date(2022, 7, 15) # datetime.date(2022, 7, 15) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 7, 15) print(expi...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "2026-07-15", "printed": "2026-07-15", "notation": null}
nlprog_det-setting-0050710
Goods bought on February 23, 2028 carry a 24-month warranty. When does it expire? The program: from datetime import date start = date(2028, 2, 23) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "2030-02-23", "printed": "2030-02-23", "notation": null}
nlprog_det-setting-0050711
<|start|><|user|> A hearing is set for April 1, 2002. What day of the week is that?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2002, 4, 1) # datetime.date(2002, 4, 1) print(hearing.strftime("%A")) ``` (Out: Monday) It is a Monday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing is set for April 1, 2002. What day of the week is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2002, 4, 1) # datetime.date(2002, 4, 1)\nprint(hearing.strftime(\"%A\"))\n```\n(Out: Monday)\n\nIt is a Mon...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0050712
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> With 19 rows of 14 chairs and 31 empty chairs, how many chairs are taken?<|eot|> <|assistant|> rows = 19 per_row = 14 empty = 31 seated = rows * per_row - empty # 235 print(seated) Executing it gives 235, as expected. 235 sea...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "With 19 rows of 14 chairs and 31 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": " rows = 19\n per_row = 14\n empty = 31\n seated = rows *...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "235", "printed": "235", "notation": null}
nlprog_det-setting-0050713
Count the days between March 23, 2023 and June 21, 2023. Script: ```python from datetime import date first = date(2023, 3, 23) # datetime.date(2023, 3, 23) second = date(2023, 6, 21) # datetime.date(2023, 6, 21) print((second - first).days) ``` This prints: 90 There are 90 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "90", "printed": "90", "notation": null}
nlprog_det-setting-0050714
<|start|><|user|> A hearing is set for October 20, 2007. What day of the week is that?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2007, 10, 20) # datetime.date(2007, 10, 20) print(hearing.strftime("%A")) ``` Result: Saturday It is a Saturday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing is set for October 20, 2007. What day of the week is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2007, 10, 20) # datetime.date(2007, 10, 20)\nprint(hearing.strftime(\"%A\"))\n```\nResult: Saturday\n\nI...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0050715
How many weekdays (Monday to Friday) fall after April 19, 2021 up to and including May 11, 2021? As Python: from datetime import date, timedelta start = date(2021, 4, 19) end = date(2021, 5, 11) 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
[]
[]
144
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0050716
<|start|><|user|> Convert -5 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = -5 fahrenheit = celsius * 9 / 5 + 32 # 23.0 print(round(fahrenheit)) ``` Console output: 23 That is 23 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert -5 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = -5\nfahrenheit = celsius * 9 / 5 + 32 # 23.0\nprint(round(fahrenheit))\n```\nConsole output: 23\n\nThat is 23 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0050717
A storeroom has 1687 pens. The office uses 25 a day. How many are left after 3 days? A short script: ```python stock = 1687 per_day = 25 days = 3 left = stock - per_day * days # 1612 print(left) ``` The run gives: 1612 1612 pens are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1612", "printed": "1612", "notation": null}
nlprog_det-setting-0050718
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> Water costs $12 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 18,000 gallons?<|eot|> <|assistant|> ```python base = 12 rate = 5.1 used = 18 free = 2 bill = base + rate * max(0, used - free) # 93.6 print(f"{bill:...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "Water costs $12 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 18,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 12\nrate = ...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "93.60", "printed": "93.60", "notation": null}
nlprog_det-setting-0050719
Shipping costs $12 plus $2.50 per pound. What does a 28-pound parcel cost to ship? Here is a short program for it. ```python base = 12 per_pound = 2.5 weight = 28 cost = base + per_pound * weight # 82.0 print(f"{cost:.2f}") ``` (Execution result: 82.00) The charge is $82.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "82.00", "printed": "82.00", "notation": null}
nlprog_det-setting-0050720
<|start|><|user|> A customer buys 6 notebooks at $25 each, 5 pens at $10 each and pays with $250. How much change is due?<|eot|> <|assistant|> The change is $50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A customer buys 6 notebooks at $25 each, 5 pens at $10 each and pays with $250. How much change is due?" }, { "role": "assistant", "content": "The change is $50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0050721
<|start|><|user|> Starting from $20,000, the team spends $2,553, $3,276, $1,253. What remains?<|eot|> <|assistant|> ```python budget = 20000 expenses = [2553, 3276, 1253] left = budget - sum(expenses) # 12918 print(left) ``` The script prints 12918. $12,918 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $20,000, the team spends $2,553, $3,276, $1,253. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 20000\nexpenses = [2553, 3276, 1253]\nleft = budget - sum(expenses) # 12918\nprint(left)\n```\nThe script prints 12918.\n\n$12,91...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "12918", "printed": "12918", "notation": null}
nlprog_det-setting-0050722
<|start|><|user|> Monthly rent is $1,500. A tenant moves in with 16 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> rent = 1500 days_in_month = 30 days_occupied = 16 prorated = rent * days_occupied / days_in_month # 800.0 print(f"{prorated:.2f}") The script prints 800.0...
chat
[ { "role": "user", "content": "Monthly rent is $1,500. A tenant moves in with 16 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": " rent = 1500\n days_in_month = 30\n days_occupied = 16\n prorated = rent * days_occupied / days_in_month # 8...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "800.00", "printed": "800.00", "notation": null}
nlprog_det-setting-0050723
<|start|><|user|> An office budget of $8,000 has expenses of $3,708, $1,306, $2,260. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 8000 expenses = [3708, 1306, 2260] left = budget - sum(expenses) # 726 print(left) ``` It prints: 726 $726 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $8,000 has expenses of $3,708, $1,306, $2,260. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nexpenses = [3708, 1306, 2260]\nleft = budget - sum(expenses) # 726\nprint(left)\n```\nIt prints: 726\...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "726", "printed": "726", "notation": null}
nlprog_det-setting-0050724
If a 2-year limitations period starts on July 13, 2022, when does it end? A short script: ```python from datetime import date accrued = date(2022, 7, 13) # datetime.date(2022, 7, 13) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 7, 13) print(expires.isoformat()) ``` # output: 2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2024-07-13", "printed": "2024-07-13", "notation": null}
nlprog_det-setting-0050725
254 volunteers are split into 4 equal teams. How many are on each team, and how many are left over? 63 each, 2 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "63 each, 2 left over", "printed": "63 each, 2 left over", "notation": null}
nlprog_det-setting-0050726
A car travels 444 miles in 2 hours. What is its average speed in miles per hour? A few lines of Python do it: ```python distance = 444 hours = 2 speed = distance / hours # 222.0 print(round(speed)) ``` Run result: 222 It averages 222 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "222", "printed": "222", "notation": null}
nlprog_det-setting-0050727
Under a 30% contingency agreement, what fee is owed on a $150,000 award? Let the code do the arithmetic: recovery = 150000 rate = 30 / 100 # 0.3 fee = recovery * rate # 45000.0 print(f"{fee:.2f}") When run, it prints 45000.00, as expected. The fee is $45,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "45000.00", "printed": "45000.00", "notation": null}
nlprog_det-setting-0050728
<|start|><|user|> A 6 × 3 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> import math length = 6 width = 3 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 5 print(tiles) The program prints 5, as expected. It takes 5 tiles.<|eot|> <|end|...
chat
[ { "role": "user", "content": "A 6 × 3 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": " import math\n length = 6\n width = 3\n tile = 2\n tiles = math.ceil(length * width / (tile * tile)) # 5\n print(tiles)\nThe pro...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0050729
<|start|><|system|> You have access to these functions: {"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Count 14 days forward from J...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s...
nlprog_det
setting
original
null
deterministic
[]
[]
230
{"gold": "2019-07-30", "printed": "2019-07-30", "notation": null}
nlprog_det-setting-0050730
<|start|><|user|> How much sales tax is charged on a $768.65 purchase at 5%?<|eot|> <|assistant|> The tax is $38.43.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $768.65 purchase at 5%?" }, { "role": "assistant", "content": "The tax is $38.43." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "38.43", "printed": "38.43", "notation": null}
nlprog_det-setting-0050731
What percentage of $5,000 is $1,000? Let the code do the arithmetic: ```python budget = 5000 spent = 1000 percent = spent / budget * 100 # 20.0 print(round(percent, 1)) ``` Console: 20.0 20.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0050732
If a 150-minute appointment begins at 12:10 PM, what time does it finish? One way, in code: ```python start = 12 * 60 + 10 end = start + 150 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Execution prints 2:40 PM. It ends at 2:40 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "2:40 PM", "printed": "2:40 PM", "notation": null}
nlprog_det-setting-0050733
<|start|><|user|> Ada was born on May 28, 2004. How old is Ada on April 5, 2028?<|eot|> <|assistant|> Ada is 23.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Ada was born on May 28, 2004. How old is Ada on April 5, 2028?" }, { "role": "assistant", "content": "Ada is 23." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0050734
A 30-day notice period begins on October 3, 2023. On what date does it end? Here's the code. ```python from datetime import date, timedelta start = date(2023, 10, 3) # datetime.date(2023, 10, 3) end = start + timedelta(days=30) # datetime.date(2023, 11, 2) print(end.isoformat()) ``` Run it and it prints 2023-11-02. ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2023-11-02", "printed": "2023-11-02", "notation": null}
nlprog_det-setting-0050735
A $96 dinner bill gets a 15% tip, and 6 people share the cost equally. What is each person's share? Program: ```python bill = 96 tip_rate = 15 / 100 # 0.15 people = 6 each = bill * (1 + tip_rate) / people # 18.4 print(f"{each:.2f}") ``` # run result: 18.40 Each person pays $18.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "18.40", "printed": "18.40", "notation": null}
nlprog_det-setting-0050736
A 4% increase is applied to $1,800 monthly rent. What is the new amount? We write it as a program: ```python rent = 1800 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 1872.0 print(f"{new_rent:.2f}") ``` Execution prints 1872.00, as expected. The new rent is $1,872.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1872.00", "printed": "1872.00", "notation": null}
nlprog_det-setting-0050737
Goods bought on January 1, 2026 carry a 18-month warranty. When does it expire? A short script: ```python from datetime import date start = date(2026, 1, 1) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Printe...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2027-07-01", "printed": "2027-07-01", "notation": null}
nlprog_det-setting-0050738
How many whole days and leftover hours are in 100 hours? We write it as a program: ```python hours = 100 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` # result: 4 days and 4 hours That is 4 days and 4 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "4 days and 4 hours", "printed": "4 days and 4 hours", "notation": null}
nlprog_det-setting-0050739
Convert 5,609 USD to CAD at 1 USD = 1.12 CAD. Translated to Python: amount = 5609 rate = 1.12 converted = amount * rate # 6282.080000000001 print(f"{converted:.2f}") Executed, it shows: 6282.08 It converts to 6,282.08 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "6282.08", "printed": "6282.08", "notation": null}
nlprog_det-setting-0050740
Under a 33% contingency agreement, what fee is owed on a $90,000 award? Python version: recovery = 90000 rate = 33 / 100 # 0.33 fee = recovery * rate # 29700.0 print(f"{fee:.2f}") (Execution result: 29700.00) The fee is $29,700.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "29700.00", "printed": "29700.00", "notation": null}
nlprog_det-setting-0050741
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Dara earns a 2% commission on $57,951 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 57951 rate = 2 / 100 # 0.02 commission = sales * rate # 1159.02 print(f"{commission:.2f}") ``` This prints: 1159.02 Dara earns $1,159.02.<|eot|>...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Dara earns a 2% commission on $57,951 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 57951\nrate = 2 / 100 # 0.02\ncommission = sales * rate # 11...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1159.02", "printed": "1159.02", "notation": null}
nlprog_det-setting-0050742
<|start|><|user|> Parking is $4 per hour with a daily maximum of $24. What do 8 hours cost?<|eot|> <|assistant|> ```python rate = 4 hours = 8 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` Console output: 24 The charge is $24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $4 per hour with a daily maximum of $24. What do 8 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 4\nhours = 8\ndaily_max = 24\ncost = min(rate * hours, daily_max) # 24\nprint(cost)\n```\nConsole output: 24\n\nThe charge is $24." ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0050743
From a $5,000 retainer, 13 hours at $150/hour have been drawn. What remains? Here is a short program for it. ```python retainer = 5000 hours = 13 rate = 150 left = retainer - hours * rate # 3050 print(left) ``` Printed: 3050 The remaining balance is $3,050.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "3050", "printed": "3050", "notation": null}
nlprog_det-setting-0050744
A customer buys 6 keyboards at $18 each, 6 paper reams at $11 each, 4 chairs at $26 each, 6 badges at $11 each and pays with $350. How much change is due? Python version: items = [(6, 18), (6, 11), (4, 26), (6, 11)] total = sum(q * p for q, p in items) # 344 paid = 350 change = paid - total # 6 p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0050746
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> Sales went from 800 to 600. What is the percent change?<|eot|> <|assistant|> ```python old = 800 new = 600 change = (new - old) / old * 100 print(round(change)) ``` Running this gives: -25 The change is -25%.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "Sales went from 800 to 600. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 800\nnew = 600\nchange = (new - old) / old * 100\nprint(round(change))\n```\...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "-25", "printed": "-25", "notation": null}
nlprog_det-setting-0050747
6 boxes hold 6 ink cartridges each. After 8 are handed out, how many are left? Computation in Python: ```python boxes = 6 per_box = 6 given_away = 8 left = boxes * per_box - given_away print(left) ``` Console output: 28 That leaves 28 ink cartridges.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0050748
Each of Joelle's bike rides burns 200 calories. How many calories over 3 bike rides? 600 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0050749
With 40% off, what does a $80 filing cabinet cost? In code: ```python price = 80 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 48.0 print(f"{sale_price:.2f}") ``` The printout reads: 48.00 The sale price is $48.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0050750
One can of paint covers 350 square feet. How many cans are needed for 876 square feet of wall? Programmatically: ```python import math area = 876 coverage = 350 cans = math.ceil(area / coverage) # 3 print(cans) ``` Executing it gives 3, as expected. Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0050751
After a 30% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? ```python award = 48000 fee = award * 30 / 100 # 14400.0 remaining = award - fee # 33600.0 per_client = remaining / 4 # 8400.0 print(f"{per_client:.2f}") ``` Result: 8400.00 Each share is $8,...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "8400.00", "printed": "8400.00", "notation": null}
nlprog_det-setting-0050752
How much sales tax is charged on a $61.45 purchase at 8%? The tax is $4.92.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "4.92", "printed": "4.92", "notation": null}
nlprog_det-setting-0050753
At 40 miles per hour, how many minutes does a 110-mile trip take? Python makes this quick: ```python distance = 110 speed = 40 minutes = distance / speed * 60 # 165.0 print(round(minutes)) ``` (Result: 165) The trip takes 165 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "165", "printed": "165", "notation": null}
nlprog_det-setting-0050754
4 books come back 17 days late, at $0.50 a day each. What is the fine? ```python per_day = 0.5 days_late = 17 books = 4 fine = per_day * days_late * books print(f"{fine:.2f}") ``` That prints 34.00. $34.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "34.00", "printed": "34.00", "notation": null}
nlprog_det-setting-0050755
<|start|><|system|> Tools (call with JSON): [{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Counting the first and last da...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snipp...
nlprog_det
setting
original
null
deterministic
[]
[]
241
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0050756
At $22.20 an hour, what does 16 hours of work pay? Written as code: ```python rate = 22.2 hours = 16 earnings = rate * hours # 355.2 print(f"{earnings:.2f}") ``` (Out: 355.20) The pay is $355.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "355.20", "printed": "355.20", "notation": null}
nlprog_det-setting-0050757
<|start|><|user|> A class starts at 12:15 PM and lasts 90 minutes. When does it end?<|eot|> <|assistant|> ```python start = 12 * 60 + 15 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Execution result — 1:45 PM The class finishes at 1:45 P...
chat
[ { "role": "user", "content": "A class starts at 12:15 PM and lasts 90 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 12 * 60 + 15\nend = start + 90\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "1:45 PM", "printed": "1:45 PM", "notation": null}