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-0065123
A lease runs for 12 months at $1,640 per month. How much rent is paid over the whole term? Translated to Python: ```python monthly_rent = 1640 months = 12 total = monthly_rent * months # 19680 print(total) ``` # result: 19680 In total, $19,680 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "19680", "printed": "19680", "notation": null}
nlprog_det-setting-0065124
<|start|><|user|> Convert 46.3 km to meters.<|eot|> <|assistant|> km = 46.3 meters = km * 1000 print(round(meters)) Program output: 46300 That is 46,300 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 46.3 km to meters." }, { "role": "assistant", "content": " km = 46.3\n meters = km * 1000\n print(round(meters))\nProgram output: 46300\n\nThat is 46,300 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
63
{"gold": "46300", "printed": "46300", "notation": null}
nlprog_det-setting-0065126
6 friends split a $84 bill plus a 20% tip evenly. How much does each pay? Python version: ```python bill = 84 tip_rate = 20 / 100 # 0.2 people = 6 each = bill * (1 + tip_rate) / people # 16.8 print(f"{each:.2f}") ``` Executed, it shows: 16.80 Each person pays $16.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "16.80", "printed": "16.80", "notation": null}
nlprog_det-setting-0065127
A 13 lb package ships at $10 base plus $1.20/lb. What is the charge? We write it as a program: ```python base = 10 per_pound = 1.2 weight = 13 cost = base + per_pound * weight # 25.6 print(f"{cost:.2f}") ``` Python prints: 25.60 The charge is $25.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "25.60", "printed": "25.60", "notation": null}
nlprog_det-setting-0065128
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> Hana earns a 5% commission on $34,037 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 34037 rate = 5 / 100 # 0.05 commission = sales * rate # 1701.8500000000001 print(f"{commission:.2f}") ``` Run result = 1701.85 The commission...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "Hana earns a 5% commission on $34,037 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 34037\nrate = 5 / 100 # 0.05\ncommission = sales * rate #...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1701.85", "printed": "1701.85", "notation": null}
nlprog_det-setting-0065129
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> 70 copies of a 8-page packet are printed at $0.15 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 8 copies = 70 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 84.0 print(f"{cost:.2f}") ``` It prints 84.0...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "70 copies of a 8-page packet are printed at $0.15 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 8\ncopies = 70\ncost_per_page = 0.1...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "84.00", "printed": "84.00", "notation": null}
nlprog_det-setting-0065130
<|start|><|user|> A trial runs from August 12, 2018 to August 30, 2018, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2018, 8, 12) # datetime.date(2018, 8, 12) last = date(2018, 8, 30) # datetime.date(2018, 8, 30) days = (last - first).days +...
chat
[ { "role": "user", "content": "A trial runs from August 12, 2018 to August 30, 2018, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2018, 8, 12) # datetime.date(2018, 8, 12)\nlast = date(2018, 8, 30) ...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0065131
A meal costs $17.33. How much is a 10% tip? We can compute it in Python. ```python bill = 17.33 tip_rate = 10 / 100 tip = bill * tip_rate print(f"{tip:.2f}") ``` stdout: 1.73 Leave $1.73.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1.73", "printed": "1.73", "notation": null}
nlprog_det-setting-0065132
With $36,000 in costs and $37,000 in revenue, what percent of revenue is profit? Round to one decimal. As Python: ```python revenue = 37000 costs = 36000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 2.7027027027027026 print(round(margin, 1)) ``` It outputs 2.7. The margin is 2.7%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "2.7", "printed": "2.7", "notation": null}
nlprog_det-setting-0065133
Divide 69 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain? The answer: 11 each, 3 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "11 each, 3 left over", "printed": "11 each, 3 left over", "notation": null}
nlprog_det-setting-0065134
A 5-day trip pays $64 a day for meals and $140 a night for lodging (4 nights). What is the total allowance? The allowance is $880.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "880", "printed": "880", "notation": null}
nlprog_det-setting-0065135
Each of Wanjiru's bike rides burns 200 calories. How many calories over 6 bike rides? Python version: ```python per_session = 200 sessions = 6 total = per_session * sessions print(total) ``` The program prints 1200. That burns 1200 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0065136
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> With 40% off, what does a $80 kettle cost?<|eot|> <|assistant|> ```python price = 80 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 48.0 print(f"{sale_price:.2f}") ``` Output of the run: 48.00 The sale price is $48.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "With 40% off, what does a $80 kettle cost?" }, { "role": "assistant", "content": "```python\nprice = 80\ndiscount = 40 / 100 # 0.4\nsale_price = price * (1 - discount) # 48.0\nprint(f\"{s...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0065137
10 boxes hold 25 flash drives each. After 16 are handed out, how many are left? Computing it: ```python boxes = 10 per_box = 25 given_away = 16 left = boxes * per_box - given_away print(left) ``` Python prints 234. That leaves 234 flash drives.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "234", "printed": "234", "notation": null}
nlprog_det-setting-0065138
A party has 28 days to respond to a motion served on December 19, 2021, with 3 days added because service was by mail. When is the response due? Written as code: ```python from datetime import date, timedelta served = date(2021, 12, 19) # datetime.date(2021, 12, 19) response_days = 28 mail_days = 3 due = served + tim...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
177
{"gold": "2022-01-19", "printed": "2022-01-19", "notation": null}
nlprog_det-setting-0065140
<|start|><|user|> A $12,000 grant pays $6,000 up front and the rest in 3 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 12000 up_front = 6000 installments = 3 each = (grant - up_front) / installments # 2000.0 print(f"{each:.2f}") ``` The run gives 2000.00, as expected. $2,00...
chat
[ { "role": "user", "content": "A $12,000 grant pays $6,000 up front and the rest in 3 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 12000\nup_front = 6000\ninstallments = 3\neach = (grant - up_front) / installments # 2000.0\nprint(f\...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0065141
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 4 months?<|eot|> <|assistant|> ```python balance = 7500 monthly_rate = 1.5 / 100 # 0.015 months = 4 interest = balance * monthly_rate * months # 450.0 print(f"{in...
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 4 months?" }, { "role": "assistant", "content": "```python\nbalance = 7500\nmonthly_rate = 1.5 / 1...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0065142
<|start|><|user|> Fixed costs are $6,000. Each unit sells for $25 and costs $20 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 6000 price = 25 variable = 20 units = math.ceil(fixed / (price - variable)) # 1200 print(units) ``` The printout reads 1200. Break-even...
chat
[ { "role": "user", "content": "Fixed costs are $6,000. Each unit sells for $25 and costs $20 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 6000\nprice = 25\nvariable = 20\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0065143
If a 40-minute appointment begins at 2:45 PM, what time does it finish? A few lines of Python do it: ```python start = 14 * 60 + 45 end = start + 40 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Running it prints: 3:25 PM It ends at 3:25 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "3:25 PM", "printed": "3:25 PM", "notation": null}
nlprog_det-setting-0065144
1 books come back 29 days late, at $0.20 a day each. What is the fine? As Python: ```python per_day = 0.2 days_late = 29 books = 1 fine = per_day * days_late * books # 5.800000000000001 print(f"{fine:.2f}") ``` Out = 5.80 $5.80 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "5.80", "printed": "5.80", "notation": null}
nlprog_det-setting-0065145
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> A 15 × 13 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 15 width = 13 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 49 print(tiles) ``` # printed result: 49 It take...
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "A 15 × 13 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 15\nwidth = 13\ntile = 2\ntiles = math....
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "49", "printed": "49", "notation": null}
nlprog_det-setting-0065146
<|start|><|user|> What day of the week is April 8, 2015?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2015, 4, 8) # datetime.date(2015, 4, 8) print(hearing.strftime("%A")) ``` Run output — Wednesday It is a Wednesday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is April 8, 2015?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2015, 4, 8) # datetime.date(2015, 4, 8)\nprint(hearing.strftime(\"%A\"))\n```\nRun output — Wednesday\n\nIt is a Wednesday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0065147
<|start|><|system|> Tools you may use: [{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "translate", "description": "Translate...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sourc...
nlprog_det
setting
original
null
deterministic
[]
[]
283
{"gold": "64400", "printed": "64400", "notation": null}
nlprog_det-setting-0065148
<|start|><|user|> Starting with 578 ink cartridges and using 40 per day, how many remain after 11 days?<|eot|> <|assistant|> ```python stock = 578 per_day = 40 days = 11 left = stock - per_day * days # 138 print(left) ``` On running, it outputs 138. 138 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 578 ink cartridges and using 40 per day, how many remain after 11 days?" }, { "role": "assistant", "content": "```python\nstock = 578\nper_day = 40\ndays = 11\nleft = stock - per_day * days # 138\nprint(left)\n```\nOn running, it outputs 138.\n\n138 r...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "138", "printed": "138", "notation": null}
nlprog_det-setting-0065149
At $0.70 per mile, what is the reimbursement for 345 miles? A few lines of Python do it: ```python miles = 345 rate = 0.7 reimbursement = miles * rate # 241.49999999999997 print(f"{reimbursement:.2f}") ``` (Run result: 241.50) The reimbursement is $241.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "241.50", "printed": "241.50", "notation": null}
nlprog_det-setting-0065150
Express 51 hours in days and hours. Let the code do the arithmetic: ```python hours = 51 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Interpreter output: 2 days and 3 hours 51 hours is 2 days and 3 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "2 days and 3 hours", "printed": "2 days and 3 hours", "notation": null}
nlprog_det-setting-0065151
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> A library charges $0.50 per book per day late. What is the fine for 2 books that are 25 days late?<|eot|> <|assistant|> ```python per_day = 0.5 days_late = 25 books = 2 fine = per_day * days_late * books # 25.0 print(f"{fine:.2f}") ``` This print...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "A library charges $0.50 per book per day late. What is the fine for 2 books that are 25 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.5\ndays_late = 25\nb...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "25.00", "printed": "25.00", "notation": null}
nlprog_det-setting-0065152
A car gets 36 miles per gallon. Gas is $3.19 a gallon. What does fuel cost for a 120-mile trip? Fuel costs $10.63.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "10.63", "printed": "10.63", "notation": null}
nlprog_det-setting-0065153
<|start|><|user|> Attendance was 129 out of 200. Express it as a percent.<|eot|> <|assistant|> ```python present = 129 total = 200 percent = present / total * 100 # 64.5 print(round(percent, 1)) ``` Python prints 64.5, as expected. Attendance was 64.5%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 129 out of 200. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 129\ntotal = 200\npercent = present / total * 100 # 64.5\nprint(round(percent, 1))\n```\nPython prints 64.5, as expected.\n\nAttendance was 64.5%." ...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "64.5", "printed": "64.5", "notation": null}
nlprog_det-setting-0065154
Jonas earns a 3% commission on $85,909 of sales. What is the commission? Python does the arithmetic: ```python sales = 85909 rate = 3 / 100 # 0.03 commission = sales * rate # 2577.27 print(f"{commission:.2f}") ``` When run, it prints: 2577.27 The commission is $2,577.27.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "2577.27", "printed": "2577.27", "notation": null}
nlprog_det-setting-0065155
How many of 131 votes make 67% (round up)? Python does the arithmetic: ```python import math voters = 131 needed = math.ceil(voters * 67 / 100) # 88 print(needed) ``` stdout = 88 88 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "88", "printed": "88", "notation": null}
nlprog_det-setting-0065156
<|start|><|user|> Counting the first and last day, how many days are there from February 27, 2027 through March 6, 2027?<|eot|> <|assistant|> That is 8 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from February 27, 2027 through March 6, 2027?" }, { "role": "assistant", "content": "That is 8 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0065157
Each of Beatriz's swims burns 350 calories. How many calories over 5 swims? 1750 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0065158
How long, in days, is it from February 8, 2027 until December 19, 2027? Python makes this quick: ```python from datetime import date first = date(2027, 2, 8) # datetime.date(2027, 2, 8) second = date(2027, 12, 19) # datetime.date(2027, 12, 19) print((second - first).days) ``` Out: 314 It is 314 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "314", "printed": "314", "notation": null}
nlprog_det-setting-0065159
Starting from $25,000, the team spends $1,096, $3,260, $1,397, $2,937. What remains? As a program: ```python budget = 25000 expenses = [1096, 3260, 1397, 2937] left = budget - sum(expenses) # 16310 print(left) ``` Printed: 16310 $16,310 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "16310", "printed": "16310", "notation": null}
nlprog_det-setting-0065160
Someone born April 18, 1976 turns how old by January 21, 2030? Give the age in whole years. The age is 53 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0065161
<|start|><|user|> Walls total 1150 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 1150 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) ``` It prints 4, as expected. 4 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 1150 sq ft and each can covers 350 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1150\ncoverage = 350\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nIt prints 4, as expected.\n\n4...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0065162
A measure needs at least 60% of 50 votes. How many votes is that, rounded up? ```python import math voters = 50 needed = math.ceil(voters * 60 / 100) # 30 print(needed) ``` Execution result — 30 30 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0065164
At an exchange rate of 0.74 CAD per USD, how many CAD is 2,483 USD? A Python solution: ```python amount = 2483 rate = 0.74 converted = amount * rate # 1837.42 print(f"{converted:.2f}") ``` Run output — 1837.42 It converts to 1,837.42 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1837.42", "printed": "1837.42", "notation": null}
nlprog_det-setting-0065165
<|start|><|user|> A clerk's office charges $50 for each filing. Yusuf submits 2 filings. What is the total fee?<|eot|> <|assistant|> fee = 50 filings = 2 total = fee * filings print(total) The program prints: 100 $100 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $50 for each filing. Yusuf submits 2 filings. What is the total fee?" }, { "role": "assistant", "content": " fee = 50\n filings = 2\n total = fee * filings\n print(total)\nThe program prints: 100\n\n$100 in filing fees." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0065166
<|start|><|user|> A shift starts at 9:15 AM and lasts 150 minutes. When does it end?<|eot|> <|assistant|> ```python start = 9 * 60 + 15 end = start + 150 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Interpreter output: 11:45 AM It ends at 11:45 AM.<|eot|...
chat
[ { "role": "user", "content": "A shift starts at 9:15 AM and lasts 150 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 9 * 60 + 15\nend = start + 150\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "11:45 AM", "printed": "11:45 AM", "notation": null}
nlprog_det-setting-0065167
<|start|><|user|> Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?<|eot|> <|assistant|> ```python rate = 20.0 hours = 52 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 360.0 pay = regular + overtime # 1160.0 print(f"{pay:.2f}") ``` (Program output: ...
chat
[ { "role": "user", "content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?" }, { "role": "assistant", "content": "```python\nrate = 20.0\nhours = 52\nregular = 40 * rate # 800.0\novertime = (hours - 40) * rate * 1.5 # 360.0\npay = regular + o...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "1160.00", "printed": "1160.00", "notation": null}
nlprog_det-setting-0065168
<|start|><|user|> A $60,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment?<|eot|> <|assistant|> Each installment is $14,500.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $60,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment?" }, { "role": "assistant", "content": "Each installment is $14,500.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "14500.00", "printed": "14500.00", "notation": null}
nlprog_det-setting-0065169
The meal allowance is $64 per day. What is it for 6 days? As a program: ```python days = 6 meal_rate = 64 total = days * meal_rate # 384 print(total) ``` Running this gives 384. That comes to $384.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "384", "printed": "384", "notation": null}
nlprog_det-setting-0065170
An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 3 months? The computation: ```python balance = 2500 monthly_rate = 1.5 / 100 # 0.015 months = 3 interest = balance * monthly_rate * months # 112.5 print(f"{interest:.2f}") ``` Output = 112.50 $112.50 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "112.50", "printed": "112.50", "notation": null}
nlprog_det-setting-0065171
<|start|><|user|> At $19.58 an hour, what does 16 hours of work pay?<|eot|> <|assistant|> ```python rate = 19.58 hours = 16 earnings = rate * hours # 313.28 print(f"{earnings:.2f}") ``` Out = 313.28 That earns $313.28.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $19.58 an hour, what does 16 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 19.58\nhours = 16\nearnings = rate * hours # 313.28\nprint(f\"{earnings:.2f}\")\n```\nOut = 313.28\n\nThat earns $313.28." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "313.28", "printed": "313.28", "notation": null}
nlprog_det-setting-0065172
A party has 28 days to respond to a motion served on September 26, 2024, with 3 days added because service was by mail. When is the response due? Coded up: ```python from datetime import date, timedelta served = date(2024, 9, 26) # datetime.date(2024, 9, 26) response_days = 28 mail_days = 3 due = served + timedelta(d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
175
{"gold": "2024-10-27", "printed": "2024-10-27", "notation": null}
nlprog_det-setting-0065173
<|start|><|user|> Divide 230 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 230 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Out = 38 each, 2 left over The ans...
chat
[ { "role": "user", "content": "Divide 230 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 230\ngroups = 6\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "38 each, 2 left over", "printed": "38 each, 2 left over", "notation": null}
nlprog_det-setting-0065174
<|start|><|system|> Available functions (JSON Schema): [{"name": "compute", "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"]}}, {"name": "define_wor...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"compute\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"...
nlprog_det
setting
original
null
deterministic
[]
[]
351
{"gold": "99.40", "printed": "99.40", "notation": null}
nlprog_det-setting-0065175
Convert 30 °C to Fahrenheit. ```python celsius = 30 fahrenheit = celsius * 9 / 5 + 32 # 86.0 print(round(fahrenheit)) ``` Console output — 86 That is 86 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0065176
Someone works 24 hours at $27.32 per hour. What are the earnings? ```python rate = 27.32 hours = 24 earnings = rate * hours # 655.6800000000001 print(f"{earnings:.2f}") ``` (Run result: 655.68) The pay is $655.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "655.68", "printed": "655.68", "notation": null}
nlprog_det-setting-0065177
A $2,500 security deposit has deductions of $150, $45 and $120. How much is refunded? The Python version: ```python deposit = 2500 deductions = [150, 45, 120] refund = deposit - sum(deductions) # 2185 print(refund) ``` This prints 2185. $2,185 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "2185", "printed": "2185", "notation": null}
nlprog_det-setting-0065178
<|start|><|system|> You may call the tools below. [{"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Attendance was 42 ...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
202
{"gold": "84.0", "printed": "84.0", "notation": null}
nlprog_det-setting-0065179
<|start|><|system|> Available functions (JSON Schema): [{"name": "python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "translate", "desc...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
295
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0065180
<|start|><|user|> A meal costs $85.49. How much is a 10% tip?<|eot|> <|assistant|> Leave $8.55.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $85.49. How much is a 10% tip?" }, { "role": "assistant", "content": "Leave $8.55." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "8.55", "printed": "8.55", "notation": null}
nlprog_det-setting-0065181
<|start|><|user|> A recipe for 2 people uses 200 grams of sugar. How many grams are needed for 4 people?<|eot|> <|assistant|> ```python grams = 200 serves = 2 needed_for = 4 scaled = grams * needed_for // serves # 400 print(scaled) ``` The run gives 400, as expected. Use 400 g of sugar.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 2 people uses 200 grams of sugar. How many grams are needed for 4 people?" }, { "role": "assistant", "content": "```python\ngrams = 200\nserves = 2\nneeded_for = 4\nscaled = grams * needed_for // serves # 400\nprint(scaled)\n```\nThe run gives 400, as ...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0065182
<|start|><|system|> Tools (call with JSON): {"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> Monthly: $19. Annual: $192. What i...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"code_runner\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0065183
A trial runs from September 14, 2021 to October 5, 2021, counting both days. How many calendar days is that? We write it as a program: ```python from datetime import date first = date(2021, 9, 14) # datetime.date(2021, 9, 14) last = date(2021, 10, 5) # datetime.date(2021, 10, 5) days = (last - first).days + 1 # 22 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0065184
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "sandbox_python", "descr...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
417
{"gold": "3666.67", "printed": "3666.67", "notation": null}
nlprog_det-setting-0065185
30 badges cost $7 apiece. With 7% tax added, what is the total? Programmatically: quantity = 30 unit_price = 7 subtotal = quantity * unit_price # 210 total = subtotal * (1 + 7 / 100) # 224.70000000000002 print(f"{total:.2f}") (Printed result: 224.70) The invoice total is $224.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "224.70", "printed": "224.70", "notation": null}
nlprog_det-setting-0065186
A hall has 7 rows of 24 seats, and 15 seats are empty. How many people are seated? Python: ```python rows = 7 per_row = 24 empty = 15 seated = rows * per_row - empty print(seated) ``` Python prints: 153 153 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "153", "printed": "153", "notation": null}
nlprog_det-setting-0065187
How much sales tax is charged on a $341.08 purchase at 4%? price = 341.08 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 13.6432 print(f"{tax:.2f}") (Console output: 13.64) The tax is $13.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "13.64", "printed": "13.64", "notation": null}
nlprog_det-setting-0065188
How many minutes pass from 10:39 AM to 1:32 PM on the same day? Python does the arithmetic: ```python start = 10 * 60 + 39 # 639 end = 13 * 60 + 32 # 812 print(end - start) ``` The interpreter prints 173. It is 173 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "173", "printed": "173", "notation": null}
nlprog_det-setting-0065190
Each of Farah's swims burns 250 calories. How many calories over 5 swims? Python version: per_session = 250 sessions = 5 total = per_session * sessions # 1250 print(total) Execution result: 1250 1250 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "1250", "printed": "1250", "notation": null}
nlprog_det-setting-0065191
<|start|><|user|> 33 of 50 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 33 total = 50 percent = present / total * 100 # 66.0 print(round(percent, 1)) ``` This prints 66.0, as expected. Attendance was 66.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "33 of 50 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 33\ntotal = 50\npercent = present / total * 100 # 66.0\nprint(round(percent, 1))\n```\nThis prints 66.0, as expected.\n\nAttendance was 66.0%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "66.0", "printed": "66.0", "notation": null}
nlprog_det-setting-0065193
A storeroom has 1742 tape rolls. The office uses 10 a day. How many are left after 5 days? Python, step by step: ```python stock = 1742 per_day = 10 days = 5 left = stock - per_day * days # 1692 print(left) ``` Execution prints 1692. 1692 tape rolls are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1692", "printed": "1692", "notation": null}
nlprog_det-setting-0065194
<|start|><|user|> A measure needs at least 60% of 181 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 181 needed = math.ceil(voters * 60 / 100) # 109 print(needed) ``` Run output — 109 109 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 60% of 181 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 181\nneeded = math.ceil(voters * 60 / 100) # 109\nprint(needed)\n```\nRun output — 109\n\n109 votes are needed." ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "109", "printed": "109", "notation": null}
nlprog_det-setting-0065196
A court charges $15 per request plus $0.25 per page after the first 10 pages. What does a 8-page copy cost? The computation: ```python pages = 8 base = 15 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 15.0 print(f"{cost:.2f}") ``` On running, it outputs: 15.00 The copy costs $...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0065197
<|start|><|user|> What percentage of $5,000 is $1,500?<|eot|> <|assistant|> 30.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $5,000 is $1,500?" }, { "role": "assistant", "content": "30.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "30.0", "printed": "30.0", "notation": null}
nlprog_det-setting-0065198
<|start|><|system|> Answer in plain English.<|eot|> <|user|> At an exchange rate of 1.12 CAD per USD, how many CAD is 4,670 USD?<|eot|> <|assistant|> ```python amount = 4670 rate = 1.12 converted = amount * rate # 5230.400000000001 print(f"{converted:.2f}") ``` It prints 5230.40, as expected. That is 5,230.40 CAD.<|e...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "At an exchange rate of 1.12 CAD per USD, how many CAD is 4,670 USD?" }, { "role": "assistant", "content": "```python\namount = 4670\nrate = 1.12\nconverted = amount * rate # 5230.400000000001\...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "5230.40", "printed": "5230.40", "notation": null}
nlprog_det-setting-0065199
<|start|><|user|> With 28 rows of 16 chairs and 35 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 28 per_row = 16 empty = 35 seated = rows * per_row - empty # 413 print(seated) ``` When run, it prints: 413 413 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 28 rows of 16 chairs and 35 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 28\nper_row = 16\nempty = 35\nseated = rows * per_row - empty # 413\nprint(seated)\n```\nWhen run, it prints: 413\n\n413 seats are tak...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "413", "printed": "413", "notation": null}
nlprog_det-setting-0065200
<|start|><|user|> The paralegal logged 4 hours at a rate of $300. How much is billed?<|eot|> <|assistant|> ```python hours = 4 rate = 300 bill = hours * rate # 1200 print(f"{bill:.2f}") ``` The program prints: 1200.00 The bill is $1,200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The paralegal logged 4 hours at a rate of $300. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 4\nrate = 300\nbill = hours * rate # 1200\nprint(f\"{bill:.2f}\")\n```\nThe program prints: 1200.00\n\nThe bill is $1,200.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0065201
What is a 20% tip on a $79.20 bill? ```python bill = 79.2 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 15.840000000000002 print(f"{tip:.2f}") ``` When run, it prints 15.84, as expected. Leave $15.84.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "15.84", "printed": "15.84", "notation": null}
nlprog_det-setting-0065202
A bicycle helmet costs $60. It is 30% off. What is the sale price? Coded up: ```python price = 60 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 42.0 print(f"{sale_price:.2f}") ``` Result — 42.00 It costs $42.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "42.00", "printed": "42.00", "notation": null}
nlprog_det-setting-0065203
Goods bought on February 1, 2028 carry a 24-month warranty. When does it expire? Set it up in Python: ```python from datetime import date start = date(2028, 2, 1) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "2030-02-01", "printed": "2030-02-01", "notation": null}
nlprog_det-setting-0065204
Meals are $59 per day and lodging $110 per night. What is the allowance for 7 days and 6 nights? The program: ```python days = 7 meal_rate = 59 lodging_rate = 110 nights = days - 1 # 6 total = days * meal_rate + nights * lodging_rate # 1073 print(total) ``` When run, it prints 1073, as expected. The allowance is $1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1073", "printed": "1073", "notation": null}
nlprog_det-setting-0065205
With 15% off, what does a $120 desk lamp cost? Program: price = 120 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 102.0 print(f"{sale_price:.2f}") (Printed result: 102.00) It costs $102.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "102.00", "printed": "102.00", "notation": null}
nlprog_det-setting-0065206
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> A recipe for 2 people uses 100 grams of pasta. How many grams are needed for 4 people?<|eot|> <|assistant|> ```python grams = 100 serves = 2 needed_for = 4 scaled = grams * needed_for // serves # 200 print(scaled) ``` # output: 200 200 grams ...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "A recipe for 2 people uses 100 grams of pasta. How many grams are needed for 4 people?" }, { "role": "assistant", "content": "```python\ngrams = 100\nserves = 2\nneeded_for = 4\n...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0065207
Straight-line depreciation: cost $30,000, salvage $0, 5 years. How much per year? Coded up: ```python cost = 30000 salvage = 0 years = 5 per_year = (cost - salvage) / years # 6000.0 print(f"{per_year:.2f}") ``` Output of the run — 6000.00 $6,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0065208
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> A $1,500 security deposit has deductions of $120, $120 and $75. How much is refunded?<|eot|> <|assistant|> ```python deposit = 1500 deductions = [120, 120, 75] refund = deposit - sum(deductions) print(refund) ``` # run result: 1185 $1,185 is returned.<|e...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "A $1,500 security deposit has deductions of $120, $120 and $75. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 1500\ndeductions = [120, 120, 75]\nrefund =...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1185", "printed": "1185", "notation": null}
nlprog_det-setting-0065209
<|start|><|user|> What day of the week is April 28, 1991?<|eot|> <|assistant|> ```python from datetime import date hearing = date(1991, 4, 28) # datetime.date(1991, 4, 28) print(hearing.strftime("%A")) ``` Execution result — Sunday It is a Sunday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is April 28, 1991?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(1991, 4, 28) # datetime.date(1991, 4, 28)\nprint(hearing.strftime(\"%A\"))\n```\nExecution result — Sunday\n\nIt is a Sunday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0065210
From 2004 to 2015, how many years is that? Here's the code. ```python start_year = 2004 end_year = 2015 print(end_year - start_year) ``` (Out: 11) 11 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
67
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0065211
<|start|><|user|> A 4 × 15 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 4 width = 15 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 15 print(tiles) ``` It prints: 15 15 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 4 × 15 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 4\nwidth = 15\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 15\nprint(tiles)\n```\nIt prints: 1...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0065212
<|start|><|system|> Functions: {"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> A client paid a $10,000 retainer. The ...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}...
nlprog_det
setting
original
null
deterministic
[]
[]
233
{"gold": "9700", "printed": "9700", "notation": null}
nlprog_det-setting-0065213
15 of 20 members attended. What percent attended? In code: ```python present = 15 total = 20 percent = present / total * 100 # 75.0 print(round(percent, 1)) ``` Output: 75.0 75.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "75.0", "printed": "75.0", "notation": null}
nlprog_det-setting-0065215
Goods bought on January 12, 2020 carry a 36-month warranty. When does it expire? Here is the program. ```python from datetime import date start = date(2020, 1, 12) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ```...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2023-01-12", "printed": "2023-01-12", "notation": null}
nlprog_det-setting-0065216
<|start|><|user|> From 1997 to 2006, how many years is that?<|eot|> <|assistant|> ```python start_year = 1997 end_year = 2006 print(end_year - start_year) ``` stdout — 9 That is 9 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 1997 to 2006, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 1997\nend_year = 2006\nprint(end_year - start_year)\n```\nstdout — 9\n\nThat is 9 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
67
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0065217
Equal monthly payments repay $1,200 plus 5% simple yearly interest over 12 months. How large is a payment? Python makes this quick: ```python principal = 1200 annual_rate = 5 / 100 # 0.05 months = 12 interest = principal * annual_rate * months / 12 # 60.0 payment = (principal + interest) / months # 105.0 print(f"{p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "105.00", "printed": "105.00", "notation": null}
nlprog_det-setting-0065218
One can of paint covers 350 square feet. How many cans are needed for 688 square feet of wall? As Python: ```python import math area = 688 coverage = 350 cans = math.ceil(area / coverage) # 2 print(cans) ``` Printed: 2 2 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0065220
What percentage of $5,000 is $3,000? Let the code do the arithmetic: ```python budget = 5000 spent = 3000 percent = spent / budget * 100 # 60.0 print(round(percent, 1)) ``` stdout: 60.0 That is 60.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "60.0", "printed": "60.0", "notation": null}
nlprog_det-setting-0065221
An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 5 months? Python does the arithmetic: ```python balance = 7500 monthly_rate = 1 / 100 months = 5 interest = balance * monthly_rate * months print(f"{interest:.2f}") ``` Run output — 375.00 The interest is $375.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "375.00", "printed": "375.00", "notation": null}
nlprog_det-setting-0065222
Which is cheaper per unit: 6 for $6.80 (A) or 15 for $22.47 (B)? Python version: ```python pack_a = 6.8 / 6 # 1.1333333333333333 pack_b = 22.47 / 15 # 1.498 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Run output: A Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0065223
How much is a $79 daily meal allowance over 5 days? We write it as a program: days = 5 meal_rate = 79 total = days * meal_rate # 395 print(total) Out — 395 The allowance is $395.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
64
{"gold": "395", "printed": "395", "notation": null}
nlprog_det-setting-0065224
<|start|><|system|> You may call the tools below. [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"t...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"convert_units\", \"description\...
nlprog_det
setting
original
null
deterministic
[]
[]
397
{"gold": "87.5", "printed": "87.5", "notation": null}
nlprog_det-setting-0065225
How many 2-foot square tiles cover a 10 ft by 5 ft floor (round up)? A Python solution: ```python import math length = 10 width = 5 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 13 print(tiles) ``` It prints 13, as expected. It takes 13 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0065226
Convert 20 °C to Fahrenheit. Set it up in Python: ```python celsius = 20 fahrenheit = celsius * 9 / 5 + 32 # 68.0 print(round(fahrenheit)) ``` # stdout: 68 It equals 68 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0065227
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "defi...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source ...
nlprog_det
setting
original
null
deterministic
[]
[]
349
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0065228
An invoice lists 25 clipboards at $2 each, plus 6% sales tax. What is the invoice total? ```python quantity = 25 unit_price = 2 subtotal = quantity * unit_price # 50 total = subtotal * (1 + 6 / 100) # 53.0 print(f"{total:.2f}") ``` Shell output: 53.00 The total with tax is $53.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "53.00", "printed": "53.00", "notation": null}
nlprog_det-setting-0065229
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> A $60,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 60000 up_front = 3000 installments = 4 each = (grant - up_front) / installments # 14250.0 print(f"{each:.2f}...
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "A $60,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 60000\nup_front = 3000\n...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "14250.00", "printed": "14250.00", "notation": null}
nlprog_det-setting-0065230
A 36-month warranty starts on July 22, 2021. On what date does it end? Coded up: ```python from datetime import date start = date(2021, 7, 22) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` The script prints: 2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2024-07-22", "printed": "2024-07-22", "notation": null}