GoalScope — zero_count (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
↵
<code>↵
def zero_count(nums):↵
"""Find the ratio of zeroes to non-zeroes in an array."""↵
zero_count = nums.count(0)↵
non_zero_count = len(nums) - zero_count↵
return zero_count / non_zero_count if non_zero_count != 0 else float('inf')↵
</code>