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-0072069
<|start|><|user|> A measure needs at least 60% of 218 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 218 needed = math.ceil(voters * 60 / 100) # 131 print(needed) ``` It prints 131, as expected. At least 131 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 60% of 218 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 218\nneeded = math.ceil(voters * 60 / 100) # 131\nprint(needed)\n```\nIt prints 131, as expected.\n\nAt least 131 ...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "131", "printed": "131", "notation": null}
nlprog_det-setting-0072070
<|start|><|user|> A $3,600 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> principal = 3600 annual_rate = 10 / 100 # 0.1 months = 24 interest = principal * annual_rate * months / 12 # 720.0 ...
chat
[ { "role": "user", "content": "A $3,600 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": " principal = 3600\n annual_rate = 10 / 100 # 0.1\n months = 24\n i...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "180.00", "printed": "180.00", "notation": null}
nlprog_det-setting-0072071
2.5 hours of work at $410 an hour: what is the total charge? The bill is $1,025.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "1025.00", "printed": "1025.00", "notation": null}
nlprog_det-setting-0072072
<|start|><|system|> You are a math tutor.<|eot|> <|user|> A 17 lb package ships at $5 base plus $2.00/lb. What is the charge?<|eot|> <|assistant|> ```python base = 5 per_pound = 2.0 weight = 17 cost = base + per_pound * weight # 39.0 print(f"{cost:.2f}") ``` When run, it prints 39.00, as expected. Shipping costs $39....
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "A 17 lb package ships at $5 base plus $2.00/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 5\nper_pound = 2.0\nweight = 17\ncost = base + per_pound * weight # 39...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "39.00", "printed": "39.00", "notation": null}
nlprog_det-setting-0072073
A recipe for 6 people uses 150 grams of flour. How many grams are needed for 4 people? Python: ```python grams = 150 serves = 6 needed_for = 4 scaled = grams * needed_for // serves # 100 print(scaled) ``` Running it prints 100. 100 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0072074
<|start|><|user|> A $60,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 60000 up_front = 3000 installments = 3 each = (grant - up_front) / installments # 19000.0 print(f"{each:.2f}") ``` Printed result — 19000.00 Each installme...
chat
[ { "role": "user", "content": "A $60,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 60000\nup_front = 3000\ninstallments = 3\neach = (grant - up_front) / installments # 19000.0\nprint(f...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "19000.00", "printed": "19000.00", "notation": null}
nlprog_det-setting-0072075
How many meters are in 15.7 kilometers? ```python km = 15.7 meters = km * 1000 # 15700.0 print(round(meters)) ``` # printed result: 15700 That is 15,700 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "15700", "printed": "15700", "notation": null}
nlprog_det-setting-0072076
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> A 495-page report must be reviewed in 9 days. How many pages a day is that, evenly?<|eot|> <|assistant|> 55 pages a day.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "A 495-page report must be reviewed in 9 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "55 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "55", "printed": "55", "notation": null}
nlprog_det-setting-0072077
A hall has 8 rows of 20 seats, and 30 seats are empty. How many people are seated? 130 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "130", "printed": "130", "notation": null}
nlprog_det-setting-0072078
<|start|><|user|> How many units at $40 each (variable cost $30) cover $9,000 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 9000 price = 40 variable = 30 units = math.ceil(fixed / (price - variable)) # 900 print(units) ``` Executed, it shows: 900 Break-even is 900 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $40 each (variable cost $30) cover $9,000 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 9000\nprice = 40\nvariable = 30\nunits = math.ceil(fixed / (price - variable)) # 900\nprint(units)\n```\nExecuted, it ...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0072079
602 files go into boxes of 50. How many boxes does that take? Program: ```python import math files = 602 per_box = 50 boxes = math.ceil(files / per_box) print(boxes) ``` Printed result: 13 It takes 13 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0072080
<|start|><|user|> Revenue is $36,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 36500 costs = 36000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 1.36986301369863 print(round(margin, 1)) ``` Program output: 1.4 T...
chat
[ { "role": "user", "content": "Revenue is $36,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 36500\ncosts = 36000\nprofit = revenue - costs # 500\nmargin = profit / revenue * 100 # 1.3698630...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "1.4", "printed": "1.4", "notation": null}
nlprog_det-setting-0072081
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours? Python code: ```python rate = 20.0 hours = 55 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 450.0 pay = regular + overtime # 1250.0 print(f"{pay:.2f}") ``` When run, it prints 1250.00. The weekly p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "1250.00", "printed": "1250.00", "notation": null}
nlprog_det-setting-0072082
From a $7,500 retainer, 9 hours at $150/hour have been drawn. What remains? Python, step by step: ```python retainer = 7500 hours = 9 rate = 150 left = retainer - hours * rate # 6150 print(left) ``` # stdout: 6150 $6,150 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "6150", "printed": "6150", "notation": null}
nlprog_det-setting-0072083
Attendance was 73 out of 80. Express it as a percent. The program: ```python present = 73 total = 80 percent = present / total * 100 # 91.25 print(round(percent, 1)) ``` Python prints 91.2, as expected. 91.2% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "91.2", "printed": "91.2", "notation": null}
nlprog_det-setting-0072084
A 8% increase is applied to $1,250 monthly rent. What is the new amount? Script: ```python rent = 1250 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1350.0 print(f"{new_rent:.2f}") ``` Running this gives: 1350.00 The new rent is $1,350.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1350.00", "printed": "1350.00", "notation": null}
nlprog_det-setting-0072085
A lease runs for 36 months at $850 per month. How much rent is paid over the whole term? Program: ```python monthly_rent = 850 months = 36 total = monthly_rent * months # 30600 print(total) ``` On running, it outputs 30600. In total, $30,600 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "30600", "printed": "30600", "notation": null}
nlprog_det-setting-0072086
The rules require 1/3 of 50 members (round up) to be present. How many is that? Let the code do the arithmetic: ```python import math members = 50 quorum = math.ceil(members * 1 / 3) # 17 print(quorum) ``` Printed: 17 17 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0072087
Revenue is $6,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)? Python version: ```python revenue = 6000 costs = 4000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 33.33333333333333 print(round(margin, 1)) ``` Out: 33.3 The margin is 33.3%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "33.3", "printed": "33.3", "notation": null}
nlprog_det-setting-0072089
<|start|><|user|> At $0.70 per mile, what is the reimbursement for 224 miles?<|eot|> <|assistant|> The reimbursement is $156.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.70 per mile, what is the reimbursement for 224 miles?" }, { "role": "assistant", "content": "The reimbursement is $156.80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "156.80", "printed": "156.80", "notation": null}
nlprog_det-setting-0072090
Fines run at $100 per day up to a maximum of $2,500. How much after 46 days? Python code: ```python per_day = 100 days = 46 cap = 2500 fine = min(per_day * days, cap) print(fine) ``` Running it prints: 2500 $2,500 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0072091
<|start|><|user|> Notice was given on April 26, 2018. The notice period is 45 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2018, 4, 26) # datetime.date(2018, 4, 26) end = start + timedelta(days=45) # datetime.date(2018, 6, 10) print(end.isoformat()) ``` ...
chat
[ { "role": "user", "content": "Notice was given on April 26, 2018. The notice period is 45 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2018, 4, 26) # datetime.date(2018, 4, 26)\nend = start + timedelta(days=45) ...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2018-06-10", "printed": "2018-06-10", "notation": null}
nlprog_det-setting-0072092
At 1.5% a month (simple), what interest builds on $12,000 over 6 months? A few lines of Python do it: ```python balance = 12000 monthly_rate = 1.5 / 100 # 0.015 months = 6 interest = balance * monthly_rate * months # 1080.0 print(f"{interest:.2f}") ``` (Output: 1080.00) The interest is $1,080.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "1080.00", "printed": "1080.00", "notation": null}
nlprog_det-setting-0072093
<|start|><|user|> A customer buys 1 markers at $3 each, 1 scissors at $5 each, 2 binders at $27 each and pays with $100. How much change is due?<|eot|> <|assistant|> The change is $38.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A customer buys 1 markers at $3 each, 1 scissors at $5 each, 2 binders at $27 each and pays with $100. How much change is due?" }, { "role": "assistant", "content": "The change is $38." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
57
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0072094
Convert 5 °C to Fahrenheit. As a program: ```python celsius = 5 fahrenheit = celsius * 9 / 5 + 32 # 41.0 print(round(fahrenheit)) ``` Output: 41 That is 41 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0072095
<|start|><|user|> Water costs $12 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 18,000 gallons?<|eot|> <|assistant|> ```python base = 12 rate = 3.5 used = 18 free = 0 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") ``` Program output — 75.00 The bill is $75.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Water costs $12 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 18,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 12\nrate = 3.5\nused = 18\nfree = 0\nbill = base + rate * max(0, used - free)\nprint(f\"{bill:.2f}\")\n```...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "75.00", "printed": "75.00", "notation": null}
nlprog_det-setting-0072096
<|start|><|user|> Fines run at $25 per day up to a maximum of $1,000. How much after 42 days?<|eot|> <|assistant|> ```python per_day = 25 days = 42 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` The printout reads 1000. The fine is $1,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $25 per day up to a maximum of $1,000. How much after 42 days?" }, { "role": "assistant", "content": "```python\nper_day = 25\ndays = 42\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\nThe printout reads 1000.\n\nThe fine is $1,0...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0072097
A claim accrued on February 21, 2023. The limitations period is 4 years. On what date does it expire? Python does the arithmetic: from datetime import date accrued = date(2023, 2, 21) years = 4 expires = accrued.replace(year=accrued.year + years) print(expires.isoformat()) Running this gives 2027-0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "2027-02-21", "printed": "2027-02-21", "notation": null}
nlprog_det-setting-0072098
Starting with 333 water bottles and using 32 per day, how many remain after 8 days? The program: stock = 333 per_day = 32 days = 8 left = stock - per_day * days # 77 print(left) Execution prints 77, as expected. 77 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0072099
<|start|><|user|> An invoice lists 11 badges at $5 each, plus 6% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 11 unit_price = 5 subtotal = quantity * unit_price # 55 total = subtotal * (1 + 6 / 100) # 58.300000000000004 print(f"{total:.2f}") ``` Execution result — 58.30 The total w...
chat
[ { "role": "user", "content": "An invoice lists 11 badges at $5 each, plus 6% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 11\nunit_price = 5\nsubtotal = quantity * unit_price # 55\ntotal = subtotal * (1 + 6 / 100) # 58.300000000000004\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "58.30", "printed": "58.30", "notation": null}
nlprog_det-setting-0072100
Walls total 574 sq ft and each can covers 300 sq ft. How many cans should be bought? Program: ```python import math area = 574 coverage = 300 cans = math.ceil(area / coverage) # 2 print(cans) ``` The interpreter prints: 2 2 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0072101
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "calculator", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calculator\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "22.0", "printed": "22.0", "notation": null}
nlprog_det-setting-0072102
<|start|><|user|> Attendance was 16 out of 20. Express it as a percent.<|eot|> <|assistant|> ```python present = 16 total = 20 percent = present / total * 100 # 80.0 print(round(percent, 1)) ``` This prints 80.0, as expected. 80.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 16 out of 20. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 16\ntotal = 20\npercent = present / total * 100 # 80.0\nprint(round(percent, 1))\n```\nThis prints 80.0, as expected.\n\n80.0% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "80.0", "printed": "80.0", "notation": null}
nlprog_det-setting-0072103
Shipping costs $5 plus $1.50 per pound. What does a 14-pound parcel cost to ship? As a program: ```python base = 5 per_pound = 1.5 weight = 14 cost = base + per_pound * weight # 26.0 print(f"{cost:.2f}") ``` Shell output: 26.00 The charge is $26.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "26.00", "printed": "26.00", "notation": null}
nlprog_det-setting-0072104
<|start|><|user|> A 6-month warranty starts on October 27, 2023. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2023, 10, 27) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoform...
chat
[ { "role": "user", "content": "A 6-month warranty starts on October 27, 2023. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2023, 10, 27)\nmonths = 6\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start....
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2024-04-27", "printed": "2024-04-27", "notation": null}
nlprog_det-setting-0072105
<|start|><|system|> Tools you may use: {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}} {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"business_days\", \"description\": \"Count ...
nlprog_det
setting
original
null
deterministic
[]
[]
364
{"gold": "1513", "printed": "1513", "notation": null}
nlprog_det-setting-0072107
A party has 30 days to respond to a motion served on September 12, 2018, with 3 days added because service was by mail. When is the response due? Translated to Python: ```python from datetime import date, timedelta served = date(2018, 9, 12) # datetime.date(2018, 9, 12) response_days = 30 mail_days = 3 due = served +...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
177
{"gold": "2018-10-15", "printed": "2018-10-15", "notation": null}
nlprog_det-setting-0072108
3 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? Here is the program. ```python award = 96000 fee = award * 40 / 100 # 38400.0 remaining = award - fee # 57600.0 per_client = remaining / 3 # 19200.0 print(f"{per_client:.2f}") ``` Output of the run — 19200.00 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "19200.00", "printed": "19200.00", "notation": null}
nlprog_det-setting-0072109
Meals are $59 per day and lodging $175 per night. What is the allowance for 3 days and 2 nights? Written as code: ```python days = 3 meal_rate = 59 lodging_rate = 175 nights = days - 1 # 2 total = days * meal_rate + nights * lodging_rate # 527 print(total) ``` The program prints: 527 That comes to $527.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "527", "printed": "527", "notation": null}
nlprog_det-setting-0072110
11 boxes hold 25 notebooks each. After 10 are handed out, how many are left? The Python version: boxes = 11 per_box = 25 given_away = 10 left = boxes * per_box - given_away # 265 print(left) Output of the run: 265 265 notebooks are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "265", "printed": "265", "notation": null}
nlprog_det-setting-0072111
<|start|><|user|> A settlement of $7,344 is split equally among 8 parties. How much does each party receive?<|eot|> <|assistant|> Each party receives $918.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $7,344 is split equally among 8 parties. How much does each party receive?" }, { "role": "assistant", "content": "Each party receives $918." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "918", "printed": "918", "notation": null}
nlprog_det-setting-0072112
An office budget of $8,000 has expenses of $3,263, $1,839, $2,318. How much of the budget is left? Let the code do the arithmetic: budget = 8000 expenses = [3263, 1839, 2318] left = budget - sum(expenses) # 580 print(left) Printed: 580 $580 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "580", "printed": "580", "notation": null}
nlprog_det-setting-0072113
Convert 2 h 5 min (the length of a training session) to minutes. That is 125 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "125", "printed": "125", "notation": null}
nlprog_det-setting-0072114
A storeroom has 1684 hard drives. The office uses 6 a day. How many are left after 11 days? A Python solution: ```python stock = 1684 per_day = 6 days = 11 left = stock - per_day * days # 1618 print(left) ``` Console output: 1618 1618 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1618", "printed": "1618", "notation": null}
nlprog_det-setting-0072115
<|start|><|user|> Prorate $1,800 of monthly rent for 15 days of a 30-day month.<|eot|> <|assistant|> ```python rent = 1800 days_in_month = 30 days_occupied = 15 prorated = rent * days_occupied / days_in_month print(f"{prorated:.2f}") ``` Execution prints 900.00. The tenant owes $900.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $1,800 of monthly rent for 15 days of a 30-day month." }, { "role": "assistant", "content": "```python\nrent = 1800\ndays_in_month = 30\ndays_occupied = 15\nprorated = rent * days_occupied / days_in_month\nprint(f\"{prorated:.2f}\")\n```\nExecution prints 90...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "900.00", "printed": "900.00", "notation": null}
nlprog_det-setting-0072116
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> Dara earns a 8% commission on $73,677 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 73677 rate = 8 / 100 # 0.08 commission = sales * rate # 5894.16 print(f"{commission:.2f}") ``` Executing it gives 5894.16. The commission is $5,894...
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "Dara earns a 8% commission on $73,677 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 73677\nrate = 8 / 100 # 0.08\ncommission = sales * rate # 5894....
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "5894.16", "printed": "5894.16", "notation": null}
nlprog_det-setting-0072117
<|start|><|user|> What is a 20% tip on a $204.93 bill?<|eot|> <|assistant|> ```python bill = 204.93 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 40.986000000000004 print(f"{tip:.2f}") ``` It prints 40.99, as expected. Leave $40.99.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 20% tip on a $204.93 bill?" }, { "role": "assistant", "content": "```python\nbill = 204.93\ntip_rate = 20 / 100 # 0.2\ntip = bill * tip_rate # 40.986000000000004\nprint(f\"{tip:.2f}\")\n```\nIt prints 40.99, as expected.\n\nLeave $40.99." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "40.99", "printed": "40.99", "notation": null}
nlprog_det-setting-0072118
Of a $5,000 budget, $3,600 has been spent. What percent is that? Computation in Python: ```python budget = 5000 spent = 3600 percent = spent / budget * 100 # 72.0 print(round(percent, 1)) ``` Executing it gives 72.0. 72.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "72.0", "printed": "72.0", "notation": null}
nlprog_det-setting-0072119
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> Equipment costs $18,000, has a salvage value of $0, and a useful life of 3 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> cost = 18000 salvage = 0 years = 3 per_year = (cost - salvage) / years print(f"{pe...
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "Equipment costs $18,000, has a salvage value of $0, and a useful life of 3 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": " cost = 18000\n...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0072120
A 235-page report must be reviewed in 5 days. How many pages a day is that, evenly? That is 47 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0072121
A recipe for 2 people uses 200 grams of sugar. How many grams are needed for 4 people? Python makes this quick: ```python grams = 200 serves = 2 needed_for = 4 scaled = grams * needed_for // serves # 400 print(scaled) ``` The program prints 400. Use 400 g of sugar.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0072122
A car travels 410 miles in 2.5 hours. What is its average speed in miles per hour? The average speed is 164 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "164", "printed": "164", "notation": null}
nlprog_det-setting-0072123
Kofi was born on January 3, 1970. How old is Kofi on May 28, 2030? Programmatically: ```python from datetime import date born = date(1970, 1, 3) # datetime.date(1970, 1, 3) on = date(2030, 5, 28) # datetime.date(2030, 5, 28) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 60 print(age) `...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0072124
<|start|><|user|> An invoice lists 33 headsets at $24 each, plus 10% sales tax. What is the invoice total?<|eot|> <|assistant|> The invoice total is $871.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An invoice lists 33 headsets at $24 each, plus 10% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "The invoice total is $871.20." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "871.20", "printed": "871.20", "notation": null}
nlprog_det-setting-0072125
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> Someone works 24 hours at $18.26 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 18.26 hours = 24 earnings = rate * hours # 438.24 print(f"{earnings:.2f}") ``` Output — 438.24 That earns $438.24.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "Someone works 24 hours at $18.26 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 18.26\nhours = 24\nearnings = rate * hours # 438.24\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "438.24", "printed": "438.24", "notation": null}
nlprog_det-setting-0072126
A storeroom has 1032 badges. The office uses 12 a day. How many are left after 5 days? As a program: ```python stock = 1032 per_day = 12 days = 5 left = stock - per_day * days # 972 print(left) ``` This prints: 972 972 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "972", "printed": "972", "notation": null}
nlprog_det-setting-0072128
Convert 61.4 km to meters. That is 61,400 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "61400", "printed": "61400", "notation": null}
nlprog_det-setting-0072129
Fines run at $250 per day up to a maximum of $5,000. How much after 59 days? Set it up in Python: ```python per_day = 250 days = 59 cap = 5000 fine = min(per_day * days, cap) # 5000 print(fine) ``` Console: 5000 The fine is $5,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0072130
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "calculator", "description": "A Python interpreter. Returns st...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"calcul...
nlprog_det
setting
original
null
deterministic
[]
[]
291
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0072131
How many weekdays (Monday to Friday) fall after January 12, 2022 up to and including February 3, 2022? Computation in Python: ```python from datetime import date, timedelta start = date(2022, 1, 12) end = date(2022, 2, 3) 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
[]
[]
154
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0072132
Convert 93.8 km to meters. As a program: ```python km = 93.8 meters = km * 1000 # 93800.0 print(round(meters)) ``` When run, it prints: 93800 93,800 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "93800", "printed": "93800", "notation": null}
nlprog_det-setting-0072133
<|start|><|system|> You can call tools. Available tools: [{"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|use...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python sour...
nlprog_det
setting
original
null
deterministic
[]
[]
261
{"gold": "712.00", "printed": "712.00", "notation": null}
nlprog_det-setting-0072134
<|start|><|user|> A clerk's office charges $90 for each filing. Femi submits 8 filings. What is the total fee?<|eot|> <|assistant|> The total fee is $720.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $90 for each filing. Femi submits 8 filings. What is the total fee?" }, { "role": "assistant", "content": "The total fee is $720." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "720", "printed": "720", "notation": null}
nlprog_det-setting-0072135
Quinn buys 6 boxes of 25 markers each and gives away 18 markers. How many markers are left? Script: ```python boxes = 6 per_box = 25 given_away = 18 left = boxes * per_box - given_away # 132 print(left) ``` (Execution result: 132) That leaves 132 markers.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "132", "printed": "132", "notation": null}
nlprog_det-setting-0072136
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> With $12,500 in costs and $14,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 14500 costs = 12500 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 13.793103448275861 pri...
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "With $12,500 in costs and $14,500 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 14500\ncosts = 12500\npro...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "13.8", "printed": "13.8", "notation": null}
nlprog_det-setting-0072137
A meeting starts at 10:15 AM and lasts 50 minutes. When does it end? ```python start = 10 * 60 + 15 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Program output — 11:05 AM The meeting finishes at 11:05 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "11:05 AM", "printed": "11:05 AM", "notation": null}
nlprog_det-setting-0072138
<|start|><|user|> Monthly rent is $1,800. A tenant moves in with 22 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> The prorated rent is $1,320.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly rent is $1,800. A tenant moves in with 22 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": "The prorated rent is $1,320.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
56
{"gold": "1320.00", "printed": "1320.00", "notation": null}
nlprog_det-setting-0072139
A client paid a $5,000 retainer. The firm has billed 4 hours at $250 per hour. How much of the retainer is left? The program: ```python retainer = 5000 hours = 4 rate = 250 left = retainer - hours * rate # 4000 print(left) ``` It prints 4000, as expected. The remaining balance is $4,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "4000", "printed": "4000", "notation": null}
nlprog_det-setting-0072140
<|start|><|user|> A service costs $15 a month or $168 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> The annual plan saves $12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $15 a month or $168 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "The annual plan saves $12." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0072141
Starting with 1330 rulers and using 13 per day, how many remain after 12 days? 1174 rulers are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "1174", "printed": "1174", "notation": null}
nlprog_det-setting-0072142
1 books come back 3 days late, at $0.50 a day each. What is the fine? Programmatically: ```python per_day = 0.5 days_late = 3 books = 1 fine = per_day * days_late * books # 1.5 print(f"{fine:.2f}") ``` # stdout: 1.50 The fine is $1.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1.50", "printed": "1.50", "notation": null}
nlprog_det-setting-0072144
A client paid a $2,500 retainer. The firm has billed 10 hours at $250 per hour. How much of the retainer is left? Script: ```python retainer = 2500 hours = 10 rate = 250 left = retainer - hours * rate # 0 print(left) ``` Execution result — 0 The remaining balance is $0.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "0", "printed": "0", "notation": null}
nlprog_det-setting-0072145
<|start|><|user|> A trial runs from November 17, 2021 to December 10, 2021, counting both days. How many calendar days is that?<|eot|> <|assistant|> That is 24 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A trial runs from November 17, 2021 to December 10, 2021, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "That is 24 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0072147
<|start|><|system|> Tools (call with JSON): [{"name": "calculator", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Notice was g...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"calculator\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re...
nlprog_det
setting
original
null
deterministic
[]
[]
232
{"gold": "2018-10-19", "printed": "2018-10-19", "notation": null}
nlprog_det-setting-0072148
<|start|><|user|> $2,000 is invested at 2% compounded yearly. What is it worth after 5 years?<|eot|> <|assistant|> The balance is $2,208.16.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$2,000 is invested at 2% compounded yearly. What is it worth after 5 years?" }, { "role": "assistant", "content": "The balance is $2,208.16." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "2208.16", "printed": "2208.16", "notation": null}
nlprog_det-setting-0072149
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> How many meters are in 0.8 kilometers?<|eot|> <|assistant|> ```python km = 0.8 meters = km * 1000 # 800.0 print(round(meters)) ``` stdout: 800 800 m.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "How many meters are in 0.8 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 0.8\nmeters = km * 1000 # 800.0\nprint(round(meters))\n```\nstdout:\n800\n\n800 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0072150
Counting only Monday through Friday, how many business days are there after May 6, 2018 through June 3, 2018? Computation in Python: ```python from datetime import date, timedelta start = date(2018, 5, 6) end = date(2018, 6, 3) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).wee...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0072151
Divide 102 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain? Let's compute it with Python. ```python total = 102 groups = 7 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` stdout = 14 each, 4 left over 14 each, 4 l...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "14 each, 4 left over", "printed": "14 each, 4 left over", "notation": null}
nlprog_det-setting-0072152
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> The paralegal logged 1.5 hours at a rate of $350. How much is billed?<|eot|> <|assistant|> ```python hours = 1.5 rate = 350 bill = hours * rate # 525.0 print(f"{bill:.2f}") ``` Result: 525.00 The bill is $525.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "The paralegal logged 1.5 hours at a rate of $350. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 1.5\nrate = 350\nbill = hours * rate # 525.0\nprint(f\"...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "525.00", "printed": "525.00", "notation": null}
nlprog_det-setting-0072153
Counting only Monday through Friday, how many business days are there after December 9, 2018 through December 23, 2018? Translated to Python: ```python from datetime import date, timedelta start = date(2018, 12, 9) end = date(2018, 12, 23) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0072154
<|start|><|system|> Tool definitions: {"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "get_weather", "description": "Get the...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"scri...
nlprog_det
setting
original
null
deterministic
[]
[]
408
{"gold": "110.00", "printed": "110.00", "notation": null}
nlprog_det-setting-0072155
<|start|><|user|> At $0.58 per mile, what is the reimbursement for 576 miles?<|eot|> <|assistant|> ```python miles = 576 rate = 0.58 reimbursement = miles * rate # 334.08 print(f"{reimbursement:.2f}") ``` (Program output: 334.08) The reimbursement is $334.08.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.58 per mile, what is the reimbursement for 576 miles?" }, { "role": "assistant", "content": "```python\nmiles = 576\nrate = 0.58\nreimbursement = miles * rate # 334.08\nprint(f\"{reimbursement:.2f}\")\n```\n(Program output: 334.08)\n\nThe reimbursement is $33...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "334.08", "printed": "334.08", "notation": null}
nlprog_det-setting-0072156
<|start|><|user|> What commission does Mei make on $14,907 in sales at 3%?<|eot|> <|assistant|> sales = 14907 rate = 3 / 100 # 0.03 commission = sales * rate # 447.21 print(f"{commission:.2f}") Output: 447.21 Mei earns $447.21.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Mei make on $14,907 in sales at 3%?" }, { "role": "assistant", "content": " sales = 14907\n rate = 3 / 100 # 0.03\n commission = sales * rate # 447.21\n print(f\"{commission:.2f}\")\nOutput: 447.21\n\nMei earns $447.21." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "447.21", "printed": "447.21", "notation": null}
nlprog_det-setting-0072157
<|start|><|user|> Attendance was 57 out of 80. Express it as a percent.<|eot|> <|assistant|> ```python present = 57 total = 80 percent = present / total * 100 # 71.25 print(round(percent, 1)) ``` (Printed: 71.2) 71.2% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 57 out of 80. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 57\ntotal = 80\npercent = present / total * 100 # 71.25\nprint(round(percent, 1))\n```\n(Printed: 71.2)\n\n71.2% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "71.2", "printed": "71.2", "notation": null}
nlprog_det-setting-0072158
<|start|><|user|> 77 of 100 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 77 total = 100 percent = present / total * 100 # 77.0 print(round(percent, 1)) ``` # execution result: 77.0 Attendance was 77.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "77 of 100 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 77\ntotal = 100\npercent = present / total * 100 # 77.0\nprint(round(percent, 1))\n```\n# execution result: 77.0\n\nAttendance was 77.0%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "77.0", "printed": "77.0", "notation": null}
nlprog_det-setting-0072159
Meals are $74 per day and lodging $110 per night. What is the allowance for 7 days and 6 nights? We can compute it in Python. days = 7 meal_rate = 74 lodging_rate = 110 nights = days - 1 # 6 total = days * meal_rate + nights * lodging_rate # 1178 print(total) Running this gives 1178. That co...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1178", "printed": "1178", "notation": null}
nlprog_det-setting-0072160
<|start|><|user|> Fiona earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 42-hour week?<|eot|> <|assistant|> ```python rate = 22.4 hours = 42 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 67.19999999999999 pay = regular + overtime # 963.2 print(f"{pay:.2f}") ``` (...
chat
[ { "role": "user", "content": "Fiona earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 42-hour week?" }, { "role": "assistant", "content": "```python\nrate = 22.4\nhours = 42\nregular = 40 * rate # 896.0\novertime = (hours - 40) * rate * 1.5 # 67.19999999999999\n...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "963.20", "printed": "963.20", "notation": null}
nlprog_det-setting-0072161
Walls total 1167 sq ft and each can covers 350 sq ft. How many cans should be bought? The computation: import math area = 1167 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) The interpreter prints 4. Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0072162
<|start|><|user|> What percentage of $4,000 is $3,100?<|eot|> <|assistant|> ```python budget = 4000 spent = 3100 percent = spent / budget * 100 # 77.5 print(round(percent, 1)) ``` Execution prints: 77.5 That is 77.5% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $4,000 is $3,100?" }, { "role": "assistant", "content": "```python\nbudget = 4000\nspent = 3100\npercent = spent / budget * 100 # 77.5\nprint(round(percent, 1))\n```\nExecution prints: 77.5\n\nThat is 77.5% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "77.5", "printed": "77.5", "notation": null}
nlprog_det-setting-0072163
At $0.62 per mile, what is the reimbursement for 35 miles? Here's the code. ```python miles = 35 rate = 0.62 reimbursement = miles * rate print(f"{reimbursement:.2f}") ``` The interpreter prints: 21.70 The reimbursement is $21.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "21.70", "printed": "21.70", "notation": null}
nlprog_det-setting-0072164
<|start|><|system|> You have access to these functions: [{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "business_days", "...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
312
{"gold": "1180", "printed": "1180", "notation": null}
nlprog_det-setting-0072165
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> A 130-mile drive at a steady 65 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 130 speed = 65 minutes = distance / speed * 60 # 120.0 print(round(minutes)) ``` stdout: 120 The trip takes 120 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "A 130-mile drive at a steady 65 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 130\nspeed = 65\nminutes = distance / speed * 60 # 120.0\nprint(ro...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0072166
Copies cost $5 plus $0.50 for each page beyond 20. How much for 17 pages? Written as code: ```python pages = 17 base = 5 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 5.0 print(f"{cost:.2f}") ``` Printed result — 5.00 The total is $5.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "5.00", "printed": "5.00", "notation": null}
nlprog_det-setting-0072167
Notice was given on February 25, 2018. The notice period is 21 days. When does it run out? In code: ```python from datetime import date, timedelta start = date(2018, 2, 25) end = start + timedelta(days=21) print(end.isoformat()) ``` Shell output — 2018-03-18 That date is March 18, 2018.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2018-03-18", "printed": "2018-03-18", "notation": null}
nlprog_det-setting-0072169
<|start|><|user|> A trial runs from August 1, 2023 to August 24, 2023, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2023, 8, 1) # datetime.date(2023, 8, 1) last = date(2023, 8, 24) # datetime.date(2023, 8, 24) days = (last - first).days + 1 ...
chat
[ { "role": "user", "content": "A trial runs from August 1, 2023 to August 24, 2023, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2023, 8, 1) # datetime.date(2023, 8, 1)\nlast = date(2023, 8, 24) # d...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0072170
<|start|><|user|> Buying 6 notebooks at $11 each, 2 binders at $20 each, 3 notebooks at $11 each, 6 mugs at $11 each, someone hands over $250. What change comes back?<|eot|> <|assistant|> ```python items = [(6, 11), (2, 20), (3, 11), (6, 11)] total = sum(q * p for q, p in items) # 205 paid = 250 change = paid - total ...
chat
[ { "role": "user", "content": "Buying 6 notebooks at $11 each, 2 binders at $20 each, 3 notebooks at $11 each, 6 mugs at $11 each, someone hands over $250. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(6, 11), (2, 20), (3, 11), (6, 11)]\ntotal = sum(q * p for...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0072171
<|start|><|user|> Papers were served by mail on June 16, 2027. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> The response is due on July 19, 2027.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Papers were served by mail on June 16, 2027. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "The response is due on July 19, 2027." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "2027-07-19", "printed": "2027-07-19", "notation": null}
nlprog_det-setting-0072172
<|start|><|user|> A lease runs for 24 months at $1,640 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> monthly_rent = 1640 months = 24 total = monthly_rent * months print(total) Printed = 39360 The rent over the term is $39,360.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 24 months at $1,640 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": " monthly_rent = 1640\n months = 24\n total = monthly_rent * months\n print(total)\nPrinted = 39360\n\nThe rent over the term...
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "39360", "printed": "39360", "notation": null}
nlprog_det-setting-0072173
<|start|><|user|> A trial runs from January 23, 2019 to February 16, 2019, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2019, 1, 23) # datetime.date(2019, 1, 23) last = date(2019, 2, 16) # datetime.date(2019, 2, 16) days = (last - first).day...
chat
[ { "role": "user", "content": "A trial runs from January 23, 2019 to February 16, 2019, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2019, 1, 23) # datetime.date(2019, 1, 23)\nlast = date(2019, 2, 16...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0072174
<|start|><|user|> 4 books come back 4 days late, at $0.25 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.25 days_late = 4 books = 4 fine = per_day * days_late * books # 4.0 print(f"{fine:.2f}") ``` Executed, it shows 4.00. The fine is $4.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 books come back 4 days late, at $0.25 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.25\ndays_late = 4\nbooks = 4\nfine = per_day * days_late * books # 4.0\nprint(f\"{fine:.2f}\")\n```\nExecuted, it shows 4.00.\n\nThe ...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "4.00", "printed": "4.00", "notation": null}