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-0051735
A lawyer's fee is 35% of a $90,000 recovery. How large is the fee? We can compute it in Python. ```python recovery = 90000 rate = 35 / 100 # 0.35 fee = recovery * rate # 31499.999999999996 print(f"{fee:.2f}") ``` Result = 31500.00 The lawyer's fee comes to $31,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "31500.00", "printed": "31500.00", "notation": null}
nlprog_det-setting-0051736
<|start|><|system|> You help with homework problems.<|eot|> <|user|> 89 copies of a 40-page packet are printed at $0.10 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 40 copies = 89 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 356.0 print(f"{cost:.2f}") ``` Output of the run — 356.00...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "89 copies of a 40-page packet are printed at $0.10 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 40\ncopies = 89\ncost_per_page = 0.1\ncost = pag...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "356.00", "printed": "356.00", "notation": null}
nlprog_det-setting-0051737
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> A trial runs from July 26, 2025 to August 10, 2025, counting both days. How many calendar days is that?<|eot|> <|assistant|> That is 16 days.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "A trial runs from July 26, 2025 to August 10, 2025, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "That is 16 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
55
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0051738
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> A measure needs at least 60% of 178 votes. How many votes is that, rounded up?<|eot|> <|assistant|> 107 votes are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "A measure needs at least 60% of 178 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "107 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "107", "printed": "107", "notation": null}
nlprog_det-setting-0051739
Printing costs 8 cents a page. What does it cost to print 137 copies of a 35-page handout? Computation in Python: ```python pages = 35 copies = 137 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 383.6 print(f"{cost:.2f}") ``` Console: 383.60 The job costs $383.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "383.60", "printed": "383.60", "notation": null}
nlprog_det-setting-0051740
<|start|><|system|> Tools you may use: [{"name": "sandbox_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A garage charges $3 an hour, never more ...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"sandbox_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]" ...
nlprog_det
setting
original
null
deterministic
[]
[]
222
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0051741
<|start|><|user|> A 10 × 11 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 10 width = 11 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 28 print(tiles) ``` Executing it gives 28, as expected. It takes 28 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 10 × 11 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 10\nwidth = 11\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 28\nprint(tiles)\n```\nExecuting ...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0051742
Pack A has 6 items for $10.87. Pack B has 15 items for $14.74. Which has the lower price per item? Python code: ```python pack_a = 10.87 / 6 # 1.8116666666666665 pack_b = 14.74 / 15 # 0.9826666666666667 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` # out: B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0051743
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> With $36,000 in costs and $41,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> revenue = 41000 costs = 36000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 12.1951219512195...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "With $36,000 in costs and $41,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": " revenue = 41000\n costs = 36000\n pr...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "12.2", "printed": "12.2", "notation": null}
nlprog_det-setting-0051744
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> A count moves from 500 to 575. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> old = 500 new = 575 change = (new - old) / old * 100 # 15.0 print(round(change)) Run output: 15 It changed...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "A count moves from 500 to 575. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": " old = 500\n new = 575\n change...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0051745
Convert 40 °C to Fahrenheit. It equals 104 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0051746
<|start|><|user|> Rent of $900 goes up 5%. What is the new rent?<|eot|> <|assistant|> ```python rent = 900 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 945.0 print(f"{new_rent:.2f}") ``` The code prints: 945.00 It rises to $945.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $900 goes up 5%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 900\nincrease = 5 / 100 # 0.05\nnew_rent = rent * (1 + increase) # 945.0\nprint(f\"{new_rent:.2f}\")\n```\nThe code prints: 945.00\n\nIt rises to $945.00." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "945.00", "printed": "945.00", "notation": null}
nlprog_det-setting-0051747
<|start|><|user|> What does $10,000 grow to in 5 years at 4% annual compounding?<|eot|> <|assistant|> It is worth $12,166.53.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $10,000 grow to in 5 years at 4% annual compounding?" }, { "role": "assistant", "content": "It is worth $12,166.53." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "12166.53", "printed": "12166.53", "notation": null}
nlprog_det-setting-0051749
<|start|><|system|> You are a data assistant.<|eot|> <|user|> A measure needs at least 67% of 124 votes. How many votes is that, rounded up?<|eot|> <|assistant|> import math voters = 124 needed = math.ceil(voters * 67 / 100) # 84 print(needed) # result: 84 At least 84 votes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "A measure needs at least 67% of 124 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": " import math\n voters = 124\n needed = math.ceil(voters * 67 / 10...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "84", "printed": "84", "notation": null}
nlprog_det-setting-0051750
<|start|><|user|> What simple interest does $12,000 earn at 4% a year over 4 years?<|eot|> <|assistant|> ```python principal = 12000 rate = 4 / 100 # 0.04 years = 4 interest = principal * rate * years # 1920.0 print(f"{interest:.2f}") ``` Output of the run: 1920.00 The interest is $1,920.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $12,000 earn at 4% a year over 4 years?" }, { "role": "assistant", "content": "```python\nprincipal = 12000\nrate = 4 / 100 # 0.04\nyears = 4\ninterest = principal * rate * years # 1920.0\nprint(f\"{interest:.2f}\")\n```\nOutput of the ru...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1920.00", "printed": "1920.00", "notation": null}
nlprog_det-setting-0051751
Divide 259 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain? We write it as a program: ```python total = 259 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Program output: 86 each, 1 left over 86 each, ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "86 each, 1 left over", "printed": "86 each, 1 left over", "notation": null}
nlprog_det-setting-0051752
Starting with 1948 toner kits and using 35 per day, how many remain after 13 days? Computation in Python: ```python stock = 1948 per_day = 35 days = 13 left = stock - per_day * days # 1493 print(left) ``` Program output: 1493 1493 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1493", "printed": "1493", "notation": null}
nlprog_det-setting-0051753
186 copies of a 19-page packet are printed at $0.05 per page. What is the cost? Python, step by step: ```python pages = 19 copies = 186 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 176.70000000000002 print(f"{cost:.2f}") ``` Result: 176.70 Printing costs $176.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "176.70", "printed": "176.70", "notation": null}
nlprog_det-setting-0051754
<|start|><|user|> Wanjiru drove 87 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> Wanjiru is owed $56.55.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Wanjiru drove 87 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "Wanjiru is owed $56.55." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
55
{"gold": "56.55", "printed": "56.55", "notation": null}
nlprog_det-setting-0051755
Under a 33% contingency agreement, what fee is owed on a $25,000 award? Programmatically: ```python recovery = 25000 rate = 33 / 100 # 0.33 fee = recovery * rate # 8250.0 print(f"{fee:.2f}") ``` (Output: 8250.00) The lawyer's fee comes to $8,250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "8250.00", "printed": "8250.00", "notation": null}
nlprog_det-setting-0051756
<|start|><|user|> Of a $10,000 budget, $2,800 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 10000 spent = 2800 percent = spent / budget * 100 # 28.000000000000004 print(round(percent, 1)) ``` When run, it prints 28.0. 28.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $10,000 budget, $2,800 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 10000\nspent = 2800\npercent = spent / budget * 100 # 28.000000000000004\nprint(round(percent, 1))\n```\nWhen run, it prints 28.0.\n\n28.0% ...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "28.0", "printed": "28.0", "notation": null}
nlprog_det-setting-0051757
12 boxes hold 10 chairs each. After 20 are handed out, how many are left? Computation in Python: ```python boxes = 12 per_box = 10 given_away = 20 left = boxes * per_box - given_away # 100 print(left) ``` Result: 100 That leaves 100 chairs.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0051758
Each storage box holds 50 files. How many boxes are needed for 192 files? We write it as a program: ```python import math files = 192 per_box = 50 boxes = math.ceil(files / per_box) # 4 print(boxes) ``` # execution result: 4 It takes 4 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0051759
A claim accrued on August 19, 2017. The limitations period is 6 years. On what date does it expire? Python version: ```python from datetime import date accrued = date(2017, 8, 19) # datetime.date(2017, 8, 19) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2023, 8, 19) print(expires.is...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2023-08-19", "printed": "2023-08-19", "notation": null}
nlprog_det-setting-0051760
<|start|><|user|> Fines run at $100 per day up to a maximum of $1,000. How much after 28 days?<|eot|> <|assistant|> ```python per_day = 100 days = 28 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Output: 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 28 days?" }, { "role": "assistant", "content": "```python\nper_day = 100\ndays = 28\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\nOutput: 1000\n\nThe fine is $1,000." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0051761
<|start|><|user|> How many days are there from May 11, 2028 to August 17, 2028?<|eot|> <|assistant|> ```python from datetime import date first = date(2028, 5, 11) # datetime.date(2028, 5, 11) second = date(2028, 8, 17) # datetime.date(2028, 8, 17) print((second - first).days) ``` The code prints: 98 It is 98 days.<|...
chat
[ { "role": "user", "content": "How many days are there from May 11, 2028 to August 17, 2028?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2028, 5, 11) # datetime.date(2028, 5, 11)\nsecond = date(2028, 8, 17) # datetime.date(2028, 8, 17)\nprint((secon...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "98", "printed": "98", "notation": null}
nlprog_det-setting-0051762
A count moves from 500 to 250. By what percent did it change (use a minus sign for a drop)? Here is a short program for it. ```python old = 500 new = 250 change = (new - old) / old * 100 # -50.0 print(round(change)) ``` (Printed result: -50) It changed by -50%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "-50", "printed": "-50", "notation": null}
nlprog_det-setting-0051763
If a 3-year limitations period starts on December 18, 2020, when does it end? It runs out on December 18, 2023.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "2023-12-18", "printed": "2023-12-18", "notation": null}
nlprog_det-setting-0051764
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> 39 keyboards cost $6 apiece. With 8% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 39 unit_price = 6 subtotal = quantity * unit_price # 234 total = subtotal * (1 + 8 / 100) # 252.72000000000003 print(f"{total:.2f}") ``` Progr...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "39 keyboards cost $6 apiece. With 8% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 39\nunit_price = 6\nsubtotal = quantity * unit_price # 234...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "252.72", "printed": "252.72", "notation": null}
nlprog_det-setting-0051765
How many 1-foot square tiles cover a 13 ft by 13 ft floor (round up)? Here's the code. ```python import math length = 13 width = 13 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 169 print(tiles) ``` Interpreter output: 169 It takes 169 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "169", "printed": "169", "notation": null}
nlprog_det-setting-0051766
2 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? ```python award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 2 # 14400.0 print(f"{per_client:.2f}") ``` (Result: 14400.00) Each client gets $14,400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "14400.00", "printed": "14400.00", "notation": null}
nlprog_det-setting-0051767
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> Printing costs 15 cents a page. What does it cost to print 41 copies of a 53-page handout?<|eot|> <|assistant|> pages = 53 copies = 41 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 325.95 print(f"{cost:.2f...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "Printing costs 15 cents a page. What does it cost to print 41 copies of a 53-page handout?" }, { "role": "assistant", "content": " pages = 53\n copies = 41\n cost_per...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "325.95", "printed": "325.95", "notation": null}
nlprog_det-setting-0051768
The paralegal logged 1.5 hours at a rate of $180. How much is billed? Written as code: ```python hours = 1.5 rate = 180 bill = hours * rate print(f"{bill:.2f}") ``` Running this gives 270.00. The bill is $270.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "270.00", "printed": "270.00", "notation": null}
nlprog_det-setting-0051769
What does $5,000 grow to in 3 years at 2% annual compounding? Computation in Python: principal = 5000 rate = 2 / 100 # 0.02 years = 3 value = principal * (1 + rate) ** years # 5306.040000000001 print(f"{value:.2f}") # printed result: 5306.04 It is worth $5,306.04.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "5306.04", "printed": "5306.04", "notation": null}
nlprog_det-setting-0051770
<|start|><|user|> Wanjiru and Zoe share $2,240 in the ratio 2:5. How much does Wanjiru get?<|eot|> <|assistant|> ```python total = 2240 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 640 print(share_a) ``` Out — 640 Wanjiru's share is $640.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Wanjiru and Zoe share $2,240 in the ratio 2:5. How much does Wanjiru get?" }, { "role": "assistant", "content": "```python\ntotal = 2240\nparts_a = 2\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 640\nprint(share_a)\n```\nOut — 640\n\nWanjiru's s...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "640", "printed": "640", "notation": null}
nlprog_det-setting-0051771
Arjun's scores were 85, 53 and 75. What is the average score? Let the code do the arithmetic: ```python scores = [85, 53, 75] average = sum(scores) // len(scores) # 71 print(average) ``` It prints 71. The mean is 71.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0051772
<|start|><|user|> Fines run at $25 per day up to a maximum of $2,500. How much after 8 days?<|eot|> <|assistant|> ```python per_day = 25 days = 8 cap = 2500 fine = min(per_day * days, cap) # 200 print(fine) ``` stdout: 200 $200 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $25 per day up to a maximum of $2,500. How much after 8 days?" }, { "role": "assistant", "content": "```python\nper_day = 25\ndays = 8\ncap = 2500\nfine = min(per_day * days, cap) # 200\nprint(fine)\n```\nstdout: 200\n\n$200 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0051773
3 walks at 150 calories each burn how many calories in total? Written as code: per_session = 150 sessions = 3 total = per_session * sessions # 450 print(total) stdout: 450 That burns 450 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0051774
<|start|><|user|> At an exchange rate of 1.08 EUR per USD, how many EUR is 7,958 USD?<|eot|> <|assistant|> ```python amount = 7958 rate = 1.08 converted = amount * rate # 8594.640000000001 print(f"{converted:.2f}") ``` (Program output: 8594.64) It converts to 8,594.64 EUR.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.08 EUR per USD, how many EUR is 7,958 USD?" }, { "role": "assistant", "content": "```python\namount = 7958\nrate = 1.08\nconverted = amount * rate # 8594.640000000001\nprint(f\"{converted:.2f}\")\n```\n(Program output: 8594.64)\n\nIt conver...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "8594.64", "printed": "8594.64", "notation": null}
nlprog_det-setting-0051775
<|start|><|user|> A 7 × 5 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 7 width = 5 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 35 print(tiles) ``` The run gives 35. 35 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 7 × 5 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 7\nwidth = 5\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 35\nprint(tiles)\n```\nThe run gives ...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0051776
Equal monthly payments repay $1,200 plus 10% simple yearly interest over 24 months. How large is a payment? ```python principal = 1200 annual_rate = 10 / 100 # 0.1 months = 24 interest = principal * annual_rate * months / 12 # 240.0 payment = (principal + interest) / months # 60.0 print(f"{payment:.2f}") ``` Out — ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0051777
<|start|><|user|> Counting the first and last day, how many days are there from April 28, 2024 through May 13, 2024?<|eot|> <|assistant|> ```python from datetime import date first = date(2024, 4, 28) # datetime.date(2024, 4, 28) last = date(2024, 5, 13) # datetime.date(2024, 5, 13) days = (last - first).days + 1 # 1...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from April 28, 2024 through May 13, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2024, 4, 28) # datetime.date(2024, 4, 28)\nlast = date(2024, 5, 13) # datet...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0051778
Counting only Monday through Friday, how many business days are there after September 19, 2023 through October 1, 2023? Program: ```python from datetime import date, timedelta start = date(2023, 9, 19) end = date(2023, 10, 1) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekd...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0051779
<|start|><|user|> A 5 × 11 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 5 width = 11 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 14 print(tiles) ``` Execution prints 14, as expected. It takes 14 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 5 × 11 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 5\nwidth = 11\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 14\nprint(tiles)\n```\nExecution pr...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0051780
<|start|><|user|> What does $2,000 grow to in 5 years at 2% annual compounding?<|eot|> <|assistant|> principal = 2000 rate = 2 / 100 # 0.02 years = 5 value = principal * (1 + rate) ** years # 2208.1616064 print(f"{value:.2f}") # program output: 2208.16 It is worth $2,208.16.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $2,000 grow to in 5 years at 2% annual compounding?" }, { "role": "assistant", "content": " principal = 2000\n rate = 2 / 100 # 0.02\n years = 5\n value = principal * (1 + rate) ** years # 2208.1616064\n print(f\"{value:.2f}\")\n# program ...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "2208.16", "printed": "2208.16", "notation": null}
nlprog_det-setting-0051781
Eamon earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 52-hour week? Here is the program. ```python rate = 16.0 hours = 52 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 288.0 pay = regular + overtime # 928.0 print(f"{pay:.2f}") ``` Execution result: 928.00 The ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "928.00", "printed": "928.00", "notation": null}
nlprog_det-setting-0051782
<|start|><|user|> Split $704 between Oskar and Mateo in the ratio 1 to 3. What is Oskar's share?<|eot|> <|assistant|> total = 704 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 176 print(share_a) (Output: 176) Oskar's share is $176.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $704 between Oskar and Mateo in the ratio 1 to 3. What is Oskar's share?" }, { "role": "assistant", "content": " total = 704\n parts_a = 1\n parts_b = 3\n share_a = total * parts_a // (parts_a + parts_b) # 176\n print(share_a)\n(Output: 176)\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "176", "printed": "176", "notation": null}
nlprog_det-setting-0051783
<|start|><|system|> You can call tools. Available tools: {"name": "compute", "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|> A penalty ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"compute\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
219
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0051784
A meal costs $94.65. How much is a 18% tip? Python: bill = 94.65 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 17.037 print(f"{tip:.2f}") Program output: 17.04 The tip is $17.04.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "17.04", "printed": "17.04", "notation": null}
nlprog_det-setting-0051785
5 runs at 400 calories each burn how many calories in total? Python code: per_session = 400 sessions = 5 total = per_session * sessions # 2000 print(total) # program output: 2000 2000 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0051786
<|start|><|user|> A penalty of $100 a day accrues, capped at $2,500. What is owed after 20 days?<|eot|> <|assistant|> ```python per_day = 100 days = 20 cap = 2500 fine = min(per_day * days, cap) # 2000 print(fine) ``` (Run result: 2000) $2,000 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $100 a day accrues, capped at $2,500. What is owed after 20 days?" }, { "role": "assistant", "content": "```python\nper_day = 100\ndays = 20\ncap = 2500\nfine = min(per_day * days, cap) # 2000\nprint(fine)\n```\n(Run result: 2000)\n\n$2,000 is owed." ...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0051787
If a 3-year limitations period starts on May 5, 2019, when does it end? As Python: ```python from datetime import date accrued = date(2019, 5, 5) # datetime.date(2019, 5, 5) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 5, 5) print(expires.isoformat()) ``` (Out: 2022-05-05) Th...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2022-05-05", "printed": "2022-05-05", "notation": null}
nlprog_det-setting-0051788
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python sou...
nlprog_det
setting
original
null
deterministic
[]
[]
338
{"gold": "34.00", "printed": "34.00", "notation": null}
nlprog_det-setting-0051789
<|start|><|system|> Tools you may use: [{"name": "calc", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Equal monthly payments repay $3...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"calc\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"scrip...
nlprog_det
setting
original
null
deterministic
[]
[]
246
{"gold": "330.00", "printed": "330.00", "notation": null}
nlprog_det-setting-0051790
<|start|><|user|> At $25.75 an hour, what does 38 hours of work pay?<|eot|> <|assistant|> ```python rate = 25.75 hours = 38 earnings = rate * hours # 978.5 print(f"{earnings:.2f}") ``` (Printed result: 978.50) The pay is $978.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $25.75 an hour, what does 38 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 25.75\nhours = 38\nearnings = rate * hours # 978.5\nprint(f\"{earnings:.2f}\")\n```\n(Printed result: 978.50)\n\nThe pay is $978.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "978.50", "printed": "978.50", "notation": null}
nlprog_det-setting-0051791
5 walks at 300 calories each burn how many calories in total? As a program: ```python per_session = 300 sessions = 5 total = per_session * sessions print(total) ``` Output: 1500 1500 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0051792
A client paid a $10,000 retainer. The firm has billed 5 hours at $150 per hour. How much of the retainer is left? Python, step by step: ```python retainer = 10000 hours = 5 rate = 150 left = retainer - hours * rate # 9250 print(left) ``` When run, it prints 9250. $9,250 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "9250", "printed": "9250", "notation": null}
nlprog_det-setting-0051793
<|start|><|system|> Tool definitions: [{"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "search_cases", "descripti...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
288
{"gold": "11.13", "printed": "11.13", "notation": null}
nlprog_det-setting-0051794
4 friends split a $120 bill plus a 15% tip evenly. How much does each pay? The computation: ```python bill = 120 tip_rate = 15 / 100 # 0.15 people = 4 each = bill * (1 + tip_rate) / people # 34.5 print(f"{each:.2f}") ``` Program output: 34.50 The share is $34.50 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "34.50", "printed": "34.50", "notation": null}
nlprog_det-setting-0051795
A penalty of $50 a day accrues, capped at $5,000. What is owed after 33 days? We write it as a program: ```python per_day = 50 days = 33 cap = 5000 fine = min(per_day * days, cap) # 1650 print(fine) ``` (Result: 1650) The fine is $1,650.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1650", "printed": "1650", "notation": null}
nlprog_det-setting-0051796
Convert 35 °C to Fahrenheit. A short script: ```python celsius = 35 fahrenheit = celsius * 9 / 5 + 32 # 95.0 print(round(fahrenheit)) ``` # program output: 95 That is 95 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0051797
Notice was given on April 18, 2019. The notice period is 120 days. When does it run out? Here's the code. ```python from datetime import date, timedelta start = date(2019, 4, 18) end = start + timedelta(days=120) print(end.isoformat()) ``` (Execution result: 2019-08-16) That date is August 16, 2019.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2019-08-16", "printed": "2019-08-16", "notation": null}
nlprog_det-setting-0051798
<|start|><|user|> 2 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> Each client gets $33,600.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "Each client gets $33,600.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "33600.00", "printed": "33600.00", "notation": null}
nlprog_det-setting-0051799
<|start|><|user|> To read 200 pages in 4 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 200 days = 4 per_day = pages // days # 50 print(per_day) ``` The script prints 50. 50 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 200 pages in 4 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 200\ndays = 4\nper_day = pages // days # 50\nprint(per_day)\n```\nThe script prints 50.\n\n50 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0051800
<|start|><|system|> Be concise.<|eot|> <|user|> One can of paint covers 350 square feet. How many cans are needed for 1161 square feet of wall?<|eot|> <|assistant|> ```python import math area = 1161 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) ``` Result: 4 Buy 4 cans.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "One can of paint covers 350 square feet. How many cans are needed for 1161 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1161\ncoverage = 350\ncans = math.ceil(a...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0051802
A 195-mile drive at a steady 65 mph takes how many minutes? One way, in code: ```python distance = 195 speed = 65 minutes = distance / speed * 60 # 180.0 print(round(minutes)) ``` That prints: 180 The trip takes 180 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0051803
<|start|><|system|> Be brief and correct.<|eot|> <|user|> At $31.54 an hour, what does 32 hours of work pay?<|eot|> <|assistant|> ```python rate = 31.54 hours = 32 earnings = rate * hours # 1009.28 print(f"{earnings:.2f}") ``` The code prints 1009.28. The pay is $1,009.28.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "At $31.54 an hour, what does 32 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 31.54\nhours = 32\nearnings = rate * hours # 1009.28\nprint(f\"{earnings:.2f}\")\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1009.28", "printed": "1009.28", "notation": null}
nlprog_det-setting-0051804
Tomas buys 3 boxes of 6 labels each and gives away 19 labels. How many labels are left? Here is the program. ```python boxes = 3 per_box = 6 given_away = 19 left = boxes * per_box - given_away # -1 print(left) ``` The printout reads: -1 That leaves -1 labels.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "-1", "printed": "-1", "notation": null}
nlprog_det-setting-0051805
<|start|><|user|> A 1026-page report must be reviewed in 19 days. How many pages a day is that, evenly?<|eot|> <|assistant|> 54 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 1026-page report must be reviewed in 19 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "54 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0051806
<|start|><|user|> How many 1-foot square tiles cover a 17 ft by 11 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 17 width = 11 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 187 print(tiles) ``` (Console output: 187) 187 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 1-foot square tiles cover a 17 ft by 11 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 17\nwidth = 11\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 187\nprint(tiles)\n```\n(Console output: 187)...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "187", "printed": "187", "notation": null}
nlprog_det-setting-0051807
Attendance was 71 out of 80. Express it as a percent. As a program: ```python present = 71 total = 80 percent = present / total * 100 # 88.75 print(round(percent, 1)) ``` It outputs: 88.8 Attendance was 88.8%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "88.8", "printed": "88.8", "notation": null}
nlprog_det-setting-0051808
A $24,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment? In code: ```python grant = 24000 up_front = 3000 installments = 12 each = (grant - up_front) / installments # 1750.0 print(f"{each:.2f}") ``` Output — 1750.00 Each installment is $1,750.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1750.00", "printed": "1750.00", "notation": null}
nlprog_det-setting-0051809
How many of 126 votes make 75% (round up)? The computation: import math voters = 126 needed = math.ceil(voters * 75 / 100) # 95 print(needed) Executed, it shows: 95 95 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0051810
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> A garage charges $4 an hour, never more than $24 a day. How much for 11 hours?<|eot|> <|assistant|> ```python rate = 4 hours = 11 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` The code prints 24. Parking costs $24.<|e...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "A garage charges $4 an hour, never more than $24 a day. How much for 11 hours?" }, { "role": "assistant", "content": "```python\nrate = 4\nhours = 11\ndaily_max = 24\ncost = min(r...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0051811
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> Count the days between October 28, 2019 and August 26, 2020.<|eot|> <|assistant|> ```python from datetime import date first = date(2019, 10, 28) # datetime.date(2019, 10, 28) second = date(2020, 8, 26) # datetime.date(2020, 8, 26) print((second - first...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "Count the days between October 28, 2019 and August 26, 2020." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2019, 10, 28) # datetime.date(2019, ...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "303", "printed": "303", "notation": null}
nlprog_det-setting-0051812
<|start|><|user|> Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 54 hours?<|eot|> <|assistant|> ```python rate = 25.0 hours = 54 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 525.0 pay = regular + overtime # 1525.0 print(f"{pay:.2f}") ``` Running this giv...
chat
[ { "role": "user", "content": "Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 54 hours?" }, { "role": "assistant", "content": "```python\nrate = 25.0\nhours = 54\nregular = 40 * rate # 1000.0\novertime = (hours - 40) * rate * 1.5 # 525.0\npay = regular + ...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "1525.00", "printed": "1525.00", "notation": null}
nlprog_det-setting-0051813
An invoice lists 3 water bottles at $4 each, plus 6% sales tax. What is the invoice total? Python: ```python quantity = 3 unit_price = 4 subtotal = quantity * unit_price # 12 total = subtotal * (1 + 6 / 100) # 12.72 print(f"{total:.2f}") ``` stdout: 12.72 The invoice total is $12.72.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "12.72", "printed": "12.72", "notation": null}
nlprog_det-setting-0051816
At a 8% tax rate, what is the tax on $284.62? We write it as a program: price = 284.62 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 22.7696 print(f"{tax:.2f}") This prints 22.77, as expected. The tax is $22.77.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "22.77", "printed": "22.77", "notation": null}
nlprog_det-setting-0051817
A pack of 5 desk lamps sells for $175. What does each cost? Set it up in Python: total = 175 count = 5 per_item = total // count # 35 print(per_item) (Output: 35) Each one costs $35.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0051818
A $3,600 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment? The monthly payment is $174.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "174.00", "printed": "174.00", "notation": null}
nlprog_det-setting-0051819
What does $10,000 grow to in 2 years at 5% annual compounding? It is worth $11,025.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "11025.00", "printed": "11025.00", "notation": null}
nlprog_det-setting-0051820
<|start|><|user|> What simple interest does $5,000 earn at 8% a year over 5 years?<|eot|> <|assistant|> ```python principal = 5000 rate = 8 / 100 # 0.08 years = 5 interest = principal * rate * years # 2000.0 print(f"{interest:.2f}") ``` # stdout: 2000.00 It earns $2,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $5,000 earn at 8% a year over 5 years?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 8 / 100 # 0.08\nyears = 5\ninterest = principal * rate * years # 2000.0\nprint(f\"{interest:.2f}\")\n```\n# stdout: 2000.00\...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0051821
A water bill is $20 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 21 thousand gallons? A few lines of Python do it: ```python base = 20 rate = 3.5 used = 21 free = 0 bill = base + rate * max(0, used - free) # 93.5 print(f"{bill:.2f}") ``` stdout: 93.50 $93.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "93.50", "printed": "93.50", "notation": null}
nlprog_det-setting-0051822
How many days are there from August 6, 2022 to July 7, 2023? Here's the code. ```python from datetime import date first = date(2022, 8, 6) # datetime.date(2022, 8, 6) second = date(2023, 7, 7) # datetime.date(2023, 7, 7) print((second - first).days) ``` Out = 335 It is 335 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "335", "printed": "335", "notation": null}
nlprog_det-setting-0051823
<|start|><|user|> A 120-day notice period begins on November 21, 2019. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2019, 11, 21) # datetime.date(2019, 11, 21) end = start + timedelta(days=120) # datetime.date(2020, 3, 20) print(end.isoformat()) ``` Runnin...
chat
[ { "role": "user", "content": "A 120-day notice period begins on November 21, 2019. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2019, 11, 21) # datetime.date(2019, 11, 21)\nend = start + timedelta(days=120) # dat...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2020-03-20", "printed": "2020-03-20", "notation": null}
nlprog_det-setting-0051824
What is a 22% tip on a $26.93 bill? Python version: ```python bill = 26.93 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 5.9246 print(f"{tip:.2f}") ``` Out: 5.92 Leave $5.92.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "5.92", "printed": "5.92", "notation": null}
nlprog_det-setting-0051825
Divide 286 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain? 40 each, 6 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "40 each, 6 left over", "printed": "40 each, 6 left over", "notation": null}
nlprog_det-setting-0051826
<|start|><|user|> Hugo was born on December 13, 1966. How old is Hugo on May 13, 2023?<|eot|> <|assistant|> ```python from datetime import date born = date(1966, 12, 13) # datetime.date(1966, 12, 13) on = date(2023, 5, 13) # datetime.date(2023, 5, 13) age = on.year - born.year - ((on.month, on.day) < (born.month, bor...
chat
[ { "role": "user", "content": "Hugo was born on December 13, 1966. How old is Hugo on May 13, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1966, 12, 13) # datetime.date(1966, 12, 13)\non = date(2023, 5, 13) # datetime.date(2023, 5, 13)\nage = on...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0051827
Each of Abel's swims burns 350 calories. How many calories over 7 swims? As Python: ```python per_session = 350 sessions = 7 total = per_session * sessions # 2450 print(total) ``` Output: 2450 2450 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "2450", "printed": "2450", "notation": null}
nlprog_det-setting-0051828
From a $2,500 retainer, 10 hours at $250/hour have been drawn. What remains? In Python: ```python retainer = 2500 hours = 10 rate = 250 left = retainer - hours * rate # 0 print(left) ``` Running it prints 0. $0 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "0", "printed": "0", "notation": null}
nlprog_det-setting-0051829
Counting the first and last day, how many days are there from July 22, 2025 through July 28, 2025? Set it up in Python: ```python from datetime import date first = date(2025, 7, 22) # datetime.date(2025, 7, 22) last = date(2025, 7, 28) # datetime.date(2025, 7, 28) days = (last - first).days + 1 # 7 print(days) ``` ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0051830
Mei drove 440 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement? The Python version: ```python miles = 440 rate = 0.65 reimbursement = miles * rate # 286.0 print(f"{reimbursement:.2f}") ``` # result: 286.00 The reimbursement is $286.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "286.00", "printed": "286.00", "notation": null}
nlprog_det-setting-0051831
At an exchange rate of 1.31 USD per CHF, how many USD is 4,126 CHF? The computation: ```python amount = 4126 rate = 1.31 converted = amount * rate # 5405.06 print(f"{converted:.2f}") ``` Console: 5405.06 It converts to 5,405.06 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "5405.06", "printed": "5405.06", "notation": null}
nlprog_det-setting-0051832
<|start|><|system|> You may call the tools below. [{"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": "You may call the tools below.\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"st...
nlprog_det
setting
original
null
deterministic
[]
[]
347
{"gold": "10958", "printed": "10958", "notation": null}
nlprog_det-setting-0051833
A meal costs $237.44. How much is a 15% tip? Here's the code. ```python bill = 237.44 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 35.616 print(f"{tip:.2f}") ``` (Console output: 35.62) Leave $35.62.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "35.62", "printed": "35.62", "notation": null}
nlprog_det-setting-0051834
<|start|><|system|> You may call the tools below. {"name": "code_runner", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> Sales went from 2,50...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"code_runner\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
207
{"gold": "-40", "printed": "-40", "notation": null}
nlprog_det-setting-0051835
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> How many of 19 votes make 67% (round up)?<|eot|> <|assistant|> ```python import math voters = 19 needed = math.ceil(voters * 67 / 100) # 13 print(needed) ``` The printout reads: 13 13 votes are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "How many of 19 votes make 67% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 19\nneeded = math.ceil(voters * 67 / 100) # 13\nprint(needed)\n```\nThe pr...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0051836
With $20,000 in costs and $22,000 in revenue, what percent of revenue is profit? Round to one decimal. The Python version: ```python revenue = 22000 costs = 20000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 9.090909090909092 print(round(margin, 1)) ``` Printed — 9.1 The margin is 9.1%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "9.1", "printed": "9.1", "notation": null}
nlprog_det-setting-0051838
If a 4-year limitations period starts on December 18, 2024, when does it end? ```python from datetime import date accrued = date(2024, 12, 18) # datetime.date(2024, 12, 18) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2028, 12, 18) print(expires.isoformat()) ``` Console output: 2028...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2028-12-18", "printed": "2028-12-18", "notation": null}
nlprog_det-setting-0051839
Convert -20 °C to Fahrenheit. Let the code do the arithmetic: ```python celsius = -20 fahrenheit = celsius * 9 / 5 + 32 # -4.0 print(round(fahrenheit)) ``` # run result: -4 That is -4 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "-4", "printed": "-4", "notation": null}