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-0057539 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "math_engine", "description": "Runs a short Python snippet and returns what it p... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"math_engine\", \"descript... | nlprog_det | setting | original | null | deterministic | [] | [] | 294 | {"gold": "8250.00", "printed": "8250.00", "notation": null} |
nlprog_det-setting-0057540 | <|start|><|user|>
A recipe for 4 people uses 100 grams of sugar. How many grams are needed for 10 people?<|eot|>
<|assistant|>
```python
grams = 100
serves = 4
needed_for = 10
scaled = grams * needed_for // serves # 250
print(scaled)
```
(Run result: 250)
250 grams of sugar are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 4 people uses 100 grams of sugar. How many grams are needed for 10 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 100\nserves = 4\nneeded_for = 10\nscaled = grams * needed_for // serves # 250\nprint(scaled)\n```\n(Run result: 250)\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0057541 | 4 friends split a $240 bill plus a 18% tip evenly. How much does each pay?
Python:
bill = 240
tip_rate = 18 / 100 # 0.18
people = 4
each = bill * (1 + tip_rate) / people # 70.8
print(f"{each:.2f}")
The run gives 70.80, as expected.
Each person pays $70.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "70.80", "printed": "70.80", "notation": null} |
nlprog_det-setting-0057542 | <|start|><|user|>
276 files go into boxes of 20. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 276
per_box = 20
boxes = math.ceil(files / per_box) # 14
print(boxes)
```
This prints 14, as expected.
14 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "276 files go into boxes of 20. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 276\nper_box = 20\nboxes = math.ceil(files / per_box) # 14\nprint(boxes)\n```\nThis prints 14, as expected.\n\n14 boxes are needed."... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0057543 | <|start|><|user|>
Someone born June 4, 1957 turns how old by March 1, 2024? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1957, 6, 4) # datetime.date(1957, 6, 4)
on = date(2024, 3, 1) # datetime.date(2024, 3, 1)
age = on.year - born.year - ((on.month, on.day) < (bor... | chat | [
{
"role": "user",
"content": "Someone born June 4, 1957 turns how old by March 1, 2024? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1957, 6, 4) # datetime.date(1957, 6, 4)\non = date(2024, 3, 1) # datetime.date(2024, 3, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0057544 | Convert 6,072 USD to CAD at 1 USD = 1.35 CAD.
```python
amount = 6072
rate = 1.35
converted = amount * rate # 8197.2
print(f"{converted:.2f}")
```
Output of the run — 8197.20
It converts to 8,197.20 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "8197.20", "printed": "8197.20", "notation": null} |
nlprog_det-setting-0057545 | <|start|><|user|>
33 copies of a 23-page packet are printed at $0.15 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 23
copies = 33
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 113.85
print(f"{cost:.2f}")
```
Running it prints 113.85, as expected.
The job costs $113.85.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "33 copies of a 23-page packet are printed at $0.15 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 23\ncopies = 33\ncost_per_page = 0.15\ncost = pages * copies * cost_per_page # 113.85\nprint(f\"{cost:.2f}\")\n```\nRunning it p... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "113.85", "printed": "113.85", "notation": null} |
nlprog_det-setting-0057547 | A hall has 23 rows of 22 seats, and 36 seats are empty. How many people are seated?
The Python version:
rows = 23
per_row = 22
empty = 36
seated = rows * per_row - empty # 470
print(seated)
Interpreter output: 470
470 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "470", "printed": "470", "notation": null} |
nlprog_det-setting-0057548 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
Parking is $3 per hour with a daily maximum of $15. What do 9 hours cost?<|eot|>
<|assistant|>
```python
rate = 3
hours = 9
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
```
Execution prints: 15
The charge is $15.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "Parking is $3 per hour with a daily maximum of $15. What do 9 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 3\nhours = 9\ndaily_max = 15\ncost = min(rate * hours, daily_max... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0057549 | The paralegal logged 8 hours at a rate of $300. How much is billed? The bill is $2,400.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0057550 | Convert 5 °C to Fahrenheit.
Here's the code.
```python
celsius = 5
fahrenheit = celsius * 9 / 5 + 32 # 41.0
print(round(fahrenheit))
```
When run, it prints 41.
It equals 41 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0057551 | 622 files go into boxes of 20. How many boxes does that take?
Python version:
```python
import math
files = 622
per_box = 20
boxes = math.ceil(files / per_box) # 32
print(boxes)
```
Shell output — 32
It takes 32 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0057552 | Monthly: $9. Annual: $72. What is saved per year by paying annually?
Here's the code.
```python
monthly = 9
yearly = 72
savings = monthly * 12 - yearly # 36
print(savings)
```
This prints 36.
The annual plan saves $36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0057553 | Delia earns a 8% commission on $52,752 of sales. What is the commission?
Let the code do the arithmetic:
```python
sales = 52752
rate = 8 / 100
commission = sales * rate
print(f"{commission:.2f}")
```
Out:
4220.16
The commission is $4,220.16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "4220.16", "printed": "4220.16", "notation": null} |
nlprog_det-setting-0057554 | How much sales tax is charged on a $30.98 purchase at 8%?
Python makes this quick:
```python
price = 30.98
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 2.4784
print(f"{tax:.2f}")
```
Execution result: 2.48
$2.48 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "2.48", "printed": "2.48", "notation": null} |
nlprog_det-setting-0057555 | A filing cabinet costs $75. It is 10% off. What is the sale price?
Programmatically:
price = 75
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 67.5
print(f"{sale_price:.2f}")
stdout:
67.50
It costs $67.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "67.50", "printed": "67.50", "notation": null} |
nlprog_det-setting-0057556 | A client paid a $10,000 retainer. The firm has billed 13 hours at $250 per hour. How much of the retainer is left?
As a program:
```python
retainer = 10000
hours = 13
rate = 250
left = retainer - hours * rate # 6750
print(left)
```
# printed: 6750
$6,750 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "6750", "printed": "6750", "notation": null} |
nlprog_det-setting-0057557 | Sales went from 200 to 230. What is the percent change? The change is 15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 21 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0057559 | What percentage of $4,000 is $3,200?
Set it up in Python:
```python
budget = 4000
spent = 3200
percent = spent / budget * 100 # 80.0
print(round(percent, 1))
```
What it prints — 80.0
That is 80.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "80.0", "printed": "80.0", "notation": null} |
nlprog_det-setting-0057560 | At $0.67 per mile, what is the reimbursement for 369 miles?
Let's compute it with Python.
miles = 369
rate = 0.67
reimbursement = miles * rate
print(f"{reimbursement:.2f}")
Result:
247.23
Jae is owed $247.23. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "247.23", "printed": "247.23", "notation": null} |
nlprog_det-setting-0057561 | <|start|><|user|>
Starting with 1052 file boxes and using 19 per day, how many remain after 19 days?<|eot|>
<|assistant|>
691 file boxes are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1052 file boxes and using 19 per day, how many remain after 19 days?"
},
{
"role": "assistant",
"content": "691 file boxes are left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "691", "printed": "691", "notation": null} |
nlprog_det-setting-0057562 | How many minutes pass from 9:09 AM to 9:36 AM on the same day?
27 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0057563 | Counting the first and last day, how many days are there from February 3, 2024 through February 23, 2024?
Python, step by step:
```python
from datetime import date
first = date(2024, 2, 3) # datetime.date(2024, 2, 3)
last = date(2024, 2, 23) # datetime.date(2024, 2, 23)
days = (last - first).days + 1 # 21
print(day... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0057564 | Starting with 562 notebooks and using 36 per day, how many remain after 9 days?
Set it up in Python:
```python
stock = 562
per_day = 36
days = 9
left = stock - per_day * days # 238
print(left)
```
Out — 238
238 notebooks are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "238", "printed": "238", "notation": null} |
nlprog_det-setting-0057565 | <|start|><|system|>
Tools you may use:
{"name": "calc", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Water costs $15 a month plus $5.10 for each 1,00... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"calc\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}"
},
{... | nlprog_det | setting | original | null | deterministic | [] | [] | 237 | {"gold": "45.60", "printed": "45.60", "notation": null} |
nlprog_det-setting-0057566 | A measure needs at least 60% of 298 votes. How many votes is that, rounded up?
Python version:
```python
import math
voters = 298
needed = math.ceil(voters * 60 / 100) # 179
print(needed)
```
# printed result: 179
At least 179 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "179", "printed": "179", "notation": null} |
nlprog_det-setting-0057567 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
What commission does Viktor make on $42,356 in sales at 8%?<|eot|>
<|assistant|>
```python
sales = 42356
rate = 8 / 100 # 0.08
commission = sales * rate # 3388.48
print(f"{commission:.2f}")
```
Execution prints 3388.48, as expected.
Viktor earns $3,388.48.<|... | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "What commission does Viktor make on $42,356 in sales at 8%?"
},
{
"role": "assistant",
"content": "```python\nsales = 42356\nrate = 8 / 100 # 0.08\ncommission = sales * rate # 3388.48\nprint(f\... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "3388.48", "printed": "3388.48", "notation": null} |
nlprog_det-setting-0057568 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
A $84 dinner ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 248 | {"gold": "49.56", "printed": "49.56", "notation": null} |
nlprog_det-setting-0057569 | <|start|><|system|>
Tools (call with JSON):
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "get_weather", "description": "Get the weather... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]... | nlprog_det | setting | original | null | deterministic | [] | [] | 406 | {"gold": "132.00", "printed": "132.00", "notation": null} |
nlprog_det-setting-0057570 | How many units at $25 each (variable cost $21) cover $6,000 of fixed costs?
Python code:
```python
import math
fixed = 6000
price = 25
variable = 21
units = math.ceil(fixed / (price - variable)) # 1500
print(units)
```
Shell output — 1500
1500 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0057571 | If a 3-year limitations period starts on September 7, 2024, when does it end?
It runs out on September 7, 2027. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "2027-09-07", "printed": "2027-09-07", "notation": null} |
nlprog_det-setting-0057572 | Equal monthly payments repay $2,400 plus 8% simple yearly interest over 36 months. How large is a payment?
One way, in code:
```python
principal = 2400
annual_rate = 8 / 100 # 0.08
months = 36
interest = principal * annual_rate * months / 12 # 576.0
payment = (principal + interest) / months # 82.66666666666667
prin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "82.67", "printed": "82.67", "notation": null} |
nlprog_det-setting-0057573 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
Starting with 1026 ink cartridges and using 28 per day, how many remain after 8 days?<|eot|>
<|assistant|>
802 remain.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "Starting with 1026 ink cartridges and using 28 per day, how many remain after 8 days?"
},
{
"role": "assistant",
"content": "802 remain."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "802", "printed": "802", "notation": null} |
nlprog_det-setting-0057574 | <|start|><|user|>
254 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
total = 254
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
Result: 63 each, 2 left over
63 each, 2 left o... | chat | [
{
"role": "user",
"content": "254 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": " total = 254\n groups = 4\n per_group, remainder = divmod(total, groups)\n print(f\"{per_group} each, {remainder} l... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "63 each, 2 left over", "printed": "63 each, 2 left over", "notation": null} |
nlprog_det-setting-0057575 | At $0.67 per mile, what is the reimbursement for 135 miles?
The program:
```python
miles = 135
rate = 0.67
reimbursement = miles * rate # 90.45
print(f"{reimbursement:.2f}")
```
Out = 90.45
The reimbursement is $90.45. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "90.45", "printed": "90.45", "notation": null} |
nlprog_det-setting-0057576 | What is the total rent on a 18-month lease at $2,100 a month?
Script:
monthly_rent = 2100
months = 18
total = monthly_rent * months # 37800
print(total)
# out: 37800
The rent over the term is $37,800. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "37800", "printed": "37800", "notation": null} |
nlprog_det-setting-0057577 | Meals are $64 per day and lodging $110 per night. What is the allowance for 7 days and 6 nights?
```python
days = 7
meal_rate = 64
lodging_rate = 110
nights = days - 1 # 6
total = days * meal_rate + nights * lodging_rate # 1108
print(total)
```
# output: 1108
The allowance is $1,108. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "1108", "printed": "1108", "notation": null} |
nlprog_det-setting-0057580 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
How many whole days and leftover hours are in 100 hours?<|eot|>
<|assistant|>
```python
hours = 100
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
This prints 4 days and 4 hours.
That is 4 days and 4 hours.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "How many whole days and leftover hours are in 100 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 100\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "4 days and 4 hours", "printed": "4 days and 4 hours", "notation": null} |
nlprog_det-setting-0057581 | Of a $8,000 budget, $3,800 has been spent. What percent is that?
Python makes this quick:
```python
budget = 8000
spent = 3800
percent = spent / budget * 100 # 47.5
print(round(percent, 1))
```
(Console output: 47.5)
That is 47.5% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "47.5", "printed": "47.5", "notation": null} |
nlprog_det-setting-0057582 | <|start|><|system|>
Functions:
{"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
Convert 56.6 km to meters.<|eot|... | 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\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 196 | {"gold": "56600", "printed": "56600", "notation": null} |
nlprog_det-setting-0057583 | <|start|><|system|>
Tools you may use:
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "run_python", "description": "Runs a short Python s... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}, {... | nlprog_det | setting | original | null | deterministic | [] | [] | 333 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0057584 | An office budget of $5,000 has expenses of $3,722, $433. How much of the budget is left?
A Python solution:
```python
budget = 5000
expenses = [3722, 433]
left = budget - sum(expenses) # 845
print(left)
```
Output of the run: 845
The remaining budget is $845. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "845", "printed": "845", "notation": null} |
nlprog_det-setting-0057585 | A pack of 12 cables sells for $540. What does each cost?
Python:
```python
total = 540
count = 12
per_item = total // count # 45
print(per_item)
```
The program prints 45, as expected.
The unit price is $45. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0057586 | <|start|><|user|>
What is 15 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = 15
fahrenheit = celsius * 9 / 5 + 32 # 59.0
print(round(fahrenheit))
```
Shell output: 59
It equals 59 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is 15 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": "```python\ncelsius = 15\nfahrenheit = celsius * 9 / 5 + 32 # 59.0\nprint(round(fahrenheit))\n```\nShell output: 59\n\nIt equals 59 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0057588 | At $0.70 per mile, what is the reimbursement for 249 miles?
Python code:
```python
miles = 249
rate = 0.7
reimbursement = miles * rate # 174.29999999999998
print(f"{reimbursement:.2f}")
```
The interpreter prints: 174.30
The reimbursement is $174.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "174.30", "printed": "174.30", "notation": null} |
nlprog_det-setting-0057589 | Equal monthly payments repay $2,400 plus 10% simple yearly interest over 24 months. How large is a payment?
The Python version:
```python
principal = 2400
annual_rate = 10 / 100 # 0.1
months = 24
interest = principal * annual_rate * months / 12 # 480.0
payment = (principal + interest) / months # 120.0
print(f"{paym... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "120.00", "printed": "120.00", "notation": null} |
nlprog_det-setting-0057590 | Starting with 1181 sticky pads and using 18 per day, how many remain after 7 days?
Here is the program.
```python
stock = 1181
per_day = 18
days = 7
left = stock - per_day * days # 1055
print(left)
```
Printed result — 1055
1055 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1055", "printed": "1055", "notation": null} |
nlprog_det-setting-0057591 | Yara's scores were 79, 82 and 76. What is the average score?
The Python version:
```python
scores = [79, 82, 76]
average = sum(scores) // len(scores) # 79
print(average)
```
Executing it gives: 79
The mean is 79. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "79", "printed": "79", "notation": null} |
nlprog_det-setting-0057592 | Walls total 369 sq ft and each can covers 250 sq ft. How many cans should be bought?
We can compute it in Python.
import math
area = 369
coverage = 250
cans = math.ceil(area / coverage) # 2
print(cans)
# out: 2
2 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0057593 | <|start|><|user|>
If a 25-minute hearing begins at 1:10 PM, what time does it finish?<|eot|>
<|assistant|>
```python
start = 13 * 60 + 10
end = start + 25
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
# out: 1:35 PM
The hearing finishes at 1:35 PM.<|eot|>... | chat | [
{
"role": "user",
"content": "If a 25-minute hearing begins at 1:10 PM, what time does it finish?"
},
{
"role": "assistant",
"content": "```python\nstart = 13 * 60 + 10\nend = start + 25\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "1:35 PM", "printed": "1:35 PM", "notation": null} |
nlprog_det-setting-0057594 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
Monthly rent is $900... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 250 | {"gold": "750.00", "printed": "750.00", "notation": null} |
nlprog_det-setting-0057595 | How many whole days and leftover hours are in 243 hours?
Python makes this quick:
```python
hours = 243
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Printed — 10 days and 3 hours
That is 10 days and 3 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "10 days and 3 hours", "printed": "10 days and 3 hours", "notation": null} |
nlprog_det-setting-0057597 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "sandbox_python", "description": "Ex... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \... | nlprog_det | setting | original | null | deterministic | [] | [] | 331 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0057598 | A garage charges $5 an hour, never more than $24 a day. How much for 6 hours?
The charge is $24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0057599 | How many minutes pass from 11:36 AM to 5:41 PM on the same day?
Python code:
```python
start = 11 * 60 + 36 # 696
end = 17 * 60 + 41 # 1061
print(end - start)
```
stdout — 365
365 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "365", "printed": "365", "notation": null} |
nlprog_det-setting-0057600 | With $20,000 in costs and $24,000 in revenue, what percent of revenue is profit? Round to one decimal.
```python
revenue = 24000
costs = 20000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 16.666666666666664
print(round(margin, 1))
```
The program prints: 16.7
Profit is 16.7% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "16.7", "printed": "16.7", "notation": null} |
nlprog_det-setting-0057601 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after October 19, 2020 up to and including November 24, 2020?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2020, 10, 19)
end = date(2020, 11, 24)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after October 19, 2020 up to and including November 24, 2020?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2020, 10, 19)\nend = date(2020, 11, 24)\ncount = 0\nfor k in ... | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0057602 | 86 of 100 members attended. What percent attended?
Code:
present = 86
total = 100
percent = present / total * 100 # 86.0
print(round(percent, 1))
Result: 86.0
86.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 64 | {"gold": "86.0", "printed": "86.0", "notation": null} |
nlprog_det-setting-0057604 | At 45 miles per hour, how many minutes does a 180-mile trip take?
Python code:
```python
distance = 180
speed = 45
minutes = distance / speed * 60 # 240.0
print(round(minutes))
```
Running this gives: 240
240 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0057605 | <|start|><|system|>
Tool definitions:
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "compute", "description": "A Python interpreter. Returns standard output.", "... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"compute\", \"descripti... | nlprog_det | setting | original | null | deterministic | [] | [] | 291 | {"gold": "3520.18", "printed": "3520.18", "notation": null} |
nlprog_det-setting-0057606 | <|start|><|user|>
A settlement of $1,200 is split equally among 4 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 1200
parties = 4
share = settlement // parties # 300
print(share)
```
Program output: 300
Each share is $300.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $1,200 is split equally among 4 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 1200\nparties = 4\nshare = settlement // parties # 300\nprint(share)\n```\nProgram output: 300\n\nEach share is... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0057608 | 2 claimants share a $960 settlement equally. What is each share? Each share is $480. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "480", "printed": "480", "notation": null} |
nlprog_det-setting-0057610 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "search_cas... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code... | nlprog_det | setting | original | null | deterministic | [] | [] | 318 | {"gold": "348.39", "printed": "348.39", "notation": null} |
nlprog_det-setting-0057611 | <|start|><|user|>
If a 2-year limitations period starts on November 5, 2017, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2017, 11, 5) # datetime.date(2017, 11, 5)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 11, 5)
print(expires.iso... | chat | [
{
"role": "user",
"content": "If a 2-year limitations period starts on November 5, 2017, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2017, 11, 5) # datetime.date(2017, 11, 5)\nyears = 2\nexpires = accrued.replace(year=accrued.yea... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2019-11-05", "printed": "2019-11-05", "notation": null} |
nlprog_det-setting-0057612 | <|start|><|user|>
Notice was given on May 18, 2018. The notice period is 10 days. When does it run out?<|eot|>
<|assistant|>
It ends on May 28, 2018.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Notice was given on May 18, 2018. The notice period is 10 days. When does it run out?"
},
{
"role": "assistant",
"content": "It ends on May 28, 2018."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "2018-05-28", "printed": "2018-05-28", "notation": null} |
nlprog_det-setting-0057613 | What simple interest does $20,000 earn at 4% a year over 5 years?
Here's the code.
```python
principal = 20000
rate = 4 / 100 # 0.04
years = 5
interest = principal * rate * years # 4000.0
print(f"{interest:.2f}")
```
Printed result — 4000.00
It earns $4,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "4000.00", "printed": "4000.00", "notation": null} |
nlprog_det-setting-0057614 | <|start|><|system|>
Tools (call with JSON):
[{"name": "python_exec", "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 count mov... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"python_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r... | nlprog_det | setting | original | null | deterministic | [] | [] | 229 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0057615 | $5,000 is invested at 2% compounded yearly. What is it worth after 4 years?
Python makes this quick:
```python
principal = 5000
rate = 2 / 100 # 0.02
years = 4
value = principal * (1 + rate) ** years # 5412.1608
print(f"{value:.2f}")
```
Executing it gives 5412.16, as expected.
The balance is $5,412.16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "5412.16", "printed": "5412.16", "notation": null} |
nlprog_det-setting-0057616 | A 7-day trip pays $59 a day for meals and $140 a night for lodging (6 nights). What is the total allowance?
Computing it:
days = 7
meal_rate = 59
lodging_rate = 140
nights = days - 1
total = days * meal_rate + nights * lodging_rate
print(total)
Run output — 1253
The allowance is $1,253. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1253", "printed": "1253", "notation": null} |
nlprog_det-setting-0057617 | <|start|><|user|>
How many units at $30 each (variable cost $20) cover $1,200 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 1200
price = 30
variable = 20
units = math.ceil(fixed / (price - variable)) # 120
print(units)
```
Interpreter output — 120
120 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $30 each (variable cost $20) cover $1,200 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 1200\nprice = 30\nvariable = 20\nunits = math.ceil(fixed / (price - variable)) # 120\nprint(units)\n```\nInterpreter o... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0057618 | A 4 lb package ships at $8 base plus $1.50/lb. What is the charge?
Here is a short program for it.
```python
base = 8
per_pound = 1.5
weight = 4
cost = base + per_pound * weight # 14.0
print(f"{cost:.2f}")
```
When run, it prints 14.00.
The charge is $14.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "14.00", "printed": "14.00", "notation": null} |
nlprog_det-setting-0057619 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
On which weekday does January 8, 1995 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1995, 1, 8) # datetime.date(1995, 1, 8)
print(hearing.strftime("%A"))
```
This prints Sunday.
January 8, 1995 is a Sunday.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "On which weekday does January 8, 1995 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1995, 1, 8) # datetime.date(1995, 1, 8)\nprint(hearing.s... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0057620 | <|start|><|user|>
Prorate $1,800 of monthly rent for 13 days of a 31-day month.<|eot|>
<|assistant|>
The prorated rent is $754.84.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $1,800 of monthly rent for 13 days of a 31-day month."
},
{
"role": "assistant",
"content": "The prorated rent is $754.84."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "754.84", "printed": "754.84", "notation": null} |
nlprog_det-setting-0057621 | 2 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?
Python:
```python
award = 72000
fee = award * 25 / 100 # 18000.0
remaining = award - fee # 54000.0
per_client = remaining / 2 # 27000.0
print(f"{per_client:.2f}")
```
stdout: 27000.00
Each client gets $27,000... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "27000.00", "printed": "27000.00", "notation": null} |
nlprog_det-setting-0057622 | Monthly: $25. Annual: $270. What is saved per year by paying annually?
$30 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0057623 | What is a 10% tip on a $229.14 bill?
Python, step by step:
```python
bill = 229.14
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 22.914
print(f"{tip:.2f}")
```
The script prints 22.91.
The tip is $22.91. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "22.91", "printed": "22.91", "notation": null} |
nlprog_det-setting-0057626 | After a 25% fee is taken from a $48,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
Programmatically:
```python
award = 48000
fee = award * 25 / 100 # 12000.0
remaining = award - fee # 36000.0
per_client = remaining / 3 # 12000.0
print(f"{per_client:.2f}")
```
It outputs 1200... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0057627 | <|start|><|user|>
Filing fees are $150 per document. What do 19 filings cost?<|eot|>
<|assistant|>
fee = 150
filings = 19
total = fee * filings # 2850
print(total)
Out — 2850
The filings cost $2,850 in all.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $150 per document. What do 19 filings cost?"
},
{
"role": "assistant",
"content": " fee = 150\n filings = 19\n total = fee * filings # 2850\n print(total)\nOut — 2850\n\nThe filings cost $2,850 in all."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "2850", "printed": "2850", "notation": null} |
nlprog_det-setting-0057628 | <|start|><|user|>
129 copies of a 41-page packet are printed at $0.12 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 41
copies = 129
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 634.68
print(f"{cost:.2f}")
```
The code prints: 634.68
The job costs $634.68.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "129 copies of a 41-page packet are printed at $0.12 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 41\ncopies = 129\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page # 634.68\nprint(f\"{cost:.2f}\")\n```\nThe code p... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "634.68", "printed": "634.68", "notation": null} |
nlprog_det-setting-0057629 | <|start|><|system|>
Tools you may use:
[{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
$1,000 is invested at 3% com... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"so... | nlprog_det | setting | original | null | deterministic | [] | [] | 238 | {"gold": "1060.90", "printed": "1060.90", "notation": null} |
nlprog_det-setting-0057630 | An invoice lists 26 lanyards at $8 each, plus 6% sales tax. What is the invoice total?
Let's compute it with Python.
quantity = 26
unit_price = 8
subtotal = quantity * unit_price # 208
total = subtotal * (1 + 6 / 100) # 220.48000000000002
print(f"{total:.2f}")
Result: 220.48
The invoice total is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "220.48", "printed": "220.48", "notation": null} |
nlprog_det-setting-0057631 | <|start|><|user|>
Someone works 36 hours at $15.06 per hour. What are the earnings?<|eot|>
<|assistant|>
rate = 15.06
hours = 36
earnings = rate * hours # 542.16
print(f"{earnings:.2f}")
The code prints 542.16.
That earns $542.16.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 36 hours at $15.06 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": " rate = 15.06\n hours = 36\n earnings = rate * hours # 542.16\n print(f\"{earnings:.2f}\")\nThe code prints 542.16.\n\nThat earns $542.16."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "542.16", "printed": "542.16", "notation": null} |
nlprog_det-setting-0057632 | 2 friends split a $96 bill plus a 20% tip evenly. How much does each pay? The share is $57.60 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "57.60", "printed": "57.60", "notation": null} |
nlprog_det-setting-0057633 | Rent of $1,250 goes up 3%. What is the new rent?
```python
rent = 1250
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 1287.5
print(f"{new_rent:.2f}")
```
Printed result — 1287.50
The new rent is $1,287.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1287.50", "printed": "1287.50", "notation": null} |
nlprog_det-setting-0057634 | A recipe for 2 people uses 200 grams of sugar. How many grams are needed for 3 people?
The Python version:
```python
grams = 200
serves = 2
needed_for = 3
scaled = grams * needed_for // serves # 300
print(scaled)
```
Output — 300
Use 300 g of sugar. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0057635 | <|start|><|user|>
The paralegal logged 2.5 hours at a rate of $350. How much is billed?<|eot|>
<|assistant|>
```python
hours = 2.5
rate = 350
bill = hours * rate # 875.0
print(f"{bill:.2f}")
```
Shell output — 875.00
The bill is $875.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 2.5 hours at a rate of $350. How much is billed?"
},
{
"role": "assistant",
"content": "```python\nhours = 2.5\nrate = 350\nbill = hours * rate # 875.0\nprint(f\"{bill:.2f}\")\n```\nShell output — 875.00\n\nThe bill is $875.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "875.00", "printed": "875.00", "notation": null} |
nlprog_det-setting-0057636 | A $1,000 security deposit has deductions of $60, $120 and $85. How much is refunded?
Programmatically:
deposit = 1000
deductions = [60, 120, 85]
refund = deposit - sum(deductions) # 735
print(refund)
What it prints: 735
The refund is $735. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "735", "printed": "735", "notation": null} |
nlprog_det-setting-0057637 | What commission does Tomas make on $93,206 in sales at 2%?
Let the code do the arithmetic:
```python
sales = 93206
rate = 2 / 100 # 0.02
commission = sales * rate # 1864.1200000000001
print(f"{commission:.2f}")
```
stdout: 1864.12
The commission is $1,864.12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "1864.12", "printed": "1864.12", "notation": null} |
nlprog_det-setting-0057638 | <|start|><|system|>
Tools you may use:
{"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}
{"name": "business_days", "description":... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 293 | {"gold": "2000", "printed": "2000", "notation": null} |
nlprog_det-setting-0057639 | <|start|><|user|>
Which is cheaper per unit: 6 for $6.14 (A) or 30 for $9.05 (B)?<|eot|>
<|assistant|>
```python
pack_a = 6.14 / 6 # 1.0233333333333332
pack_b = 9.05 / 30 # 0.3016666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
(Console output: B)
Pack B is cheaper per item.<|eot|>
<|... | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 6 for $6.14 (A) or 30 for $9.05 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 6.14 / 6 # 1.0233333333333332\npack_b = 9.05 / 30 # 0.3016666666666667\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)\... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0057640 | <|start|><|system|>
Functions:
[{"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
A filing cabinet costs $75. It is 25% off. Wha... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}]"
},
... | nlprog_det | setting | original | null | deterministic | [] | [] | 211 | {"gold": "56.25", "printed": "56.25", "notation": null} |
nlprog_det-setting-0057641 | <|start|><|user|>
A 150-mile drive at a steady 50 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 150
speed = 50
minutes = distance / speed * 60 # 180.0
print(round(minutes))
```
The interpreter prints: 180
The trip takes 180 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 150-mile drive at a steady 50 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 150\nspeed = 50\nminutes = distance / speed * 60 # 180.0\nprint(round(minutes))\n```\nThe interpreter prints: 180\n\nThe trip takes 180 minutes.... | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0057642 | How many weekdays (Monday to Friday) fall after March 12, 2021 up to and including April 17, 2021?
Here is the program.
```python
from datetime import date, timedelta
start = date(2021, 3, 12)
end = date(2021, 4, 17)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0057643 | Noor lends $12,000 at 6% simple interest per year for 2 years. How much interest is earned?
Here is the program.
```python
principal = 12000
rate = 6 / 100 # 0.06
years = 2
interest = principal * rate * years # 1440.0
print(f"{interest:.2f}")
```
stdout — 1440.00
It earns $1,440.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1440.00", "printed": "1440.00", "notation": null} |
nlprog_det-setting-0057644 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
A measure needs at least 75% of 60 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 60
needed = math.ceil(voters * 75 / 100) # 45
print(needed)
```
The printout reads: 45
At least 45 votes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "A measure needs at least 75% of 60 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 60\nneeded = math.ceil(voters * 75 / 100) # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0057645 | A count moves from 400 to 560. By what percent did it change (use a minus sign for a drop)?
We write it as a program:
```python
old = 400
new = 560
change = (new - old) / old * 100 # 40.0
print(round(change))
```
Printed — 40
The change is 40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0057646 | After an initial $0, the remainder of a $12,000 grant is paid in 12 equal parts. What is each part?
$1,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0057647 | <|start|><|user|>
Starting with 327 staplers and using 16 per day, how many remain after 3 days?<|eot|>
<|assistant|>
```python
stock = 327
per_day = 16
days = 3
left = stock - per_day * days # 279
print(left)
```
(Printed result: 279)
279 staplers are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 327 staplers and using 16 per day, how many remain after 3 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 327\nper_day = 16\ndays = 3\nleft = stock - per_day * days # 279\nprint(left)\n```\n(Printed result: 279)\n\n279 staplers are le... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "279", "printed": "279", "notation": null} |
nlprog_det-setting-0057648 | <|start|><|user|>
A 6% increase is applied to $1,250 monthly rent. What is the new amount?<|eot|>
<|assistant|>
rent = 1250
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 1325.0
print(f"{new_rent:.2f}")
Run result = 1325.00
It rises to $1,325.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 6% increase is applied to $1,250 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": " rent = 1250\n increase = 6 / 100 # 0.06\n new_rent = rent * (1 + increase) # 1325.0\n print(f\"{new_rent:.2f}\")\nRun result = 1325.00\n\nI... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1325.00", "printed": "1325.00", "notation": null} |
nlprog_det-setting-0057651 | Straight-line depreciation: cost $24,000, salvage $3,000, 5 years. How much per year?
Python code:
```python
cost = 24000
salvage = 3000
years = 5
per_year = (cost - salvage) / years # 4200.0
print(f"{per_year:.2f}")
```
Output of the run — 4200.00
Depreciation is $4,200.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "4200.00", "printed": "4200.00", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.