File size: 34,574 Bytes
570ac35 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 | [
{
"name": "inspect_evals/class_eval - Sample ClassEval_0",
"description": "Task from inspect_evals/class_eval dataset, sample ClassEval_0",
"prompt": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n ### Instruction:\n Please complete the class AccessGatewayFilter in the following code.\nimport logging\nimport datetime\n\nclass AccessGatewayFilter:\n \"\"\"\n This class is a filter used for accessing gateway filtering, primarily for authentication and access log recording.\n \"\"\"\n\n def __init__(self):\n pass\n\n def filter(self, request):\n \"\"\"\n Filter the incoming request based on certain rules and conditions.\n :param request: dict, the incoming request details\n :return: bool, True if the request is allowed, False otherwise\n >>> filter = AccessGatewayFilter()\n >>> filter.filter({'path': '/login', 'method': 'POST'})\n True\n\n \"\"\"\n\n\n def is_start_with(self, request_uri):\n \"\"\"\n Check if the request URI starts with certain prefixes.\n Currently, the prefixes being checked are \"/api\" and \"/login\".\n :param request_uri: str, the URI of the request\n :return: bool, True if the URI starts with certain prefixes, False otherwise\n >>> filter = AccessGatewayFilter()\n >>> filter.is_start_with('/api/data')\n True\n\n \"\"\"\n\n\n def get_jwt_user(self, request):\n \"\"\"\n Get the user information from the JWT token in the request.\n :param request: dict, the incoming request details\n :return: dict or None, the user information if the token is valid, None otherwise\n >>> filter = AccessGatewayFilter()\n >>> filter.get_jwt_user({'headers': {'Authorization': {'user': {'name': 'user1'}, 'jwt': 'user1'+str(datetime.date.today())}}})\n {'user': {'name': 'user1'}\n\n \"\"\"\n\n def set_current_user_info_and_log(self, user):\n \"\"\"\n Set the current user information and log the access.\n :param user: dict, the user information\n :return: None\n >>> filter = AccessGatewayFilter()\n >>> user = {'name': 'user1', 'address': '127.0.0.1'}\n >>> filter.set_current_user_info_and_log(user)\n\n \"\"\"\n\n ### Response:\n ",
"mcp_config": {
"inspect": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--init",
"-v",
"/var/run/docker.sock:/var/run/docker.sock",
"-v",
"/home/genteki/.cache/inspect_evals:/root/.cache/inspect_evals",
"hud-inspect:latest"
]
}
},
"setup_tool": {
"name": "load_task",
"arguments": {
"task_name": "inspect_evals/class_eval",
"sample_id": "ClassEval_0",
"model": "claude-sonnet-4-20250514"
}
},
"evaluate_tool": {
"name": "score_task",
"arguments": {}
},
"agent_config": {
"agent_class": "server.agents.InspectAgent",
"disallowed_tools": [
"_store_agent_message",
"load_task",
"score_task"
],
"allowed_tools": [],
"initial_screenshot": false
},
"system_prompt": "You are an expert Python programmer. You will be given a task, and the tests that your code must pass."
},
{
"name": "inspect_evals/class_eval - Sample ClassEval_1",
"description": "Task from inspect_evals/class_eval dataset, sample ClassEval_1",
"prompt": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n ### Instruction:\n Please complete the class AreaCalculator in the following code.\nimport math\nclass AreaCalculator:\n \"\"\"\n This is a class for calculating the area of different shapes, including circle, sphere, cylinder, sector and annulus.\n \"\"\"\n\n\n def __init__(self, radius):\n \"\"\"\n Initialize the radius for shapes.\n :param radius: float\n \"\"\"\n self.radius = radius\n\n def calculate_circle_area(self):\n \"\"\"\n calculate the area of circle based on self.radius\n :return: area of circle, float\n >>> areaCalculator = AreaCalculator(2)\n >>> areaCalculator.calculate_circle_area()\n 12.566370614359172\n \"\"\"\n\n def calculate_sphere_area(self):\n \"\"\"\n calculate the area of sphere based on self.radius\n :return: area of sphere, float\n >>> areaCalculator = AreaCalculator(2)\n >>> areaCalculator.calculate_sphere_area()\n 50.26548245743669\n \"\"\"\n\n def calculate_cylinder_area(self, height):\n \"\"\"\n calculate the area of cylinder based on self.radius and height\n :param height: height of cylinder, float\n :return: area of cylinder, float\n >>> areaCalculator = AreaCalculator(2)\n >>> areaCalculator.calculate_cylinder_area(3)\n 62.83185307179586\n \"\"\"\n\n def calculate_sector_area(self, angle):\n \"\"\"\n calculate the area of sector based on self.radius and angle\n :param angle: angle of sector, float\n :return: area of sector, float\n >>> areaCalculator = AreaCalculator(2)\n >>> areaCalculator.calculate_sector_area(math.pi)\n 6.283185307179586\n \"\"\"\n\n def calculate_annulus_area(self, inner_radius, outer_radius):\n \"\"\"\n calculate the area of annulus based on inner_radius and out_radius\n :param inner_radius: inner radius of sector, float\n :param outer_radius: outer radius of sector, float\n :return: area of annulus, float\n >>> areaCalculator.calculate_annulus_area(2, 3)\n 15.707963267948966\n \"\"\"\n\n ### Response:\n ",
"mcp_config": {
"inspect": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--init",
"-v",
"/var/run/docker.sock:/var/run/docker.sock",
"-v",
"/home/genteki/.cache/inspect_evals:/root/.cache/inspect_evals",
"hud-inspect:latest"
]
}
},
"setup_tool": {
"name": "load_task",
"arguments": {
"task_name": "inspect_evals/class_eval",
"sample_id": "ClassEval_1",
"model": "claude-sonnet-4-20250514"
}
},
"evaluate_tool": {
"name": "score_task",
"arguments": {}
},
"agent_config": {
"agent_class": "server.agents.InspectAgent",
"disallowed_tools": [
"_store_agent_message",
"load_task",
"score_task"
],
"allowed_tools": [],
"initial_screenshot": false
},
"system_prompt": "You are an expert Python programmer. You will be given a task, and the tests that your code must pass."
},
{
"name": "inspect_evals/class_eval - Sample ClassEval_2",
"description": "Task from inspect_evals/class_eval dataset, sample ClassEval_2",
"prompt": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n ### Instruction:\n Please complete the class ArgumentParser in the following code.\nclass ArgumentParser:\n \"\"\"\n This is a class for parsing command line arguments to a dictionary.\n \"\"\"\n\n def __init__(self):\n \"\"\"\n Initialize the fields.\n self.arguments is a dict that stores the args in a command line\n self.requried is a set that stores the required arguments\n self.types is a dict that stores type of every arguments.\n >>> parser.arguments\n {'key1': 'value1', 'option1': True}\n >>> parser.required\n {'arg1'}\n >>> parser.types\n {'arg1': 'type1'}\n \"\"\"\n self.arguments = {}\n self.required = set()\n self.types = {}\n\n def parse_arguments(self, command_string):\n \"\"\"\n Parses the given command line argument string and invoke _convert_type to stores the parsed result in specific type in the arguments dictionary.\n Checks for missing required arguments, if any, and returns False with the missing argument names, otherwise returns True.\n :param command_string: str, command line argument string, formatted like \"python script.py --arg1=value1 -arg2 value2 --option1 -option2\"\n :return tuple: (True, None) if parsing is successful, (False, missing_args) if parsing fails,\n where missing_args is a set of the missing argument names which are str.\n >>> parser.parse_arguments(\"python script.py --arg1=value1 -arg2 value2 --option1 -option2\")\n (True, None)\n >>> parser.arguments\n {'arg1': 'value1', 'arg2': 'value2', 'option1': True, 'option2': True}\n \"\"\"\n\n def get_argument(self, key):\n \"\"\"\n Retrieves the value of the specified argument from the arguments dictionary and returns it.\n :param key: str, argument name\n :return: The value of the argument, or None if the argument does not exist.\n >>> parser.arguments\n {'arg1': 'value1', 'arg2': 'value2', 'option1': True, 'option2': True}\n >>> parser.get_argument('arg2')\n 'value2'\n \"\"\"\n\n def add_argument(self, arg, required=False, arg_type=str):\n \"\"\"\n Adds an argument to self.types and self.required.\n Check if it is a required argument and store the argument type.\n If the argument is set as required, it wull be added to the required set.\n The argument type and name are stored in the types dictionary as key-value pairs.\n :param arg: str, argument name\n :param required: bool, whether the argument is required, default is False\n :param arg_type:str, Argument type, default is str\n >>> parser.add_argument('arg1', True, 'int')\n >>> parser.required\n {'arg1'}\n >>> parser.types\n {'arg1': 'int'}\n \"\"\"\n\n def _convert_type(self, arg, value):\n \"\"\"\n Try to convert the type of input value by searching in self.types.\n :param value: str, the input value in command line\n :return: return corresponding value in self.types if convert successfully, or the input value oherwise\n >>> parser.types\n {'arg1': int}\n >>> parser._convert_type('arg1', '21')\n 21\n \"\"\"\n\n ### Response:\n ",
"mcp_config": {
"inspect": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--init",
"-v",
"/var/run/docker.sock:/var/run/docker.sock",
"-v",
"/home/genteki/.cache/inspect_evals:/root/.cache/inspect_evals",
"hud-inspect:latest"
]
}
},
"setup_tool": {
"name": "load_task",
"arguments": {
"task_name": "inspect_evals/class_eval",
"sample_id": "ClassEval_2",
"model": "claude-sonnet-4-20250514"
}
},
"evaluate_tool": {
"name": "score_task",
"arguments": {}
},
"agent_config": {
"agent_class": "server.agents.InspectAgent",
"disallowed_tools": [
"_store_agent_message",
"load_task",
"score_task"
],
"allowed_tools": [],
"initial_screenshot": false
},
"system_prompt": "You are an expert Python programmer. You will be given a task, and the tests that your code must pass."
},
{
"name": "inspect_evals/class_eval - Sample ClassEval_3",
"description": "Task from inspect_evals/class_eval dataset, sample ClassEval_3",
"prompt": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n ### Instruction:\n Please complete the class ArrangementCalculator in the following code.\nimport itertools\n\nclass ArrangementCalculator:\n \"\"\"\n The Arrangement class provides permutation calculations and selection operations for a given set of data elements.\n \"\"\"\n\n def __init__(self, datas):\n \"\"\"\n Initializes the ArrangementCalculator object with a list of datas.\n :param datas: List, the data elements to be used for arrangements.\n \"\"\"\n self.datas = datas\n\n @staticmethod\n def count(n, m=None):\n \"\"\"\n Counts the number of arrangements by choosing m items from n items (permutations).\n If m is not provided or n equals m, returns factorial(n).\n :param n: int, the total number of items.\n :param m: int, the number of items to be chosen (default=None).\n :return: int, the count of arrangements.\n >>> ArrangementCalculator.count(5, 3)\n 60\n\n \"\"\"\n\n @staticmethod\n def count_all(n):\n \"\"\"\n Counts the total number of all possible arrangements by choosing at least 1 item and at most n items from n items.\n :param n: int, the total number of items.\n :return: int, the count of all arrangements.\n >>> ArrangementCalculator.count_all(4)\n 64\n\n \"\"\"\n\n\n def select(self, m=None):\n \"\"\"\n Generates a list of arrangements by selecting m items from the internal datas.\n If m is not provided, selects all items.\n :param m: int, the number of items to be chosen (default=None).\n :return: List, a list of arrangements.\n >>> ac = ArrangementCalculator([1, 2, 3, 4])\n >>> ac.select(2)\n [[1, 2], [1, 3], [1, 4], [2, 1], [2, 3], [2, 4], [3, 1], [3, 2], [3, 4], [4, 1], [4, 2], [4, 3]]\n\n \"\"\"\n\n\n def select_all(self):\n \"\"\"\n Generates a list of all arrangements by selecting at least 1 item and at most the number of internal datas.\n :return: List, a list of all arrangements.\n >>> ac = ArrangementCalculator([1, 2, 3])\n >>> ac.select_all()\n [[1], [2], [3], [1, 2], [1, 3], [2, 1], [2, 3], [3, 1], [3, 2], [1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2], [3, 2, 1]]\n\n \"\"\"\n\n\n @staticmethod\n def factorial(n):\n \"\"\"\n Calculates the factorial of a given number.\n :param n: int, the number to calculate the factorial.\n :return: int, the factorial of the given number.\n >>> ArrangementCalculator.factorial(4)\n 24\n\n \"\"\"\n\n ### Response:\n ",
"mcp_config": {
"inspect": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--init",
"-v",
"/var/run/docker.sock:/var/run/docker.sock",
"-v",
"/home/genteki/.cache/inspect_evals:/root/.cache/inspect_evals",
"hud-inspect:latest"
]
}
},
"setup_tool": {
"name": "load_task",
"arguments": {
"task_name": "inspect_evals/class_eval",
"sample_id": "ClassEval_3",
"model": "claude-sonnet-4-20250514"
}
},
"evaluate_tool": {
"name": "score_task",
"arguments": {}
},
"agent_config": {
"agent_class": "server.agents.InspectAgent",
"disallowed_tools": [
"_store_agent_message",
"load_task",
"score_task"
],
"allowed_tools": [],
"initial_screenshot": false
},
"system_prompt": "You are an expert Python programmer. You will be given a task, and the tests that your code must pass."
},
{
"name": "inspect_evals/class_eval - Sample ClassEval_4",
"description": "Task from inspect_evals/class_eval dataset, sample ClassEval_4",
"prompt": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n ### Instruction:\n Please complete the class AssessmentSystem in the following code.\nclass AssessmentSystem:\n \"\"\"\n This is a class as an student assessment system, which supports add student, add course score, calculate GPA, and other functions for students and courses.\n \"\"\"\n\n def __init__(self):\n \"\"\"\n Initialize the students dict in assessment system.\n \"\"\"\n self.students = {}\n\n def add_student(self, name, grade, major):\n \"\"\"\n Add a new student into self.students dict\n :param name: str, student name\n :param grade: int, student grade\n :param major: str, student major\n >>> system.add_student('student 1', 3, 'SE')\n >>> system.students\n {'student 1': {'name': 'student 1', 'grade': 3, 'major': 'SE', 'courses': {}}}\n \"\"\"\n\n def add_course_score(self, name, course, score):\n \"\"\"\n Add score of specific course for student in self.students\n :param name: str, student name\n :param cource: str, cource name\n :param score: int, cource score\n >>> system.add_student('student 1', 3, 'SE')\n >>> system.add_course_score('student 1', 'math', 94)\n >>> system.students\n {'student 1': {'name': 'student 1', 'grade': 3, 'major': 'SE', 'courses': {'math': 94}}}\n \"\"\"\n\n def get_gpa(self, name):\n \"\"\"\n Get average grade of one student.\n :param name: str, student name\n :return: if name is in students and this students have courses grade, return average grade(float)\n or None otherwise\n >>> system.add_student('student 1', 3, 'SE')\n >>> system.add_course_score('student 1', 'math', 94)\n >>> system.add_course_score('student 1', 'Computer Network', 92)\n >>> system.get_gpa('student 1')\n 93.0\n\n \"\"\"\n\n def get_all_students_with_fail_course(self):\n \"\"\"\n Get all students who have any score blow 60\n :return: list of str ,student name\n >>> system.add_course_score('student 1', 'Society', 59)\n >>> system.get_all_students_with_fail_course()\n ['student 1']\n \"\"\"\n\n def get_course_average(self, course):\n \"\"\"\n Get the average score of a specific course.\n :param course: str, course name\n :return: float, average scores of this course if anyone have score of this course, or None if nobody have records.\n \"\"\"\n\n def get_top_student(self):\n \"\"\"\n Calculate every student's gpa with get_gpa method, and find the student with highest gpa\n :return: str, name of student whose gpa is highest\n >>> system.add_student('student 1', 3, 'SE')\n >>> system.add_student('student 2', 2, 'SE')\n >>> system.add_course_score('student 1', 'Computer Network', 92)\n >>> system.add_course_score('student 2', 'Computer Network', 97)\n >>> system.get_top_student()\n 'student 2'\n \"\"\"\n\n ### Response:\n ",
"mcp_config": {
"inspect": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--init",
"-v",
"/var/run/docker.sock:/var/run/docker.sock",
"-v",
"/home/genteki/.cache/inspect_evals:/root/.cache/inspect_evals",
"hud-inspect:latest"
]
}
},
"setup_tool": {
"name": "load_task",
"arguments": {
"task_name": "inspect_evals/class_eval",
"sample_id": "ClassEval_4",
"model": "claude-sonnet-4-20250514"
}
},
"evaluate_tool": {
"name": "score_task",
"arguments": {}
},
"agent_config": {
"agent_class": "server.agents.InspectAgent",
"disallowed_tools": [
"_store_agent_message",
"load_task",
"score_task"
],
"allowed_tools": [],
"initial_screenshot": false
},
"system_prompt": "You are an expert Python programmer. You will be given a task, and the tests that your code must pass."
},
{
"name": "inspect_evals/class_eval - Sample ClassEval_5",
"description": "Task from inspect_evals/class_eval dataset, sample ClassEval_5",
"prompt": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n ### Instruction:\n Please complete the class AutomaticGuitarSimulator in the following code.\n'''\n# This class is an automatic guitar simulator that can interpret and play based on the input guitar sheet music.\n\nclass AutomaticGuitarSimulator:\n def __init__(self, text) -> None:\n \"\"\"\n Initialize the score to be played\n :param text:str, score to be played\n \"\"\"\n self.play_text = text\n\n def interpret(self, display=False):\n \"\"\"\n Interpret the music score to be played\n :param display:Bool, representing whether to print the interpreted score\n :return: list of dict, The dict includes two fields, Chord and Tune, which are letters and numbers, respectively. If the input is empty or contains only whitespace, an empty list is returned.\n >>> context = AutomaticGuitarSimulator(\"C53231323 Em43231323 F43231323 G63231323\")\n >>> play_list = context.interpret(display = False)\n [{'Chord': 'C', 'Tune': '53231323'}, {'Chord': 'Em', 'Tune': '43231323'}, {'Chord': 'F', 'Tune': '43231323'}, {'Chord': 'G', 'Tune': '63231323'}]\n\n \"\"\"\n\n\n def display(self, key, value):\n \"\"\"\n Print out chord and play tune with following format: Normal Guitar Playing -- Chord: %s, Play Tune: %s\n :param key:str, chord\n :param value:str, play tune\n :return: str\n >>> context = AutomaticGuitarSimulator(\"C53231323 Em43231323 F43231323 G63231323\")\n >>> context.display(\"C\", \"53231323\")\n Normal Guitar Playing -- Chord: C, Play Tune: 53231323\n\n \"\"\"\n'''\n\n ### Response:\n ",
"mcp_config": {
"inspect": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--init",
"-v",
"/var/run/docker.sock:/var/run/docker.sock",
"-v",
"/home/genteki/.cache/inspect_evals:/root/.cache/inspect_evals",
"hud-inspect:latest"
]
}
},
"setup_tool": {
"name": "load_task",
"arguments": {
"task_name": "inspect_evals/class_eval",
"sample_id": "ClassEval_5",
"model": "claude-sonnet-4-20250514"
}
},
"evaluate_tool": {
"name": "score_task",
"arguments": {}
},
"agent_config": {
"agent_class": "server.agents.InspectAgent",
"disallowed_tools": [
"_store_agent_message",
"load_task",
"score_task"
],
"allowed_tools": [],
"initial_screenshot": false
},
"system_prompt": "You are an expert Python programmer. You will be given a task, and the tests that your code must pass."
},
{
"name": "inspect_evals/class_eval - Sample ClassEval_6",
"description": "Task from inspect_evals/class_eval dataset, sample ClassEval_6",
"prompt": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n ### Instruction:\n Please complete the class AvgPartition in the following code.\nclass AvgPartition:\n \"\"\"\n This is a class that partitions the given list into different blocks by specifying the number of partitions, with each block having a uniformly distributed length.\n \"\"\"\n\n def __init__(self, lst, limit):\n \"\"\"\n Initialize the class with the given list and the number of partitions, and check if the number of partitions is greater than 0.\n \"\"\"\n self.lst = lst\n self.limit = limit\n\n def setNum(self):\n \"\"\"\n Calculate the size of each block and the remainder of the division.\n :return: the size of each block and the remainder of the division, tuple.\n >>> a = AvgPartition([1, 2, 3, 4], 2)\n >>> a.setNum()\n (2, 0)\n\n \"\"\"\n\n\n def get(self, index):\n \"\"\"\n calculate the size of each block and the remainder of the division, and calculate the corresponding start and end positions based on the index of the partition.\n :param index: the index of the partition,int.\n :return: the corresponding block, list.\n >>> a = AvgPartition([1, 2, 3, 4], 2)\n >>> a.get(0)\n [1, 2]\n\n \"\"\"\n\n ### Response:\n ",
"mcp_config": {
"inspect": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--init",
"-v",
"/var/run/docker.sock:/var/run/docker.sock",
"-v",
"/home/genteki/.cache/inspect_evals:/root/.cache/inspect_evals",
"hud-inspect:latest"
]
}
},
"setup_tool": {
"name": "load_task",
"arguments": {
"task_name": "inspect_evals/class_eval",
"sample_id": "ClassEval_6",
"model": "claude-sonnet-4-20250514"
}
},
"evaluate_tool": {
"name": "score_task",
"arguments": {}
},
"agent_config": {
"agent_class": "server.agents.InspectAgent",
"disallowed_tools": [
"_store_agent_message",
"load_task",
"score_task"
],
"allowed_tools": [],
"initial_screenshot": false
},
"system_prompt": "You are an expert Python programmer. You will be given a task, and the tests that your code must pass."
},
{
"name": "inspect_evals/class_eval - Sample ClassEval_7",
"description": "Task from inspect_evals/class_eval dataset, sample ClassEval_7",
"prompt": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n ### Instruction:\n Please complete the class BalancedBrackets in the following code.\nclass BalancedBrackets:\n \"\"\"\n This is a class that checks for bracket matching\n \"\"\"\n\n def __init__(self, expr):\n \"\"\"\n Initializes the class with an expression.\n :param expr: The expression to check for balanced brackets,str.\n \"\"\"\n self.stack = []\n self.left_brackets = [\"(\", \"{\", \"[\"]\n self.right_brackets = [\")\", \"}\", \"]\"]\n self.expr = expr\n\n def clear_expr(self):\n \"\"\"\n Clears the expression of all characters that are not brackets.\n >>> b = BalancedBrackets(\"a(b)c\")\n >>> b.clear_expr()\n >>> b.expr\n '()'\n\n \"\"\"\n\n def check_balanced_brackets(self):\n \"\"\"\n Checks if the expression has balanced brackets.\n :return: True if the expression has balanced brackets, False otherwise.\n >>> b = BalancedBrackets(\"a(b)c\")\n >>> b.check_balanced_brackets()\n True\n\n \"\"\"\n\n ### Response:\n ",
"mcp_config": {
"inspect": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--init",
"-v",
"/var/run/docker.sock:/var/run/docker.sock",
"-v",
"/home/genteki/.cache/inspect_evals:/root/.cache/inspect_evals",
"hud-inspect:latest"
]
}
},
"setup_tool": {
"name": "load_task",
"arguments": {
"task_name": "inspect_evals/class_eval",
"sample_id": "ClassEval_7",
"model": "claude-sonnet-4-20250514"
}
},
"evaluate_tool": {
"name": "score_task",
"arguments": {}
},
"agent_config": {
"agent_class": "server.agents.InspectAgent",
"disallowed_tools": [
"_store_agent_message",
"load_task",
"score_task"
],
"allowed_tools": [],
"initial_screenshot": false
},
"system_prompt": "You are an expert Python programmer. You will be given a task, and the tests that your code must pass."
},
{
"name": "inspect_evals/class_eval - Sample ClassEval_8",
"description": "Task from inspect_evals/class_eval dataset, sample ClassEval_8",
"prompt": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n ### Instruction:\n Please complete the class BankAccount in the following code.\nclass BankAccount:\n \"\"\"\n This is a class as a bank account system, which supports deposit money, withdraw money, view balance, and transfer money.\n \"\"\"\n\n def __init__(self, balance=0):\n \"\"\"\n Initializes a bank account object with an attribute balance, default value is 0.\n \"\"\"\n self.balance = balance\n\n def deposit(self, amount):\n \"\"\"\n Deposits a certain amount into the account, increasing the account balance, return the current account balance.\n If amount is negative, raise a ValueError(\"Invalid amount\").\n :param amount: int\n \"\"\"\n\n def withdraw(self, amount):\n \"\"\"\n Withdraws a certain amount from the account, decreasing the account balance, return the current account balance.\n If amount is negative, raise a ValueError(\"Invalid amount\").\n If the withdrawal amount is greater than the account balance, raise a ValueError(\"Insufficient balance.\").\n :param amount: int\n \"\"\"\n\n def view_balance(self):\n \"\"\"\n Return the account balance.\n \"\"\"\n\n def transfer(self, other_account, amount):\n \"\"\"\n Transfers a certain amount from the current account to another account.\n :param other_account: BankAccount\n :param amount: int\n >>> account1 = BankAccount()\n >>> account2 = BankAccount()\n >>> account1.deposit(1000)\n >>> account1.transfer(account2, 300)\n account1.balance = 700 account2.balance = 300\n \"\"\"\n\n ### Response:\n ",
"mcp_config": {
"inspect": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--init",
"-v",
"/var/run/docker.sock:/var/run/docker.sock",
"-v",
"/home/genteki/.cache/inspect_evals:/root/.cache/inspect_evals",
"hud-inspect:latest"
]
}
},
"setup_tool": {
"name": "load_task",
"arguments": {
"task_name": "inspect_evals/class_eval",
"sample_id": "ClassEval_8",
"model": "claude-sonnet-4-20250514"
}
},
"evaluate_tool": {
"name": "score_task",
"arguments": {}
},
"agent_config": {
"agent_class": "server.agents.InspectAgent",
"disallowed_tools": [
"_store_agent_message",
"load_task",
"score_task"
],
"allowed_tools": [],
"initial_screenshot": false
},
"system_prompt": "You are an expert Python programmer. You will be given a task, and the tests that your code must pass."
},
{
"name": "inspect_evals/class_eval - Sample ClassEval_9",
"description": "Task from inspect_evals/class_eval dataset, sample ClassEval_9",
"prompt": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n ### Instruction:\n Please complete the class BigNumCalculator in the following code.\nclass BigNumCalculator:\n \"\"\"\n This is a class that implements big number calculations, including adding, subtracting and multiplying.\n \"\"\"\n\n @staticmethod\n def add(num1, num2):\n \"\"\"\n Adds two big numbers.\n :param num1: The first number to add,str.\n :param num2: The second number to add,str.\n :return: The sum of the two numbers,str.\n >>> bigNum = BigNumCalculator()\n >>> bigNum.add(\"12345678901234567890\", \"98765432109876543210\")\n '111111111011111111100'\n\n \"\"\"\n\n @staticmethod\n def subtract(num1, num2):\n \"\"\"\n Subtracts two big numbers.\n :param num1: The first number to subtract,str.\n :param num2: The second number to subtract,str.\n :return: The difference of the two numbers,str.\n >>> bigNum = BigNumCalculator()\n >>> bigNum.subtract(\"12345678901234567890\", \"98765432109876543210\")\n '-86419753208641975320'\n\n \"\"\"\n\n @staticmethod\n def multiply(num1, num2):\n \"\"\"\n Multiplies two big numbers.\n :param num1: The first number to multiply,str.\n :param num2: The second number to multiply,str.\n :return: The product of the two numbers,str.\n >>> bigNum = BigNumCalculator()\n >>> bigNum.multiply(\"12345678901234567890\", \"98765432109876543210\")\n '1219326311370217952237463801111263526900'\n\n \"\"\"\n\n ### Response:\n ",
"mcp_config": {
"inspect": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--init",
"-v",
"/var/run/docker.sock:/var/run/docker.sock",
"-v",
"/home/genteki/.cache/inspect_evals:/root/.cache/inspect_evals",
"hud-inspect:latest"
]
}
},
"setup_tool": {
"name": "load_task",
"arguments": {
"task_name": "inspect_evals/class_eval",
"sample_id": "ClassEval_9",
"model": "claude-sonnet-4-20250514"
}
},
"evaluate_tool": {
"name": "score_task",
"arguments": {}
},
"agent_config": {
"agent_class": "server.agents.InspectAgent",
"disallowed_tools": [
"_store_agent_message",
"load_task",
"score_task"
],
"allowed_tools": [],
"initial_screenshot": false
},
"system_prompt": "You are an expert Python programmer. You will be given a task, and the tests that your code must pass."
}
] |