Collapse self-cancelling ^ / - with duplicate operands to 0

Proprietary

When both operands of ^ or - are the same expression, reduce to 0 (the self-cancelling identity). Only fires where the operand's type resolves to int and it has no side effects, since floats, sets and bools give other results. An operation holding comments is left alone.

org.openrewrite.python.cleanup.BinOpIdentity
mod run . --recipe=org.openrewrite.python.cleanup.BinOpIdentity

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.