Skip to content

Commit 9865e34

Browse files
committed
Fix linting
1 parent d26ee51 commit 9865e34

File tree

1 file changed

+14
-14
lines changed
  • tests/src/capabilities_t2/math/math_mathematics_modeling_real_world

1 file changed

+14
-14
lines changed

tests/src/capabilities_t2/math/math_mathematics_modeling_real_world/capability.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@ class Capability:
22
@staticmethod
33
def repr_tasks() -> dict[str, dict]:
44
return {
5-
"1": {
6-
"problem": "A company wants to determine the optimal number of units to produce in order to maximize profit. The profit function is given by P(x) = -2x^2 + 40x - 150, where x is the number of units produced. How many units should the company produce to maximize profit?",
7-
"answer": "10"
8-
},
9-
"2": {
10-
"problem": "A farmer has 240 meters of fencing to create a rectangular pen. What dimensions will maximize the area of the pen?",
11-
"answer": "60 by 60"
12-
},
13-
"3": {
14-
"problem": "A car rental company charges a flat fee of $50 plus $20 per day. If a customer has a budget of $200, how many days can they rent a car?",
15-
"answer": "7"
16-
}
17-
}
5+
"1": {
6+
"problem": "A company wants to determine the optimal number of units to produce in order to maximize profit. The profit function is given by P(x) = -2x^2 + 40x - 150, where x is the number of units produced. How many units should the company produce to maximize profit?",
7+
"answer": "10",
8+
},
9+
"2": {
10+
"problem": "A farmer has 240 meters of fencing to create a rectangular pen. What dimensions will maximize the area of the pen?",
11+
"answer": "60 by 60",
12+
},
13+
"3": {
14+
"problem": "A car rental company charges a flat fee of $50 plus $20 per day. If a customer has a budget of $200, how many days can they rent a car?",
15+
"answer": "7",
16+
},
17+
}
1818

1919
@staticmethod
2020
def get_instructions(t: dict) -> str:
2121
return f"""Solve the following real-world modeling problem step by step. The last line of your response should be of the form "ANSWER: $ANSWER" (without quotes) where $ANSWER is the answer to the problem.\n\nProblem: {t["problem"]}\n\nRemember to put your answer on its own line at the end in the form "ANSWER:$ANSWER" (without quotes) where $ANSWER is the answer to the problem, and you do not need to use a \\boxed command."""
2222

2323
@staticmethod
2424
def score(t: dict, submission: str) -> float | None:
25-
return 1.0 if submission==t["answer"] else 0.0
25+
return 1.0 if submission == t["answer"] else 0.0

0 commit comments

Comments
 (0)