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-0055710 | <|start|><|user|>
11 boxes hold 10 markers each. After 3 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 11
per_box = 10
given_away = 3
left = boxes * per_box - given_away # 107
print(left)
```
Printed — 107
107 markers are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "11 boxes hold 10 markers each. After 3 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 11\nper_box = 10\ngiven_away = 3\nleft = boxes * per_box - given_away # 107\nprint(left)\n```\nPrinted — 107\n\n107 markers are left.... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "107", "printed": "107", "notation": null} |
nlprog_det-setting-0055711 | A service costs $12 a month or $114 a year. How much does the yearly plan save over 12 monthly payments?
We write it as a program:
```python
monthly = 12
yearly = 114
savings = monthly * 12 - yearly # 30
print(savings)
```
The run gives: 30
$30 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0055712 | An attorney bills 2 hours at $150 per hour. What is the bill?
We write it as a program:
```python
hours = 2
rate = 150
bill = hours * rate
print(f"{bill:.2f}")
```
Execution result: 300.00
The bill is $300.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0055713 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
With 22 rows of 20 chairs and 12 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 22
per_row = 20
empty = 12
seated = rows * per_row - empty
print(seated)
```
Printed = 428
428 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "With 22 rows of 20 chairs and 12 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 22\nper_row = 20\nempty = 12\nseated = rows * per_row - ... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "428", "printed": "428", "notation": null} |
nlprog_det-setting-0055714 | Parking is $3 per hour with a daily maximum of $18. What do 11 hours cost?
```python
rate = 3
hours = 11
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
stdout — 18
Parking costs $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0055715 | <|start|><|user|>
20 of 20 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 20
total = 20
percent = present / total * 100 # 100.0
print(round(percent, 1))
```
Running this gives 100.0.
100.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "20 of 20 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 20\ntotal = 20\npercent = present / total * 100 # 100.0\nprint(round(percent, 1))\n```\nRunning this gives 100.0.\n\n100.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "100.0", "printed": "100.0", "notation": null} |
nlprog_det-setting-0055716 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "code_runner", "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... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"code_runner\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"descriptio... | nlprog_det | setting | original | null | deterministic | [] | [] | 199 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0055717 | Convert -20 °C to Fahrenheit. It equals -4 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "-4", "printed": "-4", "notation": null} |
nlprog_det-setting-0055718 | Of a $8,000 budget, $7,400 has been spent. What percent is that?
A few lines of Python do it:
```python
budget = 8000
spent = 7400
percent = spent / budget * 100 # 92.5
print(round(percent, 1))
```
Interpreter output: 92.5
92.5% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "92.5", "printed": "92.5", "notation": null} |
nlprog_det-setting-0055719 | <|start|><|user|>
A shift starts at 9:15 AM and lasts 50 minutes. When does it end?<|eot|>
<|assistant|>
The shift finishes at 10:05 AM.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift starts at 9:15 AM and lasts 50 minutes. When does it end?"
},
{
"role": "assistant",
"content": "The shift finishes at 10:05 AM."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "10:05 AM", "printed": "10:05 AM", "notation": null} |
nlprog_det-setting-0055720 | Reza earns a 6% commission on $86,388 of sales. What is the commission?
Here's the code.
sales = 86388
rate = 6 / 100 # 0.06
commission = sales * rate # 5183.28
print(f"{commission:.2f}")
(stdout: 5183.28)
The commission is $5,183.28. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "5183.28", "printed": "5183.28", "notation": null} |
nlprog_det-setting-0055721 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "sandbox_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"sandbox_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Pytho... | nlprog_det | setting | original | null | deterministic | [] | [] | 241 | {"gold": "2019-07-07", "printed": "2019-07-07", "notation": null} |
nlprog_det-setting-0055722 | Each of Beatriz's runs burns 200 calories. How many calories over 4 runs?
One way, in code:
```python
per_session = 200
sessions = 4
total = per_session * sessions
print(total)
```
Out = 800
That burns 800 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0055723 | <|start|><|user|>
An invoice lists 20 toner kits at $12 each, plus 8% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 20
unit_price = 12
subtotal = quantity * unit_price # 240
total = subtotal * (1 + 8 / 100) # 259.20000000000005
print(f"{total:.2f}")
```
The code prints 259.20.
The i... | chat | [
{
"role": "user",
"content": "An invoice lists 20 toner kits at $12 each, plus 8% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 20\nunit_price = 12\nsubtotal = quantity * unit_price # 240\ntotal = subtotal * (1 + 8 / 100) # 259.2000000000000... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "259.20", "printed": "259.20", "notation": null} |
nlprog_det-setting-0055724 | A 15 lb package ships at $5 base plus $1.50/lb. What is the charge?
We write it as a program:
base = 5
per_pound = 1.5
weight = 15
cost = base + per_pound * weight # 27.5
print(f"{cost:.2f}")
What it prints: 27.50
The charge is $27.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "27.50", "printed": "27.50", "notation": null} |
nlprog_det-setting-0055725 | At a 6% tax rate, what is the tax on $514.69?
The computation:
price = 514.69
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 30.881400000000003
print(f"{tax:.2f}")
The program prints 30.88.
$30.88 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "30.88", "printed": "30.88", "notation": null} |
nlprog_det-setting-0055726 | A hall has 24 rows of 13 seats, and 24 seats are empty. How many people are seated?
288 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "288", "printed": "288", "notation": null} |
nlprog_det-setting-0055727 | Monthly rent is $1,200. A tenant moves in with 9 days left in a 30-day month. What is the prorated rent?
Let's compute it with Python.
```python
rent = 1200
days_in_month = 30
days_occupied = 9
prorated = rent * days_occupied / days_in_month # 360.0
print(f"{prorated:.2f}")
```
Result:
360.00
The tenant owes $360.00... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "360.00", "printed": "360.00", "notation": null} |
nlprog_det-setting-0055728 | <|start|><|user|>
At a 5% tax rate, what is the tax on $707.98?<|eot|>
<|assistant|>
```python
price = 707.98
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 35.399
print(f"{tax:.2f}")
```
# stdout: 35.40
The tax is $35.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 5% tax rate, what is the tax on $707.98?"
},
{
"role": "assistant",
"content": "```python\nprice = 707.98\ntax_rate = 5 / 100 # 0.05\ntax = price * tax_rate # 35.399\nprint(f\"{tax:.2f}\")\n```\n# stdout: 35.40\n\nThe tax is $35.40."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "35.40", "printed": "35.40", "notation": null} |
nlprog_det-setting-0055729 | What day of the week is November 20, 2017? It is a Monday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 17 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0055730 | <|start|><|user|>
Wen drove 204 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
Wen is owed $126.48.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Wen drove 204 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "Wen is owed $126.48."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "126.48", "printed": "126.48", "notation": null} |
nlprog_det-setting-0055731 | One can of paint covers 250 square feet. How many cans are needed for 453 square feet of wall?
Program:
```python
import math
area = 453
coverage = 250
cans = math.ceil(area / coverage) # 2
print(cans)
```
The program outputs: 2
2 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0055732 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
Split $2,612 between Idris and Leon in the ratio 1 to 3. What is Idris's share?<|eot|>
<|assistant|>
```python
total = 2612
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 653
print(share_a)
```
This prints 653, as expected.
Idris... | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "Split $2,612 between Idris and Leon in the ratio 1 to 3. What is Idris's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 2612\nparts_a = 1\nparts_b = 3\nshare_a = total * parts... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "653", "printed": "653", "notation": null} |
nlprog_det-setting-0055733 | Printing costs 8 cents a page. What does it cost to print 33 copies of a 14-page handout?
Written as code:
pages = 14
copies = 33
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 36.96
print(f"{cost:.2f}")
Run it and it prints: 36.96
Printing costs $36.96. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "36.96", "printed": "36.96", "notation": null} |
nlprog_det-setting-0055734 | <|start|><|user|>
Each storage box holds 50 files. How many boxes are needed for 404 files?<|eot|>
<|assistant|>
import math
files = 404
per_box = 50
boxes = math.ceil(files / per_box) # 9
print(boxes)
(Printed: 9)
9 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 50 files. How many boxes are needed for 404 files?"
},
{
"role": "assistant",
"content": " import math\n files = 404\n per_box = 50\n boxes = math.ceil(files / per_box) # 9\n print(boxes)\n(Printed: 9)\n\n9 boxes are needed."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0055735 | <|start|><|system|>
Tool definitions:
[{"name": "python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
A settlement of $2,640 is spl... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"prog... | nlprog_det | setting | original | null | deterministic | [] | [] | 200 | {"gold": "330", "printed": "330", "notation": null} |
nlprog_det-setting-0055736 | A appointment starts at 2:40 PM and lasts 50 minutes. When does it end?
Python:
```python
start = 14 * 60 + 40
end = start + 50
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
The code prints: 3:30 PM
The appointment finishes at 3:30 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "3:30 PM", "printed": "3:30 PM", "notation": null} |
nlprog_det-setting-0055737 | What is -5 degrees Celsius in Fahrenheit?
Let's compute it with Python.
```python
celsius = -5
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
```
Executing it gives 23, as expected.
That is 23 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0055738 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
A $12,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment?<|eot|>
<|assistant|>
```python
grant = 12000
up_front = 3000
installments = 4
each = (grant - up_front) / installments # 2250.0
print(... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "A $12,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "```python\ngrant = 12000\nup_f... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "2250.00", "printed": "2250.00", "notation": null} |
nlprog_det-setting-0055739 | A 32 lb package ships at $10 base plus $1.20/lb. What is the charge?
Script:
```python
base = 10
per_pound = 1.2
weight = 32
cost = base + per_pound * weight # 48.4
print(f"{cost:.2f}")
```
Out = 48.40
The charge is $48.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "48.40", "printed": "48.40", "notation": null} |
nlprog_det-setting-0055740 | Count 14 days forward from December 16, 2021. What date is that?
It ends on December 30, 2021. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "2021-12-30", "printed": "2021-12-30", "notation": null} |
nlprog_det-setting-0055741 | Sami earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 50-hour week?
Python version:
```python
rate = 20.0
hours = 50
regular = 40 * rate # 800.0
overtime = (hours - 40) * rate * 1.5 # 300.0
pay = regular + overtime # 1100.0
print(f"{pay:.2f}")
```
Shell output — 1100.00
Sami earns ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "1100.00", "printed": "1100.00", "notation": null} |
nlprog_det-setting-0055742 | <|start|><|user|>
Which is cheaper per unit: 8 for $13.45 (A) or 15 for $21.30 (B)?<|eot|>
<|assistant|>
```python
pack_a = 13.45 / 8
pack_b = 21.3 / 15
cheaper = "A" if pack_a < pack_b else "B"
print(cheaper)
```
It prints B, as expected.
Pack B is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 8 for $13.45 (A) or 15 for $21.30 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 13.45 / 8\npack_b = 21.3 / 15\ncheaper = \"A\" if pack_a < pack_b else \"B\"\nprint(cheaper)\n```\nIt prints B, as expected.\n\nPack B is che... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0055743 | <|start|><|user|>
A lawyer's fee is 25% of a $150,000 recovery. How large is the fee?<|eot|>
<|assistant|>
recovery = 150000
rate = 25 / 100 # 0.25
fee = recovery * rate # 37500.0
print(f"{fee:.2f}")
Console output: 37500.00
The fee is $37,500.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 25% of a $150,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": " recovery = 150000\n rate = 25 / 100 # 0.25\n fee = recovery * rate # 37500.0\n print(f\"{fee:.2f}\")\nConsole output: 37500.00\n\nThe fee is $37... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "37500.00", "printed": "37500.00", "notation": null} |
nlprog_det-setting-0055744 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after January 5, 2025 through January 19, 2025?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2025, 1, 5)
end = date(2025, 1, 19)
count = 0
for k in range(1, (end - start).days + 1):
if (start ... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after January 5, 2025 through January 19, 2025?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2025, 1, 5)\nend = date(2025, 1, 19)\ncount = 0... | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0055745 | <|start|><|user|>
96 copies of a 25-page packet are printed at $0.15 per page. What is the cost?<|eot|>
<|assistant|>
pages = 25
copies = 96
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 360.0
print(f"{cost:.2f}")
(Console output: 360.00)
Printing costs $360.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "96 copies of a 25-page packet are printed at $0.15 per page. What is the cost?"
},
{
"role": "assistant",
"content": " pages = 25\n copies = 96\n cost_per_page = 0.15\n cost = pages * copies * cost_per_page # 360.0\n print(f\"{cost:.2f}\")\n(Console ... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "360.00", "printed": "360.00", "notation": null} |
nlprog_det-setting-0055746 | Attendance was 41 out of 50. Express it as a percent.
A Python solution:
```python
present = 41
total = 50
percent = present / total * 100 # 82.0
print(round(percent, 1))
```
The script prints: 82.0
Attendance was 82.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "82.0", "printed": "82.0", "notation": null} |
nlprog_det-setting-0055747 | <|start|><|system|>
You have access to these functions:
{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Ulla's scores were 82,... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 215 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0055748 | Fines run at $100 per day up to a maximum of $5,000. How much after 3 days? The fine is $300. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0055749 | <|start|><|user|>
Walls total 960 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
import math
area = 960
coverage = 350
cans = math.ceil(area / coverage)
print(cans)
Shell output — 3
Buy 3 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 960 sq ft and each can covers 350 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": " import math\n area = 960\n coverage = 350\n cans = math.ceil(area / coverage)\n print(cans)\nShell output — 3\n\nBuy 3 cans."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0055750 | Sales went from 800 to 720. What is the percent change?
```python
old = 800
new = 720
change = (new - old) / old * 100 # -10.0
print(round(change))
```
(Console output: -10)
The change is -10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "-10", "printed": "-10", "notation": null} |
nlprog_det-setting-0055751 | A garage charges $2 an hour, never more than $20 a day. How much for 12 hours?
```python
rate = 2
hours = 12
daily_max = 20
cost = min(rate * hours, daily_max) # 20
print(cost)
```
Output: 20
Parking costs $20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0055752 | What is 30 degrees Celsius in Fahrenheit?
A Python solution:
celsius = 30
fahrenheit = celsius * 9 / 5 + 32 # 86.0
print(round(fahrenheit))
Executing it gives 86.
It equals 86 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0055754 | <|start|><|user|>
With 15 rows of 15 chairs and 39 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
rows = 15
per_row = 15
empty = 39
seated = rows * per_row - empty # 186
print(seated)
It prints 186, as expected.
186 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 15 rows of 15 chairs and 39 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": " rows = 15\n per_row = 15\n empty = 39\n seated = rows * per_row - empty # 186\n print(seated)\nIt prints 186, as expected.\n\n186 people... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "186", "printed": "186", "notation": null} |
nlprog_det-setting-0055756 | <|start|><|user|>
Starting from $20,000, the team spends $3,350, $1,259, $652. What remains?<|eot|>
<|assistant|>
```python
budget = 20000
expenses = [3350, 1259, 652]
left = budget - sum(expenses) # 14739
print(left)
```
The program prints 14739.
$14,739 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $20,000, the team spends $3,350, $1,259, $652. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 20000\nexpenses = [3350, 1259, 652]\nleft = budget - sum(expenses) # 14739\nprint(left)\n```\nThe program prints 14739.\n\n$14,739 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "14739", "printed": "14739", "notation": null} |
nlprog_det-setting-0055757 | Sales went from 800 to 920. What is the percent change?
As a program:
old = 800
new = 920
change = (new - old) / old * 100 # 15.0
print(round(change))
The program outputs 15.
It changed by 15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0055758 | Of a $5,000 budget, $3,700 has been spent. What percent is that?
The program:
```python
budget = 5000
spent = 3700
percent = spent / budget * 100 # 74.0
print(round(percent, 1))
```
When run, it prints 74.0.
That is 74.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "74.0", "printed": "74.0", "notation": null} |
nlprog_det-setting-0055759 | Revenue is $5,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
Here is a short program for it.
```python
revenue = 5000
costs = 4000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 20.0
print(round(margin, 1))
```
The program outputs: 20.0
The margin is 20... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0055760 | With $4,000 in costs and $6,500 in revenue, what percent of revenue is profit? Round to one decimal.
We write it as a program:
```python
revenue = 6500
costs = 4000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 38.46153846153847
print(round(margin, 1))
```
The program outputs: 38.5
The margin is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0055761 | Someone works 32 hours at $30.53 per hour. What are the earnings?
The computation:
```python
rate = 30.53
hours = 32
earnings = rate * hours # 976.96
print(f"{earnings:.2f}")
```
# out: 976.96
The pay is $976.96. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "976.96", "printed": "976.96", "notation": null} |
nlprog_det-setting-0055762 | <|start|><|user|>
To read 396 pages in 12 days, how many pages per day are needed?<|eot|>
<|assistant|>
pages = 396
days = 12
per_day = pages // days # 33
print(per_day)
Output of the run — 33
That is 33 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 396 pages in 12 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": " pages = 396\n days = 12\n per_day = pages // days # 33\n print(per_day)\nOutput of the run — 33\n\nThat is 33 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0055765 | <|start|><|user|>
A deposition lasted 3 hours and 34 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 3
minutes = 34
total_minutes = hours * 60 + minutes # 214
print(total_minutes)
```
Running it prints 214.
The deposition lasted 214 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A deposition lasted 3 hours and 34 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 3\nminutes = 34\ntotal_minutes = hours * 60 + minutes # 214\nprint(total_minutes)\n```\nRunning it prints 214.\n\nThe deposition lasted 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "214", "printed": "214", "notation": null} |
nlprog_det-setting-0055766 | <|start|><|user|>
A party has 30 days to respond to a motion served on August 26, 2027, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2027, 8, 26) # datetime.date(2027, 8, 26)
response_days = 30
mail_days = 3
d... | chat | [
{
"role": "user",
"content": "A party has 30 days to respond to a motion served on August 26, 2027, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2027, 8, 26) # datet... | nlprog_det | setting | original | null | deterministic | [] | [] | 182 | {"gold": "2027-09-28", "printed": "2027-09-28", "notation": null} |
nlprog_det-setting-0055767 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
Counting the first and last day, how many days are there from October 21, 2025 through November 4, 2025?<|eot|>
<|assistant|>
15 calendar days.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "Counting the first and last day, how many days are there from October 21, 2025 through November 4, 2025?"
},
{
"role": "assistant",
"content": "15 calendar days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0055768 | Fines run at $250 per day up to a maximum of $5,000. How much after 45 days?
Let's compute it with Python.
```python
per_day = 250
days = 45
cap = 5000
fine = min(per_day * days, cap) # 5000
print(fine)
```
# console output: 5000
$5,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0055769 | <|start|><|user|>
A clerk's office charges $25 for each filing. Marek submits 8 filings. What is the total fee?<|eot|>
<|assistant|>
```python
fee = 25
filings = 8
total = fee * filings # 200
print(total)
```
Execution prints: 200
$200 in filing fees.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A clerk's office charges $25 for each filing. Marek submits 8 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "```python\nfee = 25\nfilings = 8\ntotal = fee * filings # 200\nprint(total)\n```\nExecution prints: 200\n\n$200 in filing fees."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0055770 | <|start|><|user|>
Papers were served by mail on June 12, 2024. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2024, 6, 12) # datetime.date(2024, 6, 12)
response_days = 21
mail_days = 3
due =... | chat | [
{
"role": "user",
"content": "Papers were served by mail on June 12, 2024. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2024, 6, 12) # datetime.... | nlprog_det | setting | original | null | deterministic | [] | [] | 177 | {"gold": "2024-07-06", "printed": "2024-07-06", "notation": null} |
nlprog_det-setting-0055771 | A lawyer's fee is 30% of a $60,000 recovery. How large is the fee?
Let the code do the arithmetic:
```python
recovery = 60000
rate = 30 / 100
fee = recovery * rate
print(f"{fee:.2f}")
```
Execution prints 18000.00.
The fee is $18,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0055772 | A 6% increase is applied to $900 monthly rent. What is the new amount?
Here's the code.
```python
rent = 900
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 954.0
print(f"{new_rent:.2f}")
```
It prints 954.00.
The new rent is $954.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "954.00", "printed": "954.00", "notation": null} |
nlprog_det-setting-0055773 | At $0.67 per mile, what is the reimbursement for 166 miles?
Written as code:
```python
miles = 166
rate = 0.67
reimbursement = miles * rate # 111.22000000000001
print(f"{reimbursement:.2f}")
```
Interpreter output — 111.22
The reimbursement is $111.22. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "111.22", "printed": "111.22", "notation": null} |
nlprog_det-setting-0055774 | Attendance was 50 out of 50. Express it as a percent. Attendance was 100.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "100.0", "printed": "100.0", "notation": null} |
nlprog_det-setting-0055775 | At $29.95 an hour, what does 40 hours of work pay?
Script:
```python
rate = 29.95
hours = 40
earnings = rate * hours
print(f"{earnings:.2f}")
```
# console output: 1198.00
That earns $1,198.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1198.00", "printed": "1198.00", "notation": null} |
nlprog_det-setting-0055776 | <|start|><|user|>
Straight-line depreciation: cost $30,000, salvage $2,000, 8 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 30000
salvage = 2000
years = 8
per_year = (cost - salvage) / years # 3500.0
print(f"{per_year:.2f}")
```
# result: 3500.00
$3,500.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $30,000, salvage $2,000, 8 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 30000\nsalvage = 2000\nyears = 8\nper_year = (cost - salvage) / years # 3500.0\nprint(f\"{per_year:.2f}\")\n```\n# result:... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "3500.00", "printed": "3500.00", "notation": null} |
nlprog_det-setting-0055778 | A trial runs from October 16, 2024 to November 1, 2024, counting both days. How many calendar days is that?
Translated to Python:
```python
from datetime import date
first = date(2024, 10, 16) # datetime.date(2024, 10, 16)
last = date(2024, 11, 1) # datetime.date(2024, 11, 1)
days = (last - first).days + 1 # 17
pri... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0055779 | A meal costs $27.21. How much is a 18% tip?
Computing it:
```python
bill = 27.21
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 4.8978
print(f"{tip:.2f}")
```
The interpreter prints 4.90.
The tip is $4.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "4.90", "printed": "4.90", "notation": null} |
nlprog_det-setting-0055780 | Revenue is $14,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?
A few lines of Python do it:
```python
revenue = 14500
costs = 12500
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 13.793103448275861
print(round(margin, 1))
```
It prints: 13.8
The margin ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "13.8", "printed": "13.8", "notation": null} |
nlprog_det-setting-0055781 | <|start|><|user|>
A shift runs from 10:09 AM to 4:54 PM. How long is it in minutes?<|eot|>
<|assistant|>
405 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 10:09 AM to 4:54 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "405 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "405", "printed": "405", "notation": null} |
nlprog_det-setting-0055782 | <|start|><|user|>
Kemal and Mei share $4,475 in the ratio 2:3. How much does Kemal get?<|eot|>
<|assistant|>
```python
total = 4475
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 1790
print(share_a)
```
The interpreter prints: 1790
Kemal gets $1,790.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Kemal and Mei share $4,475 in the ratio 2:3. How much does Kemal get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 4475\nparts_a = 2\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 1790\nprint(share_a)\n```\nThe interpreter prints: 179... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "1790", "printed": "1790", "notation": null} |
nlprog_det-setting-0055783 | One can of paint covers 350 square feet. How many cans are needed for 955 square feet of wall?
Buy 3 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0055784 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "eval_python", "description": "Use f... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\... | nlprog_det | setting | original | null | deterministic | [] | [] | 316 | {"gold": "667", "printed": "667", "notation": null} |
nlprog_det-setting-0055785 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
A penalty of $250 a day accrues, capped at $2,500. What is owed after 48 days?<|eot|>
<|assistant|>
The fine is $2,500.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "A penalty of $250 a day accrues, capped at $2,500. What is owed after 48 days?"
},
{
"role": "assistant",
"content": "The fine is $2,500."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 55 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0055786 | <|start|><|user|>
A $210 dinner bill gets a 20% tip, and 2 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 210
tip_rate = 20 / 100 # 0.2
people = 2
each = bill * (1 + tip_rate) / people # 126.0
print(f"{each:.2f}")
```
Running it prints: 126.00
Each person pays $126.... | chat | [
{
"role": "user",
"content": "A $210 dinner bill gets a 20% tip, and 2 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 210\ntip_rate = 20 / 100 # 0.2\npeople = 2\neach = bill * (1 + tip_rate) / people # 126.0\nprint(f\"{each:... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "126.00", "printed": "126.00", "notation": null} |
nlprog_det-setting-0055787 | <|start|><|system|>
Tool definitions:
[{"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "business_days", "description": ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 327 | {"gold": "1452", "printed": "1452", "notation": null} |
nlprog_det-setting-0055788 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
Straight-line depreciation: cost $24,000, salvage $3,000, 10 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 24000
salvage = 3000
years = 10
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
```
This prints 210... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "Straight-line depreciation: cost $24,000, salvage $3,000, 10 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 24000\nsalvage = 3000\nyear... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "2100.00", "printed": "2100.00", "notation": null} |
nlprog_det-setting-0055789 | <|start|><|user|>
At $16.82 an hour, what does 30 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 16.82
hours = 30
earnings = rate * hours # 504.6
print(f"{earnings:.2f}")
```
(Result: 504.60)
The pay is $504.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $16.82 an hour, what does 30 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 16.82\nhours = 30\nearnings = rate * hours # 504.6\nprint(f\"{earnings:.2f}\")\n```\n(Result: 504.60)\n\nThe pay is $504.60."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "504.60", "printed": "504.60", "notation": null} |
nlprog_det-setting-0055790 | What does $10,000 grow to in 3 years at 2% annual compounding?
Translated to Python:
```python
principal = 10000
rate = 2 / 100 # 0.02
years = 3
value = principal * (1 + rate) ** years # 10612.080000000002
print(f"{value:.2f}")
```
The program prints: 10612.08
It is worth $10,612.08. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "10612.08", "printed": "10612.08", "notation": null} |
nlprog_det-setting-0055791 | <|start|><|user|>
A pack of 24 chairs sells for $1368. What does each cost?<|eot|>
<|assistant|>
```python
total = 1368
count = 24
per_item = total // count # 57
print(per_item)
```
The code prints: 57
The unit price is $57.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 24 chairs sells for $1368. What does each cost?"
},
{
"role": "assistant",
"content": "```python\ntotal = 1368\ncount = 24\nper_item = total // count # 57\nprint(per_item)\n```\nThe code prints: 57\n\nThe unit price is $57."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "57", "printed": "57", "notation": null} |
nlprog_det-setting-0055792 | Signe was born on February 9, 1979. How old is Signe on July 10, 2023?
Python code:
```python
from datetime import date
born = date(1979, 2, 9) # datetime.date(1979, 2, 9)
on = date(2023, 7, 10) # datetime.date(2023, 7, 10)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 44
print(age)
``... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0055793 | <|start|><|user|>
A service costs $25 a month or $282 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
monthly = 25
yearly = 282
savings = monthly * 12 - yearly # 18
print(savings)
This prints: 18
The annual plan saves $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $25 a month or $282 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": " monthly = 25\n yearly = 282\n savings = monthly * 12 - yearly # 18\n print(savings)\nThis prints: 18\n\nThe ... | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0055794 | How many minutes pass from 10:42 AM to 5:25 PM on the same day?
Let the code do the arithmetic:
start = 10 * 60 + 42 # 642
end = 17 * 60 + 25 # 1045
print(end - start)
Printed = 403
It is 403 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "403", "printed": "403", "notation": null} |
nlprog_det-setting-0055795 | <|start|><|user|>
At an exchange rate of 1.08 USD per GBP, how many USD is 4,659 GBP?<|eot|>
<|assistant|>
```python
amount = 4659
rate = 1.08
converted = amount * rate # 5031.72
print(f"{converted:.2f}")
```
# console output: 5031.72
That is 5,031.72 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.08 USD per GBP, how many USD is 4,659 GBP?"
},
{
"role": "assistant",
"content": "```python\namount = 4659\nrate = 1.08\nconverted = amount * rate # 5031.72\nprint(f\"{converted:.2f}\")\n```\n# console output: 5031.72\n\nThat is 5,031.72 US... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "5031.72", "printed": "5031.72", "notation": null} |
nlprog_det-setting-0055796 | Water costs $15 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 12,000 gallons?
The program:
```python
base = 15
rate = 4.2
used = 12
free = 3
bill = base + rate * max(0, used - free) # 52.800000000000004
print(f"{bill:.2f}")
```
The code prints: 52.80
The bill is $52.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "52.80", "printed": "52.80", "notation": null} |
nlprog_det-setting-0055797 | <|start|><|user|>
62 of 80 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 62
total = 80
percent = present / total * 100 # 77.5
print(round(percent, 1))
```
On running, it outputs: 77.5
Attendance was 77.5%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "62 of 80 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 62\ntotal = 80\npercent = present / total * 100 # 77.5\nprint(round(percent, 1))\n```\nOn running, it outputs: 77.5\n\nAttendance was 77.5%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "77.5", "printed": "77.5", "notation": null} |
nlprog_det-setting-0055798 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
A $60,000 grant pays $0 up front and the rest in 6 equal installments. How large is each installment?<|eot|>
<|assistant|>
```python
grant = 60000
up_front = 0
installments = 6
each = (grant - up_front) / installments # 10000.0
print(f"{each:.2f}")
```
The prin... | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "A $60,000 grant pays $0 up front and the rest in 6 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "```python\ngrant = 60000\nup_front = 0\ninstallments = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0055799 | <|start|><|user|>
On which weekday does January 17, 2021 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2021, 1, 17) # datetime.date(2021, 1, 17)
print(hearing.strftime("%A"))
```
Run it and it prints Sunday.
It is a Sunday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does January 17, 2021 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2021, 1, 17) # datetime.date(2021, 1, 17)\nprint(hearing.strftime(\"%A\"))\n```\nRun it and it prints Sunday.\n\nIt is a Sunday.... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0055800 | A court charges $10 per request plus $0.10 per page after the first 10 pages. What does a 73-page copy cost?
Here is the program.
```python
pages = 73
base = 10
per_page = 0.1
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 16.3
print(f"{cost:.2f}")
```
The script prints: 16.30
The total is $16... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "16.30", "printed": "16.30", "notation": null} |
nlprog_det-setting-0055801 | <|start|><|user|>
How many 2-foot square tiles cover a 13 ft by 9 ft floor (round up)?<|eot|>
<|assistant|>
30 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 2-foot square tiles cover a 13 ft by 9 ft floor (round up)?"
},
{
"role": "assistant",
"content": "30 tiles are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0055803 | 19 of 20 members attended. What percent attended?
Set it up in Python:
```python
present = 19
total = 20
percent = present / total * 100 # 95.0
print(round(percent, 1))
```
This prints 95.0, as expected.
Attendance was 95.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "95.0", "printed": "95.0", "notation": null} |
nlprog_det-setting-0055805 | <|start|><|user|>
Starting with 944 staplers and using 29 per day, how many remain after 20 days?<|eot|>
<|assistant|>
```python
stock = 944
per_day = 29
days = 20
left = stock - per_day * days
print(left)
```
Out: 364
364 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 944 staplers and using 29 per day, how many remain after 20 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 944\nper_day = 29\ndays = 20\nleft = stock - per_day * days\nprint(left)\n```\nOut: 364\n\n364 remain."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "364", "printed": "364", "notation": null} |
nlprog_det-setting-0055806 | A service costs $29 a month or $312 a year. How much does the yearly plan save over 12 monthly payments?
Python version:
```python
monthly = 29
yearly = 312
savings = monthly * 12 - yearly # 36
print(savings)
```
The program outputs 36.
The annual plan saves $36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0055807 | Count 10 days forward from July 14, 2019. What date is that?
We can compute it in Python.
from datetime import date, timedelta
start = date(2019, 7, 14) # datetime.date(2019, 7, 14)
end = start + timedelta(days=10) # datetime.date(2019, 7, 24)
print(end.isoformat())
(Result: 2019-07-24)
That date is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "2019-07-24", "printed": "2019-07-24", "notation": null} |
nlprog_det-setting-0055809 | Shipping costs $5 plus $2.50 per pound. What does a 21-pound parcel cost to ship?
The Python version:
```python
base = 5
per_pound = 2.5
weight = 21
cost = base + per_pound * weight # 57.5
print(f"{cost:.2f}")
```
# out: 57.50
The charge is $57.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "57.50", "printed": "57.50", "notation": null} |
nlprog_det-setting-0055810 | A clerk's office charges $75 for each filing. Omar submits 9 filings. What is the total fee?
Computing it:
```python
fee = 75
filings = 9
total = fee * filings # 675
print(total)
```
The run gives: 675
The filings cost $675 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "675", "printed": "675", "notation": null} |
nlprog_det-setting-0055811 | <|start|><|user|>
An office budget of $8,000 has expenses of $2,451, $1,447, $3,044. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 8000
expenses = [2451, 1447, 3044]
left = budget - sum(expenses) # 1058
print(left)
```
Execution prints 1058.
The remaining budget is $1,058.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $8,000 has expenses of $2,451, $1,447, $3,044. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 8000\nexpenses = [2451, 1447, 3044]\nleft = budget - sum(expenses) # 1058\nprint(left)\n```\nExecution prin... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "1058", "printed": "1058", "notation": null} |
nlprog_det-setting-0055812 | <|start|><|system|>
Functions:
[{"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": "compute", "description": "Use for arithmetic a... | chat | [
{
"role": "system",
"content": "Functions:\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\", \"section\"]}... | nlprog_det | setting | original | null | deterministic | [] | [] | 395 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0055813 | What commission does Leon make on $73,832 in sales at 4%?
Here's the code.
sales = 73832
rate = 4 / 100 # 0.04
commission = sales * rate # 2953.28
print(f"{commission:.2f}")
Output:
2953.28
The commission is $2,953.28. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "2953.28", "printed": "2953.28", "notation": null} |
nlprog_det-setting-0055814 | <|start|><|user|>
With 10% off, what does a $90 jacket cost?<|eot|>
<|assistant|>
```python
price = 90
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 81.0
print(f"{sale_price:.2f}")
```
This prints 81.00.
The sale price is $81.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 10% off, what does a $90 jacket cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 90\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - discount) # 81.0\nprint(f\"{sale_price:.2f}\")\n```\nThis prints 81.00.\n\nThe sale price is $81.00."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "81.00", "printed": "81.00", "notation": null} |
nlprog_det-setting-0055815 | An invoice lists 24 mugs at $7 each, plus 6% sales tax. What is the invoice total?
```python
quantity = 24
unit_price = 7
subtotal = quantity * unit_price
total = subtotal * (1 + 6 / 100)
print(f"{total:.2f}")
```
# execution result: 178.08
The total with tax is $178.08. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "178.08", "printed": "178.08", "notation": null} |
nlprog_det-setting-0055816 | <|start|><|user|>
A client paid a $5,000 retainer. The firm has billed 2 hours at $250 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 5000
hours = 2
rate = 250
left = retainer - hours * rate # 4500
print(left)
```
The script prints: 4500
The remaining balance is $4,500.<|eot|>
<... | chat | [
{
"role": "user",
"content": "A client paid a $5,000 retainer. The firm has billed 2 hours at $250 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 5000\nhours = 2\nrate = 250\nleft = retainer - hours * rate # 4500\nprint(left)\n```\nThe s... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "4500", "printed": "4500", "notation": null} |
nlprog_det-setting-0055817 | What is 30 degrees Celsius in Fahrenheit?
A Python solution:
```python
celsius = 30
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
```
It prints: 86
That is 86 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "86", "printed": "86", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.