GoalScope — first_non_repeating_character (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
↵
<code>↵
def first_non_repeating_character(str1):↵
"""Return the first non-repeating character in a given string."""↵
temp = {}↵
for char in str1:↵
temp[char] = temp.get(char, 0) + 1↵
for char in str1:↵
if temp[char] == 1:↵
return char↵
return ''↵
</code>