It’s eerie how similar these situations are. In both situations, it’s important to actually understand what constitutes sexual harassment. Asking out a coworker once? Not harassment. Repeatedly asking her out after she’s said no? Definitely. In your case, a couple of sentences isn’t plagiarism. A few paragraphs? Different story.