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-0072593 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"run_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source ... | nlprog_det | setting | original | null | deterministic | [] | [] | 227 | {"gold": "8.35", "printed": "8.35", "notation": null} |
nlprog_det-setting-0072595 | Find the mean of these test scores: 58, 90, 65 and 87.
Set it up in Python:
```python
scores = [58, 90, 65, 87]
average = sum(scores) // len(scores) # 75
print(average)
```
When run, it prints: 75
The mean is 75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0072596 | <|start|><|user|>
Convert 9.6 km to meters.<|eot|>
<|assistant|>
```python
km = 9.6
meters = km * 1000 # 9600.0
print(round(meters))
```
What it prints — 9600
9,600 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 9.6 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 9.6\nmeters = km * 1000 # 9600.0\nprint(round(meters))\n```\nWhat it prints — 9600\n\n9,600 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "9600", "printed": "9600", "notation": null} |
nlprog_det-setting-0072597 | <|start|><|user|>
Printing costs 10 cents a page. What does it cost to print 53 copies of a 42-page handout?<|eot|>
<|assistant|>
```python
pages = 42
copies = 53
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 222.60000000000002
print(f"{cost:.2f}")
```
It prints: 222.60
The job costs $222.60.<|eot|>
<|e... | chat | [
{
"role": "user",
"content": "Printing costs 10 cents a page. What does it cost to print 53 copies of a 42-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 42\ncopies = 53\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 222.60000000000002\nprint(f\"{cost:.2f... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "222.60", "printed": "222.60", "notation": null} |
nlprog_det-setting-0072598 | Rent of $2,200 goes up 2%. What is the new rent?
The computation:
```python
rent = 2200
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 2244.0
print(f"{new_rent:.2f}")
```
Interpreter output — 2244.00
The new rent is $2,244.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "2244.00", "printed": "2244.00", "notation": null} |
nlprog_det-setting-0072599 | What average speed covers 450 miles in 3 hours?
Written as code:
```python
distance = 450
hours = 3
speed = distance / hours # 150.0
print(round(speed))
```
Output: 150
The average speed is 150 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0072600 | <|start|><|user|>
Which is cheaper per unit: 12 for $12.89 (A) or 30 for $6.85 (B)?<|eot|>
<|assistant|>
```python
pack_a = 12.89 / 12 # 1.0741666666666667
pack_b = 6.85 / 30 # 0.22833333333333333
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Running this gives B.
Pack B is cheaper per item.<|e... | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 12 for $12.89 (A) or 30 for $6.85 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 12.89 / 12 # 1.0741666666666667\npack_b = 6.85 / 30 # 0.22833333333333333\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(chea... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0072601 | <|start|><|system|>
Tools you may use:
[{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "translate", "description": "Translate te... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 372 | {"gold": "34", "printed": "34", "notation": null} |
nlprog_det-setting-0072602 | At $0.67 per mile, what is the reimbursement for 27 miles?
Here's the code.
```python
miles = 27
rate = 0.67
reimbursement = miles * rate # 18.09
print(f"{reimbursement:.2f}")
```
Executed, it shows 18.09.
Arjun is owed $18.09. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "18.09", "printed": "18.09", "notation": null} |
nlprog_det-setting-0072603 | <|start|><|user|>
A $2,400 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
```python
principal = 2400
annual_rate = 10 / 100 # 0.1
months = 36
interest = principal * annual_rate * months / 12 # 720.0
paymen... | chat | [
{
"role": "user",
"content": "A $2,400 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2400\nannual_rate = 10 / 100 # 0.1\nmonths = 36\nintere... | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "86.67", "printed": "86.67", "notation": null} |
nlprog_det-setting-0072604 | What percentage of $10,000 is $1,400?
As a program:
```python
budget = 10000
spent = 1400
percent = spent / budget * 100 # 14.000000000000002
print(round(percent, 1))
```
The program outputs 14.0.
14.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "14.0", "printed": "14.0", "notation": null} |
nlprog_det-setting-0072605 | Walls total 783 sq ft and each can covers 350 sq ft. How many cans should be bought?
Translated to Python:
```python
import math
area = 783
coverage = 350
cans = math.ceil(area / coverage) # 3
print(cans)
```
# printed result: 3
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0072606 | A penalty of $100 a day accrues, capped at $1,000. What is owed after 32 days?
Computation in Python:
per_day = 100
days = 32
cap = 1000
fine = min(per_day * days, cap)
print(fine)
(Out: 1000)
The fine is $1,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0072607 | A customer buys 6 pens at $25 each, 2 water bottles at $28 each, 3 scissors at $17 each, 4 batteries at $20 each and pays with $350. How much change is due?
Computation in Python:
```python
items = [(6, 25), (2, 28), (3, 17), (4, 20)]
total = sum(q * p for q, p in items) # 337
paid = 350
change = paid - total # 13
p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0072608 | Sales went from 2,000 to 1,800. What is the percent change?
A few lines of Python do it:
```python
old = 2000
new = 1800
change = (new - old) / old * 100 # -10.0
print(round(change))
```
The script prints: -10
The change is -10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "-10", "printed": "-10", "notation": null} |
nlprog_det-setting-0072609 | <|start|><|user|>
7 swims at 400 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 400
sessions = 7
total = per_session * sessions # 2800
print(total)
```
Running it prints 2800.
2800 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "7 swims at 400 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 400\nsessions = 7\ntotal = per_session * sessions # 2800\nprint(total)\n```\nRunning it prints 2800.\n\n2800 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "2800", "printed": "2800", "notation": null} |
nlprog_det-setting-0072610 | To read 720 pages in 16 days, how many pages per day are needed?
The computation:
```python
pages = 720
days = 16
per_day = pages // days # 45
print(per_day)
```
When run, it prints 45, as expected.
45 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0072611 | Equal monthly payments repay $6,000 plus 5% simple yearly interest over 24 months. How large is a payment?
As Python:
```python
principal = 6000
annual_rate = 5 / 100
months = 24
interest = principal * annual_rate * months / 12
payment = (principal + interest) / months
print(f"{payment:.2f}")
```
Result: 275.00
Each ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "275.00", "printed": "275.00", "notation": null} |
nlprog_det-setting-0072612 | Goods bought on May 20, 2027 carry a 6-month warranty. When does it expire?
Let the code do the arithmetic:
```python
from datetime import date
start = date(2027, 5, 20)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat()... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2027-11-20", "printed": "2027-11-20", "notation": null} |
nlprog_det-setting-0072613 | <|start|><|system|>
Tool definitions:
{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}
{"name": "calc", "description": "Executes Python code and retur... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}\n{\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 332 | {"gold": "10:10 AM", "printed": "10:10 AM", "notation": null} |
nlprog_det-setting-0072614 | <|start|><|user|>
What average speed covers 519 miles in 3 hours?<|eot|>
<|assistant|>
```python
distance = 519
hours = 3
speed = distance / hours # 173.0
print(round(speed))
```
stdout = 173
The average speed is 173 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 519 miles in 3 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 519\nhours = 3\nspeed = distance / hours # 173.0\nprint(round(speed))\n```\nstdout = 173\n\nThe average speed is 173 mph."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "173", "printed": "173", "notation": null} |
nlprog_det-setting-0072615 | What average speed covers 326 miles in 2 hours?
Python version:
```python
distance = 326
hours = 2
speed = distance / hours # 163.0
print(round(speed))
```
Running it prints: 163
The average speed is 163 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "163", "printed": "163", "notation": null} |
nlprog_det-setting-0072616 | Convert 5 h 33 min (the length of a film) to minutes.
Let's compute it with Python.
```python
hours = 5
minutes = 33
total_minutes = hours * 60 + minutes # 333
print(total_minutes)
```
The script prints 333, as expected.
The film lasted 333 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "333", "printed": "333", "notation": null} |
nlprog_det-setting-0072617 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
What is -15 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = -15
fahrenheit = celsius * 9 / 5 + 32 # 5.0
print(round(fahrenheit))
```
Output — 5
That is 5 °F.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "What is -15 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": "```python\ncelsius = -15\nfahrenheit = celsius * 9 / 5 + 32 # 5.0\nprint(round(fahrenheit))\n```... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0072618 | Of a $4,000 budget, $3,900 has been spent. What percent is that?
As Python:
```python
budget = 4000
spent = 3900
percent = spent / budget * 100 # 97.5
print(round(percent, 1))
```
Run result: 97.5
97.5% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "97.5", "printed": "97.5", "notation": null} |
nlprog_det-setting-0072619 | A garage charges $2 an hour, never more than $24 a day. How much for 8 hours?
One way, in code:
```python
rate = 2
hours = 8
daily_max = 24
cost = min(rate * hours, daily_max) # 16
print(cost)
```
Output:
16
The charge is $16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0072620 | How long, in days, is it from June 18, 2022 until September 16, 2022?
In Python:
```python
from datetime import date
first = date(2022, 6, 18) # datetime.date(2022, 6, 18)
second = date(2022, 9, 16) # datetime.date(2022, 9, 16)
print((second - first).days)
```
# run result: 90
It is 90 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "90", "printed": "90", "notation": null} |
nlprog_det-setting-0072621 | A trial runs from May 8, 2023 to May 21, 2023, counting both days. How many calendar days is that?
We can compute it in Python.
```python
from datetime import date
first = date(2023, 5, 8)
last = date(2023, 5, 21)
days = (last - first).days + 1
print(days)
```
# run result: 14
That is 14 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0072623 | <|start|><|user|>
From 2016 to 2056, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2016
end_year = 2056
print(end_year - start_year)
```
# output: 40
That is 40 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2016 to 2056, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2016\nend_year = 2056\nprint(end_year - start_year)\n```\n# output: 40\n\nThat is 40 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0072624 | <|start|><|user|>
A quorum is 2/3 of the 35 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
24 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A quorum is 2/3 of the 35 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": "24 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0072625 | A recipe for 4 people uses 240 grams of pasta. How many grams are needed for 6 people?
Python version:
```python
grams = 240
serves = 4
needed_for = 6
scaled = grams * needed_for // serves # 360
print(scaled)
```
The interpreter prints 360.
Use 360 g of pasta. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0072626 | <|start|><|user|>
A count moves from 200 to 180. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 200
new = 180
change = (new - old) / old * 100 # -10.0
print(round(change))
```
stdout — -10
The change is -10%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 200 to 180. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 200\nnew = 180\nchange = (new - old) / old * 100 # -10.0\nprint(round(change))\n```\nstdout — -10\n\nThe change is -1... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "-10", "printed": "-10", "notation": null} |
nlprog_det-setting-0072627 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
A $30,000 grant pays $2,000 up front and the rest in 3 equal installments. How large is each installment?<|eot|>
<|assistant|>
```python
grant = 30000
up_front = 2000
installments = 3
each = (grant - up_front) / installments # 9333.333333333334
print(f"{each:.2... | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "A $30,000 grant pays $2,000 up front and the rest in 3 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "```python\ngrant = 30000\nup_front = 2000\ninstallm... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "9333.33", "printed": "9333.33", "notation": null} |
nlprog_det-setting-0072628 | Fines run at $100 per day up to a maximum of $5,000. How much after 21 days?
Let the code do the arithmetic:
```python
per_day = 100
days = 21
cap = 5000
fine = min(per_day * days, cap) # 2100
print(fine)
```
(stdout: 2100)
The fine is $2,100. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0072629 | A library charges $0.15 per book per day late. What is the fine for 2 books that are 29 days late?
A few lines of Python do it:
```python
per_day = 0.15
days_late = 29
books = 2
fine = per_day * days_late * books # 8.7
print(f"{fine:.2f}")
```
Running it prints: 8.70
$8.70 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "8.70", "printed": "8.70", "notation": null} |
nlprog_det-setting-0072630 | A lawyer's fee is 35% of a $12,000 recovery. How large is the fee?
Python, step by step:
```python
recovery = 12000
rate = 35 / 100 # 0.35
fee = recovery * rate # 4200.0
print(f"{fee:.2f}")
```
On running, it outputs: 4200.00
The lawyer's fee comes to $4,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "4200.00", "printed": "4200.00", "notation": null} |
nlprog_det-setting-0072631 | <|start|><|user|>
How many units at $40 each (variable cost $34) cover $9,000 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 9000
price = 40
variable = 34
units = math.ceil(fixed / (price - variable)) # 1500
print(units)
```
Running this gives 1500.
Break-even is 1500 units.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $40 each (variable cost $34) cover $9,000 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 9000\nprice = 40\nvariable = 34\nunits = math.ceil(fixed / (price - variable)) # 1500\nprint(units)\n```\nRunning this... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0072633 | A seminar starts at 12:40 PM and lasts 40 minutes. When does it end?
The program:
```python
start = 12 * 60 + 40
end = start + 40
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Out: 1:20 PM
The seminar finishes at 1:20 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "1:20 PM", "printed": "1:20 PM", "notation": null} |
nlprog_det-setting-0072634 | <|start|><|user|>
Printing costs 5 cents a page. What does it cost to print 164 copies of a 19-page handout?<|eot|>
<|assistant|>
```python
pages = 19
copies = 164
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 155.8
print(f"{cost:.2f}")
```
(Console output: 155.80)
Printing costs $155.80.<|eot|>
<|end|... | chat | [
{
"role": "user",
"content": "Printing costs 5 cents a page. What does it cost to print 164 copies of a 19-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 19\ncopies = 164\ncost_per_page = 0.05\ncost = pages * copies * cost_per_page # 155.8\nprint(f\"{cost:.2f}\")\n```\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "155.80", "printed": "155.80", "notation": null} |
nlprog_det-setting-0072635 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Convert 1,451 GBP to USD at 1 GBP = 1.35 USD.<|eot|>
<|assistant|>
amount = 1451
rate = 1.35
converted = amount * rate # 1958.8500000000001
print(f"{converted:.2f}")
The code prints: 1958.85
It converts to 1,958.85 USD.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Convert 1,451 GBP to USD at 1 GBP = 1.35 USD."
},
{
"role": "assistant",
"content": " amount = 1451\n rate = 1.35\n converted = amount * rate # 1958.8500000000001\n print(f\"{c... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "1958.85", "printed": "1958.85", "notation": null} |
nlprog_det-setting-0072636 | A $800 security deposit has deductions of $45, $150 and $120. How much is refunded?
Here is the program.
```python
deposit = 800
deductions = [45, 150, 120]
refund = deposit - sum(deductions) # 485
print(refund)
```
Interpreter output — 485
$485 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "485", "printed": "485", "notation": null} |
nlprog_det-setting-0072637 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
A library charges $0.50 per book per day late. What is the fine for 2 books that are 16 days late?<|eot|>
<|assistant|>
```python
per_day = 0.5
days_late = 16
books = 2
fine = per_day * days_late * books
print(f"{fine:.2f}")
```
Output of the run: 16... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "A library charges $0.50 per book per day late. What is the fine for 2 books that are 16 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.5\ndays_late = 16\nbook... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "16.00", "printed": "16.00", "notation": null} |
nlprog_det-setting-0072640 | <|start|><|user|>
Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 8 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 18000
salvage = 2000
years = 8
per_year = (cost - salvage) / years # 2000.0
print(f"{per_year:.2f}")
```
Interpreter output — 20... | chat | [
{
"role": "user",
"content": "Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 8 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 18000\nsalvage = 2000\nyears = 8\nper_year = (cost - salvage) / years # 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0072641 | At $16.38 an hour, what does 24 hours of work pay?
Python code:
```python
rate = 16.38
hours = 24
earnings = rate * hours # 393.12
print(f"{earnings:.2f}")
```
Printed: 393.12
The pay is $393.12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "393.12", "printed": "393.12", "notation": null} |
nlprog_det-setting-0072644 | <|start|><|user|>
Equal monthly payments repay $1,200 plus 10% simple yearly interest over 24 months. How large is a payment?<|eot|>
<|assistant|>
```python
principal = 1200
annual_rate = 10 / 100 # 0.1
months = 24
interest = principal * annual_rate * months / 12 # 240.0
payment = (principal + interest) / months # 6... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $1,200 plus 10% simple yearly interest over 24 months. How large is a payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1200\nannual_rate = 10 / 100 # 0.1\nmonths = 24\ninterest = principal * annual_rate * months / ... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0072645 | Reza's scores were 86, 93, 63, 59, 88, 57 and 100. What is the average score?
In code:
scores = [86, 93, 63, 59, 88, 57, 100]
average = sum(scores) // len(scores) # 78
print(average)
The program outputs: 78
The average score is 78. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "78", "printed": "78", "notation": null} |
nlprog_det-setting-0072646 | Revenue is $16,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?
We can compute it in Python.
```python
revenue = 16500
costs = 12500
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 24.242424242424242
print(round(margin, 1))
```
Program output: 24.2
The ma... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "24.2", "printed": "24.2", "notation": null} |
nlprog_det-setting-0072647 | A trial runs from September 17, 2019 to October 6, 2019, counting both days. How many calendar days is that?
One way, in code:
```python
from datetime import date
first = date(2019, 9, 17) # datetime.date(2019, 9, 17)
last = date(2019, 10, 6) # datetime.date(2019, 10, 6)
days = (last - first).days + 1 # 20
print(da... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0072648 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
A 29 lb package ships at $8 base plus $1.50/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 8
per_pound = 1.5
weight = 29
cost = base + per_pound * weight # 51.5
print(f"{cost:.2f}")
```
The run gives 51.50, as expected.
Shipping costs... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "A 29 lb package ships at $8 base plus $1.50/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 8\nper_pound = 1.5\nweight = 29\ncost = base + per_pound * w... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "51.50", "printed": "51.50", "notation": null} |
nlprog_det-setting-0072649 | Pilar has 15 documents to file, and each filing costs $405. How much are the filing fees in total?
In Python:
```python
fee = 405
filings = 15
total = fee * filings # 6075
print(total)
```
Execution result: 6075
The total fee is $6,075. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "6075", "printed": "6075", "notation": null} |
nlprog_det-setting-0072650 | Xavier drove 539 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?
Python makes this quick:
```python
miles = 539
rate = 0.58
reimbursement = miles * rate # 312.62
print(f"{reimbursement:.2f}")
```
# execution result: 312.62
The reimbursement is $312.62. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "312.62", "printed": "312.62", "notation": null} |
nlprog_det-setting-0072651 | 2 books come back 29 days late, at $0.50 a day each. What is the fine?
Here is the program.
```python
per_day = 0.5
days_late = 29
books = 2
fine = per_day * days_late * books # 29.0
print(f"{fine:.2f}")
```
When run, it prints 29.00.
The fine is $29.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "29.00", "printed": "29.00", "notation": null} |
nlprog_det-setting-0072652 | <|start|><|user|>
How much is a $79 daily meal allowance over 5 days?<|eot|>
<|assistant|>
```python
days = 5
meal_rate = 79
total = days * meal_rate # 395
print(total)
```
The run gives 395.
That comes to $395.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much is a $79 daily meal allowance over 5 days?"
},
{
"role": "assistant",
"content": "```python\ndays = 5\nmeal_rate = 79\ntotal = days * meal_rate # 395\nprint(total)\n```\nThe run gives 395.\n\nThat comes to $395."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "395", "printed": "395", "notation": null} |
nlprog_det-setting-0072653 | <|start|><|user|>
A $84 dinner bill gets a 20% tip, and 4 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 84
tip_rate = 20 / 100 # 0.2
people = 4
each = bill * (1 + tip_rate) / people # 25.2
print(f"{each:.2f}")
```
The run gives 25.20, as expected.
The share is $25.... | chat | [
{
"role": "user",
"content": "A $84 dinner bill gets a 20% tip, and 4 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 84\ntip_rate = 20 / 100 # 0.2\npeople = 4\neach = bill * (1 + tip_rate) / people # 25.2\nprint(f\"{each:.2f... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "25.20", "printed": "25.20", "notation": null} |
nlprog_det-setting-0072654 | A $3,600 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?
The Python version:
```python
principal = 3600
annual_rate = 8 / 100 # 0.08
months = 36
interest = principal * annual_rate * months / 12 # 864.0
payment = (principal + in... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "124.00", "printed": "124.00", "notation": null} |
nlprog_det-setting-0072655 | Buying 1 water bottles at $2 each, 2 keyboards at $26 each, someone hands over $100. What change comes back?
Code:
```python
items = [(1, 2), (2, 26)]
total = sum(q * p for q, p in items) # 54
paid = 100
change = paid - total # 46
print(change)
```
Console output: 46
$46 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "46", "printed": "46", "notation": null} |
nlprog_det-setting-0072656 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
How many of 115 votes make 75% (round up)?<|eot|>
<|assistant|>
```python
import math
voters = 115
needed = math.ceil(voters * 75 / 100) # 87
print(needed)
```
The program prints 87.
87 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "How many of 115 votes make 75% (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 115\nneeded = math.ceil(voters * 75 / 100) # 87\nprint(needed)... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "87", "printed": "87", "notation": null} |
nlprog_det-setting-0072657 | <|start|><|user|>
An attorney bills 8 hours at $150 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 8
rate = 150
bill = hours * rate # 1200
print(f"{bill:.2f}")
```
The script prints 1200.00.
That comes to $1,200.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 8 hours at $150 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 8\nrate = 150\nbill = hours * rate # 1200\nprint(f\"{bill:.2f}\")\n```\nThe script prints 1200.00.\n\nThat comes to $1,200.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0072658 | Convert 10 °C to Fahrenheit.
Python code:
```python
celsius = 10
fahrenheit = celsius * 9 / 5 + 32 # 50.0
print(round(fahrenheit))
```
On running, it outputs: 50
It equals 50 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0072659 | A 16 lb package ships at $10 base plus $1.20/lb. What is the charge?
```python
base = 10
per_pound = 1.2
weight = 16
cost = base + per_pound * weight
print(f"{cost:.2f}")
```
The interpreter prints 29.20.
The charge is $29.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "29.20", "printed": "29.20", "notation": null} |
nlprog_det-setting-0072660 | <|start|><|user|>
Someone born January 6, 1971 turns how old by June 12, 2025? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1971, 1, 6) # datetime.date(1971, 1, 6)
on = date(2025, 6, 12) # datetime.date(2025, 6, 12)
age = on.year - born.year - ((on.month, on.day) <... | chat | [
{
"role": "user",
"content": "Someone born January 6, 1971 turns how old by June 12, 2025? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1971, 1, 6) # datetime.date(1971, 1, 6)\non = date(2025, 6, 12) # datetime.date(2025,... | nlprog_det | setting | original | null | deterministic | [] | [] | 161 | {"gold": "54", "printed": "54", "notation": null} |
nlprog_det-setting-0072661 | Femi earns a 10% commission on $99,405 of sales. What is the commission?
We write it as a program:
```python
sales = 99405
rate = 10 / 100 # 0.1
commission = sales * rate # 9940.5
print(f"{commission:.2f}")
```
Interpreter output: 9940.50
The commission is $9,940.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "9940.50", "printed": "9940.50", "notation": null} |
nlprog_det-setting-0072662 | The rules require 3/5 of 23 members (round up) to be present. How many is that?
Here is a short program for it.
```python
import math
members = 23
quorum = math.ceil(members * 3 / 5) # 14
print(quorum)
```
Output of the run — 14
That is 14 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0072663 | Equipment costs $30,000, has a salvage value of $0, and a useful life of 6 years. What is the straight-line depreciation per year?
Written as code:
```python
cost = 30000
salvage = 0
years = 6
per_year = (cost - salvage) / years # 5000.0
print(f"{per_year:.2f}")
```
# result: 5000.00
$5,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "5000.00", "printed": "5000.00", "notation": null} |
nlprog_det-setting-0072664 | At $0.70 per mile, what is the reimbursement for 580 miles?
Python makes this quick:
```python
miles = 580
rate = 0.7
reimbursement = miles * rate # 406.0
print(f"{reimbursement:.2f}")
```
Executed, it shows: 406.00
The reimbursement is $406.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "406.00", "printed": "406.00", "notation": null} |
nlprog_det-setting-0072665 | If a 105-minute class begins at 11:45 AM, what time does it finish?
Code:
```python
start = 11 * 60 + 45
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
The program outputs: 1:30 PM
The class finishes at 1:30 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "1:30 PM", "printed": "1:30 PM", "notation": null} |
nlprog_det-setting-0072666 | <|start|><|user|>
A customer buys 6 headsets at $20 each, 1 headsets at $22 each, 4 desk lamps at $5 each and pays with $200. How much change is due?<|eot|>
<|assistant|>
```python
items = [(6, 20), (1, 22), (4, 5)]
total = sum(q * p for q, p in items) # 162
paid = 200
change = paid - total # 38
print(change)
```
Int... | chat | [
{
"role": "user",
"content": "A customer buys 6 headsets at $20 each, 1 headsets at $22 each, 4 desk lamps at $5 each and pays with $200. How much change is due?"
},
{
"role": "assistant",
"content": "```python\nitems = [(6, 20), (1, 22), (4, 5)]\ntotal = sum(q * p for q, p in items) # 162\npai... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0072667 | Vera earns a 6% commission on $29,638 of sales. What is the commission?
Here is a short program for it.
sales = 29638
rate = 6 / 100 # 0.06
commission = sales * rate # 1778.28
print(f"{commission:.2f}")
When run, it prints 1778.28.
The commission is $1,778.28. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "1778.28", "printed": "1778.28", "notation": null} |
nlprog_det-setting-0072668 | A $1,200 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?
The computation:
```python
principal = 1200
annual_rate = 6 / 100 # 0.06
months = 36
interest = principal * annual_rate * months / 12 # 216.0
payment = (principal + inter... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "39.33", "printed": "39.33", "notation": null} |
nlprog_det-setting-0072669 | Starting from $25,000, the team spends $1,492, $3,514, $1,768. What remains?
Python:
```python
budget = 25000
expenses = [1492, 3514, 1768]
left = budget - sum(expenses) # 18226
print(left)
```
# stdout: 18226
The remaining budget is $18,226. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "18226", "printed": "18226", "notation": null} |
nlprog_det-setting-0072670 | A 8 lb package ships at $10 base plus $1.50/lb. What is the charge? The charge is $22.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "22.00", "printed": "22.00", "notation": null} |
nlprog_det-setting-0072671 | <|start|><|user|>
How many units at $40 each (variable cost $35) cover $1,200 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 1200
price = 40
variable = 35
units = math.ceil(fixed / (price - variable)) # 240
print(units)
```
Output of the run — 240
Break-even is 240 units.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $40 each (variable cost $35) cover $1,200 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 1200\nprice = 40\nvariable = 35\nunits = math.ceil(fixed / (price - variable)) # 240\nprint(units)\n```\nOutput of the... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0072672 | What simple interest does $20,000 earn at 5% a year over 4 years?
We can compute it in Python.
principal = 20000
rate = 5 / 100 # 0.05
years = 4
interest = principal * rate * years # 4000.0
print(f"{interest:.2f}")
Output of the run — 4000.00
The interest is $4,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "4000.00", "printed": "4000.00", "notation": null} |
nlprog_det-setting-0072674 | <|start|><|user|>
To read 154 pages in 7 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 154
days = 7
per_day = pages // days # 22
print(per_day)
```
(Output: 22)
22 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 154 pages in 7 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 154\ndays = 7\nper_day = pages // days # 22\nprint(per_day)\n```\n(Output: 22)\n\n22 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0072675 | <|start|><|user|>
Parking is $2 per hour with a daily maximum of $20. What do 10 hours cost?<|eot|>
<|assistant|>
The charge is $20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $2 per hour with a daily maximum of $20. What do 10 hours cost?"
},
{
"role": "assistant",
"content": "The charge is $20."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0072676 | <|start|><|user|>
What commission does Noor make on $48,484 in sales at 2%?<|eot|>
<|assistant|>
```python
sales = 48484
rate = 2 / 100 # 0.02
commission = sales * rate # 969.6800000000001
print(f"{commission:.2f}")
```
This prints: 969.68
Noor earns $969.68.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Noor make on $48,484 in sales at 2%?"
},
{
"role": "assistant",
"content": "```python\nsales = 48484\nrate = 2 / 100 # 0.02\ncommission = sales * rate # 969.6800000000001\nprint(f\"{commission:.2f}\")\n```\nThis prints: 969.68\n\nNoor earns $9... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "969.68", "printed": "969.68", "notation": null} |
nlprog_det-setting-0072677 | <|start|><|user|>
How much is a $79 daily meal allowance over 4 days?<|eot|>
<|assistant|>
The allowance is $316.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much is a $79 daily meal allowance over 4 days?"
},
{
"role": "assistant",
"content": "The allowance is $316."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "316", "printed": "316", "notation": null} |
nlprog_det-setting-0072678 | <|start|><|user|>
Goods bought on October 10, 2022 carry a 24-month warranty. When does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2022, 10, 10)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(en... | chat | [
{
"role": "user",
"content": "Goods bought on October 10, 2022 carry a 24-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2022, 10, 10)\nmonths = 24\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = da... | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2024-10-10", "printed": "2024-10-10", "notation": null} |
nlprog_det-setting-0072679 | An attorney bills 1.5 hours at $350 per hour. What is the bill?
The computation:
```python
hours = 1.5
rate = 350
bill = hours * rate # 525.0
print(f"{bill:.2f}")
```
It prints 525.00, as expected.
That comes to $525.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "525.00", "printed": "525.00", "notation": null} |
nlprog_det-setting-0072681 | A settlement of $18,000 is split equally among 2 parties. How much does each party receive?
Each party receives $9,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "9000", "printed": "9000", "notation": null} |
nlprog_det-setting-0072682 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python so... | nlprog_det | setting | original | null | deterministic | [] | [] | 208 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0072683 | A shift starts at 11:00 AM and lasts 90 minutes. When does it end?
Let's compute it with Python.
start = 11 * 60 + 0
end = start + 90
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
That prints 12:30 PM.
The shift finishes at 12:30 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "12:30 PM", "printed": "12:30 PM", "notation": null} |
nlprog_det-setting-0072684 | Tomas was born on May 14, 1991. How old is Tomas on July 24, 2022?
Python:
```python
from datetime import date
born = date(1991, 5, 14) # datetime.date(1991, 5, 14)
on = date(2022, 7, 24) # datetime.date(2022, 7, 24)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 31
print(age)
```
Out:
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0072685 | How many weekdays (Monday to Friday) fall after November 15, 2027 up to and including December 3, 2027?
```python
from datetime import date, timedelta
start = date(2027, 11, 15)
end = date(2027, 12, 3)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
count ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0072686 | <|start|><|user|>
A storeroom has 1591 keyboards. The office uses 30 a day. How many are left after 5 days?<|eot|>
<|assistant|>
stock = 1591
per_day = 30
days = 5
left = stock - per_day * days # 1441
print(left)
The printout reads: 1441
1441 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 1591 keyboards. The office uses 30 a day. How many are left after 5 days?"
},
{
"role": "assistant",
"content": " stock = 1591\n per_day = 30\n days = 5\n left = stock - per_day * days # 1441\n print(left)\nThe printout reads: 1441\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "1441", "printed": "1441", "notation": null} |
nlprog_det-setting-0072687 | <|start|><|system|>
Functions:
[{"name": "sandbox_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "define_word", "description": "Return a dic... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"sandbox_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}... | nlprog_det | setting | original | null | deterministic | [] | [] | 352 | {"gold": "1161", "printed": "1161", "notation": null} |
nlprog_det-setting-0072688 | Pack A has 6 items for $3.20. Pack B has 15 items for $24.33. Which has the lower price per item?
Python, step by step:
```python
pack_a = 3.2 / 6 # 0.5333333333333333
pack_b = 24.33 / 15 # 1.6219999999999999
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Out — A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0072689 | <|start|><|user|>
Convert 4 h 35 min (the length of a workshop) to minutes.<|eot|>
<|assistant|>
hours = 4
minutes = 35
total_minutes = hours * 60 + minutes # 275
print(total_minutes)
Run output: 275
The workshop lasted 275 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 4 h 35 min (the length of a workshop) to minutes."
},
{
"role": "assistant",
"content": " hours = 4\n minutes = 35\n total_minutes = hours * 60 + minutes # 275\n print(total_minutes)\nRun output: 275\n\nThe workshop lasted 275 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "275", "printed": "275", "notation": null} |
nlprog_det-setting-0072690 | A garage charges $4 an hour, never more than $20 a day. How much for 3 hours?
Program:
```python
rate = 4
hours = 3
daily_max = 20
cost = min(rate * hours, daily_max) # 12
print(cost)
```
Running it prints: 12
Parking costs $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0072691 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
A customer buys 1 headsets at $26 each, 3 rulers at $8 each and pays with $100. How much change is due?<|eot|>
<|assistant|>
```python
items = [(1, 26), (3, 8)]
total = sum(q * p for q, p in items) # 50
paid = 100
change = paid - total # 5... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "A customer buys 1 headsets at $26 each, 3 rulers at $8 each and pays with $100. How much change is due?"
},
{
"role": "assistant",
"content": "```python\nitems = [(1, 26), (3,... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0072692 | <|start|><|system|>
Tool definitions:
[{"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
A lease runs for 36 mon... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 217 | {"gold": "103500", "printed": "103500", "notation": null} |
nlprog_det-setting-0072693 | <|start|><|user|>
Marek earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 47-hour week?<|eot|>
<|assistant|>
```python
rate = 25.0
hours = 47
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 262.5
pay = regular + overtime # 1262.5
print(f"{pay:.2f}")
```
The script ... | chat | [
{
"role": "user",
"content": "Marek earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 47-hour week?"
},
{
"role": "assistant",
"content": "```python\nrate = 25.0\nhours = 47\nregular = 40 * rate # 1000.0\novertime = (hours - 40) * rate * 1.5 # 262.5\npay = regul... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "1262.50", "printed": "1262.50", "notation": null} |
nlprog_det-setting-0072694 | Convert 3,575 USD to EUR at 1 USD = 0.92 EUR.
It converts to 3,289.00 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "3289.00", "printed": "3289.00", "notation": null} |
nlprog_det-setting-0072695 | Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 8 years. What is the straight-line depreciation per year?
Program:
```python
cost = 12000
salvage = 3000
years = 8
per_year = (cost - salvage) / years # 1125.0
print(f"{per_year:.2f}")
```
The program prints 1125.00, as expected.
$1,125.00 ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "1125.00", "printed": "1125.00", "notation": null} |
nlprog_det-setting-0072696 | Each of Jamal's swims burns 250 calories. How many calories over 4 swims?
In Python:
```python
per_session = 250
sessions = 4
total = per_session * sessions # 1000
print(total)
```
Run result — 1000
That burns 1000 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0072697 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
Counting only Monday through Friday, how many business days are there after February 23, 2022 through March 2, 2022?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2022, 2, 23)
end = date(2022, 3, 2)
count = 0... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after February 23, 2022 through March 2, 2022?"
},
{
"role": "assistant",
"content": "```python\nfrom datet... | nlprog_det | setting | original | null | deterministic | [] | [] | 169 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0072698 | <|start|><|user|>
A clerk's office charges $75 for each filing. Ana submits 8 filings. What is the total fee?<|eot|>
<|assistant|>
$600 in filing fees.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A clerk's office charges $75 for each filing. Ana submits 8 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "$600 in filing fees."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0072699 | A 176-page report must be reviewed in 4 days. How many pages a day is that, evenly?
Coded up:
```python
pages = 176
days = 4
per_day = pages // days # 44
print(per_day)
```
Printed = 44
44 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0072700 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
Flooring at $12/sq ft for a 15 ft × 18 ft room costs how much?<|eot|>
<|assistant|>
It costs $3,240.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "Flooring at $12/sq ft for a 15 ft × 18 ft room costs how much?"
},
{
"role": "assistant",
"content": "It costs $3,240."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 55 | {"gold": "3240", "printed": "3240", "notation": null} |
nlprog_det-setting-0072701 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "translat... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 335 | {"gold": "2026-12-19", "printed": "2026-12-19", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.