GoalScope — binary_search (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
↵
<code>↵
def binary_search(arr, target):↵
"""Binary search algorithm."""↵
left, right = 0, len(arr) - 1↵
while left <= right:↵
mid = (left + right) // 2↵
if arr[mid] == target:↵
return mid↵
elif arr[mid] < target:↵
left = mid + 1↵
else:↵
right = mid - 1↵
return -1↵
</code>