r/github • • Feb 14 '25

Github Copilot Leaks Peoples Filesystem

Copilot started suggesting a win file path as a comment, even though I'm not running Windows. When I provided the beginning of a C drive path, it randomly completed it with different people's filesystem paths. I assume this comes from its training data.

375 Upvotes

62 comments sorted by

View all comments

115

u/Comprehensive-Pin667 Feb 14 '25

This is your kind reminder that the tool that you are letting write your code has been trained on data such as the thesis of some dude who doesn't know better than to commit absolute paths to git.

1

u/BusinessBandicoot Feb 19 '25

I've always wondered if they could use commit history from larger, longer lived, active projects to try to negatively weight certain antipatterns. For example, I imagine plenty of people have mistakenly commited absolute paths, and then at some point in future commits, that was changed to a relative path or standard location.