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-0075069 | Each of Idris's bike rides burns 400 calories. How many calories over 7 bike rides?
2800 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "2800", "printed": "2800", "notation": null} |
nlprog_det-setting-0075070 | $1,000 is invested at 5% compounded yearly. What is it worth after 4 years?
In code:
```python
principal = 1000
rate = 5 / 100 # 0.05
years = 4
value = principal * (1 + rate) ** years # 1215.5062500000001
print(f"{value:.2f}")
```
Printed result — 1215.51
It is worth $1,215.51. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1215.51", "printed": "1215.51", "notation": null} |
nlprog_det-setting-0075071 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
Tomas earns a 3% commission on $89,708 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 89708
rate = 3 / 100 # 0.03
commission = sales * rate # 2691.24
print(f"{commission:.2f}")
```
Program output — 2691.24
The comm... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "Tomas earns a 3% commission on $89,708 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 89708\nrate = 3 / 100 # 0.03\ncommission = sa... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "2691.24", "printed": "2691.24", "notation": null} |
nlprog_det-setting-0075072 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
What is the total rent on a 24-month lease at $3,250 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 3250
months = 24
total = monthly_rent * months # 78000
print(total)
```
# console output: 78000
The rent over the term is $78,000.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "What is the total rent on a 24-month lease at $3,250 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 3250\nmonths = 24\ntotal = monthly_rent * months # 78000\nprint(t... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "78000", "printed": "78000", "notation": null} |
nlprog_det-setting-0075073 | <|start|><|user|>
Someone born June 20, 1966 turns how old by September 5, 2023? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1966, 6, 20) # datetime.date(1966, 6, 20)
on = date(2023, 9, 5) # datetime.date(2023, 9, 5)
age = on.year - born.year - ((on.month, on.day)... | chat | [
{
"role": "user",
"content": "Someone born June 20, 1966 turns how old by September 5, 2023? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1966, 6, 20) # datetime.date(1966, 6, 20)\non = date(2023, 9, 5) # datetime.date(20... | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "57", "printed": "57", "notation": null} |
nlprog_det-setting-0075074 | <|start|><|system|>
You may call the tools below.
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "compute", "description": "Run Python co... | chat | [
{
"role": "system",
"content": "You may call the tools below.\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 | [] | [] | 342 | {"gold": "950.00", "printed": "950.00", "notation": null} |
nlprog_det-setting-0075075 | How many minutes pass from 10:38 AM to 4:18 PM on the same day?
```python
start = 10 * 60 + 38 # 638
end = 16 * 60 + 18 # 978
print(end - start)
```
The run gives 340.
340 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "340", "printed": "340", "notation": null} |
nlprog_det-setting-0075076 | <|start|><|user|>
Mateo has 13 documents to file, and each filing costs $35. How much are the filing fees in total?<|eot|>
<|assistant|>
fee = 35
filings = 13
total = fee * filings # 455
print(total)
The interpreter prints: 455
The total fee is $455.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Mateo has 13 documents to file, and each filing costs $35. How much are the filing fees in total?"
},
{
"role": "assistant",
"content": " fee = 35\n filings = 13\n total = fee * filings # 455\n print(total)\nThe interpreter prints: 455\n\nThe total fee ... | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "455", "printed": "455", "notation": null} |
nlprog_det-setting-0075077 | Walls total 238 sq ft and each can covers 300 sq ft. How many cans should be bought?
Here is a short program for it.
```python
import math
area = 238
coverage = 300
cans = math.ceil(area / coverage) # 1
print(cans)
```
What it prints: 1
Buy 1 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0075078 | <|start|><|user|>
A 45-day notice period begins on February 26, 2027. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2027, 2, 26) # datetime.date(2027, 2, 26)
end = start + timedelta(days=45) # datetime.date(2027, 4, 12)
print(end.isoformat())
```
(Result: 2... | chat | [
{
"role": "user",
"content": "A 45-day notice period begins on February 26, 2027. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 2, 26) # datetime.date(2027, 2, 26)\nend = start + timedelta(days=45) # datetim... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2027-04-12", "printed": "2027-04-12", "notation": null} |
nlprog_det-setting-0075079 | <|start|><|system|>
You can call tools. Available tools:
{"name": "run_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"run_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python sour... | nlprog_det | setting | original | null | deterministic | [] | [] | 239 | {"gold": "43.40", "printed": "43.40", "notation": null} |
nlprog_det-setting-0075080 | <|start|><|user|>
What average speed covers 196 miles in 2 hours?<|eot|>
<|assistant|>
distance = 196
hours = 2
speed = distance / hours # 98.0
print(round(speed))
Run output: 98
It averages 98 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 196 miles in 2 hours?"
},
{
"role": "assistant",
"content": " distance = 196\n hours = 2\n speed = distance / hours # 98.0\n print(round(speed))\nRun output: 98\n\nIt averages 98 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 66 | {"gold": "98", "printed": "98", "notation": null} |
nlprog_det-setting-0075081 | <|start|><|system|>
You may call the tools below.
{"name": "calculator", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": "business_days", "description": "Cou... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"calculator\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"pro... | nlprog_det | setting | original | null | deterministic | [] | [] | 279 | {"gold": "65.0", "printed": "65.0", "notation": null} |
nlprog_det-setting-0075082 | How many 2-foot square tiles cover a 16 ft by 12 ft floor (round up)?
Python does the arithmetic:
```python
import math
length = 16
width = 12
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 48
print(tiles)
```
On running, it outputs: 48
48 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0075083 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
A hall has 20 rows of 21 seats, and 34 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 20
per_row = 21
empty = 34
seated = rows * per_row - empty # 386
print(seated)
```
Console:
386
386 people are seated.<|eot|>
<|end... | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "A hall has 20 rows of 21 seats, and 34 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 20\nper_row = 21\nempty = 34\nseated = rows * pe... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "386", "printed": "386", "notation": null} |
nlprog_det-setting-0075084 | Counting only Monday through Friday, how many business days are there after January 27, 2024 through February 26, 2024?
Coded up:
```python
from datetime import date, timedelta
start = date(2024, 1, 27)
end = date(2024, 2, 26)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).week... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0075085 | Malik and Quinn share $2,667 in the ratio 2:5. How much does Malik get?
Here is the program.
```python
total = 2667
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 762
print(share_a)
```
On running, it outputs 762.
Malik's share is $762. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "762", "printed": "762", "notation": null} |
nlprog_det-setting-0075086 | A hearing is set for February 12, 1992. What day of the week is that?
from datetime import date
hearing = date(1992, 2, 12) # datetime.date(1992, 2, 12)
print(hearing.strftime("%A"))
The program prints: Wednesday
It is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0075087 | Kaito lends $12,000 at 4% simple interest per year for 6 years. How much interest is earned?
In Python:
principal = 12000
rate = 4 / 100 # 0.04
years = 6
interest = principal * rate * years # 2880.0
print(f"{interest:.2f}")
Console:
2880.00
It earns $2,880.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "2880.00", "printed": "2880.00", "notation": null} |
nlprog_det-setting-0075088 | 3 books come back 11 days late, at $0.25 a day each. What is the fine?
Script:
```python
per_day = 0.25
days_late = 11
books = 3
fine = per_day * days_late * books # 8.25
print(f"{fine:.2f}")
```
Shell output — 8.25
$8.25 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "8.25", "printed": "8.25", "notation": null} |
nlprog_det-setting-0075089 | <|start|><|user|>
The rules require 2/3 of 53 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
```python
import math
members = 53
quorum = math.ceil(members * 2 / 3) # 36
print(quorum)
```
When run, it prints: 36
36 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 2/3 of 53 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 53\nquorum = math.ceil(members * 2 / 3) # 36\nprint(quorum)\n```\nWhen run, it prints: 36\n\n36 members are need... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0075090 | The bridge was finished in 1994. How many years had passed by 2025?
Python code:
```python
start_year = 1994
end_year = 2025
print(end_year - start_year)
```
The program prints 31, as expected.
31 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0075091 | <|start|><|user|>
2 books come back 29 days late, at $0.10 a day each. What is the fine?<|eot|>
<|assistant|>
per_day = 0.1
days_late = 29
books = 2
fine = per_day * days_late * books # 5.800000000000001
print(f"{fine:.2f}")
Console output: 5.80
$5.80 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2 books come back 29 days late, at $0.10 a day each. What is the fine?"
},
{
"role": "assistant",
"content": " per_day = 0.1\n days_late = 29\n books = 2\n fine = per_day * days_late * books # 5.800000000000001\n print(f\"{fine:.2f}\")\nConsole outpu... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "5.80", "printed": "5.80", "notation": null} |
nlprog_det-setting-0075093 | A trial runs from April 7, 2025 to April 23, 2025, counting both days. How many calendar days is that?
Here is the program.
```python
from datetime import date
first = date(2025, 4, 7) # datetime.date(2025, 4, 7)
last = date(2025, 4, 23) # datetime.date(2025, 4, 23)
days = (last - first).days + 1 # 17
print(days)
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0075094 | Count 10 days forward from April 21, 2024. What date is that?
We write it as a program:
from datetime import date, timedelta
start = date(2024, 4, 21) # datetime.date(2024, 4, 21)
end = start + timedelta(days=10) # datetime.date(2024, 5, 1)
print(end.isoformat())
Execution result — 2024-05-01
It end... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "2024-05-01", "printed": "2024-05-01", "notation": null} |
nlprog_det-setting-0075095 | Sales went from 2,000 to 2,800. What is the percent change?
Code:
```python
old = 2000
new = 2800
change = (new - old) / old * 100 # 40.0
print(round(change))
```
Running it prints: 40
The change is 40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0075096 | A recipe for 6 people uses 100 grams of flour. How many grams are needed for 12 people?
A Python solution:
```python
grams = 100
serves = 6
needed_for = 12
scaled = grams * needed_for // serves # 200
print(scaled)
```
It prints 200.
200 grams of flour are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0075097 | If a 6-year limitations period starts on November 17, 2023, when does it end?
In Python:
```python
from datetime import date
accrued = date(2023, 11, 17) # datetime.date(2023, 11, 17)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(2029, 11, 17)
print(expires.isoformat())
```
The scrip... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2029-11-17", "printed": "2029-11-17", "notation": null} |
nlprog_det-setting-0075098 | <|start|><|user|>
A penalty of $25 a day accrues, capped at $2,500. What is owed after 6 days?<|eot|>
<|assistant|>
```python
per_day = 25
days = 6
cap = 2500
fine = min(per_day * days, cap) # 150
print(fine)
```
The code prints: 150
The fine is $150.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $25 a day accrues, capped at $2,500. What is owed after 6 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 25\ndays = 6\ncap = 2500\nfine = min(per_day * days, cap) # 150\nprint(fine)\n```\nThe code prints: 150\n\nThe fine is $150."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0075099 | A hearing is set for October 27, 2021. What day of the week is that?
Let the code do the arithmetic:
```python
from datetime import date
hearing = date(2021, 10, 27) # datetime.date(2021, 10, 27)
print(hearing.strftime("%A"))
```
Execution result — Wednesday
October 27, 2021 is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0075100 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_uni... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\... | nlprog_det | setting | original | null | deterministic | [] | [] | 322 | {"gold": "90.0", "printed": "90.0", "notation": null} |
nlprog_det-setting-0075101 | <|start|><|user|>
From 2025 to 2048, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2025
end_year = 2048
print(end_year - start_year)
```
Out = 23
That is 23 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2025 to 2048, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2025\nend_year = 2048\nprint(end_year - start_year)\n```\nOut = 23\n\nThat is 23 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0075102 | Helga's scores were 67, 50, 53 and 94. What is the average score?
Script:
```python
scores = [67, 50, 53, 94]
average = sum(scores) // len(scores) # 66
print(average)
```
stdout = 66
The mean is 66. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0075103 | How many 1-foot square tiles cover a 14 ft by 12 ft floor (round up)?
It takes 168 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "168", "printed": "168", "notation": null} |
nlprog_det-setting-0075104 | What is 35 degrees Celsius in Fahrenheit?
A short script:
```python
celsius = 35
fahrenheit = celsius * 9 / 5 + 32 # 95.0
print(round(fahrenheit))
```
This prints 95, as expected.
It equals 95 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "95", "printed": "95", "notation": null} |
nlprog_det-setting-0075105 | Water costs $15 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 6,000 gallons?
A Python solution:
```python
base = 15
rate = 4.75
used = 6
free = 0
bill = base + rate * max(0, used - free) # 43.5
print(f"{bill:.2f}")
```
Running it prints 43.50.
$43.50 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "43.50", "printed": "43.50", "notation": null} |
nlprog_det-setting-0075106 | A lease runs for 6 months at $1,200 per month. How much rent is paid over the whole term?
Python:
```python
monthly_rent = 1200
months = 6
total = monthly_rent * months # 7200
print(total)
```
(Run result: 7200)
The rent over the term is $7,200. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "7200", "printed": "7200", "notation": null} |
nlprog_det-setting-0075107 | Parking is $3 per hour with a daily maximum of $18. What do 8 hours cost?
Python:
```python
rate = 3
hours = 8
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
Result — 18
Parking costs $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0075108 | On which weekday does November 13, 2019 fall?
Set it up in Python:
```python
from datetime import date
hearing = date(2019, 11, 13) # datetime.date(2019, 11, 13)
print(hearing.strftime("%A"))
```
Program output: Wednesday
November 13, 2019 is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0075109 | Starting with 1323 hard drives and using 24 per day, how many remain after 15 days?
Computing it:
stock = 1323
per_day = 24
days = 15
left = stock - per_day * days # 963
print(left)
# result: 963
963 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "963", "printed": "963", "notation": null} |
nlprog_det-setting-0075110 | <|start|><|user|>
Straight-line depreciation: cost $45,000, salvage $6,000, 10 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 45000
salvage = 6000
years = 10
per_year = (cost - salvage) / years # 3900.0
print(f"{per_year:.2f}")
```
(Program output: 3900.00)
Depreciation is $3,900.00 per year.<|eot|>
... | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $45,000, salvage $6,000, 10 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 45000\nsalvage = 6000\nyears = 10\nper_year = (cost - salvage) / years # 3900.0\nprint(f\"{per_year:.2f}\")\n```\n(Progra... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "3900.00", "printed": "3900.00", "notation": null} |
nlprog_det-setting-0075111 | A backpack costs $300. It is 15% off. What is the sale price?
Program:
```python
price = 300
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 255.0
print(f"{sale_price:.2f}")
```
Result = 255.00
The sale price is $255.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "255.00", "printed": "255.00", "notation": null} |
nlprog_det-setting-0075112 | A desk lamp costs $75. It is 10% off. What is the sale price?
One way, in code:
price = 75
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 67.5
print(f"{sale_price:.2f}")
Result — 67.50
The sale price is $67.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "67.50", "printed": "67.50", "notation": null} |
nlprog_det-setting-0075113 | Prorate $1,800 of monthly rent for 9 days of a 31-day month.
```python
rent = 1800
days_in_month = 31
days_occupied = 9
prorated = rent * days_occupied / days_in_month # 522.5806451612904
print(f"{prorated:.2f}")
```
Python prints: 522.58
The prorated rent is $522.58. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "522.58", "printed": "522.58", "notation": null} |
nlprog_det-setting-0075114 | A water bill is $18 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 3 thousand gallons?
Python makes this quick:
```python
base = 18
rate = 4.2
used = 3
free = 3
bill = base + rate * max(0, used - free) # 18.0
print(f"{bill:.2f}")
```
# execution result: 18.00
The bill is $18.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "18.00", "printed": "18.00", "notation": null} |
nlprog_det-setting-0075115 | A lease runs for 36 months at $2,875 per month. How much rent is paid over the whole term?
Here is the program.
monthly_rent = 2875
months = 36
total = monthly_rent * months # 103500
print(total)
Printed — 103500
In total, $103,500 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "103500", "printed": "103500", "notation": null} |
nlprog_det-setting-0075116 | 4 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
Python version:
```python
award = 96000
fee = award * 40 / 100 # 38400.0
remaining = award - fee # 57600.0
per_client = remaining / 4 # 14400.0
print(f"{per_client:.2f}")
```
(Output: 14400.00)
Each share is ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "14400.00", "printed": "14400.00", "notation": null} |
nlprog_det-setting-0075117 | Fixed costs are $2,500. Each unit sells for $15 and costs $10 to make. How many units must be sold to break even?
As a program:
```python
import math
fixed = 2500
price = 15
variable = 10
units = math.ceil(fixed / (price - variable)) # 500
print(units)
```
This prints: 500
500 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0075119 | An invoice lists 22 folders at $9 each, plus 6% sales tax. What is the invoice total?
The computation:
```python
quantity = 22
unit_price = 9
subtotal = quantity * unit_price # 198
total = subtotal * (1 + 6 / 100) # 209.88000000000002
print(f"{total:.2f}")
```
It outputs: 209.88
The invoice total is $209.88. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "209.88", "printed": "209.88", "notation": null} |
nlprog_det-setting-0075120 | Monthly: $29. Annual: $300. What is saved per year by paying annually?
```python
monthly = 29
yearly = 300
savings = monthly * 12 - yearly
print(savings)
```
(Execution result: 48)
The annual plan saves $48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0075121 | A 11 × 6 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
It takes 66 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0075122 | What day of the week is September 11, 2026?
Python:
```python
from datetime import date
hearing = date(2026, 9, 11) # datetime.date(2026, 9, 11)
print(hearing.strftime("%A"))
```
Output: Friday
September 11, 2026 is a Friday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0075123 | <|start|><|user|>
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 50 hours?<|eot|>
<|assistant|>
The weekly pay is $880.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 50 hours?"
},
{
"role": "assistant",
"content": "The weekly pay is $880.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "880.00", "printed": "880.00", "notation": null} |
nlprog_det-setting-0075124 | <|start|><|user|>
An office budget of $8,000 has expenses of $2,070, $2,504. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 8000
expenses = [2070, 2504]
left = budget - sum(expenses)
print(left)
```
(Result: 3426)
The remaining budget is $3,426.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $8,000 has expenses of $2,070, $2,504. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 8000\nexpenses = [2070, 2504]\nleft = budget - sum(expenses)\nprint(left)\n```\n(Result: 3426)\n\nThe remaining budg... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "3426", "printed": "3426", "notation": null} |
nlprog_det-setting-0075126 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
A trial runs from March 17, 2021 to April 10, 2021, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2021, 3, 17) # datetime.date(2021, 3, 17)
last = date(2021, 4, 10) # dateti... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "A trial runs from March 17, 2021 to April 10, 2021, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirs... | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0075127 | A 20 × 6 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
Program:
```python
import math
length = 20
width = 6
tile = 1
tiles = math.ceil(length * width / (tile * tile))
print(tiles)
```
Execution result: 120
120 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0075128 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
Pack A has 8 items for $7.40. Pack B has 24 items for $20.55. Which has the lower price per item?<|eot|>
<|assistant|>
Pack B is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "Pack A has 8 items for $7.40. Pack B has 24 items for $20.55. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "Pack B is cheaper per item."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 63 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0075129 | How many 1-foot square tiles cover a 14 ft by 6 ft floor (round up)?
```python
import math
length = 14
width = 6
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 84
print(tiles)
```
stdout = 84
84 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "84", "printed": "84", "notation": null} |
nlprog_det-setting-0075130 | <|start|><|user|>
Someone works 12 hours at $21.08 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 21.08
hours = 12
earnings = rate * hours # 252.95999999999998
print(f"{earnings:.2f}")
```
That prints: 252.96
The pay is $252.96.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 12 hours at $21.08 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 21.08\nhours = 12\nearnings = rate * hours # 252.95999999999998\nprint(f\"{earnings:.2f}\")\n```\nThat prints: 252.96\n\nThe pay is $252.96."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "252.96", "printed": "252.96", "notation": null} |
nlprog_det-setting-0075132 | 19 copies of a 9-page packet are printed at $0.10 per page. What is the cost?
Here is a short program for it.
```python
pages = 9
copies = 19
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 17.1
print(f"{cost:.2f}")
```
When run, it prints: 17.10
Printing costs $17.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "17.10", "printed": "17.10", "notation": null} |
nlprog_det-setting-0075133 | Printing costs 10 cents a page. What does it cost to print 92 copies of a 41-page handout?
The computation:
```python
pages = 41
copies = 92
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 377.20000000000005
print(f"{cost:.2f}")
```
# execution result: 377.20
The job costs $377.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "377.20", "printed": "377.20", "notation": null} |
nlprog_det-setting-0075134 | Divide 159 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?
Here is the program.
total = 159
groups = 5
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
# output: 31 each, 4 left over
The answer: 31 eac... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "31 each, 4 left over", "printed": "31 each, 4 left over", "notation": null} |
nlprog_det-setting-0075135 | <|start|><|user|>
2 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 / 2 # 18000.0
print(f"{per_client:.2f}")
```
When run, it... | chat | [
{
"role": "user",
"content": "2 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 / 100 # 12000.0\nremaining = award - fee # 36000.0\nper_client = remaining ... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0075136 | At 45 miles per hour, how many minutes does a 300-mile trip take?
As Python:
```python
distance = 300
speed = 45
minutes = distance / speed * 60 # 400.0
print(round(minutes))
```
(stdout: 400)
400 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0075137 | Scale 300 g of rice from 4 servings to 3 servings.
A few lines of Python do it:
```python
grams = 300
serves = 4
needed_for = 3
scaled = grams * needed_for // serves # 225
print(scaled)
```
Running this gives: 225
225 grams of rice are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0075138 | After a 25% fee is taken from a $30,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?
Program:
```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}")
```
The run gives 5625.00.
Ea... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "5625.00", "printed": "5625.00", "notation": null} |
nlprog_det-setting-0075139 | <|start|><|system|>
You may call the tools below.
{"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
Straight-line depre... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 248 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0075140 | Convert 54.4 km to meters.
In Python:
```python
km = 54.4
meters = km * 1000
print(round(meters))
```
(Printed: 54400)
That is 54,400 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "54400", "printed": "54400", "notation": null} |
nlprog_det-setting-0075141 | Starting with 1314 binders and using 35 per day, how many remain after 20 days?
Programmatically:
```python
stock = 1314
per_day = 35
days = 20
left = stock - per_day * days # 614
print(left)
```
The run gives 614.
614 binders are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "614", "printed": "614", "notation": null} |
nlprog_det-setting-0075142 | A water bill is $12 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 20 thousand gallons?
The bill is $98.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "98.70", "printed": "98.70", "notation": null} |
nlprog_det-setting-0075143 | How much sales tax is charged on a $834.23 purchase at 9%?
Set it up in Python:
```python
price = 834.23
tax_rate = 9 / 100
tax = price * tax_rate
print(f"{tax:.2f}")
```
Running this gives 75.08.
The tax is $75.08. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "75.08", "printed": "75.08", "notation": null} |
nlprog_det-setting-0075144 | A 6-day trip pays $64 a day for meals and $110 a night for lodging (5 nights). What is the total allowance?
Written as code:
```python
days = 6
meal_rate = 64
lodging_rate = 110
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 934
print(total)
```
The code prints: 934
That comes to $934. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "934", "printed": "934", "notation": null} |
nlprog_det-setting-0075145 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
If a 2-year limitations period starts on September 14, 2023, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2023, 9, 14) # datetime.date(2023, 9, 14)
years = 2
expires = accrued.replace(year=accrued.year + years) # d... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "If a 2-year limitations period starts on September 14, 2023, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2023, 9, 14) # datetime... | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "2025-09-14", "printed": "2025-09-14", "notation": null} |
nlprog_det-setting-0075146 | Buying 1 sticky pads at $24 each, 5 labels at $5 each, someone hands over $50. What change comes back?
Here's the code.
items = [(1, 24), (5, 5)]
total = sum(q * p for q, p in items) # 49
paid = 50
change = paid - total # 1
print(change)
stdout — 1
$1 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0075147 | Straight-line depreciation: cost $30,000, salvage $3,000, 6 years. How much per year?
Python does the arithmetic:
```python
cost = 30000
salvage = 3000
years = 6
per_year = (cost - salvage) / years # 4500.0
print(f"{per_year:.2f}")
```
Run output: 4500.00
$4,500.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0075148 | At $0.70 per mile, what is the reimbursement for 483 miles?
Let's compute it with Python.
```python
miles = 483
rate = 0.7
reimbursement = miles * rate # 338.09999999999997
print(f"{reimbursement:.2f}")
```
Executed, it shows: 338.10
The reimbursement is $338.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "338.10", "printed": "338.10", "notation": null} |
nlprog_det-setting-0075149 | Filing fees are $150 per document. What do 19 filings cost?
Python code:
fee = 150
filings = 19
total = fee * filings # 2850
print(total)
(Output: 2850)
The total fee is $2,850. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "2850", "printed": "2850", "notation": null} |
nlprog_det-setting-0075150 | The paralegal logged 12 hours at a rate of $410. How much is billed?
Code:
```python
hours = 12
rate = 410
bill = hours * rate
print(f"{bill:.2f}")
```
It prints 4920.00, as expected.
That comes to $4,920.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "4920.00", "printed": "4920.00", "notation": null} |
nlprog_det-setting-0075151 | The bridge was finished in 1995. How many years had passed by 2009?
As Python:
```python
start_year = 1995
end_year = 2009
print(end_year - start_year)
```
Run result: 14
14 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0075152 | Ines lends $5,000 at 8% simple interest per year for 4 years. How much interest is earned?
Here is the program.
principal = 5000
rate = 8 / 100 # 0.08
years = 4
interest = principal * rate * years # 1600.0
print(f"{interest:.2f}")
Running it prints 1600.00.
The interest is $1,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "1600.00", "printed": "1600.00", "notation": null} |
nlprog_det-setting-0075153 | <|start|><|user|>
Count 120 days forward from October 20, 2018. What date is that?<|eot|>
<|assistant|>
The period ends on February 17, 2019.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Count 120 days forward from October 20, 2018. What date is that?"
},
{
"role": "assistant",
"content": "The period ends on February 17, 2019."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "2019-02-17", "printed": "2019-02-17", "notation": null} |
nlprog_det-setting-0075154 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
How many meters are in 47.4 kilometers?<|eot|>
<|assistant|>
```python
km = 47.4
meters = km * 1000 # 47400.0
print(round(meters))
```
Out = 47400
47,400 m.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "How many meters are in 47.4 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 47.4\nmeters = km * 1000 # 47400.0\nprint(round(meters))\n```\nOut = 47400\n\n47,400 m."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "47400", "printed": "47400", "notation": null} |
nlprog_det-setting-0075155 | Parking is $4 per hour with a daily maximum of $18. What do 11 hours cost?
Coded up:
```python
rate = 4
hours = 11
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
Output of the run — 18
The charge is $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0075156 | Goods bought on July 27, 2021 carry a 6-month warranty. When does it expire?
Let the code do the arithmetic:
```python
from datetime import date
start = date(2021, 7, 27)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2022-01-27", "printed": "2022-01-27", "notation": null} |
nlprog_det-setting-0075157 | <|start|><|system|>
You have access to these functions:
[{"name": "compute", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "l... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"compute\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python sour... | nlprog_det | setting | original | null | deterministic | [] | [] | 321 | {"gold": "8192.80", "printed": "8192.80", "notation": null} |
nlprog_det-setting-0075158 | <|start|><|user|>
Yoko and Bilal share $3,619 in the ratio 3:4. How much does Yoko get?<|eot|>
<|assistant|>
Yoko gets $1,551.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Yoko and Bilal share $3,619 in the ratio 3:4. How much does Yoko get?"
},
{
"role": "assistant",
"content": "Yoko gets $1,551."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "1551", "printed": "1551", "notation": null} |
nlprog_det-setting-0075159 | At an exchange rate of 0.74 USD per EUR, how many USD is 5,702 EUR? That is 4,219.48 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "4219.48", "printed": "4219.48", "notation": null} |
nlprog_det-setting-0075160 | A lawyer's fee is 40% of a $12,000 recovery. How large is the fee?
The computation:
```python
recovery = 12000
rate = 40 / 100 # 0.4
fee = recovery * rate # 4800.0
print(f"{fee:.2f}")
```
Printed: 4800.00
The lawyer's fee comes to $4,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "4800.00", "printed": "4800.00", "notation": null} |
nlprog_det-setting-0075161 | <|start|><|user|>
A 264-page report must be reviewed in 11 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 264
days = 11
per_day = pages // days
print(per_day)
```
Out = 24
24 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 264-page report must be reviewed in 11 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 264\ndays = 11\nper_day = pages // days\nprint(per_day)\n```\nOut = 24\n\n24 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0075162 | A 5% increase is applied to $1,800 monthly rent. What is the new amount?
```python
rent = 1800
increase = 5 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
```
Running it prints 1890.00.
The new rent is $1,890.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1890.00", "printed": "1890.00", "notation": null} |
nlprog_det-setting-0075163 | Convert 5 h 21 min (the length of a meeting) to minutes.
Python does the arithmetic:
```python
hours = 5
minutes = 21
total_minutes = hours * 60 + minutes # 321
print(total_minutes)
```
The script prints: 321
That is 321 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "321", "printed": "321", "notation": null} |
nlprog_det-setting-0075164 | With 25% off, what does a $300 jacket cost?
Python does the arithmetic:
```python
price = 300
discount = 25 / 100 # 0.25
sale_price = price * (1 - discount) # 225.0
print(f"{sale_price:.2f}")
```
When run, it prints 225.00, as expected.
It costs $225.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0075165 | How long, in days, is it from November 2, 2023 until April 21, 2024?
A short script:
```python
from datetime import date
first = date(2023, 11, 2) # datetime.date(2023, 11, 2)
second = date(2024, 4, 21) # datetime.date(2024, 4, 21)
print((second - first).days)
```
stdout = 171
It is 171 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "171", "printed": "171", "notation": null} |
nlprog_det-setting-0075166 | A customer buys 1 hard drives at $28 each, 3 pens at $16 each and pays with $100. How much change is due?
```python
items = [(1, 28), (3, 16)]
total = sum(q * p for q, p in items) # 76
paid = 100
change = paid - total # 24
print(change)
```
Execution prints: 24
$24 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0075167 | From a $2,500 retainer, 9 hours at $150/hour have been drawn. What remains?
Let's compute it with Python.
```python
retainer = 2500
hours = 9
rate = 150
left = retainer - hours * rate # 1150
print(left)
```
What it prints — 1150
$1,150 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "1150", "printed": "1150", "notation": null} |
nlprog_det-setting-0075168 | <|start|><|user|>
A garage charges $5 an hour, never more than $18 a day. How much for 2 hours?<|eot|>
<|assistant|>
rate = 5
hours = 2
daily_max = 18
cost = min(rate * hours, daily_max) # 10
print(cost)
Printed result — 10
The charge is $10.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $5 an hour, never more than $18 a day. How much for 2 hours?"
},
{
"role": "assistant",
"content": " rate = 5\n hours = 2\n daily_max = 18\n cost = min(rate * hours, daily_max) # 10\n print(cost)\nPrinted result — 10\n\nThe charge is... | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0075169 | After an initial $2,000, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part?
In Python:
grant = 48000
up_front = 2000
installments = 12
each = (grant - up_front) / installments # 3833.3333333333335
print(f"{each:.2f}")
(Result: 3833.33)
$3,833.33 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "3833.33", "printed": "3833.33", "notation": null} |
nlprog_det-setting-0075170 | <|start|><|system|>
Functions:
[{"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
What simple interest does $2,500 earn at 4% ... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]"
},... | nlprog_det | setting | original | null | deterministic | [] | [] | 214 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0075171 | A $800 security deposit has deductions of $120 and $150. How much is refunded?
$530 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "530", "printed": "530", "notation": null} |
nlprog_det-setting-0075172 | <|start|><|user|>
A client paid a $2,500 retainer. The firm has billed 6 hours at $275 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 2500
hours = 6
rate = 275
left = retainer - hours * rate # 850
print(left)
```
Run output: 850
The remaining balance is $850.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A client paid a $2,500 retainer. The firm has billed 6 hours at $275 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 2500\nhours = 6\nrate = 275\nleft = retainer - hours * rate # 850\nprint(left)\n```\nRun ou... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "850", "printed": "850", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.