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-0044986 | <|start|><|user|>
A 36-month warranty starts on October 16, 2019. On what date does it end?<|eot|>
<|assistant|>
from datetime import date
start = date(2019, 10, 16)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
p... | chat | [
{
"role": "user",
"content": "A 36-month warranty starts on October 16, 2019. On what date does it end?"
},
{
"role": "assistant",
"content": " from datetime import date\n start = date(2019, 10, 16)\n months = 36\n years, month_index = divmod(start.month - 1 + months, 12)\n end = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "2022-10-16", "printed": "2022-10-16", "notation": null} |
nlprog_det-setting-0044987 | 12 calendars cost $3 apiece. With 8% tax added, what is the total?
We write it as a program:
```python
quantity = 12
unit_price = 3
subtotal = quantity * unit_price
total = subtotal * (1 + 8 / 100)
print(f"{total:.2f}")
```
Result: 38.88
The total with tax is $38.88. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "38.88", "printed": "38.88", "notation": null} |
nlprog_det-setting-0044988 | A $48,000 grant pays $6,000 up front and the rest in 3 equal installments. How large is each installment?
The Python version:
```python
grant = 48000
up_front = 6000
installments = 3
each = (grant - up_front) / installments # 14000.0
print(f"{each:.2f}")
```
Result = 14000.00
Each installment is $14,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "14000.00", "printed": "14000.00", "notation": null} |
nlprog_det-setting-0044989 | <|start|><|user|>
One can of paint covers 400 square feet. How many cans are needed for 403 square feet of wall?<|eot|>
<|assistant|>
2 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 400 square feet. How many cans are needed for 403 square feet of wall?"
},
{
"role": "assistant",
"content": "2 cans are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0044990 | A trial runs from December 11, 2024 to December 21, 2024, counting both days. How many calendar days is that?
Python code:
```python
from datetime import date
first = date(2024, 12, 11) # datetime.date(2024, 12, 11)
last = date(2024, 12, 21) # datetime.date(2024, 12, 21)
days = (last - first).days + 1 # 11
print(da... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0044991 | A lawyer's fee is 33% of a $90,000 recovery. How large is the fee?
Python, step by step:
```python
recovery = 90000
rate = 33 / 100 # 0.33
fee = recovery * rate # 29700.0
print(f"{fee:.2f}")
```
Result: 29700.00
The fee is $29,700.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "29700.00", "printed": "29700.00", "notation": null} |
nlprog_det-setting-0044992 | Pack A has 6 items for $12.75. Pack B has 30 items for $17.45. Which has the lower price per item?
Python makes this quick:
```python
pack_a = 12.75 / 6
pack_b = 17.45 / 30
cheaper = "A" if pack_a < pack_b else "B"
print(cheaper)
```
Output: B
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0044993 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
How much sales tax is charged on a $234.78 purchase at 9%?<|eot|>
<|assistant|>
```python
price = 234.78
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 21.1302
print(f"{tax:.2f}")
```
Result: 21.13
The tax is $21.13.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "How much sales tax is charged on a $234.78 purchase at 9%?"
},
{
"role": "assistant",
"content": "```python\nprice = 234.78\ntax_rate = 9 / 100 # 0.09\ntax = price * tax_rate... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "21.13", "printed": "21.13", "notation": null} |
nlprog_det-setting-0044994 | <|start|><|user|>
How many minutes pass from 7:58 AM to 2:24 PM on the same day?<|eot|>
<|assistant|>
```python
start = 7 * 60 + 58 # 478
end = 14 * 60 + 24 # 864
print(end - start)
```
Printed:
386
It is 386 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 7:58 AM to 2:24 PM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 7 * 60 + 58 # 478\nend = 14 * 60 + 24 # 864\nprint(end - start)\n```\nPrinted:\n386\n\nIt is 386 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "386", "printed": "386", "notation": null} |
nlprog_det-setting-0044995 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
Each of Wen's walks burns 350 calories. How many calories over 4 walks?<|eot|>
<|assistant|>
```python
per_session = 350
sessions = 4
total = per_session * sessions # 1400
print(total)
```
(Output: 1400)
That burns 1400 calories.<|eot|>
<|end|... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "Each of Wen's walks burns 350 calories. How many calories over 4 walks?"
},
{
"role": "assistant",
"content": "```python\nper_session = 350\nsessions = 4\ntotal = per_session * se... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1400", "printed": "1400", "notation": null} |
nlprog_det-setting-0044996 | Fines run at $250 per day up to a maximum of $1,000. How much after 8 days?
Computation in Python:
```python
per_day = 250
days = 8
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
What it prints: 1000
$1,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0044997 | Amir lends $8,000 at 3% simple interest per year for 5 years. How much interest is earned?
Set it up in Python:
```python
principal = 8000
rate = 3 / 100 # 0.03
years = 5
interest = principal * rate * years # 1200.0
print(f"{interest:.2f}")
```
# result: 1200.00
The interest is $1,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0044999 | With 30% off, what does a $40 printer cost? It costs $28.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "28.00", "printed": "28.00", "notation": null} |
nlprog_det-setting-0045000 | A hearing is set for February 18, 2029. What day of the week is that?
Here is a short program for it.
```python
from datetime import date
hearing = date(2029, 2, 18) # datetime.date(2029, 2, 18)
print(hearing.strftime("%A"))
```
The program prints Sunday, as expected.
February 18, 2029 is a Sunday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0045001 | A 12 lb package ships at $8 base plus $0.75/lb. What is the charge?
Here's the code.
```python
base = 8
per_pound = 0.75
weight = 12
cost = base + per_pound * weight
print(f"{cost:.2f}")
```
It outputs: 17.00
Shipping costs $17.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "17.00", "printed": "17.00", "notation": null} |
nlprog_det-setting-0045002 | Rent of $1,250 goes up 4%. What is the new rent?
Programmatically:
```python
rent = 1250
increase = 4 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
```
Console output — 1300.00
The new rent is $1,300.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1300.00", "printed": "1300.00", "notation": null} |
nlprog_det-setting-0045003 | <|start|><|user|>
An office budget of $12,000 has expenses of $643, $3,841, $905. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 12000
expenses = [643, 3841, 905]
left = budget - sum(expenses) # 6611
print(left)
```
The interpreter prints: 6611
$6,611 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $12,000 has expenses of $643, $3,841, $905. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 12000\nexpenses = [643, 3841, 905]\nleft = budget - sum(expenses) # 6611\nprint(left)\n```\nThe interpreter pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "6611", "printed": "6611", "notation": null} |
nlprog_det-setting-0045004 | Of a $5,000 budget, $3,600 has been spent. What percent is that?
Computation in Python:
```python
budget = 5000
spent = 3600
percent = spent / budget * 100
print(round(percent, 1))
```
(Result: 72.0)
72.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "72.0", "printed": "72.0", "notation": null} |
nlprog_det-setting-0045005 | The rules require 2/3 of 36 members (round up) to be present. How many is that?
Written as code:
```python
import math
members = 36
quorum = math.ceil(members * 2 / 3) # 24
print(quorum)
```
(Output: 24)
That is 24 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0045006 | Equipment costs $18,000, has a salvage value of $0, and a useful life of 3 years. What is the straight-line depreciation per year?
$6,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0045007 | <|start|><|user|>
A deposition lasted 3 hours and 28 minutes. How many minutes is that?<|eot|>
<|assistant|>
hours = 3
minutes = 28
total_minutes = hours * 60 + minutes # 208
print(total_minutes)
stdout: 208
That is 208 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A deposition lasted 3 hours and 28 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": " hours = 3\n minutes = 28\n total_minutes = hours * 60 + minutes # 208\n print(total_minutes)\nstdout: 208\n\nThat is 208 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "208", "printed": "208", "notation": null} |
nlprog_det-setting-0045008 | 3 walks at 250 calories each burn how many calories in total?
Computation in Python:
```python
per_session = 250
sessions = 3
total = per_session * sessions # 750
print(total)
```
What it prints — 750
750 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0045009 | Prorate $900 of monthly rent for 6 days of a 30-day month.
Translated to Python:
```python
rent = 900
days_in_month = 30
days_occupied = 6
prorated = rent * days_occupied / days_in_month # 180.0
print(f"{prorated:.2f}")
```
(Out: 180.00)
The tenant owes $180.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "180.00", "printed": "180.00", "notation": null} |
nlprog_det-setting-0045010 | <|start|><|user|>
At $0.67 per mile, what is the reimbursement for 95 miles?<|eot|>
<|assistant|>
miles = 95
rate = 0.67
reimbursement = miles * rate # 63.650000000000006
print(f"{reimbursement:.2f}")
# out: 63.65
Tariq is owed $63.65.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.67 per mile, what is the reimbursement for 95 miles?"
},
{
"role": "assistant",
"content": " miles = 95\n rate = 0.67\n reimbursement = miles * rate # 63.650000000000006\n print(f\"{reimbursement:.2f}\")\n# out: 63.65\n\nTariq is owed $63.65."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "63.65", "printed": "63.65", "notation": null} |
nlprog_det-setting-0045011 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "python_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"desc... | nlprog_det | setting | original | null | deterministic | [] | [] | 230 | {"gold": "33.65", "printed": "33.65", "notation": null} |
nlprog_det-setting-0045013 | On which weekday does March 19, 2004 fall?
Here is the program.
```python
from datetime import date
hearing = date(2004, 3, 19) # datetime.date(2004, 3, 19)
print(hearing.strftime("%A"))
```
Printed result — Friday
It is a Friday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0045015 | <|start|><|user|>
An invoice lists 7 scissors at $6 each, plus 8% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 7
unit_price = 6
subtotal = quantity * unit_price # 42
total = subtotal * (1 + 8 / 100) # 45.36
print(f"{total:.2f}")
```
Run it and it prints: 45.36
The total with tax is... | chat | [
{
"role": "user",
"content": "An invoice lists 7 scissors at $6 each, plus 8% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 7\nunit_price = 6\nsubtotal = quantity * unit_price # 42\ntotal = subtotal * (1 + 8 / 100) # 45.36\nprint(f\"{total:.... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "45.36", "printed": "45.36", "notation": null} |
nlprog_det-setting-0045016 | A desk lamp costs $250. It is 40% off. What is the sale price? The sale price is $150.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "150.00", "printed": "150.00", "notation": null} |
nlprog_det-setting-0045017 | Rosa earns a 3% commission on $18,719 of sales. What is the commission?
One way, in code:
```python
sales = 18719
rate = 3 / 100 # 0.03
commission = sales * rate # 561.5699999999999
print(f"{commission:.2f}")
```
On running, it outputs: 561.57
Rosa earns $561.57. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "561.57", "printed": "561.57", "notation": null} |
nlprog_det-setting-0045018 | <|start|><|user|>
Convert 2 h 29 min (the length of a meeting) to minutes.<|eot|>
<|assistant|>
```python
hours = 2
minutes = 29
total_minutes = hours * 60 + minutes # 149
print(total_minutes)
```
Output = 149
The meeting lasted 149 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 2 h 29 min (the length of a meeting) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 2\nminutes = 29\ntotal_minutes = hours * 60 + minutes # 149\nprint(total_minutes)\n```\nOutput = 149\n\nThe meeting lasted 149 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "149", "printed": "149", "notation": null} |
nlprog_det-setting-0045019 | <|start|><|user|>
With $4,000 in costs and $6,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 6000
costs = 4000
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 33.33333333333333
print(round(margin, 1))
```
Execution prints 33.3.
The ... | chat | [
{
"role": "user",
"content": "With $4,000 in costs and $6,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 6000\ncosts = 4000\nprofit = revenue - costs # 2000\nmargin = profit / revenue * 100 # 33.3333333333333... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "33.3", "printed": "33.3", "notation": null} |
nlprog_det-setting-0045020 | The rules require 1/3 of 20 members (round up) to be present. How many is that?
The computation:
```python
import math
members = 20
quorum = math.ceil(members * 1 / 3)
print(quorum)
```
(Run result: 7)
7 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0045021 | With 21 rows of 21 chairs and 14 empty chairs, how many chairs are taken?
Computing it:
```python
rows = 21
per_row = 21
empty = 14
seated = rows * per_row - empty # 427
print(seated)
```
(Out: 427)
427 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "427", "printed": "427", "notation": null} |
nlprog_det-setting-0045022 | At 1% a month (simple), what interest builds on $12,000 over 6 months?
Coded up:
balance = 12000
monthly_rate = 1 / 100
months = 6
interest = balance * monthly_rate * months
print(f"{interest:.2f}")
Run result = 720.00
$720.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "720.00", "printed": "720.00", "notation": null} |
nlprog_det-setting-0045023 | Parking is $2 per hour with a daily maximum of $18. What do 7 hours cost?
The charge is $14. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0045024 | <|start|><|user|>
The building opened in 2006. How many years had passed by 2014?<|eot|>
<|assistant|>
```python
start_year = 2006
end_year = 2014
print(end_year - start_year)
```
The script prints 8, as expected.
8 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The building opened in 2006. How many years had passed by 2014?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2006\nend_year = 2014\nprint(end_year - start_year)\n```\nThe script prints 8, as expected.\n\n8 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0045025 | What day of the week is May 18, 2024?
Written as code:
```python
from datetime import date
hearing = date(2024, 5, 18) # datetime.date(2024, 5, 18)
print(hearing.strftime("%A"))
```
(Program output: Saturday)
May 18, 2024 is a Saturday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0045026 | <|start|><|user|>
After a 40% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
award = 48000
fee = award * 40 / 100 # 19200.0
remaining = award - fee # 28800.0
per_client = remaining / 4 # 7200.0
print(f"{per_clie... | chat | [
{
"role": "user",
"content": "After a 40% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": " award = 48000\n fee = award * 40 / 100 # 19200.0\n remaining = award - fee # 28800.0\n p... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "7200.00", "printed": "7200.00", "notation": null} |
nlprog_det-setting-0045027 | A $800 security deposit has deductions of $60, $120 and $45. How much is refunded?
A short script:
```python
deposit = 800
deductions = [60, 120, 45]
refund = deposit - sum(deductions) # 575
print(refund)
```
The program prints 575, as expected.
The refund is $575. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "575", "printed": "575", "notation": null} |
nlprog_det-setting-0045028 | A claim accrued on October 27, 2020. The limitations period is 5 years. On what date does it expire?
It runs out on October 27, 2025. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "2025-10-27", "printed": "2025-10-27", "notation": null} |
nlprog_det-setting-0045029 | Attendance was 13 out of 25. Express it as a percent.
As Python:
```python
present = 13
total = 25
percent = present / total * 100 # 52.0
print(round(percent, 1))
```
Executing it gives: 52.0
Attendance was 52.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "52.0", "printed": "52.0", "notation": null} |
nlprog_det-setting-0045030 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
Goran was born on February 27, 1996. How old is Goran on July 18, 2022?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1996, 2, 27) # datetime.date(1996, 2, 27)
on = date(2022, 7, 18) # datetime.date(2022, 7, 18)
age = on.y... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "Goran was born on February 27, 1996. How old is Goran on July 18, 2022?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1996, 2, 27) # date... | nlprog_det | setting | original | null | deterministic | [] | [] | 169 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0045031 | A $800 security deposit has deductions of $75. How much is refunded? $725 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "725", "printed": "725", "notation": null} |
nlprog_det-setting-0045032 | <|start|><|user|>
One can of paint covers 300 square feet. How many cans are needed for 1307 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 1307
coverage = 300
cans = math.ceil(area / coverage) # 5
print(cans)
```
Output = 5
5 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 300 square feet. How many cans are needed for 1307 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1307\ncoverage = 300\ncans = math.ceil(area / coverage) # 5\nprint(cans)\n```\nOutput = 5\n\n5 cans... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0045033 | <|start|><|user|>
A $1,500 security deposit has deductions of $150, $200 and $85. How much is refunded?<|eot|>
<|assistant|>
```python
deposit = 1500
deductions = [150, 200, 85]
refund = deposit - sum(deductions) # 1065
print(refund)
```
That prints: 1065
The refund is $1,065.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $1,500 security deposit has deductions of $150, $200 and $85. How much is refunded?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1500\ndeductions = [150, 200, 85]\nrefund = deposit - sum(deductions) # 1065\nprint(refund)\n```\nThat prints: 1065\n\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1065", "printed": "1065", "notation": null} |
nlprog_det-setting-0045034 | <|start|><|user|>
Tariq buys 4 boxes of 10 binders each and gives away 8 binders. How many binders are left?<|eot|>
<|assistant|>
boxes = 4
per_box = 10
given_away = 8
left = boxes * per_box - given_away # 32
print(left)
When run, it prints 32, as expected.
32 binders are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Tariq buys 4 boxes of 10 binders each and gives away 8 binders. How many binders are left?"
},
{
"role": "assistant",
"content": " boxes = 4\n per_box = 10\n given_away = 8\n left = boxes * per_box - given_away # 32\n print(left)\nWhen run, it prints... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0045035 | An office budget of $20,000 has expenses of $1,554, $997, $3,431, $3,472. How much of the budget is left?
As a program:
```python
budget = 20000
expenses = [1554, 997, 3431, 3472]
left = budget - sum(expenses) # 10546
print(left)
```
The program prints 10546, as expected.
The remaining budget is $10,546. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "10546", "printed": "10546", "notation": null} |
nlprog_det-setting-0045036 | Revenue is $8,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
Set it up in Python:
```python
revenue = 8000
costs = 4000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 50.0
print(round(margin, 1))
```
It prints 50.0.
The margin is 50.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "50.0", "printed": "50.0", "notation": null} |
nlprog_det-setting-0045037 | Count the days between February 26, 2024 and October 21, 2024.
A short script:
```python
from datetime import date
first = date(2024, 2, 26)
second = date(2024, 10, 21)
print((second - first).days)
```
Running it prints 238.
It is 238 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "238", "printed": "238", "notation": null} |
nlprog_det-setting-0045039 | One can of paint covers 300 square feet. How many cans are needed for 176 square feet of wall?
```python
import math
area = 176
coverage = 300
cans = math.ceil(area / coverage) # 1
print(cans)
```
That prints: 1
1 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0045040 | A customer buys 1 envelopes at $21 each, 1 paper reams at $4 each and pays with $50. How much change is due?
Let's compute it with Python.
```python
items = [(1, 21), (1, 4)]
total = sum(q * p for q, p in items) # 25
paid = 50
change = paid - total # 25
print(change)
```
The run gives: 25
$25 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0045041 | <|start|><|system|>
Tools (call with JSON):
[{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "define_word", "description": "Ret... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", ... | nlprog_det | setting | original | null | deterministic | [] | [] | 375 | {"gold": "423", "printed": "423", "notation": null} |
nlprog_det-setting-0045042 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
What does $1,000 grow to in 5 years at 3% annual compounding?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 3 / 100 # 0.03
years = 5
value = principal * (1 + rate) ** years # 1159.2740743000002
print(f"{value:.2f}")
```
stdout = 1159.27
The balanc... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "What does $1,000 grow to in 5 years at 3% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 3 / 100 # 0.03\nyears = 5\nvalue = principal * (1 + rat... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "1159.27", "printed": "1159.27", "notation": null} |
nlprog_det-setting-0045043 | <|start|><|system|>
You have access to these functions:
{"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
Equipment costs ... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"code_runner\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi... | nlprog_det | setting | original | null | deterministic | [] | [] | 257 | {"gold": "3333.33", "printed": "3333.33", "notation": null} |
nlprog_det-setting-0045044 | Each storage box holds 15 files. How many boxes are needed for 600 files?
One way, in code:
import math
files = 600
per_box = 15
boxes = math.ceil(files / per_box) # 40
print(boxes)
Printed:
40
It takes 40 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0045045 | With $8,000 in costs and $10,500 in revenue, what percent of revenue is profit? Round to one decimal.
A Python solution:
```python
revenue = 10500
costs = 8000
profit = revenue - costs
margin = profit / revenue * 100
print(round(margin, 1))
```
(Run result: 23.8)
The margin is 23.8%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "23.8", "printed": "23.8", "notation": null} |
nlprog_det-setting-0045046 | <|start|><|user|>
A car travels 186 miles in 1.5 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
It averages 124 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 186 miles in 1.5 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "It averages 124 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "124", "printed": "124", "notation": null} |
nlprog_det-setting-0045047 | <|start|><|user|>
A customer buys 5 pens at $29 each, 2 ink cartridges at $14 each, 5 ink cartridges at $7 each, 3 desk lamps at $5 each and pays with $250. How much change is due?<|eot|>
<|assistant|>
```python
items = [(5, 29), (2, 14), (5, 7), (3, 5)]
total = sum(q * p for q, p in items) # 223
paid = 250
change = p... | chat | [
{
"role": "user",
"content": "A customer buys 5 pens at $29 each, 2 ink cartridges at $14 each, 5 ink cartridges at $7 each, 3 desk lamps at $5 each and pays with $250. How much change is due?"
},
{
"role": "assistant",
"content": "```python\nitems = [(5, 29), (2, 14), (5, 7), (3, 5)]\ntotal = s... | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0045048 | Starting with 663 markers and using 27 per day, how many remain after 16 days?
```python
stock = 663
per_day = 27
days = 16
left = stock - per_day * days # 231
print(left)
```
Python prints 231.
231 markers are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "231", "printed": "231", "notation": null} |
nlprog_det-setting-0045049 | A 736-page report must be reviewed in 16 days. How many pages a day is that, evenly?
Python code:
```python
pages = 736
days = 16
per_day = pages // days
print(per_day)
```
Run output — 46
46 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "46", "printed": "46", "notation": null} |
nlprog_det-setting-0045050 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?<|eot|>
<|assistant|>
```python
rate = 25.0
hours = 44
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 150.0
pay = regular + overtime ... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 25.0\nhours = 44\nregular = 40 *... | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "1150.00", "printed": "1150.00", "notation": null} |
nlprog_det-setting-0045051 | How many meters are in 64.5 kilometers?
Python, step by step:
```python
km = 64.5
meters = km * 1000 # 64500.0
print(round(meters))
```
Console output: 64500
That is 64,500 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "64500", "printed": "64500", "notation": null} |
nlprog_det-setting-0045052 | Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 3 years. What is the straight-line depreciation per year?
In Python:
```python
cost = 12000
salvage = 6000
years = 3
per_year = (cost - salvage) / years # 2000.0
print(f"{per_year:.2f}")
```
Output = 2000.00
Depreciation is $2,000.00 per ye... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0045053 | <|start|><|user|>
A court charges $5 per request plus $0.50 per page after the first 10 pages. What does a 43-page copy cost?<|eot|>
<|assistant|>
```python
pages = 43
base = 5
per_page = 0.5
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 21.5
print(f"{cost:.2f}")
```
The code prints 21.50.
The... | chat | [
{
"role": "user",
"content": "A court charges $5 per request plus $0.50 per page after the first 10 pages. What does a 43-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 43\nbase = 5\nper_page = 0.5\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page ... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "21.50", "printed": "21.50", "notation": null} |
nlprog_det-setting-0045054 | From 2006 to 2044, how many years is that?
Code:
```python
start_year = 2006
end_year = 2044
print(end_year - start_year)
```
Python prints 38, as expected.
That is 38 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0045055 | After an initial $2,000, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part?
Program:
```python
grant = 60000
up_front = 2000
installments = 3
each = (grant - up_front) / installments # 19333.333333333332
print(f"{each:.2f}")
```
On running, it outputs: 19333.33
$19,333.33 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "19333.33", "printed": "19333.33", "notation": null} |
nlprog_det-setting-0045056 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source... | nlprog_det | setting | original | null | deterministic | [] | [] | 232 | {"gold": "40.00", "printed": "40.00", "notation": null} |
nlprog_det-setting-0045057 | A hall has 27 rows of 8 seats, and 7 seats are empty. How many people are seated?
Here is a short program for it.
```python
rows = 27
per_row = 8
empty = 7
seated = rows * per_row - empty # 209
print(seated)
```
The printout reads: 209
209 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "209", "printed": "209", "notation": null} |
nlprog_det-setting-0045058 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
Find the mean of these test scores: 62, 94, 87, 52, 91, 75 and 99.<|eot|>
<|assistant|>
```python
scores = [62, 94, 87, 52, 91, 75, 99]
average = sum(scores) // len(scores) # 80
print(average)
```
Run it and it prints: 80
The mean is 80.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "Find the mean of these test scores: 62, 94, 87, 52, 91, 75 and 99."
},
{
"role": "assistant",
"content": "```python\nscores = [62, 94, 87, 52, 91, 75, 99]\naverage = sum(scores) // len(scores) # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0045059 | <|start|><|user|>
Under a 30% contingency agreement, what fee is owed on a $60,000 award?<|eot|>
<|assistant|>
```python
recovery = 60000
rate = 30 / 100
fee = recovery * rate
print(f"{fee:.2f}")
```
It prints 18000.00.
The fee is $18,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 30% contingency agreement, what fee is owed on a $60,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 60000\nrate = 30 / 100\nfee = recovery * rate\nprint(f\"{fee:.2f}\")\n```\nIt prints 18000.00.\n\nThe fee is $18,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0045060 | <|start|><|user|>
A appointment starts at 12:10 PM and lasts 75 minutes. When does it end?<|eot|>
<|assistant|>
```python
start = 12 * 60 + 10
end = start + 75
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Output: 1:25 PM
It ends at 1:25 PM.<|eot|>
<|end|... | chat | [
{
"role": "user",
"content": "A appointment starts at 12:10 PM and lasts 75 minutes. When does it end?"
},
{
"role": "assistant",
"content": "```python\nstart = 12 * 60 + 10\nend = start + 75\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "1:25 PM", "printed": "1:25 PM", "notation": null} |
nlprog_det-setting-0045061 | How much sales tax is charged on a $142.34 purchase at 6%?
In Python:
```python
price = 142.34
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 8.5404
print(f"{tax:.2f}")
```
# result: 8.54
The tax is $8.54. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "8.54", "printed": "8.54", "notation": null} |
nlprog_det-setting-0045062 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
Counting the first and last day, how many days are there from September 27, 2021 through October 3, 2021?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2021, 9, 27) # datetime.date(2021, 9, 27)
last = date(2021, 10, 3) # datetim... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "Counting the first and last day, how many days are there from September 27, 2021 through October 3, 2021?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst... | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0045063 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "sandbox_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Pyth... | nlprog_det | setting | original | null | deterministic | [] | [] | 261 | {"gold": "17.40", "printed": "17.40", "notation": null} |
nlprog_det-setting-0045064 | A shift runs from 7:57 AM to 9:56 AM. How long is it in minutes?
Programmatically:
start = 7 * 60 + 57 # 477
end = 9 * 60 + 56 # 596
print(end - start)
Executing it gives 119, as expected.
119 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "119", "printed": "119", "notation": null} |
nlprog_det-setting-0045065 | Lucia drove 506 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?
```python
miles = 506
rate = 0.67
reimbursement = miles * rate # 339.02000000000004
print(f"{reimbursement:.2f}")
```
Shell output — 339.02
The reimbursement is $339.02. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "339.02", "printed": "339.02", "notation": null} |
nlprog_det-setting-0045066 | Revenue is $5,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
Coded up:
```python
revenue = 5000
costs = 4000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 20.0
print(round(margin, 1))
```
Out = 20.0
The margin is 20.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0045067 | What simple interest does $2,500 earn at 6% a year over 5 years?
Python version:
```python
principal = 2500
rate = 6 / 100 # 0.06
years = 5
interest = principal * rate * years # 750.0
print(f"{interest:.2f}")
```
# output: 750.00
The interest is $750.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "750.00", "printed": "750.00", "notation": null} |
nlprog_det-setting-0045068 | 10.5 hours of work at $180 an hour: what is the total charge?
The bill is $1,890.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "1890.00", "printed": "1890.00", "notation": null} |
nlprog_det-setting-0045069 | Sales went from 400 to 420. What is the percent change?
The program:
```python
old = 400
new = 420
change = (new - old) / old * 100
print(round(change))
```
stdout — 5
The change is 5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0045070 | 3 runs at 400 calories each burn how many calories in total?
Program:
```python
per_session = 400
sessions = 3
total = per_session * sessions # 1200
print(total)
```
Shell output — 1200
That burns 1200 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0045071 | A shift runs from 10:08 AM to 11:46 AM. How long is it in minutes?
Here is a short program for it.
```python
start = 10 * 60 + 8 # 608
end = 11 * 60 + 46 # 706
print(end - start)
```
Result = 98
98 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "98", "printed": "98", "notation": null} |
nlprog_det-setting-0045072 | What is 30 degrees Celsius in Fahrenheit?
Written as code:
celsius = 30
fahrenheit = celsius * 9 / 5 + 32 # 86.0
print(round(fahrenheit))
Output = 86
That is 86 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0045073 | A 468-page report must be reviewed in 12 days. How many pages a day is that, evenly?
Computing it:
```python
pages = 468
days = 12
per_day = pages // days # 39
print(per_day)
```
Run it and it prints 39.
39 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0045074 | <|start|><|user|>
A clerk's office charges $350 for each filing. Rosa submits 15 filings. What is the total fee?<|eot|>
<|assistant|>
```python
fee = 350
filings = 15
total = fee * filings # 5250
print(total)
```
Executing it gives 5250, as expected.
The total fee is $5,250.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A clerk's office charges $350 for each filing. Rosa submits 15 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "```python\nfee = 350\nfilings = 15\ntotal = fee * filings # 5250\nprint(total)\n```\nExecuting it gives 5250, as expected.\n\nThe t... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "5250", "printed": "5250", "notation": null} |
nlprog_det-setting-0045075 | Counting the first and last day, how many days are there from July 15, 2023 through July 18, 2023?
Let the code do the arithmetic:
```python
from datetime import date
first = date(2023, 7, 15) # datetime.date(2023, 7, 15)
last = date(2023, 7, 18) # datetime.date(2023, 7, 18)
days = (last - first).days + 1 # 4
print... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0045076 | <|start|><|system|>
Functions:
[{"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
A service costs $9 a month or $78 a year. How much does ... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]"
},
{
"ro... | nlprog_det | setting | original | null | deterministic | [] | [] | 204 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0045077 | A storeroom has 405 sticky pads. The office uses 34 a day. How many are left after 11 days?
The program:
stock = 405
per_day = 34
days = 11
left = stock - per_day * days # 31
print(left)
Execution result: 31
31 sticky pads are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0045078 | <|start|><|user|>
With 15% off, what does a $45 chair cost?<|eot|>
<|assistant|>
```python
price = 45
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 38.25
print(f"{sale_price:.2f}")
```
Executing it gives 38.25.
The sale price is $38.25.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 15% off, what does a $45 chair cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 45\ndiscount = 15 / 100 # 0.15\nsale_price = price * (1 - discount) # 38.25\nprint(f\"{sale_price:.2f}\")\n```\nExecuting it gives 38.25.\n\nThe sale price is $38.2... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "38.25", "printed": "38.25", "notation": null} |
nlprog_det-setting-0045079 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "compute", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"compute\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Pyth... | nlprog_det | setting | original | null | deterministic | [] | [] | 212 | {"gold": "1.69", "printed": "1.69", "notation": null} |
nlprog_det-setting-0045080 | Scale 450 g of rice from 4 servings to 12 servings.
Use 1350 g of rice. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "1350", "printed": "1350", "notation": null} |
nlprog_det-setting-0045081 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["progra... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"descriptio... | nlprog_det | setting | original | null | deterministic | [] | [] | 234 | {"gold": "42", "printed": "42", "notation": null} |
nlprog_det-setting-0045082 | Monthly: $9. Annual: $84. What is saved per year by paying annually?
Computing it:
```python
monthly = 9
yearly = 84
savings = monthly * 12 - yearly # 24
print(savings)
```
The program outputs 24.
$24 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0045083 | Quinn's scores were 51, 50 and 97. What is the average score?
Written as code:
```python
scores = [51, 50, 97]
average = sum(scores) // len(scores) # 66
print(average)
```
Result: 66
The average score is 66. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0045084 | <|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|>
```python
grant = 48000
up_front = 6000
installments = 3
each = (grant - up_front) / installments # 14000.0
print(f"{each:.2f}")
```
The script prints 14000.00.
$14,000.00 per ... | 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": "```python\ngrant = 48000\nup_front = 6000\ninstallments = 3\neach = (grant - up_front) / installments # 14000.0\nprint(f\"{... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "14000.00", "printed": "14000.00", "notation": null} |
nlprog_det-setting-0045085 | Notice was given on August 16, 2019. The notice period is 10 days. When does it run out?
A Python solution:
```python
from datetime import date, timedelta
start = date(2019, 8, 16) # datetime.date(2019, 8, 16)
end = start + timedelta(days=10) # datetime.date(2019, 8, 26)
print(end.isoformat())
```
(Printed result: 2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2019-08-26", "printed": "2019-08-26", "notation": null} |
nlprog_det-setting-0045086 | <|start|><|user|>
3 books come back 20 days late, at $0.50 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.5
days_late = 20
books = 3
fine = per_day * days_late * books # 30.0
print(f"{fine:.2f}")
```
stdout:
30.00
$30.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 books come back 20 days late, at $0.50 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.5\ndays_late = 20\nbooks = 3\nfine = per_day * days_late * books # 30.0\nprint(f\"{fine:.2f}\")\n```\nstdout:\n30.00\n\n$30.00 is ow... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "30.00", "printed": "30.00", "notation": null} |
nlprog_det-setting-0045087 | <|start|><|user|>
A library charges $0.25 per book per day late. What is the fine for 2 books that are 2 days late?<|eot|>
<|assistant|>
```python
per_day = 0.25
days_late = 2
books = 2
fine = per_day * days_late * books
print(f"{fine:.2f}")
```
Program output — 1.00
The fine is $1.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.25 per book per day late. What is the fine for 2 books that are 2 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.25\ndays_late = 2\nbooks = 2\nfine = per_day * days_late * books\nprint(f\"{fine:.2f}\")\n```\nProgram out... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1.00", "printed": "1.00", "notation": null} |
nlprog_det-setting-0045088 | One can of paint covers 300 square feet. How many cans are needed for 240 square feet of wall?
Here's the code.
import math
area = 240
coverage = 300
cans = math.ceil(area / coverage) # 1
print(cans)
(stdout: 1)
Buy 1 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0045089 | <|start|><|user|>
From a $5,000 retainer, 2 hours at $275/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 5000
hours = 2
rate = 275
left = retainer - hours * rate # 4450
print(left)
```
The code prints: 4450
The remaining balance is $4,450.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $5,000 retainer, 2 hours at $275/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 5000\nhours = 2\nrate = 275\nleft = retainer - hours * rate # 4450\nprint(left)\n```\nThe code prints: 4450\n\nThe remaining bal... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "4450", "printed": "4450", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.