Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add functional tests. Add the artistic license and mozzila public lic…

…ense
  • Loading branch information...
commit 267dca59e5870e59d669ca506e43a885e1363875 1 parent a44a9e9
@kyleconroy authored
View
69 licenses/art-2.0.txt
@@ -0,0 +1,69 @@
+Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
+
+Preamble
+This license establishes the terms under which a given free software Package may be copied, modified, distributed, and/or redistributed. The intent is that the Copyright Holder maintains some artistic control over the development of that Package while still keeping the Package available as open source and free software.
+
+You are always permitted to make arrangements wholly outside of this license directly with the Copyright Holder of a given Package. If the terms of this license do not permit the full use that you propose to make of the Package, you should contact the Copyright Holder and seek a different licensing arrangement.
+
+Definitions
+"Copyright Holder" means the individual(s) or organization(s) named in the copyright notice for the entire Package.
+
+"Contributor" means any party that has contributed code or other material to the Package, in accordance with the Copyright Holder's procedures.
+
+"You" and "your" means any person who would like to copy, distribute, or modify the Package.
+
+"Package" means the collection of files distributed by the Copyright Holder, and derivatives of that collection and/or of those files. A given Package may consist of either the Standard Version, or a Modified Version.
+
+"Distribute" means providing a copy of the Package or making it accessible to anyone else, or in the case of a company or organization, to others outside of your company or organization.
+
+"Distributor Fee" means any fee that you charge for Distributing this Package or providing support for this Package to another party. It does not mean licensing fees.
+
+"Standard Version" refers to the Package if it has not been modified, or has been modified only in ways explicitly requested by the Copyright Holder.
+
+"Modified Version" means the Package, if it has been changed, and such changes were not explicitly requested by the Copyright Holder.
+
+"Original License" means this Artistic License as Distributed with the Standard Version of the Package, in its current version or as it may be modified by The Perl Foundation in the future.
+
+"Source" form means the source code, documentation source, and configuration files for the Package.
+
+"Compiled" form means the compiled bytecode, object code, binary, or any other form resulting from mechanical transformation or translation of the Source form.
+
+Permission for Use and Modification Without Distribution
+(1) You are permitted to use the Standard Version and create and use Modified Versions for any purpose without restriction, provided that you do not Distribute the Modified Version.
+
+Permissions for Redistribution of the Standard Version
+(2) You may Distribute verbatim copies of the Source form of the Standard Version of this Package in any medium without restriction, either gratis or for a Distributor Fee, provided that you duplicate all of the original copyright notices and associated disclaimers. At your discretion, such verbatim copies may or may not include a Compiled form of the Package.
+
+(3) You may apply any bug fixes, portability changes, and other modifications made available from the Copyright Holder. The resulting Package will still be considered the Standard Version, and as such will be subject to the Original License.
+
+Distribution of Modified Versions of the Package as Source
+(4) You may Distribute your Modified Version as Source (either gratis or for a Distributor Fee, and with or without a Compiled form of the Modified Version) provided that you clearly document how it differs from the Standard Version, including, but not limited to, documenting any non-standard features, executables, or modules, and provided that you do at least ONE of the following:
+
+(a) make the Modified Version available to the Copyright Holder of the Standard Version, under the Original License, so that the Copyright Holder may include your modifications in the Standard Version.
+(b) ensure that installation of your Modified Version does not prevent the user installing or running the Standard Version. In addition, the Modified Version must bear a name that is different from the name of the Standard Version.
+(c) allow anyone who receives a copy of the Modified Version to make the Source form of the Modified Version available to others under
+(i) the Original License or
+(ii) a license that permits the licensee to freely copy, modify and redistribute the Modified Version using the same licensing terms that apply to the copy that the licensee received, and requires that the Source form of the Modified Version, and of any works derived from it, be made freely available in that license fees are prohibited but Distributor Fees are allowed.
+Distribution of Compiled Forms of the Standard Version or Modified Versions without the Source
+(5) You may Distribute Compiled forms of the Standard Version without the Source, provided that you include complete instructions on how to get the Source of the Standard Version. Such instructions must be valid at the time of your distribution. If these instructions, at any time while you are carrying out such distribution, become invalid, you must provide new instructions on demand or cease further distribution. If you provide valid instructions or cease distribution within thirty days after you become aware that the instructions are invalid, then you do not forfeit any of your rights under this license.
+
+(6) You may Distribute a Modified Version in Compiled form without the Source, provided that you comply with Section 4 with respect to the Source of the Modified Version.
+
+Aggregating or Linking the Package
+(7) You may aggregate the Package (either the Standard Version or Modified Version) with other packages and Distribute the resulting aggregation provided that you do not charge a licensing fee for the Package. Distributor Fees are permitted, and licensing fees for other components in the aggregation are permitted. The terms of this license apply to the use and Distribution of the Standard or Modified Versions as included in the aggregation.
+
+(8) You are permitted to link Modified and Standard Versions with other works, to embed the Package in a larger work of your own, or to build stand-alone binary or bytecode versions of applications that include the Package, and Distribute the result without restriction, provided the result does not expose a direct interface to the Package.
+
+Items That are Not Considered Part of a Modified Version
+(9) Works (including, but not limited to, modules and scripts) that merely extend or make use of the Package, do not, by themselves, cause the Package to be a Modified Version. In addition, such works are not considered parts of the Package itself, and are not subject to the terms of this license.
+
+General Provisions
+(10) Any use, modification, and distribution of the Standard or Modified Versions is governed by this Artistic License. By using, modifying or distributing the Package, you accept this license. Do not use, modify, or distribute the Package, if you do not accept this license.
+
+(11) If your Modified Version has been derived from a Modified Version made by someone other than you, you are nevertheless required to ensure that your Modified Version complies with the requirements of this license.
+
+(12) This license does not grant you the right to use any trademark, service mark, tradename, or logo of the Copyright Holder.
+
+(13) This license includes the non-exclusive, worldwide, free-of-charge patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Package with respect to any patent claims licensable by the Copyright Holder that are necessarily infringed by the Package. If you institute patent litigation (including a cross-claim or counterclaim) against any party alleging that the Package constitutes direct or contributory patent infringement, then this Artistic License to you shall terminate on the date that such litigation is filed.
+
+(14) Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
1  licenses/bsd.txt
@@ -1,5 +1,4 @@
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
6 licenses/gpl-2.0.txt
@@ -1,5 +1,5 @@
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
+Everyone is permitted to copy and distribute verbatim copies
+of this license document, but changing it is not allowed.
Preamble
@@ -271,5 +271,3 @@ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
View
431 licenses/mpl.txt
@@ -0,0 +1,431 @@
+MOZILLA PUBLIC LICENSE
+ Version 1.1
+ ---------------
+1. Definitions.
+
+ 1.0.1. "Commercial Use" means distribution or otherwise making the
+ Covered Code available to a third party.
+
+ 1.1. "Contributor" means each entity that creates or contributes to
+ the creation of Modifications.
+
+ 1.2. "Contributor Version" means the combination of the Original
+ Code, prior Modifications used by a Contributor, and the Modifications
+ made by that particular Contributor.
+
+ 1.3. "Covered Code" means the Original Code or Modifications or the
+ combination of the Original Code and Modifications, in each case
+ including portions thereof.
+
+ 1.4. "Electronic Distribution Mechanism" means a mechanism generally
+ accepted in the software development community for the electronic
+ transfer of data.
+
+ 1.5. "Executable" means Covered Code in any form other than Source
+ Code.
+
+ 1.6. "Initial Developer" means the individual or entity identified
+ as the Initial Developer in the Source Code notice required by Exhibit
+ A.
+
+ 1.7. "Larger Work" means a work which combines Covered Code or
+ portions thereof with code not governed by the terms of this License.
+
+ 1.8. "License" means this document.
+
+ 1.8.1. "Licensable" means having the right to grant, to the maximum
+ extent possible, whether at the time of the initial grant or
+ subsequently acquired, any and all of the rights conveyed herein.
+
+ 1.9. "Modifications" means any addition to or deletion from the
+ substance or structure of either the Original Code or any previous
+ Modifications. When Covered Code is released as a series of files, a
+ Modification is:
+ A. Any addition to or deletion from the contents of a file
+ containing Original Code or previous Modifications.
+
+ B. Any new file that contains any part of the Original Code or
+ previous Modifications.
+
+ 1.10. "Original Code" means Source Code of computer software code
+ which is described in the Source Code notice required by Exhibit A as
+ Original Code, and which, at the time of its release under this
+ License is not already Covered Code governed by this License.
+
+ 1.10.1. "Patent Claims" means any patent claim(s), now owned or
+ hereafter acquired, including without limitation, method, process,
+ and apparatus claims, in any patent Licensable by grantor.
+
+ 1.11. "Source Code" means the preferred form of the Covered Code for
+ making modifications to it, including all modules it contains, plus
+ any associated interface definition files, scripts used to control
+ compilation and installation of an Executable, or source code
+ differential comparisons against either the Original Code or another
+ well known, available Covered Code of the Contributor's choice. The
+ Source Code can be in a compressed or archival form, provided the
+ appropriate decompression or de-archiving software is widely available
+ for no charge.
+
+ 1.12. "You" (or "Your") means an individual or a legal entity
+ exercising rights under, and complying with all of the terms of, this
+ License or a future version of this License issued under Section 6.1.
+ For legal entities, "You" includes any entity which controls, is
+ controlled by, or is under common control with You. For purposes of
+ this definition, "control" means (a) the power, direct or indirect,
+ to cause the direction or management of such entity, whether by
+ contract or otherwise, or (b) ownership of more than fifty percent
+ (50%) of the outstanding shares or beneficial ownership of such
+ entity.
+
+2. Source Code License.
+
+ 2.1. The Initial Developer Grant.
+ The Initial Developer hereby grants You a world-wide, royalty-free,
+ non-exclusive license, subject to third party intellectual property
+ claims:
+ (a) under intellectual property rights (other than patent or
+ trademark) Licensable by Initial Developer to use, reproduce,
+ modify, display, perform, sublicense and distribute the Original
+ Code (or portions thereof) with or without Modifications, and/or
+ as part of a Larger Work; and
+
+ (b) under Patents Claims infringed by the making, using or
+ selling of Original Code, to make, have made, use, practice,
+ sell, and offer for sale, and/or otherwise dispose of the
+ Original Code (or portions thereof).
+
+ (c) the licenses granted in this Section 2.1(a) and (b) are
+ effective on the date Initial Developer first distributes
+ Original Code under the terms of this License.
+
+ (d) Notwithstanding Section 2.1(b) above, no patent license is
+ granted: 1) for code that You delete from the Original Code; 2)
+ separate from the Original Code; or 3) for infringements caused
+ by: i) the modification of the Original Code or ii) the
+ combination of the Original Code with other software or devices.
+
+ 2.2. Contributor Grant.
+ Subject to third party intellectual property claims, each Contributor
+ hereby grants You a world-wide, royalty-free, non-exclusive license
+
+ (a) under intellectual property rights (other than patent or
+ trademark) Licensable by Contributor, to use, reproduce, modify,
+ display, perform, sublicense and distribute the Modifications
+ created by such Contributor (or portions thereof) either on an
+ unmodified basis, with other Modifications, as Covered Code
+ and/or as part of a Larger Work; and
+
+ (b) under Patent Claims infringed by the making, using, or
+ selling of Modifications made by that Contributor either alone
+ and/or in combination with its Contributor Version (or portions
+ of such combination), to make, use, sell, offer for sale, have
+ made, and/or otherwise dispose of: 1) Modifications made by that
+ Contributor (or portions thereof); and 2) the combination of
+ Modifications made by that Contributor with its Contributor
+ Version (or portions of such combination).
+
+ (c) the licenses granted in Sections 2.2(a) and 2.2(b) are
+ effective on the date Contributor first makes Commercial Use of
+ the Covered Code.
+
+ (d) Notwithstanding Section 2.2(b) above, no patent license is
+ granted: 1) for any code that Contributor has deleted from the
+ Contributor Version; 2) separate from the Contributor Version;
+ 3) for infringements caused by: i) third party modifications of
+ Contributor Version or ii) the combination of Modifications made
+ by that Contributor with other software (except as part of the
+ Contributor Version) or other devices; or 4) under Patent Claims
+ infringed by Covered Code in the absence of Modifications made by
+ that Contributor.
+
+3. Distribution Obligations.
+
+ 3.1. Application of License.
+ The Modifications which You create or to which You contribute are
+ governed by the terms of this License, including without limitation
+ Section 2.2. The Source Code version of Covered Code may be
+ distributed only under the terms of this License or a future version
+ of this License released under Section 6.1, and You must include a
+ copy of this License with every copy of the Source Code You
+ distribute. You may not offer or impose any terms on any Source Code
+ version that alters or restricts the applicable version of this
+ License or the recipients' rights hereunder. However, You may include
+ an additional document offering the additional rights described in
+ Section 3.5.
+
+ 3.2. Availability of Source Code.
+ Any Modification which You create or to which You contribute must be
+ made available in Source Code form under the terms of this License
+ either on the same media as an Executable version or via an accepted
+ Electronic Distribution Mechanism to anyone to whom you made an
+ Executable version available; and if made available via Electronic
+ Distribution Mechanism, must remain available for at least twelve (12)
+ months after the date it initially became available, or at least six
+ (6) months after a subsequent version of that particular Modification
+ has been made available to such recipients. You are responsible for
+ ensuring that the Source Code version remains available even if the
+ Electronic Distribution Mechanism is maintained by a third party.
+
+ 3.3. Description of Modifications.
+ You must cause all Covered Code to which You contribute to contain a
+ file documenting the changes You made to create that Covered Code and
+ the date of any change. You must include a prominent statement that
+ the Modification is derived, directly or indirectly, from Original
+ Code provided by the Initial Developer and including the name of the
+ Initial Developer in (a) the Source Code, and (b) in any notice in an
+ Executable version or related documentation in which You describe the
+ origin or ownership of the Covered Code.
+
+ 3.4. Intellectual Property Matters
+ (a) Third Party Claims.
+ If Contributor has knowledge that a license under a third party's
+ intellectual property rights is required to exercise the rights
+ granted by such Contributor under Sections 2.1 or 2.2,
+ Contributor must include a text file with the Source Code
+ distribution titled "LEGAL" which describes the claim and the
+ party making the claim in sufficient detail that a recipient will
+ know whom to contact. If Contributor obtains such knowledge after
+ the Modification is made available as described in Section 3.2,
+ Contributor shall promptly modify the LEGAL file in all copies
+ Contributor makes available thereafter and shall take other steps
+ (such as notifying appropriate mailing lists or newsgroups)
+ reasonably calculated to inform those who received the Covered
+ Code that new knowledge has been obtained.
+
+ (b) Contributor APIs.
+ If Contributor's Modifications include an application programming
+ interface and Contributor has knowledge of patent licenses which
+ are reasonably necessary to implement that API, Contributor must
+ also include this information in the LEGAL file.
+
+ (c) Representations.
+ Contributor represents that, except as disclosed pursuant to
+ Section 3.4(a) above, Contributor believes that Contributor's
+ Modifications are Contributor's original creation(s) and/or
+ Contributor has sufficient rights to grant the rights conveyed by
+ this License.
+
+ 3.5. Required Notices.
+ You must duplicate the notice in Exhibit A in each file of the Source
+ Code. If it is not possible to put such notice in a particular Source
+ Code file due to its structure, then You must include such notice in a
+ location (such as a relevant directory) where a user would be likely
+ to look for such a notice. If You created one or more Modification(s)
+ You may add your name as a Contributor to the notice described in
+ Exhibit A. You must also duplicate this License in any documentation
+ for the Source Code where You describe recipients' rights or ownership
+ rights relating to Covered Code. You may choose to offer, and to
+ charge a fee for, warranty, support, indemnity or liability
+ obligations to one or more recipients of Covered Code. However, You
+ may do so only on Your own behalf, and not on behalf of the Initial
+ Developer or any Contributor. You must make it absolutely clear than
+ any such warranty, support, indemnity or liability obligation is
+ offered by You alone, and You hereby agree to indemnify the Initial
+ Developer and every Contributor for any liability incurred by the
+ Initial Developer or such Contributor as a result of warranty,
+ support, indemnity or liability terms You offer.
+
+ 3.6. Distribution of Executable Versions.
+ You may distribute Covered Code in Executable form only if the
+ requirements of Section 3.1-3.5 have been met for that Covered Code,
+ and if You include a notice stating that the Source Code version of
+ the Covered Code is available under the terms of this License,
+ including a description of how and where You have fulfilled the
+ obligations of Section 3.2. The notice must be conspicuously included
+ in any notice in an Executable version, related documentation or
+ collateral in which You describe recipients' rights relating to the
+ Covered Code. You may distribute the Executable version of Covered
+ Code or ownership rights under a license of Your choice, which may
+ contain terms different from this License, provided that You are in
+ compliance with the terms of this License and that the license for the
+ Executable version does not attempt to limit or alter the recipient's
+ rights in the Source Code version from the rights set forth in this
+ License. If You distribute the Executable version under a different
+ license You must make it absolutely clear that any terms which differ
+ from this License are offered by You alone, not by the Initial
+ Developer or any Contributor. You hereby agree to indemnify the
+ Initial Developer and every Contributor for any liability incurred by
+ the Initial Developer or such Contributor as a result of any such
+ terms You offer.
+
+ 3.7. Larger Works.
+ You may create a Larger Work by combining Covered Code with other code
+ not governed by the terms of this License and distribute the Larger
+ Work as a single product. In such a case, You must make sure the
+ requirements of this License are fulfilled for the Covered Code.
+
+4. Inability to Comply Due to Statute or Regulation.
+
+ If it is impossible for You to comply with any of the terms of this
+ License with respect to some or all of the Covered Code due to
+ statute, judicial order, or regulation then You must: (a) comply with
+ the terms of this License to the maximum extent possible; and (b)
+ describe the limitations and the code they affect. Such description
+ must be included in the LEGAL file described in Section 3.4 and must
+ be included with all distributions of the Source Code. Except to the
+ extent prohibited by statute or regulation, such description must be
+ sufficiently detailed for a recipient of ordinary skill to be able to
+ understand it.
+
+5. Application of this License.
+
+ This License applies to code to which the Initial Developer has
+ attached the notice in Exhibit A and to related Covered Code.
+
+6. Versions of the License.
+
+ 6.1. New Versions.
+ Netscape Communications Corporation ("Netscape") may publish revised
+ and/or new versions of the License from time to time. Each version
+ will be given a distinguishing version number.
+
+ 6.2. Effect of New Versions.
+ Once Covered Code has been published under a particular version of the
+ License, You may always continue to use it under the terms of that
+ version. You may also choose to use such Covered Code under the terms
+ of any subsequent version of the License published by Netscape. No one
+ other than Netscape has the right to modify the terms applicable to
+ Covered Code created under this License.
+
+ 6.3. Derivative Works.
+ If You create or use a modified version of this License (which you may
+ only do in order to apply it to code which is not already Covered Code
+ governed by this License), You must (a) rename Your license so that
+ the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape",
+ "MPL", "NPL" or any confusingly similar phrase do not appear in your
+ license (except to note that your license differs from this License)
+ and (b) otherwise make it clear that Your version of the license
+ contains terms which differ from the Mozilla Public License and
+ Netscape Public License. (Filling in the name of the Initial
+ Developer, Original Code or Contributor in the notice described in
+ Exhibit A shall not of themselves be deemed to be modifications of
+ this License.)
+
+7. DISCLAIMER OF WARRANTY.
+
+ COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
+ DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
+ THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
+ IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
+ YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
+ COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
+ OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
+ ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
+
+8. TERMINATION.
+
+ 8.1. This License and the rights granted hereunder will terminate
+ automatically if You fail to comply with terms herein and fail to cure
+ such breach within 30 days of becoming aware of the breach. All
+ sublicenses to the Covered Code which are properly granted shall
+ survive any termination of this License. Provisions which, by their
+ nature, must remain in effect beyond the termination of this License
+ shall survive.
+
+ 8.2. If You initiate litigation by asserting a patent infringement
+ claim (excluding declatory judgment actions) against Initial Developer
+ or a Contributor (the Initial Developer or Contributor against whom
+ You file such action is referred to as "Participant") alleging that:
+
+ (a) such Participant's Contributor Version directly or indirectly
+ infringes any patent, then any and all rights granted by such
+ Participant to You under Sections 2.1 and/or 2.2 of this License
+ shall, upon 60 days notice from Participant terminate prospectively,
+ unless if within 60 days after receipt of notice You either: (i)
+ agree in writing to pay Participant a mutually agreeable reasonable
+ royalty for Your past and future use of Modifications made by such
+ Participant, or (ii) withdraw Your litigation claim with respect to
+ the Contributor Version against such Participant. If within 60 days
+ of notice, a reasonable royalty and payment arrangement are not
+ mutually agreed upon in writing by the parties or the litigation claim
+ is not withdrawn, the rights granted by Participant to You under
+ Sections 2.1 and/or 2.2 automatically terminate at the expiration of
+ the 60 day notice period specified above.
+
+ (b) any software, hardware, or device, other than such Participant's
+ Contributor Version, directly or indirectly infringes any patent, then
+ any rights granted to You by such Participant under Sections 2.1(b)
+ and 2.2(b) are revoked effective as of the date You first made, used,
+ sold, distributed, or had made, Modifications made by that
+ Participant.
+
+ 8.3. If You assert a patent infringement claim against Participant
+ alleging that such Participant's Contributor Version directly or
+ indirectly infringes any patent where such claim is resolved (such as
+ by license or settlement) prior to the initiation of patent
+ infringement litigation, then the reasonable value of the licenses
+ granted by such Participant under Sections 2.1 or 2.2 shall be taken
+ into account in determining the amount or value of any payment or
+ license.
+
+ 8.4. In the event of termination under Sections 8.1 or 8.2 above,
+ all end user license agreements (excluding distributors and resellers)
+ which have been validly granted by You or any distributor hereunder
+ prior to termination shall survive termination.
+
+9. LIMITATION OF LIABILITY.
+
+ UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
+ (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL
+ DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
+ OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR
+ ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
+ CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL,
+ WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
+ COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
+ INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
+ LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
+ RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
+ PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
+ EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO
+ THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
+
+10. U.S. GOVERNMENT END USERS.
+
+ The Covered Code is a "commercial item," as that term is defined in
+ 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
+ software" and "commercial computer software documentation," as such
+ terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
+ C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
+ all U.S. Government End Users acquire Covered Code with only those
+ rights set forth herein.
+
+11. MISCELLANEOUS.
+
+ This License represents the complete agreement concerning subject
+ matter hereof. If any provision of this License is held to be
+ unenforceable, such provision shall be reformed only to the extent
+ necessary to make it enforceable. This License shall be governed by
+ California law provisions (except to the extent applicable law, if
+ any, provides otherwise), excluding its conflict-of-law provisions.
+ With respect to disputes in which at least one party is a citizen of,
+ or an entity chartered or registered to do business in the United
+ States of America, any litigation relating to this License shall be
+ subject to the jurisdiction of the Federal Courts of the Northern
+ District of California, with venue lying in Santa Clara County,
+ California, with the losing party responsible for costs, including
+ without limitation, court costs and reasonable attorneys' fees and
+ expenses. The application of the United Nations Convention on
+ Contracts for the International Sale of Goods is expressly excluded.
+ Any law or regulation which provides that the language of a contract
+ shall be construed against the drafter shall not apply to this
+ License.
+
+12. RESPONSIBILITY FOR CLAIMS.
+
+ As between Initial Developer and the Contributors, each party is
+ responsible for claims and damages arising, directly or indirectly,
+ out of its utilization of rights under this License and You agree to
+ work with Initial Developer and Contributors to distribute such
+ responsibility on an equitable basis. Nothing herein is intended or
+ shall be deemed to constitute any admission of liability.
+
+13. MULTIPLE-LICENSED CODE.
+
+ Initial Developer may designate portions of the Covered Code as
+ "Multiple-Licensed". "Multiple-Licensed" means that the Initial
+ Developer permits you to utilize portions of the Covered Code under
+ Your choice of the NPL or the alternative licenses, if any, specified
+ by the Initial Developer in the file described in Exhibit A.
View
307 tests/test_repos.py
@@ -0,0 +1,307 @@
+import web
+from nose.tools import assert_equals
+
+def test_timburks_nu():
+ msg = web.get_license('timburks', 'nu')
+ assert_equals('Apache License 2.0', msg)
+
+def test_sstephenson_prototype():
+ msg = web.get_license('sstephenson', 'prototype')
+ assert_equals('MIT License', msg)
+
+def test_FooBarWidget_passenger():
+ msg = web.get_license('FooBarWidget', 'passenger')
+ assert_equals('MIT License', msg)
+
+def test_madrobby_scriptaculous():
+ msg = web.get_license('madrobby', 'scriptaculous')
+ assert_equals('MIT License', msg)
+
+def test_rails_rails():
+ msg = web.get_license('rails', 'rails')
+ assert_equals('MIT License', msg)
+
+def test_mootools_mootoolscore():
+ msg = web.get_license('mootools', 'mootools-core')
+ assert_equals('MIT License', msg)
+
+def test_mirrors_linux26():
+ msg = web.get_license('mirrors', 'linux-2.6')
+ assert_equals('GNU General Public License Version 2', msg)
+
+def test_dpp_liftweb():
+ msg = web.get_license('dpp', 'liftweb')
+ assert_equals('No License Found', msg)
+
+def test_dima_restfulx_framework():
+ msg = web.get_license('dima', 'restfulx_framework')
+ assert_equals('MIT License', msg)
+
+def test_pieter_gitx():
+ msg = web.get_license('pieter', 'gitx')
+ assert_equals('GNU General Public License Version 2', msg)
+
+def test_pokeb_asihttprequest():
+ msg = web.get_license('pokeb', 'asi-http-request')
+ assert_equals('Modified BSD License', msg)
+
+def test_git_git():
+ msg = web.get_license('git', 'git')
+ assert_equals('GNU General Public License Version 2', msg)
+
+def test_sintaxi_phonegap():
+ msg = web.get_license('sintaxi', 'phonegap')
+ assert_equals('MIT License', msg)
+
+def test_DmitryBaranovskiy_raphael():
+ msg = web.get_license('DmitryBaranovskiy', 'raphael')
+ assert_equals('MIT License', msg)
+
+def test_TwP_turn():
+ msg = web.get_license('TwP', 'turn')
+ assert_equals('GNU General Public License Version 2', msg)
+
+def test_rhomobile_rhodes():
+ msg = web.get_license('rhomobile', 'rhodes')
+ assert_equals('MIT License', msg)
+
+def test_webpy_webpy():
+ msg = web.get_license('webpy', 'webpy')
+ assert_equals('No License Found', msg)
+
+def test_sorccu_cufon():
+ msg = web.get_license('sorccu', 'cufon')
+ assert_equals('MIT License', msg)
+
+def test_django_django():
+ msg = web.get_license('django', 'django')
+ assert_equals('Modified BSD License', msg)
+
+def test_technomancy_emacsstarterkit():
+ msg = web.get_license('technomancy', 'emacs-starter-kit')
+ assert_equals('GNU General Public License Version 3', msg)
+
+def test_yui_yui3():
+ msg = web.get_license('yui', 'yui3')
+ assert_equals('MIT License', msg)
+
+def test_lloyd_yajl():
+ msg = web.get_license('lloyd', 'yajl')
+ assert_equals('ISC License', msg)
+
+def test_djmitche_buildbot():
+ msg = web.get_license('djmitche', 'buildbot')
+ assert_equals('No License Found', msg)
+
+def test_sinatra_sinatra():
+ msg = web.get_license('sinatra', 'sinatra')
+ assert_equals('MIT License', msg)
+
+def test_mongodb_mongo():
+ msg = web.get_license('mongodb', 'mongo')
+ assert_equals('GNU Affero General Public License Version 3', msg)
+
+def test_darwin_visor():
+ msg = web.get_license('darwin', 'visor')
+ assert_equals('Apache License 2.0', msg)
+
+def test_rentzsch_clicktoflash():
+ msg = web.get_license('rentzsch', 'clicktoflash')
+ assert_equals('No License Found', msg)
+
+def test_rakudo_rakudo():
+ msg = web.get_license('rakudo', 'rakudo')
+ assert_equals('Artistic License Version 2.0', msg)
+
+def test_facebook_three20():
+ msg = web.get_license('facebook', 'three20')
+ assert_equals('Apache License 2.0', msg)
+
+def test_klacke_yaws():
+ msg = web.get_license('klacke', 'yaws')
+ assert_equals('Modified BSD License', msg)
+
+def test_petdance_ack():
+ msg = web.get_license('petdance', 'ack')
+ assert_equals('Artistic License Version 2.0', msg)
+
+def test_antirez_redis():
+ msg = web.get_license('antirez', 'redis')
+ assert_equals('Modified BSD License', msg)
+
+def test_apache_solr():
+ msg = web.get_license('apache', 'solr')
+ assert_equals('No License Found', msg)
+
+def test_dbloete_ioctocat():
+ msg = web.get_license('dbloete', 'ioctocat')
+ assert_equals('MIT License', msg)
+
+def test_pinax_pinax():
+ msg = web.get_license('pinax', 'pinax')
+ assert_equals('MIT License', msg)
+
+def test_davidswelt_aquamacsemacs():
+ msg = web.get_license('davidswelt', 'aquamacs-emacs')
+ assert_equals('GNU General Public License Version 3', msg)
+
+def test_jquery_jquery():
+ msg = web.get_license('jquery', 'jquery')
+ assert_equals('GNU General Public License Version 2', msg)
+
+def test_memcached_memcached():
+ msg = web.get_license('memcached', 'memcached')
+ assert_equals('Modified BSD License', msg)
+
+def test_Objective3_ElementParser():
+ msg = web.get_license('Objective3', 'ElementParser')
+ assert_equals('No License Found', msg)
+
+def test_atebits_SimFinger():
+ msg = web.get_license('atebits', 'SimFinger')
+ assert_equals('No License Found', msg)
+
+def test_apache_httpd():
+ msg = web.get_license('apache', 'httpd')
+ assert_equals('MIT License', msg)
+
+def test_mxcl_homebrew():
+ msg = web.get_license('mxcl', 'homebrew')
+ assert_equals('No License Found', msg)
+
+def test_apache_couchdb():
+ msg = web.get_license('apache', 'couchdb')
+ assert_equals('MIT License', msg)
+
+def test_apache_cassandra():
+ msg = web.get_license('apache', 'cassandra')
+ assert_equals('Apache License 2.0', msg)
+
+def test_voldemort_voldemort():
+ msg = web.get_license('voldemort', 'voldemort')
+ assert_equals('Apache License 2.0', msg)
+
+def test_richhickey_clojure():
+ msg = web.get_license('richhickey', 'clojure')
+ assert_equals('Modified BSD License', msg)
+
+def test_henon_GitSharp():
+ msg = web.get_license('henon', 'GitSharp')
+ assert_equals('No License Found', msg)
+
+def test_rupa_z():
+ msg = web.get_license('rupa', 'z')
+ assert_equals('No License Found', msg)
+
+def test_probablycorey_wax():
+ msg = web.get_license('probablycorey', 'wax')
+ assert_equals('MIT License', msg)
+
+def test_omz_AppSalesMobile():
+ msg = web.get_license('omz', 'AppSales-Mobile')
+ assert_equals('BSD-2 License', msg)
+
+def test_greasemonkey_greasemonkey():
+ msg = web.get_license('greasemonkey', 'greasemonkey')
+ assert_equals('Mozilla Public License', msg)
+
+def test_gimite_websocketjs():
+ msg = web.get_license('gimite', 'web-socket-js')
+ assert_equals('No License Found', msg)
+
+def test_slact_nginx_http_push_module():
+ msg = web.get_license('slact', 'nginx_http_push_module')
+ assert_equals('No License Found', msg)
+
+def test_andymatuschak_Sparkle():
+ msg = web.get_license('andymatuschak', 'Sparkle')
+ assert_equals('MIT License', msg)
+
+def test_v8_v8():
+ msg = web.get_license('v8', 'v8')
+ assert_equals('Modified BSD License', msg)
+
+def test_wayneeseguin_rvm():
+ msg = web.get_license('wayneeseguin', 'rvm')
+ assert_equals('Apache License 2.0', msg)
+
+def test_documentcloud_cloudcrowd():
+ msg = web.get_license('documentcloud', 'cloud-crowd')
+ assert_equals('MIT License', msg)
+
+def test_facebook_tornado():
+ msg = web.get_license('facebook', 'tornado')
+ assert_equals('No License Found', msg)
+
+def test_apenwarr_bup():
+ msg = web.get_license('apenwarr', 'bup')
+ assert_equals('No License Found', msg)
+
+def test_documentcloud_underscore():
+ msg = web.get_license('documentcloud', 'underscore')
+ assert_equals('MIT License', msg)
+
+def test_markhuot_projectplus():
+ msg = web.get_license('markhuot', 'projectplus')
+ assert_equals('No License Found', msg)
+
+def test_erlang_otp():
+ msg = web.get_license('erlang', 'otp')
+ assert_equals('No License Found', msg)
+
+def test_ice799_memprof():
+ msg = web.get_license('ice799', 'memprof')
+ assert_equals('No License Found', msg)
+
+def test_jashkenas_coffeescript():
+ msg = web.get_license('jashkenas', 'coffee-script')
+ assert_equals('MIT License', msg)
+
+def test_tobeytailor_gordon():
+ msg = web.get_license('tobeytailor', 'gordon')
+ assert_equals('MIT License', msg)
+
+def test_facebook_hiphopphp():
+ msg = web.get_license('facebook', 'hiphop-php')
+ assert_equals('No License Found', msg)
+
+def test_symfony_symfony():
+ msg = web.get_license('symfony', 'symfony')
+ assert_equals('MIT License', msg)
+
+def test_phpbb_phpbb():
+ msg = web.get_license('phpbb', 'phpbb')
+ assert_equals('GNU General Public License Version 3', msg)
+
+def test_tinymce_tinymce():
+ msg = web.get_license('tinymce', 'tinymce')
+ assert_equals('No License Found', msg)
+
+def test_processone_ejabberd():
+ msg = web.get_license('processone', 'ejabberd')
+ assert_equals('GNU General Public License Version 2', msg)
+
+def test_ruby_ruby():
+ msg = web.get_license('ruby', 'ruby')
+ assert_equals('No License Found', msg)
+
+def test_alandipert_step():
+ msg = web.get_license('alandipert', 'step')
+ assert_equals('No License Found', msg)
+
+def test_postgres_postgres():
+ msg = web.get_license('postgres', 'postgres')
+ assert_equals('No License Found', msg)
+
+def test_robhudson_djangodebugtoolbar():
+ msg = web.get_license('robhudson', 'django-debug-toolbar')
+ assert_equals('Modified BSD License', msg)
+
+def test_280north_cappuccino():
+ msg = web.get_license('280north', 'cappuccino')
+ assert_equals('No License Found', msg)
+
+def test_ry_node():
+ msg = web.get_license('ry', 'node')
+ assert_equals('MIT License', msg)
+
View
45 web.py
@@ -10,8 +10,11 @@
blob_url = "https://api.github.com/repos/{}/{}/git/blobs/{}"
-def clean(blob):
- return re.sub(r"\s|\*|\"|[0-9]\.|'", "", blob).lower()
+def clean(blob, remove_numbers=True):
+ if remove_numbers:
+ return re.sub(r"\s|\*|\"|[0-9]\.|'", "", blob).lower()
+ else:
+ return re.sub(r"\s|\*|\"|\.|'", "", blob).lower()
LICENSES = [
@@ -41,6 +44,11 @@ def clean(blob):
'text': clean(open("licenses/gpl-2.0.txt").read()),
},
{
+ 'name': 'Modified BSD License',
+ 'shorthand': 'Modified BSD',
+ 'texts': clean(open("licenses/modbsd.txt").read()).split("<split>"),
+ },
+ {
'name': 'GNU Affero General Public License Version 3',
'shorthand': 'AGPL-3.0',
'text': clean(open("licenses/agpl-3.0.txt").read()),
@@ -51,20 +59,27 @@ def clean(blob):
'text': clean(open("licenses/gpl-3.0.txt").read()),
},
{
- 'name': 'BSD License',
+ 'name': 'BSD-2 License',
'shorthand': 'BSD License',
'text': clean(open("licenses/bsd.txt").read()),
},
{
- 'name': 'Modified BSD License',
- 'shorthand': 'Modified BSD',
- 'texts': clean(open("licenses/modbsd.txt").read()).split("<split>"),
+ 'name': 'Mozilla Public License',
+ 'shorthand': 'MPL License',
+ 'text': clean(open("licenses/mpl.txt").read()),
},
+ {
+ 'name': 'Artistic License Version 2.0',
+ 'shorthand': 'Artistic-2.0',
+ 'text': clean(open("licenses/art-2.0.txt").read()),
+ 'url': 'http://www.opensource.org/licenses/Artistic-2.0',
+ }
]
def is_license(path):
- return "copying" in path.lower() or "license" in path.lower()
-
+ return ("copying" in path.lower() or
+ "license" in path.lower() or
+ "readme" in path.lower())
def get_branch(repo, branches):
for branch in branches:
@@ -76,7 +91,7 @@ def get_branch(repo, branches):
def find_license_file(tree):
for blob in tree['tree']:
if is_license(blob['path']):
- return blob
+ yield blob
def find_license_by_name(tree):
for blob in tree['tree']:
@@ -105,9 +120,9 @@ def license_type(blob):
def license_mention(blob):
- blob = clean(blob)
+ blob = clean(blob, remove_numbers=False)
for license in LICENSES:
- if clean(license['name']) in blob:
+ if clean(license['name'], remove_numbers=False) in blob:
return license['name']
@@ -126,14 +141,14 @@ def get_license(user, repo_name):
branches = get(repo['url'] + "/branches")
branch = get_branch(repo, branches)
tree = get(tree_url.format(user, repo_name, branch['commit']['sha']))
- license = find_license_file(tree)
- if license:
+ for license in find_license_file(tree):
resp = requests.get(license['url'],
headers={'Accept': 'application/vnd.github.v3.raw'})
- return license_type(resp.text)
+ ltype = license_type(resp.text)
+ if ltype != 'Unknown License':
+ return ltype
-
specific_name = find_license_by_name(tree)
if specific_name:
Please sign in to comment.
Something went wrong with that request. Please try again.