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-0059904
Count the days between October 13, 2020 and July 22, 2021. In Python: ```python from datetime import date first = date(2020, 10, 13) second = date(2021, 7, 22) print((second - first).days) ``` Out = 282 There are 282 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "282", "printed": "282", "notation": null}
nlprog_det-setting-0059905
A $1,200 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? Code: ```python principal = 1200 annual_rate = 6 / 100 months = 36 interest = principal * annual_rate * months / 12 payment = (principal + interest) / months print(f"{payme...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "39.33", "printed": "39.33", "notation": null}
nlprog_det-setting-0059906
<|start|><|system|> You can call tools. Available tools: {"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "get_weather", "description": "Get ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"run_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
312
{"gold": "108", "printed": "108", "notation": null}
nlprog_det-setting-0059907
<|start|><|user|> Printing costs 15 cents a page. What does it cost to print 68 copies of a 42-page handout?<|eot|> <|assistant|> ```python pages = 42 copies = 68 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 428.4 print(f"{cost:.2f}") ``` Console output — 428.40 Printing costs $428.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Printing costs 15 cents a page. What does it cost to print 68 copies of a 42-page handout?" }, { "role": "assistant", "content": "```python\npages = 42\ncopies = 68\ncost_per_page = 0.15\ncost = pages * copies * cost_per_page # 428.4\nprint(f\"{cost:.2f}\")\n```\nC...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "428.40", "printed": "428.40", "notation": null}
nlprog_det-setting-0059908
Farah was born on February 17, 1979. How old is Farah on February 28, 2026? ```python from datetime import date born = date(1979, 2, 17) # datetime.date(1979, 2, 17) on = date(2026, 2, 28) # datetime.date(2026, 2, 28) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 47 print(age) ``` Prin...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0059909
<|start|><|user|> Printing costs 5 cents a page. What does it cost to print 114 copies of a 13-page handout?<|eot|> <|assistant|> ```python pages = 13 copies = 114 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 74.10000000000001 print(f"{cost:.2f}") ``` # printed: 74.10 The job costs $74.10.<|eot|> <|en...
chat
[ { "role": "user", "content": "Printing costs 5 cents a page. What does it cost to print 114 copies of a 13-page handout?" }, { "role": "assistant", "content": "```python\npages = 13\ncopies = 114\ncost_per_page = 0.05\ncost = pages * copies * cost_per_page # 74.10000000000001\nprint(f\"{cost:.2...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "74.10", "printed": "74.10", "notation": null}
nlprog_det-setting-0059910
A customer buys 1 pens at $6 each, 6 clipboards at $11 each, 5 toner kits at $24 each, 4 flash drives at $3 each and pays with $250. How much change is due? In code: ```python items = [(1, 6), (6, 11), (5, 24), (4, 3)] total = sum(q * p for q, p in items) # 204 paid = 250 change = paid - total # 46 print(change) ```...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0059911
How many units at $25 each (variable cost $19) cover $2,500 of fixed costs? In code: ```python import math fixed = 2500 price = 25 variable = 19 units = math.ceil(fixed / (price - variable)) # 417 print(units) ``` That prints 417. Break-even is 417 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "417", "printed": "417", "notation": null}
nlprog_det-setting-0059912
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> A $120 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 120 tip_rate = 18 / 100 # 0.18 people = 5 each = bill * (1 + tip_rate) / people # 28.32 print(f"{each:.2f}") ...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "A $120 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 120\ntip_rate = 18 / 100 ...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "28.32", "printed": "28.32", "notation": null}
nlprog_det-setting-0059913
A count moves from 2,500 to 2,875. By what percent did it change (use a minus sign for a drop)? Computation in Python: ```python old = 2500 new = 2875 change = (new - old) / old * 100 print(round(change)) ``` When run, it prints: 15 It changed by 15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0059914
An office budget of $8,000 has expenses of $3,275, $2,532. How much of the budget is left? As Python: ```python budget = 8000 expenses = [3275, 2532] left = budget - sum(expenses) # 2193 print(left) ``` (Result: 2193) The remaining budget is $2,193.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "2193", "printed": "2193", "notation": null}
nlprog_det-setting-0059915
<|start|><|system|> You may call the tools below. [{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "lookup_statute", "descript...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
307
{"gold": "126.36", "printed": "126.36", "notation": null}
nlprog_det-setting-0059917
A garage charges $3 an hour, never more than $15 a day. How much for 8 hours? Parking costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0059918
<|start|><|user|> Papers were served by mail on September 4, 2024. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2024, 9, 4) # datetime.date(2024, 9, 4) response_days = 28 mail_days = 3 due...
chat
[ { "role": "user", "content": "Papers were served by mail on September 4, 2024. A response is due 28 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(2024, 9, 4) # dateti...
nlprog_det
setting
original
null
deterministic
[]
[]
177
{"gold": "2024-10-05", "printed": "2024-10-05", "notation": null}
nlprog_det-setting-0059919
The firm was founded in 2009. How many years had passed by 2028? 19 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
22
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0059920
Count 10 days forward from July 25, 2022. What date is that? We can compute it in Python. ```python from datetime import date, timedelta start = date(2022, 7, 25) # datetime.date(2022, 7, 25) end = start + timedelta(days=10) # datetime.date(2022, 8, 4) print(end.isoformat()) ``` Running it prints: 2022-08-04 That d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2022-08-04", "printed": "2022-08-04", "notation": null}
nlprog_det-setting-0059922
Prorate $1,500 of monthly rent for 24 days of a 31-day month. Computing it: ```python rent = 1500 days_in_month = 31 days_occupied = 24 prorated = rent * days_occupied / days_in_month # 1161.2903225806451 print(f"{prorated:.2f}") ``` Printed result: 1161.29 The prorated rent is $1,161.29.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "1161.29", "printed": "1161.29", "notation": null}
nlprog_det-setting-0059923
<|start|><|user|> 3 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> award = 96000 fee = award * 25 / 100 # 24000.0 remaining = award - fee # 72000.0 per_client = remaining / 3 # 24000.0 print(f"{per_client:.2f}") Output...
chat
[ { "role": "user", "content": "3 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": " award = 96000\n fee = award * 25 / 100 # 24000.0\n remaining = award - fee # 72000.0\n per_client = remai...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "24000.00", "printed": "24000.00", "notation": null}
nlprog_det-setting-0059924
<|start|><|user|> Parking is $4 per hour with a daily maximum of $15. What do 3 hours cost?<|eot|> <|assistant|> ```python rate = 4 hours = 3 daily_max = 15 cost = min(rate * hours, daily_max) # 12 print(cost) ``` # output: 12 Parking costs $12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $4 per hour with a daily maximum of $15. What do 3 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 4\nhours = 3\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 12\nprint(cost)\n```\n# output: 12\n\nParking costs $12." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0059925
<|start|><|user|> If a 6-year limitations period starts on February 11, 2022, when does it end?<|eot|> <|assistant|> The period expires on February 11, 2028.<|eot|> <|end|>
chat
[ { "role": "user", "content": "If a 6-year limitations period starts on February 11, 2022, when does it end?" }, { "role": "assistant", "content": "The period expires on February 11, 2028." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "2028-02-11", "printed": "2028-02-11", "notation": null}
nlprog_det-setting-0059926
<|start|><|user|> 11 boxes hold 12 binders each. After 7 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 11 per_box = 12 given_away = 7 left = boxes * per_box - given_away # 125 print(left) ``` stdout = 125 That leaves 125 binders.<|eot|> <|end|>
chat
[ { "role": "user", "content": "11 boxes hold 12 binders each. After 7 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 11\nper_box = 12\ngiven_away = 7\nleft = boxes * per_box - given_away # 125\nprint(left)\n```\nstdout = 125\n\nThat leaves 125 binder...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "125", "printed": "125", "notation": null}
nlprog_det-setting-0059927
<|start|><|user|> At $0.70 per mile, what is the reimbursement for 413 miles?<|eot|> <|assistant|> miles = 413 rate = 0.7 reimbursement = miles * rate # 289.09999999999997 print(f"{reimbursement:.2f}") Result — 289.10 The reimbursement is $289.10.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.70 per mile, what is the reimbursement for 413 miles?" }, { "role": "assistant", "content": " miles = 413\n rate = 0.7\n reimbursement = miles * rate # 289.09999999999997\n print(f\"{reimbursement:.2f}\")\nResult — 289.10\n\nThe reimbursement is $...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "289.10", "printed": "289.10", "notation": null}
nlprog_det-setting-0059928
<|start|><|user|> With $4,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> revenue = 9000 costs = 4000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 55.55555555555556 print(round(margin, 1)) Run output — 55.6 Pro...
chat
[ { "role": "user", "content": "With $4,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": " revenue = 9000\n costs = 4000\n profit = revenue - costs # 5000\n margin = profit / revenue * 100 # 55.55555555...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "55.6", "printed": "55.6", "notation": null}
nlprog_det-setting-0059929
How many minutes pass from 8:33 AM to 1:42 PM on the same day? It is 309 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "309", "printed": "309", "notation": null}
nlprog_det-setting-0059930
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "business_d...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code...
nlprog_det
setting
original
null
deterministic
[]
[]
305
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0059931
<|start|><|system|> You can call tools. Available tools: {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}} {"name": "math_engine", "description": "Runs a short Python snippet and returns what it p...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"math_engine\", \"descrip...
nlprog_det
setting
original
null
deterministic
[]
[]
274
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0059932
<|start|><|system|> You may call the tools below. [{"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> A $240 dinner bi...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
238
{"gold": "69.00", "printed": "69.00", "notation": null}
nlprog_det-setting-0059933
How many meters are in 65.3 kilometers? Let the code do the arithmetic: ```python km = 65.3 meters = km * 1000 # 65300.0 print(round(meters)) ``` (Result: 65300) That is 65,300 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "65300", "printed": "65300", "notation": null}
nlprog_det-setting-0059934
A storeroom has 1067 scissors. The office uses 16 a day. How many are left after 10 days? Python does the arithmetic: ```python stock = 1067 per_day = 16 days = 10 left = stock - per_day * days # 907 print(left) ``` # stdout: 907 907 scissors are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "907", "printed": "907", "notation": null}
nlprog_det-setting-0059935
<|start|><|user|> A garage charges $5 an hour, never more than $18 a day. How much for 7 hours?<|eot|> <|assistant|> ```python rate = 5 hours = 7 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` Output of the run — 18 Parking costs $18.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $5 an hour, never more than $18 a day. How much for 7 hours?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 7\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\nOutput of the run — 18\n\nParking costs ...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0059936
Convert 21.7 km to meters. 21,700 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
20
{"gold": "21700", "printed": "21700", "notation": null}
nlprog_det-setting-0059937
<|start|><|user|> One can of paint covers 300 square feet. How many cans are needed for 245 square feet of wall?<|eot|> <|assistant|> 1 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 300 square feet. How many cans are needed for 245 square feet of wall?" }, { "role": "assistant", "content": "1 cans are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0059938
<|start|><|user|> A 5-day trip pays $64 a day for meals and $110 a night for lodging (4 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 5 meal_rate = 64 lodging_rate = 110 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 760 print(total) ``` Run it and it prints 760...
chat
[ { "role": "user", "content": "A 5-day trip pays $64 a day for meals and $110 a night for lodging (4 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 5\nmeal_rate = 64\nlodging_rate = 110\nnights = days - 1 # 4\ntotal = days * meal_rate + nights * lo...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "760", "printed": "760", "notation": null}
nlprog_det-setting-0059939
<|start|><|user|> How many of 96 votes make 60% (round up)?<|eot|> <|assistant|> ```python import math voters = 96 needed = math.ceil(voters * 60 / 100) # 58 print(needed) ``` Executing it gives 58, as expected. At least 58 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 96 votes make 60% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 96\nneeded = math.ceil(voters * 60 / 100) # 58\nprint(needed)\n```\nExecuting it gives 58, as expected.\n\nAt least 58 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "58", "printed": "58", "notation": null}
nlprog_det-setting-0059940
<|start|><|user|> The landlord deducts $60 from a $2,500 deposit. What is returned to the tenant?<|eot|> <|assistant|> The refund is $2,440.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $60 from a $2,500 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "The refund is $2,440." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "2440", "printed": "2440", "notation": null}
nlprog_det-setting-0059942
At a 5% tax rate, what is the tax on $382.27? The program: ```python price = 382.27 tax_rate = 5 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` Run result = 19.11 $19.11 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "19.11", "printed": "19.11", "notation": null}
nlprog_det-setting-0059943
<|start|><|user|> The rules require 1/3 of 36 members (round up) to be present. How many is that?<|eot|> <|assistant|> 12 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 1/3 of 36 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "12 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0059944
218 volunteers are split into 4 equal teams. How many are on each team, and how many are left over? Programmatically: ```python total = 218 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Run output: 54 each, 2 left over 54 each, 2 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "54 each, 2 left over", "printed": "54 each, 2 left over", "notation": null}
nlprog_det-setting-0059945
<|start|><|user|> A water bill is $20 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 4 thousand gallons?<|eot|> <|assistant|> The bill is $24.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A water bill is $20 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 4 thousand gallons?" }, { "role": "assistant", "content": "The bill is $24.75." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "24.75", "printed": "24.75", "notation": null}
nlprog_det-setting-0059946
<|start|><|user|> A recipe for 8 people uses 240 grams of rice. How many grams are needed for 10 people?<|eot|> <|assistant|> ```python grams = 240 serves = 8 needed_for = 10 scaled = grams * needed_for // serves print(scaled) ``` The interpreter prints: 300 Use 300 g of rice.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 8 people uses 240 grams of rice. How many grams are needed for 10 people?" }, { "role": "assistant", "content": "```python\ngrams = 240\nserves = 8\nneeded_for = 10\nscaled = grams * needed_for // serves\nprint(scaled)\n```\nThe interpreter prints: 300\...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0059947
One can of paint covers 400 square feet. How many cans are needed for 650 square feet of wall? Code: ```python import math area = 650 coverage = 400 cans = math.ceil(area / coverage) print(cans) ``` The code prints: 2 Buy 2 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0059948
Tobias earns a 2% commission on $93,980 of sales. What is the commission? ```python sales = 93980 rate = 2 / 100 # 0.02 commission = sales * rate # 1879.6000000000001 print(f"{commission:.2f}") ``` The interpreter prints: 1879.60 Tobias earns $1,879.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1879.60", "printed": "1879.60", "notation": null}
nlprog_det-setting-0059949
A service costs $29 a month or $324 a year. How much does the yearly plan save over 12 monthly payments? One way, in code: ```python monthly = 29 yearly = 324 savings = monthly * 12 - yearly # 24 print(savings) ``` Run output — 24 The annual plan saves $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0059950
<|start|><|user|> With $8,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 9000 costs = 8000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 11.11111111111111 print(round(margin, 1)) ``` Printed — 11.1 The margin i...
chat
[ { "role": "user", "content": "With $8,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 9000\ncosts = 8000\nprofit = revenue - costs # 1000\nmargin = profit / revenue * 100 # 11.1111111111111...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0059951
<|start|><|user|> How many weekdays (Monday to Friday) fall after July 4, 2022 up to and including July 25, 2022?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2022, 7, 4) end = date(2022, 7, 25) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).w...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after July 4, 2022 up to and including July 25, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 7, 4)\nend = date(2022, 7, 25)\ncount = 0\nfor k in range(1, (e...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0059952
Scale 100 g of rice from 2 servings to 8 servings. Python does the arithmetic: ```python grams = 100 serves = 2 needed_for = 8 scaled = grams * needed_for // serves # 400 print(scaled) ``` When run, it prints 400. Use 400 g of rice.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0059953
<|start|><|user|> Counting the first and last day, how many days are there from July 17, 2023 through July 30, 2023?<|eot|> <|assistant|> ```python from datetime import date first = date(2023, 7, 17) last = date(2023, 7, 30) days = (last - first).days + 1 print(days) ``` The program outputs: 14 That is 14 days.<|eot|>...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from July 17, 2023 through July 30, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2023, 7, 17)\nlast = date(2023, 7, 30)\ndays = (last - first).days + 1\nprint...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0059954
Scale 100 g of lentils from 6 servings to 3 servings. Use 50 g of lentils.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0059955
What does $5,000 grow to in 2 years at 5% annual compounding? The computation: ```python principal = 5000 rate = 5 / 100 # 0.05 years = 2 value = principal * (1 + rate) ** years # 5512.5 print(f"{value:.2f}") ``` On running, it outputs 5512.50. It is worth $5,512.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "5512.50", "printed": "5512.50", "notation": null}
nlprog_det-setting-0059956
How much sales tax is charged on a $435.03 purchase at 6%? The tax is $26.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "26.10", "printed": "26.10", "notation": null}
nlprog_det-setting-0059957
<|start|><|user|> A $2,500 security deposit has deductions of $85. How much is refunded?<|eot|> <|assistant|> deposit = 2500 deductions = [85] refund = deposit - sum(deductions) # 2415 print(refund) (Output: 2415) The refund is $2,415.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $2,500 security deposit has deductions of $85. How much is refunded?" }, { "role": "assistant", "content": " deposit = 2500\n deductions = [85]\n refund = deposit - sum(deductions) # 2415\n print(refund)\n(Output: 2415)\n\nThe refund is $2,415." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "2415", "printed": "2415", "notation": null}
nlprog_det-setting-0059958
<|start|><|user|> An office budget of $12,000 has expenses of $1,690, $3,426. How much of the budget is left?<|eot|> <|assistant|> budget = 12000 expenses = [1690, 3426] left = budget - sum(expenses) # 6884 print(left) The run gives 6884, as expected. $6,884 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $12,000 has expenses of $1,690, $3,426. How much of the budget is left?" }, { "role": "assistant", "content": " budget = 12000\n expenses = [1690, 3426]\n left = budget - sum(expenses) # 6884\n print(left)\nThe run gives 6884, as exp...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "6884", "printed": "6884", "notation": null}
nlprog_det-setting-0059959
<|start|><|user|> 3 books come back 13 days late, at $0.50 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.5 days_late = 13 books = 3 fine = per_day * days_late * books # 19.5 print(f"{fine:.2f}") ``` Execution prints 19.50, as expected. $19.50 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 books come back 13 days late, at $0.50 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.5\ndays_late = 13\nbooks = 3\nfine = per_day * days_late * books # 19.5\nprint(f\"{fine:.2f}\")\n```\nExecution prints 19.50, as exp...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "19.50", "printed": "19.50", "notation": null}
nlprog_det-setting-0059960
Find the mean of these test scores: 55, 99, 71, 61 and 79. Script: ```python scores = [55, 99, 71, 61, 79] average = sum(scores) // len(scores) # 73 print(average) ``` Executing it gives: 73 The average score is 73.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0059961
How long, in days, is it from February 26, 2022 until July 27, 2022? The program: ```python from datetime import date first = date(2022, 2, 26) # datetime.date(2022, 2, 26) second = date(2022, 7, 27) # datetime.date(2022, 7, 27) print((second - first).days) ``` Python prints: 151 It is 151 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "151", "printed": "151", "notation": null}
nlprog_det-setting-0059962
<|start|><|system|> Available functions (JSON Schema): [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "compute", "description": "Executes a Python program and returns its output.", "...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"compute\", \"description\...
nlprog_det
setting
original
null
deterministic
[]
[]
303
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0059963
Equipment costs $45,000, has a salvage value of $3,000, and a useful life of 3 years. What is the straight-line depreciation per year? Python version: ```python cost = 45000 salvage = 3000 years = 3 per_year = (cost - salvage) / years # 14000.0 print(f"{per_year:.2f}") ``` (Out: 14000.00) $14,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "14000.00", "printed": "14000.00", "notation": null}
nlprog_det-setting-0059964
<|start|><|user|> Filing fees are $35 per document. What do 9 filings cost?<|eot|> <|assistant|> ```python fee = 35 filings = 9 total = fee * filings # 315 print(total) ``` Shell output — 315 $315 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $35 per document. What do 9 filings cost?" }, { "role": "assistant", "content": "```python\nfee = 35\nfilings = 9\ntotal = fee * filings # 315\nprint(total)\n```\nShell output — 315\n\n$315 in filing fees." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "315", "printed": "315", "notation": null}
nlprog_det-setting-0059966
A $3,600 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? The Python version: ```python principal = 3600 annual_rate = 8 / 100 # 0.08 months = 36 interest = principal * annual_rate * months / 12 # 864.0 payment = (principal + in...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "124.00", "printed": "124.00", "notation": null}
nlprog_det-setting-0059967
<|start|><|user|> Tariq was born on August 25, 1995. How old is Tariq on December 14, 2021?<|eot|> <|assistant|> ```python from datetime import date born = date(1995, 8, 25) on = date(2021, 12, 14) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) print(age) ``` Console: 26 The age is 26 years....
chat
[ { "role": "user", "content": "Tariq was born on August 25, 1995. How old is Tariq on December 14, 2021?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1995, 8, 25)\non = date(2021, 12, 14)\nage = on.year - born.year - ((on.month, on.day) < (born.month, b...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0059968
<|start|><|user|> 4 hours of work at $300 an hour: what is the total charge?<|eot|> <|assistant|> ```python hours = 4 rate = 300 bill = hours * rate # 1200 print(f"{bill:.2f}") ``` The interpreter prints 1200.00. That comes to $1,200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 hours of work at $300 an hour: what is the total charge?" }, { "role": "assistant", "content": "```python\nhours = 4\nrate = 300\nbill = hours * rate # 1200\nprint(f\"{bill:.2f}\")\n```\nThe interpreter prints 1200.00.\n\nThat comes to $1,200.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0059969
How much sales tax is charged on a $125.48 purchase at 5%? Set it up in Python: ```python price = 125.48 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 6.274000000000001 print(f"{tax:.2f}") ``` (stdout: 6.27) The tax is $6.27.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "6.27", "printed": "6.27", "notation": null}
nlprog_det-setting-0059970
Copies cost $15 plus $0.10 for each page beyond 20. How much for 9 pages? As Python: ```python pages = 9 base = 15 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 15.0 print(f"{cost:.2f}") ``` The program prints: 15.00 The copy costs $15.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0059971
<|start|><|user|> A jacket costs $60. It is 40% off. What is the sale price?<|eot|> <|assistant|> ```python price = 60 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 36.0 print(f"{sale_price:.2f}") ``` Out: 36.00 The sale price is $36.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A jacket costs $60. It is 40% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 60\ndiscount = 40 / 100 # 0.4\nsale_price = price * (1 - discount) # 36.0\nprint(f\"{sale_price:.2f}\")\n```\nOut:\n36.00\n\nThe sale price is $36....
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0059972
A measure needs at least 67% of 95 votes. How many votes is that, rounded up? Translated to Python: ```python import math voters = 95 needed = math.ceil(voters * 67 / 100) # 64 print(needed) ``` # output: 64 At least 64 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "64", "printed": "64", "notation": null}
nlprog_det-setting-0059973
<|start|><|system|> You may call the tools below. {"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "translate", "description": "Translat...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"scr...
nlprog_det
setting
original
null
deterministic
[]
[]
302
{"gold": "31.88", "printed": "31.88", "notation": null}
nlprog_det-setting-0059974
What is a 25% tip on a $15.31 bill? As Python: bill = 15.31 tip_rate = 25 / 100 tip = bill * tip_rate print(f"{tip:.2f}") Output: 3.83 Leave $3.83.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "3.83", "printed": "3.83", "notation": null}
nlprog_det-setting-0059975
<|start|><|user|> 378 files go into boxes of 25. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 378 per_box = 25 boxes = math.ceil(files / per_box) # 16 print(boxes) ``` # stdout: 16 It takes 16 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "378 files go into boxes of 25. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 378\nper_box = 25\nboxes = math.ceil(files / per_box) # 16\nprint(boxes)\n```\n# stdout: 16\n\nIt takes 16 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0059976
At 45 miles per hour, how many minutes does a 225-mile trip take? One way, in code: ```python distance = 225 speed = 45 minutes = distance / speed * 60 # 300.0 print(round(minutes)) ``` The program prints 300. 300 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0059977
A 26 lb package ships at $5 base plus $2.00/lb. What is the charge? A Python solution: ```python base = 5 per_pound = 2.0 weight = 26 cost = base + per_pound * weight # 57.0 print(f"{cost:.2f}") ``` Execution result: 57.00 Shipping costs $57.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "57.00", "printed": "57.00", "notation": null}
nlprog_det-setting-0059978
A deposition lasted 4 hours and 50 minutes. How many minutes is that? A short script: ```python hours = 4 minutes = 50 total_minutes = hours * 60 + minutes # 290 print(total_minutes) ``` # run result: 290 That is 290 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "290", "printed": "290", "notation": null}
nlprog_det-setting-0059979
To read 240 pages in 15 days, how many pages per day are needed? The program: ```python pages = 240 days = 15 per_day = pages // days # 16 print(per_day) ``` When run, it prints 16. 16 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0059980
Meals are $79 per day and lodging $175 per night. What is the allowance for 9 days and 8 nights? In Python: ```python days = 9 meal_rate = 79 lodging_rate = 175 nights = days - 1 total = days * meal_rate + nights * lodging_rate print(total) ``` This prints 2111. The allowance is $2,111.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "2111", "printed": "2111", "notation": null}
nlprog_det-setting-0059981
<|start|><|user|> Priya was born on May 6, 1974. How old is Priya on July 1, 2024?<|eot|> <|assistant|> ```python from datetime import date born = date(1974, 5, 6) # datetime.date(1974, 5, 6) on = date(2024, 7, 1) # datetime.date(2024, 7, 1) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) #...
chat
[ { "role": "user", "content": "Priya was born on May 6, 1974. How old is Priya on July 1, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1974, 5, 6) # datetime.date(1974, 5, 6)\non = date(2024, 7, 1) # datetime.date(2024, 7, 1)\nage = on.year - bo...
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0059982
How many units at $15 each (variable cost $5) cover $2,500 of fixed costs? Script: ```python import math fixed = 2500 price = 15 variable = 5 units = math.ceil(fixed / (price - variable)) # 250 print(units) ``` Python prints 250, as expected. 250 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0059983
To read 399 pages in 7 days, how many pages per day are needed? As Python: pages = 399 days = 7 per_day = pages // days # 57 print(per_day) When run, it prints: 57 57 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0059984
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> Filing fees are $35 per document. What do 17 filings cost?<|eot|> <|assistant|> ```python fee = 35 filings = 17 total = fee * filings print(total) ``` stdout — 595 The filings cost $595 in all.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "Filing fees are $35 per document. What do 17 filings cost?" }, { "role": "assistant", "content": "```python\nfee = 35\nfilings = 17\ntotal = fee * filings\nprint(total)\n```\nstdout — 595\...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "595", "printed": "595", "notation": null}
nlprog_det-setting-0059985
How much sales tax is charged on a $230.19 purchase at 7%? A short script: ```python price = 230.19 tax_rate = 7 / 100 # 0.07 tax = price * tax_rate # 16.113300000000002 print(f"{tax:.2f}") ``` When run, it prints 16.11, as expected. $16.11 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "16.11", "printed": "16.11", "notation": null}
nlprog_det-setting-0059986
Printing costs 8 cents a page. What does it cost to print 86 copies of a 12-page handout? Here is a short program for it. ```python pages = 12 copies = 86 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 82.56 print(f"{cost:.2f}") ``` (Printed: 82.56) The job costs $82.56.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "82.56", "printed": "82.56", "notation": null}
nlprog_det-setting-0059987
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> Pack A has 10 items for $3.58. Pack B has 20 items for $29.39. Which has the lower price per item?<|eot|> <|assistant|> A has the lower unit price.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "Pack A has 10 items for $3.58. Pack B has 20 items for $29.39. Which has the lower price per item?" }, { "role": "assistant", "content": "A has the lower unit price." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
61
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0059988
<|start|><|user|> A client paid a $5,000 retainer. The firm has billed 6 hours at $250 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 5000 hours = 6 rate = 250 left = retainer - hours * rate # 3500 print(left) ``` The program prints 3500. $3,500 of the retainer is left.<|eot|> <...
chat
[ { "role": "user", "content": "A client paid a $5,000 retainer. The firm has billed 6 hours at $250 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 5000\nhours = 6\nrate = 250\nleft = retainer - hours * rate # 3500\nprint(left)\n```\nThe p...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "3500", "printed": "3500", "notation": null}
nlprog_det-setting-0059989
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> 5 claimants share a $84,000 settlement equally. What is each share?<|eot|> <|assistant|> settlement = 84000 parties = 5 share = settlement // parties # 16800 print(share) It outputs: 16800 Each share is $16,800.<|eot|> <|end|...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "5 claimants share a $84,000 settlement equally. What is each share?" }, { "role": "assistant", "content": " settlement = 84000\n parties = 5\n share = settlement // par...
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "16800", "printed": "16800", "notation": null}
nlprog_det-setting-0059990
What is a 25% tip on a $75.26 bill? Let's compute it with Python. ```python bill = 75.26 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 18.815 print(f"{tip:.2f}") ``` Python prints: 18.82 The tip is $18.82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "18.82", "printed": "18.82", "notation": null}
nlprog_det-setting-0059991
<|start|><|system|> Tools you may use: {"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> How many weekdays...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
279
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0059992
Prorate $900 of monthly rent for 19 days of a 30-day month. In Python: ```python rent = 900 days_in_month = 30 days_occupied = 19 prorated = rent * days_occupied / days_in_month # 570.0 print(f"{prorated:.2f}") ``` (Out: 570.00) The tenant owes $570.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "570.00", "printed": "570.00", "notation": null}
nlprog_det-setting-0059993
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> How many days are there from October 11, 2024 to April 11, 2025?<|eot|> <|assistant|> from datetime import date first = date(2024, 10, 11) # datetime.date(2024, 10, 11) second = date(2025, 4, 11) # datetime.date(2025, 4, 11) print((second - ...
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "How many days are there from October 11, 2024 to April 11, 2025?" }, { "role": "assistant", "content": " from datetime import date\n first = date(2024, 10, 11) # datetime.date(2024, 10, ...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "182", "printed": "182", "notation": null}
nlprog_det-setting-0059994
<|start|><|user|> A 24-month warranty starts on May 25, 2025. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2025, 5, 25) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat(...
chat
[ { "role": "user", "content": "A 24-month warranty starts on May 25, 2025. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2025, 5, 25)\nmonths = 24\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.yea...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2027-05-25", "printed": "2027-05-25", "notation": null}
nlprog_det-setting-0059996
Malik buys 10 boxes of 10 calendars each and gives away 19 calendars. How many calendars are left? Python does the arithmetic: boxes = 10 per_box = 10 given_away = 19 left = boxes * per_box - given_away print(left) Interpreter output — 81 81 calendars are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "81", "printed": "81", "notation": null}
nlprog_det-setting-0059997
An attorney bills 1.5 hours at $225 per hour. What is the bill? Here's the code. hours = 1.5 rate = 225 bill = hours * rate # 337.5 print(f"{bill:.2f}") When run, it prints 337.50. The bill is $337.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "337.50", "printed": "337.50", "notation": null}
nlprog_det-setting-0059998
<|start|><|system|> You have access to these functions: {"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> A 260-mile drive...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
203
{"gold": "390", "printed": "390", "notation": null}
nlprog_det-setting-0059999
6 boxes hold 8 rulers each. After 12 are handed out, how many are left? The Python version: ```python boxes = 6 per_box = 8 given_away = 12 left = boxes * per_box - given_away # 36 print(left) ``` Execution result — 36 36 rulers are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0060000
<|start|><|user|> A 195-page report must be reviewed in 15 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 195 days = 15 per_day = pages // days # 13 print(per_day) ``` # output: 13 That is 13 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 195-page report must be reviewed in 15 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 195\ndays = 15\nper_day = pages // days # 13\nprint(per_day)\n```\n# output: 13\n\nThat is 13 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0060001
Convert 1,493 USD to CAD at 1 USD = 1.27 CAD. Program: amount = 1493 rate = 1.27 converted = amount * rate # 1896.1100000000001 print(f"{converted:.2f}") # execution result: 1896.11 That is 1,896.11 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1896.11", "printed": "1896.11", "notation": null}
nlprog_det-setting-0060002
Goods bought on April 25, 2020 carry a 6-month warranty. When does it expire? In code: ```python from datetime import date start = date(2020, 4, 25) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Printed: 2020-1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2020-10-25", "printed": "2020-10-25", "notation": null}
nlprog_det-setting-0060003
<|start|><|system|> Available functions (JSON Schema): [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "calc", "description": ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
328
{"gold": "900.00", "printed": "900.00", "notation": null}
nlprog_det-setting-0060004
<|start|><|system|> Functions: [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "py_exec", "description": "Runs a short Python ...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", \"section\"]}...
nlprog_det
setting
original
null
deterministic
[]
[]
307
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0060006
A recipe for 8 people uses 240 grams of lentils. How many grams are needed for 2 people? A Python solution: grams = 240 serves = 8 needed_for = 2 scaled = grams * needed_for // serves # 60 print(scaled) (Printed: 60) Use 60 g of lentils.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0060007
<|start|><|user|> 32 of 40 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 32 total = 40 percent = present / total * 100 # 80.0 print(round(percent, 1)) ``` Executing it gives: 80.0 Attendance was 80.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "32 of 40 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 32\ntotal = 40\npercent = present / total * 100 # 80.0\nprint(round(percent, 1))\n```\nExecuting it gives: 80.0\n\nAttendance was 80.0%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "80.0", "printed": "80.0", "notation": null}
nlprog_det-setting-0060008
<|start|><|system|> You can call tools. Available tools: [{"name": "eval_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"]}}, {"name":...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"eval_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python ...
nlprog_det
setting
original
null
deterministic
[]
[]
388
{"gold": "70.80", "printed": "70.80", "notation": null}
nlprog_det-setting-0060010
At $0.58 per mile, what is the reimbursement for 322 miles? One way, in code: ```python miles = 322 rate = 0.58 reimbursement = miles * rate # 186.76 print(f"{reimbursement:.2f}") ``` When run, it prints 186.76, as expected. Chen is owed $186.76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "186.76", "printed": "186.76", "notation": null}