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-0072277
<|start|><|user|> Attendance was 87 out of 100. Express it as a percent.<|eot|> <|assistant|> ```python present = 87 total = 100 percent = present / total * 100 # 87.0 print(round(percent, 1)) ``` Run output — 87.0 Attendance was 87.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 87 out of 100. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 87\ntotal = 100\npercent = present / total * 100 # 87.0\nprint(round(percent, 1))\n```\nRun output — 87.0\n\nAttendance was 87.0%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "87.0", "printed": "87.0", "notation": null}
nlprog_det-setting-0072278
Revenue is $21,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? A Python solution: ```python revenue = 21000 costs = 20000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 4.761904761904762 print(round(margin, 1)) ``` This prints: 4.8 Profit is 4.8% of rev...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "4.8", "printed": "4.8", "notation": null}
nlprog_det-setting-0072279
Buying 2 ink cartridges at $7 each, 3 ink cartridges at $15 each, someone hands over $100. What change comes back? $41 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0072280
Monthly rent is $2,400. A tenant moves in with 10 days left in a 31-day month. What is the prorated rent? Here is the program. ```python rent = 2400 days_in_month = 31 days_occupied = 10 prorated = rent * days_occupied / days_in_month # 774.1935483870968 print(f"{prorated:.2f}") ``` (Run result: 774.19) The prorated...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "774.19", "printed": "774.19", "notation": null}
nlprog_det-setting-0072281
36 volunteers are split into 5 equal teams. How many are on each team, and how many are left over? In code: ```python total = 36 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` (stdout: 7 each, 1 left over) 7 each, 1 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "7 each, 1 left over", "printed": "7 each, 1 left over", "notation": null}
nlprog_det-setting-0072282
<|start|><|system|> You can call tools. Available tools: {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}} {"name": "eval_python", "description": "Pytho...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", ...
nlprog_det
setting
original
null
deterministic
[]
[]
327
{"gold": "22419", "printed": "22419", "notation": null}
nlprog_det-setting-0072283
Prorate $1,500 of monthly rent for 18 days of a 31-day month. Program: ```python rent = 1500 days_in_month = 31 days_occupied = 18 prorated = rent * days_occupied / days_in_month print(f"{prorated:.2f}") ``` Execution prints 870.97, as expected. The prorated rent is $870.97.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "870.97", "printed": "870.97", "notation": null}
nlprog_det-setting-0072284
A $1,000 security deposit has deductions of $85. How much is refunded? Computation in Python: ```python deposit = 1000 deductions = [85] refund = deposit - sum(deductions) # 915 print(refund) ``` The printout reads 915. The refund is $915.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "915", "printed": "915", "notation": null}
nlprog_det-setting-0072285
A car travels 288 miles in 2 hours. What is its average speed in miles per hour? We write it as a program: ```python distance = 288 hours = 2 speed = distance / hours print(round(speed)) ``` That prints 144. The average speed is 144 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "144", "printed": "144", "notation": null}
nlprog_det-setting-0072287
Straight-line depreciation: cost $12,000, salvage $2,000, 5 years. How much per year? cost = 12000 salvage = 2000 years = 5 per_year = (cost - salvage) / years print(f"{per_year:.2f}") Python prints 2000.00, as expected. Depreciation is $2,000.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0072288
4 claimants share a $36,000 settlement equally. What is each share? The program: ```python settlement = 36000 parties = 4 share = settlement // parties # 9000 print(share) ``` This prints 9000, as expected. Each share is $9,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "9000", "printed": "9000", "notation": null}
nlprog_det-setting-0072289
A shift runs from 10:58 AM to 2:50 PM. How long is it in minutes? One way, in code: ```python start = 10 * 60 + 58 # 658 end = 14 * 60 + 50 # 890 print(end - start) ``` (Output: 232) 232 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "232", "printed": "232", "notation": null}
nlprog_det-setting-0072290
How many meters are in 14.8 kilometers? Computing it: ```python km = 14.8 meters = km * 1000 # 14800.0 print(round(meters)) ``` The code prints: 14800 14,800 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "14800", "printed": "14800", "notation": null}
nlprog_det-setting-0072291
Express 116 hours in days and hours. A short script: ```python hours = 116 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Python prints 4 days and 20 hours. 116 hours is 4 days and 20 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "4 days and 20 hours", "printed": "4 days and 20 hours", "notation": null}
nlprog_det-setting-0072292
Scale 200 g of sugar from 4 servings to 3 servings. Computation in Python: ```python grams = 200 serves = 4 needed_for = 3 scaled = grams * needed_for // serves # 150 print(scaled) ``` On running, it outputs: 150 150 grams of sugar are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0072293
A 5 × 3 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? As Python: ```python import math length = 5 width = 3 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 15 print(tiles) ``` Program output — 15 It takes 15 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0072294
<|start|><|user|> A penalty of $25 a day accrues, capped at $5,000. What is owed after 21 days?<|eot|> <|assistant|> ```python per_day = 25 days = 21 cap = 5000 fine = min(per_day * days, cap) # 525 print(fine) ``` Run output: 525 $525 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $25 a day accrues, capped at $5,000. What is owed after 21 days?" }, { "role": "assistant", "content": "```python\nper_day = 25\ndays = 21\ncap = 5000\nfine = min(per_day * days, cap) # 525\nprint(fine)\n```\nRun output: 525\n\n$525 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "525", "printed": "525", "notation": null}
nlprog_det-setting-0072295
9 boxes hold 10 rulers each. After 2 are handed out, how many are left? In code: ```python boxes = 9 per_box = 10 given_away = 2 left = boxes * per_box - given_away # 88 print(left) ``` The printout reads 88. 88 rulers are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "88", "printed": "88", "notation": null}
nlprog_det-setting-0072296
One can of paint covers 350 square feet. How many cans are needed for 887 square feet of wall? A Python solution: ```python import math area = 887 coverage = 350 cans = math.ceil(area / coverage) # 3 print(cans) ``` Console output: 3 3 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0072297
Equal monthly payments repay $2,400 plus 5% simple yearly interest over 24 months. How large is a payment? Python version: ```python principal = 2400 annual_rate = 5 / 100 # 0.05 months = 24 interest = principal * annual_rate * months / 12 # 240.0 payment = (principal + interest) / months # 110.0 print(f"{payment:....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "110.00", "printed": "110.00", "notation": null}
nlprog_det-setting-0072298
<|start|><|user|> How many weekdays (Monday to Friday) fall after July 9, 2021 up to and including July 21, 2021?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2021, 7, 9) end = date(2021, 7, 21) 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 9, 2021 up to and including July 21, 2021?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2021, 7, 9)\nend = date(2021, 7, 21)\ncount = 0\nfor k in range(1, (e...
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0072299
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Pack A has 8 items for $11.20. Pack B has 20 items for $9.91. Which has the lower price per item?<|eot|> <|assistant|> B has the lower unit price.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Pack A has 8 items for $11.20. Pack B has 20 items for $9.91. Which has the lower price per item?" }, { "role": "assistant", "content": "B has the lower unit price." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
62
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0072300
<|start|><|user|> How many weekdays (Monday to Friday) fall after February 2, 2021 up to and including February 27, 2021?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2021, 2, 2) end = date(2021, 2, 27) count = 0 for k in range(1, (end - start).days + 1): if (start ...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after February 2, 2021 up to and including February 27, 2021?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2021, 2, 2)\n end = date(2021, 2, 27)\n count = 0\n for...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0072301
A 180-mile drive at a steady 45 mph takes how many minutes? The trip takes 240 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0072302
A hall has 5 rows of 24 seats, and 7 seats are empty. How many people are seated? Programmatically: ```python rows = 5 per_row = 24 empty = 7 seated = rows * per_row - empty # 113 print(seated) ``` stdout — 113 113 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "113", "printed": "113", "notation": null}
nlprog_det-setting-0072303
Kaito lends $1,000 at 3% simple interest per year for 4 years. How much interest is earned? Code: ```python principal = 1000 rate = 3 / 100 # 0.03 years = 4 interest = principal * rate * years # 120.0 print(f"{interest:.2f}") ``` Output of the run: 120.00 It earns $120.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "120.00", "printed": "120.00", "notation": null}
nlprog_det-setting-0072304
261 volunteers are split into 7 equal teams. How many are on each team, and how many are left over? 37 each, 2 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "37 each, 2 left over", "printed": "37 each, 2 left over", "notation": null}
nlprog_det-setting-0072305
How many of 25 members form a majority (more than half)? A short script: ```python members = 25 majority = members // 2 + 1 # 13 print(majority) ``` stdout — 13 That is 13 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0072306
Of a $10,000 budget, $800 has been spent. What percent is that? The computation: ```python budget = 10000 spent = 800 percent = spent / budget * 100 # 8.0 print(round(percent, 1)) ``` # program output: 8.0 That is 8.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "8.0", "printed": "8.0", "notation": null}
nlprog_det-setting-0072307
A garage charges $5 an hour, never more than $15 a day. How much for 5 hours? ```python rate = 5 hours = 5 daily_max = 15 cost = min(rate * hours, daily_max) print(cost) ``` Executing it gives 15. Parking costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0072308
Pack A has 12 items for $3.51. Pack B has 20 items for $28.48. Which has the lower price per item? Python makes this quick: ```python pack_a = 3.51 / 12 # 0.2925 pack_b = 28.48 / 20 # 1.424 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Running it prints: A Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0072310
<|start|><|system|> Keep explanations short.<|eot|> <|user|> From 2017 to 2030, how many years is that?<|eot|> <|assistant|> ```python start_year = 2017 end_year = 2030 print(end_year - start_year) ``` (Program output: 13) That is 13 years.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "From 2017 to 2030, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2017\nend_year = 2030\nprint(end_year - start_year)\n```\n(Program output: 13)\n\nThat ...
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0072311
How many units at $30 each (variable cost $20) cover $9,000 of fixed costs? 900 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0072312
<|start|><|system|> Functions: [{"name": "python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Femi and Rafael share $511 in the ratio 2...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]" ...
nlprog_det
setting
original
null
deterministic
[]
[]
232
{"gold": "146", "printed": "146", "notation": null}
nlprog_det-setting-0072313
After an initial $0, the remainder of a $60,000 grant is paid in 4 equal parts. What is each part? Coded up: ```python grant = 60000 up_front = 0 installments = 4 each = (grant - up_front) / installments # 15000.0 print(f"{each:.2f}") ``` That prints: 15000.00 $15,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0072314
At a 6% tax rate, what is the tax on $529.12? Here is a short program for it. ```python price = 529.12 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 31.7472 print(f"{tax:.2f}") ``` Running this gives 31.75. The tax is $31.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "31.75", "printed": "31.75", "notation": null}
nlprog_det-setting-0072315
Each storage box holds 12 files. How many boxes are needed for 182 files? Translated to Python: ```python import math files = 182 per_box = 12 boxes = math.ceil(files / per_box) # 16 print(boxes) ``` Execution prints 16, as expected. It takes 16 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0072316
<|start|><|system|> Tool definitions: {"name": "math_engine", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> At a 5% tax rate, wha...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"math_engine\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
209
{"gold": "3.40", "printed": "3.40", "notation": null}
nlprog_det-setting-0072317
22 paper reams cost $12 apiece. With 6% tax added, what is the total? Computing it: ```python quantity = 22 unit_price = 12 subtotal = quantity * unit_price # 264 total = subtotal * (1 + 6 / 100) # 279.84000000000003 print(f"{total:.2f}") ``` Printed: 279.84 The total with tax is $279.84.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "279.84", "printed": "279.84", "notation": null}
nlprog_det-setting-0072318
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> Count 90 days forward from February 23, 2027. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2027, 2, 23) # datetime.date(2027, 2, 23) end = start + timedelta(days=90) # datetime.date(2027, 5,...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "Count 90 days forward from February 23, 2027. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 2, 23) #...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2027-05-24", "printed": "2027-05-24", "notation": null}
nlprog_det-setting-0072320
With 10% off, what does a $120 chair cost? As Python: ```python price = 120 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 108.0 print(f"{sale_price:.2f}") ``` (Run result: 108.00) It costs $108.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "108.00", "printed": "108.00", "notation": null}
nlprog_det-setting-0072321
<|start|><|system|> You are a math tutor.<|eot|> <|user|> Marek was born on August 26, 1956. How old is Marek on July 9, 2023?<|eot|> <|assistant|> The age is 66 years.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "Marek was born on August 26, 1956. How old is Marek on July 9, 2023?" }, { "role": "assistant", "content": "The age is 66 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "66", "printed": "66", "notation": null}
nlprog_det-setting-0072322
<|start|><|user|> An attorney bills 2 hours at $180 per hour. What is the bill?<|eot|> <|assistant|> That comes to $360.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 2 hours at $180 per hour. What is the bill?" }, { "role": "assistant", "content": "That comes to $360.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0072323
Buying 1 chairs at $8 each, 3 badges at $26 each, 4 hard drives at $16 each, 2 keyboards at $30 each, someone hands over $250. What change comes back? Translated to Python: ```python items = [(1, 8), (3, 26), (4, 16), (2, 30)] total = sum(q * p for q, p in items) # 210 paid = 250 change = paid - total # 40 print(cha...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0072324
<|start|><|user|> Divide 236 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> The answer: 47 each, 1 left over.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Divide 236 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "The answer: 47 each, 1 left over." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "47 each, 1 left over", "printed": "47 each, 1 left over", "notation": null}
nlprog_det-setting-0072325
<|start|><|user|> A measure needs at least 60% of 128 votes. How many votes is that, rounded up?<|eot|> <|assistant|> At least 77 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 60% of 128 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "At least 77 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0072326
A $12,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment? ```python grant = 12000 up_front = 3000 installments = 12 each = (grant - up_front) / installments # 750.0 print(f"{each:.2f}") ``` Result = 750.00 $750.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "750.00", "printed": "750.00", "notation": null}
nlprog_det-setting-0072327
<|start|><|user|> What simple interest does $2,500 earn at 6% a year over 2 years?<|eot|> <|assistant|> It earns $300.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $2,500 earn at 6% a year over 2 years?" }, { "role": "assistant", "content": "It earns $300.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0072328
At 2% a month (simple), what interest builds on $4,000 over 6 months? ```python balance = 4000 monthly_rate = 2 / 100 months = 6 interest = balance * monthly_rate * months print(f"{interest:.2f}") ``` Running it prints 480.00. $480.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0072329
<|start|><|system|> Tool definitions: {"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> 2.5 hours of work at $225 an ...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"so...
nlprog_det
setting
original
null
deterministic
[]
[]
213
{"gold": "562.50", "printed": "562.50", "notation": null}
nlprog_det-setting-0072330
<|start|><|system|> Answer in plain English.<|eot|> <|user|> Mateo drove 32 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> miles = 32 rate = 0.58 reimbursement = miles * rate # 18.56 print(f"{reimbursement:.2f}") Out: 18.56 Mateo is owed $...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "Mateo drove 32 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": " miles = 32\n rate = 0.58\n reimbursement...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "18.56", "printed": "18.56", "notation": null}
nlprog_det-setting-0072331
4 swims at 250 calories each burn how many calories in total? 1000 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0072332
<|start|><|user|> A client paid a $7,500 retainer. The firm has billed 6 hours at $200 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 7500 hours = 6 rate = 200 left = retainer - hours * rate # 6300 print(left) ``` Output: 6300 The remaining balance is $6,300.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A client paid a $7,500 retainer. The firm has billed 6 hours at $200 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 7500\nhours = 6\nrate = 200\nleft = retainer - hours * rate # 6300\nprint(left)\n```\nOutpu...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "6300", "printed": "6300", "notation": null}
nlprog_det-setting-0072333
<|start|><|user|> A jacket costs $45. It is 25% off. What is the sale price?<|eot|> <|assistant|> ```python price = 45 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 33.75 print(f"{sale_price:.2f}") ``` When run, it prints: 33.75 It costs $33.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A jacket costs $45. It is 25% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 45\ndiscount = 25 / 100 # 0.25\nsale_price = price * (1 - discount) # 33.75\nprint(f\"{sale_price:.2f}\")\n```\nWhen run, it prints: 33.75\n\nIt co...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "33.75", "printed": "33.75", "notation": null}
nlprog_det-setting-0072334
<|start|><|user|> A client paid a $5,000 retainer. The firm has billed 9 hours at $150 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 5000 hours = 9 rate = 150 left = retainer - hours * rate # 3650 print(left) ``` When run, it prints 3650, as expected. $3,650 of the retainer is ...
chat
[ { "role": "user", "content": "A client paid a $5,000 retainer. The firm has billed 9 hours at $150 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 5000\nhours = 9\nrate = 150\nleft = retainer - hours * rate # 3650\nprint(left)\n```\nWhen ...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "3650", "printed": "3650", "notation": null}
nlprog_det-setting-0072336
If a 4-year limitations period starts on May 15, 2023, when does it end? As a program: ```python from datetime import date accrued = date(2023, 5, 15) years = 4 expires = accrued.replace(year=accrued.year + years) print(expires.isoformat()) ``` Result — 2027-05-15 It runs out on May 15, 2027.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2027-05-15", "printed": "2027-05-15", "notation": null}
nlprog_det-setting-0072337
<|start|><|system|> Functions: [{"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "define_word", "description": "Return a dictio...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
329
{"gold": "7:00 PM", "printed": "7:00 PM", "notation": null}
nlprog_det-setting-0072338
How many days are there from June 28, 2021 to February 2, 2022? Here is a short program for it. ```python from datetime import date first = date(2021, 6, 28) # datetime.date(2021, 6, 28) second = date(2022, 2, 2) # datetime.date(2022, 2, 2) print((second - first).days) ``` The program outputs: 219 It is 219 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "219", "printed": "219", "notation": null}
nlprog_det-setting-0072339
<|start|><|user|> Express 262 hours in days and hours.<|eot|> <|assistant|> ```python hours = 262 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Printed result: 10 days and 22 hours That is 10 days and 22 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 262 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 262\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nPrinted result: 10 days and 22 hours\n\nThat is 10 days and 22 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "10 days and 22 hours", "printed": "10 days and 22 hours", "notation": null}
nlprog_det-setting-0072340
<|start|><|system|> You help with homework problems.<|eot|> <|user|> A customer buys 1 flash drives at $17 each, 2 clipboards at $21 each and pays with $100. How much change is due?<|eot|> <|assistant|> $41 comes back.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "A customer buys 1 flash drives at $17 each, 2 clipboards at $21 each and pays with $100. How much change is due?" }, { "role": "assistant", "content": "$41 comes back." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
62
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0072341
Rent of $2,200 goes up 5%. What is the new rent? We write it as a program: ```python rent = 2200 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 2310.0 print(f"{new_rent:.2f}") ``` The printout reads: 2310.00 It rises to $2,310.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2310.00", "printed": "2310.00", "notation": null}
nlprog_det-setting-0072342
<|start|><|user|> Fixed costs are $9,000. Each unit sells for $20 and costs $15 to make. How many units must be sold to break even?<|eot|> <|assistant|> Break-even is 1800 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fixed costs are $9,000. Each unit sells for $20 and costs $15 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "Break-even is 1800 units." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0072343
At 1% a month (simple), what interest builds on $12,000 over 2 months? The Python version: ```python balance = 12000 monthly_rate = 1 / 100 # 0.01 months = 2 interest = balance * monthly_rate * months # 240.0 print(f"{interest:.2f}") ``` Run output: 240.00 The interest is $240.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0072344
<|start|><|user|> After an initial $2,000, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 60000 up_front = 2000 installments = 3 each = (grant - up_front) / installments # 19333.333333333332 print(f"{each:.2f}") ``` Executed, it shows 19333.33. Eac...
chat
[ { "role": "user", "content": "After an initial $2,000, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 60000\nup_front = 2000\ninstallments = 3\neach = (grant - up_front) / installments # 19333.333333333332\...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "19333.33", "printed": "19333.33", "notation": null}
nlprog_det-setting-0072345
<|start|><|user|> At an exchange rate of 1.27 USD per GBP, how many USD is 2,989 GBP?<|eot|> <|assistant|> ```python amount = 2989 rate = 1.27 converted = amount * rate # 3796.03 print(f"{converted:.2f}") ``` Executing it gives: 3796.03 It converts to 3,796.03 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.27 USD per GBP, how many USD is 2,989 GBP?" }, { "role": "assistant", "content": "```python\namount = 2989\nrate = 1.27\nconverted = amount * rate # 3796.03\nprint(f\"{converted:.2f}\")\n```\nExecuting it gives: 3796.03\n\nIt converts to 3,...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "3796.03", "printed": "3796.03", "notation": null}
nlprog_det-setting-0072346
<|start|><|user|> Water costs $15 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 5,000 gallons?<|eot|> <|assistant|> ```python base = 15 rate = 4.2 used = 5 free = 3 bill = base + rate * max(0, used - free) # 23.4 print(f"{bill:.2f}") ``` Out — 23.40 $23.40 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Water costs $15 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 5,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 4.2\nused = 5\nfree = 3\nbill = base + rate * max(0, used - free) # 23.4\nprint(f\"{bill:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "23.40", "printed": "23.40", "notation": null}
nlprog_det-setting-0072347
Attendance was 20 out of 20. Express it as a percent. Python code: ```python present = 20 total = 20 percent = present / total * 100 # 100.0 print(round(percent, 1)) ``` # run result: 100.0 Attendance was 100.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "100.0", "printed": "100.0", "notation": null}
nlprog_det-setting-0072348
Lena lends $12,000 at 3% simple interest per year for 5 years. How much interest is earned? Coded up: ```python principal = 12000 rate = 3 / 100 # 0.03 years = 5 interest = principal * rate * years # 1800.0 print(f"{interest:.2f}") ``` What it prints: 1800.00 It earns $1,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1800.00", "printed": "1800.00", "notation": null}
nlprog_det-setting-0072349
<|start|><|user|> A meal costs $122.04. How much is a 10% tip?<|eot|> <|assistant|> ```python bill = 122.04 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 12.204 print(f"{tip:.2f}") ``` Out: 12.20 Leave $12.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $122.04. How much is a 10% tip?" }, { "role": "assistant", "content": "```python\nbill = 122.04\ntip_rate = 10 / 100 # 0.1\ntip = bill * tip_rate # 12.204\nprint(f\"{tip:.2f}\")\n```\nOut:\n12.20\n\nLeave $12.20." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "12.20", "printed": "12.20", "notation": null}
nlprog_det-setting-0072350
7 walks at 300 calories each burn how many calories in total? In code: per_session = 300 sessions = 7 total = per_session * sessions # 2100 print(total) Program output: 2100 2100 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0072351
After an initial $6,000, the remainder of a $30,000 grant is paid in 3 equal parts. What is each part? Here is a short program for it. ```python grant = 30000 up_front = 6000 installments = 3 each = (grant - up_front) / installments # 8000.0 print(f"{each:.2f}") ``` Output: 8000.00 $8,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "8000.00", "printed": "8000.00", "notation": null}
nlprog_det-setting-0072352
<|start|><|user|> What is 0 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 0 fahrenheit = celsius * 9 / 5 + 32 # 32.0 print(round(fahrenheit)) ``` Run output: 32 That is 32 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 0 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 0\nfahrenheit = celsius * 9 / 5 + 32 # 32.0\nprint(round(fahrenheit))\n```\nRun output: 32\n\nThat is 32 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0072353
<|start|><|user|> What average speed covers 142 miles in 1 hours?<|eot|> <|assistant|> distance = 142 hours = 1 speed = distance / hours # 142.0 print(round(speed)) Run it and it prints 142. It averages 142 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 142 miles in 1 hours?" }, { "role": "assistant", "content": " distance = 142\n hours = 1\n speed = distance / hours # 142.0\n print(round(speed))\nRun it and it prints 142.\n\nIt averages 142 miles per hour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "142", "printed": "142", "notation": null}
nlprog_det-setting-0072354
<|start|><|user|> What average speed covers 192 miles in 2 hours?<|eot|> <|assistant|> ```python distance = 192 hours = 2 speed = distance / hours # 96.0 print(round(speed)) ``` (Console output: 96) The average speed is 96 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 192 miles in 2 hours?" }, { "role": "assistant", "content": "```python\ndistance = 192\nhours = 2\nspeed = distance / hours # 96.0\nprint(round(speed))\n```\n(Console output: 96)\n\nThe average speed is 96 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "96", "printed": "96", "notation": null}
nlprog_det-setting-0072355
<|start|><|user|> What does $2,000 grow to in 3 years at 2% annual compounding?<|eot|> <|assistant|> The balance is $2,122.42.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $2,000 grow to in 3 years at 2% annual compounding?" }, { "role": "assistant", "content": "The balance is $2,122.42." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "2122.42", "printed": "2122.42", "notation": null}
nlprog_det-setting-0072356
<|start|><|user|> 4 books come back 25 days late, at $0.10 a day each. What is the fine?<|eot|> <|assistant|> $10.00 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 books come back 25 days late, at $0.10 a day each. What is the fine?" }, { "role": "assistant", "content": "$10.00 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "10.00", "printed": "10.00", "notation": null}
nlprog_det-setting-0072357
One can of paint covers 400 square feet. How many cans are needed for 1167 square feet of wall? 3 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0072358
<|start|><|user|> A count moves from 800 to 480. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 800 new = 480 change = (new - old) / old * 100 print(round(change)) ``` (Out: -40) It changed by -40%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 800 to 480. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 800\nnew = 480\nchange = (new - old) / old * 100\nprint(round(change))\n```\n(Out: -40)\n\nIt changed by -40%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "-40", "printed": "-40", "notation": null}
nlprog_det-setting-0072359
<|start|><|user|> A lawyer's fee is 33% of a $12,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 12000 rate = 33 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` Result — 3960.00 The lawyer's fee comes to $3,960.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 33% of a $12,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 12000\nrate = 33 / 100\nfee = recovery * rate\nprint(f\"{fee:.2f}\")\n```\nResult — 3960.00\n\nThe lawyer's fee comes to $3,960.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "3960.00", "printed": "3960.00", "notation": null}
nlprog_det-setting-0072360
<|start|><|user|> A $800 security deposit has deductions of $85, $45 and $150. How much is refunded?<|eot|> <|assistant|> ```python deposit = 800 deductions = [85, 45, 150] refund = deposit - sum(deductions) # 520 print(refund) ``` Run result — 520 The refund is $520.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $800 security deposit has deductions of $85, $45 and $150. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 800\ndeductions = [85, 45, 150]\nrefund = deposit - sum(deductions) # 520\nprint(refund)\n```\nRun result — 520\n\nThe ref...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "520", "printed": "520", "notation": null}
nlprog_det-setting-0072361
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> A appointment starts at 11:00 AM and lasts 90 minutes. When does it end?<|eot|> <|assistant|> It ends at 12:30 PM.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "A appointment starts at 11:00 AM and lasts 90 minutes. When does it end?" }, { "role": "assistant", "content": "It ends at 12:30 PM." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "12:30 PM", "printed": "12:30 PM", "notation": null}
nlprog_det-setting-0072362
<|start|><|system|> Tools you may use: {"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": "math_engine", "description": "Run Python...
chat
[ { "role": "system", "content": "Tools you may use:\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\", \"sect...
nlprog_det
setting
original
null
deterministic
[]
[]
296
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0072363
Meals are $79 per day and lodging $140 per night. What is the allowance for 5 days and 4 nights? Python: ```python days = 5 meal_rate = 79 lodging_rate = 140 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 955 print(total) ``` Shell output — 955 That comes to $955.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "955", "printed": "955", "notation": null}
nlprog_det-setting-0072365
At $0.62 per mile, what is the reimbursement for 156 miles? In code: ```python miles = 156 rate = 0.62 reimbursement = miles * rate # 96.72 print(f"{reimbursement:.2f}") ``` That prints: 96.72 The reimbursement is $96.72.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "96.72", "printed": "96.72", "notation": null}
nlprog_det-setting-0072366
A trial runs from June 26, 2024 to July 6, 2024, counting both days. How many calendar days is that? In Python: ```python from datetime import date first = date(2024, 6, 26) # datetime.date(2024, 6, 26) last = date(2024, 7, 6) # datetime.date(2024, 7, 6) days = (last - first).days + 1 # 11 print(days) ``` On runnin...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0072367
After a 30% fee is taken from a $48,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? Python: ```python award = 48000 fee = award * 30 / 100 # 14400.0 remaining = award - fee # 33600.0 per_client = remaining / 3 # 11200.0 print(f"{per_client:.2f}") ``` Console: 11200.00 Each c...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "11200.00", "printed": "11200.00", "notation": null}
nlprog_det-setting-0072368
<|start|><|user|> A shift runs from 8:09 AM to 10:06 AM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 8 * 60 + 9 end = 10 * 60 + 6 print(end - start) ``` Python prints 117, as expected. 117 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 8:09 AM to 10:06 AM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 9\nend = 10 * 60 + 6\nprint(end - start)\n```\nPython prints 117, as expected.\n\n117 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "117", "printed": "117", "notation": null}
nlprog_det-setting-0072369
<|start|><|system|> Tools you may use: {"name": "calc", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "define_word", "description": "Return a dictio...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"calc\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}\...
nlprog_det
setting
original
null
deterministic
[]
[]
302
{"gold": "2481", "printed": "2481", "notation": null}
nlprog_det-setting-0072370
<|start|><|user|> Count 90 days forward from November 22, 2020. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2020, 11, 22) # datetime.date(2020, 11, 22) end = start + timedelta(days=90) # datetime.date(2021, 2, 20) print(end.isoformat()) ``` What it prints — 2021...
chat
[ { "role": "user", "content": "Count 90 days forward from November 22, 2020. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2020, 11, 22) # datetime.date(2020, 11, 22)\nend = start + timedelta(days=90) # datetime.date(2021...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "2021-02-20", "printed": "2021-02-20", "notation": null}
nlprog_det-setting-0072371
How much sales tax is charged on a $454.03 purchase at 7%? We write it as a program: ```python price = 454.03 tax_rate = 7 / 100 # 0.07 tax = price * tax_rate # 31.7821 print(f"{tax:.2f}") ``` (stdout: 31.78) $31.78 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "31.78", "printed": "31.78", "notation": null}
nlprog_det-setting-0072372
The landlord deducts $45 and $45 from a $1,000 deposit. What is returned to the tenant? Here is a short program for it. ```python deposit = 1000 deductions = [45, 45] refund = deposit - sum(deductions) # 910 print(refund) ``` Executing it gives: 910 $910 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "910", "printed": "910", "notation": null}
nlprog_det-setting-0072373
Convert 30 °C to Fahrenheit. That is 86 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0072374
Delia earns a 5% commission on $19,315 of sales. What is the commission? Python code: ```python sales = 19315 rate = 5 / 100 # 0.05 commission = sales * rate # 965.75 print(f"{commission:.2f}") ``` Result = 965.75 The commission is $965.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "965.75", "printed": "965.75", "notation": null}
nlprog_det-setting-0072375
A $30,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment? Translated to Python: grant = 30000 up_front = 3000 installments = 3 each = (grant - up_front) / installments # 9000.0 print(f"{each:.2f}") Output of the run — 9000.00 $9,000.00 per installme...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0072376
<|start|><|user|> A penalty of $250 a day accrues, capped at $5,000. What is owed after 16 days?<|eot|> <|assistant|> ```python per_day = 250 days = 16 cap = 5000 fine = min(per_day * days, cap) # 4000 print(fine) ``` The script prints 4000. The fine is $4,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $250 a day accrues, capped at $5,000. What is owed after 16 days?" }, { "role": "assistant", "content": "```python\nper_day = 250\ndays = 16\ncap = 5000\nfine = min(per_day * days, cap) # 4000\nprint(fine)\n```\nThe script prints 4000.\n\nThe fine is $...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "4000", "printed": "4000", "notation": null}
nlprog_det-setting-0072377
<|start|><|user|> If a 90-minute shift begins at 4:15 PM, what time does it finish?<|eot|> <|assistant|> ```python start = 16 * 60 + 15 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` It outputs 5:45 PM. The shift finishes at 5:45 PM.<|eot|...
chat
[ { "role": "user", "content": "If a 90-minute shift begins at 4:15 PM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 16 * 60 + 15\nend = start + 90\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "5:45 PM", "printed": "5:45 PM", "notation": null}
nlprog_det-setting-0072378
<|start|><|user|> Equal monthly payments repay $9,000 plus 8% simple yearly interest over 24 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 9000 annual_rate = 8 / 100 # 0.08 months = 24 interest = principal * annual_rate * months / 12 # 1440.0 payment = (principal + interest) / months # 4...
chat
[ { "role": "user", "content": "Equal monthly payments repay $9,000 plus 8% simple yearly interest over 24 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 9000\nannual_rate = 8 / 100 # 0.08\nmonths = 24\ninterest = principal * annual_rate * months / 1...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "435.00", "printed": "435.00", "notation": null}
nlprog_det-setting-0072379
<|start|><|user|> A meal costs $220.70. How much is a 22% tip?<|eot|> <|assistant|> bill = 220.7 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 48.553999999999995 print(f"{tip:.2f}") (stdout: 48.55) The tip is $48.55.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $220.70. How much is a 22% tip?" }, { "role": "assistant", "content": " bill = 220.7\n tip_rate = 22 / 100 # 0.22\n tip = bill * tip_rate # 48.553999999999995\n print(f\"{tip:.2f}\")\n(stdout: 48.55)\n\nThe tip is $48.55." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "48.55", "printed": "48.55", "notation": null}
nlprog_det-setting-0072380
One can of paint covers 400 square feet. How many cans are needed for 1126 square feet of wall? Here is the program. ```python import math area = 1126 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` Execution prints 3, as expected. Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0072381
Find the mean of these test scores: 76, 57 and 86. A few lines of Python do it: ```python scores = [76, 57, 86] average = sum(scores) // len(scores) # 73 print(average) ``` The run gives: 73 The average score is 73.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "73", "printed": "73", "notation": null}