US Copyright law states that fair use and derivative work are not infringing - and said law supersedes licensing.
It says no such thing:
Since I have two free complimentary months I decided to sign up even though I'm not super thrilled with it (see previous comments). I was given two options:
1. allow code from public repositories 2. allow copilot to learn from my code
I disabled both of these options. Presumably I am now using an AI model which learns and suggests based on the context of my project.
I just gave it a test run. I have a function with this code:
if (!card.IsFaceUp && !card.IsBlocked)
{
FlipTableauCard(card);
card.SetIsBlocked(false);
break;
}
I then added this comment afterwards: // if the card is face up, flip it
And this is what copilot produced: if (card.IsFaceUp)
{
FlipTableauCard(card);
card.SetIsBlocked(false);
}
I'm pretty positive that is code generated based on my comment and the surrounding code.The "allow code from public repositories" doesn't do what you think it does. All it does is add an extra filtering step to avoid producing code found in it's training set verbatim. The model you are using was still trained on those repositories, it's not limited to your project.
But my comment still stands. You can turn off the verbatim copying feature that people keep talking about and the "AI model" will generate code based on your own codebase.
When I'm using it with Unity or a JS project that has NPM modules, does it use those as context to fill in some code as well? No clue.
Was it trained on open source code and is that ethically and legally shady? Yes.
Is it copying verbatim at this point? No.
Does it help me be a better programmer and will I pay for it? No and only if I forget to cancel my trial subscription.