News for hackers. Stuff that matters.
Re:Claim: Private GitHub repos included in AI dataset by simonw on Wednesday March 20, 2024 @03:20PM (#39770864)
Here's a reply from a GitHub staff member: https://mastodon.social/@correcthorse/112128192392083842

> I work for github. This post was shared in our slack, on a non work related channel. We don't think it's us.

> https://huggingface.co/datasets/bigcode/the-stack-v2

> They say they get data from SoftwareHeritage, a website that archives repos from github. If your repos were ever open, they might have been archived there even after you deleted from github.

> That's my best guess.

Re:Claim: Private GitHub repos included in AI dataset by beeboobaa on Wednesday March 20, 2024 @03:47PM (#39771187)
Depending on the license, how is this legal?
Re:Claim: Private GitHub repos included in AI dataset by simonw on Wednesday March 20, 2024 @03:55PM (#39771276)
Which bit? The archiving on SoftwareHeritage, the gathering of that data into the Stack or the subsequent training of models?
Re:Claim: Private GitHub repos included in AI dataset by s4mw1se on Wednesday March 20, 2024 @04:01PM (#39771344)
that’s a good question… There seems to be two problems.

The definition of open source depends on a license existing in a repo. Without a license it’s not legal to copy and distribute.

Public vs Private repo is a platforms issue not the code maintainers.

If a public repo does not have a license, it does not mean it free to copy and distribute.

If a private repo has an open source license like MIT, then the crawler has a right to copy and distribute that repo. Regardless if it has authorization to access the repo or not.

Re:Claim: Private GitHub repos included in AI dataset by to11mtm on Wednesday March 20, 2024 @04:33PM (#39771688)
Hopefully the crawler smart enough to properly handle edge cases...

e.x. if the repo has some sort of /used-licenses/ folder where the licenses for packages and the like are included, it could make a bad decision.

Re:Claim: Private GitHub repos included in AI dataset by marcinzm on Wednesday March 20, 2024 @04:33PM (#39771695)
> Without a license it’s not legal to copy and distribute.

Yes it is. Due to both the terms you agree when you use GitHub and the general Implied License that covers everything public on the internet.

https://en.wikipedia.org/wiki/Field_v._Google,_Inc.

Re:Claim: Private GitHub repos included in AI dataset by iamacyborg on Wednesday March 20, 2024 @06:25PM (#39772747)
I don’t think that “implied license” you’re referring to holds up in the courts.
Re:Claim: Private GitHub repos included in AI dataset by vharuck on Wednesday March 20, 2024 @04:40PM (#39771755)
Looking at that ruling, it seems the case you linked to hinged on a fact not applicable with the Stack:

>Field had actual knowledge of the Googlebot. He also was aware of the ways to prevent Google from either listing his site at all or listing it but not providing a link to the cached version. Instead of opting out, however, he chose to allow Google to both index and provide a link to the cached version.

For the AI dataset, (A) did the person know their work was being collected by this group and for this purpose, and (B) did they know of a way to prevent that collection?

Re:Claim: Private GitHub repos included in AI dataset by AshamedCaptain on Wednesday March 20, 2024 @06:01PM (#39772525)
It is not clear to me if they are _only_ using GitHub as source. The Stack explicitly mentions they are using Software Heritage as source and Software Heritage definitely sources from repositories that are NOT stored in GitHub (and never have been).
Re:Claim: Private GitHub repos included in AI dataset by orf on Wednesday March 20, 2024 @04:38PM (#39771743)
> Without a license it’s not legal to copy and distribute.

Is this true? When you post anything publicly, from sticking a poster on the street to making artwork like banksy, isn’t the default set to “it’s legal to copy, unless explicitly stated otherwise”?

Re:Claim: Private GitHub repos included in AI dataset by amarshall on Wednesday March 20, 2024 @04:43PM (#39771785)
The default in the majority of the world is that most creative works (including software code) are by-default copyrighted by the author, and the author must explicitly license away those rights. Some jurisdictions (e.g. France) put limits on what rights the author is allowed to give up. I.e., the default is it is illegal to copy (subject to exemptions like “fair use”).
Re:Claim: Private GitHub repos included in AI dataset by ryan-c on Wednesday March 20, 2024 @06:11PM (#39772606)
Note that this archive project is French.
Re:Claim: Private GitHub repos included in AI dataset by fweimer on Wednesday March 20, 2024 @04:50PM (#39771865)
Banksy apparently runs a licensing program. Their artwork is most definitely under copyright, and they rely on trademark protection as well.

There is also the practical issue that a lot of content is posted publicly without consent of the copyright owner. It's simply not true that just because someone else committed a copyright violation first, you can commit further violations without impunity based on that first violation.

Re:Claim: Private GitHub repos included in AI dataset by zzo38computer on Wednesday March 20, 2024 @05:24PM (#39772184)
> If a public repo does not have a license, it does not mean it free to copy and distribute.

Whether or not it is free to copy and distribute, it should be free to copy and distribute. (My opinion is that copyright is no good; if the file is public then you should be allowed to copy and distribute it.)

> If a private repo has an open source license like MIT, then the crawler has a right to copy and distribute that repo. Regardless if it has authorization to access the repo or not.

I should not think so. The license would only apply if you have a copy of it anyways. If you are not authorized to access it because it is private, then you would have to get a copy from somewhere else, and if nobody else is providing a copy, that shouldn't give you the right to unauthorized access. However, if it has been done, then it is done, so now there is a copy, and the license (if it is a license that allows copying it in this way) would authorize you to continue to use and distribute the copy that you have.

Re:Claim: Private GitHub repos included in AI dataset by s4mw1se on Wednesday March 20, 2024 @11:57PM (#39774781)
i’m not saying I agree or care about any of it. A sane company would never allow the use of source code from a third party without a license.

If repo is forked and the license is deleted the source code would need to be hashed to verify its the exact version of an open source repo. Mainly they don’t want copyleft or “malcious” license infecting their IP

If the hashes don’t match then it’s not technically the same code, so a company can’t safely use it without a license.

Re:Claim: Private GitHub repos included in AI dataset by altairprime on Wednesday March 20, 2024 @04:59PM (#39771965)
In the US: Fair use disregards licenses. Fair use can be found to apply, or found not apply, by a court of law. Archival of information is generally felt to be Fair use, as is Search indexing.
Re:Claim: Private GitHub repos included in AI dataset by ThunderSizzle on Wednesday March 20, 2024 @05:58PM (#39772484)
The real argument is when is AI re-use of copyrighted material a violation of copyright. That is a large grey area that will probably be determined in favor of large corporations and not in favor of individuals. (As in, Disney can use AI writers to copy you, but you won't be allowed to copy Disney)
Re:Claim: Private GitHub repos included in AI dataset by ryan-c on Wednesday March 20, 2024 @05:59PM (#39772502)
Software Heritage aggressively insists on French law... which does not have fair use.
[dead]
Re:Claim: Private GitHub repos included in AI dataset by stefanfisk on Wednesday March 20, 2024 @03:57PM (#39771307)
Why would it be GitHub’s responsibility to delete the repo from a third party service?
Re:Claim: Private GitHub repos included in AI dataset by dawnerd on Wednesday March 20, 2024 @04:00PM (#39771325)
And would that extend to anyone that ever cloned it? No, that's ridiculous.
Re:Claim: Private GitHub repos included in AI dataset by shagie on Wednesday March 20, 2024 @04:01PM (#39771345)
Software Heritage isn't GitHub.

https://en.wikipedia.org/wiki/Software_Heritage

> Software Heritage is a non-profit organization which provides a service for archiving and referencing historical and contemporary software — with a focus on human readable source code. The site was unveiled in 2016 by Inria [1] and is supported by UNESCO. The project itself is structured as a non‑profit multi‑stakeholder initiative.

> Development of Software Heritage began at Inria under the direction of computer scientists Roberto Di Cosmo and Stefano Zacchiroli in early 2015, and the project was officially announced to the public on June 30, 2016.

---

I am not sure that GitHub has the authority to do a take down of a repository on a different server (and jurisdiction - it's based out of France) on behalf of a user.

Re:Claim: Private GitHub repos included in AI dataset by 542458 on Wednesday March 20, 2024 @03:57PM (#39771298)
By “archived there even after you deleted from github” I believe they mean “archived on SoftwareHeritage and continue to exist there even after you deleted from github”.