Copyright Violation For Every Repository Without a License
Repositories that have no license information are All Rights Reserved by default. The GitHub ToS only requires repository owners to give users the permission to press the fork button, and this does not include a license to distribute the repository elsewhere. Redistributing repositories without a license is copyright violation. You are liable for damages caused by millions of instances of copyright violation. It's legally dubious but unclear whether the trained LLM constitutes a derivative work of the training data, but since you are redistributing only mildly modified copyrighted code, you are committing copyright violations. You must remove every file that is not covered by a permissive license. This is also obviously not fair use or fair dealing under any interpretation.