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-0079461
<|start|><|user|> At an exchange rate of 0.92 USD per CHF, how many USD is 5,606 CHF?<|eot|> <|assistant|> ```python amount = 5606 rate = 0.92 converted = amount * rate # 5157.52 print(f"{converted:.2f}") ``` Run output: 5157.52 That is 5,157.52 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 0.92 USD per CHF, how many USD is 5,606 CHF?" }, { "role": "assistant", "content": "```python\namount = 5606\nrate = 0.92\nconverted = amount * rate # 5157.52\nprint(f\"{converted:.2f}\")\n```\nRun output: 5157.52\n\nThat is 5,157.52 USD." ...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "5157.52", "printed": "5157.52", "notation": null}
nlprog_det-setting-0079462
<|start|><|user|> A 8-day trip pays $69 a day for meals and $175 a night for lodging (7 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 8 meal_rate = 69 lodging_rate = 175 nights = days - 1 # 7 total = days * meal_rate + nights * lodging_rate # 1777 print(total) ``` Executing it gives: 177...
chat
[ { "role": "user", "content": "A 8-day trip pays $69 a day for meals and $175 a night for lodging (7 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 8\nmeal_rate = 69\nlodging_rate = 175\nnights = days - 1 # 7\ntotal = days * meal_rate + nights * lo...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "1777", "printed": "1777", "notation": null}
nlprog_det-setting-0079463
<|start|><|user|> If a 5-year limitations period starts on December 9, 2018, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2018, 12, 9) # datetime.date(2018, 12, 9) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2023, 12, 9) print(expires.iso...
chat
[ { "role": "user", "content": "If a 5-year limitations period starts on December 9, 2018, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2018, 12, 9) # datetime.date(2018, 12, 9)\nyears = 5\nexpires = accrued.replace(year=accrued.yea...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2023-12-09", "printed": "2023-12-09", "notation": null}
nlprog_det-setting-0079464
Counting the first and last day, how many days are there from May 11, 2028 through June 4, 2028? Let's compute it with Python. from datetime import date first = date(2028, 5, 11) # datetime.date(2028, 5, 11) last = date(2028, 6, 4) # datetime.date(2028, 6, 4) days = (last - first).days + 1 # 25 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0079465
<|start|><|user|> A 264-page report must be reviewed in 6 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 264 days = 6 per_day = pages // days # 44 print(per_day) ``` The script prints 44, as expected. 44 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 264-page report must be reviewed in 6 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 264\ndays = 6\nper_day = pages // days # 44\nprint(per_day)\n```\nThe script prints 44, as expected.\n\n44 pages a day." ...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0079466
Kofi buys 6 boxes of 12 badges each and gives away 11 badges. How many badges are left? As a program: ```python boxes = 6 per_box = 12 given_away = 11 left = boxes * per_box - given_away # 61 print(left) ``` Run result — 61 61 badges are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "61", "printed": "61", "notation": null}
nlprog_det-setting-0079467
<|start|><|system|> Tools (call with JSON): {"name": "python_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "business_days", "description": "C...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"python_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
364
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0079468
At an exchange rate of 0.92 EUR per USD, how many EUR is 4,914 USD? That is 4,520.88 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "4520.88", "printed": "4520.88", "notation": null}
nlprog_det-setting-0079469
<|start|><|user|> A hearing lasted 3 hours and 47 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 3 minutes = 47 total_minutes = hours * 60 + minutes # 227 print(total_minutes) ``` # stdout: 227 That is 227 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing lasted 3 hours and 47 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 3\nminutes = 47\ntotal_minutes = hours * 60 + minutes # 227\nprint(total_minutes)\n```\n# stdout: 227\n\nThat is 227 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "227", "printed": "227", "notation": null}
nlprog_det-setting-0079470
<|start|><|system|> Tools you may use: [{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "get_weather", "description": "Get the wea...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]...
nlprog_det
setting
original
null
deterministic
[]
[]
359
{"gold": "2350", "printed": "2350", "notation": null}
nlprog_det-setting-0079471
<|start|><|user|> Monthly rent is $900. A tenant moves in with 18 days left in a 31-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 900 days_in_month = 31 days_occupied = 18 prorated = rent * days_occupied / days_in_month # 522.5806451612904 print(f"{prorated:.2f}") ``` Execution prints: 52...
chat
[ { "role": "user", "content": "Monthly rent is $900. A tenant moves in with 18 days left in a 31-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 900\ndays_in_month = 31\ndays_occupied = 18\nprorated = rent * days_occupied / days_in_month # 522.58064...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "522.58", "printed": "522.58", "notation": null}
nlprog_det-setting-0079472
<|start|><|user|> A car travels 479 miles in 1 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> distance = 479 hours = 1 speed = distance / hours # 479.0 print(round(speed)) The program outputs 479. The average speed is 479 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 479 miles in 1 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": " distance = 479\n hours = 1\n speed = distance / hours # 479.0\n print(round(speed))\nThe program outputs 479.\n\nThe average speed i...
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "479", "printed": "479", "notation": null}
nlprog_det-setting-0079474
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> Scale 150 g of rice from 4 servings to 8 servings.<|eot|> <|assistant|> 300 grams of rice are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "Scale 150 g of rice from 4 servings to 8 servings." }, { "role": "assistant", "content": "300 grams of rice are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0079475
<|start|><|user|> At an exchange rate of 1.27 USD per GBP, how many USD is 4,472 GBP?<|eot|> <|assistant|> ```python amount = 4472 rate = 1.27 converted = amount * rate print(f"{converted:.2f}") ``` (Run result: 5679.44) That is 5,679.44 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.27 USD per GBP, how many USD is 4,472 GBP?" }, { "role": "assistant", "content": "```python\namount = 4472\nrate = 1.27\nconverted = amount * rate\nprint(f\"{converted:.2f}\")\n```\n(Run result: 5679.44)\n\nThat is 5,679.44 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "5679.44", "printed": "5679.44", "notation": null}
nlprog_det-setting-0079476
<|start|><|system|> Tool definitions: [{"name": "run_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> 12 boxes hol...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"run_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
224
{"gold": "111", "printed": "111", "notation": null}
nlprog_det-setting-0079477
Split $4,837 between Fiona and Oskar in the ratio 3 to 4. What is Fiona's share? Fiona's share is $2,073.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "2073", "printed": "2073", "notation": null}
nlprog_det-setting-0079478
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "compute", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"compute\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python s...
nlprog_det
setting
original
null
deterministic
[]
[]
210
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0079479
Joelle earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 45-hour week? A few lines of Python do it: rate = 20.0 hours = 45 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 150.0 pay = regular + overtime # 950.0 print(f"{pay:.2f}") Out — 950.0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "950.00", "printed": "950.00", "notation": null}
nlprog_det-setting-0079480
<|start|><|user|> A $1,500 security deposit has deductions of $150. How much is refunded?<|eot|> <|assistant|> ```python deposit = 1500 deductions = [150] refund = deposit - sum(deductions) # 1350 print(refund) ``` Result = 1350 The refund is $1,350.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $1,500 security deposit has deductions of $150. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 1500\ndeductions = [150]\nrefund = deposit - sum(deductions) # 1350\nprint(refund)\n```\nResult = 1350\n\nThe refund is $1,350." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1350", "printed": "1350", "notation": null}
nlprog_det-setting-0079481
If a 40-minute hearing begins at 2:15 PM, what time does it finish? Programmatically: ```python start = 14 * 60 + 15 end = start + 40 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Printed — 2:55 PM The hearing finishes at 2:55 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "2:55 PM", "printed": "2:55 PM", "notation": null}
nlprog_det-setting-0079482
A 18-month warranty starts on March 19, 2018. On what date does it end? Python: ```python from datetime import date start = date(2018, 3, 19) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` The run gives: 2019-0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2019-09-19", "printed": "2019-09-19", "notation": null}
nlprog_det-setting-0079484
4 boxes hold 8 calendars each. After 12 are handed out, how many are left? ```python boxes = 4 per_box = 8 given_away = 12 left = boxes * per_box - given_away # 20 print(left) ``` Printed: 20 20 calendars are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0079486
<|start|><|user|> What percentage of $5,000 is $2,200?<|eot|> <|assistant|> ```python budget = 5000 spent = 2200 percent = spent / budget * 100 # 44.0 print(round(percent, 1)) ``` What it prints — 44.0 44.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $5,000 is $2,200?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nspent = 2200\npercent = spent / budget * 100 # 44.0\nprint(round(percent, 1))\n```\nWhat it prints — 44.0\n\n44.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "44.0", "printed": "44.0", "notation": null}
nlprog_det-setting-0079488
A pack of 20 scissors sells for $760. What does each cost? Let's compute it with Python. ```python total = 760 count = 20 per_item = total // count # 38 print(per_item) ``` Output: 38 The unit price is $38.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0079489
Someone born May 3, 1963 turns how old by March 8, 2028? Give the age in whole years. Python: ```python from datetime import date born = date(1963, 5, 3) # datetime.date(1963, 5, 3) on = date(2028, 3, 8) # datetime.date(2028, 3, 8) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 64 print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
161
{"gold": "64", "printed": "64", "notation": null}
nlprog_det-setting-0079490
Sales went from 2,500 to 2,250. What is the percent change? Python makes this quick: old = 2500 new = 2250 change = (new - old) / old * 100 # -10.0 print(round(change)) # execution result: -10 It changed by -10%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "-10", "printed": "-10", "notation": null}
nlprog_det-setting-0079492
<|start|><|user|> Monthly: $19. Annual: $216. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 19 yearly = 216 savings = monthly * 12 - yearly print(savings) ``` (Execution result: 12) $12 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $19. Annual: $216. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 19\nyearly = 216\nsavings = monthly * 12 - yearly\nprint(savings)\n```\n(Execution result: 12)\n\n$12 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0079494
Wen was born on October 13, 1955. How old is Wen on March 5, 2023? Let the code do the arithmetic: ```python from datetime import date born = date(1955, 10, 13) # datetime.date(1955, 10, 13) on = date(2023, 3, 5) # datetime.date(2023, 3, 5) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) #...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "67", "printed": "67", "notation": null}
nlprog_det-setting-0079495
Under a 40% contingency agreement, what fee is owed on a $40,000 award? The Python version: ```python recovery = 40000 rate = 40 / 100 # 0.4 fee = recovery * rate # 16000.0 print(f"{fee:.2f}") ``` (Console output: 16000.00) The lawyer's fee comes to $16,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "16000.00", "printed": "16000.00", "notation": null}
nlprog_det-setting-0079496
Fixed costs are $9,000. Each unit sells for $20 and costs $15 to make. How many units must be sold to break even? Python, step by step: import math fixed = 9000 price = 20 variable = 15 units = math.ceil(fixed / (price - variable)) # 1800 print(units) (Output: 1800) Break-even is 1800 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0079497
Each of Diego's swims burns 350 calories. How many calories over 5 swims? Script: ```python per_session = 350 sessions = 5 total = per_session * sessions # 1750 print(total) ``` Program output: 1750 1750 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0079498
<|start|><|user|> To read 588 pages in 14 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 588 days = 14 per_day = pages // days # 42 print(per_day) ``` stdout: 42 That is 42 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 588 pages in 14 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 588\ndays = 14\nper_day = pages // days # 42\nprint(per_day)\n```\nstdout:\n42\n\nThat is 42 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0079499
Emeka buys 6 boxes of 10 mugs each and gives away 4 mugs. How many mugs are left? Code: ```python boxes = 6 per_box = 10 given_away = 4 left = boxes * per_box - given_away # 56 print(left) ``` Output: 56 56 mugs are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0079500
From 2006 to 2026, how many years is that? In Python: ```python start_year = 2006 end_year = 2026 print(end_year - start_year) ``` It prints 20, as expected. 20 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0079501
How many 1-foot square tiles cover a 8 ft by 11 ft floor (round up)? Here is a short program for it. import math length = 8 width = 11 tile = 1 tiles = math.ceil(length * width / (tile * tile)) print(tiles) Printed — 88 88 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "88", "printed": "88", "notation": null}
nlprog_det-setting-0079502
<|start|><|user|> A penalty of $25 a day accrues, capped at $1,000. What is owed after 54 days?<|eot|> <|assistant|> ```python per_day = 25 days = 54 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Run result = 1000 $1,000 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $25 a day accrues, capped at $1,000. What is owed after 54 days?" }, { "role": "assistant", "content": "```python\nper_day = 25\ndays = 54\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\nRun result = 1000\n\n$1,000 is owed." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0079503
Meals are $69 per day and lodging $140 per night. What is the allowance for 8 days and 7 nights? Written as code: ```python days = 8 meal_rate = 69 lodging_rate = 140 nights = days - 1 # 7 total = days * meal_rate + nights * lodging_rate # 1532 print(total) ``` # run result: 1532 The allowance is $1,532.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "1532", "printed": "1532", "notation": null}
nlprog_det-setting-0079504
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Nikhil earns a 6% commission on $106,886 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 106886 rate = 6 / 100 # 0.06 commission = sales * rate # 6413.16 print(f"{commission:.2f}") ``` Result = 6413.16 Nikhil earns $6,413.16....
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "Nikhil earns a 6% commission on $106,886 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 106886\nrate = 6 / 100 # 0.06\ncommission = sales * r...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "6413.16", "printed": "6413.16", "notation": null}
nlprog_det-setting-0079505
<|start|><|user|> Prorate $1,200 of monthly rent for 10 days of a 30-day month.<|eot|> <|assistant|> ```python rent = 1200 days_in_month = 30 days_occupied = 10 prorated = rent * days_occupied / days_in_month # 400.0 print(f"{prorated:.2f}") ``` Output: 400.00 The prorated rent is $400.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $1,200 of monthly rent for 10 days of a 30-day month." }, { "role": "assistant", "content": "```python\nrent = 1200\ndays_in_month = 30\ndays_occupied = 10\nprorated = rent * days_occupied / days_in_month # 400.0\nprint(f\"{prorated:.2f}\")\n```\nOutput:\n4...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "400.00", "printed": "400.00", "notation": null}
nlprog_det-setting-0079506
Under a 30% contingency agreement, what fee is owed on a $90,000 award? Let the code do the arithmetic: ```python recovery = 90000 rate = 30 / 100 # 0.3 fee = recovery * rate # 27000.0 print(f"{fee:.2f}") ``` Run output — 27000.00 The lawyer's fee comes to $27,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "27000.00", "printed": "27000.00", "notation": null}
nlprog_det-setting-0079507
<|start|><|user|> A workshop lasted 5 hours and 12 minutes. How many minutes is that?<|eot|> <|assistant|> hours = 5 minutes = 12 total_minutes = hours * 60 + minutes print(total_minutes) Running this gives: 312 That is 312 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A workshop lasted 5 hours and 12 minutes. How many minutes is that?" }, { "role": "assistant", "content": " hours = 5\n minutes = 12\n total_minutes = hours * 60 + minutes\n print(total_minutes)\nRunning this gives: 312\n\nThat is 312 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "312", "printed": "312", "notation": null}
nlprog_det-setting-0079508
How many 1-foot square tiles cover a 6 ft by 5 ft floor (round up)? A few lines of Python do it: import math length = 6 width = 5 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 30 print(tiles) # execution result: 30 30 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0079509
A shift runs from 8:39 AM to 2:42 PM. How long is it in minutes? The computation: start = 8 * 60 + 39 # 519 end = 14 * 60 + 42 # 882 print(end - start) Console output: 363 363 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "363", "printed": "363", "notation": null}
nlprog_det-setting-0079510
<|start|><|system|> You can call tools. Available tools: [{"name": "calculator", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"calculator\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source co...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "110", "printed": "110", "notation": null}
nlprog_det-setting-0079511
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> 4 books come back 6 days late, at $0.20 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.2 days_late = 6 books = 4 fine = per_day * days_late * books # 4.800000000000001 print(f"{fine:.2f}") ``` The script prints 4.80. The fine is $4.8...
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "4 books come back 6 days late, at $0.20 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.2\ndays_late = 6\nbooks = 4\nfine = per_day * days_late * books...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "4.80", "printed": "4.80", "notation": null}
nlprog_det-setting-0079512
<|start|><|user|> Shipping costs $8 plus $0.75 per pound. What does a 36-pound parcel cost to ship?<|eot|> <|assistant|> base = 8 per_pound = 0.75 weight = 36 cost = base + per_pound * weight # 35.0 print(f"{cost:.2f}") # output: 35.00 Shipping costs $35.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $8 plus $0.75 per pound. What does a 36-pound parcel cost to ship?" }, { "role": "assistant", "content": " base = 8\n per_pound = 0.75\n weight = 36\n cost = base + per_pound * weight # 35.0\n print(f\"{cost:.2f}\")\n# output: 35.00\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "35.00", "printed": "35.00", "notation": null}
nlprog_det-setting-0079513
Abel drove 137 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement? As a program: ```python miles = 137 rate = 0.62 reimbursement = miles * rate # 84.94 print(f"{reimbursement:.2f}") ``` stdout = 84.94 Abel is owed $84.94.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "84.94", "printed": "84.94", "notation": null}
nlprog_det-setting-0079514
With $20,000 in costs and $22,500 in revenue, what percent of revenue is profit? Round to one decimal. In Python: ```python revenue = 22500 costs = 20000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 11.11111111111111 print(round(margin, 1)) ``` It prints 11.1, as expected. Profit is 11.1% of re...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0079515
55 of 100 members attended. What percent attended? We can compute it in Python. present = 55 total = 100 percent = present / total * 100 # 55.00000000000001 print(round(percent, 1)) Result — 55.0 55.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "55.0", "printed": "55.0", "notation": null}
nlprog_det-setting-0079516
A meal costs $248.60. How much is a 25% tip? Python code: ```python bill = 248.6 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 62.15 print(f"{tip:.2f}") ``` The run gives 62.15. Leave $62.15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "62.15", "printed": "62.15", "notation": null}
nlprog_det-setting-0079517
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Goods bought on September 4, 2020 carry a 24-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2020, 9, 4) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + yea...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Goods bought on September 4, 2020 carry a 24-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2020, 9, 4)\nmonths = 2...
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "2022-09-04", "printed": "2022-09-04", "notation": null}
nlprog_det-setting-0079518
A $3,600 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment? As Python: principal = 3600 annual_rate = 8 / 100 # 0.08 months = 12 interest = principal * annual_rate * months / 12 # 288.0 payment = (principal + i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "324.00", "printed": "324.00", "notation": null}
nlprog_det-setting-0079519
A shift runs from 11:15 AM to 1:33 PM. How long is it in minutes? Code: start = 11 * 60 + 15 # 675 end = 13 * 60 + 33 # 813 print(end - start) Executing it gives 138. 138 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "138", "printed": "138", "notation": null}
nlprog_det-setting-0079520
A hall has 10 rows of 13 seats, and 22 seats are empty. How many people are seated? As a program: ```python rows = 10 per_row = 13 empty = 22 seated = rows * per_row - empty # 108 print(seated) ``` Python prints: 108 108 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "108", "printed": "108", "notation": null}
nlprog_det-setting-0079521
Jae lends $2,500 at 3% simple interest per year for 4 years. How much interest is earned? We write it as a program: ```python principal = 2500 rate = 3 / 100 years = 4 interest = principal * rate * years print(f"{interest:.2f}") ``` Shell output: 300.00 The interest is $300.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0079522
Split $2,933 between Mateo and Marek in the ratio 3 to 4. What is Mateo's share? Computing it: ```python total = 2933 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 1257 print(share_a) ``` stdout: 1257 Mateo gets $1,257.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1257", "printed": "1257", "notation": null}
nlprog_det-setting-0079523
23 binders cost $3 apiece. With 5% tax added, what is the total? Python, step by step: ```python quantity = 23 unit_price = 3 subtotal = quantity * unit_price # 69 total = subtotal * (1 + 5 / 100) # 72.45 print(f"{total:.2f}") ``` # output: 72.45 The invoice total is $72.45.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "72.45", "printed": "72.45", "notation": null}
nlprog_det-setting-0079524
What does $2,000 grow to in 3 years at 3% annual compounding? Python: ```python principal = 2000 rate = 3 / 100 # 0.03 years = 3 value = principal * (1 + rate) ** years # 2185.454 print(f"{value:.2f}") ``` This prints 2185.45, as expected. It is worth $2,185.45.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "2185.45", "printed": "2185.45", "notation": null}
nlprog_det-setting-0079525
<|start|><|user|> Straight-line depreciation: cost $45,000, salvage $3,000, 6 years. How much per year?<|eot|> <|assistant|> ```python cost = 45000 salvage = 3000 years = 6 per_year = (cost - salvage) / years # 7000.0 print(f"{per_year:.2f}") ``` stdout: 7000.00 $7,000.00 a year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $45,000, salvage $3,000, 6 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 45000\nsalvage = 3000\nyears = 6\nper_year = (cost - salvage) / years # 7000.0\nprint(f\"{per_year:.2f}\")\n```\nstdout:\n...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0079526
<|start|><|user|> Prorate $1,800 of monthly rent for 10 days of a 30-day month.<|eot|> <|assistant|> ```python rent = 1800 days_in_month = 30 days_occupied = 10 prorated = rent * days_occupied / days_in_month # 600.0 print(f"{prorated:.2f}") ``` Executed, it shows: 600.00 The prorated rent is $600.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $1,800 of monthly rent for 10 days of a 30-day month." }, { "role": "assistant", "content": "```python\nrent = 1800\ndays_in_month = 30\ndays_occupied = 10\nprorated = rent * days_occupied / days_in_month # 600.0\nprint(f\"{prorated:.2f}\")\n```\nExecuted, ...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0079527
<|start|><|system|> Functions: {"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "define_word", "description": "Return a ...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet...
nlprog_det
setting
original
null
deterministic
[]
[]
388
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0079528
<|start|><|user|> A workshop lasted 1 hours and 27 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 1 minutes = 27 total_minutes = hours * 60 + minutes # 87 print(total_minutes) ``` This prints 87. That is 87 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A workshop lasted 1 hours and 27 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 1\nminutes = 27\ntotal_minutes = hours * 60 + minutes # 87\nprint(total_minutes)\n```\nThis prints 87.\n\nThat is 87 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "87", "printed": "87", "notation": null}
nlprog_det-setting-0079529
<|start|><|user|> A shift runs from 11:26 AM to 6:04 PM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 11 * 60 + 26 # 686 end = 18 * 60 + 4 # 1084 print(end - start) ``` The printout reads 398. It is 398 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 11:26 AM to 6:04 PM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 11 * 60 + 26 # 686\nend = 18 * 60 + 4 # 1084\nprint(end - start)\n```\nThe printout reads 398.\n\nIt is 398 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "398", "printed": "398", "notation": null}
nlprog_det-setting-0079530
<|start|><|system|> Available functions (JSON Schema): [{"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "search_cases", "descr...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
309
{"gold": "132", "printed": "132", "notation": null}
nlprog_det-setting-0079531
Copies cost $5 plus $0.50 for each page beyond 10. How much for 116 pages? The copy costs $58.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "58.00", "printed": "58.00", "notation": null}
nlprog_det-setting-0079532
Count 120 days forward from March 16, 2027. What date is that? As a program: ```python from datetime import date, timedelta start = date(2027, 3, 16) # datetime.date(2027, 3, 16) end = start + timedelta(days=120) # datetime.date(2027, 7, 14) print(end.isoformat()) ``` (Console output: 2027-07-14) The period ends on...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2027-07-14", "printed": "2027-07-14", "notation": null}
nlprog_det-setting-0079533
<|start|><|user|> 11 boxes hold 12 labels each. After 8 are handed out, how many are left?<|eot|> <|assistant|> That leaves 124 labels.<|eot|> <|end|>
chat
[ { "role": "user", "content": "11 boxes hold 12 labels each. After 8 are handed out, how many are left?" }, { "role": "assistant", "content": "That leaves 124 labels." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "124", "printed": "124", "notation": null}
nlprog_det-setting-0079534
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours? ```python rate = 22.4 hours = 46 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{pay:.2f}") ``` The printout reads 1097.60. Wanjiru earns $1,097.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1097.60", "printed": "1097.60", "notation": null}
nlprog_det-setting-0079535
Fixed costs are $9,000. Each unit sells for $30 and costs $20 to make. How many units must be sold to break even? A short script: ```python import math fixed = 9000 price = 30 variable = 20 units = math.ceil(fixed / (price - variable)) print(units) ``` Running it prints: 900 900 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0079536
With 20% off, what does a $90 filing cabinet cost? The sale price is $72.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0079537
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> $2,000 is invested at 4% compounded yearly. What is it worth after 3 years?<|eot|> <|assistant|> ```python principal = 2000 rate = 4 / 100 # 0.04 years = 3 value = principal * (1 + rate) ** years # 2249.728 print(f"{value:.2f}") ``` (Program output: 2249.73...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "$2,000 is invested at 4% compounded yearly. What is it worth after 3 years?" }, { "role": "assistant", "content": "```python\nprincipal = 2000\nrate = 4 / 100 # 0.04\nyears = 3\nvalue = princi...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "2249.73", "printed": "2249.73", "notation": null}
nlprog_det-setting-0079538
<|start|><|user|> A film lasted 1 hours and 47 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 1 minutes = 47 total_minutes = hours * 60 + minutes print(total_minutes) ``` The program prints 107, as expected. The film lasted 107 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A film lasted 1 hours and 47 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 1\nminutes = 47\ntotal_minutes = hours * 60 + minutes\nprint(total_minutes)\n```\nThe program prints 107, as expected.\n\nThe film lasted 107 mi...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "107", "printed": "107", "notation": null}
nlprog_det-setting-0079539
<|start|><|user|> A claim accrued on May 12, 2024. The limitations period is 4 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2024, 5, 12) # datetime.date(2024, 5, 12) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2028, 5, 1...
chat
[ { "role": "user", "content": "A claim accrued on May 12, 2024. The limitations period is 4 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2024, 5, 12) # datetime.date(2024, 5, 12)\nyears = 4\nexpires = accrued.repl...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2028-05-12", "printed": "2028-05-12", "notation": null}
nlprog_det-setting-0079540
How many meters are in 65.1 kilometers? A few lines of Python do it: ```python km = 65.1 meters = km * 1000 # 65099.99999999999 print(round(meters)) ``` Executing it gives 65100. That is 65,100 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "65100", "printed": "65100", "notation": null}
nlprog_det-setting-0079541
A car travels 597 miles in 1.5 hours. What is its average speed in miles per hour? It averages 398 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "398", "printed": "398", "notation": null}
nlprog_det-setting-0079543
Under a 30% contingency agreement, what fee is owed on a $12,000 award? The lawyer's fee comes to $3,600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "3600.00", "printed": "3600.00", "notation": null}
nlprog_det-setting-0079544
229 files go into boxes of 50. How many boxes does that take? We can compute it in Python. ```python import math files = 229 per_box = 50 boxes = math.ceil(files / per_box) # 5 print(boxes) ``` Run output: 5 It takes 5 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0079545
<|start|><|user|> A measure needs at least 67% of 211 votes. How many votes is that, rounded up?<|eot|> <|assistant|> import math voters = 211 needed = math.ceil(voters * 67 / 100) # 142 print(needed) This prints 142. At least 142 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 67% of 211 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": " import math\n voters = 211\n needed = math.ceil(voters * 67 / 100) # 142\n print(needed)\nThis prints 142.\n\nAt least 142 votes." }...
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "142", "printed": "142", "notation": null}
nlprog_det-setting-0079546
5 claimants share a $960 settlement equally. What is each share? Python version: ```python settlement = 960 parties = 5 share = settlement // parties # 192 print(share) ``` Output: 192 Each party receives $192.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "192", "printed": "192", "notation": null}
nlprog_det-setting-0079547
Someone works 36 hours at $22.49 per hour. What are the earnings? The computation: ```python rate = 22.49 hours = 36 earnings = rate * hours # 809.64 print(f"{earnings:.2f}") ``` It prints: 809.64 That earns $809.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "809.64", "printed": "809.64", "notation": null}
nlprog_det-setting-0079548
<|start|><|user|> Meals are $79 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights?<|eot|> <|assistant|> ```python days = 4 meal_rate = 79 lodging_rate = 140 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 736 print(total) ``` (Printed: 736) The allowance is $7...
chat
[ { "role": "user", "content": "Meals are $79 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights?" }, { "role": "assistant", "content": "```python\ndays = 4\nmeal_rate = 79\nlodging_rate = 140\nnights = days - 1 # 3\ntotal = days * meal_rate + nights * lodging_rate ...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "736", "printed": "736", "notation": null}
nlprog_det-setting-0079549
<|start|><|user|> A garage charges $4 an hour, never more than $20 a day. How much for 7 hours?<|eot|> <|assistant|> rate = 4 hours = 7 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) # execution result: 20 Parking costs $20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $4 an hour, never more than $20 a day. How much for 7 hours?" }, { "role": "assistant", "content": " rate = 4\n hours = 7\n daily_max = 20\n cost = min(rate * hours, daily_max) # 20\n print(cost)\n# execution result: 20\n\nParking co...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0079550
<|start|><|user|> Walls total 1086 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 1086 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) ``` Running it prints 4. 4 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 1086 sq ft and each can covers 350 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1086\ncoverage = 350\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nRunning it prints 4.\n\n4 cans...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0079551
<|start|><|user|> Straight-line depreciation: cost $12,000, salvage $2,000, 3 years. How much per year?<|eot|> <|assistant|> ```python cost = 12000 salvage = 2000 years = 3 per_year = (cost - salvage) / years # 3333.3333333333335 print(f"{per_year:.2f}") ``` The code prints: 3333.33 Depreciation is $3,333.33 per year...
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $12,000, salvage $2,000, 3 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 12000\nsalvage = 2000\nyears = 3\nper_year = (cost - salvage) / years # 3333.3333333333335\nprint(f\"{per_year:.2f}\")\n``...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "3333.33", "printed": "3333.33", "notation": null}
nlprog_det-setting-0079552
<|start|><|user|> From a $7,500 retainer, 2 hours at $250/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 7500 hours = 2 rate = 250 left = retainer - hours * rate # 7000 print(left) ``` That prints: 7000 The remaining balance is $7,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $7,500 retainer, 2 hours at $250/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 7500\nhours = 2\nrate = 250\nleft = retainer - hours * rate # 7000\nprint(left)\n```\nThat prints: 7000\n\nThe remaining balance...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "7000", "printed": "7000", "notation": null}
nlprog_det-setting-0079553
An attorney bills 4 hours at $180 per hour. What is the bill? Here is a short program for it. hours = 4 rate = 180 bill = hours * rate # 720 print(f"{bill:.2f}") (Program output: 720.00) The bill is $720.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0079554
A penalty of $100 a day accrues, capped at $2,500. What is owed after 58 days? Python version: ```python per_day = 100 days = 58 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` # run result: 2500 The fine is $2,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0079555
An attorney bills 1.5 hours at $150 per hour. What is the bill? A short script: hours = 1.5 rate = 150 bill = hours * rate # 225.0 print(f"{bill:.2f}") Printed result — 225.00 That comes to $225.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "225.00", "printed": "225.00", "notation": null}
nlprog_det-setting-0079556
<|start|><|user|> 2 books come back 18 days late, at $0.50 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.5 days_late = 18 books = 2 fine = per_day * days_late * books # 18.0 print(f"{fine:.2f}") ``` Execution prints: 18.00 $18.00 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 books come back 18 days late, at $0.50 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.5\ndays_late = 18\nbooks = 2\nfine = per_day * days_late * books # 18.0\nprint(f\"{fine:.2f}\")\n```\nExecution prints: 18.00\n\n$18...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "18.00", "printed": "18.00", "notation": null}
nlprog_det-setting-0079557
A pack of 12 markers sells for $204. What does each cost? As a program: ```python total = 204 count = 12 per_item = total // count # 17 print(per_item) ``` It outputs 17. The unit price is $17.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0079558
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> A 14-day notice period begins on August 28, 2024. On what date does it end?<|eot|> <|assistant|> The period ends on September 11, 2024.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "A 14-day notice period begins on August 28, 2024. On what date does it end?" }, { "role": "assistant", "content": "The period ends on September 11, 2024." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "2024-09-11", "printed": "2024-09-11", "notation": null}
nlprog_det-setting-0079559
How many meters are in 73.9 kilometers? A Python solution: ```python km = 73.9 meters = km * 1000 # 73900.0 print(round(meters)) ``` The run gives 73900. 73,900 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "73900", "printed": "73900", "notation": null}
nlprog_det-setting-0079560
Prorate $1,800 of monthly rent for 6 days of a 31-day month. Program: ```python rent = 1800 days_in_month = 31 days_occupied = 6 prorated = rent * days_occupied / days_in_month # 348.38709677419354 print(f"{prorated:.2f}") ``` When run, it prints 348.39, as expected. The prorated rent is $348.39.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "348.39", "printed": "348.39", "notation": null}
nlprog_det-setting-0079561
<|start|><|system|> Tool definitions: [{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Printing costs 10 cents a page. ...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "208.80", "printed": "208.80", "notation": null}
nlprog_det-setting-0079562
How many whole days and leftover hours are in 149 hours? One way, in code: ```python hours = 149 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` This prints: 6 days and 5 hours That is 6 days and 5 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "6 days and 5 hours", "printed": "6 days and 5 hours", "notation": null}
nlprog_det-setting-0079563
Goods bought on March 22, 2019 carry a 36-month warranty. When does it expire? from datetime import date start = date(2019, 3, 22) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) The program ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "2022-03-22", "printed": "2022-03-22", "notation": null}
nlprog_det-setting-0079564
Fixed costs are $9,000. Each unit sells for $30 and costs $22 to make. How many units must be sold to break even? The program: ```python import math fixed = 9000 price = 30 variable = 22 units = math.ceil(fixed / (price - variable)) # 1125 print(units) ``` Python prints: 1125 Break-even is 1125 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "1125", "printed": "1125", "notation": null}
nlprog_det-setting-0079565
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Scale 300 g of rice from 4 servings to 3 servings.<|eot|> <|assistant|> ```python grams = 300 serves = 4 needed_for = 3 scaled = grams * needed_for // serves # 225 print(scaled) ``` When run, it prints: 225 Use 225 g of rice.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Scale 300 g of rice from 4 servings to 3 servings." }, { "role": "assistant", "content": "```python\ngrams = 300\nserves = 4\nneeded_for = 3\nscaled = grams * needed_for // serves # 225\nprint(s...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0079567
How many of 42 members form a majority (more than half)? Computing it: ```python members = 42 majority = members // 2 + 1 # 22 print(majority) ``` Running this gives: 22 That is 22 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0079568
<|start|><|system|> You help with homework problems.<|eot|> <|user|> Printing costs 15 cents a page. What does it cost to print 64 copies of a 5-page handout?<|eot|> <|assistant|> ```python pages = 5 copies = 64 cost_per_page = 0.15 cost = pages * copies * cost_per_page print(f"{cost:.2f}") ``` Result — 48.00 The job ...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "Printing costs 15 cents a page. What does it cost to print 64 copies of a 5-page handout?" }, { "role": "assistant", "content": "```python\npages = 5\ncopies = 64\ncost_per_page = 0.15\...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "48.00", "printed": "48.00", "notation": null}