Of interest perhaps.
My company does not allow ANY copying of ANY source code without legal review. This is why. One little coder that uses someone else’s source code, even just a few lines, can cause major headaches. INtellectual Property rights is nothing to fool around with. A company can find someone else owns the profits if they do.
As noted by another poster, there are a limited number of ways to code a solution in a given language. Experienced coders will often come up with the same or similar results. Variations in white space, layout, variable names and comments would be expected. The "side by side" example looks like a clear "cut and paste" kind of coding where source code to the necessary solution was available and the snippet was copied to save typing. It's a common practice, but most folks are not laboring under concerns that the end product will end up under scrutiny in a court room.
Sorry judge, it was only a little bit! Honest!......I only shot him once - with a 22!.......I only grabbed her hooters a little bit! Bwaaahhhhaa....
It is true that there are only so many ways to implement some code functions but this is just plain ass laziness. Of course it was copied. Of course someone else's work was stolen without credit.