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-0055604 | A recipe for 2 people uses 240 grams of flour. How many grams are needed for 12 people?
Computing it:
grams = 240
serves = 2
needed_for = 12
scaled = grams * needed_for // serves # 1440
print(scaled)
# console output: 1440
Use 1440 g of flour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "1440", "printed": "1440", "notation": null} |
nlprog_det-setting-0055605 | <|start|><|user|>
How much sales tax is charged on a $730.06 purchase at 5%?<|eot|>
<|assistant|>
```python
price = 730.06
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 36.503
print(f"{tax:.2f}")
```
Executing it gives 36.50, as expected.
The tax is $36.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $730.06 purchase at 5%?"
},
{
"role": "assistant",
"content": "```python\nprice = 730.06\ntax_rate = 5 / 100 # 0.05\ntax = price * tax_rate # 36.503\nprint(f\"{tax:.2f}\")\n```\nExecuting it gives 36.50, as expected.\n\nThe tax i... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "36.50", "printed": "36.50", "notation": null} |
nlprog_det-setting-0055606 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
With $20,000 in costs and $21,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 21000
costs = 20000
profit = revenue - costs
margin = profit / revenue * 100
print(round(margin, 1))
```
Th... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "With $20,000 in costs and $21,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 21000\ncosts = 20000\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "4.8", "printed": "4.8", "notation": null} |
nlprog_det-setting-0055607 | What simple interest does $2,500 earn at 5% a year over 6 years?
Computing it:
```python
principal = 2500
rate = 5 / 100 # 0.05
years = 6
interest = principal * rate * years # 750.0
print(f"{interest:.2f}")
```
The printout reads 750.00.
It earns $750.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "750.00", "printed": "750.00", "notation": null} |
nlprog_det-setting-0055608 | <|start|><|user|>
Convert 25 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 25
fahrenheit = celsius * 9 / 5 + 32 # 77.0
print(round(fahrenheit))
```
Result: 77
That is 77 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 25 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 25\nfahrenheit = celsius * 9 / 5 + 32 # 77.0\nprint(round(fahrenheit))\n```\nResult: 77\n\nThat is 77 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0055609 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
What simple interest does $12,000 earn at 6% a year over 3 years?<|eot|>
<|assistant|>
It earns $2,160.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "What simple interest does $12,000 earn at 6% a year over 3 years?"
},
{
"role": "assistant",
"content": "It earns $2,160.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "2160.00", "printed": "2160.00", "notation": null} |
nlprog_det-setting-0055610 | A $150 dinner bill gets a 18% tip, and 4 people share the cost equally. What is each person's share?
Each person pays $44.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "44.25", "printed": "44.25", "notation": null} |
nlprog_det-setting-0055611 | What does $1,000 grow to in 5 years at 2% annual compounding?
```python
principal = 1000
rate = 2 / 100 # 0.02
years = 5
value = principal * (1 + rate) ** years # 1104.0808032
print(f"{value:.2f}")
```
Running it prints 1104.08, as expected.
It is worth $1,104.08. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "1104.08", "printed": "1104.08", "notation": null} |
nlprog_det-setting-0055612 | A shift runs from 9:03 AM to 10:05 AM. How long is it in minutes?
Python makes this quick:
```python
start = 9 * 60 + 3 # 543
end = 10 * 60 + 5 # 605
print(end - start)
```
Executing it gives 62.
62 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "62", "printed": "62", "notation": null} |
nlprog_det-setting-0055614 | <|start|><|user|>
Rent of $1,250 goes up 4%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1250
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1300.0
print(f"{new_rent:.2f}")
```
Out:
1300.00
It rises to $1,300.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $1,250 goes up 4%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1250\nincrease = 4 / 100 # 0.04\nnew_rent = rent * (1 + increase) # 1300.0\nprint(f\"{new_rent:.2f}\")\n```\nOut:\n1300.00\n\nIt rises to $1,300.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1300.00", "printed": "1300.00", "notation": null} |
nlprog_det-setting-0055615 | A 8 × 13 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
```python
import math
length = 8
width = 13
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 26
print(tiles)
```
Result:
26
It takes 26 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0055616 | A customer buys 1 scissors at $10 each, 2 paper reams at $10 each and pays with $50. How much change is due?
$20 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0055617 | Liesel drove 418 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?
In code:
```python
miles = 418
rate = 0.58
reimbursement = miles * rate # 242.43999999999997
print(f"{reimbursement:.2f}")
```
(Printed: 242.44)
Liesel is owed $242.44. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "242.44", "printed": "242.44", "notation": null} |
nlprog_det-setting-0055618 | <|start|><|user|>
How many 2-foot square tiles cover a 19 ft by 4 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 19
width = 4
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 19
print(tiles)
```
The program prints: 19
19 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 2-foot square tiles cover a 19 ft by 4 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 19\nwidth = 4\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 19\nprint(tiles)\n```\nThe program prints: 19\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0055619 | <|start|><|user|>
A 148-page report must be reviewed in 4 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 148
days = 4
per_day = pages // days
print(per_day)
```
The printout reads: 37
37 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 148-page report must be reviewed in 4 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 148\ndays = 4\nper_day = pages // days\nprint(per_day)\n```\nThe printout reads: 37\n\n37 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0055620 | <|start|><|user|>
Kaito was born on November 15, 1952. How old is Kaito on July 21, 2024?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1952, 11, 15) # datetime.date(1952, 11, 15)
on = date(2024, 7, 21) # datetime.date(2024, 7, 21)
age = on.year - born.year - ((on.month, on.day) < (born.month, ... | chat | [
{
"role": "user",
"content": "Kaito was born on November 15, 1952. How old is Kaito on July 21, 2024?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1952, 11, 15) # datetime.date(1952, 11, 15)\non = date(2024, 7, 21) # datetime.date(2024, 7, 21)\nage =... | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0055621 | One can of paint covers 300 square feet. How many cans are needed for 1232 square feet of wall?
We write it as a program:
```python
import math
area = 1232
coverage = 300
cans = math.ceil(area / coverage) # 5
print(cans)
```
Execution prints: 5
5 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0055622 | <|start|><|system|>
Tools (call with JSON):
[{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "python", "description": "Run Python code in a sandbox; the result is whatever the code prints.... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"python\", \"description\": \"Run Python ... | nlprog_det | setting | original | null | deterministic | [] | [] | 324 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0055623 | <|start|><|user|>
What commission does Tobias make on $103,843 in sales at 3%?<|eot|>
<|assistant|>
Tobias earns $3,115.29.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Tobias make on $103,843 in sales at 3%?"
},
{
"role": "assistant",
"content": "Tobias earns $3,115.29."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "3115.29", "printed": "3115.29", "notation": null} |
nlprog_det-setting-0055624 | <|start|><|system|>
Tools you may use:
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "calc", "description": "Runs a short Python snippet and returns what it prin... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"calc\", \"description... | nlprog_det | setting | original | null | deterministic | [] | [] | 275 | {"gold": "6.0", "printed": "6.0", "notation": null} |
nlprog_det-setting-0055625 | The paralegal logged 2.5 hours at a rate of $150. How much is billed?
The program:
```python
hours = 2.5
rate = 150
bill = hours * rate # 375.0
print(f"{bill:.2f}")
```
Python prints: 375.00
The bill is $375.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "375.00", "printed": "375.00", "notation": null} |
nlprog_det-setting-0055626 | A party has 28 days to respond to a motion served on January 27, 2023, with 3 days added because service was by mail. When is the response due?
Python, step by step:
```python
from datetime import date, timedelta
served = date(2023, 1, 27) # datetime.date(2023, 1, 27)
response_days = 28
mail_days = 3
due = served + t... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 177 | {"gold": "2023-02-27", "printed": "2023-02-27", "notation": null} |
nlprog_det-setting-0055627 | <|start|><|user|>
At a 9% tax rate, what is the tax on $183.39?<|eot|>
<|assistant|>
```python
price = 183.39
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 16.5051
print(f"{tax:.2f}")
```
Python prints: 16.51
The tax is $16.51.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 9% tax rate, what is the tax on $183.39?"
},
{
"role": "assistant",
"content": "```python\nprice = 183.39\ntax_rate = 9 / 100 # 0.09\ntax = price * tax_rate # 16.5051\nprint(f\"{tax:.2f}\")\n```\nPython prints: 16.51\n\nThe tax is $16.51."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "16.51", "printed": "16.51", "notation": null} |
nlprog_det-setting-0055628 | <|start|><|system|>
You may call the tools below.
[{"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|>
At a 6% tax rate, what ... | chat | [
{
"role": "system",
"content": "You may call the tools below.\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\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 220 | {"gold": "7.93", "printed": "7.93", "notation": null} |
nlprog_det-setting-0055629 | What is the total rent on a 36-month lease at $2,875 a month?
The Python version:
```python
monthly_rent = 2875
months = 36
total = monthly_rent * months
print(total)
```
stdout — 103500
In total, $103,500 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "103500", "printed": "103500", "notation": null} |
nlprog_det-setting-0055630 | At 40 miles per hour, how many minutes does a 160-mile trip take?
Coded up:
```python
distance = 160
speed = 40
minutes = distance / speed * 60 # 240.0
print(round(minutes))
```
What it prints — 240
240 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0055631 | Monthly: $15. Annual: $144. What is saved per year by paying annually?
In code:
```python
monthly = 15
yearly = 144
savings = monthly * 12 - yearly # 36
print(savings)
```
Execution result: 36
$36 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0055632 | <|start|><|user|>
Someone works 12 hours at $27.68 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 27.68
hours = 12
earnings = rate * hours # 332.15999999999997
print(f"{earnings:.2f}")
```
Executing it gives 332.16.
That earns $332.16.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 12 hours at $27.68 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 27.68\nhours = 12\nearnings = rate * hours # 332.15999999999997\nprint(f\"{earnings:.2f}\")\n```\nExecuting it gives 332.16.\n\nThat earns $33... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "332.16", "printed": "332.16", "notation": null} |
nlprog_det-setting-0055633 | What commission does Rafael make on $71,448 in sales at 6%?
Here is a short program for it.
```python
sales = 71448
rate = 6 / 100 # 0.06
commission = sales * rate # 4286.88
print(f"{commission:.2f}")
```
That prints 4286.88.
The commission is $4,286.88. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "4286.88", "printed": "4286.88", "notation": null} |
nlprog_det-setting-0055634 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source co... | nlprog_det | setting | original | null | deterministic | [] | [] | 218 | {"gold": "59.55", "printed": "59.55", "notation": null} |
nlprog_det-setting-0055635 | <|start|><|user|>
Fixed costs are $9,000. Each unit sells for $40 and costs $36 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 9000
price = 40
variable = 36
units = math.ceil(fixed / (price - variable)) # 2250
print(units)
```
Program output — 2250
Break-even is... | chat | [
{
"role": "user",
"content": "Fixed costs are $9,000. Each unit sells for $40 and costs $36 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 9000\nprice = 40\nvariable = 36\nunits = math.ceil(fixed / (price - variable)) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0055636 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
With $4,000 in costs and $4,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 4500
costs = 4000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 11.11111111111111
... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "With $4,000 in costs and $4,500 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 4500\ncosts = 4000... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "11.1", "printed": "11.1", "notation": null} |
nlprog_det-setting-0055637 | <|start|><|user|>
A shift runs from 10:25 AM to 1:55 PM. How long is it in minutes?<|eot|>
<|assistant|>
```python
start = 10 * 60 + 25 # 625
end = 13 * 60 + 55 # 835
print(end - start)
```
stdout:
210
It is 210 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 10:25 AM to 1:55 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "```python\nstart = 10 * 60 + 25 # 625\nend = 13 * 60 + 55 # 835\nprint(end - start)\n```\nstdout:\n210\n\nIt is 210 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "210", "printed": "210", "notation": null} |
nlprog_det-setting-0055638 | The meal allowance is $69 per day. What is it for 4 days?
As a program:
```python
days = 4
meal_rate = 69
total = days * meal_rate
print(total)
```
Executed, it shows: 276
The allowance is $276. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "276", "printed": "276", "notation": null} |
nlprog_det-setting-0055639 | 117 of 200 members attended. What percent attended?
As Python:
```python
present = 117
total = 200
percent = present / total * 100 # 58.5
print(round(percent, 1))
```
Out — 58.5
Attendance was 58.5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "58.5", "printed": "58.5", "notation": null} |
nlprog_det-setting-0055640 | <|start|><|user|>
What commission does Diego make on $79,458 in sales at 10%?<|eot|>
<|assistant|>
Diego earns $7,945.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Diego make on $79,458 in sales at 10%?"
},
{
"role": "assistant",
"content": "Diego earns $7,945.80."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "7945.80", "printed": "7945.80", "notation": null} |
nlprog_det-setting-0055641 | <|start|><|user|>
With $12,500 in costs and $14,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 14500
costs = 12500
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 13.793103448275861
print(round(margin, 1))
```
The interpreter prints:... | chat | [
{
"role": "user",
"content": "With $12,500 in costs and $14,500 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 14500\ncosts = 12500\nprofit = revenue - costs # 2000\nmargin = profit / revenue * 100 # 13.793103448... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "13.8", "printed": "13.8", "notation": null} |
nlprog_det-setting-0055642 | Buying 3 desk lamps at $15 each, 4 envelopes at $17 each, 4 tape rolls at $13 each, someone hands over $200. What change comes back?
Here's the code.
```python
items = [(3, 15), (4, 17), (4, 13)]
total = sum(q * p for q, p in items) # 165
paid = 200
change = paid - total # 35
print(change)
```
It prints 35.
The cha... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0055643 | A water bill is $12 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 20 thousand gallons?
The bill is $103.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "103.80", "printed": "103.80", "notation": null} |
nlprog_det-setting-0055644 | <|start|><|system|>
Functions:
[{"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
A $48,000 grant pays $3,... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 249 | {"gold": "11250.00", "printed": "11250.00", "notation": null} |
nlprog_det-setting-0055645 | Fines run at $100 per day up to a maximum of $1,000. How much after 14 days?
One way, in code:
```python
per_day = 100
days = 14
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
That prints 1000.
The fine is $1,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0055646 | <|start|><|system|>
You can call tools. Available tools:
{"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}
{"name": "get_weather", "descri... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 294 | {"gold": "81", "printed": "81", "notation": null} |
nlprog_det-setting-0055648 | From 2003 to 2015, how many years is that?
Computation in Python:
```python
start_year = 2003
end_year = 2015
print(end_year - start_year)
```
Output of the run: 12
12 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0055649 | <|start|><|user|>
With $8,000 in costs and $8,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
revenue = 8500
costs = 8000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 5.88235294117647
print(round(margin, 1))
Result = 5.9
The margin... | chat | [
{
"role": "user",
"content": "With $8,000 in costs and $8,500 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": " revenue = 8500\n costs = 8000\n profit = revenue - costs # 500\n margin = profit / revenue * 100 # 5.8823529411... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "5.9", "printed": "5.9", "notation": null} |
nlprog_det-setting-0055650 | <|start|><|user|>
An invoice lists 18 sticky pads at $2 each, plus 6% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 18
unit_price = 2
subtotal = quantity * unit_price # 36
total = subtotal * (1 + 6 / 100) # 38.160000000000004
print(f"{total:.2f}")
```
Run result: 38.16
The total wit... | chat | [
{
"role": "user",
"content": "An invoice lists 18 sticky pads at $2 each, plus 6% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 18\nunit_price = 2\nsubtotal = quantity * unit_price # 36\ntotal = subtotal * (1 + 6 / 100) # 38.160000000000004\... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "38.16", "printed": "38.16", "notation": null} |
nlprog_det-setting-0055651 | What is 30 degrees Celsius in Fahrenheit?
A short script:
```python
celsius = 30
fahrenheit = celsius * 9 / 5 + 32 # 86.0
print(round(fahrenheit))
```
The script prints: 86
It equals 86 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0055652 | The meal allowance is $74 per day. What is it for 6 days?
The Python version:
```python
days = 6
meal_rate = 74
total = days * meal_rate
print(total)
```
Running this gives: 444
That comes to $444. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "444", "printed": "444", "notation": null} |
nlprog_det-setting-0055654 | $2,000 is invested at 2% compounded yearly. What is it worth after 5 years?
Python does the arithmetic:
```python
principal = 2000
rate = 2 / 100 # 0.02
years = 5
value = principal * (1 + rate) ** years # 2208.1616064
print(f"{value:.2f}")
```
The script prints 2208.16.
The balance is $2,208.16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "2208.16", "printed": "2208.16", "notation": null} |
nlprog_det-setting-0055655 | How many 2-foot square tiles cover a 4 ft by 15 ft floor (round up)?
Python:
import math
length = 4
width = 15
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 15
print(tiles)
Output = 15
It takes 15 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0055656 | <|start|><|system|>
Tool definitions:
[{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "compute", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"t... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"compute\", \"description\": \"Python sandbox f... | nlprog_det | setting | original | null | deterministic | [] | [] | 313 | {"gold": "510.00", "printed": "510.00", "notation": null} |
nlprog_det-setting-0055657 | <|start|><|user|>
What is 10 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = 10
fahrenheit = celsius * 9 / 5 + 32 # 50.0
print(round(fahrenheit))
```
It prints: 50
That is 50 °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 # 50.0\nprint(round(fahrenheit))\n```\nIt prints: 50\n\nThat is 50 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0055658 | Sales went from 800 to 720. What is the percent change?
A few lines of Python do it:
old = 800
new = 720
change = (new - old) / old * 100 # -10.0
print(round(change))
(stdout: -10)
It changed by -10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "-10", "printed": "-10", "notation": null} |
nlprog_det-setting-0055659 | A 660-page report must be reviewed in 11 days. How many pages a day is that, evenly?
A Python solution:
pages = 660
days = 11
per_day = pages // days # 60
print(per_day)
Run result: 60
60 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0055660 | <|start|><|user|>
With 8 rows of 23 chairs and 30 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 8
per_row = 23
empty = 30
seated = rows * per_row - empty # 154
print(seated)
```
Printed: 154
154 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 8 rows of 23 chairs and 30 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 8\nper_row = 23\nempty = 30\nseated = rows * per_row - empty # 154\nprint(seated)\n```\nPrinted: 154\n\n154 seats are taken."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "154", "printed": "154", "notation": null} |
nlprog_det-setting-0055661 | <|start|><|user|>
What is the total rent on a 6-month lease at $2,875 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 2875
months = 6
total = monthly_rent * months # 17250
print(total)
```
The printout reads 17250.
The rent over the term is $17,250.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 6-month lease at $2,875 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 2875\nmonths = 6\ntotal = monthly_rent * months # 17250\nprint(total)\n```\nThe printout reads 17250.\n\nThe rent over the term is $17,250.... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "17250", "printed": "17250", "notation": null} |
nlprog_det-setting-0055662 | 192 copies of a 54-page packet are printed at $0.05 per page. What is the cost?
As Python:
pages = 54
copies = 192
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 518.4
print(f"{cost:.2f}")
When run, it prints 518.40, as expected.
The job costs $518.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "518.40", "printed": "518.40", "notation": null} |
nlprog_det-setting-0055663 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after October 5, 2027 through October 18, 2027?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2027, 10, 5)
end = date(2027, 10, 18)
count = 0
for k in range(1, (end - start).days + 1):
... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after October 5, 2027 through October 18, 2027?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n start = date(2027, 10, 5)\n end = date(2027, 10, 18)\n co... | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0055664 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
Ana's scores were 79, 98, 82, 65, 56, 82 and 70. What is the average score?<|eot|>
<|assistant|>
```python
scores = [79, 98, 82, 65, 56, 82, 70]
average = sum(scores) // len(scores) # 76
print(average)
```
# stdout: 76
The mean is 76.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "Ana's scores were 79, 98, 82, 65, 56, 82 and 70. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [79, 98, 82, 65, 56, 82, 70]\naverage = sum(scores) ... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "76", "printed": "76", "notation": null} |
nlprog_det-setting-0055665 | With $36,000 in costs and $38,500 in revenue, what percent of revenue is profit? Round to one decimal.
A short script:
```python
revenue = 38500
costs = 36000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 6.493506493506493
print(round(margin, 1))
```
On running, it outputs: 6.5
Profit is 6.5% of... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "6.5", "printed": "6.5", "notation": null} |
nlprog_det-setting-0055666 | 121 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?
Here is the program.
```python
total = 121
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Console output: 30 each, 1 left over
The answer: 30 each, 1 left ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "30 each, 1 left over", "printed": "30 each, 1 left over", "notation": null} |
nlprog_det-setting-0055667 | <|start|><|system|>
Tool definitions:
{"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
463 files go into b... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 210 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0055668 | Pack A has 10 items for $9.55. Pack B has 30 items for $16.99. Which has the lower price per item?
pack_a = 9.55 / 10 # 0.9550000000000001
pack_b = 16.99 / 30 # 0.5663333333333332
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
(Console output: B)
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0055669 | A lawyer's fee is 30% of a $150,000 recovery. How large is the fee?
The program:
```python
recovery = 150000
rate = 30 / 100 # 0.3
fee = recovery * rate # 45000.0
print(f"{fee:.2f}")
```
Interpreter output: 45000.00
The fee is $45,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "45000.00", "printed": "45000.00", "notation": null} |
nlprog_det-setting-0055670 | An office budget of $20,000 has expenses of $1,712, $455, $2,973. How much of the budget is left?
Written as code:
```python
budget = 20000
expenses = [1712, 455, 2973]
left = budget - sum(expenses) # 14860
print(left)
```
The script prints 14860.
$14,860 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "14860", "printed": "14860", "notation": null} |
nlprog_det-setting-0055671 | A 3% increase is applied to $900 monthly rent. What is the new amount?
One way, in code:
rent = 900
increase = 3 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
The interpreter prints: 927.00
The new rent is $927.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "927.00", "printed": "927.00", "notation": null} |
nlprog_det-setting-0055672 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
How many of 160 votes make 60% (round up)?<|eot|>
<|assistant|>
```python
import math
voters = 160
needed = math.ceil(voters * 60 / 100) # 96
print(needed)
```
The script prints 96.
96 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "How many of 160 votes make 60% (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 160\nneeded = math.ceil(voters * 60 / 100) # 96\nprint(needed)... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "96", "printed": "96", "notation": null} |
nlprog_det-setting-0055673 | Rania was born on January 17, 2004. How old is Rania on February 1, 2022?
Python, step by step:
```python
from datetime import date
born = date(2004, 1, 17) # datetime.date(2004, 1, 17)
on = date(2022, 2, 1) # datetime.date(2022, 2, 1)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 18
p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 160 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0055674 | <|start|><|user|>
An attorney bills 12 hours at $250 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 12
rate = 250
bill = hours * rate
print(f"{bill:.2f}")
```
When run, it prints: 3000.00
That comes to $3,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 12 hours at $250 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 12\nrate = 250\nbill = hours * rate\nprint(f\"{bill:.2f}\")\n```\nWhen run, it prints: 3000.00\n\nThat comes to $3,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0055675 | <|start|><|user|>
What does $10,000 grow to in 4 years at 4% annual compounding?<|eot|>
<|assistant|>
It is worth $11,698.59.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $10,000 grow to in 4 years at 4% annual compounding?"
},
{
"role": "assistant",
"content": "It is worth $11,698.59."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "11698.59", "printed": "11698.59", "notation": null} |
nlprog_det-setting-0055676 | 3 walks at 250 calories each burn how many calories in total?
```python
per_session = 250
sessions = 3
total = per_session * sessions # 750
print(total)
```
Execution result: 750
750 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0055677 | A hearing is set for March 12, 2003. What day of the week is that?
Here is the program.
```python
from datetime import date
hearing = date(2003, 3, 12) # datetime.date(2003, 3, 12)
print(hearing.strftime("%A"))
```
The code prints: Wednesday
It is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0055679 | A hearing is set for June 2, 2009. What day of the week is that?
```python
from datetime import date
hearing = date(2009, 6, 2) # datetime.date(2009, 6, 2)
print(hearing.strftime("%A"))
```
Output of the run: Tuesday
It is a Tuesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0055680 | At $0.58 per mile, what is the reimbursement for 239 miles?
The computation:
```python
miles = 239
rate = 0.58
reimbursement = miles * rate # 138.62
print(f"{reimbursement:.2f}")
```
Execution prints 138.62.
Jonas is owed $138.62. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "138.62", "printed": "138.62", "notation": null} |
nlprog_det-setting-0055681 | <|start|><|user|>
At $0.62 per mile, what is the reimbursement for 137 miles?<|eot|>
<|assistant|>
miles = 137
rate = 0.62
reimbursement = miles * rate # 84.94
print(f"{reimbursement:.2f}")
The program outputs 84.94.
Vera is owed $84.94.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.62 per mile, what is the reimbursement for 137 miles?"
},
{
"role": "assistant",
"content": " miles = 137\n rate = 0.62\n reimbursement = miles * rate # 84.94\n print(f\"{reimbursement:.2f}\")\nThe program outputs 84.94.\n\nVera is owed $84.94."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "84.94", "printed": "84.94", "notation": null} |
nlprog_det-setting-0055682 | Divide 78 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?
total = 78
groups = 8
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
# console output: 9 each, 6 left over
The answer: 9 each, 6 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "9 each, 6 left over", "printed": "9 each, 6 left over", "notation": null} |
nlprog_det-setting-0055683 | A meeting lasted 5 hours and 23 minutes. How many minutes is that?
Python makes this quick:
```python
hours = 5
minutes = 23
total_minutes = hours * 60 + minutes # 323
print(total_minutes)
```
Shell output: 323
The meeting lasted 323 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "323", "printed": "323", "notation": null} |
nlprog_det-setting-0055684 | Convert 69.6 km to meters.
Computation in Python:
```python
km = 69.6
meters = km * 1000 # 69600.0
print(round(meters))
```
# result: 69600
69,600 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "69600", "printed": "69600", "notation": null} |
nlprog_det-setting-0055685 | <|start|><|user|>
A quorum is 1/3 of the 49 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
```python
import math
members = 49
quorum = math.ceil(members * 1 / 3) # 17
print(quorum)
```
# run result: 17
17 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A quorum is 1/3 of the 49 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 49\nquorum = math.ceil(members * 1 / 3) # 17\nprint(quorum)\n```\n# run result: 17\n\n17 members are needed."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0055686 | <|start|><|user|>
17 of 25 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 17
total = 25
percent = present / total * 100 # 68.0
print(round(percent, 1))
```
Execution result: 68.0
Attendance was 68.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "17 of 25 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 17\ntotal = 25\npercent = present / total * 100 # 68.0\nprint(round(percent, 1))\n```\nExecution result: 68.0\n\nAttendance was 68.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "68.0", "printed": "68.0", "notation": null} |
nlprog_det-setting-0055687 | A customer buys 3 water bottles at $7 each, 5 toner kits at $27 each, 4 paper reams at $10 each and pays with $200. How much change is due?
```python
items = [(3, 7), (5, 27), (4, 10)]
total = sum(q * p for q, p in items) # 196
paid = 200
change = paid - total # 4
print(change)
```
stdout = 4
The change is $4. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0055688 | <|start|><|user|>
Which is cheaper per unit: 10 for $8.19 (A) or 30 for $14.24 (B)?<|eot|>
<|assistant|>
```python
pack_a = 8.19 / 10 # 0.819
pack_b = 14.24 / 30 # 0.4746666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Shell output — B
Pack B is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 10 for $8.19 (A) or 30 for $14.24 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 8.19 / 10 # 0.819\npack_b = 14.24 / 30 # 0.4746666666666667\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)\n```\nShe... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0055689 | Abel lends $12,000 at 6% simple interest per year for 6 years. How much interest is earned?
In code:
```python
principal = 12000
rate = 6 / 100 # 0.06
years = 6
interest = principal * rate * years # 4320.0
print(f"{interest:.2f}")
```
That prints: 4320.00
It earns $4,320.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "4320.00", "printed": "4320.00", "notation": null} |
nlprog_det-setting-0055690 | How many whole days and leftover hours are in 285 hours?
As a program:
hours = 285
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
(Out: 11 days and 21 hours)
285 hours is 11 days and 21 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "11 days and 21 hours", "printed": "11 days and 21 hours", "notation": null} |
nlprog_det-setting-0055691 | How long, in days, is it from July 22, 2022 until October 20, 2022?
Python does the arithmetic:
```python
from datetime import date
first = date(2022, 7, 22) # datetime.date(2022, 7, 22)
second = date(2022, 10, 20) # datetime.date(2022, 10, 20)
print((second - first).days)
```
stdout: 90
It is 90 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "90", "printed": "90", "notation": null} |
nlprog_det-setting-0055692 | Scale 300 g of flour from 8 servings to 6 servings.
As Python:
grams = 300
serves = 8
needed_for = 6
scaled = grams * needed_for // serves
print(scaled)
Running this gives: 225
Use 225 g of flour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0055693 | After an initial $3,000, the remainder of a $48,000 grant is paid in 6 equal parts. What is each part?
Programmatically:
```python
grant = 48000
up_front = 3000
installments = 6
each = (grant - up_front) / installments # 7500.0
print(f"{each:.2f}")
```
What it prints — 7500.00
Each installment is $7,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0055694 | Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 51 hours?
Programmatically:
```python
rate = 25.0
hours = 51
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 412.5
pay = regular + overtime # 1412.5
print(f"{pay:.2f}")
```
This prints 1412.50.
Oskar earns $1... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "1412.50", "printed": "1412.50", "notation": null} |
nlprog_det-setting-0055695 | Prorate $1,800 of monthly rent for 23 days of a 31-day month.
Computing it:
```python
rent = 1800
days_in_month = 31
days_occupied = 23
prorated = rent * days_occupied / days_in_month
print(f"{prorated:.2f}")
```
The run gives 1335.48, as expected.
The prorated rent is $1,335.48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1335.48", "printed": "1335.48", "notation": null} |
nlprog_det-setting-0055696 | Convert 20 °C to Fahrenheit.
Python, step by step:
```python
celsius = 20
fahrenheit = celsius * 9 / 5 + 32 # 68.0
print(round(fahrenheit))
```
Console output — 68
It equals 68 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0055697 | A claim accrued on September 2, 2013. The limitations period is 3 years. On what date does it expire?
It runs out on September 2, 2016. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "2016-09-02", "printed": "2016-09-02", "notation": null} |
nlprog_det-setting-0055699 | Starting from $12,000, the team spends $2,634, $2,494. What remains?
$6,872 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "6872", "printed": "6872", "notation": null} |
nlprog_det-setting-0055700 | Convert 22.2 km to meters.
The program:
```python
km = 22.2
meters = km * 1000 # 22200.0
print(round(meters))
```
The interpreter prints 22200.
22,200 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "22200", "printed": "22200", "notation": null} |
nlprog_det-setting-0055701 | <|start|><|user|>
Shipping costs $12 plus $0.75 per pound. What does a 17-pound parcel cost to ship?<|eot|>
<|assistant|>
Shipping costs $24.75.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $12 plus $0.75 per pound. What does a 17-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "Shipping costs $24.75."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "24.75", "printed": "24.75", "notation": null} |
nlprog_det-setting-0055702 | Mei earns a 3% commission on $43,452 of sales. What is the commission?
Programmatically:
sales = 43452
rate = 3 / 100 # 0.03
commission = sales * rate # 1303.56
print(f"{commission:.2f}")
(Console output: 1303.56)
Mei earns $1,303.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "1303.56", "printed": "1303.56", "notation": null} |
nlprog_det-setting-0055703 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
A $3,600 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
```python
principal = 3600
annual_rate = 10 / 100 # 0.1
months = 12
interest = principal... | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "A $3,600 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "```py... | nlprog_det | setting | original | null | deterministic | [] | [] | 160 | {"gold": "330.00", "printed": "330.00", "notation": null} |
nlprog_det-setting-0055705 | A pack of 5 rulers sells for $190. What does each cost?
```python
total = 190
count = 5
per_item = total // count # 38
print(per_item)
```
# stdout: 38
Each one costs $38. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0055706 | Equal monthly payments repay $9,000 plus 5% simple yearly interest over 12 months. How large is a payment?
```python
principal = 9000
annual_rate = 5 / 100 # 0.05
months = 12
interest = principal * annual_rate * months / 12 # 450.0
payment = (principal + interest) / months # 787.5
print(f"{payment:.2f}")
```
(Print... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "787.50", "printed": "787.50", "notation": null} |
nlprog_det-setting-0055707 | After a 25% fee is taken from a $96,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?
Each client gets $18,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0055708 | A count moves from 400 to 480. By what percent did it change (use a minus sign for a drop)?
Written as code:
```python
old = 400
new = 480
change = (new - old) / old * 100 # 20.0
print(round(change))
```
Printed result — 20
It changed by 20%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0055709 | Find the mean of these test scores: 73, 78, 63, 88, 96 and 100.
The computation:
```python
scores = [73, 78, 63, 88, 96, 100]
average = sum(scores) // len(scores) # 83
print(average)
```
This prints: 83
The average score is 83. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "83", "printed": "83", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.