If you use my copyrighted (public) code to train your brain, and then produce new functions that do new things, there is no problem.
Replace "brain" with "AI" and you get my position on this (and a lot of others' positions). It seems to be a lot easier to transform art than code.