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-0051188
What is 15 degrees Celsius in Fahrenheit? ```python celsius = 15 fahrenheit = celsius * 9 / 5 + 32 # 59.0 print(round(fahrenheit)) ``` # printed: 59 It equals 59 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0051189
Each of Kemal's walks burns 350 calories. How many calories over 3 walks? Code: per_session = 350 sessions = 3 total = per_session * sessions # 1050 print(total) The script prints: 1050 That burns 1050 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0051190
<|start|><|user|> A water bill is $12 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 3 thousand gallons?<|eot|> <|assistant|> The bill is $12.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A water bill is $12 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 3 thousand gallons?" }, { "role": "assistant", "content": "The bill is $12.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "12.00", "printed": "12.00", "notation": null}
nlprog_det-setting-0051191
A 5% increase is applied to $1,250 monthly rent. What is the new amount? Let the code do the arithmetic: ```python rent = 1250 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1312.5 print(f"{new_rent:.2f}") ``` Execution prints: 1312.50 The new rent is $1,312.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1312.50", "printed": "1312.50", "notation": null}
nlprog_det-setting-0051192
How many minutes pass from 8:39 AM to 2:06 PM on the same day? Computation in Python: ```python start = 8 * 60 + 39 # 519 end = 14 * 60 + 6 # 846 print(end - start) ``` Run it and it prints: 327 It is 327 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "327", "printed": "327", "notation": null}
nlprog_det-setting-0051194
At 60 miles per hour, how many minutes does a 375-mile trip take? Python version: ```python distance = 375 speed = 60 minutes = distance / speed * 60 # 375.0 print(round(minutes)) ``` Interpreter output — 375 375 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0051196
Find the mean of these test scores: 96, 78, 54 and 76. The average score is 76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0051197
<|start|><|user|> A film lasted 1 hours and 43 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 1 minutes = 43 total_minutes = hours * 60 + minutes # 103 print(total_minutes) ``` Result = 103 That is 103 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A film lasted 1 hours and 43 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 1\nminutes = 43\ntotal_minutes = hours * 60 + minutes # 103\nprint(total_minutes)\n```\nResult = 103\n\nThat is 103 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "103", "printed": "103", "notation": null}
nlprog_det-setting-0051198
A 12-month warranty starts on September 17, 2018. On what date does it end? In Python: ```python from datetime import date start = date(2018, 9, 17) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Python prints ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2019-09-17", "printed": "2019-09-17", "notation": null}
nlprog_det-setting-0051199
6 boxes hold 10 folders each. After 10 are handed out, how many are left? That leaves 50 folders.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0051200
<|start|><|system|> You help with homework problems.<|eot|> <|user|> How many minutes pass from 11:13 AM to 2:31 PM on the same day?<|eot|> <|assistant|> ```python start = 11 * 60 + 13 # 673 end = 14 * 60 + 31 # 871 print(end - start) ``` Output — 198 It is 198 minutes long.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "How many minutes pass from 11:13 AM to 2:31 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 11 * 60 + 13 # 673\nend = 14 * 60 + 31 # 871\nprint(end - sta...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "198", "printed": "198", "notation": null}
nlprog_det-setting-0051202
Convert 7,340 USD to CAD at 1 USD = 1.12 CAD. In Python: ```python amount = 7340 rate = 1.12 converted = amount * rate # 8220.800000000001 print(f"{converted:.2f}") ``` (Output: 8220.80) It converts to 8,220.80 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "8220.80", "printed": "8220.80", "notation": null}
nlprog_det-setting-0051203
Prorate $900 of monthly rent for 5 days of a 30-day month. Here is the program. ```python rent = 900 days_in_month = 30 days_occupied = 5 prorated = rent * days_occupied / days_in_month # 150.0 print(f"{prorated:.2f}") ``` # program output: 150.00 The prorated rent is $150.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0051204
<|start|><|user|> Ulla and Rafael share $1,191 in the ratio 1:2. How much does Ulla get?<|eot|> <|assistant|> ```python total = 1191 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 397 print(share_a) ``` (Printed result: 397) Ulla gets $397.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Ulla and Rafael share $1,191 in the ratio 1:2. How much does Ulla get?" }, { "role": "assistant", "content": "```python\ntotal = 1191\nparts_a = 1\nparts_b = 2\nshare_a = total * parts_a // (parts_a + parts_b) # 397\nprint(share_a)\n```\n(Printed result: 397)\n\nUl...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "397", "printed": "397", "notation": null}
nlprog_det-setting-0051206
<|start|><|user|> How long, in days, is it from December 1, 2018 until February 8, 2019?<|eot|> <|assistant|> ```python from datetime import date first = date(2018, 12, 1) # datetime.date(2018, 12, 1) second = date(2019, 2, 8) # datetime.date(2019, 2, 8) print((second - first).days) ``` Printed result — 69 There are...
chat
[ { "role": "user", "content": "How long, in days, is it from December 1, 2018 until February 8, 2019?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2018, 12, 1) # datetime.date(2018, 12, 1)\nsecond = date(2019, 2, 8) # datetime.date(2019, 2, 8)\nprint...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0051207
Divide 128 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain? ```python total = 128 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The printout reads: 25 each, 3 left over The answer: 25 each, 3 left ove...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "25 each, 3 left over", "printed": "25 each, 3 left over", "notation": null}
nlprog_det-setting-0051208
Ines drove 21 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement? ```python miles = 21 rate = 0.65 reimbursement = miles * rate # 13.65 print(f"{reimbursement:.2f}") ``` Output = 13.65 The reimbursement is $13.65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "13.65", "printed": "13.65", "notation": null}
nlprog_det-setting-0051209
Divide 155 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain? Coded up: total = 155 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") Output = 19 each, 3 left over The answer: 19 each, 3 left ov...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "19 each, 3 left over", "printed": "19 each, 3 left over", "notation": null}
nlprog_det-setting-0051211
A service costs $15 a month or $162 a year. How much does the yearly plan save over 12 monthly payments? In Python: ```python monthly = 15 yearly = 162 savings = monthly * 12 - yearly # 18 print(savings) ``` Result: 18 The annual plan saves $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0051212
Sales went from 500 to 375. What is the percent change? Python code: ```python old = 500 new = 375 change = (new - old) / old * 100 print(round(change)) ``` Python prints -25. It changed by -25%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "-25", "printed": "-25", "notation": null}
nlprog_det-setting-0051213
<|start|><|user|> Wanjiru was born on October 28, 1956. How old is Wanjiru on June 22, 2026?<|eot|> <|assistant|> ```python from datetime import date born = date(1956, 10, 28) # datetime.date(1956, 10, 28) on = date(2026, 6, 22) # datetime.date(2026, 6, 22) age = on.year - born.year - ((on.month, on.day) < (born.mont...
chat
[ { "role": "user", "content": "Wanjiru was born on October 28, 1956. How old is Wanjiru on June 22, 2026?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1956, 10, 28) # datetime.date(1956, 10, 28)\non = date(2026, 6, 22) # datetime.date(2026, 6, 22)\nag...
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0051215
Printing costs 5 cents a page. What does it cost to print 14 copies of a 12-page handout? Written as code: pages = 12 copies = 14 cost_per_page = 0.05 cost = pages * copies * cost_per_page print(f"{cost:.2f}") Result = 8.40 The job costs $8.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "8.40", "printed": "8.40", "notation": null}
nlprog_det-setting-0051216
What simple interest does $2,500 earn at 6% a year over 6 years? A short script: principal = 2500 rate = 6 / 100 # 0.06 years = 6 interest = principal * rate * years # 900.0 print(f"{interest:.2f}") # printed result: 900.00 It earns $900.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "900.00", "printed": "900.00", "notation": null}
nlprog_det-setting-0051217
<|start|><|user|> A 3% increase is applied to $1,250 monthly rent. What is the new amount?<|eot|> <|assistant|> The new rent is $1,287.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 3% increase is applied to $1,250 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "The new rent is $1,287.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "1287.50", "printed": "1287.50", "notation": null}
nlprog_det-setting-0051219
With $20,000 in costs and $22,000 in revenue, what percent of revenue is profit? Round to one decimal. A short script: ```python revenue = 22000 costs = 20000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 9.090909090909092 print(round(margin, 1)) ``` Run output: 9.1 The margin is 9.1%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "9.1", "printed": "9.1", "notation": null}
nlprog_det-setting-0051220
Monthly: $9. Annual: $96. What is saved per year by paying annually? A short script: ```python monthly = 9 yearly = 96 savings = monthly * 12 - yearly # 12 print(savings) ``` Result = 12 $12 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0051221
<|start|><|user|> Printing costs 15 cents a page. What does it cost to print 159 copies of a 55-page handout?<|eot|> <|assistant|> ```python pages = 55 copies = 159 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 1311.75 print(f"{cost:.2f}") ``` Interpreter output: 1311.75 The job costs $1,311.75.<|eot|>...
chat
[ { "role": "user", "content": "Printing costs 15 cents a page. What does it cost to print 159 copies of a 55-page handout?" }, { "role": "assistant", "content": "```python\npages = 55\ncopies = 159\ncost_per_page = 0.15\ncost = pages * copies * cost_per_page # 1311.75\nprint(f\"{cost:.2f}\")\n``...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "1311.75", "printed": "1311.75", "notation": null}
nlprog_det-setting-0051222
<|start|><|user|> Monthly rent is $1,200. A tenant moves in with 17 days left in a 31-day month. What is the prorated rent?<|eot|> <|assistant|> The tenant owes $658.06.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly rent is $1,200. A tenant moves in with 17 days left in a 31-day month. What is the prorated rent?" }, { "role": "assistant", "content": "The tenant owes $658.06." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "658.06", "printed": "658.06", "notation": null}
nlprog_det-setting-0051223
Rafael was born on June 8, 1961. How old is Rafael on June 6, 2020? Program: ```python from datetime import date born = date(1961, 6, 8) # datetime.date(1961, 6, 8) on = date(2020, 6, 6) # datetime.date(2020, 6, 6) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 58 print(age) ``` Interpr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "58", "printed": "58", "notation": null}
nlprog_det-setting-0051224
A trial runs from January 27, 2018 to February 1, 2018, counting both days. How many calendar days is that? Let's compute it with Python. ```python from datetime import date first = date(2018, 1, 27) # datetime.date(2018, 1, 27) last = date(2018, 2, 1) # datetime.date(2018, 2, 1) days = (last - first).days + 1 # 6 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0051225
Hugo earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 41-hour week? Programmatically: ```python rate = 18.5 hours = 41 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 27.75 pay = regular + overtime # 767.75 print(f"{pay:.2f}") ``` Executed, it shows 767.75. The w...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "767.75", "printed": "767.75", "notation": null}
nlprog_det-setting-0051226
What simple interest does $8,000 earn at 6% a year over 3 years? Python does the arithmetic: ```python principal = 8000 rate = 6 / 100 # 0.06 years = 3 interest = principal * rate * years # 1440.0 print(f"{interest:.2f}") ``` stdout — 1440.00 The interest is $1,440.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1440.00", "printed": "1440.00", "notation": null}
nlprog_det-setting-0051227
Zoe lends $12,000 at 8% simple interest per year for 3 years. How much interest is earned? In code: principal = 12000 rate = 8 / 100 # 0.08 years = 3 interest = principal * rate * years # 2880.0 print(f"{interest:.2f}") That prints 2880.00. It earns $2,880.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "2880.00", "printed": "2880.00", "notation": null}
nlprog_det-setting-0051228
<|start|><|user|> Starting with 648 lanyards and using 16 per day, how many remain after 8 days?<|eot|> <|assistant|> 520 lanyards are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 648 lanyards and using 16 per day, how many remain after 8 days?" }, { "role": "assistant", "content": "520 lanyards are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "520", "printed": "520", "notation": null}
nlprog_det-setting-0051230
<|start|><|user|> Notice was given on August 8, 2027. The notice period is 90 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2027, 8, 8) # datetime.date(2027, 8, 8) end = start + timedelta(days=90) # datetime.date(2027, 11, 6) print(end.isoformat()) ``` # ...
chat
[ { "role": "user", "content": "Notice was given on August 8, 2027. The notice period is 90 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 8, 8) # datetime.date(2027, 8, 8)\nend = start + timedelta(days=90) #...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2027-11-06", "printed": "2027-11-06", "notation": null}
nlprog_det-setting-0051231
A garage charges $4 an hour, never more than $20 a day. How much for 6 hours? Python version: ```python rate = 4 hours = 6 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` Output: 20 The charge is $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0051232
<|start|><|system|> Tools you may use: {"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Split $1,736 between Elena and Nik...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\...
nlprog_det
setting
original
null
deterministic
[]
[]
239
{"gold": "651", "printed": "651", "notation": null}
nlprog_det-setting-0051233
A car travels 340 miles in 1 hours. What is its average speed in miles per hour? The Python version: ```python distance = 340 hours = 1 speed = distance / hours # 340.0 print(round(speed)) ``` Run it and it prints: 340 The average speed is 340 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "340", "printed": "340", "notation": null}
nlprog_det-setting-0051235
How many of 14 members form a majority (more than half)? Python makes this quick: ```python members = 14 majority = members // 2 + 1 # 8 print(majority) ``` Printed — 8 That is 8 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0051236
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> A measure needs at least 60% of 71 votes. How many votes is that, rounded up?<|eot|> <|assistant|> At least 43 votes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "A measure needs at least 60% of 71 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "At least 43 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0051237
A library charges $0.25 per book per day late. What is the fine for 4 books that are 12 days late? ```python per_day = 0.25 days_late = 12 books = 4 fine = per_day * days_late * books # 12.0 print(f"{fine:.2f}") ``` The run gives 12.00, as expected. $12.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "12.00", "printed": "12.00", "notation": null}
nlprog_det-setting-0051238
Idris earns a 2% commission on $50,251 of sales. What is the commission? Computation in Python: ```python sales = 50251 rate = 2 / 100 # 0.02 commission = sales * rate # 1005.02 print(f"{commission:.2f}") ``` Output of the run — 1005.02 The commission is $1,005.02.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1005.02", "printed": "1005.02", "notation": null}
nlprog_det-setting-0051239
<|start|><|user|> How many days are there from August 14, 2025 to March 14, 2026?<|eot|> <|assistant|> from datetime import date first = date(2025, 8, 14) # datetime.date(2025, 8, 14) second = date(2026, 3, 14) # datetime.date(2026, 3, 14) print((second - first).days) Run it and it prints: 212 There ...
chat
[ { "role": "user", "content": "How many days are there from August 14, 2025 to March 14, 2026?" }, { "role": "assistant", "content": " from datetime import date\n first = date(2025, 8, 14) # datetime.date(2025, 8, 14)\n second = date(2026, 3, 14) # datetime.date(2026, 3, 14)\n print...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "212", "printed": "212", "notation": null}
nlprog_det-setting-0051240
Convert 25 °C to Fahrenheit. As a program: ```python celsius = 25 fahrenheit = celsius * 9 / 5 + 32 # 77.0 print(round(fahrenheit)) ``` Result = 77 That is 77 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0051241
A penalty of $25 a day accrues, capped at $2,500. What is owed after 5 days? We can compute it in Python. ```python per_day = 25 days = 5 cap = 2500 fine = min(per_day * days, cap) # 125 print(fine) ``` stdout: 125 $125 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "125", "printed": "125", "notation": null}
nlprog_det-setting-0051244
<|start|><|user|> One can of paint covers 400 square feet. How many cans are needed for 1208 square feet of wall?<|eot|> <|assistant|> import math area = 1208 coverage = 400 cans = math.ceil(area / coverage) # 4 print(cans) Printed: 4 Buy 4 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 400 square feet. How many cans are needed for 1208 square feet of wall?" }, { "role": "assistant", "content": " import math\n area = 1208\n coverage = 400\n cans = math.ceil(area / coverage) # 4\n print(cans)\nPrinted:\n4\n\nB...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0051246
<|start|><|user|> Convert 5 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = 5 fahrenheit = celsius * 9 / 5 + 32 # 41.0 print(round(fahrenheit)) ``` The printout reads: 41 That is 41 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 5 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = 5\nfahrenheit = celsius * 9 / 5 + 32 # 41.0\nprint(round(fahrenheit))\n```\nThe printout reads: 41\n\nThat is 41 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0051247
<|start|><|user|> What does $5,000 grow to in 5 years at 2% annual compounding?<|eot|> <|assistant|> ```python principal = 5000 rate = 2 / 100 # 0.02 years = 5 value = principal * (1 + rate) ** years # 5520.404016 print(f"{value:.2f}") ``` # out: 5520.40 The balance is $5,520.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $5,000 grow to in 5 years at 2% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 2 / 100 # 0.02\nyears = 5\nvalue = principal * (1 + rate) ** years # 5520.404016\nprint(f\"{value:.2f}\")\n```\n# out: 5520.40\...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "5520.40", "printed": "5520.40", "notation": null}
nlprog_det-setting-0051248
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> An invoice lists 25 keyboards at $24 each, plus 8% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 25 unit_price = 24 subtotal = quantity * unit_price # 600 total = subtotal * (1 + 8 / 100) # 648.0 print(f"{tota...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "An invoice lists 25 keyboards at $24 each, plus 8% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 25\nunit_price = 24\nsubtotal...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "648.00", "printed": "648.00", "notation": null}
nlprog_det-setting-0051249
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> 10 boxes hold 6 ink cartridges each. After 19 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 10 per_box = 6 given_away = 19 left = boxes * per_box - given_away # 41 print(left) ``` (Printed result: 41) That leaves 41 ink cartridge...
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "10 boxes hold 6 ink cartridges each. After 19 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 10\nper_box = 6\ngiven_away = 19\nleft = boxes * per_b...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0051250
A claim accrued on June 13, 2018. The limitations period is 4 years. On what date does it expire? ```python from datetime import date accrued = date(2018, 6, 13) # datetime.date(2018, 6, 13) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 6, 13) print(expires.isoformat()) ``` Whe...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2022-06-13", "printed": "2022-06-13", "notation": null}
nlprog_det-setting-0051251
<|start|><|system|> Available functions (JSON Schema): [{"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Jamal buys 7 boxes of 24 har...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
230
{"gold": "166", "printed": "166", "notation": null}
nlprog_det-setting-0051252
<|start|><|user|> Each storage box holds 12 files. How many boxes are needed for 125 files?<|eot|> <|assistant|> ```python import math files = 125 per_box = 12 boxes = math.ceil(files / per_box) # 11 print(boxes) ``` When run, it prints 11, as expected. 11 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 12 files. How many boxes are needed for 125 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 125\nper_box = 12\nboxes = math.ceil(files / per_box) # 11\nprint(boxes)\n```\nWhen run, it prints 11, as expected.\n\n1...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0051253
<|start|><|user|> A recipe for 4 people uses 300 grams of flour. How many grams are needed for 6 people?<|eot|> <|assistant|> ```python grams = 300 serves = 4 needed_for = 6 scaled = grams * needed_for // serves # 450 print(scaled) ``` Result: 450 Use 450 g of flour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 4 people uses 300 grams of flour. How many grams are needed for 6 people?" }, { "role": "assistant", "content": "```python\ngrams = 300\nserves = 4\nneeded_for = 6\nscaled = grams * needed_for // serves # 450\nprint(scaled)\n```\nResult: 450\n\nUse 450...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0051254
<|start|><|user|> Convert -5 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = -5 fahrenheit = celsius * 9 / 5 + 32 # 23.0 print(round(fahrenheit)) ``` The script prints 23, as expected. It equals 23 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert -5 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = -5\nfahrenheit = celsius * 9 / 5 + 32 # 23.0\nprint(round(fahrenheit))\n```\nThe script prints 23, as expected.\n\nIt equals 23 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0051255
<|start|><|user|> A hall has 11 rows of 23 seats, and 22 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 11 per_row = 23 empty = 22 seated = rows * per_row - empty # 231 print(seated) ``` Output = 231 231 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 11 rows of 23 seats, and 22 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 11\nper_row = 23\nempty = 22\nseated = rows * per_row - empty # 231\nprint(seated)\n```\nOutput = 231\n\n231 people are seat...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "231", "printed": "231", "notation": null}
nlprog_det-setting-0051256
Convert 5 h 36 min (the length of a film) to minutes. One way, in code: ```python hours = 5 minutes = 36 total_minutes = hours * 60 + minutes # 336 print(total_minutes) ``` Run output — 336 That is 336 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "336", "printed": "336", "notation": null}
nlprog_det-setting-0051257
<|start|><|system|> You may call the tools below. {"name": "python_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> Count the days between Ju...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"python_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
217
{"gold": "362", "printed": "362", "notation": null}
nlprog_det-setting-0051258
<|start|><|user|> An attorney bills 6.5 hours at $300 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 6.5 rate = 300 bill = hours * rate # 1950.0 print(f"{bill:.2f}") ``` The code prints 1950.00. The bill is $1,950.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 6.5 hours at $300 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 6.5\nrate = 300\nbill = hours * rate # 1950.0\nprint(f\"{bill:.2f}\")\n```\nThe code prints 1950.00.\n\nThe bill is $1,950.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1950.00", "printed": "1950.00", "notation": null}
nlprog_det-setting-0051259
Someone works 24 hours at $23.83 per hour. What are the earnings? One way, in code: ```python rate = 23.83 hours = 24 earnings = rate * hours # 571.92 print(f"{earnings:.2f}") ``` The program prints 571.92, as expected. The pay is $571.92.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "571.92", "printed": "571.92", "notation": null}
nlprog_det-setting-0051260
The paralegal logged 1.5 hours at a rate of $300. How much is billed? We write it as a program: ```python hours = 1.5 rate = 300 bill = hours * rate # 450.0 print(f"{bill:.2f}") ``` Run output — 450.00 The bill is $450.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0051261
<|start|><|user|> A pack of 4 hard drives sells for $200. What does each cost?<|eot|> <|assistant|> ```python total = 200 count = 4 per_item = total // count # 50 print(per_item) ``` The program prints 50. The unit price is $50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 4 hard drives sells for $200. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 200\ncount = 4\nper_item = total // count # 50\nprint(per_item)\n```\nThe program prints 50.\n\nThe unit price is $50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0051262
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Printing costs 5 cents a page. What does it cost to print 35 copies of a 50-page handout?<|eot|> <|assistant|> ```python pages = 50 copies = 35 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 87.5 print(f"{cost:.2f}") ``` It prints 87.50, as ex...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Printing costs 5 cents a page. What does it cost to print 35 copies of a 50-page handout?" }, { "role": "assistant", "content": "```python\npages = 50\ncopies = 35\ncost_per_page = 0.05\ncost ...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "87.50", "printed": "87.50", "notation": null}
nlprog_det-setting-0051263
<|start|><|user|> A court charges $5 per request plus $0.50 per page after the first 0 pages. What does a 57-page copy cost?<|eot|> <|assistant|> ```python pages = 57 base = 5 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 33.5 print(f"{cost:.2f}") ``` Output of the run: 33.50 The...
chat
[ { "role": "user", "content": "A court charges $5 per request plus $0.50 per page after the first 0 pages. What does a 57-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 57\nbase = 5\nper_page = 0.5\nfree_pages = 0\ncost = base + max(0, pages - free_pages) * per_page # ...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "33.50", "printed": "33.50", "notation": null}
nlprog_det-setting-0051264
761 files go into boxes of 50. How many boxes does that take? Translated to Python: ```python import math files = 761 per_box = 50 boxes = math.ceil(files / per_box) # 16 print(boxes) ``` The interpreter prints: 16 16 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0051265
A 29 lb package ships at $12 base plus $1.20/lb. What is the charge? Coded up: ```python base = 12 per_pound = 1.2 weight = 29 cost = base + per_pound * weight # 46.8 print(f"{cost:.2f}") ``` The printout reads 46.80. Shipping costs $46.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "46.80", "printed": "46.80", "notation": null}
nlprog_det-setting-0051266
A claim accrued on June 5, 2012. The limitations period is 2 years. On what date does it expire? The computation: ```python from datetime import date accrued = date(2012, 6, 5) # datetime.date(2012, 6, 5) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2014, 6, 5) print(expires.isoform...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2014-06-05", "printed": "2014-06-05", "notation": null}
nlprog_det-setting-0051267
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> At $0.70 per mile, what is the reimbursement for 638 miles?<|eot|> <|assistant|> ```python miles = 638 rate = 0.7 reimbursement = miles * rate # 446.59999999999997 print(f"{reimbursement:.2f}") ``` That prints 446.60. The reimbursement is $446.60.<|e...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "At $0.70 per mile, what is the reimbursement for 638 miles?" }, { "role": "assistant", "content": "```python\nmiles = 638\nrate = 0.7\nreimbursement = miles * rate # 446.59999999999997\...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "446.60", "printed": "446.60", "notation": null}
nlprog_det-setting-0051268
<|start|><|user|> The meal allowance is $79 per day. What is it for 9 days?<|eot|> <|assistant|> ```python days = 9 meal_rate = 79 total = days * meal_rate # 711 print(total) ``` The printout reads: 711 That comes to $711.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The meal allowance is $79 per day. What is it for 9 days?" }, { "role": "assistant", "content": "```python\ndays = 9\nmeal_rate = 79\ntotal = days * meal_rate # 711\nprint(total)\n```\nThe printout reads: 711\n\nThat comes to $711." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "711", "printed": "711", "notation": null}
nlprog_det-setting-0051269
From a $2,500 retainer, 9 hours at $275/hour have been drawn. What remains? The remaining balance is $25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0051270
<|start|><|user|> Equal monthly payments repay $3,600 plus 6% simple yearly interest over 24 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 3600 annual_rate = 6 / 100 months = 24 interest = principal * annual_rate * months / 12 payment = (principal + interest) / months print(f"{payment:.2f}"...
chat
[ { "role": "user", "content": "Equal monthly payments repay $3,600 plus 6% simple yearly interest over 24 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 3600\nannual_rate = 6 / 100\nmonths = 24\ninterest = principal * annual_rate * months / 12\npayme...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "168.00", "printed": "168.00", "notation": null}
nlprog_det-setting-0051271
Monthly: $15. Annual: $144. What is saved per year by paying annually? One way, in code: ```python monthly = 15 yearly = 144 savings = monthly * 12 - yearly # 36 print(savings) ``` (Execution result: 36) $36 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0051272
Notice was given on May 20, 2028. The notice period is 10 days. When does it run out? Here's the code. from datetime import date, timedelta start = date(2028, 5, 20) # datetime.date(2028, 5, 20) end = start + timedelta(days=10) # datetime.date(2028, 5, 30) print(end.isoformat()) What it prints: 2028-...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "2028-05-30", "printed": "2028-05-30", "notation": null}
nlprog_det-setting-0051273
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Kofi earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 46-hour week?<|eot|> <|assistant|> ```python rate = 25.0 hours = 46 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 225.0 pay = regular + overtime #...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Kofi earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 46-hour week?" }, { "role": "assistant", "content": "```python\nrate = 25.0\nhours = 46\nregular = 40 * r...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "1225.00", "printed": "1225.00", "notation": null}
nlprog_det-setting-0051274
With 13 rows of 18 chairs and 29 empty chairs, how many chairs are taken? We write it as a program: ```python rows = 13 per_row = 18 empty = 29 seated = rows * per_row - empty # 205 print(seated) ``` It outputs 205. 205 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "205", "printed": "205", "notation": null}
nlprog_det-setting-0051275
<|start|><|user|> How long, in days, is it from February 18, 2026 until March 12, 2027?<|eot|> <|assistant|> It is 387 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How long, in days, is it from February 18, 2026 until March 12, 2027?" }, { "role": "assistant", "content": "It is 387 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "387", "printed": "387", "notation": null}
nlprog_det-setting-0051276
<|start|><|user|> Fixed costs are $2,500. Each unit sells for $20 and costs $15 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 2500 price = 20 variable = 15 units = math.ceil(fixed / (price - variable)) # 500 print(units) ``` On running, it outputs 500. 500 unit...
chat
[ { "role": "user", "content": "Fixed costs are $2,500. Each unit sells for $20 and costs $15 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 2500\nprice = 20\nvariable = 15\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0051277
A workshop lasted 4 hours and 14 minutes. How many minutes is that? The Python version: ```python hours = 4 minutes = 14 total_minutes = hours * 60 + minutes # 254 print(total_minutes) ``` # output: 254 That is 254 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "254", "printed": "254", "notation": null}
nlprog_det-setting-0051278
<|start|><|user|> A meeting lasted 2 hours and 12 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 2 minutes = 12 total_minutes = hours * 60 + minutes # 132 print(total_minutes) ``` When run, it prints 132. That is 132 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meeting lasted 2 hours and 12 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 2\nminutes = 12\ntotal_minutes = hours * 60 + minutes # 132\nprint(total_minutes)\n```\nWhen run, it prints 132.\n\nThat is 132 minutes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "132", "printed": "132", "notation": null}
nlprog_det-setting-0051279
<|start|><|system|> Functions: [{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "business_days", "description": "Count business d...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}, {\"...
nlprog_det
setting
original
null
deterministic
[]
[]
385
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0051280
<|start|><|system|> You have access to these functions: [{"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"]}}, {"name": "get_weather", "...
chat
[ { "role": "system", "content": "You have access to these functions:\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
[]
[]
276
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0051281
<|start|><|user|> A 18-month warranty starts on December 8, 2020. On what date does it end?<|eot|> <|assistant|> It expires on June 8, 2022.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 18-month warranty starts on December 8, 2020. On what date does it end?" }, { "role": "assistant", "content": "It expires on June 8, 2022." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "2022-06-08", "printed": "2022-06-08", "notation": null}
nlprog_det-setting-0051282
A water bill is $18 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 19 thousand gallons? A Python solution: ```python base = 18 rate = 4.2 used = 19 free = 0 bill = base + rate * max(0, used - free) # 97.8 print(f"{bill:.2f}") ``` Running this gives 97.80. $97.80 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "97.80", "printed": "97.80", "notation": null}
nlprog_det-setting-0051283
An office budget of $8,000 has expenses of $605, $551, $407, $677. How much of the budget is left? The remaining budget is $5,760.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "5760", "printed": "5760", "notation": null}
nlprog_det-setting-0051284
Starting from $20,000, the team spends $3,768, $2,965. What remains? Python makes this quick: ```python budget = 20000 expenses = [3768, 2965] left = budget - sum(expenses) # 13267 print(left) ``` It outputs: 13267 $13,267 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "13267", "printed": "13267", "notation": null}
nlprog_det-setting-0051285
<|start|><|user|> Meals are $64 per day and lodging $140 per night. What is the allowance for 5 days and 4 nights?<|eot|> <|assistant|> ```python days = 5 meal_rate = 64 lodging_rate = 140 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 880 print(total) ``` Result: 880 That comes to $880.<|e...
chat
[ { "role": "user", "content": "Meals are $64 per day and lodging $140 per night. What is the allowance for 5 days and 4 nights?" }, { "role": "assistant", "content": "```python\ndays = 5\nmeal_rate = 64\nlodging_rate = 140\nnights = days - 1 # 4\ntotal = days * meal_rate + nights * lodging_rate ...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "880", "printed": "880", "notation": null}
nlprog_det-setting-0051286
<|start|><|user|> A $9,000 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> principal = 9000 annual_rate = 10 / 100 months = 36 interest = principal * annual_rate * months / 12 payment = (p...
chat
[ { "role": "user", "content": "A $9,000 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": " principal = 9000\n annual_rate = 10 / 100\n months = 36\n interest...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "325.00", "printed": "325.00", "notation": null}
nlprog_det-setting-0051287
<|start|><|user|> Prorate $1,800 of monthly rent for 7 days of a 31-day month.<|eot|> <|assistant|> rent = 1800 days_in_month = 31 days_occupied = 7 prorated = rent * days_occupied / days_in_month # 406.4516129032258 print(f"{prorated:.2f}") That prints 406.45. The tenant owes $406.45.<|eot|> <|en...
chat
[ { "role": "user", "content": "Prorate $1,800 of monthly rent for 7 days of a 31-day month." }, { "role": "assistant", "content": " rent = 1800\n days_in_month = 31\n days_occupied = 7\n prorated = rent * days_occupied / days_in_month # 406.4516129032258\n print(f\"{prorated:.2f}\...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "406.45", "printed": "406.45", "notation": null}
nlprog_det-setting-0051289
A $1,000 security deposit has deductions of $150 and $45. How much is refunded? In Python: ```python deposit = 1000 deductions = [150, 45] refund = deposit - sum(deductions) # 805 print(refund) ``` It prints: 805 $805 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "805", "printed": "805", "notation": null}
nlprog_det-setting-0051291
Counting only Monday through Friday, how many business days are there after May 15, 2022 through June 6, 2022? Set it up in Python: from datetime import date, timedelta start = date(2022, 5, 15) end = date(2022, 6, 6) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelt...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0051292
How many of 175 votes make 75% (round up)? One way, in code: import math voters = 175 needed = math.ceil(voters * 75 / 100) # 132 print(needed) The run gives: 132 132 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "132", "printed": "132", "notation": null}
nlprog_det-setting-0051293
<|start|><|user|> What day of the week is September 26, 1991?<|eot|> <|assistant|> September 26, 1991 is a Thursday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is September 26, 1991?" }, { "role": "assistant", "content": "September 26, 1991 is a Thursday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0051294
<|start|><|user|> What is 15 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> celsius = 15 fahrenheit = celsius * 9 / 5 + 32 # 59.0 print(round(fahrenheit)) Console output: 59 That is 59 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 15 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": " celsius = 15\n fahrenheit = celsius * 9 / 5 + 32 # 59.0\n print(round(fahrenheit))\nConsole output: 59\n\nThat is 59 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0051295
<|start|><|user|> A $2,000 security deposit has deductions of $120 and $200. How much is refunded?<|eot|> <|assistant|> ```python deposit = 2000 deductions = [120, 200] refund = deposit - sum(deductions) # 1680 print(refund) ``` Running it prints: 1680 $1,680 is returned.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $2,000 security deposit has deductions of $120 and $200. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 2000\ndeductions = [120, 200]\nrefund = deposit - sum(deductions) # 1680\nprint(refund)\n```\nRunning it prints: 1680\n\n$1,...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1680", "printed": "1680", "notation": null}
nlprog_det-setting-0051296
<|start|><|user|> 2 friends split a $180 bill plus a 18% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 180 tip_rate = 18 / 100 # 0.18 people = 2 each = bill * (1 + tip_rate) / people # 106.19999999999999 print(f"{each:.2f}") ``` (Output: 106.20) The share is $106.20 each.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 friends split a $180 bill plus a 18% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 180\ntip_rate = 18 / 100 # 0.18\npeople = 2\neach = bill * (1 + tip_rate) / people # 106.19999999999999\nprint(f\"{each:.2f}\")\n```...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "106.20", "printed": "106.20", "notation": null}
nlprog_det-setting-0051297
<|start|><|user|> A party has 30 days to respond to a motion served on July 9, 2028, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> from datetime import date, timedelta served = date(2028, 7, 9) # datetime.date(2028, 7, 9) response_days = 30 mail_days = 3 ...
chat
[ { "role": "user", "content": "A party has 30 days to respond to a motion served on July 9, 2028, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n served = date(2028, 7, 9) # datetime.dat...
nlprog_det
setting
original
null
deterministic
[]
[]
169
{"gold": "2028-08-11", "printed": "2028-08-11", "notation": null}
nlprog_det-setting-0051298
Equal monthly payments repay $6,000 plus 6% simple yearly interest over 24 months. How large is a payment? Python does the arithmetic: ```python principal = 6000 annual_rate = 6 / 100 # 0.06 months = 24 interest = principal * annual_rate * months / 12 # 720.0 payment = (principal + interest) / months # 280.0 print(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "280.00", "printed": "280.00", "notation": null}
nlprog_det-setting-0051299
Attendance was 20 out of 25. Express it as a percent. A few lines of Python do it: ```python present = 20 total = 25 percent = present / total * 100 # 80.0 print(round(percent, 1)) ``` Printed result: 80.0 80.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "80.0", "printed": "80.0", "notation": null}
nlprog_det-setting-0051300
At a 7% tax rate, what is the tax on $642.24? We write it as a program: ```python price = 642.24 tax_rate = 7 / 100 # 0.07 tax = price * tax_rate # 44.95680000000001 print(f"{tax:.2f}") ``` The interpreter prints 44.96. The tax is $44.96.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "44.96", "printed": "44.96", "notation": null}
nlprog_det-setting-0051301
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> The building opened in 2000. How many years had passed by 2017?<|eot|> <|assistant|> ```python start_year = 2000 end_year = 2017 print(end_year - start_year) ``` When run, it prints 17, as expected. 17 years.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "The building opened in 2000. How many years had passed by 2017?" }, { "role": "assistant", "content": "```python\nstart_year = 2000\nend_year = 2017\nprint(end_year - start_year)\n`...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "17", "printed": "17", "notation": null}