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-0066498 | <|start|><|user|>
A library charges $0.25 per book per day late. What is the fine for 3 books that are 11 days late?<|eot|>
<|assistant|>
```python
per_day = 0.25
days_late = 11
books = 3
fine = per_day * days_late * books # 8.25
print(f"{fine:.2f}")
```
It prints 8.25, as expected.
$8.25 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.25 per book per day late. What is the fine for 3 books that are 11 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.25\ndays_late = 11\nbooks = 3\nfine = per_day * days_late * books # 8.25\nprint(f\"{fine:.2f}\")\n```\nI... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "8.25", "printed": "8.25", "notation": null} |
nlprog_det-setting-0066499 | A client paid a $7,500 retainer. The firm has billed 9 hours at $150 per hour. How much of the retainer is left?
Code:
```python
retainer = 7500
hours = 9
rate = 150
left = retainer - hours * rate # 6150
print(left)
```
The program prints 6150.
The remaining balance is $6,150. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "6150", "printed": "6150", "notation": null} |
nlprog_det-setting-0066500 | <|start|><|user|>
A client paid a $7,500 retainer. The firm has billed 6 hours at $150 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 7500
hours = 6
rate = 150
left = retainer - hours * rate # 6600
print(left)
```
# output: 6600
The remaining balance is $6,600.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A client paid a $7,500 retainer. The firm has billed 6 hours at $150 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 7500\nhours = 6\nrate = 150\nleft = retainer - hours * rate # 6600\nprint(left)\n```\n# out... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "6600", "printed": "6600", "notation": null} |
nlprog_det-setting-0066502 | <|start|><|user|>
3 books come back 20 days late, at $0.50 a day each. What is the fine?<|eot|>
<|assistant|>
per_day = 0.5
days_late = 20
books = 3
fine = per_day * days_late * books # 30.0
print(f"{fine:.2f}")
This prints 30.00, as expected.
The fine is $30.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 books come back 20 days late, at $0.50 a day each. What is the fine?"
},
{
"role": "assistant",
"content": " per_day = 0.5\n days_late = 20\n books = 3\n fine = per_day * days_late * books # 30.0\n print(f\"{fine:.2f}\")\nThis prints 30.00, as expe... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "30.00", "printed": "30.00", "notation": null} |
nlprog_det-setting-0066503 | Straight-line depreciation: cost $45,000, salvage $2,000, 4 years. How much per year?
```python
cost = 45000
salvage = 2000
years = 4
per_year = (cost - salvage) / years # 10750.0
print(f"{per_year:.2f}")
```
Console:
10750.00
Depreciation is $10,750.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "10750.00", "printed": "10750.00", "notation": null} |
nlprog_det-setting-0066504 | <|start|><|user|>
Quinn earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 48-hour week?<|eot|>
<|assistant|>
```python
rate = 18.5
hours = 48
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 222.0
pay = regular + overtime # 962.0
print(f"{pay:.2f}")
```
stdout:
962.0... | chat | [
{
"role": "user",
"content": "Quinn earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 48-hour week?"
},
{
"role": "assistant",
"content": "```python\nrate = 18.5\nhours = 48\nregular = 40 * rate # 740.0\novertime = (hours - 40) * rate * 1.5 # 222.0\npay = regula... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "962.00", "printed": "962.00", "notation": null} |
nlprog_det-setting-0066505 | 87 of 100 members attended. What percent attended?
As a program:
```python
present = 87
total = 100
percent = present / total * 100
print(round(percent, 1))
```
Output = 87.0
87.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "87.0", "printed": "87.0", "notation": null} |
nlprog_det-setting-0066506 | How many days are there from October 23, 2028 to November 8, 2028?
As Python:
```python
from datetime import date
first = date(2028, 10, 23) # datetime.date(2028, 10, 23)
second = date(2028, 11, 8) # datetime.date(2028, 11, 8)
print((second - first).days)
```
Running this gives: 16
There are 16 days between the two... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0066507 | Under a 33% contingency agreement, what fee is owed on a $60,000 award?
Computation in Python:
```python
recovery = 60000
rate = 33 / 100 # 0.33
fee = recovery * rate # 19800.0
print(f"{fee:.2f}")
```
# printed: 19800.00
The fee is $19,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "19800.00", "printed": "19800.00", "notation": null} |
nlprog_det-setting-0066508 | <|start|><|user|>
How many units at $20 each (variable cost $10) cover $6,000 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 6000
price = 20
variable = 10
units = math.ceil(fixed / (price - variable)) # 600
print(units)
```
What it prints: 600
Break-even is 600 units.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $20 each (variable cost $10) cover $6,000 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 6000\nprice = 20\nvariable = 10\nunits = math.ceil(fixed / (price - variable)) # 600\nprint(units)\n```\nWhat it print... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0066509 | Fixed costs are $1,200. Each unit sells for $15 and costs $11 to make. How many units must be sold to break even?
A few lines of Python do it:
import math
fixed = 1200
price = 15
variable = 11
units = math.ceil(fixed / (price - variable)) # 300
print(units)
(Run result: 300)
Break-even is 300... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0066510 | <|start|><|user|>
3 friends split a $240 bill plus a 18% tip evenly. How much does each pay?<|eot|>
<|assistant|>
```python
bill = 240
tip_rate = 18 / 100 # 0.18
people = 3
each = bill * (1 + tip_rate) / people # 94.39999999999999
print(f"{each:.2f}")
```
Interpreter output — 94.40
The share is $94.40 each.<|eot|>
<... | chat | [
{
"role": "user",
"content": "3 friends split a $240 bill plus a 18% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "```python\nbill = 240\ntip_rate = 18 / 100 # 0.18\npeople = 3\neach = bill * (1 + tip_rate) / people # 94.39999999999999\nprint(f\"{each:.2f}\")\n```\... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "94.40", "printed": "94.40", "notation": null} |
nlprog_det-setting-0066511 | <|start|><|user|>
Convert 2,144 USD to EUR at 1 USD = 0.74 EUR.<|eot|>
<|assistant|>
```python
amount = 2144
rate = 0.74
converted = amount * rate # 1586.56
print(f"{converted:.2f}")
```
It prints 1586.56.
That is 1,586.56 EUR.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 2,144 USD to EUR at 1 USD = 0.74 EUR."
},
{
"role": "assistant",
"content": "```python\namount = 2144\nrate = 0.74\nconverted = amount * rate # 1586.56\nprint(f\"{converted:.2f}\")\n```\nIt prints 1586.56.\n\nThat is 1,586.56 EUR."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "1586.56", "printed": "1586.56", "notation": null} |
nlprog_det-setting-0066512 | A trial runs from January 26, 2020 to February 8, 2020, counting both days. How many calendar days is that?
Here's the code.
```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)
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0066513 | With 14 rows of 8 chairs and 9 empty chairs, how many chairs are taken?
As a program:
rows = 14
per_row = 8
empty = 9
seated = rows * per_row - empty # 103
print(seated)
# printed: 103
103 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "103", "printed": "103", "notation": null} |
nlprog_det-setting-0066514 | A count moves from 200 to 280. By what percent did it change (use a minus sign for a drop)?
Coded up:
```python
old = 200
new = 280
change = (new - old) / old * 100 # 40.0
print(round(change))
```
The program prints 40.
The change is 40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0066515 | A garage charges $2 an hour, never more than $15 a day. How much for 10 hours?
As Python:
```python
rate = 2
hours = 10
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
```
(stdout: 15)
The charge is $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0066516 | <|start|><|user|>
27 of 50 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 27
total = 50
percent = present / total * 100 # 54.0
print(round(percent, 1))
```
Running this gives: 54.0
54.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "27 of 50 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 27\ntotal = 50\npercent = present / total * 100 # 54.0\nprint(round(percent, 1))\n```\nRunning this gives: 54.0\n\n54.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "54.0", "printed": "54.0", "notation": null} |
nlprog_det-setting-0066517 | Water costs $18 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 18,000 gallons?
$94.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "94.00", "printed": "94.00", "notation": null} |
nlprog_det-setting-0066518 | A recipe for 8 people uses 200 grams of sugar. How many grams are needed for 10 people?
Computation in Python:
```python
grams = 200
serves = 8
needed_for = 10
scaled = grams * needed_for // serves # 250
print(scaled)
```
(Printed result: 250)
Use 250 g of sugar. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0066519 | <|start|><|user|>
Convert 26 km to meters.<|eot|>
<|assistant|>
```python
km = 26
meters = km * 1000 # 26000
print(round(meters))
```
Result: 26000
That is 26,000 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 26 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 26\nmeters = km * 1000 # 26000\nprint(round(meters))\n```\nResult: 26000\n\nThat is 26,000 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "26000", "printed": "26000", "notation": null} |
nlprog_det-setting-0066520 | <|start|><|user|>
A car travels 464 miles in 4 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
It averages 116 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 464 miles in 4 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "It averages 116 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "116", "printed": "116", "notation": null} |
nlprog_det-setting-0066521 | 5 boxes hold 24 badges each. After 4 are handed out, how many are left?
Code:
boxes = 5
per_box = 24
given_away = 4
left = boxes * per_box - given_away # 116
print(left)
Out — 116
That leaves 116 badges. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "116", "printed": "116", "notation": null} |
nlprog_det-setting-0066522 | A 6-day trip pays $59 a day for meals and $175 a night for lodging (5 nights). What is the total allowance?
As Python:
```python
days = 6
meal_rate = 59
lodging_rate = 175
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 1229
print(total)
```
(Program output: 1229)
The allowance is $1,229. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "1229", "printed": "1229", "notation": null} |
nlprog_det-setting-0066523 | <|start|><|system|>
Functions:
[{"name": "calc", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
The paralegal logged 12 hours at a rate of ... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"calc\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}]"
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 204 | {"gold": "2160.00", "printed": "2160.00", "notation": null} |
nlprog_det-setting-0066524 | <|start|><|user|>
Straight-line depreciation: cost $45,000, salvage $3,000, 8 years. How much per year?<|eot|>
<|assistant|>
$5,250.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $45,000, salvage $3,000, 8 years. How much per year?"
},
{
"role": "assistant",
"content": "$5,250.00 a year."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "5250.00", "printed": "5250.00", "notation": null} |
nlprog_det-setting-0066525 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "calc", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "fetch_filing", "description":... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"calc\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 301 | {"gold": "62.00", "printed": "62.00", "notation": null} |
nlprog_det-setting-0066527 | <|start|><|system|>
You may call the tools below.
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "calculator", "description": "Executes a Python program and returns its output.", "param... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"calculator\", \"description\": \... | nlprog_det | setting | original | null | deterministic | [] | [] | 274 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0066528 | <|start|><|user|>
Split $488 between Sofia and Tariq in the ratio 3 to 5. What is Sofia's share?<|eot|>
<|assistant|>
Sofia gets $183.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $488 between Sofia and Tariq in the ratio 3 to 5. What is Sofia's share?"
},
{
"role": "assistant",
"content": "Sofia gets $183."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "183", "printed": "183", "notation": null} |
nlprog_det-setting-0066529 | Walls total 1268 sq ft and each can covers 300 sq ft. How many cans should be bought?
```python
import math
area = 1268
coverage = 300
cans = math.ceil(area / coverage) # 5
print(cans)
```
# program output: 5
5 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0066530 | <|start|><|user|>
Count the days between October 24, 2024 and March 31, 2025.<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2024, 10, 24) # datetime.date(2024, 10, 24)
second = date(2025, 3, 31) # datetime.date(2025, 3, 31)
print((second - first).days)
```
Run it and it prints 158.
There are ... | chat | [
{
"role": "user",
"content": "Count the days between October 24, 2024 and March 31, 2025."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2024, 10, 24) # datetime.date(2024, 10, 24)\nsecond = date(2025, 3, 31) # datetime.date(2025, 3, 31)\nprint((secon... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "158", "printed": "158", "notation": null} |
nlprog_det-setting-0066531 | <|start|><|user|>
Counting the first and last day, how many days are there from March 4, 2027 through March 16, 2027?<|eot|>
<|assistant|>
from datetime import date
first = date(2027, 3, 4) # datetime.date(2027, 3, 4)
last = date(2027, 3, 16) # datetime.date(2027, 3, 16)
days = (last - first).days + 1... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from March 4, 2027 through March 16, 2027?"
},
{
"role": "assistant",
"content": " from datetime import date\n first = date(2027, 3, 4) # datetime.date(2027, 3, 4)\n last = date(2027, 3, 16) # datet... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0066532 | What is the total rent on a 6-month lease at $1,200 a month?
We write it as a program:
monthly_rent = 1200
months = 6
total = monthly_rent * months # 7200
print(total)
Console:
7200
The rent over the term is $7,200. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "7200", "printed": "7200", "notation": null} |
nlprog_det-setting-0066533 | 105 of 200 members attended. What percent attended?
Python code:
present = 105
total = 200
percent = present / total * 100
print(round(percent, 1))
What it prints — 52.5
52.5% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "52.5", "printed": "52.5", "notation": null} |
nlprog_det-setting-0066534 | <|start|><|user|>
After an initial $6,000, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?<|eot|>
<|assistant|>
```python
grant = 60000
up_front = 6000
installments = 12
each = (grant - up_front) / installments # 4500.0
print(f"{each:.2f}")
```
The printout reads: 4500.00
Each installme... | chat | [
{
"role": "user",
"content": "After an initial $6,000, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "```python\ngrant = 60000\nup_front = 6000\ninstallments = 12\neach = (grant - up_front) / installments # 4500.0\nprint(f\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0066535 | <|start|><|system|>
Tool definitions:
{"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Equal monthly payments repay... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s... | nlprog_det | setting | original | null | deterministic | [] | [] | 244 | {"gold": "324.00", "printed": "324.00", "notation": null} |
nlprog_det-setting-0066536 | Which is cheaper per unit: 12 for $5.69 (A) or 15 for $12.11 (B)?
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0066537 | <|start|><|user|>
How many of 17 votes make 60% (round up)?<|eot|>
<|assistant|>
```python
import math
voters = 17
needed = math.ceil(voters * 60 / 100) # 11
print(needed)
```
# printed: 11
11 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 17 votes make 60% (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 17\nneeded = math.ceil(voters * 60 / 100) # 11\nprint(needed)\n```\n# printed: 11\n\n11 votes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0066538 | <|start|><|user|>
A 15 lb package ships at $8 base plus $2.00/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 8
per_pound = 2.0
weight = 15
cost = base + per_pound * weight # 38.0
print(f"{cost:.2f}")
```
Python prints 38.00.
Shipping costs $38.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 15 lb package ships at $8 base plus $2.00/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 8\nper_pound = 2.0\nweight = 15\ncost = base + per_pound * weight # 38.0\nprint(f\"{cost:.2f}\")\n```\nPython prints 38.00.\n\nShipping cost... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "38.00", "printed": "38.00", "notation": null} |
nlprog_det-setting-0066539 | <|start|><|user|>
Counting the first and last day, how many days are there from October 11, 2018 through October 20, 2018?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2018, 10, 11) # datetime.date(2018, 10, 11)
last = date(2018, 10, 20) # datetime.date(2018, 10, 20)
days = (last - first).day... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from October 11, 2018 through October 20, 2018?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2018, 10, 11) # datetime.date(2018, 10, 11)\nlast = date(2018, 10, 20)... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0066540 | A $1,000 security deposit has deductions of $45. How much is refunded?
Translated to Python:
```python
deposit = 1000
deductions = [45]
refund = deposit - sum(deductions) # 955
print(refund)
```
Result: 955
$955 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "955", "printed": "955", "notation": null} |
nlprog_det-setting-0066541 | Monthly rent is $1,800. A tenant moves in with 22 days left in a 31-day month. What is the prorated rent?
The tenant owes $1,277.42. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "1277.42", "printed": "1277.42", "notation": null} |
nlprog_det-setting-0066542 | Meals are $59 per day and lodging $140 per night. What is the allowance for 3 days and 2 nights?
Computation in Python:
days = 3
meal_rate = 59
lodging_rate = 140
nights = days - 1 # 2
total = days * meal_rate + nights * lodging_rate # 457
print(total)
Out = 457
That comes to $457. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "457", "printed": "457", "notation": null} |
nlprog_det-setting-0066543 | 159 copies of a 16-page packet are printed at $0.05 per page. What is the cost?
We write it as a program:
```python
pages = 16
copies = 159
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 127.2
print(f"{cost:.2f}")
```
Output: 127.20
The job costs $127.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "127.20", "printed": "127.20", "notation": null} |
nlprog_det-setting-0066544 | A client paid a $5,000 retainer. The firm has billed 10 hours at $275 per hour. How much of the retainer is left?
As a program:
```python
retainer = 5000
hours = 10
rate = 275
left = retainer - hours * rate
print(left)
```
The code prints: 2250
The remaining balance is $2,250. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0066545 | <|start|><|user|>
At 40 miles per hour, how many minutes does a 170-mile trip take?<|eot|>
<|assistant|>
```python
distance = 170
speed = 40
minutes = distance / speed * 60 # 255.0
print(round(minutes))
```
This prints 255, as expected.
The trip takes 255 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 40 miles per hour, how many minutes does a 170-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 170\nspeed = 40\nminutes = distance / speed * 60 # 255.0\nprint(round(minutes))\n```\nThis prints 255, as expected.\n\nThe trip takes 255 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "255", "printed": "255", "notation": null} |
nlprog_det-setting-0066546 | Rent of $1,250 goes up 6%. What is the new rent?
Written as code:
rent = 1250
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 1325.0
print(f"{new_rent:.2f}")
When run, it prints 1325.00, as expected.
The new rent is $1,325.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "1325.00", "printed": "1325.00", "notation": null} |
nlprog_det-setting-0066547 | <|start|><|user|>
A hall has 15 rows of 12 seats, and 2 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 15
per_row = 12
empty = 2
seated = rows * per_row - empty # 178
print(seated)
```
# output: 178
178 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 15 rows of 12 seats, and 2 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 15\nper_row = 12\nempty = 2\nseated = rows * per_row - empty # 178\nprint(seated)\n```\n# output: 178\n\n178 people are seate... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "178", "printed": "178", "notation": null} |
nlprog_det-setting-0066548 | <|start|><|user|>
$2,000 is invested at 4% compounded yearly. What is it worth after 3 years?<|eot|>
<|assistant|>
The balance is $2,249.73.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "$2,000 is invested at 4% compounded yearly. What is it worth after 3 years?"
},
{
"role": "assistant",
"content": "The balance is $2,249.73."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "2249.73", "printed": "2249.73", "notation": null} |
nlprog_det-setting-0066549 | A class starts at 12:20 PM and lasts 50 minutes. When does it end?
Coded up:
```python
start = 12 * 60 + 20
end = start + 50
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Printed: 1:10 PM
It ends at 1:10 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "1:10 PM", "printed": "1:10 PM", "notation": null} |
nlprog_det-setting-0066550 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
Nadia was born on October 14, 1977. How old is Nadia on January 1, 2022?<|eot|>
<|assistant|>
Nadia is 44.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "Nadia was born on October 14, 1977. How old is Nadia on January 1, 2022?"
},
{
"role": "assistant",
"content": "Nadia is 44."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0066551 | <|start|><|system|>
Functions:
{"name": "compute", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
Equipment costs $45,000, has a salvage... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"compute\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 241 | {"gold": "14000.00", "printed": "14000.00", "notation": null} |
nlprog_det-setting-0066552 | <|start|><|user|>
A garage charges $4 an hour, never more than $15 a day. How much for 5 hours?<|eot|>
<|assistant|>
The charge is $15.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $4 an hour, never more than $15 a day. How much for 5 hours?"
},
{
"role": "assistant",
"content": "The charge is $15."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0066553 | An attorney bills 6.5 hours at $225 per hour. What is the bill?
Python does the arithmetic:
```python
hours = 6.5
rate = 225
bill = hours * rate # 1462.5
print(f"{bill:.2f}")
```
This prints 1462.50, as expected.
That comes to $1,462.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1462.50", "printed": "1462.50", "notation": null} |
nlprog_det-setting-0066554 | An invoice lists 11 keyboards at $24 each, plus 10% sales tax. What is the invoice total?
```python
quantity = 11
unit_price = 24
subtotal = quantity * unit_price # 264
total = subtotal * (1 + 10 / 100) # 290.40000000000003
print(f"{total:.2f}")
```
# run result: 290.40
The total with tax is $290.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "290.40", "printed": "290.40", "notation": null} |
nlprog_det-setting-0066555 | <|start|><|user|>
A claim accrued on July 10, 2024. The limitations period is 6 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2024, 7, 10) # datetime.date(2024, 7, 10)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(2030, 7, ... | chat | [
{
"role": "user",
"content": "A claim accrued on July 10, 2024. The limitations period is 6 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2024, 7, 10) # datetime.date(2024, 7, 10)\nyears = 6\nexpires = accrued.rep... | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2030-07-10", "printed": "2030-07-10", "notation": null} |
nlprog_det-setting-0066556 | <|start|><|user|>
Find the mean of these test scores: 87, 95 and 52.<|eot|>
<|assistant|>
scores = [87, 95, 52]
average = sum(scores) // len(scores)
print(average)
Printed — 78
The mean is 78.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 87, 95 and 52."
},
{
"role": "assistant",
"content": " scores = [87, 95, 52]\n average = sum(scores) // len(scores)\n print(average)\nPrinted — 78\n\nThe mean is 78."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "78", "printed": "78", "notation": null} |
nlprog_det-setting-0066557 | 5 friends split a $150 bill plus a 20% tip evenly. How much does each pay? The share is $36.00 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0066558 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
Rent of $900 goes up 2%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 900
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 918.0
print(f"{new_rent:.2f}")
```
Executed, it shows 918.00.
The new rent is $918.0... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "Rent of $900 goes up 2%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 900\nincrease = 2 / 100 # 0.02\nnew_rent = rent * (1 + increase) ... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "918.00", "printed": "918.00", "notation": null} |
nlprog_det-setting-0066559 | A $6,000 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?
```python
principal = 6000
annual_rate = 8 / 100 # 0.08
months = 12
interest = principal * annual_rate * months / 12 # 480.0
payment = (principal + interest) / months # ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "540.00", "printed": "540.00", "notation": null} |
nlprog_det-setting-0066560 | <|start|><|user|>
15 of 20 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 15
total = 20
percent = present / total * 100 # 75.0
print(round(percent, 1))
```
Result — 75.0
Attendance was 75.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "15 of 20 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 15\ntotal = 20\npercent = present / total * 100 # 75.0\nprint(round(percent, 1))\n```\nResult — 75.0\n\nAttendance was 75.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "75.0", "printed": "75.0", "notation": null} |
nlprog_det-setting-0066561 | A seminar starts at 8:45 AM and lasts 50 minutes. When does it end?
Python makes this quick:
```python
start = 8 * 60 + 45
end = start + 50
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
It outputs: 9:35 AM
The seminar finishes at 9:35 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "9:35 AM", "printed": "9:35 AM", "notation": null} |
nlprog_det-setting-0066562 | What is the total rent on a 24-month lease at $2,875 a month?
Here is the program.
```python
monthly_rent = 2875
months = 24
total = monthly_rent * months # 69000
print(total)
```
(Execution result: 69000)
The rent over the term is $69,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "69000", "printed": "69000", "notation": null} |
nlprog_det-setting-0066563 | <|start|><|user|>
A car gets 20 miles per gallon. Gas is $4.12 a gallon. What does fuel cost for a 240-mile trip?<|eot|>
<|assistant|>
Fuel costs $49.44.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car gets 20 miles per gallon. Gas is $4.12 a gallon. What does fuel cost for a 240-mile trip?"
},
{
"role": "assistant",
"content": "Fuel costs $49.44."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "49.44", "printed": "49.44", "notation": null} |
nlprog_det-setting-0066564 | What simple interest does $20,000 earn at 4% a year over 2 years?
As Python:
```python
principal = 20000
rate = 4 / 100 # 0.04
years = 2
interest = principal * rate * years # 1600.0
print(f"{interest:.2f}")
```
Execution prints 1600.00.
It earns $1,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1600.00", "printed": "1600.00", "notation": null} |
nlprog_det-setting-0066565 | A service costs $12 a month or $120 a year. How much does the yearly plan save over 12 monthly payments?
We can compute it in Python.
monthly = 12
yearly = 120
savings = monthly * 12 - yearly
print(savings)
Executing it gives 24, as expected.
The annual plan saves $24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0066566 | Buying 1 folders at $30 each, 4 tape rolls at $2 each, 4 markers at $28 each, someone hands over $200. What change comes back?
Programmatically:
```python
items = [(1, 30), (4, 2), (4, 28)]
total = sum(q * p for q, p in items) # 150
paid = 200
change = paid - total # 50
print(change)
```
Interpreter output: 50
$50 ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0066567 | A party has 28 days to respond to a motion served on November 3, 2023, with 3 days added because service was by mail. When is the response due?
from datetime import date, timedelta
served = date(2023, 11, 3) # datetime.date(2023, 11, 3)
response_days = 28
mail_days = 3
due = served + timedelta(day... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "2023-12-04", "printed": "2023-12-04", "notation": null} |
nlprog_det-setting-0066568 | A appointment starts at 11:45 AM and lasts 150 minutes. When does it end?
start = 11 * 60 + 45
end = start + 150
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
Out — 2:15 PM
It ends at 2:15 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "2:15 PM", "printed": "2:15 PM", "notation": null} |
nlprog_det-setting-0066569 | What is a 10% tip on a $22.89 bill?
```python
bill = 22.89
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 2.289
print(f"{tip:.2f}")
```
It outputs 2.29.
Leave $2.29. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "2.29", "printed": "2.29", "notation": null} |
nlprog_det-setting-0066570 | <|start|><|system|>
You may call the tools below.
[{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
An unpaid balance of $1,... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 235 | {"gold": "40.00", "printed": "40.00", "notation": null} |
nlprog_det-setting-0066571 | Fines run at $25 per day up to a maximum of $2,500. How much after 48 days?
Here's the code.
```python
per_day = 25
days = 48
cap = 2500
fine = min(per_day * days, cap) # 1200
print(fine)
```
Output of the run — 1200
$1,200 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0066572 | Starting from $20,000, the team spends $1,923, $2,627. What remains?
Script:
budget = 20000
expenses = [1923, 2627]
left = budget - sum(expenses) # 15450
print(left)
Run result = 15450
$15,450 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "15450", "printed": "15450", "notation": null} |
nlprog_det-setting-0066573 | A 20 × 6 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
Written as code:
```python
import math
length = 20
width = 6
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 120
print(tiles)
```
Running this gives: 120
It takes 120 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0066574 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
Split $4,368 between Yoko and Delia in the ratio 2 to 5. What is Yoko's share?<|eot|>
<|assistant|>
```python
total = 4368
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1248
print(share_a)
```
# program output: 1248
Yoko's share... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "Split $4,368 between Yoko and Delia in the ratio 2 to 5. What is Yoko's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 4368\nparts_a = 2\nparts_b = 5\nshare_a = total * parts_... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "1248", "printed": "1248", "notation": null} |
nlprog_det-setting-0066575 | Parking is $3 per hour with a daily maximum of $18. What do 12 hours cost?
Python, step by step:
rate = 3
hours = 12
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
Running it prints 18.
Parking costs $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0066576 | Ulla was born on October 4, 1968. How old is Ulla on September 8, 2029?
Set it up in Python:
```python
from datetime import date
born = date(1968, 10, 4) # datetime.date(1968, 10, 4)
on = date(2029, 9, 8) # datetime.date(2029, 9, 8)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 60
prin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 163 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0066577 | Printing costs 12 cents a page. What does it cost to print 99 copies of a 9-page handout?
A few lines of Python do it:
```python
pages = 9
copies = 99
cost_per_page = 0.12
cost = pages * copies * cost_per_page
print(f"{cost:.2f}")
```
Printed result — 106.92
The job costs $106.92. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "106.92", "printed": "106.92", "notation": null} |
nlprog_det-setting-0066578 | <|start|><|system|>
You can call tools. Available tools:
{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}
{"name": "lookup_statute", "descrip... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 368 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0066580 | How long, in days, is it from April 7, 2018 until December 27, 2018?
Here's the code.
```python
from datetime import date
first = date(2018, 4, 7) # datetime.date(2018, 4, 7)
second = date(2018, 12, 27) # datetime.date(2018, 12, 27)
print((second - first).days)
```
Printed:
264
There are 264 days between the two da... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "264", "printed": "264", "notation": null} |
nlprog_det-setting-0066581 | A service costs $12 a month or $132 a year. How much does the yearly plan save over 12 monthly payments?
One way, in code:
```python
monthly = 12
yearly = 132
savings = monthly * 12 - yearly # 12
print(savings)
```
The printout reads 12.
$12 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0066582 | A hearing is set for July 28, 2000. What day of the week is that?
July 28, 2000 is a Friday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0066583 | <|start|><|user|>
A measure needs at least 67% of 108 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
73 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 67% of 108 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "73 votes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "73", "printed": "73", "notation": null} |
nlprog_det-setting-0066584 | <|start|><|user|>
Zoe earns a 6% commission on $53,357 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 53357
rate = 6 / 100 # 0.06
commission = sales * rate # 3201.42
print(f"{commission:.2f}")
```
When run, it prints 3201.42, as expected.
The commission is $3,201.42.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Zoe earns a 6% commission on $53,357 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 53357\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 3201.42\nprint(f\"{commission:.2f}\")\n```\nWhen run, it prints 3201.42, as e... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "3201.42", "printed": "3201.42", "notation": null} |
nlprog_det-setting-0066585 | An unpaid balance of $2,500 accrues 2% simple interest per month. How much interest accrues in 2 months?
The interest is $100.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "100.00", "printed": "100.00", "notation": null} |
nlprog_det-setting-0066586 | At 1.5% a month (simple), what interest builds on $7,500 over 5 months?
In Python:
balance = 7500
monthly_rate = 1.5 / 100 # 0.015
months = 5
interest = balance * monthly_rate * months # 562.5
print(f"{interest:.2f}")
Result — 562.50
$562.50 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "562.50", "printed": "562.50", "notation": null} |
nlprog_det-setting-0066587 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
4 books come back 17 days late, at $0.25 a day each. What is the fine?<|eot|>
<|assistant|>
per_day = 0.25
days_late = 17
books = 4
fine = per_day * days_late * books # 17.0
print(f"{fine:.2f}")
# printed: 17.00
$17.00 is owed.<|eot|>
<... | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "4 books come back 17 days late, at $0.25 a day each. What is the fine?"
},
{
"role": "assistant",
"content": " per_day = 0.25\n days_late = 17\n books = 4\n fine = per_day * days_l... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "17.00", "printed": "17.00", "notation": null} |
nlprog_det-setting-0066588 | Straight-line depreciation: cost $30,000, salvage $6,000, 5 years. How much per year?
Code:
```python
cost = 30000
salvage = 6000
years = 5
per_year = (cost - salvage) / years # 4800.0
print(f"{per_year:.2f}")
```
Interpreter output — 4800.00
$4,800.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "4800.00", "printed": "4800.00", "notation": null} |
nlprog_det-setting-0066589 | <|start|><|user|>
Each of Jae's swims burns 250 calories. How many calories over 6 swims?<|eot|>
<|assistant|>
```python
per_session = 250
sessions = 6
total = per_session * sessions # 1500
print(total)
```
That prints 1500.
That burns 1500 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Jae's swims burns 250 calories. How many calories over 6 swims?"
},
{
"role": "assistant",
"content": "```python\nper_session = 250\nsessions = 6\ntotal = per_session * sessions # 1500\nprint(total)\n```\nThat prints 1500.\n\nThat burns 1500 calories."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0066590 | <|start|><|user|>
How many days are there from November 15, 2019 to March 30, 2020?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2019, 11, 15) # datetime.date(2019, 11, 15)
second = date(2020, 3, 30) # datetime.date(2020, 3, 30)
print((second - first).days)
```
Console output: 136
There are ... | chat | [
{
"role": "user",
"content": "How many days are there from November 15, 2019 to March 30, 2020?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2019, 11, 15) # datetime.date(2019, 11, 15)\nsecond = date(2020, 3, 30) # datetime.date(2020, 3, 30)\nprint(... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "136", "printed": "136", "notation": null} |
nlprog_det-setting-0066591 | What is the total rent on a 36-month lease at $2,875 a month?
The program:
```python
monthly_rent = 2875
months = 36
total = monthly_rent * months
print(total)
```
The run gives: 103500
The rent over the term is $103,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "103500", "printed": "103500", "notation": null} |
nlprog_det-setting-0066592 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
A customer buys 3 hard drives at $16 each, 2 flash drives at $3 each, 5 cables at $16 each and pays with $150. How much change is due?<|eot|>
<|assistant|>
```python
items = [(3, 16), (2, 3), (5, 16)]
total = sum(q * p for q, p in items) # 134
paid = 150
cha... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "A customer buys 3 hard drives at $16 each, 2 flash drives at $3 each, 5 cables at $16 each and pays with $150. How much change is due?"
},
{
"role": "assistant",
"content": "```python\nitems = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0066593 | <|start|><|user|>
A trial runs from September 18, 2021 to October 13, 2021, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
That is 26 days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A trial runs from September 18, 2021 to October 13, 2021, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "That is 26 days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0066595 | What is the total rent on a 24-month lease at $1,640 a month?
Python version:
```python
monthly_rent = 1640
months = 24
total = monthly_rent * months # 39360
print(total)
```
(Printed result: 39360)
In total, $39,360 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "39360", "printed": "39360", "notation": null} |
nlprog_det-setting-0066596 | Of a $5,000 budget, $1,700 has been spent. What percent is that?
We can compute it in Python.
budget = 5000
spent = 1700
percent = spent / budget * 100 # 34.0
print(round(percent, 1))
Python prints 34.0, as expected.
34.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "34.0", "printed": "34.0", "notation": null} |
nlprog_det-setting-0066597 | <|start|><|system|>
Functions:
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "eval_python", "description": "Executes a Python program and r... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}\n{\"name\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 301 | {"gold": "317", "printed": "317", "notation": null} |
nlprog_det-setting-0066598 | <|start|><|system|>
Tools you may use:
[{"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
From a $7,500 retainer, 13 hours a... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 221 | {"gold": "4250", "printed": "4250", "notation": null} |
nlprog_det-setting-0066599 | A 19 × 14 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
One way, in code:
```python
import math
length = 19
width = 14
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 266
print(tiles)
```
Executed, it shows: 266
266 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "266", "printed": "266", "notation": null} |
nlprog_det-setting-0066600 | <|start|><|system|>
Tools you may use:
[{"name": "eval_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Lucia earn... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"eval_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 231 | {"gold": "2469.60", "printed": "2469.60", "notation": null} |
nlprog_det-setting-0066601 | <|start|><|user|>
A 18 × 13 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 18
width = 13
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 234
print(tiles)
```
# printed: 234
It takes 234 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 18 × 13 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 18\nwidth = 13\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 234\nprint(tiles)\n```\n# printed... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "234", "printed": "234", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.