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-0058622
A lease runs for 18 months at $2,875 per month. How much rent is paid over the whole term? Python, step by step: ```python monthly_rent = 2875 months = 18 total = monthly_rent * months # 51750 print(total) ``` This prints 51750. The rent over the term is $51,750.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "51750", "printed": "51750", "notation": null}
nlprog_det-setting-0058623
<|start|><|user|> Convert 3 h 14 min (the length of a deposition) to minutes.<|eot|> <|assistant|> The deposition lasted 194 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 3 h 14 min (the length of a deposition) to minutes." }, { "role": "assistant", "content": "The deposition lasted 194 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "194", "printed": "194", "notation": null}
nlprog_det-setting-0058625
<|start|><|user|> To read 1045 pages in 19 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 1045 days = 19 per_day = pages // days # 55 print(per_day) ``` Executed, it shows 55. 55 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 1045 pages in 19 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 1045\ndays = 19\nper_day = pages // days # 55\nprint(per_day)\n```\nExecuted, it shows 55.\n\n55 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "55", "printed": "55", "notation": null}
nlprog_det-setting-0058626
Scale 100 g of lentils from 4 servings to 3 servings. Let the code do the arithmetic: ```python grams = 100 serves = 4 needed_for = 3 scaled = grams * needed_for // serves # 75 print(scaled) ``` Output: 75 Use 75 g of lentils.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0058627
Equipment costs $45,000, has a salvage value of $2,000, and a useful life of 6 years. What is the straight-line depreciation per year? A few lines of Python do it: cost = 45000 salvage = 2000 years = 6 per_year = (cost - salvage) / years # 7166.666666666667 print(f"{per_year:.2f}") Python prints: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "7166.67", "printed": "7166.67", "notation": null}
nlprog_det-setting-0058628
Counting the first and last day, how many days are there from May 20, 2026 through May 30, 2026? Computing it: ```python from datetime import date first = date(2026, 5, 20) # datetime.date(2026, 5, 20) last = date(2026, 5, 30) # datetime.date(2026, 5, 30) days = (last - first).days + 1 # 11 print(days) ``` stdout —...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0058629
<|start|><|user|> What average speed covers 264 miles in 2 hours?<|eot|> <|assistant|> ```python distance = 264 hours = 2 speed = distance / hours # 132.0 print(round(speed)) ``` When run, it prints: 132 The average speed is 132 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 264 miles in 2 hours?" }, { "role": "assistant", "content": "```python\ndistance = 264\nhours = 2\nspeed = distance / hours # 132.0\nprint(round(speed))\n```\nWhen run, it prints: 132\n\nThe average speed is 132 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "132", "printed": "132", "notation": null}
nlprog_det-setting-0058630
The building opened in 2000. How many years had passed by 2032? Script: ```python start_year = 2000 end_year = 2032 print(end_year - start_year) ``` It outputs 32. 32 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
67
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0058631
Convert -15 °C to Fahrenheit. Translated to Python: ```python celsius = -15 fahrenheit = celsius * 9 / 5 + 32 # 5.0 print(round(fahrenheit)) ``` # run result: 5 That is 5 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0058634
Yara was born on December 27, 1998. How old is Yara on February 18, 2030? A few lines of Python do it: ```python from datetime import date born = date(1998, 12, 27) # datetime.date(1998, 12, 27) on = date(2030, 2, 18) # datetime.date(2030, 2, 18) age = on.year - born.year - ((on.month, on.day) < (born.month, born.da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0058635
A penalty of $100 a day accrues, capped at $5,000. What is owed after 28 days? Code: ```python per_day = 100 days = 28 cap = 5000 fine = min(per_day * days, cap) print(fine) ``` The interpreter prints: 2800 $2,800 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2800", "printed": "2800", "notation": null}
nlprog_det-setting-0058636
Paula lends $5,000 at 5% simple interest per year for 4 years. How much interest is earned? We write it as a program: ```python principal = 5000 rate = 5 / 100 years = 4 interest = principal * rate * years print(f"{interest:.2f}") ``` Execution result: 1000.00 The interest is $1,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0058637
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Rent of $1,250 goes up 5%. What is the new rent?<|eot|> <|assistant|> ```python rent = 1250 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1312.5 print(f"{new_rent:.2f}") ``` Run result — 1312.50 The new rent is $1,312.50.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Rent of $1,250 goes up 5%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 1250\nincrease = 5 / 100 # 0.05\nnew_rent = rent * (1 + increase) # 1312.5\nprint(f\"{n...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1312.50", "printed": "1312.50", "notation": null}
nlprog_det-setting-0058638
<|start|><|user|> How many 2-foot square tiles cover a 11 ft by 3 ft floor (round up)?<|eot|> <|assistant|> It takes 9 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 2-foot square tiles cover a 11 ft by 3 ft floor (round up)?" }, { "role": "assistant", "content": "It takes 9 tiles." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0058639
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> Which is cheaper per unit: 8 for $12.30 (A) or 24 for $31.45 (B)?<|eot|> <|assistant|> ```python pack_a = 12.3 / 8 # 1.5375 pack_b = 31.45 / 24 # 1.3104166666666666 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` (Out: B) Pack B is ...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "Which is cheaper per unit: 8 for $12.30 (A) or 24 for $31.45 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 12.3 / 8 # 1.5375\npack_b = 31.45 / 24 # 1.3104166666666666\nc...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0058640
Fixed costs are $6,000. Each unit sells for $40 and costs $34 to make. How many units must be sold to break even? 1000 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0058641
Papers were served by mail on March 28, 2026. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date? We write it as a program: ```python from datetime import date, timedelta served = date(2026, 3, 28) # datetime.date(2026, 3, 28) response_days = 21 mail_days = 3 due = served + t...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
180
{"gold": "2026-04-21", "printed": "2026-04-21", "notation": null}
nlprog_det-setting-0058642
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|>...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source c...
nlprog_det
setting
original
null
deterministic
[]
[]
287
{"gold": "2026-11-23", "printed": "2026-11-23", "notation": null}
nlprog_det-setting-0058643
Starting from $5,000, the team spends $3,515, $2,255. What remains? Translated to Python: ```python budget = 5000 expenses = [3515, 2255] left = budget - sum(expenses) # -770 print(left) ``` Printed: -770 The remaining budget is -$770.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "-770", "printed": "-770", "notation": null}
nlprog_det-setting-0058644
From 2005 to 2034, how many years is that? Code: ```python start_year = 2005 end_year = 2034 print(end_year - start_year) ``` It outputs: 29 29 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
62
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0058645
Convert -10 °C to Fahrenheit. Script: ```python celsius = -10 fahrenheit = celsius * 9 / 5 + 32 # 14.0 print(round(fahrenheit)) ``` (Output: 14) It equals 14 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0058647
<|start|><|system|> Functions: {"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "translate", "description": "Translate text into an...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}\n{\"n...
nlprog_det
setting
original
null
deterministic
[]
[]
368
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0058648
How many minutes pass from 8:21 AM to 1:06 PM on the same day? We can compute it in Python. ```python start = 8 * 60 + 21 # 501 end = 13 * 60 + 6 # 786 print(end - start) ``` Output — 285 It is 285 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "285", "printed": "285", "notation": null}
nlprog_det-setting-0058649
Tariq lends $1,000 at 2% simple interest per year for 4 years. How much interest is earned? Here is the program. ```python principal = 1000 rate = 2 / 100 # 0.02 years = 4 interest = principal * rate * years # 80.0 print(f"{interest:.2f}") ``` (Output: 80.00) The interest is $80.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "80.00", "printed": "80.00", "notation": null}
nlprog_det-setting-0058650
Reza's scores were 80, 68, 53 and 75. What is the average score? The program: ```python scores = [80, 68, 53, 75] average = sum(scores) // len(scores) # 69 print(average) ``` Result: 69 The mean is 69.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0058651
<|start|><|user|> Scale 450 g of lentils from 8 servings to 12 servings.<|eot|> <|assistant|> ```python grams = 450 serves = 8 needed_for = 12 scaled = grams * needed_for // serves # 675 print(scaled) ``` Console output: 675 675 grams of lentils are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 450 g of lentils from 8 servings to 12 servings." }, { "role": "assistant", "content": "```python\ngrams = 450\nserves = 8\nneeded_for = 12\nscaled = grams * needed_for // serves # 675\nprint(scaled)\n```\nConsole output: 675\n\n675 grams of lentils are neede...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "675", "printed": "675", "notation": null}
nlprog_det-setting-0058652
<|start|><|system|> Available functions (JSON Schema): {"name": "interpreter", "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|> From a $...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"...
nlprog_det
setting
original
null
deterministic
[]
[]
218
{"gold": "3750", "printed": "3750", "notation": null}
nlprog_det-setting-0058653
What does $1,000 grow to in 3 years at 5% annual compounding? Code: ```python principal = 1000 rate = 5 / 100 # 0.05 years = 3 value = principal * (1 + rate) ** years # 1157.6250000000002 print(f"{value:.2f}") ``` The script prints 1157.63, as expected. It is worth $1,157.63.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1157.63", "printed": "1157.63", "notation": null}
nlprog_det-setting-0058654
A storeroom has 264 binders. The office uses 24 a day. How many are left after 4 days? Python code: ```python stock = 264 per_day = 24 days = 4 left = stock - per_day * days # 168 print(left) ``` That prints 168. 168 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "168", "printed": "168", "notation": null}
nlprog_det-setting-0058655
A court charges $10 per request plus $0.50 per page after the first 0 pages. What does a 29-page copy cost? Python version: ```python pages = 29 base = 10 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 24.5 print(f"{cost:.2f}") ``` The run gives: 24.50 The copy costs $24.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "24.50", "printed": "24.50", "notation": null}
nlprog_det-setting-0058656
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Count the days between June 18, 2027 and March 31, 2028.<|eot|> <|assistant|> ```python from datetime import date first = date(2027, 6, 18) # datetime.date(2027, 6, 18) second = date(2028, 3, 31) # datetime.date(2028, 3, 31) print((second - ...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Count the days between June 18, 2027 and March 31, 2028." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2027, 6, 18) # datetime.date(...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "287", "printed": "287", "notation": null}
nlprog_det-setting-0058657
Counting the first and last day, how many days are there from August 4, 2027 through August 7, 2027? A few lines of Python do it: ```python from datetime import date first = date(2027, 8, 4) # datetime.date(2027, 8, 4) last = date(2027, 8, 7) # datetime.date(2027, 8, 7) days = (last - first).days + 1 # 4 print(days...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0058658
<|start|><|user|> Filing fees are $45 per document. What do 3 filings cost?<|eot|> <|assistant|> fee = 45 filings = 3 total = fee * filings # 135 print(total) Output: 135 $135 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $45 per document. What do 3 filings cost?" }, { "role": "assistant", "content": " fee = 45\n filings = 3\n total = fee * filings # 135\n print(total)\nOutput: 135\n\n$135 in filing fees." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
67
{"gold": "135", "printed": "135", "notation": null}
nlprog_det-setting-0058659
A claim accrued on May 3, 2018. The limitations period is 3 years. On what date does it expire? Let the code do the arithmetic: ```python from datetime import date accrued = date(2018, 5, 3) # datetime.date(2018, 5, 3) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 5, 3) print(e...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2021-05-03", "printed": "2021-05-03", "notation": null}
nlprog_det-setting-0058660
What does $10,000 grow to in 4 years at 2% annual compounding? A few lines of Python do it: ```python principal = 10000 rate = 2 / 100 # 0.02 years = 4 value = principal * (1 + rate) ** years # 10824.3216 print(f"{value:.2f}") ``` stdout: 10824.32 The balance is $10,824.32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "10824.32", "printed": "10824.32", "notation": null}
nlprog_det-setting-0058661
$1,000 is invested at 2% compounded yearly. What is it worth after 2 years? Set it up in Python: ```python principal = 1000 rate = 2 / 100 # 0.02 years = 2 value = principal * (1 + rate) ** years # 1040.4 print(f"{value:.2f}") ``` It prints 1040.40, as expected. It is worth $1,040.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1040.40", "printed": "1040.40", "notation": null}
nlprog_det-setting-0058662
With 23 rows of 24 chairs and 26 empty chairs, how many chairs are taken? 526 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "526", "printed": "526", "notation": null}
nlprog_det-setting-0058663
18 of 20 members attended. What percent attended? Attendance was 90.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "90.0", "printed": "90.0", "notation": null}
nlprog_det-setting-0058664
Sales went from 400 to 460. What is the percent change? Python version: ```python old = 400 new = 460 change = (new - old) / old * 100 # 15.0 print(round(change)) ``` stdout = 15 The change is 15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0058666
A claim accrued on July 17, 2013. The limitations period is 3 years. On what date does it expire? Here is the program. from datetime import date accrued = date(2013, 7, 17) # datetime.date(2013, 7, 17) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2016, 7, 17) pri...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "2016-07-17", "printed": "2016-07-17", "notation": null}
nlprog_det-setting-0058667
A bicycle helmet costs $90. It is 40% off. What is the sale price? One way, in code: ```python price = 90 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 54.0 print(f"{sale_price:.2f}") ``` (Program output: 54.00) The sale price is $54.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0058668
6 friends split a $210 bill plus a 20% tip evenly. How much does each pay? The Python version: ```python bill = 210 tip_rate = 20 / 100 # 0.2 people = 6 each = bill * (1 + tip_rate) / people # 42.0 print(f"{each:.2f}") ``` # result: 42.00 The share is $42.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "42.00", "printed": "42.00", "notation": null}
nlprog_det-setting-0058669
Goods bought on October 26, 2021 carry a 18-month warranty. When does it expire? It expires on April 26, 2023.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "2023-04-26", "printed": "2023-04-26", "notation": null}
nlprog_det-setting-0058670
Revenue is $41,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)? Computing it: ```python revenue = 41000 costs = 36000 profit = revenue - costs margin = profit / revenue * 100 print(round(margin, 1)) ``` Run result: 12.2 Profit is 12.2% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "12.2", "printed": "12.2", "notation": null}
nlprog_det-setting-0058671
<|start|><|user|> How many days are there from October 4, 2019 to June 10, 2020?<|eot|> <|assistant|> There are 250 days between the two dates.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many days are there from October 4, 2019 to June 10, 2020?" }, { "role": "assistant", "content": "There are 250 days between the two dates." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0058672
<|start|><|user|> A quorum is 3/5 of the 12 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 12 quorum = math.ceil(members * 3 / 5) # 8 print(quorum) ``` The program prints 8, as expected. That is 8 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 3/5 of the 12 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 12\nquorum = math.ceil(members * 3 / 5) # 8\nprint(quorum)\n```\nThe program prints 8, as expected.\n\nThat is 8 ...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0058673
How many weekdays (Monday to Friday) fall after November 14, 2023 up to and including December 7, 2023? Coded up: ```python from datetime import date, timedelta start = date(2023, 11, 14) end = date(2023, 12, 7) 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
[]
[]
150
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0058674
Each of Joelle's walks burns 300 calories. How many calories over 3 walks? ```python per_session = 300 sessions = 3 total = per_session * sessions # 900 print(total) ``` # result: 900 900 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0058676
How many units at $40 each (variable cost $35) cover $9,000 of fixed costs? In code: ```python import math fixed = 9000 price = 40 variable = 35 units = math.ceil(fixed / (price - variable)) # 1800 print(units) ``` When run, it prints: 1800 1800 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0058677
Buying 6 toner kits at $4 each, 3 notebooks at $5 each, 1 folders at $24 each, someone hands over $100. What change comes back? The program: ```python items = [(6, 4), (3, 5), (1, 24)] total = sum(q * p for q, p in items) # 63 paid = 100 change = paid - total # 37 print(change) ``` (Printed: 37) $37 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0058678
An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 5 months? One way, in code: ```python balance = 12000 monthly_rate = 1 / 100 # 0.01 months = 5 interest = balance * monthly_rate * months # 600.0 print(f"{interest:.2f}") ``` Executing it gives 600.00. $600.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0058679
<|start|><|user|> If a 50-minute seminar begins at 11:00 AM, what time does it finish?<|eot|> <|assistant|> ```python start = 11 * 60 + 0 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Output: 11:50 AM It ends at 11:50 AM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "If a 50-minute seminar begins at 11:00 AM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 11 * 60 + 0\nend = start + 50\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "11:50 AM", "printed": "11:50 AM", "notation": null}
nlprog_det-setting-0058680
Tariq drove 520 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement? Python does the arithmetic: ```python miles = 520 rate = 0.67 reimbursement = miles * rate print(f"{reimbursement:.2f}") ``` Console output: 348.40 The reimbursement is $348.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "348.40", "printed": "348.40", "notation": null}
nlprog_det-setting-0058681
A hearing is set for July 21, 2015. What day of the week is that? July 21, 2015 is a Tuesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0058682
A water bill is $20 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 25 thousand gallons? Python: ```python base = 20 rate = 5.1 used = 25 free = 2 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") ``` Running it prints 137.30, as expected. The bill is $137.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "137.30", "printed": "137.30", "notation": null}
nlprog_det-setting-0058683
<|start|><|user|> Fixed costs are $1,200. Each unit sells for $25 and costs $15 to make. How many units must be sold to break even?<|eot|> <|assistant|> 120 units are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fixed costs are $1,200. Each unit sells for $25 and costs $15 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "120 units are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0058684
After a 40% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? Translated to Python: ```python award = 60000 fee = award * 40 / 100 # 24000.0 remaining = award - fee # 36000.0 per_client = remaining / 2 # 18000.0 print(f"{per_client:.2f}") ``` stdout: 180...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0058685
<|start|><|user|> Each of Jae's bike rides burns 400 calories. How many calories over 7 bike rides?<|eot|> <|assistant|> ```python per_session = 400 sessions = 7 total = per_session * sessions # 2800 print(total) ``` Run output: 2800 That burns 2800 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Jae's bike rides burns 400 calories. How many calories over 7 bike rides?" }, { "role": "assistant", "content": "```python\nper_session = 400\nsessions = 7\ntotal = per_session * sessions # 2800\nprint(total)\n```\nRun output: 2800\n\nThat burns 2800 calori...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2800", "printed": "2800", "notation": null}
nlprog_det-setting-0058687
A library charges $0.20 per book per day late. What is the fine for 3 books that are 21 days late? Coded up: per_day = 0.2 days_late = 21 books = 3 fine = per_day * days_late * books # 12.600000000000001 print(f"{fine:.2f}") Interpreter output: 12.60 $12.60 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "12.60", "printed": "12.60", "notation": null}
nlprog_det-setting-0058688
Prorate $1,800 of monthly rent for 7 days of a 31-day month. The prorated rent is $406.45.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "406.45", "printed": "406.45", "notation": null}
nlprog_det-setting-0058689
<|start|><|system|> Functions: {"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "translate", "description": "Translate text...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]...
nlprog_det
setting
original
null
deterministic
[]
[]
309
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0058690
<|start|><|system|> You can call tools. Available tools: {"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "get_weather", "description": "Get ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
364
{"gold": "1155.00", "printed": "1155.00", "notation": null}
nlprog_det-setting-0058691
<|start|><|user|> Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?<|eot|> <|assistant|> ```python 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}") ``` Python prints 14...
chat
[ { "role": "user", "content": "Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?" }, { "role": "assistant", "content": "```python\nrate = 25.0\nhours = 52\nregular = 40 * rate # 1000.0\novertime = (hours - 40) * rate * 1.5 # 450.0\npay = regular + ...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "1450.00", "printed": "1450.00", "notation": null}
nlprog_det-setting-0058692
<|start|><|user|> A claim accrued on October 12, 2016. The limitations period is 4 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2016, 10, 12) # datetime.date(2016, 10, 12) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2020...
chat
[ { "role": "user", "content": "A claim accrued on October 12, 2016. The limitations period is 4 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2016, 10, 12) # datetime.date(2016, 10, 12)\nyears = 4\nexpires = accrue...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2020-10-12", "printed": "2020-10-12", "notation": null}
nlprog_det-setting-0058693
Which is cheaper per unit: 10 for $7.21 (A) or 18 for $12.84 (B)? A Python solution: pack_a = 7.21 / 10 # 0.721 pack_b = 12.84 / 18 # 0.7133333333333334 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) Execution result: B B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0058694
Liesel was born on July 28, 1976. How old is Liesel on January 12, 2023? We can compute it in Python. ```python from datetime import date born = date(1976, 7, 28) # datetime.date(1976, 7, 28) on = date(2023, 1, 12) # datetime.date(2023, 1, 12) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day))...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0058695
At a 5% tax rate, what is the tax on $187.33? Coded up: ```python price = 187.33 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 9.3665 print(f"{tax:.2f}") ``` Result — 9.37 The tax is $9.37.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "9.37", "printed": "9.37", "notation": null}
nlprog_det-setting-0058696
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> To read 540 pages in 20 days, how many pages per day are needed?<|eot|> <|assistant|> pages = 540 days = 20 per_day = pages // days # 27 print(per_day) Output = 27 That is 27 pages per day.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "To read 540 pages in 20 days, how many pages per day are needed?" }, { "role": "assistant", "content": " pages = 540\n days = 20\n per_day = pages // days # 27\n print(per_day...
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0058697
If a 2-year limitations period starts on February 11, 2023, when does it end? In code: from datetime import date accrued = date(2023, 2, 11) # datetime.date(2023, 2, 11) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 2, 11) print(expires.isoformat()) What it ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "2025-02-11", "printed": "2025-02-11", "notation": null}
nlprog_det-setting-0058698
270 volunteers are split into 3 equal teams. How many are on each team, and how many are left over? 90 each, 0 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "90 each, 0 left over", "printed": "90 each, 0 left over", "notation": null}
nlprog_det-setting-0058699
If a 135-minute class begins at 2:45 PM, what time does it finish? Computing it: ```python start = 14 * 60 + 45 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Run result = 5:00 PM The class finishes at 5:00 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "5:00 PM", "printed": "5:00 PM", "notation": null}
nlprog_det-setting-0058700
<|start|><|user|> Fines run at $100 per day up to a maximum of $2,500. How much after 44 days?<|eot|> <|assistant|> ```python per_day = 100 days = 44 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` stdout: 2500 $2,500 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $100 per day up to a maximum of $2,500. How much after 44 days?" }, { "role": "assistant", "content": "```python\nper_day = 100\ndays = 44\ncap = 2500\nfine = min(per_day * days, cap) # 2500\nprint(fine)\n```\nstdout:\n2500\n\n$2,500 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0058701
A trial runs from July 26, 2027 to July 30, 2027, counting both days. How many calendar days is that? Set it up in Python: ```python from datetime import date first = date(2027, 7, 26) # datetime.date(2027, 7, 26) last = date(2027, 7, 30) # datetime.date(2027, 7, 30) days = (last - first).days + 1 # 5 print(days) `...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0058702
Meals are $64 per day and lodging $175 per night. What is the allowance for 9 days and 8 nights? Python does the arithmetic: ```python days = 9 meal_rate = 64 lodging_rate = 175 nights = days - 1 total = days * meal_rate + nights * lodging_rate print(total) ``` (Printed: 1976) That comes to $1,976.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1976", "printed": "1976", "notation": null}
nlprog_det-setting-0058703
How many meters are in 24.6 kilometers? ```python km = 24.6 meters = km * 1000 print(round(meters)) ``` Run result — 24600 That is 24,600 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "24600", "printed": "24600", "notation": null}
nlprog_det-setting-0058704
A pack of 12 sticky pads sells for $648. What does each cost? A few lines of Python do it: ```python total = 648 count = 12 per_item = total // count # 54 print(per_item) ``` Printed result — 54 The unit price is $54.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0058705
<|start|><|user|> If a 5-year limitations period starts on December 9, 2014, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2014, 12, 9) years = 5 expires = accrued.replace(year=accrued.year + years) print(expires.isoformat()) ``` Out = 2019-12-09 The period expires on Decemb...
chat
[ { "role": "user", "content": "If a 5-year limitations period starts on December 9, 2014, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2014, 12, 9)\nyears = 5\nexpires = accrued.replace(year=accrued.year + years)\nprint(expires.isof...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2019-12-09", "printed": "2019-12-09", "notation": null}
nlprog_det-setting-0058706
<|start|><|user|> The bridge was finished in 2012. How many years had passed by 2051?<|eot|> <|assistant|> ```python start_year = 2012 end_year = 2051 print(end_year - start_year) ``` Executed, it shows: 39 That is 39 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The bridge was finished in 2012. How many years had passed by 2051?" }, { "role": "assistant", "content": "```python\nstart_year = 2012\nend_year = 2051\nprint(end_year - start_year)\n```\nExecuted, it shows: 39\n\nThat is 39 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0058707
8 hours of work at $350 an hour: what is the total charge? As Python: ```python hours = 8 rate = 350 bill = hours * rate # 2800 print(f"{bill:.2f}") ``` Console output — 2800.00 The bill is $2,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "2800.00", "printed": "2800.00", "notation": null}
nlprog_det-setting-0058708
Someone works 24 hours at $18.89 per hour. What are the earnings? The computation: ```python rate = 18.89 hours = 24 earnings = rate * hours # 453.36 print(f"{earnings:.2f}") ``` Program output: 453.36 That earns $453.36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "453.36", "printed": "453.36", "notation": null}
nlprog_det-setting-0058709
<|start|><|user|> A claim accrued on October 23, 2020. The limitations period is 3 years. On what date does it expire?<|eot|> <|assistant|> from datetime import date accrued = date(2020, 10, 23) # datetime.date(2020, 10, 23) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.dat...
chat
[ { "role": "user", "content": "A claim accrued on October 23, 2020. The limitations period is 3 years. On what date does it expire?" }, { "role": "assistant", "content": " from datetime import date\n accrued = date(2020, 10, 23) # datetime.date(2020, 10, 23)\n years = 3\n expires = a...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "2023-10-23", "printed": "2023-10-23", "notation": null}
nlprog_det-setting-0058710
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> A $800 security deposit has deductions of $150, $120 and $150. How much is refunded?<|eot|> <|assistant|> deposit = 800 deductions = [150, 120, 150] refund = deposit - sum(deductions) # 380 print(refund) Executing it gives 380. $...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "A $800 security deposit has deductions of $150, $120 and $150. How much is refunded?" }, { "role": "assistant", "content": " deposit = 800\n deductions = [150, 120, 150]\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "380", "printed": "380", "notation": null}
nlprog_det-setting-0058711
<|start|><|system|> You may call the tools below. {"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> Divide 31 items amon...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
242
{"gold": "7 each, 3 left over", "printed": "7 each, 3 left over", "notation": null}
nlprog_det-setting-0058712
<|start|><|user|> Counting only Monday through Friday, how many business days are there after October 10, 2019 through October 15, 2019?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2019, 10, 10) end = date(2019, 10, 15) count = 0 for k in range(1, (end - start).days + 1): if (st...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after October 10, 2019 through October 15, 2019?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2019, 10, 10)\nend = date(2019, 10, 15)\ncount...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0058713
<|start|><|system|> Available functions (JSON Schema): [{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A library cha...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
244
{"gold": "0.75", "printed": "0.75", "notation": null}
nlprog_det-setting-0058714
An invoice lists 27 staplers at $8 each, plus 10% sales tax. What is the invoice total? Python, step by step: ```python quantity = 27 unit_price = 8 subtotal = quantity * unit_price # 216 total = subtotal * (1 + 10 / 100) # 237.60000000000002 print(f"{total:.2f}") ``` Result = 237.60 The total with tax is $237.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "237.60", "printed": "237.60", "notation": null}
nlprog_det-setting-0058715
An unpaid balance of $12,000 accrues 2% simple interest per month. How much interest accrues in 4 months? $960.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "960.00", "printed": "960.00", "notation": null}
nlprog_det-setting-0058716
6 runs at 350 calories each burn how many calories in total? ```python per_session = 350 sessions = 6 total = per_session * sessions # 2100 print(total) ``` Result: 2100 That burns 2100 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0058717
Of a $8,000 budget, $7,200 has been spent. What percent is that? Program: ```python budget = 8000 spent = 7200 percent = spent / budget * 100 # 90.0 print(round(percent, 1)) ``` Shell output: 90.0 90.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "90.0", "printed": "90.0", "notation": null}
nlprog_det-setting-0058718
<|start|><|user|> A hall has 22 rows of 10 seats, and 35 seats are empty. How many people are seated?<|eot|> <|assistant|> 185 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 22 rows of 10 seats, and 35 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "185 seats are taken." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "185", "printed": "185", "notation": null}
nlprog_det-setting-0058719
A shift runs from 11:27 AM to 1:03 PM. How long is it in minutes? We write it as a program: ```python start = 11 * 60 + 27 end = 13 * 60 + 3 print(end - start) ``` Executing it gives 96. 96 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "96", "printed": "96", "notation": null}
nlprog_det-setting-0058720
<|start|><|user|> Count 14 days forward from May 7, 2021. What date is that?<|eot|> <|assistant|> The period ends on May 21, 2021.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Count 14 days forward from May 7, 2021. What date is that?" }, { "role": "assistant", "content": "The period ends on May 21, 2021." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "2021-05-21", "printed": "2021-05-21", "notation": null}
nlprog_det-setting-0058721
22 toner kits cost $4 apiece. With 5% tax added, what is the total? Coded up: ```python quantity = 22 unit_price = 4 subtotal = quantity * unit_price # 88 total = subtotal * (1 + 5 / 100) # 92.4 print(f"{total:.2f}") ``` # stdout: 92.40 The invoice total is $92.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "92.40", "printed": "92.40", "notation": null}
nlprog_det-setting-0058722
<|start|><|system|> Be brief and correct.<|eot|> <|user|> $2,000 is invested at 5% compounded yearly. What is it worth after 4 years?<|eot|> <|assistant|> It is worth $2,431.01.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "$2,000 is invested at 5% compounded yearly. What is it worth after 4 years?" }, { "role": "assistant", "content": "It is worth $2,431.01." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "2431.01", "printed": "2431.01", "notation": null}
nlprog_det-setting-0058723
Revenue is $36,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)? Program: ```python revenue = 36500 costs = 36000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 1.36986301369863 print(round(margin, 1)) ``` Console output — 1.4 The margin is 1.4%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1.4", "printed": "1.4", "notation": null}
nlprog_det-setting-0058724
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> Find the mean of these test scores: 82, 90, 79 and 73.<|eot|> <|assistant|> scores = [82, 90, 79, 73] average = sum(scores) // len(scores) # 81 print(average) The script prints 81, as expected. The average score is 81.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Find the mean of these test scores: 82, 90, 79 and 73." }, { "role": "assistant", "content": " scores = [82, 90, 79, 73]\n average = sum(scores) // len(scores) # 81\n print(averag...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "81", "printed": "81", "notation": null}
nlprog_det-setting-0058725
<|start|><|user|> Each storage box holds 15 files. How many boxes are needed for 187 files?<|eot|> <|assistant|> 13 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 15 files. How many boxes are needed for 187 files?" }, { "role": "assistant", "content": "13 boxes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0058726
A 225-mile drive at a steady 45 mph takes how many minutes? The program: ```python distance = 225 speed = 45 minutes = distance / speed * 60 # 300.0 print(round(minutes)) ``` The printout reads: 300 The trip takes 300 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0058727
<|start|><|user|> Walls total 788 sq ft and each can covers 300 sq ft. How many cans should be bought?<|eot|> <|assistant|> import math area = 788 coverage = 300 cans = math.ceil(area / coverage) # 3 print(cans) Run result — 3 3 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 788 sq ft and each can covers 300 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": " import math\n area = 788\n coverage = 300\n cans = math.ceil(area / coverage) # 3\n print(cans)\nRun result — 3\n\n3 cans are...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0058728
A lawyer's fee is 33% of a $90,000 recovery. How large is the fee? Written as code: recovery = 90000 rate = 33 / 100 # 0.33 fee = recovery * rate # 29700.0 print(f"{fee:.2f}") Run it and it prints 29700.00. The fee is $29,700.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "29700.00", "printed": "29700.00", "notation": null}