All of my non-work AI coding is that open-source, so I'm happy to feed my data into the machine.
It's a win for me: my code goes into the training data, and my sessions are fed into future training data, making the model stronger at the type of work I do.
What about retaining or defending your license/copyright?