In general the source for core components that can't really be used for anything else is AGPL, but all the generally reusable libraries are Apache 2 or similar. The goal is to share as much as possible, and let everybody access the source for everything, and fork for their own use or submit modifications or whatever, but without the risk that a proprietary product runs off with the core product in a different direction. Seems to be working reasonably so far!