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-0054317 | A quorum is 3/5 of the 44 members, rounded up. How many members make a quorum?
Coded up:
```python
import math
members = 44
quorum = math.ceil(members * 3 / 5) # 27
print(quorum)
```
Interpreter output: 27
27 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0054318 | Flooring at $12/sq ft for a 15 ft × 10 ft room costs how much?
It costs $1,800. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0054319 | If a 3-year limitations period starts on May 10, 2023, when does it end?
One way, in code:
from datetime import date
accrued = date(2023, 5, 10) # datetime.date(2023, 5, 10)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 5, 10)
print(expires.isoformat())
(Res... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "2026-05-10", "printed": "2026-05-10", "notation": null} |
nlprog_det-setting-0054320 | What does $1,000 grow to in 2 years at 2% annual compounding?
A few lines of Python do it:
```python
principal = 1000
rate = 2 / 100 # 0.02
years = 2
value = principal * (1 + rate) ** years # 1040.4
print(f"{value:.2f}")
```
The program prints 1040.40.
The balance is $1,040.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1040.40", "printed": "1040.40", "notation": null} |
nlprog_det-setting-0054321 | <|start|><|user|>
Count the days between October 6, 2023 and February 7, 2024.<|eot|>
<|assistant|>
from datetime import date
first = date(2023, 10, 6)
second = date(2024, 2, 7)
print((second - first).days)
On running, it outputs: 124
It is 124 days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Count the days between October 6, 2023 and February 7, 2024."
},
{
"role": "assistant",
"content": " from datetime import date\n first = date(2023, 10, 6)\n second = date(2024, 2, 7)\n print((second - first).days)\nOn running, it outputs: 124\n\nIt is 12... | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "124", "printed": "124", "notation": null} |
nlprog_det-setting-0054322 | 4 claimants share a $1,200 settlement equally. What is each share?
Here's the code.
```python
settlement = 1200
parties = 4
share = settlement // parties # 300
print(share)
```
Run result: 300
Each share is $300. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0054323 | Fines run at $250 per day up to a maximum of $1,000. How much after 19 days?
Written as code:
```python
per_day = 250
days = 19
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
(Execution result: 1000)
The fine is $1,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0054324 | A 21-day notice period begins on January 6, 2028. On what date does it end?
Computing it:
```python
from datetime import date, timedelta
start = date(2028, 1, 6) # datetime.date(2028, 1, 6)
end = start + timedelta(days=21) # datetime.date(2028, 1, 27)
print(end.isoformat())
```
Out:
2028-01-27
That date is January ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2028-01-27", "printed": "2028-01-27", "notation": null} |
nlprog_det-setting-0054325 | Starting from $20,000, the team spends $3,474, $1,836. What remains?
A few lines of Python do it:
```python
budget = 20000
expenses = [3474, 1836]
left = budget - sum(expenses) # 14690
print(left)
```
Python prints 14690, as expected.
$14,690 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "14690", "printed": "14690", "notation": null} |
nlprog_det-setting-0054326 | Shipping costs $8 plus $2.00 per pound. What does a 17-pound parcel cost to ship?
base = 8
per_pound = 2.0
weight = 17
cost = base + per_pound * weight # 42.0
print(f"{cost:.2f}")
stdout = 42.00
The charge is $42.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "42.00", "printed": "42.00", "notation": null} |
nlprog_det-setting-0054327 | <|start|><|user|>
Shipping costs $5 plus $1.50 per pound. What does a 14-pound parcel cost to ship?<|eot|>
<|assistant|>
Shipping costs $26.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $5 plus $1.50 per pound. What does a 14-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "Shipping costs $26.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "26.00", "printed": "26.00", "notation": null} |
nlprog_det-setting-0054328 | <|start|><|user|>
How many units at $20 each (variable cost $12) cover $6,000 of fixed costs?<|eot|>
<|assistant|>
Break-even is 750 units.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $20 each (variable cost $12) cover $6,000 of fixed costs?"
},
{
"role": "assistant",
"content": "Break-even is 750 units."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0054329 | The paralegal logged 7 hours at a rate of $150. How much is billed?
hours = 7
rate = 150
bill = hours * rate # 1050
print(f"{bill:.2f}")
Run result — 1050.00
The bill is $1,050.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "1050.00", "printed": "1050.00", "notation": null} |
nlprog_det-setting-0054330 | Goran buys 12 boxes of 10 notebooks each and gives away 18 notebooks. How many notebooks are left?
Let's compute it with Python.
boxes = 12
per_box = 10
given_away = 18
left = boxes * per_box - given_away # 102
print(left)
When run, it prints: 102
102 notebooks are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "102", "printed": "102", "notation": null} |
nlprog_det-setting-0054331 | 26 copies of a 56-page packet are printed at $0.08 per page. What is the cost?
The program:
```python
pages = 56
copies = 26
cost_per_page = 0.08
cost = pages * copies * cost_per_page
print(f"{cost:.2f}")
```
Run output — 116.48
Printing costs $116.48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "116.48", "printed": "116.48", "notation": null} |
nlprog_det-setting-0054332 | The landlord deducts $85 from a $1,000 deposit. What is returned to the tenant?
Written as code:
```python
deposit = 1000
deductions = [85]
refund = deposit - sum(deductions) # 915
print(refund)
```
When run, it prints: 915
The refund is $915. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "915", "printed": "915", "notation": null} |
nlprog_det-setting-0054333 | One can of paint covers 350 square feet. How many cans are needed for 1375 square feet of wall?
Here is the program.
```python
import math
area = 1375
coverage = 350
cans = math.ceil(area / coverage) # 4
print(cans)
```
# out: 4
Buy 4 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0054334 | <|start|><|user|>
What day of the week is December 4, 1994?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1994, 12, 4) # datetime.date(1994, 12, 4)
print(hearing.strftime("%A"))
```
The program prints Sunday, as expected.
It is a Sunday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is December 4, 1994?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1994, 12, 4) # datetime.date(1994, 12, 4)\nprint(hearing.strftime(\"%A\"))\n```\nThe program prints Sunday, as expected.\n\nIt is a... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0054335 | <|start|><|user|>
At $20.29 an hour, what does 20 hours of work pay?<|eot|>
<|assistant|>
The pay is $405.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $20.29 an hour, what does 20 hours of work pay?"
},
{
"role": "assistant",
"content": "The pay is $405.80."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "405.80", "printed": "405.80", "notation": null} |
nlprog_det-setting-0054336 | <|start|><|user|>
A penalty of $25 a day accrues, capped at $2,500. What is owed after 40 days?<|eot|>
<|assistant|>
```python
per_day = 25
days = 40
cap = 2500
fine = min(per_day * days, cap) # 1000
print(fine)
```
Executed, it shows: 1000
The fine is $1,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $25 a day accrues, capped at $2,500. What is owed after 40 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 25\ndays = 40\ncap = 2500\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\nExecuted, it shows: 1000\n\nThe fine is $1... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0054337 | A 240-mile drive at a steady 45 mph takes how many minutes?
The computation:
```python
distance = 240
speed = 45
minutes = distance / speed * 60 # 320.0
print(round(minutes))
```
The script prints 320, as expected.
The trip takes 320 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "320", "printed": "320", "notation": null} |
nlprog_det-setting-0054338 | <|start|><|system|>
Tool definitions:
[{"name": "compute", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "search_cases", "description":... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"compute\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 304 | {"gold": "1692", "printed": "1692", "notation": null} |
nlprog_det-setting-0054339 | <|start|><|user|>
Fines run at $250 per day up to a maximum of $2,500. How much after 25 days?<|eot|>
<|assistant|>
```python
per_day = 250
days = 25
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
```
Result: 2500
$2,500 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $250 per day up to a maximum of $2,500. How much after 25 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 250\ndays = 25\ncap = 2500\nfine = min(per_day * days, cap) # 2500\nprint(fine)\n```\nResult: 2500\n\n$2,500 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0054340 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after September 10, 2022 through October 1, 2022?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2022, 9, 10)
end = date(2022, 10, 1)
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 September 10, 2022 through October 1, 2022?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n start = date(2022, 9, 10)\n end = date(2022, 10, 1)\n c... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0054341 | What is 40 degrees Celsius in Fahrenheit?
Python does the arithmetic:
```python
celsius = 40
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
```
On running, it outputs 104.
It equals 104 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0054342 | Find the mean of these test scores: 91, 61, 64 and 76.
Computation in Python:
```python
scores = [91, 61, 64, 76]
average = sum(scores) // len(scores) # 73
print(average)
```
# printed: 73
The mean is 73. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "73", "printed": "73", "notation": null} |
nlprog_det-setting-0054343 | 608 files go into boxes of 50. How many boxes does that take?
Computing it:
```python
import math
files = 608
per_box = 50
boxes = math.ceil(files / per_box) # 13
print(boxes)
```
(Console output: 13)
It takes 13 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0054344 | A measure needs at least 60% of 159 votes. How many votes is that, rounded up?
```python
import math
voters = 159
needed = math.ceil(voters * 60 / 100) # 96
print(needed)
```
Executing it gives: 96
At least 96 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "96", "printed": "96", "notation": null} |
nlprog_det-setting-0054345 | <|start|><|user|>
Starting with 681 envelopes and using 10 per day, how many remain after 20 days?<|eot|>
<|assistant|>
```python
stock = 681
per_day = 10
days = 20
left = stock - per_day * days # 481
print(left)
```
Out — 481
481 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 681 envelopes and using 10 per day, how many remain after 20 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 681\nper_day = 10\ndays = 20\nleft = stock - per_day * days # 481\nprint(left)\n```\nOut — 481\n\n481 remain."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "481", "printed": "481", "notation": null} |
nlprog_det-setting-0054346 | A measure needs at least 67% of 27 votes. How many votes is that, rounded up?
As a program:
```python
import math
voters = 27
needed = math.ceil(voters * 67 / 100) # 19
print(needed)
```
It outputs: 19
At least 19 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0054347 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
A class starts at 1:30 PM and lasts 105 minutes. When does it end?<|eot|>
<|assistant|>
```python
start = 13 * 60 + 30
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}"... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "A class starts at 1:30 PM and lasts 105 minutes. When does it end?"
},
{
"role": "assistant",
"content": "```python\nstart = 13 * 60 + 30\nend = start + 105\nhour, minute = di... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "3:15 PM", "printed": "3:15 PM", "notation": null} |
nlprog_det-setting-0054348 | <|start|><|user|>
A lease runs for 36 months at $1,640 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 1640
months = 36
total = monthly_rent * months # 59040
print(total)
```
# printed result: 59040
In total, $59,040 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 36 months at $1,640 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 1640\nmonths = 36\ntotal = monthly_rent * months # 59040\nprint(total)\n```\n# printed result: 59040\n\nIn to... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "59040", "printed": "59040", "notation": null} |
nlprog_det-setting-0054349 | <|start|><|user|>
Parking is $3 per hour with a daily maximum of $18. What do 10 hours cost?<|eot|>
<|assistant|>
```python
rate = 3
hours = 10
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
This prints 18.
The charge is $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $3 per hour with a daily maximum of $18. What do 10 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 3\nhours = 10\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\nThis prints 18.\n\nThe charge is $18."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0054351 | A workshop lasted 4 hours and 34 minutes. How many minutes is that?
Computation in Python:
hours = 4
minutes = 34
total_minutes = hours * 60 + minutes
print(total_minutes)
Python prints: 274
That is 274 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "274", "printed": "274", "notation": null} |
nlprog_det-setting-0054352 | Convert 5 °C to Fahrenheit.
Program:
```python
celsius = 5
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
```
The program outputs 41.
It equals 41 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0054353 | From a $7,500 retainer, 7 hours at $275/hour have been drawn. What remains?
A Python solution:
```python
retainer = 7500
hours = 7
rate = 275
left = retainer - hours * rate # 5575
print(left)
```
(Output: 5575)
The remaining balance is $5,575. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "5575", "printed": "5575", "notation": null} |
nlprog_det-setting-0054354 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
Which is cheaper per unit: 6 for $11.59 (A) or 20 for $9.00 (B)?<|eot|>
<|assistant|>
pack_a = 11.59 / 6 # 1.9316666666666666
pack_b = 9.0 / 20 # 0.45
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
It prints: B... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "Which is cheaper per unit: 6 for $11.59 (A) or 20 for $9.00 (B)?"
},
{
"role": "assistant",
"content": " pack_a = 11.59 / 6 # 1.9316666666666666\n pack_b = 9.0 / 20 # 0.45... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0054355 | <|start|><|system|>
Tools (call with JSON):
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "sandbox_python", "description": "Evaluates Python and returns the prin... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"sandbox_python\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 292 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0054356 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
4 clients win $48,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
```python
award = 48000
fee = award * 25 / 100 # 12000.0
remaining = award - fee # 36000.0
per_client = remaining / 4 # 9000.0
p... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "4 clients win $48,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "```python\naward = 48000\nfee = award * 25 / 10... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0054357 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
Monthly: $12. Annual: $96. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 12
yearly = 96
savings = monthly * 12 - yearly # 48
print(savings)
```
Running this gives 48.
The annual plan saves $48.<|eot|>
<|e... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "Monthly: $12. Annual: $96. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 12\nyearly = 96\nsavings = monthly * 12 - yearly... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0054358 | <|start|><|user|>
Count 10 days forward from August 28, 2028. What date is that?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2028, 8, 28) # datetime.date(2028, 8, 28)
end = start + timedelta(days=10) # datetime.date(2028, 9, 7)
print(end.isoformat())
```
The script prints 2028-09-... | chat | [
{
"role": "user",
"content": "Count 10 days forward from August 28, 2028. What date is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2028, 8, 28) # datetime.date(2028, 8, 28)\nend = start + timedelta(days=10) # datetime.date(2028, 9,... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "2028-09-07", "printed": "2028-09-07", "notation": null} |
nlprog_det-setting-0054359 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Py... | nlprog_det | setting | original | null | deterministic | [] | [] | 239 | {"gold": "6077.53", "printed": "6077.53", "notation": null} |
nlprog_det-setting-0054360 | From 2017 to 2026, how many years is that?
Let the code do the arithmetic:
```python
start_year = 2017
end_year = 2026
print(end_year - start_year)
```
Run it and it prints: 9
9 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0054361 | <|start|><|system|>
You may call the tools below.
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "math_engine", "description": "Executes a Python program and returns its output.", "p... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"math_engine\", \"description\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 290 | {"gold": "1750", "printed": "1750", "notation": null} |
nlprog_det-setting-0054362 | With 15% off, what does a $80 desk lamp cost?
Python code:
price = 80
discount = 15 / 100
sale_price = price * (1 - discount)
print(f"{sale_price:.2f}")
# program output: 68.00
It costs $68.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "68.00", "printed": "68.00", "notation": null} |
nlprog_det-setting-0054363 | <|start|><|user|>
Revenue is $4,500 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 4500
costs = 4000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 11.11111111111111
print(round(margin, 1))
```
Executing it gives: 11.1
... | chat | [
{
"role": "user",
"content": "Revenue is $4,500 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 4500\ncosts = 4000\nprofit = revenue - costs # 500\nmargin = profit / revenue * 100 # 11.1111111111... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "11.1", "printed": "11.1", "notation": null} |
nlprog_det-setting-0054364 | <|start|><|user|>
One can of paint covers 250 square feet. How many cans are needed for 335 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 335
coverage = 250
cans = math.ceil(area / coverage) # 2
print(cans)
```
The printout reads 2.
Buy 2 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 250 square feet. How many cans are needed for 335 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 335\ncoverage = 250\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nThe printout reads 2.\... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0054365 | <|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 printout reads: 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 printout reads: 180\n\nThe trip takes 180 minutes."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0054366 | Maren has 17 documents to file, and each filing costs $45. How much are the filing fees in total?
Here is a short program for it.
```python
fee = 45
filings = 17
total = fee * filings # 765
print(total)
```
Result — 765
$765 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "765", "printed": "765", "notation": null} |
nlprog_det-setting-0054367 | A $30,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment?
Computation in Python:
```python
grant = 30000
up_front = 2000
installments = 4
each = (grant - up_front) / installments # 7000.0
print(f"{each:.2f}")
```
Executing it gives 7000.00, as expected.
Each installmen... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "7000.00", "printed": "7000.00", "notation": null} |
nlprog_det-setting-0054368 | Fines run at $250 per day up to a maximum of $1,000. How much after 21 days?
In code:
```python
per_day = 250
days = 21
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
Run result: 1000
The fine is $1,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0054369 | <|start|><|user|>
Printing costs 12 cents a page. What does it cost to print 130 copies of a 7-page handout?<|eot|>
<|assistant|>
```python
pages = 7
copies = 130
cost_per_page = 0.12
cost = pages * copies * cost_per_page
print(f"{cost:.2f}")
```
Executing it gives 109.20.
The job costs $109.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 12 cents a page. What does it cost to print 130 copies of a 7-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 7\ncopies = 130\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page\nprint(f\"{cost:.2f}\")\n```\nExecuting ... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "109.20", "printed": "109.20", "notation": null} |
nlprog_det-setting-0054370 | <|start|><|user|>
How many whole days and leftover hours are in 225 hours?<|eot|>
<|assistant|>
```python
hours = 225
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
The program prints: 9 days and 9 hours
225 hours is 9 days and 9 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 225 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 225\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThe program prints: 9 days and 9 hours\n\n225 hours is 9 days and 9... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "9 days and 9 hours", "printed": "9 days and 9 hours", "notation": null} |
nlprog_det-setting-0054371 | A lease runs for 18 months at $2,875 per month. How much rent is paid over the whole term?
A Python solution:
monthly_rent = 2875
months = 18
total = monthly_rent * months
print(total)
What it prints: 51750
In total, $51,750 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "51750", "printed": "51750", "notation": null} |
nlprog_det-setting-0054372 | Split $2,681 between Amir and Omar in the ratio 3 to 4. What is Amir's share?
Python:
```python
total = 2681
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 1149
print(share_a)
```
Printed = 1149
Amir gets $1,149. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1149", "printed": "1149", "notation": null} |
nlprog_det-setting-0054373 | Split $279 between Ada and Chen in the ratio 1 to 2. What is Ada's share?
```python
total = 279
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 93
print(share_a)
```
Console:
93
Ada's share is $93. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "93", "printed": "93", "notation": null} |
nlprog_det-setting-0054374 | <|start|><|system|>
Functions:
{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
A party has 28 days to respond to a motion s... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}"
},... | nlprog_det | setting | original | null | deterministic | [] | [] | 268 | {"gold": "2028-12-03", "printed": "2028-12-03", "notation": null} |
nlprog_det-setting-0054375 | A 3 lb package ships at $10 base plus $2.50/lb. What is the charge?
```python
base = 10
per_pound = 2.5
weight = 3
cost = base + per_pound * weight # 17.5
print(f"{cost:.2f}")
```
Run it and it prints: 17.50
The charge is $17.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "17.50", "printed": "17.50", "notation": null} |
nlprog_det-setting-0054376 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
Convert 25 km to meters.<|eot|>
<|assistant|>
```python
km = 25
meters = km * 1000 # 25000
print(round(meters))
```
Printed result — 25000
25,000 m.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "Convert 25 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 25\nmeters = km * 1000 # 25000\nprint(round(meters))\n```\nPrinted result — 25000\n\n25,000 m."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "25000", "printed": "25000", "notation": null} |
nlprog_det-setting-0054377 | From a $10,000 retainer, 3 hours at $275/hour have been drawn. What remains?
Here is a short program for it.
```python
retainer = 10000
hours = 3
rate = 275
left = retainer - hours * rate # 9175
print(left)
```
Run output: 9175
The remaining balance is $9,175. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "9175", "printed": "9175", "notation": null} |
nlprog_det-setting-0054378 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"descriptio... | nlprog_det | setting | original | null | deterministic | [] | [] | 324 | {"gold": "1081.60", "printed": "1081.60", "notation": null} |
nlprog_det-setting-0054379 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "define_word", "descri... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"code_runner\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi... | nlprog_det | setting | original | null | deterministic | [] | [] | 300 | {"gold": "84.00", "printed": "84.00", "notation": null} |
nlprog_det-setting-0054380 | Someone works 36 hours at $31.29 per hour. What are the earnings?
In code:
rate = 31.29
hours = 36
earnings = rate * hours # 1126.44
print(f"{earnings:.2f}")
(Console output: 1126.44)
The pay is $1,126.44. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "1126.44", "printed": "1126.44", "notation": null} |
nlprog_det-setting-0054381 | What is the total rent on a 6-month lease at $975 a month?
As a program:
```python
monthly_rent = 975
months = 6
total = monthly_rent * months # 5850
print(total)
```
stdout:
5850
In total, $5,850 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "5850", "printed": "5850", "notation": null} |
nlprog_det-setting-0054382 | <|start|><|user|>
To read 180 pages in 6 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 180
days = 6
per_day = pages // days # 30
print(per_day)
```
Out: 30
30 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 180 pages in 6 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 180\ndays = 6\nper_day = pages // days # 30\nprint(per_day)\n```\nOut: 30\n\n30 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0054383 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
Convert 2 h 46 min (the length of a deposition) to minutes.<|eot|>
<|assistant|>
```python
hours = 2
minutes = 46
total_minutes = hours * 60 + minutes
print(total_minutes)
```
The interpreter prints 166.
That is 166 minutes.<|eot|>
<|en... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "Convert 2 h 46 min (the length of a deposition) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 2\nminutes = 46\ntotal_minutes = hours * 60 + minutes... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "166", "printed": "166", "notation": null} |
nlprog_det-setting-0054384 | Filing fees are $50 per document. What do 6 filings cost?
fee = 50
filings = 6
total = fee * filings
print(total)
(Out: 300)
The total fee is $300. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 56 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0054386 | A count moves from 400 to 480. By what percent did it change (use a minus sign for a drop)?
In code:
```python
old = 400
new = 480
change = (new - old) / old * 100 # 20.0
print(round(change))
```
The interpreter prints 20.
The change is 20%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0054387 | Prorate $900 of monthly rent for 13 days of a 30-day month.
As a program:
```python
rent = 900
days_in_month = 30
days_occupied = 13
prorated = rent * days_occupied / days_in_month
print(f"{prorated:.2f}")
```
What it prints — 390.00
The prorated rent is $390.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "390.00", "printed": "390.00", "notation": null} |
nlprog_det-setting-0054388 | Arjun drove 320 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?
Python does the arithmetic:
```python
miles = 320
rate = 0.65
reimbursement = miles * rate # 208.0
print(f"{reimbursement:.2f}")
```
It prints: 208.00
The reimbursement is $208.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "208.00", "printed": "208.00", "notation": null} |
nlprog_det-setting-0054389 | After a 25% fee is taken from a $30,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?
A short script:
```python
award = 30000
fee = award * 25 / 100 # 7500.0
remaining = award - fee # 22500.0
per_client = remaining / 4 # 5625.0
print(f"{per_client:.2f}")
```
Run result: 5625.00... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "5625.00", "printed": "5625.00", "notation": null} |
nlprog_det-setting-0054390 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "calc", "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|>
The rul... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"calc\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 208 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0054391 | From a $10,000 retainer, 13 hours at $200/hour have been drawn. What remains?
A short script:
```python
retainer = 10000
hours = 13
rate = 200
left = retainer - hours * rate # 7400
print(left)
```
Printed:
7400
$7,400 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "7400", "printed": "7400", "notation": null} |
nlprog_det-setting-0054392 | Straight-line depreciation: cost $30,000, salvage $2,000, 3 years. How much per year?
Written as code:
```python
cost = 30000
salvage = 2000
years = 3
per_year = (cost - salvage) / years # 9333.333333333334
print(f"{per_year:.2f}")
```
Result — 9333.33
Depreciation is $9,333.33 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "9333.33", "printed": "9333.33", "notation": null} |
nlprog_det-setting-0054396 | Convert 4,207 CHF to USD at 1 CHF = 0.74 USD.
Code:
```python
amount = 4207
rate = 0.74
converted = amount * rate # 3113.18
print(f"{converted:.2f}")
```
# printed result: 3113.18
That is 3,113.18 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "3113.18", "printed": "3113.18", "notation": null} |
nlprog_det-setting-0054397 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
Each of Viktor's runs burns 350 calories. How many calories over 7 runs?<|eot|>
<|assistant|>
```python
per_session = 350
sessions = 7
total = per_session * sessions # 2450
print(total)
```
Shell output: 2450
2450 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "Each of Viktor's runs burns 350 calories. How many calories over 7 runs?"
},
{
"role": "assistant",
"content": "```python\nper_session = 350\nsessions = 7\ntotal = per_session * sessions # 245... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "2450", "printed": "2450", "notation": null} |
nlprog_det-setting-0054398 | An office budget of $8,000 has expenses of $2,264, $3,311. How much of the budget is left?
A Python solution:
```python
budget = 8000
expenses = [2264, 3311]
left = budget - sum(expenses) # 2425
print(left)
```
# stdout: 2425
The remaining budget is $2,425. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "2425", "printed": "2425", "notation": null} |
nlprog_det-setting-0054399 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
Fines run at $25 per day up to a maximum of $5,000. How much after 4 days?<|eot|>
<|assistant|>
per_day = 25
days = 4
cap = 5000
fine = min(per_day * days, cap) # 100
print(fine)
(Output: 100)
$100 is owed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Fines run at $25 per day up to a maximum of $5,000. How much after 4 days?"
},
{
"role": "assistant",
"content": " per_day = 25\n days = 4\n cap = 5000\n fine = min(per_day * da... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0054400 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after March 7, 2022 up to and including April 8, 2022?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2022, 3, 7)
end = date(2022, 4, 8)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).w... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after March 7, 2022 up to and including April 8, 2022?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 3, 7)\nend = date(2022, 4, 8)\ncount = 0\nfor k in range(1, (e... | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0054401 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
Copies cost $15 plus $0.25 for each page beyond 0. How much for 89 pages?<|eot|>
<|assistant|>
```python
pages = 89
base = 15
per_page = 0.25
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 37.25
print(f"{cost:.2f}")
```
The program prints ... | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "Copies cost $15 plus $0.25 for each page beyond 0. How much for 89 pages?"
},
{
"role": "assistant",
"content": "```python\npages = 89\nbase = 15\nper_page = 0.25\nfree_pages = 0\ncost = base + ma... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "37.25", "printed": "37.25", "notation": null} |
nlprog_det-setting-0054402 | Straight-line depreciation: cost $45,000, salvage $2,000, 8 years. How much per year?
In Python:
```python
cost = 45000
salvage = 2000
years = 8
per_year = (cost - salvage) / years # 5375.0
print(f"{per_year:.2f}")
```
This prints: 5375.00
$5,375.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "5375.00", "printed": "5375.00", "notation": null} |
nlprog_det-setting-0054403 | Convert 20 °C to Fahrenheit.
Script:
```python
celsius = 20
fahrenheit = celsius * 9 / 5 + 32 # 68.0
print(round(fahrenheit))
```
Run result = 68
That is 68 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0054404 | Starting from $12,000, the team spends $2,382, $2,480, $2,241. What remains?
$4,897 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "4897", "printed": "4897", "notation": null} |
nlprog_det-setting-0054405 | <|start|><|user|>
How many meters are in 70.2 kilometers?<|eot|>
<|assistant|>
km = 70.2
meters = km * 1000 # 70200.0
print(round(meters))
Running this gives: 70200
That is 70,200 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 70.2 kilometers?"
},
{
"role": "assistant",
"content": " km = 70.2\n meters = km * 1000 # 70200.0\n print(round(meters))\nRunning this gives: 70200\n\nThat is 70,200 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "70200", "printed": "70200", "notation": null} |
nlprog_det-setting-0054406 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after March 24, 2021 up to and including April 16, 2021?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2021, 3, 24)
end = date(2021, 4, 16)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after March 24, 2021 up to and including April 16, 2021?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2021, 3, 24)\nend = date(2021, 4, 16)\ncount = 0\nfor k in range(1... | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0054407 | <|start|><|user|>
3 swims at 400 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 400
sessions = 3
total = per_session * sessions # 1200
print(total)
```
The interpreter prints: 1200
1200 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 swims at 400 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 400\nsessions = 3\ntotal = per_session * sessions # 1200\nprint(total)\n```\nThe interpreter prints: 1200\n\n1200 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0054408 | <|start|><|user|>
A library charges $0.15 per book per day late. What is the fine for 3 books that are 6 days late?<|eot|>
<|assistant|>
```python
per_day = 0.15
days_late = 6
books = 3
fine = per_day * days_late * books # 2.6999999999999997
print(f"{fine:.2f}")
```
Printed:
2.70
$2.70 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.15 per book per day late. What is the fine for 3 books that are 6 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.15\ndays_late = 6\nbooks = 3\nfine = per_day * days_late * books # 2.6999999999999997\nprint(f\"{fine:.2f... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "2.70", "printed": "2.70", "notation": null} |
nlprog_det-setting-0054409 | A hearing is set for May 14, 2015. What day of the week is that?
from datetime import date
hearing = date(2015, 5, 14) # datetime.date(2015, 5, 14)
print(hearing.strftime("%A"))
Execution result: Thursday
May 14, 2015 is a Thursday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0054410 | <|start|><|user|>
After a 40% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 60000
fee = award * 40 / 100 # 24000.0
remaining = award - fee # 36000.0
per_client = remaining / 3 # 12000.0
print(f"{per_client:.2f}")... | chat | [
{
"role": "user",
"content": "After a 40% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 60000\nfee = award * 40 / 100 # 24000.0\nremaining = award - fee # 36000.0\nper_cl... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0054411 | A 18-month warranty starts on January 4, 2022. On what date does it end?
We write it as a program:
```python
from datetime import date
start = date(2022, 1, 4)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
The... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2023-07-04", "printed": "2023-07-04", "notation": null} |
nlprog_det-setting-0054412 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
Fines run at $50 per day up to a maximum of $5,000. How much after 51 days?<|eot|>
<|assistant|>
```python
per_day = 50
days = 51
cap = 5000
fine = min(per_day * days, cap)
print(fine)
```
Run result — 2550
$2,550 is owed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "Fines run at $50 per day up to a maximum of $5,000. How much after 51 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 50\ndays = 51\ncap = 5000\nfine = min(per_d... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "2550", "printed": "2550", "notation": null} |
nlprog_det-setting-0054413 | At a 5% tax rate, what is the tax on $207.04?
A few lines of Python do it:
```python
price = 207.04
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 10.352
print(f"{tax:.2f}")
```
# result: 10.35
$10.35 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "10.35", "printed": "10.35", "notation": null} |
nlprog_det-setting-0054414 | A lawyer's fee is 30% of a $25,000 recovery. How large is the fee?
As Python:
```python
recovery = 25000
rate = 30 / 100 # 0.3
fee = recovery * rate # 7500.0
print(f"{fee:.2f}")
```
The interpreter prints 7500.00.
The lawyer's fee comes to $7,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0054415 | A $1,000 security deposit has deductions of $60 and $75. How much is refunded?
One way, in code:
```python
deposit = 1000
deductions = [60, 75]
refund = deposit - sum(deductions) # 865
print(refund)
```
# printed result: 865
$865 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "865", "printed": "865", "notation": null} |
nlprog_det-setting-0054416 | 161 copies of a 24-page packet are printed at $0.12 per page. What is the cost?
Python version:
```python
pages = 24
copies = 161
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 463.68
print(f"{cost:.2f}")
```
This prints 463.68, as expected.
The job costs $463.68. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "463.68", "printed": "463.68", "notation": null} |
nlprog_det-setting-0054417 | <|start|><|user|>
Bruna earns a 4% commission on $42,158 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 42158
rate = 4 / 100 # 0.04
commission = sales * rate # 1686.32
print(f"{commission:.2f}")
```
The printout reads 1686.32.
The commission is $1,686.32.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Bruna earns a 4% commission on $42,158 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 42158\nrate = 4 / 100 # 0.04\ncommission = sales * rate # 1686.32\nprint(f\"{commission:.2f}\")\n```\nThe printout reads 1686.32.\n\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1686.32", "printed": "1686.32", "notation": null} |
nlprog_det-setting-0054418 | <|start|><|user|>
From 2002 to 2039, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2002
end_year = 2039
print(end_year - start_year)
```
# printed: 37
37 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2002 to 2039, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2002\nend_year = 2039\nprint(end_year - start_year)\n```\n# printed: 37\n\n37 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 65 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0054419 | With 20% off, what does a $250 bicycle helmet cost? It costs $200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "200.00", "printed": "200.00", "notation": null} |
nlprog_det-setting-0054420 | 12 hours of work at $250 an hour: what is the total charge?
Code:
hours = 12
rate = 250
bill = hours * rate # 3000
print(f"{bill:.2f}")
The interpreter prints 3000.00.
The bill is $3,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0054421 | A customer buys 6 file boxes at $13 each, 3 pens at $8 each, 1 rulers at $26 each, 5 headsets at $17 each and pays with $250. How much change is due?
Script:
```python
items = [(6, 13), (3, 8), (1, 26), (5, 17)]
total = sum(q * p for q, p in items)
paid = 250
change = paid - total
print(change)
```
The run gives: 37
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "37", "printed": "37", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.