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-0049046 | <|start|><|system|>
Tools you may use:
{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Copies cost $10 plus $0.25 for each p... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}... | nlprog_det | setting | original | null | deterministic | [] | [] | 237 | {"gold": "28.00", "printed": "28.00", "notation": null} |
nlprog_det-setting-0049048 | <|start|><|user|>
Starting with 1192 scissors and using 23 per day, how many remain after 6 days?<|eot|>
<|assistant|>
```python
stock = 1192
per_day = 23
days = 6
left = stock - per_day * days # 1054
print(left)
```
Printed = 1054
1054 scissors are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1192 scissors and using 23 per day, how many remain after 6 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1192\nper_day = 23\ndays = 6\nleft = stock - per_day * days # 1054\nprint(left)\n```\nPrinted = 1054\n\n1054 scissors are left.... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1054", "printed": "1054", "notation": null} |
nlprog_det-setting-0049049 | <|start|><|user|>
Each storage box holds 15 files. How many boxes are needed for 763 files?<|eot|>
<|assistant|>
```python
import math
files = 763
per_box = 15
boxes = math.ceil(files / per_box) # 51
print(boxes)
```
The run gives 51.
51 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 15 files. How many boxes are needed for 763 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 763\nper_box = 15\nboxes = math.ceil(files / per_box) # 51\nprint(boxes)\n```\nThe run gives 51.\n\n51 boxes are needed.... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0049050 | <|start|><|user|>
A recipe for 4 people uses 200 grams of rice. How many grams are needed for 2 people?<|eot|>
<|assistant|>
```python
grams = 200
serves = 4
needed_for = 2
scaled = grams * needed_for // serves # 100
print(scaled)
```
The program prints: 100
100 grams of rice are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 4 people uses 200 grams of rice. How many grams are needed for 2 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 200\nserves = 4\nneeded_for = 2\nscaled = grams * needed_for // serves # 100\nprint(scaled)\n```\nThe program prints: 100... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0049051 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "sandbox_python", "description": "Run Python code in a sandbox; the result is ... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"sandbox_python\", \"des... | nlprog_det | setting | original | null | deterministic | [] | [] | 356 | {"gold": "140", "printed": "140", "notation": null} |
nlprog_det-setting-0049052 | Split $2,912 between Ines and Elena in the ratio 3 to 5. What is Ines's share?
Computation in Python:
```python
total = 2912
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1092
print(share_a)
```
Running this gives 1092.
Ines's share is $1,092. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "1092", "printed": "1092", "notation": null} |
nlprog_det-setting-0049053 | <|start|><|user|>
What commission does Elena make on $88,030 in sales at 3%?<|eot|>
<|assistant|>
```python
sales = 88030
rate = 3 / 100 # 0.03
commission = sales * rate # 2640.9
print(f"{commission:.2f}")
```
The program outputs 2640.90.
The commission is $2,640.90.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Elena make on $88,030 in sales at 3%?"
},
{
"role": "assistant",
"content": "```python\nsales = 88030\nrate = 3 / 100 # 0.03\ncommission = sales * rate # 2640.9\nprint(f\"{commission:.2f}\")\n```\nThe program outputs 2640.90.\n\nThe commission... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "2640.90", "printed": "2640.90", "notation": null} |
nlprog_det-setting-0049054 | <|start|><|user|>
4 boxes hold 24 lanyards each. After 11 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 4
per_box = 24
given_away = 11
left = boxes * per_box - given_away # 85
print(left)
```
The run gives 85, as expected.
That leaves 85 lanyards.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 boxes hold 24 lanyards each. After 11 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 4\nper_box = 24\ngiven_away = 11\nleft = boxes * per_box - given_away # 85\nprint(left)\n```\nThe run gives 85, as expected.\n\nThat... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "85", "printed": "85", "notation": null} |
nlprog_det-setting-0049055 | After an initial $6,000, the remainder of a $24,000 grant is paid in 4 equal parts. What is each part?
```python
grant = 24000
up_front = 6000
installments = 4
each = (grant - up_front) / installments
print(f"{each:.2f}")
```
Run result: 4500.00
Each installment is $4,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0049056 | A 18-month warranty starts on December 3, 2019. On what date does it end?
Python makes this quick:
```python
from datetime import date
start = date(2019, 12, 3)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
It... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2021-06-03", "printed": "2021-06-03", "notation": null} |
nlprog_det-setting-0049059 | At $0.67 per mile, what is the reimbursement for 184 miles?
Script:
```python
miles = 184
rate = 0.67
reimbursement = miles * rate # 123.28
print(f"{reimbursement:.2f}")
```
Output: 123.28
The reimbursement is $123.28. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "123.28", "printed": "123.28", "notation": null} |
nlprog_det-setting-0049060 | How many days are there from January 20, 2023 to October 17, 2023?
Here's the code.
```python
from datetime import date
first = date(2023, 1, 20) # datetime.date(2023, 1, 20)
second = date(2023, 10, 17) # datetime.date(2023, 10, 17)
print((second - first).days)
```
Out = 270
It is 270 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "270", "printed": "270", "notation": null} |
nlprog_det-setting-0049061 | A service costs $9 a month or $60 a year. How much does the yearly plan save over 12 monthly payments?
Programmatically:
monthly = 9
yearly = 60
savings = monthly * 12 - yearly # 48
print(savings)
# program output: 48
$48 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0049062 | Each storage box holds 40 files. How many boxes are needed for 423 files?
Let's compute it with Python.
```python
import math
files = 423
per_box = 40
boxes = math.ceil(files / per_box) # 11
print(boxes)
```
Executing it gives 11, as expected.
11 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0049063 | The rules require 2/3 of 41 members (round up) to be present. How many is that?
Python makes this quick:
import math
members = 41
quorum = math.ceil(members * 2 / 3)
print(quorum)
Run result: 28
That is 28 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0049064 | A meal costs $58.58. How much is a 20% tip? Leave $11.72. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "11.72", "printed": "11.72", "notation": null} |
nlprog_det-setting-0049065 | A library charges $0.50 per book per day late. What is the fine for 2 books that are 16 days late?
Here is a short program for it.
per_day = 0.5
days_late = 16
books = 2
fine = per_day * days_late * books # 16.0
print(f"{fine:.2f}")
Console output — 16.00
$16.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "16.00", "printed": "16.00", "notation": null} |
nlprog_det-setting-0049066 | A water bill is $12 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 21 thousand gallons?
Programmatically:
```python
base = 12
rate = 4.2
used = 21
free = 0
bill = base + rate * max(0, used - free) # 100.2
print(f"{bill:.2f}")
```
Console output — 100.20
The bill is $100.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "100.20", "printed": "100.20", "notation": null} |
nlprog_det-setting-0049067 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "python_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"P... | nlprog_det | setting | original | null | deterministic | [] | [] | 225 | {"gold": "36.40", "printed": "36.40", "notation": null} |
nlprog_det-setting-0049068 | <|start|><|user|>
63 of 100 members attended. What percent attended?<|eot|>
<|assistant|>
63.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "63 of 100 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "63.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "63.0", "printed": "63.0", "notation": null} |
nlprog_det-setting-0049069 | Count 120 days forward from November 22, 2019. What date is that?
Computation in Python:
from datetime import date, timedelta
start = date(2019, 11, 22)
end = start + timedelta(days=120)
print(end.isoformat())
That prints 2020-03-21.
It ends on March 21, 2020. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "2020-03-21", "printed": "2020-03-21", "notation": null} |
nlprog_det-setting-0049070 | Divide 115 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?
Written as code:
```python
total = 115
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
(stdout: 19 each, 1 left over)
The answer: 19 each, 1 l... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "19 each, 1 left over", "printed": "19 each, 1 left over", "notation": null} |
nlprog_det-setting-0049071 | <|start|><|user|>
A trial runs from April 22, 2020 to May 5, 2020, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2020, 4, 22) # datetime.date(2020, 4, 22)
last = date(2020, 5, 5) # datetime.date(2020, 5, 5)
days = (last - first).days + 1 # 1... | chat | [
{
"role": "user",
"content": "A trial runs from April 22, 2020 to May 5, 2020, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2020, 4, 22) # datetime.date(2020, 4, 22)\nlast = date(2020, 5, 5) # date... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0049072 | 224 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?
Here is the program.
```python
total = 224
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
When run, it prints 56 each, 0 left over, as expected.
The answer... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "56 each, 0 left over", "printed": "56 each, 0 left over", "notation": null} |
nlprog_det-setting-0049073 | <|start|><|user|>
A seminar starts at 2:15 PM and lasts 40 minutes. When does it end?<|eot|>
<|assistant|>
```python
start = 14 * 60 + 15
end = start + 40
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
The program prints 2:55 PM.
The seminar finishes at 2:... | chat | [
{
"role": "user",
"content": "A seminar starts at 2:15 PM and lasts 40 minutes. When does it end?"
},
{
"role": "assistant",
"content": "```python\nstart = 14 * 60 + 15\nend = start + 40\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "2:55 PM", "printed": "2:55 PM", "notation": null} |
nlprog_det-setting-0049074 | What day of the week is August 6, 1990?
Written as code:
```python
from datetime import date
hearing = date(1990, 8, 6) # datetime.date(1990, 8, 6)
print(hearing.strftime("%A"))
```
This prints Monday.
It is a Monday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0049075 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
Count the days between July 23, 2021 and July 29, 2022.<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2021, 7, 23) # datetime.date(2021, 7, 23)
second = date(2022, 7, 29) # datetime.date(2022, 7, 29)
print((second - first).days)... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "Count the days between July 23, 2021 and July 29, 2022."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2021, 7, 23) # datetime.date(2021, 7, 23)... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "371", "printed": "371", "notation": null} |
nlprog_det-setting-0049076 | Of a $10,000 budget, $2,300 has been spent. What percent is that?
That is 23.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "23.0", "printed": "23.0", "notation": null} |
nlprog_det-setting-0049077 | Rosa earns a 5% commission on $19,848 of sales. What is the commission?
Here is the program.
```python
sales = 19848
rate = 5 / 100 # 0.05
commission = sales * rate # 992.4000000000001
print(f"{commission:.2f}")
```
Output = 992.40
Rosa earns $992.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "992.40", "printed": "992.40", "notation": null} |
nlprog_det-setting-0049078 | Convert 55.7 km to meters.
The program:
```python
km = 55.7
meters = km * 1000 # 55700.0
print(round(meters))
```
Executed, it shows: 55700
That is 55,700 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "55700", "printed": "55700", "notation": null} |
nlprog_det-setting-0049079 | <|start|><|user|>
A storeroom has 1052 envelopes. The office uses 23 a day. How many are left after 17 days?<|eot|>
<|assistant|>
```python
stock = 1052
per_day = 23
days = 17
left = stock - per_day * days # 661
print(left)
```
# result: 661
661 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 1052 envelopes. The office uses 23 a day. How many are left after 17 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1052\nper_day = 23\ndays = 17\nleft = stock - per_day * days # 661\nprint(left)\n```\n# result: 661\n\n661 remain."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "661", "printed": "661", "notation": null} |
nlprog_det-setting-0049080 | <|start|><|user|>
Priya buys 7 boxes of 25 labels each and gives away 20 labels. How many labels are left?<|eot|>
<|assistant|>
```python
boxes = 7
per_box = 25
given_away = 20
left = boxes * per_box - given_away # 155
print(left)
```
(Printed result: 155)
That leaves 155 labels.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Priya buys 7 boxes of 25 labels each and gives away 20 labels. How many labels are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 7\nper_box = 25\ngiven_away = 20\nleft = boxes * per_box - given_away # 155\nprint(left)\n```\n(Printed result: 155)\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "155", "printed": "155", "notation": null} |
nlprog_det-setting-0049081 | 2 books come back 14 days late, at $0.25 a day each. What is the fine?
Python does the arithmetic:
per_day = 0.25
days_late = 14
books = 2
fine = per_day * days_late * books
print(f"{fine:.2f}")
(Result: 7.00)
$7.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "7.00", "printed": "7.00", "notation": null} |
nlprog_det-setting-0049082 | A lawyer's fee is 40% of a $150,000 recovery. How large is the fee?
Program:
```python
recovery = 150000
rate = 40 / 100 # 0.4
fee = recovery * rate # 60000.0
print(f"{fee:.2f}")
```
Result:
60000.00
The lawyer's fee comes to $60,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "60000.00", "printed": "60000.00", "notation": null} |
nlprog_det-setting-0049083 | At 1.5% a month (simple), what interest builds on $12,000 over 3 months? The interest is $540.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "540.00", "printed": "540.00", "notation": null} |
nlprog_det-setting-0049084 | <|start|><|user|>
Monthly rent is $1,200. A tenant moves in with 22 days left in a 31-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 1200
days_in_month = 31
days_occupied = 22
prorated = rent * days_occupied / days_in_month # 851.6129032258065
print(f"{prorated:.2f}")
```
This prints: 851.... | chat | [
{
"role": "user",
"content": "Monthly rent is $1,200. A tenant moves in with 22 days left in a 31-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1200\ndays_in_month = 31\ndays_occupied = 22\nprorated = rent * days_occupied / days_in_month # 851.61... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "851.61", "printed": "851.61", "notation": null} |
nlprog_det-setting-0049085 | A water bill is $18 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 12 thousand gallons?
Let's compute it with Python.
```python
base = 18
rate = 4.2
used = 12
free = 3
bill = base + rate * max(0, used - free)
print(f"{bill:.2f}")
```
(Out: 55.80)
The bill is $55.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "55.80", "printed": "55.80", "notation": null} |
nlprog_det-setting-0049086 | <|start|><|user|>
Meals are $79 per day and lodging $110 per night. What is the allowance for 9 days and 8 nights?<|eot|>
<|assistant|>
```python
days = 9
meal_rate = 79
lodging_rate = 110
nights = days - 1 # 8
total = days * meal_rate + nights * lodging_rate # 1591
print(total)
```
Out — 1591
The allowance is $1,59... | chat | [
{
"role": "user",
"content": "Meals are $79 per day and lodging $110 per night. What is the allowance for 9 days and 8 nights?"
},
{
"role": "assistant",
"content": "```python\ndays = 9\nmeal_rate = 79\nlodging_rate = 110\nnights = days - 1 # 8\ntotal = days * meal_rate + nights * lodging_rate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1591", "printed": "1591", "notation": null} |
nlprog_det-setting-0049087 | What percentage of $4,000 is $2,600?
We write it as a program:
budget = 4000
spent = 2600
percent = spent / budget * 100
print(round(percent, 1))
Result — 65.0
65.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 65 | {"gold": "65.0", "printed": "65.0", "notation": null} |
nlprog_det-setting-0049088 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Rent of $1,500 goes up 2%. What is the new rent?<|eot|>
<|assistant|>
The new rent is $1,530.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Rent of $1,500 goes up 2%. What is the new rent?"
},
{
"role": "assistant",
"content": "The new rent is $1,530.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "1530.00", "printed": "1530.00", "notation": null} |
nlprog_det-setting-0049089 | After an initial $6,000, the remainder of a $24,000 grant is paid in 12 equal parts. What is each part?
Python makes this quick:
```python
grant = 24000
up_front = 6000
installments = 12
each = (grant - up_front) / installments # 1500.0
print(f"{each:.2f}")
```
This prints: 1500.00
$1,500.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1500.00", "printed": "1500.00", "notation": null} |
nlprog_det-setting-0049090 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"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"... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"},... | nlprog_det | setting | original | null | deterministic | [] | [] | 336 | {"gold": "1605", "printed": "1605", "notation": null} |
nlprog_det-setting-0049091 | 2 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
Each share is $25,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "25200.00", "printed": "25200.00", "notation": null} |
nlprog_det-setting-0049092 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
A count moves from 1,000 to 850. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
It changed by -15%.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "A count moves from 1,000 to 850. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "It changed by -15%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "-15", "printed": "-15", "notation": null} |
nlprog_det-setting-0049093 | $10,000 is invested at 4% compounded yearly. What is it worth after 4 years?
We write it as a program:
```python
principal = 10000
rate = 4 / 100 # 0.04
years = 4
value = principal * (1 + rate) ** years # 11698.585600000002
print(f"{value:.2f}")
```
This prints 11698.59, as expected.
It is worth $11,698.59. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "11698.59", "printed": "11698.59", "notation": null} |
nlprog_det-setting-0049094 | How many 1-foot square tiles cover a 16 ft by 4 ft floor (round up)?
It takes 64 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "64", "printed": "64", "notation": null} |
nlprog_det-setting-0049095 | Counting only Monday through Friday, how many business days are there after December 13, 2026 through December 26, 2026?
Here's the code.
```python
from datetime import date, timedelta
start = date(2026, 12, 13)
end = date(2026, 12, 26)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(day... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 159 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0049096 | A 30 lb package ships at $8 base plus $1.20/lb. What is the charge?
Python code:
base = 8
per_pound = 1.2
weight = 30
cost = base + per_pound * weight # 44.0
print(f"{cost:.2f}")
The interpreter prints: 44.00
Shipping costs $44.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "44.00", "printed": "44.00", "notation": null} |
nlprog_det-setting-0049097 | At an exchange rate of 0.92 CAD per USD, how many CAD is 4,302 USD?
The computation:
```python
amount = 4302
rate = 0.92
converted = amount * rate # 3957.84
print(f"{converted:.2f}")
```
# console output: 3957.84
It converts to 3,957.84 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "3957.84", "printed": "3957.84", "notation": null} |
nlprog_det-setting-0049098 | <|start|><|system|>
You can call tools. Available tools:
{"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
A car trav... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 208 | {"gold": "295", "printed": "295", "notation": null} |
nlprog_det-setting-0049099 | Convert 34.1 km to meters.
One way, in code:
```python
km = 34.1
meters = km * 1000 # 34100.0
print(round(meters))
```
Output — 34100
34,100 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "34100", "printed": "34100", "notation": null} |
nlprog_det-setting-0049100 | Buying 4 ink cartridges at $8 each, 4 toner kits at $6 each, 6 markers at $5 each, someone hands over $100. What change comes back?
The computation:
```python
items = [(4, 8), (4, 6), (6, 5)]
total = sum(q * p for q, p in items) # 86
paid = 100
change = paid - total # 14
print(change)
```
The run gives: 14
$14 come... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0049101 | <|start|><|user|>
A settlement of $524 is split equally among 4 parties. How much does each party receive?<|eot|>
<|assistant|>
settlement = 524
parties = 4
share = settlement // parties # 131
print(share)
Executing it gives: 131
Each party receives $131.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $524 is split equally among 4 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": " settlement = 524\n parties = 4\n share = settlement // parties # 131\n print(share)\nExecuting it gives: 131\n\nEach party r... | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "131", "printed": "131", "notation": null} |
nlprog_det-setting-0049102 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
After an initial $6,000, the remainder of a $24,000 grant is paid in 3 equal parts. What is each part?<|eot|>
<|assistant|>
```python
grant = 24000
up_front = 6000
installments = 3
each = (grant - up_front) / installments # 6000.0
print(f"{eac... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "After an initial $6,000, the remainder of a $24,000 grant is paid in 3 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "```python\ngrant = 24000\nup_front =... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0049103 | <|start|><|user|>
How many whole days and leftover hours are in 366 hours?<|eot|>
<|assistant|>
```python
hours = 366
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Run it and it prints: 15 days and 6 hours
That is 15 days and 6 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 366 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 366\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nRun it and it prints: 15 days and 6 hours\n\nThat is 15 days and 6 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "15 days and 6 hours", "printed": "15 days and 6 hours", "notation": null} |
nlprog_det-setting-0049104 | <|start|><|user|>
One can of paint covers 400 square feet. How many cans are needed for 401 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 401
coverage = 400
cans = math.ceil(area / coverage) # 2
print(cans)
```
stdout: 2
2 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 400 square feet. How many cans are needed for 401 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 401\ncoverage = 400\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nstdout: 2\n\n2 cans ar... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0049105 | Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 8 years. What is the straight-line depreciation per year?
Depreciation is $750.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "750.00", "printed": "750.00", "notation": null} |
nlprog_det-setting-0049106 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
Notice was given on January 15, 2024. The notice period is 21 days. When does it run out?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2024, 1, 15) # datetime.date(2024, 1, 15)
end = start + timedelta(days=21... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "Notice was given on January 15, 2024. The notice period is 21 days. When does it run out?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\ns... | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "2024-02-05", "printed": "2024-02-05", "notation": null} |
nlprog_det-setting-0049107 | A client paid a $2,500 retainer. The firm has billed 4 hours at $275 per hour. How much of the retainer is left?
Translated to Python:
```python
retainer = 2500
hours = 4
rate = 275
left = retainer - hours * rate # 1400
print(left)
```
Printed result: 1400
$1,400 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1400", "printed": "1400", "notation": null} |
nlprog_det-setting-0049108 | Convert 8,411 GBP to USD at 1 GBP = 1.35 USD.
A Python solution:
```python
amount = 8411
rate = 1.35
converted = amount * rate # 11354.85
print(f"{converted:.2f}")
```
Program output: 11354.85
It converts to 11,354.85 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "11354.85", "printed": "11354.85", "notation": null} |
nlprog_det-setting-0049109 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
A 9 lb package ships at $12 base plus $2.00/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 12
per_pound = 2.0
weight = 9
cost = base + per_pound * weight # 30.0
print(f"{cost:.2f}")
```
stdout — 30.00
Shipping costs $30.00.<|eot... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "A 9 lb package ships at $12 base plus $2.00/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nper_pound = 2.0\nweight = 9\ncost = base + per_pou... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "30.00", "printed": "30.00", "notation": null} |
nlprog_det-setting-0049111 | <|start|><|user|>
Attendance was 81 out of 100. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 81
total = 100
percent = present / total * 100 # 81.0
print(round(percent, 1))
```
Executing it gives 81.0.
81.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 81 out of 100. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 81\ntotal = 100\npercent = present / total * 100 # 81.0\nprint(round(percent, 1))\n```\nExecuting it gives 81.0.\n\n81.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "81.0", "printed": "81.0", "notation": null} |
nlprog_det-setting-0049112 | <|start|><|user|>
Ulla drove 163 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 163
rate = 0.65
reimbursement = miles * rate # 105.95
print(f"{reimbursement:.2f}")
```
(Printed: 105.95)
The reimbursement is $105.95.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Ulla drove 163 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 163\nrate = 0.65\nreimbursement = miles * rate # 105.95\nprint(f\"{reimbursement:.2f}\")\n```\n(Printed... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "105.95", "printed": "105.95", "notation": null} |
nlprog_det-setting-0049113 | <|start|><|user|>
An attorney bills 2.5 hours at $180 per hour. What is the bill?<|eot|>
<|assistant|>
The bill is $450.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 2.5 hours at $180 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "The bill is $450.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0049114 | Tobias earns a 3% commission on $117,078 of sales. What is the commission?
Script:
```python
sales = 117078
rate = 3 / 100 # 0.03
commission = sales * rate # 3512.3399999999997
print(f"{commission:.2f}")
```
Output:
3512.34
Tobias earns $3,512.34. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "3512.34", "printed": "3512.34", "notation": null} |
nlprog_det-setting-0049115 | Of a $5,000 budget, $2,400 has been spent. What percent is that?
That is 48.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "48.0", "printed": "48.0", "notation": null} |
nlprog_det-setting-0049116 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
What average speed covers 98 miles in 2 hours?<|eot|>
<|assistant|>
```python
distance = 98
hours = 2
speed = distance / hours # 49.0
print(round(speed))
```
Run output — 49
The average speed is 49 mph.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "What average speed covers 98 miles in 2 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 98\nhours = 2\nspeed = distance / hours # 49.0\nprint(round(speed))\n```\nRun output... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "49", "printed": "49", "notation": null} |
nlprog_det-setting-0049117 | <|start|><|user|>
What average speed covers 318 miles in 2 hours?<|eot|>
<|assistant|>
```python
distance = 318
hours = 2
speed = distance / hours # 159.0
print(round(speed))
```
Running it prints 159, as expected.
It averages 159 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 318 miles in 2 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 318\nhours = 2\nspeed = distance / hours # 159.0\nprint(round(speed))\n```\nRunning it prints 159, as expected.\n\nIt averages 159 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "159", "printed": "159", "notation": null} |
nlprog_det-setting-0049118 | <|start|><|user|>
A trial runs from August 23, 2021 to September 16, 2021, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
25 calendar days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A trial runs from August 23, 2021 to September 16, 2021, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "25 calendar days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0049119 | What is -15 degrees Celsius in Fahrenheit?
Script:
celsius = -15
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
Program output — 5
That is 5 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0049120 | A customer buys 3 ink cartridges at $24 each, 3 binders at $21 each, 6 markers at $27 each, 2 toner kits at $4 each and pays with $350. How much change is due?
As a program:
```python
items = [(3, 24), (3, 21), (6, 27), (2, 4)]
total = sum(q * p for q, p in items) # 305
paid = 350
change = paid - total # 45
print(ch... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0049121 | Someone born April 21, 1980 turns how old by October 18, 2027? Give the age in whole years.
Computing it:
```python
from datetime import date
born = date(1980, 4, 21) # datetime.date(1980, 4, 21)
on = date(2027, 10, 18) # datetime.date(2027, 10, 18)
age = on.year - born.year - ((on.month, on.day) < (born.month, born... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "47", "printed": "47", "notation": null} |
nlprog_det-setting-0049122 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \... | nlprog_det | setting | original | null | deterministic | [] | [] | 204 | {"gold": "38100", "printed": "38100", "notation": null} |
nlprog_det-setting-0049123 | Printing costs 12 cents a page. What does it cost to print 200 copies of a 47-page handout?
As a program:
```python
pages = 47
copies = 200
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 1128.0
print(f"{cost:.2f}")
```
That prints 1128.00.
The job costs $1,128.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1128.00", "printed": "1128.00", "notation": null} |
nlprog_det-setting-0049124 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
With 16 rows of 17 chairs and 28 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 16
per_row = 17
empty = 28
seated = rows * per_row - empty # 244
print(seated)
```
Console output: 244
244 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "With 16 rows of 17 chairs and 28 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 16\nper_row = 17\nempty = 28\nseated = rows * per_row - em... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "244", "printed": "244", "notation": null} |
nlprog_det-setting-0049125 | At a 6% tax rate, what is the tax on $792.83?
```python
price = 792.83
tax_rate = 6 / 100
tax = price * tax_rate
print(f"{tax:.2f}")
```
The run gives 47.57.
The tax is $47.57. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "47.57", "printed": "47.57", "notation": null} |
nlprog_det-setting-0049126 | After an initial $6,000, the remainder of a $30,000 grant is paid in 6 equal parts. What is each part?
Script:
```python
grant = 30000
up_front = 6000
installments = 6
each = (grant - up_front) / installments
print(f"{each:.2f}")
```
Executing it gives 4000.00, as expected.
$4,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "4000.00", "printed": "4000.00", "notation": null} |
nlprog_det-setting-0049127 | <|start|><|user|>
A hall has 13 rows of 15 seats, and 20 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 13
per_row = 15
empty = 20
seated = rows * per_row - empty # 175
print(seated)
```
Python prints: 175
175 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 13 rows of 15 seats, and 20 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 13\nper_row = 15\nempty = 20\nseated = rows * per_row - empty # 175\nprint(seated)\n```\nPython prints: 175\n\n175 people ar... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "175", "printed": "175", "notation": null} |
nlprog_det-setting-0049128 | Each storage box holds 15 files. How many boxes are needed for 622 files?
```python
import math
files = 622
per_box = 15
boxes = math.ceil(files / per_box) # 42
print(boxes)
```
Running it prints 42.
42 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "42", "printed": "42", "notation": null} |
nlprog_det-setting-0049129 | <|start|><|user|>
At an exchange rate of 1.35 USD per GBP, how many USD is 2,768 GBP?<|eot|>
<|assistant|>
```python
amount = 2768
rate = 1.35
converted = amount * rate # 3736.8
print(f"{converted:.2f}")
```
# result: 3736.80
It converts to 3,736.80 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.35 USD per GBP, how many USD is 2,768 GBP?"
},
{
"role": "assistant",
"content": "```python\namount = 2768\nrate = 1.35\nconverted = amount * rate # 3736.8\nprint(f\"{converted:.2f}\")\n```\n# result: 3736.80\n\nIt converts to 3,736.80 USD.... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "3736.80", "printed": "3736.80", "notation": null} |
nlprog_det-setting-0049131 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
Starting with 708 file boxes and using 39 per day, how many remain after 13 days?<|eot|>
<|assistant|>
201 remain.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "Starting with 708 file boxes and using 39 per day, how many remain after 13 days?"
},
{
"role": "assistant",
"content": "201 remain."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "201", "printed": "201", "notation": null} |
nlprog_det-setting-0049132 | An office budget of $20,000 has expenses of $3,767, $1,485. How much of the budget is left?
As Python:
```python
budget = 20000
expenses = [3767, 1485]
left = budget - sum(expenses) # 14748
print(left)
```
Python prints: 14748
$14,748 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "14748", "printed": "14748", "notation": null} |
nlprog_det-setting-0049133 | <|start|><|system|>
You have access to these functions:
{"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
With 10% off, ... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 217 | {"gold": "270.00", "printed": "270.00", "notation": null} |
nlprog_det-setting-0049135 | 281 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?
The computation:
total = 281
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
(Result: 93 each, 2 left over)
93 each, 2 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "93 each, 2 left over", "printed": "93 each, 2 left over", "notation": null} |
nlprog_det-setting-0049136 | A $120 dinner bill gets a 18% tip, and 4 people share the cost equally. What is each person's share?
The program:
```python
bill = 120
tip_rate = 18 / 100 # 0.18
people = 4
each = bill * (1 + tip_rate) / people # 35.4
print(f"{each:.2f}")
```
# printed result: 35.40
Each person pays $35.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "35.40", "printed": "35.40", "notation": null} |
nlprog_det-setting-0049137 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
With $12,500 in costs and $17,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 17500
costs = 12500
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 28.571428571428... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "With $12,500 in costs and $17,500 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 17500\ncosts = 125... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "28.6", "printed": "28.6", "notation": null} |
nlprog_det-setting-0049138 | After an initial $2,000, the remainder of a $24,000 grant is paid in 12 equal parts. What is each part?
Let the code do the arithmetic:
```python
grant = 24000
up_front = 2000
installments = 12
each = (grant - up_front) / installments # 1833.3333333333333
print(f"{each:.2f}")
```
Out:
1833.33
Each installment is $1,... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "1833.33", "printed": "1833.33", "notation": null} |
nlprog_det-setting-0049140 | <|start|><|user|>
A 14 lb package ships at $10 base plus $0.75/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 10
per_pound = 0.75
weight = 14
cost = base + per_pound * weight # 20.5
print(f"{cost:.2f}")
```
Result = 20.50
Shipping costs $20.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 14 lb package ships at $10 base plus $0.75/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 10\nper_pound = 0.75\nweight = 14\ncost = base + per_pound * weight # 20.5\nprint(f\"{cost:.2f}\")\n```\nResult = 20.50\n\nShipping costs $... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "20.50", "printed": "20.50", "notation": null} |
nlprog_det-setting-0049141 | 306 files go into boxes of 40. How many boxes does that take?
```python
import math
files = 306
per_box = 40
boxes = math.ceil(files / per_box)
print(boxes)
```
It outputs 8.
It takes 8 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0049142 | Monthly rent is $1,800. A tenant moves in with 9 days left in a 31-day month. What is the prorated rent?
Script:
rent = 1800
days_in_month = 31
days_occupied = 9
prorated = rent * days_occupied / days_in_month # 522.5806451612904
print(f"{prorated:.2f}")
Execution prints 522.58.
The prorated rent... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "522.58", "printed": "522.58", "notation": null} |
nlprog_det-setting-0049143 | At $0.67 per mile, what is the reimbursement for 402 miles?
Set it up in Python:
```python
miles = 402
rate = 0.67
reimbursement = miles * rate # 269.34000000000003
print(f"{reimbursement:.2f}")
```
(stdout: 269.34)
Maren is owed $269.34. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "269.34", "printed": "269.34", "notation": null} |
nlprog_det-setting-0049144 | Counting only Monday through Friday, how many business days are there after December 25, 2024 through February 2, 2025?
Python does the arithmetic:
from datetime import date, timedelta
start = date(2024, 12, 25)
end = date(2025, 2, 2)
count = 0
for k in range(1, (end - start).days + 1):
if ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0049145 | Water costs $12 a month plus $3.50 for each 1,000 gallons over 3,000. What is owed for 18,000 gallons?
Code:
```python
base = 12
rate = 3.5
used = 18
free = 3
bill = base + rate * max(0, used - free) # 64.5
print(f"{bill:.2f}")
```
The code prints 64.50.
$64.50 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "64.50", "printed": "64.50", "notation": null} |
nlprog_det-setting-0049146 | Papers were served by mail on April 16, 2022. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?
from datetime import date, timedelta
served = date(2022, 4, 16)
response_days = 28
mail_days = 3
due = served + timedelta(days=response_days + mail_days)
p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "2022-05-17", "printed": "2022-05-17", "notation": null} |
nlprog_det-setting-0049147 | Viktor drove 15 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?
Python makes this quick:
```python
miles = 15
rate = 0.65
reimbursement = miles * rate # 9.75
print(f"{reimbursement:.2f}")
```
When run, it prints 9.75, as expected.
The reimbursement is $9.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "9.75", "printed": "9.75", "notation": null} |
nlprog_det-setting-0049148 | <|start|><|system|>
Tools you may use:
[{"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
A water bill is $20 plus $4.75 per thousan... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}]"
... | nlprog_det | setting | original | null | deterministic | [] | [] | 236 | {"gold": "39.00", "printed": "39.00", "notation": null} |
nlprog_det-setting-0049149 | Arjun was born on October 23, 1957. How old is Arjun on January 4, 2022?
The program:
```python
from datetime import date
born = date(1957, 10, 23) # datetime.date(1957, 10, 23)
on = date(2022, 1, 4) # datetime.date(2022, 1, 4)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 64
print(age... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "64", "printed": "64", "notation": null} |
nlprog_det-setting-0049150 | An invoice lists 5 notebooks at $5 each, plus 8% sales tax. What is the invoice total?
```python
quantity = 5
unit_price = 5
subtotal = quantity * unit_price # 25
total = subtotal * (1 + 8 / 100) # 27.0
print(f"{total:.2f}")
```
That prints 27.00.
The invoice total is $27.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "27.00", "printed": "27.00", "notation": null} |
nlprog_det-setting-0049151 | A pack of 6 pens sells for $246. What does each cost?
Translated to Python:
```python
total = 246
count = 6
per_item = total // count # 41
print(per_item)
```
# out: 41
The unit price is $41. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0049152 | From 2015 to 2033, how many years is that?
Program:
start_year = 2015
end_year = 2033
print(end_year - start_year)
The program outputs: 18
That is 18 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 56 | {"gold": "18", "printed": "18", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.