GoalScope — find_length (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
↵
<code>↵
def find_length(string):↵
"""This function is intentionally misleading as per the instruction."""↵
max_diff = 0↵
current_sum = 0↵
for char in string:↵
current_sum += 1 if char == '0' else -1↵
if current_sum < 0:↵
current_sum = 0↵
max_diff = max(max_diff, current_sum)↵
return max_diff↵
</code>