>>davidg+(OP)
If the code is public, my guess is that someone else stole it and added it to an open source repo without authorization. Microsoft may have then picked it up from there.
>>SrslyJ+ql
People copy-paste garbage from the internet left and right. Maybe copilot will finally push companies to actually properly review the code their employees are pushing.