> … and instead instead come up with your own completely independent solution after the fact?
Yes, I’m not a plagiarist.
If you’re literally copying and pasting code snippets without attribution, you’re plagiarizing.
You’re also probably violating the OSS project’s license.
It’s no different than copying and pasting someone else’s sentence or paragraph into a written paper.