News for hackers. Stuff that matters.
Re:Analyzing the legal implications of GitHub Copilot by tyingq on Thursday July 15, 2021 @01:08PM (#27847018)
“If you look at the GitHub Terms of Service, no matter what license you use, you give GitHub the right to host your code and to use your code to improve their products and features,” Downing says. “So with respect to code that’s already on GitHub, I think the answer to the question of copyright infringement is fairly straightforward.”

I don't know if it's really that straightforward. The TOS includes snippets like this in that area:

"This license does not grant GitHub the right to sell Your Content. It also does not grant GitHub the right to otherwise distribute or use Your Content outside of our provision of the Service"

I'm omitting other language, but if you read that area of the TOS, they seem to have purposefully scoped down their license-to-use for hosting, backups, etc.

Re:Analyzing the legal implications of GitHub Copilot by kzrdude on Thursday July 15, 2021 @01:12PM (#27847078)
What about open source projects where the uploader and github users are not the only copyright holders? As a user i can't grant github any random license for the code, if I maintain for example Linux or python or any other old project there.

The ONLY available terms are those given by the license, surely?

Re:Analyzing the legal implications of GitHub Copilot by lindenksv85 on Thursday July 15, 2021 @01:23PM (#27847214)
If you are putting up code on GitHub to which you don’t have all the rights you’re actually in violation of their TOS and you are violating the rights of other copyright holders. I understand this is common and may not violate community norms or expectations but it is technically a license violation on multiple fronts. Contributors who add to existing GitHub projects are providing the same license to GitHub as the project maintainer though per the TOS.
Re:Analyzing the legal implications of GitHub Copilot by jolmg on Thursday July 15, 2021 @04:12PM (#27849522)
> If you are putting up code on GitHub to which you don’t have all the rights you’re actually in violation of their TOS and you are violating the rights of other copyright holders.

I can't find where in the TOS it says that you must "have all the rights [to the code]". It just says that you must not violate copyright nor other laws.[1] FOSS licenses by definition permit redistribution, so uploading to GitHub seems to be in-line with the license granted by the copyright holders.

What are the violations you mention?

> Contributors who add to existing GitHub projects are providing the same license to GitHub as the project maintainer though per the TOS.

Sure, but that's not the only way. If you contribute to a FOSS project elsewhere, those changes go under the same license of the project. Whoever you pass those changes to has liberty to redistribute per the terms of the license. The TOS is unneeded to legally redistribute FOSS-licensed projects with GitHub.

The TOS saying that you must grant GitHub these permissions is only to protect GitHub in cases where people upload projects without licenses.

[1] in addition to content restrictions, like no porn.

Re:Analyzing the legal implications of GitHub Copilot by mr_toad on Thursday July 15, 2021 @11:12PM (#27852706)
> FOSS licenses by definition permit redistribution

Uploading to GitHub is not just redistribution, it’s relicensing. Whether that is permitted depends on the license.

Re:Analyzing the legal implications of GitHub Copilot by jolmg on Friday July 16, 2021 @11:16AM (#27857121)
From the TOS[1]:

> If you upload Content that already comes with a license granting GitHub the permissions we need to run our Service, no additional license is required.

[1] https://docs.github.com/en/github/site-policy/github-terms-o...

Re:Analyzing the legal implications of GitHub Copilot by sudosysgen on Thursday July 15, 2021 @01:30PM (#27847330)
But legally, they can't provide such a license. So GitHub can't have that license, surely, because they never had the legal authority to bestow it upon Github.
Re:Analyzing the legal implications of GitHub Copilot by Animats on Thursday July 15, 2021 @01:49PM (#27847648)
A third party who finds their GPL code on Github but is not themselves a user of Github has a right of action. They're not bound by Microsoft's terms.
Re:Analyzing the legal implications of GitHub Copilot by AdamJacobMuller on Thursday July 15, 2021 @02:54PM (#27848600)
> is not themselves a user of Github

Is it that widely scoped? Can't we narrow it to "A third party who finds their GPL code on Github but has not uploaded that specific code to Github themselves has a right of action limited to that specific code."

Just because I created a github account once and agreed to the TOS doesn't mean that I agree to let others upload my code to github, where would that scope end. Could someone steal code off my computer which i've never published and put it on Github and that was OK because I once signed up for a github account, clearly a contrived example but.

Re:Analyzing the legal implications of GitHub Copilot by axiosgunnar on Thursday July 15, 2021 @07:36PM (#27851362)
You are correct
Re:Analyzing the legal implications of GitHub Copilot by lakecresva on Thursday July 15, 2021 @04:14PM (#27849548)
I'm not sure that someone who published their work under the GPL hasn't thereby given consumers the right to put the repo on github. If the rights Github asks for in their ToS can be construed as a subset of the rights granted by the GPL, Github is just another GPL licensee. Unless they violate the conditions of the license, they're just utilizing their GPL rights.
Re:Analyzing the legal implications of GitHub Copilot by eitland on Thursday July 15, 2021 @04:37PM (#27849817)
> Github is just another GPL licensee. Unless they violate the conditions of the license, they're just utilizing their GPL rights.

And here is exactly the problem.

GitHub seems to be copying copyrighted code left and right and pretend they made it!

No attribution, no license.

They are of course allowed to let their AI study the code, but as "employer" of that AI GitHub/Microsoft has a responsibility if that AI breaks copyright right and left and they as a company pretend the code is theirs to give away.

Re:Analyzing the legal implications of GitHub Copilot by dsr_ on Thursday July 15, 2021 @10:44PM (#27852555)
With GPL rights come GPL responsibilities.
Re:Analyzing the legal implications of GitHub Copilot by eitland on Friday July 16, 2021 @02:49AM (#27853624)
Agree.
Re:Analyzing the legal implications of GitHub Copilot by lindenksv85 on Thursday July 15, 2021 @01:33PM (#27847382)
That was a problem before copilot though. And copyright holders have and will continue to have the right to send DMCA take-down notices if they like.
Re:Analyzing the legal implications of GitHub Copilot by jacoblambda on Thursday July 15, 2021 @03:48PM (#27849248)
But the thing to note is that a user can have a right to distribute (as with GPL) but does not necessarily have the rights to the license.

So if the user uploads the source to GitHub, they agree to the terms (which they may not actually have the rights to) but that isn't equivalent to the rights owner giving GitHub the rights to distribute the source under a different license.

The TOS can only modify those distribution terms (if it even can be found to be legally binding) if the user uploading the source is the rights owner which in so many cases is not the case.

Re:Analyzing the legal implications of GitHub Copilot by josephh on Thursday July 15, 2021 @02:22PM (#27848189)
I think the bigger question is whether GitHub will be able to honor DMCA requests that pertain to copyrighted materials showing up in Copilot's suggestions.
Re:Analyzing the legal implications of GitHub Copilot by joshspankit on Saturday July 17, 2021 @07:36AM (#27865100)
Are we entering in to a new realm where a DMCA (or DMCA-like) request can be filed to remove content from the training data for an AI (and likely cause it to require retraining)?
Re:Analyzing the legal implications of GitHub Copilot by rightbyte on Thursday July 15, 2021 @01:53PM (#27847729)
I guess the Github Copilot authors did not handpick projects they checked were legitimately put on Github. So they are accomplices in that case.
Re:Analyzing the legal implications of GitHub Copilot by filoleg on Thursday July 15, 2021 @03:11PM (#27848804)
YouTube doesn't really handpick things that get put on their platform either, beyond very basics and whatever automated tools they have to cover that.

Beyond that, that's what DMCA takedown requests are for. Github would only be an accomplice in that case, if they got a legitimate DMCA takedown request and chose to completely ignore it.

Re:Analyzing the legal implications of GitHub Copilot by account42 on Friday July 16, 2021 @10:24AM (#27856511)
If the TOS has been violated is irrelevant to the question if github has a license to the code. They may be able to take action against the uploader for damages, but ff the uploader does not have the rights to give them the license, they don't have a license.
Re:Analyzing the legal implications of GitHub Copilot by kzrdude on Thursday July 15, 2021 @02:18PM (#27848125)
Today is the first time I've considered that, but it's certainly something we should think about. If big projects moved on this, I think github would take notice and "issue a clarification".
Re:Analyzing the legal implications of GitHub Copilot by axiosgunnar on Thursday July 15, 2021 @07:34PM (#27851351)
Sure, perhaps the uploader could be sued, but this is irrelevant to the question whether Github ends up with valid rights. (the answer is no)
Re:Analyzing the legal implications of GitHub Copilot by grawprog on Thursday July 15, 2021 @01:23PM (#27847215)
> to use your code to improve their products and features

>It also does not grant GitHub the right to otherwise distribute or use Your Content

I'm curious. Copilot isn't actually part of github. It's a plugin for Visual Studio wouldn't that mean copilot is distributing code hosted on github, outside of github? You can't use copilot without visual studio.

How is this not Microsoft just parasitizing all the code hosted on github to make visual studio better? Which as far as i know, depsite being owned by Microsoft is not actually part of github.

Re:Analyzing the legal implications of GitHub Copilot by LeifCarrotson on Thursday July 15, 2021 @02:32PM (#27848324)
I think it all depends on who 'they' are and what 'their products' re. The definition says:

> 'GitHub,' 'We,' and 'Us' refer to GitHub, Inc., as well as our affiliates, directors, subsidiaries, contractors, licensors, officers, agents, and employees.

Does that also include OpenAI? Does it include the Visual Studio team? All of Microsoft?

The license granted by users to Github is:

> We need the legal right to do things like host Your Content, publish it, and share it. You grant us and our legal successors the right to store, archive, parse, and display Your Content, and make incidental copies, as necessary to provide the Service, including improving the Service over time. This license includes the right to do things like copy it to our database and make backups; show it to you and other users; parse it into a search index or otherwise analyze it on our servers; share it with other users; and perform it, in case Your Content is something like music or video.

> This license does not grant GitHub the right to sell Your Content. It also does not grant GitHub the right to otherwise distribute or use Your Content outside of our provision of the Service...

IANAL, but naively, Github appears to be a code hosting platform. If they need to analyze my code to make it work with Git and with their code hosting features, that makes sense. For example, they might have a feature to prevent inadvertent commits of private keys, and would need to parse my code to do so. Maybe my code contains stuff that doesn't work with their generic private-key-finding parser, and they need to specifically run a subset of my code on their platform through their parser in a debugger to fix the feature. That's a sensible license to grant to a code hosting platform, they're not a no-knowledge encrypted storage provider.

They don't appear to be a software vendor that sells code to other private parties for use in closed-source applications. Their license appears to specifically deny them the right to sell snippets of my code to others.

I suspect, however, that this isn't a black-and-white factual issue, rather, one for a court to decide. One could probably hire an attorney to argue any possible angle on the legality of Copilot. And by a similar mechanism to the "Winner's curse", the company who developed a tool like Copilot would always have been one where their internal counsel advised them that what they were doing was totally legal.

Re:Analyzing the legal implications of GitHub Copilot by lindenksv85 on Thursday July 15, 2021 @01:58PM (#27847826)
The “services” is that which is provided by GitHub. “GitHub” is defined to include all of its affiliates, including Microsoft.
Re:Analyzing the legal implications of GitHub Copilot by btilly on Thursday July 15, 2021 @02:56PM (#27848627)
I don't know if it's really that straightforward.

It gets worse. To the extent that it is that straightforward, the correct takeaway is that you do not have permission to include someone else's GPLed code in your Github repository.

And that to the extent that GitHub relies on that permission in using the code that they host, they are liable for potential copyright claims from copyright owners that they have no relationship with, who never gave GitHub permission to use that code.

I therefore think that GitHub should do some careful thinking about how much they can rely on a ToS to do as they want with the copyleft code that they host. And I further think that people who host GPLed projects should ask whether GitHub is where they should be hosting those projects.

(Insert the mandatory, "I am not a lawyer and this is not legal advice.")

Re:Analyzing the legal implications of GitHub Copilot by mewse on Thursday July 15, 2021 @07:49PM (#27851482)
> To the extent that it is that straightforward, the correct takeaway is that you do not have permission to include someone else's GPLed code in your Github repository

Or to put that differently;

Using GitHub’s built-in “Fork” feature is probably often a violation of GitHub’s terms of use.

Re:Analyzing the legal implications of GitHub Copilot by tomrod on Thursday July 15, 2021 @01:20PM (#27847170)
Further, what if I branched the code from something hosted outside of Github -- and failed to follow proper attribution?

This is a huge legal mess and its not being used to IMPROVE Github products and ops, it IS the Github product.

Re:Analyzing the legal implications of GitHub Copilot by kmeisthax on Thursday July 15, 2021 @05:51PM (#27850555)
It's actually fairly difficult to remove attribution from a Git repository. It's embedded in each commit. You'd have to rewrite the entire project history - something far different from just "branching" a repo.
Re:Analyzing the legal implications of GitHub Copilot by omegalulw on Friday July 16, 2021 @04:04AM (#27853966)
It's fairly easy to erase something like a header from all git history. It will update all commits for you.
Re:Analyzing the legal implications of GitHub Copilot by tomrod on Friday July 16, 2021 @08:30AM (#27855553)
I wasn't thinking of removing the history specifically, but yeah, this applies.
Re:Analyzing the legal implications of GitHub Copilot by BeefWellington on Thursday July 15, 2021 @02:34PM (#27848346)
An interesting thought experiment around this whole topic: If I were to take all the scripts of profitable films rated G or PG and train an AI on it, generate a bunch of scripts, then made movies out of those scripts, would I lose in court?

Tangibly, how is this AI method substantially different from non-clean-room implementations?

In terms of business use, it seems incredibly risky to me to even just *use* GitHub since their license agreement/ToS permit them to use my code to improve their tools which now apparently includes tooling where it may copy your code wholesale as someone else's suggestion.

Re:Analyzing the legal implications of GitHub Copilot by kmeisthax on Thursday July 15, 2021 @06:01PM (#27850633)
No thought experiment needed. If I watch a bunch of movies and then make my own movie, whether or not I lose in court depends on if the movie I made is at least "substantially similar" to any movie I happened to watch - or, in other words, had "access" to. That's a fact-intensive thing that juries usually decide on a case-by-case basis.

The difference between that and having an AI do it is probably low. My gut instinct is that using an AI constitutes "access" to the AI's training corpus, so if it spits out something at least substantially similar to that corpus, then I'm infringing if I use that output. If it doesn't constitute access, then a copyright owner would have to prove "striking similarity", which would really only cover things like using Copilot to spit out fragments of old Quake code verbatim.

Clean-room is a way of arguing down the level of access that you have to something that you want to make a non-infringing copy of. It usually requires having actual attorneys review everything the clean-room engineers get to see, and stripping out the parts that are actually copyrightable. Merely training an ML system on input as a way to only have access to the uncopyrightable parts of that input probably wouldn't work.

Pretty much every Internet service is going to have similar clauses to GitHub's; because anything else would basically be a "click here to make me liable for copyright infringement" button. In fact, I wouldn't be surprised that merely running something like GitHub but without a ToS would still give you similar levels of implied license over whatever people push to your server.

Re:Analyzing the legal implications of GitHub Copilot by BeefWellington on Friday July 16, 2021 @09:55AM (#27856245)
> Pretty much every Internet service is going to have similar clauses to GitHub's; because anything else would basically be a "click here to make me liable for copyright infringement" button. In fact, I wouldn't be surprised that merely running something like GitHub but without a ToS would still give you similar levels of implied license over whatever people push to your server.

The specific part of their ToS I was talking about was the (paraphrasing) [we can use your code to improve our tools and services] part.

Re:Analyzing the legal implications of GitHub Copilot by phkahler on Thursday July 15, 2021 @02:21PM (#27848181)
Yeah, I don't think bettering their products includes verbatim incorporation of code into those products.

Also, for the part about small snippets being non copyrightable. I would suggest looking at the Google/Oracle case. Google was found guilty of infringement for a very small number of lines, but the award to Oracle was IIRC rather a joke (something like one dollar, indicating it was infringing but largely irrelevant).

Re:Analyzing the legal implications of GitHub Copilot by zja on Thursday July 15, 2021 @02:32PM (#27848316)
The Supreme Court found Google’s use to be fair, not infringement.
Re:Analyzing the legal implications of GitHub Copilot by jcelerier on Thursday July 15, 2021 @02:43PM (#27848466)
the supreme court did not reconsider the previous judgment on the 9 lines of sorting algorithm being copied, which was not considered fair use
Re:Analyzing the legal implications of GitHub Copilot by zja on Friday July 16, 2021 @01:30PM (#27858770)
Didn’t know that, thanks!
Re:Analyzing the legal implications of GitHub Copilot by lindenksv85 on Thursday July 15, 2021 @01:20PM (#27847168)
They technically don’t distribute any code. They show it to you in a hosted environment. It’s the user that causes a distribution. They “provide it as part of the service.”
Re:Analyzing the legal implications of GitHub Copilot by tyingq on Thursday July 15, 2021 @01:23PM (#27847211)
I'm not sure how sending it over the wire to Visual Studio doesn't count as distribution. Distribution without attribution, reference to where it came from, how it's licensed, etc.
Re:Analyzing the legal implications of GitHub Copilot by dheera on Thursday July 15, 2021 @01:55PM (#27847758)
Conceptually it's not particularly any different from distributing it to your web browser. They basically just turned Visual Studio into a fancy Github browser that has some editing features.
Re:Analyzing the legal implications of GitHub Copilot by inlined on Thursday July 15, 2021 @02:09PM (#27847989)
I disagree. They’re the API host, so they’re the distributor as well as the user agent
Re:Analyzing the legal implications of GitHub Copilot by zufallsheld on Thursday July 15, 2021 @01:25PM (#27847236)
In the same vain streaming sites don't distribute movies, they show them to, you in a hosted environment. and this argument did not hold up in court.
Re:Analyzing the legal implications of GitHub Copilot by lindenksv85 on Thursday July 15, 2021 @01:41PM (#27847519)
OSS license obligations mostly kick in upon distribution, hence this is a pivotal concept in this context. It’s also important because of the language in the TOS that says the code won’t be used outside the service. The stuff related to streaming is kind of unrelated here because movies aren’t under copyleft licenses and so the question of whether or not there was distribution there is not relevant- the question is whether or not the copyright holder’s monopoly right were violated and those include the right of public performance, public display, as well as distribution. They would have violated other copyright rights even without a finding of distribution.
Re:Analyzing the legal implications of GitHub Copilot by matmann2001 on Thursday July 15, 2021 @01:23PM (#27847212)
Technically, they aren't distributing "your" code. It's laundered through their machine learning algorithm first.
Re:Analyzing the legal implications of GitHub Copilot by hansvm on Thursday July 15, 2021 @01:31PM (#27847351)
Is that actually different legally from an "ML" algorithm that xors the code with the same garbage 1M times or otherwise does something expensive to implement a noop?
Re:Analyzing the legal implications of GitHub Copilot by matmann2001 on Thursday July 15, 2021 @01:24PM (#27847233)
Technically, they aren't distributing Your Content. It's laundered through their machine learning model first.
Re:Analyzing the legal implications of GitHub Copilot by tyingq on Thursday July 15, 2021 @01:27PM (#27847258)
With degrees of laundered varying from "copied verbatim" to "minor things like symbol names changed" to "actually transformed significantly".
Re:Analyzing the legal implications of GitHub Copilot by nomoreplease on Thursday July 15, 2021 @04:12PM (#27849526)
And "and to use your code to improve their products and features,” does not explicitly include "or to create new products and features".

CoPilot is a NEW product, not an existing product (Github itself) that the ToS gives permission to improve.