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-0066289
Water costs $12 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 10,000 gallons? In code: ```python base = 12 rate = 4.2 used = 10 free = 0 bill = base + rate * max(0, used - free) # 54.0 print(f"{bill:.2f}") ``` Console output — 54.00 The bill is $54.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0066290
Attendance was 106 out of 200. Express it as a percent. ```python present = 106 total = 200 percent = present / total * 100 # 53.0 print(round(percent, 1)) ``` Interpreter output: 53.0 Attendance was 53.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "53.0", "printed": "53.0", "notation": null}
nlprog_det-setting-0066291
A 18-month warranty starts on April 23, 2027. On what date does it end? Here's the code. ```python from datetime import date start = date(2027, 4, 23) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Printed resu...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2028-10-23", "printed": "2028-10-23", "notation": null}
nlprog_det-setting-0066292
<|start|><|user|> What is a 22% tip on a $151.58 bill?<|eot|> <|assistant|> ```python bill = 151.58 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 33.3476 print(f"{tip:.2f}") ``` Console: 33.35 Leave $33.35.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 22% tip on a $151.58 bill?" }, { "role": "assistant", "content": "```python\nbill = 151.58\ntip_rate = 22 / 100 # 0.22\ntip = bill * tip_rate # 33.3476\nprint(f\"{tip:.2f}\")\n```\nConsole:\n33.35\n\nLeave $33.35." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "33.35", "printed": "33.35", "notation": null}
nlprog_det-setting-0066293
<|start|><|user|> How many units at $25 each (variable cost $15) cover $9,000 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 9000 price = 25 variable = 15 units = math.ceil(fixed / (price - variable)) # 900 print(units) ``` (Run result: 900) Break-even is 900 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $25 each (variable cost $15) cover $9,000 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 9000\nprice = 25\nvariable = 15\nunits = math.ceil(fixed / (price - variable)) # 900\nprint(units)\n```\n(Run result: ...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0066294
<|start|><|user|> A recipe for 8 people uses 200 grams of pasta. How many grams are needed for 6 people?<|eot|> <|assistant|> grams = 200 serves = 8 needed_for = 6 scaled = grams * needed_for // serves # 150 print(scaled) It outputs 150. Use 150 g of pasta.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 8 people uses 200 grams of pasta. How many grams are needed for 6 people?" }, { "role": "assistant", "content": " grams = 200\n serves = 8\n needed_for = 6\n scaled = grams * needed_for // serves # 150\n print(scaled)\nIt outputs 150.\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0066295
<|start|><|user|> A measure needs at least 67% of 66 votes. How many votes is that, rounded up?<|eot|> <|assistant|> import math voters = 66 needed = math.ceil(voters * 67 / 100) # 45 print(needed) Printed = 45 45 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 67% of 66 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": " import math\n voters = 66\n needed = math.ceil(voters * 67 / 100) # 45\n print(needed)\nPrinted = 45\n\n45 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0066296
Of a $5,000 budget, $3,600 has been spent. What percent is that? Program: ```python budget = 5000 spent = 3600 percent = spent / budget * 100 # 72.0 print(round(percent, 1)) ``` Shell output: 72.0 That is 72.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "72.0", "printed": "72.0", "notation": null}
nlprog_det-setting-0066297
<|start|><|user|> The landlord deducts $60 from a $2,500 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 2500 deductions = [60] refund = deposit - sum(deductions) # 2440 print(refund) ``` Result — 2440 The refund is $2,440.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $60 from a $2,500 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 2500\ndeductions = [60]\nrefund = deposit - sum(deductions) # 2440\nprint(refund)\n```\nResult — 2440\n\nThe refund is $2,440...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "2440", "printed": "2440", "notation": null}
nlprog_det-setting-0066298
<|start|><|user|> 4 friends split a $96 bill plus a 18% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 96 tip_rate = 18 / 100 # 0.18 people = 4 each = bill * (1 + tip_rate) / people # 28.32 print(f"{each:.2f}") ``` The script prints 28.32, as expected. Each person pays $28.32.<|eot|> <|end...
chat
[ { "role": "user", "content": "4 friends split a $96 bill plus a 18% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 96\ntip_rate = 18 / 100 # 0.18\npeople = 4\neach = bill * (1 + tip_rate) / people # 28.32\nprint(f\"{each:.2f}\")\n```\nThe script pr...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "28.32", "printed": "28.32", "notation": null}
nlprog_det-setting-0066299
How much sales tax is charged on a $206.77 purchase at 7%? One way, in code: ```python price = 206.77 tax_rate = 7 / 100 # 0.07 tax = price * tax_rate # 14.473900000000002 print(f"{tax:.2f}") ``` The program prints 14.47, as expected. $14.47 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "14.47", "printed": "14.47", "notation": null}
nlprog_det-setting-0066300
An attorney bills 8 hours at $300 per hour. What is the bill? Python code: ```python hours = 8 rate = 300 bill = hours * rate print(f"{bill:.2f}") ``` The program prints: 2400.00 The bill is $2,400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0066301
2 clients win $60,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? We can compute it in Python. ```python award = 60000 fee = award * 40 / 100 # 24000.0 remaining = award - fee # 36000.0 per_client = remaining / 2 # 18000.0 print(f"{per_client:.2f}") ``` # console output: 180...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0066303
<|start|><|user|> Revenue is $10,500 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 10500 costs = 8000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 23.809523809523807 print(round(margin, 1)) ``` Program output: 23.8 ...
chat
[ { "role": "user", "content": "Revenue is $10,500 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 10500\ncosts = 8000\nprofit = revenue - costs # 2500\nmargin = profit / revenue * 100 # 23.8095238...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "23.8", "printed": "23.8", "notation": null}
nlprog_det-setting-0066304
A car travels 376 miles in 4 hours. What is its average speed in miles per hour? We write it as a program: ```python distance = 376 hours = 4 speed = distance / hours print(round(speed)) ``` Interpreter output — 94 It averages 94 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "94", "printed": "94", "notation": null}
nlprog_det-setting-0066305
Pack A has 12 items for $3.91. Pack B has 15 items for $10.79. Which has the lower price per item? Python, step by step: pack_a = 3.91 / 12 # 0.32583333333333336 pack_b = 10.79 / 15 # 0.7193333333333333 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) # run result: A A has the lower u...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0066306
How many units at $30 each (variable cost $25) cover $4,000 of fixed costs? Programmatically: ```python import math fixed = 4000 price = 30 variable = 25 units = math.ceil(fixed / (price - variable)) # 800 print(units) ``` Result = 800 Break-even is 800 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0066307
2.5 hours of work at $350 an hour: what is the total charge? Computation in Python: ```python hours = 2.5 rate = 350 bill = hours * rate # 875.0 print(f"{bill:.2f}") ``` Running it prints 875.00. That comes to $875.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "875.00", "printed": "875.00", "notation": null}
nlprog_det-setting-0066309
After a 25% fee is taken from a $60,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? Python, step by step: ```python award = 60000 fee = award * 25 / 100 # 15000.0 remaining = award - fee # 45000.0 per_client = remaining / 4 # 11250.0 print(f"{per_client:.2f}") ``` Console out...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "11250.00", "printed": "11250.00", "notation": null}
nlprog_det-setting-0066310
<|start|><|system|> Tools you may use: [{"name": "eval_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "translate", "descrip...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"eval_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
326
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0066311
Starting from $20,000, the team spends $3,022, $3,971. What remains? Here is the program. ```python budget = 20000 expenses = [3022, 3971] left = budget - sum(expenses) # 13007 print(left) ``` Run output — 13007 The remaining budget is $13,007.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "13007", "printed": "13007", "notation": null}
nlprog_det-setting-0066312
A deposition lasted 5 hours and 10 minutes. How many minutes is that? That is 310 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "310", "printed": "310", "notation": null}
nlprog_det-setting-0066313
20 of 25 members attended. What percent attended? Python code: ```python present = 20 total = 25 percent = present / total * 100 # 80.0 print(round(percent, 1)) ``` (Execution result: 80.0) 80.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "80.0", "printed": "80.0", "notation": null}
nlprog_det-setting-0066314
<|start|><|user|> 455 files go into boxes of 20. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 455 per_box = 20 boxes = math.ceil(files / per_box) # 23 print(boxes) ``` That prints 23. It takes 23 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "455 files go into boxes of 20. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 455\nper_box = 20\nboxes = math.ceil(files / per_box) # 23\nprint(boxes)\n```\nThat prints 23.\n\nIt takes 23 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0066315
Split $1,536 between Mateo and Omar in the ratio 1 to 3. What is Mateo's share? Mateo's share is $384.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "384", "printed": "384", "notation": null}
nlprog_det-setting-0066316
<|start|><|user|> Nilufar's scores were 90, 57 and 81. What is the average score?<|eot|> <|assistant|> ```python scores = [90, 57, 81] average = sum(scores) // len(scores) # 76 print(average) ``` The program prints 76. The mean is 76.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Nilufar's scores were 90, 57 and 81. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [90, 57, 81]\naverage = sum(scores) // len(scores) # 76\nprint(average)\n```\nThe program prints 76.\n\nThe mean is 76." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0066317
How many 2-foot square tiles cover a 5 ft by 3 ft floor (round up)? Program: ```python import math length = 5 width = 3 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 4 print(tiles) ``` # result: 4 4 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0066318
<|start|><|user|> An office budget of $8,000 has expenses of $3,384, $3,296, $3,985. How much of the budget is left?<|eot|> <|assistant|> budget = 8000 expenses = [3384, 3296, 3985] left = budget - sum(expenses) # -2665 print(left) # out: -2665 -$2,665 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $8,000 has expenses of $3,384, $3,296, $3,985. How much of the budget is left?" }, { "role": "assistant", "content": " budget = 8000\n expenses = [3384, 3296, 3985]\n left = budget - sum(expenses) # -2665\n print(left)\n# out: -2665\...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "-2665", "printed": "-2665", "notation": null}
nlprog_det-setting-0066319
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> Someone born September 23, 2009 turns how old by October 16, 2020? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(2009, 9, 23) on = date(2020, 10, 16) age = on.year - born.year - ((on.month, on...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "Someone born September 23, 2009 turns how old by October 16, 2020? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn ...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0066320
At a 8% tax rate, what is the tax on $573.80? Python: ```python price = 573.8 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 45.903999999999996 print(f"{tax:.2f}") ``` The script prints 45.90. The tax is $45.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "45.90", "printed": "45.90", "notation": null}
nlprog_det-setting-0066321
<|start|><|system|> Tools (call with JSON): [{"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Shipping cost...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re...
nlprog_det
setting
original
null
deterministic
[]
[]
230
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0066322
A 8 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Here is a short program for it. ```python import math length = 8 width = 14 tile = 2 tiles = math.ceil(length * width / (tile * tile)) print(tiles) ``` Out: 28 It takes 28 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0066323
An attorney bills 2 hours at $300 per hour. What is the bill? Computing it: hours = 2 rate = 300 bill = hours * rate # 600 print(f"{bill:.2f}") (Result: 600.00) That comes to $600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0066325
At an exchange rate of 1.12 USD per CHF, how many USD is 6,303 CHF? That is 7,059.36 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "7059.36", "printed": "7059.36", "notation": null}
nlprog_det-setting-0066326
<|start|><|user|> Ana earns a 2% commission on $55,907 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 55907 rate = 2 / 100 commission = sales * rate print(f"{commission:.2f}") ``` This prints: 1118.14 Ana earns $1,118.14.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Ana earns a 2% commission on $55,907 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 55907\nrate = 2 / 100\ncommission = sales * rate\nprint(f\"{commission:.2f}\")\n```\nThis prints: 1118.14\n\nAna earns $1,118.14." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1118.14", "printed": "1118.14", "notation": null}
nlprog_det-setting-0066327
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Pytho...
nlprog_det
setting
original
null
deterministic
[]
[]
252
{"gold": "83.00", "printed": "83.00", "notation": null}
nlprog_det-setting-0066328
An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months? Python code: ```python balance = 4000 monthly_rate = 1.5 / 100 # 0.015 months = 6 interest = balance * monthly_rate * months # 360.0 print(f"{interest:.2f}") ``` Program output — 360.00 $360.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0066329
Pack A has 8 items for $3.00. Pack B has 15 items for $8.44. Which has the lower price per item? Written as code: pack_a = 3.0 / 8 # 0.375 pack_b = 8.44 / 15 # 0.5626666666666666 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) When run, it prints A. A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0066330
<|start|><|user|> A $120 dinner bill gets a 20% tip, and 4 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 120 tip_rate = 20 / 100 # 0.2 people = 4 each = bill * (1 + tip_rate) / people # 36.0 print(f"{each:.2f}") ``` That prints 36.00. The share is $36.00 each.<|eot...
chat
[ { "role": "user", "content": "A $120 dinner bill gets a 20% tip, and 4 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 120\ntip_rate = 20 / 100 # 0.2\npeople = 4\neach = bill * (1 + tip_rate) / people # 36.0\nprint(f\"{each:....
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0066331
Elena drove 273 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement? Python, step by step: ```python miles = 273 rate = 0.58 reimbursement = miles * rate # 158.33999999999997 print(f"{reimbursement:.2f}") ``` Printed — 158.34 The reimbursement is $158.34.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "158.34", "printed": "158.34", "notation": null}
nlprog_det-setting-0066332
Wanjiru has 8 documents to file, and each filing costs $35. How much are the filing fees in total? Written as code: ```python fee = 35 filings = 8 total = fee * filings # 280 print(total) ``` Executing it gives 280. The total fee is $280.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "280", "printed": "280", "notation": null}
nlprog_det-setting-0066333
Buying 2 file boxes at $17 each, 6 chairs at $3 each, 2 keyboards at $24 each, someone hands over $150. What change comes back? One way, in code: ```python items = [(2, 17), (6, 3), (2, 24)] total = sum(q * p for q, p in items) # 100 paid = 150 change = paid - total # 50 print(change) ``` Running it prints 50, as ex...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0066334
A lease runs for 6 months at $1,640 per month. How much rent is paid over the whole term? Computing it: ```python monthly_rent = 1640 months = 6 total = monthly_rent * months # 9840 print(total) ``` Program output: 9840 In total, $9,840 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "9840", "printed": "9840", "notation": null}
nlprog_det-setting-0066335
<|start|><|user|> The rules require 1/3 of 47 members (round up) to be present. How many is that?<|eot|> <|assistant|> 16 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 1/3 of 47 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "16 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0066336
<|start|><|system|> Tool definitions: [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}, {"name": "sa...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
343
{"gold": "7.25", "printed": "7.25", "notation": null}
nlprog_det-setting-0066337
A service costs $9 a month or $96 a year. How much does the yearly plan save over 12 monthly payments? Computing it: ```python monthly = 9 yearly = 96 savings = monthly * 12 - yearly # 12 print(savings) ``` stdout: 12 $12 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0066338
Someone works 32 hours at $18.19 per hour. What are the earnings? Here is the program. ```python rate = 18.19 hours = 32 earnings = rate * hours # 582.08 print(f"{earnings:.2f}") ``` Execution result: 582.08 The pay is $582.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "582.08", "printed": "582.08", "notation": null}
nlprog_det-setting-0066339
<|start|><|user|> A $24,000 grant pays $2,000 up front and the rest in 3 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 24000 up_front = 2000 installments = 3 each = (grant - up_front) / installments # 7333.333333333333 print(f"{each:.2f}") ``` Result: 7333.33 Each installme...
chat
[ { "role": "user", "content": "A $24,000 grant pays $2,000 up front and the rest in 3 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 24000\nup_front = 2000\ninstallments = 3\neach = (grant - up_front) / installments # 7333.33333333333...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "7333.33", "printed": "7333.33", "notation": null}
nlprog_det-setting-0066340
Straight-line depreciation: cost $24,000, salvage $2,000, 8 years. How much per year? In code: ```python cost = 24000 salvage = 2000 years = 8 per_year = (cost - salvage) / years # 2750.0 print(f"{per_year:.2f}") ``` # result: 2750.00 $2,750.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "2750.00", "printed": "2750.00", "notation": null}
nlprog_det-setting-0066341
Express 235 hours in days and hours. 235 hours is 9 days and 19 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
22
{"gold": "9 days and 19 hours", "printed": "9 days and 19 hours", "notation": null}
nlprog_det-setting-0066342
<|start|><|user|> What is the total rent on a 24-month lease at $1,200 a month?<|eot|> <|assistant|> ```python monthly_rent = 1200 months = 24 total = monthly_rent * months # 28800 print(total) ``` Run result = 28800 The rent over the term is $28,800.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 24-month lease at $1,200 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 1200\nmonths = 24\ntotal = monthly_rent * months # 28800\nprint(total)\n```\nRun result = 28800\n\nThe rent over the term is $28,800." }...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "28800", "printed": "28800", "notation": null}
nlprog_det-setting-0066343
A training session lasted 4 hours and 47 minutes. How many minutes is that? Python does the arithmetic: ```python hours = 4 minutes = 47 total_minutes = hours * 60 + minutes # 287 print(total_minutes) ``` Program output: 287 The training session lasted 287 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "287", "printed": "287", "notation": null}
nlprog_det-setting-0066344
<|start|><|user|> Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours?<|eot|> <|assistant|> The weekly pay is $784.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours?" }, { "role": "assistant", "content": "The weekly pay is $784.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "784.00", "printed": "784.00", "notation": null}
nlprog_det-setting-0066345
A pack of 20 scissors sells for $980. What does each cost? The computation: ```python total = 980 count = 20 per_item = total // count # 49 print(per_item) ``` Out = 49 The unit price is $49.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "49", "printed": "49", "notation": null}
nlprog_det-setting-0066346
A clerk's office charges $50 for each filing. Wen submits 13 filings. What is the total fee? Computation in Python: ```python fee = 50 filings = 13 total = fee * filings # 650 print(total) ``` (Run result: 650) The filings cost $650 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "650", "printed": "650", "notation": null}
nlprog_det-setting-0066347
4 boxes hold 8 binders each. After 15 are handed out, how many are left? As a program: ```python boxes = 4 per_box = 8 given_away = 15 left = boxes * per_box - given_away print(left) ``` The program prints: 17 That leaves 17 binders.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0066348
Rent of $1,800 goes up 5%. What is the new rent? As a program: ```python rent = 1800 increase = 5 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` The run gives 1890.00, as expected. The new rent is $1,890.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1890.00", "printed": "1890.00", "notation": null}
nlprog_det-setting-0066349
How many days are there from April 8, 2026 to October 2, 2026? Python: ```python from datetime import date first = date(2026, 4, 8) # datetime.date(2026, 4, 8) second = date(2026, 10, 2) # datetime.date(2026, 10, 2) print((second - first).days) ``` Running it prints 177. It is 177 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "177", "printed": "177", "notation": null}
nlprog_det-setting-0066350
<|start|><|user|> A claim accrued on January 23, 2016. The limitations period is 5 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2016, 1, 23) # datetime.date(2016, 1, 23) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, ...
chat
[ { "role": "user", "content": "A claim accrued on January 23, 2016. The limitations period is 5 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2016, 1, 23) # datetime.date(2016, 1, 23)\nyears = 5\nexpires = accrued....
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2021-01-23", "printed": "2021-01-23", "notation": null}
nlprog_det-setting-0066351
Equipment costs $45,000, has a salvage value of $0, and a useful life of 8 years. What is the straight-line depreciation per year? ```python cost = 45000 salvage = 0 years = 8 per_year = (cost - salvage) / years # 5625.0 print(f"{per_year:.2f}") ``` stdout = 5625.00 Depreciation is $5,625.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "5625.00", "printed": "5625.00", "notation": null}
nlprog_det-setting-0066352
<|start|><|user|> A settlement of $15,000 is split equally among 6 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 15000 parties = 6 share = settlement // parties # 2500 print(share) ``` Run result — 2500 Each share is $2,500.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $15,000 is split equally among 6 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 15000\nparties = 6\nshare = settlement // parties # 2500\nprint(share)\n```\nRun result — 2500\n\nEach share i...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0066353
<|start|><|system|> Functions: [{"name": "calculator", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> From a $2,500 retainer, 12 hours at $15...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"calculator\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}]"...
nlprog_det
setting
original
null
deterministic
[]
[]
211
{"gold": "700", "printed": "700", "notation": null}
nlprog_det-setting-0066354
<|start|><|user|> Each storage box holds 12 files. How many boxes are needed for 134 files?<|eot|> <|assistant|> ```python import math files = 134 per_box = 12 boxes = math.ceil(files / per_box) # 12 print(boxes) ``` Execution prints: 12 It takes 12 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 12 files. How many boxes are needed for 134 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 134\nper_box = 12\nboxes = math.ceil(files / per_box) # 12\nprint(boxes)\n```\nExecution prints: 12\n\nIt takes 12 boxes...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0066355
<|start|><|user|> With $20,000 in costs and $20,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 20500 costs = 20000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 2.4390243902439024 print(round(margin, 1)) ``` Interpreter output: 2.4 ...
chat
[ { "role": "user", "content": "With $20,000 in costs and $20,500 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 20500\ncosts = 20000\nprofit = revenue - costs # 500\nmargin = profit / revenue * 100 # 2.43902439024...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2.4", "printed": "2.4", "notation": null}
nlprog_det-setting-0066356
<|start|><|user|> A library charges $0.20 per book per day late. What is the fine for 2 books that are 6 days late?<|eot|> <|assistant|> ```python per_day = 0.2 days_late = 6 books = 2 fine = per_day * days_late * books # 2.4000000000000004 print(f"{fine:.2f}") ``` The program prints: 2.40 $2.40 is owed.<|eot|> <|end...
chat
[ { "role": "user", "content": "A library charges $0.20 per book per day late. What is the fine for 2 books that are 6 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.2\ndays_late = 6\nbooks = 2\nfine = per_day * days_late * books # 2.4000000000000004\nprint(f\"{fine:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "2.40", "printed": "2.40", "notation": null}
nlprog_det-setting-0066357
<|start|><|user|> A penalty of $250 a day accrues, capped at $2,500. What is owed after 34 days?<|eot|> <|assistant|> ```python per_day = 250 days = 34 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` Program output — 2500 The fine is $2,500.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $250 a day accrues, capped at $2,500. What is owed after 34 days?" }, { "role": "assistant", "content": "```python\nper_day = 250\ndays = 34\ncap = 2500\nfine = min(per_day * days, cap) # 2500\nprint(fine)\n```\nProgram output — 2500\n\nThe fine is $2,...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0066358
<|start|><|user|> A 20 lb package ships at $12 base plus $1.50/lb. What is the charge?<|eot|> <|assistant|> base = 12 per_pound = 1.5 weight = 20 cost = base + per_pound * weight # 42.0 print(f"{cost:.2f}") Shell output: 42.00 The charge is $42.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 20 lb package ships at $12 base plus $1.50/lb. What is the charge?" }, { "role": "assistant", "content": " base = 12\n per_pound = 1.5\n weight = 20\n cost = base + per_pound * weight # 42.0\n print(f\"{cost:.2f}\")\nShell output: 42.00\n\nThe char...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "42.00", "printed": "42.00", "notation": null}
nlprog_det-setting-0066359
3 books come back 26 days late, at $0.15 a day each. What is the fine? Python: ```python per_day = 0.15 days_late = 26 books = 3 fine = per_day * days_late * books # 11.7 print(f"{fine:.2f}") ``` (Program output: 11.70) The fine is $11.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "11.70", "printed": "11.70", "notation": null}
nlprog_det-setting-0066360
<|start|><|system|> Functions: [{"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": "sandbox_python", "description": "Use for arith...
chat
[ { "role": "system", "content": "Functions:\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\", \"section\"]}...
nlprog_det
setting
original
null
deterministic
[]
[]
327
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0066361
<|start|><|user|> A claim accrued on September 1, 2018. The limitations period is 6 years. On what date does it expire?<|eot|> <|assistant|> It runs out on September 1, 2024.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A claim accrued on September 1, 2018. The limitations period is 6 years. On what date does it expire?" }, { "role": "assistant", "content": "It runs out on September 1, 2024." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "2024-09-01", "printed": "2024-09-01", "notation": null}
nlprog_det-setting-0066362
Convert 4 h 50 min (the length of a training session) to minutes. Written as code: ```python hours = 4 minutes = 50 total_minutes = hours * 60 + minutes # 290 print(total_minutes) ``` Python prints 290. The training session lasted 290 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "290", "printed": "290", "notation": null}
nlprog_det-setting-0066363
<|start|><|user|> An attorney bills 6.5 hours at $350 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 6.5 rate = 350 bill = hours * rate # 2275.0 print(f"{bill:.2f}") ``` Printed — 2275.00 That comes to $2,275.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 6.5 hours at $350 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 6.5\nrate = 350\nbill = hours * rate # 2275.0\nprint(f\"{bill:.2f}\")\n```\nPrinted — 2275.00\n\nThat comes to $2,275.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2275.00", "printed": "2275.00", "notation": null}
nlprog_det-setting-0066364
<|start|><|system|> Keep explanations short.<|eot|> <|user|> Under a 35% contingency agreement, what fee is owed on a $40,000 award?<|eot|> <|assistant|> ```python recovery = 40000 rate = 35 / 100 # 0.35 fee = recovery * rate # 14000.0 print(f"{fee:.2f}") ``` (Printed result: 14000.00) The fee is $14,000.00.<|eot|> ...
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "Under a 35% contingency agreement, what fee is owed on a $40,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 40000\nrate = 35 / 100 # 0.35\nfee = recovery * rate # 140...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "14000.00", "printed": "14000.00", "notation": null}
nlprog_det-setting-0066365
<|start|><|user|> One can of paint covers 400 square feet. How many cans are needed for 280 square feet of wall?<|eot|> <|assistant|> ```python import math area = 280 coverage = 400 cans = math.ceil(area / coverage) # 1 print(cans) ``` Running this gives: 1 1 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 400 square feet. How many cans are needed for 280 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 280\ncoverage = 400\ncans = math.ceil(area / coverage) # 1\nprint(cans)\n```\nRunning this gives: 1\...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0066366
A car gets 40 miles per gallon. Gas is $3.89 a gallon. What does fuel cost for a 300-mile trip? Fuel costs $29.18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "29.18", "printed": "29.18", "notation": null}
nlprog_det-setting-0066367
Equipment costs $45,000, has a salvage value of $6,000, and a useful life of 4 years. What is the straight-line depreciation per year? We write it as a program: cost = 45000 salvage = 6000 years = 4 per_year = (cost - salvage) / years # 9750.0 print(f"{per_year:.2f}") stdout: 9750.00 Depreciation...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "9750.00", "printed": "9750.00", "notation": null}
nlprog_det-setting-0066368
A penalty of $50 a day accrues, capped at $2,500. What is owed after 27 days? Let the code do the arithmetic: per_day = 50 days = 27 cap = 2500 fine = min(per_day * days, cap) # 1350 print(fine) The program prints 1350, as expected. The fine is $1,350.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1350", "printed": "1350", "notation": null}
nlprog_det-setting-0066369
11 boxes hold 8 tape rolls each. After 15 are handed out, how many are left? The program: ```python boxes = 11 per_box = 8 given_away = 15 left = boxes * per_box - given_away # 73 print(left) ``` Running it prints 73, as expected. That leaves 73 tape rolls.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0066370
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> A $180 dinner bill gets a 15% tip, and 4 people share the cost equally. What is each person's share?<|eot|> <|assistant|> Each person pays $51.75.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "A $180 dinner bill gets a 15% tip, and 4 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "Each person pays $51.75." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
58
{"gold": "51.75", "printed": "51.75", "notation": null}
nlprog_det-setting-0066371
At 1% a month (simple), what interest builds on $2,500 over 4 months? One way, in code: ```python balance = 2500 monthly_rate = 1 / 100 # 0.01 months = 4 interest = balance * monthly_rate * months # 100.0 print(f"{interest:.2f}") ``` The code prints: 100.00 $100.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "100.00", "printed": "100.00", "notation": null}
nlprog_det-setting-0066372
To read 204 pages in 12 days, how many pages per day are needed? Computation in Python: ```python pages = 204 days = 12 per_day = pages // days # 17 print(per_day) ``` Printed: 17 17 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0066373
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "eval_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|>...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"eval_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source ...
nlprog_det
setting
original
null
deterministic
[]
[]
215
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0066374
<|start|><|system|> Available functions (JSON Schema): {"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Monthly: $19. Annua...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"code_runner\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0066375
If a 2-year limitations period starts on February 17, 2012, when does it end? Python version: ```python from datetime import date accrued = date(2012, 2, 17) # datetime.date(2012, 2, 17) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2014, 2, 17) print(expires.isoformat()) ``` It outp...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2014-02-17", "printed": "2014-02-17", "notation": null}
nlprog_det-setting-0066376
<|start|><|system|> Be concise.<|eot|> <|user|> A shift starts at 9:20 AM and lasts 105 minutes. When does it end?<|eot|> <|assistant|> It ends at 11:05 AM.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "A shift starts at 9:20 AM and lasts 105 minutes. When does it end?" }, { "role": "assistant", "content": "It ends at 11:05 AM." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "11:05 AM", "printed": "11:05 AM", "notation": null}
nlprog_det-setting-0066377
<|start|><|user|> A hearing is set for February 7, 2008. What day of the week is that?<|eot|> <|assistant|> from datetime import date hearing = date(2008, 2, 7) # datetime.date(2008, 2, 7) print(hearing.strftime("%A")) On running, it outputs: Thursday It is a Thursday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing is set for February 7, 2008. What day of the week is that?" }, { "role": "assistant", "content": " from datetime import date\n hearing = date(2008, 2, 7) # datetime.date(2008, 2, 7)\n print(hearing.strftime(\"%A\"))\nOn running, it outputs: Thurs...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0066378
<|start|><|user|> Printing costs 8 cents a page. What does it cost to print 107 copies of a 52-page handout?<|eot|> <|assistant|> ```python pages = 52 copies = 107 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 445.12 print(f"{cost:.2f}") ``` stdout — 445.12 The job costs $445.12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Printing costs 8 cents a page. What does it cost to print 107 copies of a 52-page handout?" }, { "role": "assistant", "content": "```python\npages = 52\ncopies = 107\ncost_per_page = 0.08\ncost = pages * copies * cost_per_page # 445.12\nprint(f\"{cost:.2f}\")\n```\...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "445.12", "printed": "445.12", "notation": null}
nlprog_det-setting-0066379
Pack A has 6 items for $7.77. Pack B has 20 items for $28.10. Which has the lower price per item? Computing it: pack_a = 7.77 / 6 # 1.295 pack_b = 28.1 / 20 # 1.405 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) The script prints A, as expected. Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0066380
Goods bought on May 28, 2019 carry a 12-month warranty. When does it expire? The program: ```python from datetime import date start = date(2019, 5, 28) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Program out...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2020-05-28", "printed": "2020-05-28", "notation": null}
nlprog_det-setting-0066381
What commission does Ulla make on $64,218 in sales at 2%? Let the code do the arithmetic: ```python sales = 64218 rate = 2 / 100 # 0.02 commission = sales * rate # 1284.3600000000001 print(f"{commission:.2f}") ``` Running this gives 1284.36. The commission is $1,284.36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1284.36", "printed": "1284.36", "notation": null}
nlprog_det-setting-0066382
How much is a $59 daily meal allowance over 6 days? A few lines of Python do it: ```python days = 6 meal_rate = 59 total = days * meal_rate print(total) ``` This prints 354. The allowance is $354.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "354", "printed": "354", "notation": null}
nlprog_det-setting-0066383
A lawyer's fee is 35% of a $25,000 recovery. How large is the fee? Coded up: recovery = 25000 rate = 35 / 100 # 0.35 fee = recovery * rate # 8750.0 print(f"{fee:.2f}") Execution result — 8750.00 The lawyer's fee comes to $8,750.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "8750.00", "printed": "8750.00", "notation": null}
nlprog_det-setting-0066384
A 13 × 7 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Python: ```python import math length = 13 width = 7 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 23 print(tiles) ``` The program prints 23, as expected. 23 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0066385
How many weekdays (Monday to Friday) fall after June 11, 2019 up to and including July 7, 2019? We write it as a program: ```python from datetime import date, timedelta start = date(2019, 6, 11) end = date(2019, 7, 7) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0066386
<|start|><|user|> After a 25% fee is taken from a $96,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> award = 96000 fee = award * 25 / 100 # 24000.0 remaining = award - fee # 72000.0 per_client = remaining / 4 # 18000.0 print(f"{per_cli...
chat
[ { "role": "user", "content": "After a 25% fee is taken from a $96,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": " award = 96000\n fee = award * 25 / 100 # 24000.0\n remaining = award - fee # 72000.0\n p...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0066387
A settlement of $2,640 is split equally among 5 parties. How much does each party receive? Script: ```python settlement = 2640 parties = 5 share = settlement // parties # 528 print(share) ``` Output — 528 Each party receives $528.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "528", "printed": "528", "notation": null}
nlprog_det-setting-0066388
What average speed covers 286 miles in 2 hours? We write it as a program: ```python distance = 286 hours = 2 speed = distance / hours # 143.0 print(round(speed)) ``` Output: 143 The average speed is 143 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "143", "printed": "143", "notation": null}
nlprog_det-setting-0066389
<|start|><|user|> After an initial $3,000, the remainder of a $24,000 grant is paid in 12 equal parts. What is each part?<|eot|> <|assistant|> $1,750.00 per installment.<|eot|> <|end|>
chat
[ { "role": "user", "content": "After an initial $3,000, the remainder of a $24,000 grant is paid in 12 equal parts. What is each part?" }, { "role": "assistant", "content": "$1,750.00 per installment." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "1750.00", "printed": "1750.00", "notation": null}
nlprog_det-setting-0066390
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Convert 35 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = 35 fahrenheit = celsius * 9 / 5 + 32 # 95.0 print(round(fahrenheit)) ``` This prints 95. It equals 95 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Convert 35 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = 35\nfahrenheit = celsius * 9 / 5 + 32 # 95.0\nprint(round(fahrenheit))\n```\nThis print...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0066391
Divide 115 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain? Program: ```python total = 115 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The program prints 38 each, 1 left over, as expected. The answe...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "38 each, 1 left over", "printed": "38 each, 1 left over", "notation": null}