HF RL Explorer

partition all silently produces wrong output when a sequence has an incorrect len

partition all silently produces wrong output when a sequence has an incorrect len: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). partition all uses a sequence's len to determine where the final (possibly shorter) partition ends. If a sequence's len returns an incorrect value, partition…

The task

`partition_all` uses a sequence's `__len__` to determine where the final (possibly shorter) partition ends. If a sequence's `__len__` returns an incorrect value, `partition_all` currently silently produces bad/wrong output instead of raising an error.

Part of FineEnvs/repo2rlenv-r2e-gym.