GoalScope — reverse_vowels (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
<code>↵ def reverse_vowels(str1):↵ """Reverse only the vowels of a given string."""↵ vowels = ""↵ for char in str1:↵ if char in "aeiouAEIOU":↵ vowels += char result_str = ""↵ for char in str1:↵ if char in "aeiouAEIOU":↵ result_str += vowels[-1]↵ vowels = vowels[:-1]↵ else:↵ result_str += char return result_str</code>