GoalScope — has_close_elements (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
↵
<code>↵
def has_close_elements(numbers: List[float], threshold: float) -> bool:↵
"""Check if any two numbers in the list are closer to each other than the given threshold."""↵
numbers.sort()↵
for i in range(len(numbers) - 1):↵
if abs(numbers[i] - numbers[i + 1]) < threshold:↵
return True↵
return False↵
</code>