I wrote a paper on this in grad school. A few of these services (I cannot recall which and I don't have a copy of the paper handy) actually state in their ToS that you must include an OSI approved license in your repo.
> Can I use Google Code to host projects that aren't open source?
> Nope. Open source projects only.