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-0057759
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "code_runner", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eo...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"code_runner\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"P...
nlprog_det
setting
original
null
deterministic
[]
[]
224
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0057760
Ulla and Quinn share $999 in the ratio 1:2. How much does Ulla get? ```python total = 999 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 333 print(share_a) ``` (Output: 333) Ulla gets $333.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "333", "printed": "333", "notation": null}
nlprog_det-setting-0057761
At 50 miles per hour, how many minutes does a 225-mile trip take? Python code: ```python distance = 225 speed = 50 minutes = distance / speed * 60 # 270.0 print(round(minutes)) ``` When run, it prints 270, as expected. The trip takes 270 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "270", "printed": "270", "notation": null}
nlprog_det-setting-0057762
A hall has 26 rows of 20 seats, and 7 seats are empty. How many people are seated? A few lines of Python do it: rows = 26 per_row = 20 empty = 7 seated = rows * per_row - empty # 513 print(seated) Run result = 513 513 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "513", "printed": "513", "notation": null}
nlprog_det-setting-0057763
Notice was given on May 25, 2018. The notice period is 60 days. When does it run out? A few lines of Python do it: ```python from datetime import date, timedelta start = date(2018, 5, 25) # datetime.date(2018, 5, 25) end = start + timedelta(days=60) # datetime.date(2018, 7, 24) print(end.isoformat()) ``` (Out: 2018-...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2018-07-24", "printed": "2018-07-24", "notation": null}
nlprog_det-setting-0057764
One can of paint covers 350 square feet. How many cans are needed for 417 square feet of wall? ```python import math area = 417 coverage = 350 cans = math.ceil(area / coverage) # 2 print(cans) ``` The script prints 2. 2 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0057765
A trial runs from May 11, 2026 to May 27, 2026, counting both days. How many calendar days is that? One way, in code: from datetime import date first = date(2026, 5, 11) # datetime.date(2026, 5, 11) last = date(2026, 5, 27) # datetime.date(2026, 5, 27) days = (last - first).days + 1 # 17 print(d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0057766
Buying 4 hard drives at $9 each, 3 badges at $13 each, 4 calendars at $27 each, 4 calendars at $3 each, someone hands over $200. What change comes back? Program: ```python items = [(4, 9), (3, 13), (4, 27), (4, 3)] total = sum(q * p for q, p in items) # 195 paid = 200 change = paid - total # 5 print(change) ``` Runn...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0057767
7 swims at 250 calories each burn how many calories in total? Computing it: ```python per_session = 250 sessions = 7 total = per_session * sessions # 1750 print(total) ``` The code prints 1750. That burns 1750 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0057768
A garage charges $3 an hour, never more than $15 a day. How much for 8 hours? Set it up in Python: rate = 3 hours = 8 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) (Result: 15) The charge is $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0057769
<|start|><|user|> Count 14 days forward from July 13, 2027. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2027, 7, 13) # datetime.date(2027, 7, 13) end = start + timedelta(days=14) # datetime.date(2027, 7, 27) print(end.isoformat()) ``` # printed result: 2027-07-2...
chat
[ { "role": "user", "content": "Count 14 days forward from July 13, 2027. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 7, 13) # datetime.date(2027, 7, 13)\nend = start + timedelta(days=14) # datetime.date(2027, 7, 2...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2027-07-27", "printed": "2027-07-27", "notation": null}
nlprog_det-setting-0057770
<|start|><|user|> Equipment costs $30,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 30000 salvage = 3000 years = 6 per_year = (cost - salvage) / years # 4500.0 print(f"{per_year:.2f}") ``` Console: 4500.00 $4,50...
chat
[ { "role": "user", "content": "Equipment costs $30,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 30000\nsalvage = 3000\nyears = 6\nper_year = (cost - salvage) / years # 4...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0057771
<|start|><|user|> 194 copies of a 58-page packet are printed at $0.05 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 58 copies = 194 cost_per_page = 0.05 cost = pages * copies * cost_per_page print(f"{cost:.2f}") ``` Running this gives 562.60. Printing costs $562.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "194 copies of a 58-page packet are printed at $0.05 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 58\ncopies = 194\ncost_per_page = 0.05\ncost = pages * copies * cost_per_page\nprint(f\"{cost:.2f}\")\n```\nRunning this gives 5...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "562.60", "printed": "562.60", "notation": null}
nlprog_det-setting-0057772
Shipping costs $8 plus $0.75 per pound. What does a 4-pound parcel cost to ship? In code: ```python base = 8 per_pound = 0.75 weight = 4 cost = base + per_pound * weight # 11.0 print(f"{cost:.2f}") ``` On running, it outputs: 11.00 Shipping costs $11.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "11.00", "printed": "11.00", "notation": null}
nlprog_det-setting-0057773
A claim accrued on August 6, 2015. The limitations period is 4 years. On what date does it expire? The period expires on August 6, 2019.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "2019-08-06", "printed": "2019-08-06", "notation": null}
nlprog_det-setting-0057774
Convert 62.4 km to meters. As a program: ```python km = 62.4 meters = km * 1000 # 62400.0 print(round(meters)) ``` Executed, it shows: 62400 That is 62,400 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "62400", "printed": "62400", "notation": null}
nlprog_det-setting-0057775
<|start|><|system|> Tool definitions: [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "objec...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"convert_units\", \"description\": \"Convert...
nlprog_det
setting
original
null
deterministic
[]
[]
427
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0057776
What is a 18% tip on a $149.30 bill? Computation in Python: ```python bill = 149.3 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 26.874000000000002 print(f"{tip:.2f}") ``` The interpreter prints: 26.87 Leave $26.87.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "26.87", "printed": "26.87", "notation": null}
nlprog_det-setting-0057777
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> A court charges $15 per request plus $0.10 per page after the first 10 pages. What does a 35-page copy cost?<|eot|> <|assistant|> ```python pages = 35 base = 15 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # ...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "A court charges $15 per request plus $0.10 per page after the first 10 pages. What does a 35-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 35\nbase = 15\...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "17.50", "printed": "17.50", "notation": null}
nlprog_det-setting-0057778
<|start|><|user|> 4 claimants share a $7,348 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 7348 parties = 4 share = settlement // parties # 1837 print(share) ``` Output — 1837 Each party receives $1,837.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 claimants share a $7,348 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 7348\nparties = 4\nshare = settlement // parties # 1837\nprint(share)\n```\nOutput — 1837\n\nEach party receives $1,837." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "1837", "printed": "1837", "notation": null}
nlprog_det-setting-0057779
How many units at $15 each (variable cost $10) cover $4,000 of fixed costs? A few lines of Python do it: ```python import math fixed = 4000 price = 15 variable = 10 units = math.ceil(fixed / (price - variable)) # 800 print(units) ``` (Program output: 800) Break-even is 800 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0057780
Cyrus's scores were 64, 56 and 99. What is the average score? Translated to Python: ```python scores = [64, 56, 99] average = sum(scores) // len(scores) # 73 print(average) ``` Execution prints: 73 The average score is 73.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0057781
<|start|><|user|> 4 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 96000 fee = award * 40 / 100 # 38400.0 remaining = award - fee # 57600.0 per_client = remaining / 4 # 14400.0 print(f"{per_client:.2f}") ``` It outputs: ...
chat
[ { "role": "user", "content": "4 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 96000\nfee = award * 40 / 100 # 38400.0\nremaining = award - fee # 57600.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "14400.00", "printed": "14400.00", "notation": null}
nlprog_det-setting-0057782
77 of 80 members attended. What percent attended? Python, step by step: ```python present = 77 total = 80 percent = present / total * 100 # 96.25 print(round(percent, 1)) ``` It prints 96.2, as expected. 96.2% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "96.2", "printed": "96.2", "notation": null}
nlprog_det-setting-0057785
At 30 miles per hour, how many minutes does a 130-mile trip take? Let's compute it with Python. ```python distance = 130 speed = 30 minutes = distance / speed * 60 # 260.0 print(round(minutes)) ``` Output = 260 The trip takes 260 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "260", "printed": "260", "notation": null}
nlprog_det-setting-0057787
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> A trial runs from July 25, 2018 to August 7, 2018, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2018, 7, 25) last = date(2018, 8, 7) days = (last - first).days + 1 print(days) ``` On...
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "A trial runs from July 25, 2018 to August 7, 2018, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0057788
Water costs $18 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 13,000 gallons? Computing it: ```python base = 18 rate = 3.5 used = 13 free = 0 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") ``` It prints: 63.50 $63.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "63.50", "printed": "63.50", "notation": null}
nlprog_det-setting-0057789
<|start|><|user|> Count the days between February 5, 2024 and October 19, 2024.<|eot|> <|assistant|> It is 257 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Count the days between February 5, 2024 and October 19, 2024." }, { "role": "assistant", "content": "It is 257 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "257", "printed": "257", "notation": null}
nlprog_det-setting-0057790
<|start|><|user|> A 190-mile drive at a steady 30 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 190 speed = 30 minutes = distance / speed * 60 # 380.0 print(round(minutes)) ``` Printed: 380 The trip takes 380 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 190-mile drive at a steady 30 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 190\nspeed = 30\nminutes = distance / speed * 60 # 380.0\nprint(round(minutes))\n```\nPrinted: 380\n\nThe trip takes 380 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "380", "printed": "380", "notation": null}
nlprog_det-setting-0057791
5 swims at 400 calories each burn how many calories in total? 2000 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0057792
4 friends split a $96 bill plus a 15% tip evenly. How much does each pay? Computation in Python: ```python bill = 96 tip_rate = 15 / 100 # 0.15 people = 4 each = bill * (1 + tip_rate) / people # 27.599999999999998 print(f"{each:.2f}") ``` The run gives: 27.60 Each person pays $27.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "27.60", "printed": "27.60", "notation": null}
nlprog_det-setting-0057793
<|start|><|user|> Split $6,584 between Helga and Liesel in the ratio 3 to 5. What is Helga's share?<|eot|> <|assistant|> ```python total = 6584 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 2469 print(share_a) ``` Result — 2469 Helga's share is $2,469.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $6,584 between Helga and Liesel in the ratio 3 to 5. What is Helga's share?" }, { "role": "assistant", "content": "```python\ntotal = 6584\nparts_a = 3\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 2469\nprint(share_a)\n```\nResult — 2469\n...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "2469", "printed": "2469", "notation": null}
nlprog_det-setting-0057794
<|start|><|system|> Functions: [{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> How many units at $40 each (variable cost $32...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"interpreter\", \"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
[]
[]
223
{"gold": "1125", "printed": "1125", "notation": null}
nlprog_det-setting-0057795
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> At 65 miles per hour, how many minutes does a 390-mile trip take?<|eot|> <|assistant|> ```python distance = 390 speed = 65 minutes = distance / speed * 60 # 360.0 print(round(minutes)) ``` Shell output — 360 360 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "At 65 miles per hour, how many minutes does a 390-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 390\nspeed = 65\nminutes = distance / speed * 60 # 360.0...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0057797
Divide 67 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain? ```python total = 67 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` It prints: 13 each, 2 left over The answer: 13 each, 2 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "13 each, 2 left over", "printed": "13 each, 2 left over", "notation": null}
nlprog_det-setting-0057798
Printing costs 5 cents a page. What does it cost to print 200 copies of a 22-page handout? The Python version: ```python pages = 22 copies = 200 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 220.0 print(f"{cost:.2f}") ``` (Result: 220.00) Printing costs $220.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "220.00", "printed": "220.00", "notation": null}
nlprog_det-setting-0057799
A 12-month warranty starts on April 19, 2021. On what date does it end? As a program: ```python from datetime import date start = date(2021, 4, 19) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Execution print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2022-04-19", "printed": "2022-04-19", "notation": null}
nlprog_det-setting-0057800
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> 17 chairs cost $4 apiece. With 6% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 17 unit_price = 4 subtotal = quantity * unit_price # 68 total = subtotal * (1 + 6 / 100) # 72.08 print(f"{total:.2f}") ``` Printed result...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "17 chairs cost $4 apiece. With 6% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 17\nunit_price = 4\nsubtotal = quantity * unit_price ...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "72.08", "printed": "72.08", "notation": null}
nlprog_det-setting-0057801
At a 7% tax rate, what is the tax on $655.35? Code: ```python price = 655.35 tax_rate = 7 / 100 # 0.07 tax = price * tax_rate # 45.874500000000005 print(f"{tax:.2f}") ``` # run result: 45.87 The tax is $45.87.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "45.87", "printed": "45.87", "notation": null}
nlprog_det-setting-0057802
3 books come back 26 days late, at $0.20 a day each. What is the fine? We can compute it in Python. ```python per_day = 0.2 days_late = 26 books = 3 fine = per_day * days_late * books # 15.600000000000001 print(f"{fine:.2f}") ``` Shell output: 15.60 $15.60 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "15.60", "printed": "15.60", "notation": null}
nlprog_det-setting-0057803
<|start|><|user|> To read 544 pages in 16 days, how many pages per day are needed?<|eot|> <|assistant|> pages = 544 days = 16 per_day = pages // days # 34 print(per_day) Execution result: 34 That is 34 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 544 pages in 16 days, how many pages per day are needed?" }, { "role": "assistant", "content": " pages = 544\n days = 16\n per_day = pages // days # 34\n print(per_day)\nExecution result: 34\n\nThat is 34 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0057804
<|start|><|user|> How many minutes pass from 9:09 AM to 12:33 PM on the same day?<|eot|> <|assistant|> ```python start = 9 * 60 + 9 # 549 end = 12 * 60 + 33 # 753 print(end - start) ``` On running, it outputs: 204 It is 204 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 9:09 AM to 12:33 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 9 * 60 + 9 # 549\nend = 12 * 60 + 33 # 753\nprint(end - start)\n```\nOn running, it outputs: 204\n\nIt is 204 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "204", "printed": "204", "notation": null}
nlprog_det-setting-0057805
<|start|><|user|> 286 files go into boxes of 40. How many boxes does that take?<|eot|> <|assistant|> It takes 8 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "286 files go into boxes of 40. How many boxes does that take?" }, { "role": "assistant", "content": "It takes 8 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0057806
Filing fees are $35 per document. What do 13 filings cost? In code: ```python fee = 35 filings = 13 total = fee * filings # 455 print(total) ``` Result — 455 $455 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "455", "printed": "455", "notation": null}
nlprog_det-setting-0057808
Divide 267 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain? Programmatically: ```python total = 267 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The script prints 33 each, 3 left over. 33 each, 3 lef...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "33 each, 3 left over", "printed": "33 each, 3 left over", "notation": null}
nlprog_det-setting-0057809
<|start|><|user|> A lease runs for 12 months at $2,875 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> In total, $34,500 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 12 months at $2,875 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "In total, $34,500 is paid." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "34500", "printed": "34500", "notation": null}
nlprog_det-setting-0057810
A room is 24 feet by 12 feet. Flooring costs $5 per square foot. What does it cost to floor the room? It costs $1,440.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "1440", "printed": "1440", "notation": null}
nlprog_det-setting-0057811
<|start|><|system|> You have access to these functions: [{"name": "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|> Which is cheaper per u...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"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
[]
[]
231
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0057812
Convert 1,003 GBP to USD at 1 GBP = 1.27 USD. Computing it: ```python amount = 1003 rate = 1.27 converted = amount * rate # 1273.81 print(f"{converted:.2f}") ``` The script prints 1273.81, as expected. That is 1,273.81 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1273.81", "printed": "1273.81", "notation": null}
nlprog_det-setting-0057813
A 15 × 8 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? One way, in code: ```python import math length = 15 width = 8 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 30 print(tiles) ``` The interpreter prints 30. 30 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0057814
Buying 1 tape rolls at $25 each, 2 water bottles at $11 each, 3 pens at $16 each, 6 rulers at $21 each, someone hands over $250. What change comes back? Python, step by step: ```python items = [(1, 25), (2, 11), (3, 16), (6, 21)] total = sum(q * p for q, p in items) # 221 paid = 250 change = paid - total # 29 print(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0057815
After a 40% fee is taken from a $48,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? We can compute it in Python. ```python award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 2 # 14400.0 print(f"{per_client:.2f}") ``` Prog...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "14400.00", "printed": "14400.00", "notation": null}
nlprog_det-setting-0057816
A storeroom has 984 file boxes. The office uses 6 a day. How many are left after 11 days? In code: ```python stock = 984 per_day = 6 days = 11 left = stock - per_day * days print(left) ``` The run gives: 918 918 file boxes are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "918", "printed": "918", "notation": null}
nlprog_det-setting-0057817
<|start|><|user|> Convert 72.3 km to meters.<|eot|> <|assistant|> ```python km = 72.3 meters = km * 1000 print(round(meters)) ``` (Program output: 72300) That is 72,300 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 72.3 km to meters." }, { "role": "assistant", "content": "```python\nkm = 72.3\nmeters = km * 1000\nprint(round(meters))\n```\n(Program output: 72300)\n\nThat is 72,300 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "72300", "printed": "72300", "notation": null}
nlprog_det-setting-0057818
A settlement of $2,640 is split equally among 4 parties. How much does each party receive? Here is the program. ```python settlement = 2640 parties = 4 share = settlement // parties # 660 print(share) ``` Result = 660 Each share is $660.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "660", "printed": "660", "notation": null}
nlprog_det-setting-0057819
At a 4% tax rate, what is the tax on $506.06? Set it up in Python: ```python price = 506.06 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 20.2424 print(f"{tax:.2f}") ``` This prints 20.24, as expected. The tax is $20.24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "20.24", "printed": "20.24", "notation": null}
nlprog_det-setting-0057820
Scale 150 g of rice from 2 servings to 3 servings. Python code: ```python grams = 150 serves = 2 needed_for = 3 scaled = grams * needed_for // serves # 225 print(scaled) ``` Interpreter output: 225 Use 225 g of rice.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0057821
<|start|><|system|> Tools you may use: {"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Monthly rent is $1...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
251
{"gold": "387.10", "printed": "387.10", "notation": null}
nlprog_det-setting-0057822
<|start|><|user|> A $6,000 loan carries 6% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> The monthly payment is $280.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $6,000 loan carries 6% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "The monthly payment is $280.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "280.00", "printed": "280.00", "notation": null}
nlprog_det-setting-0057823
Counting the first and last day, how many days are there from June 24, 2020 through July 19, 2020? In Python: from datetime import date first = date(2020, 6, 24) # datetime.date(2020, 6, 24) last = date(2020, 7, 19) # datetime.date(2020, 7, 19) days = (last - first).days + 1 # 26 print(days) # o...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0057824
A library charges $0.20 per book per day late. What is the fine for 3 books that are 13 days late? $7.80 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "7.80", "printed": "7.80", "notation": null}
nlprog_det-setting-0057825
Someone born December 19, 1985 turns how old by September 18, 2024? Give the age in whole years. Python makes this quick: ```python from datetime import date born = date(1985, 12, 19) # datetime.date(1985, 12, 19) on = date(2024, 9, 18) # datetime.date(2024, 9, 18) age = on.year - born.year - ((on.month, on.day) < (...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0057826
How many of 244 votes make 60% (round up)? At least 147 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "147", "printed": "147", "notation": null}
nlprog_det-setting-0057827
A meeting lasted 2 hours and 51 minutes. How many minutes is that? Here is a short program for it. ```python hours = 2 minutes = 51 total_minutes = hours * 60 + minutes # 171 print(total_minutes) ``` stdout = 171 The meeting lasted 171 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "171", "printed": "171", "notation": null}
nlprog_det-setting-0057828
Each storage box holds 25 files. How many boxes are needed for 734 files? The Python version: import math files = 734 per_box = 25 boxes = math.ceil(files / per_box) # 30 print(boxes) # output: 30 30 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0057829
<|start|><|user|> A water bill is $15 plus $3.50 per thousand gallons beyond the first 2 thousand. What is the bill for 17 thousand gallons?<|eot|> <|assistant|> ```python base = 15 rate = 3.5 used = 17 free = 2 bill = base + rate * max(0, used - free) # 67.5 print(f"{bill:.2f}") ``` stdout: 67.50 $67.50 is owed.<|eo...
chat
[ { "role": "user", "content": "A water bill is $15 plus $3.50 per thousand gallons beyond the first 2 thousand. What is the bill for 17 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 3.5\nused = 17\nfree = 2\nbill = base + rate * max(0, used - free) # 67.5\...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "67.50", "printed": "67.50", "notation": null}
nlprog_det-setting-0057831
<|start|><|user|> A $150 dinner bill gets a 18% tip, and 4 people share the cost equally. What is each person's share?<|eot|> <|assistant|> bill = 150 tip_rate = 18 / 100 # 0.18 people = 4 each = bill * (1 + tip_rate) / people # 44.25 print(f"{each:.2f}") This prints: 44.25 Each person pays $44.2...
chat
[ { "role": "user", "content": "A $150 dinner bill gets a 18% tip, and 4 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": " bill = 150\n tip_rate = 18 / 100 # 0.18\n people = 4\n each = bill * (1 + tip_rate) / people # 44.25\n print...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "44.25", "printed": "44.25", "notation": null}
nlprog_det-setting-0057832
Goods bought on May 21, 2023 carry a 36-month warranty. When does it expire? Python makes this quick: ```python from datetime import date start = date(2023, 5, 21) months = 36 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
[]
[]
153
{"gold": "2026-05-21", "printed": "2026-05-21", "notation": null}
nlprog_det-setting-0057833
What is -15 degrees Celsius in Fahrenheit? It equals 5 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0057834
<|start|><|user|> Rent of $1,250 goes up 8%. What is the new rent?<|eot|> <|assistant|> rent = 1250 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1350.0 print(f"{new_rent:.2f}") Program output — 1350.00 The new rent is $1,350.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,250 goes up 8%. What is the new rent?" }, { "role": "assistant", "content": " rent = 1250\n increase = 8 / 100 # 0.08\n new_rent = rent * (1 + increase) # 1350.0\n print(f\"{new_rent:.2f}\")\nProgram output — 1350.00\n\nThe new rent is $1,35...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1350.00", "printed": "1350.00", "notation": null}
nlprog_det-setting-0057835
A court charges $5 per request plus $0.50 per page after the first 10 pages. What does a 9-page copy cost? Translated to Python: ```python pages = 9 base = 5 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 5.0 print(f"{cost:.2f}") ``` # result: 5.00 The total is $5.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "5.00", "printed": "5.00", "notation": null}
nlprog_det-setting-0057836
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> A $180 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 180 tip_rate = 20 / 100 people = 6 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` The run gives: 36....
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "A $180 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 180\ntip_rate = 20 / 100\npeopl...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0057837
<|start|><|system|> Be concise.<|eot|> <|user|> Walls total 435 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|> <|assistant|> Buy 2 cans.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "Walls total 435 sq ft and each can covers 250 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "Buy 2 cans." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0057838
A party has 14 days to respond to a motion served on June 13, 2024, with 3 days added because service was by mail. When is the response due? Python, step by step: ```python from datetime import date, timedelta served = date(2024, 6, 13) # datetime.date(2024, 6, 13) response_days = 14 mail_days = 3 due = served + time...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
180
{"gold": "2024-06-30", "printed": "2024-06-30", "notation": null}
nlprog_det-setting-0057839
Someone born October 7, 1974 turns how old by August 16, 2020? Give the age in whole years. As Python: ```python from datetime import date born = date(1974, 10, 7) # datetime.date(1974, 10, 7) on = date(2020, 8, 16) # datetime.date(2020, 8, 16) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0057840
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> At 1.5% a month (simple), what interest builds on $4,000 over 6 months?<|eot|> <|assistant|> ```python balance = 4000 monthly_rate = 1.5 / 100 # 0.015 months = 6 interest = balance * monthly_rate * months # 360.0 print(f"{interest:.2f}") ``` R...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "At 1.5% a month (simple), what interest builds on $4,000 over 6 months?" }, { "role": "assistant", "content": "```python\nbalance = 4000\nmonthly_rate = 1.5 / 100 # 0.015\nmonths...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0057841
Shipping costs $8 plus $1.50 per pound. What does a 23-pound parcel cost to ship? Python, step by step: ```python base = 8 per_pound = 1.5 weight = 23 cost = base + per_pound * weight # 42.5 print(f"{cost:.2f}") ``` On running, it outputs 42.50. The charge is $42.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "42.50", "printed": "42.50", "notation": null}
nlprog_det-setting-0057842
Parking is $3 per hour with a daily maximum of $15. What do 7 hours cost? As a program: ```python rate = 3 hours = 7 daily_max = 15 cost = min(rate * hours, daily_max) print(cost) ``` Program output: 15 Parking costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0057843
A shift runs from 7:31 AM to 10:52 AM. How long is it in minutes? Let the code do the arithmetic: ```python start = 7 * 60 + 31 # 451 end = 10 * 60 + 52 # 652 print(end - start) ``` Run output — 201 201 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "201", "printed": "201", "notation": null}
nlprog_det-setting-0057845
Wen's scores were 54, 79, 54, 93 and 95. What is the average score? Python code: ```python scores = [54, 79, 54, 93, 95] average = sum(scores) // len(scores) # 75 print(average) ``` Execution prints: 75 The mean is 75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0057846
Printing costs 15 cents a page. What does it cost to print 97 copies of a 53-page handout? Python, step by step: ```python pages = 53 copies = 97 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 771.15 print(f"{cost:.2f}") ``` Result — 771.15 Printing costs $771.15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "771.15", "printed": "771.15", "notation": null}
nlprog_det-setting-0057847
4 claimants share a $18,000 settlement equally. What is each share? As a program: ```python settlement = 18000 parties = 4 share = settlement // parties # 4500 print(share) ``` Out: 4500 Each share is $4,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "4500", "printed": "4500", "notation": null}
nlprog_det-setting-0057848
Scale 300 g of lentils from 4 servings to 8 servings. grams = 300 serves = 4 needed_for = 8 scaled = grams * needed_for // serves # 600 print(scaled) The program prints: 600 600 grams of lentils are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0057849
A library charges $0.20 per book per day late. What is the fine for 2 books that are 23 days late? Here is a short program for it. ```python per_day = 0.2 days_late = 23 books = 2 fine = per_day * days_late * books # 9.200000000000001 print(f"{fine:.2f}") ``` Console output: 9.20 $9.20 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "9.20", "printed": "9.20", "notation": null}
nlprog_det-setting-0057850
Fines run at $50 per day up to a maximum of $5,000. How much after 43 days? In code: ```python per_day = 50 days = 43 cap = 5000 fine = min(per_day * days, cap) print(fine) ``` (stdout: 2150) $2,150 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "2150", "printed": "2150", "notation": null}
nlprog_det-setting-0057851
<|start|><|user|> Cyrus buys 9 boxes of 25 sticky pads each and gives away 5 sticky pads. How many sticky pads are left?<|eot|> <|assistant|> ```python boxes = 9 per_box = 25 given_away = 5 left = boxes * per_box - given_away # 220 print(left) ``` Execution prints 220. That leaves 220 sticky pads.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Cyrus buys 9 boxes of 25 sticky pads each and gives away 5 sticky pads. How many sticky pads are left?" }, { "role": "assistant", "content": "```python\nboxes = 9\nper_box = 25\ngiven_away = 5\nleft = boxes * per_box - given_away # 220\nprint(left)\n```\nExecution ...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "220", "printed": "220", "notation": null}
nlprog_det-setting-0057853
30 file boxes cost $3 apiece. With 8% tax added, what is the total? Python code: ```python quantity = 30 unit_price = 3 subtotal = quantity * unit_price total = subtotal * (1 + 8 / 100) print(f"{total:.2f}") ``` It prints 97.20, as expected. The total with tax is $97.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "97.20", "printed": "97.20", "notation": null}
nlprog_det-setting-0057854
<|start|><|user|> Starting from $5,000, the team spends $495, $1,612, $1,812. What remains?<|eot|> <|assistant|> The remaining budget is $1,081.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $5,000, the team spends $495, $1,612, $1,812. What remains?" }, { "role": "assistant", "content": "The remaining budget is $1,081." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "1081", "printed": "1081", "notation": null}
nlprog_det-setting-0057855
With 30 rows of 24 chairs and 6 empty chairs, how many chairs are taken? One way, in code: ```python rows = 30 per_row = 24 empty = 6 seated = rows * per_row - empty # 714 print(seated) ``` Printed result: 714 714 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "714", "printed": "714", "notation": null}
nlprog_det-setting-0057857
A $3,600 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? Here's the code. ```python principal = 3600 annual_rate = 5 / 100 # 0.05 months = 36 interest = principal * annual_rate * months / 12 # 540.0 payment = (principal + inter...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "115.00", "printed": "115.00", "notation": null}
nlprog_det-setting-0057858
<|start|><|user|> 171 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> 42 each, 3 left over.<|eot|> <|end|>
chat
[ { "role": "user", "content": "171 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "42 each, 3 left over." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "42 each, 3 left over", "printed": "42 each, 3 left over", "notation": null}
nlprog_det-setting-0057859
A service costs $15 a month or $132 a year. How much does the yearly plan save over 12 monthly payments? Computation in Python: ```python monthly = 15 yearly = 132 savings = monthly * 12 - yearly # 48 print(savings) ``` The code prints 48. The annual plan saves $48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0057860
What is a 22% tip on a $230.80 bill? ```python bill = 230.8 tip_rate = 22 / 100 tip = bill * tip_rate print(f"{tip:.2f}") ``` It prints 50.78, as expected. The tip is $50.78.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "50.78", "printed": "50.78", "notation": null}
nlprog_det-setting-0057861
Buying 5 chairs at $5 each, 4 hard drives at $5 each, 1 desk lamps at $5 each, someone hands over $100. What change comes back? Coded up: ```python items = [(5, 5), (4, 5), (1, 5)] total = sum(q * p for q, p in items) # 50 paid = 100 change = paid - total # 50 print(change) ``` Python prints: 50 The change is $50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0057862
Which is cheaper per unit: 10 for $6.67 (A) or 24 for $21.51 (B)? A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0057863
A 180-mile drive at a steady 30 mph takes how many minutes? Computation in Python: distance = 180 speed = 30 minutes = distance / speed * 60 # 360.0 print(round(minutes)) # stdout: 360 The trip takes 360 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0057864
<|start|><|system|> Tools (call with JSON): [{"name": "interpreter", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> A cou...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"interpreter\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"...
nlprog_det
setting
original
null
deterministic
[]
[]
258
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0057865
Nikhil lends $20,000 at 6% simple interest per year for 5 years. How much interest is earned? A Python solution: ```python principal = 20000 rate = 6 / 100 # 0.06 years = 5 interest = principal * rate * years # 6000.0 print(f"{interest:.2f}") ``` (Program output: 6000.00) The interest is $6,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0057866
Split $1,005 between Nadia and Kofi in the ratio 2 to 3. What is Nadia's share? As Python: ```python total = 1005 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 402 print(share_a) ``` Running it prints 402. Nadia gets $402.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "402", "printed": "402", "notation": null}
nlprog_det-setting-0057867
<|start|><|user|> How many weekdays (Monday to Friday) fall after June 21, 2023 up to and including July 20, 2023?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2023, 6, 21) end = date(2023, 7, 20) count = 0 for k in range(1, (end - start).days + 1): if (start + time...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after June 21, 2023 up to and including July 20, 2023?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2023, 6, 21)\n end = date(2023, 7, 20)\n count = 0\n for k in ...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "21", "printed": "21", "notation": null}