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-0066078
Count the days between November 15, 2023 and March 17, 2024. Python: from datetime import date first = date(2023, 11, 15) # datetime.date(2023, 11, 15) second = date(2024, 3, 17) # datetime.date(2024, 3, 17) print((second - first).days) That prints 123. It is 123 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "123", "printed": "123", "notation": null}
nlprog_det-setting-0066079
The meal allowance is $69 per day. What is it for 3 days? As a program: ```python days = 3 meal_rate = 69 total = days * meal_rate # 207 print(total) ``` Output: 207 That comes to $207.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "207", "printed": "207", "notation": null}
nlprog_det-setting-0066080
A 6% increase is applied to $1,500 monthly rent. What is the new amount? A Python solution: ```python rent = 1500 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 1590.0 print(f"{new_rent:.2f}") ``` Printed = 1590.00 The new rent is $1,590.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1590.00", "printed": "1590.00", "notation": null}
nlprog_det-setting-0066081
What average speed covers 134 miles in 0.5 hours? A short script: ```python distance = 134 hours = 0.5 speed = distance / hours # 268.0 print(round(speed)) ``` The printout reads 268. The average speed is 268 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "268", "printed": "268", "notation": null}
nlprog_det-setting-0066082
Monthly rent is $1,200. A tenant moves in with 10 days left in a 30-day month. What is the prorated rent? Computation in Python: rent = 1200 days_in_month = 30 days_occupied = 10 prorated = rent * days_occupied / days_in_month print(f"{prorated:.2f}") (Printed: 400.00) The tenant owes $400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "400.00", "printed": "400.00", "notation": null}
nlprog_det-setting-0066083
<|start|><|user|> How many 2-foot square tiles cover a 11 ft by 13 ft floor (round up)?<|eot|> <|assistant|> It takes 36 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 2-foot square tiles cover a 11 ft by 13 ft floor (round up)?" }, { "role": "assistant", "content": "It takes 36 tiles." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0066085
Convert 75.8 km to meters. In Python: ```python km = 75.8 meters = km * 1000 # 75800.0 print(round(meters)) ``` Run output — 75800 That is 75,800 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "75800", "printed": "75800", "notation": null}
nlprog_det-setting-0066086
A trial runs from July 10, 2023 to July 18, 2023, counting both days. How many calendar days is that? In Python: ```python from datetime import date first = date(2023, 7, 10) last = date(2023, 7, 18) days = (last - first).days + 1 print(days) ``` # printed result: 9 9 calendar days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0066087
From a $10,000 retainer, 7 hours at $200/hour have been drawn. What remains? Let the code do the arithmetic: retainer = 10000 hours = 7 rate = 200 left = retainer - hours * rate # 8600 print(left) # stdout: 8600 The remaining balance is $8,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "8600", "printed": "8600", "notation": null}
nlprog_det-setting-0066088
Counting only Monday through Friday, how many business days are there after April 5, 2027 through May 1, 2027? A Python solution: ```python from datetime import date, timedelta start = date(2027, 4, 5) end = date(2027, 5, 1) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekda...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0066089
Rent of $1,800 goes up 6%. What is the new rent? Python makes this quick: ```python rent = 1800 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 1908.0 print(f"{new_rent:.2f}") ``` Output: 1908.00 It rises to $1,908.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1908.00", "printed": "1908.00", "notation": null}
nlprog_det-setting-0066090
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> 4 bike rides at 250 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 250 sessions = 4 total = per_session * sessions # 1000 print(total) ``` The interpreter prints: 1000 1000 calories in total.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "4 bike rides at 250 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 250\nsessions = 4\ntotal = per_session * sessions # 1000...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0066091
9 paper reams cost $15 apiece. With 5% tax added, what is the total? Coded up: ```python quantity = 9 unit_price = 15 subtotal = quantity * unit_price # 135 total = subtotal * (1 + 5 / 100) # 141.75 print(f"{total:.2f}") ``` # output: 141.75 The total with tax is $141.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "141.75", "printed": "141.75", "notation": null}
nlprog_det-setting-0066092
Attendance was 69 out of 80. Express it as a percent. We write it as a program: present = 69 total = 80 percent = present / total * 100 # 86.25 print(round(percent, 1)) Python prints 86.2. Attendance was 86.2%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "86.2", "printed": "86.2", "notation": null}
nlprog_det-setting-0066093
An unpaid balance of $2,500 accrues 2% simple interest per month. How much interest accrues in 4 months? The Python version: balance = 2500 monthly_rate = 2 / 100 # 0.02 months = 4 interest = balance * monthly_rate * months # 200.0 print(f"{interest:.2f}") Executing it gives 200.00, as expected. ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0066094
Express 82 hours in days and hours. Here's the code. hours = 82 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") Run it and it prints 3 days and 10 hours. 82 hours is 3 days and 10 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "3 days and 10 hours", "printed": "3 days and 10 hours", "notation": null}
nlprog_det-setting-0066096
Convert 1,329 GBP to USD at 1 GBP = 1.35 USD. The computation: ```python amount = 1329 rate = 1.35 converted = amount * rate # 1794.15 print(f"{converted:.2f}") ``` The script prints 1794.15, as expected. It converts to 1,794.15 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1794.15", "printed": "1794.15", "notation": null}
nlprog_det-setting-0066097
What is 20 degrees Celsius in Fahrenheit? Python, step by step: celsius = 20 fahrenheit = celsius * 9 / 5 + 32 # 68.0 print(round(fahrenheit)) Output — 68 It equals 68 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0066098
<|start|><|system|> Available functions (JSON Schema): [{"name": "calc", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "define_word", "description": "Return a d...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"calc\", \"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
[]
[]
319
{"gold": "929.60", "printed": "929.60", "notation": null}
nlprog_det-setting-0066099
What is the total rent on a 36-month lease at $1,475 a month? A short script: monthly_rent = 1475 months = 36 total = monthly_rent * months # 53100 print(total) # output: 53100 The rent over the term is $53,100.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "53100", "printed": "53100", "notation": null}
nlprog_det-setting-0066100
What simple interest does $12,000 earn at 6% a year over 4 years? It earns $2,880.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "2880.00", "printed": "2880.00", "notation": null}
nlprog_det-setting-0066101
A 6% increase is applied to $900 monthly rent. What is the new amount? The computation: ```python rent = 900 increase = 6 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` It outputs 954.00. It rises to $954.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "954.00", "printed": "954.00", "notation": null}
nlprog_det-setting-0066102
<|start|><|user|> At a 7% tax rate, what is the tax on $633.87?<|eot|> <|assistant|> ```python price = 633.87 tax_rate = 7 / 100 # 0.07 tax = price * tax_rate # 44.370900000000006 print(f"{tax:.2f}") ``` When run, it prints 44.37, as expected. $44.37 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 7% tax rate, what is the tax on $633.87?" }, { "role": "assistant", "content": "```python\nprice = 633.87\ntax_rate = 7 / 100 # 0.07\ntax = price * tax_rate # 44.370900000000006\nprint(f\"{tax:.2f}\")\n```\nWhen run, it prints 44.37, as expected.\n\n$44.37 in...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "44.37", "printed": "44.37", "notation": null}
nlprog_det-setting-0066103
<|start|><|user|> At 1% a month (simple), what interest builds on $4,000 over 5 months?<|eot|> <|assistant|> ```python balance = 4000 monthly_rate = 1 / 100 # 0.01 months = 5 interest = balance * monthly_rate * months # 200.0 print(f"{interest:.2f}") ``` The interpreter prints: 200.00 The interest is $200.00.<|eot|>...
chat
[ { "role": "user", "content": "At 1% a month (simple), what interest builds on $4,000 over 5 months?" }, { "role": "assistant", "content": "```python\nbalance = 4000\nmonthly_rate = 1 / 100 # 0.01\nmonths = 5\ninterest = balance * monthly_rate * months # 200.0\nprint(f\"{interest:.2f}\")\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0066104
A seminar starts at 10:20 AM and lasts 135 minutes. When does it end? Programmatically: ```python start = 10 * 60 + 20 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` (Output: 12:35 PM) The seminar finishes at 12:35 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "12:35 PM", "printed": "12:35 PM", "notation": null}
nlprog_det-setting-0066105
If a 4-year limitations period starts on September 20, 2022, when does it end? Python does the arithmetic: ```python from datetime import date accrued = date(2022, 9, 20) # datetime.date(2022, 9, 20) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 9, 20) print(expires.isoformat()...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2026-09-20", "printed": "2026-09-20", "notation": null}
nlprog_det-setting-0066106
Pack A has 10 items for $4.19. Pack B has 18 items for $10.42. Which has the lower price per item? The Python version: ```python pack_a = 4.19 / 10 # 0.41900000000000004 pack_b = 10.42 / 18 # 0.5788888888888889 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Result — A A has the lower unit price...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0066107
<|start|><|system|> Functions: {"name": "calc", "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|> Sales went from 500 to 475. What ...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"calc\", \"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...
nlprog_det
setting
original
null
deterministic
[]
[]
188
{"gold": "-5", "printed": "-5", "notation": null}
nlprog_det-setting-0066109
Scale 240 g of rice from 2 servings to 12 servings. The program: ```python grams = 240 serves = 2 needed_for = 12 scaled = grams * needed_for // serves # 1440 print(scaled) ``` Executing it gives: 1440 1440 grams of rice are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1440", "printed": "1440", "notation": null}
nlprog_det-setting-0066110
<|start|><|user|> How many 2-foot square tiles cover a 17 ft by 9 ft floor (round up)?<|eot|> <|assistant|> import math length = 17 width = 9 tile = 2 tiles = math.ceil(length * width / (tile * tile)) print(tiles) What it prints: 39 It takes 39 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 2-foot square tiles cover a 17 ft by 9 ft floor (round up)?" }, { "role": "assistant", "content": " import math\n length = 17\n width = 9\n tile = 2\n tiles = math.ceil(length * width / (tile * tile))\n print(tiles)\nWhat it prints: 39\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0066111
A quorum is 2/3 of the 25 members, rounded up. How many members make a quorum? The program: ```python import math members = 25 quorum = math.ceil(members * 2 / 3) # 17 print(quorum) ``` Run output — 17 That is 17 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0066112
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> Sales went from 500 to 600. What is the percent change?<|eot|> <|assistant|> ```python old = 500 new = 600 change = (new - old) / old * 100 print(round(change)) ``` Running it prints 20, as expected. It changed by 20%.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "Sales went from 500 to 600. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 500\nnew = 600\nchange = (new - old) / old * 100\nprint(round(change))\n``...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0066113
Fines run at $50 per day up to a maximum of $5,000. How much after 13 days? Python, step by step: ```python per_day = 50 days = 13 cap = 5000 fine = min(per_day * days, cap) # 650 print(fine) ``` Python prints: 650 The fine is $650.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "650", "printed": "650", "notation": null}
nlprog_det-setting-0066114
<|start|><|user|> 193 copies of a 14-page packet are printed at $0.12 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 14 copies = 193 cost_per_page = 0.12 cost = pages * copies * cost_per_page print(f"{cost:.2f}") ``` Run it and it prints 324.24. The job costs $324.24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "193 copies of a 14-page packet are printed at $0.12 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 14\ncopies = 193\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page\nprint(f\"{cost:.2f}\")\n```\nRun it and it prints...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "324.24", "printed": "324.24", "notation": null}
nlprog_det-setting-0066115
Express 336 hours in days and hours. As a program: hours = 336 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") The program prints 14 days and 0 hours, as expected. That is 14 days and 0 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "14 days and 0 hours", "printed": "14 days and 0 hours", "notation": null}
nlprog_det-setting-0066116
<|start|><|system|> You may call the tools below. {"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "search_cases", "description": "Search...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"run_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sour...
nlprog_det
setting
original
null
deterministic
[]
[]
378
{"gold": "904", "printed": "904", "notation": null}
nlprog_det-setting-0066117
<|start|><|user|> Split $3,760 between Nadia and Arjun in the ratio 3 to 5. What is Nadia's share?<|eot|> <|assistant|> ```python total = 3760 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1410 print(share_a) ``` It outputs: 1410 Nadia's share is $1,410.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $3,760 between Nadia and Arjun in the ratio 3 to 5. What is Nadia's share?" }, { "role": "assistant", "content": "```python\ntotal = 3760\nparts_a = 3\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 1410\nprint(share_a)\n```\nIt outputs: 1410...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "1410", "printed": "1410", "notation": null}
nlprog_det-setting-0066118
What commission does Quinn make on $58,109 in sales at 10%? Here is the program. ```python sales = 58109 rate = 10 / 100 # 0.1 commission = sales * rate # 5810.900000000001 print(f"{commission:.2f}") ``` Run output — 5810.90 The commission is $5,810.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "5810.90", "printed": "5810.90", "notation": null}
nlprog_det-setting-0066119
<|start|><|user|> At an exchange rate of 1.35 USD per EUR, how many USD is 6,386 EUR?<|eot|> <|assistant|> ```python amount = 6386 rate = 1.35 converted = amount * rate # 8621.1 print(f"{converted:.2f}") ``` It prints 8621.10. That is 8,621.10 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.35 USD per EUR, how many USD is 6,386 EUR?" }, { "role": "assistant", "content": "```python\namount = 6386\nrate = 1.35\nconverted = amount * rate # 8621.1\nprint(f\"{converted:.2f}\")\n```\nIt prints 8621.10.\n\nThat is 8,621.10 USD." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "8621.10", "printed": "8621.10", "notation": null}
nlprog_det-setting-0066120
<|start|><|user|> A trial runs from February 19, 2024 to March 12, 2024, counting both days. How many calendar days is that?<|eot|> <|assistant|> 23 calendar days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A trial runs from February 19, 2024 to March 12, 2024, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "23 calendar days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0066121
<|start|><|user|> A count moves from 800 to 760. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> The change is -5%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 800 to 760. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "The change is -5%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "-5", "printed": "-5", "notation": null}
nlprog_det-setting-0066122
A settlement of $84,000 is split equally among 8 parties. How much does each party receive? settlement = 84000 parties = 8 share = settlement // parties # 10500 print(share) The run gives: 10500 Each party receives $10,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "10500", "printed": "10500", "notation": null}
nlprog_det-setting-0066123
<|start|><|system|> Tools you may use: {"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Split $1,190 between Tariq and Car...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\...
nlprog_det
setting
original
null
deterministic
[]
[]
233
{"gold": "476", "printed": "476", "notation": null}
nlprog_det-setting-0066124
<|start|><|user|> A service costs $25 a month or $276 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 25 yearly = 276 savings = monthly * 12 - yearly # 24 print(savings) ``` Running it prints: 24 The annual plan saves $24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $25 a month or $276 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 25\nyearly = 276\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\nRunning it prints: 24\n...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0066125
A 120-day notice period begins on May 1, 2027. On what date does it end? A short script: from datetime import date, timedelta start = date(2027, 5, 1) # datetime.date(2027, 5, 1) end = start + timedelta(days=120) # datetime.date(2027, 8, 29) print(end.isoformat()) The interpreter prints 2027-08-29. ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "2027-08-29", "printed": "2027-08-29", "notation": null}
nlprog_det-setting-0066126
A 338-page report must be reviewed in 13 days. How many pages a day is that, evenly? In Python: ```python pages = 338 days = 13 per_day = pages // days # 26 print(per_day) ``` Running this gives 26. That is 26 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0066127
<|start|><|system|> You help with homework problems.<|eot|> <|user|> 158 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 158 groups = 7 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "158 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 158\ngroups = 7\nper_group,...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "22 each, 4 left over", "printed": "22 each, 4 left over", "notation": null}
nlprog_det-setting-0066128
An office budget of $5,000 has expenses of $2,096, $897. How much of the budget is left? Script: ```python budget = 5000 expenses = [2096, 897] left = budget - sum(expenses) # 2007 print(left) ``` Executed, it shows: 2007 The remaining budget is $2,007.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "2007", "printed": "2007", "notation": null}
nlprog_det-setting-0066129
Parking is $3 per hour with a daily maximum of $18. What do 8 hours cost? A short script: rate = 3 hours = 8 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) # result: 18 The charge is $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0066130
<|start|><|user|> A settlement of $960 is split equally among 4 parties. How much does each party receive?<|eot|> <|assistant|> Each party receives $240.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $960 is split equally among 4 parties. How much does each party receive?" }, { "role": "assistant", "content": "Each party receives $240." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0066131
At an exchange rate of 0.74 USD per EUR, how many USD is 1,061 EUR? ```python amount = 1061 rate = 0.74 converted = amount * rate # 785.14 print(f"{converted:.2f}") ``` # stdout: 785.14 It converts to 785.14 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "785.14", "printed": "785.14", "notation": null}
nlprog_det-setting-0066133
<|start|><|user|> 23 copies of a 50-page packet are printed at $0.08 per page. What is the cost?<|eot|> <|assistant|> pages = 50 copies = 23 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 92.0 print(f"{cost:.2f}") Executing it gives: 92.00 Printing costs $92.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "23 copies of a 50-page packet are printed at $0.08 per page. What is the cost?" }, { "role": "assistant", "content": " pages = 50\n copies = 23\n cost_per_page = 0.08\n cost = pages * copies * cost_per_page # 92.0\n print(f\"{cost:.2f}\")\nExecuting ...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "92.00", "printed": "92.00", "notation": null}
nlprog_det-setting-0066135
Walls total 215 sq ft and each can covers 250 sq ft. How many cans should be bought? One way, in code: ```python import math area = 215 coverage = 250 cans = math.ceil(area / coverage) # 1 print(cans) ``` Printed: 1 1 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0066136
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> An attorney bills 8 hours at $180 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 8 rate = 180 bill = hours * rate # 1440 print(f"{bill:.2f}") ``` Run it and it prints: 1440.00 That comes to $1,440.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "An attorney bills 8 hours at $180 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 8\nrate = 180\nbill = hours * rate # 1440\nprint(f\"{bill:.2f}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1440.00", "printed": "1440.00", "notation": null}
nlprog_det-setting-0066137
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> A lease runs for 24 months at $1,475 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 1475 months = 24 total = monthly_rent * months # 35400 print(total) ``` Interpreter output — 35400 In total, $35,400 is...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "A lease runs for 24 months at $1,475 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 1475\nmonths = 24\ntotal = monthly_r...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "35400", "printed": "35400", "notation": null}
nlprog_det-setting-0066138
Walls total 1213 sq ft and each can covers 250 sq ft. How many cans should be bought? The program: ```python import math area = 1213 coverage = 250 cans = math.ceil(area / coverage) # 5 print(cans) ``` The interpreter prints: 5 5 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0066139
<|start|><|user|> Walls total 337 sq ft and each can covers 300 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 337 coverage = 300 cans = math.ceil(area / coverage) # 2 print(cans) ``` Console: 2 2 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 337 sq ft and each can covers 300 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 337\ncoverage = 300\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nConsole:\n2\n\n2 cans are needed...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0066140
Count the days between October 28, 2026 and January 7, 2027. Here is a short program for it. ```python from datetime import date first = date(2026, 10, 28) second = date(2027, 1, 7) print((second - first).days) ``` Running it prints: 71 It is 71 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0066141
An office budget of $5,000 has expenses of $836, $3,512. How much of the budget is left? The remaining budget is $652.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "652", "printed": "652", "notation": null}
nlprog_det-setting-0066142
<|start|><|user|> How many weekdays (Monday to Friday) fall after May 27, 2022 up to and including June 19, 2022?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2022, 5, 27) end = date(2022, 6, 19) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k))....
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after May 27, 2022 up to and including June 19, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 5, 27)\nend = date(2022, 6, 19)\ncount = 0\nfor k in range(1, (...
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0066143
A 7 × 10 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? A short script: ```python import math length = 7 width = 10 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 70 print(tiles) ``` stdout: 70 It takes 70 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0066144
11 pens cost $4 apiece. With 6% tax added, what is the total? Here's the code. ```python quantity = 11 unit_price = 4 subtotal = quantity * unit_price # 44 total = subtotal * (1 + 6 / 100) # 46.64 print(f"{total:.2f}") ``` The interpreter prints: 46.64 The invoice total is $46.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "46.64", "printed": "46.64", "notation": null}
nlprog_det-setting-0066145
A settlement of $2,640 is split equally among 5 parties. How much does each party receive? Translated to Python: ```python settlement = 2640 parties = 5 share = settlement // parties # 528 print(share) ``` The run gives 528, as expected. Each party receives $528.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "528", "printed": "528", "notation": null}
nlprog_det-setting-0066146
What percentage of $5,000 is $3,900? Coded up: ```python budget = 5000 spent = 3900 percent = spent / budget * 100 # 78.0 print(round(percent, 1)) ``` (Out: 78.0) 78.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "78.0", "printed": "78.0", "notation": null}
nlprog_det-setting-0066147
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> How many meters are in 46.1 kilometers?<|eot|> <|assistant|> km = 46.1 meters = km * 1000 # 46100.0 print(round(meters)) Run result — 46100 That is 46,100 meters.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "How many meters are in 46.1 kilometers?" }, { "role": "assistant", "content": " km = 46.1\n meters = km * 1000 # 46100.0\n print(round(meters))\nRun result — 46100\n\nThat is...
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "46100", "printed": "46100", "notation": null}
nlprog_det-setting-0066148
An office budget of $5,000 has expenses of $1,431, $2,808. How much of the budget is left? Programmatically: budget = 5000 expenses = [1431, 2808] left = budget - sum(expenses) # 761 print(left) Executed, it shows: 761 The remaining budget is $761.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "761", "printed": "761", "notation": null}
nlprog_det-setting-0066149
Of a $5,000 budget, $3,000 has been spent. What percent is that? The program: ```python budget = 5000 spent = 3000 percent = spent / budget * 100 # 60.0 print(round(percent, 1)) ``` Output: 60.0 That is 60.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "60.0", "printed": "60.0", "notation": null}
nlprog_det-setting-0066150
Shipping costs $8 plus $0.75 per pound. What does a 20-pound parcel cost to ship? Python: ```python base = 8 per_pound = 0.75 weight = 20 cost = base + per_pound * weight # 23.0 print(f"{cost:.2f}") ``` Console output — 23.00 Shipping costs $23.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "23.00", "printed": "23.00", "notation": null}
nlprog_det-setting-0066151
An attorney bills 6.5 hours at $350 per hour. What is the bill? Python makes this quick: ```python hours = 6.5 rate = 350 bill = hours * rate # 2275.0 print(f"{bill:.2f}") ``` When run, it prints: 2275.00 The bill is $2,275.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "2275.00", "printed": "2275.00", "notation": null}
nlprog_det-setting-0066152
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> An unpaid balance of $1,000 accrues 2% simple interest per month. How much interest accrues in 2 months?<|eot|> <|assistant|> ```python balance = 1000 monthly_rate = 2 / 100 # 0.02 months = 2 interest = balance * monthly_rate * months # 40.0 print(f"...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "An unpaid balance of $1,000 accrues 2% simple interest per month. How much interest accrues in 2 months?" }, { "role": "assistant", "content": "```python\nbalance = 1000\nmonthly_rate = ...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0066153
To read 154 pages in 11 days, how many pages per day are needed? Python, step by step: ```python pages = 154 days = 11 per_day = pages // days # 14 print(per_day) ``` (Execution result: 14) 14 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0066154
Which is cheaper per unit: 12 for $3.37 (A) or 20 for $8.26 (B)? In Python: ```python pack_a = 3.37 / 12 # 0.2808333333333333 pack_b = 8.26 / 20 # 0.413 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` This prints A. Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0066155
<|start|><|user|> How many units at $25 each (variable cost $17) cover $9,000 of fixed costs?<|eot|> <|assistant|> 1125 units are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $25 each (variable cost $17) cover $9,000 of fixed costs?" }, { "role": "assistant", "content": "1125 units are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "1125", "printed": "1125", "notation": null}
nlprog_det-setting-0066156
<|start|><|user|> Equipment costs $18,000, has a salvage value of $0, and a useful life of 4 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 18000 salvage = 0 years = 4 per_year = (cost - salvage) / years # 4500.0 print(f"{per_year:.2f}") ``` Run output — 4500.00 $4,500.0...
chat
[ { "role": "user", "content": "Equipment costs $18,000, has a salvage value of $0, and a useful life of 4 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 18000\nsalvage = 0\nyears = 4\nper_year = (cost - salvage) / years # 4500.0\n...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0066157
<|start|><|user|> 111 copies of a 32-page packet are printed at $0.05 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 32 copies = 111 cost_per_page = 0.05 cost = pages * copies * cost_per_page print(f"{cost:.2f}") ``` It outputs: 177.60 The job costs $177.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "111 copies of a 32-page packet are printed at $0.05 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 32\ncopies = 111\ncost_per_page = 0.05\ncost = pages * copies * cost_per_page\nprint(f\"{cost:.2f}\")\n```\nIt outputs: 177.60\n...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "177.60", "printed": "177.60", "notation": null}
nlprog_det-setting-0066158
<|start|><|user|> Divide 275 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> 68 each, 3 left over.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Divide 275 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "68 each, 3 left over." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "68 each, 3 left over", "printed": "68 each, 3 left over", "notation": null}
nlprog_det-setting-0066159
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Starting with 1003 file boxes and using 15 per day, how many remain after 20 days?<|eot|> <|assistant|> stock = 1003 per_day = 15 days = 20 left = stock - per_day * days # 703 print(left) Shell output — 703 703 remain.<|e...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Starting with 1003 file boxes and using 15 per day, how many remain after 20 days?" }, { "role": "assistant", "content": " stock = 1003\n per_day = 15\n days = 20\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "703", "printed": "703", "notation": null}
nlprog_det-setting-0066160
<|start|><|user|> A trial runs from October 6, 2021 to October 18, 2021, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2021, 10, 6) last = date(2021, 10, 18) days = (last - first).days + 1 print(days) ``` Shell output: 13 That is 13 days.<|eot...
chat
[ { "role": "user", "content": "A trial runs from October 6, 2021 to October 18, 2021, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2021, 10, 6)\nlast = date(2021, 10, 18)\ndays = (last - first).days +...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0066161
Counting only Monday through Friday, how many business days are there after February 17, 2024 through March 12, 2024? from datetime import date, timedelta start = date(2024, 2, 17) end = date(2024, 3, 12) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).we...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0066162
<|start|><|user|> Prorate $2,400 of monthly rent for 18 days of a 31-day month.<|eot|> <|assistant|> ```python rent = 2400 days_in_month = 31 days_occupied = 18 prorated = rent * days_occupied / days_in_month # 1393.5483870967741 print(f"{prorated:.2f}") ``` Printed — 1393.55 The prorated rent is $1,393.55.<|eot|> <|...
chat
[ { "role": "user", "content": "Prorate $2,400 of monthly rent for 18 days of a 31-day month." }, { "role": "assistant", "content": "```python\nrent = 2400\ndays_in_month = 31\ndays_occupied = 18\nprorated = rent * days_occupied / days_in_month # 1393.5483870967741\nprint(f\"{prorated:.2f}\")\n``...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "1393.55", "printed": "1393.55", "notation": null}
nlprog_det-setting-0066163
<|start|><|system|> You help with homework problems.<|eot|> <|user|> A library charges $0.10 per book per day late. What is the fine for 1 books that are 2 days late?<|eot|> <|assistant|> per_day = 0.1 days_late = 2 books = 1 fine = per_day * days_late * books # 0.2 print(f"{fine:.2f}") The program...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "A library charges $0.10 per book per day late. What is the fine for 1 books that are 2 days late?" }, { "role": "assistant", "content": " per_day = 0.1\n days_late = 2\n books ...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "0.20", "printed": "0.20", "notation": null}
nlprog_det-setting-0066164
<|start|><|user|> After an initial $0, the remainder of a $24,000 grant is paid in 6 equal parts. What is each part?<|eot|> <|assistant|> grant = 24000 up_front = 0 installments = 6 each = (grant - up_front) / installments # 4000.0 print(f"{each:.2f}") This prints 4000.00. Each installment is $4,0...
chat
[ { "role": "user", "content": "After an initial $0, the remainder of a $24,000 grant is paid in 6 equal parts. What is each part?" }, { "role": "assistant", "content": " grant = 24000\n up_front = 0\n installments = 6\n each = (grant - up_front) / installments # 4000.0\n print(f\"...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0066165
<|start|><|user|> 8 claimants share a $36,000 settlement equally. What is each share?<|eot|> <|assistant|> Each share is $4,500.<|eot|> <|end|>
chat
[ { "role": "user", "content": "8 claimants share a $36,000 settlement equally. What is each share?" }, { "role": "assistant", "content": "Each share is $4,500." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "4500", "printed": "4500", "notation": null}
nlprog_det-setting-0066166
A client paid a $2,500 retainer. The firm has billed 2 hours at $250 per hour. How much of the retainer is left? ```python retainer = 2500 hours = 2 rate = 250 left = retainer - hours * rate # 2000 print(left) ``` Running this gives 2000. The remaining balance is $2,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0066167
Oskar's scores were 79, 61, 100, 96, 72, 89 and 77. What is the average score? As a program: ```python scores = [79, 61, 100, 96, 72, 89, 77] average = sum(scores) // len(scores) # 82 print(average) ``` The program outputs: 82 The average score is 82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0066168
<|start|><|user|> Sales went from 400 to 340. What is the percent change?<|eot|> <|assistant|> The change is -15%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 400 to 340. What is the percent change?" }, { "role": "assistant", "content": "The change is -15%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0066170
Counting only Monday through Friday, how many business days are there after November 10, 2024 through November 18, 2024? We write it as a program: from datetime import date, timedelta start = date(2024, 11, 10) end = date(2024, 11, 18) count = 0 for k in range(1, (end - start).days + 1): if...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0066171
A garage charges $5 an hour, never more than $24 a day. How much for 9 hours? One way, in code: ```python rate = 5 hours = 9 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` (Printed: 24) Parking costs $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0066172
<|start|><|user|> If a 150-minute class begins at 4:45 PM, what time does it finish?<|eot|> <|assistant|> ```python start = 16 * 60 + 45 end = start + 150 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The interpreter prints 7:15 PM. It ends at 7:15 PM.<|e...
chat
[ { "role": "user", "content": "If a 150-minute class begins at 4:45 PM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 16 * 60 + 45\nend = start + 150\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "7:15 PM", "printed": "7:15 PM", "notation": null}
nlprog_det-setting-0066173
A clerk's office charges $90 for each filing. Rafael submits 5 filings. What is the total fee? Python, step by step: ```python fee = 90 filings = 5 total = fee * filings print(total) ``` What it prints: 450 The filings cost $450 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0066174
5 swims at 150 calories each burn how many calories in total? Python code: ```python per_session = 150 sessions = 5 total = per_session * sessions # 750 print(total) ``` Interpreter output: 750 That burns 750 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0066175
An attorney bills 8 hours at $225 per hour. What is the bill? Python version: ```python hours = 8 rate = 225 bill = hours * rate # 1800 print(f"{bill:.2f}") ``` On running, it outputs: 1800.00 That comes to $1,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1800.00", "printed": "1800.00", "notation": null}
nlprog_det-setting-0066176
<|start|><|system|> Available functions (JSON Schema): [{"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "convert_units", "descriptio...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
316
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0066178
3 claimants share a $960 settlement equally. What is each share? Let the code do the arithmetic: ```python settlement = 960 parties = 3 share = settlement // parties # 320 print(share) ``` Output: 320 Each share is $320.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "320", "printed": "320", "notation": null}
nlprog_det-setting-0066179
<|start|><|user|> Counting the first and last day, how many days are there from May 1, 2022 through May 16, 2022?<|eot|> <|assistant|> ```python from datetime import date first = date(2022, 5, 1) # datetime.date(2022, 5, 1) last = date(2022, 5, 16) # datetime.date(2022, 5, 16) days = (last - first).days + 1 # 16 pri...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from May 1, 2022 through May 16, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2022, 5, 1) # datetime.date(2022, 5, 1)\nlast = date(2022, 5, 16) # datetime.d...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0066180
How much sales tax is charged on a $213.60 purchase at 8%? Set it up in Python: ```python price = 213.6 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 17.088 print(f"{tax:.2f}") ``` Output: 17.09 $17.09 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "17.09", "printed": "17.09", "notation": null}
nlprog_det-setting-0066181
At an exchange rate of 0.74 USD per EUR, how many USD is 8,273 EUR? Python code: ```python amount = 8273 rate = 0.74 converted = amount * rate # 6122.0199999999995 print(f"{converted:.2f}") ``` Shell output — 6122.02 That is 6,122.02 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "6122.02", "printed": "6122.02", "notation": null}
nlprog_det-setting-0066182
Convert 30 °C to Fahrenheit. The Python version: celsius = 30 fahrenheit = celsius * 9 / 5 + 32 # 86.0 print(round(fahrenheit)) # printed result: 86 That is 86 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0066183
What is the total rent on a 24-month lease at $3,250 a month? Here is a short program for it. ```python monthly_rent = 3250 months = 24 total = monthly_rent * months # 78000 print(total) ``` Console: 78000 In total, $78,000 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "78000", "printed": "78000", "notation": null}
nlprog_det-setting-0066184
With 12 rows of 10 chairs and 30 empty chairs, how many chairs are taken? ```python rows = 12 per_row = 10 empty = 30 seated = rows * per_row - empty # 90 print(seated) ``` # run result: 90 90 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "90", "printed": "90", "notation": null}