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-0057976
How much sales tax is charged on a $613.29 purchase at 9%? ```python price = 613.29 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 55.196099999999994 print(f"{tax:.2f}") ``` This prints 55.20, as expected. $55.20 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "55.20", "printed": "55.20", "notation": null}
nlprog_det-setting-0057977
A trial runs from June 21, 2028 to July 6, 2028, counting both days. How many calendar days is that? Coded up: ```python from datetime import date first = date(2028, 6, 21) # datetime.date(2028, 6, 21) last = date(2028, 7, 6) # datetime.date(2028, 7, 6) days = (last - first).days + 1 # 16 print(days) ``` Printed — ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0057978
<|start|><|user|> A customer buys 3 batteries at $4 each, 5 flash drives at $17 each, 3 hard drives at $27 each and pays with $200. How much change is due?<|eot|> <|assistant|> ```python items = [(3, 4), (5, 17), (3, 27)] total = sum(q * p for q, p in items) # 178 paid = 200 change = paid - total # 22 print(change) `...
chat
[ { "role": "user", "content": "A customer buys 3 batteries at $4 each, 5 flash drives at $17 each, 3 hard drives at $27 each and pays with $200. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(3, 4), (5, 17), (3, 27)]\ntotal = sum(q * p for q, p in items) # 17...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0057979
Someone born May 14, 1979 turns how old by January 3, 2025? Give the age in whole years. from datetime import date born = date(1979, 5, 14) # datetime.date(1979, 5, 14) on = date(2025, 1, 3) # datetime.date(2025, 1, 3) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 45 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0057980
Nadia's scores were 57, 86, 80, 79, 93, 54 and 97. What is the average score? Written as code: scores = [57, 86, 80, 79, 93, 54, 97] average = sum(scores) // len(scores) print(average) Console: 78 The average score is 78.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0057981
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> At a 8% tax rate, what is the tax on $555.77?<|eot|> <|assistant|> ```python price = 555.77 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 44.4616 print(f"{tax:.2f}") ``` Printed result: 44.46 $44.46 in tax.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "At a 8% tax rate, what is the tax on $555.77?" }, { "role": "assistant", "content": "```python\nprice = 555.77\ntax_rate = 8 / 100 # 0.08\ntax = price * tax_rate # 44.4616\nprint(...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "44.46", "printed": "44.46", "notation": null}
nlprog_det-setting-0057983
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}} {"name": "translate", "description": "Translate text into another la...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"tra...
nlprog_det
setting
original
null
deterministic
[]
[]
399
{"gold": "33.00", "printed": "33.00", "notation": null}
nlprog_det-setting-0057984
<|start|><|user|> With 40% off, what does a $250 backpack cost?<|eot|> <|assistant|> ```python price = 250 discount = 40 / 100 sale_price = price * (1 - discount) print(f"{sale_price:.2f}") ``` The run gives 150.00, as expected. It costs $150.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 40% off, what does a $250 backpack cost?" }, { "role": "assistant", "content": "```python\nprice = 250\ndiscount = 40 / 100\nsale_price = price * (1 - discount)\nprint(f\"{sale_price:.2f}\")\n```\nThe run gives 150.00, as expected.\n\nIt costs $150.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0057985
<|start|><|user|> At $23.26 an hour, what does 38 hours of work pay?<|eot|> <|assistant|> ```python rate = 23.26 hours = 38 earnings = rate * hours # 883.8800000000001 print(f"{earnings:.2f}") ``` The program prints: 883.88 That earns $883.88.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $23.26 an hour, what does 38 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 23.26\nhours = 38\nearnings = rate * hours # 883.8800000000001\nprint(f\"{earnings:.2f}\")\n```\nThe program prints: 883.88\n\nThat earns $883.88." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "883.88", "printed": "883.88", "notation": null}
nlprog_det-setting-0057986
Diego and Yusuf share $2,282 in the ratio 3:4. How much does Diego get? Python version: ```python total = 2282 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) print(share_a) ``` Output: 978 Diego's share is $978.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "978", "printed": "978", "notation": null}
nlprog_det-setting-0057987
<|start|><|user|> A lease runs for 36 months at $1,200 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 1200 months = 36 total = monthly_rent * months # 43200 print(total) ``` Executed, it shows 43200. In total, $43,200 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 36 months at $1,200 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 1200\nmonths = 36\ntotal = monthly_rent * months # 43200\nprint(total)\n```\nExecuted, it shows 43200.\n\nIn ...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "43200", "printed": "43200", "notation": null}
nlprog_det-setting-0057988
Each of Reza's runs burns 400 calories. How many calories over 4 runs? The Python version: per_session = 400 sessions = 4 total = per_session * sessions # 1600 print(total) (Printed result: 1600) That burns 1600 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "1600", "printed": "1600", "notation": null}
nlprog_det-setting-0057989
<|start|><|system|> You may call the tools below. {"name": "calculator", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> Express 34...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"calculator\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
205
{"gold": "14 days and 5 hours", "printed": "14 days and 5 hours", "notation": null}
nlprog_det-setting-0057990
<|start|><|user|> Jamal and Joelle share $1,941 in the ratio 1:2. How much does Jamal get?<|eot|> <|assistant|> ```python total = 1941 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 647 print(share_a) ``` Result = 647 Jamal gets $647.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Jamal and Joelle share $1,941 in the ratio 1:2. How much does Jamal get?" }, { "role": "assistant", "content": "```python\ntotal = 1941\nparts_a = 1\nparts_b = 2\nshare_a = total * parts_a // (parts_a + parts_b) # 647\nprint(share_a)\n```\nResult = 647\n\nJamal get...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "647", "printed": "647", "notation": null}
nlprog_det-setting-0057991
<|start|><|user|> A 629-page report must be reviewed in 17 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 629 days = 17 per_day = pages // days # 37 print(per_day) ``` The interpreter prints 37. That is 37 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 629-page report must be reviewed in 17 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 629\ndays = 17\nper_day = pages // days # 37\nprint(per_day)\n```\nThe interpreter prints 37.\n\nThat is 37 pages per day....
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0057992
What percentage of $5,000 is $3,100? Python: ```python budget = 5000 spent = 3100 percent = spent / budget * 100 # 62.0 print(round(percent, 1)) ``` Python prints 62.0. That is 62.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "62.0", "printed": "62.0", "notation": null}
nlprog_det-setting-0057993
<|start|><|system|> Give the answer first.<|eot|> <|user|> Meals are $59 per day and lodging $175 per night. What is the allowance for 8 days and 7 nights?<|eot|> <|assistant|> ```python days = 8 meal_rate = 59 lodging_rate = 175 nights = days - 1 # 7 total = days * meal_rate + nights * lodging_rate # 1697 print(tota...
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "Meals are $59 per day and lodging $175 per night. What is the allowance for 8 days and 7 nights?" }, { "role": "assistant", "content": "```python\ndays = 8\nmeal_rate = 59\nlodging_rate = 175\nni...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "1697", "printed": "1697", "notation": null}
nlprog_det-setting-0057994
Someone born December 7, 1994 turns how old by May 7, 2030? Give the age in whole years. The age is 35 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0057995
<|start|><|user|> A clerk's office charges $50 for each filing. Rosa submits 2 filings. What is the total fee?<|eot|> <|assistant|> ```python fee = 50 filings = 2 total = fee * filings print(total) ``` (Run result: 100) The total fee is $100.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $50 for each filing. Rosa submits 2 filings. What is the total fee?" }, { "role": "assistant", "content": "```python\nfee = 50\nfilings = 2\ntotal = fee * filings\nprint(total)\n```\n(Run result: 100)\n\nThe total fee is $100." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0057996
A hall has 7 rows of 14 seats, and 9 seats are empty. How many people are seated? Computation in Python: ```python rows = 7 per_row = 14 empty = 9 seated = rows * per_row - empty # 89 print(seated) ``` Interpreter output: 89 89 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "89", "printed": "89", "notation": null}
nlprog_det-setting-0057997
A $6,000 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? In code: principal = 6000 annual_rate = 10 / 100 # 0.1 months = 36 interest = principal * annual_rate * months / 12 # 1800.0 payment = (principal + i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "216.67", "printed": "216.67", "notation": null}
nlprog_det-setting-0057998
Starting from $12,000, the team spends $3,222, $1,366. What remains? Coded up: ```python budget = 12000 expenses = [3222, 1366] left = budget - sum(expenses) # 7412 print(left) ``` The script prints: 7412 $7,412 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "7412", "printed": "7412", "notation": null}
nlprog_det-setting-0057999
<|start|><|user|> A lease runs for 6 months at $2,100 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 2100 months = 6 total = monthly_rent * months # 12600 print(total) ``` When run, it prints 12600, as expected. In total, $12,600 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 6 months at $2,100 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 2100\nmonths = 6\ntotal = monthly_rent * months # 12600\nprint(total)\n```\nWhen run, it prints 12600, as expe...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "12600", "printed": "12600", "notation": null}
nlprog_det-setting-0058000
Express 292 hours in days and hours. hours = 292 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") Out = 12 days and 4 hours That is 12 days and 4 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "12 days and 4 hours", "printed": "12 days and 4 hours", "notation": null}
nlprog_det-setting-0058001
<|start|><|user|> At $0.62 per mile, what is the reimbursement for 452 miles?<|eot|> <|assistant|> ```python miles = 452 rate = 0.62 reimbursement = miles * rate # 280.24 print(f"{reimbursement:.2f}") ``` Printed = 280.24 The reimbursement is $280.24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.62 per mile, what is the reimbursement for 452 miles?" }, { "role": "assistant", "content": "```python\nmiles = 452\nrate = 0.62\nreimbursement = miles * rate # 280.24\nprint(f\"{reimbursement:.2f}\")\n```\nPrinted = 280.24\n\nThe reimbursement is $280.24." ...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "280.24", "printed": "280.24", "notation": null}
nlprog_det-setting-0058002
Convert 2 h 51 min (the length of a training session) to minutes. Let the code do the arithmetic: ```python hours = 2 minutes = 51 total_minutes = hours * 60 + minutes # 171 print(total_minutes) ``` # output: 171 The training session lasted 171 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "171", "printed": "171", "notation": null}
nlprog_det-setting-0058003
<|start|><|user|> Rania buys 9 boxes of 6 keyboards each and gives away 20 keyboards. How many keyboards are left?<|eot|> <|assistant|> That leaves 34 keyboards.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rania buys 9 boxes of 6 keyboards each and gives away 20 keyboards. How many keyboards are left?" }, { "role": "assistant", "content": "That leaves 34 keyboards." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0058004
<|start|><|user|> What day of the week is September 28, 2013?<|eot|> <|assistant|> September 28, 2013 is a Saturday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is September 28, 2013?" }, { "role": "assistant", "content": "September 28, 2013 is a Saturday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0058005
<|start|><|system|> Keep explanations short.<|eot|> <|user|> At an exchange rate of 1.35 CAD per USD, how many CAD is 819 USD?<|eot|> <|assistant|> ```python amount = 819 rate = 1.35 converted = amount * rate # 1105.65 print(f"{converted:.2f}") ``` Executed, it shows 1105.65. It converts to 1,105.65 CAD.<|eot|> <|end...
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "At an exchange rate of 1.35 CAD per USD, how many CAD is 819 USD?" }, { "role": "assistant", "content": "```python\namount = 819\nrate = 1.35\nconverted = amount * rate # 1105.65\nprint(f\"{co...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1105.65", "printed": "1105.65", "notation": null}
nlprog_det-setting-0058006
A $210 dinner bill gets a 15% tip, and 5 people share the cost equally. What is each person's share? Let's compute it with Python. ```python bill = 210 tip_rate = 15 / 100 # 0.15 people = 5 each = bill * (1 + tip_rate) / people # 48.3 print(f"{each:.2f}") ``` Printed — 48.30 Each person pays $48.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "48.30", "printed": "48.30", "notation": null}
nlprog_det-setting-0058007
Walls total 835 sq ft and each can covers 400 sq ft. How many cans should be bought? Computation in Python: ```python import math area = 835 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` Running this gives: 3 Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0058008
<|start|><|system|> Answer in plain English.<|eot|> <|user|> Notice was given on November 28, 2020. The notice period is 45 days. When does it run out?<|eot|> <|assistant|> The period ends on January 12, 2021.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "Notice was given on November 28, 2020. The notice period is 45 days. When does it run out?" }, { "role": "assistant", "content": "The period ends on January 12, 2021." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "2021-01-12", "printed": "2021-01-12", "notation": null}
nlprog_det-setting-0058009
8 boxes hold 8 ink cartridges each. After 12 are handed out, how many are left? ```python boxes = 8 per_box = 8 given_away = 12 left = boxes * per_box - given_away # 52 print(left) ``` (Out: 52) That leaves 52 ink cartridges.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "52", "printed": "52", "notation": null}
nlprog_det-setting-0058011
<|start|><|user|> From 2009 to 2046, how many years is that?<|eot|> <|assistant|> ```python start_year = 2009 end_year = 2046 print(end_year - start_year) ``` This prints: 37 That is 37 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2009 to 2046, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2009\nend_year = 2046\nprint(end_year - start_year)\n```\nThis prints: 37\n\nThat is 37 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0058012
Express 89 hours in days and hours. One way, in code: ```python hours = 89 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The interpreter prints 3 days and 17 hours. That is 3 days and 17 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "3 days and 17 hours", "printed": "3 days and 17 hours", "notation": null}
nlprog_det-setting-0058013
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> A storeroom has 1580 keyboards. The office uses 39 a day. How many are left after 12 days?<|eot|> <|assistant|> ```python stock = 1580 per_day = 39 days = 12 left = stock - per_day * days # 1112 print(left) ``` Run result: 1112 1112 remain.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "A storeroom has 1580 keyboards. The office uses 39 a day. How many are left after 12 days?" }, { "role": "assistant", "content": "```python\nstock = 1580\nper_day = 39\ndays = 12\nleft = stock ...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1112", "printed": "1112", "notation": null}
nlprog_det-setting-0058014
Counting only Monday through Friday, how many business days are there after July 21, 2022 through August 2, 2022? Coded up: ```python from datetime import date, timedelta start = date(2022, 7, 21) end = date(2022, 8, 2) 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
[]
[]
150
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0058015
With $8,000 in costs and $13,000 in revenue, what percent of revenue is profit? Round to one decimal. We can compute it in Python. revenue = 13000 costs = 8000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 38.46153846153847 print(round(margin, 1)) Interpreter output — 38.5 Th...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "38.5", "printed": "38.5", "notation": null}
nlprog_det-setting-0058016
6 claimants share a $522 settlement equally. What is each share? Let's compute it with Python. ```python settlement = 522 parties = 6 share = settlement // parties # 87 print(share) ``` The program prints 87. Each share is $87.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "87", "printed": "87", "notation": null}
nlprog_det-setting-0058017
Express 89 hours in days and hours. Python code: ```python hours = 89 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` # program output: 3 days and 17 hours That is 3 days and 17 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "3 days and 17 hours", "printed": "3 days and 17 hours", "notation": null}
nlprog_det-setting-0058018
A meal costs $242.21. How much is a 15% tip? Programmatically: ```python bill = 242.21 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 36.3315 print(f"{tip:.2f}") ``` Result: 36.33 Leave $36.33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "36.33", "printed": "36.33", "notation": null}
nlprog_det-setting-0058019
$5,000 is invested at 5% compounded yearly. What is it worth after 2 years? Here's the code. ```python principal = 5000 rate = 5 / 100 # 0.05 years = 2 value = principal * (1 + rate) ** years # 5512.5 print(f"{value:.2f}") ``` Output of the run: 5512.50 It is worth $5,512.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "5512.50", "printed": "5512.50", "notation": null}
nlprog_det-setting-0058020
110 of 200 members attended. What percent attended? ```python present = 110 total = 200 percent = present / total * 100 # 55.00000000000001 print(round(percent, 1)) ``` The script prints 55.0. 55.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "55.0", "printed": "55.0", "notation": null}
nlprog_det-setting-0058021
A trial runs from December 19, 2019 to January 11, 2020, counting both days. How many calendar days is that? Python version: ```python from datetime import date first = date(2019, 12, 19) # datetime.date(2019, 12, 19) last = date(2020, 1, 11) # datetime.date(2020, 1, 11) days = (last - first).days + 1 # 24 print(da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0058022
Convert 74 km to meters. Computing it: ```python km = 74 meters = km * 1000 # 74000 print(round(meters)) ``` This prints 74000, as expected. That is 74,000 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "74000", "printed": "74000", "notation": null}
nlprog_det-setting-0058023
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": ...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python so...
nlprog_det
setting
original
null
deterministic
[]
[]
376
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0058025
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> Starting with 881 folders and using 20 per day, how many remain after 9 days?<|eot|> <|assistant|> 701 remain.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "Starting with 881 folders and using 20 per day, how many remain after 9 days?" }, { "role": "assistant", "content": "701 remain." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "701", "printed": "701", "notation": null}
nlprog_det-setting-0058026
Revenue is $13,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)? Computing it: ```python revenue = 13500 costs = 12500 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 7.4074074074074066 print(round(margin, 1)) ``` Printed: 7.4 The margin is 7.4%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "7.4", "printed": "7.4", "notation": null}
nlprog_det-setting-0058027
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> A meal costs $196.73. How much is a 20% tip?<|eot|> <|assistant|> ```python bill = 196.73 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 39.346000000000004 print(f"{tip:.2f}") ``` Run result = 39.35 Leave $39.35.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "A meal costs $196.73. How much is a 20% tip?" }, { "role": "assistant", "content": "```python\nbill = 196.73\ntip_rate = 20 / 100 # 0.2\ntip = bill * tip_rate # 39.346000000000004\nprint(...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "39.35", "printed": "39.35", "notation": null}
nlprog_det-setting-0058028
After a 25% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? One way, in code: ```python award = 72000 fee = award * 25 / 100 # 18000.0 remaining = award - fee # 54000.0 per_client = remaining / 3 # 18000.0 print(f"{per_client:.2f}") ``` (Output: 18000....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0058029
A hearing lasted 4 hours and 30 minutes. How many minutes is that? ```python hours = 4 minutes = 30 total_minutes = hours * 60 + minutes # 270 print(total_minutes) ``` Run output: 270 The hearing lasted 270 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "270", "printed": "270", "notation": null}
nlprog_det-setting-0058030
Convert 67.4 km to meters. ```python km = 67.4 meters = km * 1000 # 67400.0 print(round(meters)) ``` Result: 67400 67,400 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "67400", "printed": "67400", "notation": null}
nlprog_det-setting-0058031
<|start|><|system|> Tools (call with JSON): [{"name": "interpreter", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> 3 friends split a $150 bi...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"interpreter\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
231
{"gold": "59.00", "printed": "59.00", "notation": null}
nlprog_det-setting-0058032
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> Fines run at $250 per day up to a maximum of $5,000. How much after 37 days?<|eot|> <|assistant|> The fine is $5,000.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "Fines run at $250 per day up to a maximum of $5,000. How much after 37 days?" }, { "role": "assistant", "content": "The fine is $5,000." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0058033
8 claimants share a $18,000 settlement equally. What is each share? A short script: ```python settlement = 18000 parties = 8 share = settlement // parties # 2250 print(share) ``` What it prints: 2250 Each party receives $2,250.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0058034
<|start|><|user|> 17 labels cost $24 apiece. With 5% tax added, what is the total?<|eot|> <|assistant|> The invoice total is $428.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "17 labels cost $24 apiece. With 5% tax added, what is the total?" }, { "role": "assistant", "content": "The invoice total is $428.40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "428.40", "printed": "428.40", "notation": null}
nlprog_det-setting-0058035
4 walks at 300 calories each burn how many calories in total? We can compute it in Python. ```python per_session = 300 sessions = 4 total = per_session * sessions print(total) ``` Output — 1200 That burns 1200 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0058036
A trial runs from December 24, 2019 to January 15, 2020, counting both days. How many calendar days is that? Programmatically: ```python from datetime import date first = date(2019, 12, 24) # datetime.date(2019, 12, 24) last = date(2020, 1, 15) # datetime.date(2020, 1, 15) days = (last - first).days + 1 # 23 print(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0058037
<|start|><|user|> Goods bought on March 17, 2028 carry a 24-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2028, 3, 17) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.i...
chat
[ { "role": "user", "content": "Goods bought on March 17, 2028 carry a 24-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2028, 3, 17)\nmonths = 24\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2030-03-17", "printed": "2030-03-17", "notation": null}
nlprog_det-setting-0058038
The rules require 2/3 of 11 members (round up) to be present. How many is that? A few lines of Python do it: ```python import math members = 11 quorum = math.ceil(members * 2 / 3) print(quorum) ``` Running this gives: 8 8 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0058039
<|start|><|user|> A recipe for 4 people uses 240 grams of rice. How many grams are needed for 6 people?<|eot|> <|assistant|> ```python grams = 240 serves = 4 needed_for = 6 scaled = grams * needed_for // serves # 360 print(scaled) ``` Program output: 360 360 grams of rice are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 4 people uses 240 grams of rice. How many grams are needed for 6 people?" }, { "role": "assistant", "content": "```python\ngrams = 240\nserves = 4\nneeded_for = 6\nscaled = grams * needed_for // serves # 360\nprint(scaled)\n```\nProgram output: 360\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0058040
Fines run at $50 per day up to a maximum of $1,000. How much after 33 days? The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0058041
To read 555 pages in 15 days, how many pages per day are needed? Here is the program. ```python pages = 555 days = 15 per_day = pages // days print(per_day) ``` Execution result — 37 That is 37 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0058042
<|start|><|user|> Express 74 hours in days and hours.<|eot|> <|assistant|> ```python hours = 74 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` What it prints: 3 days and 2 hours That is 3 days and 2 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 74 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 74\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nWhat it prints: 3 days and 2 hours\n\nThat is 3 days and 2 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "3 days and 2 hours", "printed": "3 days and 2 hours", "notation": null}
nlprog_det-setting-0058043
<|start|><|user|> The building opened in 2005. How many years had passed by 2025?<|eot|> <|assistant|> ```python start_year = 2005 end_year = 2025 print(end_year - start_year) ``` The script prints 20. 20 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The building opened in 2005. How many years had passed by 2025?" }, { "role": "assistant", "content": "```python\nstart_year = 2005\nend_year = 2025\nprint(end_year - start_year)\n```\nThe script prints 20.\n\n20 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0058044
At 2% a month (simple), what interest builds on $7,500 over 6 months? The interest is $900.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "900.00", "printed": "900.00", "notation": null}
nlprog_det-setting-0058045
A penalty of $50 a day accrues, capped at $1,000. What is owed after 31 days? Here's the code. ```python per_day = 50 days = 31 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Out — 1000 The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0058046
<|start|><|user|> With $8,000 in costs and $10,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 10500 costs = 8000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 23.809523809523807 print(round(margin, 1)) ``` The interpreter prints: 2...
chat
[ { "role": "user", "content": "With $8,000 in costs and $10,500 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 10500\ncosts = 8000\nprofit = revenue - costs # 2500\nmargin = profit / revenue * 100 # 23.80952380952...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "23.8", "printed": "23.8", "notation": null}
nlprog_det-setting-0058047
Goods bought on November 11, 2019 carry a 36-month warranty. When does it expire? Python, step by step: ```python from datetime import date start = date(2019, 11, 11) 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
[]
[]
151
{"gold": "2022-11-11", "printed": "2022-11-11", "notation": null}
nlprog_det-setting-0058048
From 2015 to 2040, how many years is that? The computation: ```python start_year = 2015 end_year = 2040 print(end_year - start_year) ``` Run result — 25 25 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0058049
<|start|><|user|> A penalty of $50 a day accrues, capped at $1,000. What is owed after 22 days?<|eot|> <|assistant|> ```python per_day = 50 days = 22 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Out: 1000 $1,000 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $50 a day accrues, capped at $1,000. What is owed after 22 days?" }, { "role": "assistant", "content": "```python\nper_day = 50\ndays = 22\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\nOut:\n1000\n\n$1,000 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0058050
3 claimants share a $36,000 settlement equally. What is each share? Each party receives $12,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "12000", "printed": "12000", "notation": null}
nlprog_det-setting-0058051
<|start|><|user|> One can of paint covers 300 square feet. How many cans are needed for 728 square feet of wall?<|eot|> <|assistant|> ```python import math area = 728 coverage = 300 cans = math.ceil(area / coverage) # 3 print(cans) ``` Run it and it prints 3. 3 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 300 square feet. How many cans are needed for 728 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 728\ncoverage = 300\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nRun it and it prints 3...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0058052
Convert 31.4 km to meters. Code: ```python km = 31.4 meters = km * 1000 # 31400.0 print(round(meters)) ``` Output of the run — 31400 31,400 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "31400", "printed": "31400", "notation": null}
nlprog_det-setting-0058053
Convert 2,131 CHF to USD at 1 CHF = 0.74 USD. Let the code do the arithmetic: amount = 2131 rate = 0.74 converted = amount * rate print(f"{converted:.2f}") Output: 1576.94 It converts to 1,576.94 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "1576.94", "printed": "1576.94", "notation": null}
nlprog_det-setting-0058055
Amir and Mei share $6,840 in the ratio 3:5. How much does Amir get? Amir's share is $2,565.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "2565", "printed": "2565", "notation": null}
nlprog_det-setting-0058056
Pack A has 8 items for $5.74. Pack B has 18 items for $16.49. Which has the lower price per item? Set it up in Python: pack_a = 5.74 / 8 # 0.7175 pack_b = 16.49 / 18 # 0.916111111111111 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) The script prints: A Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0058057
A seminar starts at 11:40 AM and lasts 135 minutes. When does it end? A few lines of Python do it: ```python start = 11 * 60 + 40 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Printed — 1:55 PM It ends at 1:55 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "1:55 PM", "printed": "1:55 PM", "notation": null}
nlprog_det-setting-0058058
<|start|><|system|> You have access to these functions: {"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> A hearing is set for De...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"run_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
206
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0058059
<|start|><|user|> Goods bought on April 22, 2024 carry a 36-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2024, 4, 22) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.i...
chat
[ { "role": "user", "content": "Goods bought on April 22, 2024 carry a 36-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2024, 4, 22)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2027-04-22", "printed": "2027-04-22", "notation": null}
nlprog_det-setting-0058060
Equipment costs $18,000, has a salvage value of $0, and a useful life of 8 years. What is the straight-line depreciation per year? Python, step by step: ```python cost = 18000 salvage = 0 years = 8 per_year = (cost - salvage) / years # 2250.0 print(f"{per_year:.2f}") ``` It prints 2250.00. $2,250.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "2250.00", "printed": "2250.00", "notation": null}
nlprog_det-setting-0058061
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> How many meters are in 49.2 kilometers?<|eot|> <|assistant|> ```python km = 49.2 meters = km * 1000 # 49200.0 print(round(meters)) ``` That prints 49200. That is 49,200 meters.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "How many meters are in 49.2 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 49.2\nmeters = km * 1000 # 49200.0\nprint(round(meters))\n```\nThat prints 49200.\n\nThat is ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "49200", "printed": "49200", "notation": null}
nlprog_det-setting-0058062
Someone works 40 hours at $27.36 per hour. What are the earnings? rate = 27.36 hours = 40 earnings = rate * hours # 1094.4 print(f"{earnings:.2f}") Execution prints: 1094.40 The pay is $1,094.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "1094.40", "printed": "1094.40", "notation": null}
nlprog_det-setting-0058063
Which is cheaper per unit: 10 for $4.35 (A) or 18 for $23.54 (B)? A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0058064
A hearing lasted 3 hours and 48 minutes. How many minutes is that? A Python solution: ```python hours = 3 minutes = 48 total_minutes = hours * 60 + minutes # 228 print(total_minutes) ``` Out — 228 That is 228 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "228", "printed": "228", "notation": null}
nlprog_det-setting-0058065
<|start|><|user|> Count the days between April 11, 2018 and February 5, 2019.<|eot|> <|assistant|> from datetime import date first = date(2018, 4, 11) # datetime.date(2018, 4, 11) second = date(2019, 2, 5) # datetime.date(2019, 2, 5) print((second - first).days) The program prints 300. There are 300 ...
chat
[ { "role": "user", "content": "Count the days between April 11, 2018 and February 5, 2019." }, { "role": "assistant", "content": " from datetime import date\n first = date(2018, 4, 11) # datetime.date(2018, 4, 11)\n second = date(2019, 2, 5) # datetime.date(2019, 2, 5)\n print((seco...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0058066
4 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? ```python award = 96000 fee = award * 25 / 100 # 24000.0 remaining = award - fee # 72000.0 per_client = remaining / 4 # 18000.0 print(f"{per_client:.2f}") ``` Run it and it prints 18000.00. Each share is $18,...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0058068
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Pyth...
nlprog_det
setting
original
null
deterministic
[]
[]
215
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0058069
<|start|><|system|> Tools you may use: {"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> An office budget of $5,000 has expe...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"...
nlprog_det
setting
original
null
deterministic
[]
[]
236
{"gold": "-4478", "printed": "-4478", "notation": null}
nlprog_det-setting-0058070
Filing fees are $25 per document. What do 5 filings cost? fee = 25 filings = 5 total = fee * filings # 125 print(total) Printed = 125 $125 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
60
{"gold": "125", "printed": "125", "notation": null}
nlprog_det-setting-0058071
<|start|><|user|> A lawyer's fee is 35% of a $150,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 150000 rate = 35 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` # program output: 52500.00 The fee is $52,500.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 35% of a $150,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 150000\nrate = 35 / 100\nfee = recovery * rate\nprint(f\"{fee:.2f}\")\n```\n# program output: 52500.00\n\nThe fee is $52,500.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "52500.00", "printed": "52500.00", "notation": null}
nlprog_det-setting-0058072
Convert 5 °C to Fahrenheit. We can compute it in Python. ```python celsius = 5 fahrenheit = celsius * 9 / 5 + 32 # 41.0 print(round(fahrenheit)) ``` stdout: 41 It equals 41 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0058073
Ulla drove 382 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement? In code: ```python miles = 382 rate = 0.58 reimbursement = miles * rate # 221.55999999999997 print(f"{reimbursement:.2f}") ``` stdout — 221.56 Ulla is owed $221.56.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "221.56", "printed": "221.56", "notation": null}
nlprog_det-setting-0058074
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> Of a $10,000 budget, $2,300 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 10000 spent = 2300 percent = spent / budget * 100 # 23.0 print(round(percent, 1)) ``` It outputs: 23.0 That is 23.0% of the budge...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "Of a $10,000 budget, $2,300 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 10000\nspent = 2300\npercent = spent / budget ...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "23.0", "printed": "23.0", "notation": null}
nlprog_det-setting-0058075
<|start|><|user|> Convert 80 km to meters.<|eot|> <|assistant|> ```python km = 80 meters = km * 1000 # 80000 print(round(meters)) ``` # out: 80000 That is 80,000 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 80 km to meters." }, { "role": "assistant", "content": "```python\nkm = 80\nmeters = km * 1000 # 80000\nprint(round(meters))\n```\n# out: 80000\n\nThat is 80,000 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "80000", "printed": "80000", "notation": null}
nlprog_det-setting-0058076
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> At 65 miles per hour, how many minutes does a 195-mile trip take?<|eot|> <|assistant|> distance = 195 speed = 65 minutes = distance / speed * 60 # 180.0 print(round(minutes)) # printed result: 180 The trip takes 180 minutes.<|...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "At 65 miles per hour, how many minutes does a 195-mile trip take?" }, { "role": "assistant", "content": " distance = 195\n speed = 65\n minutes = distance / speed * 60 ...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0058077
1 books come back 13 days late, at $0.15 a day each. What is the fine? ```python per_day = 0.15 days_late = 13 books = 1 fine = per_day * days_late * books # 1.95 print(f"{fine:.2f}") ``` # stdout: 1.95 The fine is $1.95.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1.95", "printed": "1.95", "notation": null}
nlprog_det-setting-0058078
An invoice lists 7 staplers at $4 each, plus 8% sales tax. What is the invoice total? ```python quantity = 7 unit_price = 4 subtotal = quantity * unit_price # 28 total = subtotal * (1 + 8 / 100) # 30.240000000000002 print(f"{total:.2f}") ``` stdout: 30.24 The total with tax is $30.24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "30.24", "printed": "30.24", "notation": null}
nlprog_det-setting-0058079
<|start|><|user|> Straight-line depreciation: cost $12,000, salvage $0, 3 years. How much per year?<|eot|> <|assistant|> ```python cost = 12000 salvage = 0 years = 3 per_year = (cost - salvage) / years # 4000.0 print(f"{per_year:.2f}") ``` # out: 4000.00 Depreciation is $4,000.00 per year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $12,000, salvage $0, 3 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 12000\nsalvage = 0\nyears = 3\nper_year = (cost - salvage) / years # 4000.0\nprint(f\"{per_year:.2f}\")\n```\n# out: 4000.00\n...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0058080
A library charges $0.10 per book per day late. What is the fine for 4 books that are 2 days late? Python, step by step: ```python per_day = 0.1 days_late = 2 books = 4 fine = per_day * days_late * books # 0.8 print(f"{fine:.2f}") ``` The code prints: 0.80 $0.80 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "0.80", "printed": "0.80", "notation": null}