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-0082035
4 swims at 400 calories each burn how many calories in total? Python code: ```python per_session = 400 sessions = 4 total = per_session * sessions # 1600 print(total) ``` It prints 1600. 1600 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "1600", "printed": "1600", "notation": null}
nlprog_det-setting-0082036
<|start|><|system|> You may call the tools below. [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "eval_python", "description": "Python san...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"targ...
nlprog_det
setting
original
null
deterministic
[]
[]
306
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0082037
Equipment costs $24,000, has a salvage value of $0, and a useful life of 6 years. What is the straight-line depreciation per year? ```python cost = 24000 salvage = 0 years = 6 per_year = (cost - salvage) / years # 4000.0 print(f"{per_year:.2f}") ``` It prints 4000.00, as expected. Depreciation is $4,000.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0082038
5 claimants share a $2,640 settlement equally. What is each share? A few lines of Python do it: ```python settlement = 2640 parties = 5 share = settlement // parties # 528 print(share) ``` Console: 528 Each party receives $528.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "528", "printed": "528", "notation": null}
nlprog_det-setting-0082041
Someone works 12 hours at $19.49 per hour. What are the earnings? Program: ```python rate = 19.49 hours = 12 earnings = rate * hours # 233.88 print(f"{earnings:.2f}") ``` Result: 233.88 The pay is $233.88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "233.88", "printed": "233.88", "notation": null}
nlprog_det-setting-0082042
<|start|><|user|> From 2014 to 2044, how many years is that?<|eot|> <|assistant|> That is 30 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2014 to 2044, how many years is that?" }, { "role": "assistant", "content": "That is 30 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0082043
<|start|><|user|> Papers were served by mail on September 3, 2025. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2025, 9, 3) response_days = 30 mail_days = 3 due = served + timedelta(days=re...
chat
[ { "role": "user", "content": "Papers were served by mail on September 3, 2025. A response is due 30 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(2025, 9, 3)\nresponse...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2025-10-06", "printed": "2025-10-06", "notation": null}
nlprog_det-setting-0082044
Ada earns a 5% commission on $64,281 of sales. What is the commission? Here's the code. ```python sales = 64281 rate = 5 / 100 commission = sales * rate print(f"{commission:.2f}") ``` Executed, it shows: 3214.05 The commission is $3,214.05.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "3214.05", "printed": "3214.05", "notation": null}
nlprog_det-setting-0082045
<|start|><|user|> Sofia buys 9 boxes of 24 chairs each and gives away 2 chairs. How many chairs are left?<|eot|> <|assistant|> ```python boxes = 9 per_box = 24 given_away = 2 left = boxes * per_box - given_away # 214 print(left) ``` The code prints: 214 That leaves 214 chairs.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sofia buys 9 boxes of 24 chairs each and gives away 2 chairs. How many chairs are left?" }, { "role": "assistant", "content": "```python\nboxes = 9\nper_box = 24\ngiven_away = 2\nleft = boxes * per_box - given_away # 214\nprint(left)\n```\nThe code prints: 214\n\nT...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "214", "printed": "214", "notation": null}
nlprog_det-setting-0082046
A client paid a $7,500 retainer. The firm has billed 6 hours at $150 per hour. How much of the retainer is left? Set it up in Python: ```python retainer = 7500 hours = 6 rate = 150 left = retainer - hours * rate # 6600 print(left) ``` # printed result: 6600 The remaining balance is $6,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "6600", "printed": "6600", "notation": null}
nlprog_det-setting-0082047
<|start|><|user|> $5,000 is invested at 2% compounded yearly. What is it worth after 5 years?<|eot|> <|assistant|> The balance is $5,520.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$5,000 is invested at 2% compounded yearly. What is it worth after 5 years?" }, { "role": "assistant", "content": "The balance is $5,520.40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "5520.40", "printed": "5520.40", "notation": null}
nlprog_det-setting-0082048
At $16.40 an hour, what does 32 hours of work pay? Python makes this quick: ```python rate = 16.4 hours = 32 earnings = rate * hours # 524.8 print(f"{earnings:.2f}") ``` Result — 524.80 That earns $524.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "524.80", "printed": "524.80", "notation": null}
nlprog_det-setting-0082049
<|start|><|user|> A service costs $9 a month or $72 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> $36 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $9 a month or $72 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "$36 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0082050
A 5 lb package ships at $10 base plus $1.20/lb. What is the charge? Shipping costs $16.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "16.00", "printed": "16.00", "notation": null}
nlprog_det-setting-0082051
Split $2,280 between Ada and Farah in the ratio 3 to 5. What is Ada's share? Python makes this quick: ```python total = 2280 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 855 print(share_a) ``` It outputs: 855 Ada gets $855.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "855", "printed": "855", "notation": null}
nlprog_det-setting-0082052
<|start|><|user|> Copies cost $10 plus $0.25 for each page beyond 10. How much for 28 pages?<|eot|> <|assistant|> pages = 28 base = 10 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 14.5 print(f"{cost:.2f}") (Printed: 14.50) The total is $14.50.<|eot|> <|...
chat
[ { "role": "user", "content": "Copies cost $10 plus $0.25 for each page beyond 10. How much for 28 pages?" }, { "role": "assistant", "content": " pages = 28\n base = 10\n per_page = 0.25\n free_pages = 10\n cost = base + max(0, pages - free_pages) * per_page # 14.5\n print(f\"{...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "14.50", "printed": "14.50", "notation": null}
nlprog_det-setting-0082053
Rent of $900 goes up 8%. What is the new rent? In Python: ```python rent = 900 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 972.0000000000001 print(f"{new_rent:.2f}") ``` Execution prints 972.00. The new rent is $972.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "972.00", "printed": "972.00", "notation": null}
nlprog_det-setting-0082054
Scale 150 g of lentils from 6 servings to 10 servings. As a program: ```python grams = 150 serves = 6 needed_for = 10 scaled = grams * needed_for // serves # 250 print(scaled) ``` Running it prints: 250 250 grams of lentils are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0082055
A 2% increase is applied to $1,500 monthly rent. What is the new amount? Programmatically: ```python rent = 1500 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 1530.0 print(f"{new_rent:.2f}") ``` Result = 1530.00 The new rent is $1,530.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1530.00", "printed": "1530.00", "notation": null}
nlprog_det-setting-0082057
<|start|><|user|> With 14 rows of 16 chairs and 31 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 14 per_row = 16 empty = 31 seated = rows * per_row - empty # 193 print(seated) ``` Run it and it prints: 193 193 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 14 rows of 16 chairs and 31 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 14\nper_row = 16\nempty = 31\nseated = rows * per_row - empty # 193\nprint(seated)\n```\nRun it and it prints: 193\n\n193 people are s...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "193", "printed": "193", "notation": null}
nlprog_det-setting-0082058
An invoice lists 24 folders at $2 each, plus 8% sales tax. What is the invoice total? Translated to Python: ```python quantity = 24 unit_price = 2 subtotal = quantity * unit_price # 48 total = subtotal * (1 + 8 / 100) # 51.84 print(f"{total:.2f}") ``` (Printed: 51.84) The invoice total is $51.84.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "51.84", "printed": "51.84", "notation": null}
nlprog_det-setting-0082059
Papers were served by mail on October 10, 2027. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date? As Python: from datetime import date, timedelta served = date(2027, 10, 10) # datetime.date(2027, 10, 10) response_days = 21 mail_days = 3 due = served + ti...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
172
{"gold": "2027-11-03", "printed": "2027-11-03", "notation": null}
nlprog_det-setting-0082060
<|start|><|user|> 22 tape rolls cost $6 apiece. With 7% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 22 unit_price = 6 subtotal = quantity * unit_price # 132 total = subtotal * (1 + 7 / 100) # 141.24 print(f"{total:.2f}") ``` Console: 141.24 The invoice total is $141.24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "22 tape rolls cost $6 apiece. With 7% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 22\nunit_price = 6\nsubtotal = quantity * unit_price # 132\ntotal = subtotal * (1 + 7 / 100) # 141.24\nprint(f\"{total:.2f}\")\n```\nCo...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "141.24", "printed": "141.24", "notation": null}
nlprog_det-setting-0082062
<|start|><|user|> Buying 4 notebooks at $20 each, 5 flash drives at $16 each, 1 file boxes at $14 each, someone hands over $200. What change comes back?<|eot|> <|assistant|> ```python items = [(4, 20), (5, 16), (1, 14)] total = sum(q * p for q, p in items) # 174 paid = 200 change = paid - total # 26 print(change) ```...
chat
[ { "role": "user", "content": "Buying 4 notebooks at $20 each, 5 flash drives at $16 each, 1 file boxes at $14 each, someone hands over $200. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(4, 20), (5, 16), (1, 14)]\ntotal = sum(q * p for q, p in items) # 174\...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0082063
<|start|><|user|> The landlord deducts $120, $120 and $60 from a $1,000 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 1000 deductions = [120, 120, 60] refund = deposit - sum(deductions) # 700 print(refund) ``` (Result: 700) The refund is $700.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $120, $120 and $60 from a $1,000 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 1000\ndeductions = [120, 120, 60]\nrefund = deposit - sum(deductions) # 700\nprint(refund)\n```\n(Result: 700)...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "700", "printed": "700", "notation": null}
nlprog_det-setting-0082064
<|start|><|user|> Each storage box holds 40 files. How many boxes are needed for 141 files?<|eot|> <|assistant|> ```python import math files = 141 per_box = 40 boxes = math.ceil(files / per_box) # 4 print(boxes) ``` It prints 4, as expected. It takes 4 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 40 files. How many boxes are needed for 141 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 141\nper_box = 40\nboxes = math.ceil(files / per_box) # 4\nprint(boxes)\n```\nIt prints 4, as expected.\n\nIt takes 4 bo...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0082065
A trial runs from August 18, 2019 to August 29, 2019, counting both days. How many calendar days is that? The Python version: ```python from datetime import date first = date(2019, 8, 18) # datetime.date(2019, 8, 18) last = date(2019, 8, 29) # datetime.date(2019, 8, 29) days = (last - first).days + 1 # 12 print(day...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0082066
<|start|><|system|> Tools you may use: [{"name": "run_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Rent of $1,...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"run_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
229
{"gold": "1325.00", "printed": "1325.00", "notation": null}
nlprog_det-setting-0082067
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> A recipe for 2 people uses 150 grams of lentils. How many grams are needed for 3 people?<|eot|> <|assistant|> ```python grams = 150 serves = 2 needed_for = 3 scaled = grams * needed_for // serves print(scaled) ``` This prints 225, as expected....
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "A recipe for 2 people uses 150 grams of lentils. How many grams are needed for 3 people?" }, { "role": "assistant", "content": "```python\ngrams = 150\nserves = 2\nneeded_for = ...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0082068
Convert 3,421 GBP to USD at 1 GBP = 1.35 USD. Translated to Python: ```python amount = 3421 rate = 1.35 converted = amount * rate # 4618.35 print(f"{converted:.2f}") ``` On running, it outputs: 4618.35 That is 4,618.35 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "4618.35", "printed": "4618.35", "notation": null}
nlprog_det-setting-0082069
Fines run at $250 per day up to a maximum of $5,000. How much after 44 days? $5,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0082070
<|start|><|user|> If a 3-year limitations period starts on February 1, 2013, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2013, 2, 1) # datetime.date(2013, 2, 1) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2016, 2, 1) print(expires.isofor...
chat
[ { "role": "user", "content": "If a 3-year limitations period starts on February 1, 2013, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2013, 2, 1) # datetime.date(2013, 2, 1)\nyears = 3\nexpires = accrued.replace(year=accrued.year ...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2016-02-01", "printed": "2016-02-01", "notation": null}
nlprog_det-setting-0082071
<|start|><|user|> A water bill is $15 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 23 thousand gallons?<|eot|> <|assistant|> ```python base = 15 rate = 4.2 used = 23 free = 2 bill = base + rate * max(0, used - free) # 103.2 print(f"{bill:.2f}") ``` stdout: 103.20 The bill is $103....
chat
[ { "role": "user", "content": "A water bill is $15 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 23 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 4.2\nused = 23\nfree = 2\nbill = base + rate * max(0, used - free) # 103.2...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "103.20", "printed": "103.20", "notation": null}
nlprog_det-setting-0082072
How long, in days, is it from August 27, 2028 until July 5, 2029? Here is the program. ```python from datetime import date first = date(2028, 8, 27) # datetime.date(2028, 8, 27) second = date(2029, 7, 5) # datetime.date(2029, 7, 5) print((second - first).days) ``` stdout: 312 It is 312 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "312", "printed": "312", "notation": null}
nlprog_det-setting-0082073
<|start|><|user|> A pack of 6 file boxes sells for $186. What does each cost?<|eot|> <|assistant|> ```python total = 186 count = 6 per_item = total // count # 31 print(per_item) ``` (Output: 31) Each one costs $31.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 6 file boxes sells for $186. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 186\ncount = 6\nper_item = total // count # 31\nprint(per_item)\n```\n(Output: 31)\n\nEach one costs $31." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0082074
With 5 rows of 13 chairs and 25 empty chairs, how many chairs are taken? A Python solution: ```python rows = 5 per_row = 13 empty = 25 seated = rows * per_row - empty # 40 print(seated) ``` Execution prints 40. 40 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0082075
<|start|><|system|> Available functions (JSON Schema): [{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "compute", "description": "Run Python code in a sandbox; the result is whatever the ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"compute\", \"description\": \...
nlprog_det
setting
original
null
deterministic
[]
[]
317
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0082076
<|start|><|user|> Convert 5 h 38 min (the length of a workshop) to minutes.<|eot|> <|assistant|> That is 338 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 5 h 38 min (the length of a workshop) to minutes." }, { "role": "assistant", "content": "That is 338 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "338", "printed": "338", "notation": null}
nlprog_det-setting-0082078
<|start|><|user|> What does $2,000 grow to in 2 years at 3% annual compounding?<|eot|> <|assistant|> ```python principal = 2000 rate = 3 / 100 # 0.03 years = 2 value = principal * (1 + rate) ** years # 2121.7999999999997 print(f"{value:.2f}") ``` It outputs: 2121.80 It is worth $2,121.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $2,000 grow to in 2 years at 3% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 2000\nrate = 3 / 100 # 0.03\nyears = 2\nvalue = principal * (1 + rate) ** years # 2121.7999999999997\nprint(f\"{value:.2f}\")\n```\nIt outpu...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "2121.80", "printed": "2121.80", "notation": null}
nlprog_det-setting-0082079
How many of 88 votes make 60% (round up)? In code: ```python import math voters = 88 needed = math.ceil(voters * 60 / 100) # 53 print(needed) ``` It prints: 53 53 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0082080
<|start|><|user|> Counting the first and last day, how many days are there from May 17, 2027 through May 24, 2027?<|eot|> <|assistant|> ```python from datetime import date first = date(2027, 5, 17) # datetime.date(2027, 5, 17) last = date(2027, 5, 24) # datetime.date(2027, 5, 24) days = (last - first).days + 1 # 8 p...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from May 17, 2027 through May 24, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2027, 5, 17) # datetime.date(2027, 5, 17)\nlast = date(2027, 5, 24) # datetim...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0082081
Each of Beatriz's swims burns 300 calories. How many calories over 3 swims? We can compute it in Python. ```python per_session = 300 sessions = 3 total = per_session * sessions # 900 print(total) ``` stdout — 900 900 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0082082
<|start|><|system|> Tool definitions: [{"name": "code_runner", "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": "search_cases", "description": "...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
277
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0082083
<|start|><|user|> Copies cost $15 plus $0.10 for each page beyond 20. How much for 19 pages?<|eot|> <|assistant|> ```python pages = 19 base = 15 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") ``` Shell output: 15.00 The total is $15.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $15 plus $0.10 for each page beyond 20. How much for 19 pages?" }, { "role": "assistant", "content": "```python\npages = 19\nbase = 15\nper_page = 0.1\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page\nprint(f\"{cost:.2f}\")\n```\nShe...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0082084
How many days are there from February 23, 2020 to January 3, 2021? As Python: ```python from datetime import date first = date(2020, 2, 23) # datetime.date(2020, 2, 23) second = date(2021, 1, 3) # datetime.date(2021, 1, 3) print((second - first).days) ``` Python prints 315. There are 315 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "315", "printed": "315", "notation": null}
nlprog_det-setting-0082085
<|start|><|user|> At 45 miles per hour, how many minutes does a 225-mile trip take?<|eot|> <|assistant|> ```python distance = 225 speed = 45 minutes = distance / speed * 60 # 300.0 print(round(minutes)) ``` Execution result: 300 300 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 45 miles per hour, how many minutes does a 225-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 225\nspeed = 45\nminutes = distance / speed * 60 # 300.0\nprint(round(minutes))\n```\nExecution result: 300\n\n300 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0082086
What simple interest does $5,000 earn at 4% a year over 5 years? The program: ```python principal = 5000 rate = 4 / 100 # 0.04 years = 5 interest = principal * rate * years # 1000.0 print(f"{interest:.2f}") ``` It outputs: 1000.00 It earns $1,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0082087
Convert 65.8 km to meters. Programmatically: ```python km = 65.8 meters = km * 1000 # 65800.0 print(round(meters)) ``` (Execution result: 65800) 65,800 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "65800", "printed": "65800", "notation": null}
nlprog_det-setting-0082088
Sales went from 200 to 210. What is the percent change? A Python solution: ```python old = 200 new = 210 change = (new - old) / old * 100 # 5.0 print(round(change)) ``` It prints 5. It changed by 5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0082089
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> Prorate $900 of monthly rent for 14 days of a 31-day month.<|eot|> <|assistant|> ```python rent = 900 days_in_month = 31 days_occupied = 14 prorated = rent * days_occupied / days_in_month # 406.4516129032258 print(f"{prorated:.2f}") ``` Pri...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "Prorate $900 of monthly rent for 14 days of a 31-day month." }, { "role": "assistant", "content": "```python\nrent = 900\ndays_in_month = 31\ndays_occupied = 14\nprorated = re...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "406.45", "printed": "406.45", "notation": null}
nlprog_det-setting-0082090
A $1,000 security deposit has deductions of $60. How much is refunded? Programmatically: ```python deposit = 1000 deductions = [60] refund = deposit - sum(deductions) # 940 print(refund) ``` Shell output: 940 $940 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "940", "printed": "940", "notation": null}
nlprog_det-setting-0082091
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> 5 swims at 200 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 200 sessions = 5 total = per_session * sessions # 1000 print(total) ``` The run gives 1000. That burns 1000 calories.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "5 swims at 200 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 200\nsessions = 5\ntotal = per_session * sessions # 10...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0082093
<|start|><|system|> You have access to these functions: [{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "convert_units", "descript...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
357
{"gold": "1845", "printed": "1845", "notation": null}
nlprog_det-setting-0082094
Someone works 24 hours at $15.73 per hour. What are the earnings? Program: ```python rate = 15.73 hours = 24 earnings = rate * hours # 377.52 print(f"{earnings:.2f}") ``` Run output: 377.52 That earns $377.52.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "377.52", "printed": "377.52", "notation": null}
nlprog_det-setting-0082095
Straight-line depreciation: cost $45,000, salvage $0, 10 years. How much per year? We can compute it in Python. ```python cost = 45000 salvage = 0 years = 10 per_year = (cost - salvage) / years # 4500.0 print(f"{per_year:.2f}") ``` The run gives 4500.00. $4,500.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0082096
<|start|><|user|> Monthly rent is $2,400. A tenant moves in with 22 days left in a 31-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 2400 days_in_month = 31 days_occupied = 22 prorated = rent * days_occupied / days_in_month # 1703.225806451613 print(f"{prorated:.2f}") ``` Execution result:...
chat
[ { "role": "user", "content": "Monthly rent is $2,400. A tenant moves in with 22 days left in a 31-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 2400\ndays_in_month = 31\ndays_occupied = 22\nprorated = rent * days_occupied / days_in_month # 1703.2...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "1703.23", "printed": "1703.23", "notation": null}
nlprog_det-setting-0082097
<|start|><|user|> A $12,000 grant pays $3,000 up front and the rest in 6 equal installments. How large is each installment?<|eot|> <|assistant|> Each installment is $1,500.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $12,000 grant pays $3,000 up front and the rest in 6 equal installments. How large is each installment?" }, { "role": "assistant", "content": "Each installment is $1,500.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0082098
<|start|><|user|> Monthly: $19. Annual: $180. What is saved per year by paying annually?<|eot|> <|assistant|> monthly = 19 yearly = 180 savings = monthly * 12 - yearly # 48 print(savings) Result: 48 The annual plan saves $48.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $19. Annual: $180. What is saved per year by paying annually?" }, { "role": "assistant", "content": " monthly = 19\n yearly = 180\n savings = monthly * 12 - yearly # 48\n print(savings)\nResult: 48\n\nThe annual plan saves $48." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0082099
Equipment costs $30,000, has a salvage value of $2,000, and a useful life of 6 years. What is the straight-line depreciation per year? The Python version: ```python cost = 30000 salvage = 2000 years = 6 per_year = (cost - salvage) / years print(f"{per_year:.2f}") ``` # result: 4666.67 $4,666.67 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "4666.67", "printed": "4666.67", "notation": null}
nlprog_det-setting-0082100
At $0.67 per mile, what is the reimbursement for 513 miles? ```python miles = 513 rate = 0.67 reimbursement = miles * rate # 343.71000000000004 print(f"{reimbursement:.2f}") ``` Run output: 343.71 Emeka is owed $343.71.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "343.71", "printed": "343.71", "notation": null}
nlprog_det-setting-0082102
<|start|><|user|> One can of paint covers 250 square feet. How many cans are needed for 383 square feet of wall?<|eot|> <|assistant|> ```python import math area = 383 coverage = 250 cans = math.ceil(area / coverage) # 2 print(cans) ``` # output: 2 2 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 250 square feet. How many cans are needed for 383 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 383\ncoverage = 250\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\n# output: 2\n\n2 cans ...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0082103
Which is cheaper per unit: 6 for $9.10 (A) or 24 for $24.93 (B)? Set it up in Python: ```python pack_a = 9.1 / 6 pack_b = 24.93 / 24 cheaper = "A" if pack_a < pack_b else "B" print(cheaper) ``` On running, it outputs B. Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0082104
How many weekdays (Monday to Friday) fall after August 3, 2022 up to and including August 24, 2022? We write it as a program: ```python from datetime import date, timedelta start = date(2022, 8, 3) end = date(2022, 8, 24) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday()...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0082105
A quorum is 3/5 of the 54 members, rounded up. How many members make a quorum? Python, step by step: ```python import math members = 54 quorum = math.ceil(members * 3 / 5) # 33 print(quorum) ``` Running this gives: 33 33 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0082106
What is 20 degrees Celsius in Fahrenheit? Here's the code. celsius = 20 fahrenheit = celsius * 9 / 5 + 32 # 68.0 print(round(fahrenheit)) Printed: 68 It equals 68 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0082107
<|start|><|user|> How many units at $15 each (variable cost $9) cover $9,000 of fixed costs?<|eot|> <|assistant|> import math fixed = 9000 price = 15 variable = 9 units = math.ceil(fixed / (price - variable)) print(units) This prints 1500, as expected. Break-even is 1500 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $15 each (variable cost $9) cover $9,000 of fixed costs?" }, { "role": "assistant", "content": " import math\n fixed = 9000\n price = 15\n variable = 9\n units = math.ceil(fixed / (price - variable))\n print(units)\nThis prints 15...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0082108
A clerk's office charges $45 for each filing. Uma submits 9 filings. What is the total fee? Coded up: ```python fee = 45 filings = 9 total = fee * filings # 405 print(total) ``` Printed: 405 $405 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "405", "printed": "405", "notation": null}
nlprog_det-setting-0082109
<|start|><|user|> A 3-day trip pays $64 a day for meals and $175 a night for lodging (2 nights). What is the total allowance?<|eot|> <|assistant|> days = 3 meal_rate = 64 lodging_rate = 175 nights = days - 1 total = days * meal_rate + nights * lodging_rate print(total) Running it prints: 542 Th...
chat
[ { "role": "user", "content": "A 3-day trip pays $64 a day for meals and $175 a night for lodging (2 nights). What is the total allowance?" }, { "role": "assistant", "content": " days = 3\n meal_rate = 64\n lodging_rate = 175\n nights = days - 1\n total = days * meal_rate + nights ...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "542", "printed": "542", "notation": null}
nlprog_det-setting-0082110
<|start|><|user|> Wen lends $2,500 at 2% simple interest per year for 4 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 2500 rate = 2 / 100 # 0.02 years = 4 interest = principal * rate * years # 200.0 print(f"{interest:.2f}") ``` Printed result: 200.00 It earns $200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Wen lends $2,500 at 2% simple interest per year for 4 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 2500\nrate = 2 / 100 # 0.02\nyears = 4\ninterest = principal * rate * years # 200.0\nprint(f\"{interest:.2f}\")\...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0082111
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> A storeroom has 813 file boxes. The office uses 13 a day. How many are left after 7 days?<|eot|> <|assistant|> ```python stock = 813 per_day = 13 days = 7 left = stock - per_day * days # 722 print(left) ``` The program outputs 722. 722 file boxe...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "A storeroom has 813 file boxes. The office uses 13 a day. How many are left after 7 days?" }, { "role": "assistant", "content": "```python\nstock = 813\nper_day = 13\ndays = 7\nleft...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "722", "printed": "722", "notation": null}
nlprog_det-setting-0082112
Starting with 335 flash drives and using 36 per day, how many remain after 9 days? Here is a short program for it. ```python stock = 335 per_day = 36 days = 9 left = stock - per_day * days # 11 print(left) ``` # run result: 11 11 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0082113
<|start|><|system|> Available functions (JSON Schema): {"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> What is 40 degr...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
216
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0082114
The landlord deducts $120, $75 and $45 from a $800 deposit. What is returned to the tenant? As Python: ```python deposit = 800 deductions = [120, 75, 45] refund = deposit - sum(deductions) # 560 print(refund) ``` stdout — 560 The refund is $560.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "560", "printed": "560", "notation": null}
nlprog_det-setting-0082116
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Abel's scores were 99, 79, 73, 63 and 96. What is the average score?<|eot|> <|assistant|> The average score is 82.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Abel's scores were 99, 79, 73, 63 and 96. What is the average score?" }, { "role": "assistant", "content": "The average score is 82." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0082117
What is 10 degrees Celsius in Fahrenheit? ```python celsius = 10 fahrenheit = celsius * 9 / 5 + 32 # 50.0 print(round(fahrenheit)) ``` (Program output: 50) It equals 50 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0082118
A library charges $0.25 per book per day late. What is the fine for 3 books that are 22 days late? Python, step by step: per_day = 0.25 days_late = 22 books = 3 fine = per_day * days_late * books # 16.5 print(f"{fine:.2f}") This prints 16.50, as expected. The fine is $16.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "16.50", "printed": "16.50", "notation": null}
nlprog_det-setting-0082119
Tomas lends $8,000 at 8% simple interest per year for 5 years. How much interest is earned? Let's compute it with Python. ```python principal = 8000 rate = 8 / 100 # 0.08 years = 5 interest = principal * rate * years # 3200.0 print(f"{interest:.2f}") ``` Shell output — 3200.00 The interest is $3,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "3200.00", "printed": "3200.00", "notation": null}
nlprog_det-setting-0082120
What percentage of $4,000 is $1,800? Python does the arithmetic: ```python budget = 4000 spent = 1800 percent = spent / budget * 100 # 45.0 print(round(percent, 1)) ``` (Program output: 45.0) That is 45.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "45.0", "printed": "45.0", "notation": null}
nlprog_det-setting-0082121
After a 30% fee is taken from a $60,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? We write it as a program: award = 60000 fee = award * 30 / 100 # 18000.0 remaining = award - fee # 42000.0 per_client = remaining / 4 # 10500.0 print(f"{per_client:.2f}") (...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "10500.00", "printed": "10500.00", "notation": null}
nlprog_det-setting-0082122
Count 14 days forward from October 28, 2024. What date is that? Code: ```python from datetime import date, timedelta start = date(2024, 10, 28) # datetime.date(2024, 10, 28) end = start + timedelta(days=14) # datetime.date(2024, 11, 11) print(end.isoformat()) ``` # printed result: 2024-11-11 It ends on November 11,...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "2024-11-11", "printed": "2024-11-11", "notation": null}
nlprog_det-setting-0082123
<|start|><|user|> An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 3 months?<|eot|> <|assistant|> balance = 7500 monthly_rate = 1.5 / 100 # 0.015 months = 3 interest = balance * monthly_rate * months # 337.5 print(f"{interest:.2f}") The interpreter p...
chat
[ { "role": "user", "content": "An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 3 months?" }, { "role": "assistant", "content": " balance = 7500\n monthly_rate = 1.5 / 100 # 0.015\n months = 3\n interest = balance * monthly_rate * month...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "337.50", "printed": "337.50", "notation": null}
nlprog_det-setting-0082124
<|start|><|system|> Functions: {"name": "calc", "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|> Water costs $18 a month plus $4.2...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"calc\", \"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...
nlprog_det
setting
original
null
deterministic
[]
[]
232
{"gold": "72.60", "printed": "72.60", "notation": null}
nlprog_det-setting-0082125
<|start|><|user|> An invoice lists 25 batteries at $24 each, plus 8% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 25 unit_price = 24 subtotal = quantity * unit_price # 600 total = subtotal * (1 + 8 / 100) # 648.0 print(f"{total:.2f}") ``` That prints 648.00. The total with tax is $...
chat
[ { "role": "user", "content": "An invoice lists 25 batteries at $24 each, plus 8% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 25\nunit_price = 24\nsubtotal = quantity * unit_price # 600\ntotal = subtotal * (1 + 8 / 100) # 648.0\nprint(f\"{t...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "648.00", "printed": "648.00", "notation": null}
nlprog_det-setting-0082126
If a 105-minute seminar begins at 2:45 PM, what time does it finish? As a program: ```python start = 14 * 60 + 45 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The interpreter prints 4:30 PM. The seminar finishes at 4:30 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "4:30 PM", "printed": "4:30 PM", "notation": null}
nlprog_det-setting-0082127
A 2% increase is applied to $1,250 monthly rent. What is the new amount? Here is a short program for it. rent = 1250 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 1275.0 print(f"{new_rent:.2f}") What it prints — 1275.00 The new rent is $1,275.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1275.00", "printed": "1275.00", "notation": null}
nlprog_det-setting-0082128
Under a 33% contingency agreement, what fee is owed on a $25,000 award? A few lines of Python do it: ```python recovery = 25000 rate = 33 / 100 # 0.33 fee = recovery * rate # 8250.0 print(f"{fee:.2f}") ``` (stdout: 8250.00) The lawyer's fee comes to $8,250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "8250.00", "printed": "8250.00", "notation": null}
nlprog_det-setting-0082129
Divide 190 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain? Here is a short program for it. total = 190 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") Running it prints 31 each, 4 left over,...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "31 each, 4 left over", "printed": "31 each, 4 left over", "notation": null}
nlprog_det-setting-0082130
Buying 2 paper reams at $25 each, 1 hard drives at $16 each, someone hands over $100. What change comes back? Coded up: ```python items = [(2, 25), (1, 16)] total = sum(q * p for q, p in items) # 66 paid = 100 change = paid - total # 34 print(change) ``` Program output — 34 The change is $34.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0082131
A $30,000 grant pays $0 up front and the rest in 4 equal installments. How large is each installment? A short script: ```python grant = 30000 up_front = 0 installments = 4 each = (grant - up_front) / installments # 7500.0 print(f"{each:.2f}") ``` Console output — 7500.00 Each installment is $7,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0082132
Fixed costs are $2,500. Each unit sells for $20 and costs $15 to make. How many units must be sold to break even? Break-even is 500 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0082133
Equal monthly payments repay $6,000 plus 6% simple yearly interest over 24 months. How large is a payment? ```python principal = 6000 annual_rate = 6 / 100 # 0.06 months = 24 interest = principal * annual_rate * months / 12 # 720.0 payment = (principal + interest) / months # 280.0 print(f"{payment:.2f}") ``` What i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "280.00", "printed": "280.00", "notation": null}
nlprog_det-setting-0082134
<|start|><|user|> Attendance was 12 out of 25. Express it as a percent.<|eot|> <|assistant|> ```python present = 12 total = 25 percent = present / total * 100 # 48.0 print(round(percent, 1)) ``` (stdout: 48.0) 48.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 12 out of 25. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 12\ntotal = 25\npercent = present / total * 100 # 48.0\nprint(round(percent, 1))\n```\n(stdout: 48.0)\n\n48.0% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "48.0", "printed": "48.0", "notation": null}
nlprog_det-setting-0082135
Meals are $79 per day and lodging $140 per night. What is the allowance for 6 days and 5 nights? We can compute it in Python. ```python days = 6 meal_rate = 79 lodging_rate = 140 nights = days - 1 total = days * meal_rate + nights * lodging_rate print(total) ``` That prints: 1174 That comes to $1,174.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "1174", "printed": "1174", "notation": null}
nlprog_det-setting-0082136
An attorney bills 2 hours at $350 per hour. What is the bill? The computation: ```python hours = 2 rate = 350 bill = hours * rate print(f"{bill:.2f}") ``` Interpreter output: 700.00 The bill is $700.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "700.00", "printed": "700.00", "notation": null}
nlprog_det-setting-0082137
<|start|><|user|> A 5% increase is applied to $1,250 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 1250 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1312.5 print(f"{new_rent:.2f}") ``` The printout reads: 1312.50 The new rent is $1,312.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 5% increase is applied to $1,250 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 1250\nincrease = 5 / 100 # 0.05\nnew_rent = rent * (1 + increase) # 1312.5\nprint(f\"{new_rent:.2f}\")\n```\nThe printout reads: 1312....
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1312.50", "printed": "1312.50", "notation": null}
nlprog_det-setting-0082138
<|start|><|user|> 1.5 hours of work at $180 an hour: what is the total charge?<|eot|> <|assistant|> ```python hours = 1.5 rate = 180 bill = hours * rate # 270.0 print(f"{bill:.2f}") ``` The program prints 270.00. The bill is $270.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "1.5 hours of work at $180 an hour: what is the total charge?" }, { "role": "assistant", "content": "```python\nhours = 1.5\nrate = 180\nbill = hours * rate # 270.0\nprint(f\"{bill:.2f}\")\n```\nThe program prints 270.00.\n\nThe bill is $270.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "270.00", "printed": "270.00", "notation": null}
nlprog_det-setting-0082140
To read 1140 pages in 20 days, how many pages per day are needed? In code: ```python pages = 1140 days = 20 per_day = pages // days # 57 print(per_day) ``` Python prints 57, as expected. That is 57 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0082141
Convert 39.8 km to meters. Translated to Python: ```python km = 39.8 meters = km * 1000 # 39800.0 print(round(meters)) ``` The program prints: 39800 39,800 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "39800", "printed": "39800", "notation": null}
nlprog_det-setting-0082142
<|start|><|user|> A $60,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 60000 up_front = 2000 installments = 4 each = (grant - up_front) / installments # 14500.0 print(f"{each:.2f}") ``` It prints 14500.00. $14,500.00 per insta...
chat
[ { "role": "user", "content": "A $60,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 60000\nup_front = 2000\ninstallments = 4\neach = (grant - up_front) / installments # 14500.0\nprint(f...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "14500.00", "printed": "14500.00", "notation": null}
nlprog_det-setting-0082143
Monthly rent is $2,400. A tenant moves in with 6 days left in a 31-day month. What is the prorated rent? Python, step by step: ```python rent = 2400 days_in_month = 31 days_occupied = 6 prorated = rent * days_occupied / days_in_month # 464.51612903225805 print(f"{prorated:.2f}") ``` Program output — 464.52 The prora...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "464.52", "printed": "464.52", "notation": null}