Almost direct copy of the code licensing policy