News for hackers. Stuff that matters.
Re:GitHub Copilot, with “public code” blocked, emits my copy... by thorum on Sunday October 16, 2022 @04:51PM (#33227093)
What's going on here is that Copilot pulls code it thinks may be relevant from other files in your VS Code project. You have the original code open in another tab, so Copilot uses it as a reference example. For proof, see the generated comment under the Copilot completion: "Compare this snippet from Untitled-1.cpp" - that's the AI accidentally repeating the prompt it was given by Copilot.
Re:GitHub Copilot, with “public code” blocked, emits my copy... by ianbutler on Sunday October 16, 2022 @05:35PM (#33227380)
I just tested it myself, and I most certainly do not have his source open, and it reproduced his code verbatim with just the function header in a random test c file I created in the middle of a rust project I'm working on.
Re:GitHub Copilot, with “public code” blocked, emits my copy... by thorum on Sunday October 16, 2022 @05:52PM (#33227487)
Ah ok.
Re:GitHub Copilot, with “public code” blocked, emits my copy... by defasdefbe on Sunday October 16, 2022 @07:08PM (#33228003)
Do you have Public Code Suggestions disabled? I tried in an empty editor and it wouldn't do it.
Re:GitHub Copilot, with “public code” blocked, emits my copy... by stefan_ on Sunday October 16, 2022 @05:39PM (#33227402)