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-0065434
What average speed covers 504 miles in 2 hours? Programmatically: ```python distance = 504 hours = 2 speed = distance / hours print(round(speed)) ``` Program output: 252 It averages 252 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "252", "printed": "252", "notation": null}
nlprog_det-setting-0065435
<|start|><|user|> 4 boxes hold 12 chairs each. After 7 are handed out, how many are left?<|eot|> <|assistant|> 41 chairs are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 boxes hold 12 chairs each. After 7 are handed out, how many are left?" }, { "role": "assistant", "content": "41 chairs are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0065436
<|start|><|user|> What simple interest does $5,000 earn at 2% a year over 2 years?<|eot|> <|assistant|> ```python principal = 5000 rate = 2 / 100 # 0.02 years = 2 interest = principal * rate * years # 200.0 print(f"{interest:.2f}") ``` # printed: 200.00 The interest is $200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $5,000 earn at 2% a year over 2 years?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 2 / 100 # 0.02\nyears = 2\ninterest = principal * rate * years # 200.0\nprint(f\"{interest:.2f}\")\n```\n# printed: 200.00\n...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0065437
A trial runs from February 7, 2023 to February 16, 2023, counting both days. How many calendar days is that? ```python from datetime import date first = date(2023, 2, 7) # datetime.date(2023, 2, 7) last = date(2023, 2, 16) # datetime.date(2023, 2, 16) days = (last - first).days + 1 # 10 print(days) ``` That prints ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0065438
<|start|><|user|> Convert 44.1 km to meters.<|eot|> <|assistant|> ```python km = 44.1 meters = km * 1000 # 44100.0 print(round(meters)) ``` It outputs 44100. That is 44,100 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 44.1 km to meters." }, { "role": "assistant", "content": "```python\nkm = 44.1\nmeters = km * 1000 # 44100.0\nprint(round(meters))\n```\nIt outputs 44100.\n\nThat is 44,100 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "44100", "printed": "44100", "notation": null}
nlprog_det-setting-0065439
<|start|><|user|> A claim accrued on February 25, 2019. The limitations period is 6 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2019, 2, 25) # datetime.date(2019, 2, 25) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2025,...
chat
[ { "role": "user", "content": "A claim accrued on February 25, 2019. The limitations period is 6 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2019, 2, 25) # datetime.date(2019, 2, 25)\nyears = 6\nexpires = accrued...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2025-02-25", "printed": "2025-02-25", "notation": null}
nlprog_det-setting-0065440
From a $10,000 retainer, 7 hours at $200/hour have been drawn. What remains? As a program: ```python retainer = 10000 hours = 7 rate = 200 left = retainer - hours * rate # 8600 print(left) ``` On running, it outputs: 8600 $8,600 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "8600", "printed": "8600", "notation": null}
nlprog_det-setting-0065441
If a 25-minute hearing begins at 1:40 PM, what time does it finish? start = 13 * 60 + 40 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") The run gives 2:05 PM. The hearing finishes at 2:05 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2:05 PM", "printed": "2:05 PM", "notation": null}
nlprog_det-setting-0065442
Counting only Monday through Friday, how many business days are there after January 21, 2026 through February 3, 2026? Python code: ```python from datetime import date, timedelta start = date(2026, 1, 21) end = date(2026, 2, 3) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).wee...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
161
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0065443
Find the mean of these test scores: 53, 65, 76, 98, 91, 83 and 66. The computation: scores = [53, 65, 76, 98, 91, 83, 66] average = sum(scores) // len(scores) # 76 print(average) Printed result — 76 The average score is 76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0065444
At $0.62 per mile, what is the reimbursement for 607 miles? We can compute it in Python. ```python miles = 607 rate = 0.62 reimbursement = miles * rate # 376.34 print(f"{reimbursement:.2f}") ``` Executed, it shows 376.34. Leon is owed $376.34.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "376.34", "printed": "376.34", "notation": null}
nlprog_det-setting-0065445
<|start|><|system|> Available functions (JSON Schema): [{"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A jacket costs $4...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
230
{"gold": "40.50", "printed": "40.50", "notation": null}
nlprog_det-setting-0065446
At a 5% tax rate, what is the tax on $596.92? One way, in code: price = 596.92 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 29.846 print(f"{tax:.2f}") This prints 29.85, as expected. The tax is $29.85.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "29.85", "printed": "29.85", "notation": null}
nlprog_det-setting-0065447
Fines run at $50 per day up to a maximum of $1,000. How much after 53 days? As a program: ```python per_day = 50 days = 53 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` The program prints: 1000 The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0065449
How many 1-foot square tiles cover a 11 ft by 13 ft floor (round up)? import math length = 11 width = 13 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 143 print(tiles) # printed: 143 143 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "143", "printed": "143", "notation": null}
nlprog_det-setting-0065450
A 24-month warranty starts on November 19, 2027. On what date does it end? The Python version: ```python from datetime import date start = date(2027, 11, 19) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` (Prin...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2029-11-19", "printed": "2029-11-19", "notation": null}
nlprog_det-setting-0065451
If a 40-minute meeting begins at 1:15 PM, what time does it finish? Python code: ```python start = 13 * 60 + 15 end = start + 40 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The printout reads: 1:55 PM It ends at 1:55 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "1:55 PM", "printed": "1:55 PM", "notation": null}
nlprog_det-setting-0065452
Walls total 197 sq ft and each can covers 350 sq ft. How many cans should be bought? ```python import math area = 197 coverage = 350 cans = math.ceil(area / coverage) # 1 print(cans) ``` (Run result: 1) 1 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0065453
A storeroom has 1899 ink cartridges. The office uses 29 a day. How many are left after 14 days? We write it as a program: ```python stock = 1899 per_day = 29 days = 14 left = stock - per_day * days # 1493 print(left) ``` Running this gives 1493. 1493 ink cartridges are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1493", "printed": "1493", "notation": null}
nlprog_det-setting-0065454
4 books come back 27 days late, at $0.15 a day each. What is the fine? Code: ```python per_day = 0.15 days_late = 27 books = 4 fine = per_day * days_late * books print(f"{fine:.2f}") ``` # output: 16.20 $16.20 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "16.20", "printed": "16.20", "notation": null}
nlprog_det-setting-0065455
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> 3 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 96000 fee = award * 25 / 100 # 24000.0 remaining = award - fee # 72000.0 per_client = remaining / 3 # 24000.0...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "3 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 96000\nfee = award * 25 / 1...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "24000.00", "printed": "24000.00", "notation": null}
nlprog_det-setting-0065456
<|start|><|system|> You can call tools. Available tools: [{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> A court charg...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re...
nlprog_det
setting
original
null
deterministic
[]
[]
257
{"gold": "21.60", "printed": "21.60", "notation": null}
nlprog_det-setting-0065457
<|start|><|system|> You are a math tutor.<|eot|> <|user|> Yusuf and Pilar share $1,605 in the ratio 1:2. How much does Yusuf get?<|eot|> <|assistant|> ```python total = 1605 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) print(share_a) ``` Result: 535 Yusuf's share is $535.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "Yusuf and Pilar share $1,605 in the ratio 1:2. How much does Yusuf get?" }, { "role": "assistant", "content": "```python\ntotal = 1605\nparts_a = 1\nparts_b = 2\nshare_a = total * parts_a // (part...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "535", "printed": "535", "notation": null}
nlprog_det-setting-0065458
<|start|><|system|> Available functions (JSON Schema): {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.",...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"calculator\", \"description\":...
nlprog_det
setting
original
null
deterministic
[]
[]
318
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0065459
3 friends split a $150 bill plus a 18% tip evenly. How much does each pay? Here is a short program for it. bill = 150 tip_rate = 18 / 100 # 0.18 people = 3 each = bill * (1 + tip_rate) / people # 59.0 print(f"{each:.2f}") Execution prints 59.00. Each person pays $59.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "59.00", "printed": "59.00", "notation": null}
nlprog_det-setting-0065460
<|start|><|system|> Tool definitions: [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "python_exec", "description": "Executes a Python program and returns its outp...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"python_exec\", \"descr...
nlprog_det
setting
original
null
deterministic
[]
[]
316
{"gold": "2022-06-27", "printed": "2022-06-27", "notation": null}
nlprog_det-setting-0065461
At 1.5% a month (simple), what interest builds on $2,500 over 3 months? Coded up: ```python balance = 2500 monthly_rate = 1.5 / 100 # 0.015 months = 3 interest = balance * monthly_rate * months # 112.5 print(f"{interest:.2f}") ``` Run it and it prints: 112.50 The interest is $112.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "112.50", "printed": "112.50", "notation": null}
nlprog_det-setting-0065462
A measure needs at least 60% of 267 votes. How many votes is that, rounded up? Python code: import math voters = 267 needed = math.ceil(voters * 60 / 100) # 161 print(needed) Execution prints 161, as expected. At least 161 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "161", "printed": "161", "notation": null}
nlprog_det-setting-0065463
Printing costs 15 cents a page. What does it cost to print 93 copies of a 46-page handout? Computation in Python: ```python pages = 46 copies = 93 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 641.6999999999999 print(f"{cost:.2f}") ``` Python prints 641.70, as expected. Printing costs $641.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "641.70", "printed": "641.70", "notation": null}
nlprog_det-setting-0065464
<|start|><|user|> At $30.78 an hour, what does 20 hours of work pay?<|eot|> <|assistant|> ```python rate = 30.78 hours = 20 earnings = rate * hours # 615.6 print(f"{earnings:.2f}") ``` (Output: 615.60) That earns $615.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $30.78 an hour, what does 20 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 30.78\nhours = 20\nearnings = rate * hours # 615.6\nprint(f\"{earnings:.2f}\")\n```\n(Output: 615.60)\n\nThat earns $615.60." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "615.60", "printed": "615.60", "notation": null}
nlprog_det-setting-0065465
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> Equal monthly payments repay $3,600 plus 10% simple yearly interest over 24 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 3600 annual_rate = 10 / 100 # 0.1 months = 24 interest = principal * annual_rate * months / ...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "Equal monthly payments repay $3,600 plus 10% simple yearly interest over 24 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 3600\nan...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "180.00", "printed": "180.00", "notation": null}
nlprog_det-setting-0065466
<|start|><|system|> Tools (call with JSON): {"name": "compute", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> At a 5% tax rate, what is ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"compute\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
213
{"gold": "35.49", "printed": "35.49", "notation": null}
nlprog_det-setting-0065467
<|start|><|system|> You have access to these functions: [{"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "lookup_statute", "d...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
309
{"gold": "40.50", "printed": "40.50", "notation": null}
nlprog_det-setting-0065468
<|start|><|user|> What percentage of $5,000 is $1,100?<|eot|> <|assistant|> ```python budget = 5000 spent = 1100 percent = spent / budget * 100 # 22.0 print(round(percent, 1)) ``` (Run result: 22.0) That is 22.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $5,000 is $1,100?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nspent = 1100\npercent = spent / budget * 100 # 22.0\nprint(round(percent, 1))\n```\n(Run result: 22.0)\n\nThat is 22.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "22.0", "printed": "22.0", "notation": null}
nlprog_det-setting-0065469
Each of Kofi's swims burns 200 calories. How many calories over 6 swims? Python: ```python per_session = 200 sessions = 6 total = per_session * sessions print(total) ``` It prints: 1200 1200 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0065470
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> From a $7,500 retainer, 9 hours at $200/hour have been drawn. What remains?<|eot|> <|assistant|> retainer = 7500 hours = 9 rate = 200 left = retainer - hours * rate # 5700 print(left) Execution prints 5700, as expected. $5,...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "From a $7,500 retainer, 9 hours at $200/hour have been drawn. What remains?" }, { "role": "assistant", "content": " retainer = 7500\n hours = 9\n rate = 200\n left = r...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "5700", "printed": "5700", "notation": null}
nlprog_det-setting-0065471
Which is cheaper per unit: 6 for $11.77 (A) or 30 for $22.82 (B)? In Python: ```python pack_a = 11.77 / 6 # 1.9616666666666667 pack_b = 22.82 / 30 # 0.7606666666666667 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Output of the run: B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0065472
4 boxes hold 8 paper reams each. After 3 are handed out, how many are left? Python: ```python boxes = 4 per_box = 8 given_away = 3 left = boxes * per_box - given_away # 29 print(left) ``` It prints: 29 29 paper reams are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0065473
Leon was born on April 14, 1985. How old is Leon on October 10, 2024? Here is the program. ```python from datetime import date born = date(1985, 4, 14) # datetime.date(1985, 4, 14) on = date(2024, 10, 10) # datetime.date(2024, 10, 10) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 39 pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0065474
3 boxes hold 8 clipboards each. After 18 are handed out, how many are left? The Python version: ```python boxes = 3 per_box = 8 given_away = 18 left = boxes * per_box - given_away # 6 print(left) ``` Execution result: 6 That leaves 6 clipboards.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0065475
<|start|><|user|> 183 of 200 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 183 total = 200 percent = present / total * 100 # 91.5 print(round(percent, 1)) ``` # run result: 91.5 91.5% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "183 of 200 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 183\ntotal = 200\npercent = present / total * 100 # 91.5\nprint(round(percent, 1))\n```\n# run result: 91.5\n\n91.5% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "91.5", "printed": "91.5", "notation": null}
nlprog_det-setting-0065476
<|start|><|user|> Each storage box holds 25 files. How many boxes are needed for 269 files?<|eot|> <|assistant|> ```python import math files = 269 per_box = 25 boxes = math.ceil(files / per_box) # 11 print(boxes) ``` (Console output: 11) 11 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 25 files. How many boxes are needed for 269 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 269\nper_box = 25\nboxes = math.ceil(files / per_box) # 11\nprint(boxes)\n```\n(Console output: 11)\n\n11 boxes are need...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0065478
Goods bought on May 18, 2020 carry a 12-month warranty. When does it expire? Coded up: ```python from datetime import date start = date(2020, 5, 18) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Printed: 2021-...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2021-05-18", "printed": "2021-05-18", "notation": null}
nlprog_det-setting-0065479
The rules require 3/5 of 18 members (round up) to be present. How many is that? Python version: ```python import math members = 18 quorum = math.ceil(members * 3 / 5) # 11 print(quorum) ``` Run output: 11 11 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0065480
<|start|><|system|> Functions: {"name": "eval_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|> Scale 240 g of rice from 4 servi...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"eval_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippe...
nlprog_det
setting
original
null
deterministic
[]
[]
222
{"gold": "720", "printed": "720", "notation": null}
nlprog_det-setting-0065481
Goods bought on May 5, 2019 carry a 36-month warranty. When does it expire? Here's the code. ```python from datetime import date start = date(2019, 5, 5) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Executed,...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2022-05-05", "printed": "2022-05-05", "notation": null}
nlprog_det-setting-0065482
<|start|><|user|> How many units at $20 each (variable cost $15) cover $1,200 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 1200 price = 20 variable = 15 units = math.ceil(fixed / (price - variable)) # 240 print(units) ``` That prints: 240 Break-even is 240 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $20 each (variable cost $15) cover $1,200 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 1200\nprice = 20\nvariable = 15\nunits = math.ceil(fixed / (price - variable)) # 240\nprint(units)\n```\nThat prints: ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0065483
2 books come back 8 days late, at $0.25 a day each. What is the fine? Here's the code. per_day = 0.25 days_late = 8 books = 2 fine = per_day * days_late * books # 4.0 print(f"{fine:.2f}") Interpreter output: 4.00 The fine is $4.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "4.00", "printed": "4.00", "notation": null}
nlprog_det-setting-0065484
With 14 rows of 12 chairs and 1 empty chairs, how many chairs are taken? A short script: ```python rows = 14 per_row = 12 empty = 1 seated = rows * per_row - empty # 167 print(seated) ``` # output: 167 167 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "167", "printed": "167", "notation": null}
nlprog_det-setting-0065485
What is the total rent on a 18-month lease at $975 a month? Set it up in Python: ```python monthly_rent = 975 months = 18 total = monthly_rent * months # 17550 print(total) ``` Printed result — 17550 In total, $17,550 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "17550", "printed": "17550", "notation": null}
nlprog_det-setting-0065486
<|start|><|user|> A 24-month warranty starts on December 15, 2023. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2023, 12, 15) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isof...
chat
[ { "role": "user", "content": "A 24-month warranty starts on December 15, 2023. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2023, 12, 15)\nmonths = 24\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(sta...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2025-12-15", "printed": "2025-12-15", "notation": null}
nlprog_det-setting-0065487
Of a $4,000 budget, $1,500 has been spent. What percent is that? 37.5% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "37.5", "printed": "37.5", "notation": null}
nlprog_det-setting-0065488
<|start|><|user|> A customer buys 6 water bottles at $12 each, 3 tape rolls at $20 each and pays with $150. How much change is due?<|eot|> <|assistant|> items = [(6, 12), (3, 20)] total = sum(q * p for q, p in items) # 132 paid = 150 change = paid - total # 18 print(change) When run, it prints: 18...
chat
[ { "role": "user", "content": "A customer buys 6 water bottles at $12 each, 3 tape rolls at $20 each and pays with $150. How much change is due?" }, { "role": "assistant", "content": " items = [(6, 12), (3, 20)]\n total = sum(q * p for q, p in items) # 132\n paid = 150\n change = pai...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0065489
How many 1-foot square tiles cover a 13 ft by 4 ft floor (round up)? ```python import math length = 13 width = 4 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 52 print(tiles) ``` The program prints 52, as expected. 52 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "52", "printed": "52", "notation": null}
nlprog_det-setting-0065490
Notice was given on August 20, 2019. The notice period is 30 days. When does it run out? Here is a short program for it. ```python from datetime import date, timedelta start = date(2019, 8, 20) # datetime.date(2019, 8, 20) end = start + timedelta(days=30) # datetime.date(2019, 9, 19) print(end.isoformat()) ``` Resul...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2019-09-19", "printed": "2019-09-19", "notation": null}
nlprog_det-setting-0065491
<|start|><|user|> How many minutes pass from 8:31 AM to 2:39 PM on the same day?<|eot|> <|assistant|> 368 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 8:31 AM to 2:39 PM on the same day?" }, { "role": "assistant", "content": "368 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "368", "printed": "368", "notation": null}
nlprog_det-setting-0065492
<|start|><|system|> Available functions (JSON Schema): {"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
450
{"gold": "1533", "printed": "1533", "notation": null}
nlprog_det-setting-0065493
<|start|><|user|> After an initial $2,000, the remainder of a $30,000 grant is paid in 4 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 30000 up_front = 2000 installments = 4 each = (grant - up_front) / installments # 7000.0 print(f"{each:.2f}") ``` Running it prints: 7000.00 Each installment ...
chat
[ { "role": "user", "content": "After an initial $2,000, the remainder of a $30,000 grant is paid in 4 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 30000\nup_front = 2000\ninstallments = 4\neach = (grant - up_front) / installments # 7000.0\nprint(f\"{e...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0065494
Convert 2 h 42 min (the length of a training session) to minutes. Let's compute it with Python. ```python hours = 2 minutes = 42 total_minutes = hours * 60 + minutes # 162 print(total_minutes) ``` Execution prints 162, as expected. That is 162 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "162", "printed": "162", "notation": null}
nlprog_det-setting-0065495
<|start|><|user|> What day of the week is September 7, 2014?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2014, 9, 7) # datetime.date(2014, 9, 7) print(hearing.strftime("%A")) ``` The code prints: Sunday September 7, 2014 is a Sunday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is September 7, 2014?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2014, 9, 7) # datetime.date(2014, 9, 7)\nprint(hearing.strftime(\"%A\"))\n```\nThe code prints: Sunday\n\nSeptember 7, 2014 is a S...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0065496
Monthly: $29. Annual: $312. What is saved per year by paying annually? Script: ```python monthly = 29 yearly = 312 savings = monthly * 12 - yearly # 36 print(savings) ``` It prints 36. $36 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0065497
<|start|><|user|> How long, in days, is it from June 6, 2028 until January 14, 2029?<|eot|> <|assistant|> ```python from datetime import date first = date(2028, 6, 6) # datetime.date(2028, 6, 6) second = date(2029, 1, 14) # datetime.date(2029, 1, 14) print((second - first).days) ``` Run it and it prints: 222 It is 2...
chat
[ { "role": "user", "content": "How long, in days, is it from June 6, 2028 until January 14, 2029?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2028, 6, 6) # datetime.date(2028, 6, 6)\nsecond = date(2029, 1, 14) # datetime.date(2029, 1, 14)\nprint((se...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "222", "printed": "222", "notation": null}
nlprog_det-setting-0065498
What percentage of $8,000 is $4,000? Let's compute it with Python. ```python budget = 8000 spent = 4000 percent = spent / budget * 100 # 50.0 print(round(percent, 1)) ``` On running, it outputs: 50.0 50.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0065499
<|start|><|system|> You may call the tools below. {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "python", "description": "Executes a Python program and returns its...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"python\", \...
nlprog_det
setting
original
null
deterministic
[]
[]
286
{"gold": "52", "printed": "52", "notation": null}
nlprog_det-setting-0065500
<|start|><|user|> Prorate $1,800 of monthly rent for 11 days of a 31-day month.<|eot|> <|assistant|> rent = 1800 days_in_month = 31 days_occupied = 11 prorated = rent * days_occupied / days_in_month # 638.7096774193549 print(f"{prorated:.2f}") (Output: 638.71) The tenant owes $638.71.<|eot|> <|end...
chat
[ { "role": "user", "content": "Prorate $1,800 of monthly rent for 11 days of a 31-day month." }, { "role": "assistant", "content": " rent = 1800\n days_in_month = 31\n days_occupied = 11\n prorated = rent * days_occupied / days_in_month # 638.7096774193549\n print(f\"{prorated:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "638.71", "printed": "638.71", "notation": null}
nlprog_det-setting-0065501
<|start|><|system|> You are a data assistant.<|eot|> <|user|> With 15% off, what does a $40 jacket cost?<|eot|> <|assistant|> It costs $34.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "With 15% off, what does a $40 jacket cost?" }, { "role": "assistant", "content": "It costs $34.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "34.00", "printed": "34.00", "notation": null}
nlprog_det-setting-0065502
<|start|><|user|> Express 220 hours in days and hours.<|eot|> <|assistant|> ```python hours = 220 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Result: 9 days and 4 hours That is 9 days and 4 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 220 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 220\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nResult:\n9 days and 4 hours\n\nThat is 9 days and 4 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "9 days and 4 hours", "printed": "9 days and 4 hours", "notation": null}
nlprog_det-setting-0065503
<|start|><|system|> Tools you may use: [{"name": "math_engine", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "business_days", "description":...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"math_engine\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
325
{"gold": "2027-08-05", "printed": "2027-08-05", "notation": null}
nlprog_det-setting-0065505
A hall has 25 rows of 14 seats, and 9 seats are empty. How many people are seated? As Python: ```python rows = 25 per_row = 14 empty = 9 seated = rows * per_row - empty # 341 print(seated) ``` Printed — 341 341 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "341", "printed": "341", "notation": null}
nlprog_det-setting-0065506
3 swims at 200 calories each burn how many calories in total? That burns 600 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0065507
<|start|><|user|> Rent of $900 goes up 3%. What is the new rent?<|eot|> <|assistant|> The new rent is $927.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $900 goes up 3%. What is the new rent?" }, { "role": "assistant", "content": "The new rent is $927.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "927.00", "printed": "927.00", "notation": null}
nlprog_det-setting-0065509
3 books come back 17 days late, at $0.15 a day each. What is the fine? The computation: per_day = 0.15 days_late = 17 books = 3 fine = per_day * days_late * books # 7.6499999999999995 print(f"{fine:.2f}") Output: 7.65 $7.65 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "7.65", "printed": "7.65", "notation": null}
nlprog_det-setting-0065510
<|start|><|user|> Someone works 30 hours at $18.12 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 18.12 hours = 30 earnings = rate * hours # 543.6 print(f"{earnings:.2f}") ``` stdout: 543.60 The pay is $543.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 30 hours at $18.12 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 18.12\nhours = 30\nearnings = rate * hours # 543.6\nprint(f\"{earnings:.2f}\")\n```\nstdout:\n543.60\n\nThe pay is $543.60." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "543.60", "printed": "543.60", "notation": null}
nlprog_det-setting-0065511
At 40 miles per hour, how many minutes does a 130-mile trip take? Python makes this quick: ```python distance = 130 speed = 40 minutes = distance / speed * 60 # 195.0 print(round(minutes)) ``` Running it prints: 195 195 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "195", "printed": "195", "notation": null}
nlprog_det-setting-0065512
Xavier was born on May 4, 1989. How old is Xavier on November 6, 2024? We can compute it in Python. ```python from datetime import date born = date(1989, 5, 4) # datetime.date(1989, 5, 4) on = date(2024, 11, 6) # datetime.date(2024, 11, 6) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
161
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0065513
<|start|><|user|> What is the total rent on a 36-month lease at $850 a month?<|eot|> <|assistant|> ```python monthly_rent = 850 months = 36 total = monthly_rent * months print(total) ``` Output of the run — 30600 In total, $30,600 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 36-month lease at $850 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 850\nmonths = 36\ntotal = monthly_rent * months\nprint(total)\n```\nOutput of the run — 30600\n\nIn total, $30,600 is paid." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "30600", "printed": "30600", "notation": null}
nlprog_det-setting-0065514
A service costs $12 a month or $108 a year. How much does the yearly plan save over 12 monthly payments? In Python: ```python monthly = 12 yearly = 108 savings = monthly * 12 - yearly # 36 print(savings) ``` stdout: 36 The annual plan saves $36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0065515
Papers were served by mail on February 17, 2028. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date? In code: ```python from datetime import date, timedelta served = date(2028, 2, 17) # datetime.date(2028, 2, 17) response_days = 21 mail_days = 3 due = served + timedelta(days=...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
181
{"gold": "2028-03-12", "printed": "2028-03-12", "notation": null}
nlprog_det-setting-0065516
What commission does Goran make on $78,012 in sales at 4%? Set it up in Python: ```python sales = 78012 rate = 4 / 100 # 0.04 commission = sales * rate # 3120.48 print(f"{commission:.2f}") ``` The interpreter prints: 3120.48 Goran earns $3,120.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "3120.48", "printed": "3120.48", "notation": null}
nlprog_det-setting-0065517
<|start|><|user|> A lawyer's fee is 33% of a $90,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 90000 rate = 33 / 100 # 0.33 fee = recovery * rate # 29700.0 print(f"{fee:.2f}") ``` What it prints: 29700.00 The lawyer's fee comes to $29,700.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 33% of a $90,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 90000\nrate = 33 / 100 # 0.33\nfee = recovery * rate # 29700.0\nprint(f\"{fee:.2f}\")\n```\nWhat it prints: 29700.00\n\nThe lawyer's fee...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "29700.00", "printed": "29700.00", "notation": null}
nlprog_det-setting-0065518
<|start|><|user|> Sales went from 400 to 340. What is the percent change?<|eot|> <|assistant|> old = 400 new = 340 change = (new - old) / old * 100 # -15.0 print(round(change)) The script prints -15. It changed by -15%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 400 to 340. What is the percent change?" }, { "role": "assistant", "content": " old = 400\n new = 340\n change = (new - old) / old * 100 # -15.0\n print(round(change))\nThe script prints -15.\n\nIt changed by -15%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0065519
A pack of 6 keyboards sells for $96. What does each cost? The Python version: ```python total = 96 count = 6 per_item = total // count # 16 print(per_item) ``` Executing it gives 16, as expected. The unit price is $16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0065520
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python sour...
nlprog_det
setting
original
null
deterministic
[]
[]
219
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0065521
Marek earns a 6% commission on $78,033 of sales. What is the commission? Translated to Python: ```python sales = 78033 rate = 6 / 100 # 0.06 commission = sales * rate # 4681.98 print(f"{commission:.2f}") ``` Console output — 4681.98 Marek earns $4,681.98.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "4681.98", "printed": "4681.98", "notation": null}
nlprog_det-setting-0065522
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> One can of paint covers 400 square feet. How many cans are needed for 148 square feet of wall?<|eot|> <|assistant|> ```python import math area = 148 coverage = 400 cans = math.ceil(area / coverage) # 1 print(cans) ``` Run result = 1 1 cans are needed....
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "One can of paint covers 400 square feet. How many cans are needed for 148 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 148\ncoverage = 400\nc...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0065523
After a 30% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? Python: ```python award = 72000 fee = award * 30 / 100 remaining = award - fee per_client = remaining / 3 print(f"{per_client:.2f}") ``` Console output: 16800.00 Each client gets $16,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "16800.00", "printed": "16800.00", "notation": null}
nlprog_det-setting-0065524
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Someone works 40 hours at $19.83 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 19.83 hours = 40 earnings = rate * hours # 793.1999999999999 print(f"{earnings:.2f}") ``` That prints: 793.20 The pay is $793.20.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Someone works 40 hours at $19.83 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 19.83\nhours = 40\nearnings = rate * hours # 793.19999999999...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "793.20", "printed": "793.20", "notation": null}
nlprog_det-setting-0065525
<|start|><|system|> Tool definitions: {"name": "compute", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> Monthly: $12. Annual: $...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"compute\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
192
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0065526
At $19.69 an hour, what does 40 hours of work pay? Set it up in Python: ```python rate = 19.69 hours = 40 earnings = rate * hours # 787.6 print(f"{earnings:.2f}") ``` Shell output — 787.60 The pay is $787.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "787.60", "printed": "787.60", "notation": null}
nlprog_det-setting-0065527
A settlement of $4,500 is split equally among 6 parties. How much does each party receive? A short script: ```python settlement = 4500 parties = 6 share = settlement // parties # 750 print(share) ``` (Printed: 750) Each share is $750.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0065529
<|start|><|user|> Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> cost = 18000 salvage = 3000 years = 6 per_year = (cost - salvage) / years # 2500.0 print(f"{per_year:.2f}") (Output: 2500.00)...
chat
[ { "role": "user", "content": "Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": " cost = 18000\n salvage = 3000\n years = 6\n per_year = (cost - salvage) / years...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "2500.00", "printed": "2500.00", "notation": null}
nlprog_det-setting-0065530
$2,000 is invested at 5% compounded yearly. What is it worth after 2 years? The computation: ```python principal = 2000 rate = 5 / 100 # 0.05 years = 2 value = principal * (1 + rate) ** years # 2205.0 print(f"{value:.2f}") ``` (Run result: 2205.00) The balance is $2,205.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2205.00", "printed": "2205.00", "notation": null}
nlprog_det-setting-0065531
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> A pack of 4 folders sells for $188. What does each cost?<|eot|> <|assistant|> ```python total = 188 count = 4 per_item = total // count # 47 print(per_item) ``` Run result — 47 Each one costs $47.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "A pack of 4 folders sells for $188. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 188\ncount = 4\nper_item = total // count # 47\nprint(per_item)\n...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0065532
118 copies of a 42-page packet are printed at $0.05 per page. What is the cost? Translated to Python: pages = 42 copies = 118 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 247.8 print(f"{cost:.2f}") The run gives: 247.80 Printing costs $247.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "247.80", "printed": "247.80", "notation": null}
nlprog_det-setting-0065533
A penalty of $50 a day accrues, capped at $1,000. What is owed after 32 days? Program: ```python per_day = 50 days = 32 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Execution result: 1000 $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0065535
A 5% increase is applied to $900 monthly rent. What is the new amount? A short script: rent = 900 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 945.0 print(f"{new_rent:.2f}") Run output: 945.00 The new rent is $945.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "945.00", "printed": "945.00", "notation": null}
nlprog_det-setting-0065536
Goods bought on December 18, 2026 carry a 18-month warranty. When does it expire? It expires on June 18, 2028.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "2028-06-18", "printed": "2028-06-18", "notation": null}
nlprog_det-setting-0065537
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "py_exec", "description...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
284
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0065538
Counting only Monday through Friday, how many business days are there after June 11, 2022 through June 25, 2022? Script: ```python from datetime import date, timedelta start = date(2022, 6, 11) end = date(2022, 6, 25) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0065539
Monthly rent is $2,400. A tenant moves in with 21 days left in a 31-day month. What is the prorated rent? Here is a short program for it. ```python rent = 2400 days_in_month = 31 days_occupied = 21 prorated = rent * days_occupied / days_in_month # 1625.8064516129032 print(f"{prorated:.2f}") ``` Console output — 1625....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "1625.81", "printed": "1625.81", "notation": null}