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-0065540
<|start|><|system|> You help with homework problems.<|eot|> <|user|> An invoice lists 14 badges at $4 each, plus 5% sales tax. What is the invoice total?<|eot|> <|assistant|> quantity = 14 unit_price = 4 subtotal = quantity * unit_price # 56 total = subtotal * (1 + 5 / 100) # 58.800000000000004 pr...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "An invoice lists 14 badges at $4 each, plus 5% sales tax. What is the invoice total?" }, { "role": "assistant", "content": " quantity = 14\n unit_price = 4\n subtotal = quantit...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "58.80", "printed": "58.80", "notation": null}
nlprog_det-setting-0065541
<|start|><|system|> Functions: [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type":...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"eval_python\", \"description\": \"Evaluates Pytho...
nlprog_det
setting
original
null
deterministic
[]
[]
309
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0065542
At $0.65 per mile, what is the reimbursement for 98 miles? Python code: ```python miles = 98 rate = 0.65 reimbursement = miles * rate # 63.7 print(f"{reimbursement:.2f}") ``` The program prints: 63.70 Beatriz is owed $63.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "63.70", "printed": "63.70", "notation": null}
nlprog_det-setting-0065543
How many meters are in 68.9 kilometers? The computation: ```python km = 68.9 meters = km * 1000 # 68900.0 print(round(meters)) ``` Printed: 68900 68,900 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "68900", "printed": "68900", "notation": null}
nlprog_det-setting-0065544
Copies cost $10 plus $0.25 for each page beyond 20. How much for 83 pages? Python version: ```python pages = 83 base = 10 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 25.75 print(f"{cost:.2f}") ``` Out: 25.75 The total is $25.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "25.75", "printed": "25.75", "notation": null}
nlprog_det-setting-0065545
5 swims at 400 calories each burn how many calories in total? Written as code: ```python per_session = 400 sessions = 5 total = per_session * sessions # 2000 print(total) ``` Out = 2000 That burns 2000 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0065546
A count moves from 1,200 to 1,440. By what percent did it change (use a minus sign for a drop)? Here is a short program for it. ```python old = 1200 new = 1440 change = (new - old) / old * 100 # 20.0 print(round(change)) ``` The program prints: 20 It changed by 20%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0065547
Fixed costs are $6,000. Each unit sells for $15 and costs $7 to make. How many units must be sold to break even? Computing it: ```python import math fixed = 6000 price = 15 variable = 7 units = math.ceil(fixed / (price - variable)) # 750 print(units) ``` Result — 750 750 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0065548
With $20,000 in costs and $21,000 in revenue, what percent of revenue is profit? Round to one decimal. As Python: ```python revenue = 21000 costs = 20000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 4.761904761904762 print(round(margin, 1)) ``` The printout reads: 4.8 The margin is 4.8%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "4.8", "printed": "4.8", "notation": null}
nlprog_det-setting-0065549
Fiona and Nadia share $1,569 in the ratio 1:2. How much does Fiona get? The program: ```python total = 1569 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 523 print(share_a) ``` Printed result — 523 Fiona gets $523.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "523", "printed": "523", "notation": null}
nlprog_det-setting-0065550
<|start|><|user|> If a 90-minute seminar begins at 11:20 AM, what time does it finish?<|eot|> <|assistant|> ```python start = 11 * 60 + 20 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` What it prints: 12:50 PM It ends at 12:50 PM.<|eot|> ...
chat
[ { "role": "user", "content": "If a 90-minute seminar begins at 11:20 AM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 11 * 60 + 20\nend = start + 90\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "12:50 PM", "printed": "12:50 PM", "notation": null}
nlprog_det-setting-0065551
5 clipboards cost $2 apiece. With 8% tax added, what is the total? Programmatically: ```python quantity = 5 unit_price = 2 subtotal = quantity * unit_price # 10 total = subtotal * (1 + 8 / 100) # 10.8 print(f"{total:.2f}") ``` Python prints 10.80, as expected. The total with tax is $10.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "10.80", "printed": "10.80", "notation": null}
nlprog_det-setting-0065552
3 claimants share a $18,000 settlement equally. What is each share? The program: ```python settlement = 18000 parties = 3 share = settlement // parties # 6000 print(share) ``` (stdout: 6000) Each party receives $6,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "6000", "printed": "6000", "notation": null}
nlprog_det-setting-0065553
Parking is $4 per hour with a daily maximum of $18. What do 6 hours cost? rate = 4 hours = 6 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) That prints 18. The charge is $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0065554
A lease runs for 24 months at $1,475 per month. How much rent is paid over the whole term? monthly_rent = 1475 months = 24 total = monthly_rent * months # 35400 print(total) It prints 35400, as expected. In total, $35,400 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "35400", "printed": "35400", "notation": null}
nlprog_det-setting-0065555
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> After a 30% fee is taken from a $48,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 48000 fee = award * 30 / 100 # 14400.0 remaining = award - fee # 33600.0 per_cli...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "After a 30% fee is taken from a $48,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward...
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "11200.00", "printed": "11200.00", "notation": null}
nlprog_det-setting-0065557
<|start|><|user|> How many units at $30 each (variable cost $26) cover $6,000 of fixed costs?<|eot|> <|assistant|> import math fixed = 6000 price = 30 variable = 26 units = math.ceil(fixed / (price - variable)) # 1500 print(units) The code prints: 1500 Break-even is 1500 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $30 each (variable cost $26) cover $6,000 of fixed costs?" }, { "role": "assistant", "content": " import math\n fixed = 6000\n price = 30\n variable = 26\n units = math.ceil(fixed / (price - variable)) # 1500\n print(units)\nThe ...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0065558
<|start|><|user|> How much is a $74 daily meal allowance over 7 days?<|eot|> <|assistant|> ```python days = 7 meal_rate = 74 total = days * meal_rate # 518 print(total) ``` Out: 518 That comes to $518.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much is a $74 daily meal allowance over 7 days?" }, { "role": "assistant", "content": "```python\ndays = 7\nmeal_rate = 74\ntotal = days * meal_rate # 518\nprint(total)\n```\nOut: 518\n\nThat comes to $518." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "518", "printed": "518", "notation": null}
nlprog_det-setting-0065559
<|start|><|user|> What average speed covers 110 miles in 5 hours?<|eot|> <|assistant|> ```python distance = 110 hours = 5 speed = distance / hours # 22.0 print(round(speed)) ``` Executed, it shows: 22 It averages 22 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 110 miles in 5 hours?" }, { "role": "assistant", "content": "```python\ndistance = 110\nhours = 5\nspeed = distance / hours # 22.0\nprint(round(speed))\n```\nExecuted, it shows: 22\n\nIt averages 22 miles per hour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0065560
Straight-line depreciation: cost $45,000, salvage $0, 6 years. How much per year? Coded up: ```python cost = 45000 salvage = 0 years = 6 per_year = (cost - salvage) / years # 7500.0 print(f"{per_year:.2f}") ``` Output: 7500.00 Depreciation is $7,500.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0065561
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> Express 241 hours in days and hours.<|eot|> <|assistant|> ```python hours = 241 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` It prints 10 days and 1 hours, as expected. 241 hours is 10 days and 1 hours.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "Express 241 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 241\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nIt prints ...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "10 days and 1 hours", "printed": "10 days and 1 hours", "notation": null}
nlprog_det-setting-0065562
A settlement of $18,000 is split equally among 3 parties. How much does each party receive? Computing it: ```python settlement = 18000 parties = 3 share = settlement // parties # 6000 print(share) ``` Out = 6000 Each share is $6,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "6000", "printed": "6000", "notation": null}
nlprog_det-setting-0065563
What is 5 degrees Celsius in Fahrenheit? In Python: celsius = 5 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) Executing it gives: 41 It equals 41 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0065564
Sales went from 200 to 280. What is the percent change? Let the code do the arithmetic: ```python old = 200 new = 280 change = (new - old) / old * 100 # 40.0 print(round(change)) ``` (Printed: 40) The change is 40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0065565
A $6,000 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? The program: ```python principal = 6000 annual_rate = 8 / 100 # 0.08 months = 36 interest = principal * annual_rate * months / 12 # 1440.0 payment = (principal + interest...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "206.67", "printed": "206.67", "notation": null}
nlprog_det-setting-0065566
<|start|><|user|> Yara buys 6 boxes of 10 sticky pads each and gives away 4 sticky pads. How many sticky pads are left?<|eot|> <|assistant|> 56 sticky pads are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Yara buys 6 boxes of 10 sticky pads each and gives away 4 sticky pads. How many sticky pads are left?" }, { "role": "assistant", "content": "56 sticky pads are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0065567
From a $7,500 retainer, 7 hours at $275/hour have been drawn. What remains? A short script: ```python retainer = 7500 hours = 7 rate = 275 left = retainer - hours * rate # 5575 print(left) ``` It outputs 5575. The remaining balance is $5,575.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "5575", "printed": "5575", "notation": null}
nlprog_det-setting-0065568
<|start|><|user|> Shipping costs $10 plus $2.00 per pound. What does a 8-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 10 per_pound = 2.0 weight = 8 cost = base + per_pound * weight # 26.0 print(f"{cost:.2f}") ``` Printed result: 26.00 The charge is $26.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $10 plus $2.00 per pound. What does a 8-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 10\nper_pound = 2.0\nweight = 8\ncost = base + per_pound * weight # 26.0\nprint(f\"{cost:.2f}\")\n```\nPrinted result: 26.00\n...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "26.00", "printed": "26.00", "notation": null}
nlprog_det-setting-0065569
<|start|><|system|> Be brief and correct.<|eot|> <|user|> Rafael and Kofi share $432 in the ratio 1:3. How much does Rafael get?<|eot|> <|assistant|> ```python total = 432 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 108 print(share_a) ``` # console output: 108 Rafael gets $108.<|eot|> <...
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "Rafael and Kofi share $432 in the ratio 1:3. How much does Rafael get?" }, { "role": "assistant", "content": "```python\ntotal = 432\nparts_a = 1\nparts_b = 3\nshare_a = total * parts_a // (parts_...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "108", "printed": "108", "notation": null}
nlprog_det-setting-0065570
A seminar starts at 2:20 PM and lasts 135 minutes. When does it end? The seminar finishes at 4:35 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "4:35 PM", "printed": "4:35 PM", "notation": null}
nlprog_det-setting-0065571
<|start|><|user|> Monthly: $25. Annual: $270. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 25 yearly = 270 savings = monthly * 12 - yearly print(savings) ``` Out: 30 $30 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $25. Annual: $270. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 25\nyearly = 270\nsavings = monthly * 12 - yearly\nprint(savings)\n```\nOut:\n30\n\n$30 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0065572
Convert 30 °C to Fahrenheit. Script: ```python celsius = 30 fahrenheit = celsius * 9 / 5 + 32 # 86.0 print(round(fahrenheit)) ``` (Program output: 86) That is 86 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0065573
579 files go into boxes of 40. How many boxes does that take? Coded up: ```python import math files = 579 per_box = 40 boxes = math.ceil(files / per_box) print(boxes) ``` (Run result: 15) 15 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0065574
Copies cost $15 plus $0.50 for each page beyond 20. How much for 56 pages? Python version: pages = 56 base = 15 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 33.0 print(f"{cost:.2f}") # run result: 33.00 The copy costs $33.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "33.00", "printed": "33.00", "notation": null}
nlprog_det-setting-0065575
<|start|><|user|> With 15% off, what does a $90 backpack cost?<|eot|> <|assistant|> ```python price = 90 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 76.5 print(f"{sale_price:.2f}") ``` (Printed result: 76.50) It costs $76.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 15% off, what does a $90 backpack cost?" }, { "role": "assistant", "content": "```python\nprice = 90\ndiscount = 15 / 100 # 0.15\nsale_price = price * (1 - discount) # 76.5\nprint(f\"{sale_price:.2f}\")\n```\n(Printed result: 76.50)\n\nIt costs $76.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "76.50", "printed": "76.50", "notation": null}
nlprog_det-setting-0065576
Flooring at $3/sq ft for a 14 ft × 10 ft room costs how much? It costs $420.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "420", "printed": "420", "notation": null}
nlprog_det-setting-0065577
<|start|><|user|> Monthly rent is $1,800. A tenant moves in with 20 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 1800 days_in_month = 30 days_occupied = 20 prorated = rent * days_occupied / days_in_month # 1200.0 print(f"{prorated:.2f}") ``` Executing it gives 1200.00, ...
chat
[ { "role": "user", "content": "Monthly rent is $1,800. A tenant moves in with 20 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 1800\ndays_in_month = 30\ndays_occupied = 20\nprorated = rent * days_occupied / days_in_month # 1200.0...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0065578
<|start|><|system|> Tool definitions: {"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": "eval_python", "description": "Executes a ...
chat
[ { "role": "system", "content": "Tool definitions:\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\", \"secti...
nlprog_det
setting
original
null
deterministic
[]
[]
390
{"gold": "19.50", "printed": "19.50", "notation": null}
nlprog_det-setting-0065579
<|start|><|user|> Shipping costs $10 plus $1.20 per pound. What does a 34-pound parcel cost to ship?<|eot|> <|assistant|> Shipping costs $50.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $10 plus $1.20 per pound. What does a 34-pound parcel cost to ship?" }, { "role": "assistant", "content": "Shipping costs $50.80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "50.80", "printed": "50.80", "notation": null}
nlprog_det-setting-0065580
Quinn drove 494 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement? We can compute it in Python. ```python miles = 494 rate = 0.7 reimbursement = miles * rate # 345.79999999999995 print(f"{reimbursement:.2f}") ``` Out — 345.80 The reimbursement is $345.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "345.80", "printed": "345.80", "notation": null}
nlprog_det-setting-0065581
A trial runs from July 19, 2019 to July 24, 2019, counting both days. How many calendar days is that? One way, in code: ```python from datetime import date first = date(2019, 7, 19) last = date(2019, 7, 24) days = (last - first).days + 1 print(days) ``` # result: 6 6 calendar days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0065582
<|start|><|user|> How many meters are in 15.7 kilometers?<|eot|> <|assistant|> km = 15.7 meters = km * 1000 # 15700.0 print(round(meters)) # result: 15700 That is 15,700 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 15.7 kilometers?" }, { "role": "assistant", "content": " km = 15.7\n meters = km * 1000 # 15700.0\n print(round(meters))\n# result: 15700\n\nThat is 15,700 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "15700", "printed": "15700", "notation": null}
nlprog_det-setting-0065583
<|start|><|user|> A pack of 5 labels sells for $45. What does each cost?<|eot|> <|assistant|> ```python total = 45 count = 5 per_item = total // count print(per_item) ``` Python prints: 9 The unit price is $9.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 5 labels sells for $45. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 45\ncount = 5\nper_item = total // count\nprint(per_item)\n```\nPython prints: 9\n\nThe unit price is $9." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0065584
Someone works 36 hours at $27.02 per hour. What are the earnings? Set it up in Python: ```python rate = 27.02 hours = 36 earnings = rate * hours # 972.72 print(f"{earnings:.2f}") ``` Execution prints: 972.72 That earns $972.72.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "972.72", "printed": "972.72", "notation": null}
nlprog_det-setting-0065585
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> A water bill is $15 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 7 thousand gallons?<|eot|> <|assistant|> $34.00 is owed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "A water bill is $15 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 7 thousand gallons?" }, { "role": "assistant", "content": "$34.00 is owed." ...
nlprog_det
setting
original
null
deterministic
[]
[]
61
{"gold": "34.00", "printed": "34.00", "notation": null}
nlprog_det-setting-0065586
Counting only Monday through Friday, how many business days are there after December 4, 2025 through December 11, 2025? Program: ```python from datetime import date, timedelta start = date(2025, 12, 4) end = date(2025, 12, 11) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).week...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0065587
<|start|><|system|> Available functions (JSON Schema): {"name": "compute", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "define_word", "descripti...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"compute\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
280
{"gold": "59040", "printed": "59040", "notation": null}
nlprog_det-setting-0065588
Split $4,170 between Idris and Tobias in the ratio 2 to 3. What is Idris's share? total = 4170 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 1668 print(share_a) Running this gives 1668. Idris gets $1,668.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1668", "printed": "1668", "notation": null}
nlprog_det-setting-0065589
<|start|><|system|> Be concise.<|eot|> <|user|> After an initial $3,000, the remainder of a $30,000 grant is paid in 12 equal parts. What is each part?<|eot|> <|assistant|> $2,250.00 per installment.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "After an initial $3,000, the remainder of a $30,000 grant is paid in 12 equal parts. What is each part?" }, { "role": "assistant", "content": "$2,250.00 per installment." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
55
{"gold": "2250.00", "printed": "2250.00", "notation": null}
nlprog_det-setting-0065590
Viktor's scores were 88, 66, 81, 50, 58 and 77. What is the average score? Written as code: ```python scores = [88, 66, 81, 50, 58, 77] average = sum(scores) // len(scores) # 70 print(average) ``` # execution result: 70 The mean is 70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0065591
<|start|><|user|> Counting the first and last day, how many days are there from April 5, 2020 through April 15, 2020?<|eot|> <|assistant|> ```python from datetime import date first = date(2020, 4, 5) # datetime.date(2020, 4, 5) last = date(2020, 4, 15) # datetime.date(2020, 4, 15) days = (last - first).days + 1 # 11...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from April 5, 2020 through April 15, 2020?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2020, 4, 5) # datetime.date(2020, 4, 5)\nlast = date(2020, 4, 15) # dateti...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0065592
A lease runs for 12 months at $850 per month. How much rent is paid over the whole term? In total, $10,200 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "10200", "printed": "10200", "notation": null}
nlprog_det-setting-0065593
Equal monthly payments repay $9,000 plus 6% simple yearly interest over 36 months. How large is a payment? Script: principal = 9000 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 1620.0 payment = (principal + interest) / months # 295.0 print(f"{pa...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "295.00", "printed": "295.00", "notation": null}
nlprog_det-setting-0065594
<|start|><|user|> 2 books come back 13 days late, at $0.50 a day each. What is the fine?<|eot|> <|assistant|> The fine is $13.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 books come back 13 days late, at $0.50 a day each. What is the fine?" }, { "role": "assistant", "content": "The fine is $13.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "13.00", "printed": "13.00", "notation": null}
nlprog_det-setting-0065595
A car travels 318 miles in 2 hours. What is its average speed in miles per hour? As a program: distance = 318 hours = 2 speed = distance / hours # 159.0 print(round(speed)) # out: 159 The average speed is 159 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "159", "printed": "159", "notation": null}
nlprog_det-setting-0065596
<|start|><|user|> Filing fees are $150 per document. What do 13 filings cost?<|eot|> <|assistant|> ```python fee = 150 filings = 13 total = fee * filings # 1950 print(total) ``` Running this gives 1950. The total fee is $1,950.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $150 per document. What do 13 filings cost?" }, { "role": "assistant", "content": "```python\nfee = 150\nfilings = 13\ntotal = fee * filings # 1950\nprint(total)\n```\nRunning this gives 1950.\n\nThe total fee is $1,950." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "1950", "printed": "1950", "notation": null}
nlprog_det-setting-0065597
<|start|><|user|> Counting the first and last day, how many days are there from May 10, 2023 through May 14, 2023?<|eot|> <|assistant|> ```python from datetime import date first = date(2023, 5, 10) # datetime.date(2023, 5, 10) last = date(2023, 5, 14) # datetime.date(2023, 5, 14) days = (last - first).days + 1 # 5 p...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from May 10, 2023 through May 14, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2023, 5, 10) # datetime.date(2023, 5, 10)\nlast = date(2023, 5, 14) # datetim...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0065598
Vera earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 51-hour week? Python makes this quick: ```python rate = 25.0 hours = 51 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{pay:.2f}") ``` Output of the run: 1412.50 Vera earns $1,412.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "1412.50", "printed": "1412.50", "notation": null}
nlprog_det-setting-0065599
<|start|><|user|> Find the mean of these test scores: 88, 66, 88 and 66.<|eot|> <|assistant|> ```python scores = [88, 66, 88, 66] average = sum(scores) // len(scores) # 77 print(average) ``` # output: 77 The mean is 77.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Find the mean of these test scores: 88, 66, 88 and 66." }, { "role": "assistant", "content": "```python\nscores = [88, 66, 88, 66]\naverage = sum(scores) // len(scores) # 77\nprint(average)\n```\n# output: 77\n\nThe mean is 77." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0065600
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Convert 3 h 22 min (the length of a workshop) to minutes.<|eot|> <|assistant|> ```python hours = 3 minutes = 22 total_minutes = hours * 60 + minutes # 202 print(total_minutes) ``` Out — 202 The workshop lasted 202 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Convert 3 h 22 min (the length of a workshop) to minutes." }, { "role": "assistant", "content": "```python\nhours = 3\nminutes = 22\ntotal_minutes = hours * 60 + minutes # 202\nprint(total_mi...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "202", "printed": "202", "notation": null}
nlprog_det-setting-0065601
A 18-month warranty starts on August 10, 2025. On what date does it end? Python code: ```python from datetime import date start = date(2025, 8, 10) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Program output ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2027-02-10", "printed": "2027-02-10", "notation": null}
nlprog_det-setting-0065602
<|start|><|user|> A hearing lasted 4 hours and 50 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 4 minutes = 50 total_minutes = hours * 60 + minutes # 290 print(total_minutes) ``` The interpreter prints 290. The hearing lasted 290 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing lasted 4 hours and 50 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 4\nminutes = 50\ntotal_minutes = hours * 60 + minutes # 290\nprint(total_minutes)\n```\nThe interpreter prints 290.\n\nThe hearing lasted 29...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "290", "printed": "290", "notation": null}
nlprog_det-setting-0065603
One can of paint covers 350 square feet. How many cans are needed for 1003 square feet of wall? Here is a short program for it. ```python import math area = 1003 coverage = 350 cans = math.ceil(area / coverage) # 3 print(cans) ``` stdout — 3 3 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0065604
A measure needs at least 67% of 97 votes. How many votes is that, rounded up? Here is a short program for it. ```python import math voters = 97 needed = math.ceil(voters * 67 / 100) # 65 print(needed) ``` # console output: 65 At least 65 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0065606
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> The landlord deducts $45 from a $2,000 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 2000 deductions = [45] refund = deposit - sum(deductions) # 1955 print(refund) ``` On running, it outputs: 1955 $1,955 is returned....
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "The landlord deducts $45 from a $2,000 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 2000\ndeductions = [45]\nrefund = deposit - sum(...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1955", "printed": "1955", "notation": null}
nlprog_det-setting-0065607
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Sales went from 1,200 to 1,140. What is the percent change?<|eot|> <|assistant|> ```python old = 1200 new = 1140 change = (new - old) / old * 100 # -5.0 print(round(change)) ``` Console: -5 It changed by -5%.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Sales went from 1,200 to 1,140. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 1200\nnew = 1140\nchange = (new - old) / old * 100 # -5.0\nprint(rou...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "-5", "printed": "-5", "notation": null}
nlprog_det-setting-0065608
Fixed costs are $4,000. Each unit sells for $25 and costs $19 to make. How many units must be sold to break even? Program: ```python import math fixed = 4000 price = 25 variable = 19 units = math.ceil(fixed / (price - variable)) # 667 print(units) ``` Run output: 667 Break-even is 667 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "667", "printed": "667", "notation": null}
nlprog_det-setting-0065609
Under a 40% contingency agreement, what fee is owed on a $150,000 award? The Python version: ```python recovery = 150000 rate = 40 / 100 # 0.4 fee = recovery * rate # 60000.0 print(f"{fee:.2f}") ``` # printed result: 60000.00 The fee is $60,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "60000.00", "printed": "60000.00", "notation": null}
nlprog_det-setting-0065610
A client paid a $2,500 retainer. The firm has billed 10 hours at $250 per hour. How much of the retainer is left? ```python retainer = 2500 hours = 10 rate = 250 left = retainer - hours * rate # 0 print(left) ``` It prints 0, as expected. The remaining balance is $0.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "0", "printed": "0", "notation": null}
nlprog_det-setting-0065611
At a 8% tax rate, what is the tax on $295.14? Python version: ```python price = 295.14 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 23.6112 print(f"{tax:.2f}") ``` What it prints: 23.61 $23.61 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "23.61", "printed": "23.61", "notation": null}
nlprog_det-setting-0065612
From a $2,500 retainer, 9 hours at $275/hour have been drawn. What remains? We can compute it in Python. retainer = 2500 hours = 9 rate = 275 left = retainer - hours * rate # 25 print(left) Output — 25 $25 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0065613
<|start|><|user|> Someone born January 18, 2000 turns how old by March 16, 2025? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(2000, 1, 18) # datetime.date(2000, 1, 18) on = date(2025, 3, 16) # datetime.date(2025, 3, 16) age = on.year - born.year - ((on.month, on.da...
chat
[ { "role": "user", "content": "Someone born January 18, 2000 turns how old by March 16, 2025? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(2000, 1, 18) # datetime.date(2000, 1, 18)\non = date(2025, 3, 16) # datetime.date(2...
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0065614
Femi was born on December 9, 1990. How old is Femi on February 19, 2020? Written as code: ```python from datetime import date born = date(1990, 12, 9) # datetime.date(1990, 12, 9) on = date(2020, 2, 19) # datetime.date(2020, 2, 19) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 29 print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0065615
Which is cheaper per unit: 6 for $3.88 (A) or 24 for $10.26 (B)? Translated to Python: ```python pack_a = 3.88 / 6 # 0.6466666666666666 pack_b = 10.26 / 24 # 0.4275 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` It outputs: B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0065616
An attorney bills 4 hours at $300 per hour. What is the bill? A few lines of Python do it: ```python hours = 4 rate = 300 bill = hours * rate # 1200 print(f"{bill:.2f}") ``` The program prints 1200.00, as expected. That comes to $1,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0065617
<|start|><|user|> Split $535 between Signe and Jamal in the ratio 2 to 3. What is Signe's share?<|eot|> <|assistant|> Signe gets $214.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $535 between Signe and Jamal in the ratio 2 to 3. What is Signe's share?" }, { "role": "assistant", "content": "Signe gets $214." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "214", "printed": "214", "notation": null}
nlprog_det-setting-0065618
How many minutes pass from 11:12 AM to 12:19 PM on the same day? Coded up: ```python start = 11 * 60 + 12 # 672 end = 12 * 60 + 19 # 739 print(end - start) ``` When run, it prints 67, as expected. It is 67 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "67", "printed": "67", "notation": null}
nlprog_det-setting-0065619
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> An invoice lists 35 sticky pads at $15 each, plus 6% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 35 unit_price = 15 subtotal = quantity * unit_price # 525 total = subtotal * (1 + 6 / 100) # 556.5 print(f"{total:.2f}")...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "An invoice lists 35 sticky pads at $15 each, plus 6% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 35\nunit_price = 15\nsubtotal = quant...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "556.50", "printed": "556.50", "notation": null}
nlprog_det-setting-0065621
A client paid a $2,500 retainer. The firm has billed 3 hours at $250 per hour. How much of the retainer is left? Computation in Python: ```python retainer = 2500 hours = 3 rate = 250 left = retainer - hours * rate # 1750 print(left) ``` (Printed: 1750) $1,750 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0065622
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> A shift runs from 8:40 AM to 12:22 PM. How long is it in minutes?<|eot|> <|assistant|> 222 minutes pass.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "A shift runs from 8:40 AM to 12:22 PM. How long is it in minutes?" }, { "role": "assistant", "content": "222 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "222", "printed": "222", "notation": null}
nlprog_det-setting-0065623
Meals are $74 per day and lodging $140 per night. What is the allowance for 5 days and 4 nights? Computing it: days = 5 meal_rate = 74 lodging_rate = 140 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 930 print(total) On running, it outputs: 930 That comes to $930.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "930", "printed": "930", "notation": null}
nlprog_det-setting-0065625
<|start|><|system|> Tool definitions: [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code print...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"calculator\", \"description\": \"Run Pytho...
nlprog_det
setting
original
null
deterministic
[]
[]
315
{"gold": "86.67", "printed": "86.67", "notation": null}
nlprog_det-setting-0065626
Walls total 1167 sq ft and each can covers 250 sq ft. How many cans should be bought? Python does the arithmetic: ```python import math area = 1167 coverage = 250 cans = math.ceil(area / coverage) # 5 print(cans) ``` It outputs 5. 5 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0065627
<|start|><|user|> 5 claimants share a $1,200 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 1200 parties = 5 share = settlement // parties # 240 print(share) ``` Execution prints 240. Each party receives $240.<|eot|> <|end|>
chat
[ { "role": "user", "content": "5 claimants share a $1,200 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 1200\nparties = 5\nshare = settlement // parties # 240\nprint(share)\n```\nExecution prints 240.\n\nEach party receives $240." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0065629
16 copies of a 60-page packet are printed at $0.05 per page. What is the cost? As Python: ```python pages = 60 copies = 16 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 48.0 print(f"{cost:.2f}") ``` Result: 48.00 Printing costs $48.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0065630
Fines run at $100 per day up to a maximum of $1,000. How much after 6 days? Let the code do the arithmetic: ```python per_day = 100 days = 6 cap = 1000 fine = min(per_day * days, cap) # 600 print(fine) ``` It outputs 600. The fine is $600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0065631
A 11 lb package ships at $8 base plus $1.20/lb. What is the charge? Programmatically: ```python base = 8 per_pound = 1.2 weight = 11 cost = base + per_pound * weight # 21.2 print(f"{cost:.2f}") ``` Printed result — 21.20 The charge is $21.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "21.20", "printed": "21.20", "notation": null}
nlprog_det-setting-0065632
A 39 lb package ships at $5 base plus $1.50/lb. What is the charge? The Python version: ```python base = 5 per_pound = 1.5 weight = 39 cost = base + per_pound * weight # 63.5 print(f"{cost:.2f}") ``` When run, it prints 63.50. The charge is $63.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "63.50", "printed": "63.50", "notation": null}
nlprog_det-setting-0065633
A 20 × 11 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? As Python: ```python import math length = 20 width = 11 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 55 print(tiles) ``` The script prints 55. It takes 55 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "55", "printed": "55", "notation": null}
nlprog_det-setting-0065634
A $210 dinner bill gets a 20% tip, and 4 people share the cost equally. What is each person's share? Program: ```python bill = 210 tip_rate = 20 / 100 people = 4 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` # program output: 63.00 Each person pays $63.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "63.00", "printed": "63.00", "notation": null}
nlprog_det-setting-0065635
A claim accrued on April 16, 2016. The limitations period is 2 years. On what date does it expire? Here's the code. ```python from datetime import date accrued = date(2016, 4, 16) # datetime.date(2016, 4, 16) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 4, 16) print(expires.is...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2018-04-16", "printed": "2018-04-16", "notation": null}
nlprog_det-setting-0065636
Which is cheaper per unit: 12 for $9.33 (A) or 24 for $8.00 (B)? As Python: ```python pack_a = 9.33 / 12 # 0.7775 pack_b = 8.0 / 24 # 0.3333333333333333 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Program output: B B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0065638
Fixed costs are $2,500. Each unit sells for $20 and costs $15 to make. How many units must be sold to break even? 500 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0065639
If a 105-minute hearing begins at 2:45 PM, what time does it finish? start = 14 * 60 + 45 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") # result: 4:30 PM The hearing finishes at 4:30 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "4:30 PM", "printed": "4:30 PM", "notation": null}
nlprog_det-setting-0065640
190 volunteers are split into 6 equal teams. How many are on each team, and how many are left over? Python version: total = 190 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") Printed result — 31 each, 4 left over The answer: 31 each, 4 left ov...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "31 each, 4 left over", "printed": "31 each, 4 left over", "notation": null}
nlprog_det-setting-0065641
17 of 25 members attended. What percent attended? One way, in code: ```python present = 17 total = 25 percent = present / total * 100 # 68.0 print(round(percent, 1)) ``` Run result — 68.0 68.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "68.0", "printed": "68.0", "notation": null}
nlprog_det-setting-0065642
<|start|><|user|> The landlord deducts $120 from a $1,500 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 1500 deductions = [120] refund = deposit - sum(deductions) # 1380 print(refund) ``` Execution result: 1380 $1,380 is returned.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $120 from a $1,500 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 1500\ndeductions = [120]\nrefund = deposit - sum(deductions) # 1380\nprint(refund)\n```\nExecution result: 1380\n\n$1,380 is...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1380", "printed": "1380", "notation": null}
nlprog_det-setting-0065643
<|start|><|user|> $5,000 is invested at 5% compounded yearly. What is it worth after 2 years?<|eot|> <|assistant|> principal = 5000 rate = 5 / 100 # 0.05 years = 2 value = principal * (1 + rate) ** years # 5512.5 print(f"{value:.2f}") The printout reads 5512.50. The balance is $5,512.50.<|eot|> <...
chat
[ { "role": "user", "content": "$5,000 is invested at 5% compounded yearly. What is it worth after 2 years?" }, { "role": "assistant", "content": " principal = 5000\n rate = 5 / 100 # 0.05\n years = 2\n value = principal * (1 + rate) ** years # 5512.5\n print(f\"{value:.2f}\")\nTh...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "5512.50", "printed": "5512.50", "notation": null}
nlprog_det-setting-0065644
A 2% increase is applied to $1,500 monthly rent. What is the new amount? The program: ```python rent = 1500 increase = 2 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` It prints: 1530.00 It rises to $1,530.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1530.00", "printed": "1530.00", "notation": null}
nlprog_det-setting-0065645
<|start|><|system|> Available functions (JSON Schema): {"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> A 8% increase is a...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
224
{"gold": "972.00", "printed": "972.00", "notation": null}