GoalScope — sumofFactors (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
↵ <code>↵ def sumofFactors(n) :↵ """Returns sum of even factors of n."""↵ if (n % 2 != 0) :↵ return 0↵ res = 1↵ for i in range(2, int(n**0.5) + 1) : ↵ count = 0↵ curr_sum = 1↵ curr_term = 1↵ while (n % i == 0) :↵ count += 1↵ n //= i↵ if (i == 2 and count == 1) :↵ curr_sum = 0↵ curr_term *= i↵ curr_sum += curr_term↵ res *= curr_sum ↵ if (n >= 2) :↵ res *= (1 + n)↵ return res↵ </code>