News for hackers. Stuff that matters.
Re:Claim: Private GitHub repos included in AI dataset by simonw on Wednesday March 20, 2024 @03:14PM (#39770794)
This is talking about The Stack. The poster says:

"I found two of my old Github repos in there. Both were deleted last year and both were private."

The Stack was constructed a while ago, so "deleted last year" wouldn't have an impact if it was constructed before then.

"Both were private" is the thing that needs to be unpacked here. Were these genuinely private repositories that had never been made public on GitHub?

https://huggingface.co/datasets/bigcode/the-stack-v2 talks about where the Stack comes from: "This dataset is derived from the Software Heritage archive, the largest public archive of software source code and accompanying development history"

You can search that here: https://archive.softwareheritage.org/browse/search/?q=simonw... - it would be interesting to know if the OP's "private" repos are included in that collection.

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”.
Re:Claim: Private GitHub repos included in AI dataset by latexr on Wednesday March 20, 2024 @03:19PM (#39770853)
> Were these genuinely private repositories that had never been made public on GitHub?

The poster responded to that:

https://hachyderm.io/@[email protected]/11212861313743638...

> I’m pretty sure the repos of mine were private. If it were only me i could be misremembering something, but i have heard from a number of people that they also found repos in this dataset that were private.

Re:Claim: Private GitHub repos included in AI dataset by chefandy on Wednesday March 20, 2024 @03:27PM (#39770968)
I'd be interested in hearing from the cited number of people. If it's like 5 randos, then that's quite possibly a misremembering, or even conceivably the victims of some unrelated code theft. If it's a few dozen people, well that would have very different implications.
Re:Claim: Private GitHub repos included in AI dataset by latexr on Wednesday March 20, 2024 @03:30PM (#39771005)
Re:Claim: Private GitHub repos included in AI dataset by chefandy on Wednesday March 20, 2024 @03:39PM (#39771110)
Seems worth tracking publicly. Maybe I should create a GH rep.... er... hm...
Re:Claim: Private GitHub repos included in AI dataset by agilob on Wednesday March 20, 2024 @04:34PM (#39771701)
Maybe worth posting leaked Windows, Apple, Intel, Steam, The Wicher codes on GH as private repos and then seeing who will sue whom first.
Re:Claim: Private GitHub repos included in AI dataset by beaugunderson on Wednesday March 20, 2024 @05:28PM (#39772222)
I went through my private repos and the only one I found was one where I had forked a project, called `documentation`, and my fork made it into the Software Heritage archive. Sometime between then and now I deleted my fork and cloned a private repo with the same name. I confirmed the Software Heritage archive only has the one that was public and not the private one. I feel like we'd be hearing much louder alarm bells if the Software Heritage archive included private code given how many people rely on private GitHub repos.
Re:Claim: Private GitHub repos included in AI dataset by yreg on Wednesday March 20, 2024 @05:56PM (#39772466)
That person is unable to provide us with a repo name either.
Re:Claim: Private GitHub repos included in AI dataset by cavisne on Wednesday March 20, 2024 @04:24PM (#39771606)
Considering private repos used to require a paid subscription misremembering seems likely.

It used to be public by default, and enough people got confused by this that AWS & Github used to specifically scan repo's for accidentally public AWS credentials.

Re:Claim: Private GitHub repos included in AI dataset by RandallBrown on Wednesday March 20, 2024 @03:56PM (#39771295)
None of my private repos are included in the software heritage project.
Re:Claim: Private GitHub repos included in AI dataset by throwanem on Wednesday March 20, 2024 @04:04PM (#39771384)
Nor mine. But if anyone in the year 10,000 needs to run a 4-digit LED segment display as a clock with a 1st-gen Raspberry Pi, they'll have the code to do it.
Re:Claim: Private GitHub repos included in AI dataset by eagerpace on Wednesday March 20, 2024 @04:13PM (#39771482)
That’s really funny to think about. By then today’s internet may be the equivalent of the little NES machine you can buy with all the games on it.
Re:Claim: Private GitHub repos included in AI dataset by yard2010 on Wednesday March 20, 2024 @04:47PM (#39771821)
He said year 10,000 not year 2052 tho
Re:Claim: Private GitHub repos included in AI dataset by simonw on Wednesday March 20, 2024 @03:21PM (#39770887)
This is a really big claim. I think we need specifics on this - I'm inclined to think this is people not understanding the GitHub public/private repo model (or misremembering the history of their repos) over GitHub deliberately leaking private code to third parties.
Re:Claim: Private GitHub repos included in AI dataset by latexr on Wednesday March 20, 2024 @03:23PM (#39770917)
I agree that might be the case. Since I do not personally know the author, I elected to use “may” in the submission title. Hopefully we get a definitive answer from those involved.

Still, the post continues to be useful for those who want to opt-out regardless.

Re:Claim: Private GitHub repos included in AI dataset by politelemon on Wednesday March 20, 2024 @03:43PM (#39771150)
I would use "claim" rather than may until it's substantiated.
Re:Claim: Private GitHub repos included in AI dataset by latexr on Wednesday March 20, 2024 @04:18PM (#39771534)
Reads a bit weirder, but changed.
Re:Claim: Private GitHub repos included in AI dataset by ametrau on Wednesday March 20, 2024 @03:25PM (#39770939)
I have personally experienced this. The person who did it didn’t realise the significance of the repo being “public only for a couple of hours”. I’m also inclined to believe it’s misremembering / misconfiguring.
Re:Claim: Private GitHub repos included in AI dataset by treffer on Wednesday March 20, 2024 @03:25PM (#39770938)
I would give it a 50:50 chance.

The other option is that the scraper got lucky with a tiny glitch (whatsoever).

On the one hand I bet github does everything to keep stuff secure, on the other hand I can't believe there wasn't a single glitch in the last few years.

And if there was a glitch then regular automated scrapers are a pretty likely siphon.

Heck I should check if any of my private repository show up.....

Re:Claim: Private GitHub repos included in AI dataset by rfoo on Wednesday March 20, 2024 @03:27PM (#39770961)
> a tiny glitch

That's not "a tiny glitch". What you described is "GitHub may show your private repo to strangers randomly" which is a even more serious issue than they appearing in an archive some time later.

Re:Claim: Private GitHub repos included in AI dataset by simonw on Wednesday March 20, 2024 @04:05PM (#39771390)
Right: exposing private source code in this way is a showstopper bug for GitHub, and a major scandal if they've been covering it up.

A lot of companies pay GitHub a LOT of money to securely host their code. A breach like this is a way bigger story than just another "AI is training on your data!" thing.

I continue to doubt that private repos being exposed like this actually happened here.

Re:Claim: Private GitHub repos included in AI dataset by errantmind on Wednesday March 20, 2024 @03:17PM (#39770827)
For info, I checked and it looks like none of my AGPL licensed repos are included in The Stack. Neither are my private repos.
Re:Claim: Private GitHub repos included in AI dataset by tom_ on Wednesday March 20, 2024 @03:25PM (#39770942)
My GPL ones seems to be excluded.

I've got a couple that are intended to be GPL, but you wouldn't know unless you go to the GitHub issues to find the issue I raised about the licence file not being in the repo. They are included.

Re:Claim: Private GitHub repos included in AI dataset by shkkmo on Wednesday March 20, 2024 @04:00PM (#39771335)
It's weird that they exclude GPL licensed repos, but not unlicensed repos. It seems like they would have even fewer rights with the unlicensed ones.
Re:Claim: Private GitHub repos included in AI dataset by kaibee on Wednesday March 20, 2024 @04:17PM (#39771517)
There's probably a ton more unlicensed repos than licensed. It isn't weird, its capitalism.
Re:Claim: Private GitHub repos included in AI dataset by calvinmorrison on Wednesday March 20, 2024 @03:58PM (#39771318)
The software heritage sent me an email they were going to steal copies of my software. I think they assumed because it was published as a git repo they had unlimited rights to steal, reproduce, sell, etc my copyrighted work.
Re:Claim: Private GitHub repos included in AI dataset by remotefonts on Wednesday March 20, 2024 @04:21PM (#39771566)
Steal your repos? So you don't have them anymore because they took them? Maybe ask nicely to have them back and with a bit of luck they'll give them back to you.
Re:Claim: Private GitHub repos included in AI dataset by rpdillon on Wednesday March 20, 2024 @07:00PM (#39773045)
This is a sound point, even if it's being made a bit sarcastically. Copyright and intellectual property are an entirely different body of law than property rights, and people most often conflate them as an emotionally charged rhetorical technique that's generally rooted in a dissatisfaction that intellectual property and physical property are treated differently. The use of the word "steal" in this context is probably to incite readers to their cause, but ends up just sounding sophomoric to people that know anything about intellectual property law.

It's a shame because the GP had some valuable information to share about the emails software heritage was sending, but likely got downvoted because of this.

Re:Claim: Private GitHub repos included in AI dataset by calvinmorrison on Wednesday March 20, 2024 @08:12PM (#39773575)
Problem is GP (me) is a dickhead about it.

but frankly, it's not the first time. Github (after purchase by microsoft) did the same thing to my code. They reproduced it and put it on ice in some place in norway. That was the guise right? I mean I am sure they did, but you can bet your ass they're also using my code to train their AI.

Most of it was not licensed. It was publicly available as a portfolio so people would see I write serious code and would hire me.

So then I took down my entire github after being informed I was enrolled, couldn't opt out, etc, and then some OTHER foundation is now scanning my self hosted git repos? That made my blood BOIL!

Re:Claim: Private GitHub repos included in AI dataset by bevekspldnw on Wednesday March 20, 2024 @05:11PM (#39772093)
Curiously, the people most vociferous about digital copying of IP not being “theft” tend to be those people who have produced the least amount of original IP.

Surprisingly, the people generating real, novel, IP like to buy groceries now and then.

Re:Claim: Private GitHub repos included in AI dataset by mik1998 on Wednesday March 20, 2024 @05:22PM (#39772168)
Absurd, presumably anecdotal claim.

My own anecdotal experience is that it has no relation and I know many people who have violated the copyright on the IP they themselves produced.

Re:Claim: Private GitHub repos included in AI dataset by calvinmorrison on Wednesday March 20, 2024 @05:40PM (#39772329)
how does one violate their own copyright? I mean, its my IP, I am free to license, distribute, and so forth as I see fit, there's an implicit "All Rights Reserved".
Re:Claim: Private GitHub repos included in AI dataset by mik1998 on Wednesday March 20, 2024 @06:06PM (#39772567)
People who produce IP either by work for hire or by selling their copyright rights.

I've had people "steal" IP by sending me a PDF of a paper they wrote whose copyright resides with their university. Not the typical image of a thief.

Re:Claim: Private GitHub repos included in AI dataset by calvinmorrison on Wednesday March 20, 2024 @05:07PM (#39772043)
reproducing my work without license is theft.
Re:Claim: Private GitHub repos included in AI dataset by rpdillon on Wednesday March 20, 2024 @07:03PM (#39773081)
I mean, this is a matter of law, and it isn't. It's a curious point to double down on.
Re:Claim: Private GitHub repos included in AI dataset by buffington on Wednesday March 20, 2024 @05:28PM (#39772217)
Do you happen to still have that email? I'd like to search my inbox for anything similar, and would love some snippets to search for.

Edit: I asked this before the parent commenter included the contents of the email. Thanks parent commenter!

Re:Claim: Private GitHub repos included in AI dataset by calvinmorrison on Wednesday March 20, 2024 @05:35PM (#39772281)
Hello Calvin Morrison,

The mission of Software Heritage is to collect, preserve and share all the publicly available source code: https://www.softwareheritage.org

We have received a request to add the forge hosted at the URL below to the list of software origins that are archived, and it is our understanding that you are or know the contact person for this forge.

https://git.ceux.org/

In order to archive the forge contents, we will have to periodically pull the public repositories it contains and clone them into the Software Heritage archive. FAQs for our processes are available:

https://docs.softwareheritage.org/user/faq/#add-forge-now https://www.softwareheritage.org/faq/

Please let us know if there are any issues to consider before we launch the archival of the public repositories hosted on your infrastructure. Please use "Reply all" to ensure our system will process your answer properly.

In the absence of an answer to this message, we will start to archive your forge in the coming weeks. Only the publicly accessible repositories will be archived.

Thank you in advance for your help.

Kind regards, The Software Heritage team

-- bye, pabs

Re:Claim: Private GitHub repos included in AI dataset by AshamedCaptain on Wednesday March 20, 2024 @05:30PM (#39772238)
Have you figured out if there is a way to prevent them from doing that? The email I got, which I assume is similar, was suspiciously lacking a "just GTFO and leave my website alone" option.
Re:Claim: Private GitHub repos included in AI dataset by gavinhoward on Wednesday March 20, 2024 @06:01PM (#39772523)
I blocked their IP address specifically. Contact me if you want it.
Re:Claim: Private GitHub repos included in AI dataset by calvinmorrison on Wednesday March 20, 2024 @05:34PM (#39772278)
They explicitly told me they could not blacklist me, but they did do a prompt takedown.
Re:Claim: Private GitHub repos included in AI dataset by dustyharddrive on Saturday March 30, 2024 @10:03PM (#39880665)
At least some of their software has unique user agents ("Software Heritage*"). I wish a popular FOSS host like Codeberg would block them.
Re:Claim: Private GitHub repos included in AI dataset by ryan-c on Wednesday March 20, 2024 @06:04PM (#39772547)
> However, we cannot prevent a publicly available from being archived by anyone using our "Save code now" feature

This is not true. They just had to remove about 500 public repos to comply with my copyright.

Re:Claim: Private GitHub repos included in AI dataset by calvinmorrison on Wednesday March 20, 2024 @08:09PM (#39773554)
It's true as in, that's what they told me when I asked.
Re:Claim: Private GitHub repos included in AI dataset by ryan-c on Thursday March 21, 2024 @04:08AM (#39775908)
They're lying.
Re:Claim: Private GitHub repos included in AI dataset by buffington on Wednesday March 20, 2024 @05:24PM (#39772183)
I have about fifty private github repos and hundreds more public github repos (half of them forks of other public repos). I've verified that none of my private repos are in the dataset, and all of my public repos are.

I was expecting to see at least one repo that shouldn't be there depending on when the dataset was put together. In 2015 I changed a repo from public to private, which I think might suggest that the dataset was built after 2015 since my now private repo isn't in the dataset?

Re:Claim: Private GitHub repos included in AI dataset by godelski on Wednesday March 20, 2024 @06:30PM (#39772791)
I did the same and see none of my private repos. Which is quite a lot. I do see plenty of deleted repos but those were public.
Re:Claim: Private GitHub repos included in AI dataset by hn72774 on Wednesday March 20, 2024 @05:32PM (#39772260)
Github publicly streams the global change log including all public repos. I have a public repo and noticed there were multiple clones daily after every commit I made. That's when I discovered the API: https://docs.github.com/en/rest/activity/events?apiVersion=2...

If the repo was public even for a single commit, that was likely cloned and replicated elsewhere.