Has anyone produced a legally watertight license or clause for other licenses that prevents code being used for training of copilot-like services?
The article addresses this in a number of ways. For example, > That rings a bit like the Facebook memes of yesteryear promising users that if they just copy and paste these magical sentences onto their timelines, then Facebook won’t be able to do something or other with their data or accounts.
The only legal way you can use copyrighted code is due to the license attached to it by the copyright holder.
If a license specifically prohibits copying the code for a purpose, then it is a violation of the copyright to copy the code for that purpose. You have no other legal way to do it.
These aren't magic words, they are legal obligations. Ok, well maybe legal obligations are magic words. But it is magic that works :). Otherwise things like GPL could not function.