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-0076779
Convert -10 °C to Fahrenheit. In code: ```python celsius = -10 fahrenheit = celsius * 9 / 5 + 32 # 14.0 print(round(fahrenheit)) ``` Run result — 14 That is 14 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0076780
A $2,400 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? As a program: principal = 2400 annual_rate = 10 / 100 # 0.1 months = 36 interest = principal * annual_rate * months / 12 # 720.0 payment = (principal...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "86.67", "printed": "86.67", "notation": null}
nlprog_det-setting-0076781
How much sales tax is charged on a $325.75 purchase at 5%? Python version: ```python price = 325.75 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 16.2875 print(f"{tax:.2f}") ``` The program prints 16.29. The tax is $16.29.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "16.29", "printed": "16.29", "notation": null}
nlprog_det-setting-0076783
An office budget of $5,000 has expenses of $3,307, $1,859, $958. How much of the budget is left? One way, in code: ```python budget = 5000 expenses = [3307, 1859, 958] left = budget - sum(expenses) # -1124 print(left) ``` Printed result: -1124 The remaining budget is -$1,124.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "-1124", "printed": "-1124", "notation": null}
nlprog_det-setting-0076784
The meal allowance is $74 per day. What is it for 7 days? Set it up in Python: ```python days = 7 meal_rate = 74 total = days * meal_rate # 518 print(total) ``` (Run result: 518) That comes to $518.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "518", "printed": "518", "notation": null}
nlprog_det-setting-0076785
Split $975 between Rosa and Bruna in the ratio 1 to 2. What is Rosa's share? Python makes this quick: ```python total = 975 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 325 print(share_a) ``` Run output — 325 Rosa gets $325.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "325", "printed": "325", "notation": null}
nlprog_det-setting-0076786
<|start|><|user|> How many whole days and leftover hours are in 263 hours?<|eot|> <|assistant|> ```python hours = 263 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` # result: 10 days and 23 hours That is 10 days and 23 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 263 hours?" }, { "role": "assistant", "content": "```python\nhours = 263\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n# result: 10 days and 23 hours\n\nThat is 10 days and 23 hours." ...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "10 days and 23 hours", "printed": "10 days and 23 hours", "notation": null}
nlprog_det-setting-0076787
At 1.5% a month (simple), what interest builds on $4,000 over 5 months? ```python balance = 4000 monthly_rate = 1.5 / 100 # 0.015 months = 5 interest = balance * monthly_rate * months # 300.0 print(f"{interest:.2f}") ``` The script prints 300.00, as expected. The interest is $300.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0076788
<|start|><|system|> Tools you may use: [{"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "convert_units", "description": "Convert a quan...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"run_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}, {...
nlprog_det
setting
original
null
deterministic
[]
[]
412
{"gold": "1268.00", "printed": "1268.00", "notation": null}
nlprog_det-setting-0076789
<|start|><|system|> You can call tools. Available tools: [{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> A 14 × 7 foot patio is ti...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
241
{"gold": "98", "printed": "98", "notation": null}
nlprog_det-setting-0076790
What percentage of $10,000 is $800? Code: ```python budget = 10000 spent = 800 percent = spent / budget * 100 # 8.0 print(round(percent, 1)) ``` Execution prints 8.0, as expected. That is 8.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "8.0", "printed": "8.0", "notation": null}
nlprog_det-setting-0076791
<|start|><|user|> What average speed covers 174 miles in 2 hours?<|eot|> <|assistant|> ```python distance = 174 hours = 2 speed = distance / hours # 87.0 print(round(speed)) ``` The script prints: 87 The average speed is 87 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 174 miles in 2 hours?" }, { "role": "assistant", "content": "```python\ndistance = 174\nhours = 2\nspeed = distance / hours # 87.0\nprint(round(speed))\n```\nThe script prints: 87\n\nThe average speed is 87 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "87", "printed": "87", "notation": null}
nlprog_det-setting-0076792
<|start|><|user|> A garage charges $2 an hour, never more than $24 a day. How much for 8 hours?<|eot|> <|assistant|> ```python rate = 2 hours = 8 daily_max = 24 cost = min(rate * hours, daily_max) # 16 print(cost) ``` Running this gives: 16 The charge is $16.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $2 an hour, never more than $24 a day. How much for 8 hours?" }, { "role": "assistant", "content": "```python\nrate = 2\nhours = 8\ndaily_max = 24\ncost = min(rate * hours, daily_max) # 16\nprint(cost)\n```\nRunning this gives: 16\n\nThe charge is ...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0076793
<|start|><|user|> $5,000 is invested at 2% compounded yearly. What is it worth after 5 years?<|eot|> <|assistant|> principal = 5000 rate = 2 / 100 # 0.02 years = 5 value = principal * (1 + rate) ** years # 5520.404016 print(f"{value:.2f}") Run result: 5520.40 The balance is $5,520.40.<|eot|> <|en...
chat
[ { "role": "user", "content": "$5,000 is invested at 2% compounded yearly. What is it worth after 5 years?" }, { "role": "assistant", "content": " principal = 5000\n rate = 2 / 100 # 0.02\n years = 5\n value = principal * (1 + rate) ** years # 5520.404016\n print(f\"{value:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "5520.40", "printed": "5520.40", "notation": null}
nlprog_det-setting-0076794
Convert 1,243 EUR to USD at 1 EUR = 1.12 USD. In Python: amount = 1243 rate = 1.12 converted = amount * rate print(f"{converted:.2f}") (Run result: 1392.16) It converts to 1,392.16 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "1392.16", "printed": "1392.16", "notation": null}
nlprog_det-setting-0076795
<|start|><|user|> An office budget of $20,000 has expenses of $3,166, $1,205, $1,387. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 20000 expenses = [3166, 1205, 1387] left = budget - sum(expenses) # 14242 print(left) ``` Out: 14242 $14,242 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $20,000 has expenses of $3,166, $1,205, $1,387. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 20000\nexpenses = [3166, 1205, 1387]\nleft = budget - sum(expenses) # 14242\nprint(left)\n```\nOut: 14242\...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "14242", "printed": "14242", "notation": null}
nlprog_det-setting-0076796
A car travels 196 miles in 2 hours. What is its average speed in miles per hour? As Python: ```python distance = 196 hours = 2 speed = distance / hours # 98.0 print(round(speed)) ``` Shell output: 98 It averages 98 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "98", "printed": "98", "notation": null}
nlprog_det-setting-0076797
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> Rania and Grace share $938 in the ratio 3:4. How much does Rania get?<|eot|> <|assistant|> Rania gets $402.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "Rania and Grace share $938 in the ratio 3:4. How much does Rania get?" }, { "role": "assistant", "content": "Rania gets $402." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "402", "printed": "402", "notation": null}
nlprog_det-setting-0076798
An attorney bills 2.5 hours at $150 per hour. What is the bill? We write it as a program: ```python hours = 2.5 rate = 150 bill = hours * rate # 375.0 print(f"{bill:.2f}") ``` The script prints 375.00. That comes to $375.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "375.00", "printed": "375.00", "notation": null}
nlprog_det-setting-0076799
<|start|><|user|> Convert 5 h 15 min (the length of a deposition) to minutes.<|eot|> <|assistant|> ```python hours = 5 minutes = 15 total_minutes = hours * 60 + minutes # 315 print(total_minutes) ``` The script prints 315. That is 315 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 5 h 15 min (the length of a deposition) to minutes." }, { "role": "assistant", "content": "```python\nhours = 5\nminutes = 15\ntotal_minutes = hours * 60 + minutes # 315\nprint(total_minutes)\n```\nThe script prints 315.\n\nThat is 315 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "315", "printed": "315", "notation": null}
nlprog_det-setting-0076800
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> A 24-month warranty starts on July 5, 2027. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2027, 7, 5) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years,...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "A 24-month warranty starts on July 5, 2027. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2027, 7, 5)\nmonths = 24\n...
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "2029-07-05", "printed": "2029-07-05", "notation": null}
nlprog_det-setting-0076801
<|start|><|system|> You can call tools. Available tools: [{"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source c...
nlprog_det
setting
original
null
deterministic
[]
[]
257
{"gold": "290.00", "printed": "290.00", "notation": null}
nlprog_det-setting-0076802
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name":...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"str...
nlprog_det
setting
original
null
deterministic
[]
[]
373
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0076803
<|start|><|system|> Tools you may use: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "python_exec", "description": "Runs a short Python s...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\...
nlprog_det
setting
original
null
deterministic
[]
[]
346
{"gold": "47.50", "printed": "47.50", "notation": null}
nlprog_det-setting-0076805
<|start|><|user|> A recipe for 8 people uses 450 grams of pasta. How many grams are needed for 4 people?<|eot|> <|assistant|> ```python grams = 450 serves = 8 needed_for = 4 scaled = grams * needed_for // serves # 225 print(scaled) ``` Execution result — 225 Use 225 g of pasta.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 8 people uses 450 grams of pasta. How many grams are needed for 4 people?" }, { "role": "assistant", "content": "```python\ngrams = 450\nserves = 8\nneeded_for = 4\nscaled = grams * needed_for // serves # 225\nprint(scaled)\n```\nExecution result — 225...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0076806
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "calculator", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"calculator\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Pytho...
nlprog_det
setting
original
null
deterministic
[]
[]
234
{"gold": "66", "printed": "66", "notation": null}
nlprog_det-setting-0076807
A car travels 356 miles in 2 hours. What is its average speed in miles per hour? As Python: distance = 356 hours = 2 speed = distance / hours # 178.0 print(round(speed)) When run, it prints 178, as expected. The average speed is 178 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "178", "printed": "178", "notation": null}
nlprog_det-setting-0076808
A $30,000 grant pays $6,000 up front and the rest in 6 equal installments. How large is each installment? Written as code: ```python grant = 30000 up_front = 6000 installments = 6 each = (grant - up_front) / installments print(f"{each:.2f}") ``` (Console output: 4000.00) Each installment is $4,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0076810
Notice was given on July 7, 2025. The notice period is 14 days. When does it run out? Written as code: ```python from datetime import date, timedelta start = date(2025, 7, 7) # datetime.date(2025, 7, 7) end = start + timedelta(days=14) # datetime.date(2025, 7, 21) print(end.isoformat()) ``` Console: 2025-07-21 It e...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2025-07-21", "printed": "2025-07-21", "notation": null}
nlprog_det-setting-0076811
<|start|><|system|> Tools (call with JSON): [{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "get_weather", "description"...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
282
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0076812
At 2% a month (simple), what interest builds on $2,500 over 5 months? ```python balance = 2500 monthly_rate = 2 / 100 # 0.02 months = 5 interest = balance * monthly_rate * months # 250.0 print(f"{interest:.2f}") ``` Output: 250.00 $250.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "250.00", "printed": "250.00", "notation": null}
nlprog_det-setting-0076813
At 45 miles per hour, how many minutes does a 270-mile trip take? A Python solution: ```python distance = 270 speed = 45 minutes = distance / speed * 60 # 360.0 print(round(minutes)) ``` The script prints: 360 The trip takes 360 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0076814
<|start|><|system|> Functions: [{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "search_cases", "description": "Searc...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"scri...
nlprog_det
setting
original
null
deterministic
[]
[]
377
{"gold": "1625.00", "printed": "1625.00", "notation": null}
nlprog_det-setting-0076815
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> Copies cost $5 plus $0.10 for each page beyond 0. How much for 78 pages?<|eot|> <|assistant|> ```python pages = 78 base = 5 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 12.8 print(f"{cost:.2f}") ``` This pri...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "Copies cost $5 plus $0.10 for each page beyond 0. How much for 78 pages?" }, { "role": "assistant", "content": "```python\npages = 78\nbase = 5\nper_page = 0.1\nfree_pages = 0\ncost...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "12.80", "printed": "12.80", "notation": null}
nlprog_det-setting-0076816
What simple interest does $5,000 earn at 5% a year over 2 years? In Python: ```python principal = 5000 rate = 5 / 100 # 0.05 years = 2 interest = principal * rate * years # 500.0 print(f"{interest:.2f}") ``` # run result: 500.00 The interest is $500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "500.00", "printed": "500.00", "notation": null}
nlprog_det-setting-0076817
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 49 hours? Python: ```python rate = 18.5 hours = 49 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 249.75 pay = regular + overtime # 989.75 print(f"{pay:.2f}") ``` Execution result: 989.75 Ada earns $989.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "989.75", "printed": "989.75", "notation": null}
nlprog_det-setting-0076818
Divide 141 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain? The answer: 28 each, 1 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "28 each, 1 left over", "printed": "28 each, 1 left over", "notation": null}
nlprog_det-setting-0076819
<|start|><|user|> At an exchange rate of 0.92 EUR per USD, how many EUR is 3,737 USD?<|eot|> <|assistant|> It converts to 3,438.04 EUR.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 0.92 EUR per USD, how many EUR is 3,737 USD?" }, { "role": "assistant", "content": "It converts to 3,438.04 EUR." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "3438.04", "printed": "3438.04", "notation": null}
nlprog_det-setting-0076821
A claim accrued on December 6, 2020. The limitations period is 4 years. On what date does it expire? In Python: from datetime import date accrued = date(2020, 12, 6) # datetime.date(2020, 12, 6) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 12, 6) print(expi...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "2024-12-06", "printed": "2024-12-06", "notation": null}
nlprog_det-setting-0076822
Pilar's scores were 95, 60, 58, 80 and 97. What is the average score? Python version: ```python scores = [95, 60, 58, 80, 97] average = sum(scores) // len(scores) # 78 print(average) ``` Result = 78 The mean is 78.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0076824
At an exchange rate of 0.92 CAD per USD, how many CAD is 1,053 USD? Computation in Python: ```python amount = 1053 rate = 0.92 converted = amount * rate # 968.76 print(f"{converted:.2f}") ``` Running it prints 968.76, as expected. It converts to 968.76 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "968.76", "printed": "968.76", "notation": null}
nlprog_det-setting-0076825
<|start|><|user|> Divide 22 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 22 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The script prints 2 each, 6 left over...
chat
[ { "role": "user", "content": "Divide 22 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 22\ngroups = 8\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remai...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2 each, 6 left over", "printed": "2 each, 6 left over", "notation": null}
nlprog_det-setting-0076826
Monthly: $19. Annual: $204. What is saved per year by paying annually? Computing it: ```python monthly = 19 yearly = 204 savings = monthly * 12 - yearly # 24 print(savings) ``` Out = 24 The annual plan saves $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0076827
Split $1,464 between Liesel and Kaito in the ratio 3 to 5. What is Liesel's share? Programmatically: ```python total = 1464 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 549 print(share_a) ``` The printout reads: 549 Liesel's share is $549.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "549", "printed": "549", "notation": null}
nlprog_det-setting-0076828
<|start|><|system|> Tool definitions: {"name": "compute", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> A penalty of $25 a day accrues...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"compute\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"prog...
nlprog_det
setting
original
null
deterministic
[]
[]
209
{"gold": "350", "printed": "350", "notation": null}
nlprog_det-setting-0076829
$2,000 is invested at 5% compounded yearly. What is it worth after 4 years? The Python version: ```python principal = 2000 rate = 5 / 100 # 0.05 years = 4 value = principal * (1 + rate) ** years # 2431.0125000000003 print(f"{value:.2f}") ``` The run gives 2431.01. The balance is $2,431.01.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "2431.01", "printed": "2431.01", "notation": null}
nlprog_det-setting-0076830
With 10% off, what does a $90 filing cabinet cost? ```python price = 90 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 81.0 print(f"{sale_price:.2f}") ``` The program prints 81.00. It costs $81.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "81.00", "printed": "81.00", "notation": null}
nlprog_det-setting-0076831
<|start|><|user|> Pack A has 6 items for $13.12. Pack B has 20 items for $19.10. Which has the lower price per item?<|eot|> <|assistant|> ```python pack_a = 13.12 / 6 # 2.1866666666666665 pack_b = 19.1 / 20 # 0.9550000000000001 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Executed, it shows B. ...
chat
[ { "role": "user", "content": "Pack A has 6 items for $13.12. Pack B has 20 items for $19.10. Which has the lower price per item?" }, { "role": "assistant", "content": "```python\npack_a = 13.12 / 6 # 2.1866666666666665\npack_b = 19.1 / 20 # 0.9550000000000001\ncheaper = \"A\" if pack_a < pack_...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0076832
<|start|><|user|> The meal allowance is $69 per day. What is it for 6 days?<|eot|> <|assistant|> ```python days = 6 meal_rate = 69 total = days * meal_rate print(total) ``` The printout reads: 414 The allowance is $414.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The meal allowance is $69 per day. What is it for 6 days?" }, { "role": "assistant", "content": "```python\ndays = 6\nmeal_rate = 69\ntotal = days * meal_rate\nprint(total)\n```\nThe printout reads: 414\n\nThe allowance is $414." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "414", "printed": "414", "notation": null}
nlprog_det-setting-0076833
Pilar lends $8,000 at 8% simple interest per year for 4 years. How much interest is earned? principal = 8000 rate = 8 / 100 # 0.08 years = 4 interest = principal * rate * years # 2560.0 print(f"{interest:.2f}") stdout — 2560.00 It earns $2,560.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "2560.00", "printed": "2560.00", "notation": null}
nlprog_det-setting-0076834
Arjun lends $2,500 at 5% simple interest per year for 6 years. How much interest is earned? Computing it: ```python principal = 2500 rate = 5 / 100 # 0.05 years = 6 interest = principal * rate * years # 750.0 print(f"{interest:.2f}") ``` The run gives: 750.00 It earns $750.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "750.00", "printed": "750.00", "notation": null}
nlprog_det-setting-0076835
A $2,400 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? A Python solution: ```python principal = 2400 annual_rate = 10 / 100 # 0.1 months = 36 interest = principal * annual_rate * months / 12 # 720.0 payment = (principal + in...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "86.67", "printed": "86.67", "notation": null}
nlprog_det-setting-0076836
<|start|><|user|> Walls total 354 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|> <|assistant|> 2 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 354 sq ft and each can covers 250 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "2 cans are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0076838
<|start|><|user|> Counting the first and last day, how many days are there from April 27, 2023 through May 8, 2023?<|eot|> <|assistant|> ```python from datetime import date first = date(2023, 4, 27) # datetime.date(2023, 4, 27) last = date(2023, 5, 8) # datetime.date(2023, 5, 8) days = (last - first).days + 1 # 12 p...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from April 27, 2023 through May 8, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2023, 4, 27) # datetime.date(2023, 4, 27)\nlast = date(2023, 5, 8) # datetim...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0076839
An invoice lists 24 sticky pads at $2 each, plus 7% sales tax. What is the invoice total? A short script: ```python quantity = 24 unit_price = 2 subtotal = quantity * unit_price total = subtotal * (1 + 7 / 100) print(f"{total:.2f}") ``` Out = 51.36 The total with tax is $51.36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "51.36", "printed": "51.36", "notation": null}
nlprog_det-setting-0076840
What is a 20% tip on a $62.43 bill? The tip is $12.49.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "12.49", "printed": "12.49", "notation": null}
nlprog_det-setting-0076841
A 6-day trip pays $69 a day for meals and $140 a night for lodging (5 nights). What is the total allowance? Set it up in Python: ```python days = 6 meal_rate = 69 lodging_rate = 140 nights = days - 1 # 5 total = days * meal_rate + nights * lodging_rate # 1114 print(total) ``` Output = 1114 The allowance is $1,114.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "1114", "printed": "1114", "notation": null}
nlprog_det-setting-0076842
To read 570 pages in 19 days, how many pages per day are needed? The Python version: ```python pages = 570 days = 19 per_day = pages // days # 30 print(per_day) ``` The interpreter prints 30. That is 30 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0076843
<|start|><|user|> Express 340 hours in days and hours.<|eot|> <|assistant|> 340 hours is 14 days and 4 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 340 hours in days and hours." }, { "role": "assistant", "content": "340 hours is 14 days and 4 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "14 days and 4 hours", "printed": "14 days and 4 hours", "notation": null}
nlprog_det-setting-0076844
A kettle costs $60. It is 10% off. What is the sale price? Computation in Python: ```python price = 60 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 54.0 print(f"{sale_price:.2f}") ``` stdout — 54.00 It costs $54.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0076847
<|start|><|user|> Each storage box holds 20 files. How many boxes are needed for 213 files?<|eot|> <|assistant|> ```python import math files = 213 per_box = 20 boxes = math.ceil(files / per_box) # 11 print(boxes) ``` # out: 11 It takes 11 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 20 files. How many boxes are needed for 213 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 213\nper_box = 20\nboxes = math.ceil(files / per_box) # 11\nprint(boxes)\n```\n# out: 11\n\nIt takes 11 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0076848
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}} {"name": "interpreter", "description": "Evaluates Python and returns the print...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"interpreter\"...
nlprog_det
setting
original
null
deterministic
[]
[]
297
{"gold": "38.5", "printed": "38.5", "notation": null}
nlprog_det-setting-0076849
Convert 51.5 km to meters. km = 51.5 meters = km * 1000 # 51500.0 print(round(meters)) When run, it prints: 51500 51,500 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
62
{"gold": "51500", "printed": "51500", "notation": null}
nlprog_det-setting-0076850
<|start|><|system|> You may call the tools below. {"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}} {"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"typ...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"convert_units\", \"description\"...
nlprog_det
setting
original
null
deterministic
[]
[]
410
{"gold": "215.74", "printed": "215.74", "notation": null}
nlprog_det-setting-0076851
<|start|><|user|> A hall has 14 rows of 23 seats, and 21 seats are empty. How many people are seated?<|eot|> <|assistant|> 301 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 14 rows of 23 seats, and 21 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "301 people are seated." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "301", "printed": "301", "notation": null}
nlprog_det-setting-0076852
A client paid a $7,500 retainer. The firm has billed 10 hours at $275 per hour. How much of the retainer is left? A few lines of Python do it: ```python retainer = 7500 hours = 10 rate = 275 left = retainer - hours * rate # 4750 print(left) ``` Run output: 4750 $4,750 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "4750", "printed": "4750", "notation": null}
nlprog_det-setting-0076853
What does $10,000 grow to in 4 years at 4% annual compounding? Python makes this quick: principal = 10000 rate = 4 / 100 # 0.04 years = 4 value = principal * (1 + rate) ** years # 11698.585600000002 print(f"{value:.2f}") Printed: 11698.59 The balance is $11,698.59.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "11698.59", "printed": "11698.59", "notation": null}
nlprog_det-setting-0076854
<|start|><|system|> You have access to these functions: [{"name": "compute", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "fetch_fil...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"compute\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\...
nlprog_det
setting
original
null
deterministic
[]
[]
295
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0076856
<|start|><|user|> Of a $10,000 budget, $3,500 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 10000 spent = 3500 percent = spent / budget * 100 # 35.0 print(round(percent, 1)) ``` Execution prints 35.0, as expected. That is 35.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $10,000 budget, $3,500 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 10000\nspent = 3500\npercent = spent / budget * 100 # 35.0\nprint(round(percent, 1))\n```\nExecution prints 35.0, as expected.\n\nThat is 35...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "35.0", "printed": "35.0", "notation": null}
nlprog_det-setting-0076857
Of a $4,000 budget, $3,500 has been spent. What percent is that? 87.5% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "87.5", "printed": "87.5", "notation": null}
nlprog_det-setting-0076858
A shift runs from 9:10 AM to 12:51 PM. How long is it in minutes? Here's the code. ```python start = 9 * 60 + 10 # 550 end = 12 * 60 + 51 # 771 print(end - start) ``` Python prints 221, as expected. 221 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "221", "printed": "221", "notation": null}
nlprog_det-setting-0076859
At 45 miles per hour, how many minutes does a 180-mile trip take? In Python: distance = 180 speed = 45 minutes = distance / speed * 60 print(round(minutes)) Printed = 240 240 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
64
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0076860
A $150 dinner bill gets a 15% tip, and 5 people share the cost equally. What is each person's share? Coded up: ```python bill = 150 tip_rate = 15 / 100 # 0.15 people = 5 each = bill * (1 + tip_rate) / people # 34.5 print(f"{each:.2f}") ``` It outputs 34.50. Each person pays $34.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "34.50", "printed": "34.50", "notation": null}
nlprog_det-setting-0076861
A shift runs from 9:05 AM to 11:10 AM. How long is it in minutes? Python does the arithmetic: ```python start = 9 * 60 + 5 # 545 end = 11 * 60 + 10 # 670 print(end - start) ``` This prints 125, as expected. It is 125 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "125", "printed": "125", "notation": null}
nlprog_det-setting-0076862
What is a 15% tip on a $246.42 bill? The Python version: ```python bill = 246.42 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 36.962999999999994 print(f"{tip:.2f}") ``` The printout reads 36.96. The tip is $36.96.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "36.96", "printed": "36.96", "notation": null}
nlprog_det-setting-0076863
Attendance was 69 out of 80. Express it as a percent. Here is a short program for it. present = 69 total = 80 percent = present / total * 100 # 86.25 print(round(percent, 1)) The interpreter prints 86.2. 86.2% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "86.2", "printed": "86.2", "notation": null}
nlprog_det-setting-0076864
At 60 miles per hour, how many minutes does a 320-mile trip take? A few lines of Python do it: ```python distance = 320 speed = 60 minutes = distance / speed * 60 # 320.0 print(round(minutes)) ``` Executed, it shows: 320 320 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "320", "printed": "320", "notation": null}
nlprog_det-setting-0076865
A library charges $0.10 per book per day late. What is the fine for 2 books that are 16 days late? Here's the code. per_day = 0.1 days_late = 16 books = 2 fine = per_day * days_late * books # 3.2 print(f"{fine:.2f}") Running this gives: 3.20 The fine is $3.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "3.20", "printed": "3.20", "notation": null}
nlprog_det-setting-0076866
If a 90-minute appointment begins at 2:15 PM, what time does it finish? A short script: start = 14 * 60 + 15 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") When run, it prints 3:45 PM, as expected. The appointment finishes at ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "3:45 PM", "printed": "3:45 PM", "notation": null}
nlprog_det-setting-0076868
At $0.58 per mile, what is the reimbursement for 637 miles? One way, in code: ```python miles = 637 rate = 0.58 reimbursement = miles * rate # 369.46 print(f"{reimbursement:.2f}") ``` Program output — 369.46 Grace is owed $369.46.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "369.46", "printed": "369.46", "notation": null}
nlprog_det-setting-0076869
<|start|><|user|> What average speed covers 522 miles in 2 hours?<|eot|> <|assistant|> ```python distance = 522 hours = 2 speed = distance / hours # 261.0 print(round(speed)) ``` Interpreter output — 261 The average speed is 261 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 522 miles in 2 hours?" }, { "role": "assistant", "content": "```python\ndistance = 522\nhours = 2\nspeed = distance / hours # 261.0\nprint(round(speed))\n```\nInterpreter output — 261\n\nThe average speed is 261 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "261", "printed": "261", "notation": null}
nlprog_det-setting-0076870
Someone works 32 hours at $15.15 per hour. What are the earnings? Written as code: ```python rate = 15.15 hours = 32 earnings = rate * hours # 484.8 print(f"{earnings:.2f}") ``` Run output — 484.80 The pay is $484.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "484.80", "printed": "484.80", "notation": null}
nlprog_det-setting-0076871
<|start|><|system|> Available functions (JSON Schema): {"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> A 18 × 5 foot patio is tiled w...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"scr...
nlprog_det
setting
original
null
deterministic
[]
[]
238
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0076872
Starting with 1919 batteries and using 24 per day, how many remain after 16 days? Python makes this quick: ```python stock = 1919 per_day = 24 days = 16 left = stock - per_day * days # 1535 print(left) ``` Running this gives: 1535 1535 batteries are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1535", "printed": "1535", "notation": null}
nlprog_det-setting-0076873
A penalty of $250 a day accrues, capped at $1,000. What is owed after 7 days? Python does the arithmetic: ```python per_day = 250 days = 7 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` It prints: 1000 $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0076874
A workshop lasted 2 hours and 55 minutes. How many minutes is that? Python, step by step: ```python hours = 2 minutes = 55 total_minutes = hours * 60 + minutes # 175 print(total_minutes) ``` Printed: 175 That is 175 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "175", "printed": "175", "notation": null}
nlprog_det-setting-0076875
<|start|><|user|> To read 425 pages in 17 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 425 days = 17 per_day = pages // days # 25 print(per_day) ``` Running it prints: 25 That is 25 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 425 pages in 17 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 425\ndays = 17\nper_day = pages // days # 25\nprint(per_day)\n```\nRunning it prints: 25\n\nThat is 25 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0076876
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> A $2,500 security deposit has deductions of $75, $120 and $200. How much is refunded?<|eot|> <|assistant|> ```python deposit = 2500 deductions = [75, 120, 200] refund = deposit - sum(deductions) # 2105 print(refund) ``` Execution prints 2105. The refun...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "A $2,500 security deposit has deductions of $75, $120 and $200. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 2500\ndeductions = [75, 120, 200]\nrefund ...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "2105", "printed": "2105", "notation": null}
nlprog_det-setting-0076877
A water bill is $12 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 14 thousand gallons? Coded up: ```python base = 12 rate = 4.2 used = 14 free = 3 bill = base + rate * max(0, used - free) # 58.2 print(f"{bill:.2f}") ``` Python prints 58.20. $58.20 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "58.20", "printed": "58.20", "notation": null}
nlprog_det-setting-0076879
A hearing starts at 2:30 PM and lasts 50 minutes. When does it end? As a program: ```python start = 14 * 60 + 30 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` It prints 3:20 PM. The hearing finishes at 3:20 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "3:20 PM", "printed": "3:20 PM", "notation": null}
nlprog_det-setting-0076880
<|start|><|user|> A court charges $5 per request plus $0.10 per page after the first 0 pages. What does a 92-page copy cost?<|eot|> <|assistant|> pages = 92 base = 5 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 14.200000000000001 print(f"{cost:.2f}") Run o...
chat
[ { "role": "user", "content": "A court charges $5 per request plus $0.10 per page after the first 0 pages. What does a 92-page copy cost?" }, { "role": "assistant", "content": " pages = 92\n base = 5\n per_page = 0.1\n free_pages = 0\n cost = base + max(0, pages - free_pages) * per...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "14.20", "printed": "14.20", "notation": null}
nlprog_det-setting-0076881
To read 816 pages in 17 days, how many pages per day are needed? Programmatically: ```python pages = 816 days = 17 per_day = pages // days # 48 print(per_day) ``` It outputs: 48 That is 48 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0076882
<|start|><|user|> Fixed costs are $9,000. Each unit sells for $30 and costs $20 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 9000 price = 30 variable = 20 units = math.ceil(fixed / (price - variable)) # 900 print(units) ``` Run output — 900 Break-even is 900 u...
chat
[ { "role": "user", "content": "Fixed costs are $9,000. Each unit sells for $30 and costs $20 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 9000\nprice = 30\nvariable = 20\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0076884
Parking is $2 per hour with a daily maximum of $24. What do 3 hours cost? One way, in code: ```python rate = 2 hours = 3 daily_max = 24 cost = min(rate * hours, daily_max) # 6 print(cost) ``` (Run result: 6) The charge is $6.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0076885
816 files go into boxes of 40. How many boxes does that take? Python, step by step: ```python import math files = 816 per_box = 40 boxes = math.ceil(files / per_box) # 21 print(boxes) ``` Running it prints 21, as expected. It takes 21 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0076886
Buying 3 sticky pads at $20 each, 1 tape rolls at $16 each, 5 lanyards at $12 each, someone hands over $150. What change comes back? The change is $14.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0076887
At 45 miles per hour, how many minutes does a 180-mile trip take? In Python: ```python distance = 180 speed = 45 minutes = distance / speed * 60 # 240.0 print(round(minutes)) ``` # out: 240 The trip takes 240 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0076888
$1,000 is invested at 5% compounded yearly. What is it worth after 4 years? Here is the program. principal = 1000 rate = 5 / 100 # 0.05 years = 4 value = principal * (1 + rate) ** years # 1215.5062500000001 print(f"{value:.2f}") The interpreter prints 1215.51. It is worth $1,215.51.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1215.51", "printed": "1215.51", "notation": null}
nlprog_det-setting-0076889
<|start|><|user|> 345 files go into boxes of 50. How many boxes does that take?<|eot|> <|assistant|> It takes 7 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "345 files go into boxes of 50. How many boxes does that take?" }, { "role": "assistant", "content": "It takes 7 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0076890
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> How many minutes pass from 7:05 AM to 11:02 AM on the same day?<|eot|> <|assistant|> ```python start = 7 * 60 + 5 # 425 end = 11 * 60 + 2 # 662 print(end - start) ``` Executed, it shows 237. 237 minutes pass.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "How many minutes pass from 7:05 AM to 11:02 AM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 7 * 60 + 5 # 425\nend = 11 * 60 + 2 # 662\nprint(end - start)\n``...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "237", "printed": "237", "notation": null}