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-0064266
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "calc", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snip...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calc\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"descript...
nlprog_det
setting
original
null
deterministic
[]
[]
294
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0064267
The rules require 3/5 of 60 members (round up) to be present. How many is that? ```python import math members = 60 quorum = math.ceil(members * 3 / 5) # 36 print(quorum) ``` (Printed: 36) That is 36 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0064268
<|start|><|user|> How many units at $25 each (variable cost $15) cover $2,500 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 2500 price = 25 variable = 15 units = math.ceil(fixed / (price - variable)) # 250 print(units) ``` # stdout: 250 Break-even is 250 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $25 each (variable cost $15) cover $2,500 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 2500\nprice = 25\nvariable = 15\nunits = math.ceil(fixed / (price - variable)) # 250\nprint(units)\n```\n# stdout: 250...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0064269
A service costs $12 a month or $120 a year. How much does the yearly plan save over 12 monthly payments? Python, step by step: monthly = 12 yearly = 120 savings = monthly * 12 - yearly # 24 print(savings) That prints: 24 The annual plan saves $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0064270
<|start|><|user|> 3 boxes hold 8 scissors each. After 2 are handed out, how many are left?<|eot|> <|assistant|> boxes = 3 per_box = 8 given_away = 2 left = boxes * per_box - given_away # 22 print(left) The program outputs 22. That leaves 22 scissors.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 boxes hold 8 scissors each. After 2 are handed out, how many are left?" }, { "role": "assistant", "content": " boxes = 3\n per_box = 8\n given_away = 2\n left = boxes * per_box - given_away # 22\n print(left)\nThe program outputs 22.\n\nThat leaves...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0064271
<|start|><|user|> A measure needs at least 75% of 97 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 97 needed = math.ceil(voters * 75 / 100) # 73 print(needed) ``` It prints 73. 73 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 75% of 97 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 97\nneeded = math.ceil(voters * 75 / 100) # 73\nprint(needed)\n```\nIt prints 73.\n\n73 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0064272
<|start|><|user|> Starting with 362 keyboards and using 12 per day, how many remain after 13 days?<|eot|> <|assistant|> 206 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 362 keyboards and using 12 per day, how many remain after 13 days?" }, { "role": "assistant", "content": "206 remain." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "206", "printed": "206", "notation": null}
nlprog_det-setting-0064273
Scale 200 g of sugar from 8 servings to 4 servings. Set it up in Python: ```python grams = 200 serves = 8 needed_for = 4 scaled = grams * needed_for // serves # 100 print(scaled) ``` Output of the run — 100 100 grams of sugar are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0064274
Find the mean of these test scores: 72, 74, 68, 61, 53 and 56. We can compute it in Python. ```python scores = [72, 74, 68, 61, 53, 56] average = sum(scores) // len(scores) # 64 print(average) ``` Out — 64 The mean is 64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "64", "printed": "64", "notation": null}
nlprog_det-setting-0064276
Counting the first and last day, how many days are there from May 1, 2024 through May 6, 2024? Set it up in Python: from datetime import date first = date(2024, 5, 1) # datetime.date(2024, 5, 1) last = date(2024, 5, 6) # datetime.date(2024, 5, 6) days = (last - first).days + 1 # 6 print(days) Co...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0064277
Equal monthly payments repay $3,600 plus 5% simple yearly interest over 36 months. How large is a payment? ```python principal = 3600 annual_rate = 5 / 100 # 0.05 months = 36 interest = principal * annual_rate * months / 12 # 540.0 payment = (principal + interest) / months # 115.0 print(f"{payment:.2f}") ``` (stdou...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "115.00", "printed": "115.00", "notation": null}
nlprog_det-setting-0064278
Split $684 between Goran and Zainab in the ratio 1 to 2. What is Goran's share? Here is the program. ```python total = 684 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 228 print(share_a) ``` Output: 228 Goran's share is $228.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "228", "printed": "228", "notation": null}
nlprog_det-setting-0064279
A 4% increase is applied to $1,800 monthly rent. What is the new amount? A Python solution: ```python rent = 1800 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 1872.0 print(f"{new_rent:.2f}") ``` The run gives 1872.00. The new rent is $1,872.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1872.00", "printed": "1872.00", "notation": null}
nlprog_det-setting-0064280
Pilar was born on November 20, 1974. How old is Pilar on June 18, 2022? ```python from datetime import date born = date(1974, 11, 20) # datetime.date(1974, 11, 20) on = date(2022, 6, 18) # datetime.date(2022, 6, 18) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 47 print(age) ``` That p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0064282
<|start|><|user|> A trial runs from January 8, 2025 to January 29, 2025, counting both days. How many calendar days is that?<|eot|> <|assistant|> from datetime import date first = date(2025, 1, 8) # datetime.date(2025, 1, 8) last = date(2025, 1, 29) # datetime.date(2025, 1, 29) days = (last - first).d...
chat
[ { "role": "user", "content": "A trial runs from January 8, 2025 to January 29, 2025, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": " from datetime import date\n first = date(2025, 1, 8) # datetime.date(2025, 1, 8)\n last = date(2025, 1, 29) ...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0064283
A clerk's office charges $90 for each filing. Leon submits 5 filings. What is the total fee? A few lines of Python do it: ```python fee = 90 filings = 5 total = fee * filings # 450 print(total) ``` Interpreter output: 450 The filings cost $450 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0064284
<|start|><|system|> Tool definitions: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "calc", "description": "Use for arithmetic and date m...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\"...
nlprog_det
setting
original
null
deterministic
[]
[]
292
{"gold": "88", "printed": "88", "notation": null}
nlprog_det-setting-0064285
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> 3 clients win $60,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 60000 fee = award * 40 / 100 remaining = award - fee per_client = remaining / 3 print(f"{per_client:.2f}") ``` The ...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "3 clients win $60,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 60000\nfee = award * 40 / 100\...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "12000.00", "printed": "12000.00", "notation": null}
nlprog_det-setting-0064286
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> Count the days between November 13, 2026 and April 24, 2027.<|eot|> <|assistant|> ```python from datetime import date first = date(2026, 11, 13) second = date(2027, 4, 24) print((second - first).days) ``` Printed result — 162 It is 162 days.<|eot|> <|...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "Count the days between November 13, 2026 and April 24, 2027." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2026, 11, 13)\nsecond = date(2027, ...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "162", "printed": "162", "notation": null}
nlprog_det-setting-0064287
<|start|><|system|> You can call tools. Available tools: [{"name": "eval_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> At a...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"eval_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"...
nlprog_det
setting
original
null
deterministic
[]
[]
224
{"gold": "17.19", "printed": "17.19", "notation": null}
nlprog_det-setting-0064288
Monthly rent is $1,500. A tenant moves in with 9 days left in a 31-day month. What is the prorated rent? Python version: ```python rent = 1500 days_in_month = 31 days_occupied = 9 prorated = rent * days_occupied / days_in_month print(f"{prorated:.2f}") ``` # run result: 435.48 The tenant owes $435.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "435.48", "printed": "435.48", "notation": null}
nlprog_det-setting-0064289
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> How many meters are in 54.5 kilometers?<|eot|> <|assistant|> ```python km = 54.5 meters = km * 1000 # 54500.0 print(round(meters)) ``` # out: 54500 54,500 m.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "How many meters are in 54.5 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 54.5\nmeters = km * 1000 # 54500.0\nprint(round(meters))\n```\n# out: 54500\n\n54,500 m." }...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "54500", "printed": "54500", "notation": null}
nlprog_det-setting-0064290
A 135-mile drive at a steady 45 mph takes how many minutes? In Python: ```python distance = 135 speed = 45 minutes = distance / speed * 60 # 180.0 print(round(minutes)) ``` Running it prints: 180 The trip takes 180 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0064291
<|start|><|user|> Convert 1,346 GBP to USD at 1 GBP = 0.74 USD.<|eot|> <|assistant|> amount = 1346 rate = 0.74 converted = amount * rate # 996.04 print(f"{converted:.2f}") The script prints: 996.04 It converts to 996.04 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 1,346 GBP to USD at 1 GBP = 0.74 USD." }, { "role": "assistant", "content": " amount = 1346\n rate = 0.74\n converted = amount * rate # 996.04\n print(f\"{converted:.2f}\")\nThe script prints: 996.04\n\nIt converts to 996.04 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "996.04", "printed": "996.04", "notation": null}
nlprog_det-setting-0064292
Walls total 1103 sq ft and each can covers 350 sq ft. How many cans should be bought? Python code: ```python import math area = 1103 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) ``` Out: 4 Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0064293
A $150 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share? Programmatically: ```python bill = 150 tip_rate = 15 / 100 # 0.15 people = 3 each = bill * (1 + tip_rate) / people # 57.5 print(f"{each:.2f}") ``` Running it prints 57.50. The share is $57.50 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "57.50", "printed": "57.50", "notation": null}
nlprog_det-setting-0064294
<|start|><|user|> Sales went from 2,000 to 1,900. What is the percent change?<|eot|> <|assistant|> ```python old = 2000 new = 1900 change = (new - old) / old * 100 # -5.0 print(round(change)) ``` # run result: -5 The change is -5%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 2,000 to 1,900. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 2000\nnew = 1900\nchange = (new - old) / old * 100 # -5.0\nprint(round(change))\n```\n# run result: -5\n\nThe change is -5%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "-5", "printed": "-5", "notation": null}
nlprog_det-setting-0064295
Printing costs 15 cents a page. What does it cost to print 190 copies of a 50-page handout? Let the code do the arithmetic: pages = 50 copies = 190 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 1425.0 print(f"{cost:.2f}") On running, it outputs: 1425.00 Printing costs $1,425.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "1425.00", "printed": "1425.00", "notation": null}
nlprog_det-setting-0064296
4 runs at 200 calories each burn how many calories in total? per_session = 200 sessions = 4 total = per_session * sessions # 800 print(total) The printout reads 800. That burns 800 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0064297
<|start|><|user|> How many days are there from January 20, 2028 to July 12, 2028?<|eot|> <|assistant|> ```python from datetime import date first = date(2028, 1, 20) # datetime.date(2028, 1, 20) second = date(2028, 7, 12) # datetime.date(2028, 7, 12) print((second - first).days) ``` When run, it prints 174. It is 174...
chat
[ { "role": "user", "content": "How many days are there from January 20, 2028 to July 12, 2028?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2028, 1, 20) # datetime.date(2028, 1, 20)\nsecond = date(2028, 7, 12) # datetime.date(2028, 7, 12)\nprint((sec...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "174", "printed": "174", "notation": null}
nlprog_det-setting-0064298
Shipping costs $8 plus $2.00 per pound. What does a 14-pound parcel cost to ship? Computing it: ```python base = 8 per_pound = 2.0 weight = 14 cost = base + per_pound * weight # 36.0 print(f"{cost:.2f}") ``` The interpreter prints 36.00. The charge is $36.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0064299
What is the total rent on a 24-month lease at $975 a month? ```python monthly_rent = 975 months = 24 total = monthly_rent * months # 23400 print(total) ``` It prints 23400. In total, $23,400 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "23400", "printed": "23400", "notation": null}
nlprog_det-setting-0064300
<|start|><|user|> Each of Hana's runs burns 350 calories. How many calories over 6 runs?<|eot|> <|assistant|> per_session = 350 sessions = 6 total = per_session * sessions # 2100 print(total) Running it prints 2100, as expected. That burns 2100 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Hana's runs burns 350 calories. How many calories over 6 runs?" }, { "role": "assistant", "content": " per_session = 350\n sessions = 6\n total = per_session * sessions # 2100\n print(total)\nRunning it prints 2100, as expected.\n\nThat burns 21...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0064301
A service costs $9 a month or $90 a year. How much does the yearly plan save over 12 monthly payments? monthly = 9 yearly = 90 savings = monthly * 12 - yearly print(savings) Running it prints: 18 $18 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0064302
Which is cheaper per unit: 8 for $14.97 (A) or 30 for $15.81 (B)? Here is a short program for it. ```python pack_a = 14.97 / 8 # 1.87125 pack_b = 15.81 / 30 # 0.527 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Run output: B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0064303
33 badges cost $4 apiece. With 10% tax added, what is the total? Here is the program. ```python quantity = 33 unit_price = 4 subtotal = quantity * unit_price # 132 total = subtotal * (1 + 10 / 100) # 145.20000000000002 print(f"{total:.2f}") ``` The run gives 145.20, as expected. The total with tax is $145.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "145.20", "printed": "145.20", "notation": null}
nlprog_det-setting-0064304
Convert 3,488 EUR to USD at 1 EUR = 1.12 USD. A few lines of Python do it: ```python amount = 3488 rate = 1.12 converted = amount * rate # 3906.5600000000004 print(f"{converted:.2f}") ``` Executing it gives: 3906.56 It converts to 3,906.56 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "3906.56", "printed": "3906.56", "notation": null}
nlprog_det-setting-0064305
If a 90-minute appointment begins at 9:15 AM, what time does it finish? A short script: start = 9 * 60 + 15 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") On running, it outputs: 10:45 AM It ends at 10:45 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "10:45 AM", "printed": "10:45 AM", "notation": null}
nlprog_det-setting-0064306
What does $2,000 grow to in 3 years at 5% annual compounding? Let's compute it with Python. ```python principal = 2000 rate = 5 / 100 # 0.05 years = 3 value = principal * (1 + rate) ** years # 2315.2500000000005 print(f"{value:.2f}") ``` The code prints 2315.25. The balance is $2,315.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "2315.25", "printed": "2315.25", "notation": null}
nlprog_det-setting-0064307
A 3-day trip pays $74 a day for meals and $110 a night for lodging (2 nights). What is the total allowance? Translated to Python: ```python days = 3 meal_rate = 74 lodging_rate = 110 nights = days - 1 # 2 total = days * meal_rate + nights * lodging_rate # 442 print(total) ``` Python prints: 442 That comes to $442.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "442", "printed": "442", "notation": null}
nlprog_det-setting-0064308
Tobias was born on July 13, 1959. How old is Tobias on September 8, 2023? Here's the code. ```python from datetime import date born = date(1959, 7, 13) # datetime.date(1959, 7, 13) on = date(2023, 9, 8) # datetime.date(2023, 9, 8) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 64 print(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "64", "printed": "64", "notation": null}
nlprog_det-setting-0064309
<|start|><|user|> Kemal was born on May 4, 2000. How old is Kemal on December 13, 2025?<|eot|> <|assistant|> Kemal is 25.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Kemal was born on May 4, 2000. How old is Kemal on December 13, 2025?" }, { "role": "assistant", "content": "Kemal is 25." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0064310
A $2,400 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment? ```python principal = 2400 annual_rate = 8 / 100 # 0.08 months = 12 interest = principal * annual_rate * months / 12 # 192.0 payment = (principal + interest) / months # ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "216.00", "printed": "216.00", "notation": null}
nlprog_det-setting-0064311
Convert 3 h 36 min (the length of a hearing) to minutes. One way, in code: ```python hours = 3 minutes = 36 total_minutes = hours * 60 + minutes print(total_minutes) ``` (Console output: 216) That is 216 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "216", "printed": "216", "notation": null}
nlprog_det-setting-0064312
To read 306 pages in 6 days, how many pages per day are needed? The program: ```python pages = 306 days = 6 per_day = pages // days print(per_day) ``` # program output: 51 That is 51 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0064313
A shift runs from 11:32 AM to 1:46 PM. How long is it in minutes? Programmatically: start = 11 * 60 + 32 # 692 end = 13 * 60 + 46 # 826 print(end - start) Running this gives: 134 134 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "134", "printed": "134", "notation": null}
nlprog_det-setting-0064314
What simple interest does $12,000 earn at 5% a year over 6 years? As Python: ```python principal = 12000 rate = 5 / 100 # 0.05 years = 6 interest = principal * rate * years # 3600.0 print(f"{interest:.2f}") ``` The run gives: 3600.00 It earns $3,600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "3600.00", "printed": "3600.00", "notation": null}
nlprog_det-setting-0064315
6 claimants share a $36,000 settlement equally. What is each share? Here's the code. ```python settlement = 36000 parties = 6 share = settlement // parties # 6000 print(share) ``` (Execution result: 6000) Each share is $6,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "6000", "printed": "6000", "notation": null}
nlprog_det-setting-0064317
Each of Ana's bike rides burns 300 calories. How many calories over 4 bike rides? Python code: ```python per_session = 300 sessions = 4 total = per_session * sessions # 1200 print(total) ``` The printout reads: 1200 1200 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0064318
Printing costs 10 cents a page. What does it cost to print 10 copies of a 11-page handout? Python version: ```python pages = 11 copies = 10 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 11.0 print(f"{cost:.2f}") ``` Printed = 11.00 Printing costs $11.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "11.00", "printed": "11.00", "notation": null}
nlprog_det-setting-0064319
A customer buys 4 paper reams at $24 each, 2 ink cartridges at $10 each, 2 chairs at $27 each and pays with $200. How much change is due? In Python: ```python items = [(4, 24), (2, 10), (2, 27)] total = sum(q * p for q, p in items) # 170 paid = 200 change = paid - total # 30 print(change) ``` Execution prints: 30 $...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0064320
2 hours of work at $350 an hour: what is the total charge? We can compute it in Python. ```python hours = 2 rate = 350 bill = hours * rate # 700 print(f"{bill:.2f}") ``` Output — 700.00 That comes to $700.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "700.00", "printed": "700.00", "notation": null}
nlprog_det-setting-0064321
What day of the week is March 13, 1998? The Python version: ```python from datetime import date hearing = date(1998, 3, 13) # datetime.date(1998, 3, 13) print(hearing.strftime("%A")) ``` The code prints: Friday It is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0064322
<|start|><|user|> Each of Omar's swims burns 300 calories. How many calories over 6 swims?<|eot|> <|assistant|> ```python per_session = 300 sessions = 6 total = per_session * sessions # 1800 print(total) ``` Printed result — 1800 1800 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Omar's swims burns 300 calories. How many calories over 6 swims?" }, { "role": "assistant", "content": "```python\nper_session = 300\nsessions = 6\ntotal = per_session * sessions # 1800\nprint(total)\n```\nPrinted result — 1800\n\n1800 calories in total." ...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0064323
Scale 450 g of oats from 8 servings to 12 servings. Translated to Python: ```python grams = 450 serves = 8 needed_for = 12 scaled = grams * needed_for // serves # 675 print(scaled) ``` Out = 675 675 grams of oats are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "675", "printed": "675", "notation": null}
nlprog_det-setting-0064324
<|start|><|system|> You can call tools. Available tools: {"name": "code_runner", "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|...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"code_runner\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python sou...
nlprog_det
setting
original
null
deterministic
[]
[]
238
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0064325
<|start|><|user|> A water bill is $12 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 6 thousand gallons?<|eot|> <|assistant|> ```python base = 12 rate = 4.2 used = 6 free = 0 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") ``` # result: 37.20 The bill is $37.20.<|eot|> ...
chat
[ { "role": "user", "content": "A water bill is $12 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 6 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 12\nrate = 4.2\nused = 6\nfree = 0\nbill = base + rate * max(0, used - free)\nprint(f\"...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "37.20", "printed": "37.20", "notation": null}
nlprog_det-setting-0064326
<|start|><|user|> Parking is $5 per hour with a daily maximum of $20. What do 10 hours cost?<|eot|> <|assistant|> rate = 5 hours = 10 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) Python prints 20. Parking costs $20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $5 per hour with a daily maximum of $20. What do 10 hours cost?" }, { "role": "assistant", "content": " rate = 5\n hours = 10\n daily_max = 20\n cost = min(rate * hours, daily_max) # 20\n print(cost)\nPython prints 20.\n\nParking costs $20...
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0064327
The rules require 3/5 of 35 members (round up) to be present. How many is that? In code: ```python import math members = 35 quorum = math.ceil(members * 3 / 5) # 21 print(quorum) ``` Running this gives 21. 21 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0064328
<|start|><|system|> You may call the tools below. [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "python_exec", "description": "Executes Python code and returns s...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"python_exe...
nlprog_det
setting
original
null
deterministic
[]
[]
292
{"gold": "33.53", "printed": "33.53", "notation": null}
nlprog_det-setting-0064329
Sales went from 400 to 240. What is the percent change? Computing it: old = 400 new = 240 change = (new - old) / old * 100 # -40.0 print(round(change)) It prints -40, as expected. The change is -40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "-40", "printed": "-40", "notation": null}
nlprog_det-setting-0064330
<|start|><|user|> At an exchange rate of 1.12 USD per CHF, how many USD is 5,118 CHF?<|eot|> <|assistant|> That is 5,732.16 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.12 USD per CHF, how many USD is 5,118 CHF?" }, { "role": "assistant", "content": "That is 5,732.16 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "5732.16", "printed": "5732.16", "notation": null}
nlprog_det-setting-0064331
<|start|><|system|> You can call tools. Available tools: [{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> At 1% a month (simple...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
227
{"gold": "80.00", "printed": "80.00", "notation": null}
nlprog_det-setting-0064332
<|start|><|system|> You have access to these functions: [{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "business_days", "des...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
290
{"gold": "136", "printed": "136", "notation": null}
nlprog_det-setting-0064333
What average speed covers 192 miles in 2 hours? The average speed is 96 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
22
{"gold": "96", "printed": "96", "notation": null}
nlprog_det-setting-0064334
Water costs $18 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 10,000 gallons? Let the code do the arithmetic: base = 18 rate = 4.2 used = 10 free = 3 bill = base + rate * max(0, used - free) # 47.400000000000006 print(f"{bill:.2f}") Printed = 47.40 $47.40 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "47.40", "printed": "47.40", "notation": null}
nlprog_det-setting-0064335
25 cables cost $9 apiece. With 8% tax added, what is the total? Computing it: ```python quantity = 25 unit_price = 9 subtotal = quantity * unit_price # 225 total = subtotal * (1 + 8 / 100) # 243.00000000000003 print(f"{total:.2f}") ``` Console output: 243.00 The total with tax is $243.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "243.00", "printed": "243.00", "notation": null}
nlprog_det-setting-0064336
<|start|><|system|> Available functions (JSON Schema): [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\":...
nlprog_det
setting
original
null
deterministic
[]
[]
359
{"gold": "9 each, 4 left over", "printed": "9 each, 4 left over", "notation": null}
nlprog_det-setting-0064337
<|start|><|user|> A library charges $0.10 per book per day late. What is the fine for 2 books that are 9 days late?<|eot|> <|assistant|> ```python per_day = 0.1 days_late = 9 books = 2 fine = per_day * days_late * books print(f"{fine:.2f}") ``` The printout reads: 1.80 $1.80 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A library charges $0.10 per book per day late. What is the fine for 2 books that are 9 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.1\ndays_late = 9\nbooks = 2\nfine = per_day * days_late * books\nprint(f\"{fine:.2f}\")\n```\nThe printout...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1.80", "printed": "1.80", "notation": null}
nlprog_det-setting-0064338
Meals are $74 per day and lodging $140 per night. What is the allowance for 3 days and 2 nights? Set it up in Python: ```python days = 3 meal_rate = 74 lodging_rate = 140 nights = days - 1 total = days * meal_rate + nights * lodging_rate print(total) ``` Output: 502 That comes to $502.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "502", "printed": "502", "notation": null}
nlprog_det-setting-0064339
With 9 rows of 23 chairs and 12 empty chairs, how many chairs are taken? A Python solution: ```python rows = 9 per_row = 23 empty = 12 seated = rows * per_row - empty # 195 print(seated) ``` It prints 195. 195 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "195", "printed": "195", "notation": null}
nlprog_det-setting-0064340
A clerk's office charges $35 for each filing. Ada submits 19 filings. What is the total fee? Here is a short program for it. ```python fee = 35 filings = 19 total = fee * filings # 665 print(total) ``` Running this gives 665. The total fee is $665.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "665", "printed": "665", "notation": null}
nlprog_det-setting-0064342
<|start|><|user|> Walls total 388 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 388 coverage = 350 cans = math.ceil(area / coverage) # 2 print(cans) ``` The run gives 2, as expected. Buy 2 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 388 sq ft and each can covers 350 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 388\ncoverage = 350\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nThe run gives 2, as expected.\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0064343
Rent of $900 goes up 4%. What is the new rent? We can compute it in Python. ```python rent = 900 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 936.0 print(f"{new_rent:.2f}") ``` Result = 936.00 The new rent is $936.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "936.00", "printed": "936.00", "notation": null}
nlprog_det-setting-0064344
Someone born February 17, 1998 turns how old by May 28, 2021? Give the age in whole years. As Python: from datetime import date born = date(1998, 2, 17) # datetime.date(1998, 2, 17) on = date(2021, 5, 28) # datetime.date(2021, 5, 28) age = on.year - born.year - ((on.month, on.day) < (born.month, born...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0064345
Divide 118 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain? A Python solution: ```python total = 118 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Running it prints: 13 each, 1 left over 13 each, 1 le...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "13 each, 1 left over", "printed": "13 each, 1 left over", "notation": null}
nlprog_det-setting-0064346
Counting the first and last day, how many days are there from February 25, 2019 through March 13, 2019? Script: ```python from datetime import date first = date(2019, 2, 25) # datetime.date(2019, 2, 25) last = date(2019, 3, 13) # datetime.date(2019, 3, 13) days = (last - first).days + 1 # 17 print(days) ``` (Printe...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0064347
Fines run at $100 per day up to a maximum of $1,000. How much after 48 days? As a program: ```python per_day = 100 days = 48 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Executing it gives: 1000 The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0064348
Of a $4,000 budget, $3,700 has been spent. What percent is that? Coded up: budget = 4000 spent = 3700 percent = spent / budget * 100 # 92.5 print(round(percent, 1)) The run gives 92.5. 92.5% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "92.5", "printed": "92.5", "notation": null}
nlprog_det-setting-0064349
A hall has 11 rows of 15 seats, and 20 seats are empty. How many people are seated? Programmatically: ```python rows = 11 per_row = 15 empty = 20 seated = rows * per_row - empty # 145 print(seated) ``` Running this gives 145. 145 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "145", "printed": "145", "notation": null}
nlprog_det-setting-0064350
At an exchange rate of 0.92 USD per EUR, how many USD is 6,476 EUR? ```python amount = 6476 rate = 0.92 converted = amount * rate # 5957.92 print(f"{converted:.2f}") ``` Running this gives 5957.92. It converts to 5,957.92 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "5957.92", "printed": "5957.92", "notation": null}
nlprog_det-setting-0064351
Buying 1 flash drives at $16 each, 6 headsets at $8 each, 4 keyboards at $26 each, 1 envelopes at $2 each, someone hands over $200. What change comes back? As Python: ```python items = [(1, 16), (6, 8), (4, 26), (1, 2)] total = sum(q * p for q, p in items) paid = 200 change = paid - total print(change) ``` (Out: 30) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0064352
Buying 5 staplers at $27 each, 2 file boxes at $12 each, someone hands over $200. What change comes back? Computing it: ```python items = [(5, 27), (2, 12)] total = sum(q * p for q, p in items) # 159 paid = 200 change = paid - total # 41 print(change) ``` (Printed: 41) The change is $41.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0064353
12 staplers cost $5 apiece. With 8% tax added, what is the total? ```python quantity = 12 unit_price = 5 subtotal = quantity * unit_price total = subtotal * (1 + 8 / 100) print(f"{total:.2f}") ``` Run output: 64.80 The invoice total is $64.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "64.80", "printed": "64.80", "notation": null}
nlprog_det-setting-0064354
A settlement of $15,000 is split equally among 5 parties. How much does each party receive? ```python settlement = 15000 parties = 5 share = settlement // parties # 3000 print(share) ``` Printed = 3000 Each party receives $3,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "3000", "printed": "3000", "notation": null}
nlprog_det-setting-0064355
How many weekdays (Monday to Friday) fall after December 16, 2021 up to and including January 23, 2022? Here is the program. ```python from datetime import date, timedelta start = date(2021, 12, 16) end = date(2022, 1, 23) 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": "26", "printed": "26", "notation": null}
nlprog_det-setting-0064356
<|start|><|user|> Prorate $1,800 of monthly rent for 23 days of a 30-day month.<|eot|> <|assistant|> ```python rent = 1800 days_in_month = 30 days_occupied = 23 prorated = rent * days_occupied / days_in_month # 1380.0 print(f"{prorated:.2f}") ``` Execution result — 1380.00 The tenant owes $1,380.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $1,800 of monthly rent for 23 days of a 30-day month." }, { "role": "assistant", "content": "```python\nrent = 1800\ndays_in_month = 30\ndays_occupied = 23\nprorated = rent * days_occupied / days_in_month # 1380.0\nprint(f\"{prorated:.2f}\")\n```\nExecution...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "1380.00", "printed": "1380.00", "notation": null}
nlprog_det-setting-0064358
<|start|><|user|> Count the days between June 3, 2028 and July 28, 2028.<|eot|> <|assistant|> ```python from datetime import date first = date(2028, 6, 3) # datetime.date(2028, 6, 3) second = date(2028, 7, 28) # datetime.date(2028, 7, 28) print((second - first).days) ``` What it prints: 55 It is 55 days.<|eot|> <|en...
chat
[ { "role": "user", "content": "Count the days between June 3, 2028 and July 28, 2028." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2028, 6, 3) # datetime.date(2028, 6, 3)\nsecond = date(2028, 7, 28) # datetime.date(2028, 7, 28)\nprint((second - first...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "55", "printed": "55", "notation": null}
nlprog_det-setting-0064359
A filing cabinet costs $250. It is 25% off. What is the sale price? The sale price is $187.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "187.50", "printed": "187.50", "notation": null}
nlprog_det-setting-0064360
<|start|><|user|> A service costs $15 a month or $168 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 15 yearly = 168 savings = monthly * 12 - yearly # 12 print(savings) ``` Running it prints 12. $12 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $15 a month or $168 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 15\nyearly = 168\nsavings = monthly * 12 - yearly # 12\nprint(savings)\n```\nRunning it prints 12.\n...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0064361
What simple interest does $5,000 earn at 3% a year over 6 years? ```python principal = 5000 rate = 3 / 100 # 0.03 years = 6 interest = principal * rate * years # 900.0 print(f"{interest:.2f}") ``` Interpreter output: 900.00 It earns $900.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "900.00", "printed": "900.00", "notation": null}
nlprog_det-setting-0064362
<|start|><|user|> Kofi was born on November 12, 1991. How old is Kofi on February 21, 2025?<|eot|> <|assistant|> ```python from datetime import date born = date(1991, 11, 12) # datetime.date(1991, 11, 12) on = date(2025, 2, 21) # datetime.date(2025, 2, 21) age = on.year - born.year - ((on.month, on.day) < (born.month...
chat
[ { "role": "user", "content": "Kofi was born on November 12, 1991. How old is Kofi on February 21, 2025?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1991, 11, 12) # datetime.date(1991, 11, 12)\non = date(2025, 2, 21) # datetime.date(2025, 2, 21)\nage...
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0064363
Straight-line depreciation: cost $12,000, salvage $0, 3 years. How much per year? Coded up: ```python cost = 12000 salvage = 0 years = 3 per_year = (cost - salvage) / years # 4000.0 print(f"{per_year:.2f}") ``` Output: 4000.00 $4,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0064364
<|start|><|system|> Tools you may use: {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "compute", "description": "Executes a Python program and returns its output.",...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"compute\", \"descripti...
nlprog_det
setting
original
null
deterministic
[]
[]
357
{"gold": "85", "printed": "85", "notation": null}
nlprog_det-setting-0064365
Water costs $15 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 14,000 gallons? Python does the arithmetic: base = 15 rate = 4.75 used = 14 free = 3 bill = base + rate * max(0, used - free) # 67.25 print(f"{bill:.2f}") (Output: 67.25) The bill is $67.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "67.25", "printed": "67.25", "notation": null}
nlprog_det-setting-0064366
An attorney bills 6.5 hours at $150 per hour. What is the bill? Python: ```python hours = 6.5 rate = 150 bill = hours * rate print(f"{bill:.2f}") ``` Out = 975.00 That comes to $975.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "975.00", "printed": "975.00", "notation": null}
nlprog_det-setting-0064367
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> 2 books come back 17 days late, at $0.20 a day each. What is the fine?<|eot|> <|assistant|> The fine is $6.80.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "2 books come back 17 days late, at $0.20 a day each. What is the fine?" }, { "role": "assistant", "content": "The fine is $6.80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "6.80", "printed": "6.80", "notation": null}
nlprog_det-setting-0064369
A 13 × 7 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Python code: ```python import math length = 13 width = 7 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 23 print(tiles) ``` This prints 23, as expected. 23 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0064370
A 324-page report must be reviewed in 9 days. How many pages a day is that, evenly? Set it up in Python: pages = 324 days = 9 per_day = pages // days # 36 print(per_day) The script prints 36, as expected. That is 36 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0064371
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> 30 labels cost $7 apiece. With 7% tax added, what is the total?<|eot|> <|assistant|> The total with tax is $224.70.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "30 labels cost $7 apiece. With 7% tax added, what is the total?" }, { "role": "assistant", "content": "The total with tax is $224.70." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "224.70", "printed": "224.70", "notation": null}