by thinkingemote · 5y ago · 0 comments
https://github.com/id-Software/Quake-III-Arena/blob/master/c...
copilot repeats it word for word almost, including comments, and adds an MIT like license up the top
https://github.com/search?q=%22evil+floating+point+bit+level...
A question that popped into my head is: if the machine sees the same exact block of code hundreds of times, does that suggest to it that it's more acceptable to regurgitate the entire thing verbatim? Not that this incident is totally 100% ok, but if it was doing this with code that existed in only a single repo that would be much more concerning.
From a copyright standpoint, quite possibly. This is called the "Scènes à faire" doctrine. If there are some things that have to be there in a roughly standard form to do a standard job, that applies.
https://github.com/search?q=%22i++%3D+%2A+%28+long+%2A+%29+%...
"your honor, i would like to plead not guilty, on the basis that i just robbed that bank because i saw that everyone was robbing banks on the next city"
...on the other hand, that was the exact defense tried for the capitol rioters. So i don't know anything anymore.
If you and I write the exact same 10 lines of code, we both have independent and valid copyrights to it. Unlike patents, independent derivation of the same code _is_ a defense for copyright.
If I write 10 lines of code, publish it as GPL (but don't sign a CLA / am not assigning it to an employer), and then re-use it in an MIT codebase, I can do that because I retained copyright, and as the copyright holder I can offer the code under multiple incompatible licenses.
There's no way for a machine to detect independent derivation vs copying, no way for the machine to know who the original copyright holder was in all cases, and whether I have permission from them to use it under another license (i.e. if I email the copyright holder and they say 'yeah, sure, use it under non-gpl', it suddenly becomes legal again)...
It's not a problem computers can solve 100% correctly.
At a previous job we had a audit from them, it seemed to not be too accurate but probably good enough for companies to cover their asses legally.
So, the tool is worthless if you want to use it legally.
You can be almost certain it’s being widely used or will be widely used shortly.
The conversations around copilot are eerily similar to the conversations around the first autocomplete tools
I said that it is impossible for the user to check that the code copilot gives is OK, license-wise, and therefore, they can not be sure that it is legally OK to include in any project.