I would like to know this too. I understand that GitHub is a private company and you have to accept their T&C, but surely they aren't allowed to use source code found elsewhere on the internet to train their ML models without asking for permission first unless it's a B2B cooperation such as with Stackoverflow.