All MicroEvals
Review this Python function. Reply with a first line `VERDIC...
Create MicroEval

Review this Python function. Reply with a first line `VERDIC...

Prompt

Review this Python function. Reply with a first line `VERDICT: KEEP` or `VERDICT: REJECT`, then at most one blocker (the most serious defect) and at most two minor notes. Be concrete: name the line and a failing input. ```python import threading, time _lock = threading.Lock() _cache = {} def fetch_with_retry(key, loader, retries=3, backoff=0.5): """Return the cached value for key, loading it with loader() on a miss. Retries loader up to `retries` times.""" _lock.acquire() if key in _cache: _lock.release() return _cache[key] for attempt in range(1, retries): try: value = loader() _cache[key] = value _lock.release() return value except IOError: time.sleep(backoff * attempt) raise RuntimeError(f"could not load {key}") ```

Drag to resize
Drag to resize
Drag to resize
Drag to resize
Drag to resize