HF RL Explorer

The running min and running max functions in more-itertools are not stable, meaning they do not preserve the…

The running min and running max functions in more-itertools are not stable, meaning they do not preserve the…: a task in repo2rlenv-swe-gen (Harbor dataset). Python's built-in min(x, y) and max(x, y) are stable: when x == y , they return x (the first/oldest value). However, the current…

The task

Python's built-in `min(x, y)` and `max(x, y)` are stable: when `x == y`, they return `x` (the first/oldest value). However, the current implementations of `running_min` and `running_max` use comparisons like `not x < y` and `not x > y` in their internal logic, which causes them to replace existing equal values with…

Part of FineEnvs/repo2rlenv-swe-gen.