You sure about that? You aren't allowed to read it outside of the license attached to it. Downloading pirated source code, reading it, and then typing it out from memory doesn't magically give you a right to use it in any way. I would argue the licenses attached to most copyrighted code are being violated the moment the code is scraped and replicated without permission.