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-0064588 | <|start|><|user|>
Counting the first and last day, how many days are there from November 15, 2024 through November 21, 2024?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2024, 11, 15)
last = date(2024, 11, 21)
days = (last - first).days + 1
print(days)
```
Executed, it shows 7.
That is 7 days.... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from November 15, 2024 through November 21, 2024?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2024, 11, 15)\nlast = date(2024, 11, 21)\ndays = (last - first).days ... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0064589 | A 5% increase is applied to $1,100 monthly rent. What is the new amount?
Translated to Python:
```python
rent = 1100
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 1155.0
print(f"{new_rent:.2f}")
```
(Printed: 1155.00)
The new rent is $1,155.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "1155.00", "printed": "1155.00", "notation": null} |
nlprog_det-setting-0064590 | Lucia was born on December 26, 1957. How old is Lucia on April 22, 2025?
In Python:
```python
from datetime import date
born = date(1957, 12, 26) # datetime.date(1957, 12, 26)
on = date(2025, 4, 22) # datetime.date(2025, 4, 22)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 67
print(age... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0064591 | <|start|><|user|>
An office budget of $20,000 has expenses of $3,489, $2,878, $1,877, $1,084. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 20000
expenses = [3489, 2878, 1877, 1084]
left = budget - sum(expenses) # 10672
print(left)
```
Python prints 10672, as expected.
The remaining budget i... | chat | [
{
"role": "user",
"content": "An office budget of $20,000 has expenses of $3,489, $2,878, $1,877, $1,084. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 20000\nexpenses = [3489, 2878, 1877, 1084]\nleft = budget - sum(expenses) # 10672\nprint(left)\n``... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "10672", "printed": "10672", "notation": null} |
nlprog_det-setting-0064592 | Count 21 days forward from August 12, 2028. What date is that?
```python
from datetime import date, timedelta
start = date(2028, 8, 12) # datetime.date(2028, 8, 12)
end = start + timedelta(days=21) # datetime.date(2028, 9, 2)
print(end.isoformat())
```
The program prints 2028-09-02, as expected.
The period ends on ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "2028-09-02", "printed": "2028-09-02", "notation": null} |
nlprog_det-setting-0064593 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
Attendance was 55 out of 80. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 55
total = 80
percent = present / total * 100
print(round(percent, 1))
```
The run gives: 68.8
Attendance was 68.8%.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "Attendance was 55 out of 80. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 55\ntotal = 80\npercent = present / total * 100\nprint(round(pe... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "68.8", "printed": "68.8", "notation": null} |
nlprog_det-setting-0064595 | Uma drove 187 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?
```python
miles = 187
rate = 0.62
reimbursement = miles * rate # 115.94
print(f"{reimbursement:.2f}")
```
The interpreter prints: 115.94
Uma is owed $115.94. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "115.94", "printed": "115.94", "notation": null} |
nlprog_det-setting-0064596 | Convert 4 h 37 min (the length of a meeting) to minutes.
Python:
```python
hours = 4
minutes = 37
total_minutes = hours * 60 + minutes # 277
print(total_minutes)
```
The program outputs: 277
That is 277 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "277", "printed": "277", "notation": null} |
nlprog_det-setting-0064597 | What is a 25% tip on a $227.69 bill?
Let's compute it with Python.
bill = 227.69
tip_rate = 25 / 100
tip = bill * tip_rate
print(f"{tip:.2f}")
On running, it outputs: 56.92
Leave $56.92. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "56.92", "printed": "56.92", "notation": null} |
nlprog_det-setting-0064598 | Counting the first and last day, how many days are there from December 2, 2027 through December 9, 2027?
As Python:
```python
from datetime import date
first = date(2027, 12, 2) # datetime.date(2027, 12, 2)
last = date(2027, 12, 9) # datetime.date(2027, 12, 9)
days = (last - first).days + 1 # 8
print(days)
```
Prin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0064599 | Find the mean of these test scores: 59, 56, 83, 79, 59 and 96.
Let the code do the arithmetic:
```python
scores = [59, 56, 83, 79, 59, 96]
average = sum(scores) // len(scores) # 72
print(average)
```
Result — 72
The average score is 72. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "72", "printed": "72", "notation": null} |
nlprog_det-setting-0064600 | <|start|><|user|>
A $6,000 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
Each payment is $196.67.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $6,000 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "Each payment is $196.67."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "196.67", "printed": "196.67", "notation": null} |
nlprog_det-setting-0064601 | Convert 0 °C to Fahrenheit.
Let's compute it with Python.
```python
celsius = 0
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
```
Execution result — 32
It equals 32 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0064602 | <|start|><|user|>
5 boxes hold 25 toner kits each. After 8 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 5
per_box = 25
given_away = 8
left = boxes * per_box - given_away # 117
print(left)
```
Output:
117
117 toner kits are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 boxes hold 25 toner kits each. After 8 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 5\nper_box = 25\ngiven_away = 8\nleft = boxes * per_box - given_away # 117\nprint(left)\n```\nOutput:\n117\n\n117 toner kits are le... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "117", "printed": "117", "notation": null} |
nlprog_det-setting-0064603 | <|start|><|user|>
Goods bought on March 18, 2028 carry a 24-month warranty. When does it expire?<|eot|>
<|assistant|>
from datetime import date
start = date(2028, 3, 18)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
... | chat | [
{
"role": "user",
"content": "Goods bought on March 18, 2028 carry a 24-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": " from datetime import date\n start = date(2028, 3, 18)\n months = 24\n years, month_index = divmod(start.month - 1 + months, 12)\n en... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "2030-03-18", "printed": "2030-03-18", "notation": null} |
nlprog_det-setting-0064604 | Fines run at $250 per day up to a maximum of $1,000. How much after 60 days?
```python
per_day = 250
days = 60
cap = 1000
fine = min(per_day * days, cap)
print(fine)
```
Python prints 1000, as expected.
$1,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0064605 | An office budget of $12,000 has expenses of $1,112, $1,300. How much of the budget is left?
```python
budget = 12000
expenses = [1112, 1300]
left = budget - sum(expenses) # 9588
print(left)
```
# console output: 9588
$9,588 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "9588", "printed": "9588", "notation": null} |
nlprog_det-setting-0064606 | A car travels 551 miles in 1 hours. What is its average speed in miles per hour?
Python code:
```python
distance = 551
hours = 1
speed = distance / hours # 551.0
print(round(speed))
```
The program prints 551, as expected.
It averages 551 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "551", "printed": "551", "notation": null} |
nlprog_det-setting-0064607 | A lease runs for 18 months at $2,875 per month. How much rent is paid over the whole term?
Script:
```python
monthly_rent = 2875
months = 18
total = monthly_rent * months # 51750
print(total)
```
Out:
51750
The rent over the term is $51,750. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "51750", "printed": "51750", "notation": null} |
nlprog_det-setting-0064608 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Convert 30 °C to Fahrenheit.<|eot|>
<|assistant|>
celsius = 30
fahrenheit = celsius * 9 / 5 + 32 # 86.0
print(round(fahrenheit))
Output — 86
That is 86 °F.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Convert 30 °C to Fahrenheit."
},
{
"role": "assistant",
"content": " celsius = 30\n fahrenheit = celsius * 9 / 5 + 32 # 86.0\n print(round(fahrenheit))\nOutput — 86\n\nThat is 86 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0064609 | A service costs $9 a month or $90 a year. How much does the yearly plan save over 12 monthly payments?
The Python version:
```python
monthly = 9
yearly = 90
savings = monthly * 12 - yearly # 18
print(savings)
```
That prints: 18
The annual plan saves $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0064610 | Goods bought on September 13, 2028 carry a 6-month warranty. When does it expire?
Let the code do the arithmetic:
from datetime import date
start = date(2028, 9, 13)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "2029-03-13", "printed": "2029-03-13", "notation": null} |
nlprog_det-setting-0064611 | A car travels 286 miles in 2 hours. What is its average speed in miles per hour?
Written as code:
distance = 286
hours = 2
speed = distance / hours # 143.0
print(round(speed))
The program prints 143.
The average speed is 143 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "143", "printed": "143", "notation": null} |
nlprog_det-setting-0064612 | How much sales tax is charged on a $712.04 purchase at 6%?
Written as code:
```python
price = 712.04
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 42.72239999999999
print(f"{tax:.2f}")
```
# output: 42.72
The tax is $42.72. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "42.72", "printed": "42.72", "notation": null} |
nlprog_det-setting-0064613 | Prorate $1,800 of monthly rent for 18 days of a 31-day month.
Python:
```python
rent = 1800
days_in_month = 31
days_occupied = 18
prorated = rent * days_occupied / days_in_month # 1045.1612903225807
print(f"{prorated:.2f}")
```
The run gives 1045.16, as expected.
The tenant owes $1,045.16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "1045.16", "printed": "1045.16", "notation": null} |
nlprog_det-setting-0064614 | <|start|><|user|>
At 30 miles per hour, how many minutes does a 120-mile trip take?<|eot|>
<|assistant|>
```python
distance = 120
speed = 30
minutes = distance / speed * 60 # 240.0
print(round(minutes))
```
Execution prints: 240
The trip takes 240 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 30 miles per hour, how many minutes does a 120-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 120\nspeed = 30\nminutes = distance / speed * 60 # 240.0\nprint(round(minutes))\n```\nExecution prints: 240\n\nThe trip takes 240 minutes.... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0064615 | A library charges $0.15 per book per day late. What is the fine for 4 books that are 3 days late?
$1.80 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "1.80", "printed": "1.80", "notation": null} |
nlprog_det-setting-0064617 | How many of 200 votes make 75% (round up)?
At least 150 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0064618 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Each storage box holds 24 files. How many boxes are needed for 294 files?<|eot|>
<|assistant|>
```python
import math
files = 294
per_box = 24
boxes = math.ceil(files / per_box) # 13
print(boxes)
```
# printed: 13
13 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Each storage box holds 24 files. How many boxes are needed for 294 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 294\nper_box = 24\nboxes = math.ceil(fi... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0064619 | One can of paint covers 300 square feet. How many cans are needed for 871 square feet of wall?
Here is the program.
```python
import math
area = 871
coverage = 300
cans = math.ceil(area / coverage) # 3
print(cans)
```
Printed result — 3
Buy 3 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0064620 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Pytho... | nlprog_det | setting | original | null | deterministic | [] | [] | 219 | {"gold": "246", "printed": "246", "notation": null} |
nlprog_det-setting-0064621 | A clerk's office charges $75 for each filing. Jonas submits 19 filings. What is the total fee?
We write it as a program:
```python
fee = 75
filings = 19
total = fee * filings # 1425
print(total)
```
# console output: 1425
$1,425 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1425", "printed": "1425", "notation": null} |
nlprog_det-setting-0064622 | A measure needs at least 67% of 107 votes. How many votes is that, rounded up?
Here is a short program for it.
```python
import math
voters = 107
needed = math.ceil(voters * 67 / 100)
print(needed)
```
Result = 72
At least 72 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "72", "printed": "72", "notation": null} |
nlprog_det-setting-0064623 | From a $7,500 retainer, 12 hours at $275/hour have been drawn. What remains?
In Python:
```python
retainer = 7500
hours = 12
rate = 275
left = retainer - hours * rate # 4200
print(left)
```
Output of the run — 4200
The remaining balance is $4,200. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "4200", "printed": "4200", "notation": null} |
nlprog_det-setting-0064624 | <|start|><|user|>
If a 3-year limitations period starts on August 23, 2019, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2019, 8, 23) # datetime.date(2019, 8, 23)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 8, 23)
print(expires.isof... | chat | [
{
"role": "user",
"content": "If a 3-year limitations period starts on August 23, 2019, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2019, 8, 23) # datetime.date(2019, 8, 23)\nyears = 3\nexpires = accrued.replace(year=accrued.year... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2022-08-23", "printed": "2022-08-23", "notation": null} |
nlprog_det-setting-0064626 | How many meters are in 77.5 kilometers?
The computation:
```python
km = 77.5
meters = km * 1000 # 77500.0
print(round(meters))
```
stdout: 77500
77,500 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "77500", "printed": "77500", "notation": null} |
nlprog_det-setting-0064627 | <|start|><|user|>
$10,000 is invested at 2% compounded yearly. What is it worth after 5 years?<|eot|>
<|assistant|>
```python
principal = 10000
rate = 2 / 100 # 0.02
years = 5
value = principal * (1 + rate) ** years # 11040.808032
print(f"{value:.2f}")
```
The script prints 11040.81, as expected.
It is worth $11,040... | chat | [
{
"role": "user",
"content": "$10,000 is invested at 2% compounded yearly. What is it worth after 5 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 10000\nrate = 2 / 100 # 0.02\nyears = 5\nvalue = principal * (1 + rate) ** years # 11040.808032\nprint(f\"{value:.2f}\")\n```... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "11040.81", "printed": "11040.81", "notation": null} |
nlprog_det-setting-0064628 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "code_runner", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"code_runner\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description... | nlprog_det | setting | original | null | deterministic | [] | [] | 217 | {"gold": "25.66", "printed": "25.66", "notation": null} |
nlprog_det-setting-0064629 | <|start|><|user|>
Carmen lends $5,000 at 6% simple interest per year for 2 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 5000
rate = 6 / 100 # 0.06
years = 2
interest = principal * rate * years # 600.0
print(f"{interest:.2f}")
```
Console output: 600.00
The interest is $600.00.<|eot|... | chat | [
{
"role": "user",
"content": "Carmen lends $5,000 at 6% simple interest per year for 2 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 5000\nrate = 6 / 100 # 0.06\nyears = 2\ninterest = principal * rate * years # 600.0\nprint(f\"{interest:.2f}\... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0064630 | The statute was enacted in 1996. How many years had passed by 2034?
Here's the code.
```python
start_year = 1996
end_year = 2034
print(end_year - start_year)
```
Executing it gives: 38
38 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0064631 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
518 files go into boxes of 25. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 518
per_box = 25
boxes = math.ceil(files / per_box) # 21
print(boxes)
```
(Result: 21)
21 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "518 files go into boxes of 25. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 518\nper_box = 25\nboxes = math.ceil(files / p... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0064632 | How much sales tax is charged on a $130.63 purchase at 5%?
Translated to Python:
```python
price = 130.63
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 6.5315
print(f"{tax:.2f}")
```
Result = 6.53
$6.53 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "6.53", "printed": "6.53", "notation": null} |
nlprog_det-setting-0064633 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
Convert 3,136 USD to EUR at 1 USD = 1.08 EUR.<|eot|>
<|assistant|>
It converts to 3,386.88 EUR.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "Convert 3,136 USD to EUR at 1 USD = 1.08 EUR."
},
{
"role": "assistant",
"content": "It converts to 3,386.88 EUR."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 56 | {"gold": "3386.88", "printed": "3386.88", "notation": null} |
nlprog_det-setting-0064634 | <|start|><|user|>
A library charges $0.50 per book per day late. What is the fine for 4 books that are 28 days late?<|eot|>
<|assistant|>
```python
per_day = 0.5
days_late = 28
books = 4
fine = per_day * days_late * books # 56.0
print(f"{fine:.2f}")
```
It prints 56.00, as expected.
The fine is $56.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.50 per book per day late. What is the fine for 4 books that are 28 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.5\ndays_late = 28\nbooks = 4\nfine = per_day * days_late * books # 56.0\nprint(f\"{fine:.2f}\")\n```\nIt... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "56.00", "printed": "56.00", "notation": null} |
nlprog_det-setting-0064635 | <|start|><|system|>
Tool definitions:
[{"name": "eval_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "get_weather", "description": "G... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"eval_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 303 | {"gold": "2023-01-16", "printed": "2023-01-16", "notation": null} |
nlprog_det-setting-0064636 | <|start|><|user|>
Mei buys 3 boxes of 25 hard drives each and gives away 6 hard drives. How many hard drives are left?<|eot|>
<|assistant|>
```python
boxes = 3
per_box = 25
given_away = 6
left = boxes * per_box - given_away # 69
print(left)
```
Running it prints 69.
That leaves 69 hard drives.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Mei buys 3 boxes of 25 hard drives each and gives away 6 hard drives. How many hard drives are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 3\nper_box = 25\ngiven_away = 6\nleft = boxes * per_box - given_away # 69\nprint(left)\n```\nRunning it pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "69", "printed": "69", "notation": null} |
nlprog_det-setting-0064637 | On which weekday does September 23, 2002 fall?
Python version:
```python
from datetime import date
hearing = date(2002, 9, 23)
print(hearing.strftime("%A"))
```
The run gives Monday.
It is a Monday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0064638 | An invoice lists 29 headsets at $5 each, plus 7% sales tax. What is the invoice total?
Here is the program.
```python
quantity = 29
unit_price = 5
subtotal = quantity * unit_price # 145
total = subtotal * (1 + 7 / 100) # 155.15
print(f"{total:.2f}")
```
It prints 155.15, as expected.
The total with tax is $155.15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "155.15", "printed": "155.15", "notation": null} |
nlprog_det-setting-0064639 | Walls total 569 sq ft and each can covers 250 sq ft. How many cans should be bought?
Computation in Python:
```python
import math
area = 569
coverage = 250
cans = math.ceil(area / coverage) # 3
print(cans)
```
Output:
3
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0064640 | Lucia buys 7 boxes of 25 scissors each and gives away 6 scissors. How many scissors are left?
Python:
```python
boxes = 7
per_box = 25
given_away = 6
left = boxes * per_box - given_away # 169
print(left)
```
Execution result: 169
That leaves 169 scissors. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "169", "printed": "169", "notation": null} |
nlprog_det-setting-0064641 | An attorney bills 2 hours at $300 per hour. What is the bill?
In code:
```python
hours = 2
rate = 300
bill = hours * rate # 600
print(f"{bill:.2f}")
```
(Out: 600.00)
The bill is $600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0064642 | <|start|><|user|>
Rent of $900 goes up 2%. What is the new rent?<|eot|>
<|assistant|>
It rises to $918.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $900 goes up 2%. What is the new rent?"
},
{
"role": "assistant",
"content": "It rises to $918.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "918.00", "printed": "918.00", "notation": null} |
nlprog_det-setting-0064643 | 56 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?
As Python:
```python
total = 56
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
(Execution result: 9 each, 2 left over)
9 each, 2 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "9 each, 2 left over", "printed": "9 each, 2 left over", "notation": null} |
nlprog_det-setting-0064644 | <|start|><|user|>
6 walks at 300 calories each burn how many calories in total?<|eot|>
<|assistant|>
per_session = 300
sessions = 6
total = per_session * sessions # 1800
print(total)
Printed — 1800
1800 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "6 walks at 300 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": " per_session = 300\n sessions = 6\n total = per_session * sessions # 1800\n print(total)\nPrinted — 1800\n\n1800 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0064646 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "math_engine", "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|>
... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"math_engine\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source c... | nlprog_det | setting | original | null | deterministic | [] | [] | 201 | {"gold": "149", "printed": "149", "notation": null} |
nlprog_det-setting-0064647 | Prorate $1,200 of monthly rent for 17 days of a 30-day month.
A few lines of Python do it:
```python
rent = 1200
days_in_month = 30
days_occupied = 17
prorated = rent * days_occupied / days_in_month # 680.0
print(f"{prorated:.2f}")
```
Run it and it prints 680.00.
The prorated rent is $680.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "680.00", "printed": "680.00", "notation": null} |
nlprog_det-setting-0064648 | Vera earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 45-hour week?
Coded up:
```python
rate = 20.0
hours = 45
regular = 40 * rate # 800.0
overtime = (hours - 40) * rate * 1.5 # 150.0
pay = regular + overtime # 950.0
print(f"{pay:.2f}")
```
Console:
950.00
Vera earns $950.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "950.00", "printed": "950.00", "notation": null} |
nlprog_det-setting-0064649 | Copies cost $5 plus $0.25 for each page beyond 0. How much for 12 pages?
Python does the arithmetic:
```python
pages = 12
base = 5
per_page = 0.25
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 8.0
print(f"{cost:.2f}")
```
It prints 8.00, as expected.
The copy costs $8.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "8.00", "printed": "8.00", "notation": null} |
nlprog_det-setting-0064650 | Pack A has 6 items for $8.98. Pack B has 30 items for $28.28. Which has the lower price per item?
Here's the code.
pack_a = 8.98 / 6 # 1.4966666666666668
pack_b = 28.28 / 30 # 0.9426666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
What it prints: B
B has the lower unit pr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0064651 | With $4,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal.
As a program:
```python
revenue = 9000
costs = 4000
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 55.55555555555556
print(round(margin, 1))
```
Python prints 55.6.
The margin is 55.6%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "55.6", "printed": "55.6", "notation": null} |
nlprog_det-setting-0064652 | <|start|><|user|>
If a 3-year limitations period starts on January 8, 2015, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2015, 1, 8) # datetime.date(2015, 1, 8)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 1, 8)
print(expires.isoform... | chat | [
{
"role": "user",
"content": "If a 3-year limitations period starts on January 8, 2015, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2015, 1, 8) # datetime.date(2015, 1, 8)\nyears = 3\nexpires = accrued.replace(year=accrued.year +... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2018-01-08", "printed": "2018-01-08", "notation": null} |
nlprog_det-setting-0064653 | Someone works 12 hours at $21.04 per hour. What are the earnings?
Python makes this quick:
```python
rate = 21.04
hours = 12
earnings = rate * hours # 252.48
print(f"{earnings:.2f}")
```
What it prints: 252.48
That earns $252.48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "252.48", "printed": "252.48", "notation": null} |
nlprog_det-setting-0064654 | <|start|><|user|>
Prorate $1,800 of monthly rent for 8 days of a 31-day month.<|eot|>
<|assistant|>
The prorated rent is $464.52.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $1,800 of monthly rent for 8 days of a 31-day month."
},
{
"role": "assistant",
"content": "The prorated rent is $464.52."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "464.52", "printed": "464.52", "notation": null} |
nlprog_det-setting-0064655 | A 336-page report must be reviewed in 12 days. How many pages a day is that, evenly?
A short script:
pages = 336
days = 12
per_day = pages // days # 28
print(per_day)
The script prints: 28
That is 28 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0064656 | An invoice lists 26 envelopes at $12 each, plus 10% sales tax. What is the invoice total?
Code:
```python
quantity = 26
unit_price = 12
subtotal = quantity * unit_price # 312
total = subtotal * (1 + 10 / 100) # 343.20000000000005
print(f"{total:.2f}")
```
Out = 343.20
The total with tax is $343.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "343.20", "printed": "343.20", "notation": null} |
nlprog_det-setting-0064657 | <|start|><|user|>
A $60,000 grant pays $6,000 up front and the rest in 12 equal installments. How large is each installment?<|eot|>
<|assistant|>
```python
grant = 60000
up_front = 6000
installments = 12
each = (grant - up_front) / installments # 4500.0
print(f"{each:.2f}")
```
Output = 4500.00
Each installment is $4... | chat | [
{
"role": "user",
"content": "A $60,000 grant pays $6,000 up front and the rest in 12 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "```python\ngrant = 60000\nup_front = 6000\ninstallments = 12\neach = (grant - up_front) / installments # 4500.0\nprint(... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0064658 | <|start|><|system|>
You can call tools. Available 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", "to_uni... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\... | nlprog_det | setting | original | null | deterministic | [] | [] | 436 | {"gold": "1176", "printed": "1176", "notation": null} |
nlprog_det-setting-0064659 | <|start|><|user|>
What is -10 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = -10
fahrenheit = celsius * 9 / 5 + 32 # 14.0
print(round(fahrenheit))
```
Console output: 14
That is 14 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is -10 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": "```python\ncelsius = -10\nfahrenheit = celsius * 9 / 5 + 32 # 14.0\nprint(round(fahrenheit))\n```\nConsole output: 14\n\nThat is 14 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0064660 | What is the total rent on a 18-month lease at $1,640 a month?
The computation:
```python
monthly_rent = 1640
months = 18
total = monthly_rent * months # 29520
print(total)
```
(Execution result: 29520)
In total, $29,520 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "29520", "printed": "29520", "notation": null} |
nlprog_det-setting-0064661 | Which is cheaper per unit: 8 for $13.84 (A) or 24 for $10.29 (B)?
Python code:
```python
pack_a = 13.84 / 8 # 1.73
pack_b = 10.29 / 24 # 0.42874999999999996
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
This prints B, as expected.
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0064662 | How many whole days and leftover hours are in 391 hours?
The computation:
```python
hours = 391
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Execution result: 16 days and 7 hours
391 hours is 16 days and 7 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "16 days and 7 hours", "printed": "16 days and 7 hours", "notation": null} |
nlprog_det-setting-0064663 | <|start|><|user|>
A customer buys 2 cables at $20 each, 4 markers at $16 each, 5 rulers at $23 each, 1 lanyards at $23 each and pays with $250. How much change is due?<|eot|>
<|assistant|>
```python
items = [(2, 20), (4, 16), (5, 23), (1, 23)]
total = sum(q * p for q, p in items) # 242
paid = 250
change = paid - total... | chat | [
{
"role": "user",
"content": "A customer buys 2 cables at $20 each, 4 markers at $16 each, 5 rulers at $23 each, 1 lanyards at $23 each and pays with $250. How much change is due?"
},
{
"role": "assistant",
"content": "```python\nitems = [(2, 20), (4, 16), (5, 23), (1, 23)]\ntotal = sum(q * p fo... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0064664 | Rania earns a 3% commission on $79,358 of sales. What is the commission?
sales = 79358
rate = 3 / 100
commission = sales * rate
print(f"{commission:.2f}")
This prints 2380.74.
Rania earns $2,380.74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "2380.74", "printed": "2380.74", "notation": null} |
nlprog_det-setting-0064665 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 3 months?<|eot|>
<|assistant|>
```python
balance = 7500
monthly_rate = 1 / 100 # 0.01
months = 3
interest = balance * monthly_rate * months # 225.0
... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 3 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 7500\nmonthly_... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0064666 | Counting only Monday through Friday, how many business days are there after May 14, 2021 through June 7, 2021?
In code:
```python
from datetime import date, timedelta
start = date(2021, 5, 14)
end = date(2021, 6, 7)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0064667 | <|start|><|user|>
Rent of $1,500 goes up 6%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1500
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 1590.0
print(f"{new_rent:.2f}")
```
Out: 1590.00
The new rent is $1,590.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $1,500 goes up 6%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1500\nincrease = 6 / 100 # 0.06\nnew_rent = rent * (1 + increase) # 1590.0\nprint(f\"{new_rent:.2f}\")\n```\nOut: 1590.00\n\nThe new rent is $1,590.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1590.00", "printed": "1590.00", "notation": null} |
nlprog_det-setting-0064668 | <|start|><|user|>
How many units at $25 each (variable cost $17) cover $4,000 of fixed costs?<|eot|>
<|assistant|>
import math
fixed = 4000
price = 25
variable = 17
units = math.ceil(fixed / (price - variable)) # 500
print(units)
# output: 500
500 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $25 each (variable cost $17) cover $4,000 of fixed costs?"
},
{
"role": "assistant",
"content": " import math\n fixed = 4000\n price = 25\n variable = 17\n units = math.ceil(fixed / (price - variable)) # 500\n print(units)\n# out... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0064670 | Equipment costs $18,000, has a salvage value of $0, and a useful life of 6 years. What is the straight-line depreciation per year?
Computing it:
```python
cost = 18000
salvage = 0
years = 6
per_year = (cost - salvage) / years # 3000.0
print(f"{per_year:.2f}")
```
Printed — 3000.00
$3,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0064671 | Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 54 hours?
Maren earns $1,128.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "1128.50", "printed": "1128.50", "notation": null} |
nlprog_det-setting-0064672 | <|start|><|user|>
Which is cheaper per unit: 12 for $4.04 (A) or 30 for $31.78 (B)?<|eot|>
<|assistant|>
A has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 12 for $4.04 (A) or 30 for $31.78 (B)?"
},
{
"role": "assistant",
"content": "A has the lower unit price."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0064673 | How many 1-foot square tiles cover a 17 ft by 3 ft floor (round up)?
Computation in Python:
```python
import math
length = 17
width = 3
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 51
print(tiles)
```
On running, it outputs 51.
51 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0064674 | <|start|><|user|>
Equal monthly payments repay $6,000 plus 8% simple yearly interest over 12 months. How large is a payment?<|eot|>
<|assistant|>
principal = 6000
annual_rate = 8 / 100 # 0.08
months = 12
interest = principal * annual_rate * months / 12 # 480.0
payment = (principal + interest) / mo... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $6,000 plus 8% simple yearly interest over 12 months. How large is a payment?"
},
{
"role": "assistant",
"content": " principal = 6000\n annual_rate = 8 / 100 # 0.08\n months = 12\n interest = principal * annual_rate * month... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "540.00", "printed": "540.00", "notation": null} |
nlprog_det-setting-0064676 | At 2% a month (simple), what interest builds on $2,500 over 2 months?
Computing it:
```python
balance = 2500
monthly_rate = 2 / 100 # 0.02
months = 2
interest = balance * monthly_rate * months # 100.0
print(f"{interest:.2f}")
```
Output of the run: 100.00
$100.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "100.00", "printed": "100.00", "notation": null} |
nlprog_det-setting-0064678 | Ada lends $2,500 at 8% simple interest per year for 4 years. How much interest is earned?
Here's the code.
```python
principal = 2500
rate = 8 / 100 # 0.08
years = 4
interest = principal * rate * years # 800.0
print(f"{interest:.2f}")
```
Output:
800.00
It earns $800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "800.00", "printed": "800.00", "notation": null} |
nlprog_det-setting-0064680 | 701 files go into boxes of 12. How many boxes does that take?
Code:
import math
files = 701
per_box = 12
boxes = math.ceil(files / per_box) # 59
print(boxes)
Shell output — 59
It takes 59 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0064681 | If a 3-year limitations period starts on June 16, 2012, when does it end?
Coded up:
```python
from datetime import date
accrued = date(2012, 6, 16) # datetime.date(2012, 6, 16)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2015, 6, 16)
print(expires.isoformat())
```
Interpreter outpu... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2015-06-16", "printed": "2015-06-16", "notation": null} |
nlprog_det-setting-0064682 | A meal costs $92.86. How much is a 15% tip?
In code:
```python
bill = 92.86
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 13.929
print(f"{tip:.2f}")
```
That prints: 13.93
The tip is $13.93. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "13.93", "printed": "13.93", "notation": null} |
nlprog_det-setting-0064683 | <|start|><|user|>
The landlord deducts $75 and $150 from a $1,500 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 1500
deductions = [75, 150]
refund = deposit - sum(deductions) # 1275
print(refund)
```
The interpreter prints: 1275
The refund is $1,275.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $75 and $150 from a $1,500 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1500\ndeductions = [75, 150]\nrefund = deposit - sum(deductions) # 1275\nprint(refund)\n```\nThe interpreter prints:... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1275", "printed": "1275", "notation": null} |
nlprog_det-setting-0064684 | Revenue is $38,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?
In Python:
```python
revenue = 38000
costs = 36000
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 5.263157894736842
print(round(margin, 1))
```
The code prints: 5.3
The margin is 5.3%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "5.3", "printed": "5.3", "notation": null} |
nlprog_det-setting-0064685 | Counting only Monday through Friday, how many business days are there after October 2, 2027 through November 6, 2027?
A short script:
```python
from datetime import date, timedelta
start = date(2027, 10, 2)
end = date(2027, 11, 6)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0064686 | <|start|><|user|>
At 1.5% a month (simple), what interest builds on $4,000 over 4 months?<|eot|>
<|assistant|>
The interest is $240.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 1.5% a month (simple), what interest builds on $4,000 over 4 months?"
},
{
"role": "assistant",
"content": "The interest is $240.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0064687 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "get_weather", "description": "Get the weather ... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"na... | nlprog_det | setting | original | null | deterministic | [] | [] | 391 | {"gold": "42 each, 5 left over", "printed": "42 each, 5 left over", "notation": null} |
nlprog_det-setting-0064688 | Meals are $59 per day and lodging $110 per night. What is the allowance for 6 days and 5 nights?
In code:
```python
days = 6
meal_rate = 59
lodging_rate = 110
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 904
print(total)
```
What it prints: 904
That comes to $904. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "904", "printed": "904", "notation": null} |
nlprog_det-setting-0064689 | 365 files go into boxes of 20. How many boxes does that take?
We can compute it in Python.
import math
files = 365
per_box = 20
boxes = math.ceil(files / per_box) # 19
print(boxes)
Result = 19
19 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0064690 | A 7-day trip pays $74 a day for meals and $175 a night for lodging (6 nights). What is the total allowance?
As Python:
```python
days = 7
meal_rate = 74
lodging_rate = 175
nights = days - 1
total = days * meal_rate + nights * lodging_rate
print(total)
```
Console output — 1568
That comes to $1,568. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "1568", "printed": "1568", "notation": null} |
nlprog_det-setting-0064691 | A $2,000 security deposit has deductions of $75 and $45. How much is refunded?
We write it as a program:
deposit = 2000
deductions = [75, 45]
refund = deposit - sum(deductions) # 1880
print(refund)
On running, it outputs 1880.
The refund is $1,880. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "1880", "printed": "1880", "notation": null} |
nlprog_det-setting-0064692 | Starting with 1226 paper reams and using 22 per day, how many remain after 14 days?
Set it up in Python:
```python
stock = 1226
per_day = 22
days = 14
left = stock - per_day * days # 918
print(left)
```
(Printed: 918)
918 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "918", "printed": "918", "notation": null} |
nlprog_det-setting-0064693 | Convert 7,580 CHF to USD at 1 CHF = 0.92 USD.
In Python:
```python
amount = 7580
rate = 0.92
converted = amount * rate # 6973.6
print(f"{converted:.2f}")
```
(Execution result: 6973.60)
It converts to 6,973.60 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "6973.60", "printed": "6973.60", "notation": null} |
nlprog_det-setting-0064694 | What does $5,000 grow to in 3 years at 2% annual compounding?
Python version:
```python
principal = 5000
rate = 2 / 100 # 0.02
years = 3
value = principal * (1 + rate) ** years # 5306.040000000001
print(f"{value:.2f}")
```
Shell output — 5306.04
The balance is $5,306.04. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "5306.04", "printed": "5306.04", "notation": null} |
nlprog_det-setting-0064695 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "define_word", ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 385 | {"gold": "3128.56", "printed": "3128.56", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.