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-0075816
<|start|><|system|> You may call the tools below. [{"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": "py_exec", "description": "E...
chat
[ { "role": "system", "content": "You may call the tools below.\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\": [\"tit...
nlprog_det
setting
original
null
deterministic
[]
[]
293
{"gold": "21000", "printed": "21000", "notation": null}
nlprog_det-setting-0075818
From a $5,000 retainer, 14 hours at $200/hour have been drawn. What remains? Python version: ```python retainer = 5000 hours = 14 rate = 200 left = retainer - hours * rate # 2200 print(left) ``` # output: 2200 The remaining balance is $2,200.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "2200", "printed": "2200", "notation": null}
nlprog_det-setting-0075819
<|start|><|user|> A 3% increase is applied to $900 monthly rent. What is the new amount?<|eot|> <|assistant|> rent = 900 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 927.0 print(f"{new_rent:.2f}") Running this gives: 927.00 The new rent is $927.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 3% increase is applied to $900 monthly rent. What is the new amount?" }, { "role": "assistant", "content": " rent = 900\n increase = 3 / 100 # 0.03\n new_rent = rent * (1 + increase) # 927.0\n print(f\"{new_rent:.2f}\")\nRunning this gives: 927.00\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "927.00", "printed": "927.00", "notation": null}
nlprog_det-setting-0075820
A recipe for 8 people uses 100 grams of oats. How many grams are needed for 12 people? Script: ```python grams = 100 serves = 8 needed_for = 12 scaled = grams * needed_for // serves # 150 print(scaled) ``` Printed: 150 150 grams of oats are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0075821
How many minutes pass from 7:16 AM to 1:56 PM on the same day? Script: start = 7 * 60 + 16 # 436 end = 13 * 60 + 56 # 836 print(end - start) When run, it prints 400, as expected. 400 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0075823
Quinn's scores were 94, 74, 90, 85, 62 and 99. What is the average score? Python, step by step: ```python scores = [94, 74, 90, 85, 62, 99] average = sum(scores) // len(scores) # 84 print(average) ``` Executed, it shows: 84 The average score is 84.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "84", "printed": "84", "notation": null}
nlprog_det-setting-0075824
<|start|><|user|> Each of Xavier's runs burns 150 calories. How many calories over 6 runs?<|eot|> <|assistant|> ```python per_session = 150 sessions = 6 total = per_session * sessions # 900 print(total) ``` That prints 900. That burns 900 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Xavier's runs burns 150 calories. How many calories over 6 runs?" }, { "role": "assistant", "content": "```python\nper_session = 150\nsessions = 6\ntotal = per_session * sessions # 900\nprint(total)\n```\nThat prints 900.\n\nThat burns 900 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0075825
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}} {"name": "translate", "description": "Translate text into another la...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"tra...
nlprog_det
setting
original
null
deterministic
[]
[]
360
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0075826
4 clients win $72,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? ```python award = 72000 fee = award * 40 / 100 # 28800.0 remaining = award - fee # 43200.0 per_client = remaining / 4 # 10800.0 print(f"{per_client:.2f}") ``` Out: 10800.00 Each share is $10,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "10800.00", "printed": "10800.00", "notation": null}
nlprog_det-setting-0075827
At $0.62 per mile, what is the reimbursement for 21 miles? Here's the code. ```python miles = 21 rate = 0.62 reimbursement = miles * rate # 13.02 print(f"{reimbursement:.2f}") ``` Printed: 13.02 Elena is owed $13.02.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "13.02", "printed": "13.02", "notation": null}
nlprog_det-setting-0075828
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> At $24.65 an hour, what does 24 hours of work pay?<|eot|> <|assistant|> ```python rate = 24.65 hours = 24 earnings = rate * hours # 591.5999999999999 print(f"{earnings:.2f}") ``` When run, it prints 591.60, as expected. That earns $591.60.<|eo...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "At $24.65 an hour, what does 24 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 24.65\nhours = 24\nearnings = rate * hours # 591.5999999999999\nprint(...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "591.60", "printed": "591.60", "notation": null}
nlprog_det-setting-0075829
Parking is $3 per hour with a daily maximum of $15. What do 3 hours cost? Parking costs $9.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0075830
At 30 miles per hour, how many minutes does a 170-mile trip take? ```python distance = 170 speed = 30 minutes = distance / speed * 60 # 340.0 print(round(minutes)) ``` stdout: 340 The trip takes 340 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "340", "printed": "340", "notation": null}
nlprog_det-setting-0075831
<|start|><|user|> At $18.12 an hour, what does 20 hours of work pay?<|eot|> <|assistant|> ```python rate = 18.12 hours = 20 earnings = rate * hours # 362.40000000000003 print(f"{earnings:.2f}") ``` (stdout: 362.40) That earns $362.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $18.12 an hour, what does 20 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 18.12\nhours = 20\nearnings = rate * hours # 362.40000000000003\nprint(f\"{earnings:.2f}\")\n```\n(stdout: 362.40)\n\nThat earns $362.40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "362.40", "printed": "362.40", "notation": null}
nlprog_det-setting-0075832
Oskar and Chen share $2,868 in the ratio 1:3. How much does Oskar get? Translated to Python: ```python total = 2868 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) print(share_a) ``` # printed result: 717 Oskar's share is $717.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "717", "printed": "717", "notation": null}
nlprog_det-setting-0075833
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "sandbox_python", "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...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \...
nlprog_det
setting
original
null
deterministic
[]
[]
298
{"gold": "8 days and 6 hours", "printed": "8 days and 6 hours", "notation": null}
nlprog_det-setting-0075834
<|start|><|user|> What simple interest does $5,000 earn at 3% a year over 2 years?<|eot|> <|assistant|> ```python principal = 5000 rate = 3 / 100 years = 2 interest = principal * rate * years print(f"{interest:.2f}") ``` (stdout: 300.00) The interest is $300.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $5,000 earn at 3% a year over 2 years?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 3 / 100\nyears = 2\ninterest = principal * rate * years\nprint(f\"{interest:.2f}\")\n```\n(stdout: 300.00)\n\nThe interest is ...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0075835
What percentage of $10,000 is $2,000? Python, step by step: ```python budget = 10000 spent = 2000 percent = spent / budget * 100 # 20.0 print(round(percent, 1)) ``` Execution result: 20.0 20.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0075836
<|start|><|user|> 2 books come back 28 days late, at $0.15 a day each. What is the fine?<|eot|> <|assistant|> The fine is $8.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 books come back 28 days late, at $0.15 a day each. What is the fine?" }, { "role": "assistant", "content": "The fine is $8.40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "8.40", "printed": "8.40", "notation": null}
nlprog_det-setting-0075837
A car travels 158 miles in 2 hours. What is its average speed in miles per hour? The average speed is 79 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0075838
A 18-month warranty starts on February 5, 2027. On what date does it end? Python code: ```python from datetime import date start = date(2027, 2, 5) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` (Output: 2028-0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2028-08-05", "printed": "2028-08-05", "notation": null}
nlprog_det-setting-0075839
<|start|><|user|> 6.5 hours of work at $410 an hour: what is the total charge?<|eot|> <|assistant|> ```python hours = 6.5 rate = 410 bill = hours * rate # 2665.0 print(f"{bill:.2f}") ``` # run result: 2665.00 That comes to $2,665.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6.5 hours of work at $410 an hour: what is the total charge?" }, { "role": "assistant", "content": "```python\nhours = 6.5\nrate = 410\nbill = hours * rate # 2665.0\nprint(f\"{bill:.2f}\")\n```\n# run result: 2665.00\n\nThat comes to $2,665.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "2665.00", "printed": "2665.00", "notation": null}
nlprog_det-setting-0075840
<|start|><|system|> You can call tools. Available tools: [{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> How many meters are...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
201
{"gold": "32600", "printed": "32600", "notation": null}
nlprog_det-setting-0075841
2 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? Here is the program. award = 96000 fee = award * 40 / 100 # 38400.0 remaining = award - fee # 57600.0 per_client = remaining / 2 # 28800.0 print(f"{per_client:.2f}") Interpreter output: 288...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "28800.00", "printed": "28800.00", "notation": null}
nlprog_det-setting-0075842
<|start|><|user|> Equipment costs $30,000, has a salvage value of $0, and a useful life of 4 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 30000 salvage = 0 years = 4 per_year = (cost - salvage) / years # 7500.0 print(f"{per_year:.2f}") ``` # execution result: 7500.00 $...
chat
[ { "role": "user", "content": "Equipment costs $30,000, has a salvage value of $0, and a useful life of 4 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 30000\nsalvage = 0\nyears = 4\nper_year = (cost - salvage) / years # 7500.0\n...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0075844
A class starts at 4:20 PM and lasts 25 minutes. When does it end? A few lines of Python do it: start = 16 * 60 + 20 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") The code prints 4:45 PM. The class finishes at 4:45 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "4:45 PM", "printed": "4:45 PM", "notation": null}
nlprog_det-setting-0075845
<|start|><|user|> Meals are $59 per day and lodging $175 per night. What is the allowance for 7 days and 6 nights?<|eot|> <|assistant|> ```python days = 7 meal_rate = 59 lodging_rate = 175 nights = days - 1 # 6 total = days * meal_rate + nights * lodging_rate # 1463 print(total) ``` This prints 1463. That comes to $...
chat
[ { "role": "user", "content": "Meals are $59 per day and lodging $175 per night. What is the allowance for 7 days and 6 nights?" }, { "role": "assistant", "content": "```python\ndays = 7\nmeal_rate = 59\nlodging_rate = 175\nnights = days - 1 # 6\ntotal = days * meal_rate + nights * lodging_rate ...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1463", "printed": "1463", "notation": null}
nlprog_det-setting-0075846
How many weekdays (Monday to Friday) fall after August 28, 2023 up to and including September 22, 2023? There are 19 business days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0075847
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Monthly: $29. Annual: $330. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 29 yearly = 330 savings = monthly * 12 - yearly # 18 print(savings) ``` # stdout: 18 $18 is saved.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "Monthly: $29. Annual: $330. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 29\nyearly = 330\nsavings = monthly * 12 - yearly # 18\...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0075848
Notice was given on October 5, 2019. The notice period is 21 days. When does it run out? Written as code: from datetime import date, timedelta start = date(2019, 10, 5) # datetime.date(2019, 10, 5) end = start + timedelta(days=21) # datetime.date(2019, 10, 26) print(end.isoformat()) The interpreter p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "2019-10-26", "printed": "2019-10-26", "notation": null}
nlprog_det-setting-0075849
A court charges $10 per request plus $0.50 per page after the first 0 pages. What does a 21-page copy cost? In code: ```python pages = 21 base = 10 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") ``` It outputs: 20.50 The total is $20.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "20.50", "printed": "20.50", "notation": null}
nlprog_det-setting-0075851
<|start|><|user|> Equal monthly payments repay $2,400 plus 8% simple yearly interest over 12 months. How large is a payment?<|eot|> <|assistant|> Each payment is $216.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Equal monthly payments repay $2,400 plus 8% simple yearly interest over 12 months. How large is a payment?" }, { "role": "assistant", "content": "Each payment is $216.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "216.00", "printed": "216.00", "notation": null}
nlprog_det-setting-0075852
A 174-page report must be reviewed in 6 days. How many pages a day is that, evenly? Python makes this quick: ```python pages = 174 days = 6 per_day = pages // days # 29 print(per_day) ``` Run it and it prints: 29 That is 29 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0075854
<|start|><|user|> Counting the first and last day, how many days are there from August 21, 2022 through August 30, 2022?<|eot|> <|assistant|> ```python from datetime import date first = date(2022, 8, 21) # datetime.date(2022, 8, 21) last = date(2022, 8, 30) # datetime.date(2022, 8, 30) days = (last - first).days + 1 ...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from August 21, 2022 through August 30, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2022, 8, 21) # datetime.date(2022, 8, 21)\nlast = date(2022, 8, 30) # d...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0075856
Straight-line depreciation: cost $12,000, salvage $0, 3 years. How much per year? We can compute it in Python. ```python cost = 12000 salvage = 0 years = 3 per_year = (cost - salvage) / years # 4000.0 print(f"{per_year:.2f}") ``` # out: 4000.00 $4,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0075858
<|start|><|user|> A $3,600 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> Each payment is $324.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $3,600 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "Each payment is $324.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "324.00", "printed": "324.00", "notation": null}
nlprog_det-setting-0075859
<|start|><|user|> With $4,000 in costs and $6,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> Profit is 33.3% of revenue.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With $4,000 in costs and $6,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "Profit is 33.3% of revenue." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "33.3", "printed": "33.3", "notation": null}
nlprog_det-setting-0075860
What is -10 degrees Celsius in Fahrenheit? The Python version: celsius = -10 fahrenheit = celsius * 9 / 5 + 32 # 14.0 print(round(fahrenheit)) The run gives 14. It equals 14 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0075861
At 1.5% a month (simple), what interest builds on $1,000 over 4 months? Let the code do the arithmetic: ```python balance = 1000 monthly_rate = 1.5 / 100 # 0.015 months = 4 interest = balance * monthly_rate * months # 60.0 print(f"{interest:.2f}") ``` Execution result — 60.00 $60.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0075862
<|start|><|user|> A service costs $9 a month or $90 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 9 yearly = 90 savings = monthly * 12 - yearly # 18 print(savings) ``` Running this gives 18. The annual plan saves $18.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $9 a month or $90 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 9\nyearly = 90\nsavings = monthly * 12 - yearly # 18\nprint(savings)\n```\nRunning this gives 18.\n\nT...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0075863
What commission does Jamal make on $6,816 in sales at 10%? Jamal earns $681.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "681.60", "printed": "681.60", "notation": null}
nlprog_det-setting-0075864
At 1.5% a month (simple), what interest builds on $12,000 over 2 months? $360.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0075865
Someone born January 20, 1980 turns how old by September 19, 2024? Give the age in whole years. Paula is 44.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0075866
Fiona lends $8,000 at 5% simple interest per year for 5 years. How much interest is earned? As Python: ```python principal = 8000 rate = 5 / 100 # 0.05 years = 5 interest = principal * rate * years # 2000.0 print(f"{interest:.2f}") ``` # result: 2000.00 The interest is $2,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0075867
Convert 45.9 km to meters. Python: km = 45.9 meters = km * 1000 # 45900.0 print(round(meters)) # printed result: 45900 45,900 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
67
{"gold": "45900", "printed": "45900", "notation": null}
nlprog_det-setting-0075868
A party has 28 days to respond to a motion served on July 3, 2021, with 3 days added because service was by mail. When is the response due? ```python from datetime import date, timedelta served = date(2021, 7, 3) response_days = 28 mail_days = 3 due = served + timedelta(days=response_days + mail_days) print(due.isofor...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2021-08-03", "printed": "2021-08-03", "notation": null}
nlprog_det-setting-0075870
<|start|><|user|> A pack of 25 badges sells for $1375. What does each cost?<|eot|> <|assistant|> total = 1375 count = 25 per_item = total // count # 55 print(per_item) The script prints 55, as expected. Each one costs $55.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 25 badges sells for $1375. What does each cost?" }, { "role": "assistant", "content": " total = 1375\n count = 25\n per_item = total // count # 55\n print(per_item)\nThe script prints 55, as expected.\n\nEach one costs $55." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "55", "printed": "55", "notation": null}
nlprog_det-setting-0075871
<|start|><|system|> Tools (call with JSON): [{"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": "code_runner", "description": "A P...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", ...
nlprog_det
setting
original
null
deterministic
[]
[]
307
{"gold": "25200", "printed": "25200", "notation": null}
nlprog_det-setting-0075872
Mateo was born on October 18, 1957. How old is Mateo on April 5, 2030? Code: from datetime import date born = date(1957, 10, 18) # datetime.date(1957, 10, 18) on = date(2030, 4, 5) # datetime.date(2030, 4, 5) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 72 print(ag...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0075873
<|start|><|user|> What day of the week is August 27, 2018?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2018, 8, 27) # datetime.date(2018, 8, 27) print(hearing.strftime("%A")) ``` The program outputs: Monday August 27, 2018 is a Monday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is August 27, 2018?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2018, 8, 27) # datetime.date(2018, 8, 27)\nprint(hearing.strftime(\"%A\"))\n```\nThe program outputs: Monday\n\nAugust 27, 2018 is a...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0075874
Monthly: $25. Annual: $270. What is saved per year by paying annually? Script: ```python monthly = 25 yearly = 270 savings = monthly * 12 - yearly # 30 print(savings) ``` Shell output — 30 $30 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0075875
<|start|><|user|> A lawyer's fee is 35% of a $150,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 150000 rate = 35 / 100 # 0.35 fee = recovery * rate # 52500.0 print(f"{fee:.2f}") ``` Execution prints 52500.00. The lawyer's fee comes to $52,500.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 35% of a $150,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 150000\nrate = 35 / 100 # 0.35\nfee = recovery * rate # 52500.0\nprint(f\"{fee:.2f}\")\n```\nExecution prints 52500.00.\n\nThe lawyer's...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "52500.00", "printed": "52500.00", "notation": null}
nlprog_det-setting-0075876
Fines run at $100 per day up to a maximum of $5,000. How much after 16 days? Python version: ```python per_day = 100 days = 16 cap = 5000 fine = min(per_day * days, cap) # 1600 print(fine) ``` Program output — 1600 The fine is $1,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1600", "printed": "1600", "notation": null}
nlprog_det-setting-0075877
<|start|><|user|> Count the days between July 7, 2022 and August 27, 2022.<|eot|> <|assistant|> ```python from datetime import date first = date(2022, 7, 7) # datetime.date(2022, 7, 7) second = date(2022, 8, 27) # datetime.date(2022, 8, 27) print((second - first).days) ``` Python prints: 51 It is 51 days.<|eot|> <|e...
chat
[ { "role": "user", "content": "Count the days between July 7, 2022 and August 27, 2022." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2022, 7, 7) # datetime.date(2022, 7, 7)\nsecond = date(2022, 8, 27) # datetime.date(2022, 8, 27)\nprint((second - fir...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0075878
A garage charges $4 an hour, never more than $24 a day. How much for 11 hours? Parking costs $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0075879
<|start|><|user|> Rania and Abel share $4,543 in the ratio 3:4. How much does Rania get?<|eot|> <|assistant|> ```python total = 4543 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 1947 print(share_a) ``` What it prints: 1947 Rania gets $1,947.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rania and Abel share $4,543 in the ratio 3:4. How much does Rania get?" }, { "role": "assistant", "content": "```python\ntotal = 4543\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a // (parts_a + parts_b) # 1947\nprint(share_a)\n```\nWhat it prints: 1947\n\nRa...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1947", "printed": "1947", "notation": null}
nlprog_det-setting-0075880
<|start|><|user|> A pack of 4 scissors sells for $224. What does each cost?<|eot|> <|assistant|> ```python total = 224 count = 4 per_item = total // count # 56 print(per_item) ``` Running this gives: 56 Each one costs $56.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 4 scissors sells for $224. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 224\ncount = 4\nper_item = total // count # 56\nprint(per_item)\n```\nRunning this gives: 56\n\nEach one costs $56." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0075883
A 24-month warranty starts on May 19, 2021. On what date does it end? Here's the code. ```python from datetime import date start = date(2021, 5, 19) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` stdout: 2023-0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2023-05-19", "printed": "2023-05-19", "notation": null}
nlprog_det-setting-0075884
Someone works 24 hours at $23.22 per hour. What are the earnings? We can compute it in Python. ```python rate = 23.22 hours = 24 earnings = rate * hours # 557.28 print(f"{earnings:.2f}") ``` Execution prints 557.28. The pay is $557.28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "557.28", "printed": "557.28", "notation": null}
nlprog_det-setting-0075885
4 walks at 400 calories each burn how many calories in total? Let the code do the arithmetic: ```python per_session = 400 sessions = 4 total = per_session * sessions # 1600 print(total) ``` This prints 1600. 1600 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "1600", "printed": "1600", "notation": null}
nlprog_det-setting-0075886
A 45-day notice period begins on June 7, 2019. On what date does it end? A few lines of Python do it: ```python from datetime import date, timedelta start = date(2019, 6, 7) # datetime.date(2019, 6, 7) end = start + timedelta(days=45) # datetime.date(2019, 7, 22) print(end.isoformat()) ``` Executing it gives 2019-07...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2019-07-22", "printed": "2019-07-22", "notation": null}
nlprog_det-setting-0075887
<|start|><|user|> Notice was given on August 5, 2022. The notice period is 120 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2022, 8, 5) # datetime.date(2022, 8, 5) end = start + timedelta(days=120) # datetime.date(2022, 12, 3) print(end.isoformat()) ``` ...
chat
[ { "role": "user", "content": "Notice was given on August 5, 2022. The notice period is 120 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 8, 5) # datetime.date(2022, 8, 5)\nend = start + timedelta(days=120) ...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2022-12-03", "printed": "2022-12-03", "notation": null}
nlprog_det-setting-0075888
<|start|><|user|> The paralegal logged 8 hours at a rate of $300. How much is billed?<|eot|> <|assistant|> ```python hours = 8 rate = 300 bill = hours * rate # 2400 print(f"{bill:.2f}") ``` # printed result: 2400.00 The bill is $2,400.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The paralegal logged 8 hours at a rate of $300. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 8\nrate = 300\nbill = hours * rate # 2400\nprint(f\"{bill:.2f}\")\n```\n# printed result: 2400.00\n\nThe bill is $2,400.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0075889
Convert 4,334 USD to CAD at 1 USD = 1.31 CAD. Translated to Python: ```python amount = 4334 rate = 1.31 converted = amount * rate # 5677.54 print(f"{converted:.2f}") ``` The program outputs: 5677.54 That is 5,677.54 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "5677.54", "printed": "5677.54", "notation": null}
nlprog_det-setting-0075890
<|start|><|user|> Revenue is $16,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> revenue = 16500 costs = 12500 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 24.242424242424242 print(round(margin, 1)) (Result: 24.2...
chat
[ { "role": "user", "content": "Revenue is $16,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": " revenue = 16500\n costs = 12500\n profit = revenue - costs # 4000\n margin = profit / revenue * 100 # 24....
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "24.2", "printed": "24.2", "notation": null}
nlprog_det-setting-0075891
<|start|><|user|> Counting only Monday through Friday, how many business days are there after June 4, 2024 through July 8, 2024?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2024, 6, 4) end = date(2024, 7, 8) count = 0 for k in range(1, (end - start).days + 1): if (start + timede...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after June 4, 2024 through July 8, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 6, 4)\nend = date(2024, 7, 8)\ncount = 0\nfor k ...
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0075892
The statute was enacted in 2015. How many years had passed by 2021? That is 6 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
22
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0075893
<|start|><|user|> Monthly: $29. Annual: $324. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 29 yearly = 324 savings = monthly * 12 - yearly # 24 print(savings) ``` When run, it prints: 24 The annual plan saves $24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $29. Annual: $324. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 29\nyearly = 324\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\nWhen run, it prints: 24\n\nThe annual plan saves $24." ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0075894
At an exchange rate of 1.35 EUR per USD, how many EUR is 517 USD? The Python version: amount = 517 rate = 1.35 converted = amount * rate # 697.95 print(f"{converted:.2f}") Run it and it prints 697.95. It converts to 697.95 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "697.95", "printed": "697.95", "notation": null}
nlprog_det-setting-0075895
Each of Uma's bike rides burns 250 calories. How many calories over 7 bike rides? 1750 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0075896
192 copies of a 7-page packet are printed at $0.12 per page. What is the cost? The program: pages = 7 copies = 192 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 161.28 print(f"{cost:.2f}") Interpreter output — 161.28 The job costs $161.28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "161.28", "printed": "161.28", "notation": null}
nlprog_det-setting-0075898
A car travels 65 miles in 2.5 hours. What is its average speed in miles per hour? Here's the code. ```python distance = 65 hours = 2.5 speed = distance / hours # 26.0 print(round(speed)) ``` The printout reads: 26 The average speed is 26 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0075899
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> A 39 lb package ships at $12 base plus $1.50/lb. What is the charge?<|eot|> <|assistant|> ```python base = 12 per_pound = 1.5 weight = 39 cost = base + per_pound * weight # 70.5 print(f"{cost:.2f}") ``` Out: 70.50 Shipping costs $70.50.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "A 39 lb package ships at $12 base plus $1.50/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 12\nper_pound = 1.5\nweight = 39\ncost = base + per_pound * wei...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "70.50", "printed": "70.50", "notation": null}
nlprog_det-setting-0075901
<|start|><|user|> A jacket costs $75. It is 25% off. What is the sale price?<|eot|> <|assistant|> ```python price = 75 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 56.25 print(f"{sale_price:.2f}") ``` Output: 56.25 The sale price is $56.25.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A jacket costs $75. It is 25% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 75\ndiscount = 25 / 100 # 0.25\nsale_price = price * (1 - discount) # 56.25\nprint(f\"{sale_price:.2f}\")\n```\nOutput: 56.25\n\nThe sale price is ...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "56.25", "printed": "56.25", "notation": null}
nlprog_det-setting-0075902
<|start|><|user|> A trial runs from October 17, 2027 to October 25, 2027, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2027, 10, 17) # datetime.date(2027, 10, 17) last = date(2027, 10, 25) # datetime.date(2027, 10, 25) days = (last - first)....
chat
[ { "role": "user", "content": "A trial runs from October 17, 2027 to October 25, 2027, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2027, 10, 17) # datetime.date(2027, 10, 17)\nlast = date(2027, 10, ...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0075903
138 copies of a 20-page packet are printed at $0.05 per page. What is the cost? Script: ```python pages = 20 copies = 138 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 138.0 print(f"{cost:.2f}") ``` This prints 138.00, as expected. Printing costs $138.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "138.00", "printed": "138.00", "notation": null}
nlprog_det-setting-0075904
<|start|><|user|> Monthly: $25. Annual: $276. What is saved per year by paying annually?<|eot|> <|assistant|> monthly = 25 yearly = 276 savings = monthly * 12 - yearly # 24 print(savings) The program prints: 24 $24 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $25. Annual: $276. What is saved per year by paying annually?" }, { "role": "assistant", "content": " monthly = 25\n yearly = 276\n savings = monthly * 12 - yearly # 24\n print(savings)\nThe program prints: 24\n\n$24 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0075905
<|start|><|user|> How many meters are in 12.2 kilometers?<|eot|> <|assistant|> ```python km = 12.2 meters = km * 1000 # 12200.0 print(round(meters)) ``` Result: 12200 12,200 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 12.2 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 12.2\nmeters = km * 1000 # 12200.0\nprint(round(meters))\n```\nResult:\n12200\n\n12,200 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "12200", "printed": "12200", "notation": null}
nlprog_det-setting-0075906
<|start|><|system|> Tools (call with JSON): [{"name": "code_runner", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Convert 5...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"code_runner\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
206
{"gold": "55600", "printed": "55600", "notation": null}
nlprog_det-setting-0075907
A meal costs $30.24. How much is a 22% tip? Python makes this quick: ```python bill = 30.24 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 6.6528 print(f"{tip:.2f}") ``` It outputs 6.65. The tip is $6.65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "6.65", "printed": "6.65", "notation": null}
nlprog_det-setting-0075908
<|start|><|user|> To read 176 pages in 16 days, how many pages per day are needed?<|eot|> <|assistant|> pages = 176 days = 16 per_day = pages // days # 11 print(per_day) Printed result — 11 That is 11 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 176 pages in 16 days, how many pages per day are needed?" }, { "role": "assistant", "content": " pages = 176\n days = 16\n per_day = pages // days # 11\n print(per_day)\nPrinted result — 11\n\nThat is 11 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0075909
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)) ``` Python prints 3.8. The margin is 3.8%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "3.8", "printed": "3.8", "notation": null}
nlprog_det-setting-0075910
<|start|><|user|> The paralegal logged 12 hours at a rate of $410. How much is billed?<|eot|> <|assistant|> That comes to $4,920.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The paralegal logged 12 hours at a rate of $410. How much is billed?" }, { "role": "assistant", "content": "That comes to $4,920.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "4920.00", "printed": "4920.00", "notation": null}
nlprog_det-setting-0075911
Each storage box holds 40 files. How many boxes are needed for 523 files? As Python: ```python import math files = 523 per_box = 40 boxes = math.ceil(files / per_box) print(boxes) ``` Printed: 14 It takes 14 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0075912
Express 166 hours in days and hours. Computing it: ```python hours = 166 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` On running, it outputs: 6 days and 22 hours 166 hours is 6 days and 22 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "6 days and 22 hours", "printed": "6 days and 22 hours", "notation": null}
nlprog_det-setting-0075913
Sami was born on September 4, 2000. How old is Sami on January 22, 2030? Script: ```python from datetime import date born = date(2000, 9, 4) # datetime.date(2000, 9, 4) on = date(2030, 1, 22) # datetime.date(2030, 1, 22) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 29 print(age) ``` s...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0075914
Copies cost $5 plus $0.50 for each page beyond 20. How much for 44 pages? ```python pages = 44 base = 5 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 17.0 print(f"{cost:.2f}") ``` Console: 17.00 The copy costs $17.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "17.00", "printed": "17.00", "notation": null}
nlprog_det-setting-0075915
Pack A has 8 items for $11.71. Pack B has 18 items for $22.73. Which has the lower price per item? ```python pack_a = 11.71 / 8 # 1.46375 pack_b = 22.73 / 18 # 1.2627777777777778 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` That prints: B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0075916
A party has 28 days to respond to a motion served on August 15, 2022, with 3 days added because service was by mail. When is the response due? Code: ```python from datetime import date, timedelta served = date(2022, 8, 15) # datetime.date(2022, 8, 15) response_days = 28 mail_days = 3 due = served + timedelta(days=res...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
172
{"gold": "2022-09-15", "printed": "2022-09-15", "notation": null}
nlprog_det-setting-0075917
<|start|><|user|> What day of the week is August 25, 2030?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2030, 8, 25) # datetime.date(2030, 8, 25) print(hearing.strftime("%A")) ``` # execution result: Sunday August 25, 2030 is a Sunday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is August 25, 2030?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2030, 8, 25) # datetime.date(2030, 8, 25)\nprint(hearing.strftime(\"%A\"))\n```\n# execution result: Sunday\n\nAugust 25, 2030 is a ...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0075918
With $4,000 in costs and $4,500 in revenue, what percent of revenue is profit? Round to one decimal. The Python version: ```python revenue = 4500 costs = 4000 profit = revenue - costs margin = profit / revenue * 100 print(round(margin, 1)) ``` Result — 11.1 The margin is 11.1%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0075919
<|start|><|user|> A 90-day notice period begins on April 12, 2028. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2028, 4, 12) # datetime.date(2028, 4, 12) end = start + timedelta(days=90) # datetime.date(2028, 7, 11) print(end.isoformat()) ``` Out: 2028-07-...
chat
[ { "role": "user", "content": "A 90-day notice period begins on April 12, 2028. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2028, 4, 12) # datetime.date(2028, 4, 12)\nend = start + timedelta(days=90) # datetime.d...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2028-07-11", "printed": "2028-07-11", "notation": null}
nlprog_det-setting-0075920
A clerk's office charges $45 for each filing. Hugo submits 9 filings. What is the total fee? One way, in code: ```python fee = 45 filings = 9 total = fee * filings # 405 print(total) ``` Output — 405 The filings cost $405 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "405", "printed": "405", "notation": null}
nlprog_det-setting-0075921
Monthly: $19. Annual: $198. What is saved per year by paying annually? A Python solution: ```python monthly = 19 yearly = 198 savings = monthly * 12 - yearly # 30 print(savings) ``` Run output — 30 The annual plan saves $30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0075922
<|start|><|system|> Functions: {"name": "interpreter", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "search_cases", "descript...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"interpreter\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
383
{"gold": "950.36", "printed": "950.36", "notation": null}
nlprog_det-setting-0075923
784 files go into boxes of 40. How many boxes does that take? Here's the code. ```python import math files = 784 per_box = 40 boxes = math.ceil(files / per_box) # 20 print(boxes) ``` Printed: 20 20 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0075924
Equipment costs $45,000, has a salvage value of $2,000, and a useful life of 3 years. What is the straight-line depreciation per year? Script: cost = 45000 salvage = 2000 years = 3 per_year = (cost - salvage) / years print(f"{per_year:.2f}") Interpreter output — 14333.33 $14,333.33 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "14333.33", "printed": "14333.33", "notation": null}
nlprog_det-setting-0075925
An office budget of $20,000 has expenses of $1,968, $3,658, $2,112. How much of the budget is left? ```python budget = 20000 expenses = [1968, 3658, 2112] left = budget - sum(expenses) # 12262 print(left) ``` # execution result: 12262 The remaining budget is $12,262.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "12262", "printed": "12262", "notation": null}
nlprog_det-setting-0075926
<|start|><|user|> Straight-line depreciation: cost $30,000, salvage $2,000, 3 years. How much per year?<|eot|> <|assistant|> ```python cost = 30000 salvage = 2000 years = 3 per_year = (cost - salvage) / years # 9333.333333333334 print(f"{per_year:.2f}") ``` The code prints: 9333.33 Depreciation is $9,333.33 per year....
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $30,000, salvage $2,000, 3 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 30000\nsalvage = 2000\nyears = 3\nper_year = (cost - salvage) / years # 9333.333333333334\nprint(f\"{per_year:.2f}\")\n```...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "9333.33", "printed": "9333.33", "notation": null}
nlprog_det-setting-0075927
A $48,000 grant pays $6,000 up front and the rest in 6 equal installments. How large is each installment? ```python grant = 48000 up_front = 6000 installments = 6 each = (grant - up_front) / installments # 7000.0 print(f"{each:.2f}") ``` Printed: 7000.00 Each installment is $7,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "7000.00", "printed": "7000.00", "notation": null}