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-0056577
<|start|><|user|> Goran was born on June 14, 2001. How old is Goran on August 25, 2023?<|eot|> <|assistant|> ```python from datetime import date born = date(2001, 6, 14) # datetime.date(2001, 6, 14) on = date(2023, 8, 25) # datetime.date(2023, 8, 25) age = on.year - born.year - ((on.month, on.day) < (born.month, born...
chat
[ { "role": "user", "content": "Goran was born on June 14, 2001. How old is Goran on August 25, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(2001, 6, 14) # datetime.date(2001, 6, 14)\non = date(2023, 8, 25) # datetime.date(2023, 8, 25)\nage = on....
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0056578
Goods bought on November 4, 2018 carry a 18-month warranty. When does it expire? In code: ```python from datetime import date start = date(2018, 11, 4) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` The script ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2020-05-04", "printed": "2020-05-04", "notation": null}
nlprog_det-setting-0056579
At $26.76 an hour, what does 38 hours of work pay? Here is the program. ```python rate = 26.76 hours = 38 earnings = rate * hours # 1016.8800000000001 print(f"{earnings:.2f}") ``` Run result — 1016.88 That earns $1,016.88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1016.88", "printed": "1016.88", "notation": null}
nlprog_det-setting-0056580
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> Abel earns a 4% commission on $98,645 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 98645 rate = 4 / 100 # 0.04 commission = sales * rate # 3945.8 print(f"{commission:.2f}") ``` (Result: 3945.80) The commission is $3,945.80....
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "Abel earns a 4% commission on $98,645 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 98645\nrate = 4 / 100 # 0.04\ncommission = sales * rate ...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "3945.80", "printed": "3945.80", "notation": null}
nlprog_det-setting-0056581
A clerk's office charges $405 for each filing. Bruna submits 9 filings. What is the total fee? ```python fee = 405 filings = 9 total = fee * filings # 3645 print(total) ``` # result: 3645 $3,645 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "3645", "printed": "3645", "notation": null}
nlprog_det-setting-0056582
Convert -15 °C to Fahrenheit. The computation: ```python celsius = -15 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) ``` Result: 5 It equals 5 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0056583
5 claimants share a $84,000 settlement equally. What is each share? Script: ```python settlement = 84000 parties = 5 share = settlement // parties # 16800 print(share) ``` The program outputs 16800. Each party receives $16,800.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "16800", "printed": "16800", "notation": null}
nlprog_det-setting-0056584
<|start|><|user|> Walls total 1043 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 1043 coverage = 250 cans = math.ceil(area / coverage) # 5 print(cans) ``` (Run result: 5) Buy 5 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 1043 sq ft and each can covers 250 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1043\ncoverage = 250\ncans = math.ceil(area / coverage) # 5\nprint(cans)\n```\n(Run result: 5)\n\nBuy 5 cans....
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0056585
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> Under a 30% contingency agreement, what fee is owed on a $12,000 award?<|eot|> <|assistant|> The lawyer's fee comes to $3,600.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "Under a 30% contingency agreement, what fee is owed on a $12,000 award?" }, { "role": "assistant", "content": "The lawyer's fee comes to $3,600.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
55
{"gold": "3600.00", "printed": "3600.00", "notation": null}
nlprog_det-setting-0056586
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> A $3,600 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 3600 annual_rate = 8 / 100 # 0.08 months = 24 ...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "A $3,600 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", ...
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "174.00", "printed": "174.00", "notation": null}
nlprog_det-setting-0056587
Split $2,499 between Malik and Viktor in the ratio 3 to 4. What is Malik's share? In code: total = 2499 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 1071 print(share_a) Output of the run: 1071 Malik gets $1,071.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1071", "printed": "1071", "notation": null}
nlprog_det-setting-0056588
152 volunteers are split into 4 equal teams. How many are on each team, and how many are left over? Python version: ```python total = 152 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` # console output: 38 each, 0 left over 38 each, 0 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "38 each, 0 left over", "printed": "38 each, 0 left over", "notation": null}
nlprog_det-setting-0056589
5 bike rides at 200 calories each burn how many calories in total? 1000 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0056590
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "run_python", "description": "Executes Python code and r...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
356
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0056591
A board has 56 members. A majority is more than half. How many votes make a majority? 29 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0056592
<|start|><|user|> Notice was given on July 16, 2028. The notice period is 21 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2028, 7, 16) # datetime.date(2028, 7, 16) end = start + timedelta(days=21) # datetime.date(2028, 8, 6) print(end.isoformat()) ``` Ex...
chat
[ { "role": "user", "content": "Notice was given on July 16, 2028. The notice period is 21 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2028, 7, 16) # datetime.date(2028, 7, 16)\nend = start + timedelta(days=21) ...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2028-08-06", "printed": "2028-08-06", "notation": null}
nlprog_det-setting-0056593
<|start|><|system|> You may call the tools below. [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "py_exec", "description": "Runs a short P...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"targ...
nlprog_det
setting
original
null
deterministic
[]
[]
342
{"gold": "216.00", "printed": "216.00", "notation": null}
nlprog_det-setting-0056594
Printing costs 8 cents a page. What does it cost to print 80 copies of a 51-page handout? Python version: ```python pages = 51 copies = 80 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 326.40000000000003 print(f"{cost:.2f}") ``` Run it and it prints 326.40. The job costs $326.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "326.40", "printed": "326.40", "notation": null}
nlprog_det-setting-0056595
Equal monthly payments repay $2,400 plus 8% simple yearly interest over 12 months. How large is a payment? A Python solution: principal = 2400 annual_rate = 8 / 100 # 0.08 months = 12 interest = principal * annual_rate * months / 12 # 192.0 payment = (principal + interest) / months # 216.0 p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "216.00", "printed": "216.00", "notation": null}
nlprog_det-setting-0056596
<|start|><|system|> Tool definitions: [{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"ty...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"eval_python\", \"description\": \"Executes a P...
nlprog_det
setting
original
null
deterministic
[]
[]
289
{"gold": "80.0", "printed": "80.0", "notation": null}
nlprog_det-setting-0056597
<|start|><|system|> Available functions (JSON Schema): {"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}} {"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"calculator\", \"description...
nlprog_det
setting
original
null
deterministic
[]
[]
276
{"gold": "192", "printed": "192", "notation": null}
nlprog_det-setting-0056598
Printing costs 10 cents a page. What does it cost to print 182 copies of a 23-page handout? Python: ```python pages = 23 copies = 182 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 418.6 print(f"{cost:.2f}") ``` (Printed result: 418.60) The job costs $418.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "418.60", "printed": "418.60", "notation": null}
nlprog_det-setting-0056599
A hearing starts at 11:20 AM and lasts 40 minutes. When does it end? Python version: ```python start = 11 * 60 + 20 end = start + 40 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` # run result: 12:00 PM The hearing finishes at 12:00 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "12:00 PM", "printed": "12:00 PM", "notation": null}
nlprog_det-setting-0056600
A workshop lasted 1 hours and 32 minutes. How many minutes is that? Python code: ```python hours = 1 minutes = 32 total_minutes = hours * 60 + minutes print(total_minutes) ``` The code prints 92. The workshop lasted 92 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "92", "printed": "92", "notation": null}
nlprog_det-setting-0056601
A shift starts at 12:15 PM and lasts 50 minutes. When does it end? ```python start = 12 * 60 + 15 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Executing it gives: 1:05 PM The shift finishes at 1:05 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1:05 PM", "printed": "1:05 PM", "notation": null}
nlprog_det-setting-0056602
If a 50-minute appointment begins at 12:10 PM, what time does it finish? Python, step by step: ```python start = 12 * 60 + 10 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` When run, it prints 1:00 PM, as expected. It ends at 1:00 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "1:00 PM", "printed": "1:00 PM", "notation": null}
nlprog_det-setting-0056604
Fines run at $25 per day up to a maximum of $5,000. How much after 19 days? The Python version: ```python per_day = 25 days = 19 cap = 5000 fine = min(per_day * days, cap) # 475 print(fine) ``` Run it and it prints: 475 $475 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "475", "printed": "475", "notation": null}
nlprog_det-setting-0056605
If a 5-year limitations period starts on December 6, 2014, when does it end? A few lines of Python do it: ```python from datetime import date accrued = date(2014, 12, 6) # datetime.date(2014, 12, 6) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 12, 6) print(expires.isoformat())...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2019-12-06", "printed": "2019-12-06", "notation": null}
nlprog_det-setting-0056606
<|start|><|user|> How many whole days and leftover hours are in 383 hours?<|eot|> <|assistant|> 383 hours is 15 days and 23 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 383 hours?" }, { "role": "assistant", "content": "383 hours is 15 days and 23 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "15 days and 23 hours", "printed": "15 days and 23 hours", "notation": null}
nlprog_det-setting-0056607
<|start|><|user|> Scale 200 g of rice from 8 servings to 6 servings.<|eot|> <|assistant|> ```python grams = 200 serves = 8 needed_for = 6 scaled = grams * needed_for // serves # 150 print(scaled) ``` Program output: 150 Use 150 g of rice.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 200 g of rice from 8 servings to 6 servings." }, { "role": "assistant", "content": "```python\ngrams = 200\nserves = 8\nneeded_for = 6\nscaled = grams * needed_for // serves # 150\nprint(scaled)\n```\nProgram output: 150\n\nUse 150 g of rice." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0056608
Abel earns a 5% commission on $54,186 of sales. What is the commission? Let's compute it with Python. ```python sales = 54186 rate = 5 / 100 # 0.05 commission = sales * rate # 2709.3 print(f"{commission:.2f}") ``` Output: 2709.30 Abel earns $2,709.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "2709.30", "printed": "2709.30", "notation": null}
nlprog_det-setting-0056609
Find the mean of these test scores: 100, 66, 63, 81, 73 and 91. As a program: ```python scores = [100, 66, 63, 81, 73, 91] average = sum(scores) // len(scores) # 79 print(average) ``` (Output: 79) The mean is 79.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0056610
11 boxes hold 8 folders each. After 9 are handed out, how many are left? Python makes this quick: ```python boxes = 11 per_box = 8 given_away = 9 left = boxes * per_box - given_away # 79 print(left) ``` Shell output: 79 79 folders are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0056611
Equal monthly payments repay $6,000 plus 10% simple yearly interest over 24 months. How large is a payment? Each payment is $300.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0056612
A court charges $5 per request plus $0.10 per page after the first 20 pages. What does a 113-page copy cost? In code: pages = 113 base = 5 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 14.3 print(f"{cost:.2f}") Output: 14.30 The copy costs $14.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "14.30", "printed": "14.30", "notation": null}
nlprog_det-setting-0056613
<|start|><|user|> 177 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> 25 each, 2 left over.<|eot|> <|end|>
chat
[ { "role": "user", "content": "177 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "25 each, 2 left over." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "25 each, 2 left over", "printed": "25 each, 2 left over", "notation": null}
nlprog_det-setting-0056614
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> At 50 miles per hour, how many minutes does a 125-mile trip take?<|eot|> <|assistant|> ```python distance = 125 speed = 50 minutes = distance / speed * 60 # 150.0 print(round(minutes)) ``` The script prints 150. The trip takes 150 minutes.<|eo...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "At 50 miles per hour, how many minutes does a 125-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 125\nspeed = 50\nminutes = distance / speed * 60 # ...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0056615
<|start|><|user|> 4 books come back 6 days late, at $0.15 a day each. What is the fine?<|eot|> <|assistant|> per_day = 0.15 days_late = 6 books = 4 fine = per_day * days_late * books # 3.5999999999999996 print(f"{fine:.2f}") Run output — 3.60 $3.60 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 books come back 6 days late, at $0.15 a day each. What is the fine?" }, { "role": "assistant", "content": " per_day = 0.15\n days_late = 6\n books = 4\n fine = per_day * days_late * books # 3.5999999999999996\n print(f\"{fine:.2f}\")\nRun output — ...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "3.60", "printed": "3.60", "notation": null}
nlprog_det-setting-0056616
<|start|><|user|> What percentage of $2,000 is $300?<|eot|> <|assistant|> That is 15.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $2,000 is $300?" }, { "role": "assistant", "content": "That is 15.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "15.0", "printed": "15.0", "notation": null}
nlprog_det-setting-0056617
Tobias was born on May 3, 1970. How old is Tobias on February 25, 2027? Script: ```python from datetime import date born = date(1970, 5, 3) on = date(2027, 2, 25) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) print(age) ``` The code prints: 56 The age is 56 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0056618
A 15 lb package ships at $8 base plus $1.50/lb. What is the charge? Python, step by step: ```python base = 8 per_pound = 1.5 weight = 15 cost = base + per_pound * weight # 30.5 print(f"{cost:.2f}") ``` # output: 30.50 The charge is $30.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "30.50", "printed": "30.50", "notation": null}
nlprog_det-setting-0056619
Zoe buys 12 boxes of 6 flash drives each and gives away 16 flash drives. How many flash drives are left? Code: boxes = 12 per_box = 6 given_away = 16 left = boxes * per_box - given_away # 56 print(left) (Run result: 56) That leaves 56 flash drives.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0056620
A shift runs from 11:26 AM to 5:37 PM. How long is it in minutes? One way, in code: ```python start = 11 * 60 + 26 # 686 end = 17 * 60 + 37 # 1057 print(end - start) ``` (stdout: 371) It is 371 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "371", "printed": "371", "notation": null}
nlprog_det-setting-0056621
<|start|><|user|> Eamon earns a 2% commission on $81,862 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 81862 rate = 2 / 100 # 0.02 commission = sales * rate # 1637.24 print(f"{commission:.2f}") ``` Run it and it prints 1637.24. Eamon earns $1,637.24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Eamon earns a 2% commission on $81,862 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 81862\nrate = 2 / 100 # 0.02\ncommission = sales * rate # 1637.24\nprint(f\"{commission:.2f}\")\n```\nRun it and it prints 1637.24.\n...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1637.24", "printed": "1637.24", "notation": null}
nlprog_det-setting-0056622
<|start|><|user|> A garage charges $2 an hour, never more than $15 a day. How much for 7 hours?<|eot|> <|assistant|> ```python rate = 2 hours = 7 daily_max = 15 cost = min(rate * hours, daily_max) # 14 print(cost) ``` Execution result — 14 Parking costs $14.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $2 an hour, never more than $15 a day. How much for 7 hours?" }, { "role": "assistant", "content": "```python\nrate = 2\nhours = 7\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 14\nprint(cost)\n```\nExecution result — 14\n\nParking costs $...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0056623
<|start|><|system|> You can call tools. Available tools: [{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "get_weather", "description": "Get t...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"c...
nlprog_det
setting
original
null
deterministic
[]
[]
301
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0056624
Pack A has 6 items for $6.60. Pack B has 30 items for $17.47. Which has the lower price per item? Translated to Python: ```python pack_a = 6.6 / 6 # 1.0999999999999999 pack_b = 17.47 / 30 # 0.5823333333333333 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` # run result: B B has the lower unit pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0056625
<|start|><|system|> Tool definitions: [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "run_python", "description": "Executes Python code and returns stdout.", "par...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"run_python\", \"descri...
nlprog_det
setting
original
null
deterministic
[]
[]
355
{"gold": "208", "printed": "208", "notation": null}
nlprog_det-setting-0056626
A claim accrued on November 12, 2018. The limitations period is 2 years. On what date does it expire? Coded up: ```python from datetime import date accrued = date(2018, 11, 12) years = 2 expires = accrued.replace(year=accrued.year + years) print(expires.isoformat()) ``` stdout: 2020-11-12 The period expires on Novemb...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "2020-11-12", "printed": "2020-11-12", "notation": null}
nlprog_det-setting-0056627
Starting from $12,000, the team spends $1,579, $3,292, $534. What remains? A few lines of Python do it: ```python budget = 12000 expenses = [1579, 3292, 534] left = budget - sum(expenses) # 6595 print(left) ``` Execution prints 6595, as expected. $6,595 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "6595", "printed": "6595", "notation": null}
nlprog_det-setting-0056628
A pack of 20 paper reams sells for $900. What does each cost? ```python total = 900 count = 20 per_item = total // count # 45 print(per_item) ``` Console output: 45 The unit price is $45.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0056629
What is 30 degrees Celsius in Fahrenheit? That is 86 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0056630
How many days are there from August 8, 2020 to August 14, 2021? We write it as a program: ```python from datetime import date first = date(2020, 8, 8) # datetime.date(2020, 8, 8) second = date(2021, 8, 14) # datetime.date(2021, 8, 14) print((second - first).days) ``` The program prints 371. It is 371 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "371", "printed": "371", "notation": null}
nlprog_det-setting-0056631
A kettle costs $75. It is 30% off. What is the sale price? A few lines of Python do it: ```python price = 75 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 52.5 print(f"{sale_price:.2f}") ``` (Output: 52.50) The sale price is $52.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "52.50", "printed": "52.50", "notation": null}
nlprog_det-setting-0056632
Someone born January 17, 1961 turns how old by August 21, 2023? Give the age in whole years. Programmatically: ```python from datetime import date born = date(1961, 1, 17) # datetime.date(1961, 1, 17) on = date(2023, 8, 21) # datetime.date(2023, 8, 21) age = on.year - born.year - ((on.month, on.day) < (born.month, b...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "62", "printed": "62", "notation": null}
nlprog_det-setting-0056633
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> 13 copies of a 9-page packet are printed at $0.05 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 9 copies = 13 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 5.8500000000000005 print(f"{cost:.2f}") ``` Printed — 5.85 Print...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "13 copies of a 9-page packet are printed at $0.05 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 9\ncopies = 13\ncost_per_page = 0.05\ncost = pages * cop...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "5.85", "printed": "5.85", "notation": null}
nlprog_det-setting-0056634
Fixed costs are $9,000. Each unit sells for $15 and costs $11 to make. How many units must be sold to break even? ```python import math fixed = 9000 price = 15 variable = 11 units = math.ceil(fixed / (price - variable)) # 2250 print(units) ``` The code prints: 2250 2250 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0056635
After an initial $3,000, the remainder of a $30,000 grant is paid in 3 equal parts. What is each part? Python, step by step: grant = 30000 up_front = 3000 installments = 3 each = (grant - up_front) / installments print(f"{each:.2f}") # output: 9000.00 $9,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0056636
With 20% off, what does a $250 kettle cost? Code: price = 250 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 200.0 print(f"{sale_price:.2f}") # out: 200.00 It costs $200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0056637
<|start|><|system|> Tools (call with JSON): [{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Notice...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
246
{"gold": "2026-08-26", "printed": "2026-08-26", "notation": null}
nlprog_det-setting-0056638
With $20,000 in costs and $22,000 in revenue, what percent of revenue is profit? Round to one decimal. The margin is 9.1%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "9.1", "printed": "9.1", "notation": null}
nlprog_det-setting-0056639
A customer buys 2 labels at $23 each, 1 binders at $25 each, 6 ink cartridges at $9 each, 5 markers at $23 each and pays with $250. How much change is due? items = [(2, 23), (1, 25), (6, 9), (5, 23)] total = sum(q * p for q, p in items) # 240 paid = 250 change = paid - total # 10 print(change) Wh...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0056640
<|start|><|user|> With 15% off, what does a $300 kettle cost?<|eot|> <|assistant|> ```python price = 300 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 255.0 print(f"{sale_price:.2f}") ``` Output: 255.00 It costs $255.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 15% off, what does a $300 kettle cost?" }, { "role": "assistant", "content": "```python\nprice = 300\ndiscount = 15 / 100 # 0.15\nsale_price = price * (1 - discount) # 255.0\nprint(f\"{sale_price:.2f}\")\n```\nOutput:\n255.00\n\nIt costs $255.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "255.00", "printed": "255.00", "notation": null}
nlprog_det-setting-0056641
<|start|><|user|> How many 1-foot square tiles cover a 18 ft by 8 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 18 width = 8 tile = 1 tiles = math.ceil(length * width / (tile * tile)) print(tiles) ``` It prints: 144 It takes 144 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 1-foot square tiles cover a 18 ft by 8 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 18\nwidth = 8\ntile = 1\ntiles = math.ceil(length * width / (tile * tile))\nprint(tiles)\n```\nIt prints: 144\n\nIt takes 144...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "144", "printed": "144", "notation": null}
nlprog_det-setting-0056642
<|start|><|user|> 190 files go into boxes of 24. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 190 per_box = 24 boxes = math.ceil(files / per_box) # 8 print(boxes) ``` (Program output: 8) It takes 8 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "190 files go into boxes of 24. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 190\nper_box = 24\nboxes = math.ceil(files / per_box) # 8\nprint(boxes)\n```\n(Program output: 8)\n\nIt takes 8 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0056643
A measure needs at least 60% of 104 votes. How many votes is that, rounded up? In code: ```python import math voters = 104 needed = math.ceil(voters * 60 / 100) # 63 print(needed) ``` # execution result: 63 At least 63 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "63", "printed": "63", "notation": null}
nlprog_det-setting-0056644
A count moves from 800 to 640. By what percent did it change (use a minus sign for a drop)? In Python: ```python old = 800 new = 640 change = (new - old) / old * 100 # -20.0 print(round(change)) ``` This prints -20, as expected. It changed by -20%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "-20", "printed": "-20", "notation": null}
nlprog_det-setting-0056645
<|start|><|user|> A measure needs at least 67% of 69 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 69 needed = math.ceil(voters * 67 / 100) # 47 print(needed) ``` Console output — 47 At least 47 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 67% of 69 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 69\nneeded = math.ceil(voters * 67 / 100) # 47\nprint(needed)\n```\nConsole output — 47\n\nAt least 47 votes." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0056646
A 5-day trip pays $79 a day for meals and $175 a night for lodging (4 nights). What is the total allowance? Set it up in Python: ```python days = 5 meal_rate = 79 lodging_rate = 175 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 1095 print(total) ``` The printout reads 1095. The allowance ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "1095", "printed": "1095", "notation": null}
nlprog_det-setting-0056647
What average speed covers 324 miles in 4 hours? Programmatically: ```python distance = 324 hours = 4 speed = distance / hours # 81.0 print(round(speed)) ``` Run it and it prints: 81 The average speed is 81 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "81", "printed": "81", "notation": null}
nlprog_det-setting-0056648
<|start|><|user|> Fixed costs are $9,000. Each unit sells for $25 and costs $20 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 9000 price = 25 variable = 20 units = math.ceil(fixed / (price - variable)) # 1800 print(units) ``` That prints 1800. 1800 units are ne...
chat
[ { "role": "user", "content": "Fixed costs are $9,000. Each unit sells for $25 and costs $20 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 9000\nprice = 25\nvariable = 20\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0056649
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> Parking is $2 per hour with a daily maximum of $15. What do 1 hours cost?<|eot|> <|assistant|> rate = 2 hours = 1 daily_max = 15 cost = min(rate * hours, daily_max) # 2 print(cost) Result: 2 The charge is $2.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "Parking is $2 per hour with a daily maximum of $15. What do 1 hours cost?" }, { "role": "assistant", "content": " rate = 2\n hours = 1\n daily_max = 15\n cost = min(rate * hour...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0056650
The landlord deducts $150 and $200 from a $1,000 deposit. What is returned to the tenant? One way, in code: deposit = 1000 deductions = [150, 200] refund = deposit - sum(deductions) # 650 print(refund) Out: 650 $650 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "650", "printed": "650", "notation": null}
nlprog_det-setting-0056651
Buying 4 tape rolls at $2 each, 1 calendars at $30 each, someone hands over $50. What change comes back? Program: ```python items = [(4, 2), (1, 30)] total = sum(q * p for q, p in items) # 38 paid = 50 change = paid - total # 12 print(change) ``` It prints 12. $12 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0056652
Revenue is $13,000 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)? ```python revenue = 13000 costs = 12500 profit = revenue - costs # 500 margin = profit / revenue * 100 # 3.8461538461538463 print(round(margin, 1)) ``` Run result = 3.8 The margin is 3.8%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "3.8", "printed": "3.8", "notation": null}
nlprog_det-setting-0056653
<|start|><|user|> Each of Tomas's bike rides burns 250 calories. How many calories over 3 bike rides?<|eot|> <|assistant|> ```python per_session = 250 sessions = 3 total = per_session * sessions # 750 print(total) ``` Out = 750 750 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Tomas's bike rides burns 250 calories. How many calories over 3 bike rides?" }, { "role": "assistant", "content": "```python\nper_session = 250\nsessions = 3\ntotal = per_session * sessions # 750\nprint(total)\n```\nOut = 750\n\n750 calories in total." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0056654
A customer buys 6 pens at $20 each, 3 headsets at $24 each and pays with $200. How much change is due? Python, step by step: ```python items = [(6, 20), (3, 24)] total = sum(q * p for q, p in items) # 192 paid = 200 change = paid - total # 8 print(change) ``` Output: 8 The change is $8.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0056655
A 60-page report must be reviewed in 4 days. How many pages a day is that, evenly? We can compute it in Python. pages = 60 days = 4 per_day = pages // days # 15 print(per_day) Out: 15 That is 15 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0056656
20 copies of a 16-page packet are printed at $0.12 per page. What is the cost? We can compute it in Python. ```python pages = 16 copies = 20 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 38.4 print(f"{cost:.2f}") ``` Output: 38.40 Printing costs $38.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "38.40", "printed": "38.40", "notation": null}
nlprog_det-setting-0056658
<|start|><|user|> Convert 5 °C to Fahrenheit.<|eot|> <|assistant|> celsius = 5 fahrenheit = celsius * 9 / 5 + 32 # 41.0 print(round(fahrenheit)) That prints: 41 That is 41 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 5 °C to Fahrenheit." }, { "role": "assistant", "content": " celsius = 5\n fahrenheit = celsius * 9 / 5 + 32 # 41.0\n print(round(fahrenheit))\nThat prints: 41\n\nThat is 41 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0056659
<|start|><|user|> A claim accrued on December 2, 2021. The limitations period is 3 years. On what date does it expire?<|eot|> <|assistant|> The period expires on December 2, 2024.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A claim accrued on December 2, 2021. The limitations period is 3 years. On what date does it expire?" }, { "role": "assistant", "content": "The period expires on December 2, 2024." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "2024-12-02", "printed": "2024-12-02", "notation": null}
nlprog_det-setting-0056660
<|start|><|user|> A water bill is $12 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 13 thousand gallons?<|eot|> <|assistant|> ```python base = 12 rate = 3.5 used = 13 free = 0 bill = base + rate * max(0, used - free) # 57.5 print(f"{bill:.2f}") ``` The code prints: 57.50 $57.50 is ...
chat
[ { "role": "user", "content": "A water bill is $12 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 13 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 12\nrate = 3.5\nused = 13\nfree = 0\nbill = base + rate * max(0, used - free) # 57.5\...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "57.50", "printed": "57.50", "notation": null}
nlprog_det-setting-0056661
<|start|><|system|> You are a math tutor.<|eot|> <|user|> A 150-page report must be reviewed in 10 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 150 days = 10 per_day = pages // days # 15 print(per_day) ``` That prints 15. That is 15 pages per day.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "A 150-page report must be reviewed in 10 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 150\ndays = 10\nper_day = pages // days # 15\nprint(...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0056662
Each of Zoe's runs burns 200 calories. How many calories over 5 runs? That burns 1000 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0056664
178 copies of a 56-page packet are printed at $0.12 per page. What is the cost? A short script: ```python pages = 56 copies = 178 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 1196.1599999999999 print(f"{cost:.2f}") ``` The interpreter prints: 1196.16 Printing costs $1,196.16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "1196.16", "printed": "1196.16", "notation": null}
nlprog_det-setting-0056665
A filing cabinet costs $90. It is 15% off. What is the sale price? A Python solution: ```python price = 90 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 76.5 print(f"{sale_price:.2f}") ``` Python prints 76.50. The sale price is $76.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "76.50", "printed": "76.50", "notation": null}
nlprog_det-setting-0056666
<|start|><|user|> What average speed covers 200 miles in 0.5 hours?<|eot|> <|assistant|> distance = 200 hours = 0.5 speed = distance / hours # 400.0 print(round(speed)) The run gives: 400 The average speed is 400 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 200 miles in 0.5 hours?" }, { "role": "assistant", "content": " distance = 200\n hours = 0.5\n speed = distance / hours # 400.0\n print(round(speed))\nThe run gives: 400\n\nThe average speed is 400 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
67
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0056667
A $800 security deposit has deductions of $200. How much is refunded? Here's the code. deposit = 800 deductions = [200] refund = deposit - sum(deductions) # 600 print(refund) Result — 600 The refund is $600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0056668
Meals are $59 per day and lodging $175 per night. What is the allowance for 4 days and 3 nights? Let's compute it with Python. ```python days = 4 meal_rate = 59 lodging_rate = 175 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 761 print(total) ``` Shell output: 761 That comes to $761.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "761", "printed": "761", "notation": null}
nlprog_det-setting-0056669
A party has 14 days to respond to a motion served on May 9, 2019, with 3 days added because service was by mail. When is the response due? ```python from datetime import date, timedelta served = date(2019, 5, 9) # datetime.date(2019, 5, 9) response_days = 14 mail_days = 3 due = served + timedelta(days=response_days +...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
170
{"gold": "2019-05-26", "printed": "2019-05-26", "notation": null}
nlprog_det-setting-0056670
<|start|><|user|> Monthly: $29. Annual: $312. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 29 yearly = 312 savings = monthly * 12 - yearly # 36 print(savings) ``` It outputs: 36 The annual plan saves $36.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $29. Annual: $312. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 29\nyearly = 312\nsavings = monthly * 12 - yearly # 36\nprint(savings)\n```\nIt outputs: 36\n\nThe annual plan saves $36." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0056671
From a $5,000 retainer, 13 hours at $200/hour have been drawn. What remains? Python does the arithmetic: ```python retainer = 5000 hours = 13 rate = 200 left = retainer - hours * rate # 2400 print(left) ``` Interpreter output — 2400 $2,400 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "2400", "printed": "2400", "notation": null}
nlprog_det-setting-0056673
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> Lucia and Diego share $1,704 in the ratio 3:5. How much does Lucia get?<|eot|> <|assistant|> ```python total = 1704 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) print(share_a) ``` The code prints: 639 Lucia's share ...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "Lucia and Diego share $1,704 in the ratio 3:5. How much does Lucia get?" }, { "role": "assistant", "content": "```python\ntotal = 1704\nparts_a = 3\nparts_b = 5\nshare_a = total ...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "639", "printed": "639", "notation": null}
nlprog_det-setting-0056674
<|start|><|user|> Counting only Monday through Friday, how many business days are there after March 7, 2023 through April 16, 2023?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2023, 3, 7) end = date(2023, 4, 16) count = 0 for k in range(1, (end - start).days + 1): if (start + ti...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after March 7, 2023 through April 16, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2023, 3, 7)\nend = date(2023, 4, 16)\ncount = 0\nfo...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0056675
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> What is 0 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> That is 32 °F.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "What is 0 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "That is 32 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0056677
Fines run at $25 per day up to a maximum of $1,000. How much after 57 days? As Python: ```python per_day = 25 days = 57 cap = 1000 fine = min(per_day * days, cap) print(fine) ``` This prints 1000, as expected. $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0056679
<|start|><|user|> Rent of $1,250 goes up 5%. What is the new rent?<|eot|> <|assistant|> ```python rent = 1250 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1312.5 print(f"{new_rent:.2f}") ``` (Run result: 1312.50) The new rent is $1,312.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,250 goes up 5%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 1250\nincrease = 5 / 100 # 0.05\nnew_rent = rent * (1 + increase) # 1312.5\nprint(f\"{new_rent:.2f}\")\n```\n(Run result: 1312.50)\n\nThe new rent is $1,312.5...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1312.50", "printed": "1312.50", "notation": null}
nlprog_det-setting-0056680
Amir earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 49-hour week? Programmatically: ```python rate = 18.5 hours = 49 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 249.75 pay = regular + overtime # 989.75 print(f"{pay:.2f}") ``` Running it prints 989.75, as exp...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "989.75", "printed": "989.75", "notation": null}
nlprog_det-setting-0056681
A penalty of $250 a day accrues, capped at $5,000. What is owed after 20 days? Python code: ```python per_day = 250 days = 20 cap = 5000 fine = min(per_day * days, cap) # 5000 print(fine) ``` Run it and it prints: 5000 The fine is $5,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0056682
<|start|><|user|> Each storage box holds 25 files. How many boxes are needed for 36 files?<|eot|> <|assistant|> ```python import math files = 36 per_box = 25 boxes = math.ceil(files / per_box) # 2 print(boxes) ``` Running this gives 2. It takes 2 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 25 files. How many boxes are needed for 36 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 36\nper_box = 25\nboxes = math.ceil(files / per_box) # 2\nprint(boxes)\n```\nRunning this gives 2.\n\nIt takes 2 boxes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "2", "printed": "2", "notation": null}