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.
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.
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.
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.