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-0068734
At a 9% tax rate, what is the tax on $858.69? Computation in Python: ```python price = 858.69 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 77.2821 print(f"{tax:.2f}") ``` (Result: 77.28) $77.28 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "77.28", "printed": "77.28", "notation": null}
nlprog_det-setting-0068735
<|start|><|system|> You can call tools. Available tools: [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"ty...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"get_weather\", \"descrip...
nlprog_det
setting
original
null
deterministic
[]
[]
378
{"gold": "114", "printed": "114", "notation": null}
nlprog_det-setting-0068736
<|start|><|user|> The rules require 1/3 of 38 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 38 quorum = math.ceil(members * 1 / 3) # 13 print(quorum) ``` Executing it gives 13. That is 13 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 1/3 of 38 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 38\nquorum = math.ceil(members * 1 / 3) # 13\nprint(quorum)\n```\nExecuting it gives 13.\n\nThat is 13 members."...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0068738
What does $1,000 grow to in 3 years at 5% annual compounding? Translated to Python: ```python principal = 1000 rate = 5 / 100 # 0.05 years = 3 value = principal * (1 + rate) ** years # 1157.6250000000002 print(f"{value:.2f}") ``` It prints 1157.63, as expected. The balance is $1,157.63.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "1157.63", "printed": "1157.63", "notation": null}
nlprog_det-setting-0068739
<|start|><|user|> The meal allowance is $59 per day. What is it for 6 days?<|eot|> <|assistant|> ```python days = 6 meal_rate = 59 total = days * meal_rate # 354 print(total) ``` Output: 354 The allowance is $354.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The meal allowance is $59 per day. What is it for 6 days?" }, { "role": "assistant", "content": "```python\ndays = 6\nmeal_rate = 59\ntotal = days * meal_rate # 354\nprint(total)\n```\nOutput: 354\n\nThe allowance is $354." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "354", "printed": "354", "notation": null}
nlprog_det-setting-0068740
What average speed covers 376 miles in 4 hours? Program: ```python distance = 376 hours = 4 speed = distance / hours # 94.0 print(round(speed)) ``` When run, it prints 94, as expected. It averages 94 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "94", "printed": "94", "notation": null}
nlprog_det-setting-0068741
<|start|><|user|> At an exchange rate of 1.31 USD per EUR, how many USD is 1,249 EUR?<|eot|> <|assistant|> ```python amount = 1249 rate = 1.31 converted = amount * rate # 1636.19 print(f"{converted:.2f}") ``` Executing it gives 1636.19, as expected. It converts to 1,636.19 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.31 USD per EUR, how many USD is 1,249 EUR?" }, { "role": "assistant", "content": "```python\namount = 1249\nrate = 1.31\nconverted = amount * rate # 1636.19\nprint(f\"{converted:.2f}\")\n```\nExecuting it gives 1636.19, as expected.\n\nIt c...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1636.19", "printed": "1636.19", "notation": null}
nlprog_det-setting-0068744
A 5 × 8 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? The Python version: ```python import math length = 5 width = 8 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 10 print(tiles) ``` Run result: 10 10 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0068746
A appointment starts at 12:15 PM and lasts 90 minutes. When does it end? A short script: ```python start = 12 * 60 + 15 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` It prints 1:45 PM, as expected. The appointment finishes at 1:45 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "1:45 PM", "printed": "1:45 PM", "notation": null}
nlprog_det-setting-0068747
<|start|><|user|> A recipe for 8 people uses 450 grams of rice. 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) ``` On running, it outputs: 225 225 grams of rice are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 8 people uses 450 grams of rice. 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```\nOn running, it outputs:...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0068748
A garage charges $3 an hour, never more than $15 a day. How much for 1 hours? Programmatically: ```python rate = 3 hours = 1 daily_max = 15 cost = min(rate * hours, daily_max) # 3 print(cost) ``` Output = 3 The charge is $3.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0068749
Rosa drove 78 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement? Python makes this quick: ```python miles = 78 rate = 0.62 reimbursement = miles * rate # 48.36 print(f"{reimbursement:.2f}") ``` stdout: 48.36 Rosa is owed $48.36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "48.36", "printed": "48.36", "notation": null}
nlprog_det-setting-0068750
Someone works 40 hours at $16.21 per hour. What are the earnings? Coded up: ```python rate = 16.21 hours = 40 earnings = rate * hours # 648.4000000000001 print(f"{earnings:.2f}") ``` # result: 648.40 The pay is $648.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "648.40", "printed": "648.40", "notation": null}
nlprog_det-setting-0068751
<|start|><|user|> A penalty of $50 a day accrues, capped at $5,000. What is owed after 57 days?<|eot|> <|assistant|> ```python per_day = 50 days = 57 cap = 5000 fine = min(per_day * days, cap) # 2850 print(fine) ``` This prints 2850, as expected. $2,850 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $50 a day accrues, capped at $5,000. What is owed after 57 days?" }, { "role": "assistant", "content": "```python\nper_day = 50\ndays = 57\ncap = 5000\nfine = min(per_day * days, cap) # 2850\nprint(fine)\n```\nThis prints 2850, as expected.\n\n$2,850 i...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "2850", "printed": "2850", "notation": null}
nlprog_det-setting-0068752
<|start|><|user|> Fixed costs are $9,000. Each unit sells for $30 and costs $24 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 9000 price = 30 variable = 24 units = math.ceil(fixed / (price - variable)) # 1500 print(units) ``` Printed: 1500 Break-even is 1500 un...
chat
[ { "role": "user", "content": "Fixed costs are $9,000. Each unit sells for $30 and costs $24 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 9000\nprice = 30\nvariable = 24\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0068753
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "lookup...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source c...
nlprog_det
setting
original
null
deterministic
[]
[]
306
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0068754
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> 4 claima...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
205
{"gold": "9000", "printed": "9000", "notation": null}
nlprog_det-setting-0068755
A 30-day notice period begins on August 5, 2020. On what date does it end? Translated to Python: ```python from datetime import date, timedelta start = date(2020, 8, 5) # datetime.date(2020, 8, 5) end = start + timedelta(days=30) # datetime.date(2020, 9, 4) print(end.isoformat()) ``` The code prints 2020-09-04. It ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2020-09-04", "printed": "2020-09-04", "notation": null}
nlprog_det-setting-0068756
A storeroom has 1587 headsets. The office uses 29 a day. How many are left after 9 days? Computing it: ```python stock = 1587 per_day = 29 days = 9 left = stock - per_day * days # 1326 print(left) ``` Result = 1326 1326 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1326", "printed": "1326", "notation": null}
nlprog_det-setting-0068758
How many whole days and leftover hours are in 48 hours? Python code: ```python hours = 48 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` # result: 2 days and 0 hours That is 2 days and 0 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "2 days and 0 hours", "printed": "2 days and 0 hours", "notation": null}
nlprog_det-setting-0068759
With 22 rows of 23 chairs and 26 empty chairs, how many chairs are taken? ```python rows = 22 per_row = 23 empty = 26 seated = rows * per_row - empty # 480 print(seated) ``` Printed: 480 480 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "480", "printed": "480", "notation": null}
nlprog_det-setting-0068760
The firm was founded in 1998. How many years had passed by 2032? That is 34 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0068761
Express 310 hours in days and hours. Written as code: ```python hours = 310 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Executed, it shows: 12 days and 22 hours That is 12 days and 22 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "12 days and 22 hours", "printed": "12 days and 22 hours", "notation": null}
nlprog_det-setting-0068762
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> How many weekdays (Monday to Friday) fall after January 4, 2025 up to and including February 7, 2025?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2025, 1, 4) end = date(2025, 2, 7) count = 0 for k in range(...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "How many weekdays (Monday to Friday) fall after January 4, 2025 up to and including February 7, 2025?" }, { "role": "assistant", "content": "```python\nfrom datetime import date...
nlprog_det
setting
original
null
deterministic
[]
[]
170
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0068763
<|start|><|user|> 5 swims at 300 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 300 sessions = 5 total = per_session * sessions # 1500 print(total) ``` What it prints — 1500 That burns 1500 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "5 swims at 300 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 300\nsessions = 5\ntotal = per_session * sessions # 1500\nprint(total)\n```\nWhat it prints — 1500\n\nThat burns 1500 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0068764
Sofia and Joelle share $560 in the ratio 3:4. How much does Sofia get? Sofia gets $240.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0068765
27 water bottles cost $7 apiece. With 8% tax added, what is the total? ```python quantity = 27 unit_price = 7 subtotal = quantity * unit_price # 189 total = subtotal * (1 + 8 / 100) # 204.12 print(f"{total:.2f}") ``` The code prints 204.12. The invoice total is $204.12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "204.12", "printed": "204.12", "notation": null}
nlprog_det-setting-0068766
A 6-month warranty starts on November 11, 2024. On what date does it end? Here is the program. ```python from datetime import date start = date(2024, 11, 11) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Output...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2025-05-11", "printed": "2025-05-11", "notation": null}
nlprog_det-setting-0068767
Shipping costs $10 plus $1.20 per pound. What does a 35-pound parcel cost to ship? A few lines of Python do it: ```python base = 10 per_pound = 1.2 weight = 35 cost = base + per_pound * weight # 52.0 print(f"{cost:.2f}") ``` This prints: 52.00 The charge is $52.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "52.00", "printed": "52.00", "notation": null}
nlprog_det-setting-0068769
<|start|><|user|> Express 151 hours in days and hours.<|eot|> <|assistant|> ```python hours = 151 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The printout reads 6 days and 7 hours. That is 6 days and 7 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 151 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 151\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThe printout reads 6 days and 7 hours.\n\nThat is 6 days and 7 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "6 days and 7 hours", "printed": "6 days and 7 hours", "notation": null}
nlprog_det-setting-0068770
3 friends split a $180 bill plus a 18% tip evenly. How much does each pay? As a program: ```python bill = 180 tip_rate = 18 / 100 # 0.18 people = 3 each = bill * (1 + tip_rate) / people # 70.8 print(f"{each:.2f}") ``` On running, it outputs 70.80. Each person pays $70.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "70.80", "printed": "70.80", "notation": null}
nlprog_det-setting-0068771
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> A lawyer's fee is 35% of a $60,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 60000 rate = 35 / 100 # 0.35 fee = recovery * rate # 21000.0 print(f"{fee:.2f}") ``` Printed result: 21000.00 The fee is $21,000.00.<...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "A lawyer's fee is 35% of a $60,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 60000\nrate = 35 / 100 # 0.35\nfee = recovery * ra...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "21000.00", "printed": "21000.00", "notation": null}
nlprog_det-setting-0068772
5 swims at 350 calories each burn how many calories in total? ```python per_session = 350 sessions = 5 total = per_session * sessions # 1750 print(total) ``` Running this gives: 1750 1750 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0068773
A storeroom has 775 pens. The office uses 18 a day. How many are left after 12 days? In Python: ```python stock = 775 per_day = 18 days = 12 left = stock - per_day * days # 559 print(left) ``` Python prints 559, as expected. 559 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "559", "printed": "559", "notation": null}
nlprog_det-setting-0068775
A claim accrued on January 25, 2020. The limitations period is 3 years. On what date does it expire? Computation in Python: ```python from datetime import date accrued = date(2020, 1, 25) # datetime.date(2020, 1, 25) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2023, 1, 25) print(ex...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2023-01-25", "printed": "2023-01-25", "notation": null}
nlprog_det-setting-0068776
What simple interest does $5,000 earn at 2% a year over 6 years? Here is a short program for it. ```python principal = 5000 rate = 2 / 100 # 0.02 years = 6 interest = principal * rate * years # 600.0 print(f"{interest:.2f}") ``` That prints: 600.00 The interest is $600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0068777
At a 5% tax rate, what is the tax on $534.20? Let the code do the arithmetic: ```python price = 534.2 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 26.710000000000004 print(f"{tax:.2f}") ``` Run result: 26.71 The tax is $26.71.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "26.71", "printed": "26.71", "notation": null}
nlprog_det-setting-0068778
A shift runs from 11:27 AM to 4:18 PM. How long is it in minutes? Here's the code. ```python start = 11 * 60 + 27 # 687 end = 16 * 60 + 18 # 978 print(end - start) ``` When run, it prints 291. 291 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "291", "printed": "291", "notation": null}
nlprog_det-setting-0068779
Fixed costs are $2,500. Each unit sells for $40 and costs $32 to make. How many units must be sold to break even? Here's the code. ```python import math fixed = 2500 price = 40 variable = 32 units = math.ceil(fixed / (price - variable)) # 313 print(units) ``` The interpreter prints: 313 313 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "313", "printed": "313", "notation": null}
nlprog_det-setting-0068780
At an exchange rate of 1.12 USD per EUR, how many USD is 5,033 EUR? We can compute it in Python. ```python amount = 5033 rate = 1.12 converted = amount * rate # 5636.960000000001 print(f"{converted:.2f}") ``` Run output: 5636.96 It converts to 5,636.96 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "5636.96", "printed": "5636.96", "notation": null}
nlprog_det-setting-0068781
A quorum is 3/5 of the 22 members, rounded up. How many members make a quorum? Python code: ```python import math members = 22 quorum = math.ceil(members * 3 / 5) # 14 print(quorum) ``` Executing it gives: 14 That is 14 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0068782
How many 2-foot square tiles cover a 15 ft by 12 ft floor (round up)? As Python: import math length = 15 width = 12 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 45 print(tiles) The code prints 45. 45 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0068783
Fixed costs are $9,000. Each unit sells for $20 and costs $12 to make. How many units must be sold to break even? A short script: import math fixed = 9000 price = 20 variable = 12 units = math.ceil(fixed / (price - variable)) # 1125 print(units) Interpreter output — 1125 1125 units are needed...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1125", "printed": "1125", "notation": null}
nlprog_det-setting-0068784
A water bill is $12 plus $3.50 per thousand gallons beyond the first 2 thousand. What is the bill for 13 thousand gallons? $50.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "50.50", "printed": "50.50", "notation": null}
nlprog_det-setting-0068785
Printing costs 15 cents a page. What does it cost to print 72 copies of a 37-page handout? ```python pages = 37 copies = 72 cost_per_page = 0.15 cost = pages * copies * cost_per_page print(f"{cost:.2f}") ``` Program output: 399.60 The job costs $399.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "399.60", "printed": "399.60", "notation": null}
nlprog_det-setting-0068786
If a 105-minute hearing begins at 10:45 AM, what time does it finish? A few lines of Python do it: ```python start = 10 * 60 + 45 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Execution prints 12:30 PM, as expected. It ends at 12:30 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "12:30 PM", "printed": "12:30 PM", "notation": null}
nlprog_det-setting-0068787
At $0.65 per mile, what is the reimbursement for 403 miles? The Python version: ```python miles = 403 rate = 0.65 reimbursement = miles * rate print(f"{reimbursement:.2f}") ``` # stdout: 261.95 The reimbursement is $261.95.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "261.95", "printed": "261.95", "notation": null}
nlprog_det-setting-0068788
$1,000 is invested at 4% compounded yearly. What is it worth after 3 years? Script: ```python principal = 1000 rate = 4 / 100 # 0.04 years = 3 value = principal * (1 + rate) ** years # 1124.864 print(f"{value:.2f}") ``` # run result: 1124.86 It is worth $1,124.86.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1124.86", "printed": "1124.86", "notation": null}
nlprog_det-setting-0068789
What is the total rent on a 24-month lease at $975 a month? Translated to Python: ```python monthly_rent = 975 months = 24 total = monthly_rent * months # 23400 print(total) ``` The interpreter prints 23400. The rent over the term is $23,400.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "23400", "printed": "23400", "notation": null}
nlprog_det-setting-0068790
1 books come back 21 days late, at $0.15 a day each. What is the fine? A Python solution: ```python per_day = 0.15 days_late = 21 books = 1 fine = per_day * days_late * books # 3.15 print(f"{fine:.2f}") ``` It prints 3.15, as expected. The fine is $3.15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "3.15", "printed": "3.15", "notation": null}
nlprog_det-setting-0068791
<|start|><|user|> A $3,600 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> principal = 3600 annual_rate = 8 / 100 # 0.08 months = 36 interest = principal * annual_rate * months / 12 # 864.0 ...
chat
[ { "role": "user", "content": "A $3,600 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": " principal = 3600\n annual_rate = 8 / 100 # 0.08\n months = 36\n in...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "124.00", "printed": "124.00", "notation": null}
nlprog_det-setting-0068792
$1,000 is invested at 5% compounded yearly. What is it worth after 5 years? In code: ```python principal = 1000 rate = 5 / 100 # 0.05 years = 5 value = principal * (1 + rate) ** years # 1276.2815625000003 print(f"{value:.2f}") ``` # execution result: 1276.28 The balance is $1,276.28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1276.28", "printed": "1276.28", "notation": null}
nlprog_det-setting-0068793
Rent of $1,500 goes up 5%. What is the new rent? Python: ```python rent = 1500 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1575.0 print(f"{new_rent:.2f}") ``` The run gives: 1575.00 It rises to $1,575.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0068794
<|start|><|system|> Keep explanations short.<|eot|> <|user|> Fines run at $250 per day up to a maximum of $1,000. How much after 6 days?<|eot|> <|assistant|> ```python per_day = 250 days = 6 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` This prints: 1000 The fine is $1,000.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "Fines run at $250 per day up to a maximum of $1,000. How much after 6 days?" }, { "role": "assistant", "content": "```python\nper_day = 250\ndays = 6\ncap = 1000\nfine = min(per_day * days, cap...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0068795
At $17.34 an hour, what does 16 hours of work pay? Here is a short program for it. ```python rate = 17.34 hours = 16 earnings = rate * hours # 277.44 print(f"{earnings:.2f}") ``` # result: 277.44 That earns $277.44.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "277.44", "printed": "277.44", "notation": null}
nlprog_det-setting-0068796
What simple interest does $1,000 earn at 4% a year over 2 years? Computation in Python: ```python principal = 1000 rate = 4 / 100 # 0.04 years = 2 interest = principal * rate * years # 80.0 print(f"{interest:.2f}") ``` Executed, it shows: 80.00 The interest is $80.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "80.00", "printed": "80.00", "notation": null}
nlprog_det-setting-0068797
A hearing starts at 4:45 PM and lasts 50 minutes. When does it end? Python: ```python start = 16 * 60 + 45 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Program output: 5:35 PM It ends at 5:35 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "5:35 PM", "printed": "5:35 PM", "notation": null}
nlprog_det-setting-0068798
How many of 32 members form a majority (more than half)? Program: ```python members = 32 majority = members // 2 + 1 # 17 print(majority) ``` # printed result: 17 That is 17 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0068799
A $2,500 security deposit has deductions of $120. How much is refunded? Set it up in Python: ```python deposit = 2500 deductions = [120] refund = deposit - sum(deductions) # 2380 print(refund) ``` When run, it prints 2380, as expected. $2,380 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "2380", "printed": "2380", "notation": null}
nlprog_det-setting-0068801
<|start|><|user|> A count moves from 1,000 to 850. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> old = 1000 new = 850 change = (new - old) / old * 100 # -15.0 print(round(change)) Shell output: -15 It changed by -15%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 1,000 to 850. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": " old = 1000\n new = 850\n change = (new - old) / old * 100 # -15.0\n print(round(change))\nShell output: -15\n\nIt chang...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0068802
<|start|><|user|> With 10% off, what does a $60 desk lamp cost?<|eot|> <|assistant|> It costs $54.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 10% off, what does a $60 desk lamp cost?" }, { "role": "assistant", "content": "It costs $54.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0068803
<|start|><|user|> A 21-day notice period begins on October 2, 2021. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2021, 10, 2) end = start + timedelta(days=21) print(end.isoformat()) ``` # printed: 2021-10-23 The period ends on October 23, 2021.<|eot|> <|end...
chat
[ { "role": "user", "content": "A 21-day notice period begins on October 2, 2021. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2021, 10, 2)\nend = start + timedelta(days=21)\nprint(end.isoformat())\n```\n# printed: 2...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "2021-10-23", "printed": "2021-10-23", "notation": null}
nlprog_det-setting-0068804
Prorate $1,500 of monthly rent for 7 days of a 30-day month. The Python version: ```python rent = 1500 days_in_month = 30 days_occupied = 7 prorated = rent * days_occupied / days_in_month # 350.0 print(f"{prorated:.2f}") ``` On running, it outputs 350.00. The tenant owes $350.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "350.00", "printed": "350.00", "notation": null}
nlprog_det-setting-0068805
<|start|><|user|> Find the mean of these test scores: 100, 57 and 83.<|eot|> <|assistant|> ```python scores = [100, 57, 83] average = sum(scores) // len(scores) # 80 print(average) ``` Shell output: 80 The mean is 80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Find the mean of these test scores: 100, 57 and 83." }, { "role": "assistant", "content": "```python\nscores = [100, 57, 83]\naverage = sum(scores) // len(scores) # 80\nprint(average)\n```\nShell output: 80\n\nThe mean is 80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0068806
A meal costs $229.97. How much is a 25% tip? Coded up: ```python bill = 229.97 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 57.4925 print(f"{tip:.2f}") ``` Executing it gives 57.49, as expected. The tip is $57.49.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "57.49", "printed": "57.49", "notation": null}
nlprog_det-setting-0068807
<|start|><|user|> 5 friends split a $150 bill plus a 15% tip evenly. How much does each pay?<|eot|> <|assistant|> bill = 150 tip_rate = 15 / 100 # 0.15 people = 5 each = bill * (1 + tip_rate) / people # 34.5 print(f"{each:.2f}") stdout — 34.50 The share is $34.50 each.<|eot|> <|end|>
chat
[ { "role": "user", "content": "5 friends split a $150 bill plus a 15% tip evenly. How much does each pay?" }, { "role": "assistant", "content": " bill = 150\n tip_rate = 15 / 100 # 0.15\n people = 5\n each = bill * (1 + tip_rate) / people # 34.5\n print(f\"{each:.2f}\")\nstdout —...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "34.50", "printed": "34.50", "notation": null}
nlprog_det-setting-0068808
<|start|><|user|> Goods bought on June 23, 2021 carry a 12-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2021, 6, 23) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.is...
chat
[ { "role": "user", "content": "Goods bought on June 23, 2021 carry a 12-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2021, 6, 23)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(s...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2022-06-23", "printed": "2022-06-23", "notation": null}
nlprog_det-setting-0068809
A customer buys 4 toner kits at $10 each, 4 pens at $5 each and pays with $100. How much change is due? A short script: ```python items = [(4, 10), (4, 5)] total = sum(q * p for q, p in items) # 60 paid = 100 change = paid - total # 40 print(change) ``` Printed result: 40 $40 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0068810
How many of 22 votes make 60% (round up)? ```python import math voters = 22 needed = math.ceil(voters * 60 / 100) # 14 print(needed) ``` Console: 14 14 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0068811
Count 30 days forward from September 1, 2018. What date is that? That date is October 1, 2018.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "2018-10-01", "printed": "2018-10-01", "notation": null}
nlprog_det-setting-0068812
Walls total 1210 sq ft and each can covers 400 sq ft. How many cans should be bought? A short script: ```python import math area = 1210 coverage = 400 cans = math.ceil(area / coverage) # 4 print(cans) ``` This prints: 4 4 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0068813
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "interpreter", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eo...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"interpreter\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \...
nlprog_det
setting
original
null
deterministic
[]
[]
258
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0068814
<|start|><|user|> A $2,500 security deposit has deductions of $85, $120 and $60. How much is refunded?<|eot|> <|assistant|> ```python deposit = 2500 deductions = [85, 120, 60] refund = deposit - sum(deductions) print(refund) ``` The program prints 2235, as expected. The refund is $2,235.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $2,500 security deposit has deductions of $85, $120 and $60. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 2500\ndeductions = [85, 120, 60]\nrefund = deposit - sum(deductions)\nprint(refund)\n```\nThe program prints 2235, as exp...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "2235", "printed": "2235", "notation": null}
nlprog_det-setting-0068815
<|start|><|user|> How many days are there from October 27, 2021 to August 14, 2022?<|eot|> <|assistant|> ```python from datetime import date first = date(2021, 10, 27) second = date(2022, 8, 14) print((second - first).days) ``` Output: 291 There are 291 days between the two dates.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many days are there from October 27, 2021 to August 14, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2021, 10, 27)\nsecond = date(2022, 8, 14)\nprint((second - first).days)\n```\nOutput:\n291\n\nThere are 291 da...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "291", "printed": "291", "notation": null}
nlprog_det-setting-0068816
<|start|><|system|> Tools (call with JSON): {"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> With 26 rows of 8 chairs and 36 empty ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}...
nlprog_det
setting
original
null
deterministic
[]
[]
212
{"gold": "172", "printed": "172", "notation": null}
nlprog_det-setting-0068819
<|start|><|user|> Count 14 days forward from September 1, 2020. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2020, 9, 1) end = start + timedelta(days=14) print(end.isoformat()) ``` Execution result: 2020-09-15 That date is September 15, 2020.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Count 14 days forward from September 1, 2020. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2020, 9, 1)\nend = start + timedelta(days=14)\nprint(end.isoformat())\n```\nExecution result: 2020-0...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "2020-09-15", "printed": "2020-09-15", "notation": null}
nlprog_det-setting-0068820
Monthly rent is $1,200. A tenant moves in with 21 days left in a 31-day month. What is the prorated rent? The computation: rent = 1200 days_in_month = 31 days_occupied = 21 prorated = rent * days_occupied / days_in_month # 812.9032258064516 print(f"{prorated:.2f}") (Printed result: 812.90) The pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "812.90", "printed": "812.90", "notation": null}
nlprog_det-setting-0068821
If a 40-minute appointment begins at 12:45 PM, what time does it finish? Coded up: ```python start = 12 * 60 + 45 end = start + 40 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` (Execution result: 1:25 PM) It ends at 1:25 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "1:25 PM", "printed": "1:25 PM", "notation": null}
nlprog_det-setting-0068822
<|start|><|system|> Tools (call with JSON): {"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> 5 lanyards cost $2 apiece. W...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
247
{"gold": "11.00", "printed": "11.00", "notation": null}
nlprog_det-setting-0068823
<|start|><|user|> How many whole days and leftover hours are in 323 hours?<|eot|> <|assistant|> hours = 323 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") (Out: 13 days and 11 hours) 323 hours is 13 days and 11 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 323 hours?" }, { "role": "assistant", "content": " hours = 323\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\n(Out: 13 days and 11 hours)\n\n323 hours is 13 days and 11 hours." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "13 days and 11 hours", "printed": "13 days and 11 hours", "notation": null}
nlprog_det-setting-0068824
If a 2-year limitations period starts on September 13, 2017, when does it end? We can compute it in Python. ```python from datetime import date accrued = date(2017, 9, 13) # datetime.date(2017, 9, 13) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 9, 13) print(expires.isoformat(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2019-09-13", "printed": "2019-09-13", "notation": null}
nlprog_det-setting-0068825
A $1,000 security deposit has deductions of $150. How much is refunded? ```python deposit = 1000 deductions = [150] refund = deposit - sum(deductions) # 850 print(refund) ``` It prints 850, as expected. $850 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "850", "printed": "850", "notation": null}
nlprog_det-setting-0068827
Equal monthly payments repay $9,000 plus 5% simple yearly interest over 36 months. How large is a payment? One way, in code: ```python principal = 9000 annual_rate = 5 / 100 # 0.05 months = 36 interest = principal * annual_rate * months / 12 # 1350.0 payment = (principal + interest) / months # 287.5 print(f"{paymen...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "287.50", "printed": "287.50", "notation": null}
nlprog_det-setting-0068828
A 8% increase is applied to $1,250 monthly rent. What is the new amount? Coded up: ```python rent = 1250 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1350.0 print(f"{new_rent:.2f}") ``` Execution result: 1350.00 It rises to $1,350.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1350.00", "printed": "1350.00", "notation": null}
nlprog_det-setting-0068829
<|start|><|system|> Tool definitions: [{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "translate", "description": "Translate text in...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
301
{"gold": "24000.00", "printed": "24000.00", "notation": null}
nlprog_det-setting-0068830
$10,000 is invested at 4% compounded yearly. What is it worth after 5 years? A short script: ```python principal = 10000 rate = 4 / 100 # 0.04 years = 5 value = principal * (1 + rate) ** years # 12166.529024000001 print(f"{value:.2f}") ``` When run, it prints 12166.53, as expected. The balance is $12,166.53.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "12166.53", "printed": "12166.53", "notation": null}
nlprog_det-setting-0068831
<|start|><|user|> 1 books come back 4 days late, at $0.10 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.1 days_late = 4 books = 1 fine = per_day * days_late * books # 0.4 print(f"{fine:.2f}") ``` The program outputs 0.40. $0.40 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "1 books come back 4 days late, at $0.10 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.1\ndays_late = 4\nbooks = 1\nfine = per_day * days_late * books # 0.4\nprint(f\"{fine:.2f}\")\n```\nThe program outputs 0.40.\n\n$0.4...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "0.40", "printed": "0.40", "notation": null}
nlprog_det-setting-0068832
What day of the week is October 21, 1993? Program: ```python from datetime import date hearing = date(1993, 10, 21) # datetime.date(1993, 10, 21) print(hearing.strftime("%A")) ``` (Program output: Thursday) October 21, 1993 is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0068834
5 walks at 150 calories each burn how many calories in total? Let's compute it with Python. ```python per_session = 150 sessions = 5 total = per_session * sessions # 750 print(total) ``` (Run result: 750) That burns 750 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0068835
<|start|><|user|> A customer buys 6 badges at $24 each, 4 staplers at $28 each and pays with $300. How much change is due?<|eot|> <|assistant|> ```python items = [(6, 24), (4, 28)] total = sum(q * p for q, p in items) # 256 paid = 300 change = paid - total # 44 print(change) ``` When run, it prints 44, as expected. ...
chat
[ { "role": "user", "content": "A customer buys 6 badges at $24 each, 4 staplers at $28 each and pays with $300. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(6, 24), (4, 28)]\ntotal = sum(q * p for q, p in items) # 256\npaid = 300\nchange = paid - total # 4...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0068836
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> What day of the week is September 19, 2012?<|eot|> <|assistant|> September 19, 2012 is a Wednesday.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "What day of the week is September 19, 2012?" }, { "role": "assistant", "content": "September 19, 2012 is a Wednesday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0068837
<|start|><|system|> Be concise.<|eot|> <|user|> Rafael's scores were 93, 70 and 74. What is the average score?<|eot|> <|assistant|> ```python scores = [93, 70, 74] average = sum(scores) // len(scores) # 79 print(average) ``` Printed result: 79 The mean is 79.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "Rafael's scores were 93, 70 and 74. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [93, 70, 74]\naverage = sum(scores) // len(scores) # 79\nprint(average)\n```\nPrint...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0068838
A count moves from 1,200 to 1,020. By what percent did it change (use a minus sign for a drop)? In code: ```python old = 1200 new = 1020 change = (new - old) / old * 100 # -15.0 print(round(change)) ``` Output: -15 It changed by -15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0068839
26 mugs cost $15 apiece. With 5% tax added, what is the total? Code: ```python quantity = 26 unit_price = 15 subtotal = quantity * unit_price # 390 total = subtotal * (1 + 5 / 100) # 409.5 print(f"{total:.2f}") ``` # result: 409.50 The invoice total is $409.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "409.50", "printed": "409.50", "notation": null}
nlprog_det-setting-0068840
<|start|><|system|> You are a math tutor.<|eot|> <|user|> A $150 dinner bill gets a 15% tip, and 2 people share the cost equally. What is each person's share?<|eot|> <|assistant|> The share is $86.25 each.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "A $150 dinner bill gets a 15% tip, and 2 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "The share is $86.25 each." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
58
{"gold": "86.25", "printed": "86.25", "notation": null}
nlprog_det-setting-0068841
Jamal and Yusuf share $2,219 in the ratio 3:4. How much does Jamal get? Python does the arithmetic: ```python total = 2219 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) print(share_a) ``` This prints: 951 Jamal's share is $951.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "951", "printed": "951", "notation": null}
nlprog_det-setting-0068843
A 8% increase is applied to $1,800 monthly rent. What is the new amount? As a program: ```python rent = 1800 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1944.0000000000002 print(f"{new_rent:.2f}") ``` The program prints: 1944.00 It rises to $1,944.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1944.00", "printed": "1944.00", "notation": null}
nlprog_det-setting-0068844
<|start|><|user|> What percentage of $4,000 is $3,000?<|eot|> <|assistant|> That is 75.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $4,000 is $3,000?" }, { "role": "assistant", "content": "That is 75.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "75.0", "printed": "75.0", "notation": null}
nlprog_det-setting-0068845
A 14-day notice period begins on October 3, 2023. On what date does it end? A few lines of Python do it: from datetime import date, timedelta start = date(2023, 10, 3) # datetime.date(2023, 10, 3) end = start + timedelta(days=14) # datetime.date(2023, 10, 17) print(end.isoformat()) That prints 2023-1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "2023-10-17", "printed": "2023-10-17", "notation": null}
nlprog_det-setting-0068846
<|start|><|user|> How many units at $25 each (variable cost $19) cover $1,200 of fixed costs?<|eot|> <|assistant|> import math fixed = 1200 price = 25 variable = 19 units = math.ceil(fixed / (price - variable)) # 200 print(units) (Execution result: 200) Break-even is 200 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $25 each (variable cost $19) cover $1,200 of fixed costs?" }, { "role": "assistant", "content": " import math\n fixed = 1200\n price = 25\n variable = 19\n units = math.ceil(fixed / (price - variable)) # 200\n print(units)\n(Exec...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "200", "printed": "200", "notation": null}