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-0081824 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
How many 2-foot square tiles cover a 7 ft by 10 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 7
width = 10
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 18
print(tiles)
```
The program outputs: 18
18 ... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "How many 2-foot square tiles cover a 7 ft by 10 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 7\nwidth = 10\ntile = 2\ntiles = math... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0081825 | <|start|><|user|>
A court charges $5 per request plus $0.25 per page after the first 20 pages. What does a 51-page copy cost?<|eot|>
<|assistant|>
```python
pages = 51
base = 5
per_page = 0.25
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 12.75
print(f"{cost:.2f}")
```
Printed = 12.75
The tota... | chat | [
{
"role": "user",
"content": "A court charges $5 per request plus $0.25 per page after the first 20 pages. What does a 51-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 51\nbase = 5\nper_page = 0.25\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page ... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "12.75", "printed": "12.75", "notation": null} |
nlprog_det-setting-0081826 | A meal costs $85.20. How much is a 10% tip?
```python
bill = 85.2
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 8.520000000000001
print(f"{tip:.2f}")
```
Run result — 8.52
The tip is $8.52. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "8.52", "printed": "8.52", "notation": null} |
nlprog_det-setting-0081827 | <|start|><|user|>
Monthly: $25. Annual: $270. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 25
yearly = 270
savings = monthly * 12 - yearly # 30
print(savings)
```
Console:
30
$30 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $25. Annual: $270. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 25\nyearly = 270\nsavings = monthly * 12 - yearly # 30\nprint(savings)\n```\nConsole:\n30\n\n$30 is saved."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0081828 | Copies cost $15 plus $0.50 for each page beyond 10. How much for 78 pages?
Python, step by step:
```python
pages = 78
base = 15
per_page = 0.5
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 49.0
print(f"{cost:.2f}")
```
Printed: 49.00
The copy costs $49.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "49.00", "printed": "49.00", "notation": null} |
nlprog_det-setting-0081829 | <|start|><|system|>
Tools (call with JSON):
{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
A car travels 352 miles in 2 hours... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\... | nlprog_det | setting | original | null | deterministic | [] | [] | 203 | {"gold": "176", "printed": "176", "notation": null} |
nlprog_det-setting-0081830 | <|start|><|user|>
If a 4-year limitations period starts on August 22, 2012, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2012, 8, 22) # datetime.date(2012, 8, 22)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2016, 8, 22)
print(expires.isof... | chat | [
{
"role": "user",
"content": "If a 4-year limitations period starts on August 22, 2012, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2012, 8, 22) # datetime.date(2012, 8, 22)\nyears = 4\nexpires = accrued.replace(year=accrued.year... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2016-08-22", "printed": "2016-08-22", "notation": null} |
nlprog_det-setting-0081831 | Under a 35% contingency agreement, what fee is owed on a $60,000 award?
```python
recovery = 60000
rate = 35 / 100
fee = recovery * rate
print(f"{fee:.2f}")
```
Program output — 21000.00
The lawyer's fee comes to $21,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "21000.00", "printed": "21000.00", "notation": null} |
nlprog_det-setting-0081832 | What is 30 degrees Celsius in Fahrenheit? It equals 86 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0081833 | A hearing lasted 1 hours and 46 minutes. How many minutes is that?
The program:
hours = 1
minutes = 46
total_minutes = hours * 60 + minutes # 106
print(total_minutes)
When run, it prints 106.
That is 106 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "106", "printed": "106", "notation": null} |
nlprog_det-setting-0081834 | <|start|><|system|>
You may call the tools below.
[{"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "business_days", "descripti... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 316 | {"gold": "10.25", "printed": "10.25", "notation": null} |
nlprog_det-setting-0081835 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
At 2% a month (simple), what interest builds on $1,000 over 5 months?<|eot|>
<|assistant|>
```python
balance = 1000
monthly_rate = 2 / 100 # 0.02
months = 5
interest = balance * monthly_rate * months # 100.0
print(f"{interest:.2f}")
```
Run it and it print... | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "At 2% a month (simple), what interest builds on $1,000 over 5 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 1000\nmonthly_rate = 2 / 100 # 0.02\nmonths = 5\ninterest = b... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "100.00", "printed": "100.00", "notation": null} |
nlprog_det-setting-0081836 | <|start|><|user|>
Under a 35% contingency agreement, what fee is owed on a $90,000 award?<|eot|>
<|assistant|>
```python
recovery = 90000
rate = 35 / 100 # 0.35
fee = recovery * rate # 31499.999999999996
print(f"{fee:.2f}")
```
The run gives 31500.00.
The lawyer's fee comes to $31,500.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 35% contingency agreement, what fee is owed on a $90,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 90000\nrate = 35 / 100 # 0.35\nfee = recovery * rate # 31499.999999999996\nprint(f\"{fee:.2f}\")\n```\nThe run gives 31500.00.\n\nT... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "31500.00", "printed": "31500.00", "notation": null} |
nlprog_det-setting-0081838 | Counting the first and last day, how many days are there from January 26, 2020 through February 8, 2020?
Coded up:
```python
from datetime import date
first = date(2020, 1, 26) # datetime.date(2020, 1, 26)
last = date(2020, 2, 8) # datetime.date(2020, 2, 8)
days = (last - first).days + 1 # 14
print(days)
```
The co... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0081839 | Starting with 662 binders and using 11 per day, how many remain after 5 days?
Python, step by step:
```python
stock = 662
per_day = 11
days = 5
left = stock - per_day * days # 607
print(left)
```
Run output — 607
607 binders are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "607", "printed": "607", "notation": null} |
nlprog_det-setting-0081840 | <|start|><|user|>
Convert -15 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = -15
fahrenheit = celsius * 9 / 5 + 32 # 5.0
print(round(fahrenheit))
```
The code prints: 5
That is 5 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert -15 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = -15\nfahrenheit = celsius * 9 / 5 + 32 # 5.0\nprint(round(fahrenheit))\n```\nThe code prints: 5\n\nThat is 5 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0081841 | 4 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
Python:
award = 96000
fee = award * 30 / 100 # 28800.0
remaining = award - fee # 67200.0
per_client = remaining / 4 # 16800.0
print(f"{per_client:.2f}")
It prints: 16800.00
Each share is $... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "16800.00", "printed": "16800.00", "notation": null} |
nlprog_det-setting-0081842 | 3 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
Python code:
award = 30000
fee = award * 30 / 100 # 9000.0
remaining = award - fee # 21000.0
per_client = remaining / 3 # 7000.0
print(f"{per_client:.2f}")
The code prints: 7000.00
Each cl... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "7000.00", "printed": "7000.00", "notation": null} |
nlprog_det-setting-0081843 | Kemal drove 590 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?
We can compute it in Python.
```python
miles = 590
rate = 0.58
reimbursement = miles * rate
print(f"{reimbursement:.2f}")
```
Console:
342.20
Kemal is owed $342.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "342.20", "printed": "342.20", "notation": null} |
nlprog_det-setting-0081844 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
Fixed costs are $1,200. Each unit sells for $30 and costs $26 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
300 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "Fixed costs are $1,200. Each unit sells for $30 and costs $26 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "300 units are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 57 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0081845 | <|start|><|user|>
A $6,000 loan carries 6% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
principal = 6000
annual_rate = 6 / 100 # 0.06
months = 12
interest = principal * annual_rate * months / 12 # 360.0
... | chat | [
{
"role": "user",
"content": "A $6,000 loan carries 6% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": " principal = 6000\n annual_rate = 6 / 100 # 0.06\n months = 12\n in... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "530.00", "printed": "530.00", "notation": null} |
nlprog_det-setting-0081846 | Each of Eamon's bike rides burns 400 calories. How many calories over 6 bike rides?
```python
per_session = 400
sessions = 6
total = per_session * sessions # 2400
print(total)
```
Output:
2400
That burns 2400 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "2400", "printed": "2400", "notation": null} |
nlprog_det-setting-0081847 | How long, in days, is it from February 2, 2023 until February 21, 2023?
Python, step by step:
```python
from datetime import date
first = date(2023, 2, 2) # datetime.date(2023, 2, 2)
second = date(2023, 2, 21) # datetime.date(2023, 2, 21)
print((second - first).days)
```
The program outputs 19.
It is 19 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0081848 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
Yara and Ada share $3,150 in the ratio 2:5. How much does Yara get?<|eot|>
<|assistant|>
Yara's share is $900.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "Yara and Ada share $3,150 in the ratio 2:5. How much does Yara get?"
},
{
"role": "assistant",
"content": "Yara's share is $900."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 56 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0081849 | Sales went from 400 to 560. What is the percent change?
Python version:
old = 400
new = 560
change = (new - old) / old * 100 # 40.0
print(round(change))
Shell output — 40
The change is 40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0081850 | How many days are there from August 18, 2023 to May 19, 2024?
Script:
```python
from datetime import date
first = date(2023, 8, 18) # datetime.date(2023, 8, 18)
second = date(2024, 5, 19) # datetime.date(2024, 5, 19)
print((second - first).days)
```
Run it and it prints: 275
There are 275 days between the two dates... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "275", "printed": "275", "notation": null} |
nlprog_det-setting-0081851 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 332 | {"gold": "34500", "printed": "34500", "notation": null} |
nlprog_det-setting-0081853 | Tobias's scores were 100, 92, 52 and 100. What is the average score?
Computing it:
```python
scores = [100, 92, 52, 100]
average = sum(scores) // len(scores) # 86
print(average)
```
Output:
86
The mean is 86. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0081854 | Convert 1 h 6 min (the length of a workshop) to minutes. That is 66 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0081855 | Count the days between August 23, 2020 and August 14, 2021.
Set it up in Python:
```python
from datetime import date
first = date(2020, 8, 23)
second = date(2021, 8, 14)
print((second - first).days)
```
# printed: 356
There are 356 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "356", "printed": "356", "notation": null} |
nlprog_det-setting-0081856 | A count moves from 2,000 to 1,800. By what percent did it change (use a minus sign for a drop)?
It changed by -10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "-10", "printed": "-10", "notation": null} |
nlprog_det-setting-0081857 | With 40% off, what does a $80 printer cost?
Code:
```python
price = 80
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 48.0
print(f"{sale_price:.2f}")
```
Run it and it prints: 48.00
The sale price is $48.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "48.00", "printed": "48.00", "notation": null} |
nlprog_det-setting-0081858 | <|start|><|user|>
Convert 20.4 km to meters.<|eot|>
<|assistant|>
```python
km = 20.4
meters = km * 1000 # 20400.0
print(round(meters))
```
Python prints 20400, as expected.
20,400 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 20.4 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 20.4\nmeters = km * 1000 # 20400.0\nprint(round(meters))\n```\nPython prints 20400, as expected.\n\n20,400 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "20400", "printed": "20400", "notation": null} |
nlprog_det-setting-0081859 | Convert 2 h 51 min (the length of a workshop) to minutes.
Python:
```python
hours = 2
minutes = 51
total_minutes = hours * 60 + minutes # 171
print(total_minutes)
```
When run, it prints 171.
The workshop lasted 171 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "171", "printed": "171", "notation": null} |
nlprog_det-setting-0081860 | Scale 240 g of flour from 8 servings to 2 servings.
As a program:
```python
grams = 240
serves = 8
needed_for = 2
scaled = grams * needed_for // serves # 60
print(scaled)
```
stdout = 60
60 grams of flour are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0081861 | Attendance was 77 out of 80. Express it as a percent.
A short script:
```python
present = 77
total = 80
percent = present / total * 100
print(round(percent, 1))
```
Run output — 96.2
Attendance was 96.2%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "96.2", "printed": "96.2", "notation": null} |
nlprog_det-setting-0081862 | A settlement of $36,000 is split equally among 6 parties. How much does each party receive?
Each share is $6,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "6000", "printed": "6000", "notation": null} |
nlprog_det-setting-0081863 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
How many 2-foot square tiles cover a 15 ft by 15 ft floor (round up)?<|eot|>
<|assistant|>
import math
length = 15
width = 15
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 57
print(tiles)
Executing it gives: 57
It... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "How many 2-foot square tiles cover a 15 ft by 15 ft floor (round up)?"
},
{
"role": "assistant",
"content": " import math\n length = 15\n width = 15\n tile = 2\n tiles = mat... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "57", "printed": "57", "notation": null} |
nlprog_det-setting-0081864 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
5 claimants share a $525 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 525
parties = 5
share = settlement // parties # 105
print(share)
```
Output — 105
Each party receives $105.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "5 claimants share a $525 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 525\nparties = 5\nshare = settlement // parties # 105\nprint(sh... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "105", "printed": "105", "notation": null} |
nlprog_det-setting-0081865 | An attorney bills 1.5 hours at $300 per hour. What is the bill?
Set it up in Python:
```python
hours = 1.5
rate = 300
bill = hours * rate # 450.0
print(f"{bill:.2f}")
```
The script prints: 450.00
The bill is $450.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0081866 | <|start|><|user|>
A lawyer's fee is 30% of a $25,000 recovery. How large is the fee?<|eot|>
<|assistant|>
The lawyer's fee comes to $7,500.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 30% of a $25,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "The lawyer's fee comes to $7,500.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0081867 | <|start|><|user|>
A 120-day notice period begins on December 23, 2019. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2019, 12, 23) # datetime.date(2019, 12, 23)
end = start + timedelta(days=120) # datetime.date(2020, 4, 21)
print(end.isoformat())
```
Shell ... | chat | [
{
"role": "user",
"content": "A 120-day notice period begins on December 23, 2019. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2019, 12, 23) # datetime.date(2019, 12, 23)\nend = start + timedelta(days=120) # dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "2020-04-21", "printed": "2020-04-21", "notation": null} |
nlprog_det-setting-0081868 | Under a 25% contingency agreement, what fee is owed on a $40,000 award?
Python code:
```python
recovery = 40000
rate = 25 / 100 # 0.25
fee = recovery * rate # 10000.0
print(f"{fee:.2f}")
```
On running, it outputs 10000.00.
The fee is $10,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0081869 | Divide 92 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?
One way, in code:
```python
total = 92
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
stdout:
23 each, 0 left over
The answer: 23 each, 0 left... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "23 each, 0 left over", "printed": "23 each, 0 left over", "notation": null} |
nlprog_det-setting-0081870 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
6 friends split a $180 bill plus a 20% tip evenly. How much does each pay?<|eot|>
<|assistant|>
```python
bill = 180
tip_rate = 20 / 100 # 0.2
people = 6
each = bill * (1 + tip_rate) / people # 36.0
print(f"{each:.2f}")
```
This prints: 36.00
E... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "6 friends split a $180 bill plus a 20% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "```python\nbill = 180\ntip_rate = 20 / 100 # 0.2\npeople = 6\neach... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0081871 | A meal costs $71.51. How much is a 10% tip?
As a program:
```python
bill = 71.51
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 7.151000000000001
print(f"{tip:.2f}")
```
It prints: 7.15
The tip is $7.15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "7.15", "printed": "7.15", "notation": null} |
nlprog_det-setting-0081872 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
A 19 × 8 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
import math
length = 19
width = 8
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 38
print(tiles)
Output of the run — 38
... | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "A 19 × 8 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": " import math\n length = 19\n width = 8\n tile = 2\n tiles = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0081873 | A $9,000 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Python makes this quick:
principal = 9000
annual_rate = 6 / 100 # 0.06
months = 36
interest = principal * annual_rate * months / 12 # 1620.0
payment =... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "295.00", "printed": "295.00", "notation": null} |
nlprog_det-setting-0081874 | Filing fees are $90 per document. What do 5 filings cost?
Here's the code.
```python
fee = 90
filings = 5
total = fee * filings # 450
print(total)
```
Output: 450
The total fee is $450. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "450", "printed": "450", "notation": null} |
nlprog_det-setting-0081875 | Fines run at $25 per day up to a maximum of $2,500. How much after 5 days?
Programmatically:
per_day = 25
days = 5
cap = 2500
fine = min(per_day * days, cap) # 125
print(fine)
(Output: 125)
$125 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "125", "printed": "125", "notation": null} |
nlprog_det-setting-0081876 | <|start|><|user|>
Kemal was born on August 2, 1958. How old is Kemal on October 12, 2025?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1958, 8, 2) # datetime.date(1958, 8, 2)
on = date(2025, 10, 12) # datetime.date(2025, 10, 12)
age = on.year - born.year - ((on.month, on.day) < (born.month, bo... | chat | [
{
"role": "user",
"content": "Kemal was born on August 2, 1958. How old is Kemal on October 12, 2025?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1958, 8, 2) # datetime.date(1958, 8, 2)\non = date(2025, 10, 12) # datetime.date(2025, 10, 12)\nage = o... | nlprog_det | setting | original | null | deterministic | [] | [] | 159 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0081877 | A water bill is $12 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 6 thousand gallons?
In code:
```python
base = 12
rate = 4.2
used = 6
free = 2
bill = base + rate * max(0, used - free) # 28.8
print(f"{bill:.2f}")
```
Output of the run: 28.80
The bill is $28.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "28.80", "printed": "28.80", "notation": null} |
nlprog_det-setting-0081878 | Convert 4 h 10 min (the length of a workshop) to minutes.
Python version:
```python
hours = 4
minutes = 10
total_minutes = hours * 60 + minutes # 250
print(total_minutes)
```
Python prints 250.
That is 250 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0081879 | <|start|><|user|>
Mateo was born on December 14, 1955. How old is Mateo on May 20, 2029?<|eot|>
<|assistant|>
from datetime import date
born = date(1955, 12, 14) # datetime.date(1955, 12, 14)
on = date(2029, 5, 20) # datetime.date(2029, 5, 20)
age = on.year - born.year - ((on.month, on.day) < (born.mo... | chat | [
{
"role": "user",
"content": "Mateo was born on December 14, 1955. How old is Mateo on May 20, 2029?"
},
{
"role": "assistant",
"content": " from datetime import date\n born = date(1955, 12, 14) # datetime.date(1955, 12, 14)\n on = date(2029, 5, 20) # datetime.date(2029, 5, 20)\n a... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "73", "printed": "73", "notation": null} |
nlprog_det-setting-0081880 | A 5% increase is applied to $1,250 monthly rent. What is the new amount?
A Python solution:
```python
rent = 1250
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 1312.5
print(f"{new_rent:.2f}")
```
Result = 1312.50
The new rent is $1,312.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "1312.50", "printed": "1312.50", "notation": null} |
nlprog_det-setting-0081881 | <|start|><|user|>
A 75-mile drive at a steady 45 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 75
speed = 45
minutes = distance / speed * 60 # 100.0
print(round(minutes))
```
Running it prints 100.
The trip takes 100 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 75-mile drive at a steady 45 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 75\nspeed = 45\nminutes = distance / speed * 60 # 100.0\nprint(round(minutes))\n```\nRunning it prints 100.\n\nThe trip takes 100 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0081882 | <|start|><|user|>
Convert 5,800 USD to EUR at 1 USD = 0.74 EUR.<|eot|>
<|assistant|>
```python
amount = 5800
rate = 0.74
converted = amount * rate # 4292.0
print(f"{converted:.2f}")
```
Output:
4292.00
That is 4,292.00 EUR.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 5,800 USD to EUR at 1 USD = 0.74 EUR."
},
{
"role": "assistant",
"content": "```python\namount = 5800\nrate = 0.74\nconverted = amount * rate # 4292.0\nprint(f\"{converted:.2f}\")\n```\nOutput:\n4292.00\n\nThat is 4,292.00 EUR."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "4292.00", "printed": "4292.00", "notation": null} |
nlprog_det-setting-0081883 | Monthly: $25. Annual: $252. What is saved per year by paying annually?
The program:
```python
monthly = 25
yearly = 252
savings = monthly * 12 - yearly # 48
print(savings)
```
On running, it outputs: 48
The annual plan saves $48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0081884 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "translate", "des... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 308 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0081885 | <|start|><|user|>
Each storage box holds 12 files. How many boxes are needed for 388 files?<|eot|>
<|assistant|>
import math
files = 388
per_box = 12
boxes = math.ceil(files / per_box) # 33
print(boxes)
The script prints: 33
33 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 12 files. How many boxes are needed for 388 files?"
},
{
"role": "assistant",
"content": " import math\n files = 388\n per_box = 12\n boxes = math.ceil(files / per_box) # 33\n print(boxes)\nThe script prints: 33\n\n33 boxes are... | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0081886 | Marek was born on February 16, 2008. How old is Marek on September 17, 2022?
Here is a short program for it.
```python
from datetime import date
born = date(2008, 2, 16) # datetime.date(2008, 2, 16)
on = date(2022, 9, 17) # datetime.date(2022, 9, 17)
age = on.year - born.year - ((on.month, on.day) < (born.month, bor... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0081887 | A hall has 21 rows of 24 seats, and 16 seats are empty. How many people are seated?
A short script:
```python
rows = 21
per_row = 24
empty = 16
seated = rows * per_row - empty # 488
print(seated)
```
Run it and it prints 488.
488 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "488", "printed": "488", "notation": null} |
nlprog_det-setting-0081888 | <|start|><|user|>
With 25% off, what does a $40 printer cost?<|eot|>
<|assistant|>
```python
price = 40
discount = 25 / 100 # 0.25
sale_price = price * (1 - discount) # 30.0
print(f"{sale_price:.2f}")
```
Running this gives: 30.00
The sale price is $30.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 25% off, what does a $40 printer cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 40\ndiscount = 25 / 100 # 0.25\nsale_price = price * (1 - discount) # 30.0\nprint(f\"{sale_price:.2f}\")\n```\nRunning this gives: 30.00\n\nThe sale price is $30.... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "30.00", "printed": "30.00", "notation": null} |
nlprog_det-setting-0081889 | <|start|><|user|>
Under a 40% contingency agreement, what fee is owed on a $90,000 award?<|eot|>
<|assistant|>
The fee is $36,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 40% contingency agreement, what fee is owed on a $90,000 award?"
},
{
"role": "assistant",
"content": "The fee is $36,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "36000.00", "printed": "36000.00", "notation": null} |
nlprog_det-setting-0081890 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after January 18, 2023 through February 13, 2023?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2023, 1, 18)
end = date(2023, 2, 13)
count = 0
for k in range(1, (end - start).days + 1):
if (sta... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after January 18, 2023 through February 13, 2023?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2023, 1, 18)\nend = date(2023, 2, 13)\ncount ... | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0081891 | <|start|><|system|>
Tool definitions:
{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Copies cost $15 plus $0.10 for each... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"calculator\", \"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 | [] | [] | 237 | {"gold": "16.80", "printed": "16.80", "notation": null} |
nlprog_det-setting-0081892 | <|start|><|user|>
What does $10,000 grow to in 4 years at 4% annual compounding?<|eot|>
<|assistant|>
It is worth $11,698.59.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $10,000 grow to in 4 years at 4% annual compounding?"
},
{
"role": "assistant",
"content": "It is worth $11,698.59."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "11698.59", "printed": "11698.59", "notation": null} |
nlprog_det-setting-0081893 | How long, in days, is it from January 14, 2028 until January 7, 2029? It is 359 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "359", "printed": "359", "notation": null} |
nlprog_det-setting-0081894 | <|start|><|user|>
Someone works 24 hours at $29.63 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 29.63
hours = 24
earnings = rate * hours # 711.12
print(f"{earnings:.2f}")
```
# printed result: 711.12
The pay is $711.12.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 24 hours at $29.63 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 29.63\nhours = 24\nearnings = rate * hours # 711.12\nprint(f\"{earnings:.2f}\")\n```\n# printed result: 711.12\n\nThe pay is $711.12."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "711.12", "printed": "711.12", "notation": null} |
nlprog_det-setting-0081895 | A measure needs at least 75% of 11 votes. How many votes is that, rounded up?
Python code:
```python
import math
voters = 11
needed = math.ceil(voters * 75 / 100)
print(needed)
```
# printed: 9
At least 9 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0081896 | An invoice lists 8 mugs at $8 each, plus 10% sales tax. What is the invoice total?
Python makes this quick:
```python
quantity = 8
unit_price = 8
subtotal = quantity * unit_price # 64
total = subtotal * (1 + 10 / 100) # 70.4
print(f"{total:.2f}")
```
stdout = 70.40
The total with tax is $70.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "70.40", "printed": "70.40", "notation": null} |
nlprog_det-setting-0081897 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
A claim accrued on September 27, 2012. The limitations period is 4 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2012, 9, 27)
years = 4
expires = accrued.replace(year=accrued.year + years)
prin... | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "A claim accrued on September 27, 2012. The limitations period is 4 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued =... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "2016-09-27", "printed": "2016-09-27", "notation": null} |
nlprog_det-setting-0081898 | Split $1,440 between Sofia and Cyrus in the ratio 1 to 2. What is Sofia's share?
The program:
```python
total = 1440
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 480
print(share_a)
```
(stdout: 480)
Sofia gets $480. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "480", "printed": "480", "notation": null} |
nlprog_det-setting-0081899 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
Rent of $1,800 goes up 3%. What is the new rent?<|eot|>
<|assistant|>
The new rent is $1,854.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "Rent of $1,800 goes up 3%. What is the new rent?"
},
{
"role": "assistant",
"content": "The new rent is $1,854.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "1854.00", "printed": "1854.00", "notation": null} |
nlprog_det-setting-0081900 | <|start|><|system|>
Tools you may use:
{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
Each of Cyrus's runs burns 250 calori... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}... | nlprog_det | setting | original | null | deterministic | [] | [] | 208 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0081901 | A pack of 5 scissors sells for $260. What does each cost?
Let's compute it with Python.
```python
total = 260
count = 5
per_item = total // count # 52
print(per_item)
```
When run, it prints 52.
The unit price is $52. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0081902 | A $180 dinner bill gets a 15% tip, and 4 people share the cost equally. What is each person's share?
```python
bill = 180
tip_rate = 15 / 100 # 0.15
people = 4
each = bill * (1 + tip_rate) / people # 51.74999999999999
print(f"{each:.2f}")
```
Console:
51.75
The share is $51.75 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "51.75", "printed": "51.75", "notation": null} |
nlprog_det-setting-0081903 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
Under a 33% contingency agreement, what fee is owed on a $12,000 award?<|eot|>
<|assistant|>
The fee is $3,960.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "Under a 33% contingency agreement, what fee is owed on a $12,000 award?"
},
{
"role": "assistant",
"content": "The fee is $3,960.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 55 | {"gold": "3960.00", "printed": "3960.00", "notation": null} |
nlprog_det-setting-0081904 | <|start|><|user|>
Split $1,095 between Signe and Tariq in the ratio 1 to 2. What is Signe's share?<|eot|>
<|assistant|>
```python
total = 1095
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 365
print(share_a)
```
(Run result: 365)
Signe gets $365.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $1,095 between Signe and Tariq in the ratio 1 to 2. What is Signe's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 1095\nparts_a = 1\nparts_b = 2\nshare_a = total * parts_a // (parts_a + parts_b) # 365\nprint(share_a)\n```\n(Run result: 365)... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "365", "printed": "365", "notation": null} |
nlprog_det-setting-0081905 | Rent of $1,100 goes up 2%. What is the new rent?
The Python version:
```python
rent = 1100
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 1122.0
print(f"{new_rent:.2f}")
```
Run it and it prints: 1122.00
It rises to $1,122.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "1122.00", "printed": "1122.00", "notation": null} |
nlprog_det-setting-0081906 | Fixed costs are $2,500. Each unit sells for $25 and costs $15 to make. How many units must be sold to break even?
Break-even is 250 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0081907 | <|start|><|user|>
Sales went from 500 to 525. What is the percent change?<|eot|>
<|assistant|>
```python
old = 500
new = 525
change = (new - old) / old * 100 # 5.0
print(round(change))
```
stdout:
5
The change is 5%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 500 to 525. What is the percent change?"
},
{
"role": "assistant",
"content": "```python\nold = 500\nnew = 525\nchange = (new - old) / old * 100 # 5.0\nprint(round(change))\n```\nstdout:\n5\n\nThe change is 5%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0081908 | <|start|><|user|>
Cyrus drove 401 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 401
rate = 0.7
reimbursement = miles * rate # 280.7
print(f"{reimbursement:.2f}")
```
What it prints: 280.70
Cyrus is owed $280.70.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Cyrus drove 401 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 401\nrate = 0.7\nreimbursement = miles * rate # 280.7\nprint(f\"{reimbursement:.2f}\")\n```\nWhat it p... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "280.70", "printed": "280.70", "notation": null} |
nlprog_det-setting-0081909 | A court charges $5 per request plus $0.10 per page after the first 10 pages. What does a 59-page copy cost?
Written as code:
```python
pages = 59
base = 5
per_page = 0.1
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 9.9
print(f"{cost:.2f}")
```
Result: 9.90
The copy costs $9.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "9.90", "printed": "9.90", "notation": null} |
nlprog_det-setting-0081910 | <|start|><|system|>
Functions:
[{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
Pack A has 12 items for $13.64. Pack ... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 243 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0081911 | A library charges $0.20 per book per day late. What is the fine for 1 books that are 3 days late?
Here's the code.
```python
per_day = 0.2
days_late = 3
books = 1
fine = per_day * days_late * books # 0.6000000000000001
print(f"{fine:.2f}")
```
Output of the run: 0.60
The fine is $0.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "0.60", "printed": "0.60", "notation": null} |
nlprog_det-setting-0081912 | <|start|><|user|>
Copies cost $5 plus $0.25 for each page beyond 10. How much for 13 pages?<|eot|>
<|assistant|>
pages = 13
base = 5
per_page = 0.25
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 5.75
print(f"{cost:.2f}")
Interpreter output — 5.75
The total is $5.75.<|eo... | chat | [
{
"role": "user",
"content": "Copies cost $5 plus $0.25 for each page beyond 10. How much for 13 pages?"
},
{
"role": "assistant",
"content": " pages = 13\n base = 5\n per_page = 0.25\n free_pages = 10\n cost = base + max(0, pages - free_pages) * per_page # 5.75\n print(f\"{co... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "5.75", "printed": "5.75", "notation": null} |
nlprog_det-setting-0081913 | <|start|><|user|>
If a 4-year limitations period starts on March 20, 2012, when does it end?<|eot|>
<|assistant|>
from datetime import date
accrued = date(2012, 3, 20) # datetime.date(2012, 3, 20)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2016, 3, 20)
print(exp... | chat | [
{
"role": "user",
"content": "If a 4-year limitations period starts on March 20, 2012, when does it end?"
},
{
"role": "assistant",
"content": " from datetime import date\n accrued = date(2012, 3, 20) # datetime.date(2012, 3, 20)\n years = 4\n expires = accrued.replace(year=accrued.... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "2016-03-20", "printed": "2016-03-20", "notation": null} |
nlprog_det-setting-0081914 | Starting with 284 rulers and using 29 per day, how many remain after 9 days?
Here's the code.
```python
stock = 284
per_day = 29
days = 9
left = stock - per_day * days # 23
print(left)
```
Console output: 23
23 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0081915 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after April 21, 2027 through May 30, 2027?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2027, 4, 21)
end = date(2027, 5, 30)
count = 0
for k in range(1, (end - start).days + 1):
... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after April 21, 2027 through May 30, 2027?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n start = date(2027, 4, 21)\n end = date(2027, 5, 30)\n count = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0081916 | <|start|><|user|>
From 2010 to 2029, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2010
end_year = 2029
print(end_year - start_year)
```
stdout:
19
That is 19 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2010 to 2029, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2010\nend_year = 2029\nprint(end_year - start_year)\n```\nstdout:\n19\n\nThat is 19 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0081917 | Water costs $18 a month plus $5.10 for each 1,000 gallons over 3,000. What is owed for 10,000 gallons?
Coded up:
```python
base = 18
rate = 5.1
used = 10
free = 3
bill = base + rate * max(0, used - free) # 53.699999999999996
print(f"{bill:.2f}")
```
Running this gives 53.70.
$53.70 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "53.70", "printed": "53.70", "notation": null} |
nlprog_det-setting-0081918 | How long, in days, is it from October 24, 2020 until October 24, 2021?
Script:
```python
from datetime import date
first = date(2020, 10, 24) # datetime.date(2020, 10, 24)
second = date(2021, 10, 24) # datetime.date(2021, 10, 24)
print((second - first).days)
```
Run result — 365
There are 365 days between the two d... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "365", "printed": "365", "notation": null} |
nlprog_det-setting-0081919 | Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?
Omar earns $1,150.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "1150.00", "printed": "1150.00", "notation": null} |
nlprog_det-setting-0081920 | <|start|><|user|>
A 24-month warranty starts on November 12, 2024. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2024, 11, 12)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isof... | chat | [
{
"role": "user",
"content": "A 24-month warranty starts on November 12, 2024. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2024, 11, 12)\nmonths = 24\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(sta... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2026-11-12", "printed": "2026-11-12", "notation": null} |
nlprog_det-setting-0081921 | Parking is $4 per hour with a daily maximum of $24. What do 11 hours cost?
Python version:
```python
rate = 4
hours = 11
daily_max = 24
cost = min(rate * hours, daily_max) # 24
print(cost)
```
(Output: 24)
The charge is $24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0081923 | At 2% a month (simple), what interest builds on $12,000 over 3 months?
Program:
```python
balance = 12000
monthly_rate = 2 / 100 # 0.02
months = 3
interest = balance * monthly_rate * months # 720.0
print(f"{interest:.2f}")
```
# run result: 720.00
$720.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "720.00", "printed": "720.00", "notation": null} |
nlprog_det-setting-0081924 | Goods bought on January 19, 2027 carry a 18-month warranty. When does it expire?
Program:
```python
from datetime import date
start = date(2027, 1, 19)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Output of t... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2028-07-19", "printed": "2028-07-19", "notation": null} |
nlprog_det-setting-0081925 | Shipping costs $12 plus $2.50 per pound. What does a 24-pound parcel cost to ship?
As Python:
```python
base = 12
per_pound = 2.5
weight = 24
cost = base + per_pound * weight # 72.0
print(f"{cost:.2f}")
```
stdout — 72.00
Shipping costs $72.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "72.00", "printed": "72.00", "notation": null} |
nlprog_det-setting-0081926 | What is the total rent on a 24-month lease at $1,640 a month?
Script:
```python
monthly_rent = 1640
months = 24
total = monthly_rent * months # 39360
print(total)
```
stdout = 39360
The rent over the term is $39,360. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "39360", "printed": "39360", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.