HF RL Explorer

split before , split after , and split when yield an empty list when given an empty iterable and maxsplit=0

split before , split after , and split when yield an empty list when given an empty iterable and maxsplit=0: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). When calling split before , split after , or split when on an empty iterable with maxsplit=0 , the functions incorrectly yield a…

The task

When calling `split_before`, `split_after`, or `split_when` on an empty iterable with `maxsplit=0`, the functions incorrectly yield a single empty list instead of yielding nothing.

Part of FineEnvs/repo2rlenv-r2e-gym.