Not at all. You need to bait it really hard and push it into a corner for it to reproduce anything. At that point you might just as well go to the repo and copypaste the code directly.
I've used Copilot since day one and still haven't seen anything that felt like a 1 to 1 copy of something. It's highly contextual and all about using the code I have already written to craft its suggestions. Even if I ask it explicitly for a known algorithm it will use my code style, patterns and naming conventions to write it.
There is no difference between the two. Given that another project called Dance Diffusion was trained on public domain music and audio and permission by musicians, it is clear that Stability knew that they would be sued to the ground if Dance Diffusion was trained on copyrighted music. [3] They already seem to have admitted and felt guilty into trampling over the copyright and watermarks of images and knowingly avoided doing the same with music.
My point is, use and train on public domain content only and content that has the permission of the creator. This applies to all of them; DALL-E, Copilot, Stable Diffusion. Clearly wasn't a problem to use public domain music with Dance Diffusion was it?
[0] https://venturebeat.com/ai/stability-ai-to-honor-artist-opt-...
[1] https://platform.stability.ai/
[2] https://twitter.com/EMostaque/status/1603147709229170695
[3] https://techcrunch.com/2022/10/07/ai-music-generator-dance-d...