Code plagiarization is not a thing by all practical purposes (it's even almost impossible to go to court with that for very obvious reasons). And that's good. Because with that insane lockdown of "Intellectual Property" nothing would ever get done. So, think what you want.