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-0059368 | From 2012 to 2045, how many years is that?
A few lines of Python do it:
```python
start_year = 2012
end_year = 2045
print(end_year - start_year)
```
Run output — 33
33 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0059370 | A party has 28 days to respond to a motion served on May 19, 2019, with 3 days added because service was by mail. When is the response due?
Coded up:
```python
from datetime import date, timedelta
served = date(2019, 5, 19) # datetime.date(2019, 5, 19)
response_days = 28
mail_days = 3
due = served + timedelta(days=re... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 179 | {"gold": "2019-06-19", "printed": "2019-06-19", "notation": null} |
nlprog_det-setting-0059371 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Papers were served by mail on May 7, 2019. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2019, 5, 7) # datetime.date(2019... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Papers were served by mail on May 7, 2019. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "```python\... | nlprog_det | setting | original | null | deterministic | [] | [] | 187 | {"gold": "2019-06-09", "printed": "2019-06-09", "notation": null} |
nlprog_det-setting-0059372 | A service costs $25 a month or $270 a year. How much does the yearly plan save over 12 monthly payments?
Code:
```python
monthly = 25
yearly = 270
savings = monthly * 12 - yearly # 30
print(savings)
```
The script prints 30.
The annual plan saves $30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0059373 | Prorate $2,400 of monthly rent for 19 days of a 31-day month.
Code:
```python
rent = 2400
days_in_month = 31
days_occupied = 19
prorated = rent * days_occupied / days_in_month # 1470.967741935484
print(f"{prorated:.2f}")
```
Running this gives 1470.97.
The prorated rent is $1,470.97. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "1470.97", "printed": "1470.97", "notation": null} |
nlprog_det-setting-0059374 | <|start|><|user|>
From a $7,500 retainer, 10 hours at $275/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 7500
hours = 10
rate = 275
left = retainer - hours * rate # 4750
print(left)
```
# stdout: 4750
The remaining balance is $4,750.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $7,500 retainer, 10 hours at $275/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 7500\nhours = 10\nrate = 275\nleft = retainer - hours * rate # 4750\nprint(left)\n```\n# stdout: 4750\n\nThe remaining balance ... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "4750", "printed": "4750", "notation": null} |
nlprog_det-setting-0059375 | An attorney bills 8 hours at $225 per hour. What is the bill? The bill is $1,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "1800.00", "printed": "1800.00", "notation": null} |
nlprog_det-setting-0059376 | Divide 66 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?
Let's compute it with Python.
```python
total = 66
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Shell output — 16 each, 2 left over
16 each,... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "16 each, 2 left over", "printed": "16 each, 2 left over", "notation": null} |
nlprog_det-setting-0059377 | <|start|><|user|>
A 18-month warranty starts on June 19, 2018. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2018, 6, 19)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat... | chat | [
{
"role": "user",
"content": "A 18-month warranty starts on June 19, 2018. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2018, 6, 19)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.ye... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2019-12-19", "printed": "2019-12-19", "notation": null} |
nlprog_det-setting-0059378 | <|start|><|user|>
A meeting starts at 11:10 AM and lasts 25 minutes. When does it end?<|eot|>
<|assistant|>
```python
start = 11 * 60 + 10
end = start + 25
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
This prints: 11:35 AM
It ends at 11:35 AM.<|eot|>
<|e... | chat | [
{
"role": "user",
"content": "A meeting starts at 11:10 AM and lasts 25 minutes. When does it end?"
},
{
"role": "assistant",
"content": "```python\nstart = 11 * 60 + 10\nend = start + 25\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "11:35 AM", "printed": "11:35 AM", "notation": null} |
nlprog_det-setting-0059379 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source ... | nlprog_det | setting | original | null | deterministic | [] | [] | 211 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0059380 | <|start|><|user|>
Parking is $5 per hour with a daily maximum of $15. What do 1 hours cost?<|eot|>
<|assistant|>
```python
rate = 5
hours = 1
daily_max = 15
cost = min(rate * hours, daily_max) # 5
print(cost)
```
Running it prints 5, as expected.
The charge is $5.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $5 per hour with a daily maximum of $15. What do 1 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 5\nhours = 1\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 5\nprint(cost)\n```\nRunning it prints 5, as expected.\n\nThe char... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0059381 | <|start|><|user|>
497 files go into boxes of 40. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 497
per_box = 40
boxes = math.ceil(files / per_box) # 13
print(boxes)
```
Shell output: 13
13 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "497 files go into boxes of 40. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 497\nper_box = 40\nboxes = math.ceil(files / per_box) # 13\nprint(boxes)\n```\nShell output: 13\n\n13 boxes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0059382 | A court charges $5 per request plus $0.50 per page after the first 0 pages. What does a 102-page copy cost?
We write it as a program:
```python
pages = 102
base = 5
per_page = 0.5
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 56.0
print(f"{cost:.2f}")
```
Running this gives 56.00.
The total is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "56.00", "printed": "56.00", "notation": null} |
nlprog_det-setting-0059383 | <|start|><|user|>
A hearing is set for September 13, 2023. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2023, 9, 13) # datetime.date(2023, 9, 13)
print(hearing.strftime("%A"))
```
Executed, it shows: Wednesday
It is a Wednesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for September 13, 2023. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2023, 9, 13) # datetime.date(2023, 9, 13)\nprint(hearing.strftime(\"%A\"))\n```\nExecuted, it shows: W... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0059384 | From a $7,500 retainer, 8 hours at $200/hour have been drawn. What remains?
A few lines of Python do it:
retainer = 7500
hours = 8
rate = 200
left = retainer - hours * rate # 5900
print(left)
The run gives 5900, as expected.
$5,900 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "5900", "printed": "5900", "notation": null} |
nlprog_det-setting-0059385 | Fuel for 450 miles at 30 mpg, with gas at $4.12/gallon: what is the cost?
Fuel costs $61.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "61.80", "printed": "61.80", "notation": null} |
nlprog_det-setting-0059386 | A 34 lb package ships at $10 base plus $2.00/lb. What is the charge?
The charge is $78.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "78.00", "printed": "78.00", "notation": null} |
nlprog_det-setting-0059387 | A $800 security deposit has deductions of $60 and $120. How much is refunded?
```python
deposit = 800
deductions = [60, 120]
refund = deposit - sum(deductions) # 620
print(refund)
```
Running it prints 620, as expected.
$620 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "620", "printed": "620", "notation": null} |
nlprog_det-setting-0059388 | <|start|><|user|>
Flooring at $5/sq ft for a 18 ft × 15 ft room costs how much?<|eot|>
<|assistant|>
It costs $1,350.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Flooring at $5/sq ft for a 18 ft × 15 ft room costs how much?"
},
{
"role": "assistant",
"content": "It costs $1,350."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "1350", "printed": "1350", "notation": null} |
nlprog_det-setting-0059389 | Convert 1 h 49 min (the length of a meeting) to minutes.
Computation in Python:
hours = 1
minutes = 49
total_minutes = hours * 60 + minutes # 109
print(total_minutes)
The run gives 109, as expected.
The meeting lasted 109 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "109", "printed": "109", "notation": null} |
nlprog_det-setting-0059390 | A storeroom has 1925 tape rolls. The office uses 18 a day. How many are left after 7 days?
A short script:
```python
stock = 1925
per_day = 18
days = 7
left = stock - per_day * days # 1799
print(left)
```
stdout: 1799
1799 tape rolls are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1799", "printed": "1799", "notation": null} |
nlprog_det-setting-0059391 | How many whole days and leftover hours are in 398 hours?
Computing it:
```python
hours = 398
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
(stdout: 16 days and 14 hours)
That is 16 days and 14 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "16 days and 14 hours", "printed": "16 days and 14 hours", "notation": null} |
nlprog_det-setting-0059392 | A 20 × 12 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
A Python solution:
import math
length = 20
width = 12
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 60
print(tiles)
Run output: 60
It takes 60 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0059393 | Tomas earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 44-hour week?
Python:
```python
rate = 16.0
hours = 44
regular = 40 * rate
overtime = (hours - 40) * rate * 1.5
pay = regular + overtime
print(f"{pay:.2f}")
```
What it prints — 736.00
The weekly pay is $736.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "736.00", "printed": "736.00", "notation": null} |
nlprog_det-setting-0059394 | A $12,000 grant pays $0 up front and the rest in 6 equal installments. How large is each installment?
Written as code:
```python
grant = 12000
up_front = 0
installments = 6
each = (grant - up_front) / installments # 2000.0
print(f"{each:.2f}")
```
When run, it prints 2000.00, as expected.
Each installment is $2,000.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0059396 | A court charges $10 per request plus $0.25 per page after the first 0 pages. What does a 106-page copy cost?
Python, step by step:
```python
pages = 106
base = 10
per_page = 0.25
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 36.5
print(f"{cost:.2f}")
```
Out — 36.50
The copy costs $36.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "36.50", "printed": "36.50", "notation": null} |
nlprog_det-setting-0059397 | Straight-line depreciation: cost $12,000, salvage $2,000, 8 years. How much per year?
As a program:
```python
cost = 12000
salvage = 2000
years = 8
per_year = (cost - salvage) / years # 1250.0
print(f"{per_year:.2f}")
```
Out:
1250.00
$1,250.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1250.00", "printed": "1250.00", "notation": null} |
nlprog_det-setting-0059398 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
How many units at $40 each ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s... | nlprog_det | setting | original | null | deterministic | [] | [] | 236 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0059399 | Jonas buys 12 boxes of 8 desk lamps each and gives away 15 desk lamps. How many desk lamps are left?
Code:
```python
boxes = 12
per_box = 8
given_away = 15
left = boxes * per_box - given_away # 81
print(left)
```
The program outputs 81.
81 desk lamps are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "81", "printed": "81", "notation": null} |
nlprog_det-setting-0059400 | Convert 5,801 GBP to USD at 1 GBP = 1.12 USD.
The Python version:
```python
amount = 5801
rate = 1.12
converted = amount * rate # 6497.120000000001
print(f"{converted:.2f}")
```
The code prints 6497.12.
It converts to 6,497.12 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "6497.12", "printed": "6497.12", "notation": null} |
nlprog_det-setting-0059401 | Printing costs 10 cents a page. What does it cost to print 184 copies of a 17-page handout?
pages = 17
copies = 184
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 312.8
print(f"{cost:.2f}")
That prints 312.80.
The job costs $312.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "312.80", "printed": "312.80", "notation": null} |
nlprog_det-setting-0059402 | After an initial $0, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part?
Each installment is $20,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "20000.00", "printed": "20000.00", "notation": null} |
nlprog_det-setting-0059403 | If a 4-year limitations period starts on May 22, 2014, when does it end?
Computation in Python:
```python
from datetime import date
accrued = date(2014, 5, 22) # datetime.date(2014, 5, 22)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 5, 22)
print(expires.isoformat())
```
Outpu... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2018-05-22", "printed": "2018-05-22", "notation": null} |
nlprog_det-setting-0059404 | <|start|><|user|>
Of a $5,000 budget, $3,100 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 5000
spent = 3100
percent = spent / budget * 100 # 62.0
print(round(percent, 1))
```
(Output: 62.0)
That is 62.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $5,000 budget, $3,100 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nspent = 3100\npercent = spent / budget * 100 # 62.0\nprint(round(percent, 1))\n```\n(Output: 62.0)\n\nThat is 62.0% of the budget."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "62.0", "printed": "62.0", "notation": null} |
nlprog_det-setting-0059405 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
With $12,500 in costs and $16,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
Profit is 24.2% of revenue.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "With $12,500 in costs and $16,500 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "Profit is 24.2% of revenue."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 57 | {"gold": "24.2", "printed": "24.2", "notation": null} |
nlprog_det-setting-0059406 | <|start|><|user|>
Count 90 days forward from August 26, 2024. What date is that?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2024, 8, 26) # datetime.date(2024, 8, 26)
end = start + timedelta(days=90) # datetime.date(2024, 11, 24)
print(end.isoformat())
```
Python prints: 2024-11-2... | chat | [
{
"role": "user",
"content": "Count 90 days forward from August 26, 2024. What date is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 8, 26) # datetime.date(2024, 8, 26)\nend = start + timedelta(days=90) # datetime.date(2024, 11... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "2024-11-24", "printed": "2024-11-24", "notation": null} |
nlprog_det-setting-0059407 | <|start|><|user|>
An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 6 months?<|eot|>
<|assistant|>
The interest is $450.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 6 months?"
},
{
"role": "assistant",
"content": "The interest is $450.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0059408 | <|start|><|user|>
A kettle costs $120. It is 30% off. What is the sale price?<|eot|>
<|assistant|>
It costs $84.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A kettle costs $120. It is 30% off. What is the sale price?"
},
{
"role": "assistant",
"content": "It costs $84.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "84.00", "printed": "84.00", "notation": null} |
nlprog_det-setting-0059409 | A clerk's office charges $35 for each filing. Tomas submits 16 filings. What is the total fee?
As a program:
```python
fee = 35
filings = 16
total = fee * filings # 560
print(total)
```
Executing it gives 560.
The total fee is $560. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "560", "printed": "560", "notation": null} |
nlprog_det-setting-0059410 | An invoice lists 30 file boxes at $2 each, plus 6% sales tax. What is the invoice total?
Translated to Python:
```python
quantity = 30
unit_price = 2
subtotal = quantity * unit_price # 60
total = subtotal * (1 + 6 / 100) # 63.6
print(f"{total:.2f}")
```
(Result: 63.60)
The total with tax is $63.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "63.60", "printed": "63.60", "notation": null} |
nlprog_det-setting-0059411 | <|start|><|user|>
Starting from $8,000, the team spends $2,460, $1,089. What remains?<|eot|>
<|assistant|>
```python
budget = 8000
expenses = [2460, 1089]
left = budget - sum(expenses) # 4451
print(left)
```
The printout reads: 4451
$4,451 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $8,000, the team spends $2,460, $1,089. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 8000\nexpenses = [2460, 1089]\nleft = budget - sum(expenses) # 4451\nprint(left)\n```\nThe printout reads: 4451\n\n$4,451 is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "4451", "printed": "4451", "notation": null} |
nlprog_det-setting-0059412 | Wanjiru drove 612 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?
Code:
```python
miles = 612
rate = 0.62
reimbursement = miles * rate # 379.44
print(f"{reimbursement:.2f}")
```
Printed: 379.44
The reimbursement is $379.44. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "379.44", "printed": "379.44", "notation": null} |
nlprog_det-setting-0059413 | Under a 30% contingency agreement, what fee is owed on a $25,000 award?
Set it up in Python:
```python
recovery = 25000
rate = 30 / 100 # 0.3
fee = recovery * rate # 7500.0
print(f"{fee:.2f}")
```
(Printed: 7500.00)
The fee is $7,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0059414 | <|start|><|user|>
A measure needs at least 75% of 42 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 42
needed = math.ceil(voters * 75 / 100) # 32
print(needed)
```
(stdout: 32)
32 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 75% of 42 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 42\nneeded = math.ceil(voters * 75 / 100) # 32\nprint(needed)\n```\n(stdout: 32)\n\n32 votes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0059415 | At a 6% tax rate, what is the tax on $176.12?
Python makes this quick:
```python
price = 176.12
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 10.5672
print(f"{tax:.2f}")
```
Console:
10.57
The tax is $10.57. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "10.57", "printed": "10.57", "notation": null} |
nlprog_det-setting-0059416 | <|start|><|system|>
Tool definitions:
{"name": "python_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Of a $5,000 budget, $3,200 has be... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"python_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script... | nlprog_det | setting | original | null | deterministic | [] | [] | 212 | {"gold": "64.0", "printed": "64.0", "notation": null} |
nlprog_det-setting-0059417 | Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 49 hours?
Let the code do the arithmetic:
```python
rate = 20.0
hours = 49
regular = 40 * rate
overtime = (hours - 40) * rate * 1.5
pay = regular + overtime
print(f"{pay:.2f}")
```
# console output: 1070.00
Arjun earns $1,070.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "1070.00", "printed": "1070.00", "notation": null} |
nlprog_det-setting-0059418 | <|start|><|user|>
Wanjiru's scores were 58, 72, 71, 96 and 98. What is the average score?<|eot|>
<|assistant|>
```python
scores = [58, 72, 71, 96, 98]
average = sum(scores) // len(scores)
print(average)
```
Result — 79
The mean is 79.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Wanjiru's scores were 58, 72, 71, 96 and 98. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [58, 72, 71, 96, 98]\naverage = sum(scores) // len(scores)\nprint(average)\n```\nResult — 79\n\nThe mean is 79."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "79", "printed": "79", "notation": null} |
nlprog_det-setting-0059419 | A 8% increase is applied to $2,200 monthly rent. What is the new amount?
Python:
```python
rent = 2200
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 2376.0
print(f"{new_rent:.2f}")
```
Output: 2376.00
The new rent is $2,376.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "2376.00", "printed": "2376.00", "notation": null} |
nlprog_det-setting-0059420 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
After an initial $2,000, the remainder of a $30,000 grant is paid in 6 equal parts. What is each part?<|eot|>
<|assistant|>
```python
grant = 30000
up_front = 2000
installments = 6
each = (grant - up_front) / installments # 4666.66666666666... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "After an initial $2,000, the remainder of a $30,000 grant is paid in 6 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "```python\ngrant = 30000\nup_fron... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "4666.67", "printed": "4666.67", "notation": null} |
nlprog_det-setting-0059421 | <|start|><|user|>
If a 135-minute shift begins at 11:45 AM, what time does it finish?<|eot|>
<|assistant|>
It ends at 2:00 PM.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "If a 135-minute shift begins at 11:45 AM, what time does it finish?"
},
{
"role": "assistant",
"content": "It ends at 2:00 PM."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "2:00 PM", "printed": "2:00 PM", "notation": null} |
nlprog_det-setting-0059422 | A lawyer's fee is 25% of a $25,000 recovery. How large is the fee?
As Python:
```python
recovery = 25000
rate = 25 / 100 # 0.25
fee = recovery * rate # 6250.0
print(f"{fee:.2f}")
```
(Out: 6250.00)
The lawyer's fee comes to $6,250.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "6250.00", "printed": "6250.00", "notation": null} |
nlprog_det-setting-0059424 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
To read 522 pages in 9 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 522
days = 9
per_day = pages // days # 58
print(per_day)
```
Console output — 58
That is 58 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "To read 522 pages in 9 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 522\ndays = 9\nper_day = pages // days # 58\nprint(per_... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "58", "printed": "58", "notation": null} |
nlprog_det-setting-0059425 | A meeting starts at 10:00 AM and lasts 90 minutes. When does it end?
Set it up in Python:
```python
start = 10 * 60 + 0
end = start + 90
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Interpreter output: 11:30 AM
It ends at 11:30 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "11:30 AM", "printed": "11:30 AM", "notation": null} |
nlprog_det-setting-0059426 | <|start|><|user|>
The landlord deducts $45, $200 and $45 from a $800 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 800
deductions = [45, 200, 45]
refund = deposit - sum(deductions) # 510
print(refund)
```
The run gives 510.
The refund is $510.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $45, $200 and $45 from a $800 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 800\ndeductions = [45, 200, 45]\nrefund = deposit - sum(deductions) # 510\nprint(refund)\n```\nThe run gives 510.... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "510", "printed": "510", "notation": null} |
nlprog_det-setting-0059427 | <|start|><|user|>
Monthly: $15. Annual: $144. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 15
yearly = 144
savings = monthly * 12 - yearly # 36
print(savings)
```
What it prints — 36
$36 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $15. Annual: $144. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 15\nyearly = 144\nsavings = monthly * 12 - yearly # 36\nprint(savings)\n```\nWhat it prints — 36\n\n$36 is saved."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0059428 | 3 books come back 15 days late, at $0.25 a day each. What is the fine?
Computation in Python:
```python
per_day = 0.25
days_late = 15
books = 3
fine = per_day * days_late * books # 11.25
print(f"{fine:.2f}")
```
The interpreter prints 11.25.
The fine is $11.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "11.25", "printed": "11.25", "notation": null} |
nlprog_det-setting-0059429 | The landlord deducts $120 from a $1,500 deposit. What is returned to the tenant?
$1,380 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "1380", "printed": "1380", "notation": null} |
nlprog_det-setting-0059430 | Filing fees are $150 per document. What do 12 filings cost?
Here's the code.
```python
fee = 150
filings = 12
total = fee * filings # 1800
print(total)
```
The run gives 1800.
The filings cost $1,800 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0059431 | <|start|><|user|>
With 18 rows of 19 chairs and 10 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 18
per_row = 19
empty = 10
seated = rows * per_row - empty # 332
print(seated)
```
Printed = 332
332 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 18 rows of 19 chairs and 10 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 18\nper_row = 19\nempty = 10\nseated = rows * per_row - empty # 332\nprint(seated)\n```\nPrinted = 332\n\n332 seats are taken."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "332", "printed": "332", "notation": null} |
nlprog_det-setting-0059432 | At 60 miles per hour, how many minutes does a 165-mile trip take?
Here is a short program for it.
```python
distance = 165
speed = 60
minutes = distance / speed * 60 # 165.0
print(round(minutes))
```
The code prints: 165
165 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "165", "printed": "165", "notation": null} |
nlprog_det-setting-0059433 | <|start|><|user|>
A measure needs at least 67% of 253 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 253
needed = math.ceil(voters * 67 / 100) # 170
print(needed)
```
# program output: 170
170 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 67% of 253 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 253\nneeded = math.ceil(voters * 67 / 100) # 170\nprint(needed)\n```\n# program output: 170\n\n170 votes are neede... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "170", "printed": "170", "notation": null} |
nlprog_det-setting-0059435 | A settlement of $2,640 is split equally among 2 parties. How much does each party receive?
A Python solution:
```python
settlement = 2640
parties = 2
share = settlement // parties # 1320
print(share)
```
(Printed: 1320)
Each party receives $1,320. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1320", "printed": "1320", "notation": null} |
nlprog_det-setting-0059436 | A car travels 298 miles in 2 hours. What is its average speed in miles per hour?
Let's compute it with Python.
```python
distance = 298
hours = 2
speed = distance / hours
print(round(speed))
```
Shell output: 149
The average speed is 149 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "149", "printed": "149", "notation": null} |
nlprog_det-setting-0059437 | How many days are there from May 13, 2027 to February 29, 2028? It is 292 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "292", "printed": "292", "notation": null} |
nlprog_det-setting-0059438 | <|start|><|user|>
The firm was founded in 1997. How many years had passed by 2033?<|eot|>
<|assistant|>
```python
start_year = 1997
end_year = 2033
print(end_year - start_year)
```
The run gives: 36
That is 36 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The firm was founded in 1997. How many years had passed by 2033?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 1997\nend_year = 2033\nprint(end_year - start_year)\n```\nThe run gives: 36\n\nThat is 36 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0059439 | Pack A has 12 items for $8.50. Pack B has 30 items for $23.27. Which has the lower price per item?
Here is a short program for it.
```python
pack_a = 8.5 / 12 # 0.7083333333333334
pack_b = 23.27 / 30 # 0.7756666666666666
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
(Out: A)
A has the lower un... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0059440 | What is the total rent on a 18-month lease at $975 a month?
Written as code:
monthly_rent = 975
months = 18
total = monthly_rent * months # 17550
print(total)
(Execution result: 17550)
The rent over the term is $17,550. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "17550", "printed": "17550", "notation": null} |
nlprog_det-setting-0059441 | Meals are $59 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights?
Program:
days = 4
meal_rate = 59
lodging_rate = 140
nights = days - 1 # 3
total = days * meal_rate + nights * lodging_rate # 656
print(total)
Run result = 656
That comes to $656. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "656", "printed": "656", "notation": null} |
nlprog_det-setting-0059442 | Goods bought on June 11, 2018 carry a 24-month warranty. When does it expire?
Python does the arithmetic:
from datetime import date
start = date(2018, 6, 11)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(en... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "2020-06-11", "printed": "2020-06-11", "notation": null} |
nlprog_det-setting-0059443 | $2,000 is invested at 3% compounded yearly. What is it worth after 2 years?
Python version:
```python
principal = 2000
rate = 3 / 100
years = 2
value = principal * (1 + rate) ** years
print(f"{value:.2f}")
```
# run result: 2121.80
The balance is $2,121.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "2121.80", "printed": "2121.80", "notation": null} |
nlprog_det-setting-0059444 | <|start|><|user|>
A hearing is set for September 13, 2006. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2006, 9, 13) # datetime.date(2006, 9, 13)
print(hearing.strftime("%A"))
```
(stdout: Wednesday)
It is a Wednesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for September 13, 2006. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2006, 9, 13) # datetime.date(2006, 9, 13)\nprint(hearing.strftime(\"%A\"))\n```\n(stdout: Wednesday)\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0059445 | A lawyer's fee is 30% of a $40,000 recovery. How large is the fee?
Let's compute it with Python.
```python
recovery = 40000
rate = 30 / 100
fee = recovery * rate
print(f"{fee:.2f}")
```
stdout: 12000.00
The lawyer's fee comes to $12,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0059448 | <|start|><|user|>
Someone works 24 hours at $27.03 per hour. What are the earnings?<|eot|>
<|assistant|>
rate = 27.03
hours = 24
earnings = rate * hours # 648.72
print(f"{earnings:.2f}")
The code prints: 648.72
The pay is $648.72.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 24 hours at $27.03 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": " rate = 27.03\n hours = 24\n earnings = rate * hours # 648.72\n print(f\"{earnings:.2f}\")\nThe code prints: 648.72\n\nThe pay is $648.72."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "648.72", "printed": "648.72", "notation": null} |
nlprog_det-setting-0059449 | The firm was founded in 2009. How many years had passed by 2021?
A few lines of Python do it:
```python
start_year = 2009
end_year = 2021
print(end_year - start_year)
```
Interpreter output: 12
12 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0059451 | <|start|><|user|>
How many whole days and leftover hours are in 352 hours?<|eot|>
<|assistant|>
hours = 352
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
Output — 14 days and 16 hours
That is 14 days and 16 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 352 hours?"
},
{
"role": "assistant",
"content": " hours = 352\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\nOutput — 14 days and 16 hours\n\nThat is 14 days and 16 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "14 days and 16 hours", "printed": "14 days and 16 hours", "notation": null} |
nlprog_det-setting-0059452 | A settlement of $18,000 is split equally among 2 parties. How much does each party receive?
```python
settlement = 18000
parties = 2
share = settlement // parties # 9000
print(share)
```
stdout — 9000
Each share is $9,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "9000", "printed": "9000", "notation": null} |
nlprog_det-setting-0059453 | A $12,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment?
The computation:
```python
grant = 12000
up_front = 3000
installments = 3
each = (grant - up_front) / installments # 3000.0
print(f"{each:.2f}")
```
The printout reads: 3000.00
$3,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0059454 | Divide 222 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?
Coded up:
```python
total = 222
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Run result — 74 each, 0 left over
The answer: 74 each, 0 left ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "74 each, 0 left over", "printed": "74 each, 0 left over", "notation": null} |
nlprog_det-setting-0059455 | <|start|><|user|>
Sofia's scores were 65, 67, 97, 62, 91 and 56. What is the average score?<|eot|>
<|assistant|>
The mean is 73.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sofia's scores were 65, 67, 97, 62, 91 and 56. What is the average score?"
},
{
"role": "assistant",
"content": "The mean is 73."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "73", "printed": "73", "notation": null} |
nlprog_det-setting-0059456 | 197 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?
The computation:
```python
total = 197
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Python prints: 28 each, 1 left over
28 each, 1 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "28 each, 1 left over", "printed": "28 each, 1 left over", "notation": null} |
nlprog_det-setting-0059457 | <|start|><|user|>
A count moves from 500 to 600. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
It changed by 20%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 500 to 600. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "It changed by 20%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0059458 | An office budget of $8,000 has expenses of $3,238, $1,523, $1,142. How much of the budget is left?
The computation:
```python
budget = 8000
expenses = [3238, 1523, 1142]
left = budget - sum(expenses) # 2097
print(left)
```
Output of the run: 2097
$2,097 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "2097", "printed": "2097", "notation": null} |
nlprog_det-setting-0059459 | After a 40% fee is taken from a $48,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?
Each share is $14,400.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "14400.00", "printed": "14400.00", "notation": null} |
nlprog_det-setting-0059460 | 2 hours of work at $410 an hour: what is the total charge?
Set it up in Python:
```python
hours = 2
rate = 410
bill = hours * rate # 820
print(f"{bill:.2f}")
```
Result: 820.00
The bill is $820.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "820.00", "printed": "820.00", "notation": null} |
nlprog_det-setting-0059461 | Prorate $1,200 of monthly rent for 21 days of a 31-day month.
Written as code:
rent = 1200
days_in_month = 31
days_occupied = 21
prorated = rent * days_occupied / days_in_month # 812.9032258064516
print(f"{prorated:.2f}")
The run gives 812.90, as expected.
The prorated rent is $812.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "812.90", "printed": "812.90", "notation": null} |
nlprog_det-setting-0059462 | <|start|><|user|>
A 352-page report must be reviewed in 16 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
pages = 352
days = 16
per_day = pages // days # 22
print(per_day)
On running, it outputs 22.
22 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 352-page report must be reviewed in 16 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": " pages = 352\n days = 16\n per_day = pages // days # 22\n print(per_day)\nOn running, it outputs 22.\n\n22 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0059463 | <|start|><|user|>
After a 25% fee is taken from a $48,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 48000
fee = award * 25 / 100 # 12000.0
remaining = award - fee # 36000.0
per_client = remaining / 2 # 18000.0
print(f"{per_client:.2f}")... | chat | [
{
"role": "user",
"content": "After a 25% fee is taken from a $48,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 48000\nfee = award * 25 / 100 # 12000.0\nremaining = award - fee # 36000.0\nper_cl... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0059465 | Walls total 801 sq ft and each can covers 350 sq ft. How many cans should be bought?
Coded up:
```python
import math
area = 801
coverage = 350
cans = math.ceil(area / coverage) # 3
print(cans)
```
Running this gives: 3
Buy 3 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0059466 | What average speed covers 246 miles in 3 hours?
Here is a short program for it.
```python
distance = 246
hours = 3
speed = distance / hours # 82.0
print(round(speed))
```
Output of the run: 82
The average speed is 82 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "82", "printed": "82", "notation": null} |
nlprog_det-setting-0059467 | <|start|><|user|>
Find the mean of these test scores: 97, 62, 75, 82, 67, 67 and 54.<|eot|>
<|assistant|>
```python
scores = [97, 62, 75, 82, 67, 67, 54]
average = sum(scores) // len(scores) # 72
print(average)
```
Run output: 72
The mean is 72.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 97, 62, 75, 82, 67, 67 and 54."
},
{
"role": "assistant",
"content": "```python\nscores = [97, 62, 75, 82, 67, 67, 54]\naverage = sum(scores) // len(scores) # 72\nprint(average)\n```\nRun output: 72\n\nThe mean is 72."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "72", "printed": "72", "notation": null} |
nlprog_det-setting-0059468 | A 8% increase is applied to $1,500 monthly rent. What is the new amount?
Here is the program.
```python
rent = 1500
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 1620.0
print(f"{new_rent:.2f}")
```
stdout: 1620.00
The new rent is $1,620.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1620.00", "printed": "1620.00", "notation": null} |
nlprog_det-setting-0059469 | Under a 33% contingency agreement, what fee is owed on a $60,000 award?
As a program:
```python
recovery = 60000
rate = 33 / 100 # 0.33
fee = recovery * rate # 19800.0
print(f"{fee:.2f}")
```
That prints: 19800.00
The fee is $19,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "19800.00", "printed": "19800.00", "notation": null} |
nlprog_det-setting-0059470 | A $60,000 grant pays $0 up front and the rest in 3 equal installments. How large is each installment?
$20,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "20000.00", "printed": "20000.00", "notation": null} |
nlprog_det-setting-0059471 | <|start|><|user|>
A client paid a $2,500 retainer. The firm has billed 5 hours at $200 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 2500
hours = 5
rate = 200
left = retainer - hours * rate # 1500
print(left)
```
This prints 1500, as expected.
The remaining balance is $1,500.<|... | chat | [
{
"role": "user",
"content": "A client paid a $2,500 retainer. The firm has billed 5 hours at $200 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 2500\nhours = 5\nrate = 200\nleft = retainer - hours * rate # 1500\nprint(left)\n```\nThis ... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0059472 | <|start|><|system|>
Tools (call with JSON):
[{"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
A training session lasted 2 hours... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\... | nlprog_det | setting | original | null | deterministic | [] | [] | 211 | {"gold": "169", "printed": "169", "notation": null} |
nlprog_det-setting-0059473 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
Equal monthly payments repay $2,400 plus 8% simple yearly interest over 36 months. How large is a payment?<|eot|>
<|assistant|>
```python
principal = 2400
annual_rate = 8 / 100 # 0.08
months = 36
interest = principal * annual_rate * months / 12 # 576.0
paym... | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "Equal monthly payments repay $2,400 plus 8% simple yearly interest over 36 months. How large is a payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2400\nannual_rate = 8 / ... | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "82.67", "printed": "82.67", "notation": null} |
nlprog_det-setting-0059474 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
At 1% a month (simple), what interest builds on $12,000 over 2 months?<|eot|>
<|assistant|>
```python
balance = 12000
monthly_rate = 1 / 100 # 0.01
months = 2
interest = balance * monthly_rate * months # 240.0
print(f"{interest:.2f}")
```
(stdou... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "At 1% a month (simple), what interest builds on $12,000 over 2 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 12000\nmonthly_rate = 1 / 100 # 0.01\nmonths = 2\... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0059475 | An invoice lists 16 desk lamps at $6 each, plus 6% sales tax. What is the invoice total?
Let's compute it with Python.
quantity = 16
unit_price = 6
subtotal = quantity * unit_price # 96
total = subtotal * (1 + 6 / 100) # 101.76
print(f"{total:.2f}")
The interpreter prints: 101.76
The total with ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "101.76", "printed": "101.76", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.