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-0046479 | A shift runs from 11:53 AM to 5:47 PM. How long is it in minutes?
We write it as a program:
```python
start = 11 * 60 + 53 # 713
end = 17 * 60 + 47 # 1067
print(end - start)
```
Python prints 354, as expected.
354 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "354", "printed": "354", "notation": null} |
nlprog_det-setting-0046480 | Sales went from 1,200 to 1,260. What is the percent change?
Let the code do the arithmetic:
```python
old = 1200
new = 1260
change = (new - old) / old * 100 # 5.0
print(round(change))
```
When run, it prints 5, as expected.
It changed by 5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0046481 | A library charges $0.25 per book per day late. What is the fine for 4 books that are 12 days late?
As Python:
```python
per_day = 0.25
days_late = 12
books = 4
fine = per_day * days_late * books # 12.0
print(f"{fine:.2f}")
```
Run output — 12.00
$12.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "12.00", "printed": "12.00", "notation": null} |
nlprog_det-setting-0046483 | <|start|><|system|>
Functions:
{"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
The building opened in 2020. How many yea... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}"
... | nlprog_det | setting | original | null | deterministic | [] | [] | 186 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0046484 | Pack A has 10 items for $10.20. Pack B has 30 items for $26.84. Which has the lower price per item?
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0046485 | 3 friends split a $120 bill plus a 20% tip evenly. How much does each pay?
We write it as a program:
```python
bill = 120
tip_rate = 20 / 100 # 0.2
people = 3
each = bill * (1 + tip_rate) / people # 48.0
print(f"{each:.2f}")
```
Console:
48.00
The share is $48.00 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "48.00", "printed": "48.00", "notation": null} |
nlprog_det-setting-0046486 | A storeroom has 379 cables. The office uses 21 a day. How many are left after 18 days?
```python
stock = 379
per_day = 21
days = 18
left = stock - per_day * days # 1
print(left)
```
(Run result: 1)
1 cables are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0046487 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
A quorum is 3/5 of the 11 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
import math
members = 11
quorum = math.ceil(members * 3 / 5) # 7
print(quorum)
Out = 7
That is 7 members.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "A quorum is 3/5 of the 11 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": " import math\n members = 11\n quorum = math.ceil(members * 3 /... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0046488 | 12 hours of work at $350 an hour: what is the total charge?
We can compute it in Python.
```python
hours = 12
rate = 350
bill = hours * rate # 4200
print(f"{bill:.2f}")
```
(Run result: 4200.00)
The bill is $4,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "4200.00", "printed": "4200.00", "notation": null} |
nlprog_det-setting-0046490 | How much sales tax is charged on a $808.16 purchase at 9%?
Program:
```python
price = 808.16
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 72.7344
print(f"{tax:.2f}")
```
This prints 72.73.
$72.73 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "72.73", "printed": "72.73", "notation": null} |
nlprog_det-setting-0046491 | How many units at $15 each (variable cost $5) cover $1,200 of fixed costs?
We can compute it in Python.
```python
import math
fixed = 1200
price = 15
variable = 5
units = math.ceil(fixed / (price - variable)) # 120
print(units)
```
# execution result: 120
Break-even is 120 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0046492 | <|start|><|user|>
30 pens cost $4 apiece. With 7% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 30
unit_price = 4
subtotal = quantity * unit_price # 120
total = subtotal * (1 + 7 / 100) # 128.4
print(f"{total:.2f}")
```
The code prints: 128.40
The total with tax is $128.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "30 pens cost $4 apiece. With 7% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 30\nunit_price = 4\nsubtotal = quantity * unit_price # 120\ntotal = subtotal * (1 + 7 / 100) # 128.4\nprint(f\"{total:.2f}\")\n```\nThe code ... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "128.40", "printed": "128.40", "notation": null} |
nlprog_det-setting-0046494 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
If a 2-year limitations period starts on December 26, 2019, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2019, 12, 26) # datetime.date(2019, 12, 26)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.da... | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "If a 2-year limitations period starts on December 26, 2019, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2019, 12, 26) # datetime.date(2019,... | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2021-12-26", "printed": "2021-12-26", "notation": null} |
nlprog_det-setting-0046495 | The landlord deducts $200 from a $2,000 deposit. What is returned to the tenant?
Coded up:
```python
deposit = 2000
deductions = [200]
refund = deposit - sum(deductions) # 1800
print(refund)
```
(Printed: 1800)
$1,800 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0046496 | How many weekdays (Monday to Friday) fall after August 5, 2026 up to and including August 30, 2026?
Here is a short program for it.
```python
from datetime import date, timedelta
start = date(2026, 8, 5)
end = date(2026, 8, 30)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).wee... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0046497 | Straight-line depreciation: cost $12,000, salvage $0, 5 years. How much per year?
```python
cost = 12000
salvage = 0
years = 5
per_year = (cost - salvage) / years # 2400.0
print(f"{per_year:.2f}")
```
# run result: 2400.00
Depreciation is $2,400.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0046498 | What does $5,000 grow to in 4 years at 3% annual compounding?
Computing it:
```python
principal = 5000
rate = 3 / 100 # 0.03
years = 4
value = principal * (1 + rate) ** years # 5627.54405
print(f"{value:.2f}")
```
The code prints 5627.54.
It is worth $5,627.54. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "5627.54", "printed": "5627.54", "notation": null} |
nlprog_det-setting-0046499 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "python_exe... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 430 | {"gold": "76", "printed": "76", "notation": null} |
nlprog_det-setting-0046500 | <|start|><|user|>
5 friends split a $96 bill plus a 20% tip evenly. How much does each pay?<|eot|>
<|assistant|>
```python
bill = 96
tip_rate = 20 / 100 # 0.2
people = 5
each = bill * (1 + tip_rate) / people # 23.04
print(f"{each:.2f}")
```
That prints 23.04.
The share is $23.04 each.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 friends split a $96 bill plus a 20% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "```python\nbill = 96\ntip_rate = 20 / 100 # 0.2\npeople = 5\neach = bill * (1 + tip_rate) / people # 23.04\nprint(f\"{each:.2f}\")\n```\nThat prints 23... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "23.04", "printed": "23.04", "notation": null} |
nlprog_det-setting-0046501 | <|start|><|user|>
A claim accrued on July 22, 2017. The limitations period is 4 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2017, 7, 22) # datetime.date(2017, 7, 22)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 7, ... | chat | [
{
"role": "user",
"content": "A claim accrued on July 22, 2017. The limitations period is 4 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2017, 7, 22) # datetime.date(2017, 7, 22)\nyears = 4\nexpires = accrued.rep... | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2021-07-22", "printed": "2021-07-22", "notation": null} |
nlprog_det-setting-0046502 | How many 1-foot square tiles cover a 17 ft by 12 ft floor (round up)?
A Python solution:
```python
import math
length = 17
width = 12
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 204
print(tiles)
```
Python prints: 204
It takes 204 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "204", "printed": "204", "notation": null} |
nlprog_det-setting-0046503 | From 2016 to 2030, how many years is that?
start_year = 2016
end_year = 2030
print(end_year - start_year)
Execution prints: 14
That is 14 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0046504 | A lawyer's fee is 25% of a $60,000 recovery. How large is the fee?
Let's compute it with Python.
```python
recovery = 60000
rate = 25 / 100 # 0.25
fee = recovery * rate # 15000.0
print(f"{fee:.2f}")
```
# result: 15000.00
The lawyer's fee comes to $15,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0046505 | Counting the first and last day, how many days are there from December 7, 2020 through December 17, 2020?
Here is a short program for it.
```python
from datetime import date
first = date(2020, 12, 7) # datetime.date(2020, 12, 7)
last = date(2020, 12, 17) # datetime.date(2020, 12, 17)
days = (last - first).days + 1 ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0046506 | Monthly rent is $1,200. A tenant moves in with 13 days left in a 30-day month. What is the prorated rent?
Computation in Python:
```python
rent = 1200
days_in_month = 30
days_occupied = 13
prorated = rent * days_occupied / days_in_month # 520.0
print(f"{prorated:.2f}")
```
Run output — 520.00
The tenant owes $520.00... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "520.00", "printed": "520.00", "notation": null} |
nlprog_det-setting-0046507 | A training session lasted 2 hours and 9 minutes. How many minutes is that?
Let's compute it with Python.
```python
hours = 2
minutes = 9
total_minutes = hours * 60 + minutes # 129
print(total_minutes)
```
The code prints 129.
That is 129 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "129", "printed": "129", "notation": null} |
nlprog_det-setting-0046508 | <|start|><|user|>
239 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 239
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
# printed: 34 each, 1 left over
34 each, 1 left ... | chat | [
{
"role": "user",
"content": "239 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 239\ngroups = 7\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "34 each, 1 left over", "printed": "34 each, 1 left over", "notation": null} |
nlprog_det-setting-0046509 | Xavier earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 55-hour week?
We can compute it in Python.
```python
rate = 18.5
hours = 55
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 416.25
pay = regular + overtime # 1156.25
print(f"{pay:.2f}")
```
The script prints ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "1156.25", "printed": "1156.25", "notation": null} |
nlprog_det-setting-0046510 | Equipment costs $24,000, has a salvage value of $3,000, and a useful life of 8 years. What is the straight-line depreciation per year?
```python
cost = 24000
salvage = 3000
years = 8
per_year = (cost - salvage) / years # 2625.0
print(f"{per_year:.2f}")
```
This prints 2625.00, as expected.
$2,625.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "2625.00", "printed": "2625.00", "notation": null} |
nlprog_det-setting-0046511 | From a $5,000 retainer, 10 hours at $275/hour have been drawn. What remains?
In Python:
```python
retainer = 5000
hours = 10
rate = 275
left = retainer - hours * rate # 2250
print(left)
```
stdout — 2250
The remaining balance is $2,250. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0046514 | What percentage of $4,000 is $2,300?
The computation:
```python
budget = 4000
spent = 2300
percent = spent / budget * 100 # 57.49999999999999
print(round(percent, 1))
```
Console output: 57.5
57.5% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "57.5", "printed": "57.5", "notation": null} |
nlprog_det-setting-0046515 | <|start|><|user|>
A penalty of $50 a day accrues, capped at $2,500. What is owed after 4 days?<|eot|>
<|assistant|>
```python
per_day = 50
days = 4
cap = 2500
fine = min(per_day * days, cap) # 200
print(fine)
```
The program prints 200, as expected.
The fine is $200.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $50 a day accrues, capped at $2,500. What is owed after 4 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 50\ndays = 4\ncap = 2500\nfine = min(per_day * days, cap) # 200\nprint(fine)\n```\nThe program prints 200, as expected.\n\nThe f... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0046516 | A 374-page report must be reviewed in 17 days. How many pages a day is that, evenly?
```python
pages = 374
days = 17
per_day = pages // days # 22
print(per_day)
```
The program outputs 22.
That is 22 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0046517 | Water costs $12 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 22,000 gallons?
Translated to Python:
```python
base = 12
rate = 4.2
used = 22
free = 3
bill = base + rate * max(0, used - free) # 91.8
print(f"{bill:.2f}")
```
The interpreter prints 91.80.
The bill is $91.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "91.80", "printed": "91.80", "notation": null} |
nlprog_det-setting-0046518 | A storeroom has 1131 envelopes. The office uses 7 a day. How many are left after 18 days?
1005 envelopes are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "1005", "printed": "1005", "notation": null} |
nlprog_det-setting-0046519 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
Counting the first and last day, how many days are there from February 24, 2025 through March 14, 2025?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2025, 2, 24) # datetime.date(2025, 2, 24)
last = date(2025, 3, 14) # datetime.date(... | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "Counting the first and last day, how many days are there from February 24, 2025 through March 14, 2025?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date... | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0046520 | <|start|><|user|>
Rent of $1,250 goes up 3%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1250
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 1287.5
print(f"{new_rent:.2f}")
```
Console output — 1287.50
It rises to $1,287.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $1,250 goes up 3%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1250\nincrease = 3 / 100 # 0.03\nnew_rent = rent * (1 + increase) # 1287.5\nprint(f\"{new_rent:.2f}\")\n```\nConsole output — 1287.50\n\nIt rises to $1,287.50... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1287.50", "printed": "1287.50", "notation": null} |
nlprog_det-setting-0046521 | How many units at $30 each (variable cost $26) cover $1,200 of fixed costs?
Script:
```python
import math
fixed = 1200
price = 30
variable = 26
units = math.ceil(fixed / (price - variable)) # 300
print(units)
```
It prints 300, as expected.
300 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0046522 | <|start|><|system|>
Tools (call with JSON):
[{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
A $150 dinner bill gets a 20... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"pro... | nlprog_det | setting | original | null | deterministic | [] | [] | 238 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0046523 | Convert 2,385 CHF to USD at 1 CHF = 1.27 USD.
Script:
```python
amount = 2385
rate = 1.27
converted = amount * rate # 3028.95
print(f"{converted:.2f}")
```
# program output: 3028.95
That is 3,028.95 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "3028.95", "printed": "3028.95", "notation": null} |
nlprog_det-setting-0046524 | A customer buys 2 headsets at $9 each, 2 desk lamps at $3 each, 2 pens at $2 each and pays with $50. How much change is due?
$22 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0046525 | Divide 20 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?
A short script:
```python
total = 20
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
The code prints: 5 each, 0 left over
The answer: 5 each, 0... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "5 each, 0 left over", "printed": "5 each, 0 left over", "notation": null} |
nlprog_det-setting-0046526 | Leon was born on July 24, 2009. How old is Leon on June 13, 2022?
Here is the program.
```python
from datetime import date
born = date(2009, 7, 24)
on = date(2022, 6, 13)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day))
print(age)
```
When run, it prints 12.
Leon is 12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0046527 | What average speed covers 50 miles in 2 hours?
Computing it:
```python
distance = 50
hours = 2
speed = distance / hours # 25.0
print(round(speed))
```
The script prints 25.
The average speed is 25 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0046528 | A 9 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
Python does the arithmetic:
```python
import math
length = 9
width = 14
tile = 2
tiles = math.ceil(length * width / (tile * tile))
print(tiles)
```
Running this gives 32.
It takes 32 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0046529 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
5 bike rides at 350 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 350
sessions = 5
total = per_session * sessions # 1750
print(total)
```
Printed result — 1750
That burns 1750 calories.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "5 bike rides at 350 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 350\nsessions = 5\ntotal = per_session * sessions # 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1750", "printed": "1750", "notation": null} |
nlprog_det-setting-0046530 | On which weekday does May 5, 2026 fall?
One way, in code:
from datetime import date
hearing = date(2026, 5, 5) # datetime.date(2026, 5, 5)
print(hearing.strftime("%A"))
Output:
Tuesday
May 5, 2026 is a Tuesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0046531 | <|start|><|user|>
Fines run at $50 per day up to a maximum of $5,000. How much after 50 days?<|eot|>
<|assistant|>
```python
per_day = 50
days = 50
cap = 5000
fine = min(per_day * days, cap) # 2500
print(fine)
```
# run result: 2500
$2,500 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $50 per day up to a maximum of $5,000. How much after 50 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 50\ndays = 50\ncap = 5000\nfine = min(per_day * days, cap) # 2500\nprint(fine)\n```\n# run result: 2500\n\n$2,500 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0046532 | A pack of 10 staplers sells for $120. What does each cost?
A Python solution:
```python
total = 120
count = 10
per_item = total // count # 12
print(per_item)
```
Execution result: 12
The unit price is $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0046533 | <|start|><|user|>
A 2% increase is applied to $1,250 monthly rent. What is the new amount?<|eot|>
<|assistant|>
```python
rent = 1250
increase = 2 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
```
stdout: 1275.00
The new rent is $1,275.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 2% increase is applied to $1,250 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "```python\nrent = 1250\nincrease = 2 / 100\nnew_rent = rent * (1 + increase)\nprint(f\"{new_rent:.2f}\")\n```\nstdout: 1275.00\n\nThe new rent is $1,275.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1275.00", "printed": "1275.00", "notation": null} |
nlprog_det-setting-0046534 | Count 60 days forward from March 23, 2028. What date is that?
Coded up:
```python
from datetime import date, timedelta
start = date(2028, 3, 23) # datetime.date(2028, 3, 23)
end = start + timedelta(days=60) # datetime.date(2028, 5, 22)
print(end.isoformat())
```
Run result: 2028-05-22
It ends on May 22, 2028. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "2028-05-22", "printed": "2028-05-22", "notation": null} |
nlprog_det-setting-0046535 | A lawyer's fee is 33% of a $90,000 recovery. How large is the fee?
```python
recovery = 90000
rate = 33 / 100 # 0.33
fee = recovery * rate # 29700.0
print(f"{fee:.2f}")
```
The script prints 29700.00.
The lawyer's fee comes to $29,700.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "29700.00", "printed": "29700.00", "notation": null} |
nlprog_det-setting-0046536 | Prorate $900 of monthly rent for 16 days of a 30-day month.
Translated to Python:
```python
rent = 900
days_in_month = 30
days_occupied = 16
prorated = rent * days_occupied / days_in_month # 480.0
print(f"{prorated:.2f}")
```
(Run result: 480.00)
The tenant owes $480.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0046537 | A clerk's office charges $25 for each filing. Kofi submits 4 filings. What is the total fee?
We write it as a program:
```python
fee = 25
filings = 4
total = fee * filings # 100
print(total)
```
Printed = 100
The total fee is $100. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0046538 | <|start|><|user|>
A water bill is $12 plus $3.50 per thousand gallons beyond the first 2 thousand. What is the bill for 10 thousand gallons?<|eot|>
<|assistant|>
```python
base = 12
rate = 3.5
used = 10
free = 2
bill = base + rate * max(0, used - free) # 40.0
print(f"{bill:.2f}")
```
On running, it outputs 40.00.
The... | chat | [
{
"role": "user",
"content": "A water bill is $12 plus $3.50 per thousand gallons beyond the first 2 thousand. What is the bill for 10 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nrate = 3.5\nused = 10\nfree = 2\nbill = base + rate * max(0, used - free) # 40.0\... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "40.00", "printed": "40.00", "notation": null} |
nlprog_det-setting-0046539 | <|start|><|user|>
Monthly: $12. Annual: $132. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 12
yearly = 132
savings = monthly * 12 - yearly
print(savings)
```
This prints: 12
$12 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $12. Annual: $132. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 12\nyearly = 132\nsavings = monthly * 12 - yearly\nprint(savings)\n```\nThis prints: 12\n\n$12 is saved."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0046540 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
How many 2-foot square tiles cover a 15 ft by 5 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 15
width = 5
tile = 2
tiles = math.ceil(length * width / (tile * tile))
print(tiles)
```
Interpreter output — 19
It takes 19 tiles.<|eot|... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "How many 2-foot square tiles cover a 15 ft by 5 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 15\nwidth = 5\ntile = 2\ntiles = math.ceil(length * ... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0046541 | A 3-day trip pays $64 a day for meals and $110 a night for lodging (2 nights). What is the total allowance?
Code:
days = 3
meal_rate = 64
lodging_rate = 110
nights = days - 1 # 2
total = days * meal_rate + nights * lodging_rate # 412
print(total)
Run output: 412
The allowance is $412. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "412", "printed": "412", "notation": null} |
nlprog_det-setting-0046542 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
If a 135-minute appointment begins at 12:10 PM, what time does it finish?<|eot|>
<|assistant|>
```python
start = 12 * 60 + 10
end = start + 135
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "If a 135-minute appointment begins at 12:10 PM, what time does it finish?"
},
{
"role": "assistant",
"content": "```python\nstart = 12 * 60 + 10\nend = start + 135\nhour, minute =... | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2:25 PM", "printed": "2:25 PM", "notation": null} |
nlprog_det-setting-0046543 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
A lawyer's fee is 30% of a $150,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 150000
rate = 30 / 100 # 0.3
fee = recovery * rate # 45000.0
print(f"{fee:.2f}")
```
The program prints 45000.00, as expected.
The lawyer's fee co... | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "A lawyer's fee is 30% of a $150,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 150000\nrate = 30 / 100 # 0.3\nfee = recovery * rate # 45000.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "45000.00", "printed": "45000.00", "notation": null} |
nlprog_det-setting-0046544 | Nikhil lends $1,000 at 4% simple interest per year for 5 years. How much interest is earned?
Python code:
```python
principal = 1000
rate = 4 / 100 # 0.04
years = 5
interest = principal * rate * years # 200.0
print(f"{interest:.2f}")
```
What it prints: 200.00
It earns $200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "200.00", "printed": "200.00", "notation": null} |
nlprog_det-setting-0046545 | Straight-line depreciation: cost $24,000, salvage $6,000, 3 years. How much per year?
Python makes this quick:
```python
cost = 24000
salvage = 6000
years = 3
per_year = (cost - salvage) / years # 6000.0
print(f"{per_year:.2f}")
```
(Printed: 6000.00)
Depreciation is $6,000.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0046546 | <|start|><|user|>
Papers were served by mail on December 20, 2023. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2023, 12, 20) # datetime.date(2023, 12, 20)
response_days = 14
mail_days = 3... | chat | [
{
"role": "user",
"content": "Papers were served by mail on December 20, 2023. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2023, 12, 20) # date... | nlprog_det | setting | original | null | deterministic | [] | [] | 174 | {"gold": "2024-01-06", "printed": "2024-01-06", "notation": null} |
nlprog_det-setting-0046547 | <|start|><|user|>
38 toner kits cost $6 apiece. With 10% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 38
unit_price = 6
subtotal = quantity * unit_price # 228
total = subtotal * (1 + 10 / 100) # 250.8
print(f"{total:.2f}")
```
Run output — 250.80
The total with tax is $250.80.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "38 toner kits cost $6 apiece. With 10% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 38\nunit_price = 6\nsubtotal = quantity * unit_price # 228\ntotal = subtotal * (1 + 10 / 100) # 250.8\nprint(f\"{total:.2f}\")\n```\nR... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "250.80", "printed": "250.80", "notation": null} |
nlprog_det-setting-0046548 | <|start|><|user|>
Buying 1 markers at $28 each, 2 markers at $24 each, 4 pens at $7 each, 5 paper reams at $5 each, someone hands over $150. What change comes back?<|eot|>
<|assistant|>
```python
items = [(1, 28), (2, 24), (4, 7), (5, 5)]
total = sum(q * p for q, p in items) # 129
paid = 150
change = paid - total # 2... | chat | [
{
"role": "user",
"content": "Buying 1 markers at $28 each, 2 markers at $24 each, 4 pens at $7 each, 5 paper reams at $5 each, someone hands over $150. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(1, 28), (2, 24), (4, 7), (5, 5)]\ntotal = sum(q * p for q, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0046549 | Find the mean of these test scores: 90, 54 and 99.
Set it up in Python:
```python
scores = [90, 54, 99]
average = sum(scores) // len(scores) # 81
print(average)
```
Output of the run — 81
The average score is 81. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "81", "printed": "81", "notation": null} |
nlprog_det-setting-0046550 | A hall has 15 rows of 13 seats, and 23 seats are empty. How many people are seated?
In code:
```python
rows = 15
per_row = 13
empty = 23
seated = rows * per_row - empty # 172
print(seated)
```
Program output — 172
172 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "172", "printed": "172", "notation": null} |
nlprog_det-setting-0046551 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
Count 30 days forward from December 9, 2024. What date is that?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2024, 12, 9) # datetime.date(2024, 12, 9)
end = start + timedelta(days=30) # datetime.date(2025,... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "Count 30 days forward from December 9, 2024. What date is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 12, 9)... | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2025-01-08", "printed": "2025-01-08", "notation": null} |
nlprog_det-setting-0046552 | How much sales tax is charged on a $413.52 purchase at 6%?
The Python version:
```python
price = 413.52
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 24.8112
print(f"{tax:.2f}")
```
(Console output: 24.81)
The tax is $24.81. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "24.81", "printed": "24.81", "notation": null} |
nlprog_det-setting-0046553 | At 40 miles per hour, how many minutes does a 100-mile trip take?
Let's compute it with Python.
```python
distance = 100
speed = 40
minutes = distance / speed * 60
print(round(minutes))
```
Out — 150
The trip takes 150 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0046554 | A 24-month warranty starts on April 4, 2019. On what date does it end?
In Python:
```python
from datetime import date
start = date(2019, 4, 4)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Run it and it prints... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2021-04-04", "printed": "2021-04-04", "notation": null} |
nlprog_det-setting-0046555 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
A clerk's office charges $90 for each filing. Rafael submits 4 filings. What is the total fee?<|eot|>
<|assistant|>
The total fee is $360.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "A clerk's office charges $90 for each filing. Rafael submits 4 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "The total fee is $360."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 54 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0046556 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
If a 75-minute meeting begins at 8:00 AM, what time does it finish?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 0
end = start + 75
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
(Result: 9:15 AM)... | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "If a 75-minute meeting begins at 8:00 AM, what time does it finish?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 0\nend = start + 75\nhour, minute = divmod(end, 60)\nprint(f\... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "9:15 AM", "printed": "9:15 AM", "notation": null} |
nlprog_det-setting-0046557 | <|start|><|user|>
The landlord deducts $60 from a $1,500 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 1500
deductions = [60]
refund = deposit - sum(deductions) # 1440
print(refund)
```
Execution result — 1440
$1,440 is returned.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $60 from a $1,500 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1500\ndeductions = [60]\nrefund = deposit - sum(deductions) # 1440\nprint(refund)\n```\nExecution result — 1440\n\n$1,440 is ... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1440", "printed": "1440", "notation": null} |
nlprog_det-setting-0046558 | Counting only Monday through Friday, how many business days are there after January 8, 2026 through January 20, 2026?
In Python:
```python
from datetime import date, timedelta
start = date(2026, 1, 8)
end = date(2026, 1, 20)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekda... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 159 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0046559 | <|start|><|user|>
A car travels 442 miles in 2 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
The average speed is 221 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 442 miles in 2 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "The average speed is 221 mph."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "221", "printed": "221", "notation": null} |
nlprog_det-setting-0046560 | A customer buys 3 lanyards at $18 each, 5 scissors at $4 each, 4 ink cartridges at $8 each, 6 file boxes at $3 each and pays with $150. How much change is due?
$26 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 61 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0046561 | With 27 rows of 10 chairs and 2 empty chairs, how many chairs are taken? 268 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "268", "printed": "268", "notation": null} |
nlprog_det-setting-0046562 | At 60 miles per hour, how many minutes does a 405-mile trip take? The trip takes 405 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "405", "printed": "405", "notation": null} |
nlprog_det-setting-0046563 | <|start|><|user|>
An invoice lists 21 flash drives at $8 each, plus 8% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 21
unit_price = 8
subtotal = quantity * unit_price # 168
total = subtotal * (1 + 8 / 100) # 181.44
print(f"{total:.2f}")
```
(Printed result: 181.44)
The invoice tota... | chat | [
{
"role": "user",
"content": "An invoice lists 21 flash drives at $8 each, plus 8% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 21\nunit_price = 8\nsubtotal = quantity * unit_price # 168\ntotal = subtotal * (1 + 8 / 100) # 181.44\nprint(f\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "181.44", "printed": "181.44", "notation": null} |
nlprog_det-setting-0046564 | Buying 3 rulers at $15 each, 6 mugs at $11 each, someone hands over $150. What change comes back?
A Python solution:
```python
items = [(3, 15), (6, 11)]
total = sum(q * p for q, p in items) # 111
paid = 150
change = paid - total # 39
print(change)
```
Run result = 39
$39 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0046565 | What day of the week is February 21, 2003?
Here is the program.
from datetime import date
hearing = date(2003, 2, 21) # datetime.date(2003, 2, 21)
print(hearing.strftime("%A"))
Python prints Friday, as expected.
It is a Friday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0046566 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
At an exchange rate of 0.74 CAD per USD, how many CAD is 4,780 USD?<|eot|>
<|assistant|>
```python
amount = 4780
rate = 0.74
converted = amount * rate # 3537.2
print(f"{converted:.2f}")
```
This prints 3537.20.
It converts to 3,537.20 CAD.<|eot|>
<|en... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "At an exchange rate of 0.74 CAD per USD, how many CAD is 4,780 USD?"
},
{
"role": "assistant",
"content": "```python\namount = 4780\nrate = 0.74\nconverted = amount * rate # 3537.2\nprin... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "3537.20", "printed": "3537.20", "notation": null} |
nlprog_det-setting-0046567 | <|start|><|user|>
A party has 21 days to respond to a motion served on August 28, 2021, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2021, 8, 28) # datetime.date(2021, 8, 28)
response_days = 21
mail_days = 3
d... | chat | [
{
"role": "user",
"content": "A party has 21 days to respond to a motion served on August 28, 2021, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2021, 8, 28) # datet... | nlprog_det | setting | original | null | deterministic | [] | [] | 178 | {"gold": "2021-09-21", "printed": "2021-09-21", "notation": null} |
nlprog_det-setting-0046568 | Notice was given on August 24, 2021. The notice period is 21 days. When does it run out?
Programmatically:
```python
from datetime import date, timedelta
start = date(2021, 8, 24) # datetime.date(2021, 8, 24)
end = start + timedelta(days=21) # datetime.date(2021, 9, 14)
print(end.isoformat())
```
Result: 2021-09-14
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2021-09-14", "printed": "2021-09-14", "notation": null} |
nlprog_det-setting-0046569 | A 6 lb package ships at $8 base plus $2.50/lb. What is the charge?
Python does the arithmetic:
```python
base = 8
per_pound = 2.5
weight = 6
cost = base + per_pound * weight # 23.0
print(f"{cost:.2f}")
```
Output: 23.00
The charge is $23.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "23.00", "printed": "23.00", "notation": null} |
nlprog_det-setting-0046570 | Convert 2,313 USD to EUR at 1 USD = 1.31 EUR.
Here is a short program for it.
```python
amount = 2313
rate = 1.31
converted = amount * rate # 3030.03
print(f"{converted:.2f}")
```
Console output: 3030.03
It converts to 3,030.03 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "3030.03", "printed": "3030.03", "notation": null} |
nlprog_det-setting-0046571 | Convert -15 °C to Fahrenheit.
Translated to Python:
celsius = -15
fahrenheit = celsius * 9 / 5 + 32 # 5.0
print(round(fahrenheit))
The program outputs: 5
It equals 5 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0046572 | An unpaid balance of $4,000 accrues 2% simple interest per month. How much interest accrues in 3 months?
Let's compute it with Python.
```python
balance = 4000
monthly_rate = 2 / 100 # 0.02
months = 3
interest = balance * monthly_rate * months # 240.0
print(f"{interest:.2f}")
```
Printed = 240.00
The interest is $2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0046573 | A count moves from 2,000 to 2,100. By what percent did it change (use a minus sign for a drop)?
Here's the code.
```python
old = 2000
new = 2100
change = (new - old) / old * 100
print(round(change))
```
Running it prints 5, as expected.
The change is 5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0046574 | Counting the first and last day, how many days are there from November 8, 2022 through December 1, 2022?
In Python:
```python
from datetime import date
first = date(2022, 11, 8) # datetime.date(2022, 11, 8)
last = date(2022, 12, 1) # datetime.date(2022, 12, 1)
days = (last - first).days + 1 # 24
print(days)
```
It ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0046575 | <|start|><|system|>
Tool definitions:
[{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
A board has 45 members. A majority is more t... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}]"
},... | nlprog_det | setting | original | null | deterministic | [] | [] | 195 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0046576 | What simple interest does $20,000 earn at 5% a year over 4 years?
It earns $4,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "4000.00", "printed": "4000.00", "notation": null} |
nlprog_det-setting-0046578 | Revenue is $17,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?
Here is a short program for it.
```python
revenue = 17500
costs = 12500
profit = revenue - costs
margin = profit / revenue * 100
print(round(margin, 1))
```
# printed result: 28.6
Profit is 28.6% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "28.6", "printed": "28.6", "notation": null} |
nlprog_det-setting-0046579 | Diego lends $8,000 at 4% simple interest per year for 3 years. How much interest is earned?
A Python solution:
```python
principal = 8000
rate = 4 / 100 # 0.04
years = 3
interest = principal * rate * years # 960.0
print(f"{interest:.2f}")
```
Printed = 960.00
It earns $960.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "960.00", "printed": "960.00", "notation": null} |
nlprog_det-setting-0046580 | A 5-day trip pays $64 a day for meals and $140 a night for lodging (4 nights). What is the total allowance?
A short script:
days = 5
meal_rate = 64
lodging_rate = 140
nights = days - 1 # 4
total = days * meal_rate + nights * lodging_rate # 880
print(total)
Execution prints: 880
The allowance... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "880", "printed": "880", "notation": null} |
nlprog_det-setting-0046581 | A $60,000 grant pays $6,000 up front and the rest in 6 equal installments. How large is each installment?
Translated to Python:
```python
grant = 60000
up_front = 6000
installments = 6
each = (grant - up_front) / installments # 9000.0
print(f"{each:.2f}")
```
Console:
9000.00
$9,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0046582 | <|start|><|user|>
Under a 25% contingency agreement, what fee is owed on a $150,000 award?<|eot|>
<|assistant|>
```python
recovery = 150000
rate = 25 / 100 # 0.25
fee = recovery * rate # 37500.0
print(f"{fee:.2f}")
```
It outputs 37500.00.
The fee is $37,500.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 25% contingency agreement, what fee is owed on a $150,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 150000\nrate = 25 / 100 # 0.25\nfee = recovery * rate # 37500.0\nprint(f\"{fee:.2f}\")\n```\nIt outputs 37500.00.\n\nThe fee is $3... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "37500.00", "printed": "37500.00", "notation": null} |
nlprog_det-setting-0046583 | <|start|><|user|>
Buying 1 mugs at $23 each, 2 mugs at $11 each, 1 binders at $11 each, 2 envelopes at $18 each, someone hands over $100. What change comes back?<|eot|>
<|assistant|>
```python
items = [(1, 23), (2, 11), (1, 11), (2, 18)]
total = sum(q * p for q, p in items) # 92
paid = 100
change = paid - total # 8
p... | chat | [
{
"role": "user",
"content": "Buying 1 mugs at $23 each, 2 mugs at $11 each, 1 binders at $11 each, 2 envelopes at $18 each, someone hands over $100. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(1, 23), (2, 11), (1, 11), (2, 18)]\ntotal = sum(q * p for q, p... | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0046584 | Buying 4 batteries at $24 each, 2 hard drives at $2 each, 4 markers at $27 each, 2 clipboards at $27 each, someone hands over $300. What change comes back?
In code:
```python
items = [(4, 24), (2, 2), (4, 27), (2, 27)]
total = sum(q * p for q, p in items) # 262
paid = 300
change = paid - total # 38
print(change)
```... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "38", "printed": "38", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.