People pontificating about whether codebases containing LLM-generated code are subject to IP protection all seem to be forgetting the key point that the law always sides with capital
When big media decided that pirating an mp3 file should be a criminal (not civil) offence, the law sided with them
When big tech decided that pirating every piece of media on the internet for AI training was fair use, the law sided with them