cactus183/patchbench-dev
0
1{2 "task_id": "medium_02",3 "difficulty": "medium",4 "description": "Fix the vector normalize function so it divides by the Euclidean magnitude instead of the sum of components. This bug causes cosine_similarity to return incorrect results.",5 "max_steps": 8,6 "baseline_passing_tests": ["test_magnitude_unit_vector", "test_magnitude_3_4_5", "test_cosine_orthogonal"],7 "baseline_failing_tests": ["test_normalize_unit_vector", "test_cosine_same_direction", "test_cosine_opposite"],8 "bug_category": "numerical",9 "skills_tested": ["linear_algebra", "helper_function_tracing", "root_cause_analysis"]10}11 