The code was taken down by a private company, freedom of speech is not protected on GitHub or Twitter. Additionally, American laws do not extend to other countries. It was the Dutch who arrested him.
You should start by understanding the basic facts and relations and not engage in hyperbole like "knowingly publishing open source software, that would be scary" because this is not at all what happened here.