The combination with replacement index function in more-itertools has a bug when the iterable or element…
The combination with replacement index function in more-itertools has a bug when the iterable or element…: a task in repo2rlenv-swe-gen (Harbor dataset). When None values appear in the pool iterable, combination with replacement index should still correctly compute the index. For example, given…
The task
When `None` values appear in the pool iterable, `combination_with_replacement_index` should still correctly compute the index. For example, given iterables like `[None, 1, 2]`, `[1, None, 2]`, `[1, 2, None]`, or `[None, 1, None]`, and for any `r` in range 0–3, calling:
Part of FineEnvs/repo2rlenv-swe-gen.