Just because code isn't copyleft doesn't mean it does not require attribution or consent to being scraped by LLMs!
Also, I don't think there's any model out there that has asked for permission for scraping, and if any claim they do, they're almost certainly liars.
In my opinion, you should ideally avoid LLMs if you can do the task yourself. It definitely has some genuine applications, especially translation, but functionally, ethically, and legally, it is not a suitable option for most people.