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-0082776
A 5% increase is applied to $1,250 monthly rent. What is the new amount? We write it as a program: ```python rent = 1250 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1312.5 print(f"{new_rent:.2f}") ``` Output: 1312.50 It rises to $1,312.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1312.50", "printed": "1312.50", "notation": null}
nlprog_det-setting-0082777
<|start|><|user|> 3 claimants share a $18,000 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 18000 parties = 3 share = settlement // parties # 6000 print(share) ``` Interpreter output — 6000 Each party receives $6,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 claimants share a $18,000 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 18000\nparties = 3\nshare = settlement // parties # 6000\nprint(share)\n```\nInterpreter output — 6000\n\nEach party receives $6,000."...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "6000", "printed": "6000", "notation": null}
nlprog_det-setting-0082778
Convert 5,454 EUR to USD at 1 EUR = 0.74 USD. As Python: ```python amount = 5454 rate = 0.74 converted = amount * rate # 4035.96 print(f"{converted:.2f}") ``` Out: 4035.96 That is 4,035.96 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "4035.96", "printed": "4035.96", "notation": null}
nlprog_det-setting-0082780
<|start|><|user|> Lucia was born on May 18, 1992. How old is Lucia on December 9, 2026?<|eot|> <|assistant|> from datetime import date born = date(1992, 5, 18) # datetime.date(1992, 5, 18) on = date(2026, 12, 9) # datetime.date(2026, 12, 9) age = on.year - born.year - ((on.month, on.day) < (born.month...
chat
[ { "role": "user", "content": "Lucia was born on May 18, 1992. How old is Lucia on December 9, 2026?" }, { "role": "assistant", "content": " from datetime import date\n born = date(1992, 5, 18) # datetime.date(1992, 5, 18)\n on = date(2026, 12, 9) # datetime.date(2026, 12, 9)\n age ...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0082781
<|start|><|user|> At 2% a month (simple), what interest builds on $12,000 over 3 months?<|eot|> <|assistant|> balance = 12000 monthly_rate = 2 / 100 # 0.02 months = 3 interest = balance * monthly_rate * months # 720.0 print(f"{interest:.2f}") Python prints 720.00. $720.00 accrues.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 2% a month (simple), what interest builds on $12,000 over 3 months?" }, { "role": "assistant", "content": " balance = 12000\n monthly_rate = 2 / 100 # 0.02\n months = 3\n interest = balance * monthly_rate * months # 720.0\n print(f\"{interest:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0082782
What percentage of $8,000 is $600? Python version: ```python budget = 8000 spent = 600 percent = spent / budget * 100 # 7.5 print(round(percent, 1)) ``` Out — 7.5 That is 7.5% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "7.5", "printed": "7.5", "notation": null}
nlprog_det-setting-0082783
A meal costs $54.47. How much is a 18% tip? Program: ```python bill = 54.47 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 9.804599999999999 print(f"{tip:.2f}") ``` Printed: 9.80 Leave $9.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "9.80", "printed": "9.80", "notation": null}
nlprog_det-setting-0082784
<|start|><|user|> To read 612 pages in 12 days, how many pages per day are needed?<|eot|> <|assistant|> 51 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 612 pages in 12 days, how many pages per day are needed?" }, { "role": "assistant", "content": "51 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0082785
Lena earns a 10% commission on $58,994 of sales. What is the commission? Here is the program. ```python sales = 58994 rate = 10 / 100 # 0.1 commission = sales * rate # 5899.400000000001 print(f"{commission:.2f}") ``` This prints 5899.40. Lena earns $5,899.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "5899.40", "printed": "5899.40", "notation": null}
nlprog_det-setting-0082786
What percentage of $4,000 is $2,000? Here is a short program for it. budget = 4000 spent = 2000 percent = spent / budget * 100 # 50.0 print(round(percent, 1)) Output — 50.0 That is 50.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0082787
A lease runs for 36 months at $2,100 per month. How much rent is paid over the whole term? A Python solution: ```python monthly_rent = 2100 months = 36 total = monthly_rent * months # 75600 print(total) ``` When run, it prints 75600, as expected. In total, $75,600 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "75600", "printed": "75600", "notation": null}
nlprog_det-setting-0082788
<|start|><|user|> Of a $10,000 budget, $500 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 10000 spent = 500 percent = spent / budget * 100 # 5.0 print(round(percent, 1)) ``` Run output — 5.0 That is 5.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $10,000 budget, $500 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 10000\nspent = 500\npercent = spent / budget * 100 # 5.0\nprint(round(percent, 1))\n```\nRun output — 5.0\n\nThat is 5.0% of the budget." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "5.0", "printed": "5.0", "notation": null}
nlprog_det-setting-0082789
What average speed covers 502 miles in 1 hours? We write it as a program: ```python distance = 502 hours = 1 speed = distance / hours # 502.0 print(round(speed)) ``` Printed: 502 The average speed is 502 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "502", "printed": "502", "notation": null}
nlprog_det-setting-0082790
<|start|><|user|> How many weekdays (Monday to Friday) fall after March 21, 2018 up to and including April 4, 2018?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2018, 3, 21) end = date(2018, 4, 4) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k))...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after March 21, 2018 up to and including April 4, 2018?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2018, 3, 21)\nend = date(2018, 4, 4)\ncount = 0\nfor k in range(1, ...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0082791
A trial runs from April 1, 2018 to April 15, 2018, counting both days. How many calendar days is that? Written as code: ```python from datetime import date first = date(2018, 4, 1) # datetime.date(2018, 4, 1) last = date(2018, 4, 15) # datetime.date(2018, 4, 15) days = (last - first).days + 1 # 15 print(days) ``` P...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0082792
<|start|><|user|> A pack of 5 labels sells for $110. What does each cost?<|eot|> <|assistant|> ```python total = 110 count = 5 per_item = total // count # 22 print(per_item) ``` # output: 22 Each one costs $22.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 5 labels sells for $110. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 110\ncount = 5\nper_item = total // count # 22\nprint(per_item)\n```\n# output: 22\n\nEach one costs $22." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0082793
3 clients win $72,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? ```python award = 72000 fee = award * 40 / 100 # 28800.0 remaining = award - fee # 43200.0 per_client = remaining / 3 # 14400.0 print(f"{per_client:.2f}") ``` Execution result: 14400.00 Each client gets $14,4...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "14400.00", "printed": "14400.00", "notation": null}
nlprog_det-setting-0082794
A penalty of $100 a day accrues, capped at $2,500. What is owed after 45 days? ```python per_day = 100 days = 45 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` The code prints: 2500 $2,500 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0082795
Kaito lends $5,000 at 5% simple interest per year for 5 years. How much interest is earned? Script: ```python principal = 5000 rate = 5 / 100 # 0.05 years = 5 interest = principal * rate * years # 1250.0 print(f"{interest:.2f}") ``` # run result: 1250.00 It earns $1,250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1250.00", "printed": "1250.00", "notation": null}
nlprog_det-setting-0082797
<|start|><|user|> Convert 4 h 26 min (the length of a hearing) to minutes.<|eot|> <|assistant|> ```python hours = 4 minutes = 26 total_minutes = hours * 60 + minutes # 266 print(total_minutes) ``` Printed: 266 That is 266 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 4 h 26 min (the length of a hearing) to minutes." }, { "role": "assistant", "content": "```python\nhours = 4\nminutes = 26\ntotal_minutes = hours * 60 + minutes # 266\nprint(total_minutes)\n```\nPrinted: 266\n\nThat is 266 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "266", "printed": "266", "notation": null}
nlprog_det-setting-0082798
<|start|><|user|> Parking is $5 per hour with a daily maximum of $15. What do 1 hours cost?<|eot|> <|assistant|> ```python rate = 5 hours = 1 daily_max = 15 cost = min(rate * hours, daily_max) # 5 print(cost) ``` Interpreter output — 5 The charge is $5.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $5 per hour with a daily maximum of $15. What do 1 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 1\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 5\nprint(cost)\n```\nInterpreter output — 5\n\nThe charge is $5." ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0082799
<|start|><|user|> A 14 lb package ships at $5 base plus $1.20/lb. What is the charge?<|eot|> <|assistant|> ```python base = 5 per_pound = 1.2 weight = 14 cost = base + per_pound * weight print(f"{cost:.2f}") ``` (Output: 21.80) The charge is $21.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 14 lb package ships at $5 base plus $1.20/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 5\nper_pound = 1.2\nweight = 14\ncost = base + per_pound * weight\nprint(f\"{cost:.2f}\")\n```\n(Output: 21.80)\n\nThe charge is $21.80." }...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "21.80", "printed": "21.80", "notation": null}
nlprog_det-setting-0082800
334 files go into boxes of 15. How many boxes does that take? Here is the program. ```python import math files = 334 per_box = 15 boxes = math.ceil(files / per_box) # 23 print(boxes) ``` What it prints: 23 It takes 23 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0082801
<|start|><|user|> Walls total 743 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 743 coverage = 350 cans = math.ceil(area / coverage) # 3 print(cans) ``` Running this gives 3. 3 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 743 sq ft and each can covers 350 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 743\ncoverage = 350\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nRunning this gives 3.\n\n3 cans ...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0082802
<|start|><|user|> From 1998 to 2005, how many years is that?<|eot|> <|assistant|> That is 7 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 1998 to 2005, how many years is that?" }, { "role": "assistant", "content": "That is 7 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0082803
From a $10,000 retainer, 14 hours at $275/hour have been drawn. What remains? $6,150 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "6150", "printed": "6150", "notation": null}
nlprog_det-setting-0082804
A service costs $29 a month or $318 a year. How much does the yearly plan save over 12 monthly payments? Let's compute it with Python. ```python monthly = 29 yearly = 318 savings = monthly * 12 - yearly # 30 print(savings) ``` Run it and it prints 30. The annual plan saves $30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0082805
A 60-day notice period begins on August 20, 2025. On what date does it end? Set it up in Python: ```python from datetime import date, timedelta start = date(2025, 8, 20) # datetime.date(2025, 8, 20) end = start + timedelta(days=60) # datetime.date(2025, 10, 19) print(end.isoformat()) ``` When run, it prints: 2025-10...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2025-10-19", "printed": "2025-10-19", "notation": null}
nlprog_det-setting-0082806
Goran earns a 2% commission on $83,799 of sales. What is the commission? Let the code do the arithmetic: ```python sales = 83799 rate = 2 / 100 # 0.02 commission = sales * rate # 1675.98 print(f"{commission:.2f}") ``` The program prints 1675.98. The commission is $1,675.98.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1675.98", "printed": "1675.98", "notation": null}
nlprog_det-setting-0082807
A garage charges $4 an hour, never more than $18 a day. How much for 12 hours? Parking costs $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0082808
After a 40% fee is taken from a $60,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? Let's compute it with Python. ```python award = 60000 fee = award * 40 / 100 remaining = award - fee per_client = remaining / 4 print(f"{per_client:.2f}") ``` Run it and it prints: 9000.00 Each ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0082809
If a 2-year limitations period starts on February 18, 2012, when does it end? Python version: from datetime import date accrued = date(2012, 2, 18) # datetime.date(2012, 2, 18) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2014, 2, 18) print(expires.isoformat()) T...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "2014-02-18", "printed": "2014-02-18", "notation": null}
nlprog_det-setting-0082810
<|start|><|user|> What does $2,000 grow to in 2 years at 5% annual compounding?<|eot|> <|assistant|> ```python principal = 2000 rate = 5 / 100 # 0.05 years = 2 value = principal * (1 + rate) ** years # 2205.0 print(f"{value:.2f}") ``` Running it prints: 2205.00 It is worth $2,205.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $2,000 grow to in 2 years at 5% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 2000\nrate = 5 / 100 # 0.05\nyears = 2\nvalue = principal * (1 + rate) ** years # 2205.0\nprint(f\"{value:.2f}\")\n```\nRunning it prints: 2...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "2205.00", "printed": "2205.00", "notation": null}
nlprog_det-setting-0082811
A garage charges $5 an hour, never more than $15 a day. How much for 11 hours? The computation: ```python rate = 5 hours = 11 daily_max = 15 cost = min(rate * hours, daily_max) print(cost) ``` The code prints 15. The charge is $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0082812
<|start|><|user|> Flooring at $5/sq ft for a 22 ft × 18 ft room costs how much?<|eot|> <|assistant|> The flooring costs $1,980.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Flooring at $5/sq ft for a 22 ft × 18 ft room costs how much?" }, { "role": "assistant", "content": "The flooring costs $1,980." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "1980", "printed": "1980", "notation": null}
nlprog_det-setting-0082813
From 2010 to 2029, how many years is that? 19 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
17
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0082814
Counting the first and last day, how many days are there from December 17, 2028 through January 1, 2029? Here is a short program for it. ```python from datetime import date first = date(2028, 12, 17) # datetime.date(2028, 12, 17) last = date(2029, 1, 1) # datetime.date(2029, 1, 1) days = (last - first).days + 1 # 1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0082816
A shift runs from 7:06 AM to 11:38 AM. How long is it in minutes? Computation in Python: ```python start = 7 * 60 + 6 # 426 end = 11 * 60 + 38 # 698 print(end - start) ``` Out: 272 272 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "272", "printed": "272", "notation": null}
nlprog_det-setting-0082817
<|start|><|user|> How many minutes pass from 11:11 AM to 5:42 PM on the same day?<|eot|> <|assistant|> ```python start = 11 * 60 + 11 # 671 end = 17 * 60 + 42 # 1062 print(end - start) ``` Run it and it prints 391. It is 391 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 11:11 AM to 5:42 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 11 * 60 + 11 # 671\nend = 17 * 60 + 42 # 1062\nprint(end - start)\n```\nRun it and it prints 391.\n\nIt is 391 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "391", "printed": "391", "notation": null}
nlprog_det-setting-0082818
<|start|><|user|> The meal allowance is $69 per day. What is it for 7 days?<|eot|> <|assistant|> ```python days = 7 meal_rate = 69 total = days * meal_rate # 483 print(total) ``` Shell output: 483 That comes to $483.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The meal allowance is $69 per day. What is it for 7 days?" }, { "role": "assistant", "content": "```python\ndays = 7\nmeal_rate = 69\ntotal = days * meal_rate # 483\nprint(total)\n```\nShell output: 483\n\nThat comes to $483." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "483", "printed": "483", "notation": null}
nlprog_det-setting-0082819
An office budget of $20,000 has expenses of $944, $3,512, $2,270. How much of the budget is left? As a program: ```python budget = 20000 expenses = [944, 3512, 2270] left = budget - sum(expenses) # 13274 print(left) ``` stdout = 13274 $13,274 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "13274", "printed": "13274", "notation": null}
nlprog_det-setting-0082820
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> 115 copies of a 29-page packet are printed at $0.15 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 29 copies = 115 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 500.25 print(f"{cost:.2f}") ``` Run it and it pr...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "115 copies of a 29-page packet are printed at $0.15 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 29\ncopies = 115\ncost_per_page = 0.15\nc...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "500.25", "printed": "500.25", "notation": null}
nlprog_det-setting-0082821
<|start|><|user|> Express 49 hours in days and hours.<|eot|> <|assistant|> ```python hours = 49 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` # console output: 2 days and 1 hours That is 2 days and 1 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 49 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 49\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n# console output: 2 days and 1 hours\n\nThat is 2 days and 1 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "2 days and 1 hours", "printed": "2 days and 1 hours", "notation": null}
nlprog_det-setting-0082822
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "convert_units", "...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
398
{"gold": "-50", "printed": "-50", "notation": null}
nlprog_det-setting-0082823
<|start|><|user|> What is -15 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = -15 fahrenheit = celsius * 9 / 5 + 32 # 5.0 print(round(fahrenheit)) ``` It prints: 5 That is 5 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is -15 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = -15\nfahrenheit = celsius * 9 / 5 + 32 # 5.0\nprint(round(fahrenheit))\n```\nIt prints: 5\n\nThat is 5 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0082824
A 90-mile drive at a steady 30 mph takes how many minutes? Here is a short program for it. ```python distance = 90 speed = 30 minutes = distance / speed * 60 # 180.0 print(round(minutes)) ``` It outputs: 180 180 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0082825
Split $1,408 between Femi and Lucia in the ratio 1 to 3. What is Femi's share? Set it up in Python: ```python total = 1408 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 352 print(share_a) ``` stdout: 352 Femi gets $352.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "352", "printed": "352", "notation": null}
nlprog_det-setting-0082826
3 claimants share a $36,000 settlement equally. What is each share? Each share is $12,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "12000", "printed": "12000", "notation": null}
nlprog_det-setting-0082827
The landlord deducts $85 from a $2,000 deposit. What is returned to the tenant? The Python version: ```python deposit = 2000 deductions = [85] refund = deposit - sum(deductions) # 1915 print(refund) ``` Out: 1915 $1,915 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1915", "printed": "1915", "notation": null}
nlprog_det-setting-0082828
A pack of 25 markers sells for $950. What does each cost? As Python: ```python total = 950 count = 25 per_item = total // count # 38 print(per_item) ``` Console output: 38 Each one costs $38.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0082829
Lucia's scores were 90, 75, 90, 97 and 98. What is the average score? One way, in code: ```python scores = [90, 75, 90, 97, 98] average = sum(scores) // len(scores) # 90 print(average) ``` The run gives 90. The mean is 90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "90", "printed": "90", "notation": null}
nlprog_det-setting-0082830
A client paid a $5,000 retainer. The firm has billed 13 hours at $200 per hour. How much of the retainer is left? The program: ```python retainer = 5000 hours = 13 rate = 200 left = retainer - hours * rate # 2400 print(left) ``` Printed: 2400 $2,400 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "2400", "printed": "2400", "notation": null}
nlprog_det-setting-0082831
How many minutes pass from 10:10 AM to 4:27 PM on the same day? Script: start = 10 * 60 + 10 # 610 end = 16 * 60 + 27 # 987 print(end - start) Program output: 377 377 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "377", "printed": "377", "notation": null}
nlprog_det-setting-0082832
<|start|><|user|> Fixed costs are $2,500. Each unit sells for $40 and costs $35 to make. How many units must be sold to break even?<|eot|> <|assistant|> Break-even is 500 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fixed costs are $2,500. Each unit sells for $40 and costs $35 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "Break-even is 500 units." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0082833
Scale 200 g of pasta from 8 servings to 2 servings. Python code: ```python grams = 200 serves = 8 needed_for = 2 scaled = grams * needed_for // serves # 50 print(scaled) ``` Running this gives: 50 50 grams of pasta are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0082834
268 volunteers are split into 4 equal teams. How many are on each team, and how many are left over? 67 each, 0 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "67 each, 0 left over", "printed": "67 each, 0 left over", "notation": null}
nlprog_det-setting-0082835
Sales went from 2,000 to 1,200. What is the percent change? Python: ```python old = 2000 new = 1200 change = (new - old) / old * 100 # -40.0 print(round(change)) ``` Run result = -40 The change is -40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "-40", "printed": "-40", "notation": null}
nlprog_det-setting-0082836
A service costs $19 a month or $216 a year. How much does the yearly plan save over 12 monthly payments? In code: monthly = 19 yearly = 216 savings = monthly * 12 - yearly # 12 print(savings) Result: 12 $12 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0082837
A storeroom has 824 badges. The office uses 26 a day. How many are left after 13 days? Program: ```python stock = 824 per_day = 26 days = 13 left = stock - per_day * days # 486 print(left) ``` Output of the run — 486 486 badges are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "486", "printed": "486", "notation": null}
nlprog_det-setting-0082838
<|start|><|user|> A count moves from 500 to 475. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 500 new = 475 change = (new - old) / old * 100 print(round(change)) ``` That prints -5. The change is -5%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 500 to 475. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 500\nnew = 475\nchange = (new - old) / old * 100\nprint(round(change))\n```\nThat prints -5.\n\nThe change is -5%." ...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "-5", "printed": "-5", "notation": null}
nlprog_det-setting-0082840
A penalty of $25 a day accrues, capped at $5,000. What is owed after 32 days? $800 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0082841
What is the total rent on a 6-month lease at $975 a month? Here is a short program for it. ```python monthly_rent = 975 months = 6 total = monthly_rent * months # 5850 print(total) ``` It prints: 5850 The rent over the term is $5,850.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "5850", "printed": "5850", "notation": null}
nlprog_det-setting-0082842
<|start|><|user|> Each storage box holds 15 files. How many boxes are needed for 874 files?<|eot|> <|assistant|> ```python import math files = 874 per_box = 15 boxes = math.ceil(files / per_box) # 59 print(boxes) ``` Run result — 59 It takes 59 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 15 files. How many boxes are needed for 874 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 874\nper_box = 15\nboxes = math.ceil(files / per_box) # 59\nprint(boxes)\n```\nRun result — 59\n\nIt takes 59 boxes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0082843
<|start|><|user|> A $2,500 security deposit has deductions of $60 and $200. How much is refunded?<|eot|> <|assistant|> deposit = 2500 deductions = [60, 200] refund = deposit - sum(deductions) # 2240 print(refund) Output: 2240 $2,240 is returned.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $2,500 security deposit has deductions of $60 and $200. How much is refunded?" }, { "role": "assistant", "content": " deposit = 2500\n deductions = [60, 200]\n refund = deposit - sum(deductions) # 2240\n print(refund)\nOutput:\n2240\n\n$2,240 is retur...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "2240", "printed": "2240", "notation": null}
nlprog_det-setting-0082844
3 books come back 23 days late, at $0.10 a day each. What is the fine? We write it as a program: ```python per_day = 0.1 days_late = 23 books = 3 fine = per_day * days_late * books # 6.9 print(f"{fine:.2f}") ``` It outputs 6.90. $6.90 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "6.90", "printed": "6.90", "notation": null}
nlprog_det-setting-0082845
Split $1,064 between Noor and Yoko in the ratio 3 to 4. What is Noor's share? Programmatically: ```python total = 1064 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 456 print(share_a) ``` On running, it outputs: 456 Noor gets $456.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "456", "printed": "456", "notation": null}
nlprog_det-setting-0082846
<|start|><|user|> A 3% increase is applied to $1,500 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 1500 increase = 3 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` # output: 1545.00 It rises to $1,545.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 3% increase is applied to $1,500 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 1500\nincrease = 3 / 100\nnew_rent = rent * (1 + increase)\nprint(f\"{new_rent:.2f}\")\n```\n# output: 1545.00\n\nIt rises to $1,545.00....
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1545.00", "printed": "1545.00", "notation": null}
nlprog_det-setting-0082847
<|start|><|user|> Under a 35% contingency agreement, what fee is owed on a $25,000 award?<|eot|> <|assistant|> ```python recovery = 25000 rate = 35 / 100 # 0.35 fee = recovery * rate # 8750.0 print(f"{fee:.2f}") ``` # out: 8750.00 The fee is $8,750.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 35% contingency agreement, what fee is owed on a $25,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 25000\nrate = 35 / 100 # 0.35\nfee = recovery * rate # 8750.0\nprint(f\"{fee:.2f}\")\n```\n# out: 8750.00\n\nThe fee is $8,750.00."...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "8750.00", "printed": "8750.00", "notation": null}
nlprog_det-setting-0082848
<|start|><|user|> At a 9% tax rate, what is the tax on $297.85?<|eot|> <|assistant|> ```python price = 297.85 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 26.8065 print(f"{tax:.2f}") ``` Program output: 26.81 $26.81 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 9% tax rate, what is the tax on $297.85?" }, { "role": "assistant", "content": "```python\nprice = 297.85\ntax_rate = 9 / 100 # 0.09\ntax = price * tax_rate # 26.8065\nprint(f\"{tax:.2f}\")\n```\nProgram output: 26.81\n\n$26.81 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "26.81", "printed": "26.81", "notation": null}
nlprog_det-setting-0082850
A 36-month warranty starts on May 17, 2028. On what date does it end? It expires on May 17, 2031.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "2031-05-17", "printed": "2031-05-17", "notation": null}
nlprog_det-setting-0082851
<|start|><|user|> A workshop lasted 2 hours and 20 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 2 minutes = 20 total_minutes = hours * 60 + minutes # 140 print(total_minutes) ``` Run result = 140 The workshop lasted 140 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A workshop lasted 2 hours and 20 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 2\nminutes = 20\ntotal_minutes = hours * 60 + minutes # 140\nprint(total_minutes)\n```\nRun result = 140\n\nThe workshop lasted 140 minutes...
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "140", "printed": "140", "notation": null}
nlprog_det-setting-0082852
An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 5 months? $300.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0082853
Pack A has 10 items for $10.09. Pack B has 15 items for $6.36. Which has the lower price per item? Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0082854
What simple interest does $20,000 earn at 5% a year over 3 years? Set it up in Python: principal = 20000 rate = 5 / 100 # 0.05 years = 3 interest = principal * rate * years # 3000.0 print(f"{interest:.2f}") Out — 3000.00 It earns $3,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0082855
<|start|><|user|> From a $2,500 retainer, 10 hours at $250/hour have been drawn. What remains?<|eot|> <|assistant|> retainer = 2500 hours = 10 rate = 250 left = retainer - hours * rate print(left) (Printed result: 0) $0 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $2,500 retainer, 10 hours at $250/hour have been drawn. What remains?" }, { "role": "assistant", "content": " retainer = 2500\n hours = 10\n rate = 250\n left = retainer - hours * rate\n print(left)\n(Printed result: 0)\n\n$0 of the retainer is...
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "0", "printed": "0", "notation": null}
nlprog_det-setting-0082856
<|start|><|user|> Ivan earns a 2% commission on $42,762 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 42762 rate = 2 / 100 # 0.02 commission = sales * rate # 855.24 print(f"{commission:.2f}") ``` When run, it prints: 855.24 The commission is $855.24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Ivan earns a 2% commission on $42,762 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 42762\nrate = 2 / 100 # 0.02\ncommission = sales * rate # 855.24\nprint(f\"{commission:.2f}\")\n```\nWhen run, it prints: 855.24\n\nTh...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "855.24", "printed": "855.24", "notation": null}
nlprog_det-setting-0082857
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "compute", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"compute\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python s...
nlprog_det
setting
original
null
deterministic
[]
[]
229
{"gold": "26.00", "printed": "26.00", "notation": null}
nlprog_det-setting-0082858
<|start|><|user|> Split $2,328 between Vera and Carmen in the ratio 1 to 2. What is Vera's share?<|eot|> <|assistant|> Vera gets $776.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $2,328 between Vera and Carmen in the ratio 1 to 2. What is Vera's share?" }, { "role": "assistant", "content": "Vera gets $776." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "776", "printed": "776", "notation": null}
nlprog_det-setting-0082859
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> One can of paint covers 400 square feet. How many cans are needed for 538 square feet of wall?<|eot|> <|assistant|> Buy 2 cans.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "One can of paint covers 400 square feet. How many cans are needed for 538 square feet of wall?" }, { "role": "assistant", "content": "Buy 2 cans." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0082860
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "calc", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> ...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calc\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source...
nlprog_det
setting
original
null
deterministic
[]
[]
232
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0082861
Find the mean of these test scores: 69, 87, 92 and 92. Let the code do the arithmetic: ```python scores = [69, 87, 92, 92] average = sum(scores) // len(scores) # 85 print(average) ``` The interpreter prints 85. The mean is 85.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "85", "printed": "85", "notation": null}
nlprog_det-setting-0082862
Scale 200 g of rice from 2 servings to 4 servings. As Python: grams = 200 serves = 2 needed_for = 4 scaled = grams * needed_for // serves # 400 print(scaled) Output: 400 400 grams of rice are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0082863
<|start|><|user|> Notice was given on March 2, 2022. The notice period is 10 days. When does it run out?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2022, 3, 2) # datetime.date(2022, 3, 2) end = start + timedelta(days=10) # datetime.date(2022, 3, 12) print(end.isoformat()) s...
chat
[ { "role": "user", "content": "Notice was given on March 2, 2022. The notice period is 10 days. When does it run out?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2022, 3, 2) # datetime.date(2022, 3, 2)\n end = start + timedelta(days=10) #...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "2022-03-12", "printed": "2022-03-12", "notation": null}
nlprog_det-setting-0082864
Convert 2 h 28 min (the length of a hearing) to minutes. Program: ```python hours = 2 minutes = 28 total_minutes = hours * 60 + minutes # 148 print(total_minutes) ``` # console output: 148 The hearing lasted 148 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "148", "printed": "148", "notation": null}
nlprog_det-setting-0082865
Parking is $3 per hour with a daily maximum of $20. What do 10 hours cost? A few lines of Python do it: ```python rate = 3 hours = 10 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` This prints 20. The charge is $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0082866
37 calendars cost $7 apiece. With 5% tax added, what is the total? The program: ```python quantity = 37 unit_price = 7 subtotal = quantity * unit_price # 259 total = subtotal * (1 + 5 / 100) # 271.95 print(f"{total:.2f}") ``` Out = 271.95 The total with tax is $271.95.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "271.95", "printed": "271.95", "notation": null}
nlprog_det-setting-0082867
<|start|><|user|> Monthly: $12. Annual: $132. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 12 yearly = 132 savings = monthly * 12 - yearly print(savings) ``` Console: 12 $12 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $12. Annual: $132. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 12\nyearly = 132\nsavings = monthly * 12 - yearly\nprint(savings)\n```\nConsole:\n12\n\n$12 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0082868
Fixed costs are $4,000. Each unit sells for $40 and costs $36 to make. How many units must be sold to break even? Coded up: ```python import math fixed = 4000 price = 40 variable = 36 units = math.ceil(fixed / (price - variable)) # 1000 print(units) ``` Run output: 1000 Break-even is 1000 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0082869
Convert 1,811 USD to CAD at 1 USD = 0.92 CAD. Let's compute it with Python. ```python amount = 1811 rate = 0.92 converted = amount * rate # 1666.1200000000001 print(f"{converted:.2f}") ``` The printout reads: 1666.12 It converts to 1,666.12 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "1666.12", "printed": "1666.12", "notation": null}
nlprog_det-setting-0082870
Monthly rent is $2,400. A tenant moves in with 9 days left in a 31-day month. What is the prorated rent? Let the code do the arithmetic: ```python rent = 2400 days_in_month = 31 days_occupied = 9 prorated = rent * days_occupied / days_in_month # 696.7741935483871 print(f"{prorated:.2f}") ``` (Program output: 696.77) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "696.77", "printed": "696.77", "notation": null}
nlprog_det-setting-0082871
A training session lasted 2 hours and 20 minutes. How many minutes is that? The Python version: ```python hours = 2 minutes = 20 total_minutes = hours * 60 + minutes # 140 print(total_minutes) ``` Out — 140 The training session lasted 140 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "140", "printed": "140", "notation": null}
nlprog_det-setting-0082872
<|start|><|user|> A $1,000 security deposit has deductions of $85, $120 and $85. How much is refunded?<|eot|> <|assistant|> ```python deposit = 1000 deductions = [85, 120, 85] refund = deposit - sum(deductions) # 710 print(refund) ``` On running, it outputs 710. The refund is $710.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $1,000 security deposit has deductions of $85, $120 and $85. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 1000\ndeductions = [85, 120, 85]\nrefund = deposit - sum(deductions) # 710\nprint(refund)\n```\nOn running, it outputs 7...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "710", "printed": "710", "notation": null}
nlprog_det-setting-0082873
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> One can of paint covers 400 square feet. How many cans are needed for 1200 square feet of wall?<|eot|> <|assistant|> ```python import math area = 1200 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` Output — 3 3 cans are needed.<|...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "One can of paint covers 400 square feet. How many cans are needed for 1200 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1200\ncoverage = 400\...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0082874
What does $2,000 grow to in 5 years at 2% annual compounding? ```python principal = 2000 rate = 2 / 100 # 0.02 years = 5 value = principal * (1 + rate) ** years # 2208.1616064 print(f"{value:.2f}") ``` stdout: 2208.16 It is worth $2,208.16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "2208.16", "printed": "2208.16", "notation": null}
nlprog_det-setting-0082875
A 325-mile drive at a steady 65 mph takes how many minutes? ```python distance = 325 speed = 65 minutes = distance / speed * 60 # 300.0 print(round(minutes)) ``` Execution prints 300, as expected. 300 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0082876
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Starting with 1855 flash drives and using 25 per day, how many remain after 19 days?<|eot|> <|assistant|> ```python stock = 1855 per_day = 25 days = 19 left = stock - per_day * days # 1380 print(left) ``` Python prints 1380. 1380 remain.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Starting with 1855 flash drives and using 25 per day, how many remain after 19 days?" }, { "role": "assistant", "content": "```python\nstock = 1855\nper_day = 25\ndays = 19\nleft = stock - per_da...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1380", "printed": "1380", "notation": null}
nlprog_det-setting-0082877
At $0.70 per mile, what is the reimbursement for 282 miles? Computation in Python: ```python miles = 282 rate = 0.7 reimbursement = miles * rate # 197.39999999999998 print(f"{reimbursement:.2f}") ``` Run result = 197.40 The reimbursement is $197.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "197.40", "printed": "197.40", "notation": null}
nlprog_det-setting-0082878
Dara buys 6 boxes of 24 paper reams each and gives away 2 paper reams. How many paper reams are left? ```python boxes = 6 per_box = 24 given_away = 2 left = boxes * per_box - given_away # 142 print(left) ``` When run, it prints: 142 That leaves 142 paper reams.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "142", "printed": "142", "notation": null}
nlprog_det-setting-0082879
<|start|><|system|> Available functions (JSON Schema): {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "convert_units", "description": "Conv...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\"...
nlprog_det
setting
original
null
deterministic
[]
[]
437
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0082880
30 calendars cost $7 apiece. With 6% tax added, what is the total? Python code: quantity = 30 unit_price = 7 subtotal = quantity * unit_price # 210 total = subtotal * (1 + 6 / 100) # 222.60000000000002 print(f"{total:.2f}") The program prints 222.60. The invoice total is $222.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "222.60", "printed": "222.60", "notation": null}