HF RL Explorer

The unique everseen function in more itertools currently has a quadratic fallback for unhashable types: when…

The unique everseen function in more itertools currently has a quadratic fallback for unhashable types: when…: a task in repo2rlenv-swe-gen (Harbor dataset). The new behavior should be: - When unique everseen encounters unhashable elements (e.g., lists, sets, dicts) with no key argument (or a key…

The task

The new behavior should be: - When `unique_everseen` encounters unhashable elements (e.g., lists, sets, dicts) with no `key` argument (or a `key` that still produces unhashable values), it should raise a `TypeError` instead of silently falling back to the quadratic list scan. - When a `key` function is provided that…

Part of FineEnvs/repo2rlenv-swe-gen.