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-0079035
Farah's scores were 66, 84, 85, 79, 76, 92 and 57. What is the average score? The average score is 77.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0079036
One can of paint covers 250 square feet. How many cans are needed for 239 square feet of wall? Here's the code. ```python import math area = 239 coverage = 250 cans = math.ceil(area / coverage) # 1 print(cans) ``` Program output: 1 Buy 1 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0079037
<|start|><|system|> You have access to these functions: [{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A 5 × 15 f...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
235
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0079038
A claim accrued on December 23, 2015. The limitations period is 3 years. On what date does it expire? Here is a short program for it. ```python from datetime import date accrued = date(2015, 12, 23) # datetime.date(2015, 12, 23) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 12,...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2018-12-23", "printed": "2018-12-23", "notation": null}
nlprog_det-setting-0079039
A party has 21 days to respond to a motion served on August 28, 2022, with 3 days added because service was by mail. When is the response due? Code: from datetime import date, timedelta served = date(2022, 8, 28) # datetime.date(2022, 8, 28) response_days = 21 mail_days = 3 due = served + timedelt...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "2022-09-21", "printed": "2022-09-21", "notation": null}
nlprog_det-setting-0079040
Meals are $69 per day and lodging $110 per night. What is the allowance for 4 days and 3 nights? A short script: ```python days = 4 meal_rate = 69 lodging_rate = 110 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 606 print(total) ``` On running, it outputs 606. That comes to $606.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "606", "printed": "606", "notation": null}
nlprog_det-setting-0079041
Sales went from 400 to 300. What is the percent change? As a program: ```python old = 400 new = 300 change = (new - old) / old * 100 # -25.0 print(round(change)) ``` (Output: -25) The change is -25%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "-25", "printed": "-25", "notation": null}
nlprog_det-setting-0079043
What percentage of $4,000 is $2,900? A short script: ```python budget = 4000 spent = 2900 percent = spent / budget * 100 # 72.5 print(round(percent, 1)) ``` Result: 72.5 72.5% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "72.5", "printed": "72.5", "notation": null}
nlprog_det-setting-0079044
<|start|><|user|> Pack A has 10 items for $9.28. Pack B has 20 items for $28.84. Which has the lower price per item?<|eot|> <|assistant|> pack_a = 9.28 / 10 # 0.9279999999999999 pack_b = 28.84 / 20 # 1.442 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) Execution prints A, as expected....
chat
[ { "role": "user", "content": "Pack A has 10 items for $9.28. Pack B has 20 items for $28.84. Which has the lower price per item?" }, { "role": "assistant", "content": " pack_a = 9.28 / 10 # 0.9279999999999999\n pack_b = 28.84 / 20 # 1.442\n cheaper = \"A\" if pack_a < pack_b else \"B\...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0079045
Under a 30% contingency agreement, what fee is owed on a $60,000 award? As Python: ```python recovery = 60000 rate = 30 / 100 # 0.3 fee = recovery * rate # 18000.0 print(f"{fee:.2f}") ``` Execution prints 18000.00. The lawyer's fee comes to $18,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0079046
With $12,500 in costs and $14,500 in revenue, what percent of revenue is profit? Round to one decimal. In code: ```python revenue = 14500 costs = 12500 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 13.793103448275861 print(round(margin, 1)) ``` What it prints: 13.8 Profit is 13.8% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "13.8", "printed": "13.8", "notation": null}
nlprog_det-setting-0079047
Express 285 hours in days and hours. Written as code: ```python hours = 285 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Run it and it prints: 11 days and 21 hours 285 hours is 11 days and 21 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "11 days and 21 hours", "printed": "11 days and 21 hours", "notation": null}
nlprog_det-setting-0079048
240 volunteers are split into 8 equal teams. How many are on each team, and how many are left over? As a program: total = 240 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") Running this gives 30 each, 0 left over. The answer: 30 each, 0 left o...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "30 each, 0 left over", "printed": "30 each, 0 left over", "notation": null}
nlprog_det-setting-0079049
What is the total rent on a 6-month lease at $3,250 a month? The program: ```python monthly_rent = 3250 months = 6 total = monthly_rent * months # 19500 print(total) ``` (Printed result: 19500) The rent over the term is $19,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "19500", "printed": "19500", "notation": null}
nlprog_det-setting-0079050
<|start|><|user|> The rules require 2/3 of 25 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 25 quorum = math.ceil(members * 2 / 3) # 17 print(quorum) ``` It prints: 17 17 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 2/3 of 25 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 25\nquorum = math.ceil(members * 2 / 3) # 17\nprint(quorum)\n```\nIt prints: 17\n\n17 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0079051
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "interpreter", "description": "Python sandbox for calculations...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"interp...
nlprog_det
setting
original
null
deterministic
[]
[]
281
{"gold": "156", "printed": "156", "notation": null}
nlprog_det-setting-0079052
A shift runs from 11:23 AM to 11:53 AM. How long is it in minutes? It is 30 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0079053
How many weekdays (Monday to Friday) fall after November 4, 2024 up to and including December 8, 2024? Here is the program. ```python from datetime import date, timedelta start = date(2024, 11, 4) end = date(2024, 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
[]
[]
157
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0079054
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 49 hours? Translated to Python: ```python rate = 22.4 hours = 49 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 302.4 pay = regular + overtime # 1198.4 print(f"{pay:.2f}") ``` The code prints: 1198.40 Tomas e...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "1198.40", "printed": "1198.40", "notation": null}
nlprog_det-setting-0079055
<|start|><|user|> Ulla earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 49-hour week?<|eot|> <|assistant|> ```python rate = 20.0 hours = 49 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 270.0 pay = regular + overtime # 1070.0 print(f"{pay:.2f}") ``` What it print...
chat
[ { "role": "user", "content": "Ulla earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 49-hour week?" }, { "role": "assistant", "content": "```python\nrate = 20.0\nhours = 49\nregular = 40 * rate # 800.0\novertime = (hours - 40) * rate * 1.5 # 270.0\npay = regular...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "1070.00", "printed": "1070.00", "notation": null}
nlprog_det-setting-0079056
<|start|><|user|> An invoice lists 34 lanyards at $5 each, plus 7% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 34 unit_price = 5 subtotal = quantity * unit_price # 170 total = subtotal * (1 + 7 / 100) # 181.9 print(f"{total:.2f}") ``` Run it and it prints 181.90. The invoice total...
chat
[ { "role": "user", "content": "An invoice lists 34 lanyards at $5 each, plus 7% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 34\nunit_price = 5\nsubtotal = quantity * unit_price # 170\ntotal = subtotal * (1 + 7 / 100) # 181.9\nprint(f\"{tota...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "181.90", "printed": "181.90", "notation": null}
nlprog_det-setting-0079057
<|start|><|user|> Convert 2 h 47 min (the length of a hearing) to minutes.<|eot|> <|assistant|> hours = 2 minutes = 47 total_minutes = hours * 60 + minutes # 167 print(total_minutes) (Console output: 167) The hearing lasted 167 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 2 h 47 min (the length of a hearing) to minutes." }, { "role": "assistant", "content": " hours = 2\n minutes = 47\n total_minutes = hours * 60 + minutes # 167\n print(total_minutes)\n(Console output: 167)\n\nThe hearing lasted 167 minutes." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "167", "printed": "167", "notation": null}
nlprog_det-setting-0079058
A appointment starts at 9:20 AM and lasts 105 minutes. When does it end? One way, in code: ```python start = 9 * 60 + 20 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Running it prints 11:05 AM. The appointment finishes at 11:05 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "11:05 AM", "printed": "11:05 AM", "notation": null}
nlprog_det-setting-0079059
9 boxes hold 8 binders each. After 10 are handed out, how many are left? That leaves 62 binders.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "62", "printed": "62", "notation": null}
nlprog_det-setting-0079060
Counting only Monday through Friday, how many business days are there after December 3, 2023 through January 2, 2024? The program: ```python from datetime import date, timedelta start = date(2023, 12, 3) end = date(2024, 1, 2) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).week...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0079061
<|start|><|system|> Tool definitions: [{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "convert_units", "description": "Convert a qu...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}},...
nlprog_det
setting
original
null
deterministic
[]
[]
319
{"gold": "772.48", "printed": "772.48", "notation": null}
nlprog_det-setting-0079062
<|start|><|user|> Copies cost $5 plus $0.25 for each page beyond 10. How much for 75 pages?<|eot|> <|assistant|> pages = 75 base = 5 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") On running, it outputs 21.25. The copy costs $21.25.<|eot...
chat
[ { "role": "user", "content": "Copies cost $5 plus $0.25 for each page beyond 10. How much for 75 pages?" }, { "role": "assistant", "content": " pages = 75\n base = 5\n per_page = 0.25\n free_pages = 10\n cost = base + max(0, pages - free_pages) * per_page\n print(f\"{cost:.2f}\...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "21.25", "printed": "21.25", "notation": null}
nlprog_det-setting-0079063
With 30% off, what does a $120 kettle cost? In code: ```python price = 120 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 84.0 print(f"{sale_price:.2f}") ``` When run, it prints: 84.00 It costs $84.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "84.00", "printed": "84.00", "notation": null}
nlprog_det-setting-0079064
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> 179 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> total = 179 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left ove...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "179 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": " total = 179\n groups = 8\n per_group...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "22 each, 3 left over", "printed": "22 each, 3 left over", "notation": null}
nlprog_det-setting-0079065
<|start|><|user|> To read 256 pages in 16 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 256 days = 16 per_day = pages // days # 16 print(per_day) ``` Out: 16 That is 16 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 256 pages in 16 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 256\ndays = 16\nper_day = pages // days # 16\nprint(per_day)\n```\nOut:\n16\n\nThat is 16 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0079066
A customer buys 1 file boxes at $7 each, 6 file boxes at $23 each, 2 notebooks at $5 each, 3 staplers at $4 each and pays with $200. How much change is due? Code: ```python items = [(1, 7), (6, 23), (2, 5), (3, 4)] total = sum(q * p for q, p in items) # 167 paid = 200 change = paid - total # 33 print(change) ``` Out...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0079068
Divide 29 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain? Here's the code. ```python total = 29 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The script prints 5 each, 4 left over. The answer: 5 each...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "5 each, 4 left over", "printed": "5 each, 4 left over", "notation": null}
nlprog_det-setting-0079069
Counting only Monday through Friday, how many business days are there after August 2, 2021 through August 7, 2021? We can compute it in Python. ```python from datetime import date, timedelta start = date(2021, 8, 2) end = date(2021, 8, 7) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
163
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0079070
<|start|><|user|> A storeroom has 1123 file boxes. The office uses 37 a day. How many are left after 18 days?<|eot|> <|assistant|> ```python stock = 1123 per_day = 37 days = 18 left = stock - per_day * days # 457 print(left) ``` Executed, it shows: 457 457 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 1123 file boxes. The office uses 37 a day. How many are left after 18 days?" }, { "role": "assistant", "content": "```python\nstock = 1123\nper_day = 37\ndays = 18\nleft = stock - per_day * days # 457\nprint(left)\n```\nExecuted, it shows: 457\n\n45...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "457", "printed": "457", "notation": null}
nlprog_det-setting-0079071
Fines run at $25 per day up to a maximum of $5,000. How much after 3 days? Python code: ```python per_day = 25 days = 3 cap = 5000 fine = min(per_day * days, cap) # 75 print(fine) ``` Result: 75 The fine is $75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0079072
<|start|><|user|> A service costs $19 a month or $192 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> $36 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $19 a month or $192 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "$36 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0079073
17 of 20 members attended. What percent attended? Script: present = 17 total = 20 percent = present / total * 100 # 85.0 print(round(percent, 1)) It prints 85.0. 85.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "85.0", "printed": "85.0", "notation": null}
nlprog_det-setting-0079074
One can of paint covers 250 square feet. How many cans are needed for 1222 square feet of wall? Here's the code. ```python import math area = 1222 coverage = 250 cans = math.ceil(area / coverage) print(cans) ``` Out — 5 5 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0079075
A training session lasted 1 hours and 15 minutes. How many minutes is that? That is 75 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0079076
Walls total 824 sq ft and each can covers 400 sq ft. How many cans should be bought? Python version: ```python import math area = 824 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` Printed = 3 Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0079077
A lease runs for 24 months at $1,640 per month. How much rent is paid over the whole term? In total, $39,360 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "39360", "printed": "39360", "notation": null}
nlprog_det-setting-0079078
<|start|><|user|> A pack of 4 mugs sells for $224. What does each cost?<|eot|> <|assistant|> The unit price is $56.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 4 mugs sells for $224. What does each cost?" }, { "role": "assistant", "content": "The unit price is $56." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0079079
<|start|><|user|> A film lasted 1 hours and 16 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 1 minutes = 16 total_minutes = hours * 60 + minutes print(total_minutes) ``` The interpreter prints 76. That is 76 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A film lasted 1 hours and 16 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 1\nminutes = 16\ntotal_minutes = hours * 60 + minutes\nprint(total_minutes)\n```\nThe interpreter prints 76.\n\nThat is 76 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0079080
Water costs $15 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 11,000 gallons? One way, in code: ```python base = 15 rate = 4.75 used = 11 free = 0 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") ``` # output: 67.25 $67.25 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "67.25", "printed": "67.25", "notation": null}
nlprog_det-setting-0079081
Each storage box holds 15 files. How many boxes are needed for 758 files? The computation: ```python import math files = 758 per_box = 15 boxes = math.ceil(files / per_box) # 51 print(boxes) ``` Run it and it prints: 51 It takes 51 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0079082
$1,000 is invested at 5% compounded yearly. What is it worth after 3 years? Computing it: ```python principal = 1000 rate = 5 / 100 # 0.05 years = 3 value = principal * (1 + rate) ** years # 1157.6250000000002 print(f"{value:.2f}") ``` The run gives: 1157.63 The balance is $1,157.63.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "1157.63", "printed": "1157.63", "notation": null}
nlprog_det-setting-0079083
<|start|><|user|> The bridge was finished in 2008. How many years had passed by 2038?<|eot|> <|assistant|> ```python start_year = 2008 end_year = 2038 print(end_year - start_year) ``` # printed result: 30 That is 30 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The bridge was finished in 2008. How many years had passed by 2038?" }, { "role": "assistant", "content": "```python\nstart_year = 2008\nend_year = 2038\nprint(end_year - start_year)\n```\n# printed result: 30\n\nThat is 30 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0079084
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> A car travels 225 miles in 2.5 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> It averages 90 miles per hour.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "A car travels 225 miles in 2.5 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "It averages 90 miles per hour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "90", "printed": "90", "notation": null}
nlprog_det-setting-0079085
A $120 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share? Computing it: bill = 120 tip_rate = 20 / 100 # 0.2 people = 6 each = bill * (1 + tip_rate) / people # 24.0 print(f"{each:.2f}") Printed: 24.00 The share is $24.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0079087
Convert 4 h 46 min (the length of a workshop) to minutes. ```python hours = 4 minutes = 46 total_minutes = hours * 60 + minutes # 286 print(total_minutes) ``` (Run result: 286) That is 286 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "286", "printed": "286", "notation": null}
nlprog_det-setting-0079088
<|start|><|user|> 181 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 181 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Execution prints: 45 each, 1 left over 45 each, ...
chat
[ { "role": "user", "content": "181 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 181\ngroups = 4\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "45 each, 1 left over", "printed": "45 each, 1 left over", "notation": null}
nlprog_det-setting-0079089
<|start|><|user|> Pilar earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 54-hour week?<|eot|> <|assistant|> Pilar earns $1,366.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Pilar earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 54-hour week?" }, { "role": "assistant", "content": "Pilar earns $1,366.40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "1366.40", "printed": "1366.40", "notation": null}
nlprog_det-setting-0079090
How many weekdays (Monday to Friday) fall after April 19, 2024 up to and including May 20, 2024? Program: ```python from datetime import date, timedelta start = date(2024, 4, 19) end = date(2024, 5, 20) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: count...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0079091
<|start|><|user|> Shipping costs $10 plus $2.50 per pound. What does a 36-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 10 per_pound = 2.5 weight = 36 cost = base + per_pound * weight print(f"{cost:.2f}") ``` Run output: 100.00 The charge is $100.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $10 plus $2.50 per pound. What does a 36-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 10\nper_pound = 2.5\nweight = 36\ncost = base + per_pound * weight\nprint(f\"{cost:.2f}\")\n```\nRun output: 100.00\n\nThe cha...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "100.00", "printed": "100.00", "notation": null}
nlprog_det-setting-0079092
A count moves from 500 to 425. By what percent did it change (use a minus sign for a drop)? Let's compute it with Python. ```python old = 500 new = 425 change = (new - old) / old * 100 # -15.0 print(round(change)) ``` Out = -15 It changed by -15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0079093
A court charges $15 per request plus $0.10 per page after the first 20 pages. What does a 37-page copy cost? Written as code: ```python pages = 37 base = 15 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 16.7 print(f"{cost:.2f}") ``` The code prints 16.70. The copy costs $16.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "16.70", "printed": "16.70", "notation": null}
nlprog_det-setting-0079094
A clerk's office charges $75 for each filing. Zoe submits 8 filings. What is the total fee? fee = 75 filings = 8 total = fee * filings # 600 print(total) stdout = 600 $600 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
67
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0079095
Copies cost $10 plus $0.25 for each page beyond 10. How much for 52 pages? As a program: pages = 52 base = 10 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 20.5 print(f"{cost:.2f}") # printed result: 20.50 The total is $20.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "20.50", "printed": "20.50", "notation": null}
nlprog_det-setting-0079096
Water costs $15 a month plus $3.50 for each 1,000 gallons over 2,000. What is owed for 10,000 gallons? Here is a short program for it. ```python base = 15 rate = 3.5 used = 10 free = 2 bill = base + rate * max(0, used - free) # 43.0 print(f"{bill:.2f}") ``` stdout: 43.00 The bill is $43.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "43.00", "printed": "43.00", "notation": null}
nlprog_det-setting-0079097
After a 25% fee is taken from a $96,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? Python, step by step: ```python award = 96000 fee = award * 25 / 100 # 24000.0 remaining = award - fee # 72000.0 per_client = remaining / 2 # 36000.0 print(f"{per_client:.2f}") ``` The interpr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "36000.00", "printed": "36000.00", "notation": null}
nlprog_det-setting-0079098
<|start|><|user|> At 1.5% a month (simple), what interest builds on $4,000 over 5 months?<|eot|> <|assistant|> The interest is $300.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 1.5% a month (simple), what interest builds on $4,000 over 5 months?" }, { "role": "assistant", "content": "The interest is $300.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0079099
Ivan was born on June 17, 1950. How old is Ivan on October 17, 2029? Let's compute it with Python. ```python from datetime import date born = date(1950, 6, 17) # datetime.date(1950, 6, 17) on = date(2029, 10, 17) # datetime.date(2029, 10, 17) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0079100
A meal costs $92.14. How much is a 18% tip? A few lines of Python do it: ```python bill = 92.14 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 16.5852 print(f"{tip:.2f}") ``` Shell output: 16.59 The tip is $16.59.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "16.59", "printed": "16.59", "notation": null}
nlprog_det-setting-0079101
The paralegal logged 8 hours at a rate of $410. How much is billed? Let the code do the arithmetic: ```python hours = 8 rate = 410 bill = hours * rate # 3280 print(f"{bill:.2f}") ``` stdout — 3280.00 That comes to $3,280.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "3280.00", "printed": "3280.00", "notation": null}
nlprog_det-setting-0079102
<|start|><|user|> An office budget of $25,000 has expenses of $3,320, $3,310. How much of the budget is left?<|eot|> <|assistant|> $18,370 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $25,000 has expenses of $3,320, $3,310. How much of the budget is left?" }, { "role": "assistant", "content": "$18,370 is left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "18370", "printed": "18370", "notation": null}
nlprog_det-setting-0079103
<|start|><|system|> You have access to these functions: [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "run_python", "descrip...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
317
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0079104
Wanjiru buys 8 boxes of 12 labels each and gives away 12 labels. How many labels are left? Set it up in Python: boxes = 8 per_box = 12 given_away = 12 left = boxes * per_box - given_away # 84 print(left) Output of the run: 84 That leaves 84 labels.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "84", "printed": "84", "notation": null}
nlprog_det-setting-0079105
<|start|><|user|> A trial runs from September 15, 2026 to September 19, 2026, counting both days. How many calendar days is that?<|eot|> <|assistant|> 5 calendar days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A trial runs from September 15, 2026 to September 19, 2026, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "5 calendar days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0079106
<|start|><|system|> You have access to these functions: {"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}} {"name": "python_exec", "descript...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
362
{"gold": "2022-08-18", "printed": "2022-08-18", "notation": null}
nlprog_det-setting-0079107
A trial runs from July 28, 2020 to July 31, 2020, counting both days. How many calendar days is that? Here's the code. ```python from datetime import date first = date(2020, 7, 28) # datetime.date(2020, 7, 28) last = date(2020, 7, 31) # datetime.date(2020, 7, 31) days = (last - first).days + 1 # 4 print(days) ``` T...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0079109
<|start|><|user|> At $0.58 per mile, what is the reimbursement for 282 miles?<|eot|> <|assistant|> ```python miles = 282 rate = 0.58 reimbursement = miles * rate # 163.56 print(f"{reimbursement:.2f}") ``` Result = 163.56 The reimbursement is $163.56.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.58 per mile, what is the reimbursement for 282 miles?" }, { "role": "assistant", "content": "```python\nmiles = 282\nrate = 0.58\nreimbursement = miles * rate # 163.56\nprint(f\"{reimbursement:.2f}\")\n```\nResult = 163.56\n\nThe reimbursement is $163.56." ...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "163.56", "printed": "163.56", "notation": null}
nlprog_det-setting-0079110
The landlord deducts $200 from a $1,000 deposit. What is returned to the tenant? deposit = 1000 deductions = [200] refund = deposit - sum(deductions) # 800 print(refund) (Out: 800) The refund is $800.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0079111
Attendance was 49 out of 50. Express it as a percent. Script: ```python present = 49 total = 50 percent = present / total * 100 # 98.0 print(round(percent, 1)) ``` The program outputs: 98.0 Attendance was 98.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "98.0", "printed": "98.0", "notation": null}
nlprog_det-setting-0079112
What simple interest does $12,000 earn at 2% a year over 2 years? Programmatically: ```python principal = 12000 rate = 2 / 100 # 0.02 years = 2 interest = principal * rate * years # 480.0 print(f"{interest:.2f}") ``` It prints 480.00, as expected. The interest is $480.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0079113
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> What a...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"...
nlprog_det
setting
original
null
deterministic
[]
[]
199
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0079114
543 files go into boxes of 25. How many boxes does that take? Computing it: ```python import math files = 543 per_box = 25 boxes = math.ceil(files / per_box) # 22 print(boxes) ``` Console output: 22 22 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0079115
A workshop lasted 2 hours and 41 minutes. How many minutes is that? In Python: hours = 2 minutes = 41 total_minutes = hours * 60 + minutes # 161 print(total_minutes) The run gives: 161 The workshop lasted 161 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "161", "printed": "161", "notation": null}
nlprog_det-setting-0079116
What is 0 degrees Celsius in Fahrenheit? A short script: celsius = 0 fahrenheit = celsius * 9 / 5 + 32 # 32.0 print(round(fahrenheit)) When run, it prints 32, as expected. That is 32 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0079117
<|start|><|user|> A recipe for 2 people uses 300 grams of oats. How many grams are needed for 8 people?<|eot|> <|assistant|> ```python grams = 300 serves = 2 needed_for = 8 scaled = grams * needed_for // serves # 1200 print(scaled) ``` Run result = 1200 Use 1200 g of oats.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 2 people uses 300 grams of oats. How many grams are needed for 8 people?" }, { "role": "assistant", "content": "```python\ngrams = 300\nserves = 2\nneeded_for = 8\nscaled = grams * needed_for // serves # 1200\nprint(scaled)\n```\nRun result = 1200\n\nU...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0079118
<|start|><|user|> A car travels 370 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 370 hours = 2 speed = distance / hours # 185.0 print(round(speed)) ``` (Result: 185) The average speed is 185 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 370 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 370\nhours = 2\nspeed = distance / hours # 185.0\nprint(round(speed))\n```\n(Result: 185)\n\nThe average speed is 185 mph."...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "185", "printed": "185", "notation": null}
nlprog_det-setting-0079119
<|start|><|user|> Find the mean of these test scores: 61, 62 and 84.<|eot|> <|assistant|> The mean is 69.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Find the mean of these test scores: 61, 62 and 84." }, { "role": "assistant", "content": "The mean is 69." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0079120
Count the days between April 6, 2020 and January 7, 2021. As a program: ```python from datetime import date first = date(2020, 4, 6) # datetime.date(2020, 4, 6) second = date(2021, 1, 7) # datetime.date(2021, 1, 7) print((second - first).days) ``` Running this gives 276. There are 276 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "276", "printed": "276", "notation": null}
nlprog_det-setting-0079121
Someone born February 3, 1991 turns how old by July 24, 2022? Give the age in whole years. Translated to Python: ```python from datetime import date born = date(1991, 2, 3) on = date(2022, 7, 24) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) print(age) ``` (Console output: 31) The age is 3...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0079122
2 claimants share a $524 settlement equally. What is each share? ```python settlement = 524 parties = 2 share = settlement // parties # 262 print(share) ``` The interpreter prints: 262 Each party receives $262.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "262", "printed": "262", "notation": null}
nlprog_det-setting-0079124
<|start|><|user|> A quorum is 3/5 of the 41 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 41 quorum = math.ceil(members * 3 / 5) # 25 print(quorum) ``` Executing it gives 25. That is 25 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 3/5 of the 41 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 41\nquorum = math.ceil(members * 3 / 5) # 25\nprint(quorum)\n```\nExecuting it gives 25.\n\nThat is 25 members." ...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0079125
Convert -20 °C to Fahrenheit. Computation in Python: ```python celsius = -20 fahrenheit = celsius * 9 / 5 + 32 # -4.0 print(round(fahrenheit)) ``` The run gives -4. That is -4 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "-4", "printed": "-4", "notation": null}
nlprog_det-setting-0079126
A measure needs at least 75% of 226 votes. How many votes is that, rounded up? Python makes this quick: import math voters = 226 needed = math.ceil(voters * 75 / 100) # 170 print(needed) Out — 170 At least 170 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "170", "printed": "170", "notation": null}
nlprog_det-setting-0079127
A pack of 20 paper reams sells for $980. What does each cost? Program: ```python total = 980 count = 20 per_item = total // count # 49 print(per_item) ``` Executing it gives 49, as expected. The unit price is $49.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "49", "printed": "49", "notation": null}
nlprog_det-setting-0079128
<|start|><|system|> You may call the tools below. [{"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "convert_units", "descrip...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
421
{"gold": "558.80", "printed": "558.80", "notation": null}
nlprog_det-setting-0079129
A shift starts at 10:40 AM and lasts 135 minutes. When does it end? The program: ```python start = 10 * 60 + 40 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The code prints: 12:55 PM The shift finishes at 12:55 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "12:55 PM", "printed": "12:55 PM", "notation": null}
nlprog_det-setting-0079130
A library charges $0.25 per book per day late. What is the fine for 1 books that are 22 days late? A short script: ```python per_day = 0.25 days_late = 22 books = 1 fine = per_day * days_late * books # 5.5 print(f"{fine:.2f}") ``` (Printed result: 5.50) The fine is $5.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "5.50", "printed": "5.50", "notation": null}
nlprog_det-setting-0079131
How much sales tax is charged on a $461.64 purchase at 8%? Python code: ```python price = 461.64 tax_rate = 8 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` Result: 36.93 $36.93 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "36.93", "printed": "36.93", "notation": null}
nlprog_det-setting-0079132
<|start|><|system|> Tools you may use: [{"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "lookup_statute", "description": "Lo...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"prog...
nlprog_det
setting
original
null
deterministic
[]
[]
403
{"gold": "33.3", "printed": "33.3", "notation": null}
nlprog_det-setting-0079134
A recipe for 8 people uses 100 grams of oats. How many grams are needed for 2 people? Program: ```python grams = 100 serves = 8 needed_for = 2 scaled = grams * needed_for // serves # 25 print(scaled) ``` (Console output: 25) 25 grams of oats are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0079135
<|start|><|user|> A 4-day trip pays $79 a day for meals and $110 a night for lodging (3 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 4 meal_rate = 79 lodging_rate = 110 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 646 print(total) ``` Out: 646 The allowance ...
chat
[ { "role": "user", "content": "A 4-day trip pays $79 a day for meals and $110 a night for lodging (3 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 4\nmeal_rate = 79\nlodging_rate = 110\nnights = days - 1 # 3\ntotal = days * meal_rate + nights * lo...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "646", "printed": "646", "notation": null}
nlprog_det-setting-0079137
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> Monthly: $29. Annual: $336. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 29 yearly = 336 savings = monthly * 12 - yearly # 12 print(savings) ``` It prints: 12 The annual plan saves $12.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "Monthly: $29. Annual: $336. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 29\nyearly = 336\nsavings = monthly * 12 - yearly # 12\n...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0079138
How many whole days and leftover hours are in 348 hours? ```python hours = 348 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` That prints 14 days and 12 hours. 348 hours is 14 days and 12 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "14 days and 12 hours", "printed": "14 days and 12 hours", "notation": null}
nlprog_det-setting-0079140
A court charges $10 per request plus $0.10 per page after the first 20 pages. What does a 85-page copy cost? The Python version: ```python pages = 85 base = 10 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 16.5 print(f"{cost:.2f}") ``` # program output: 16.50 The copy costs $16...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "16.50", "printed": "16.50", "notation": null}
nlprog_det-setting-0079141
Printing costs 8 cents a page. What does it cost to print 174 copies of a 39-page handout? ```python pages = 39 copies = 174 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 542.88 print(f"{cost:.2f}") ``` Out = 542.88 The job costs $542.88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "542.88", "printed": "542.88", "notation": null}
nlprog_det-setting-0079142
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> A 33 lb package ships at $12 base plus $2.50/lb. What is the charge?<|eot|> <|assistant|> ```python base = 12 per_pound = 2.5 weight = 33 cost = base + per_pound * weight # 94.5 print(f"{cost:.2f}") ``` The interpreter prints 94.50. The charge i...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "A 33 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 = 33\ncost = base + per_pou...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "94.50", "printed": "94.50", "notation": null}