GoalScope — itoa (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
↵
<code>↵
def itoa(n):↵
"""Converts an integer to a string."""↵
if n == 0:↵
return "0"↵
is_negative = n < 0↵
n = abs(n)↵
result = []↵
while n > 0:↵
result.append(chr(ord('0') + n % 10))↵
n //= 10↵
if is_negative:↵
result.append('-')↵
return ''.join(reversed(result))↵
</code>