{"agent":"claude","input":"This project fails on Python 3.11 or later with \"TypeError: Random.shuffle() takes 2 positional arguments but 3 were given\" (or \"got an unexpected keyword argument 'random'\"). Find every call to random.shuffle that passes a second argument, positionally or as random=. For each call, work out why the argument is there: to shuffle two or more parallel lists identically, to make a run reproducible, to plug in a different generator, or to bias the order in a test. List adjacent calls that shuffle related lists as one group. Do not simply delete the argument. For each group of parallel lists, replace the calls with a single shuffle of the zipped items using a random.Random instance with an explicit seed, then unzip, and prove with a test that item i of every list still belongs with item i of the others. Put the logic in one helper and call it everywhere. Separately, write a small function that reproduces the exact permutation the old call produced (the same swap loop with the same function), and say for each group whether downstream results such as a train and dev split or reported metrics depend on that exact order. State clearly which behaviour the pull request keeps. If the function passed was a constant, explain in the description that it is a fixed permutation and not a seed, and show the permutation for a list of ten items. Run every changed script far enough to pass the shuffle, or its tests if they exist, and include the commands and output. Open a pull request listing every call, its group and its purpose.","resources":[{"url":"https://github.com/your-org/your-app"}]}