GoalScope — separate_paren_groups (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
↵
<code>↵
def separate_paren_groups(paren_string: str) -> List[str]:↵
"""Separate groups of nested parentheses."""↵
result = []↵
current_group = []↵
depth = 0↵
↵
for char in paren_string:↵
if char == '(':↵
depth += 1↵
if depth > 0:↵
current_group.append(char)↵
if char == ')':↵
depth -= 1↵
if depth == 0:↵
result.append(''.join(current_group))↵
current_group = []↵
↵
return result↵
</code>