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-0066602
<|start|><|system|> Be concise.<|eot|> <|user|> $5,000 is invested at 2% compounded yearly. What is it worth after 3 years?<|eot|> <|assistant|> ```python principal = 5000 rate = 2 / 100 # 0.02 years = 3 value = principal * (1 + rate) ** years # 5306.040000000001 print(f"{value:.2f}") ``` It prints 5306.04, as expect...
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "$5,000 is invested at 2% compounded yearly. What is it worth after 3 years?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 2 / 100 # 0.02\nyears = 3\nvalue = principal * (1 + ra...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "5306.04", "printed": "5306.04", "notation": null}
nlprog_det-setting-0066603
A lease runs for 18 months at $1,200 per month. How much rent is paid over the whole term? Here is a short program for it. ```python monthly_rent = 1200 months = 18 total = monthly_rent * months # 21600 print(total) ``` Printed result — 21600 The rent over the term is $21,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "21600", "printed": "21600", "notation": null}
nlprog_det-setting-0066604
Split $2,212 between Arjun and Tomas in the ratio 1 to 3. What is Arjun's share? We write it as a program: ```python total = 2212 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 553 print(share_a) ``` That prints: 553 Arjun's share is $553.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "553", "printed": "553", "notation": null}
nlprog_det-setting-0066605
The statute was enacted in 2003. How many years had passed by 2032? Python: ```python start_year = 2003 end_year = 2032 print(end_year - start_year) ``` Run it and it prints 29. 29 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0066606
Kemal buys 7 boxes of 25 ink cartridges each and gives away 1 ink cartridges. How many ink cartridges are left? 174 ink cartridges are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "174", "printed": "174", "notation": null}
nlprog_det-setting-0066607
<|start|><|user|> Equal monthly payments repay $3,600 plus 10% simple yearly interest over 36 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 3600 annual_rate = 10 / 100 months = 36 interest = principal * annual_rate * months / 12 payment = (principal + interest) / months print(f"{payment:.2f...
chat
[ { "role": "user", "content": "Equal monthly payments repay $3,600 plus 10% simple yearly interest over 36 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 3600\nannual_rate = 10 / 100\nmonths = 36\ninterest = principal * annual_rate * months / 12\npay...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "130.00", "printed": "130.00", "notation": null}
nlprog_det-setting-0066608
<|start|><|system|> Tools you may use: [{"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Convert 3 h 17 min (the length of a fil...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"python_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}]"...
nlprog_det
setting
original
null
deterministic
[]
[]
207
{"gold": "197", "printed": "197", "notation": null}
nlprog_det-setting-0066609
After an initial $0, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part? ```python grant = 48000 up_front = 0 installments = 12 each = (grant - up_front) / installments # 4000.0 print(f"{each:.2f}") ``` When run, it prints 4000.00. $4,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0066611
Fixed costs are $6,000. Each unit sells for $20 and costs $14 to make. How many units must be sold to break even? Python version: import math fixed = 6000 price = 20 variable = 14 units = math.ceil(fixed / (price - variable)) # 1000 print(units) Shell output — 1000 1000 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0066612
What is the total rent on a 24-month lease at $2,100 a month? Python makes this quick: ```python monthly_rent = 2100 months = 24 total = monthly_rent * months # 50400 print(total) ``` # execution result: 50400 The rent over the term is $50,400.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "50400", "printed": "50400", "notation": null}
nlprog_det-setting-0066613
A hall has 15 rows of 19 seats, and 26 seats are empty. How many people are seated? Let's compute it with Python. ```python rows = 15 per_row = 19 empty = 26 seated = rows * per_row - empty # 259 print(seated) ``` The program prints 259. 259 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "259", "printed": "259", "notation": null}
nlprog_det-setting-0066614
How long, in days, is it from January 12, 2025 until January 27, 2026? The program: from datetime import date first = date(2025, 1, 12) second = date(2026, 1, 27) print((second - first).days) The program prints 380, as expected. It is 380 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "380", "printed": "380", "notation": null}
nlprog_det-setting-0066615
<|start|><|system|> You have access to these functions: {"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> A $210 dinner ...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "50.40", "printed": "50.40", "notation": null}
nlprog_det-setting-0066616
<|start|><|user|> Walls total 1044 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 1044 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` The run gives: 3 3 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 1044 sq ft and each can covers 400 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1044\ncoverage = 400\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nThe run gives: 3\n\n3 cans are...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0066617
Of a $2,000 budget, $200 has been spent. What percent is that? Written as code: ```python budget = 2000 spent = 200 percent = spent / budget * 100 print(round(percent, 1)) ``` The run gives: 10.0 That is 10.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "10.0", "printed": "10.0", "notation": null}
nlprog_det-setting-0066618
A hall has 27 rows of 24 seats, and 22 seats are empty. How many people are seated? One way, in code: rows = 27 per_row = 24 empty = 22 seated = rows * per_row - empty # 626 print(seated) Output: 626 626 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "626", "printed": "626", "notation": null}
nlprog_det-setting-0066620
The landlord deducts $45, $200 and $75 from a $1,500 deposit. What is returned to the tenant? The refund is $1,180.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "1180", "printed": "1180", "notation": null}
nlprog_det-setting-0066621
Attendance was 21 out of 25. Express it as a percent. The Python version: present = 21 total = 25 percent = present / total * 100 # 84.0 print(round(percent, 1)) stdout — 84.0 Attendance was 84.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "84.0", "printed": "84.0", "notation": null}
nlprog_det-setting-0066622
What percentage of $8,000 is $7,200? Python, step by step: ```python budget = 8000 spent = 7200 percent = spent / budget * 100 # 90.0 print(round(percent, 1)) ``` Run it and it prints 90.0. 90.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "90.0", "printed": "90.0", "notation": null}
nlprog_det-setting-0066623
<|start|><|system|> Tools you may use: [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters": {"t...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"code_runner\", \"description\": \"A Python...
nlprog_det
setting
original
null
deterministic
[]
[]
283
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0066624
How long, in days, is it from October 15, 2024 until September 1, 2025? It is 321 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "321", "printed": "321", "notation": null}
nlprog_det-setting-0066625
Buying 4 flash drives at $22 each, 1 water bottles at $11 each, 3 clipboards at $2 each, someone hands over $150. What change comes back? $45 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0066626
<|start|><|user|> Sami drove 325 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 325 rate = 0.62 reimbursement = miles * rate print(f"{reimbursement:.2f}") ``` (Printed result: 201.50) Sami is owed $201.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sami drove 325 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 325\nrate = 0.62\nreimbursement = miles * rate\nprint(f\"{reimbursement:.2f}\")\n```\n(Printed result: 2...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "201.50", "printed": "201.50", "notation": null}
nlprog_det-setting-0066628
Revenue is $14,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)? Profit is 13.8% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "13.8", "printed": "13.8", "notation": null}
nlprog_det-setting-0066629
A customer buys 5 rulers at $29 each, 6 cables at $17 each and pays with $250. How much change is due? The computation: ```python items = [(5, 29), (6, 17)] total = sum(q * p for q, p in items) # 247 paid = 250 change = paid - total # 3 print(change) ``` Interpreter output — 3 $3 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0066630
<|start|><|system|> Functions: {"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> A count moves from 800 to 1,000. By what per...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}" },...
nlprog_det
setting
original
null
deterministic
[]
[]
213
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0066631
130 files go into boxes of 15. How many boxes does that take? Translated to Python: ```python import math files = 130 per_box = 15 boxes = math.ceil(files / per_box) # 9 print(boxes) ``` Out: 9 It takes 9 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0066633
<|start|><|user|> Monthly: $12. Annual: $96. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 12 yearly = 96 savings = monthly * 12 - yearly # 48 print(savings) ``` The code prints 48. $48 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $12. Annual: $96. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 12\nyearly = 96\nsavings = monthly * 12 - yearly # 48\nprint(savings)\n```\nThe code prints 48.\n\n$48 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0066634
<|start|><|user|> Someone born October 17, 1985 turns how old by March 15, 2030? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1985, 10, 17) # datetime.date(1985, 10, 17) on = date(2030, 3, 15) # datetime.date(2030, 3, 15) age = on.year - born.year - ((on.month, on....
chat
[ { "role": "user", "content": "Someone born October 17, 1985 turns how old by March 15, 2030? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1985, 10, 17) # datetime.date(1985, 10, 17)\non = date(2030, 3, 15) # datetime.date...
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0066635
Equal monthly payments repay $1,200 plus 5% simple yearly interest over 24 months. How large is a payment? Python: principal = 1200 annual_rate = 5 / 100 months = 24 interest = principal * annual_rate * months / 12 payment = (principal + interest) / months print(f"{payment:.2f}") Printed result...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "55.00", "printed": "55.00", "notation": null}
nlprog_det-setting-0066636
<|start|><|system|> Tools you may use: {"name": "math_engine", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> Goods bought on July 21, 2025 car...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"math_engine\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program...
nlprog_det
setting
original
null
deterministic
[]
[]
271
{"gold": "2027-01-21", "printed": "2027-01-21", "notation": null}
nlprog_det-setting-0066637
<|start|><|user|> A 5-day trip pays $59 a day for meals and $175 a night for lodging (4 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 5 meal_rate = 59 lodging_rate = 175 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 995 print(total) ``` It prints 995. That com...
chat
[ { "role": "user", "content": "A 5-day trip pays $59 a day for meals and $175 a night for lodging (4 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 5\nmeal_rate = 59\nlodging_rate = 175\nnights = days - 1 # 4\ntotal = days * meal_rate + nights * lo...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "995", "printed": "995", "notation": null}
nlprog_det-setting-0066638
<|start|><|user|> How many of 90 votes make 75% (round up)?<|eot|> <|assistant|> At least 68 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 90 votes make 75% (round up)?" }, { "role": "assistant", "content": "At least 68 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0066639
8 claimants share a $1,200 settlement equally. What is each share? ```python settlement = 1200 parties = 8 share = settlement // parties # 150 print(share) ``` Run result = 150 Each party receives $150.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0066640
If a 5-year limitations period starts on January 19, 2015, when does it end? The period expires on January 19, 2020.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "2020-01-19", "printed": "2020-01-19", "notation": null}
nlprog_det-setting-0066641
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source ...
nlprog_det
setting
original
null
deterministic
[]
[]
285
{"gold": "2026-09-26", "printed": "2026-09-26", "notation": null}
nlprog_det-setting-0066642
<|start|><|user|> Express 170 hours in days and hours.<|eot|> <|assistant|> hours = 170 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") stdout = 7 days and 2 hours That is 7 days and 2 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 170 hours in days and hours." }, { "role": "assistant", "content": " hours = 170\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\nstdout = 7 days and 2 hours\n\nThat is 7 days and 2 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "7 days and 2 hours", "printed": "7 days and 2 hours", "notation": null}
nlprog_det-setting-0066643
<|start|><|user|> Fines run at $100 per day up to a maximum of $1,000. How much after 48 days?<|eot|> <|assistant|> ```python per_day = 100 days = 48 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` (Printed: 1000) The fine is $1,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $100 per day up to a maximum of $1,000. How much after 48 days?" }, { "role": "assistant", "content": "```python\nper_day = 100\ndays = 48\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\n(Printed: 1000)\n\nThe fine is $1,000." ...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0066644
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Convert 3 h 34 min (the length of a hearing) to minutes.<|eot|> <|assistant|> ```python hours = 3 minutes = 34 total_minutes = hours * 60 + minutes # 214 print(total_minutes) ``` Executing it gives: 214 That is 214 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "Convert 3 h 34 min (the length of a hearing) to minutes." }, { "role": "assistant", "content": "```python\nhours = 3\nminutes = 34\ntotal_minutes = hours * 60 + minutes # 214\nprint(tota...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "214", "printed": "214", "notation": null}
nlprog_det-setting-0066645
The landlord deducts $120 from a $1,000 deposit. What is returned to the tenant? Computation in Python: deposit = 1000 deductions = [120] refund = deposit - sum(deductions) # 880 print(refund) Running this gives 880. $880 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "880", "printed": "880", "notation": null}
nlprog_det-setting-0066646
Fixed costs are $1,200. Each unit sells for $30 and costs $25 to make. How many units must be sold to break even? ```python import math fixed = 1200 price = 30 variable = 25 units = math.ceil(fixed / (price - variable)) # 240 print(units) ``` Printed: 240 Break-even is 240 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0066647
<|start|><|system|> Functions: {"name": "math_engine", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "get_weather", "description": "Get the weather for a c...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"math_engine\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}\n{\"name...
nlprog_det
setting
original
null
deterministic
[]
[]
355
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0066648
<|start|><|user|> The landlord deducts $75, $60 and $85 from a $800 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 800 deductions = [75, 60, 85] refund = deposit - sum(deductions) # 580 print(refund) ``` stdout — 580 $580 is returned.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $75, $60 and $85 from a $800 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 800\ndeductions = [75, 60, 85]\nrefund = deposit - sum(deductions) # 580\nprint(refund)\n```\nstdout — 580\n\n$580...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "580", "printed": "580", "notation": null}
nlprog_det-setting-0066649
A $1,200 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? principal = 1200 annual_rate = 10 / 100 # 0.1 months = 36 interest = principal * annual_rate * months / 12 # 360.0 payment = (principal + interest) /...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "43.33", "printed": "43.33", "notation": null}
nlprog_det-setting-0066650
<|start|><|user|> A library charges $0.10 per book per day late. What is the fine for 4 books that are 17 days late?<|eot|> <|assistant|> ```python per_day = 0.1 days_late = 17 books = 4 fine = per_day * days_late * books # 6.800000000000001 print(f"{fine:.2f}") ``` The program outputs: 6.80 $6.80 is owed.<|eot|> <|e...
chat
[ { "role": "user", "content": "A library charges $0.10 per book per day late. What is the fine for 4 books that are 17 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.1\ndays_late = 17\nbooks = 4\nfine = per_day * days_late * books # 6.800000000000001\nprint(f\"{fine:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "6.80", "printed": "6.80", "notation": null}
nlprog_det-setting-0066651
A claim accrued on July 26, 2013. The limitations period is 2 years. On what date does it expire? ```python from datetime import date accrued = date(2013, 7, 26) # datetime.date(2013, 7, 26) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2015, 7, 26) print(expires.isoformat()) ``` The...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2015-07-26", "printed": "2015-07-26", "notation": null}
nlprog_det-setting-0066652
Shipping costs $5 plus $1.50 per pound. What does a 4-pound parcel cost to ship? Computation in Python: ```python base = 5 per_pound = 1.5 weight = 4 cost = base + per_pound * weight # 11.0 print(f"{cost:.2f}") ``` Console output: 11.00 The charge is $11.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "11.00", "printed": "11.00", "notation": null}
nlprog_det-setting-0066653
1 books come back 26 days late, at $0.25 a day each. What is the fine? $6.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "6.50", "printed": "6.50", "notation": null}
nlprog_det-setting-0066654
Express 174 hours in days and hours. That is 7 days and 6 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "7 days and 6 hours", "printed": "7 days and 6 hours", "notation": null}
nlprog_det-setting-0066655
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> A client paid a $10,000 retainer. The firm has billed 10 hours at $200 per hour. How much of the retainer is left?<|eot|> <|assistant|> retainer = 10000 hours = 10 rate = 200 left = retainer - hours * rate print(left) The progr...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "A client paid a $10,000 retainer. The firm has billed 10 hours at $200 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": " retainer = 10000\n h...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "8000", "printed": "8000", "notation": null}
nlprog_det-setting-0066656
Starting with 1800 notebooks and using 20 per day, how many remain after 3 days? In Python: ```python stock = 1800 per_day = 20 days = 3 left = stock - per_day * days # 1740 print(left) ``` This prints 1740, as expected. 1740 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1740", "printed": "1740", "notation": null}
nlprog_det-setting-0066657
With 20 rows of 22 chairs and 2 empty chairs, how many chairs are taken? A few lines of Python do it: rows = 20 per_row = 22 empty = 2 seated = rows * per_row - empty # 438 print(seated) Interpreter output: 438 438 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "438", "printed": "438", "notation": null}
nlprog_det-setting-0066658
<|start|><|user|> $10,000 is invested at 5% compounded yearly. What is it worth after 2 years?<|eot|> <|assistant|> ```python principal = 10000 rate = 5 / 100 # 0.05 years = 2 value = principal * (1 + rate) ** years # 11025.0 print(f"{value:.2f}") ``` The printout reads 11025.00. The balance is $11,025.00.<|eot|> <|...
chat
[ { "role": "user", "content": "$10,000 is invested at 5% compounded yearly. What is it worth after 2 years?" }, { "role": "assistant", "content": "```python\nprincipal = 10000\nrate = 5 / 100 # 0.05\nyears = 2\nvalue = principal * (1 + rate) ** years # 11025.0\nprint(f\"{value:.2f}\")\n```\nThe...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "11025.00", "printed": "11025.00", "notation": null}
nlprog_det-setting-0066659
<|start|><|system|> Tools you may use: {"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> What is a 25% tip on a $1...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
223
{"gold": "29.29", "printed": "29.29", "notation": null}
nlprog_det-setting-0066660
Express 240 hours in days and hours. Program: ```python hours = 240 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Python prints: 10 days and 0 hours That is 10 days and 0 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "10 days and 0 hours", "printed": "10 days and 0 hours", "notation": null}
nlprog_det-setting-0066661
A party has 21 days to respond to a motion served on August 14, 2025, with 3 days added because service was by mail. When is the response due? It is due September 7, 2025.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "2025-09-07", "printed": "2025-09-07", "notation": null}
nlprog_det-setting-0066662
<|start|><|user|> A party has 30 days to respond to a motion served on October 7, 2028, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2028, 10, 7) # datetime.date(2028, 10, 7) response_days = 30 mail_days = 3 d...
chat
[ { "role": "user", "content": "A party has 30 days to respond to a motion served on October 7, 2028, 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(2028, 10, 7) # datet...
nlprog_det
setting
original
null
deterministic
[]
[]
177
{"gold": "2028-11-09", "printed": "2028-11-09", "notation": null}
nlprog_det-setting-0066663
A $1,500 security deposit has deductions of $150, $120 and $60. How much is refunded? The refund is $1,170.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "1170", "printed": "1170", "notation": null}
nlprog_det-setting-0066664
<|start|><|user|> Dara's scores were 73, 80, 95, 76, 74, 84 and 64. What is the average score?<|eot|> <|assistant|> ```python scores = [73, 80, 95, 76, 74, 84, 64] average = sum(scores) // len(scores) # 78 print(average) ``` Console output — 78 The average score is 78.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Dara's scores were 73, 80, 95, 76, 74, 84 and 64. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [73, 80, 95, 76, 74, 84, 64]\naverage = sum(scores) // len(scores) # 78\nprint(average)\n```\nConsole output — 78\n\nThe average ...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0066666
Fines run at $25 per day up to a maximum of $1,000. How much after 58 days? One way, in code: ```python per_day = 25 days = 58 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` When run, it prints: 1000 $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0066667
<|start|><|user|> 77 of 100 members attended. What percent attended?<|eot|> <|assistant|> 77.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "77 of 100 members attended. What percent attended?" }, { "role": "assistant", "content": "77.0% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "77.0", "printed": "77.0", "notation": null}
nlprog_det-setting-0066668
Starting from $12,000, the team spends $2,153, $2,486, $2,743. What remains? In code: ```python budget = 12000 expenses = [2153, 2486, 2743] left = budget - sum(expenses) # 4618 print(left) ``` (Program output: 4618) $4,618 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "4618", "printed": "4618", "notation": null}
nlprog_det-setting-0066669
Of a $8,000 budget, $3,800 has been spent. What percent is that? The computation: ```python budget = 8000 spent = 3800 percent = spent / budget * 100 # 47.5 print(round(percent, 1)) ``` It prints 47.5. That is 47.5% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "47.5", "printed": "47.5", "notation": null}
nlprog_det-setting-0066670
A lease runs for 18 months at $850 per month. How much rent is paid over the whole term? Python: ```python monthly_rent = 850 months = 18 total = monthly_rent * months # 15300 print(total) ``` On running, it outputs 15300. The rent over the term is $15,300.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "15300", "printed": "15300", "notation": null}
nlprog_det-setting-0066671
A 21 lb package ships at $8 base plus $1.50/lb. What is the charge? Here is the program. ```python base = 8 per_pound = 1.5 weight = 21 cost = base + per_pound * weight # 39.5 print(f"{cost:.2f}") ``` Execution result: 39.50 The charge is $39.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "39.50", "printed": "39.50", "notation": null}
nlprog_det-setting-0066672
<|start|><|user|> 6 boxes hold 10 mugs each. After 7 are handed out, how many are left?<|eot|> <|assistant|> That leaves 53 mugs.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6 boxes hold 10 mugs each. After 7 are handed out, how many are left?" }, { "role": "assistant", "content": "That leaves 53 mugs." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0066673
At 50 miles per hour, how many minutes does a 200-mile trip take? Python, step by step: distance = 200 speed = 50 minutes = distance / speed * 60 # 240.0 print(round(minutes)) Run it and it prints 240. The trip takes 240 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0066674
<|start|><|user|> The firm was founded in 1996. How many years had passed by 2035?<|eot|> <|assistant|> ```python start_year = 1996 end_year = 2035 print(end_year - start_year) ``` Out: 39 39 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The firm was founded in 1996. How many years had passed by 2035?" }, { "role": "assistant", "content": "```python\nstart_year = 1996\nend_year = 2035\nprint(end_year - start_year)\n```\nOut: 39\n\n39 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0066675
<|start|><|user|> At 1.5% a month (simple), what interest builds on $4,000 over 4 months?<|eot|> <|assistant|> balance = 4000 monthly_rate = 1.5 / 100 # 0.015 months = 4 interest = balance * monthly_rate * months # 240.0 print(f"{interest:.2f}") Out: 240.00 $240.00 accrues.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 1.5% a month (simple), what interest builds on $4,000 over 4 months?" }, { "role": "assistant", "content": " balance = 4000\n monthly_rate = 1.5 / 100 # 0.015\n months = 4\n interest = balance * monthly_rate * months # 240.0\n print(f\"{interest:...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0066676
<|start|><|user|> Abel drove 422 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 422 rate = 0.58 reimbursement = miles * rate # 244.76 print(f"{reimbursement:.2f}") ``` Run it and it prints 244.76. Abel is owed $244.76.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Abel drove 422 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 422\nrate = 0.58\nreimbursement = miles * rate # 244.76\nprint(f\"{reimbursement:.2f}\")\n```\nRun it a...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "244.76", "printed": "244.76", "notation": null}
nlprog_det-setting-0066677
<|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)) ``` The program outputs 50. It changed by 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```\nThe program outputs 50.\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0066678
<|start|><|user|> Divide 184 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 184 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` (Console output: 30 each, 4 left ov...
chat
[ { "role": "user", "content": "Divide 184 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 184\ngroups = 6\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "30 each, 4 left over", "printed": "30 each, 4 left over", "notation": null}
nlprog_det-setting-0066679
What does $10,000 grow to in 4 years at 2% annual compounding? One way, in code: ```python principal = 10000 rate = 2 / 100 # 0.02 years = 4 value = principal * (1 + rate) ** years # 10824.3216 print(f"{value:.2f}") ``` stdout: 10824.32 The balance is $10,824.32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "10824.32", "printed": "10824.32", "notation": null}
nlprog_det-setting-0066680
What does $10,000 grow to in 5 years at 4% annual compounding? The program: ```python principal = 10000 rate = 4 / 100 # 0.04 years = 5 value = principal * (1 + rate) ** years # 12166.529024000001 print(f"{value:.2f}") ``` Run it and it prints 12166.53. The balance is $12,166.53.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "12166.53", "printed": "12166.53", "notation": null}
nlprog_det-setting-0066681
<|start|><|user|> A car gets 36 miles per gallon. Gas is $4.12 a gallon. What does fuel cost for a 450-mile trip?<|eot|> <|assistant|> The trip uses $51.50 of gas.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car gets 36 miles per gallon. Gas is $4.12 a gallon. What does fuel cost for a 450-mile trip?" }, { "role": "assistant", "content": "The trip uses $51.50 of gas." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "51.50", "printed": "51.50", "notation": null}
nlprog_det-setting-0066682
A $2,500 security deposit has deductions of $75 and $150. How much is refunded? Set it up in Python: ```python deposit = 2500 deductions = [75, 150] refund = deposit - sum(deductions) # 2275 print(refund) ``` The printout reads: 2275 The refund is $2,275.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2275", "printed": "2275", "notation": null}
nlprog_det-setting-0066683
A 195-mile drive at a steady 65 mph takes how many minutes? Here's the code. ```python distance = 195 speed = 65 minutes = distance / speed * 60 print(round(minutes)) ``` The run gives 180. The trip takes 180 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0066684
If a 25-minute shift begins at 12:20 PM, what time does it finish? Set it up in Python: start = 12 * 60 + 20 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") Printed = 12:45 PM It ends at 12:45 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "12:45 PM", "printed": "12:45 PM", "notation": null}
nlprog_det-setting-0066685
At $27.25 an hour, what does 12 hours of work pay? That earns $327.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "327.00", "printed": "327.00", "notation": null}
nlprog_det-setting-0066686
Convert 11.9 km to meters. That is 11,900 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
22
{"gold": "11900", "printed": "11900", "notation": null}
nlprog_det-setting-0066687
<|start|><|user|> Express 103 hours in days and hours.<|eot|> <|assistant|> 103 hours is 4 days and 7 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 103 hours in days and hours." }, { "role": "assistant", "content": "103 hours is 4 days and 7 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "4 days and 7 hours", "printed": "4 days and 7 hours", "notation": null}
nlprog_det-setting-0066688
<|start|><|system|> Answer in plain English.<|eot|> <|user|> 3 claimants share a $2,640 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 2640 parties = 3 share = settlement // parties # 880 print(share) ``` This prints 880, as expected. Each party receives $880.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "3 claimants share a $2,640 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 2640\nparties = 3\nshare = settlement // parties # 880\nprint(...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "880", "printed": "880", "notation": null}
nlprog_det-setting-0066689
A count moves from 1,000 to 1,050. By what percent did it change (use a minus sign for a drop)? One way, in code: ```python old = 1000 new = 1050 change = (new - old) / old * 100 print(round(change)) ``` What it prints — 5 It changed by 5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0066690
<|start|><|user|> Farah lends $8,000 at 6% simple interest per year for 5 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 8000 rate = 6 / 100 # 0.06 years = 5 interest = principal * rate * years # 2400.0 print(f"{interest:.2f}") ``` Execution prints 2400.00. It earns $2,400.00.<|eot|> ...
chat
[ { "role": "user", "content": "Farah lends $8,000 at 6% simple interest per year for 5 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 8000\nrate = 6 / 100 # 0.06\nyears = 5\ninterest = principal * rate * years # 2400.0\nprint(f\"{interest:.2f}\...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0066692
A $120 dinner bill gets a 15% tip, and 5 people share the cost equally. What is each person's share? Computation in Python: ```python bill = 120 tip_rate = 15 / 100 # 0.15 people = 5 each = bill * (1 + tip_rate) / people # 27.6 print(f"{each:.2f}") ``` (Run result: 27.60) Each person pays $27.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "27.60", "printed": "27.60", "notation": null}
nlprog_det-setting-0066693
<|start|><|system|> Tools (call with JSON): [{"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> The firm was foun...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
199
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0066694
A water bill is $12 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 6 thousand gallons? Computation in Python: ```python base = 12 rate = 3.5 used = 6 free = 3 bill = base + rate * max(0, used - free) # 22.5 print(f"{bill:.2f}") ``` Output of the run — 22.50 $22.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "22.50", "printed": "22.50", "notation": null}
nlprog_det-setting-0066695
Under a 40% contingency agreement, what fee is owed on a $90,000 award? In Python: recovery = 90000 rate = 40 / 100 # 0.4 fee = recovery * rate # 36000.0 print(f"{fee:.2f}") The program prints: 36000.00 The lawyer's fee comes to $36,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "36000.00", "printed": "36000.00", "notation": null}
nlprog_det-setting-0066696
An attorney bills 4 hours at $250 per hour. What is the bill? ```python hours = 4 rate = 250 bill = hours * rate # 1000 print(f"{bill:.2f}") ``` stdout — 1000.00 That comes to $1,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0066697
A pack of 5 scissors sells for $135. What does each cost? Python version: ```python total = 135 count = 5 per_item = total // count # 27 print(per_item) ``` What it prints — 27 Each one costs $27.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0066698
Someone works 36 hours at $18.70 per hour. What are the earnings? Python: ```python rate = 18.7 hours = 36 earnings = rate * hours # 673.1999999999999 print(f"{earnings:.2f}") ``` Printed = 673.20 That earns $673.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "673.20", "printed": "673.20", "notation": null}
nlprog_det-setting-0066699
<|start|><|user|> How many minutes pass from 8:52 AM to 2:08 PM on the same day?<|eot|> <|assistant|> 316 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 8:52 AM to 2:08 PM on the same day?" }, { "role": "assistant", "content": "316 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "316", "printed": "316", "notation": null}
nlprog_det-setting-0066700
What percentage of $8,000 is $5,600? We can compute it in Python. ```python budget = 8000 spent = 5600 percent = spent / budget * 100 # 70.0 print(round(percent, 1)) ``` # run result: 70.0 That is 70.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "70.0", "printed": "70.0", "notation": null}
nlprog_det-setting-0066701
Abel's scores were 90, 86, 89, 61, 93, 69 and 65. What is the average score? The mean is 79.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0066702
Of a $10,000 budget, $3,700 has been spent. What percent is that? ```python budget = 10000 spent = 3700 percent = spent / budget * 100 # 37.0 print(round(percent, 1)) ``` stdout — 37.0 37.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "37.0", "printed": "37.0", "notation": null}
nlprog_det-setting-0066703
<|start|><|user|> A party has 28 days to respond to a motion served on February 20, 2027, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> from datetime import date, timedelta served = date(2027, 2, 20) # datetime.date(2027, 2, 20) response_days = 28 mail_da...
chat
[ { "role": "user", "content": "A party has 28 days to respond to a motion served on February 20, 2027, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n served = date(2027, 2, 20) # dateti...
nlprog_det
setting
original
null
deterministic
[]
[]
169
{"gold": "2027-03-23", "printed": "2027-03-23", "notation": null}
nlprog_det-setting-0066704
What day of the week is October 23, 1997? Here is the program. ```python from datetime import date hearing = date(1997, 10, 23) # datetime.date(1997, 10, 23) print(hearing.strftime("%A")) ``` (Run result: Thursday) October 23, 1997 is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0066706
A pack of 5 hard drives sells for $200. What does each cost? ```python total = 200 count = 5 per_item = total // count # 40 print(per_item) ``` Output — 40 The unit price is $40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0066707
Bruna was born on October 26, 1975. How old is Bruna on January 18, 2024? The Python version: ```python from datetime import date born = date(1975, 10, 26) # datetime.date(1975, 10, 26) on = date(2024, 1, 18) # datetime.date(2024, 1, 18) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 48...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0066708
Count 10 days forward from January 2, 2020. What date is that? Python does the arithmetic: ```python from datetime import date, timedelta start = date(2020, 1, 2) # datetime.date(2020, 1, 2) end = start + timedelta(days=10) # datetime.date(2020, 1, 12) print(end.isoformat()) ``` Running it prints 2020-01-12. It end...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "2020-01-12", "printed": "2020-01-12", "notation": null}