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-0069599 | <|start|><|user|>
A clerk's office charges $50 for each filing. Sofia submits 5 filings. What is the total fee?<|eot|>
<|assistant|>
```python
fee = 50
filings = 5
total = fee * filings # 250
print(total)
```
Run result: 250
$250 in filing fees.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A clerk's office charges $50 for each filing. Sofia submits 5 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "```python\nfee = 50\nfilings = 5\ntotal = fee * filings # 250\nprint(total)\n```\nRun result: 250\n\n$250 in filing fees."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0069600 | How many whole days and leftover hours are in 43 hours?
```python
hours = 43
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Run output: 1 days and 19 hours
That is 1 days and 19 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "1 days and 19 hours", "printed": "1 days and 19 hours", "notation": null} |
nlprog_det-setting-0069602 | How many meters are in 74.4 kilometers?
Code:
```python
km = 74.4
meters = km * 1000 # 74400.0
print(round(meters))
```
The program prints 74400, as expected.
That is 74,400 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "74400", "printed": "74400", "notation": null} |
nlprog_det-setting-0069603 | <|start|><|user|>
6 friends split a $120 bill plus a 20% tip evenly. How much does each pay?<|eot|>
<|assistant|>
The share is $24.00 each.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "6 friends split a $120 bill plus a 20% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "The share is $24.00 each."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "24.00", "printed": "24.00", "notation": null} |
nlprog_det-setting-0069604 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
What commission does Nikhil make on $85,383 in sales at 2%?<|eot|>
<|assistant|>
sales = 85383
rate = 2 / 100 # 0.02
commission = sales * rate # 1707.66
print(f"{commission:.2f}")
On running, it outputs: 1707.66
The commission is $1,707... | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "What commission does Nikhil make on $85,383 in sales at 2%?"
},
{
"role": "assistant",
"content": " sales = 85383\n rate = 2 / 100 # 0.02\n commission = sales * rate # 1707.66\n ... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1707.66", "printed": "1707.66", "notation": null} |
nlprog_det-setting-0069605 | <|start|><|user|>
Wanjiru 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 # 375
print(total)
```
# stdout: 375
The total fee is $375.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Wanjiru 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 # 375\nprint(total)\n```\n# stdout: 375\n\nThe total fee is $375."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "375", "printed": "375", "notation": null} |
nlprog_det-setting-0069606 | <|start|><|user|>
How much sales tax is charged on a $545.90 purchase at 6%?<|eot|>
<|assistant|>
```python
price = 545.9
tax_rate = 6 / 100
tax = price * tax_rate
print(f"{tax:.2f}")
```
Printed: 32.75
$32.75 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $545.90 purchase at 6%?"
},
{
"role": "assistant",
"content": "```python\nprice = 545.9\ntax_rate = 6 / 100\ntax = price * tax_rate\nprint(f\"{tax:.2f}\")\n```\nPrinted: 32.75\n\n$32.75 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "32.75", "printed": "32.75", "notation": null} |
nlprog_det-setting-0069607 | Someone works 30 hours at $16.50 per hour. What are the earnings? That earns $495.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "495.00", "printed": "495.00", "notation": null} |
nlprog_det-setting-0069608 | Express 103 hours in days and hours.
Programmatically:
```python
hours = 103
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Running it prints 4 days and 7 hours.
That is 4 days and 7 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "4 days and 7 hours", "printed": "4 days and 7 hours", "notation": null} |
nlprog_det-setting-0069609 | An office budget of $5,000 has expenses of $2,379, $2,192. How much of the budget is left?
Python makes this quick:
```python
budget = 5000
expenses = [2379, 2192]
left = budget - sum(expenses) # 429
print(left)
```
Executed, it shows 429.
The remaining budget is $429. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "429", "printed": "429", "notation": null} |
nlprog_det-setting-0069610 | <|start|><|user|>
What percentage of $4,000 is $400?<|eot|>
<|assistant|>
```python
budget = 4000
spent = 400
percent = spent / budget * 100 # 10.0
print(round(percent, 1))
```
When run, it prints 10.0, as expected.
That is 10.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $4,000 is $400?"
},
{
"role": "assistant",
"content": "```python\nbudget = 4000\nspent = 400\npercent = spent / budget * 100 # 10.0\nprint(round(percent, 1))\n```\nWhen run, it prints 10.0, as expected.\n\nThat is 10.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "10.0", "printed": "10.0", "notation": null} |
nlprog_det-setting-0069611 | <|start|><|user|>
How many meters are in 3.2 kilometers?<|eot|>
<|assistant|>
```python
km = 3.2
meters = km * 1000 # 3200.0
print(round(meters))
```
That prints: 3200
3,200 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 3.2 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 3.2\nmeters = km * 1000 # 3200.0\nprint(round(meters))\n```\nThat prints: 3200\n\n3,200 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "3200", "printed": "3200", "notation": null} |
nlprog_det-setting-0069612 | <|start|><|user|>
Filing fees are $45 per document. What do 18 filings cost?<|eot|>
<|assistant|>
```python
fee = 45
filings = 18
total = fee * filings # 810
print(total)
```
Result: 810
The total fee is $810.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $45 per document. What do 18 filings cost?"
},
{
"role": "assistant",
"content": "```python\nfee = 45\nfilings = 18\ntotal = fee * filings # 810\nprint(total)\n```\nResult: 810\n\nThe total fee is $810."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "810", "printed": "810", "notation": null} |
nlprog_det-setting-0069613 | How much sales tax is charged on a $842.11 purchase at 6%?
A few lines of Python do it:
```python
price = 842.11
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 50.5266
print(f"{tax:.2f}")
```
Output — 50.53
The tax is $50.53. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "50.53", "printed": "50.53", "notation": null} |
nlprog_det-setting-0069614 | 17 ink cartridges cost $2 apiece. With 6% tax added, what is the total?
We can compute it in Python.
```python
quantity = 17
unit_price = 2
subtotal = quantity * unit_price # 34
total = subtotal * (1 + 6 / 100) # 36.04
print(f"{total:.2f}")
```
(Program output: 36.04)
The invoice total is $36.04. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "36.04", "printed": "36.04", "notation": null} |
nlprog_det-setting-0069615 | 4 friends split a $210 bill plus a 18% tip evenly. How much does each pay?
The program:
```python
bill = 210
tip_rate = 18 / 100 # 0.18
people = 4
each = bill * (1 + tip_rate) / people # 61.949999999999996
print(f"{each:.2f}")
```
Console output: 61.95
Each person pays $61.95. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "61.95", "printed": "61.95", "notation": null} |
nlprog_det-setting-0069616 | What percentage of $2,000 is $900?
Python version:
```python
budget = 2000
spent = 900
percent = spent / budget * 100 # 45.0
print(round(percent, 1))
```
Running it prints 45.0.
That is 45.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "45.0", "printed": "45.0", "notation": null} |
nlprog_det-setting-0069617 | A $30,000 grant pays $2,000 up front and the rest in 6 equal installments. How large is each installment?
One way, in code:
```python
grant = 30000
up_front = 2000
installments = 6
each = (grant - up_front) / installments # 4666.666666666667
print(f"{each:.2f}")
```
The interpreter prints 4666.67.
Each installment i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "4666.67", "printed": "4666.67", "notation": null} |
nlprog_det-setting-0069618 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
How long, in days, is it from January 26, 2021 until September 26, 2021?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2021, 1, 26) # datetime.date(2021, 1, 26)
second = date(2021, 9, 26) # datetime.date(2021, 9, 26)
print((se... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "How long, in days, is it from January 26, 2021 until September 26, 2021?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2021, 1, 26) # datetim... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "243", "printed": "243", "notation": null} |
nlprog_det-setting-0069619 | 28 pens cost $5 apiece. With 5% tax added, what is the total?
Here is a short program for it.
```python
quantity = 28
unit_price = 5
subtotal = quantity * unit_price # 140
total = subtotal * (1 + 5 / 100) # 147.0
print(f"{total:.2f}")
```
The script prints 147.00, as expected.
The total with tax is $147.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "147.00", "printed": "147.00", "notation": null} |
nlprog_det-setting-0069620 | Divide 143 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?
Written as code:
```python
total = 143
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
On running, it outputs 35 each, 3 left over.
The answer... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "35 each, 3 left over", "printed": "35 each, 3 left over", "notation": null} |
nlprog_det-setting-0069621 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "code_runner", "description": "Executes Python code and returns stdout.", "param... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"code_runner\", \"descript... | nlprog_det | setting | original | null | deterministic | [] | [] | 283 | {"gold": "67.5", "printed": "67.5", "notation": null} |
nlprog_det-setting-0069622 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
Counting only Monday through Friday, how many business days are there after June 16, 2027 through July 24, 2027?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2027, 6, 16)
end = date(2027, 7, 24)
count = 0
for k in range(1, (e... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after June 16, 2027 through July 24, 2027?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timed... | nlprog_det | setting | original | null | deterministic | [] | [] | 167 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0069623 | $5,000 is invested at 2% compounded yearly. What is it worth after 5 years?
Let's compute it with Python.
```python
principal = 5000
rate = 2 / 100 # 0.02
years = 5
value = principal * (1 + rate) ** years # 5520.404016
print(f"{value:.2f}")
```
# out: 5520.40
It is worth $5,520.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "5520.40", "printed": "5520.40", "notation": null} |
nlprog_det-setting-0069626 | Under a 40% contingency agreement, what fee is owed on a $25,000 award?
Programmatically:
```python
recovery = 25000
rate = 40 / 100 # 0.4
fee = recovery * rate # 10000.0
print(f"{fee:.2f}")
```
(Out: 10000.00)
The lawyer's fee comes to $10,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0069627 | <|start|><|user|>
After an initial $6,000, the remainder of a $12,000 grant is paid in 6 equal parts. What is each part?<|eot|>
<|assistant|>
```python
grant = 12000
up_front = 6000
installments = 6
each = (grant - up_front) / installments # 1000.0
print(f"{each:.2f}")
```
The run gives 1000.00, as expected.
$1,000.0... | chat | [
{
"role": "user",
"content": "After an initial $6,000, the remainder of a $12,000 grant is paid in 6 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "```python\ngrant = 12000\nup_front = 6000\ninstallments = 6\neach = (grant - up_front) / installments # 1000.0\nprint(f\"{e... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0069628 | A lease runs for 24 months at $850 per month. How much rent is paid over the whole term?
The rent over the term is $20,400. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "20400", "printed": "20400", "notation": null} |
nlprog_det-setting-0069630 | <|start|><|system|>
Tools (call with JSON):
[{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Convert 35 °C to F... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 206 | {"gold": "95", "printed": "95", "notation": null} |
nlprog_det-setting-0069631 | <|start|><|user|>
A storeroom has 1962 batteries. The office uses 8 a day. How many are left after 12 days?<|eot|>
<|assistant|>
```python
stock = 1962
per_day = 8
days = 12
left = stock - per_day * days # 1866
print(left)
```
# out: 1866
1866 batteries are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 1962 batteries. The office uses 8 a day. How many are left after 12 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1962\nper_day = 8\ndays = 12\nleft = stock - per_day * days # 1866\nprint(left)\n```\n# out: 1866\n\n1866 batteries a... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1866", "printed": "1866", "notation": null} |
nlprog_det-setting-0069632 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}
{"name": "py_exec", "description": "Run Python code in a sandbox; the r... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"py_exe... | nlprog_det | setting | original | null | deterministic | [] | [] | 396 | {"gold": "6617.16", "printed": "6617.16", "notation": null} |
nlprog_det-setting-0069633 | Monthly: $9. Annual: $72. What is saved per year by paying annually?
In code:
monthly = 9
yearly = 72
savings = monthly * 12 - yearly # 36
print(savings)
Executing it gives: 36
$36 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0069634 | What simple interest does $2,500 earn at 5% a year over 5 years?
```python
principal = 2500
rate = 5 / 100 # 0.05
years = 5
interest = principal * rate * years # 625.0
print(f"{interest:.2f}")
```
(Printed: 625.00)
It earns $625.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "625.00", "printed": "625.00", "notation": null} |
nlprog_det-setting-0069635 | A 30-day notice period begins on June 4, 2018. On what date does it end?
Python version:
```python
from datetime import date, timedelta
start = date(2018, 6, 4) # datetime.date(2018, 6, 4)
end = start + timedelta(days=30) # datetime.date(2018, 7, 4)
print(end.isoformat())
```
Executing it gives 2018-07-04.
The peri... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "2018-07-04", "printed": "2018-07-04", "notation": null} |
nlprog_det-setting-0069636 | The paralegal logged 2 hours at a rate of $350. How much is billed?
Set it up in Python:
hours = 2
rate = 350
bill = hours * rate # 700
print(f"{bill:.2f}")
# printed: 700.00
The bill is $700.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "700.00", "printed": "700.00", "notation": null} |
nlprog_det-setting-0069637 | <|start|><|user|>
A 4 × 6 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 4
width = 6
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 6
print(tiles)
```
Python prints: 6
It takes 6 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 4 × 6 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 4\nwidth = 6\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 6\nprint(tiles)\n```\nPython prints: ... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0069638 | 188 copies of a 18-page packet are printed at $0.08 per page. What is the cost?
In code:
```python
pages = 18
copies = 188
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 270.72
print(f"{cost:.2f}")
```
# output: 270.72
The job costs $270.72. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "270.72", "printed": "270.72", "notation": null} |
nlprog_det-setting-0069639 | Equipment costs $30,000, has a salvage value of $6,000, and a useful life of 5 years. What is the straight-line depreciation per year?
```python
cost = 30000
salvage = 6000
years = 5
per_year = (cost - salvage) / years # 4800.0
print(f"{per_year:.2f}")
```
Program output: 4800.00
Depreciation is $4,800.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "4800.00", "printed": "4800.00", "notation": null} |
nlprog_det-setting-0069640 | A $84 dinner bill gets a 15% tip, and 4 people share the cost equally. What is each person's share?
In Python:
```python
bill = 84
tip_rate = 15 / 100 # 0.15
people = 4
each = bill * (1 + tip_rate) / people # 24.15
print(f"{each:.2f}")
```
Output — 24.15
Each person pays $24.15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "24.15", "printed": "24.15", "notation": null} |
nlprog_det-setting-0069641 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
A claim accrued on February 6, 2017. The limitations period is 5 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2017, 2, 6) # datetime.date(2017, 2, 6)
years = 5
expires = accrued.replace(ye... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "A claim accrued on February 6, 2017. The limitations period is 5 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued ... | nlprog_det | setting | original | null | deterministic | [] | [] | 162 | {"gold": "2022-02-06", "printed": "2022-02-06", "notation": null} |
nlprog_det-setting-0069642 | <|start|><|user|>
A 424-page report must be reviewed in 8 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 424
days = 8
per_day = pages // days
print(per_day)
```
Run output: 53
53 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 424-page report must be reviewed in 8 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 424\ndays = 8\nper_day = pages // days\nprint(per_day)\n```\nRun output: 53\n\n53 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0069643 | Papers were served by mail on March 11, 2018. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?
In Python:
```python
from datetime import date, timedelta
served = date(2018, 3, 11) # datetime.date(2018, 3, 11)
response_days = 30
mail_days = 3
due = served + timedelta(days=r... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 177 | {"gold": "2018-04-13", "printed": "2018-04-13", "notation": null} |
nlprog_det-setting-0069645 | <|start|><|user|>
How many days are there from November 9, 2025 to November 29, 2025?<|eot|>
<|assistant|>
It is 20 days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many days are there from November 9, 2025 to November 29, 2025?"
},
{
"role": "assistant",
"content": "It is 20 days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0069646 | <|start|><|system|>
You have access to these functions:
[{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
After an initial $6,000,... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 232 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0069647 | At 2% a month (simple), what interest builds on $1,000 over 6 months? $120.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "120.00", "printed": "120.00", "notation": null} |
nlprog_det-setting-0069648 | <|start|><|user|>
At $22.20 an hour, what does 12 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 22.2
hours = 12
earnings = rate * hours # 266.4
print(f"{earnings:.2f}")
```
Result — 266.40
That earns $266.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $22.20 an hour, what does 12 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 22.2\nhours = 12\nearnings = rate * hours # 266.4\nprint(f\"{earnings:.2f}\")\n```\nResult — 266.40\n\nThat earns $266.40."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "266.40", "printed": "266.40", "notation": null} |
nlprog_det-setting-0069649 | Each storage box holds 25 files. How many boxes are needed for 296 files?
Python:
```python
import math
files = 296
per_box = 25
boxes = math.ceil(files / per_box) # 12
print(boxes)
```
The code prints 12.
It takes 12 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0069650 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "interpreter", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
W... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"interpreter\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source co... | nlprog_det | setting | original | null | deterministic | [] | [] | 223 | {"gold": "3958.62", "printed": "3958.62", "notation": null} |
nlprog_det-setting-0069651 | One can of paint covers 300 square feet. How many cans are needed for 1189 square feet of wall?
We write it as a program:
```python
import math
area = 1189
coverage = 300
cans = math.ceil(area / coverage) # 4
print(cans)
```
Run output — 4
Buy 4 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0069652 | A $800 security deposit has deductions of $85 and $200. How much is refunded?
Python, step by step:
```python
deposit = 800
deductions = [85, 200]
refund = deposit - sum(deductions) # 515
print(refund)
```
(Output: 515)
The refund is $515. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "515", "printed": "515", "notation": null} |
nlprog_det-setting-0069653 | A recipe for 2 people uses 200 grams of oats. How many grams are needed for 10 people?
We can compute it in Python.
```python
grams = 200
serves = 2
needed_for = 10
scaled = grams * needed_for // serves # 1000
print(scaled)
```
# output: 1000
1000 grams of oats are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0069654 | Find the mean of these test scores: 57, 92, 87, 75, 67 and 72.
As Python:
```python
scores = [57, 92, 87, 75, 67, 72]
average = sum(scores) // len(scores) # 75
print(average)
```
This prints 75, as expected.
The average score is 75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0069655 | Convert 4,061 USD to CAD at 1 USD = 0.92 CAD.
```python
amount = 4061
rate = 0.92
converted = amount * rate # 3736.1200000000003
print(f"{converted:.2f}")
```
Output = 3736.12
That is 3,736.12 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "3736.12", "printed": "3736.12", "notation": null} |
nlprog_det-setting-0069656 | <|start|><|user|>
Revenue is $25,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
revenue = 25000
costs = 20000
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 20.0
print(round(margin, 1))
It prints: 20.0
Profit is ... | chat | [
{
"role": "user",
"content": "Revenue is $25,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": " revenue = 25000\n costs = 20000\n profit = revenue - costs # 5000\n margin = profit / revenue * 100 # 20.... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0069657 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
Printing costs 8 cents a page. What does it cost to print 158 copies of a 18-page handout?<|eot|>
<|assistant|>
```python
pages = 18
copies = 158
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 227.52
print(f"{cost:.2f}")
```
stdout: 227.52
The j... | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "Printing costs 8 cents a page. What does it cost to print 158 copies of a 18-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 18\ncopies = 158\ncost_per_page = 0.08\ncost =... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "227.52", "printed": "227.52", "notation": null} |
nlprog_det-setting-0069658 | What average speed covers 582 miles in 0.5 hours?
```python
distance = 582
hours = 0.5
speed = distance / hours # 1164.0
print(round(speed))
```
(Printed: 1164)
The average speed is 1164 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "1164", "printed": "1164", "notation": null} |
nlprog_det-setting-0069659 | 7 swims at 400 calories each burn how many calories in total?
Coded up:
```python
per_session = 400
sessions = 7
total = per_session * sessions # 2800
print(total)
```
Shell output — 2800
2800 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "2800", "printed": "2800", "notation": null} |
nlprog_det-setting-0069660 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
A trial runs from September 8, 2025 to September 30, 2025, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2025, 9, 8) # datetime.date(2025, 9, 8)
last = date(2025, 9, 30) # datetime.da... | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "A trial runs from September 8, 2025 to September 30, 2025, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst =... | nlprog_det | setting | original | null | deterministic | [] | [] | 159 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0069661 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
A penalty of $100 a day accrues, capped at $2,500. What is owed after 33 days?<|eot|>
<|assistant|>
```python
per_day = 100
days = 33
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
```
Console output — 2500
The fine is $2,500.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "A penalty of $100 a day accrues, capped at $2,500. What is owed after 33 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 100\ndays = 33\ncap = 2500\nfine = min(per_day * days, c... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0069662 | A car gets 24 miles per gallon. Gas is $3.19 a gallon. What does fuel cost for a 300-mile trip?
Fuel costs $39.88. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "39.88", "printed": "39.88", "notation": null} |
nlprog_det-setting-0069663 | Jamal earns a 4% commission on $34,393 of sales. What is the commission?
The commission is $1,375.72. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "1375.72", "printed": "1375.72", "notation": null} |
nlprog_det-setting-0069664 | <|start|><|user|>
A 45-mile drive at a steady 30 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 45
speed = 30
minutes = distance / speed * 60 # 90.0
print(round(minutes))
```
Program output — 90
The trip takes 90 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 45-mile drive at a steady 30 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 45\nspeed = 30\nminutes = distance / speed * 60 # 90.0\nprint(round(minutes))\n```\nProgram output — 90\n\nThe trip takes 90 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "90", "printed": "90", "notation": null} |
nlprog_det-setting-0069665 | The statute was enacted in 2002. How many years had passed by 2011?
We write it as a program:
```python
start_year = 2002
end_year = 2011
print(end_year - start_year)
```
# result: 9
9 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0069666 | Monthly rent is $900. A tenant moves in with 17 days left in a 31-day month. What is the prorated rent?
Programmatically:
```python
rent = 900
days_in_month = 31
days_occupied = 17
prorated = rent * days_occupied / days_in_month
print(f"{prorated:.2f}")
```
Running this gives: 493.55
The tenant owes $493.55. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "493.55", "printed": "493.55", "notation": null} |
nlprog_det-setting-0069667 | <|start|><|user|>
Each storage box holds 12 files. How many boxes are needed for 765 files?<|eot|>
<|assistant|>
```python
import math
files = 765
per_box = 12
boxes = math.ceil(files / per_box) # 64
print(boxes)
```
Executed, it shows 64.
64 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 12 files. How many boxes are needed for 765 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 765\nper_box = 12\nboxes = math.ceil(files / per_box) # 64\nprint(boxes)\n```\nExecuted, it shows 64.\n\n64 boxes are ne... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "64", "printed": "64", "notation": null} |
nlprog_det-setting-0069668 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
How many meters are in 19.7 kilometers?<|eot|>
<|assistant|>
```python
km = 19.7
meters = km * 1000 # 19700.0
print(round(meters))
```
# execution result: 19700
19,700 m.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "How many meters are in 19.7 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 19.7\nmeters = km * 1000 # 19700.0\nprint(round(meters))\n```\n# execution result: 19700\n\n19,700 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "19700", "printed": "19700", "notation": null} |
nlprog_det-setting-0069669 | <|start|><|user|>
5 claimants share a $1,200 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 1200
parties = 5
share = settlement // parties # 240
print(share)
```
Result:
240
Each party receives $240.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 claimants share a $1,200 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 1200\nparties = 5\nshare = settlement // parties # 240\nprint(share)\n```\nResult:\n240\n\nEach party receives $240."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0069670 | A board has 53 members. A majority is more than half. How many votes make a majority?
Code:
```python
members = 53
majority = members // 2 + 1 # 27
print(majority)
```
(Program output: 27)
27 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0069671 | How long, in days, is it from April 10, 2022 until February 12, 2023?
```python
from datetime import date
first = date(2022, 4, 10) # datetime.date(2022, 4, 10)
second = date(2023, 2, 12) # datetime.date(2023, 2, 12)
print((second - first).days)
```
This prints 308.
There are 308 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "308", "printed": "308", "notation": null} |
nlprog_det-setting-0069672 | <|start|><|user|>
At 50 miles per hour, how many minutes does a 50-mile trip take?<|eot|>
<|assistant|>
60 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 50 miles per hour, how many minutes does a 50-mile trip take?"
},
{
"role": "assistant",
"content": "60 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0069673 | Convert 2 h 42 min (the length of a film) to minutes.
We can compute it in Python.
```python
hours = 2
minutes = 42
total_minutes = hours * 60 + minutes # 162
print(total_minutes)
```
Out = 162
That is 162 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "162", "printed": "162", "notation": null} |
nlprog_det-setting-0069674 | An unpaid balance of $7,500 accrues 2% simple interest per month. How much interest accrues in 2 months?
Computation in Python:
```python
balance = 7500
monthly_rate = 2 / 100 # 0.02
months = 2
interest = balance * monthly_rate * months # 300.0
print(f"{interest:.2f}")
```
The code prints: 300.00
$300.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0069675 | Goods bought on March 16, 2024 carry a 12-month warranty. When does it expire?
```python
from datetime import date
start = date(2024, 3, 16)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Console:
2025-03-16
T... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2025-03-16", "printed": "2025-03-16", "notation": null} |
nlprog_det-setting-0069676 | <|start|><|user|>
Count the days between December 15, 2028 and August 23, 2029.<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2028, 12, 15) # datetime.date(2028, 12, 15)
second = date(2029, 8, 23) # datetime.date(2029, 8, 23)
print((second - first).days)
```
# stdout: 251
There are 251 days b... | chat | [
{
"role": "user",
"content": "Count the days between December 15, 2028 and August 23, 2029."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2028, 12, 15) # datetime.date(2028, 12, 15)\nsecond = date(2029, 8, 23) # datetime.date(2029, 8, 23)\nprint((sec... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "251", "printed": "251", "notation": null} |
nlprog_det-setting-0069677 | A service costs $19 a month or $198 a year. How much does the yearly plan save over 12 monthly payments?
The annual plan saves $30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0069678 | If a 6-year limitations period starts on November 2, 2013, when does it end?
The computation:
```python
from datetime import date
accrued = date(2013, 11, 2) # datetime.date(2013, 11, 2)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 11, 2)
print(expires.isoformat())
```
# conso... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2019-11-02", "printed": "2019-11-02", "notation": null} |
nlprog_det-setting-0069679 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
A pack of 12 badges sells for $300. What does each cost?<|eot|>
<|assistant|>
```python
total = 300
count = 12
per_item = total // count # 25
print(per_item)
```
# execution result: 25
Each one costs $25.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "A pack of 12 badges sells for $300. What does each cost?"
},
{
"role": "assistant",
"content": "```python\ntotal = 300\ncount = 12\nper_item = total // count # 25\nprint(per_item)\n```\n# execution result:... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0069680 | Walls total 258 sq ft and each can covers 300 sq ft. How many cans should be bought?
We write it as a program:
```python
import math
area = 258
coverage = 300
cans = math.ceil(area / coverage) # 1
print(cans)
```
Output: 1
1 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0069681 | Each of Wen's walks burns 150 calories. How many calories over 6 walks?
Python code:
```python
per_session = 150
sessions = 6
total = per_session * sessions # 900
print(total)
```
Python prints 900.
900 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0069682 | <|start|><|user|>
A 22 lb package ships at $5 base plus $0.75/lb. What is the charge?<|eot|>
<|assistant|>
The charge is $21.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 22 lb package ships at $5 base plus $0.75/lb. What is the charge?"
},
{
"role": "assistant",
"content": "The charge is $21.50."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "21.50", "printed": "21.50", "notation": null} |
nlprog_det-setting-0069683 | How many days are there from June 6, 2022 to February 23, 2023?
A short script:
```python
from datetime import date
first = date(2022, 6, 6) # datetime.date(2022, 6, 6)
second = date(2023, 2, 23) # datetime.date(2023, 2, 23)
print((second - first).days)
```
When run, it prints 262, as expected.
It is 262 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "262", "printed": "262", "notation": null} |
nlprog_det-setting-0069684 | Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 51 hours?
One way, in code:
```python
rate = 18.5
hours = 51
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 305.25
pay = regular + overtime # 1045.25
print(f"{pay:.2f}")
```
The run gives: 1045.25
Leon earns ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "1045.25", "printed": "1045.25", "notation": null} |
nlprog_det-setting-0069685 | <|start|><|user|>
A 14-day notice period begins on July 8, 2022. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2022, 7, 8) # datetime.date(2022, 7, 8)
end = start + timedelta(days=14) # datetime.date(2022, 7, 22)
print(end.isoformat())
```
The printout read... | chat | [
{
"role": "user",
"content": "A 14-day notice period begins on July 8, 2022. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 7, 8) # datetime.date(2022, 7, 8)\nend = start + timedelta(days=14) # datetime.date(... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "2022-07-22", "printed": "2022-07-22", "notation": null} |
nlprog_det-setting-0069686 | Convert 4 h 21 min (the length of a film) to minutes.
```python
hours = 4
minutes = 21
total_minutes = hours * 60 + minutes # 261
print(total_minutes)
```
Execution prints 261.
The film lasted 261 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "261", "printed": "261", "notation": null} |
nlprog_det-setting-0069687 | A $30,000 grant pays $2,000 up front and the rest in 12 equal installments. How large is each installment?
A short script:
```python
grant = 30000
up_front = 2000
installments = 12
each = (grant - up_front) / installments # 2333.3333333333335
print(f"{each:.2f}")
```
What it prints: 2333.33
Each installment is $2,33... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "2333.33", "printed": "2333.33", "notation": null} |
nlprog_det-setting-0069688 | <|start|><|user|>
What day of the week is August 23, 1994?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1994, 8, 23) # datetime.date(1994, 8, 23)
print(hearing.strftime("%A"))
```
Out: Tuesday
August 23, 1994 is a Tuesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is August 23, 1994?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1994, 8, 23) # datetime.date(1994, 8, 23)\nprint(hearing.strftime(\"%A\"))\n```\nOut: Tuesday\n\nAugust 23, 1994 is a Tuesday."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0069689 | A service costs $29 a month or $330 a year. How much does the yearly plan save over 12 monthly payments?
One way, in code:
```python
monthly = 29
yearly = 330
savings = monthly * 12 - yearly # 18
print(savings)
```
Running it prints: 18
The annual plan saves $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0069690 | <|start|><|user|>
From a $2,500 retainer, 3 hours at $150/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 2500
hours = 3
rate = 150
left = retainer - hours * rate # 2050
print(left)
```
Execution prints 2050, as expected.
$2,050 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $2,500 retainer, 3 hours at $150/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 2500\nhours = 3\nrate = 150\nleft = retainer - hours * rate # 2050\nprint(left)\n```\nExecution prints 2050, as expected.\n\n$2,... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "2050", "printed": "2050", "notation": null} |
nlprog_det-setting-0069691 | <|start|><|system|>
Functions:
[{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
4 boxes hold 6 labels each. After 11 a... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]... | nlprog_det | setting | original | null | deterministic | [] | [] | 217 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0069692 | 178 copies of a 43-page packet are printed at $0.10 per page. What is the cost?
The program:
pages = 43
copies = 178
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 765.4000000000001
print(f"{cost:.2f}")
stdout: 765.40
The job costs $765.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "765.40", "printed": "765.40", "notation": null} |
nlprog_det-setting-0069693 | Each storage box holds 50 files. How many boxes are needed for 776 files?
```python
import math
files = 776
per_box = 50
boxes = math.ceil(files / per_box) # 16
print(boxes)
```
On running, it outputs 16.
It takes 16 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0069694 | <|start|><|user|>
Sales went from 1,000 to 1,200. What is the percent change?<|eot|>
<|assistant|>
```python
old = 1000
new = 1200
change = (new - old) / old * 100 # 20.0
print(round(change))
```
Run result = 20
The change is 20%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 1,000 to 1,200. What is the percent change?"
},
{
"role": "assistant",
"content": "```python\nold = 1000\nnew = 1200\nchange = (new - old) / old * 100 # 20.0\nprint(round(change))\n```\nRun result = 20\n\nThe change is 20%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0069696 | How long, in days, is it from June 1, 2027 until August 14, 2027?
The computation:
```python
from datetime import date
first = date(2027, 6, 1) # datetime.date(2027, 6, 1)
second = date(2027, 8, 14) # datetime.date(2027, 8, 14)
print((second - first).days)
```
# execution result: 74
There are 74 days between the tw... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0069697 | <|start|><|user|>
The landlord deducts $200 and $120 from a $2,000 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 2000
deductions = [200, 120]
refund = deposit - sum(deductions) # 1680
print(refund)
```
stdout — 1680
The refund is $1,680.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $200 and $120 from a $2,000 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2000\ndeductions = [200, 120]\nrefund = deposit - sum(deductions) # 1680\nprint(refund)\n```\nstdout — 1680\n\nThe ... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1680", "printed": "1680", "notation": null} |
nlprog_det-setting-0069698 | What is a 25% tip on a $233.44 bill?
Script:
bill = 233.44
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 58.36
print(f"{tip:.2f}")
The run gives: 58.36
Leave $58.36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "58.36", "printed": "58.36", "notation": null} |
nlprog_det-setting-0069699 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
Straight-line depreciation: cost $18,000, salvage $3,000, 3 years. How much per year?<|eot|>
<|assistant|>
cost = 18000
salvage = 3000
years = 3
per_year = (cost - salvage) / years # 5000.0
print(f"{per_year:.2f}")
The script prints 5000... | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "Straight-line depreciation: cost $18,000, salvage $3,000, 3 years. How much per year?"
},
{
"role": "assistant",
"content": " cost = 18000\n salvage = 3000\n years = 3\n per_year =... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "5000.00", "printed": "5000.00", "notation": null} |
nlprog_det-setting-0069700 | Rosa buys 5 boxes of 12 lanyards each and gives away 12 lanyards. How many lanyards are left?
A Python solution:
```python
boxes = 5
per_box = 12
given_away = 12
left = boxes * per_box - given_away # 48
print(left)
```
This prints 48.
That leaves 48 lanyards. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0069701 | <|start|><|user|>
Parking is $4 per hour with a daily maximum of $18. What do 3 hours cost?<|eot|>
<|assistant|>
```python
rate = 4
hours = 3
daily_max = 18
cost = min(rate * hours, daily_max) # 12
print(cost)
```
The interpreter prints: 12
The charge is $12.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $4 per hour with a daily maximum of $18. What do 3 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 4\nhours = 3\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 12\nprint(cost)\n```\nThe interpreter prints: 12\n\nThe charge is ... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0069702 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
A water bill is $20 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 9 thousand gallons?<|eot|>
<|assistant|>
```python
base = 20
rate = 4.75
used = 9
free = 2
bill = base + rate * max(0, used - free) # 53.25
print(f"... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "A water bill is $20 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 9 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 20\nra... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "53.25", "printed": "53.25", "notation": null} |
nlprog_det-setting-0069703 | 8 boxes hold 10 notebooks each. After 13 are handed out, how many are left?
In code:
```python
boxes = 8
per_box = 10
given_away = 13
left = boxes * per_box - given_away # 67
print(left)
```
Run it and it prints: 67
67 notebooks are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0069704 | <|start|><|user|>
1 books come back 22 days late, at $0.15 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.15
days_late = 22
books = 1
fine = per_day * days_late * books
print(f"{fine:.2f}")
```
On running, it outputs 3.30.
The fine is $3.30.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "1 books come back 22 days late, at $0.15 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.15\ndays_late = 22\nbooks = 1\nfine = per_day * days_late * books\nprint(f\"{fine:.2f}\")\n```\nOn running, it outputs 3.30.\n\nThe f... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "3.30", "printed": "3.30", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.