mi.replace() : count parameter stops iteration too early
mi.replace() : count parameter stops iteration too early: a task in repo2rlenv-swe-smith (Harbor dataset). more itertools.replace() accepts a count keyword argument that limits the number of replacements made. After count replacements have been performed, the remaining elements of the iterable…
The task
`more_itertools.replace()` accepts a `count` keyword argument that limits the number of replacements made. After `count` replacements have been performed, the remaining elements of the iterable should be yielded unchanged. Instead, the function appears to stop yielding elements entirely once the replacement limit is…
Part of FineEnvs/repo2rlenv-swe-smith.