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-0065970
<|start|><|system|> Keep explanations short.<|eot|> <|user|> A 60-mile drive at a steady 45 mph takes how many minutes?<|eot|> <|assistant|> 80 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "A 60-mile drive at a steady 45 mph takes how many minutes?" }, { "role": "assistant", "content": "80 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0065971
<|start|><|user|> 10 batteries cost $6 apiece. With 5% tax added, what is the total?<|eot|> <|assistant|> The total with tax is $63.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "10 batteries cost $6 apiece. With 5% tax added, what is the total?" }, { "role": "assistant", "content": "The total with tax is $63.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "63.00", "printed": "63.00", "notation": null}
nlprog_det-setting-0065972
<|start|><|user|> Of a $2,000 budget, $1,800 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 2000 spent = 1800 percent = spent / budget * 100 print(round(percent, 1)) ``` Out: 90.0 90.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $2,000 budget, $1,800 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 2000\nspent = 1800\npercent = spent / budget * 100\nprint(round(percent, 1))\n```\nOut: 90.0\n\n90.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "90.0", "printed": "90.0", "notation": null}
nlprog_det-setting-0065973
A claim accrued on June 26, 2012. The limitations period is 2 years. On what date does it expire? ```python from datetime import date accrued = date(2012, 6, 26) # datetime.date(2012, 6, 26) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2014, 6, 26) print(expires.isoformat()) ``` Out...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2014-06-26", "printed": "2014-06-26", "notation": null}
nlprog_det-setting-0065974
From 1994 to 2028, how many years is that? 34 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
16
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0065976
<|start|><|user|> A lease runs for 18 months at $3,250 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> monthly_rent = 3250 months = 18 total = monthly_rent * months # 58500 print(total) # output: 58500 The rent over the term is $58,500.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 18 months at $3,250 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": " monthly_rent = 3250\n months = 18\n total = monthly_rent * months # 58500\n print(total)\n# output: 58500\n\nThe rent over...
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "58500", "printed": "58500", "notation": null}
nlprog_det-setting-0065977
<|start|><|user|> Fines run at $25 per day up to a maximum of $1,000. How much after 37 days?<|eot|> <|assistant|> The fine is $925.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $25 per day up to a maximum of $1,000. How much after 37 days?" }, { "role": "assistant", "content": "The fine is $925." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "925", "printed": "925", "notation": null}
nlprog_det-setting-0065978
A client paid a $5,000 retainer. The firm has billed 11 hours at $250 per hour. How much of the retainer is left? Programmatically: ```python retainer = 5000 hours = 11 rate = 250 left = retainer - hours * rate # 2250 print(left) ``` # out: 2250 The remaining balance is $2,250.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0065979
A $12,000 grant pays $3,000 up front and the rest in 6 equal installments. How large is each installment? Translated to Python: ```python grant = 12000 up_front = 3000 installments = 6 each = (grant - up_front) / installments # 1500.0 print(f"{each:.2f}") ``` Output: 1500.00 $1,500.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0065980
Papers were served by mail on March 10, 2018. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date? Here is a short program for it. from datetime import date, timedelta served = date(2018, 3, 10) # datetime.date(2018, 3, 10) response_days = 21 mail_days = 3 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
165
{"gold": "2018-04-03", "printed": "2018-04-03", "notation": null}
nlprog_det-setting-0065981
A meeting starts at 8:20 AM and lasts 90 minutes. When does it end? As Python: ```python start = 8 * 60 + 20 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Running this gives 9:50 AM. It ends at 9:50 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "9:50 AM", "printed": "9:50 AM", "notation": null}
nlprog_det-setting-0065982
<|start|><|user|> Convert 1 h 32 min (the length of a deposition) to minutes.<|eot|> <|assistant|> That is 92 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 1 h 32 min (the length of a deposition) to minutes." }, { "role": "assistant", "content": "That is 92 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "92", "printed": "92", "notation": null}
nlprog_det-setting-0065983
<|start|><|user|> Grace's scores were 78, 51, 54, 91, 56, 83 and 63. What is the average score?<|eot|> <|assistant|> ```python scores = [78, 51, 54, 91, 56, 83, 63] average = sum(scores) // len(scores) # 68 print(average) ``` Console output — 68 The average score is 68.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Grace's scores were 78, 51, 54, 91, 56, 83 and 63. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [78, 51, 54, 91, 56, 83, 63]\naverage = sum(scores) // len(scores) # 68\nprint(average)\n```\nConsole output — 68\n\nThe average...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0065984
Starting from $5,000, the team spends $2,696, $2,314. What remains? ```python budget = 5000 expenses = [2696, 2314] left = budget - sum(expenses) # -10 print(left) ``` The script prints -10, as expected. The remaining budget is -$10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "-10", "printed": "-10", "notation": null}
nlprog_det-setting-0065985
3 clients win $48,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? Here is the program. ```python award = 48000 fee = award * 30 / 100 remaining = award - fee per_client = remaining / 3 print(f"{per_client:.2f}") ``` Running it prints 11200.00, as expected. Each share is $11,20...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "11200.00", "printed": "11200.00", "notation": null}
nlprog_det-setting-0065986
<|start|><|user|> What is 0 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> celsius = 0 fahrenheit = celsius * 9 / 5 + 32 # 32.0 print(round(fahrenheit)) Execution result — 32 That is 32 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 0 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": " celsius = 0\n fahrenheit = celsius * 9 / 5 + 32 # 32.0\n print(round(fahrenheit))\nExecution result — 32\n\nThat is 32 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0065987
<|start|><|user|> Printing costs 10 cents a page. What does it cost to print 111 copies of a 17-page handout?<|eot|> <|assistant|> ```python pages = 17 copies = 111 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 188.70000000000002 print(f"{cost:.2f}") ``` # run result: 188.70 Printing costs $188.70.<|eot...
chat
[ { "role": "user", "content": "Printing costs 10 cents a page. What does it cost to print 111 copies of a 17-page handout?" }, { "role": "assistant", "content": "```python\npages = 17\ncopies = 111\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 188.70000000000002\nprint(f\"{cost:....
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "188.70", "printed": "188.70", "notation": null}
nlprog_det-setting-0065988
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> After a 25% fee is taken from a $60,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 60000 fee = award * 25 / 100 # 15000.0 remaining = award - fee # 45000.0 per_client = rema...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "After a 25% fee is taken from a $60,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 60000\n...
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "11250.00", "printed": "11250.00", "notation": null}
nlprog_det-setting-0065989
<|start|><|user|> A workshop lasted 1 hours and 31 minutes. How many minutes is that?<|eot|> <|assistant|> That is 91 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A workshop lasted 1 hours and 31 minutes. How many minutes is that?" }, { "role": "assistant", "content": "That is 91 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "91", "printed": "91", "notation": null}
nlprog_det-setting-0065990
2 friends split a $120 bill plus a 18% tip evenly. How much does each pay? Python code: ```python bill = 120 tip_rate = 18 / 100 # 0.18 people = 2 each = bill * (1 + tip_rate) / people # 70.8 print(f"{each:.2f}") ``` Output of the run — 70.80 Each person pays $70.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "70.80", "printed": "70.80", "notation": null}
nlprog_det-setting-0065991
<|start|><|user|> A penalty of $250 a day accrues, capped at $2,500. What is owed after 9 days?<|eot|> <|assistant|> per_day = 250 days = 9 cap = 2500 fine = min(per_day * days, cap) # 2250 print(fine) # execution result: 2250 The fine is $2,250.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $250 a day accrues, capped at $2,500. What is owed after 9 days?" }, { "role": "assistant", "content": " per_day = 250\n days = 9\n cap = 2500\n fine = min(per_day * days, cap) # 2250\n print(fine)\n# execution result: 2250\n\nThe fine i...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0065992
<|start|><|user|> Someone works 30 hours at $25.65 per hour. What are the earnings?<|eot|> <|assistant|> That earns $769.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 30 hours at $25.65 per hour. What are the earnings?" }, { "role": "assistant", "content": "That earns $769.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "769.50", "printed": "769.50", "notation": null}
nlprog_det-setting-0065993
77 copies of a 53-page packet are printed at $0.12 per page. What is the cost? Translated to Python: ```python pages = 53 copies = 77 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 489.71999999999997 print(f"{cost:.2f}") ``` Running this gives 489.72. Printing costs $489.72.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "489.72", "printed": "489.72", "notation": null}
nlprog_det-setting-0065994
If a 90-minute appointment begins at 12:15 PM, what time does it finish? The Python version: ```python start = 12 * 60 + 15 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Out — 1:45 PM The appointment finishes at 1:45 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "1:45 PM", "printed": "1:45 PM", "notation": null}
nlprog_det-setting-0065995
Femi buys 4 boxes of 12 binders each and gives away 6 binders. How many binders are left? Python makes this quick: ```python boxes = 4 per_box = 12 given_away = 6 left = boxes * per_box - given_away # 42 print(left) ``` The code prints: 42 42 binders are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0065996
<|start|><|user|> Which is cheaper per unit: 6 for $12.83 (A) or 18 for $29.12 (B)?<|eot|> <|assistant|> B has the lower unit price.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 6 for $12.83 (A) or 18 for $29.12 (B)?" }, { "role": "assistant", "content": "B has the lower unit price." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0065997
<|start|><|user|> Abel buys 10 boxes of 6 badges each and gives away 7 badges. How many badges are left?<|eot|> <|assistant|> ```python boxes = 10 per_box = 6 given_away = 7 left = boxes * per_box - given_away # 53 print(left) ``` Executing it gives 53, as expected. That leaves 53 badges.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Abel buys 10 boxes of 6 badges each and gives away 7 badges. How many badges are left?" }, { "role": "assistant", "content": "```python\nboxes = 10\nper_box = 6\ngiven_away = 7\nleft = boxes * per_box - given_away # 53\nprint(left)\n```\nExecuting it gives 53, as e...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0065998
A $2,500 security deposit has deductions of $120. How much is refunded? The computation: ```python deposit = 2500 deductions = [120] refund = deposit - sum(deductions) # 2380 print(refund) ``` Output = 2380 $2,380 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "2380", "printed": "2380", "notation": null}
nlprog_det-setting-0065999
Notice was given on June 24, 2023. The notice period is 60 days. When does it run out? Python, step by step: from datetime import date, timedelta start = date(2023, 6, 24) # datetime.date(2023, 6, 24) end = start + timedelta(days=60) # datetime.date(2023, 8, 23) print(end.isoformat()) Execution resul...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "2023-08-23", "printed": "2023-08-23", "notation": null}
nlprog_det-setting-0066000
Filing fees are $350 per document. What do 3 filings cost? $1,050 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0066001
171 of 200 members attended. What percent attended? Here's the code. ```python present = 171 total = 200 percent = present / total * 100 print(round(percent, 1)) ``` Running it prints 85.5, as expected. Attendance was 85.5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "85.5", "printed": "85.5", "notation": null}
nlprog_det-setting-0066003
<|start|><|user|> 54 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 54 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The interpreter prints: 13 each, 2 left over 13 ea...
chat
[ { "role": "user", "content": "54 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 54\ngroups = 4\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left ove...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "13 each, 2 left over", "printed": "13 each, 2 left over", "notation": null}
nlprog_det-setting-0066004
<|start|><|user|> Monthly rent is $900. A tenant moves in with 23 days left in a 31-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 900 days_in_month = 31 days_occupied = 23 prorated = rent * days_occupied / days_in_month print(f"{prorated:.2f}") ``` This prints: 667.74 The tenant owes $667...
chat
[ { "role": "user", "content": "Monthly rent is $900. A tenant moves in with 23 days left in a 31-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 900\ndays_in_month = 31\ndays_occupied = 23\nprorated = rent * days_occupied / days_in_month\nprint(f\"{p...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "667.74", "printed": "667.74", "notation": null}
nlprog_det-setting-0066005
$2,000 is invested at 3% compounded yearly. What is it worth after 3 years? A Python solution: ```python principal = 2000 rate = 3 / 100 # 0.03 years = 3 value = principal * (1 + rate) ** years # 2185.454 print(f"{value:.2f}") ``` The program prints: 2185.45 The balance is $2,185.45.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "2185.45", "printed": "2185.45", "notation": null}
nlprog_det-setting-0066006
Rania and Bilal share $3,549 in the ratio 2:5. How much does Rania get? Here's the code. total = 3549 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1014 print(share_a) Console output: 1014 Rania gets $1,014.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1014", "printed": "1014", "notation": null}
nlprog_det-setting-0066007
<|start|><|user|> How many units at $15 each (variable cost $11) cover $9,000 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 9000 price = 15 variable = 11 units = math.ceil(fixed / (price - variable)) # 2250 print(units) ``` On running, it outputs: 2250 2250 units are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $15 each (variable cost $11) cover $9,000 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 9000\nprice = 15\nvariable = 11\nunits = math.ceil(fixed / (price - variable)) # 2250\nprint(units)\n```\nOn running, ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0066008
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> At $0.70 per mile, what is the reimbursement for 87 miles?<|eot|> <|assistant|> ```python miles = 87 rate = 0.7 reimbursement = miles * rate # 60.9 print(f"{reimbursement:.2f}") ``` (Execution result: 60.90) The reimbursement is $60.90.<|eot|> <...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "At $0.70 per mile, what is the reimbursement for 87 miles?" }, { "role": "assistant", "content": "```python\nmiles = 87\nrate = 0.7\nreimbursement = miles * rate # 60.9\nprint(f\"{...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "60.90", "printed": "60.90", "notation": null}
nlprog_det-setting-0066009
At $17.24 an hour, what does 30 hours of work pay? Program: ```python rate = 17.24 hours = 30 earnings = rate * hours # 517.1999999999999 print(f"{earnings:.2f}") ``` When run, it prints 517.20. The pay is $517.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "517.20", "printed": "517.20", "notation": null}
nlprog_det-setting-0066010
<|start|><|system|> Functions: [{"name": "py_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> A 65-mile drive at a steady 65 mph takes h...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"py_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}]" ...
nlprog_det
setting
original
null
deterministic
[]
[]
195
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0066011
<|start|><|user|> Scale 240 g of flour from 2 servings to 4 servings.<|eot|> <|assistant|> ```python grams = 240 serves = 2 needed_for = 4 scaled = grams * needed_for // serves # 480 print(scaled) ``` When run, it prints 480. Use 480 g of flour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 240 g of flour from 2 servings to 4 servings." }, { "role": "assistant", "content": "```python\ngrams = 240\nserves = 2\nneeded_for = 4\nscaled = grams * needed_for // serves # 480\nprint(scaled)\n```\nWhen run, it prints 480.\n\nUse 480 g of flour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "480", "printed": "480", "notation": null}
nlprog_det-setting-0066012
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"code_runner\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python s...
nlprog_det
setting
original
null
deterministic
[]
[]
236
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0066013
<|start|><|system|> Tool definitions: [{"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A shift runs from 7:35 AM to 1:00 P...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]...
nlprog_det
setting
original
null
deterministic
[]
[]
200
{"gold": "325", "printed": "325", "notation": null}
nlprog_det-setting-0066014
Convert 53.3 km to meters. A few lines of Python do it: km = 53.3 meters = km * 1000 # 53300.0 print(round(meters)) Executing it gives 53300, as expected. That is 53,300 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "53300", "printed": "53300", "notation": null}
nlprog_det-setting-0066015
<|start|><|user|> Convert 25 °C to Fahrenheit.<|eot|> <|assistant|> It equals 77 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 25 °C to Fahrenheit." }, { "role": "assistant", "content": "It equals 77 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0066016
<|start|><|user|> A clerk's office charges $50 for each filing. Maren submits 2 filings. What is the total fee?<|eot|> <|assistant|> ```python fee = 50 filings = 2 total = fee * filings # 100 print(total) ``` (Printed result: 100) The total fee is $100.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $50 for each filing. Maren submits 2 filings. What is the total fee?" }, { "role": "assistant", "content": "```python\nfee = 50\nfilings = 2\ntotal = fee * filings # 100\nprint(total)\n```\n(Printed result: 100)\n\nThe total fee is $100." ...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0066018
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> The rules require 3/5 of 26 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 26 quorum = math.ceil(members * 3 / 5) # 16 print(quorum) ``` This prints 16, as expected. That is 16 members.<|eot|>...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "The rules require 3/5 of 26 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 26\nquorum = math.ceil(members * ...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0066019
<|start|><|user|> 4 books come back 16 days late, at $0.15 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.15 days_late = 16 books = 4 fine = per_day * days_late * books # 9.6 print(f"{fine:.2f}") ``` Program output: 9.60 $9.60 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 books come back 16 days late, at $0.15 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.15\ndays_late = 16\nbooks = 4\nfine = per_day * days_late * books # 9.6\nprint(f\"{fine:.2f}\")\n```\nProgram output: 9.60\n\n$9.60 ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "9.60", "printed": "9.60", "notation": null}
nlprog_det-setting-0066020
Bilal has 11 documents to file, and each filing costs $75. How much are the filing fees in total? Here's the code. ```python fee = 75 filings = 11 total = fee * filings # 825 print(total) ``` The code prints: 825 The filings cost $825 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "825", "printed": "825", "notation": null}
nlprog_det-setting-0066021
Monthly: $15. Annual: $168. What is saved per year by paying annually? Computing it: ```python monthly = 15 yearly = 168 savings = monthly * 12 - yearly # 12 print(savings) ``` Output: 12 The annual plan saves $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0066022
9 boxes hold 6 flash drives each. After 12 are handed out, how many are left? Let the code do the arithmetic: ```python boxes = 9 per_box = 6 given_away = 12 left = boxes * per_box - given_away # 42 print(left) ``` # execution result: 42 That leaves 42 flash drives.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0066023
<|start|><|user|> Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 49 hours?<|eot|> <|assistant|> ```python rate = 20.0 hours = 49 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 270.0 pay = regular + overtime # 1070.0 print(f"{pay:.2f}") ``` That prints: 1070...
chat
[ { "role": "user", "content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 49 hours?" }, { "role": "assistant", "content": "```python\nrate = 20.0\nhours = 49\nregular = 40 * rate # 800.0\novertime = (hours - 40) * rate * 1.5 # 270.0\npay = regular + o...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "1070.00", "printed": "1070.00", "notation": null}
nlprog_det-setting-0066024
<|start|><|user|> Equal monthly payments repay $6,000 plus 5% simple yearly interest over 24 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 6000 annual_rate = 5 / 100 # 0.05 months = 24 interest = principal * annual_rate * months / 12 # 600.0 payment = (principal + interest) / months # 27...
chat
[ { "role": "user", "content": "Equal monthly payments repay $6,000 plus 5% simple yearly interest over 24 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 6000\nannual_rate = 5 / 100 # 0.05\nmonths = 24\ninterest = principal * annual_rate * months / 1...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "275.00", "printed": "275.00", "notation": null}
nlprog_det-setting-0066025
<|start|><|system|> Functions: [{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "convert_units", "description": "Convert a quant...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}, {\...
nlprog_det
setting
original
null
deterministic
[]
[]
366
{"gold": "4:35 PM", "printed": "4:35 PM", "notation": null}
nlprog_det-setting-0066026
An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 4 months? ```python balance = 12000 monthly_rate = 1 / 100 # 0.01 months = 4 interest = balance * monthly_rate * months # 480.0 print(f"{interest:.2f}") ``` The printout reads: 480.00 $480.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0066027
<|start|><|user|> What day of the week is September 5, 2014?<|eot|> <|assistant|> from datetime import date hearing = date(2014, 9, 5) # datetime.date(2014, 9, 5) print(hearing.strftime("%A")) stdout = Friday September 5, 2014 is a Friday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is September 5, 2014?" }, { "role": "assistant", "content": " from datetime import date\n hearing = date(2014, 9, 5) # datetime.date(2014, 9, 5)\n print(hearing.strftime(\"%A\"))\nstdout = Friday\n\nSeptember 5, 2014 is a Friday." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0066028
What commission does Ada make on $11,313 in sales at 4%? Ada earns $452.52.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "452.52", "printed": "452.52", "notation": null}
nlprog_det-setting-0066029
<|start|><|user|> If a 5-year limitations period starts on March 18, 2021, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2021, 3, 18) # datetime.date(2021, 3, 18) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 3, 18) print(expires.isofo...
chat
[ { "role": "user", "content": "If a 5-year limitations period starts on March 18, 2021, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2021, 3, 18) # datetime.date(2021, 3, 18)\nyears = 5\nexpires = accrued.replace(year=accrued.year ...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2026-03-18", "printed": "2026-03-18", "notation": null}
nlprog_det-setting-0066031
<|start|><|user|> 19 tape rolls cost $7 apiece. With 8% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 19 unit_price = 7 subtotal = quantity * unit_price # 133 total = subtotal * (1 + 8 / 100) # 143.64000000000001 print(f"{total:.2f}") ``` Printed result — 143.64 The invoice total is $143.64...
chat
[ { "role": "user", "content": "19 tape rolls cost $7 apiece. With 8% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 19\nunit_price = 7\nsubtotal = quantity * unit_price # 133\ntotal = subtotal * (1 + 8 / 100) # 143.64000000000001\nprint(f\"{total:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "143.64", "printed": "143.64", "notation": null}
nlprog_det-setting-0066032
A 90-mile drive at a steady 60 mph takes how many minutes? Python, step by step: ```python distance = 90 speed = 60 minutes = distance / speed * 60 print(round(minutes)) ``` Result = 90 The trip takes 90 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "90", "printed": "90", "notation": null}
nlprog_det-setting-0066033
A shift runs from 7:45 AM to 1:11 PM. How long is it in minutes? As Python: ```python start = 7 * 60 + 45 # 465 end = 13 * 60 + 11 # 791 print(end - start) ``` What it prints — 326 It is 326 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "326", "printed": "326", "notation": null}
nlprog_det-setting-0066034
<|start|><|user|> Fuel for 300 miles at 24 mpg, with gas at $4.59/gallon: what is the cost?<|eot|> <|assistant|> Fuel costs $57.38.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fuel for 300 miles at 24 mpg, with gas at $4.59/gallon: what is the cost?" }, { "role": "assistant", "content": "Fuel costs $57.38." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "57.38", "printed": "57.38", "notation": null}
nlprog_det-setting-0066035
Buying 6 keyboards at $30 each, 3 ink cartridges at $23 each, someone hands over $250. What change comes back? Python: ```python items = [(6, 30), (3, 23)] total = sum(q * p for q, p in items) # 249 paid = 250 change = paid - total # 1 print(change) ``` (Run result: 1) $1 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0066036
<|start|><|user|> The landlord deducts $120 from a $2,000 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 2000 deductions = [120] refund = deposit - sum(deductions) # 1880 print(refund) ``` Printed = 1880 The refund is $1,880.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $120 from a $2,000 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 2000\ndeductions = [120]\nrefund = deposit - sum(deductions) # 1880\nprint(refund)\n```\nPrinted = 1880\n\nThe refund is $1,...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1880", "printed": "1880", "notation": null}
nlprog_det-setting-0066037
4 boxes hold 12 cables each. After 15 are handed out, how many are left? The Python version: ```python boxes = 4 per_box = 12 given_away = 15 left = boxes * per_box - given_away # 33 print(left) ``` stdout: 33 33 cables are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0066039
A 18 lb package ships at $5 base plus $1.20/lb. What is the charge? Python, step by step: base = 5 per_pound = 1.2 weight = 18 cost = base + per_pound * weight # 26.599999999999998 print(f"{cost:.2f}") The interpreter prints 26.60. Shipping costs $26.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "26.60", "printed": "26.60", "notation": null}
nlprog_det-setting-0066040
An office budget of $20,000 has expenses of $1,579, $1,046. How much of the budget is left? A short script: ```python budget = 20000 expenses = [1579, 1046] left = budget - sum(expenses) # 17375 print(left) ``` (Console output: 17375) The remaining budget is $17,375.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "17375", "printed": "17375", "notation": null}
nlprog_det-setting-0066041
59 of 80 members attended. What percent attended? In code: ```python present = 59 total = 80 percent = present / total * 100 # 73.75 print(round(percent, 1)) ``` (Result: 73.8) 73.8% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "73.8", "printed": "73.8", "notation": null}
nlprog_det-setting-0066042
<|start|><|user|> A hearing is set for October 26, 2011. What day of the week is that?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2011, 10, 26) # datetime.date(2011, 10, 26) print(hearing.strftime("%A")) ``` When run, it prints: Wednesday October 26, 2011 is a Wednesday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing is set for October 26, 2011. What day of the week is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2011, 10, 26) # datetime.date(2011, 10, 26)\nprint(hearing.strftime(\"%A\"))\n```\nWhen run, it prints: ...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0066043
<|start|><|user|> Counting the first and last day, how many days are there from May 19, 2024 through June 11, 2024?<|eot|> <|assistant|> That is 24 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from May 19, 2024 through June 11, 2024?" }, { "role": "assistant", "content": "That is 24 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0066044
<|start|><|system|> Tools you may use: [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}, {"name": "i...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
345
{"gold": "2019-10-26", "printed": "2019-10-26", "notation": null}
nlprog_det-setting-0066045
Walls total 981 sq ft and each can covers 250 sq ft. How many cans should be bought? In code: ```python import math area = 981 coverage = 250 cans = math.ceil(area / coverage) # 4 print(cans) ``` Executing it gives 4, as expected. 4 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0066046
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> To read 260 pages in 10 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 260 days = 10 per_day = pages // days # 26 print(per_day) ``` Output = 26 26 pages a day.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "To read 260 pages in 10 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 260\ndays = 10\nper_day = pages // days # 26\nprint(per_d...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0066047
<|start|><|system|> Be concise.<|eot|> <|user|> At 40 miles per hour, how many minutes does a 260-mile trip take?<|eot|> <|assistant|> ```python distance = 260 speed = 40 minutes = distance / speed * 60 # 390.0 print(round(minutes)) ``` The code prints 390. 390 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "At 40 miles per hour, how many minutes does a 260-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 260\nspeed = 40\nminutes = distance / speed * 60 # 390.0\nprint(round(minutes)...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "390", "printed": "390", "notation": null}
nlprog_det-setting-0066049
What average speed covers 420 miles in 4 hours? As a program: ```python distance = 420 hours = 4 speed = distance / hours # 105.0 print(round(speed)) ``` Executing it gives 105, as expected. The average speed is 105 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "105", "printed": "105", "notation": null}
nlprog_det-setting-0066050
<|start|><|user|> 300 files go into boxes of 40. How many boxes does that take?<|eot|> <|assistant|> 8 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "300 files go into boxes of 40. How many boxes does that take?" }, { "role": "assistant", "content": "8 boxes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0066051
How many weekdays (Monday to Friday) fall after May 13, 2019 up to and including May 21, 2019? We write it as a program: ```python from datetime import date, timedelta start = date(2019, 5, 13) end = date(2019, 5, 21) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0066052
Buying 5 envelopes at $18 each, 4 headsets at $24 each, 6 pens at $24 each, someone hands over $350. What change comes back? We write it as a program: ```python items = [(5, 18), (4, 24), (6, 24)] total = sum(q * p for q, p in items) # 330 paid = 350 change = paid - total # 20 print(change) ``` Output — 20 $20 come...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0066053
A library charges $0.20 per book per day late. What is the fine for 3 books that are 21 days late? Python version: ```python per_day = 0.2 days_late = 21 books = 3 fine = per_day * days_late * books print(f"{fine:.2f}") ``` (Result: 12.60) $12.60 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "12.60", "printed": "12.60", "notation": null}
nlprog_det-setting-0066054
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "calculator", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "get_weather", "descript...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"calculator\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
299
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0066055
<|start|><|user|> A hall has 17 rows of 11 seats, and 8 seats are empty. How many people are seated?<|eot|> <|assistant|> rows = 17 per_row = 11 empty = 8 seated = rows * per_row - empty # 179 print(seated) # printed result: 179 179 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 17 rows of 11 seats, and 8 seats are empty. How many people are seated?" }, { "role": "assistant", "content": " rows = 17\n per_row = 11\n empty = 8\n seated = rows * per_row - empty # 179\n print(seated)\n# printed result: 179\n\n179 peop...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "179", "printed": "179", "notation": null}
nlprog_det-setting-0066057
Straight-line depreciation: cost $45,000, salvage $3,000, 8 years. How much per year? Program: ```python cost = 45000 salvage = 3000 years = 8 per_year = (cost - salvage) / years # 5250.0 print(f"{per_year:.2f}") ``` Program output — 5250.00 $5,250.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "5250.00", "printed": "5250.00", "notation": null}
nlprog_det-setting-0066058
A quorum is 2/3 of the 60 members, rounded up. How many members make a quorum? 40 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0066059
85 of 100 members attended. What percent attended? A few lines of Python do it: ```python present = 85 total = 100 percent = present / total * 100 # 85.0 print(round(percent, 1)) ``` (stdout: 85.0) 85.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "85.0", "printed": "85.0", "notation": null}
nlprog_det-setting-0066060
From a $7,500 retainer, 8 hours at $250/hour have been drawn. What remains? $5,500 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "5500", "printed": "5500", "notation": null}
nlprog_det-setting-0066061
<|start|><|user|> Shipping costs $10 plus $0.75 per pound. What does a 32-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 10 per_pound = 0.75 weight = 32 cost = base + per_pound * weight # 34.0 print(f"{cost:.2f}") ``` # stdout: 34.00 Shipping costs $34.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $10 plus $0.75 per pound. What does a 32-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 10\nper_pound = 0.75\nweight = 32\ncost = base + per_pound * weight # 34.0\nprint(f\"{cost:.2f}\")\n```\n# stdout: 34.00\n\nS...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "34.00", "printed": "34.00", "notation": null}
nlprog_det-setting-0066062
<|start|><|user|> What is the total rent on a 24-month lease at $850 a month?<|eot|> <|assistant|> monthly_rent = 850 months = 24 total = monthly_rent * months # 20400 print(total) The program prints 20400, as expected. In total, $20,400 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 24-month lease at $850 a month?" }, { "role": "assistant", "content": " monthly_rent = 850\n months = 24\n total = monthly_rent * months # 20400\n print(total)\nThe program prints 20400, as expected.\n\nIn total, $20,400 is p...
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "20400", "printed": "20400", "notation": null}
nlprog_det-setting-0066063
<|start|><|system|> Tools (call with JSON): {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "obje...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"translate\", \"description\": \"Translate...
nlprog_det
setting
original
null
deterministic
[]
[]
399
{"gold": "1501", "printed": "1501", "notation": null}
nlprog_det-setting-0066064
A meeting lasted 2 hours and 32 minutes. How many minutes is that? As Python: ```python hours = 2 minutes = 32 total_minutes = hours * 60 + minutes # 152 print(total_minutes) ``` The code prints 152. The meeting lasted 152 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "152", "printed": "152", "notation": null}
nlprog_det-setting-0066065
A shift starts at 12:00 PM and lasts 50 minutes. When does it end? Python code: ```python start = 12 * 60 + 0 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Result = 12:50 PM The shift finishes at 12:50 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "12:50 PM", "printed": "12:50 PM", "notation": null}
nlprog_det-setting-0066066
An attorney bills 2.5 hours at $180 per hour. What is the bill? We can compute it in Python. ```python hours = 2.5 rate = 180 bill = hours * rate # 450.0 print(f"{bill:.2f}") ``` The printout reads: 450.00 The bill is $450.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0066067
<|start|><|user|> Convert 0.8 km to meters.<|eot|> <|assistant|> ```python km = 0.8 meters = km * 1000 # 800.0 print(round(meters)) ``` The code prints 800. That is 800 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 0.8 km to meters." }, { "role": "assistant", "content": "```python\nkm = 0.8\nmeters = km * 1000 # 800.0\nprint(round(meters))\n```\nThe code prints 800.\n\nThat is 800 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0066068
A car travels 536 miles in 2 hours. What is its average speed in miles per hour? We can compute it in Python. ```python distance = 536 hours = 2 speed = distance / hours print(round(speed)) ``` Program output — 268 It averages 268 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "268", "printed": "268", "notation": null}
nlprog_det-setting-0066069
226 files go into boxes of 12. How many boxes does that take? ```python import math files = 226 per_box = 12 boxes = math.ceil(files / per_box) # 19 print(boxes) ``` Run result — 19 It takes 19 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0066070
Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours? One way, in code: rate = 25.0 hours = 52 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 450.0 pay = regular + overtime # 1450.0 print(f"{pay:.2f}") It prints 1450.00, as expe...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "1450.00", "printed": "1450.00", "notation": null}
nlprog_det-setting-0066071
Signe earns a 4% commission on $102,706 of sales. What is the commission? Signe earns $4,108.24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "4108.24", "printed": "4108.24", "notation": null}
nlprog_det-setting-0066072
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> A count moves from 2,500 to 2,000. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> It changed by -20%.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "A count moves from 2,500 to 2,000. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "It changed by -20%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
56
{"gold": "-20", "printed": "-20", "notation": null}
nlprog_det-setting-0066073
Of a $4,000 budget, $1,100 has been spent. What percent is that? Python code: ```python budget = 4000 spent = 1100 percent = spent / budget * 100 # 27.500000000000004 print(round(percent, 1)) ``` Python prints 27.5. 27.5% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "27.5", "printed": "27.5", "notation": null}
nlprog_det-setting-0066075
<|start|><|user|> At an exchange rate of 1.12 USD per CHF, how many USD is 3,027 CHF?<|eot|> <|assistant|> ```python amount = 3027 rate = 1.12 converted = amount * rate # 3390.2400000000002 print(f"{converted:.2f}") ``` Output of the run — 3390.24 It converts to 3,390.24 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.12 USD per CHF, how many USD is 3,027 CHF?" }, { "role": "assistant", "content": "```python\namount = 3027\nrate = 1.12\nconverted = amount * rate # 3390.2400000000002\nprint(f\"{converted:.2f}\")\n```\nOutput of the run — 3390.24\n\nIt con...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "3390.24", "printed": "3390.24", "notation": null}
nlprog_det-setting-0066076
What day of the week is May 1, 2002? As a program: ```python from datetime import date hearing = date(2002, 5, 1) # datetime.date(2002, 5, 1) print(hearing.strftime("%A")) ``` When run, it prints: Wednesday It is a Wednesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0066077
A 6-day trip pays $59 a day for meals and $110 a night for lodging (5 nights). What is the total allowance? Let's compute it with Python. days = 6 meal_rate = 59 lodging_rate = 110 nights = days - 1 # 5 total = days * meal_rate + nights * lodging_rate # 904 print(total) Executing it gives 904...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "904", "printed": "904", "notation": null}