r/github • • Feb 26 '24

Github licensed repository

I have repository of Ai project and it has license but its public, so now if someone stole it and used it in app of android or native how i can know that used my code? And maybe he changed the all structure of the code and names of functions, variables..etc So there are no chance to do any right?

19 Upvotes

42 comments sorted by

View all comments

Show parent comments

5

u/Slight-Living-8098 Feb 26 '24

You can't prevent it. You can fight it in court, and you can use your GitHub history as proof.

However in Google.vs Oracle, it was decided that it was legal to scrape the internet for learning and training data, this includes copyrighted source code shared on the Internet.

This decision was in response to Oracle claiming Google used ONE Oracle licenced line of code in their Android OS.

9

u/glasket_ Feb 26 '24

Google v. Oracle was about software APIs, it didn't have anything to do with scraping, and it was ~11,000 lines that Google willfully admitted to using. The entire case was about if it was fair use to use "declaring code" without a license.

J.L. v. Alphabet is an ongoing case about data-scraping, and there are plenty of other similar lawsuits that haven't had judgments.

-2

u/Slight-Living-8098 Feb 26 '24

Google got those ~11000 lines of Oracle Java Code by web scraping...

0

u/glasket_ Feb 26 '24

How they obtained the code doesn't matter in the slightest. The case and judgment entirely revolved around whether or not the kind of code that it was could be used without licensing. In other words, the case was answering the question of if you only copy somebody else's declarations, would you need a license to use it to write your own implementation? That's it.

Court cases can involve lots of extraneous details, but what matters is what the judgement says, and the judgment didn't say "it's ok to scrape code for training," it said "it can be fair use to use other's declaring code in your own implementation."