I maintain a few small Apache 2 libraries, I'm not sure how I feel about my code being used for AI training data.
Would such a licence even makes sense? If not, what's the most permissive licence you could have that still restricts use of the code in AI training data?
And what might be some unintended consequences of restricting the ability for your code to be used in that way (assuming that's legally possible - and I do appreciate that it's probably practically impossible)