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-0050864
Buying 6 folders at $17 each, 4 ink cartridges at $29 each, 6 lanyards at $25 each, 2 toner kits at $11 each, someone hands over $400. What change comes back? Programmatically: items = [(6, 17), (4, 29), (6, 25), (2, 11)] total = sum(q * p for q, p in items) # 390 paid = 400 change = paid - total # 1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0050865
With $20,000 in costs and $20,500 in revenue, what percent of revenue is profit? Round to one decimal. ```python revenue = 20500 costs = 20000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 2.4390243902439024 print(round(margin, 1)) ``` The program outputs 2.4. Profit is 2.4% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "2.4", "printed": "2.4", "notation": null}
nlprog_det-setting-0050866
<|start|><|user|> Scale 200 g of oats from 2 servings to 8 servings.<|eot|> <|assistant|> grams = 200 serves = 2 needed_for = 8 scaled = grams * needed_for // serves # 800 print(scaled) Execution result: 800 800 grams of oats are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 200 g of oats from 2 servings to 8 servings." }, { "role": "assistant", "content": " grams = 200\n serves = 2\n needed_for = 8\n scaled = grams * needed_for // serves # 800\n print(scaled)\nExecution result: 800\n\n800 grams of oats are needed....
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0050867
<|start|><|user|> A film lasted 5 hours and 17 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 5 minutes = 17 total_minutes = hours * 60 + minutes # 317 print(total_minutes) ``` Output: 317 The film lasted 317 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A film lasted 5 hours and 17 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 5\nminutes = 17\ntotal_minutes = hours * 60 + minutes # 317\nprint(total_minutes)\n```\nOutput:\n317\n\nThe film lasted 317 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "317", "printed": "317", "notation": null}
nlprog_det-setting-0050868
From a $10,000 retainer, 4 hours at $250/hour have been drawn. What remains? $9,000 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "9000", "printed": "9000", "notation": null}
nlprog_det-setting-0050869
<|start|><|user|> A pack of 10 toner kits sells for $500. What does each cost?<|eot|> <|assistant|> ```python total = 500 count = 10 per_item = total // count # 50 print(per_item) ``` # console output: 50 The unit price is $50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 10 toner kits sells for $500. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 500\ncount = 10\nper_item = total // count # 50\nprint(per_item)\n```\n# console output: 50\n\nThe unit price is $50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0050870
Starting from $25,000, the team spends $2,758, $2,924, $1,771. What remains? Script: ```python budget = 25000 expenses = [2758, 2924, 1771] left = budget - sum(expenses) # 17547 print(left) ``` This prints: 17547 The remaining budget is $17,547.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "17547", "printed": "17547", "notation": null}
nlprog_det-setting-0050871
A party has 21 days to respond to a motion served on March 13, 2022, with 3 days added because service was by mail. When is the response due? A Python solution: from datetime import date, timedelta served = date(2022, 3, 13) # datetime.date(2022, 3, 13) response_days = 21 mail_days = 3 due = serve...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "2022-04-06", "printed": "2022-04-06", "notation": null}
nlprog_det-setting-0050872
<|start|><|user|> Marek and Ada share $1,672 in the ratio 1:3. How much does Marek get?<|eot|> <|assistant|> ```python total = 1672 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 418 print(share_a) ``` (Printed: 418) Marek's share is $418.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Marek and Ada share $1,672 in the ratio 1:3. How much does Marek get?" }, { "role": "assistant", "content": "```python\ntotal = 1672\nparts_a = 1\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 418\nprint(share_a)\n```\n(Printed: 418)\n\nMarek's sh...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "418", "printed": "418", "notation": null}
nlprog_det-setting-0050873
<|start|><|user|> Straight-line depreciation: cost $30,000, salvage $3,000, 6 years. How much per year?<|eot|> <|assistant|> $4,500.00 a year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $30,000, salvage $3,000, 6 years. How much per year?" }, { "role": "assistant", "content": "$4,500.00 a year." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0050874
Convert 2 h 9 min (the length of a workshop) to minutes. We can compute it in Python. ```python hours = 2 minutes = 9 total_minutes = hours * 60 + minutes # 129 print(total_minutes) ``` What it prints — 129 That is 129 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "129", "printed": "129", "notation": null}
nlprog_det-setting-0050875
Fixed costs are $2,500. Each unit sells for $20 and costs $14 to make. How many units must be sold to break even? In code: ```python import math fixed = 2500 price = 20 variable = 14 units = math.ceil(fixed / (price - variable)) # 417 print(units) ``` Out: 417 Break-even is 417 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "417", "printed": "417", "notation": null}
nlprog_det-setting-0050876
Papers were served by mail on May 28, 2026. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date? Computation in Python: ```python from datetime import date, timedelta served = date(2026, 5, 28) # datetime.date(2026, 5, 28) response_days = 30 mail_days = 3 due = served + timede...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
185
{"gold": "2026-06-30", "printed": "2026-06-30", "notation": null}
nlprog_det-setting-0050878
Convert 90.5 km to meters. The Python version: ```python km = 90.5 meters = km * 1000 # 90500.0 print(round(meters)) ``` Run result = 90500 90,500 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "90500", "printed": "90500", "notation": null}
nlprog_det-setting-0050879
<|start|><|user|> Papers were served by mail on December 19, 2028. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2028, 12, 19) # datetime.date(2028, 12, 19) response_days = 14 mail_days = 3...
chat
[ { "role": "user", "content": "Papers were served by mail on December 19, 2028. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2028, 12, 19) # date...
nlprog_det
setting
original
null
deterministic
[]
[]
183
{"gold": "2029-01-05", "printed": "2029-01-05", "notation": null}
nlprog_det-setting-0050880
<|start|><|user|> A car travels 130 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 130 hours = 2 speed = distance / hours # 65.0 print(round(speed)) ``` stdout: 65 It averages 65 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 130 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 130\nhours = 2\nspeed = distance / hours # 65.0\nprint(round(speed))\n```\nstdout:\n65\n\nIt averages 65 miles per hour." ...
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0050881
Split $5,579 between Dara and Grace in the ratio 2 to 5. What is Dara's share? Dara gets $1,594.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "1594", "printed": "1594", "notation": null}
nlprog_det-setting-0050882
Split $2,595 between Arjun and Cyrus in the ratio 2 to 3. What is Arjun's share? Let the code do the arithmetic: ```python total = 2595 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 1038 print(share_a) ``` Python prints 1038. Arjun's share is $1,038.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "1038", "printed": "1038", "notation": null}
nlprog_det-setting-0050883
<|start|><|system|> You have access to these functions: {"name": "math_engine", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "lookup_statute"...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"math_engine\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
326
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0050884
What does $1,000 grow to in 3 years at 2% annual compounding? In Python: ```python principal = 1000 rate = 2 / 100 # 0.02 years = 3 value = principal * (1 + rate) ** years # 1061.208 print(f"{value:.2f}") ``` (Output: 1061.21) It is worth $1,061.21.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1061.21", "printed": "1061.21", "notation": null}
nlprog_det-setting-0050886
A $1,200 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? The monthly payment is $38.33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "38.33", "printed": "38.33", "notation": null}
nlprog_det-setting-0050887
A settlement of $18,000 is split equally among 5 parties. How much does each party receive? The program: ```python settlement = 18000 parties = 5 share = settlement // parties # 3600 print(share) ``` # program output: 3600 Each party receives $3,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "3600", "printed": "3600", "notation": null}
nlprog_det-setting-0050888
A $30,000 grant pays $6,000 up front and the rest in 3 equal installments. How large is each installment? As a program: grant = 30000 up_front = 6000 installments = 3 each = (grant - up_front) / installments # 8000.0 print(f"{each:.2f}") That prints 8000.00. $8,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "8000.00", "printed": "8000.00", "notation": null}
nlprog_det-setting-0050889
On which weekday does July 28, 1991 fall? A short script: ```python from datetime import date hearing = date(1991, 7, 28) print(hearing.strftime("%A")) ``` Running it prints: Sunday It is a Sunday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0050891
<|start|><|user|> After an initial $3,000, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 60000 up_front = 3000 installments = 12 each = (grant - up_front) / installments # 4750.0 print(f"{each:.2f}") ``` Console output: 4750.00 $4,750.00 per inst...
chat
[ { "role": "user", "content": "After an initial $3,000, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 60000\nup_front = 3000\ninstallments = 12\neach = (grant - up_front) / installments # 4750.0\nprint(f\"...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "4750.00", "printed": "4750.00", "notation": null}
nlprog_det-setting-0050892
Mei's scores were 62, 58, 90, 67, 69 and 92. What is the average score? Written as code: ```python scores = [62, 58, 90, 67, 69, 92] average = sum(scores) // len(scores) # 73 print(average) ``` Execution result: 73 The mean is 73.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0050893
<|start|><|user|> At $0.65 per mile, what is the reimbursement for 363 miles?<|eot|> <|assistant|> ```python miles = 363 rate = 0.65 reimbursement = miles * rate # 235.95000000000002 print(f"{reimbursement:.2f}") ``` Execution prints 235.95. Omar is owed $235.95.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.65 per mile, what is the reimbursement for 363 miles?" }, { "role": "assistant", "content": "```python\nmiles = 363\nrate = 0.65\nreimbursement = miles * rate # 235.95000000000002\nprint(f\"{reimbursement:.2f}\")\n```\nExecution prints 235.95.\n\nOmar is owed...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "235.95", "printed": "235.95", "notation": null}
nlprog_det-setting-0050894
At an exchange rate of 0.92 USD per GBP, how many USD is 8,677 GBP? The program: ```python amount = 8677 rate = 0.92 converted = amount * rate # 7982.84 print(f"{converted:.2f}") ``` (Run result: 7982.84) That is 7,982.84 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "7982.84", "printed": "7982.84", "notation": null}
nlprog_det-setting-0050897
<|start|><|user|> Tomas was born on May 18, 1966. How old is Tomas on January 16, 2020?<|eot|> <|assistant|> ```python from datetime import date born = date(1966, 5, 18) # datetime.date(1966, 5, 18) on = date(2020, 1, 16) # datetime.date(2020, 1, 16) age = on.year - born.year - ((on.month, on.day) < (born.month, born...
chat
[ { "role": "user", "content": "Tomas was born on May 18, 1966. How old is Tomas on January 16, 2020?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1966, 5, 18) # datetime.date(1966, 5, 18)\non = date(2020, 1, 16) # datetime.date(2020, 1, 16)\nage = on....
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0050898
Divide 267 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain? The computation: ```python total = 267 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Python prints 44 each, 3 left over, as expected. The an...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "44 each, 3 left over", "printed": "44 each, 3 left over", "notation": null}
nlprog_det-setting-0050899
Printing costs 5 cents a page. What does it cost to print 140 copies of a 12-page handout? Here is a short program for it. ```python pages = 12 copies = 140 cost_per_page = 0.05 cost = pages * copies * cost_per_page print(f"{cost:.2f}") ``` The run gives 84.00. The job costs $84.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "84.00", "printed": "84.00", "notation": null}
nlprog_det-setting-0050900
Buying 5 headsets at $28 each, 5 hard drives at $10 each, 1 scissors at $11 each, 3 folders at $7 each, someone hands over $250. What change comes back? ```python items = [(5, 28), (5, 10), (1, 11), (3, 7)] total = sum(q * p for q, p in items) # 222 paid = 250 change = paid - total # 28 print(change) ``` It prints 2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0050901
A library charges $0.20 per book per day late. What is the fine for 3 books that are 16 days late? Here is the program. ```python per_day = 0.2 days_late = 16 books = 3 fine = per_day * days_late * books # 9.600000000000001 print(f"{fine:.2f}") ``` The run gives: 9.60 $9.60 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "9.60", "printed": "9.60", "notation": null}
nlprog_det-setting-0050902
A court charges $15 per request plus $0.25 per page after the first 10 pages. What does a 88-page copy cost? The copy costs $34.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "34.50", "printed": "34.50", "notation": null}
nlprog_det-setting-0050903
What does $2,000 grow to in 2 years at 4% annual compounding? principal = 2000 rate = 4 / 100 # 0.04 years = 2 value = principal * (1 + rate) ** years # 2163.2000000000003 print(f"{value:.2f}") The run gives 2163.20. It is worth $2,163.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2163.20", "printed": "2163.20", "notation": null}
nlprog_det-setting-0050904
After a 40% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? Program: ```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}") ``` # out: 18000.00 Each sh...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0050905
<|start|><|user|> A 595-page report must be reviewed in 17 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 595 days = 17 per_day = pages // days # 35 print(per_day) ``` On running, it outputs 35. That is 35 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 595-page report must be reviewed in 17 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 595\ndays = 17\nper_day = pages // days # 35\nprint(per_day)\n```\nOn running, it outputs 35.\n\nThat is 35 pages per day....
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0050906
<|start|><|user|> A $2,400 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 2400 annual_rate = 10 / 100 months = 12 interest = principal * annual_rate * months / 12 payment = (principal +...
chat
[ { "role": "user", "content": "A $2,400 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "```python\nprincipal = 2400\nannual_rate = 10 / 100\nmonths = 12\ninterest = pr...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "220.00", "printed": "220.00", "notation": null}
nlprog_det-setting-0050907
<|start|><|user|> Helga earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 52-hour week?<|eot|> <|assistant|> rate = 18.5 hours = 52 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 333.0 pay = regular + overtime # 1073.0 print(f"{pay:.2f}") Wh...
chat
[ { "role": "user", "content": "Helga earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 52-hour week?" }, { "role": "assistant", "content": " rate = 18.5\n hours = 52\n regular = 40 * rate # 740.0\n overtime = (hours - 40) * rate * 1.5 # 333.0\n pay...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "1073.00", "printed": "1073.00", "notation": null}
nlprog_det-setting-0050908
A settlement of $525 is split equally among 5 parties. How much does each party receive? Program: ```python settlement = 525 parties = 5 share = settlement // parties # 105 print(share) ``` Out: 105 Each party receives $105.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "105", "printed": "105", "notation": null}
nlprog_det-setting-0050909
A 45-day notice period begins on September 15, 2027. On what date does it end? In code: ```python from datetime import date, timedelta start = date(2027, 9, 15) # datetime.date(2027, 9, 15) end = start + timedelta(days=45) # datetime.date(2027, 10, 30) print(end.isoformat()) ``` The program prints: 2027-10-30 It en...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2027-10-30", "printed": "2027-10-30", "notation": null}
nlprog_det-setting-0050910
<|start|><|user|> The paralegal logged 6.5 hours at a rate of $410. How much is billed?<|eot|> <|assistant|> ```python hours = 6.5 rate = 410 bill = hours * rate # 2665.0 print(f"{bill:.2f}") ``` Printed: 2665.00 That comes to $2,665.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The paralegal logged 6.5 hours at a rate of $410. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 6.5\nrate = 410\nbill = hours * rate # 2665.0\nprint(f\"{bill:.2f}\")\n```\nPrinted: 2665.00\n\nThat comes to $2,665.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "2665.00", "printed": "2665.00", "notation": null}
nlprog_det-setting-0050911
<|start|><|user|> 39 of 40 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 39 total = 40 percent = present / total * 100 # 97.5 print(round(percent, 1)) ``` (Console output: 97.5) 97.5% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "39 of 40 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 39\ntotal = 40\npercent = present / total * 100 # 97.5\nprint(round(percent, 1))\n```\n(Console output: 97.5)\n\n97.5% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "97.5", "printed": "97.5", "notation": null}
nlprog_det-setting-0050912
<|start|><|user|> A court charges $10 per request plus $0.25 per page after the first 0 pages. What does a 116-page copy cost?<|eot|> <|assistant|> The total is $39.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A court charges $10 per request plus $0.25 per page after the first 0 pages. What does a 116-page copy cost?" }, { "role": "assistant", "content": "The total is $39.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "39.00", "printed": "39.00", "notation": null}
nlprog_det-setting-0050913
A shift runs from 9:44 AM to 4:04 PM. How long is it in minutes? Set it up in Python: ```python start = 9 * 60 + 44 # 584 end = 16 * 60 + 4 # 964 print(end - start) ``` Out: 380 It is 380 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "380", "printed": "380", "notation": null}
nlprog_det-setting-0050914
<|start|><|user|> A storeroom has 949 ink cartridges. The office uses 14 a day. How many are left after 15 days?<|eot|> <|assistant|> ```python stock = 949 per_day = 14 days = 15 left = stock - per_day * days # 739 print(left) ``` The code prints: 739 739 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 949 ink cartridges. The office uses 14 a day. How many are left after 15 days?" }, { "role": "assistant", "content": "```python\nstock = 949\nper_day = 14\ndays = 15\nleft = stock - per_day * days # 739\nprint(left)\n```\nThe code prints: 739\n\n739...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "739", "printed": "739", "notation": null}
nlprog_det-setting-0050915
A $3,600 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? Written as code: ```python principal = 3600 annual_rate = 5 / 100 # 0.05 months = 36 interest = principal * annual_rate * months / 12 # 540.0 payment = (principal + inter...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "115.00", "printed": "115.00", "notation": null}
nlprog_det-setting-0050916
A 14 lb package ships at $12 base plus $1.50/lb. What is the charge? Python: base = 12 per_pound = 1.5 weight = 14 cost = base + per_pound * weight # 33.0 print(f"{cost:.2f}") Executing it gives: 33.00 The charge is $33.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "33.00", "printed": "33.00", "notation": null}
nlprog_det-setting-0050917
What is a 25% tip on a $215.92 bill? In Python: bill = 215.92 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 53.98 print(f"{tip:.2f}") Run output: 53.98 The tip is $53.98.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "53.98", "printed": "53.98", "notation": null}
nlprog_det-setting-0050918
<|start|><|user|> How many meters are in 34.9 kilometers?<|eot|> <|assistant|> ```python km = 34.9 meters = km * 1000 # 34900.0 print(round(meters)) ``` Shell output: 34900 34,900 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 34.9 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 34.9\nmeters = km * 1000 # 34900.0\nprint(round(meters))\n```\nShell output: 34900\n\n34,900 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "34900", "printed": "34900", "notation": null}
nlprog_det-setting-0050919
<|start|><|user|> Someone works 12 hours at $22.94 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 22.94 hours = 12 earnings = rate * hours # 275.28000000000003 print(f"{earnings:.2f}") ``` Executed, it shows: 275.28 That earns $275.28.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 12 hours at $22.94 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 22.94\nhours = 12\nearnings = rate * hours # 275.28000000000003\nprint(f\"{earnings:.2f}\")\n```\nExecuted, it shows: 275.28\n\nThat earns $27...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "275.28", "printed": "275.28", "notation": null}
nlprog_det-setting-0050920
<|start|><|user|> Revenue is $22,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 22000 costs = 20000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 9.090909090909092 print(round(margin, 1)) ``` Running this gives: ...
chat
[ { "role": "user", "content": "Revenue is $22,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 22000\ncosts = 20000\nprofit = revenue - costs # 2000\nmargin = profit / revenue * 100 # 9.090909...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "9.1", "printed": "9.1", "notation": null}
nlprog_det-setting-0050921
What percentage of $4,000 is $3,000? Python makes this quick: ```python budget = 4000 spent = 3000 percent = spent / budget * 100 # 75.0 print(round(percent, 1)) ``` What it prints: 75.0 75.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "75.0", "printed": "75.0", "notation": null}
nlprog_det-setting-0050922
What average speed covers 80 miles in 2.5 hours? A few lines of Python do it: ```python distance = 80 hours = 2.5 speed = distance / hours # 32.0 print(round(speed)) ``` Running this gives: 32 The average speed is 32 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0050924
<|start|><|system|> Tool definitions: [{"name": "math_engine", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Straight-line depreciation: cost $18,000...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"math_engine\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}]" ...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "3200.00", "printed": "3200.00", "notation": null}
nlprog_det-setting-0050925
<|start|><|user|> What is the total rent on a 18-month lease at $2,100 a month?<|eot|> <|assistant|> In total, $37,800 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 18-month lease at $2,100 a month?" }, { "role": "assistant", "content": "In total, $37,800 is paid." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "37800", "printed": "37800", "notation": null}
nlprog_det-setting-0050926
A party has 28 days to respond to a motion served on December 18, 2018, with 3 days added because service was by mail. When is the response due? Programmatically: from datetime import date, timedelta served = date(2018, 12, 18) response_days = 28 mail_days = 3 due = served + timedelta(days=response...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "2019-01-18", "printed": "2019-01-18", "notation": null}
nlprog_det-setting-0050927
<|start|><|system|> You help with homework problems.<|eot|> <|user|> Pack A has 8 items for $8.31. Pack B has 30 items for $9.78. Which has the lower price per item?<|eot|> <|assistant|> ```python pack_a = 8.31 / 8 # 1.03875 pack_b = 9.78 / 30 # 0.32599999999999996 cheaper = "A" if pack_a < pack_b else "B" # 'B' pri...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "Pack A has 8 items for $8.31. Pack B has 30 items for $9.78. Which has the lower price per item?" }, { "role": "assistant", "content": "```python\npack_a = 8.31 / 8 # 1.03875\npack_b =...
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0050928
The statute was enacted in 2005. How many years had passed by 2021? 16 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
22
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0050929
<|start|><|user|> How much sales tax is charged on a $549.66 purchase at 9%?<|eot|> <|assistant|> ```python price = 549.66 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 49.46939999999999 print(f"{tax:.2f}") ``` The printout reads 49.47. $49.47 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $549.66 purchase at 9%?" }, { "role": "assistant", "content": "```python\nprice = 549.66\ntax_rate = 9 / 100 # 0.09\ntax = price * tax_rate # 49.46939999999999\nprint(f\"{tax:.2f}\")\n```\nThe printout reads 49.47.\n\n$49.47 in t...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "49.47", "printed": "49.47", "notation": null}
nlprog_det-setting-0050930
<|start|><|user|> Yusuf drove 338 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 338 rate = 0.67 reimbursement = miles * rate print(f"{reimbursement:.2f}") ``` (Program output: 226.46) The reimbursement is $226.46.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Yusuf drove 338 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 338\nrate = 0.67\nreimbursement = miles * rate\nprint(f\"{reimbursement:.2f}\")\n```\n(Program output: ...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "226.46", "printed": "226.46", "notation": null}
nlprog_det-setting-0050931
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "eval_pytho...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
347
{"gold": "1600.00", "printed": "1600.00", "notation": null}
nlprog_det-setting-0050932
<|start|><|user|> How long, in days, is it from May 21, 2022 until March 20, 2023?<|eot|> <|assistant|> ```python from datetime import date first = date(2022, 5, 21) # datetime.date(2022, 5, 21) second = date(2023, 3, 20) # datetime.date(2023, 3, 20) print((second - first).days) ``` Running it prints 303, as expected...
chat
[ { "role": "user", "content": "How long, in days, is it from May 21, 2022 until March 20, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2022, 5, 21) # datetime.date(2022, 5, 21)\nsecond = date(2023, 3, 20) # datetime.date(2023, 3, 20)\nprint((se...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "303", "printed": "303", "notation": null}
nlprog_det-setting-0050933
<|start|><|system|> Tools (call with JSON): [{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "lookup_statute", "description": "Look ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet...
nlprog_det
setting
original
null
deterministic
[]
[]
433
{"gold": "8500", "printed": "8500", "notation": null}
nlprog_det-setting-0050934
<|start|><|user|> Someone works 36 hours at $25.71 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 25.71 hours = 36 earnings = rate * hours # 925.5600000000001 print(f"{earnings:.2f}") ``` The run gives 925.56, as expected. The pay is $925.56.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 36 hours at $25.71 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 25.71\nhours = 36\nearnings = rate * hours # 925.5600000000001\nprint(f\"{earnings:.2f}\")\n```\nThe run gives 925.56, as expected.\n\nThe pay...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "925.56", "printed": "925.56", "notation": null}
nlprog_det-setting-0050935
<|start|><|system|> Tools (call with JSON): {"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "define_word", "descri...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
290
{"gold": "36.03", "printed": "36.03", "notation": null}
nlprog_det-setting-0050936
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> A measure needs at least 67% of 27 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 27 needed = math.ceil(voters * 67 / 100) # 19 print(needed) ``` The script prints: 19 19 votes are needed.<|eot|>...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "A measure needs at least 67% of 27 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 27\nneeded = math.ceil(voters...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0050937
<|start|><|user|> A storeroom has 294 lanyards. The office uses 13 a day. How many are left after 20 days?<|eot|> <|assistant|> ```python stock = 294 per_day = 13 days = 20 left = stock - per_day * days # 34 print(left) ``` Result — 34 34 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 294 lanyards. The office uses 13 a day. How many are left after 20 days?" }, { "role": "assistant", "content": "```python\nstock = 294\nper_day = 13\ndays = 20\nleft = stock - per_day * days # 34\nprint(left)\n```\nResult — 34\n\n34 remain." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0050939
Convert 59.8 km to meters. Let the code do the arithmetic: ```python km = 59.8 meters = km * 1000 # 59800.0 print(round(meters)) ``` # run result: 59800 That is 59,800 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "59800", "printed": "59800", "notation": null}
nlprog_det-setting-0050940
<|start|><|system|> Tool definitions: {"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> A library charges $...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
229
{"gold": "2.00", "printed": "2.00", "notation": null}
nlprog_det-setting-0050941
<|start|><|user|> Divide 196 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 196 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` That prints: 49 each, 0 left over ...
chat
[ { "role": "user", "content": "Divide 196 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 196\ngroups = 4\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "49 each, 0 left over", "printed": "49 each, 0 left over", "notation": null}
nlprog_det-setting-0050942
<|start|><|user|> A filing cabinet costs $60. It is 20% off. What is the sale price?<|eot|> <|assistant|> ```python price = 60 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 48.0 print(f"{sale_price:.2f}") ``` Executed, it shows: 48.00 The sale price is $48.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A filing cabinet costs $60. It is 20% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 60\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 48.0\nprint(f\"{sale_price:.2f}\")\n```\nExecuted, it shows: 48.00\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0050943
<|start|><|user|> If a 5-year limitations period starts on February 4, 2013, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2013, 2, 4) years = 5 expires = accrued.replace(year=accrued.year + years) print(expires.isoformat()) ``` Result = 2018-02-04 It runs out on February 4,...
chat
[ { "role": "user", "content": "If a 5-year limitations period starts on February 4, 2013, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2013, 2, 4)\nyears = 5\nexpires = accrued.replace(year=accrued.year + years)\nprint(expires.isofo...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "2018-02-04", "printed": "2018-02-04", "notation": null}
nlprog_det-setting-0050945
<|start|><|system|> Keep explanations short.<|eot|> <|user|> 5 claimants share a $960 settlement equally. What is each share?<|eot|> <|assistant|> settlement = 960 parties = 5 share = settlement // parties # 192 print(share) Result — 192 Each share is $192.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "5 claimants share a $960 settlement equally. What is each share?" }, { "role": "assistant", "content": " settlement = 960\n parties = 5\n share = settlement // parties # 192\n prin...
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "192", "printed": "192", "notation": null}
nlprog_det-setting-0050946
A count moves from 1,200 to 1,020. By what percent did it change (use a minus sign for a drop)? Computing it: ```python old = 1200 new = 1020 change = (new - old) / old * 100 # -15.0 print(round(change)) ``` Executed, it shows: -15 The change is -15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0050947
<|start|><|user|> Someone works 36 hours at $24.50 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 24.5 hours = 36 earnings = rate * hours # 882.0 print(f"{earnings:.2f}") ``` The script prints 882.00, as expected. The pay is $882.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 36 hours at $24.50 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 24.5\nhours = 36\nearnings = rate * hours # 882.0\nprint(f\"{earnings:.2f}\")\n```\nThe script prints 882.00, as expected.\n\nThe pay is $882....
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "882.00", "printed": "882.00", "notation": null}
nlprog_det-setting-0050948
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> A water bill is $15 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 16 thousand gallons?<|eot|> <|assistant|> ```python base = 15 rate = 3.5 used = 16 free = 0 bill = base + rate * max(0, used - free) # 71.0 print(f"{b...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "A water bill is $15 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 16 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrat...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "71.00", "printed": "71.00", "notation": null}
nlprog_det-setting-0050949
A measure needs at least 67% of 101 votes. How many votes is that, rounded up? Computation in Python: import math voters = 101 needed = math.ceil(voters * 67 / 100) # 68 print(needed) # stdout: 68 At least 68 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0050950
A water bill is $12 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 25 thousand gallons? We can compute it in Python. ```python base = 12 rate = 5.1 used = 25 free = 3 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") ``` Run result — 124.20 $124.20 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "124.20", "printed": "124.20", "notation": null}
nlprog_det-setting-0050951
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "compute", "description": "Run Pytho...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\...
nlprog_det
setting
original
null
deterministic
[]
[]
313
{"gold": "9 each, 6 left over", "printed": "9 each, 6 left over", "notation": null}
nlprog_det-setting-0050952
Starting from $20,000, the team spends $1,914, $1,875. What remains? As Python: ```python budget = 20000 expenses = [1914, 1875] left = budget - sum(expenses) # 16211 print(left) ``` Out = 16211 The remaining budget is $16,211.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "16211", "printed": "16211", "notation": null}
nlprog_det-setting-0050953
A $30,000 grant pays $0 up front and the rest in 3 equal installments. How large is each installment? A short script: ```python grant = 30000 up_front = 0 installments = 3 each = (grant - up_front) / installments # 10000.0 print(f"{each:.2f}") ``` Printed — 10000.00 $10,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "10000.00", "printed": "10000.00", "notation": null}
nlprog_det-setting-0050954
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Notice was given on August 24, 2020. The notice period is 14 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2020, 8, 24) # datetime.date(2020, 8, 24) end = start + timedelta(days=14) # d...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Notice was given on August 24, 2020. The notice period is 14 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart =...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2020-09-07", "printed": "2020-09-07", "notation": null}
nlprog_det-setting-0050955
<|start|><|user|> Starting with 1724 sticky pads and using 9 per day, how many remain after 19 days?<|eot|> <|assistant|> stock = 1724 per_day = 9 days = 19 left = stock - per_day * days # 1553 print(left) Console output: 1553 1553 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1724 sticky pads and using 9 per day, how many remain after 19 days?" }, { "role": "assistant", "content": " stock = 1724\n per_day = 9\n days = 19\n left = stock - per_day * days # 1553\n print(left)\nConsole output: 1553\n\n1553 remai...
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "1553", "printed": "1553", "notation": null}
nlprog_det-setting-0050956
What commission does Kofi make on $111,785 in sales at 6%? A few lines of Python do it: ```python sales = 111785 rate = 6 / 100 # 0.06 commission = sales * rate # 6707.099999999999 print(f"{commission:.2f}") ``` Shell output: 6707.10 Kofi earns $6,707.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "6707.10", "printed": "6707.10", "notation": null}
nlprog_det-setting-0050958
<|start|><|user|> Convert 25 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = 25 fahrenheit = celsius * 9 / 5 + 32 # 77.0 print(round(fahrenheit)) ``` (Printed result: 77) It equals 77 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 25 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = 25\nfahrenheit = celsius * 9 / 5 + 32 # 77.0\nprint(round(fahrenheit))\n```\n(Printed result: 77)\n\nIt equals 77 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0050959
Straight-line depreciation: cost $12,000, salvage $0, 3 years. How much per year? Set it up in Python: ```python cost = 12000 salvage = 0 years = 3 per_year = (cost - salvage) / years # 4000.0 print(f"{per_year:.2f}") ``` Console: 4000.00 $4,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0050960
<|start|><|user|> What simple interest does $8,000 earn at 8% a year over 2 years?<|eot|> <|assistant|> ```python principal = 8000 rate = 8 / 100 # 0.08 years = 2 interest = principal * rate * years # 1280.0 print(f"{interest:.2f}") ``` Run it and it prints 1280.00. The interest is $1,280.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $8,000 earn at 8% a year over 2 years?" }, { "role": "assistant", "content": "```python\nprincipal = 8000\nrate = 8 / 100 # 0.08\nyears = 2\ninterest = principal * rate * years # 1280.0\nprint(f\"{interest:.2f}\")\n```\nRun it and it prin...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1280.00", "printed": "1280.00", "notation": null}
nlprog_det-setting-0050961
<|start|><|user|> What is 5 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 5 fahrenheit = celsius * 9 / 5 + 32 # 41.0 print(round(fahrenheit)) ``` What it prints — 41 That is 41 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 5 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 5\nfahrenheit = celsius * 9 / 5 + 32 # 41.0\nprint(round(fahrenheit))\n```\nWhat it prints — 41\n\nThat is 41 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0050962
Parking is $4 per hour with a daily maximum of $18. What do 6 hours cost? The Python version: ```python rate = 4 hours = 6 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` On running, it outputs: 18 The charge is $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0050963
If a 150-minute hearing begins at 10:30 AM, what time does it finish? Script: ```python start = 10 * 60 + 30 end = start + 150 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Execution result — 1:00 PM The hearing finishes at 1:00 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "1:00 PM", "printed": "1:00 PM", "notation": null}
nlprog_det-setting-0050964
<|start|><|user|> A lease runs for 24 months at $1,640 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> monthly_rent = 1640 months = 24 total = monthly_rent * months # 39360 print(total) Out: 39360 The rent over the term is $39,360.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 24 months at $1,640 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": " monthly_rent = 1640\n months = 24\n total = monthly_rent * months # 39360\n print(total)\nOut: 39360\n\nThe rent over the ...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "39360", "printed": "39360", "notation": null}
nlprog_det-setting-0050965
A meal costs $98.06. How much is a 15% tip? As a program: ```python bill = 98.06 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 14.709 print(f"{tip:.2f}") ``` On running, it outputs 14.71. Leave $14.71.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "14.71", "printed": "14.71", "notation": null}
nlprog_det-setting-0050966
A settlement of $36,000 is split equally among 5 parties. How much does each party receive? Let's compute it with Python. ```python settlement = 36000 parties = 5 share = settlement // parties # 7200 print(share) ``` Run output — 7200 Each share is $7,200.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "7200", "printed": "7200", "notation": null}
nlprog_det-setting-0050967
A claim accrued on September 13, 2019. The limitations period is 6 years. On what date does it expire? Computing it: ```python from datetime import date accrued = date(2019, 9, 13) # datetime.date(2019, 9, 13) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 9, 13) print(expires.i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2025-09-13", "printed": "2025-09-13", "notation": null}
nlprog_det-setting-0050968
<|start|><|system|> Be brief and correct.<|eot|> <|user|> Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?<|eot|> <|assistant|> rate = 20.0 hours = 44 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 120.0 pay = regular + overtime ...
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?" }, { "role": "assistant", "content": " rate = 20.0\n hours = 44\n regular = 40 * rate # ...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "920.00", "printed": "920.00", "notation": null}
nlprog_det-setting-0050970
Meals are $69 per day and lodging $140 per night. What is the allowance for 8 days and 7 nights? A few lines of Python do it: ```python days = 8 meal_rate = 69 lodging_rate = 140 nights = days - 1 # 7 total = days * meal_rate + nights * lodging_rate # 1532 print(total) ``` The script prints 1532, as expected. That ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "1532", "printed": "1532", "notation": null}
nlprog_det-setting-0050971
<|start|><|user|> A $6,000 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 6000 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 1080.0 paymen...
chat
[ { "role": "user", "content": "A $6,000 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "```python\nprincipal = 6000\nannual_rate = 6 / 100 # 0.06\nmonths = 36\ninteres...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "196.67", "printed": "196.67", "notation": null}
nlprog_det-setting-0050972
What percentage of $2,000 is $1,600? Code: ```python budget = 2000 spent = 1600 percent = spent / budget * 100 # 80.0 print(round(percent, 1)) ``` Run result — 80.0 80.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "80.0", "printed": "80.0", "notation": null}
nlprog_det-setting-0050973
Sales went from 1,000 to 750. What is the percent change? Python version: old = 1000 new = 750 change = (new - old) / old * 100 # -25.0 print(round(change)) (Result: -25) The change is -25%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "-25", "printed": "-25", "notation": null}