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-0058835
A count moves from 2,500 to 2,875. By what percent did it change (use a minus sign for a drop)? A Python solution: ```python old = 2500 new = 2875 change = (new - old) / old * 100 # 15.0 print(round(change)) ``` Printed = 15 It changed by 15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0058836
What percentage of $5,000 is $3,000? As a program: ```python budget = 5000 spent = 3000 percent = spent / budget * 100 # 60.0 print(round(percent, 1)) ``` stdout — 60.0 60.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "60.0", "printed": "60.0", "notation": null}
nlprog_det-setting-0058837
What commission does Rania make on $96,108 in sales at 6%? The Python version: ```python sales = 96108 rate = 6 / 100 # 0.06 commission = sales * rate # 5766.48 print(f"{commission:.2f}") ``` The code prints: 5766.48 Rania earns $5,766.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "5766.48", "printed": "5766.48", "notation": null}
nlprog_det-setting-0058838
A penalty of $50 a day accrues, capped at $5,000. What is owed after 25 days? Python does the arithmetic: ```python per_day = 50 days = 25 cap = 5000 fine = min(per_day * days, cap) # 1250 print(fine) ``` It outputs 1250. The fine is $1,250.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1250", "printed": "1250", "notation": null}
nlprog_det-setting-0058839
Each storage box holds 20 files. How many boxes are needed for 166 files? We write it as a program: import math files = 166 per_box = 20 boxes = math.ceil(files / per_box) # 9 print(boxes) Result: 9 It takes 9 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0058840
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Monthly rent is $1,800. A tenant moves in with 25 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> The prorated rent is $1,500.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "Monthly rent is $1,800. A tenant moves in with 25 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": "The prorated rent is $1,500.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0058841
What is the total rent on a 12-month lease at $3,250 a month? As a program: ```python monthly_rent = 3250 months = 12 total = monthly_rent * months # 39000 print(total) ``` Run result — 39000 In total, $39,000 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "39000", "printed": "39000", "notation": null}
nlprog_det-setting-0058842
<|start|><|user|> A backpack costs $75. It is 20% off. What is the sale price?<|eot|> <|assistant|> price = 75 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 60.0 print(f"{sale_price:.2f}") Console: 60.00 The sale price is $60.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A backpack costs $75. It is 20% off. What is the sale price?" }, { "role": "assistant", "content": " price = 75\n discount = 20 / 100 # 0.2\n sale_price = price * (1 - discount) # 60.0\n print(f\"{sale_price:.2f}\")\nConsole:\n60.00\n\nThe sale price i...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0058843
How many whole days and leftover hours are in 256 hours? Let the code do the arithmetic: hours = 256 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") The program outputs 10 days and 16 hours. That is 10 days and 16 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "10 days and 16 hours", "printed": "10 days and 16 hours", "notation": null}
nlprog_det-setting-0058844
A $1,500 security deposit has deductions of $60. How much is refunded? Code: ```python deposit = 1500 deductions = [60] refund = deposit - sum(deductions) # 1440 print(refund) ``` Program output — 1440 $1,440 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "1440", "printed": "1440", "notation": null}
nlprog_det-setting-0058845
On which weekday does June 26, 2021 fall? ```python from datetime import date hearing = date(2021, 6, 26) # datetime.date(2021, 6, 26) print(hearing.strftime("%A")) ``` Printed = Saturday It is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0058846
<|start|><|user|> A 8-day trip pays $74 a day for meals and $140 a night for lodging (7 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 8 meal_rate = 74 lodging_rate = 140 nights = days - 1 # 7 total = days * meal_rate + nights * lodging_rate # 1572 print(total) ``` The run gives: 1572 Th...
chat
[ { "role": "user", "content": "A 8-day trip pays $74 a day for meals and $140 a night for lodging (7 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 8\nmeal_rate = 74\nlodging_rate = 140\nnights = days - 1 # 7\ntotal = days * meal_rate + nights * lo...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "1572", "printed": "1572", "notation": null}
nlprog_det-setting-0058847
<|start|><|system|> The following tools are available. Call one when it helps. [{"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":...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"str...
nlprog_det
setting
original
null
deterministic
[]
[]
392
{"gold": "3200", "printed": "3200", "notation": null}
nlprog_det-setting-0058848
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Tobias was born on July 8, 1984. How old is Tobias on July 9, 2024?<|eot|> <|assistant|> ```python from datetime import date born = date(1984, 7, 8) # datetime.date(1984, 7, 8) on = date(2024, 7, 9) # datetime.date(2024, 7, 9) age = on.year ...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Tobias was born on July 8, 1984. How old is Tobias on July 9, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1984, 7, 8) # datet...
nlprog_det
setting
original
null
deterministic
[]
[]
173
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0058849
One can of paint covers 350 square feet. How many cans are needed for 1139 square feet of wall? Python does the arithmetic: ```python import math area = 1139 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) ``` Printed: 4 4 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0058850
<|start|><|system|> Tools (call with JSON): {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "calc", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"calc\", \"description\": \"Run Python cod...
nlprog_det
setting
original
null
deterministic
[]
[]
298
{"gold": "26.40", "printed": "26.40", "notation": null}
nlprog_det-setting-0058851
A 5% increase is applied to $1,100 monthly rent. What is the new amount? The program: ```python rent = 1100 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1155.0 print(f"{new_rent:.2f}") ``` It prints 1155.00, as expected. It rises to $1,155.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1155.00", "printed": "1155.00", "notation": null}
nlprog_det-setting-0058852
At $0.67 per mile, what is the reimbursement for 184 miles? Here is a short program for it. ```python miles = 184 rate = 0.67 reimbursement = miles * rate # 123.28 print(f"{reimbursement:.2f}") ``` The printout reads 123.28. Ana is owed $123.28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "123.28", "printed": "123.28", "notation": null}
nlprog_det-setting-0058853
A 15 × 9 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? The Python version: ```python import math length = 15 width = 9 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 135 print(tiles) ``` # program output: 135 135 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "135", "printed": "135", "notation": null}
nlprog_det-setting-0058854
<|start|><|user|> Flooring at $4/sq ft for a 22 ft × 18 ft room costs how much?<|eot|> <|assistant|> The flooring costs $1,584.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Flooring at $4/sq ft for a 22 ft × 18 ft room costs how much?" }, { "role": "assistant", "content": "The flooring costs $1,584." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "1584", "printed": "1584", "notation": null}
nlprog_det-setting-0058855
2 friends split a $150 bill plus a 20% tip evenly. How much does each pay? ```python bill = 150 tip_rate = 20 / 100 # 0.2 people = 2 each = bill * (1 + tip_rate) / people # 90.0 print(f"{each:.2f}") ``` Execution result — 90.00 The share is $90.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "90.00", "printed": "90.00", "notation": null}
nlprog_det-setting-0058856
<|start|><|system|> Tools (call with JSON): [{"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> A 21-day notice per...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
241
{"gold": "2025-04-08", "printed": "2025-04-08", "notation": null}
nlprog_det-setting-0058857
What percentage of $5,000 is $2,800? One way, in code: ```python budget = 5000 spent = 2800 percent = spent / budget * 100 print(round(percent, 1)) ``` Program output — 56.0 56.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "56.0", "printed": "56.0", "notation": null}
nlprog_det-setting-0058858
What day of the week is March 3, 1998? from datetime import date hearing = date(1998, 3, 3) # datetime.date(1998, 3, 3) print(hearing.strftime("%A")) This prints: Tuesday March 3, 1998 is a Tuesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0058859
Counting only Monday through Friday, how many business days are there after April 11, 2023 through April 19, 2023? ```python from datetime import date, timedelta start = date(2023, 4, 11) end = date(2023, 4, 19) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0058860
<|start|><|user|> A jacket costs $250. It is 10% off. What is the sale price?<|eot|> <|assistant|> ```python price = 250 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 225.0 print(f"{sale_price:.2f}") ``` The program prints: 225.00 It costs $225.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A jacket costs $250. It is 10% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 250\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - discount) # 225.0\nprint(f\"{sale_price:.2f}\")\n```\nThe program prints: 225.00\n\nIt c...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "225.00", "printed": "225.00", "notation": null}
nlprog_det-setting-0058861
Pack A has 10 items for $13.54. Pack B has 20 items for $19.17. Which has the lower price per item? A few lines of Python do it: ```python pack_a = 13.54 / 10 pack_b = 19.17 / 20 cheaper = "A" if pack_a < pack_b else "B" print(cheaper) ``` Printed = B B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0058862
A pack of 12 cables sells for $240. What does each cost? Code: ```python total = 240 count = 12 per_item = total // count # 20 print(per_item) ``` stdout = 20 The unit price is $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0058863
<|start|><|user|> A hearing lasted 3 hours and 55 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 3 minutes = 55 total_minutes = hours * 60 + minutes # 235 print(total_minutes) ``` Executing it gives: 235 That is 235 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing lasted 3 hours and 55 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 3\nminutes = 55\ntotal_minutes = hours * 60 + minutes # 235\nprint(total_minutes)\n```\nExecuting it gives: 235\n\nThat is 235 minutes." }...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "235", "printed": "235", "notation": null}
nlprog_det-setting-0058864
<|start|><|user|> A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 117-page copy cost?<|eot|> <|assistant|> ```python pages = 117 base = 15 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 26.700000000000003 print(f"{cost:.2f}") ``` # run resul...
chat
[ { "role": "user", "content": "A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 117-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 117\nbase = 15\nper_page = 0.1\nfree_pages = 0\ncost = base + max(0, pages - free_pages) * per_page...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "26.70", "printed": "26.70", "notation": null}
nlprog_det-setting-0058865
<|start|><|user|> 4 boxes hold 24 desk lamps each. After 16 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 4 per_box = 24 given_away = 16 left = boxes * per_box - given_away # 80 print(left) ``` Output of the run: 80 80 desk lamps are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 boxes hold 24 desk lamps each. After 16 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 4\nper_box = 24\ngiven_away = 16\nleft = boxes * per_box - given_away # 80\nprint(left)\n```\nOutput of the run: 80\n\n80 desk lam...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0058866
Convert 5 °C to Fahrenheit. ```python celsius = 5 fahrenheit = celsius * 9 / 5 + 32 # 41.0 print(round(fahrenheit)) ``` Printed result — 41 That is 41 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0058867
<|start|><|user|> Papers were served by mail on February 20, 2025. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2025, 2, 20) # datetime.date(2025, 2, 20) response_days = 30 mail_days = 3 d...
chat
[ { "role": "user", "content": "Papers were served by mail on February 20, 2025. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2025, 2, 20) # datet...
nlprog_det
setting
original
null
deterministic
[]
[]
185
{"gold": "2025-03-25", "printed": "2025-03-25", "notation": null}
nlprog_det-setting-0058868
<|start|><|user|> A 7 lb package ships at $12 base plus $2.50/lb. What is the charge?<|eot|> <|assistant|> ```python base = 12 per_pound = 2.5 weight = 7 cost = base + per_pound * weight print(f"{cost:.2f}") ``` When run, it prints 29.50, as expected. The charge is $29.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 7 lb package ships at $12 base plus $2.50/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 12\nper_pound = 2.5\nweight = 7\ncost = base + per_pound * weight\nprint(f\"{cost:.2f}\")\n```\nWhen run, it prints 29.50, as expected.\n\nTh...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "29.50", "printed": "29.50", "notation": null}
nlprog_det-setting-0058869
<|start|><|system|> You can call tools. Available tools: [{"name": "math_engine", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"math_engine\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source ...
nlprog_det
setting
original
null
deterministic
[]
[]
216
{"gold": "193", "printed": "193", "notation": null}
nlprog_det-setting-0058870
<|start|><|user|> A 21-day notice period begins on April 26, 2024. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2024, 4, 26) # datetime.date(2024, 4, 26) end = start + timedelta(days=21) # datetime.date(2024, 5, 17) print(end.isoformat()) ``` The script pr...
chat
[ { "role": "user", "content": "A 21-day notice period begins on April 26, 2024. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 4, 26) # datetime.date(2024, 4, 26)\nend = start + timedelta(days=21) # datetime.d...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2024-05-17", "printed": "2024-05-17", "notation": null}
nlprog_det-setting-0058871
Convert 4 h 39 min (the length of a film) to minutes. The computation: ```python hours = 4 minutes = 39 total_minutes = hours * 60 + minutes # 279 print(total_minutes) ``` Printed — 279 That is 279 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "279", "printed": "279", "notation": null}
nlprog_det-setting-0058872
<|start|><|user|> Papers were served by mail on September 1, 2021. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2021, 9, 1) # datetime.date(2021, 9, 1) response_days = 30 mail_days = 3 due...
chat
[ { "role": "user", "content": "Papers were served by mail on September 1, 2021. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2021, 9, 1) # dateti...
nlprog_det
setting
original
null
deterministic
[]
[]
178
{"gold": "2021-10-04", "printed": "2021-10-04", "notation": null}
nlprog_det-setting-0058873
<|start|><|user|> What average speed covers 229 miles in 0.5 hours?<|eot|> <|assistant|> ```python distance = 229 hours = 0.5 speed = distance / hours # 458.0 print(round(speed)) ``` The code prints: 458 The average speed is 458 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 229 miles in 0.5 hours?" }, { "role": "assistant", "content": "```python\ndistance = 229\nhours = 0.5\nspeed = distance / hours # 458.0\nprint(round(speed))\n```\nThe code prints: 458\n\nThe average speed is 458 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "458", "printed": "458", "notation": null}
nlprog_det-setting-0058874
<|start|><|user|> Sales went from 500 to 250. What is the percent change?<|eot|> <|assistant|> ```python old = 500 new = 250 change = (new - old) / old * 100 # -50.0 print(round(change)) ``` Executing it gives: -50 The change is -50%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 500 to 250. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 500\nnew = 250\nchange = (new - old) / old * 100 # -50.0\nprint(round(change))\n```\nExecuting it gives: -50\n\nThe change is -50%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "-50", "printed": "-50", "notation": null}
nlprog_det-setting-0058875
After a 30% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? A Python solution: ```python award = 72000 fee = award * 30 / 100 # 21600.0 remaining = award - fee # 50400.0 per_client = remaining / 3 # 16800.0 print(f"{per_client:.2f}") ``` (Execution res...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "16800.00", "printed": "16800.00", "notation": null}
nlprog_det-setting-0058876
After a 30% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? Here is the program. ```python award = 30000 fee = award * 30 / 100 remaining = award - fee per_client = remaining / 2 print(f"{per_client:.2f}") ``` Printed: 10500.00 Each client gets $10,500.0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "10500.00", "printed": "10500.00", "notation": null}
nlprog_det-setting-0058877
A library charges $0.15 per book per day late. What is the fine for 3 books that are 13 days late? The fine is $5.85.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "5.85", "printed": "5.85", "notation": null}
nlprog_det-setting-0058879
Attendance was 79 out of 80. Express it as a percent. Translated to Python: ```python present = 79 total = 80 percent = present / total * 100 # 98.75 print(round(percent, 1)) ``` Python prints 98.8. 98.8% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "98.8", "printed": "98.8", "notation": null}
nlprog_det-setting-0058880
A hearing lasted 3 hours and 17 minutes. How many minutes is that? One way, in code: hours = 3 minutes = 17 total_minutes = hours * 60 + minutes # 197 print(total_minutes) The script prints 197, as expected. The hearing lasted 197 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "197", "printed": "197", "notation": null}
nlprog_det-setting-0058881
After an initial $2,000, the remainder of a $30,000 grant is paid in 6 equal parts. What is each part? Coded up: ```python grant = 30000 up_front = 2000 installments = 6 each = (grant - up_front) / installments # 4666.666666666667 print(f"{each:.2f}") ``` Running it prints: 4666.67 $4,666.67 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "4666.67", "printed": "4666.67", "notation": null}
nlprog_det-setting-0058882
<|start|><|user|> What average speed covers 490 miles in 2 hours?<|eot|> <|assistant|> ```python distance = 490 hours = 2 speed = distance / hours # 245.0 print(round(speed)) ``` Output: 245 The average speed is 245 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 490 miles in 2 hours?" }, { "role": "assistant", "content": "```python\ndistance = 490\nhours = 2\nspeed = distance / hours # 245.0\nprint(round(speed))\n```\nOutput: 245\n\nThe average speed is 245 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "245", "printed": "245", "notation": null}
nlprog_det-setting-0058883
At 1.5% a month (simple), what interest builds on $12,000 over 3 months? Python version: balance = 12000 monthly_rate = 1.5 / 100 # 0.015 months = 3 interest = balance * monthly_rate * months # 540.0 print(f"{interest:.2f}") The script prints 540.00, as expected. The interest is $540.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "540.00", "printed": "540.00", "notation": null}
nlprog_det-setting-0058884
<|start|><|user|> A $24,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 24000 up_front = 3000 installments = 3 each = (grant - up_front) / installments # 7000.0 print(f"{each:.2f}") ``` Interpreter output — 7000.00 Each install...
chat
[ { "role": "user", "content": "A $24,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 24000\nup_front = 3000\ninstallments = 3\neach = (grant - up_front) / installments # 7000.0\nprint(f\...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0058885
<|start|><|user|> Mateo's scores were 61, 93, 97 and 53. What is the average score?<|eot|> <|assistant|> ```python scores = [61, 93, 97, 53] average = sum(scores) // len(scores) # 76 print(average) ``` stdout: 76 The mean is 76.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Mateo's scores were 61, 93, 97 and 53. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [61, 93, 97, 53]\naverage = sum(scores) // len(scores) # 76\nprint(average)\n```\nstdout: 76\n\nThe mean is 76." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0058886
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> A $6,000 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 6000 annual_rate = 8 / 100 # 0.08 months = 12 interest = princ...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "A $6,000 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "`...
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "540.00", "printed": "540.00", "notation": null}
nlprog_det-setting-0058887
What is the total rent on a 24-month lease at $2,100 a month? Computing it: ```python monthly_rent = 2100 months = 24 total = monthly_rent * months # 50400 print(total) ``` Result — 50400 In total, $50,400 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "50400", "printed": "50400", "notation": null}
nlprog_det-setting-0058888
<|start|><|user|> Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours?<|eot|> <|assistant|> ```python rate = 20.0 hours = 43 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 90.0 pay = regular + overtime # 890.0 print(f"{pay:.2f}") ``` Run it and it print...
chat
[ { "role": "user", "content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours?" }, { "role": "assistant", "content": "```python\nrate = 20.0\nhours = 43\nregular = 40 * rate # 800.0\novertime = (hours - 40) * rate * 1.5 # 90.0\npay = regular + ov...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "890.00", "printed": "890.00", "notation": null}
nlprog_det-setting-0058889
After a 25% fee is taken from a $30,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? Script: ```python award = 30000 fee = award * 25 / 100 # 7500.0 remaining = award - fee # 22500.0 per_client = remaining / 4 # 5625.0 print(f"{per_client:.2f}") ``` On running, it outputs: 562...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "5625.00", "printed": "5625.00", "notation": null}
nlprog_det-setting-0058890
A 5-day trip pays $64 a day for meals and $175 a night for lodging (4 nights). What is the total allowance? ```python days = 5 meal_rate = 64 lodging_rate = 175 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 1020 print(total) ``` # stdout: 1020 The allowance is $1,020.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "1020", "printed": "1020", "notation": null}
nlprog_det-setting-0058891
A penalty of $50 a day accrues, capped at $1,000. What is owed after 39 days? Set it up in Python: ```python per_day = 50 days = 39 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` The script prints 1000, as expected. $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0058892
From a $2,500 retainer, 2 hours at $250/hour have been drawn. What remains? Code: ```python retainer = 2500 hours = 2 rate = 250 left = retainer - hours * rate # 2000 print(left) ``` The program prints 2000. The remaining balance is $2,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0058893
280 volunteers are split into 8 equal teams. How many are on each team, and how many are left over? Let the code do the arithmetic: ```python total = 280 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` This prints: 35 each, 0 left over The answer: 35 each,...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "35 each, 0 left over", "printed": "35 each, 0 left over", "notation": null}
nlprog_det-setting-0058894
<|start|><|user|> How many of 193 votes make 60% (round up)?<|eot|> <|assistant|> ```python import math voters = 193 needed = math.ceil(voters * 60 / 100) # 116 print(needed) ``` Running this gives 116. At least 116 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 193 votes make 60% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 193\nneeded = math.ceil(voters * 60 / 100) # 116\nprint(needed)\n```\nRunning this gives 116.\n\nAt least 116 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "116", "printed": "116", "notation": null}
nlprog_det-setting-0058895
At a 7% tax rate, what is the tax on $193.45? $13.54 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "13.54", "printed": "13.54", "notation": null}
nlprog_det-setting-0058896
A quorum is 1/3 of the 14 members, rounded up. How many members make a quorum? Here's the code. ```python import math members = 14 quorum = math.ceil(members * 1 / 3) # 5 print(quorum) ``` The printout reads 5. That is 5 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0058897
3 books come back 26 days late, at $0.20 a day each. What is the fine? A short script: ```python per_day = 0.2 days_late = 26 books = 3 fine = per_day * days_late * books # 15.600000000000001 print(f"{fine:.2f}") ``` Result: 15.60 The fine is $15.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "15.60", "printed": "15.60", "notation": null}
nlprog_det-setting-0058898
7 hours of work at $180 an hour: what is the total charge? The bill is $1,260.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "1260.00", "printed": "1260.00", "notation": null}
nlprog_det-setting-0058899
9 boxes hold 24 batteries each. After 5 are handed out, how many are left? The Python version: ```python boxes = 9 per_box = 24 given_away = 5 left = boxes * per_box - given_away # 211 print(left) ``` Running this gives: 211 211 batteries are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "211", "printed": "211", "notation": null}
nlprog_det-setting-0058900
<|start|><|user|> A quorum is 2/3 of the 31 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 31 quorum = math.ceil(members * 2 / 3) # 21 print(quorum) ``` Output: 21 21 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 2/3 of the 31 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 31\nquorum = math.ceil(members * 2 / 3) # 21\nprint(quorum)\n```\nOutput:\n21\n\n21 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0058901
Someone born June 7, 2005 turns how old by March 16, 2029? Give the age in whole years. Python, step by step: ```python from datetime import date born = date(2005, 6, 7) # datetime.date(2005, 6, 7) on = date(2029, 3, 16) # datetime.date(2029, 3, 16) age = on.year - born.year - ((on.month, on.day) < (born.month, born...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
161
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0058902
A water bill is $18 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 3 thousand gallons? The computation: ```python base = 18 rate = 4.2 used = 3 free = 2 bill = base + rate * max(0, used - free) # 22.2 print(f"{bill:.2f}") ``` Run result: 22.20 $22.20 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "22.20", "printed": "22.20", "notation": null}
nlprog_det-setting-0058903
Monthly: $12. Annual: $132. What is saved per year by paying annually? A Python solution: ```python monthly = 12 yearly = 132 savings = monthly * 12 - yearly # 12 print(savings) ``` Output = 12 $12 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0058904
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "get_weather", "...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
354
{"gold": "237", "printed": "237", "notation": null}
nlprog_det-setting-0058906
Convert -15 °C to Fahrenheit. Here is a short program for it. ```python celsius = -15 fahrenheit = celsius * 9 / 5 + 32 # 5.0 print(round(fahrenheit)) ``` (Out: 5) That is 5 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0058907
<|start|><|user|> Jae was born on January 17, 1988. How old is Jae on September 14, 2027?<|eot|> <|assistant|> ```python from datetime import date born = date(1988, 1, 17) # datetime.date(1988, 1, 17) on = date(2027, 9, 14) # datetime.date(2027, 9, 14) age = on.year - born.year - ((on.month, on.day) < (born.month, bo...
chat
[ { "role": "user", "content": "Jae was born on January 17, 1988. How old is Jae on September 14, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1988, 1, 17) # datetime.date(1988, 1, 17)\non = date(2027, 9, 14) # datetime.date(2027, 9, 14)\nage = o...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0058908
A hall has 14 rows of 21 seats, and 4 seats are empty. How many people are seated? Written as code: ```python rows = 14 per_row = 21 empty = 4 seated = rows * per_row - empty # 290 print(seated) ``` Interpreter output: 290 290 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "290", "printed": "290", "notation": null}
nlprog_det-setting-0058909
A quorum is 2/3 of the 10 members, rounded up. How many members make a quorum? The program: ```python import math members = 10 quorum = math.ceil(members * 2 / 3) # 7 print(quorum) ``` Program output — 7 That is 7 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0058910
<|start|><|user|> How many 2-foot square tiles cover a 15 ft by 10 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 15 width = 10 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 38 print(tiles) ``` Result: 38 38 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 2-foot square tiles cover a 15 ft by 10 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 15\nwidth = 10\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 38\nprint(tiles)\n```\nResult: 38\n\n38 tiles...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0058911
A water bill is $15 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 21 thousand gallons? Python, step by step: base = 15 rate = 3.5 used = 21 free = 0 bill = base + rate * max(0, used - free) # 88.5 print(f"{bill:.2f}") It prints 88.50. The bill is $88.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "88.50", "printed": "88.50", "notation": null}
nlprog_det-setting-0058912
Revenue is $22,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? Profit is 11.1% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0058913
After an initial $3,000, the remainder of a $30,000 grant is paid in 3 equal parts. What is each part? One way, in code: ```python grant = 30000 up_front = 3000 installments = 3 each = (grant - up_front) / installments # 9000.0 print(f"{each:.2f}") ``` (Program output: 9000.00) $9,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0058914
A shift starts at 11:30 AM and lasts 50 minutes. When does it end? Script: ```python start = 11 * 60 + 30 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` # run result: 12:20 PM It ends at 12:20 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "12:20 PM", "printed": "12:20 PM", "notation": null}
nlprog_det-setting-0058915
A recipe for 2 people uses 300 grams of sugar. How many grams are needed for 4 people? Python: grams = 300 serves = 2 needed_for = 4 scaled = grams * needed_for // serves # 600 print(scaled) Shell output — 600 600 grams of sugar are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0058916
<|start|><|system|> You may call the tools below. [{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "search_cases", "description...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
278
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0058917
Counting only Monday through Friday, how many business days are there after May 3, 2024 through May 17, 2024? Let the code do the arithmetic: ```python from datetime import date, timedelta start = date(2024, 5, 3) end = date(2024, 5, 17) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0058918
A settlement of $1,200 is split equally among 5 parties. How much does each party receive? As Python: ```python settlement = 1200 parties = 5 share = settlement // parties # 240 print(share) ``` Running it prints: 240 Each party receives $240.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0058919
At $0.67 per mile, what is the reimbursement for 589 miles? Grace is owed $394.63.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "394.63", "printed": "394.63", "notation": null}
nlprog_det-setting-0058920
At 1% a month (simple), what interest builds on $1,000 over 2 months? Here's the code. ```python balance = 1000 monthly_rate = 1 / 100 # 0.01 months = 2 interest = balance * monthly_rate * months # 20.0 print(f"{interest:.2f}") ``` Result: 20.00 The interest is $20.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "20.00", "printed": "20.00", "notation": null}
nlprog_det-setting-0058921
At 1% a month (simple), what interest builds on $2,500 over 2 months? $50.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "50.00", "printed": "50.00", "notation": null}
nlprog_det-setting-0058922
A $30,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment? In code: ```python grant = 30000 up_front = 3000 installments = 3 each = (grant - up_front) / installments print(f"{each:.2f}") ``` Running it prints: 9000.00 $9,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0058923
What percentage of $8,000 is $7,000? Program: ```python budget = 8000 spent = 7000 percent = spent / budget * 100 # 87.5 print(round(percent, 1)) ``` Run it and it prints 87.5. 87.5% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "87.5", "printed": "87.5", "notation": null}
nlprog_det-setting-0058924
<|start|><|system|> Tools (call with JSON): [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "math_engine", "description": "Executes a Python program and returns its output.", "paramete...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"math_engine\", \"description\": \"Exe...
nlprog_det
setting
original
null
deterministic
[]
[]
296
{"gold": "35400", "printed": "35400", "notation": null}
nlprog_det-setting-0058925
<|start|><|user|> 8 boxes hold 10 hard drives each. After 9 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 8 per_box = 10 given_away = 9 left = boxes * per_box - given_away # 71 print(left) ``` # printed: 71 That leaves 71 hard drives.<|eot|> <|end|>
chat
[ { "role": "user", "content": "8 boxes hold 10 hard drives each. After 9 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 8\nper_box = 10\ngiven_away = 9\nleft = boxes * per_box - given_away # 71\nprint(left)\n```\n# printed: 71\n\nThat leaves 71 hard ...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0058927
<|start|><|user|> At 40 miles per hour, how many minutes does a 220-mile trip take?<|eot|> <|assistant|> ```python distance = 220 speed = 40 minutes = distance / speed * 60 # 330.0 print(round(minutes)) ``` Output — 330 330 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 40 miles per hour, how many minutes does a 220-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 220\nspeed = 40\nminutes = distance / speed * 60 # 330.0\nprint(round(minutes))\n```\nOutput — 330\n\n330 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "330", "printed": "330", "notation": null}
nlprog_det-setting-0058928
A 15 × 6 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? ```python import math length = 15 width = 6 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 23 print(tiles) ``` # stdout: 23 It takes 23 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0058929
A hearing is set for August 16, 2001. What day of the week is that? It is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0058930
A 135-mile drive at a steady 45 mph takes how many minutes? 180 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0058931
A 7 lb package ships at $12 base plus $0.75/lb. What is the charge? Let's compute it with Python. ```python base = 12 per_pound = 0.75 weight = 7 cost = base + per_pound * weight # 17.25 print(f"{cost:.2f}") ``` (stdout: 17.25) The charge is $17.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "17.25", "printed": "17.25", "notation": null}
nlprog_det-setting-0058932
Convert 8,140 GBP to USD at 1 GBP = 1.08 USD. Program: ```python amount = 8140 rate = 1.08 converted = amount * rate # 8791.2 print(f"{converted:.2f}") ``` Run it and it prints: 8791.20 It converts to 8,791.20 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "8791.20", "printed": "8791.20", "notation": null}
nlprog_det-setting-0058933
How many 1-foot square tiles cover a 10 ft by 7 ft floor (round up)? In Python: ```python import math length = 10 width = 7 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 70 print(tiles) ``` stdout: 70 70 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0058934
An attorney bills 1.5 hours at $250 per hour. What is the bill? The computation: ```python hours = 1.5 rate = 250 bill = hours * rate # 375.0 print(f"{bill:.2f}") ``` # result: 375.00 The bill is $375.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "375.00", "printed": "375.00", "notation": null}
nlprog_det-setting-0058935
<|start|><|user|> A claim accrued on October 23, 2023. The limitations period is 5 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2023, 10, 23) # datetime.date(2023, 10, 23) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2028...
chat
[ { "role": "user", "content": "A claim accrued on October 23, 2023. The limitations period is 5 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2023, 10, 23) # datetime.date(2023, 10, 23)\nyears = 5\nexpires = accrue...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2028-10-23", "printed": "2028-10-23", "notation": null}
nlprog_det-setting-0058936
<|start|><|user|> A 37 lb package ships at $10 base plus $1.20/lb. What is the charge?<|eot|> <|assistant|> ```python base = 10 per_pound = 1.2 weight = 37 cost = base + per_pound * weight # 54.4 print(f"{cost:.2f}") ``` That prints: 54.40 Shipping costs $54.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 37 lb package ships at $10 base plus $1.20/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 10\nper_pound = 1.2\nweight = 37\ncost = base + per_pound * weight # 54.4\nprint(f\"{cost:.2f}\")\n```\nThat prints: 54.40\n\nShipping cost...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "54.40", "printed": "54.40", "notation": null}
nlprog_det-setting-0058939
<|start|><|user|> A 10 × 13 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 10 width = 13 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 33 print(tiles) ``` # output: 33 It takes 33 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 10 × 13 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 10\nwidth = 13\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 33\nprint(tiles)\n```\n# output: ...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "33", "printed": "33", "notation": null}