Re:GitHub scraped your code. And they plan to charge you
by fartcannon on Saturday July 03, 2021 @04:28PM
(#27724624)
As others have already told you in this thread, substantial portions can mean the few lines of significant algorithm wrapped in boiler plate. So either way, Microsoft would have to prove the MIT code was not substantial.
The MIT license doesn't require attribution for small snippets, only for full copies or substantial portions.