When copilot was originally released, I was able to get it to generate verbatim my extremely niche and poorly written code from a completely private repo. It was identifiable by the bad variable names that I used. I cant say they traines it on all pricate repos, but they definitely trained it on my private repos.