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-0059476 | A party has 28 days to respond to a motion served on February 8, 2025, with 3 days added because service was by mail. When is the response due?
Programmatically:
from datetime import date, timedelta
served = date(2025, 2, 8) # datetime.date(2025, 2, 8)
response_days = 28
mail_days = 3
due = served... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 166 | {"gold": "2025-03-11", "printed": "2025-03-11", "notation": null} |
nlprog_det-setting-0059477 | A $30,000 grant pays $6,000 up front and the rest in 4 equal installments. How large is each installment?
One way, in code:
```python
grant = 30000
up_front = 6000
installments = 4
each = (grant - up_front) / installments # 6000.0
print(f"{each:.2f}")
```
Console:
6000.00
$6,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0059478 | 2 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
Here is the program.
award = 72000
fee = award * 30 / 100 # 21600.0
remaining = award - fee # 50400.0
per_client = remaining / 2 # 25200.0
print(f"{per_client:.2f}")
Run it and it prints 25... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "25200.00", "printed": "25200.00", "notation": null} |
nlprog_det-setting-0059479 | At a 4% tax rate, what is the tax on $28.95?
We can compute it in Python.
price = 28.95
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 1.158
print(f"{tax:.2f}")
Printed — 1.16
The tax is $1.16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1.16", "printed": "1.16", "notation": null} |
nlprog_det-setting-0059481 | Goods bought on June 24, 2024 carry a 24-month warranty. When does it expire?
As a program:
from datetime import date
start = date(2024, 6, 24)
months = 24
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 | [] | [] | 134 | {"gold": "2026-06-24", "printed": "2026-06-24", "notation": null} |
nlprog_det-setting-0059482 | Prorate $1,800 of monthly rent for 18 days of a 30-day month.
Python, step by step:
```python
rent = 1800
days_in_month = 30
days_occupied = 18
prorated = rent * days_occupied / days_in_month # 1080.0
print(f"{prorated:.2f}")
```
Printed = 1080.00
The tenant owes $1,080.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "1080.00", "printed": "1080.00", "notation": null} |
nlprog_det-setting-0059483 | <|start|><|user|>
Diego buys 4 boxes of 24 paper reams each and gives away 4 paper reams. How many paper reams are left?<|eot|>
<|assistant|>
boxes = 4
per_box = 24
given_away = 4
left = boxes * per_box - given_away # 92
print(left)
Interpreter output: 92
That leaves 92 paper reams.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Diego buys 4 boxes of 24 paper reams each and gives away 4 paper reams. How many paper reams are left?"
},
{
"role": "assistant",
"content": " boxes = 4\n per_box = 24\n given_away = 4\n left = boxes * per_box - given_away # 92\n print(left)\nInterpr... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "92", "printed": "92", "notation": null} |
nlprog_det-setting-0059484 | <|start|><|user|>
A trial runs from May 25, 2027 to June 15, 2027, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2027, 5, 25) # datetime.date(2027, 5, 25)
last = date(2027, 6, 15) # datetime.date(2027, 6, 15)
days = (last - first).days + 1 #... | chat | [
{
"role": "user",
"content": "A trial runs from May 25, 2027 to June 15, 2027, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2027, 5, 25) # datetime.date(2027, 5, 25)\nlast = date(2027, 6, 15) # dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0059485 | A clerk's office charges $45 for each filing. Paula submits 12 filings. What is the total fee?
```python
fee = 45
filings = 12
total = fee * filings # 540
print(total)
```
Run result — 540
The filings cost $540 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "540", "printed": "540", "notation": null} |
nlprog_det-setting-0059486 | <|start|><|user|>
Express 259 hours in days and hours.<|eot|>
<|assistant|>
```python
hours = 259
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Printed = 10 days and 19 hours
259 hours is 10 days and 19 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Express 259 hours in days and hours."
},
{
"role": "assistant",
"content": "```python\nhours = 259\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nPrinted = 10 days and 19 hours\n\n259 hours is 10 days and 19 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "10 days and 19 hours", "printed": "10 days and 19 hours", "notation": null} |
nlprog_det-setting-0059487 | Which is cheaper per unit: 10 for $4.58 (A) or 30 for $16.44 (B)?
We can compute it in Python.
```python
pack_a = 4.58 / 10
pack_b = 16.44 / 30
cheaper = "A" if pack_a < pack_b else "B"
print(cheaper)
```
# run result: A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0059488 | <|start|><|user|>
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 54 hours?<|eot|>
<|assistant|>
Wen earns $1,366.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 54 hours?"
},
{
"role": "assistant",
"content": "Wen earns $1,366.40."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "1366.40", "printed": "1366.40", "notation": null} |
nlprog_det-setting-0059489 | At $24.92 an hour, what does 12 hours of work pay?
We write it as a program:
```python
rate = 24.92
hours = 12
earnings = rate * hours # 299.04
print(f"{earnings:.2f}")
```
Out:
299.04
The pay is $299.04. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "299.04", "printed": "299.04", "notation": null} |
nlprog_det-setting-0059490 | Hana drove 425 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?
Set it up in Python:
```python
miles = 425
rate = 0.58
reimbursement = miles * rate # 246.49999999999997
print(f"{reimbursement:.2f}")
```
The script prints 246.50, as expected.
The reimbursement is $246.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "246.50", "printed": "246.50", "notation": null} |
nlprog_det-setting-0059491 | Find the mean of these test scores: 96, 80 and 58.
Program:
```python
scores = [96, 80, 58]
average = sum(scores) // len(scores)
print(average)
```
Result:
78
The mean is 78. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "78", "printed": "78", "notation": null} |
nlprog_det-setting-0059492 | A 40-mile drive at a steady 40 mph takes how many minutes?
A short script:
```python
distance = 40
speed = 40
minutes = distance / speed * 60 # 60.0
print(round(minutes))
```
(Output: 60)
The trip takes 60 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0059493 | Printing costs 15 cents a page. What does it cost to print 93 copies of a 10-page handout?
Computation in Python:
```python
pages = 10
copies = 93
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 139.5
print(f"{cost:.2f}")
```
# output: 139.50
The job costs $139.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "139.50", "printed": "139.50", "notation": null} |
nlprog_det-setting-0059494 | 2 claimants share a $2,640 settlement equally. What is each share?
In code:
```python
settlement = 2640
parties = 2
share = settlement // parties # 1320
print(share)
```
(Console output: 1320)
Each share is $1,320. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "1320", "printed": "1320", "notation": null} |
nlprog_det-setting-0059495 | The meal allowance is $64 per day. What is it for 4 days?
Written as code:
```python
days = 4
meal_rate = 64
total = days * meal_rate # 256
print(total)
```
Python prints 256, as expected.
That comes to $256. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "256", "printed": "256", "notation": null} |
nlprog_det-setting-0059497 | <|start|><|user|>
20 desk lamps cost $8 apiece. With 5% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 20
unit_price = 8
subtotal = quantity * unit_price # 160
total = subtotal * (1 + 5 / 100) # 168.0
print(f"{total:.2f}")
```
Result: 168.00
The invoice total is $168.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "20 desk lamps cost $8 apiece. With 5% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 20\nunit_price = 8\nsubtotal = quantity * unit_price # 160\ntotal = subtotal * (1 + 5 / 100) # 168.0\nprint(f\"{total:.2f}\")\n```\nRes... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "168.00", "printed": "168.00", "notation": null} |
nlprog_det-setting-0059498 | Someone works 16 hours at $20.82 per hour. What are the earnings?
In Python:
```python
rate = 20.82
hours = 16
earnings = rate * hours # 333.12
print(f"{earnings:.2f}")
```
Shell output — 333.12
That earns $333.12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "333.12", "printed": "333.12", "notation": null} |
nlprog_det-setting-0059499 | <|start|><|user|>
A library charges $0.10 per book per day late. What is the fine for 3 books that are 13 days late?<|eot|>
<|assistant|>
```python
per_day = 0.1
days_late = 13
books = 3
fine = per_day * days_late * books # 3.9000000000000004
print(f"{fine:.2f}")
```
Executed, it shows: 3.90
The fine is $3.90.<|eot|>... | chat | [
{
"role": "user",
"content": "A library charges $0.10 per book per day late. What is the fine for 3 books that are 13 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.1\ndays_late = 13\nbooks = 3\nfine = per_day * days_late * books # 3.9000000000000004\nprint(f\"{fine:.2... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "3.90", "printed": "3.90", "notation": null} |
nlprog_det-setting-0059500 | <|start|><|user|>
A meal costs $103.31. How much is a 22% tip?<|eot|>
<|assistant|>
bill = 103.31
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 22.7282
print(f"{tip:.2f}")
# printed result: 22.73
The tip is $22.73.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $103.31. How much is a 22% tip?"
},
{
"role": "assistant",
"content": " bill = 103.31\n tip_rate = 22 / 100 # 0.22\n tip = bill * tip_rate # 22.7282\n print(f\"{tip:.2f}\")\n# printed result: 22.73\n\nThe tip is $22.73."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "22.73", "printed": "22.73", "notation": null} |
nlprog_det-setting-0059501 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
At $0.65 per mile, what is the reimbursement for 320 miles?<|eot|>
<|assistant|>
miles = 320
rate = 0.65
reimbursement = miles * rate # 208.0
print(f"{reimbursement:.2f}")
Execution result — 208.00
The reimbursement is $208.00.<|eot... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "At $0.65 per mile, what is the reimbursement for 320 miles?"
},
{
"role": "assistant",
"content": " miles = 320\n rate = 0.65\n reimbursement = miles * rate # 208.0\n prin... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "208.00", "printed": "208.00", "notation": null} |
nlprog_det-setting-0059502 | Monthly rent is $2,400. A tenant moves in with 18 days left in a 31-day month. What is the prorated rent?
Python does the arithmetic:
rent = 2400
days_in_month = 31
days_occupied = 18
prorated = rent * days_occupied / days_in_month # 1393.5483870967741
print(f"{prorated:.2f}")
The run gives: 1393.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "1393.55", "printed": "1393.55", "notation": null} |
nlprog_det-setting-0059503 | <|start|><|user|>
A pack of 24 folders sells for $72. What does each cost?<|eot|>
<|assistant|>
```python
total = 72
count = 24
per_item = total // count # 3
print(per_item)
```
(Printed result: 3)
The unit price is $3.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 24 folders sells for $72. What does each cost?"
},
{
"role": "assistant",
"content": "```python\ntotal = 72\ncount = 24\nper_item = total // count # 3\nprint(per_item)\n```\n(Printed result: 3)\n\nThe unit price is $3."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0059504 | Monthly rent is $2,400. A tenant moves in with 17 days left in a 30-day month. What is the prorated rent?
In code:
rent = 2400
days_in_month = 30
days_occupied = 17
prorated = rent * days_occupied / days_in_month # 1360.0
print(f"{prorated:.2f}")
This prints 1360.00.
The tenant owes $1,360.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "1360.00", "printed": "1360.00", "notation": null} |
nlprog_det-setting-0059505 | <|start|><|user|>
Starting with 1181 notebooks and using 36 per day, how many remain after 13 days?<|eot|>
<|assistant|>
stock = 1181
per_day = 36
days = 13
left = stock - per_day * days # 713
print(left)
The interpreter prints 713.
713 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1181 notebooks and using 36 per day, how many remain after 13 days?"
},
{
"role": "assistant",
"content": " stock = 1181\n per_day = 36\n days = 13\n left = stock - per_day * days # 713\n print(left)\nThe interpreter prints 713.\n\n713 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "713", "printed": "713", "notation": null} |
nlprog_det-setting-0059506 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "fetc... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source... | nlprog_det | setting | original | null | deterministic | [] | [] | 288 | {"gold": "50.16", "printed": "50.16", "notation": null} |
nlprog_det-setting-0059507 | What is a 10% tip on a $43.90 bill?
Let the code do the arithmetic:
```python
bill = 43.9
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 4.39
print(f"{tip:.2f}")
```
Running it prints 4.39.
Leave $4.39. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "4.39", "printed": "4.39", "notation": null} |
nlprog_det-setting-0059508 | A hearing is set for August 17, 2020. What day of the week is that?
```python
from datetime import date
hearing = date(2020, 8, 17) # datetime.date(2020, 8, 17)
print(hearing.strftime("%A"))
```
# program output: Monday
August 17, 2020 is a Monday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0059509 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after August 2, 2025 up to and including August 28, 2025?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2025, 8, 2)
end = date(2025, 8, 28)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after August 2, 2025 up to and including August 28, 2025?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2025, 8, 2)\nend = date(2025, 8, 28)\ncount = 0\nfor k in range(1... | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0059510 | Convert 36.2 km to meters.
Translated to Python:
```python
km = 36.2
meters = km * 1000 # 36200.0
print(round(meters))
```
Python prints: 36200
That is 36,200 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "36200", "printed": "36200", "notation": null} |
nlprog_det-setting-0059511 | How many weekdays (Monday to Friday) fall after August 6, 2026 up to and including August 19, 2026?
9 weekdays. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0059512 | <|start|><|user|>
To read 144 pages in 12 days, how many pages per day are needed?<|eot|>
<|assistant|>
12 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 144 pages in 12 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "12 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0059513 | Count 30 days forward from April 25, 2020. What date is that?
We write it as a program:
```python
from datetime import date, timedelta
start = date(2020, 4, 25) # datetime.date(2020, 4, 25)
end = start + timedelta(days=30) # datetime.date(2020, 5, 25)
print(end.isoformat())
```
Shell output — 2020-05-25
The period ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2020-05-25", "printed": "2020-05-25", "notation": null} |
nlprog_det-setting-0059514 | <|start|><|system|>
Tool definitions:
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "calculator", "description": "Executes Python code and returns stdout.", "parameters": {"type": "obj... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"calculator\", \"description\": \"Executes Py... | nlprog_det | setting | original | null | deterministic | [] | [] | 375 | {"gold": "90.00", "printed": "90.00", "notation": null} |
nlprog_det-setting-0059515 | A party has 14 days to respond to a motion served on May 6, 2021, with 3 days added because service was by mail. When is the response due?
We can compute it in Python.
```python
from datetime import date, timedelta
served = date(2021, 5, 6)
response_days = 14
mail_days = 3
due = served + timedelta(days=response_days +... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "2021-05-23", "printed": "2021-05-23", "notation": null} |
nlprog_det-setting-0059516 | <|start|><|system|>
Tool definitions:
[{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
154 copies of a 4-page packet are pr... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}... | nlprog_det | setting | original | null | deterministic | [] | [] | 233 | {"gold": "61.60", "printed": "61.60", "notation": null} |
nlprog_det-setting-0059517 | A 11 × 3 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
Script:
```python
import math
length = 11
width = 3
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 9
print(tiles)
```
Interpreter output: 9
It takes 9 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0059519 | A party has 30 days to respond to a motion served on October 20, 2018, with 3 days added because service was by mail. When is the response due?
Python:
```python
from datetime import date, timedelta
served = date(2018, 10, 20)
response_days = 30
mail_days = 3
due = served + timedelta(days=response_days + mail_days)
pr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2018-11-22", "printed": "2018-11-22", "notation": null} |
nlprog_det-setting-0059520 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
A 6-mont... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 281 | {"gold": "2028-06-19", "printed": "2028-06-19", "notation": null} |
nlprog_det-setting-0059521 | Express 142 hours in days and hours.
That is 5 days and 22 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "5 days and 22 hours", "printed": "5 days and 22 hours", "notation": null} |
nlprog_det-setting-0059522 | A count moves from 2,000 to 2,300. By what percent did it change (use a minus sign for a drop)?
Programmatically:
```python
old = 2000
new = 2300
change = (new - old) / old * 100
print(round(change))
```
stdout — 15
It changed by 15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0059523 | <|start|><|user|>
A lease runs for 36 months at $3,250 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 3250
months = 36
total = monthly_rent * months # 117000
print(total)
```
Shell output: 117000
The rent over the term is $117,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 36 months at $3,250 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 3250\nmonths = 36\ntotal = monthly_rent * months # 117000\nprint(total)\n```\nShell output: 117000\n\nThe ren... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "117000", "printed": "117000", "notation": null} |
nlprog_det-setting-0059524 | A 18-month warranty starts on May 11, 2022. On what date does it end?
from datetime import date
start = date(2022, 5, 11)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
What it prints: 2023-... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "2023-11-11", "printed": "2023-11-11", "notation": null} |
nlprog_det-setting-0059525 | At an exchange rate of 1.12 USD per EUR, how many USD is 2,318 EUR?
Here's the code.
```python
amount = 2318
rate = 1.12
converted = amount * rate # 2596.1600000000003
print(f"{converted:.2f}")
```
# result: 2596.16
That is 2,596.16 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "2596.16", "printed": "2596.16", "notation": null} |
nlprog_det-setting-0059526 | A settlement of $15,000 is split equally among 3 parties. How much does each party receive?
We write it as a program:
settlement = 15000
parties = 3
share = settlement // parties # 5000
print(share)
The program outputs 5000.
Each share is $5,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0059527 | <|start|><|user|>
Equipment costs $30,000, has a salvage value of $3,000, and a useful life of 8 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 30000
salvage = 3000
years = 8
per_year = (cost - salvage) / years # 3375.0
print(f"{per_year:.2f}")
```
It prints 3375.00, as e... | chat | [
{
"role": "user",
"content": "Equipment costs $30,000, has a salvage value of $3,000, and a useful life of 8 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 30000\nsalvage = 3000\nyears = 8\nper_year = (cost - salvage) / years # 3... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "3375.00", "printed": "3375.00", "notation": null} |
nlprog_det-setting-0059528 | <|start|><|user|>
Fixed costs are $4,000. Each unit sells for $40 and costs $32 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 4000
price = 40
variable = 32
units = math.ceil(fixed / (price - variable)) # 500
print(units)
```
(Printed result: 500)
500 units are ... | chat | [
{
"role": "user",
"content": "Fixed costs are $4,000. Each unit sells for $40 and costs $32 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 4000\nprice = 40\nvariable = 32\nunits = math.ceil(fixed / (price - variable)) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0059529 | <|start|><|system|>
You have access to these functions:
[{"name": "python_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
A quoru... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"python_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 222 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0059530 | <|start|><|user|>
How many of 38 votes make 75% (round up)?<|eot|>
<|assistant|>
```python
import math
voters = 38
needed = math.ceil(voters * 75 / 100) # 29
print(needed)
```
The run gives: 29
At least 29 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 38 votes make 75% (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 38\nneeded = math.ceil(voters * 75 / 100) # 29\nprint(needed)\n```\nThe run gives: 29\n\nAt least 29 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0059531 | Find the mean of these test scores: 88, 74, 78, 56 and 54.
Translated to Python:
```python
scores = [88, 74, 78, 56, 54]
average = sum(scores) // len(scores) # 70
print(average)
```
The program outputs 70.
The average score is 70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0059532 | 1.5 hours of work at $410 an hour: what is the total charge?
The program:
```python
hours = 1.5
rate = 410
bill = hours * rate # 615.0
print(f"{bill:.2f}")
```
Output of the run — 615.00
That comes to $615.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "615.00", "printed": "615.00", "notation": null} |
nlprog_det-setting-0059533 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
A party has 14 days to respond to a motion served on November 6, 2022, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2022, 11, 6) # datetime.date(202... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "A party has 14 days to respond to a motion served on November 6, 2022, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "```python\... | nlprog_det | setting | original | null | deterministic | [] | [] | 184 | {"gold": "2022-11-23", "printed": "2022-11-23", "notation": null} |
nlprog_det-setting-0059534 | <|start|><|user|>
A car travels 590 miles in 2 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 590
hours = 2
speed = distance / hours # 295.0
print(round(speed))
```
(Out: 295)
The average speed is 295 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 590 miles in 2 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 590\nhours = 2\nspeed = distance / hours # 295.0\nprint(round(speed))\n```\n(Out: 295)\n\nThe average speed is 295 mph."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "295", "printed": "295", "notation": null} |
nlprog_det-setting-0059535 | What does $1,000 grow to in 2 years at 4% annual compounding? The balance is $1,081.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "1081.60", "printed": "1081.60", "notation": null} |
nlprog_det-setting-0059536 | An attorney bills 8 hours at $250 per hour. What is the bill?
We write it as a program:
```python
hours = 8
rate = 250
bill = hours * rate # 2000
print(f"{bill:.2f}")
```
(stdout: 2000.00)
That comes to $2,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0059537 | Walls total 637 sq ft and each can covers 250 sq ft. How many cans should be bought?
One way, in code:
```python
import math
area = 637
coverage = 250
cans = math.ceil(area / coverage) # 3
print(cans)
```
Program output — 3
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0059538 | <|start|><|user|>
Prorate $1,800 of monthly rent for 24 days of a 30-day month.<|eot|>
<|assistant|>
The tenant owes $1,440.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $1,800 of monthly rent for 24 days of a 30-day month."
},
{
"role": "assistant",
"content": "The tenant owes $1,440.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "1440.00", "printed": "1440.00", "notation": null} |
nlprog_det-setting-0059539 | How many units at $30 each (variable cost $25) cover $2,500 of fixed costs?
```python
import math
fixed = 2500
price = 30
variable = 25
units = math.ceil(fixed / (price - variable))
print(units)
```
Out = 500
Break-even is 500 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0059540 | To read 110 pages in 11 days, how many pages per day are needed?
Let the code do the arithmetic:
```python
pages = 110
days = 11
per_day = pages // days # 10
print(per_day)
```
Executing it gives 10, as expected.
That is 10 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0059541 | <|start|><|user|>
Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 10 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
Depreciation is $1,600.00 per year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 10 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "Depreciation is $1,600.00 per year."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 59 | {"gold": "1600.00", "printed": "1600.00", "notation": null} |
nlprog_det-setting-0059544 | A quorum is 3/5 of the 42 members, rounded up. How many members make a quorum?
We write it as a program:
```python
import math
members = 42
quorum = math.ceil(members * 3 / 5)
print(quorum)
```
stdout: 26
That is 26 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0059545 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
Water costs $15 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 25,000 gallons?<|eot|>
<|assistant|>
base = 15
rate = 4.75
used = 25
free = 2
bill = base + rate * max(0, used - free) # 124.25
print(f"{bill:... | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "Water costs $15 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 25,000 gallons?"
},
{
"role": "assistant",
"content": " base = 15\n rate = 4.75\n used = 25\... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "124.25", "printed": "124.25", "notation": null} |
nlprog_det-setting-0059546 | At 1% a month (simple), what interest builds on $4,000 over 2 months?
Here's the code.
```python
balance = 4000
monthly_rate = 1 / 100 # 0.01
months = 2
interest = balance * monthly_rate * months # 80.0
print(f"{interest:.2f}")
```
This prints: 80.00
The interest is $80.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "80.00", "printed": "80.00", "notation": null} |
nlprog_det-setting-0059547 | 4 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?
Code:
```python
award = 72000
fee = award * 25 / 100 # 18000.0
remaining = award - fee # 54000.0
per_client = remaining / 4 # 13500.0
print(f"{per_client:.2f}")
```
The program prints 13500.00.
Each client ge... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "13500.00", "printed": "13500.00", "notation": null} |
nlprog_det-setting-0059549 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
What commission does Olga make on $7,309 in sales at 6%?<|eot|>
<|assistant|>
```python
sales = 7309
rate = 6 / 100 # 0.06
commission = sales * rate # 438.53999999999996
print(f"{commission:.2f}")
```
Shell output — 438.54
Olga earns $438.54.<|... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "What commission does Olga make on $7,309 in sales at 6%?"
},
{
"role": "assistant",
"content": "```python\nsales = 7309\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 438.539... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "438.54", "printed": "438.54", "notation": null} |
nlprog_det-setting-0059550 | Convert 3,905 USD to CAD at 1 USD = 1.08 CAD.
Python makes this quick:
```python
amount = 3905
rate = 1.08
converted = amount * rate # 4217.400000000001
print(f"{converted:.2f}")
```
This prints: 4217.40
It converts to 4,217.40 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "4217.40", "printed": "4217.40", "notation": null} |
nlprog_det-setting-0059551 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "code_runner", "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"]}}]<|eot|>
<|user|>
A ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"code_runner\", \"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 | [] | [] | 237 | {"gold": "30.00", "printed": "30.00", "notation": null} |
nlprog_det-setting-0059552 | Quinn earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 46-hour week?
The Python version:
```python
rate = 16.0
hours = 46
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 144.0
pay = regular + overtime # 784.0
print(f"{pay:.2f}")
```
This prints 784.00, as expected... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "784.00", "printed": "784.00", "notation": null} |
nlprog_det-setting-0059553 | <|start|><|user|>
At an exchange rate of 0.92 USD per GBP, how many USD is 321 GBP?<|eot|>
<|assistant|>
It converts to 295.32 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 0.92 USD per GBP, how many USD is 321 GBP?"
},
{
"role": "assistant",
"content": "It converts to 295.32 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "295.32", "printed": "295.32", "notation": null} |
nlprog_det-setting-0059554 | Someone works 36 hours at $30.78 per hour. What are the earnings?
```python
rate = 30.78
hours = 36
earnings = rate * hours # 1108.08
print(f"{earnings:.2f}")
```
Result:
1108.08
That earns $1,108.08. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "1108.08", "printed": "1108.08", "notation": null} |
nlprog_det-setting-0059555 | <|start|><|user|>
Attendance was 16 out of 20. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 16
total = 20
percent = present / total * 100 # 80.0
print(round(percent, 1))
```
# printed: 80.0
80.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 16 out of 20. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 16\ntotal = 20\npercent = present / total * 100 # 80.0\nprint(round(percent, 1))\n```\n# printed: 80.0\n\n80.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "80.0", "printed": "80.0", "notation": null} |
nlprog_det-setting-0059556 | 8 boxes hold 12 hard drives each. After 3 are handed out, how many are left? 93 hard drives are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "93", "printed": "93", "notation": null} |
nlprog_det-setting-0059557 | <|start|><|user|>
A settlement of $36,000 is split equally among 4 parties. How much does each party receive?<|eot|>
<|assistant|>
settlement = 36000
parties = 4
share = settlement // parties # 9000
print(share)
The script prints 9000.
Each share is $9,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $36,000 is split equally among 4 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": " settlement = 36000\n parties = 4\n share = settlement // parties # 9000\n print(share)\nThe script prints 9000.\n\nEach s... | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "9000", "printed": "9000", "notation": null} |
nlprog_det-setting-0059558 | With $20,000 in costs and $22,500 in revenue, what percent of revenue is profit? Round to one decimal.
Python version:
revenue = 22500
costs = 20000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 11.11111111111111
print(round(margin, 1))
Out = 11.1
Profit is 11.1% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "11.1", "printed": "11.1", "notation": null} |
nlprog_det-setting-0059559 | Notice was given on December 28, 2018. The notice period is 14 days. When does it run out?
Here's the code.
```python
from datetime import date, timedelta
start = date(2018, 12, 28) # datetime.date(2018, 12, 28)
end = start + timedelta(days=14) # datetime.date(2019, 1, 11)
print(end.isoformat())
```
Output — 2019-01... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2019-01-11", "printed": "2019-01-11", "notation": null} |
nlprog_det-setting-0059560 | <|start|><|user|>
Which is cheaper per unit: 10 for $6.72 (A) or 24 for $14.47 (B)?<|eot|>
<|assistant|>
pack_a = 6.72 / 10 # 0.6719999999999999
pack_b = 14.47 / 24 # 0.6029166666666667
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
Execution result: B
B has the lower unit price.<|eo... | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 10 for $6.72 (A) or 24 for $14.47 (B)?"
},
{
"role": "assistant",
"content": " pack_a = 6.72 / 10 # 0.6719999999999999\n pack_b = 14.47 / 24 # 0.6029166666666667\n cheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\n print(... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0059561 | A lease runs for 12 months at $3,250 per month. How much rent is paid over the whole term?
Code:
```python
monthly_rent = 3250
months = 12
total = monthly_rent * months # 39000
print(total)
```
Execution prints 39000, as expected.
In total, $39,000 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "39000", "printed": "39000", "notation": null} |
nlprog_det-setting-0059562 | A 18-month warranty starts on March 11, 2026. On what date does it end?
As a program:
from datetime import date
start = date(2026, 3, 11)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
Inter... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2027-09-11", "printed": "2027-09-11", "notation": null} |
nlprog_det-setting-0059563 | $2,000 is invested at 5% compounded yearly. What is it worth after 3 years? It is worth $2,315.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "2315.25", "printed": "2315.25", "notation": null} |
nlprog_det-setting-0059564 | <|start|><|system|>
You have access to these functions:
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}
{"name": "compute", "description": "Executes Python code and returns s... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"compu... | nlprog_det | setting | original | null | deterministic | [] | [] | 270 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0059566 | The landlord deducts $200 and $200 from a $800 deposit. What is returned to the tenant?
Coded up:
```python
deposit = 800
deductions = [200, 200]
refund = deposit - sum(deductions) # 400
print(refund)
```
# console output: 400
$400 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0059567 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Rosa and Malik share $2,340 in the ratio 1:3. How much does Rosa get?<|eot|>
<|assistant|>
```python
total = 2340
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
```
This prints 585, as expected.
Rosa's share is $5... | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Rosa and Malik share $2,340 in the ratio 1:3. How much does Rosa get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 2340\nparts_a = 1\nparts_b = 3\nshare_a = total * parts_a // ... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "585", "printed": "585", "notation": null} |
nlprog_det-setting-0059568 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
Split $4,008 between Bruna and Femi in the ratio 3 to 5. What is Bruna's share?<|eot|>
<|assistant|>
total = 4008
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1503
print(share_a)
Run it and it ... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "Split $4,008 between Bruna and Femi in the ratio 3 to 5. What is Bruna's share?"
},
{
"role": "assistant",
"content": " total = 4008\n parts_a = 3\n parts_b = 5\n sha... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "1503", "printed": "1503", "notation": null} |
nlprog_det-setting-0059569 | <|start|><|system|>
You may call the tools below.
{"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
Each ... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 218 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0059570 | From a $5,000 retainer, 14 hours at $200/hour have been drawn. What remains?
Python makes this quick:
```python
retainer = 5000
hours = 14
rate = 200
left = retainer - hours * rate # 2200
print(left)
```
Run output: 2200
The remaining balance is $2,200. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "2200", "printed": "2200", "notation": null} |
nlprog_det-setting-0059571 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
Straight-line depreciation: cost $30,000, salvage $0, 10 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 30000
salvage = 0
years = 10
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
```
Printed result: 3000.00
$3,000.00 a year.<|... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "Straight-line depreciation: cost $30,000, salvage $0, 10 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 30000\nsalvage = 0\nyears = 10\nper_year = (cost - sa... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0059572 | <|start|><|user|>
One can of paint covers 250 square feet. How many cans are needed for 212 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 212
coverage = 250
cans = math.ceil(area / coverage) # 1
print(cans)
```
(Console output: 1)
Buy 1 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 250 square feet. How many cans are needed for 212 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 212\ncoverage = 250\ncans = math.ceil(area / coverage) # 1\nprint(cans)\n```\n(Console output: 1)\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0059573 | A library charges $0.20 per book per day late. What is the fine for 2 books that are 15 days late?
The fine is $6.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "6.00", "printed": "6.00", "notation": null} |
nlprog_det-setting-0059574 | A seminar starts at 4:45 PM and lasts 50 minutes. When does it end?
start = 16 * 60 + 45
end = start + 50
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
The interpreter prints 5:35 PM.
The seminar finishes at 5:35 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "5:35 PM", "printed": "5:35 PM", "notation": null} |
nlprog_det-setting-0059575 | From a $2,500 retainer, 10 hours at $250/hour have been drawn. What remains?
The remaining balance is $0. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "0", "printed": "0", "notation": null} |
nlprog_det-setting-0059576 | <|start|><|user|>
3 bike rides at 200 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 200
sessions = 3
total = per_session * sessions # 600
print(total)
```
What it prints — 600
That burns 600 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 bike rides at 200 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 200\nsessions = 3\ntotal = per_session * sessions # 600\nprint(total)\n```\nWhat it prints — 600\n\nThat burns 600 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0059577 | A 36-month warranty starts on December 23, 2027. On what date does it end?
Set it up in Python:
from datetime import date
start = date(2027, 12, 23)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoform... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "2030-12-23", "printed": "2030-12-23", "notation": null} |
nlprog_det-setting-0059578 | 2 books come back 15 days late, at $0.25 a day each. What is the fine?
Code:
```python
per_day = 0.25
days_late = 15
books = 2
fine = per_day * days_late * books # 7.5
print(f"{fine:.2f}")
```
Running this gives: 7.50
$7.50 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "7.50", "printed": "7.50", "notation": null} |
nlprog_det-setting-0059579 | Water costs $12 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 8,000 gallons?
Translated to Python:
```python
base = 12
rate = 4.75
used = 8
free = 0
bill = base + rate * max(0, used - free) # 50.0
print(f"{bill:.2f}")
```
Result — 50.00
$50.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "50.00", "printed": "50.00", "notation": null} |
nlprog_det-setting-0059580 | A library charges $0.50 per book per day late. What is the fine for 4 books that are 11 days late?
Python does the arithmetic:
```python
per_day = 0.5
days_late = 11
books = 4
fine = per_day * days_late * books # 22.0
print(f"{fine:.2f}")
```
(Run result: 22.00)
$22.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "22.00", "printed": "22.00", "notation": null} |
nlprog_det-setting-0059581 | A jacket costs $75. It is 10% off. What is the sale price?
Set it up in Python:
```python
price = 75
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 67.5
print(f"{sale_price:.2f}")
```
What it prints: 67.50
The sale price is $67.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "67.50", "printed": "67.50", "notation": null} |
nlprog_det-setting-0059582 | <|start|><|user|>
A garage charges $5 an hour, never more than $15 a day. How much for 1 hours?<|eot|>
<|assistant|>
```python
rate = 5
hours = 1
daily_max = 15
cost = min(rate * hours, daily_max) # 5
print(cost)
```
The code prints: 5
The charge is $5.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $5 an hour, never more than $15 a day. How much for 1 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 5\nhours = 1\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 5\nprint(cost)\n```\nThe code prints: 5\n\nThe charge is $5."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "5", "printed": "5", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.