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-0045614 | Walls total 673 sq ft and each can covers 400 sq ft. How many cans should be bought?
In Python:
```python
import math
area = 673
coverage = 400
cans = math.ceil(area / coverage) # 2
print(cans)
```
It prints 2.
2 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0045615 | <|start|><|user|>
A customer buys 6 headsets at $19 each, 6 notebooks at $16 each, 3 water bottles at $23 each, 2 scissors at $16 each and pays with $350. How much change is due?<|eot|>
<|assistant|>
The change is $39.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A customer buys 6 headsets at $19 each, 6 notebooks at $16 each, 3 water bottles at $23 each, 2 scissors at $16 each and pays with $350. How much change is due?"
},
{
"role": "assistant",
"content": "The change is $39."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0045616 | A customer buys 6 pens at $15 each, 1 sticky pads at $4 each and pays with $100. How much change is due?
Program:
```python
items = [(6, 15), (1, 4)]
total = sum(q * p for q, p in items) # 94
paid = 100
change = paid - total # 6
print(change)
```
What it prints: 6
The change is $6. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0045617 | <|start|><|user|>
A chair costs $75. It is 15% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 75
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 63.75
print(f"{sale_price:.2f}")
```
The code prints: 63.75
The sale price is $63.75.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A chair costs $75. It is 15% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 75\ndiscount = 15 / 100 # 0.15\nsale_price = price * (1 - discount) # 63.75\nprint(f\"{sale_price:.2f}\")\n```\nThe code prints: 63.75\n\nThe sale p... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "63.75", "printed": "63.75", "notation": null} |
nlprog_det-setting-0045619 | Notice was given on August 6, 2024. The notice period is 120 days. When does it run out?
from datetime import date, timedelta
start = date(2024, 8, 6) # datetime.date(2024, 8, 6)
end = start + timedelta(days=120) # datetime.date(2024, 12, 4)
print(end.isoformat())
On running, it outputs 2024-12-04.
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "2024-12-04", "printed": "2024-12-04", "notation": null} |
nlprog_det-setting-0045620 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
A 30 lb package ships at $8 base plus $2.50/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 8
per_pound = 2.5
weight = 30
cost = base + per_pound * weight # 83.0
print(f"{cost:.2f}")
```
Executing it gives 83.00, as expected.
The charge is $83.00.<|eot|>
<... | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "A 30 lb package ships at $8 base plus $2.50/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 8\nper_pound = 2.5\nweight = 30\ncost = base + per_pound * weight # 83.0\nprint(... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "83.00", "printed": "83.00", "notation": null} |
nlprog_det-setting-0045621 | Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 42 hours?
Python makes this quick:
```python
rate = 16.0
hours = 42
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 48.0
pay = regular + overtime # 688.0
print(f"{pay:.2f}")
```
Out — 688.00
The weekly pay is ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "688.00", "printed": "688.00", "notation": null} |
nlprog_det-setting-0045622 | A shift runs from 10:35 AM to 4:55 PM. How long is it in minutes?
```python
start = 10 * 60 + 35
end = 16 * 60 + 55
print(end - start)
```
It prints: 380
It is 380 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "380", "printed": "380", "notation": null} |
nlprog_det-setting-0045623 | <|start|><|user|>
Of a $8,000 budget, $2,800 has been spent. What percent is that?<|eot|>
<|assistant|>
35.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $8,000 budget, $2,800 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "35.0% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "35.0", "printed": "35.0", "notation": null} |
nlprog_det-setting-0045624 | A 34 lb package ships at $12 base plus $1.50/lb. What is the charge?
Let the code do the arithmetic:
```python
base = 12
per_pound = 1.5
weight = 34
cost = base + per_pound * weight # 63.0
print(f"{cost:.2f}")
```
(Console output: 63.00)
Shipping costs $63.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "63.00", "printed": "63.00", "notation": null} |
nlprog_det-setting-0045625 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
From a $7,500 retainer, 3 hours at $250/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 7500
hours = 3
rate = 250
left = retainer - hours * rate # 6750
print(left)
```
The script prints 6750, as expected.
The remaining balance is... | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "From a $7,500 retainer, 3 hours at $250/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 7500\nhours = 3\nrate = 250\nleft = retainer - hours * rat... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "6750", "printed": "6750", "notation": null} |
nlprog_det-setting-0045627 | What is 30 degrees Celsius in Fahrenheit?
The computation:
```python
celsius = 30
fahrenheit = celsius * 9 / 5 + 32 # 86.0
print(round(fahrenheit))
```
# execution result: 86
That is 86 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0045628 | 33 of 50 members attended. What percent attended?
66.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "66.0", "printed": "66.0", "notation": null} |
nlprog_det-setting-0045629 | <|start|><|user|>
3 swims at 250 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 250
sessions = 3
total = per_session * sessions
print(total)
```
Execution prints 750.
750 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 swims at 250 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 250\nsessions = 3\ntotal = per_session * sessions\nprint(total)\n```\nExecution prints 750.\n\n750 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0045630 | At $16.73 an hour, what does 30 hours of work pay?
In Python:
```python
rate = 16.73
hours = 30
earnings = rate * hours # 501.90000000000003
print(f"{earnings:.2f}")
```
The program prints 501.90.
That earns $501.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "501.90", "printed": "501.90", "notation": null} |
nlprog_det-setting-0045631 | <|start|><|user|>
A 150-mile drive at a steady 30 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 150
speed = 30
minutes = distance / speed * 60 # 300.0
print(round(minutes))
```
Interpreter output — 300
The trip takes 300 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 150-mile drive at a steady 30 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 150\nspeed = 30\nminutes = distance / speed * 60 # 300.0\nprint(round(minutes))\n```\nInterpreter output — 300\n\nThe trip takes 300 minutes."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0045632 | Sales went from 2,000 to 1,200. What is the percent change?
Here is a short program for it.
```python
old = 2000
new = 1200
change = (new - old) / old * 100
print(round(change))
```
On running, it outputs -40.
The change is -40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "-40", "printed": "-40", "notation": null} |
nlprog_det-setting-0045633 | <|start|><|user|>
Goods bought on September 26, 2018 carry a 6-month warranty. When does it expire?<|eot|>
<|assistant|>
It expires on March 26, 2019.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Goods bought on September 26, 2018 carry a 6-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "It expires on March 26, 2019."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "2019-03-26", "printed": "2019-03-26", "notation": null} |
nlprog_det-setting-0045634 | One can of paint covers 400 square feet. How many cans are needed for 883 square feet of wall?
Computing it:
```python
import math
area = 883
coverage = 400
cans = math.ceil(area / coverage) # 3
print(cans)
```
Output of the run: 3
Buy 3 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0045635 | Under a 30% contingency agreement, what fee is owed on a $90,000 award?
Let's compute it with Python.
```python
recovery = 90000
rate = 30 / 100 # 0.3
fee = recovery * rate # 27000.0
print(f"{fee:.2f}")
```
Run result — 27000.00
The lawyer's fee comes to $27,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "27000.00", "printed": "27000.00", "notation": null} |
nlprog_det-setting-0045636 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
How much sales tax is charged on a $427.67 purchase at 6%?<|eot|>
<|assistant|>
The tax is $25.66.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "How much sales tax is charged on a $427.67 purchase at 6%?"
},
{
"role": "assistant",
"content": "The tax is $25.66."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "25.66", "printed": "25.66", "notation": null} |
nlprog_det-setting-0045637 | At a 9% tax rate, what is the tax on $853.38?
Let the code do the arithmetic:
```python
price = 853.38
tax_rate = 9 / 100
tax = price * tax_rate
print(f"{tax:.2f}")
```
Running it prints 76.80, as expected.
$76.80 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "76.80", "printed": "76.80", "notation": null} |
nlprog_det-setting-0045638 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
Equipment costs $30,000, has a salvage value of $6,000, and a useful life of 3 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
cost = 30000
salvage = 6000
years = 3
per_year = (cost - salvage) / years ... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "Equipment costs $30,000, has a salvage value of $6,000, and a useful life of 3 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": " cos... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "8000.00", "printed": "8000.00", "notation": null} |
nlprog_det-setting-0045639 | Which is cheaper per unit: 12 for $13.48 (A) or 15 for $17.35 (B)?
Computing it:
```python
pack_a = 13.48 / 12 # 1.1233333333333333
pack_b = 17.35 / 15 # 1.1566666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Result:
A
Pack A is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0045640 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
Shipping costs $5 plus $0.75 per pound. What does a 33-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 5
per_pound = 0.75
weight = 33
cost = base + per_pound * weight # 29.75
print(f"{cost:.2f}")
```
Result: 29.75
Shipping costs $29.75.... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Shipping costs $5 plus $0.75 per pound. What does a 33-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 5\nper_pound = 0.75\nweight = 33\ncost = base + pe... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "29.75", "printed": "29.75", "notation": null} |
nlprog_det-setting-0045641 | A 90-day notice period begins on February 4, 2024. On what date does it end?
Here's the code.
```python
from datetime import date, timedelta
start = date(2024, 2, 4) # datetime.date(2024, 2, 4)
end = start + timedelta(days=90) # datetime.date(2024, 5, 4)
print(end.isoformat())
```
Result:
2024-05-04
It ends on May ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2024-05-04", "printed": "2024-05-04", "notation": null} |
nlprog_det-setting-0045642 | 171 files go into boxes of 12. How many boxes does that take?
The program:
```python
import math
files = 171
per_box = 12
boxes = math.ceil(files / per_box) # 15
print(boxes)
```
The interpreter prints 15.
It takes 15 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0045644 | Convert 1 h 22 min (the length of a film) to minutes.
Set it up in Python:
```python
hours = 1
minutes = 22
total_minutes = hours * 60 + minutes # 82
print(total_minutes)
```
(Console output: 82)
The film lasted 82 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "82", "printed": "82", "notation": null} |
nlprog_det-setting-0045645 | <|start|><|user|>
At $25.25 an hour, what does 40 hours of work pay?<|eot|>
<|assistant|>
That earns $1,010.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $25.25 an hour, what does 40 hours of work pay?"
},
{
"role": "assistant",
"content": "That earns $1,010.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "1010.00", "printed": "1010.00", "notation": null} |
nlprog_det-setting-0045646 | <|start|><|user|>
3 books come back 13 days late, at $0.25 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.25
days_late = 13
books = 3
fine = per_day * days_late * books # 9.75
print(f"{fine:.2f}")
```
Run output — 9.75
$9.75 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 books come back 13 days late, at $0.25 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.25\ndays_late = 13\nbooks = 3\nfine = per_day * days_late * books # 9.75\nprint(f\"{fine:.2f}\")\n```\nRun output — 9.75\n\n$9.75 is... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "9.75", "printed": "9.75", "notation": null} |
nlprog_det-setting-0045647 | If a 105-minute class begins at 2:20 PM, what time does it finish?
We can compute it in Python.
```python
start = 14 * 60 + 20
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
(Execution result: 4:05 PM)
The class finishes at 4:05 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "4:05 PM", "printed": "4:05 PM", "notation": null} |
nlprog_det-setting-0045648 | A 160-mile drive at a steady 60 mph takes how many minutes?
Computation in Python:
```python
distance = 160
speed = 60
minutes = distance / speed * 60 # 160.0
print(round(minutes))
```
Shell output: 160
160 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "160", "printed": "160", "notation": null} |
nlprog_det-setting-0045649 | Find the mean of these test scores: 79, 50, 50, 83, 91 and 85.
Python makes this quick:
```python
scores = [79, 50, 50, 83, 91, 85]
average = sum(scores) // len(scores) # 73
print(average)
```
Output = 73
The mean is 73. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "73", "printed": "73", "notation": null} |
nlprog_det-setting-0045650 | Sales went from 800 to 920. What is the percent change?
Written as code:
old = 800
new = 920
change = (new - old) / old * 100 # 15.0
print(round(change))
# program output: 15
It changed by 15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0045651 | A $12,000 grant pays $2,000 up front and the rest in 12 equal installments. How large is each installment?
Code:
grant = 12000
up_front = 2000
installments = 12
each = (grant - up_front) / installments # 833.3333333333334
print(f"{each:.2f}")
The code prints 833.33.
$833.33 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "833.33", "printed": "833.33", "notation": null} |
nlprog_det-setting-0045652 | <|start|><|user|>
With $20,000 in costs and $21,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
revenue = 21000
costs = 20000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 4.761904761904762
print(round(margin, 1))
The script prints ... | chat | [
{
"role": "user",
"content": "With $20,000 in costs and $21,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": " revenue = 21000\n costs = 20000\n profit = revenue - costs # 1000\n margin = profit / revenue * 100 # 4.76190... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "4.8", "printed": "4.8", "notation": null} |
nlprog_det-setting-0045653 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
Jae was born on April 14, 1985. How old is Jae on December 13, 2029?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1985, 4, 14)
on = date(2029, 12, 13)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.d... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "Jae was born on April 14, 1985. How old is Jae on December 13, 2029?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1985, 4, 14)\non = d... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0045654 | <|start|><|user|>
An unpaid balance of $12,000 accrues 2% simple interest per month. How much interest accrues in 6 months?<|eot|>
<|assistant|>
```python
balance = 12000
monthly_rate = 2 / 100 # 0.02
months = 6
interest = balance * monthly_rate * months # 1440.0
print(f"{interest:.2f}")
```
Program output: 1440.00
... | chat | [
{
"role": "user",
"content": "An unpaid balance of $12,000 accrues 2% simple interest per month. How much interest accrues in 6 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 12000\nmonthly_rate = 2 / 100 # 0.02\nmonths = 6\ninterest = balance * monthly_rate * months # 144... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "1440.00", "printed": "1440.00", "notation": null} |
nlprog_det-setting-0045655 | What day of the week is March 16, 1990?
Set it up in Python:
```python
from datetime import date
hearing = date(1990, 3, 16) # datetime.date(1990, 3, 16)
print(hearing.strftime("%A"))
```
Interpreter output: Friday
It is a Friday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0045656 | Monthly rent is $1,200. A tenant moves in with 9 days left in a 30-day month. What is the prorated rent?
The prorated rent is $360.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "360.00", "printed": "360.00", "notation": null} |
nlprog_det-setting-0045657 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after March 20, 2028 through April 5, 2028?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2028, 3, 20)
end = date(2028, 4, 5)
count = 0
for k in range(1, (end - start).days + 1):
if (start + ti... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after March 20, 2028 through April 5, 2028?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2028, 3, 20)\nend = date(2028, 4, 5)\ncount = 0\nfo... | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0045658 | At an exchange rate of 1.31 USD per GBP, how many USD is 8,716 GBP?
```python
amount = 8716
rate = 1.31
converted = amount * rate # 11417.960000000001
print(f"{converted:.2f}")
```
Printed = 11417.96
It converts to 11,417.96 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "11417.96", "printed": "11417.96", "notation": null} |
nlprog_det-setting-0045659 | Of a $8,000 budget, $2,600 has been spent. What percent is that?
Written as code:
```python
budget = 8000
spent = 2600
percent = spent / budget * 100 # 32.5
print(round(percent, 1))
```
Console output: 32.5
32.5% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "32.5", "printed": "32.5", "notation": null} |
nlprog_det-setting-0045660 | <|start|><|user|>
After an initial $6,000, the remainder of a $48,000 grant is paid in 3 equal parts. What is each part?<|eot|>
<|assistant|>
Each installment is $14,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "After an initial $6,000, the remainder of a $48,000 grant is paid in 3 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "Each installment is $14,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "14000.00", "printed": "14000.00", "notation": null} |
nlprog_det-setting-0045661 | Buying 6 scissors at $15 each, 1 paper reams at $19 each, someone hands over $150. What change comes back?
$41 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0045662 | Equipment costs $30,000, has a salvage value of $3,000, and a useful life of 5 years. What is the straight-line depreciation per year?
Set it up in Python:
```python
cost = 30000
salvage = 3000
years = 5
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
```
Program output: 5400.00
Depreciation is $5,400.00... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "5400.00", "printed": "5400.00", "notation": null} |
nlprog_det-setting-0045663 | <|start|><|user|>
A party has 14 days to respond to a motion served on November 4, 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, 11, 4)
response_days = 14
mail_days = 3
due = served + timedelta(days=... | chat | [
{
"role": "user",
"content": "A party has 14 days to respond to a motion served on November 4, 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, 11, 4)\nrespon... | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "2021-11-21", "printed": "2021-11-21", "notation": null} |
nlprog_det-setting-0045664 | Straight-line depreciation: cost $24,000, salvage $2,000, 6 years. How much per year?
As a program:
```python
cost = 24000
salvage = 2000
years = 6
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
```
Running it prints 3666.67, as expected.
Depreciation is $3,666.67 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "3666.67", "printed": "3666.67", "notation": null} |
nlprog_det-setting-0045665 | <|start|><|user|>
A 4-day trip pays $64 a day for meals and $110 a night for lodging (3 nights). What is the total allowance?<|eot|>
<|assistant|>
```python
days = 4
meal_rate = 64
lodging_rate = 110
nights = days - 1 # 3
total = days * meal_rate + nights * lodging_rate # 586
print(total)
```
Output of the run: 586
... | chat | [
{
"role": "user",
"content": "A 4-day trip pays $64 a day for meals and $110 a night for lodging (3 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "```python\ndays = 4\nmeal_rate = 64\nlodging_rate = 110\nnights = days - 1 # 3\ntotal = days * meal_rate + nights * lo... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "586", "printed": "586", "notation": null} |
nlprog_det-setting-0045667 | How many days are there from April 8, 2026 to April 14, 2027?
Here is a short program for it.
```python
from datetime import date
first = date(2026, 4, 8) # datetime.date(2026, 4, 8)
second = date(2027, 4, 14) # datetime.date(2027, 4, 14)
print((second - first).days)
```
# stdout: 371
It is 371 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "371", "printed": "371", "notation": null} |
nlprog_det-setting-0045668 | 12 of 20 members attended. What percent attended?
The Python version:
```python
present = 12
total = 20
percent = present / total * 100 # 60.0
print(round(percent, 1))
```
Shell output: 60.0
60.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "60.0", "printed": "60.0", "notation": null} |
nlprog_det-setting-0045669 | Prorate $900 of monthly rent for 20 days of a 31-day month.
In Python:
```python
rent = 900
days_in_month = 31
days_occupied = 20
prorated = rent * days_occupied / days_in_month # 580.6451612903226
print(f"{prorated:.2f}")
```
Program output: 580.65
The tenant owes $580.65. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "580.65", "printed": "580.65", "notation": null} |
nlprog_det-setting-0045670 | How many days are there from August 16, 2023 to September 13, 2024?
Computation in Python:
```python
from datetime import date
first = date(2023, 8, 16) # datetime.date(2023, 8, 16)
second = date(2024, 9, 13) # datetime.date(2024, 9, 13)
print((second - first).days)
```
(Result: 394)
It is 394 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "394", "printed": "394", "notation": null} |
nlprog_det-setting-0045671 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after January 26, 2021 through February 12, 2021?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2021, 1, 26)
end = date(2021, 2, 12)
count = 0
for k in range(1, (end - start).days + 1):
if (sta... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after January 26, 2021 through February 12, 2021?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2021, 1, 26)\nend = date(2021, 2, 12)\ncount ... | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0045672 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "param... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"fetch_filing\", \"descript... | nlprog_det | setting | original | null | deterministic | [] | [] | 360 | {"gold": "194", "printed": "194", "notation": null} |
nlprog_det-setting-0045673 | A 10-day notice period begins on March 8, 2023. On what date does it end?
Code:
from datetime import date, timedelta
start = date(2023, 3, 8)
end = start + timedelta(days=10)
print(end.isoformat())
Out:
2023-03-18
That date is March 18, 2023. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "2023-03-18", "printed": "2023-03-18", "notation": null} |
nlprog_det-setting-0045674 | At 65 miles per hour, how many minutes does a 195-mile trip take?
Programmatically:
```python
distance = 195
speed = 65
minutes = distance / speed * 60 # 180.0
print(round(minutes))
```
On running, it outputs: 180
The trip takes 180 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0045675 | What is -20 degrees Celsius in Fahrenheit?
A Python solution:
```python
celsius = -20
fahrenheit = celsius * 9 / 5 + 32 # -4.0
print(round(fahrenheit))
```
Interpreter output — -4
That is -4 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "-4", "printed": "-4", "notation": null} |
nlprog_det-setting-0045676 | A 10-day notice period begins on February 20, 2020. On what date does it end?
Programmatically:
```python
from datetime import date, timedelta
start = date(2020, 2, 20) # datetime.date(2020, 2, 20)
end = start + timedelta(days=10) # datetime.date(2020, 3, 1)
print(end.isoformat())
```
Console output: 2020-03-01
Tha... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "2020-03-01", "printed": "2020-03-01", "notation": null} |
nlprog_det-setting-0045678 | How many units at $30 each (variable cost $24) cover $4,000 of fixed costs?
Here is a short program for it.
```python
import math
fixed = 4000
price = 30
variable = 24
units = math.ceil(fixed / (price - variable)) # 667
print(units)
```
The run gives 667, as expected.
Break-even is 667 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "667", "printed": "667", "notation": null} |
nlprog_det-setting-0045679 | Prorate $900 of monthly rent for 10 days of a 31-day month. The tenant owes $290.32. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "290.32", "printed": "290.32", "notation": null} |
nlprog_det-setting-0045680 | <|start|><|user|>
Convert -10 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = -10
fahrenheit = celsius * 9 / 5 + 32 # 14.0
print(round(fahrenheit))
```
Printed: 14
That is 14 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert -10 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = -10\nfahrenheit = celsius * 9 / 5 + 32 # 14.0\nprint(round(fahrenheit))\n```\nPrinted: 14\n\nThat is 14 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0045681 | Count 14 days forward from February 4, 2018. What date is that?
Programmatically:
```python
from datetime import date, timedelta
start = date(2018, 2, 4) # datetime.date(2018, 2, 4)
end = start + timedelta(days=14) # datetime.date(2018, 2, 18)
print(end.isoformat())
```
The run gives 2018-02-18.
It ends on February... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2018-02-18", "printed": "2018-02-18", "notation": null} |
nlprog_det-setting-0045682 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "convert_units", "description": "Convert a quantity betwee... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"con... | nlprog_det | setting | original | null | deterministic | [] | [] | 398 | {"gold": "480", "printed": "480", "notation": null} |
nlprog_det-setting-0045683 | What is -20 degrees Celsius in Fahrenheit?
In Python:
```python
celsius = -20
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
```
Execution prints: -4
That is -4 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "-4", "printed": "-4", "notation": null} |
nlprog_det-setting-0045684 | Water costs $15 a month plus $3.50 for each 1,000 gallons over 2,000. What is owed for 5,000 gallons?
The computation:
```python
base = 15
rate = 3.5
used = 5
free = 2
bill = base + rate * max(0, used - free) # 25.5
print(f"{bill:.2f}")
```
The interpreter prints 25.50.
$25.50 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "25.50", "printed": "25.50", "notation": null} |
nlprog_det-setting-0045685 | Walls total 1303 sq ft and each can covers 250 sq ft. How many cans should be bought?
Coded up:
import math
area = 1303
coverage = 250
cans = math.ceil(area / coverage) # 6
print(cans)
stdout:
6
Buy 6 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0045686 | Attendance was 66 out of 100. Express it as a percent.
Here's the code.
```python
present = 66
total = 100
percent = present / total * 100 # 66.0
print(round(percent, 1))
```
Run output — 66.0
66.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "66.0", "printed": "66.0", "notation": null} |
nlprog_det-setting-0045687 | <|start|><|user|>
Convert 63.4 km to meters.<|eot|>
<|assistant|>
That is 63,400 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 63.4 km to meters."
},
{
"role": "assistant",
"content": "That is 63,400 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "63400", "printed": "63400", "notation": null} |
nlprog_det-setting-0045688 | <|start|><|user|>
What commission does Sara make on $108,138 in sales at 8%?<|eot|>
<|assistant|>
sales = 108138
rate = 8 / 100 # 0.08
commission = sales * rate # 8651.04
print(f"{commission:.2f}")
(Out: 8651.04)
Sara earns $8,651.04.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Sara make on $108,138 in sales at 8%?"
},
{
"role": "assistant",
"content": " sales = 108138\n rate = 8 / 100 # 0.08\n commission = sales * rate # 8651.04\n print(f\"{commission:.2f}\")\n(Out: 8651.04)\n\nSara earns $8,651.04."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "8651.04", "printed": "8651.04", "notation": null} |
nlprog_det-setting-0045689 | <|start|><|system|>
Tools you may use:
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "code_runner", "description": "Run Python code in a... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}, {... | nlprog_det | setting | original | null | deterministic | [] | [] | 331 | {"gold": "2020-03-20", "printed": "2020-03-20", "notation": null} |
nlprog_det-setting-0045690 | Paula drove 382 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?
A short script:
miles = 382
rate = 0.65
reimbursement = miles * rate # 248.3
print(f"{reimbursement:.2f}")
When run, it prints 248.30, as expected.
Paula is owed $248.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "248.30", "printed": "248.30", "notation": null} |
nlprog_det-setting-0045691 | Someone born April 6, 1970 turns how old by March 11, 2024? Give the age in whole years.
The program:
```python
from datetime import date
born = date(1970, 4, 6) # datetime.date(1970, 4, 6)
on = date(2024, 3, 11) # datetime.date(2024, 3, 11)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0045692 | Find the mean of these test scores: 83, 72 and 88.
Set it up in Python:
scores = [83, 72, 88]
average = sum(scores) // len(scores) # 81
print(average)
(Out: 81)
The average score is 81. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "81", "printed": "81", "notation": null} |
nlprog_det-setting-0045693 | <|start|><|user|>
Papers were served by mail on July 18, 2026. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2026, 7, 18) # datetime.date(2026, 7, 18)
response_days = 28
mail_days = 3
due =... | chat | [
{
"role": "user",
"content": "Papers were served by mail on July 18, 2026. A response is due 28 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(2026, 7, 18) # datetime.... | nlprog_det | setting | original | null | deterministic | [] | [] | 181 | {"gold": "2026-08-18", "printed": "2026-08-18", "notation": null} |
nlprog_det-setting-0045694 | Someone born June 19, 2006 turns how old by November 5, 2029? Give the age in whole years.
Program:
```python
from datetime import date
born = date(2006, 6, 19) # datetime.date(2006, 6, 19)
on = date(2029, 11, 5) # datetime.date(2029, 11, 5)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0045695 | How many meters are in 42.2 kilometers?
```python
km = 42.2
meters = km * 1000 # 42200.0
print(round(meters))
```
When run, it prints 42200, as expected.
That is 42,200 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "42200", "printed": "42200", "notation": null} |
nlprog_det-setting-0045696 | Printing costs 15 cents a page. What does it cost to print 83 copies of a 5-page handout?
A short script:
pages = 5
copies = 83
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 62.25
print(f"{cost:.2f}")
stdout: 62.25
The job costs $62.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "62.25", "printed": "62.25", "notation": null} |
nlprog_det-setting-0045697 | Convert 2 h 23 min (the length of a training session) to minutes.
Code:
```python
hours = 2
minutes = 23
total_minutes = hours * 60 + minutes # 143
print(total_minutes)
```
Run result — 143
That is 143 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "143", "printed": "143", "notation": null} |
nlprog_det-setting-0045698 | Pack A has 10 items for $10.64. Pack B has 15 items for $27.33. Which has the lower price per item?
Translated to Python:
```python
pack_a = 10.64 / 10 # 1.064
pack_b = 27.33 / 15 # 1.8219999999999998
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Printed = A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0045699 | A party has 30 days to respond to a motion served on March 4, 2026, with 3 days added because service was by mail. When is the response due?
Code:
```python
from datetime import date, timedelta
served = date(2026, 3, 4) # datetime.date(2026, 3, 4)
response_days = 30
mail_days = 3
due = served + timedelta(days=respons... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 179 | {"gold": "2026-04-06", "printed": "2026-04-06", "notation": null} |
nlprog_det-setting-0045700 | <|start|><|user|>
A storeroom has 1203 ink cartridges. The office uses 28 a day. How many are left after 9 days?<|eot|>
<|assistant|>
951 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 1203 ink cartridges. The office uses 28 a day. How many are left after 9 days?"
},
{
"role": "assistant",
"content": "951 remain."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "951", "printed": "951", "notation": null} |
nlprog_det-setting-0045701 | Counting only Monday through Friday, how many business days are there after January 28, 2025 through February 7, 2025?
In Python:
```python
from datetime import date, timedelta
start = date(2025, 1, 28)
end = date(2025, 2, 7)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekd... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0045702 | A water bill is $20 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 25 thousand gallons?
The bill is $116.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "116.60", "printed": "116.60", "notation": null} |
nlprog_det-setting-0045703 | <|start|><|user|>
Liesel buys 4 boxes of 12 markers each and gives away 9 markers. How many markers are left?<|eot|>
<|assistant|>
```python
boxes = 4
per_box = 12
given_away = 9
left = boxes * per_box - given_away # 39
print(left)
```
Execution prints 39.
That leaves 39 markers.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Liesel buys 4 boxes of 12 markers each and gives away 9 markers. How many markers are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 4\nper_box = 12\ngiven_away = 9\nleft = boxes * per_box - given_away # 39\nprint(left)\n```\nExecution prints 39.\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0045704 | <|start|><|user|>
What is the total rent on a 24-month lease at $1,640 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 1640
months = 24
total = monthly_rent * months # 39360
print(total)
```
# console output: 39360
The rent over the term is $39,360.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 24-month lease at $1,640 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 1640\nmonths = 24\ntotal = monthly_rent * months # 39360\nprint(total)\n```\n# console output: 39360\n\nThe rent over the term is $39,360.... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "39360", "printed": "39360", "notation": null} |
nlprog_det-setting-0045706 | <|start|><|user|>
A lease runs for 6 months at $3,250 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
The rent over the term is $19,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 6 months at $3,250 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "The rent over the term is $19,500."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "19500", "printed": "19500", "notation": null} |
nlprog_det-setting-0045707 | Water costs $18 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 16,000 gallons?
Written as code:
```python
base = 18
rate = 4.75
used = 16
free = 3
bill = base + rate * max(0, used - free) # 79.75
print(f"{bill:.2f}")
```
(Console output: 79.75)
The bill is $79.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "79.75", "printed": "79.75", "notation": null} |
nlprog_det-setting-0045708 | <|start|><|user|>
At $22.42 an hour, what does 30 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 22.42
hours = 30
earnings = rate * hours
print(f"{earnings:.2f}")
```
That prints: 672.60
The pay is $672.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $22.42 an hour, what does 30 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 22.42\nhours = 30\nearnings = rate * hours\nprint(f\"{earnings:.2f}\")\n```\nThat prints: 672.60\n\nThe pay is $672.60."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "672.60", "printed": "672.60", "notation": null} |
nlprog_det-setting-0045709 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
The landlord deducts $75, $60 and $200 from a $800 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
$465 is returned.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "The landlord deducts $75, $60 and $200 from a $800 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "$465 is returned."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "465", "printed": "465", "notation": null} |
nlprog_det-setting-0045710 | <|start|><|user|>
Viktor's scores were 71, 82, 84, 53 and 65. What is the average score?<|eot|>
<|assistant|>
scores = [71, 82, 84, 53, 65]
average = sum(scores) // len(scores) # 71
print(average)
Output:
71
The mean is 71.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Viktor's scores were 71, 82, 84, 53 and 65. What is the average score?"
},
{
"role": "assistant",
"content": " scores = [71, 82, 84, 53, 65]\n average = sum(scores) // len(scores) # 71\n print(average)\nOutput:\n71\n\nThe mean is 71."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0045711 | A pack of 5 mugs sells for $260. What does each cost?
```python
total = 260
count = 5
per_item = total // count # 52
print(per_item)
```
# execution result: 52
Each one costs $52. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0045712 | <|start|><|user|>
At $25.85 an hour, what does 16 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 25.85
hours = 16
earnings = rate * hours # 413.6
print(f"{earnings:.2f}")
```
Run it and it prints: 413.60
The pay is $413.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $25.85 an hour, what does 16 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 25.85\nhours = 16\nearnings = rate * hours # 413.6\nprint(f\"{earnings:.2f}\")\n```\nRun it and it prints: 413.60\n\nThe pay is $413.60."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "413.60", "printed": "413.60", "notation": null} |
nlprog_det-setting-0045713 | <|start|><|user|>
A quorum is 1/3 of the 35 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
```python
import math
members = 35
quorum = math.ceil(members * 1 / 3) # 12
print(quorum)
```
This prints 12, as expected.
12 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A quorum is 1/3 of the 35 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 35\nquorum = math.ceil(members * 1 / 3) # 12\nprint(quorum)\n```\nThis prints 12, as expected.\n\n12 members are ... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0045714 | Equal monthly payments repay $9,000 plus 8% simple yearly interest over 12 months. How large is a payment?
```python
principal = 9000
annual_rate = 8 / 100 # 0.08
months = 12
interest = principal * annual_rate * months / 12 # 720.0
payment = (principal + interest) / months # 810.0
print(f"{payment:.2f}")
```
It out... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "810.00", "printed": "810.00", "notation": null} |
nlprog_det-setting-0045715 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Under a 35% contingency agreement, what fee is owed on a $25,000 award?<|eot|>
<|assistant|>
```python
recovery = 25000
rate = 35 / 100 # 0.35
fee = recovery * rate # 8750.0
print(f"{fee:.2f}")
```
stdout:
8750.00
The fee is $8,750.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Under a 35% contingency agreement, what fee is owed on a $25,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 25000\nrate = 35 / 100 # 0.35\nfee = recovery * rate #... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "8750.00", "printed": "8750.00", "notation": null} |
nlprog_det-setting-0045716 | <|start|><|user|>
To read 1060 pages in 20 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 1060
days = 20
per_day = pages // days # 53
print(per_day)
```
# out: 53
That is 53 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 1060 pages in 20 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 1060\ndays = 20\nper_day = pages // days # 53\nprint(per_day)\n```\n# out: 53\n\nThat is 53 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0045717 | <|start|><|system|>
Functions:
[{"name": "calc", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "get_weather", "description": "Get the weather for a cit... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"calc\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}, {\"name\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 282 | {"gold": "572.49", "printed": "572.49", "notation": null} |
nlprog_det-setting-0045718 | A 2% increase is applied to $900 monthly rent. What is the new amount?
Computing it:
```python
rent = 900
increase = 2 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
```
# execution result: 918.00
The new rent is $918.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "918.00", "printed": "918.00", "notation": null} |
nlprog_det-setting-0045719 | <|start|><|user|>
Ivan has 3 documents to file, and each filing costs $125. How much are the filing fees in total?<|eot|>
<|assistant|>
```python
fee = 125
filings = 3
total = fee * filings
print(total)
```
# stdout: 375
The total fee is $375.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Ivan has 3 documents to file, and each filing costs $125. How much are the filing fees in total?"
},
{
"role": "assistant",
"content": "```python\nfee = 125\nfilings = 3\ntotal = fee * filings\nprint(total)\n```\n# stdout: 375\n\nThe total fee is $375."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "375", "printed": "375", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.