News for hackers. Stuff that matters.
Re:Please don’t upload my code on GitHub by ignoramous on Monday May 08, 2023 @04:34AM (#35859361)
> If the author was a human, this would be a clear violation of the licence. The AI case is no different as far as I can tell.

We aren't talking verbatim generation of entire packages of code here, are we? Code snippets are surely covered under fair use?

Re:Please don’t upload my code on GitHub by logifail on Monday May 08, 2023 @04:37AM (#35859391)
> Code snippets are surely covered under fair use?

...for "purposes such as commentary, criticism, news reporting, and scholarly reports"? Sure.

For a commercial product? Best check with your lawyer...

Re:Please don’t upload my code on GitHub by az226 on Monday May 08, 2023 @04:43AM (#35859444)
Oracle would like to have a word..
Re:Please don’t upload my code on GitHub by afiori on Monday May 08, 2023 @04:51AM (#35859489)
It would almost surely be fair use to include a snippet of code from a different library in your (inline) documentation to argue that your code reimplements a bug for compatibility reasons.

In general it is not fair use if you are using the material for the same scope as the original author[0] or if you are doing it just to namedrop/quote/omage the original.

It is possible to argue that a snippet can be too small to be protected, but that would not be because of fair use.

[0] Suppose that some Author B did as above and copied a snippet of code in their docstring to exlain buggy behaviour of a library they were reimplementing. If you are then trying to reimplement B's libary you can copy the same snippet B copied, but you likely cannot copy the paragraph written by B where they explain the how and the why of the bug.

Re:Please don’t upload my code on GitHub by layer8 on Monday May 08, 2023 @09:12AM (#35861188)
The Fair Use concept is specific to the USA.