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-0067893 | Notice was given on January 22, 2026. The notice period is 45 days. When does it run out?
Translated to Python:
```python
from datetime import date, timedelta
start = date(2026, 1, 22) # datetime.date(2026, 1, 22)
end = start + timedelta(days=45) # datetime.date(2026, 3, 8)
print(end.isoformat())
```
Run result — 20... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2026-03-08", "printed": "2026-03-08", "notation": null} |
nlprog_det-setting-0067894 | A $2,500 security deposit has deductions of $45. How much is refunded?
Python code:
deposit = 2500
deductions = [45]
refund = deposit - sum(deductions) # 2455
print(refund)
stdout = 2455
$2,455 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "2455", "printed": "2455", "notation": null} |
nlprog_det-setting-0067895 | <|start|><|user|>
Scale 450 g of sugar from 8 servings to 4 servings.<|eot|>
<|assistant|>
```python
grams = 450
serves = 8
needed_for = 4
scaled = grams * needed_for // serves # 225
print(scaled)
```
The program prints 225, as expected.
225 grams of sugar are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 450 g of sugar from 8 servings to 4 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 450\nserves = 8\nneeded_for = 4\nscaled = grams * needed_for // serves # 225\nprint(scaled)\n```\nThe program prints 225, as expected.\n\n225 grams of suga... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0067896 | A meeting starts at 12:45 PM and lasts 150 minutes. When does it end?
A short script:
```python
start = 12 * 60 + 45
end = start + 150
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Output = 3:15 PM
The meeting finishes at 3:15 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "3:15 PM", "printed": "3:15 PM", "notation": null} |
nlprog_det-setting-0067897 | 101 copies of a 41-page packet are printed at $0.10 per page. What is the cost?
In code:
```python
pages = 41
copies = 101
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 414.1
print(f"{cost:.2f}")
```
Out — 414.10
Printing costs $414.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "414.10", "printed": "414.10", "notation": null} |
nlprog_det-setting-0067898 | On which weekday does June 14, 2008 fall?
A short script:
```python
from datetime import date
hearing = date(2008, 6, 14) # datetime.date(2008, 6, 14)
print(hearing.strftime("%A"))
```
Output of the run — Saturday
It is a Saturday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0067899 | <|start|><|user|>
An invoice lists 7 sticky pads at $3 each, plus 5% sales tax. What is the invoice total?<|eot|>
<|assistant|>
quantity = 7
unit_price = 3
subtotal = quantity * unit_price # 21
total = subtotal * (1 + 5 / 100) # 22.05
print(f"{total:.2f}")
It prints 22.05.
The total with tax is $... | chat | [
{
"role": "user",
"content": "An invoice lists 7 sticky pads at $3 each, plus 5% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": " quantity = 7\n unit_price = 3\n subtotal = quantity * unit_price # 21\n total = subtotal * (1 + 5 / 100) # 22.05\n print... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "22.05", "printed": "22.05", "notation": null} |
nlprog_det-setting-0067900 | <|start|><|user|>
A 270-mile drive at a steady 45 mph takes how many minutes?<|eot|>
<|assistant|>
The trip takes 360 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 270-mile drive at a steady 45 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "The trip takes 360 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0067901 | What commission does Idris make on $71,527 in sales at 2%?
Script:
sales = 71527
rate = 2 / 100 # 0.02
commission = sales * rate # 1430.54
print(f"{commission:.2f}")
stdout: 1430.54
The commission is $1,430.54. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1430.54", "printed": "1430.54", "notation": null} |
nlprog_det-setting-0067902 | A storeroom has 1516 water bottles. The office uses 5 a day. How many are left after 12 days?
1456 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "1456", "printed": "1456", "notation": null} |
nlprog_det-setting-0067903 | <|start|><|system|>
Tools you may use:
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "search_cases", "description": "Search case law by keyword.", "parameters": ... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"search_cases\", \"des... | nlprog_det | setting | original | null | deterministic | [] | [] | 349 | {"gold": "112", "printed": "112", "notation": null} |
nlprog_det-setting-0067904 | Femi drove 482 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?
As a program:
miles = 482
rate = 0.62
reimbursement = miles * rate # 298.84
print(f"{reimbursement:.2f}")
Executing it gives 298.84, as expected.
Femi is owed $298.84. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "298.84", "printed": "298.84", "notation": null} |
nlprog_det-setting-0067905 | A hearing lasted 4 hours and 21 minutes. How many minutes is that?
```python
hours = 4
minutes = 21
total_minutes = hours * 60 + minutes # 261
print(total_minutes)
```
The program prints 261, as expected.
That is 261 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "261", "printed": "261", "notation": null} |
nlprog_det-setting-0067906 | Count 120 days forward from March 10, 2025. What date is that? That date is July 8, 2025. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "2025-07-08", "printed": "2025-07-08", "notation": null} |
nlprog_det-setting-0067907 | Equipment costs $30,000, has a salvage value of $0, and a useful life of 10 years. What is the straight-line depreciation per year?
Python does the arithmetic:
```python
cost = 30000
salvage = 0
years = 10
per_year = (cost - salvage) / years # 3000.0
print(f"{per_year:.2f}")
```
(Console output: 3000.00)
$3,000.00 a... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0067908 | A deposition lasted 5 hours and 38 minutes. How many minutes is that?
Python code:
hours = 5
minutes = 38
total_minutes = hours * 60 + minutes
print(total_minutes)
The run gives: 338
The deposition lasted 338 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "338", "printed": "338", "notation": null} |
nlprog_det-setting-0067909 | <|start|><|user|>
A quorum is 2/3 of the 40 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
```python
import math
members = 40
quorum = math.ceil(members * 2 / 3) # 27
print(quorum)
```
Out:
27
27 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A quorum is 2/3 of the 40 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 40\nquorum = math.ceil(members * 2 / 3) # 27\nprint(quorum)\n```\nOut:\n27\n\n27 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0067910 | To read 660 pages in 20 days, how many pages per day are needed?
In code:
```python
pages = 660
days = 20
per_day = pages // days # 33
print(per_day)
```
Output of the run: 33
33 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0067911 | <|start|><|system|>
Tool definitions:
[{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
The rules require 1/3... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 222 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0067913 | Equal monthly payments repay $6,000 plus 6% simple yearly interest over 36 months. How large is a payment?
```python
principal = 6000
annual_rate = 6 / 100 # 0.06
months = 36
interest = principal * annual_rate * months / 12 # 1080.0
payment = (principal + interest) / months # 196.66666666666666
print(f"{payment:.2f... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "196.67", "printed": "196.67", "notation": null} |
nlprog_det-setting-0067914 | <|start|><|user|>
76 of 80 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 76
total = 80
percent = present / total * 100
print(round(percent, 1))
```
The run gives 95.0.
95.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "76 of 80 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 76\ntotal = 80\npercent = present / total * 100\nprint(round(percent, 1))\n```\nThe run gives 95.0.\n\n95.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "95.0", "printed": "95.0", "notation": null} |
nlprog_det-setting-0067915 | <|start|><|user|>
To read 988 pages in 19 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 988
days = 19
per_day = pages // days # 52
print(per_day)
```
(Run result: 52)
That is 52 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 988 pages in 19 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 988\ndays = 19\nper_day = pages // days # 52\nprint(per_day)\n```\n(Run result: 52)\n\nThat is 52 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0067916 | Nikhil and Amir share $4,417 in the ratio 3:4. How much does Nikhil get?
Program:
```python
total = 4417
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 1893
print(share_a)
```
Run result — 1893
Nikhil's share is $1,893. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "1893", "printed": "1893", "notation": null} |
nlprog_det-setting-0067917 | A shift runs from 7:05 AM to 12:33 PM. How long is it in minutes?
Translated to Python:
```python
start = 7 * 60 + 5
end = 12 * 60 + 33
print(end - start)
```
# stdout: 328
It is 328 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "328", "printed": "328", "notation": null} |
nlprog_det-setting-0067918 | <|start|><|user|>
How many 2-foot square tiles cover a 8 ft by 9 ft floor (round up)?<|eot|>
<|assistant|>
18 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 2-foot square tiles cover a 8 ft by 9 ft floor (round up)?"
},
{
"role": "assistant",
"content": "18 tiles are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0067919 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
What average speed covers 501 miles in 1 hours?<|eot|>
<|assistant|>
```python
distance = 501
hours = 1
speed = distance / hours # 501.0
print(round(speed))
```
Shell output — 501
The average speed is 501 mph.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "What average speed covers 501 miles in 1 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 501\nhours = 1\nspeed = distance / hours # 501.0\nprint(round(spe... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "501", "printed": "501", "notation": null} |
nlprog_det-setting-0067920 | <|start|><|user|>
At 40 miles per hour, how many minutes does a 110-mile trip take?<|eot|>
<|assistant|>
```python
distance = 110
speed = 40
minutes = distance / speed * 60 # 165.0
print(round(minutes))
```
This prints: 165
The trip takes 165 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 40 miles per hour, how many minutes does a 110-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 110\nspeed = 40\nminutes = distance / speed * 60 # 165.0\nprint(round(minutes))\n```\nThis prints: 165\n\nThe trip takes 165 minutes."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "165", "printed": "165", "notation": null} |
nlprog_det-setting-0067921 | <|start|><|user|>
A workshop lasted 4 hours and 7 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 4
minutes = 7
total_minutes = hours * 60 + minutes # 247
print(total_minutes)
```
(stdout: 247)
That is 247 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A workshop lasted 4 hours and 7 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 4\nminutes = 7\ntotal_minutes = hours * 60 + minutes # 247\nprint(total_minutes)\n```\n(stdout: 247)\n\nThat is 247 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "247", "printed": "247", "notation": null} |
nlprog_det-setting-0067922 | <|start|><|system|>
You have access to these functions:
[{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Nilufar earn... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 256 | {"gold": "929.60", "printed": "929.60", "notation": null} |
nlprog_det-setting-0067923 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
Buying 3 water bottles at $27 each, 4 badges at $3 each, someone hands over $100. What change comes back?<|eot|>
<|assistant|>
```python
items = [(3, 27), (4, 3)]
total = sum(q * p for q, p in items) # 93
paid = 100
change = paid - total # 7
print(cha... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "Buying 3 water bottles at $27 each, 4 badges at $3 each, someone hands over $100. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(3, 27), (4, 3)]\ntota... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0067924 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
How many of 175 votes make 67% (round up)?<|eot|>
<|assistant|>
```python
import math
voters = 175
needed = math.ceil(voters * 67 / 100) # 118
print(needed)
```
What it prints: 118
118 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "How many of 175 votes make 67% (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 175\nneeded = math.ceil(voters * 67 / 100) # 118\nprint(needed)\n```\nWh... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "118", "printed": "118", "notation": null} |
nlprog_det-setting-0067925 | Starting with 1935 pens and using 15 per day, how many remain after 19 days?
In Python:
```python
stock = 1935
per_day = 15
days = 19
left = stock - per_day * days
print(left)
```
(Out: 1650)
1650 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "1650", "printed": "1650", "notation": null} |
nlprog_det-setting-0067927 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "lookup_statute", "description": "Lo... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sc... | nlprog_det | setting | original | null | deterministic | [] | [] | 433 | {"gold": "36 each, 6 left over", "printed": "36 each, 6 left over", "notation": null} |
nlprog_det-setting-0067929 | <|start|><|system|>
You have access to these functions:
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "sandbox_python", "description": "... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start... | nlprog_det | setting | original | null | deterministic | [] | [] | 301 | {"gold": "1250", "printed": "1250", "notation": null} |
nlprog_det-setting-0067930 | <|start|><|system|>
You can call tools. Available tools:
{"name": "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|>
The landlor... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 210 | {"gold": "880", "printed": "880", "notation": null} |
nlprog_det-setting-0067931 | <|start|><|user|>
Buying 2 rulers at $24 each, 4 scissors at $10 each, someone hands over $100. What change comes back?<|eot|>
<|assistant|>
```python
items = [(2, 24), (4, 10)]
total = sum(q * p for q, p in items) # 88
paid = 100
change = paid - total # 12
print(change)
```
It prints 12, as expected.
$12 comes back... | chat | [
{
"role": "user",
"content": "Buying 2 rulers at $24 each, 4 scissors at $10 each, someone hands over $100. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(2, 24), (4, 10)]\ntotal = sum(q * p for q, p in items) # 88\npaid = 100\nchange = paid - total # 12\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0067932 | A customer buys 3 headsets at $2 each, 2 clipboards at $2 each and pays with $50. How much change is due?
Python version:
```python
items = [(3, 2), (2, 2)]
total = sum(q * p for q, p in items) # 10
paid = 50
change = paid - total # 40
print(change)
```
Interpreter output — 40
The change is $40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0067933 | <|start|><|user|>
Monthly rent is $1,200. A tenant moves in with 6 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 1200
days_in_month = 30
days_occupied = 6
prorated = rent * days_occupied / days_in_month # 240.0
print(f"{prorated:.2f}")
```
Python prints 240.00, as expect... | chat | [
{
"role": "user",
"content": "Monthly rent is $1,200. A tenant moves in with 6 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1200\ndays_in_month = 30\ndays_occupied = 6\nprorated = rent * days_occupied / days_in_month # 240.0\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0067934 | How many meters are in 20.6 kilometers?
The program:
```python
km = 20.6
meters = km * 1000 # 20600.0
print(round(meters))
```
Out — 20600
20,600 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "20600", "printed": "20600", "notation": null} |
nlprog_det-setting-0067935 | <|start|><|user|>
A count moves from 800 to 1,000. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 800
new = 1000
change = (new - old) / old * 100 # 25.0
print(round(change))
```
The program prints 25, as expected.
It changed by 25%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 800 to 1,000. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 800\nnew = 1000\nchange = (new - old) / old * 100 # 25.0\nprint(round(change))\n```\nThe program prints 25, as expe... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0067936 | <|start|><|user|>
Goods bought on September 3, 2020 carry a 12-month warranty. When does it expire?<|eot|>
<|assistant|>
from datetime import date
start = date(2020, 9, 3)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)... | chat | [
{
"role": "user",
"content": "Goods bought on September 3, 2020 carry a 12-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": " from datetime import date\n start = date(2020, 9, 3)\n months = 12\n years, month_index = divmod(start.month - 1 + months, 12)\n ... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "2021-09-03", "printed": "2021-09-03", "notation": null} |
nlprog_det-setting-0067937 | <|start|><|user|>
Each of Marek's bike rides burns 250 calories. How many calories over 7 bike rides?<|eot|>
<|assistant|>
```python
per_session = 250
sessions = 7
total = per_session * sessions
print(total)
```
Out = 1750
That burns 1750 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Marek's bike rides burns 250 calories. How many calories over 7 bike rides?"
},
{
"role": "assistant",
"content": "```python\nper_session = 250\nsessions = 7\ntotal = per_session * sessions\nprint(total)\n```\nOut = 1750\n\nThat burns 1750 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1750", "printed": "1750", "notation": null} |
nlprog_det-setting-0067938 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
Scale 300 g of sugar from 6 servings to 2 servings.<|eot|>
<|assistant|>
```python
grams = 300
serves = 6
needed_for = 2
scaled = grams * needed_for // serves # 100
print(scaled)
```
# program output: 100
Use 100 g of sugar.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "Scale 300 g of sugar from 6 servings to 2 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 300\nserves = 6\nneeded_for = 2\nscaled = grams * needed_for // serves # 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0067939 | <|start|><|user|>
Buying 1 desk lamps at $5 each, 4 tape rolls at $30 each, someone hands over $150. What change comes back?<|eot|>
<|assistant|>
items = [(1, 5), (4, 30)]
total = sum(q * p for q, p in items) # 125
paid = 150
change = paid - total # 25
print(change)
When run, it prints 25.
$25 co... | chat | [
{
"role": "user",
"content": "Buying 1 desk lamps at $5 each, 4 tape rolls at $30 each, someone hands over $150. What change comes back?"
},
{
"role": "assistant",
"content": " items = [(1, 5), (4, 30)]\n total = sum(q * p for q, p in items) # 125\n paid = 150\n change = paid - tota... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0067940 | A deposition lasted 2 hours and 41 minutes. How many minutes is that?
We write it as a program:
```python
hours = 2
minutes = 41
total_minutes = hours * 60 + minutes # 161
print(total_minutes)
```
Out: 161
The deposition lasted 161 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "161", "printed": "161", "notation": null} |
nlprog_det-setting-0067941 | With 13 rows of 11 chairs and 21 empty chairs, how many chairs are taken?
Set it up in Python:
```python
rows = 13
per_row = 11
empty = 21
seated = rows * per_row - empty # 122
print(seated)
```
The printout reads 122.
122 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "122", "printed": "122", "notation": null} |
nlprog_det-setting-0067943 | Straight-line depreciation: cost $12,000, salvage $6,000, 3 years. How much per year?
Computation in Python:
```python
cost = 12000
salvage = 6000
years = 3
per_year = (cost - salvage) / years # 2000.0
print(f"{per_year:.2f}")
```
This prints 2000.00.
Depreciation is $2,000.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0067944 | Express 138 hours in days and hours.
Python:
```python
hours = 138
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
(Printed: 5 days and 18 hours)
138 hours is 5 days and 18 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "5 days and 18 hours", "printed": "5 days and 18 hours", "notation": null} |
nlprog_det-setting-0067945 | Monthly: $15. Annual: $150. What is saved per year by paying annually?
Coded up:
```python
monthly = 15
yearly = 150
savings = monthly * 12 - yearly # 30
print(savings)
```
Output — 30
The annual plan saves $30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0067946 | <|start|><|user|>
A quorum is 1/3 of the 28 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
```python
import math
members = 28
quorum = math.ceil(members * 1 / 3) # 10
print(quorum)
```
(Program output: 10)
10 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A quorum is 1/3 of the 28 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 28\nquorum = math.ceil(members * 1 / 3) # 10\nprint(quorum)\n```\n(Program output: 10)\n\n10 members are needed."... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0067947 | A meal costs $163.49. How much is a 22% tip?
We can compute it in Python.
```python
bill = 163.49
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 35.967800000000004
print(f"{tip:.2f}")
```
Printed:
35.97
The tip is $35.97. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "35.97", "printed": "35.97", "notation": null} |
nlprog_det-setting-0067948 | Parking is $3 per hour with a daily maximum of $24. What do 4 hours cost?
Python:
```python
rate = 3
hours = 4
daily_max = 24
cost = min(rate * hours, daily_max) # 12
print(cost)
```
This prints 12, as expected.
Parking costs $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0067949 | A service costs $12 a month or $96 a year. How much does the yearly plan save over 12 monthly payments?
Here's the code.
monthly = 12
yearly = 96
savings = monthly * 12 - yearly # 48
print(savings)
The interpreter prints: 48
The annual plan saves $48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0067950 | A 544-page report must be reviewed in 16 days. How many pages a day is that, evenly?
pages = 544
days = 16
per_day = pages // days # 34
print(per_day)
Execution result: 34
34 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "34", "printed": "34", "notation": null} |
nlprog_det-setting-0067951 | How long, in days, is it from December 5, 2023 until May 19, 2024?
Python, step by step:
```python
from datetime import date
first = date(2023, 12, 5) # datetime.date(2023, 12, 5)
second = date(2024, 5, 19) # datetime.date(2024, 5, 19)
print((second - first).days)
```
It prints: 166
It is 166 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "166", "printed": "166", "notation": null} |
nlprog_det-setting-0067952 | How many minutes pass from 10:15 AM to 1:58 PM on the same day?
```python
start = 10 * 60 + 15 # 615
end = 13 * 60 + 58 # 838
print(end - start)
```
The run gives 223.
223 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "223", "printed": "223", "notation": null} |
nlprog_det-setting-0067953 | Shipping costs $10 plus $2.50 per pound. What does a 31-pound parcel cost to ship?
```python
base = 10
per_pound = 2.5
weight = 31
cost = base + per_pound * weight # 87.5
print(f"{cost:.2f}")
```
# execution result: 87.50
The charge is $87.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "87.50", "printed": "87.50", "notation": null} |
nlprog_det-setting-0067954 | What is 35 degrees Celsius in Fahrenheit? That is 95 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "95", "printed": "95", "notation": null} |
nlprog_det-setting-0067955 | What commission does Wen make on $52,115 in sales at 8%?
Computation in Python:
```python
sales = 52115
rate = 8 / 100 # 0.08
commission = sales * rate # 4169.2
print(f"{commission:.2f}")
```
The program prints 4169.20.
The commission is $4,169.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "4169.20", "printed": "4169.20", "notation": null} |
nlprog_det-setting-0067956 | <|start|><|user|>
Leon buys 10 boxes of 25 badges each and gives away 18 badges. How many badges are left?<|eot|>
<|assistant|>
```python
boxes = 10
per_box = 25
given_away = 18
left = boxes * per_box - given_away # 232
print(left)
```
Out:
232
That leaves 232 badges.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Leon buys 10 boxes of 25 badges each and gives away 18 badges. How many badges are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 10\nper_box = 25\ngiven_away = 18\nleft = boxes * per_box - given_away # 232\nprint(left)\n```\nOut:\n232\n\nThat leav... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "232", "printed": "232", "notation": null} |
nlprog_det-setting-0067957 | <|start|><|user|>
Mateo drove 55 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 55
rate = 0.58
reimbursement = miles * rate # 31.9
print(f"{reimbursement:.2f}")
```
When run, it prints 31.90.
Mateo is owed $31.90.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Mateo drove 55 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 55\nrate = 0.58\nreimbursement = miles * rate # 31.9\nprint(f\"{reimbursement:.2f}\")\n```\nWhen run, i... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "31.90", "printed": "31.90", "notation": null} |
nlprog_det-setting-0067958 | Convert 15 °C to Fahrenheit.
As a program:
celsius = 15
fahrenheit = celsius * 9 / 5 + 32 # 59.0
print(round(fahrenheit))
# program output: 59
That is 59 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0067959 | <|start|><|user|>
What simple interest does $1,000 earn at 4% a year over 4 years?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 4 / 100 # 0.04
years = 4
interest = principal * rate * years # 160.0
print(f"{interest:.2f}")
```
It outputs: 160.00
It earns $160.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $1,000 earn at 4% a year over 4 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 4 / 100 # 0.04\nyears = 4\ninterest = principal * rate * years # 160.0\nprint(f\"{interest:.2f}\")\n```\nIt outputs: 160.00\... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "160.00", "printed": "160.00", "notation": null} |
nlprog_det-setting-0067960 | <|start|><|user|>
A hall has 20 rows of 10 seats, and 20 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 20
per_row = 10
empty = 20
seated = rows * per_row - empty # 180
print(seated)
```
Executed, it shows: 180
180 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 20 rows of 10 seats, and 20 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 20\nper_row = 10\nempty = 20\nseated = rows * per_row - empty # 180\nprint(seated)\n```\nExecuted, it shows: 180\n\n180 seat... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0067961 | <|start|><|system|>
You may call the tools below.
{"name": "interpreter", "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|>
Meals are $79... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 235 | {"gold": "646", "printed": "646", "notation": null} |
nlprog_det-setting-0067962 | <|start|><|system|>
You have access to these functions:
[{"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Convert 4 h 45 min (the... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 201 | {"gold": "285", "printed": "285", "notation": null} |
nlprog_det-setting-0067963 | Prorate $900 of monthly rent for 20 days of a 31-day month.
Here's the code.
```python
rent = 900
days_in_month = 31
days_occupied = 20
prorated = rent * days_occupied / days_in_month
print(f"{prorated:.2f}")
```
On running, it outputs 580.65.
The tenant owes $580.65. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "580.65", "printed": "580.65", "notation": null} |
nlprog_det-setting-0067964 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
A customer buys 4 tape rolls at $9 each, 5 toner kits at $26 each, 5 pens at $26 each and pays with $300. How much change is due?<|eot|>
<|assistant|>
$4 comes back.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "A customer buys 4 tape rolls at $9 each, 5 toner kits at $26 each, 5 pens at $26 each and pays with $300. How much change is due?"
},
{
"role": "assistant",
"content": "$4 comes ... | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0067965 | Pack A has 8 items for $9.09. Pack B has 15 items for $18.31. Which has the lower price per item?
Coded up:
```python
pack_a = 9.09 / 8 # 1.13625
pack_b = 18.31 / 15 # 1.2206666666666666
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Printed result: A
Pack A is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0067966 | <|start|><|user|>
How many minutes pass from 7:58 AM to 12:14 PM on the same day?<|eot|>
<|assistant|>
```python
start = 7 * 60 + 58 # 478
end = 12 * 60 + 14 # 734
print(end - start)
```
Executed, it shows: 256
256 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 7:58 AM to 12:14 PM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 7 * 60 + 58 # 478\nend = 12 * 60 + 14 # 734\nprint(end - start)\n```\nExecuted, it shows: 256\n\n256 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "256", "printed": "256", "notation": null} |
nlprog_det-setting-0067967 | <|start|><|user|>
A hearing is set for May 19, 2029. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2029, 5, 19) # datetime.date(2029, 5, 19)
print(hearing.strftime("%A"))
```
The printout reads Saturday.
It is a Saturday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for May 19, 2029. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2029, 5, 19) # datetime.date(2029, 5, 19)\nprint(hearing.strftime(\"%A\"))\n```\nThe printout reads Saturday... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0067968 | <|start|><|user|>
Papers were served by mail on January 23, 2025. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2025, 1, 23) # datetime.date(2025, 1, 23)
response_days = 28
mail_days = 3
du... | chat | [
{
"role": "user",
"content": "Papers were served by mail on January 23, 2025. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2025, 1, 23) # dateti... | nlprog_det | setting | original | null | deterministic | [] | [] | 180 | {"gold": "2025-02-23", "printed": "2025-02-23", "notation": null} |
nlprog_det-setting-0067969 | A party has 14 days to respond to a motion served on October 24, 2022, with 3 days added because service was by mail. When is the response due?
Set it up in Python:
```python
from datetime import date, timedelta
served = date(2022, 10, 24) # datetime.date(2022, 10, 24)
response_days = 14
mail_days = 3
due = served + ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 178 | {"gold": "2022-11-10", "printed": "2022-11-10", "notation": null} |
nlprog_det-setting-0067970 | At an exchange rate of 0.74 EUR per USD, how many EUR is 4,647 USD? It converts to 3,438.78 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "3438.78", "printed": "3438.78", "notation": null} |
nlprog_det-setting-0067971 | <|start|><|user|>
A $240 dinner bill gets a 18% tip, and 4 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```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.
Each person pays $70.80.<|e... | chat | [
{
"role": "user",
"content": "A $240 dinner bill gets a 18% tip, and 4 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 240\ntip_rate = 18 / 100 # 0.18\npeople = 4\neach = bill * (1 + tip_rate) / people # 70.8\nprint(f\"{each:... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "70.80", "printed": "70.80", "notation": null} |
nlprog_det-setting-0067973 | Monthly rent is $1,800. A tenant moves in with 14 days left in a 30-day month. What is the prorated rent?
Written as code:
```python
rent = 1800
days_in_month = 30
days_occupied = 14
prorated = rent * days_occupied / days_in_month # 840.0
print(f"{prorated:.2f}")
```
What it prints: 840.00
The prorated rent is $840.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "840.00", "printed": "840.00", "notation": null} |
nlprog_det-setting-0067974 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
A claim accrued on February 14, 2013. The limitations period is 3 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2013, 2, 14)
years = 3
expires = accrued.replace(year=accrued.year + years)
print(expir... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "A claim accrued on February 14, 2013. The limitations period is 3 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "2016-02-14", "printed": "2016-02-14", "notation": null} |
nlprog_det-setting-0067975 | <|start|><|system|>
You may call the tools below.
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "python", "description": "Runs a short Pyth... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"targe... | nlprog_det | setting | original | null | deterministic | [] | [] | 303 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0067976 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
A measure needs at least 75% of 249 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 249
needed = math.ceil(voters * 75 / 100) # 187
print(needed)
```
Printed:
187
At least 187 votes.<|eot|>
<|end|... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "A measure needs at least 75% of 249 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 249\nneeded = math.ceil(vote... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "187", "printed": "187", "notation": null} |
nlprog_det-setting-0067977 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Walls total 577 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 577
coverage = 350
cans = math.ceil(area / coverage) # 2
print(cans)
```
Run it and it prints: 2
Buy 2 cans.<|eot|>... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Walls total 577 sq ft and each can covers 350 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 577\ncoverage = 350\ncans = mat... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0067978 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
5 keyboards cost $6 apiece. With 8% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 5
unit_price = 6
subtotal = quantity * unit_price # 30
total = subtotal * (1 + 8 / 100) # 32.400000000000006
print(f"{total:.2f}")
```
On running, i... | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "5 keyboards cost $6 apiece. With 8% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 5\nunit_price = 6\nsubtotal = quantity * unit_price # 30\ntotal ... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "32.40", "printed": "32.40", "notation": null} |
nlprog_det-setting-0067979 | Convert 32.2 km to meters.
The program:
```python
km = 32.2
meters = km * 1000
print(round(meters))
```
Executing it gives 32200.
32,200 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "32200", "printed": "32200", "notation": null} |
nlprog_det-setting-0067980 | <|start|><|user|>
Printing costs 5 cents a page. What does it cost to print 178 copies of a 53-page handout?<|eot|>
<|assistant|>
```python
pages = 53
copies = 178
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 471.70000000000005
print(f"{cost:.2f}")
```
Execution prints 471.70, as expected.
Printing co... | chat | [
{
"role": "user",
"content": "Printing costs 5 cents a page. What does it cost to print 178 copies of a 53-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 53\ncopies = 178\ncost_per_page = 0.05\ncost = pages * copies * cost_per_page # 471.70000000000005\nprint(f\"{cost:.... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "471.70", "printed": "471.70", "notation": null} |
nlprog_det-setting-0067981 | <|start|><|user|>
A $48,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment?<|eot|>
<|assistant|>
grant = 48000
up_front = 3000
installments = 4
each = (grant - up_front) / installments # 11250.0
print(f"{each:.2f}")
Running it prints 11250.00, as expe... | chat | [
{
"role": "user",
"content": "A $48,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": " grant = 48000\n up_front = 3000\n installments = 4\n each = (grant - up_front) / installments # 11250.0\n ... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "11250.00", "printed": "11250.00", "notation": null} |
nlprog_det-setting-0067982 | Scale 300 g of flour from 2 servings to 12 servings.
A short script:
```python
grams = 300
serves = 2
needed_for = 12
scaled = grams * needed_for // serves # 1800
print(scaled)
```
Run result = 1800
Use 1800 g of flour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0067983 | A $2,400 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Computation in Python:
```python
principal = 2400
annual_rate = 5 / 100 # 0.05
months = 36
interest = principal * annual_rate * months / 12 # 360.0
payment = (principal +... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "76.67", "printed": "76.67", "notation": null} |
nlprog_det-setting-0067984 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout o... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"eval_python\", \"descripti... | nlprog_det | setting | original | null | deterministic | [] | [] | 379 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0067985 | With $8,000 in costs and $8,500 in revenue, what percent of revenue is profit? Round to one decimal.
Python:
```python
revenue = 8500
costs = 8000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 5.88235294117647
print(round(margin, 1))
```
The printout reads: 5.9
The margin is 5.9%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "5.9", "printed": "5.9", "notation": null} |
nlprog_det-setting-0067986 | Helga was born on February 8, 1999. How old is Helga on April 9, 2029?
The age is 30 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0067987 | Rent of $900 goes up 8%. What is the new rent?
Here's the code.
```python
rent = 900
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 972.0000000000001
print(f"{new_rent:.2f}")
```
The program prints 972.00, as expected.
It rises to $972.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "972.00", "printed": "972.00", "notation": null} |
nlprog_det-setting-0067988 | 7 hours of work at $250 an hour: what is the total charge?
Code:
```python
hours = 7
rate = 250
bill = hours * rate
print(f"{bill:.2f}")
```
The printout reads 1750.00.
That comes to $1,750.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "1750.00", "printed": "1750.00", "notation": null} |
nlprog_det-setting-0067989 | <|start|><|user|>
How much is a $69 daily meal allowance over 5 days?<|eot|>
<|assistant|>
```python
days = 5
meal_rate = 69
total = days * meal_rate # 345
print(total)
```
It outputs 345.
That comes to $345.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much is a $69 daily meal allowance over 5 days?"
},
{
"role": "assistant",
"content": "```python\ndays = 5\nmeal_rate = 69\ntotal = days * meal_rate # 345\nprint(total)\n```\nIt outputs 345.\n\nThat comes to $345."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "345", "printed": "345", "notation": null} |
nlprog_det-setting-0067990 | A client paid a $5,000 retainer. The firm has billed 11 hours at $250 per hour. How much of the retainer is left?
$2,250 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0067991 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
825 files go into boxes of 12. How many boxes does that take?<|eot|>
<|assistant|>
69 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "825 files go into boxes of 12. How many boxes does that take?"
},
{
"role": "assistant",
"content": "69 boxes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "69", "printed": "69", "notation": null} |
nlprog_det-setting-0067992 | A settlement of $2,640 is split equally among 6 parties. How much does each party receive?
Python code:
```python
settlement = 2640
parties = 6
share = settlement // parties # 440
print(share)
```
Interpreter output: 440
Each party receives $440. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "440", "printed": "440", "notation": null} |
nlprog_det-setting-0067993 | At $25.97 an hour, what does 16 hours of work pay?
Computation in Python:
```python
rate = 25.97
hours = 16
earnings = rate * hours # 415.52
print(f"{earnings:.2f}")
```
Running it prints 415.52.
The pay is $415.52. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "415.52", "printed": "415.52", "notation": null} |
nlprog_det-setting-0067994 | <|start|><|user|>
3 friends split a $96 bill plus a 18% tip evenly. How much does each pay?<|eot|>
<|assistant|>
```python
bill = 96
tip_rate = 18 / 100 # 0.18
people = 3
each = bill * (1 + tip_rate) / people # 37.76
print(f"{each:.2f}")
```
Run result — 37.76
The share is $37.76 each.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 friends split a $96 bill plus a 18% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "```python\nbill = 96\ntip_rate = 18 / 100 # 0.18\npeople = 3\neach = bill * (1 + tip_rate) / people # 37.76\nprint(f\"{each:.2f}\")\n```\nRun result — ... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "37.76", "printed": "37.76", "notation": null} |
nlprog_det-setting-0067995 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python ... | nlprog_det | setting | original | null | deterministic | [] | [] | 228 | {"gold": "6.75", "printed": "6.75", "notation": null} |
nlprog_det-setting-0067996 | A hearing is set for January 17, 2009. What day of the week is that?
We can compute it in Python.
```python
from datetime import date
hearing = date(2009, 1, 17) # datetime.date(2009, 1, 17)
print(hearing.strftime("%A"))
```
stdout = Saturday
January 17, 2009 is a Saturday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0067997 | How much sales tax is charged on a $582.18 purchase at 9%?
In code:
```python
price = 582.18
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 52.39619999999999
print(f"{tax:.2f}")
```
Running this gives: 52.40
The tax is $52.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "52.40", "printed": "52.40", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.