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-0050974
Meals are $74 per day and lodging $140 per night. What is the allowance for 3 days and 2 nights? As Python: days = 3 meal_rate = 74 lodging_rate = 140 nights = days - 1 # 2 total = days * meal_rate + nights * lodging_rate # 502 print(total) Run result — 502 The allowance is $502.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "502", "printed": "502", "notation": null}
nlprog_det-setting-0050975
An invoice lists 16 binders at $12 each, plus 7% sales tax. What is the invoice total? The total with tax is $205.44.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "205.44", "printed": "205.44", "notation": null}
nlprog_det-setting-0050976
A hall has 20 rows of 22 seats, and 31 seats are empty. How many people are seated? Python: ```python rows = 20 per_row = 22 empty = 31 seated = rows * per_row - empty # 409 print(seated) ``` Execution result: 409 409 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "409", "printed": "409", "notation": null}
nlprog_det-setting-0050977
<|start|><|user|> How many whole days and leftover hours are in 291 hours?<|eot|> <|assistant|> ```python hours = 291 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Program output: 12 days and 3 hours 291 hours is 12 days and 3 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 291 hours?" }, { "role": "assistant", "content": "```python\nhours = 291\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nProgram output: 12 days and 3 hours\n\n291 hours is 12 days and 3 h...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "12 days and 3 hours", "printed": "12 days and 3 hours", "notation": null}
nlprog_det-setting-0050978
20 toner kits cost $2 apiece. With 10% tax added, what is the total? A Python solution: ```python quantity = 20 unit_price = 2 subtotal = quantity * unit_price # 40 total = subtotal * (1 + 10 / 100) # 44.0 print(f"{total:.2f}") ``` Run it and it prints 44.00. The total with tax is $44.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "44.00", "printed": "44.00", "notation": null}
nlprog_det-setting-0050979
With $20,000 in costs and $22,500 in revenue, what percent of revenue is profit? Round to one decimal. We write it as a program: ```python revenue = 22500 costs = 20000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 11.11111111111111 print(round(margin, 1)) ``` Execution prints 11.1. The margin i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0050981
Flooring at $8/sq ft for a 19 ft × 8 ft room costs how much? It costs $1,216.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "1216", "printed": "1216", "notation": null}
nlprog_det-setting-0050982
<|start|><|user|> Paula earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 43-hour week?<|eot|> <|assistant|> rate = 18.5 hours = 43 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 83.25 pay = regular + overtime # 823.25 print(f"{pay:.2f}") Th...
chat
[ { "role": "user", "content": "Paula earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 43-hour week?" }, { "role": "assistant", "content": " rate = 18.5\n hours = 43\n regular = 40 * rate # 740.0\n overtime = (hours - 40) * rate * 1.5 # 83.25\n pay...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "823.25", "printed": "823.25", "notation": null}
nlprog_det-setting-0050983
At $31.48 an hour, what does 16 hours of work pay? We write it as a program: ```python rate = 31.48 hours = 16 earnings = rate * hours # 503.68 print(f"{earnings:.2f}") ``` # execution result: 503.68 That earns $503.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "503.68", "printed": "503.68", "notation": null}
nlprog_det-setting-0050984
A claim accrued on April 21, 2021. The limitations period is 6 years. On what date does it expire? The period expires on April 21, 2027.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "2027-04-21", "printed": "2027-04-21", "notation": null}
nlprog_det-setting-0050985
Water costs $20 a month plus $3.50 for each 1,000 gallons over 3,000. What is owed for 14,000 gallons? As Python: ```python base = 20 rate = 3.5 used = 14 free = 3 bill = base + rate * max(0, used - free) # 58.5 print(f"{bill:.2f}") ``` The run gives: 58.50 $58.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "58.50", "printed": "58.50", "notation": null}
nlprog_det-setting-0050986
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> What commission does Hana make on $6,963 in sales at 6%?<|eot|> <|assistant|> ```python sales = 6963 rate = 6 / 100 # 0.06 commission = sales * rate # 417.78 print(f"{commission:.2f}") ``` It prints: 417.78 The commission is $417.78.<|eot|> <|e...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "What commission does Hana make on $6,963 in sales at 6%?" }, { "role": "assistant", "content": "```python\nsales = 6963\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 417.78\...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "417.78", "printed": "417.78", "notation": null}
nlprog_det-setting-0050987
How many whole days and leftover hours are in 151 hours? Python code: ```python hours = 151 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Out = 6 days and 7 hours That is 6 days and 7 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "6 days and 7 hours", "printed": "6 days and 7 hours", "notation": null}
nlprog_det-setting-0050988
A claim accrued on July 28, 2022. The limitations period is 2 years. On what date does it expire? Programmatically: ```python from datetime import date accrued = date(2022, 7, 28) # datetime.date(2022, 7, 28) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 7, 28) print(expires.is...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2024-07-28", "printed": "2024-07-28", "notation": null}
nlprog_det-setting-0050989
<|start|><|system|> You are a math tutor.<|eot|> <|user|> Count 10 days forward from September 21, 2028. What date is that?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2028, 9, 21) end = start + timedelta(days=10) print(end.isoformat()) Run output: 2028-10-01 The period ends ...
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "Count 10 days forward from September 21, 2028. What date is that?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2028, 9, 21)\n end = start + ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "2028-10-01", "printed": "2028-10-01", "notation": null}
nlprog_det-setting-0050991
A hall has 23 rows of 23 seats, and 15 seats are empty. How many people are seated? ```python rows = 23 per_row = 23 empty = 15 seated = rows * per_row - empty # 514 print(seated) ``` Running it prints: 514 514 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "514", "printed": "514", "notation": null}
nlprog_det-setting-0050992
3 clients win $48,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? Set it up in Python: ```python award = 48000 fee = award * 25 / 100 # 12000.0 remaining = award - fee # 36000.0 per_client = remaining / 3 # 12000.0 print(f"{per_client:.2f}") ``` Running it prints: 12000.00 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "12000.00", "printed": "12000.00", "notation": null}
nlprog_det-setting-0050993
<|start|><|user|> An office budget of $20,000 has expenses of $3,951, $599, $3,462. How much of the budget is left?<|eot|> <|assistant|> The remaining budget is $11,988.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $20,000 has expenses of $3,951, $599, $3,462. How much of the budget is left?" }, { "role": "assistant", "content": "The remaining budget is $11,988." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "11988", "printed": "11988", "notation": null}
nlprog_det-setting-0050994
Rent of $1,800 goes up 5%. What is the new rent? Here is a short program for it. ```python rent = 1800 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1890.0 print(f"{new_rent:.2f}") ``` Running it prints: 1890.00 It rises to $1,890.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1890.00", "printed": "1890.00", "notation": null}
nlprog_det-setting-0050996
How many days are there from September 28, 2018 to August 1, 2019? There are 307 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "307", "printed": "307", "notation": null}
nlprog_det-setting-0050997
<|start|><|user|> Buying 2 tape rolls at $21 each, 1 scissors at $17 each, 1 keyboards at $17 each, someone hands over $100. What change comes back?<|eot|> <|assistant|> ```python items = [(2, 21), (1, 17), (1, 17)] total = sum(q * p for q, p in items) # 76 paid = 100 change = paid - total # 24 print(change) ``` (std...
chat
[ { "role": "user", "content": "Buying 2 tape rolls at $21 each, 1 scissors at $17 each, 1 keyboards at $17 each, someone hands over $100. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(2, 21), (1, 17), (1, 17)]\ntotal = sum(q * p for q, p in items) # 76\npaid...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0050998
With 25 rows of 16 chairs and 22 empty chairs, how many chairs are taken? As Python: ```python rows = 25 per_row = 16 empty = 22 seated = rows * per_row - empty # 378 print(seated) ``` The run gives: 378 378 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "378", "printed": "378", "notation": null}
nlprog_det-setting-0050999
After an initial $6,000, the remainder of a $30,000 grant is paid in 6 equal parts. What is each part? $4,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0051000
<|start|><|user|> How many of 274 votes make 67% (round up)?<|eot|> <|assistant|> ```python import math voters = 274 needed = math.ceil(voters * 67 / 100) # 184 print(needed) ``` Running it prints 184, as expected. At least 184 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 274 votes make 67% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 274\nneeded = math.ceil(voters * 67 / 100) # 184\nprint(needed)\n```\nRunning it prints 184, as expected.\n\nAt least 184 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "184", "printed": "184", "notation": null}
nlprog_det-setting-0051002
Tobias buys 8 boxes of 10 envelopes each and gives away 3 envelopes. How many envelopes are left? Python code: ```python boxes = 8 per_box = 10 given_away = 3 left = boxes * per_box - given_away print(left) ``` Python prints 77. 77 envelopes are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0051003
Beatriz earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 52-hour week? Here is the program. ```python rate = 18.5 hours = 52 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 333.0 pay = regular + overtime # 1073.0 print(f"{pay:.2f}") ``` # out: 1073.00 Beatriz ear...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "1073.00", "printed": "1073.00", "notation": null}
nlprog_det-setting-0051004
<|start|><|user|> Convert 84 km to meters.<|eot|> <|assistant|> ```python km = 84 meters = km * 1000 # 84000 print(round(meters)) ``` # printed: 84000 That is 84,000 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 84 km to meters." }, { "role": "assistant", "content": "```python\nkm = 84\nmeters = km * 1000 # 84000\nprint(round(meters))\n```\n# printed: 84000\n\nThat is 84,000 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "84000", "printed": "84000", "notation": null}
nlprog_det-setting-0051005
Goods bought on August 12, 2021 carry a 24-month warranty. When does it expire? Programmatically: ```python from datetime import date start = date(2021, 8, 12) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` std...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2023-08-12", "printed": "2023-08-12", "notation": null}
nlprog_det-setting-0051006
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Starting with 1161 keyboards and using 19 per day, how many remain after 20 days?<|eot|> <|assistant|> ```python stock = 1161 per_day = 19 days = 20 left = stock - per_day * days # 781 print(left) ``` Printed = 781 781 remain.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Starting with 1161 keyboards and using 19 per day, how many remain after 20 days?" }, { "role": "assistant", "content": "```python\nstock = 1161\nper_day = 19\ndays = 20\nleft =...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "781", "printed": "781", "notation": null}
nlprog_det-setting-0051007
<|start|><|user|> How many units at $40 each (variable cost $32) cover $9,000 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 9000 price = 40 variable = 32 units = math.ceil(fixed / (price - variable)) # 1125 print(units) ``` On running, it outputs: 1125 Break-even is 1125 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $40 each (variable cost $32) cover $9,000 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 9000\nprice = 40\nvariable = 32\nunits = math.ceil(fixed / (price - variable)) # 1125\nprint(units)\n```\nOn running, ...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1125", "printed": "1125", "notation": null}
nlprog_det-setting-0051008
Each of Reza's swims burns 250 calories. How many calories over 3 swims? One way, in code: ```python per_session = 250 sessions = 3 total = per_session * sessions # 750 print(total) ``` Execution prints 750, as expected. That burns 750 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0051009
<|start|><|system|> You can call tools. Available tools: {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "convert_units", "description": "Convert a quantity between ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"conv...
nlprog_det
setting
original
null
deterministic
[]
[]
422
{"gold": "552", "printed": "552", "notation": null}
nlprog_det-setting-0051010
A 90-day notice period begins on October 27, 2028. On what date does it end? Python: ```python from datetime import date, timedelta start = date(2028, 10, 27) # datetime.date(2028, 10, 27) end = start + timedelta(days=90) # datetime.date(2029, 1, 25) print(end.isoformat()) ``` It prints 2029-01-25, as expected. The...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2029-01-25", "printed": "2029-01-25", "notation": null}
nlprog_det-setting-0051011
A shift runs from 11:49 AM to 1:08 PM. How long is it in minutes? A few lines of Python do it: ```python start = 11 * 60 + 49 # 709 end = 13 * 60 + 8 # 788 print(end - start) ``` Executed, it shows: 79 It is 79 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0051012
<|start|><|user|> An attorney bills 8 hours at $350 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 8 rate = 350 bill = hours * rate # 2800 print(f"{bill:.2f}") ``` (Printed: 2800.00) The bill is $2,800.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 8 hours at $350 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 8\nrate = 350\nbill = hours * rate # 2800\nprint(f\"{bill:.2f}\")\n```\n(Printed: 2800.00)\n\nThe bill is $2,800.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "2800.00", "printed": "2800.00", "notation": null}
nlprog_det-setting-0051013
Filing fees are $25 per document. What do 12 filings cost? Script: ```python fee = 25 filings = 12 total = fee * filings print(total) ``` Result: 300 The filings cost $300 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0051014
One can of paint covers 350 square feet. How many cans are needed for 1045 square feet of wall? Python version: ```python import math area = 1045 coverage = 350 cans = math.ceil(area / coverage) # 3 print(cans) ``` Result — 3 Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0051015
A lawyer's fee is 40% of a $12,000 recovery. How large is the fee? The computation: ```python recovery = 12000 rate = 40 / 100 # 0.4 fee = recovery * rate # 4800.0 print(f"{fee:.2f}") ``` Printed: 4800.00 The lawyer's fee comes to $4,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "4800.00", "printed": "4800.00", "notation": null}
nlprog_det-setting-0051016
If a 135-minute meeting begins at 10:30 AM, what time does it finish? A Python solution: ```python start = 10 * 60 + 30 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Run output: 12:45 PM The meeting finishes at 12:45 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "12:45 PM", "printed": "12:45 PM", "notation": null}
nlprog_det-setting-0051017
A court charges $5 per request plus $0.50 per page after the first 10 pages. What does a 76-page copy cost? Python, step by step: ```python pages = 76 base = 5 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 38.0 print(f"{cost:.2f}") ``` Run result — 38.00 The copy costs $38.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "38.00", "printed": "38.00", "notation": null}
nlprog_det-setting-0051018
How many weekdays (Monday to Friday) fall after February 27, 2019 up to and including March 7, 2019? Python, step by step: ```python from datetime import date, timedelta start = date(2019, 2, 27) end = date(2019, 3, 7) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
162
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0051020
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> Shipping costs $5 plus $1.50 per pound. What does a 24-pound parcel cost to ship?<|eot|> <|assistant|> Shipping costs $41.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "Shipping costs $5 plus $1.50 per pound. What does a 24-pound parcel cost to ship?" }, { "role": "assistant", "content": "Shipping costs $41.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
56
{"gold": "41.00", "printed": "41.00", "notation": null}
nlprog_det-setting-0051021
A car travels 176 miles in 2 hours. What is its average speed in miles per hour? Coded up: ```python distance = 176 hours = 2 speed = distance / hours print(round(speed)) ``` Executed, it shows: 88 It averages 88 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "88", "printed": "88", "notation": null}
nlprog_det-setting-0051022
Ines earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 54-hour week? Set it up in Python: ```python rate = 22.4 hours = 54 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 470.4 pay = regular + overtime # 1366.4 print(f"{pay:.2f}") ``` On running, it outputs 1366.40...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "1366.40", "printed": "1366.40", "notation": null}
nlprog_det-setting-0051023
Scale 200 g of pasta from 4 servings to 12 servings. Python, step by step: ```python grams = 200 serves = 4 needed_for = 12 scaled = grams * needed_for // serves # 600 print(scaled) ``` # console output: 600 Use 600 g of pasta.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0051024
How many weekdays (Monday to Friday) fall after May 21, 2019 up to and including June 22, 2019? Set it up in Python: ```python from datetime import date, timedelta start = date(2019, 5, 21) end = date(2019, 6, 22) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0051025
<|start|><|user|> Counting only Monday through Friday, how many business days are there after July 8, 2028 through August 7, 2028?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2028, 7, 8) end = date(2028, 8, 7) count = 0 for k in range(1, (end - start).days + 1): if (start + time...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after July 8, 2028 through August 7, 2028?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2028, 7, 8)\nend = date(2028, 8, 7)\ncount = 0\nfor ...
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0051026
<|start|><|user|> 12 hours of work at $225 an hour: what is the total charge?<|eot|> <|assistant|> hours = 12 rate = 225 bill = hours * rate # 2700 print(f"{bill:.2f}") # program output: 2700.00 That comes to $2,700.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "12 hours of work at $225 an hour: what is the total charge?" }, { "role": "assistant", "content": " hours = 12\n rate = 225\n bill = hours * rate # 2700\n print(f\"{bill:.2f}\")\n# program output: 2700.00\n\nThat comes to $2,700.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "2700.00", "printed": "2700.00", "notation": null}
nlprog_det-setting-0051027
A service costs $9 a month or $72 a year. How much does the yearly plan save over 12 monthly payments? Let the code do the arithmetic: ```python monthly = 9 yearly = 72 savings = monthly * 12 - yearly # 36 print(savings) ``` The program prints 36. $36 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0051028
Rania buys 3 boxes of 6 water bottles each and gives away 1 water bottles. How many water bottles are left? A short script: ```python boxes = 3 per_box = 6 given_away = 1 left = boxes * per_box - given_away # 17 print(left) ``` Execution result: 17 That leaves 17 water bottles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0051029
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> An office budget of $5,000 has expenses of $3,319, $1,826, $3,637, $1,261. How much of the budget is left?<|eot|> <|assistant|> The remaining budget is -$5,043.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "An office budget of $5,000 has expenses of $3,319, $1,826, $3,637, $1,261. How much of the budget is left?" }, { "role": "assistant", "content": "The remaining budget is -$5,043."...
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "-5043", "printed": "-5043", "notation": null}
nlprog_det-setting-0051031
84 copies of a 21-page packet are printed at $0.15 per page. What is the cost? The job costs $264.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "264.60", "printed": "264.60", "notation": null}
nlprog_det-setting-0051032
<|start|><|user|> Signe and Bilal share $5,082 in the ratio 2:5. How much does Signe get?<|eot|> <|assistant|> Signe's share is $1,452.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Signe and Bilal share $5,082 in the ratio 2:5. How much does Signe get?" }, { "role": "assistant", "content": "Signe's share is $1,452." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "1452", "printed": "1452", "notation": null}
nlprog_det-setting-0051033
<|start|><|user|> Pack A has 8 items for $13.85. Pack B has 15 items for $8.65. Which has the lower price per item?<|eot|> <|assistant|> B has the lower unit price.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Pack A has 8 items for $13.85. Pack B has 15 items for $8.65. Which has the lower price per item?" }, { "role": "assistant", "content": "B has the lower unit price." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0051034
<|start|><|user|> Rent of $1,100 goes up 5%. What is the new rent?<|eot|> <|assistant|> ```python rent = 1100 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1155.0 print(f"{new_rent:.2f}") ``` Running it prints: 1155.00 It rises to $1,155.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,100 goes up 5%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 1100\nincrease = 5 / 100 # 0.05\nnew_rent = rent * (1 + increase) # 1155.0\nprint(f\"{new_rent:.2f}\")\n```\nRunning it prints: 1155.00\n\nIt rises to $1,155....
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1155.00", "printed": "1155.00", "notation": null}
nlprog_det-setting-0051035
How many units at $15 each (variable cost $11) cover $1,200 of fixed costs? A few lines of Python do it: ```python import math fixed = 1200 price = 15 variable = 11 units = math.ceil(fixed / (price - variable)) # 300 print(units) ``` On running, it outputs: 300 300 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0051036
<|start|><|system|> Answer in plain English.<|eot|> <|user|> A garage charges $5 an hour, never more than $18 a day. How much for 7 hours?<|eot|> <|assistant|> ```python rate = 5 hours = 7 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` Run output: 18 The charge is $18.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "A garage charges $5 an hour, never more than $18 a day. How much for 7 hours?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 7\ndaily_max = 18\ncost = min(rate * hours, dai...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0051037
<|start|><|system|> You can call tools. Available tools: {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}} {"name": "math_engine", "description": "Execu...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", ...
nlprog_det
setting
original
null
deterministic
[]
[]
298
{"gold": "2800", "printed": "2800", "notation": null}
nlprog_det-setting-0051038
The firm was founded in 2012. How many years had passed by 2029? ```python start_year = 2012 end_year = 2029 print(end_year - start_year) ``` Executing it gives 17, as expected. That is 17 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0051039
755 files go into boxes of 50. How many boxes does that take? It takes 16 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0051040
<|start|><|user|> A settlement of $18,000 is split equally among 2 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 18000 parties = 2 share = settlement // parties # 9000 print(share) ``` # execution result: 9000 Each party receives $9,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $18,000 is split equally among 2 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 18000\nparties = 2\nshare = settlement // parties # 9000\nprint(share)\n```\n# execution result: 9000\n\nEach ...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "9000", "printed": "9000", "notation": null}
nlprog_det-setting-0051041
<|start|><|user|> A appointment starts at 8:40 AM and lasts 90 minutes. When does it end?<|eot|> <|assistant|> It ends at 10:10 AM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A appointment starts at 8:40 AM and lasts 90 minutes. When does it end?" }, { "role": "assistant", "content": "It ends at 10:10 AM." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "10:10 AM", "printed": "10:10 AM", "notation": null}
nlprog_det-setting-0051042
<|start|><|user|> Buying 4 binders at $14 each, 5 flash drives at $11 each, 4 water bottles at $17 each, someone hands over $200. What change comes back?<|eot|> <|assistant|> $21 comes back.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Buying 4 binders at $14 each, 5 flash drives at $11 each, 4 water bottles at $17 each, someone hands over $200. What change comes back?" }, { "role": "assistant", "content": "$21 comes back." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
55
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0051043
<|start|><|system|> Functions: [{"name": "compute", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> At $26.55 an hour, what does 30 hours...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"compute\", \"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
[]
[]
205
{"gold": "796.50", "printed": "796.50", "notation": null}
nlprog_det-setting-0051044
15 of 20 members attended. What percent attended? Python: present = 15 total = 20 percent = present / total * 100 # 75.0 print(round(percent, 1)) Run it and it prints: 75.0 75.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "75.0", "printed": "75.0", "notation": null}
nlprog_det-setting-0051045
<|start|><|system|> Tool definitions: [{"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "get_weather", "description": "Get the weather...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
283
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0051046
<|start|><|user|> At $0.58 per mile, what is the reimbursement for 628 miles?<|eot|> <|assistant|> ```python miles = 628 rate = 0.58 reimbursement = miles * rate # 364.23999999999995 print(f"{reimbursement:.2f}") ``` Executing it gives 364.24. Yoko is owed $364.24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.58 per mile, what is the reimbursement for 628 miles?" }, { "role": "assistant", "content": "```python\nmiles = 628\nrate = 0.58\nreimbursement = miles * rate # 364.23999999999995\nprint(f\"{reimbursement:.2f}\")\n```\nExecuting it gives 364.24.\n\nYoko is ow...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "364.24", "printed": "364.24", "notation": null}
nlprog_det-setting-0051047
<|start|><|system|> Tool definitions: {"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> Monthly rent is $1,800. A tenant moves i...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}" ...
nlprog_det
setting
original
null
deterministic
[]
[]
247
{"gold": "900.00", "printed": "900.00", "notation": null}
nlprog_det-setting-0051048
<|start|><|user|> A 6-day trip pays $64 a day for meals and $110 a night for lodging (5 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 6 meal_rate = 64 lodging_rate = 110 nights = days - 1 # 5 total = days * meal_rate + nights * lodging_rate # 934 print(total) ``` When run, it prints 934,...
chat
[ { "role": "user", "content": "A 6-day trip pays $64 a day for meals and $110 a night for lodging (5 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 6\nmeal_rate = 64\nlodging_rate = 110\nnights = days - 1 # 5\ntotal = days * meal_rate + nights * lo...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "934", "printed": "934", "notation": null}
nlprog_det-setting-0051049
Convert 6,470 CHF to USD at 1 CHF = 1.08 USD. Python does the arithmetic: ```python amount = 6470 rate = 1.08 converted = amount * rate # 6987.6 print(f"{converted:.2f}") ``` The printout reads: 6987.60 That is 6,987.60 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "6987.60", "printed": "6987.60", "notation": null}
nlprog_det-setting-0051050
A party has 21 days to respond to a motion served on March 4, 2018, with 3 days added because service was by mail. When is the response due? The Python version: ```python from datetime import date, timedelta served = date(2018, 3, 4) response_days = 21 mail_days = 3 due = served + timedelta(days=response_days + mail_d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2018-03-28", "printed": "2018-03-28", "notation": null}
nlprog_det-setting-0051051
<|start|><|user|> An attorney bills 2 hours at $250 per hour. What is the bill?<|eot|> <|assistant|> That comes to $500.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 2 hours at $250 per hour. What is the bill?" }, { "role": "assistant", "content": "That comes to $500.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "500.00", "printed": "500.00", "notation": null}
nlprog_det-setting-0051052
A quorum is 3/5 of the 36 members, rounded up. How many members make a quorum? Here is the program. ```python import math members = 36 quorum = math.ceil(members * 3 / 5) # 22 print(quorum) ``` The program prints 22, as expected. That is 22 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0051053
A 8% increase is applied to $900 monthly rent. What is the new amount? The new rent is $972.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "972.00", "printed": "972.00", "notation": null}
nlprog_det-setting-0051054
What day of the week is June 26, 2011? Computing it: ```python from datetime import date hearing = date(2011, 6, 26) # datetime.date(2011, 6, 26) print(hearing.strftime("%A")) ``` Execution prints Sunday. It is a Sunday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0051055
Convert 3,023 GBP to USD at 1 GBP = 1.35 USD. A Python solution: ```python amount = 3023 rate = 1.35 converted = amount * rate # 4081.05 print(f"{converted:.2f}") ``` Execution result — 4081.05 It converts to 4,081.05 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "4081.05", "printed": "4081.05", "notation": null}
nlprog_det-setting-0051056
Starting with 601 tape rolls and using 17 per day, how many remain after 9 days? Here is a short program for it. ```python stock = 601 per_day = 17 days = 9 left = stock - per_day * days # 448 print(left) ``` Execution result: 448 448 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "448", "printed": "448", "notation": null}
nlprog_det-setting-0051057
<|start|><|user|> What commission does Malik make on $83,568 in sales at 4%?<|eot|> <|assistant|> ```python sales = 83568 rate = 4 / 100 # 0.04 commission = sales * rate # 3342.7200000000003 print(f"{commission:.2f}") ``` stdout: 3342.72 Malik earns $3,342.72.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Malik make on $83,568 in sales at 4%?" }, { "role": "assistant", "content": "```python\nsales = 83568\nrate = 4 / 100 # 0.04\ncommission = sales * rate # 3342.7200000000003\nprint(f\"{commission:.2f}\")\n```\nstdout: 3342.72\n\nMalik earns $3,...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "3342.72", "printed": "3342.72", "notation": null}
nlprog_det-setting-0051059
An attorney bills 1.5 hours at $150 per hour. What is the bill? Coded up: ```python hours = 1.5 rate = 150 bill = hours * rate # 225.0 print(f"{bill:.2f}") ``` # out: 225.00 The bill is $225.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "225.00", "printed": "225.00", "notation": null}
nlprog_det-setting-0051060
<|start|><|user|> Each storage box holds 25 files. How many boxes are needed for 642 files?<|eot|> <|assistant|> ```python import math files = 642 per_box = 25 boxes = math.ceil(files / per_box) # 26 print(boxes) ``` Executing it gives: 26 26 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 25 files. How many boxes are needed for 642 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 642\nper_box = 25\nboxes = math.ceil(files / per_box) # 26\nprint(boxes)\n```\nExecuting it gives: 26\n\n26 boxes are ne...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0051061
<|start|><|user|> A hearing is set for April 9, 2011. What day of the week is that?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2011, 4, 9) # datetime.date(2011, 4, 9) print(hearing.strftime("%A")) ``` Program output — Saturday April 9, 2011 is a Saturday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing is set for April 9, 2011. What day of the week is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2011, 4, 9) # datetime.date(2011, 4, 9)\nprint(hearing.strftime(\"%A\"))\n```\nProgram output — Saturday\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0051062
At an exchange rate of 0.74 USD per GBP, how many USD is 6,087 GBP? Python does the arithmetic: ```python amount = 6087 rate = 0.74 converted = amount * rate print(f"{converted:.2f}") ``` The interpreter prints: 4504.38 That is 4,504.38 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "4504.38", "printed": "4504.38", "notation": null}
nlprog_det-setting-0051063
Notice was given on December 17, 2023. The notice period is 30 days. When does it run out? It ends on January 16, 2024.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "2024-01-16", "printed": "2024-01-16", "notation": null}
nlprog_det-setting-0051064
How many minutes pass from 9:45 AM to 4:10 PM on the same day? Python: ```python start = 9 * 60 + 45 # 585 end = 16 * 60 + 10 # 970 print(end - start) ``` # console output: 385 385 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "385", "printed": "385", "notation": null}
nlprog_det-setting-0051065
5 friends split a $150 bill plus a 15% tip evenly. How much does each pay? Python makes this quick: ```python bill = 150 tip_rate = 15 / 100 # 0.15 people = 5 each = bill * (1 + tip_rate) / people # 34.5 print(f"{each:.2f}") ``` stdout: 34.50 The share is $34.50 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "34.50", "printed": "34.50", "notation": null}
nlprog_det-setting-0051066
The landlord deducts $75, $85 and $75 from a $1,000 deposit. What is returned to the tenant? Python version: ```python deposit = 1000 deductions = [75, 85, 75] refund = deposit - sum(deductions) # 765 print(refund) ``` (Printed: 765) The refund is $765.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "765", "printed": "765", "notation": null}
nlprog_det-setting-0051067
How many of 245 votes make 60% (round up)? Coded up: ```python import math voters = 245 needed = math.ceil(voters * 60 / 100) # 147 print(needed) ``` # execution result: 147 At least 147 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "147", "printed": "147", "notation": null}
nlprog_det-setting-0051069
<|start|><|system|> Tools you may use: {"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}} {"name": "py_exec", "description": "Python sandbox...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", \"sect...
nlprog_det
setting
original
null
deterministic
[]
[]
364
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0051070
2 claimants share a $524 settlement equally. What is each share? Code: ```python settlement = 524 parties = 2 share = settlement // parties # 262 print(share) ``` Output of the run: 262 Each share is $262.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "262", "printed": "262", "notation": null}
nlprog_det-setting-0051071
A hall has 8 rows of 21 seats, and 1 seats are empty. How many people are seated? Python code: rows = 8 per_row = 21 empty = 1 seated = rows * per_row - empty # 167 print(seated) Running it prints 167. 167 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "167", "printed": "167", "notation": null}
nlprog_det-setting-0051072
With $20,000 in costs and $24,000 in revenue, what percent of revenue is profit? Round to one decimal. Here is a short program for it. ```python revenue = 24000 costs = 20000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 16.666666666666664 print(round(margin, 1)) ``` # console output: 16.7 The m...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "16.7", "printed": "16.7", "notation": null}
nlprog_det-setting-0051073
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> An attorney bills 2 hours at $350 per hour. What is the bill?<|eot|> <|assistant|> That comes to $700.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "An attorney bills 2 hours at $350 per hour. What is the bill?" }, { "role": "assistant", "content": "That comes to $700.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "700.00", "printed": "700.00", "notation": null}
nlprog_det-setting-0051074
<|start|><|user|> Divide 199 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> total = 199 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") Output: 33 each, 1 left over The...
chat
[ { "role": "user", "content": "Divide 199 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": " total = 199\n groups = 6\n per_group, remainder = divmod(total, groups)\n print(f\"{per_group} each,...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "33 each, 1 left over", "printed": "33 each, 1 left over", "notation": null}
nlprog_det-setting-0051075
<|start|><|user|> On which weekday does June 19, 1995 fall?<|eot|> <|assistant|> ```python from datetime import date hearing = date(1995, 6, 19) # datetime.date(1995, 6, 19) print(hearing.strftime("%A")) ``` Printed = Monday It is a Monday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "On which weekday does June 19, 1995 fall?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(1995, 6, 19) # datetime.date(1995, 6, 19)\nprint(hearing.strftime(\"%A\"))\n```\nPrinted = Monday\n\nIt is a Monday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0051076
A quorum is 2/3 of the 36 members, rounded up. How many members make a quorum? Translated to Python: import math members = 36 quorum = math.ceil(members * 2 / 3) # 24 print(quorum) What it prints — 24 That is 24 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0051077
What simple interest does $20,000 earn at 6% a year over 4 years? A few lines of Python do it: ```python principal = 20000 rate = 6 / 100 # 0.06 years = 4 interest = principal * rate * years # 4800.0 print(f"{interest:.2f}") ``` # printed: 4800.00 It earns $4,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "4800.00", "printed": "4800.00", "notation": null}
nlprog_det-setting-0051078
Wen drove 421 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement? ```python miles = 421 rate = 0.7 reimbursement = miles * rate print(f"{reimbursement:.2f}") ``` The script prints: 294.70 Wen is owed $294.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "294.70", "printed": "294.70", "notation": null}
nlprog_det-setting-0051079
<|start|><|system|> You are a data assistant.<|eot|> <|user|> A court charges $10 per request plus $0.10 per page after the first 20 pages. What does a 74-page copy cost?<|eot|> <|assistant|> ```python pages = 74 base = 10 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "A court charges $10 per request plus $0.10 per page after the first 20 pages. What does a 74-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 74\nbase = 10\nper_page =...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "15.40", "printed": "15.40", "notation": null}
nlprog_det-setting-0051080
<|start|><|user|> What does $1,000 grow to in 2 years at 5% annual compounding?<|eot|> <|assistant|> ```python principal = 1000 rate = 5 / 100 # 0.05 years = 2 value = principal * (1 + rate) ** years # 1102.5 print(f"{value:.2f}") ``` Program output — 1102.50 The balance is $1,102.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $1,000 grow to in 2 years at 5% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 5 / 100 # 0.05\nyears = 2\nvalue = principal * (1 + rate) ** years # 1102.5\nprint(f\"{value:.2f}\")\n```\nProgram output — 110...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1102.50", "printed": "1102.50", "notation": null}
nlprog_det-setting-0051081
Buying 3 envelopes at $29 each, 5 desk lamps at $8 each, 4 cables at $25 each, someone hands over $250. What change comes back? ```python items = [(3, 29), (5, 8), (4, 25)] total = sum(q * p for q, p in items) # 227 paid = 250 change = paid - total # 23 print(change) ``` (Execution result: 23) $23 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "23", "printed": "23", "notation": null}