2 ms·
Say, I want to write a getter method like below: String getName() { return name; } Let us also assume that this snippet, unsurprisingly, has b
by noisy_boy 4y ago
Say, I want to write a getter method like below:
String getName() {
return name;
}
Let us also assume that this snippet, unsurprisingly, has been in several copyrighted repos that didn't grant Github the right to share this code.
So I start tying "getName" and copilot suggests the exact snippet above. If I use this snippet, is it plagiarism? Even though the above code is the most "obvious" way to write this getter and I would have written it this way even without copilot's suggestion? Or does the "uniqueness" or "non-trivial quantity" of the suggestions have any bearing in determining copyright violation? How/where do we draw the line?
- glouwbug 4y agoLucky for you if you, if you wrote a noise function that copilot returned as an implementation of Perlin noise you'd be breaching a _patent_! Said patent just expired a 20 year run, so you'll be okay this time!
- warkdarrior 4y agoClearly your code could be improved with some `Factory` objects and some dependency injection!