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-0063733
Prorate $1,500 of monthly rent for 12 days of a 31-day month. ```python rent = 1500 days_in_month = 31 days_occupied = 12 prorated = rent * days_occupied / days_in_month # 580.6451612903226 print(f"{prorated:.2f}") ``` stdout — 580.65 The prorated rent is $580.65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "580.65", "printed": "580.65", "notation": null}
nlprog_det-setting-0063734
<|start|><|user|> A room is 18 feet by 11 feet. Flooring costs $3 per square foot. What does it cost to floor the room?<|eot|> <|assistant|> It costs $594.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A room is 18 feet by 11 feet. Flooring costs $3 per square foot. What does it cost to floor the room?" }, { "role": "assistant", "content": "It costs $594." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "594", "printed": "594", "notation": null}
nlprog_det-setting-0063735
<|start|><|user|> Find the mean of these test scores: 57, 97, 80 and 90.<|eot|> <|assistant|> ```python scores = [57, 97, 80, 90] average = sum(scores) // len(scores) # 81 print(average) ``` # printed result: 81 The mean is 81.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Find the mean of these test scores: 57, 97, 80 and 90." }, { "role": "assistant", "content": "```python\nscores = [57, 97, 80, 90]\naverage = sum(scores) // len(scores) # 81\nprint(average)\n```\n# printed result: 81\n\nThe mean is 81." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "81", "printed": "81", "notation": null}
nlprog_det-setting-0063736
7 hours of work at $410 an hour: what is the total charge? Here is a short program for it. hours = 7 rate = 410 bill = hours * rate # 2870 print(f"{bill:.2f}") This prints 2870.00, as expected. That comes to $2,870.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "2870.00", "printed": "2870.00", "notation": null}
nlprog_det-setting-0063737
<|start|><|system|> You may call the tools below. [{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "translate", "description": "Translate text into another language.", "parameters": {"type...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"translate\", \"description\": \"Tr...
nlprog_det
setting
original
null
deterministic
[]
[]
369
{"gold": "85", "printed": "85", "notation": null}
nlprog_det-setting-0063738
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> An attorney bills 12 hours at $150 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 12 rate = 150 bill = hours * rate print(f"{bill:.2f}") ``` Running this gives: 1800.00 That comes to $1,800.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "An attorney bills 12 hours at $150 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 12\nrate = 150\nbill = hours * rate\nprint(f\"{bill:.2f}\")\n```\...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1800.00", "printed": "1800.00", "notation": null}
nlprog_det-setting-0063739
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "code_runner", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"code_runner\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Pyth...
nlprog_det
setting
original
null
deterministic
[]
[]
281
{"gold": "2027-05-20", "printed": "2027-05-20", "notation": null}
nlprog_det-setting-0063740
Convert 93.3 km to meters. Python does the arithmetic: ```python km = 93.3 meters = km * 1000 # 93300.0 print(round(meters)) ``` (Result: 93300) 93,300 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "93300", "printed": "93300", "notation": null}
nlprog_det-setting-0063741
<|start|><|user|> A library charges $0.20 per book per day late. What is the fine for 4 books that are 12 days late?<|eot|> <|assistant|> per_day = 0.2 days_late = 12 books = 4 fine = per_day * days_late * books # 9.600000000000001 print(f"{fine:.2f}") stdout — 9.60 The fine is $9.60.<|eot|> <|end...
chat
[ { "role": "user", "content": "A library charges $0.20 per book per day late. What is the fine for 4 books that are 12 days late?" }, { "role": "assistant", "content": " per_day = 0.2\n days_late = 12\n books = 4\n fine = per_day * days_late * books # 9.600000000000001\n print(f\"...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "9.60", "printed": "9.60", "notation": null}
nlprog_det-setting-0063742
What percentage of $4,000 is $1,300? The computation: ```python budget = 4000 spent = 1300 percent = spent / budget * 100 # 32.5 print(round(percent, 1)) ``` Console: 32.5 That is 32.5% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "32.5", "printed": "32.5", "notation": null}
nlprog_det-setting-0063743
Omar's scores were 88, 63, 74, 88, 53 and 90. What is the average score? Let's compute it with Python. ```python scores = [88, 63, 74, 88, 53, 90] average = sum(scores) // len(scores) # 76 print(average) ``` The code prints: 76 The average score is 76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0063745
<|start|><|user|> Grace drove 16 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 16 rate = 0.62 reimbursement = miles * rate # 9.92 print(f"{reimbursement:.2f}") ``` Running it prints 9.92, as expected. The reimbursement is $9.92.<|eot|> ...
chat
[ { "role": "user", "content": "Grace drove 16 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 16\nrate = 0.62\nreimbursement = miles * rate # 9.92\nprint(f\"{reimbursement:.2f}\")\n```\nRunning it ...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "9.92", "printed": "9.92", "notation": null}
nlprog_det-setting-0063746
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "lookup_statut...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
313
{"gold": "975", "printed": "975", "notation": null}
nlprog_det-setting-0063747
<|start|><|user|> What percentage of $5,000 is $2,100?<|eot|> <|assistant|> That is 42.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $5,000 is $2,100?" }, { "role": "assistant", "content": "That is 42.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "42.0", "printed": "42.0", "notation": null}
nlprog_det-setting-0063749
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-0063750
<|start|><|user|> What is the total rent on a 18-month lease at $1,640 a month?<|eot|> <|assistant|> ```python monthly_rent = 1640 months = 18 total = monthly_rent * months # 29520 print(total) ``` # program output: 29520 The rent over the term is $29,520.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 18-month lease at $1,640 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 1640\nmonths = 18\ntotal = monthly_rent * months # 29520\nprint(total)\n```\n# program output: 29520\n\nThe rent over the term is $29,520....
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "29520", "printed": "29520", "notation": null}
nlprog_det-setting-0063751
<|start|><|user|> The rules require 3/5 of 17 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 17 quorum = math.ceil(members * 3 / 5) # 11 print(quorum) ``` (Console output: 11) That is 11 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 3/5 of 17 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 17\nquorum = math.ceil(members * 3 / 5) # 11\nprint(quorum)\n```\n(Console output: 11)\n\nThat is 11 members." ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0063752
Parking is $3 per hour with a daily maximum of $18. What do 5 hours cost? The program: ```python rate = 3 hours = 5 daily_max = 18 cost = min(rate * hours, daily_max) # 15 print(cost) ``` The script prints: 15 Parking costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0063753
Filing fees are $75 per document. What do 16 filings cost? The filings cost $1,200 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0063754
How many meters are in 21.5 kilometers? A Python solution: ```python km = 21.5 meters = km * 1000 # 21500.0 print(round(meters)) ``` Out: 21500 That is 21,500 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "21500", "printed": "21500", "notation": null}
nlprog_det-setting-0063755
Priya buys 6 boxes of 8 notebooks each and gives away 5 notebooks. How many notebooks are left? The Python version: ```python boxes = 6 per_box = 8 given_away = 5 left = boxes * per_box - given_away # 43 print(left) ``` # printed result: 43 That leaves 43 notebooks.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0063756
What is the total rent on a 12-month lease at $975 a month? Program: ```python monthly_rent = 975 months = 12 total = monthly_rent * months # 11700 print(total) ``` Printed result: 11700 The rent over the term is $11,700.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "11700", "printed": "11700", "notation": null}
nlprog_det-setting-0063757
Split $4,144 between Lena and Oskar in the ratio 3 to 4. What is Lena's share? In code: ```python total = 4144 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 1776 print(share_a) ``` Out = 1776 Lena's share is $1,776.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1776", "printed": "1776", "notation": null}
nlprog_det-setting-0063758
<|start|><|user|> At 1.5% a month (simple), what interest builds on $12,000 over 5 months?<|eot|> <|assistant|> ```python balance = 12000 monthly_rate = 1.5 / 100 # 0.015 months = 5 interest = balance * monthly_rate * months # 900.0 print(f"{interest:.2f}") ``` (Result: 900.00) $900.00 accrues.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 1.5% a month (simple), what interest builds on $12,000 over 5 months?" }, { "role": "assistant", "content": "```python\nbalance = 12000\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 5\ninterest = balance * monthly_rate * months # 900.0\nprint(f\"{interest:.2f}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "900.00", "printed": "900.00", "notation": null}
nlprog_det-setting-0063759
<|start|><|user|> At 2% a month (simple), what interest builds on $7,500 over 5 months?<|eot|> <|assistant|> ```python balance = 7500 monthly_rate = 2 / 100 # 0.02 months = 5 interest = balance * monthly_rate * months # 750.0 print(f"{interest:.2f}") ``` Out: 750.00 $750.00 accrues.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 2% a month (simple), what interest builds on $7,500 over 5 months?" }, { "role": "assistant", "content": "```python\nbalance = 7500\nmonthly_rate = 2 / 100 # 0.02\nmonths = 5\ninterest = balance * monthly_rate * months # 750.0\nprint(f\"{interest:.2f}\")\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "750.00", "printed": "750.00", "notation": null}
nlprog_det-setting-0063760
Printing costs 12 cents a page. What does it cost to print 158 copies of a 40-page handout? Python makes this quick: ```python pages = 40 copies = 158 cost_per_page = 0.12 cost = pages * copies * cost_per_page print(f"{cost:.2f}") ``` (Run result: 758.40) Printing costs $758.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "758.40", "printed": "758.40", "notation": null}
nlprog_det-setting-0063761
A settlement of $84,000 is split equally among 8 parties. How much does each party receive? ```python settlement = 84000 parties = 8 share = settlement // parties # 10500 print(share) ``` Running it prints 10500, as expected. Each party receives $10,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "10500", "printed": "10500", "notation": null}
nlprog_det-setting-0063762
Count 90 days forward from December 10, 2026. What date is that? As a program: ```python from datetime import date, timedelta start = date(2026, 12, 10) # datetime.date(2026, 12, 10) end = start + timedelta(days=90) # datetime.date(2027, 3, 10) print(end.isoformat()) ``` This prints 2027-03-10, as expected. It ends...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2027-03-10", "printed": "2027-03-10", "notation": null}
nlprog_det-setting-0063763
10 paper reams cost $5 apiece. With 5% tax added, what is the total? Coded up: ```python quantity = 10 unit_price = 5 subtotal = quantity * unit_price total = subtotal * (1 + 5 / 100) print(f"{total:.2f}") ``` Out: 52.50 The total with tax is $52.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "52.50", "printed": "52.50", "notation": null}
nlprog_det-setting-0063764
How many minutes pass from 8:52 AM to 2:01 PM on the same day? We can compute it in Python. ```python start = 8 * 60 + 52 # 532 end = 14 * 60 + 1 # 841 print(end - start) ``` # printed: 309 It is 309 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "309", "printed": "309", "notation": null}
nlprog_det-setting-0063765
What is 15 degrees Celsius in Fahrenheit? We write it as a program: celsius = 15 fahrenheit = celsius * 9 / 5 + 32 # 59.0 print(round(fahrenheit)) What it prints — 59 It equals 59 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0063766
Rent of $900 goes up 3%. What is the new rent? A short script: ```python rent = 900 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 927.0 print(f"{new_rent:.2f}") ``` Program output — 927.00 It rises to $927.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "927.00", "printed": "927.00", "notation": null}
nlprog_det-setting-0063767
<|start|><|system|> You may call the tools below. {"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Under a 40% contingency agr...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s...
nlprog_det
setting
original
null
deterministic
[]
[]
223
{"gold": "10000.00", "printed": "10000.00", "notation": null}
nlprog_det-setting-0063768
<|start|><|user|> A party has 14 days to respond to a motion served on July 10, 2023, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2023, 7, 10) # datetime.date(2023, 7, 10) response_days = 14 mail_days = 3 due...
chat
[ { "role": "user", "content": "A party has 14 days to respond to a motion served on July 10, 2023, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2023, 7, 10) # datetim...
nlprog_det
setting
original
null
deterministic
[]
[]
173
{"gold": "2023-07-27", "printed": "2023-07-27", "notation": null}
nlprog_det-setting-0063769
A 37 lb package ships at $10 base plus $1.20/lb. What is the charge? Script: ```python base = 10 per_pound = 1.2 weight = 37 cost = base + per_pound * weight # 54.4 print(f"{cost:.2f}") ``` Run it and it prints: 54.40 Shipping costs $54.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "54.40", "printed": "54.40", "notation": null}
nlprog_det-setting-0063770
At a 4% tax rate, what is the tax on $543.78? Python version: ```python price = 543.78 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 21.7512 print(f"{tax:.2f}") ``` The script prints 21.75. The tax is $21.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "21.75", "printed": "21.75", "notation": null}
nlprog_det-setting-0063771
<|start|><|system|> You help with homework problems.<|eot|> <|user|> Which is cheaper per unit: 12 for $7.67 (A) or 18 for $27.67 (B)?<|eot|> <|assistant|> ```python pack_a = 7.67 / 12 # 0.6391666666666667 pack_b = 27.67 / 18 # 1.5372222222222223 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Out...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "Which is cheaper per unit: 12 for $7.67 (A) or 18 for $27.67 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 7.67 / 12 # 0.6391666666666667\npack_b = 27.67 / 18 # 1.53...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0063772
<|start|><|user|> Monthly rent is $1,500. A tenant moves in with 5 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> rent = 1500 days_in_month = 30 days_occupied = 5 prorated = rent * days_occupied / days_in_month # 250.0 print(f"{prorated:.2f}") It outputs: 250.00 The t...
chat
[ { "role": "user", "content": "Monthly rent is $1,500. A tenant moves in with 5 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": " rent = 1500\n days_in_month = 30\n days_occupied = 5\n prorated = rent * days_occupied / days_in_month # 250...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "250.00", "printed": "250.00", "notation": null}
nlprog_det-setting-0063773
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 49 hours? Here is the program. ```python rate = 18.5 hours = 49 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{pay:.2f}") ``` Executed, it shows: 989.75 The weekly pay is $989.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "989.75", "printed": "989.75", "notation": null}
nlprog_det-setting-0063774
Water costs $15 a month plus $4.20 for each 1,000 gallons over 2,000. What is owed for 9,000 gallons? A short script: ```python base = 15 rate = 4.2 used = 9 free = 2 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") ``` The code prints 44.40. The bill is $44.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "44.40", "printed": "44.40", "notation": null}
nlprog_det-setting-0063775
At an exchange rate of 1.27 USD per GBP, how many USD is 4,874 GBP? We can compute it in Python. ```python amount = 4874 rate = 1.27 converted = amount * rate # 6189.9800000000005 print(f"{converted:.2f}") ``` # run result: 6189.98 It converts to 6,189.98 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "6189.98", "printed": "6189.98", "notation": null}
nlprog_det-setting-0063776
A hearing is set for June 25, 2006. What day of the week is that? Here is the program. from datetime import date hearing = date(2006, 6, 25) # datetime.date(2006, 6, 25) print(hearing.strftime("%A")) stdout: Sunday It is a Sunday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0063777
Copies cost $10 plus $0.10 for each page beyond 20. How much for 34 pages? A Python solution: ```python pages = 34 base = 10 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 11.4 print(f"{cost:.2f}") ``` Out: 11.40 The total is $11.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "11.40", "printed": "11.40", "notation": null}
nlprog_det-setting-0063778
Shipping costs $8 plus $1.20 per pound. What does a 29-pound parcel cost to ship? ```python base = 8 per_pound = 1.2 weight = 29 cost = base + per_pound * weight # 42.8 print(f"{cost:.2f}") ``` The program outputs 42.80. Shipping costs $42.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "42.80", "printed": "42.80", "notation": null}
nlprog_det-setting-0063779
<|start|><|system|> You may call the tools below. [{"name": "py_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Express 379 hours in da...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"py_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
210
{"gold": "15 days and 19 hours", "printed": "15 days and 19 hours", "notation": null}
nlprog_det-setting-0063780
<|start|><|user|> Walls total 379 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 379 coverage = 250 cans = math.ceil(area / coverage) # 2 print(cans) ``` Output of the run — 2 Buy 2 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 379 sq ft and each can covers 250 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 379\ncoverage = 250\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nOutput of the run — 2\n\nBuy 2 c...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0063781
<|start|><|system|> Be concise.<|eot|> <|user|> Pack A has 10 items for $8.85. Pack B has 30 items for $17.91. Which has the lower price per item?<|eot|> <|assistant|> ```python pack_a = 8.85 / 10 # 0.885 pack_b = 17.91 / 30 # 0.597 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` That prints B. P...
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "Pack A has 10 items for $8.85. Pack B has 30 items for $17.91. Which has the lower price per item?" }, { "role": "assistant", "content": "```python\npack_a = 8.85 / 10 # 0.885\npack_b = 17.91 / 30 # 0.597...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0063782
A car travels 270 miles in 0.5 hours. What is its average speed in miles per hour? The computation: ```python distance = 270 hours = 0.5 speed = distance / hours # 540.0 print(round(speed)) ``` Run result — 540 The average speed is 540 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "540", "printed": "540", "notation": null}
nlprog_det-setting-0063783
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> A client paid a $10,000 retainer. The firm has billed 10 hours at $150 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 10000 hours = 10 rate = 150 left = retainer - hours * rate # 8500 print(left) ``` What it prin...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "A client paid a $10,000 retainer. The firm has billed 10 hours at $150 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 10000\nhou...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "8500", "printed": "8500", "notation": null}
nlprog_det-setting-0063784
A service costs $19 a month or $204 a year. How much does the yearly plan save over 12 monthly payments? ```python monthly = 19 yearly = 204 savings = monthly * 12 - yearly # 24 print(savings) ``` Executing it gives 24, as expected. $24 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0063785
What commission does Oskar make on $106,552 in sales at 2%? ```python sales = 106552 rate = 2 / 100 # 0.02 commission = sales * rate # 2131.04 print(f"{commission:.2f}") ``` Console output — 2131.04 The commission is $2,131.04.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "2131.04", "printed": "2131.04", "notation": null}
nlprog_det-setting-0063786
Copies cost $15 plus $0.10 for each page beyond 10. How much for 5 pages? The program: ```python pages = 5 base = 15 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") ``` Console: 15.00 The copy costs $15.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0063787
How many weekdays (Monday to Friday) fall after November 20, 2019 up to and including December 8, 2019? A Python solution: ```python from datetime import date, timedelta start = date(2019, 11, 20) end = date(2019, 12, 8) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0063788
Shipping costs $12 plus $2.50 per pound. What does a 21-pound parcel cost to ship? The program: ```python base = 12 per_pound = 2.5 weight = 21 cost = base + per_pound * weight # 64.5 print(f"{cost:.2f}") ``` Execution result — 64.50 Shipping costs $64.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "64.50", "printed": "64.50", "notation": null}
nlprog_det-setting-0063789
65 files go into boxes of 20. How many boxes does that take? Translated to Python: ```python import math files = 65 per_box = 20 boxes = math.ceil(files / per_box) # 4 print(boxes) ``` (Printed result: 4) It takes 4 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0063790
Prorate $1,500 of monthly rent for 14 days of a 30-day month. One way, in code: ```python rent = 1500 days_in_month = 30 days_occupied = 14 prorated = rent * days_occupied / days_in_month # 700.0 print(f"{prorated:.2f}") ``` stdout: 700.00 The tenant owes $700.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "700.00", "printed": "700.00", "notation": null}
nlprog_det-setting-0063791
A penalty of $100 a day accrues, capped at $2,500. What is owed after 26 days? Written as code: ```python per_day = 100 days = 26 cap = 2500 fine = min(per_day * days, cap) print(fine) ``` Running this gives: 2500 The fine is $2,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0063792
Express 326 hours in days and hours. The program: ```python hours = 326 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Run output: 13 days and 14 hours That is 13 days and 14 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "13 days and 14 hours", "printed": "13 days and 14 hours", "notation": null}
nlprog_det-setting-0063793
A meal costs $247.19. How much is a 18% tip? A short script: ```python bill = 247.19 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 44.4942 print(f"{tip:.2f}") ``` When run, it prints 44.49. The tip is $44.49.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "44.49", "printed": "44.49", "notation": null}
nlprog_det-setting-0063794
<|start|><|user|> A hall has 15 rows of 8 seats, and 25 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 15 per_row = 8 empty = 25 seated = rows * per_row - empty # 95 print(seated) ``` This prints 95, as expected. 95 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 15 rows of 8 seats, and 25 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 15\nper_row = 8\nempty = 25\nseated = rows * per_row - empty # 95\nprint(seated)\n```\nThis prints 95, as expected.\n\n95 sea...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0063795
<|start|><|system|> You may call the tools below. {"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> An unpaid balance of $...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
235
{"gold": "80.00", "printed": "80.00", "notation": null}
nlprog_det-setting-0063796
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> $2,000 is invested at 5% compounded yearly. What is it worth after 4 years?<|eot|> <|assistant|> principal = 2000 rate = 5 / 100 years = 4 value = principal * (1 + rate) ** years print(f"{value:.2f}") It outputs: 2431.01 I...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "$2,000 is invested at 5% compounded yearly. What is it worth after 4 years?" }, { "role": "assistant", "content": " principal = 2000\n rate = 5 / 100\n years = 4\n v...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "2431.01", "printed": "2431.01", "notation": null}
nlprog_det-setting-0063797
Copies cost $5 plus $0.50 for each page beyond 0. How much for 71 pages? In Python: ```python pages = 71 base = 5 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 40.5 print(f"{cost:.2f}") ``` Execution prints: 40.50 The copy costs $40.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "40.50", "printed": "40.50", "notation": null}
nlprog_det-setting-0063799
Someone born July 21, 1968 turns how old by June 10, 2027? Give the age in whole years. Program: ```python from datetime import date born = date(1968, 7, 21) # datetime.date(1968, 7, 21) on = date(2027, 6, 10) # datetime.date(2027, 6, 10) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 5...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "58", "printed": "58", "notation": null}
nlprog_det-setting-0063800
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> 2 books come back 15 days late, at $0.50 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.5 days_late = 15 books = 2 fine = per_day * days_late * books # 15.0 print(f"{fine:.2f}") ``` (Out: 15.00) $15.00 is owed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "2 books come back 15 days late, at $0.50 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.5\ndays_late = 15\nbooks = 2\nfine = per_day * days_late * boo...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0063801
<|start|><|user|> How many of 275 votes make 75% (round up)?<|eot|> <|assistant|> ```python import math voters = 275 needed = math.ceil(voters * 75 / 100) # 207 print(needed) ``` The script prints: 207 207 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 275 votes make 75% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 275\nneeded = math.ceil(voters * 75 / 100) # 207\nprint(needed)\n```\nThe script prints: 207\n\n207 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "207", "printed": "207", "notation": null}
nlprog_det-setting-0063802
<|start|><|user|> Meals are $59 per day and lodging $175 per night. What is the allowance for 4 days and 3 nights?<|eot|> <|assistant|> The allowance is $761.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Meals are $59 per day and lodging $175 per night. What is the allowance for 4 days and 3 nights?" }, { "role": "assistant", "content": "The allowance is $761." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "761", "printed": "761", "notation": null}
nlprog_det-setting-0063803
<|start|><|system|> Be brief and correct.<|eot|> <|user|> A pack of 5 headsets sells for $270. What does each cost?<|eot|> <|assistant|> Each one costs $54.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "A pack of 5 headsets sells for $270. What does each cost?" }, { "role": "assistant", "content": "Each one costs $54." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0063804
Yara lends $1,000 at 2% simple interest per year for 5 years. How much interest is earned? Python version: ```python principal = 1000 rate = 2 / 100 # 0.02 years = 5 interest = principal * rate * years # 100.0 print(f"{interest:.2f}") ``` (Run result: 100.00) The interest is $100.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "100.00", "printed": "100.00", "notation": null}
nlprog_det-setting-0063805
<|start|><|user|> A 23 lb package ships at $10 base plus $2.00/lb. What is the charge?<|eot|> <|assistant|> ```python base = 10 per_pound = 2.0 weight = 23 cost = base + per_pound * weight print(f"{cost:.2f}") ``` # printed: 56.00 Shipping costs $56.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 23 lb package ships at $10 base plus $2.00/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 10\nper_pound = 2.0\nweight = 23\ncost = base + per_pound * weight\nprint(f\"{cost:.2f}\")\n```\n# printed: 56.00\n\nShipping costs $56.00."...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "56.00", "printed": "56.00", "notation": null}
nlprog_det-setting-0063806
<|start|><|user|> Monthly: $12. Annual: $120. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 12 yearly = 120 savings = monthly * 12 - yearly # 24 print(savings) ``` Execution result — 24 $24 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $12. Annual: $120. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 12\nyearly = 120\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\nExecution result — 24\n\n$24 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0063807
<|start|><|user|> Hana buys 10 boxes of 10 markers each and gives away 11 markers. How many markers are left?<|eot|> <|assistant|> ```python boxes = 10 per_box = 10 given_away = 11 left = boxes * per_box - given_away # 89 print(left) ``` Printed — 89 89 markers are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Hana buys 10 boxes of 10 markers each and gives away 11 markers. How many markers are left?" }, { "role": "assistant", "content": "```python\nboxes = 10\nper_box = 10\ngiven_away = 11\nleft = boxes * per_box - given_away # 89\nprint(left)\n```\nPrinted — 89\n\n89 m...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "89", "printed": "89", "notation": null}
nlprog_det-setting-0063808
A shift runs from 11:22 AM to 2:41 PM. How long is it in minutes? Script: ```python start = 11 * 60 + 22 # 682 end = 14 * 60 + 41 # 881 print(end - start) ``` Result: 199 It is 199 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "199", "printed": "199", "notation": null}
nlprog_det-setting-0063809
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> A lease runs for 12 months at $1,200 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 1200 months = 12 total = monthly_rent * months # 14400 print(total) ``` # printed: 14400 The rent over the term is $...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "A lease runs for 12 months at $1,200 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 1200\nmonths = 12\ntotal = monthl...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "14400", "printed": "14400", "notation": null}
nlprog_det-setting-0063810
<|start|><|user|> 5 friends split a $150 bill plus a 15% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 150 tip_rate = 15 / 100 # 0.15 people = 5 each = bill * (1 + tip_rate) / people # 34.5 print(f"{each:.2f}") ``` The run gives: 34.50 Each person pays $34.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "5 friends split a $150 bill plus a 15% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 150\ntip_rate = 15 / 100 # 0.15\npeople = 5\neach = bill * (1 + tip_rate) / people # 34.5\nprint(f\"{each:.2f}\")\n```\nThe run give...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "34.50", "printed": "34.50", "notation": null}
nlprog_det-setting-0063811
<|start|><|user|> Each of Tomas's bike rides burns 400 calories. How many calories over 7 bike rides?<|eot|> <|assistant|> ```python per_session = 400 sessions = 7 total = per_session * sessions print(total) ``` The interpreter prints: 2800 2800 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Tomas's bike rides burns 400 calories. How many calories over 7 bike rides?" }, { "role": "assistant", "content": "```python\nper_session = 400\nsessions = 7\ntotal = per_session * sessions\nprint(total)\n```\nThe interpreter prints: 2800\n\n2800 calories in...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "2800", "printed": "2800", "notation": null}
nlprog_det-setting-0063812
<|start|><|user|> A hearing starts at 4:40 PM and lasts 50 minutes. When does it end?<|eot|> <|assistant|> It ends at 5:30 PM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing starts at 4:40 PM and lasts 50 minutes. When does it end?" }, { "role": "assistant", "content": "It ends at 5:30 PM." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "5:30 PM", "printed": "5:30 PM", "notation": null}
nlprog_det-setting-0063813
How many meters are in 64.6 kilometers? Code: ```python km = 64.6 meters = km * 1000 # 64599.99999999999 print(round(meters)) ``` Shell output: 64600 64,600 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "64600", "printed": "64600", "notation": null}
nlprog_det-setting-0063814
Meals are $79 per day and lodging $110 per night. What is the allowance for 5 days and 4 nights? Python does the arithmetic: ```python days = 5 meal_rate = 79 lodging_rate = 110 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 835 print(total) ``` (Printed: 835) That comes to $835.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "835", "printed": "835", "notation": null}
nlprog_det-setting-0063815
A settlement of $7,344 is split equally among 8 parties. How much does each party receive? Computation in Python: ```python settlement = 7344 parties = 8 share = settlement // parties # 918 print(share) ``` Executing it gives: 918 Each share is $918.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "918", "printed": "918", "notation": null}
nlprog_det-setting-0063816
<|start|><|user|> Walls total 742 sq ft and each can covers 300 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 742 coverage = 300 cans = math.ceil(area / coverage) # 3 print(cans) ``` Printed = 3 3 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 742 sq ft and each can covers 300 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 742\ncoverage = 300\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nPrinted = 3\n\n3 cans are needed...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0063817
The firm was founded in 1999. How many years had passed by 2025? 26 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
22
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0063818
<|start|><|user|> How many units at $25 each (variable cost $17) cover $1,200 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 1200 price = 25 variable = 17 units = math.ceil(fixed / (price - variable)) # 150 print(units) ``` Execution prints 150, as expected. Break-even is 150 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $25 each (variable cost $17) cover $1,200 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 1200\nprice = 25\nvariable = 17\nunits = math.ceil(fixed / (price - variable)) # 150\nprint(units)\n```\nExecution pri...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0063819
<|start|><|system|> You have access to these functions: [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "python", "description": "Use for arithmetic and date math; returns stdout of t...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"python\", \"description\...
nlprog_det
setting
original
null
deterministic
[]
[]
389
{"gold": "26.00", "printed": "26.00", "notation": null}
nlprog_det-setting-0063820
A storeroom has 1673 labels. The office uses 35 a day. How many are left after 6 days? As Python: ```python stock = 1673 per_day = 35 days = 6 left = stock - per_day * days # 1463 print(left) ``` Output: 1463 1463 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1463", "printed": "1463", "notation": null}
nlprog_det-setting-0063821
<|start|><|user|> A party has 28 days to respond to a motion served on October 2, 2023, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2023, 10, 2) response_days = 28 mail_days = 3 due = served + timedelta(days=r...
chat
[ { "role": "user", "content": "A party has 28 days to respond to a motion served on October 2, 2023, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2023, 10, 2)\nrespons...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2023-11-02", "printed": "2023-11-02", "notation": null}
nlprog_det-setting-0063822
Fixed costs are $6,000. Each unit sells for $25 and costs $20 to make. How many units must be sold to break even? ```python import math fixed = 6000 price = 25 variable = 20 units = math.ceil(fixed / (price - variable)) # 1200 print(units) ``` # out: 1200 Break-even is 1200 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0063823
A $12,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment? $2,500.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "2500.00", "printed": "2500.00", "notation": null}
nlprog_det-setting-0063824
If a 25-minute shift begins at 4:20 PM, what time does it finish? Python makes this quick: start = 16 * 60 + 20 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") What it prints — 4:45 PM The shift finishes at 4:45 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "4:45 PM", "printed": "4:45 PM", "notation": null}
nlprog_det-setting-0063825
<|start|><|system|> Tool definitions: {"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": "business_days", "description": "Count bus...
chat
[ { "role": "system", "content": "Tool definitions:\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\", \"secti...
nlprog_det
setting
original
null
deterministic
[]
[]
385
{"gold": "565", "printed": "565", "notation": null}
nlprog_det-setting-0063826
A 10 lb package ships at $5 base plus $2.00/lb. What is the charge? ```python base = 5 per_pound = 2.0 weight = 10 cost = base + per_pound * weight print(f"{cost:.2f}") ``` Console output: 25.00 The charge is $25.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "25.00", "printed": "25.00", "notation": null}
nlprog_det-setting-0063827
Parking is $3 per hour with a daily maximum of $18. What do 2 hours cost? Python code: ```python rate = 3 hours = 2 daily_max = 18 cost = min(rate * hours, daily_max) # 6 print(cost) ``` Printed = 6 The charge is $6.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0063828
<|start|><|user|> A measure needs at least 67% of 88 votes. How many votes is that, rounded up?<|eot|> <|assistant|> 59 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 67% of 88 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "59 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0063829
A service costs $25 a month or $288 a year. How much does the yearly plan save over 12 monthly payments? One way, in code: ```python monthly = 25 yearly = 288 savings = monthly * 12 - yearly # 12 print(savings) ``` Python prints 12. The annual plan saves $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0063830
$10,000 is invested at 4% compounded yearly. What is it worth after 4 years? Written as code: ```python principal = 10000 rate = 4 / 100 # 0.04 years = 4 value = principal * (1 + rate) ** years # 11698.585600000002 print(f"{value:.2f}") ``` Output: 11698.59 It is worth $11,698.59.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "11698.59", "printed": "11698.59", "notation": null}
nlprog_det-setting-0063831
An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 4 months? As a program: ```python balance = 2500 monthly_rate = 1.5 / 100 # 0.015 months = 4 interest = balance * monthly_rate * months # 150.0 print(f"{interest:.2f}") ``` Run result = 150.00 The interest is $150.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0063832
With 8 rows of 9 chairs and 19 empty chairs, how many chairs are taken? Python: ```python rows = 8 per_row = 9 empty = 19 seated = rows * per_row - empty # 53 print(seated) ``` Printed result: 53 53 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0063833
<|start|><|system|> Tool definitions: [{"name": "interpreter", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "define_word", "description": "Return a di...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"interpreter\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]...
nlprog_det
setting
original
null
deterministic
[]
[]
289
{"gold": "70.50", "printed": "70.50", "notation": null}
nlprog_det-setting-0063834
<|start|><|user|> A garage charges $3 an hour, never more than $20 a day. How much for 3 hours?<|eot|> <|assistant|> ```python rate = 3 hours = 3 daily_max = 20 cost = min(rate * hours, daily_max) # 9 print(cost) ``` (Printed: 9) Parking costs $9.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $3 an hour, never more than $20 a day. How much for 3 hours?" }, { "role": "assistant", "content": "```python\nrate = 3\nhours = 3\ndaily_max = 20\ncost = min(rate * hours, daily_max) # 9\nprint(cost)\n```\n(Printed: 9)\n\nParking costs $9." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0063835
<|start|><|user|> A count moves from 400 to 240. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> The change is -40%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 400 to 240. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "The change is -40%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "-40", "printed": "-40", "notation": null}