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-0084274
Under a 35% contingency agreement, what fee is owed on a $40,000 award? The program: ```python recovery = 40000 rate = 35 / 100 # 0.35 fee = recovery * rate # 14000.0 print(f"{fee:.2f}") ``` Python prints: 14000.00 The fee is $14,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "14000.00", "printed": "14000.00", "notation": null}
nlprog_det-setting-0084275
<|start|><|system|> Available functions (JSON Schema): [{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "run_python", "description": "Evaluates Python and returns the printed output.", "pa...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"run_python\", \"description\"...
nlprog_det
setting
original
null
deterministic
[]
[]
313
{"gold": "34.32", "printed": "34.32", "notation": null}
nlprog_det-setting-0084276
A lease runs for 12 months at $1,475 per month. How much rent is paid over the whole term? Computing it: ```python monthly_rent = 1475 months = 12 total = monthly_rent * months # 17700 print(total) ``` stdout = 17700 The rent over the term is $17,700.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "17700", "printed": "17700", "notation": null}
nlprog_det-setting-0084277
How much is a $79 daily meal allowance over 6 days? Program: ```python days = 6 meal_rate = 79 total = days * meal_rate # 474 print(total) ``` # out: 474 That comes to $474.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "474", "printed": "474", "notation": null}
nlprog_det-setting-0084278
<|start|><|system|> You can call tools. Available tools: [{"name": "run_python", "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"]}}]<|eot|> <|user...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"run_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python sou...
nlprog_det
setting
original
null
deterministic
[]
[]
247
{"gold": "225.00", "printed": "225.00", "notation": null}
nlprog_det-setting-0084279
<|start|><|user|> A shift runs from 8:34 AM to 10:07 AM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 8 * 60 + 34 # 514 end = 10 * 60 + 7 # 607 print(end - start) ``` On running, it outputs: 93 93 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 8:34 AM to 10:07 AM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 34 # 514\nend = 10 * 60 + 7 # 607\nprint(end - start)\n```\nOn running, it outputs: 93\n\n93 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "93", "printed": "93", "notation": null}
nlprog_det-setting-0084280
A shift starts at 9:15 AM and lasts 90 minutes. When does it end? Let the code do the arithmetic: ```python start = 9 * 60 + 15 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` This prints 10:45 AM. It ends at 10:45 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "10:45 AM", "printed": "10:45 AM", "notation": null}
nlprog_det-setting-0084281
Convert 62.6 km to meters. We can compute it in Python. ```python km = 62.6 meters = km * 1000 # 62600.0 print(round(meters)) ``` The code prints 62600. 62,600 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "62600", "printed": "62600", "notation": null}
nlprog_det-setting-0084282
<|start|><|user|> Filing fees are $35 per document. What do 9 filings cost?<|eot|> <|assistant|> fee = 35 filings = 9 total = fee * filings # 315 print(total) It prints: 315 The filings cost $315 in all.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $35 per document. What do 9 filings cost?" }, { "role": "assistant", "content": " fee = 35\n filings = 9\n total = fee * filings # 315\n print(total)\nIt prints: 315\n\nThe filings cost $315 in all." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "315", "printed": "315", "notation": null}
nlprog_det-setting-0084283
A shift starts at 2:15 PM and lasts 135 minutes. When does it end? In code: ```python start = 14 * 60 + 15 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The printout reads: 4:30 PM The shift finishes at 4:30 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "4:30 PM", "printed": "4:30 PM", "notation": null}
nlprog_det-setting-0084284
<|start|><|user|> 751 files go into boxes of 15. How many boxes does that take?<|eot|> <|assistant|> 51 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "751 files go into boxes of 15. How many boxes does that take?" }, { "role": "assistant", "content": "51 boxes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0084285
12 hours of work at $180 an hour: what is the total charge? Python: ```python hours = 12 rate = 180 bill = hours * rate # 2160 print(f"{bill:.2f}") ``` Printed — 2160.00 That comes to $2,160.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "2160.00", "printed": "2160.00", "notation": null}
nlprog_det-setting-0084287
A 4-day trip pays $74 a day for meals and $175 a night for lodging (3 nights). What is the total allowance? Python, step by step: ```python days = 4 meal_rate = 74 lodging_rate = 175 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 821 print(total) ``` Run it and it prints: 821 The allowance...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "821", "printed": "821", "notation": null}
nlprog_det-setting-0084288
Monthly rent is $900. A tenant moves in with 6 days left in a 30-day month. What is the prorated rent? Python, step by step: ```python rent = 900 days_in_month = 30 days_occupied = 6 prorated = rent * days_occupied / days_in_month # 180.0 print(f"{prorated:.2f}") ``` Shell output: 180.00 The tenant owes $180.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "180.00", "printed": "180.00", "notation": null}
nlprog_det-setting-0084289
A penalty of $250 a day accrues, capped at $5,000. What is owed after 23 days? Coded up: ```python per_day = 250 days = 23 cap = 5000 fine = min(per_day * days, cap) # 5000 print(fine) ``` The printout reads 5000. $5,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0084290
562 files go into boxes of 25. How many boxes does that take? Written as code: ```python import math files = 562 per_box = 25 boxes = math.ceil(files / per_box) # 23 print(boxes) ``` This prints 23, as expected. It takes 23 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0084291
<|start|><|user|> A 13 × 11 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> import math length = 13 width = 11 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 143 print(tiles) # run result: 143 143 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 13 × 11 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": " import math\n length = 13\n width = 11\n tile = 1\n tiles = math.ceil(length * width / (tile * tile)) # 143\n print(tiles)\n#...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "143", "printed": "143", "notation": null}
nlprog_det-setting-0084292
Someone born August 10, 1969 turns how old by September 19, 2024? Give the age in whole years. Computing it: ```python from datetime import date born = date(1969, 8, 10) # datetime.date(1969, 8, 10) on = date(2024, 9, 19) # datetime.date(2024, 9, 19) age = on.year - born.year - ((on.month, on.day) < (born.month, bor...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "55", "printed": "55", "notation": null}
nlprog_det-setting-0084293
With 29 rows of 14 chairs and 8 empty chairs, how many chairs are taken? Python version: ```python rows = 29 per_row = 14 empty = 8 seated = rows * per_row - empty # 398 print(seated) ``` Program output: 398 398 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "398", "printed": "398", "notation": null}
nlprog_det-setting-0084294
Walls total 335 sq ft and each can covers 400 sq ft. How many cans should be bought? 1 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0084295
<|start|><|user|> How many 2-foot square tiles cover a 9 ft by 15 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 9 width = 15 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 34 print(tiles) ``` Python prints 34. It takes 34 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 2-foot square tiles cover a 9 ft by 15 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 9\nwidth = 15\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 34\nprint(tiles)\n```\nPython prints 34.\n\nIt ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0084297
A 18-month warranty starts on October 15, 2020. On what date does it end? Python does the arithmetic: ```python from datetime import date start = date(2020, 10, 15) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2022-04-15", "printed": "2022-04-15", "notation": null}
nlprog_det-setting-0084298
Prorate $1,200 of monthly rent for 24 days of a 31-day month. Coded up: ```python rent = 1200 days_in_month = 31 days_occupied = 24 prorated = rent * days_occupied / days_in_month # 929.0322580645161 print(f"{prorated:.2f}") ``` (Run result: 929.03) The tenant owes $929.03.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "929.03", "printed": "929.03", "notation": null}
nlprog_det-setting-0084299
A car gets 40 miles per gallon. Gas is $4.12 a gallon. What does fuel cost for a 120-mile trip? The trip uses $12.36 of gas.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "12.36", "printed": "12.36", "notation": null}
nlprog_det-setting-0084300
Split $5,752 between Olga and Jae in the ratio 3 to 5. What is Olga's share? Computation in Python: ```python total = 5752 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 2157 print(share_a) ``` (Out: 2157) Olga gets $2,157.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "2157", "printed": "2157", "notation": null}
nlprog_det-setting-0084301
<|start|><|user|> Starting from $8,000, the team spends $1,297, $2,846, $1,712. What remains?<|eot|> <|assistant|> ```python budget = 8000 expenses = [1297, 2846, 1712] left = budget - sum(expenses) # 2145 print(left) ``` When run, it prints 2145, as expected. The remaining budget is $2,145.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $8,000, the team spends $1,297, $2,846, $1,712. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nexpenses = [1297, 2846, 1712]\nleft = budget - sum(expenses) # 2145\nprint(left)\n```\nWhen run, it prints 2145, as expected...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "2145", "printed": "2145", "notation": null}
nlprog_det-setting-0084302
Prorate $1,800 of monthly rent for 19 days of a 31-day month. Set it up in Python: rent = 1800 days_in_month = 31 days_occupied = 19 prorated = rent * days_occupied / days_in_month # 1103.225806451613 print(f"{prorated:.2f}") Run output: 1103.23 The prorated rent is $1,103.23.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1103.23", "printed": "1103.23", "notation": null}
nlprog_det-setting-0084303
Meals are $59 per day and lodging $110 per night. What is the allowance for 8 days and 7 nights? days = 8 meal_rate = 59 lodging_rate = 110 nights = days - 1 # 7 total = days * meal_rate + nights * lodging_rate # 1242 print(total) Output — 1242 That comes to $1,242.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1242", "printed": "1242", "notation": null}
nlprog_det-setting-0084304
<|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": "python", "description": "Use for arithmetic and date math; returns stdout of t...
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\": \"python\", \"description\...
nlprog_det
setting
original
null
deterministic
[]
[]
273
{"gold": "51800", "printed": "51800", "notation": null}
nlprog_det-setting-0084305
Goods bought on February 17, 2019 carry a 12-month warranty. When does it expire? ```python from datetime import date start = date(2019, 2, 17) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` # result: 2020-02-1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2020-02-17", "printed": "2020-02-17", "notation": null}
nlprog_det-setting-0084306
<|start|><|user|> Water costs $15 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 13,000 gallons?<|eot|> <|assistant|> ```python base = 15 rate = 5.1 used = 13 free = 0 bill = base + rate * max(0, used - free) # 81.3 print(f"{bill:.2f}") ``` Running this gives 81.30. The bill is $81.30.<|eot|> ...
chat
[ { "role": "user", "content": "Water costs $15 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 13,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 5.1\nused = 13\nfree = 0\nbill = base + rate * max(0, used - free) # 81.3\nprint(f\"{bill:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "81.30", "printed": "81.30", "notation": null}
nlprog_det-setting-0084307
<|start|><|user|> A quorum is 1/3 of the 43 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 43 quorum = math.ceil(members * 1 / 3) # 15 print(quorum) ``` It prints: 15 15 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 1/3 of the 43 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 43\nquorum = math.ceil(members * 1 / 3) # 15\nprint(quorum)\n```\nIt prints: 15\n\n15 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0084308
<|start|><|system|> You may call the tools below. [{"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Abel and Leon share $4,263 in the rat...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "1827", "printed": "1827", "notation": null}
nlprog_det-setting-0084309
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> On which weekday does November 6, 2017 fall?<|eot|> <|assistant|> November 6, 2017 is a Monday.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "On which weekday does November 6, 2017 fall?" }, { "role": "assistant", "content": "November 6, 2017 is a Monday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0084310
A water bill is $12 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 18 thousand gallons? Code: ```python base = 12 rate = 4.75 used = 18 free = 2 bill = base + rate * max(0, used - free) # 88.0 print(f"{bill:.2f}") ``` Printed = 88.00 $88.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "88.00", "printed": "88.00", "notation": null}
nlprog_det-setting-0084311
<|start|><|user|> Count 45 days forward from April 19, 2027. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2027, 4, 19) # datetime.date(2027, 4, 19) end = start + timedelta(days=45) # datetime.date(2027, 6, 3) print(end.isoformat()) ``` # run result: 2027-06-03 T...
chat
[ { "role": "user", "content": "Count 45 days forward from April 19, 2027. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 4, 19) # datetime.date(2027, 4, 19)\nend = start + timedelta(days=45) # datetime.date(2027, 6, ...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2027-06-03", "printed": "2027-06-03", "notation": null}
nlprog_det-setting-0084312
A car travels 48 miles in 3 hours. What is its average speed in miles per hour? Here's the code. ```python distance = 48 hours = 3 speed = distance / hours # 16.0 print(round(speed)) ``` # run result: 16 The average speed is 16 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0084313
<|start|><|system|> You may call the tools below. {"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> Pack A has 6 items for $5...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
236
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0084314
<|start|><|system|> Tools you may use: [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "compute", "description": "A Python int...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", \"sec...
nlprog_det
setting
original
null
deterministic
[]
[]
312
{"gold": "6083.26", "printed": "6083.26", "notation": null}
nlprog_det-setting-0084315
2 friends split a $96 bill plus a 20% tip evenly. How much does each pay? Python makes this quick: ```python bill = 96 tip_rate = 20 / 100 # 0.2 people = 2 each = bill * (1 + tip_rate) / people # 57.599999999999994 print(f"{each:.2f}") ``` (Out: 57.60) The share is $57.60 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "57.60", "printed": "57.60", "notation": null}
nlprog_det-setting-0084316
<|start|><|user|> A storeroom has 759 headsets. The office uses 13 a day. How many are left after 3 days?<|eot|> <|assistant|> ```python stock = 759 per_day = 13 days = 3 left = stock - per_day * days print(left) ``` # printed: 720 720 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 759 headsets. The office uses 13 a day. How many are left after 3 days?" }, { "role": "assistant", "content": "```python\nstock = 759\nper_day = 13\ndays = 3\nleft = stock - per_day * days\nprint(left)\n```\n# printed: 720\n\n720 remain." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "720", "printed": "720", "notation": null}
nlprog_det-setting-0084317
<|start|><|system|> Tools (call with JSON): [{"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Attendance was 29 out of...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
205
{"gold": "58.0", "printed": "58.0", "notation": null}
nlprog_det-setting-0084319
How many meters are in 37 kilometers? Let the code do the arithmetic: ```python km = 37 meters = km * 1000 # 37000 print(round(meters)) ``` (Result: 37000) 37,000 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "37000", "printed": "37000", "notation": null}
nlprog_det-setting-0084320
How many units at $25 each (variable cost $20) cover $6,000 of fixed costs? Break-even is 1200 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0084321
Straight-line depreciation: cost $18,000, salvage $2,000, 5 years. How much per year? As Python: ```python cost = 18000 salvage = 2000 years = 5 per_year = (cost - salvage) / years # 3200.0 print(f"{per_year:.2f}") ``` Running it prints: 3200.00 $3,200.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "3200.00", "printed": "3200.00", "notation": null}
nlprog_det-setting-0084322
<|start|><|user|> A bicycle helmet costs $75. It is 10% off. What is the sale price?<|eot|> <|assistant|> ```python price = 75 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 67.5 print(f"{sale_price:.2f}") ``` # output: 67.50 It costs $67.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A bicycle helmet costs $75. It is 10% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 75\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - discount) # 67.5\nprint(f\"{sale_price:.2f}\")\n```\n# output: 67.50\n\nIt costs $...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "67.50", "printed": "67.50", "notation": null}
nlprog_det-setting-0084323
<|start|><|user|> Fixed costs are $1,200. Each unit sells for $40 and costs $30 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 1200 price = 40 variable = 30 units = math.ceil(fixed / (price - variable)) # 120 print(units) ``` The script prints 120. 120 units are...
chat
[ { "role": "user", "content": "Fixed costs are $1,200. Each unit sells for $40 and costs $30 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 1200\nprice = 40\nvariable = 30\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0084324
A storeroom has 513 flash drives. The office uses 13 a day. How many are left after 19 days? Let the code do the arithmetic: stock = 513 per_day = 13 days = 19 left = stock - per_day * days # 266 print(left) On running, it outputs: 266 266 flash drives are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "266", "printed": "266", "notation": null}
nlprog_det-setting-0084325
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Convert 8,132 EUR to USD at 1 EUR = 1.12 USD.<|eot|> <|assistant|> ```python amount = 8132 rate = 1.12 converted = amount * rate # 9107.84 print(f"{converted:.2f}") ``` stdout: 9107.84 That is 9,107.84 USD.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Convert 8,132 EUR to USD at 1 EUR = 1.12 USD." }, { "role": "assistant", "content": "```python\namount = 8132\nrate = 1.12\nconverted = amount * rate # 9107.84\nprint(f\"{converted:.2f}\")\n```\...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "9107.84", "printed": "9107.84", "notation": null}
nlprog_det-setting-0084326
To read 880 pages in 16 days, how many pages per day are needed? Translated to Python: ```python pages = 880 days = 16 per_day = pages // days # 55 print(per_day) ``` The script prints 55. 55 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "55", "printed": "55", "notation": null}
nlprog_det-setting-0084327
After a 30% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? Computation in Python: ```python award = 72000 fee = award * 30 / 100 # 21600.0 remaining = award - fee # 50400.0 per_client = remaining / 4 # 12600.0 print(f"{per_client:.2f}") ``` (Output: 1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "12600.00", "printed": "12600.00", "notation": null}
nlprog_det-setting-0084328
<|start|><|user|> A measure needs at least 60% of 179 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 179 needed = math.ceil(voters * 60 / 100) # 108 print(needed) ``` The code prints: 108 108 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 60% of 179 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 179\nneeded = math.ceil(voters * 60 / 100) # 108\nprint(needed)\n```\nThe code prints: 108\n\n108 votes are needed...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "108", "printed": "108", "notation": null}
nlprog_det-setting-0084329
Shipping costs $10 plus $2.50 per pound. What does a 26-pound parcel cost to ship? Computation in Python: ```python base = 10 per_pound = 2.5 weight = 26 cost = base + per_pound * weight print(f"{cost:.2f}") ``` Out: 75.00 The charge is $75.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "75.00", "printed": "75.00", "notation": null}
nlprog_det-setting-0084330
Filing fees are $150 per document. What do 7 filings cost? Computation in Python: ```python fee = 150 filings = 7 total = fee * filings # 1050 print(total) ``` Executed, it shows: 1050 The filings cost $1,050 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0084331
Straight-line depreciation: cost $18,000, salvage $3,000, 3 years. How much per year? One way, in code: ```python cost = 18000 salvage = 3000 years = 3 per_year = (cost - salvage) / years # 5000.0 print(f"{per_year:.2f}") ``` Output of the run: 5000.00 Depreciation is $5,000.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "5000.00", "printed": "5000.00", "notation": null}
nlprog_det-setting-0084332
With $8,000 in costs and $10,000 in revenue, what percent of revenue is profit? Round to one decimal. Coded up: ```python revenue = 10000 costs = 8000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 20.0 print(round(margin, 1)) ``` Output = 20.0 The margin is 20.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0084333
A penalty of $250 a day accrues, capped at $1,000. What is owed after 38 days? One way, in code: ```python per_day = 250 days = 38 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Execution result: 1000 $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0084334
Count the days between February 4, 2018 and January 20, 2019. In code: ```python from datetime import date first = date(2018, 2, 4) # datetime.date(2018, 2, 4) second = date(2019, 1, 20) # datetime.date(2019, 1, 20) print((second - first).days) ``` Run output — 350 It is 350 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "350", "printed": "350", "notation": null}
nlprog_det-setting-0084335
To read 330 pages in 10 days, how many pages per day are needed? Here is a short program for it. ```python pages = 330 days = 10 per_day = pages // days # 33 print(per_day) ``` The printout reads: 33 33 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0084336
<|start|><|user|> Straight-line depreciation: cost $18,000, salvage $2,000, 4 years. How much per year?<|eot|> <|assistant|> ```python cost = 18000 salvage = 2000 years = 4 per_year = (cost - salvage) / years print(f"{per_year:.2f}") ``` Executed, it shows 4000.00. $4,000.00 a year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $18,000, salvage $2,000, 4 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 18000\nsalvage = 2000\nyears = 4\nper_year = (cost - salvage) / years\nprint(f\"{per_year:.2f}\")\n```\nExecuted, it shows ...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0084337
Starting from $12,000, the team spends $3,205, $3,591. What remains? We can compute it in Python. ```python budget = 12000 expenses = [3205, 3591] left = budget - sum(expenses) # 5204 print(left) ``` (Run result: 5204) $5,204 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "5204", "printed": "5204", "notation": null}
nlprog_det-setting-0084338
<|start|><|system|> Functions: {"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> Copies cost $10 plus $0.10 for each pa...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}...
nlprog_det
setting
original
null
deterministic
[]
[]
242
{"gold": "19.40", "printed": "19.40", "notation": null}
nlprog_det-setting-0084339
<|start|><|user|> $2,000 is invested at 4% compounded yearly. What is it worth after 3 years?<|eot|> <|assistant|> ```python principal = 2000 rate = 4 / 100 years = 3 value = principal * (1 + rate) ** years print(f"{value:.2f}") ``` The script prints: 2249.73 The balance is $2,249.73.<|eot|> <|end|>
chat
[ { "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\nyears = 3\nvalue = principal * (1 + rate) ** years\nprint(f\"{value:.2f}\")\n```\nThe script prints: 2249....
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "2249.73", "printed": "2249.73", "notation": null}
nlprog_det-setting-0084340
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "py_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> ...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"py_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python sourc...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0084341
A count moves from 1,200 to 1,680. By what percent did it change (use a minus sign for a drop)? The computation: old = 1200 new = 1680 change = (new - old) / old * 100 # 40.0 print(round(change)) # result: 40 It changed by 40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0084342
Liesel's scores were 76, 91, 88, 83, 85, 78 and 66. What is the average score? Here is a short program for it. ```python scores = [76, 91, 88, 83, 85, 78, 66] average = sum(scores) // len(scores) # 81 print(average) ``` The interpreter prints 81. The mean is 81.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "81", "printed": "81", "notation": null}
nlprog_det-setting-0084343
<|start|><|system|> Keep explanations short.<|eot|> <|user|> Buying 5 rulers at $30 each, 1 chairs at $22 each, 6 labels at $20 each, 1 hard drives at $25 each, someone hands over $350. What change comes back?<|eot|> <|assistant|> ```python items = [(5, 30), (1, 22), (6, 20), (1, 25)] total = sum(q * p for q, p in item...
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "Buying 5 rulers at $30 each, 1 chairs at $22 each, 6 labels at $20 each, 1 hard drives at $25 each, someone hands over $350. What change comes back?" }, { "role": "assistant", "content": "```py...
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0084344
Starting with 1455 binders and using 20 per day, how many remain after 9 days? As a program: ```python stock = 1455 per_day = 20 days = 9 left = stock - per_day * days # 1275 print(left) ``` Running this gives 1275. 1275 binders are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1275", "printed": "1275", "notation": null}
nlprog_det-setting-0084345
<|start|><|user|> A count moves from 500 to 750. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 500 new = 750 change = (new - old) / old * 100 # 50.0 print(round(change)) ``` This prints: 50 The change is 50%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 500 to 750. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 500\nnew = 750\nchange = (new - old) / old * 100 # 50.0\nprint(round(change))\n```\nThis prints: 50\n\nThe change is ...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0084346
<|start|><|system|> Tools you may use: [{"name": "python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "search_cases", "description": "Searc...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"scri...
nlprog_det
setting
original
null
deterministic
[]
[]
395
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0084348
Rosa was born on December 24, 1954. How old is Rosa on January 16, 2021? Computation in Python: ```python from datetime import date born = date(1954, 12, 24) # datetime.date(1954, 12, 24) on = date(2021, 1, 16) # datetime.date(2021, 1, 16) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "66", "printed": "66", "notation": null}
nlprog_det-setting-0084349
After a 40% fee is taken from a $48,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? As Python: ```python award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 3 # 9600.0 print(f"{per_client:.2f}") ``` Output: 9600.00 Each s...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "9600.00", "printed": "9600.00", "notation": null}
nlprog_det-setting-0084350
A 2% increase is applied to $1,800 monthly rent. What is the new amount? Let the code do the arithmetic: ```python rent = 1800 increase = 2 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` Output: 1836.00 It rises to $1,836.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1836.00", "printed": "1836.00", "notation": null}
nlprog_det-setting-0084351
<|start|><|user|> Each storage box holds 50 files. How many boxes are needed for 748 files?<|eot|> <|assistant|> ```python import math files = 748 per_box = 50 boxes = math.ceil(files / per_box) # 15 print(boxes) ``` Run it and it prints 15. It takes 15 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 50 files. How many boxes are needed for 748 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 748\nper_box = 50\nboxes = math.ceil(files / per_box) # 15\nprint(boxes)\n```\nRun it and it prints 15.\n\nIt takes 15 b...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0084352
<|start|><|user|> Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?<|eot|> <|assistant|> ```python rate = 16.0 hours = 44 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 96.0 pay = regular + overtime # 736.0 print(f"{pay:.2f}") ``` What it prints: 736...
chat
[ { "role": "user", "content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?" }, { "role": "assistant", "content": "```python\nrate = 16.0\nhours = 44\nregular = 40 * rate # 640.0\novertime = (hours - 40) * rate * 1.5 # 96.0\npay = regular + ov...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "736.00", "printed": "736.00", "notation": null}
nlprog_det-setting-0084354
A water bill is $18 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 21 thousand gallons? Translated to Python: ```python base = 18 rate = 5.1 used = 21 free = 3 bill = base + rate * max(0, used - free) # 109.8 print(f"{bill:.2f}") ``` The interpreter prints: 109.80 The bill is $109....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "109.80", "printed": "109.80", "notation": null}
nlprog_det-setting-0084355
A clerk's office charges $125 for each filing. Bilal submits 10 filings. What is the total fee? Computing it: ```python fee = 125 filings = 10 total = fee * filings # 1250 print(total) ``` The program prints 1250, as expected. The total fee is $1,250.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1250", "printed": "1250", "notation": null}
nlprog_det-setting-0084356
A measure needs at least 75% of 226 votes. How many votes is that, rounded up? ```python import math voters = 226 needed = math.ceil(voters * 75 / 100) # 170 print(needed) ``` Output: 170 170 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "170", "printed": "170", "notation": null}
nlprog_det-setting-0084359
Convert 21.7 km to meters. We write it as a program: ```python km = 21.7 meters = km * 1000 # 21700.0 print(round(meters)) ``` It prints 21700, as expected. That is 21,700 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "21700", "printed": "21700", "notation": null}
nlprog_det-setting-0084360
A 325-mile drive at a steady 65 mph takes how many minutes? Coded up: ```python distance = 325 speed = 65 minutes = distance / speed * 60 # 300.0 print(round(minutes)) ``` Result: 300 The trip takes 300 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0084361
<|start|><|system|> Functions: {"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> Express 106 hours in days and hours.<|eot|> <|as...
chat
[ { "role": "system", "content": "Functions:\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
[]
[]
196
{"gold": "4 days and 10 hours", "printed": "4 days and 10 hours", "notation": null}
nlprog_det-setting-0084362
Sales went from 500 to 400. What is the percent change? A Python solution: ```python old = 500 new = 400 change = (new - old) / old * 100 # -20.0 print(round(change)) ``` Output = -20 It changed by -20%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "-20", "printed": "-20", "notation": null}
nlprog_det-setting-0084363
Under a 25% contingency agreement, what fee is owed on a $12,000 award? Code: ```python recovery = 12000 rate = 25 / 100 # 0.25 fee = recovery * rate # 3000.0 print(f"{fee:.2f}") ``` Output — 3000.00 The fee is $3,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0084364
<|start|><|user|> A $12,000 grant pays $6,000 up front and the rest in 4 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 12000 up_front = 6000 installments = 4 each = (grant - up_front) / installments # 1500.0 print(f"{each:.2f}") ``` # stdout: 1500.00 $1,500.00 per installme...
chat
[ { "role": "user", "content": "A $12,000 grant pays $6,000 up front and the rest in 4 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 12000\nup_front = 6000\ninstallments = 4\neach = (grant - up_front) / installments # 1500.0\nprint(f\...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0084365
<|start|><|system|> Tool definitions: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "eval_python", "description": "Use for arithmetic and...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\"...
nlprog_det
setting
original
null
deterministic
[]
[]
373
{"gold": "40.50", "printed": "40.50", "notation": null}
nlprog_det-setting-0084366
<|start|><|user|> At a 7% tax rate, what is the tax on $249.34?<|eot|> <|assistant|> ```python price = 249.34 tax_rate = 7 / 100 # 0.07 tax = price * tax_rate # 17.4538 print(f"{tax:.2f}") ``` stdout: 17.45 The tax is $17.45.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 7% tax rate, what is the tax on $249.34?" }, { "role": "assistant", "content": "```python\nprice = 249.34\ntax_rate = 7 / 100 # 0.07\ntax = price * tax_rate # 17.4538\nprint(f\"{tax:.2f}\")\n```\nstdout:\n17.45\n\nThe tax is $17.45." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "17.45", "printed": "17.45", "notation": null}
nlprog_det-setting-0084367
30 of 40 members attended. What percent attended? One way, in code: ```python present = 30 total = 40 percent = present / total * 100 # 75.0 print(round(percent, 1)) ``` Running it prints: 75.0 Attendance was 75.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "75.0", "printed": "75.0", "notation": null}
nlprog_det-setting-0084369
<|start|><|user|> Count 10 days forward from January 2, 2019. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2019, 1, 2) # datetime.date(2019, 1, 2) end = start + timedelta(days=10) # datetime.date(2019, 1, 12) print(end.isoformat()) ``` The program prints 2019-01-...
chat
[ { "role": "user", "content": "Count 10 days forward from January 2, 2019. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2019, 1, 2) # datetime.date(2019, 1, 2)\nend = start + timedelta(days=10) # datetime.date(2019, 1, 1...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2019-01-12", "printed": "2019-01-12", "notation": null}
nlprog_det-setting-0084370
<|start|><|user|> Equipment costs $30,000, has a salvage value of $6,000, and a useful life of 5 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> cost = 30000 salvage = 6000 years = 5 per_year = (cost - salvage) / years # 4800.0 print(f"{per_year:.2f}") Printed: 4800.00 ...
chat
[ { "role": "user", "content": "Equipment costs $30,000, has a salvage value of $6,000, and a useful life of 5 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": " cost = 30000\n salvage = 6000\n years = 5\n per_year = (cost - salvage) / years...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "4800.00", "printed": "4800.00", "notation": null}
nlprog_det-setting-0084371
Each of Sofia's walks burns 200 calories. How many calories over 5 walks? Here is a short program for it. ```python per_session = 200 sessions = 5 total = per_session * sessions # 1000 print(total) ``` Run output — 1000 That burns 1000 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0084372
A jacket costs $80. It is 15% off. What is the sale price? Python, step by step: ```python price = 80 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 68.0 print(f"{sale_price:.2f}") ``` The printout reads 68.00. The sale price is $68.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "68.00", "printed": "68.00", "notation": null}
nlprog_det-setting-0084373
<|start|><|user|> Goods bought on September 18, 2018 carry a 12-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2018, 9, 18) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(e...
chat
[ { "role": "user", "content": "Goods bought on September 18, 2018 carry a 12-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2018, 9, 18)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = d...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2019-09-18", "printed": "2019-09-18", "notation": null}
nlprog_det-setting-0084374
A water bill is $18 plus $3.50 per thousand gallons beyond the first 2 thousand. What is the bill for 16 thousand gallons? The Python version: ```python base = 18 rate = 3.5 used = 16 free = 2 bill = base + rate * max(0, used - free) # 67.0 print(f"{bill:.2f}") ``` That prints: 67.00 $67.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "67.00", "printed": "67.00", "notation": null}
nlprog_det-setting-0084375
What average speed covers 473 miles in 0.5 hours? Python makes this quick: ```python distance = 473 hours = 0.5 speed = distance / hours # 946.0 print(round(speed)) ``` Running this gives: 946 It averages 946 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "946", "printed": "946", "notation": null}
nlprog_det-setting-0084376
Ada earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 46-hour week? One way, in code: ```python rate = 25.0 hours = 46 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 225.0 pay = regular + overtime # 1225.0 print(f"{pay:.2f}") ``` Python prints: 1225.00 Ada earns...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "1225.00", "printed": "1225.00", "notation": null}
nlprog_det-setting-0084377
A 16 × 7 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? ```python import math length = 16 width = 7 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 28 print(tiles) ``` On running, it outputs: 28 28 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0084378
<|start|><|user|> Someone born February 28, 1995 turns how old by October 1, 2023? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1995, 2, 28) # datetime.date(1995, 2, 28) on = date(2023, 10, 1) # datetime.date(2023, 10, 1) age = on.year - born.year - ((on.month, on....
chat
[ { "role": "user", "content": "Someone born February 28, 1995 turns how old by October 1, 2023? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1995, 2, 28) # datetime.date(1995, 2, 28)\non = date(2023, 10, 1) # datetime.date...
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0084379
Attendance was 21 out of 25. Express it as a percent. Program: ```python present = 21 total = 25 percent = present / total * 100 # 84.0 print(round(percent, 1)) ``` Run it and it prints 84.0. Attendance was 84.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "84.0", "printed": "84.0", "notation": null}
nlprog_det-setting-0084380
Counting the first and last day, how many days are there from February 8, 2024 through February 25, 2024? That is 18 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0084381
<|start|><|user|> Someone works 12 hours at $19.24 per hour. What are the earnings?<|eot|> <|assistant|> The pay is $230.88.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 12 hours at $19.24 per hour. What are the earnings?" }, { "role": "assistant", "content": "The pay is $230.88." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "230.88", "printed": "230.88", "notation": null}