This lawyer does not understand GitHub. Half of the code is uploaded by third parties who do not hold any copyright.
These people either think that for ideological reasons everything should be on GitHub or they want Google links to their companies.
Furthermore "improve their services" reasonably only applies to their core service that was present when people agreed to the TOS and not to some new code laundering AI.
It is frightening that this matter could be decided by such lawyers in the US. People should just all leave GitHub, then Microsoft can play with its own AI and enjoy the silence.