I'll try and keep calm when I explain this because, quite frankly in context, this is a ridiculous thing to say.
Consider, if you will, which of the following constitutes harassment or bullying.
a) Peppering your code with racist, homophobic, sexist, transphobic, or generally any other type of bigotry and posting it in a public place.
b) Correcting code which contains bigoted slurs, submitting a pull request and saying "Hey, I removed the stuff that makes people feel bad, would be super rad if you accept".
If you picked option b, I'm sorry, that's the wrong answer. But I'm a pretty nice guy, so I'll let you have another try!