chunked even raises ZeroDivisionError instead of producing correct chunks
chunked even raises ZeroDivisionError instead of producing correct chunks: a task in repo2rlenv-swe-smith (Harbor dataset). mi.chunked even(iterable, n) raises ZeroDivisionError: integer division or modulo by zero for all valid inputs. The error occurs at the divmod(length, num lists) call inside…
The task
`mi.chunked_even(iterable, n)` raises `ZeroDivisionError: integer division or modulo by zero` for all valid inputs. The error occurs at the `divmod(length, num_lists)` call inside `chunked_even` (around `more.py:4635`), indicating that `num_lists` is being computed as `0` regardless of the `n` argument supplied by…
Part of FineEnvs/repo2rlenv-swe-smith.