Would you allow your closed source code to be used for AI training?
Maybe only 10% of your closed source code is sensitive and so you might allow 90% that is not sensitive to be used for AI training?
If they paid me enough, sure.
I'd need an upfront payment for a perpetual license for any use,
and recurring residuals as a % of revenue generated.