GoalScope — parse_nested_parens (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
<code>↵ def parse_nested_parens(paren_string: str) -> List[int]:↵ """Parse a string of space-separated groups of nested parentheses into a list of their depths."""↵ def max_depth(s: str) -> int:↵ depth = max_depth = 0 for char in s:↵ if char == '(':↵ depth += 1 max_depth = max(max_depth, depth)↵ elif char == ')':↵ depth -= 1 return max_depth↵ ↵ return [max_depth(group) for group in paren_string.split()]↵ </code>