I agree with you. I cannot imagine a male judge doing what she did.
I have seen a male judge render opinions from the bench using two sock puppets to explain to the courtroom the ruling...there is nothing new under the sun.
Bad code is bad code.