Code is also tricky: there are a finite number of ways to write an algorithm, and I’m sure both that multiple people have written the same version of left pad for example, and that it is not possible to copyright something small like that. When the code gets bigger, the likelihood of an llm spitting out large chunks of GPL’d code seems vanishingly small (without asking for something specific like that). Though I’d love to see examples to the contrary.
Though that is definitely a simpler prompt than I would have expected was necessary to get such a result. Thanks!
(The first example also isn’t the same code. It is very close, and definitely similar in style, but it isn’t clear that code would a)run, or b) would work as expected. I need to sleep though, so I’m not sure how much that matters.)
This isn't necessarily true. It's entirely possible for a model to regurgitate a chunk of GPL'd code without you knowing that's what it's done.