Package Products :: Package ZenModel :: Module ExampleLicenses
[hide private]
[frames] | no frames]

Source Code for Module Products.ZenModel.ExampleLicenses

   1  ############################################################################## 
   2  #  
   3  # Copyright (C) Zenoss, Inc. 2011, all rights reserved. 
   4  #  
   5  # This content is made available according to terms specified in 
   6  # License.zenoss under the directory where your Zenoss product is installed. 
   7  #  
   8  ############################################################################## 
   9   
  10   
  11  # The following licenses are only examples to be given to users who are 
  12  # creating their own content within Zenoss. 
  13   
  14   
  15  APACHE_2 = """ 
  16                                   Apache License 
  17                             Version 2.0, January 2004 
  18                          http://www.apache.org/licenses/ 
  19   
  20     TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 
  21   
  22     1. Definitions. 
  23   
  24        "License" shall mean the terms and conditions for use, reproduction, 
  25        and distribution as defined by Sections 1 through 9 of this document. 
  26   
  27        "Licensor" shall mean the copyright owner or entity authorized by 
  28        the copyright owner that is granting the License. 
  29   
  30        "Legal Entity" shall mean the union of the acting entity and all 
  31        other entities that control, are controlled by, or are under common 
  32        control with that entity. For the purposes of this definition, 
  33        "control" means (i) the power, direct or indirect, to cause the 
  34        direction or management of such entity, whether by contract or 
  35        otherwise, or (ii) ownership of fifty percent (50%%) or more of the 
  36        outstanding shares, or (iii) beneficial ownership of such entity. 
  37   
  38        "You" (or "Your") shall mean an individual or Legal Entity 
  39        exercising permissions granted by this License. 
  40   
  41        "Source" form shall mean the preferred form for making modifications, 
  42        including but not limited to software source code, documentation 
  43        source, and configuration files. 
  44   
  45        "Object" form shall mean any form resulting from mechanical 
  46        transformation or translation of a Source form, including but 
  47        not limited to compiled object code, generated documentation, 
  48        and conversions to other media types. 
  49   
  50        "Work" shall mean the work of authorship, whether in Source or 
  51        Object form, made available under the License, as indicated by a 
  52        copyright notice that is included in or attached to the work 
  53        (an example is provided in the Appendix below). 
  54   
  55        "Derivative Works" shall mean any work, whether in Source or Object 
  56        form, that is based on (or derived from) the Work and for which the 
  57        editorial revisions, annotations, elaborations, or other modifications 
  58        represent, as a whole, an original work of authorship. For the purposes 
  59        of this License, Derivative Works shall not include works that remain 
  60        separable from, or merely link (or bind by name) to the interfaces of, 
  61        the Work and Derivative Works thereof. 
  62   
  63        "Contribution" shall mean any work of authorship, including 
  64        the original version of the Work and any modifications or additions 
  65        to that Work or Derivative Works thereof, that is intentionally 
  66        submitted to Licensor for inclusion in the Work by the copyright owner 
  67        or by an individual or Legal Entity authorized to submit on behalf of 
  68        the copyright owner. For the purposes of this definition, "submitted" 
  69        means any form of electronic, verbal, or written communication sent 
  70        to the Licensor or its representatives, including but not limited to 
  71        communication on electronic mailing lists, source code control systems, 
  72        and issue tracking systems that are managed by, or on behalf of, the 
  73        Licensor for the purpose of discussing and improving the Work, but 
  74        excluding communication that is conspicuously marked or otherwise 
  75        designated in writing by the copyright owner as "Not a Contribution." 
  76   
  77        "Contributor" shall mean Licensor and any individual or Legal Entity 
  78        on behalf of whom a Contribution has been received by Licensor and 
  79        subsequently incorporated within the Work. 
  80   
  81     2. Grant of Copyright License. Subject to the terms and conditions of 
  82        this License, each Contributor hereby grants to You a perpetual, 
  83        worldwide, non-exclusive, no-charge, royalty-free, irrevocable 
  84        copyright license to reproduce, prepare Derivative Works of, 
  85        publicly display, publicly perform, sublicense, and distribute the 
  86        Work and such Derivative Works in Source or Object form. 
  87   
  88     3. Grant of Patent License. Subject to the terms and conditions of 
  89        this License, each Contributor hereby grants to You a perpetual, 
  90        worldwide, non-exclusive, no-charge, royalty-free, irrevocable 
  91        (except as stated in this section) patent license to make, have made, 
  92        use, offer to sell, sell, import, and otherwise transfer the Work, 
  93        where such license applies only to those patent claims licensable 
  94        by such Contributor that are necessarily infringed by their 
  95        Contribution(s) alone or by combination of their Contribution(s) 
  96        with the Work to which such Contribution(s) was submitted. If You 
  97        institute patent litigation against any entity (including a 
  98        cross-claim or counterclaim in a lawsuit) alleging that the Work 
  99        or a Contribution incorporated within the Work constitutes direct 
 100        or contributory patent infringement, then any patent licenses 
 101        granted to You under this License for that Work shall terminate 
 102        as of the date such litigation is filed. 
 103   
 104     4. Redistribution. You may reproduce and distribute copies of the 
 105        Work or Derivative Works thereof in any medium, with or without 
 106        modifications, and in Source or Object form, provided that You 
 107        meet the following conditions: 
 108   
 109        (a) You must give any other recipients of the Work or 
 110            Derivative Works a copy of this License; and 
 111   
 112        (b) You must cause any modified files to carry prominent notices 
 113            stating that You changed the files; and 
 114   
 115        (c) You must retain, in the Source form of any Derivative Works 
 116            that You distribute, all copyright, patent, trademark, and 
 117            attribution notices from the Source form of the Work, 
 118            excluding those notices that do not pertain to any part of 
 119            the Derivative Works; and 
 120   
 121        (d) If the Work includes a "NOTICE" text file as part of its 
 122            distribution, then any Derivative Works that You distribute must 
 123            include a readable copy of the attribution notices contained 
 124            within such NOTICE file, excluding those notices that do not 
 125            pertain to any part of the Derivative Works, in at least one 
 126            of the following places: within a NOTICE text file distributed 
 127            as part of the Derivative Works; within the Source form or 
 128            documentation, if provided along with the Derivative Works; or, 
 129            within a display generated by the Derivative Works, if and 
 130            wherever such third-party notices normally appear. The contents 
 131            of the NOTICE file are for informational purposes only and 
 132            do not modify the License. You may add Your own attribution 
 133            notices within Derivative Works that You distribute, alongside 
 134            or as an addendum to the NOTICE text from the Work, provided 
 135            that such additional attribution notices cannot be construed 
 136            as modifying the License. 
 137   
 138        You may add Your own copyright statement to Your modifications and 
 139        may provide additional or different license terms and conditions 
 140        for use, reproduction, or distribution of Your modifications, or 
 141        for any such Derivative Works as a whole, provided Your use, 
 142        reproduction, and distribution of the Work otherwise complies with 
 143        the conditions stated in this License. 
 144   
 145     5. Submission of Contributions. Unless You explicitly state otherwise, 
 146        any Contribution intentionally submitted for inclusion in the Work 
 147        by You to the Licensor shall be under the terms and conditions of 
 148        this License, without any additional terms or conditions. 
 149        Notwithstanding the above, nothing herein shall supersede or modify 
 150        the terms of any separate license agreement you may have executed 
 151        with Licensor regarding such Contributions. 
 152   
 153     6. Trademarks. This License does not grant permission to use the trade 
 154        names, trademarks, service marks, or product names of the Licensor, 
 155        except as required for reasonable and customary use in describing the 
 156        origin of the Work and reproducing the content of the NOTICE file. 
 157   
 158     7. Disclaimer of Warranty. Unless required by applicable law or 
 159        agreed to in writing, Licensor provides the Work (and each 
 160        Contributor provides its Contributions) on an "AS IS" BASIS, 
 161        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
 162        implied, including, without limitation, any warranties or conditions 
 163        of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 
 164        PARTICULAR PURPOSE. You are solely responsible for determining the 
 165        appropriateness of using or redistributing the Work and assume any 
 166        risks associated with Your exercise of permissions under this License. 
 167   
 168     8. Limitation of Liability. In no event and under no legal theory, 
 169        whether in tort (including negligence), contract, or otherwise, 
 170        unless required by applicable law (such as deliberate and grossly 
 171        negligent acts) or agreed to in writing, shall any Contributor be 
 172        liable to You for damages, including any direct, indirect, special, 
 173        incidental, or consequential damages of any character arising as a 
 174        result of this License or out of the use or inability to use the 
 175        Work (including but not limited to damages for loss of goodwill, 
 176        work stoppage, computer failure or malfunction, or any and all 
 177        other commercial damages or losses), even if such Contributor 
 178        has been advised of the possibility of such damages. 
 179   
 180     9. Accepting Warranty or Additional Liability. While redistributing 
 181        the Work or Derivative Works thereof, You may choose to offer, 
 182        and charge a fee for, acceptance of support, warranty, indemnity, 
 183        or other liability obligations and/or rights consistent with this 
 184        License. However, in accepting such obligations, You may act only 
 185        on Your own behalf and on Your sole responsibility, not on behalf 
 186        of any other Contributor, and only if You agree to indemnify, 
 187        defend, and hold each Contributor harmless for any liability 
 188        incurred by, or claims asserted against, such Contributor by reason 
 189        of your accepting any such warranty or additional liability. 
 190   
 191     END OF TERMS AND CONDITIONS 
 192   
 193     APPENDIX: How to apply the Apache License to your work. 
 194   
 195        To apply the Apache License to your work, attach the following 
 196        boilerplate notice, with the fields enclosed by brackets "[]" 
 197        replaced with your own identifying information. (Don't include 
 198        the brackets!)  The text should be enclosed in the appropriate 
 199        comment syntax for the file format. We also recommend that a 
 200        file or class name and description of purpose be included on the 
 201        same "printed page" as the copyright notice for easier 
 202        identification within third-party archives. 
 203   
 204     Copyright [yyyy] [name of copyright owner] 
 205   
 206     Licensed under the Apache License, Version 2.0 (the "License"); 
 207     you may not use this file except in compliance with the License. 
 208     You may obtain a copy of the License at 
 209   
 210         http://www.apache.org/licenses/LICENSE-2.0 
 211   
 212     Unless required by applicable law or agreed to in writing, software 
 213     distributed under the License is distributed on an "AS IS" BASIS, 
 214     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
 215     See the License for the specific language governing permissions and 
 216     limitations under the License. 
 217  """ 
 218   
 219   
 220  BSD_2_CLAUSE = """ 
 221  Copyright %(year)s %(author)s. All rights reserved. 
 222   
 223  Redistribution and use in source and binary forms, with or without modification, are 
 224  permitted provided that the following conditions are met: 
 225   
 226     1. Redistributions of source code must retain the above copyright notice, this list of 
 227        conditions and the following disclaimer. 
 228   
 229     2. Redistributions in binary form must reproduce the above copyright notice, this list 
 230        of conditions and the following disclaimer in the documentation and/or other materials 
 231        provided with the distribution. 
 232   
 233  THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED 
 234  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 
 235  FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR 
 236  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
 237  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
 238  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 
 239  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
 240  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 
 241  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
 242   
 243  The views and conclusions contained in the software and documentation are those of the 
 244  authors and should not be interpreted as representing official policies, either expressed 
 245  or implied, of <copyright holder>. 
 246  """ 
 247   
 248   
 249  BSD_3_CLAUSE = """ 
 250  Copyright (c) %(year)s %(author)s 
 251  All rights reserved. 
 252   
 253  Redistribution and use in source and binary forms, with or without 
 254  modification, are permitted provided that the following conditions are met: 
 255      * Redistributions of source code must retain the above copyright 
 256        notice, this list of conditions and the following disclaimer. 
 257      * Redistributions in binary form must reproduce the above copyright 
 258        notice, this list of conditions and the following disclaimer in the 
 259        documentation and/or other materials provided with the distribution. 
 260      * Neither the name of the <organization> nor the 
 261        names of its contributors may be used to endorse or promote products 
 262        derived from this software without specific prior written permission. 
 263   
 264  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
 265  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
 266  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
 267  DISCLAIMED. IN NO EVENT SHALL %(author)s BE LIABLE FOR ANY 
 268  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
 269  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
 270  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 
 271  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
 272  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
 273  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
 274  """ 
 275   
 276   
 277  AGPL_3 = """ 
 278                      GNU AFFERO GENERAL PUBLIC LICENSE 
 279                         Version 3, 19 November 2007 
 280   
 281   Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> 
 282   Everyone is permitted to copy and distribute verbatim copies 
 283   of this license document, but changing it is not allowed. 
 284   
 285                              Preamble 
 286   
 287    The GNU Affero General Public License is a free, copyleft license for 
 288  software and other kinds of works, specifically designed to ensure 
 289  cooperation with the community in the case of network server software. 
 290   
 291    The licenses for most software and other practical works are designed 
 292  to take away your freedom to share and change the works.  By contrast, 
 293  our General Public Licenses are intended to guarantee your freedom to 
 294  share and change all versions of a program--to make sure it remains free 
 295  software for all its users. 
 296   
 297    When we speak of free software, we are referring to freedom, not 
 298  price.  Our General Public Licenses are designed to make sure that you 
 299  have the freedom to distribute copies of free software (and charge for 
 300  them if you wish), that you receive source code or can get it if you 
 301  want it, that you can change the software or use pieces of it in new 
 302  free programs, and that you know you can do these things. 
 303   
 304    Developers that use our General Public Licenses protect your rights 
 305  with two steps: (1) assert copyright on the software, and (2) offer 
 306  you this License which gives you legal permission to copy, distribute 
 307  and/or modify the software. 
 308   
 309    A secondary benefit of defending all users' freedom is that 
 310  improvements made in alternate versions of the program, if they 
 311  receive widespread use, become available for other developers to 
 312  incorporate.  Many developers of free software are heartened and 
 313  encouraged by the resulting cooperation.  However, in the case of 
 314  software used on network servers, this result may fail to come about. 
 315  The GNU General Public License permits making a modified version and 
 316  letting the public access it on a server without ever releasing its 
 317  source code to the public. 
 318   
 319    The GNU Affero General Public License is designed specifically to 
 320  ensure that, in such cases, the modified source code becomes available 
 321  to the community.  It requires the operator of a network server to 
 322  provide the source code of the modified version running there to the 
 323  users of that server.  Therefore, public use of a modified version, on 
 324  a publicly accessible server, gives the public access to the source 
 325  code of the modified version. 
 326   
 327    An older license, called the Affero General Public License and 
 328  published by Affero, was designed to accomplish similar goals.  This is 
 329  a different license, not a version of the Affero GPL, but Affero has 
 330  released a new version of the Affero GPL which permits relicensing under 
 331  this license. 
 332   
 333    The precise terms and conditions for copying, distribution and 
 334  modification follow. 
 335   
 336                         TERMS AND CONDITIONS 
 337   
 338    0. Definitions. 
 339   
 340    "This License" refers to version 3 of the GNU Affero General Public License. 
 341   
 342    "Copyright" also means copyright-like laws that apply to other kinds of 
 343  works, such as semiconductor masks. 
 344   
 345    "The Program" refers to any copyrightable work licensed under this 
 346  License.  Each licensee is addressed as "you".  "Licensees" and 
 347  "recipients" may be individuals or organizations. 
 348   
 349    To "modify" a work means to copy from or adapt all or part of the work 
 350  in a fashion requiring copyright permission, other than the making of an 
 351  exact copy.  The resulting work is called a "modified version" of the 
 352  earlier work or a work "based on" the earlier work. 
 353   
 354    A "covered work" means either the unmodified Program or a work based 
 355  on the Program. 
 356   
 357    To "propagate" a work means to do anything with it that, without 
 358  permission, would make you directly or secondarily liable for 
 359  infringement under applicable copyright law, except executing it on a 
 360  computer or modifying a private copy.  Propagation includes copying, 
 361  distribution (with or without modification), making available to the 
 362  public, and in some countries other activities as well. 
 363   
 364    To "convey" a work means any kind of propagation that enables other 
 365  parties to make or receive copies.  Mere interaction with a user through 
 366  a computer network, with no transfer of a copy, is not conveying. 
 367   
 368    An interactive user interface displays "Appropriate Legal Notices" 
 369  to the extent that it includes a convenient and prominently visible 
 370  feature that (1) displays an appropriate copyright notice, and (2) 
 371  tells the user that there is no warranty for the work (except to the 
 372  extent that warranties are provided), that licensees may convey the 
 373  work under this License, and how to view a copy of this License.  If 
 374  the interface presents a list of user commands or options, such as a 
 375  menu, a prominent item in the list meets this criterion. 
 376   
 377    1. Source Code. 
 378   
 379    The "source code" for a work means the preferred form of the work 
 380  for making modifications to it.  "Object code" means any non-source 
 381  form of a work. 
 382   
 383    A "Standard Interface" means an interface that either is an official 
 384  standard defined by a recognized standards body, or, in the case of 
 385  interfaces specified for a particular programming language, one that 
 386  is widely used among developers working in that language. 
 387   
 388    The "System Libraries" of an executable work include anything, other 
 389  than the work as a whole, that (a) is included in the normal form of 
 390  packaging a Major Component, but which is not part of that Major 
 391  Component, and (b) serves only to enable use of the work with that 
 392  Major Component, or to implement a Standard Interface for which an 
 393  implementation is available to the public in source code form.  A 
 394  "Major Component", in this context, means a major essential component 
 395  (kernel, window system, and so on) of the specific operating system 
 396  (if any) on which the executable work runs, or a compiler used to 
 397  produce the work, or an object code interpreter used to run it. 
 398   
 399    The "Corresponding Source" for a work in object code form means all 
 400  the source code needed to generate, install, and (for an executable 
 401  work) run the object code and to modify the work, including scripts to 
 402  control those activities.  However, it does not include the work's 
 403  System Libraries, or general-purpose tools or generally available free 
 404  programs which are used unmodified in performing those activities but 
 405  which are not part of the work.  For example, Corresponding Source 
 406  includes interface definition files associated with source files for 
 407  the work, and the source code for shared libraries and dynamically 
 408  linked subprograms that the work is specifically designed to require, 
 409  such as by intimate data communication or control flow between those 
 410  subprograms and other parts of the work. 
 411   
 412    The Corresponding Source need not include anything that users 
 413  can regenerate automatically from other parts of the Corresponding 
 414  Source. 
 415   
 416    The Corresponding Source for a work in source code form is that 
 417  same work. 
 418   
 419    2. Basic Permissions. 
 420   
 421    All rights granted under this License are granted for the term of 
 422  copyright on the Program, and are irrevocable provided the stated 
 423  conditions are met.  This License explicitly affirms your unlimited 
 424  permission to run the unmodified Program.  The output from running a 
 425  covered work is covered by this License only if the output, given its 
 426  content, constitutes a covered work.  This License acknowledges your 
 427  rights of fair use or other equivalent, as provided by copyright law. 
 428   
 429    You may make, run and propagate covered works that you do not 
 430  convey, without conditions so long as your license otherwise remains 
 431  in force.  You may convey covered works to others for the sole purpose 
 432  of having them make modifications exclusively for you, or provide you 
 433  with facilities for running those works, provided that you comply with 
 434  the terms of this License in conveying all material for which you do 
 435  not control copyright.  Those thus making or running the covered works 
 436  for you must do so exclusively on your behalf, under your direction 
 437  and control, on terms that prohibit them from making any copies of 
 438  your copyrighted material outside their relationship with you. 
 439   
 440    Conveying under any other circumstances is permitted solely under 
 441  the conditions stated below.  Sublicensing is not allowed; section 10 
 442  makes it unnecessary. 
 443   
 444    3. Protecting Users' Legal Rights From Anti-Circumvention Law. 
 445   
 446    No covered work shall be deemed part of an effective technological 
 447  measure under any applicable law fulfilling obligations under article 
 448  11 of the WIPO copyright treaty adopted on 20 December 1996, or 
 449  similar laws prohibiting or restricting circumvention of such 
 450  measures. 
 451   
 452    When you convey a covered work, you waive any legal power to forbid 
 453  circumvention of technological measures to the extent such circumvention 
 454  is effected by exercising rights under this License with respect to 
 455  the covered work, and you disclaim any intention to limit operation or 
 456  modification of the work as a means of enforcing, against the work's 
 457  users, your or third parties' legal rights to forbid circumvention of 
 458  technological measures. 
 459   
 460    4. Conveying Verbatim Copies. 
 461   
 462    You may convey verbatim copies of the Program's source code as you 
 463  receive it, in any medium, provided that you conspicuously and 
 464  appropriately publish on each copy an appropriate copyright notice; 
 465  keep intact all notices stating that this License and any 
 466  non-permissive terms added in accord with section 7 apply to the code; 
 467  keep intact all notices of the absence of any warranty; and give all 
 468  recipients a copy of this License along with the Program. 
 469   
 470    You may charge any price or no price for each copy that you convey, 
 471  and you may offer support or warranty protection for a fee. 
 472   
 473    5. Conveying Modified Source Versions. 
 474   
 475    You may convey a work based on the Program, or the modifications to 
 476  produce it from the Program, in the form of source code under the 
 477  terms of section 4, provided that you also meet all of these conditions: 
 478   
 479      a) The work must carry prominent notices stating that you modified 
 480      it, and giving a relevant date. 
 481   
 482      b) The work must carry prominent notices stating that it is 
 483      released under this License and any conditions added under section 
 484      7.  This requirement modifies the requirement in section 4 to 
 485      "keep intact all notices". 
 486   
 487      c) You must license the entire work, as a whole, under this 
 488      License to anyone who comes into possession of a copy.  This 
 489      License will therefore apply, along with any applicable section 7 
 490      additional terms, to the whole of the work, and all its parts, 
 491      regardless of how they are packaged.  This License gives no 
 492      permission to license the work in any other way, but it does not 
 493      invalidate such permission if you have separately received it. 
 494   
 495      d) If the work has interactive user interfaces, each must display 
 496      Appropriate Legal Notices; however, if the Program has interactive 
 497      interfaces that do not display Appropriate Legal Notices, your 
 498      work need not make them do so. 
 499   
 500    A compilation of a covered work with other separate and independent 
 501  works, which are not by their nature extensions of the covered work, 
 502  and which are not combined with it such as to form a larger program, 
 503  in or on a volume of a storage or distribution medium, is called an 
 504  "aggregate" if the compilation and its resulting copyright are not 
 505  used to limit the access or legal rights of the compilation's users 
 506  beyond what the individual works permit.  Inclusion of a covered work 
 507  in an aggregate does not cause this License to apply to the other 
 508  parts of the aggregate. 
 509   
 510    6. Conveying Non-Source Forms. 
 511   
 512    You may convey a covered work in object code form under the terms 
 513  of sections 4 and 5, provided that you also convey the 
 514  machine-readable Corresponding Source under the terms of this License, 
 515  in one of these ways: 
 516   
 517      a) Convey the object code in, or embodied in, a physical product 
 518      (including a physical distribution medium), accompanied by the 
 519      Corresponding Source fixed on a durable physical medium 
 520      customarily used for software interchange. 
 521   
 522      b) Convey the object code in, or embodied in, a physical product 
 523      (including a physical distribution medium), accompanied by a 
 524      written offer, valid for at least three years and valid for as 
 525      long as you offer spare parts or customer support for that product 
 526      model, to give anyone who possesses the object code either (1) a 
 527      copy of the Corresponding Source for all the software in the 
 528      product that is covered by this License, on a durable physical 
 529      medium customarily used for software interchange, for a price no 
 530      more than your reasonable cost of physically performing this 
 531      conveying of source, or (2) access to copy the 
 532      Corresponding Source from a network server at no charge. 
 533   
 534      c) Convey individual copies of the object code with a copy of the 
 535      written offer to provide the Corresponding Source.  This 
 536      alternative is allowed only occasionally and noncommercially, and 
 537      only if you received the object code with such an offer, in accord 
 538      with subsection 6b. 
 539   
 540      d) Convey the object code by offering access from a designated 
 541      place (gratis or for a charge), and offer equivalent access to the 
 542      Corresponding Source in the same way through the same place at no 
 543      further charge.  You need not require recipients to copy the 
 544      Corresponding Source along with the object code.  If the place to 
 545      copy the object code is a network server, the Corresponding Source 
 546      may be on a different server (operated by you or a third party) 
 547      that supports equivalent copying facilities, provided you maintain 
 548      clear directions next to the object code saying where to find the 
 549      Corresponding Source.  Regardless of what server hosts the 
 550      Corresponding Source, you remain obligated to ensure that it is 
 551      available for as long as needed to satisfy these requirements. 
 552   
 553      e) Convey the object code using peer-to-peer transmission, provided 
 554      you inform other peers where the object code and Corresponding 
 555      Source of the work are being offered to the general public at no 
 556      charge under subsection 6d. 
 557   
 558    A separable portion of the object code, whose source code is excluded 
 559  from the Corresponding Source as a System Library, need not be 
 560  included in conveying the object code work. 
 561   
 562    A "User Product" is either (1) a "consumer product", which means any 
 563  tangible personal property which is normally used for personal, family, 
 564  or household purposes, or (2) anything designed or sold for incorporation 
 565  into a dwelling.  In determining whether a product is a consumer product, 
 566  doubtful cases shall be resolved in favor of coverage.  For a particular 
 567  product received by a particular user, "normally used" refers to a 
 568  typical or common use of that class of product, regardless of the status 
 569  of the particular user or of the way in which the particular user 
 570  actually uses, or expects or is expected to use, the product.  A product 
 571  is a consumer product regardless of whether the product has substantial 
 572  commercial, industrial or non-consumer uses, unless such uses represent 
 573  the only significant mode of use of the product. 
 574   
 575    "Installation Information" for a User Product means any methods, 
 576  procedures, authorization keys, or other information required to install 
 577  and execute modified versions of a covered work in that User Product from 
 578  a modified version of its Corresponding Source.  The information must 
 579  suffice to ensure that the continued functioning of the modified object 
 580  code is in no case prevented or interfered with solely because 
 581  modification has been made. 
 582   
 583    If you convey an object code work under this section in, or with, or 
 584  specifically for use in, a User Product, and the conveying occurs as 
 585  part of a transaction in which the right of possession and use of the 
 586  User Product is transferred to the recipient in perpetuity or for a 
 587  fixed term (regardless of how the transaction is characterized), the 
 588  Corresponding Source conveyed under this section must be accompanied 
 589  by the Installation Information.  But this requirement does not apply 
 590  if neither you nor any third party retains the ability to install 
 591  modified object code on the User Product (for example, the work has 
 592  been installed in ROM). 
 593   
 594    The requirement to provide Installation Information does not include a 
 595  requirement to continue to provide support service, warranty, or updates 
 596  for a work that has been modified or installed by the recipient, or for 
 597  the User Product in which it has been modified or installed.  Access to a 
 598  network may be denied when the modification itself materially and 
 599  adversely affects the operation of the network or violates the rules and 
 600  protocols for communication across the network. 
 601   
 602    Corresponding Source conveyed, and Installation Information provided, 
 603  in accord with this section must be in a format that is publicly 
 604  documented (and with an implementation available to the public in 
 605  source code form), and must require no special password or key for 
 606  unpacking, reading or copying. 
 607   
 608    7. Additional Terms. 
 609   
 610    "Additional permissions" are terms that supplement the terms of this 
 611  License by making exceptions from one or more of its conditions. 
 612  Additional permissions that are applicable to the entire Program shall 
 613  be treated as though they were included in this License, to the extent 
 614  that they are valid under applicable law.  If additional permissions 
 615  apply only to part of the Program, that part may be used separately 
 616  under those permissions, but the entire Program remains governed by 
 617  this License without regard to the additional permissions. 
 618   
 619    When you convey a copy of a covered work, you may at your option 
 620  remove any additional permissions from that copy, or from any part of 
 621  it.  (Additional permissions may be written to require their own 
 622  removal in certain cases when you modify the work.)  You may place 
 623  additional permissions on material, added by you to a covered work, 
 624  for which you have or can give appropriate copyright permission. 
 625   
 626    Notwithstanding any other provision of this License, for material you 
 627  add to a covered work, you may (if authorized by the copyright holders of 
 628  that material) supplement the terms of this License with terms: 
 629   
 630      a) Disclaiming warranty or limiting liability differently from the 
 631      terms of sections 15 and 16 of this License; or 
 632   
 633      b) Requiring preservation of specified reasonable legal notices or 
 634      author attributions in that material or in the Appropriate Legal 
 635      Notices displayed by works containing it; or 
 636   
 637      c) Prohibiting misrepresentation of the origin of that material, or 
 638      requiring that modified versions of such material be marked in 
 639      reasonable ways as different from the original version; or 
 640   
 641      d) Limiting the use for publicity purposes of names of licensors or 
 642      authors of the material; or 
 643   
 644      e) Declining to grant rights under trademark law for use of some 
 645      trade names, trademarks, or service marks; or 
 646   
 647      f) Requiring indemnification of licensors and authors of that 
 648      material by anyone who conveys the material (or modified versions of 
 649      it) with contractual assumptions of liability to the recipient, for 
 650      any liability that these contractual assumptions directly impose on 
 651      those licensors and authors. 
 652   
 653    All other non-permissive additional terms are considered "further 
 654  restrictions" within the meaning of section 10.  If the Program as you 
 655  received it, or any part of it, contains a notice stating that it is 
 656  governed by this License along with a term that is a further 
 657  restriction, you may remove that term.  If a license document contains 
 658  a further restriction but permits relicensing or conveying under this 
 659  License, you may add to a covered work material governed by the terms 
 660  of that license document, provided that the further restriction does 
 661  not survive such relicensing or conveying. 
 662   
 663    If you add terms to a covered work in accord with this section, you 
 664  must place, in the relevant source files, a statement of the 
 665  additional terms that apply to those files, or a notice indicating 
 666  where to find the applicable terms. 
 667   
 668    Additional terms, permissive or non-permissive, may be stated in the 
 669  form of a separately written license, or stated as exceptions; 
 670  the above requirements apply either way. 
 671   
 672    8. Termination. 
 673   
 674    You may not propagate or modify a covered work except as expressly 
 675  provided under this License.  Any attempt otherwise to propagate or 
 676  modify it is void, and will automatically terminate your rights under 
 677  this License (including any patent licenses granted under the third 
 678  paragraph of section 11). 
 679   
 680    However, if you cease all violation of this License, then your 
 681  license from a particular copyright holder is reinstated (a) 
 682  provisionally, unless and until the copyright holder explicitly and 
 683  finally terminates your license, and (b) permanently, if the copyright 
 684  holder fails to notify you of the violation by some reasonable means 
 685  prior to 60 days after the cessation. 
 686   
 687    Moreover, your license from a particular copyright holder is 
 688  reinstated permanently if the copyright holder notifies you of the 
 689  violation by some reasonable means, this is the first time you have 
 690  received notice of violation of this License (for any work) from that 
 691  copyright holder, and you cure the violation prior to 30 days after 
 692  your receipt of the notice. 
 693   
 694    Termination of your rights under this section does not terminate the 
 695  licenses of parties who have received copies or rights from you under 
 696  this License.  If your rights have been terminated and not permanently 
 697  reinstated, you do not qualify to receive new licenses for the same 
 698  material under section 10. 
 699   
 700    9. Acceptance Not Required for Having Copies. 
 701   
 702    You are not required to accept this License in order to receive or 
 703  run a copy of the Program.  Ancillary propagation of a covered work 
 704  occurring solely as a consequence of using peer-to-peer transmission 
 705  to receive a copy likewise does not require acceptance.  However, 
 706  nothing other than this License grants you permission to propagate or 
 707  modify any covered work.  These actions infringe copyright if you do 
 708  not accept this License.  Therefore, by modifying or propagating a 
 709  covered work, you indicate your acceptance of this License to do so. 
 710   
 711    10. Automatic Licensing of Downstream Recipients. 
 712   
 713    Each time you convey a covered work, the recipient automatically 
 714  receives a license from the original licensors, to run, modify and 
 715  propagate that work, subject to this License.  You are not responsible 
 716  for enforcing compliance by third parties with this License. 
 717   
 718    An "entity transaction" is a transaction transferring control of an 
 719  organization, or substantially all assets of one, or subdividing an 
 720  organization, or merging organizations.  If propagation of a covered 
 721  work results from an entity transaction, each party to that 
 722  transaction who receives a copy of the work also receives whatever 
 723  licenses to the work the party's predecessor in interest had or could 
 724  give under the previous paragraph, plus a right to possession of the 
 725  Corresponding Source of the work from the predecessor in interest, if 
 726  the predecessor has it or can get it with reasonable efforts. 
 727   
 728    You may not impose any further restrictions on the exercise of the 
 729  rights granted or affirmed under this License.  For example, you may 
 730  not impose a license fee, royalty, or other charge for exercise of 
 731  rights granted under this License, and you may not initiate litigation 
 732  (including a cross-claim or counterclaim in a lawsuit) alleging that 
 733  any patent claim is infringed by making, using, selling, offering for 
 734  sale, or importing the Program or any portion of it. 
 735   
 736    11. Patents. 
 737   
 738    A "contributor" is a copyright holder who authorizes use under this 
 739  License of the Program or a work on which the Program is based.  The 
 740  work thus licensed is called the contributor's "contributor version". 
 741   
 742    A contributor's "essential patent claims" are all patent claims 
 743  owned or controlled by the contributor, whether already acquired or 
 744  hereafter acquired, that would be infringed by some manner, permitted 
 745  by this License, of making, using, or selling its contributor version, 
 746  but do not include claims that would be infringed only as a 
 747  consequence of further modification of the contributor version.  For 
 748  purposes of this definition, "control" includes the right to grant 
 749  patent sublicenses in a manner consistent with the requirements of 
 750  this License. 
 751   
 752    Each contributor grants you a non-exclusive, worldwide, royalty-free 
 753  patent license under the contributor's essential patent claims, to 
 754  make, use, sell, offer for sale, import and otherwise run, modify and 
 755  propagate the contents of its contributor version. 
 756   
 757    In the following three paragraphs, a "patent license" is any express 
 758  agreement or commitment, however denominated, not to enforce a patent 
 759  (such as an express permission to practice a patent or covenant not to 
 760  sue for patent infringement).  To "grant" such a patent license to a 
 761  party means to make such an agreement or commitment not to enforce a 
 762  patent against the party. 
 763   
 764    If you convey a covered work, knowingly relying on a patent license, 
 765  and the Corresponding Source of the work is not available for anyone 
 766  to copy, free of charge and under the terms of this License, through a 
 767  publicly available network server or other readily accessible means, 
 768  then you must either (1) cause the Corresponding Source to be so 
 769  available, or (2) arrange to deprive yourself of the benefit of the 
 770  patent license for this particular work, or (3) arrange, in a manner 
 771  consistent with the requirements of this License, to extend the patent 
 772  license to downstream recipients.  "Knowingly relying" means you have 
 773  actual knowledge that, but for the patent license, your conveying the 
 774  covered work in a country, or your recipient's use of the covered work 
 775  in a country, would infringe one or more identifiable patents in that 
 776  country that you have reason to believe are valid. 
 777   
 778    If, pursuant to or in connection with a single transaction or 
 779  arrangement, you convey, or propagate by procuring conveyance of, a 
 780  covered work, and grant a patent license to some of the parties 
 781  receiving the covered work authorizing them to use, propagate, modify 
 782  or convey a specific copy of the covered work, then the patent license 
 783  you grant is automatically extended to all recipients of the covered 
 784  work and works based on it. 
 785   
 786    A patent license is "discriminatory" if it does not include within 
 787  the scope of its coverage, prohibits the exercise of, or is 
 788  conditioned on the non-exercise of one or more of the rights that are 
 789  specifically granted under this License.  You may not convey a covered 
 790  work if you are a party to an arrangement with a third party that is 
 791  in the business of distributing software, under which you make payment 
 792  to the third party based on the extent of your activity of conveying 
 793  the work, and under which the third party grants, to any of the 
 794  parties who would receive the covered work from you, a discriminatory 
 795  patent license (a) in connection with copies of the covered work 
 796  conveyed by you (or copies made from those copies), or (b) primarily 
 797  for and in connection with specific products or compilations that 
 798  contain the covered work, unless you entered into that arrangement, 
 799  or that patent license was granted, prior to 28 March 2007. 
 800   
 801    Nothing in this License shall be construed as excluding or limiting 
 802  any implied license or other defenses to infringement that may 
 803  otherwise be available to you under applicable patent law. 
 804   
 805    12. No Surrender of Others' Freedom. 
 806   
 807    If conditions are imposed on you (whether by court order, agreement or 
 808  otherwise) that contradict the conditions of this License, they do not 
 809  excuse you from the conditions of this License.  If you cannot convey a 
 810  covered work so as to satisfy simultaneously your obligations under this 
 811  License and any other pertinent obligations, then as a consequence you may 
 812  not convey it at all.  For example, if you agree to terms that obligate you 
 813  to collect a royalty for further conveying from those to whom you convey 
 814  the Program, the only way you could satisfy both those terms and this 
 815  License would be to refrain entirely from conveying the Program. 
 816   
 817    13. Remote Network Interaction; Use with the GNU General Public License. 
 818   
 819    Notwithstanding any other provision of this License, if you modify the 
 820  Program, your modified version must prominently offer all users 
 821  interacting with it remotely through a computer network (if your version 
 822  supports such interaction) an opportunity to receive the Corresponding 
 823  Source of your version by providing access to the Corresponding Source 
 824  from a network server at no charge, through some standard or customary 
 825  means of facilitating copying of software.  This Corresponding Source 
 826  shall include the Corresponding Source for any work covered by version 3 
 827  of the GNU General Public License that is incorporated pursuant to the 
 828  following paragraph. 
 829   
 830    Notwithstanding any other provision of this License, you have 
 831  permission to link or combine any covered work with a work licensed 
 832  under version 3 of the GNU General Public License into a single 
 833  combined work, and to convey the resulting work.  The terms of this 
 834  License will continue to apply to the part which is the covered work, 
 835  but the work with which it is combined will remain governed by version 
 836  3 of the GNU General Public License. 
 837   
 838    14. Revised Versions of this License. 
 839   
 840    The Free Software Foundation may publish revised and/or new versions of 
 841  the GNU Affero General Public License from time to time.  Such new versions 
 842  will be similar in spirit to the present version, but may differ in detail to 
 843  address new problems or concerns. 
 844   
 845    Each version is given a distinguishing version number.  If the 
 846  Program specifies that a certain numbered version of the GNU Affero General 
 847  Public License "or any later version" applies to it, you have the 
 848  option of following the terms and conditions either of that numbered 
 849  version or of any later version published by the Free Software 
 850  Foundation.  If the Program does not specify a version number of the 
 851  GNU Affero General Public License, you may choose any version ever published 
 852  by the Free Software Foundation. 
 853   
 854    If the Program specifies that a proxy can decide which future 
 855  versions of the GNU Affero General Public License can be used, that proxy's 
 856  public statement of acceptance of a version permanently authorizes you 
 857  to choose that version for the Program. 
 858   
 859    Later license versions may give you additional or different 
 860  permissions.  However, no additional obligations are imposed on any 
 861  author or copyright holder as a result of your choosing to follow a 
 862  later version. 
 863   
 864    15. Disclaimer of Warranty. 
 865   
 866    THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 
 867  APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 
 868  HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 
 869  OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 
 870  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
 871  PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 
 872  IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 
 873  ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 
 874   
 875    16. Limitation of Liability. 
 876   
 877    IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 
 878  WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 
 879  THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 
 880  GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 
 881  USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 
 882  DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 
 883  PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 
 884  EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 
 885  SUCH DAMAGES. 
 886   
 887    17. Interpretation of Sections 15 and 16. 
 888   
 889    If the disclaimer of warranty and limitation of liability provided 
 890  above cannot be given local legal effect according to their terms, 
 891  reviewing courts shall apply local law that most closely approximates 
 892  an absolute waiver of all civil liability in connection with the 
 893  Program, unless a warranty or assumption of liability accompanies a 
 894  copy of the Program in return for a fee. 
 895   
 896                       END OF TERMS AND CONDITIONS 
 897   
 898              How to Apply These Terms to Your New Programs 
 899   
 900    If you develop a new program, and you want it to be of the greatest 
 901  possible use to the public, the best way to achieve this is to make it 
 902  free software which everyone can redistribute and change under these terms. 
 903   
 904    To do so, attach the following notices to the program.  It is safest 
 905  to attach them to the start of each source file to most effectively 
 906  state the exclusion of warranty; and each file should have at least 
 907  the "copyright" line and a pointer to where the full notice is found. 
 908   
 909      <one line to give the program's name and a brief idea of what it does.> 
 910      Copyright (C) <year>  <name of author> 
 911   
 912      This program is free software: you can redistribute it and/or modify 
 913      it under the terms of the GNU Affero General Public License as published by 
 914      the Free Software Foundation, either version 3 of the License, or 
 915      (at your option) any later version. 
 916   
 917      This program is distributed in the hope that it will be useful, 
 918      but WITHOUT ANY WARRANTY; without even the implied warranty of 
 919      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 920      GNU Affero General Public License for more details. 
 921   
 922      You should have received a copy of the GNU Affero General Public License 
 923      along with this program.  If not, see <http://www.gnu.org/licenses/>. 
 924   
 925  Also add information on how to contact you by electronic and paper mail. 
 926   
 927    If your software can interact with users remotely through a computer 
 928  network, you should also make sure that it provides a way for users to 
 929  get its source.  For example, if your program is a web application, its 
 930  interface could display a "Source" link that leads users to an archive 
 931  of the code.  There are many ways you could offer source, and different 
 932  solutions will be better for different programs; see section 13 for the 
 933  specific requirements. 
 934   
 935    You should also get your employer (if you work as a programmer) or school, 
 936  if any, to sign a "copyright disclaimer" for the program, if necessary. 
 937  For more information on this, and how to apply and follow the GNU AGPL, see 
 938  <http://www.gnu.org/licenses/>. 
 939  """ 
 940   
 941   
 942  GPL_2 = """ 
 943                      GNU GENERAL PUBLIC LICENSE 
 944                         Version 2, June 1991 
 945   
 946   Copyright (C) 1989, 1991 Free Software Foundation, Inc., 
 947   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 
 948   Everyone is permitted to copy and distribute verbatim copies 
 949   of this license document, but changing it is not allowed. 
 950   
 951                              Preamble 
 952   
 953    The licenses for most software are designed to take away your 
 954  freedom to share and change it.  By contrast, the GNU General Public 
 955  License is intended to guarantee your freedom to share and change free 
 956  software--to make sure the software is free for all its users.  This 
 957  General Public License applies to most of the Free Software 
 958  Foundation's software and to any other program whose authors commit to 
 959  using it.  (Some other Free Software Foundation software is covered by 
 960  the GNU Lesser General Public License instead.)  You can apply it to 
 961  your programs, too. 
 962   
 963    When we speak of free software, we are referring to freedom, not 
 964  price.  Our General Public Licenses are designed to make sure that you 
 965  have the freedom to distribute copies of free software (and charge for 
 966  this service if you wish), that you receive source code or can get it 
 967  if you want it, that you can change the software or use pieces of it 
 968  in new free programs; and that you know you can do these things. 
 969   
 970    To protect your rights, we need to make restrictions that forbid 
 971  anyone to deny you these rights or to ask you to surrender the rights. 
 972  These restrictions translate to certain responsibilities for you if you 
 973  distribute copies of the software, or if you modify it. 
 974   
 975    For example, if you distribute copies of such a program, whether 
 976  gratis or for a fee, you must give the recipients all the rights that 
 977  you have.  You must make sure that they, too, receive or can get the 
 978  source code.  And you must show them these terms so they know their 
 979  rights. 
 980   
 981    We protect your rights with two steps: (1) copyright the software, and 
 982  (2) offer you this license which gives you legal permission to copy, 
 983  distribute and/or modify the software. 
 984   
 985    Also, for each author's protection and ours, we want to make certain 
 986  that everyone understands that there is no warranty for this free 
 987  software.  If the software is modified by someone else and passed on, we 
 988  want its recipients to know that what they have is not the original, so 
 989  that any problems introduced by others will not reflect on the original 
 990  authors' reputations. 
 991   
 992    Finally, any free program is threatened constantly by software 
 993  patents.  We wish to avoid the danger that redistributors of a free 
 994  program will individually obtain patent licenses, in effect making the 
 995  program proprietary.  To prevent this, we have made it clear that any 
 996  patent must be licensed for everyone's free use or not licensed at all. 
 997   
 998    The precise terms and conditions for copying, distribution and 
 999  modification follow. 
1000   
1001                      GNU GENERAL PUBLIC LICENSE 
1002     TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 
1003   
1004    0. This License applies to any program or other work which contains 
1005  a notice placed by the copyright holder saying it may be distributed 
1006  under the terms of this General Public License.  The "Program", below, 
1007  refers to any such program or work, and a "work based on the Program" 
1008  means either the Program or any derivative work under copyright law: 
1009  that is to say, a work containing the Program or a portion of it, 
1010  either verbatim or with modifications and/or translated into another 
1011  language.  (Hereinafter, translation is included without limitation in 
1012  the term "modification".)  Each licensee is addressed as "you". 
1013   
1014  Activities other than copying, distribution and modification are not 
1015  covered by this License; they are outside its scope.  The act of 
1016  running the Program is not restricted, and the output from the Program 
1017  is covered only if its contents constitute a work based on the 
1018  Program (independent of having been made by running the Program). 
1019  Whether that is true depends on what the Program does. 
1020   
1021    1. You may copy and distribute verbatim copies of the Program's 
1022  source code as you receive it, in any medium, provided that you 
1023  conspicuously and appropriately publish on each copy an appropriate 
1024  copyright notice and disclaimer of warranty; keep intact all the 
1025  notices that refer to this License and to the absence of any warranty; 
1026  and give any other recipients of the Program a copy of this License 
1027  along with the Program. 
1028   
1029  You may charge a fee for the physical act of transferring a copy, and 
1030  you may at your option offer warranty protection in exchange for a fee. 
1031   
1032    2. You may modify your copy or copies of the Program or any portion 
1033  of it, thus forming a work based on the Program, and copy and 
1034  distribute such modifications or work under the terms of Section 1 
1035  above, provided that you also meet all of these conditions: 
1036   
1037      a) You must cause the modified files to carry prominent notices 
1038      stating that you changed the files and the date of any change. 
1039   
1040      b) You must cause any work that you distribute or publish, that in 
1041      whole or in part contains or is derived from the Program or any 
1042      part thereof, to be licensed as a whole at no charge to all third 
1043      parties under the terms of this License. 
1044   
1045      c) If the modified program normally reads commands interactively 
1046      when run, you must cause it, when started running for such 
1047      interactive use in the most ordinary way, to print or display an 
1048      announcement including an appropriate copyright notice and a 
1049      notice that there is no warranty (or else, saying that you provide 
1050      a warranty) and that users may redistribute the program under 
1051      these conditions, and telling the user how to view a copy of this 
1052      License.  (Exception: if the Program itself is interactive but 
1053      does not normally print such an announcement, your work based on 
1054      the Program is not required to print an announcement.) 
1055   
1056  These requirements apply to the modified work as a whole.  If 
1057  identifiable sections of that work are not derived from the Program, 
1058  and can be reasonably considered independent and separate works in 
1059  themselves, then this License, and its terms, do not apply to those 
1060  sections when you distribute them as separate works.  But when you 
1061  distribute the same sections as part of a whole which is a work based 
1062  on the Program, the distribution of the whole must be on the terms of 
1063  this License, whose permissions for other licensees extend to the 
1064  entire whole, and thus to each and every part regardless of who wrote it. 
1065   
1066  Thus, it is not the intent of this section to claim rights or contest 
1067  your rights to work written entirely by you; rather, the intent is to 
1068  exercise the right to control the distribution of derivative or 
1069  collective works based on the Program. 
1070   
1071  In addition, mere aggregation of another work not based on the Program 
1072  with the Program (or with a work based on the Program) on a volume of 
1073  a storage or distribution medium does not bring the other work under 
1074  the scope of this License. 
1075   
1076    3. You may copy and distribute the Program (or a work based on it, 
1077  under Section 2) in object code or executable form under the terms of 
1078  Sections 1 and 2 above provided that you also do one of the following: 
1079   
1080      a) Accompany it with the complete corresponding machine-readable 
1081      source code, which must be distributed under the terms of Sections 
1082      1 and 2 above on a medium customarily used for software interchange; or, 
1083   
1084      b) Accompany it with a written offer, valid for at least three 
1085      years, to give any third party, for a charge no more than your 
1086      cost of physically performing source distribution, a complete 
1087      machine-readable copy of the corresponding source code, to be 
1088      distributed under the terms of Sections 1 and 2 above on a medium 
1089      customarily used for software interchange; or, 
1090   
1091      c) Accompany it with the information you received as to the offer 
1092      to distribute corresponding source code.  (This alternative is 
1093      allowed only for noncommercial distribution and only if you 
1094      received the program in object code or executable form with such 
1095      an offer, in accord with Subsection b above.) 
1096   
1097  The source code for a work means the preferred form of the work for 
1098  making modifications to it.  For an executable work, complete source 
1099  code means all the source code for all modules it contains, plus any 
1100  associated interface definition files, plus the scripts used to 
1101  control compilation and installation of the executable.  However, as a 
1102  special exception, the source code distributed need not include 
1103  anything that is normally distributed (in either source or binary 
1104  form) with the major components (compiler, kernel, and so on) of the 
1105  operating system on which the executable runs, unless that component 
1106  itself accompanies the executable. 
1107   
1108  If distribution of executable or object code is made by offering 
1109  access to copy from a designated place, then offering equivalent 
1110  access to copy the source code from the same place counts as 
1111  distribution of the source code, even though third parties are not 
1112  compelled to copy the source along with the object code. 
1113   
1114    4. You may not copy, modify, sublicense, or distribute the Program 
1115  except as expressly provided under this License.  Any attempt 
1116  otherwise to copy, modify, sublicense or distribute the Program is 
1117  void, and will automatically terminate your rights under this License. 
1118  However, parties who have received copies, or rights, from you under 
1119  this License will not have their licenses terminated so long as such 
1120  parties remain in full compliance. 
1121   
1122    5. You are not required to accept this License, since you have not 
1123  signed it.  However, nothing else grants you permission to modify or 
1124  distribute the Program or its derivative works.  These actions are 
1125  prohibited by law if you do not accept this License.  Therefore, by 
1126  modifying or distributing the Program (or any work based on the 
1127  Program), you indicate your acceptance of this License to do so, and 
1128  all its terms and conditions for copying, distributing or modifying 
1129  the Program or works based on it. 
1130   
1131    6. Each time you redistribute the Program (or any work based on the 
1132  Program), the recipient automatically receives a license from the 
1133  original licensor to copy, distribute or modify the Program subject to 
1134  these terms and conditions.  You may not impose any further 
1135  restrictions on the recipients' exercise of the rights granted herein. 
1136  You are not responsible for enforcing compliance by third parties to 
1137  this License. 
1138   
1139    7. If, as a consequence of a court judgment or allegation of patent 
1140  infringement or for any other reason (not limited to patent issues), 
1141  conditions are imposed on you (whether by court order, agreement or 
1142  otherwise) that contradict the conditions of this License, they do not 
1143  excuse you from the conditions of this License.  If you cannot 
1144  distribute so as to satisfy simultaneously your obligations under this 
1145  License and any other pertinent obligations, then as a consequence you 
1146  may not distribute the Program at all.  For example, if a patent 
1147  license would not permit royalty-free redistribution of the Program by 
1148  all those who receive copies directly or indirectly through you, then 
1149  the only way you could satisfy both it and this License would be to 
1150  refrain entirely from distribution of the Program. 
1151   
1152  If any portion of this section is held invalid or unenforceable under 
1153  any particular circumstance, the balance of the section is intended to 
1154  apply and the section as a whole is intended to apply in other 
1155  circumstances. 
1156   
1157  It is not the purpose of this section to induce you to infringe any 
1158  patents or other property right claims or to contest validity of any 
1159  such claims; this section has the sole purpose of protecting the 
1160  integrity of the free software distribution system, which is 
1161  implemented by public license practices.  Many people have made 
1162  generous contributions to the wide range of software distributed 
1163  through that system in reliance on consistent application of that 
1164  system; it is up to the author/donor to decide if he or she is willing 
1165  to distribute software through any other system and a licensee cannot 
1166  impose that choice. 
1167   
1168  This section is intended to make thoroughly clear what is believed to 
1169  be a consequence of the rest of this License. 
1170   
1171    8. If the distribution and/or use of the Program is restricted in 
1172  certain countries either by patents or by copyrighted interfaces, the 
1173  original copyright holder who places the Program under this License 
1174  may add an explicit geographical distribution limitation excluding 
1175  those countries, so that distribution is permitted only in or among 
1176  countries not thus excluded.  In such case, this License incorporates 
1177  the limitation as if written in the body of this License. 
1178   
1179    9. The Free Software Foundation may publish revised and/or new versions 
1180  of the General Public License from time to time.  Such new versions will 
1181  be similar in spirit to the present version, but may differ in detail to 
1182  address new problems or concerns. 
1183   
1184  Each version is given a distinguishing version number.  If the Program 
1185  specifies a version number of this License which applies to it and "any 
1186  later version", you have the option of following the terms and conditions 
1187  either of that version or of any later version published by the Free 
1188  Software Foundation.  If the Program does not specify a version number of 
1189  this License, you may choose any version ever published by the Free Software 
1190  Foundation. 
1191   
1192    10. If you wish to incorporate parts of the Program into other free 
1193  programs whose distribution conditions are different, write to the author 
1194  to ask for permission.  For software which is copyrighted by the Free 
1195  Software Foundation, write to the Free Software Foundation; we sometimes 
1196  make exceptions for this.  Our decision will be guided by the two goals 
1197  of preserving the free status of all derivatives of our free software and 
1198  of promoting the sharing and reuse of software generally. 
1199   
1200                              NO WARRANTY 
1201   
1202    11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 
1203  FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN 
1204  OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 
1205  PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 
1206  OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
1207  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS 
1208  TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE 
1209  PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 
1210  REPAIR OR CORRECTION. 
1211   
1212    12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 
1213  WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 
1214  REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 
1215  INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 
1216  OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 
1217  TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 
1218  YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 
1219  PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 
1220  POSSIBILITY OF SUCH DAMAGES. 
1221   
1222                       END OF TERMS AND CONDITIONS 
1223   
1224              How to Apply These Terms to Your New Programs 
1225   
1226    If you develop a new program, and you want it to be of the greatest 
1227  possible use to the public, the best way to achieve this is to make it 
1228  free software which everyone can redistribute and change under these terms. 
1229   
1230    To do so, attach the following notices to the program.  It is safest 
1231  to attach them to the start of each source file to most effectively 
1232  convey the exclusion of warranty; and each file should have at least 
1233  the "copyright" line and a pointer to where the full notice is found. 
1234   
1235      <one line to give the program's name and a brief idea of what it does.> 
1236      Copyright (C) <year>  <name of author> 
1237   
1238      This program is free software; you can redistribute it and/or modify 
1239      it under the terms of the GNU General Public License as published by 
1240      the Free Software Foundation; either version 2 of the License, or 
1241      (at your option) any later version. 
1242   
1243      This program is distributed in the hope that it will be useful, 
1244      but WITHOUT ANY WARRANTY; without even the implied warranty of 
1245      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
1246      GNU General Public License for more details. 
1247   
1248      You should have received a copy of the GNU General Public License along 
1249      with this program; if not, write to the Free Software Foundation, Inc., 
1250      51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 
1251   
1252  Also add information on how to contact you by electronic and paper mail. 
1253   
1254  If the program is interactive, make it output a short notice like this 
1255  when it starts in an interactive mode: 
1256   
1257      Gnomovision version 69, Copyright (C) year name of author 
1258      Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 
1259      This is free software, and you are welcome to redistribute it 
1260      under certain conditions; type `show c' for details. 
1261   
1262  The hypothetical commands `show w' and `show c' should show the appropriate 
1263  parts of the General Public License.  Of course, the commands you use may 
1264  be called something other than `show w' and `show c'; they could even be 
1265  mouse-clicks or menu items--whatever suits your program. 
1266   
1267  You should also get your employer (if you work as a programmer) or your 
1268  school, if any, to sign a "copyright disclaimer" for the program, if 
1269  necessary.  Here is a sample; alter the names: 
1270   
1271    Yoyodyne, Inc., hereby disclaims all copyright interest in the program 
1272    `Gnomovision' (which makes passes at compilers) written by James Hacker. 
1273   
1274    <signature of Ty Coon>, 1 April 1989 
1275    Ty Coon, President of Vice 
1276   
1277  This General Public License does not permit incorporating your program into 
1278  proprietary programs.  If your program is a subroutine library, you may 
1279  consider it more useful to permit linking proprietary applications with the 
1280  library.  If this is what you want to do, use the GNU Lesser General 
1281  Public License instead of this License. 
1282  """ 
1283   
1284   
1285  GPL_3 = """ 
1286                      GNU GENERAL PUBLIC LICENSE 
1287                         Version 3, 29 June 2007 
1288   
1289   Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> 
1290   Everyone is permitted to copy and distribute verbatim copies 
1291   of this license document, but changing it is not allowed. 
1292   
1293                              Preamble 
1294   
1295    The GNU General Public License is a free, copyleft license for 
1296  software and other kinds of works. 
1297   
1298    The licenses for most software and other practical works are designed 
1299  to take away your freedom to share and change the works.  By contrast, 
1300  the GNU General Public License is intended to guarantee your freedom to 
1301  share and change all versions of a program--to make sure it remains free 
1302  software for all its users.  We, the Free Software Foundation, use the 
1303  GNU General Public License for most of our software; it applies also to 
1304  any other work released this way by its authors.  You can apply it to 
1305  your programs, too. 
1306   
1307    When we speak of free software, we are referring to freedom, not 
1308  price.  Our General Public Licenses are designed to make sure that you 
1309  have the freedom to distribute copies of free software (and charge for 
1310  them if you wish), that you receive source code or can get it if you 
1311  want it, that you can change the software or use pieces of it in new 
1312  free programs, and that you know you can do these things. 
1313   
1314    To protect your rights, we need to prevent others from denying you 
1315  these rights or asking you to surrender the rights.  Therefore, you have 
1316  certain responsibilities if you distribute copies of the software, or if 
1317  you modify it: responsibilities to respect the freedom of others. 
1318   
1319    For example, if you distribute copies of such a program, whether 
1320  gratis or for a fee, you must pass on to the recipients the same 
1321  freedoms that you received.  You must make sure that they, too, receive 
1322  or can get the source code.  And you must show them these terms so they 
1323  know their rights. 
1324   
1325    Developers that use the GNU GPL protect your rights with two steps: 
1326  (1) assert copyright on the software, and (2) offer you this License 
1327  giving you legal permission to copy, distribute and/or modify it. 
1328   
1329    For the developers' and authors' protection, the GPL clearly explains 
1330  that there is no warranty for this free software.  For both users' and 
1331  authors' sake, the GPL requires that modified versions be marked as 
1332  changed, so that their problems will not be attributed erroneously to 
1333  authors of previous versions. 
1334   
1335    Some devices are designed to deny users access to install or run 
1336  modified versions of the software inside them, although the manufacturer 
1337  can do so.  This is fundamentally incompatible with the aim of 
1338  protecting users' freedom to change the software.  The systematic 
1339  pattern of such abuse occurs in the area of products for individuals to 
1340  use, which is precisely where it is most unacceptable.  Therefore, we 
1341  have designed this version of the GPL to prohibit the practice for those 
1342  products.  If such problems arise substantially in other domains, we 
1343  stand ready to extend this provision to those domains in future versions 
1344  of the GPL, as needed to protect the freedom of users. 
1345   
1346    Finally, every program is threatened constantly by software patents. 
1347  States should not allow patents to restrict development and use of 
1348  software on general-purpose computers, but in those that do, we wish to 
1349  avoid the special danger that patents applied to a free program could 
1350  make it effectively proprietary.  To prevent this, the GPL assures that 
1351  patents cannot be used to render the program non-free. 
1352   
1353    The precise terms and conditions for copying, distribution and 
1354  modification follow. 
1355   
1356                         TERMS AND CONDITIONS 
1357   
1358    0. Definitions. 
1359   
1360    "This License" refers to version 3 of the GNU General Public License. 
1361   
1362    "Copyright" also means copyright-like laws that apply to other kinds of 
1363  works, such as semiconductor masks. 
1364   
1365    "The Program" refers to any copyrightable work licensed under this 
1366  License.  Each licensee is addressed as "you".  "Licensees" and 
1367  "recipients" may be individuals or organizations. 
1368   
1369    To "modify" a work means to copy from or adapt all or part of the work 
1370  in a fashion requiring copyright permission, other than the making of an 
1371  exact copy.  The resulting work is called a "modified version" of the 
1372  earlier work or a work "based on" the earlier work. 
1373   
1374    A "covered work" means either the unmodified Program or a work based 
1375  on the Program. 
1376   
1377    To "propagate" a work means to do anything with it that, without 
1378  permission, would make you directly or secondarily liable for 
1379  infringement under applicable copyright law, except executing it on a 
1380  computer or modifying a private copy.  Propagation includes copying, 
1381  distribution (with or without modification), making available to the 
1382  public, and in some countries other activities as well. 
1383   
1384    To "convey" a work means any kind of propagation that enables other 
1385  parties to make or receive copies.  Mere interaction with a user through 
1386  a computer network, with no transfer of a copy, is not conveying. 
1387   
1388    An interactive user interface displays "Appropriate Legal Notices" 
1389  to the extent that it includes a convenient and prominently visible 
1390  feature that (1) displays an appropriate copyright notice, and (2) 
1391  tells the user that there is no warranty for the work (except to the 
1392  extent that warranties are provided), that licensees may convey the 
1393  work under this License, and how to view a copy of this License.  If 
1394  the interface presents a list of user commands or options, such as a 
1395  menu, a prominent item in the list meets this criterion. 
1396   
1397    1. Source Code. 
1398   
1399    The "source code" for a work means the preferred form of the work 
1400  for making modifications to it.  "Object code" means any non-source 
1401  form of a work. 
1402   
1403    A "Standard Interface" means an interface that either is an official 
1404  standard defined by a recognized standards body, or, in the case of 
1405  interfaces specified for a particular programming language, one that 
1406  is widely used among developers working in that language. 
1407   
1408    The "System Libraries" of an executable work include anything, other 
1409  than the work as a whole, that (a) is included in the normal form of 
1410  packaging a Major Component, but which is not part of that Major 
1411  Component, and (b) serves only to enable use of the work with that 
1412  Major Component, or to implement a Standard Interface for which an 
1413  implementation is available to the public in source code form.  A 
1414  "Major Component", in this context, means a major essential component 
1415  (kernel, window system, and so on) of the specific operating system 
1416  (if any) on which the executable work runs, or a compiler used to 
1417  produce the work, or an object code interpreter used to run it. 
1418   
1419    The "Corresponding Source" for a work in object code form means all 
1420  the source code needed to generate, install, and (for an executable 
1421  work) run the object code and to modify the work, including scripts to 
1422  control those activities.  However, it does not include the work's 
1423  System Libraries, or general-purpose tools or generally available free 
1424  programs which are used unmodified in performing those activities but 
1425  which are not part of the work.  For example, Corresponding Source 
1426  includes interface definition files associated with source files for 
1427  the work, and the source code for shared libraries and dynamically 
1428  linked subprograms that the work is specifically designed to require, 
1429  such as by intimate data communication or control flow between those 
1430  subprograms and other parts of the work. 
1431   
1432    The Corresponding Source need not include anything that users 
1433  can regenerate automatically from other parts of the Corresponding 
1434  Source. 
1435   
1436    The Corresponding Source for a work in source code form is that 
1437  same work. 
1438   
1439    2. Basic Permissions. 
1440   
1441    All rights granted under this License are granted for the term of 
1442  copyright on the Program, and are irrevocable provided the stated 
1443  conditions are met.  This License explicitly affirms your unlimited 
1444  permission to run the unmodified Program.  The output from running a 
1445  covered work is covered by this License only if the output, given its 
1446  content, constitutes a covered work.  This License acknowledges your 
1447  rights of fair use or other equivalent, as provided by copyright law. 
1448   
1449    You may make, run and propagate covered works that you do not 
1450  convey, without conditions so long as your license otherwise remains 
1451  in force.  You may convey covered works to others for the sole purpose 
1452  of having them make modifications exclusively for you, or provide you 
1453  with facilities for running those works, provided that you comply with 
1454  the terms of this License in conveying all material for which you do 
1455  not control copyright.  Those thus making or running the covered works 
1456  for you must do so exclusively on your behalf, under your direction 
1457  and control, on terms that prohibit them from making any copies of 
1458  your copyrighted material outside their relationship with you. 
1459   
1460    Conveying under any other circumstances is permitted solely under 
1461  the conditions stated below.  Sublicensing is not allowed; section 10 
1462  makes it unnecessary. 
1463   
1464    3. Protecting Users' Legal Rights From Anti-Circumvention Law. 
1465   
1466    No covered work shall be deemed part of an effective technological 
1467  measure under any applicable law fulfilling obligations under article 
1468  11 of the WIPO copyright treaty adopted on 20 December 1996, or 
1469  similar laws prohibiting or restricting circumvention of such 
1470  measures. 
1471   
1472    When you convey a covered work, you waive any legal power to forbid 
1473  circumvention of technological measures to the extent such circumvention 
1474  is effected by exercising rights under this License with respect to 
1475  the covered work, and you disclaim any intention to limit operation or 
1476  modification of the work as a means of enforcing, against the work's 
1477  users, your or third parties' legal rights to forbid circumvention of 
1478  technological measures. 
1479   
1480    4. Conveying Verbatim Copies. 
1481   
1482    You may convey verbatim copies of the Program's source code as you 
1483  receive it, in any medium, provided that you conspicuously and 
1484  appropriately publish on each copy an appropriate copyright notice; 
1485  keep intact all notices stating that this License and any 
1486  non-permissive terms added in accord with section 7 apply to the code; 
1487  keep intact all notices of the absence of any warranty; and give all 
1488  recipients a copy of this License along with the Program. 
1489   
1490    You may charge any price or no price for each copy that you convey, 
1491  and you may offer support or warranty protection for a fee. 
1492   
1493    5. Conveying Modified Source Versions. 
1494   
1495    You may convey a work based on the Program, or the modifications to 
1496  produce it from the Program, in the form of source code under the 
1497  terms of section 4, provided that you also meet all of these conditions: 
1498   
1499      a) The work must carry prominent notices stating that you modified 
1500      it, and giving a relevant date. 
1501   
1502      b) The work must carry prominent notices stating that it is 
1503      released under this License and any conditions added under section 
1504      7.  This requirement modifies the requirement in section 4 to 
1505      "keep intact all notices". 
1506   
1507      c) You must license the entire work, as a whole, under this 
1508      License to anyone who comes into possession of a copy.  This 
1509      License will therefore apply, along with any applicable section 7 
1510      additional terms, to the whole of the work, and all its parts, 
1511      regardless of how they are packaged.  This License gives no 
1512      permission to license the work in any other way, but it does not 
1513      invalidate such permission if you have separately received it. 
1514   
1515      d) If the work has interactive user interfaces, each must display 
1516      Appropriate Legal Notices; however, if the Program has interactive 
1517      interfaces that do not display Appropriate Legal Notices, your 
1518      work need not make them do so. 
1519   
1520    A compilation of a covered work with other separate and independent 
1521  works, which are not by their nature extensions of the covered work, 
1522  and which are not combined with it such as to form a larger program, 
1523  in or on a volume of a storage or distribution medium, is called an 
1524  "aggregate" if the compilation and its resulting copyright are not 
1525  used to limit the access or legal rights of the compilation's users 
1526  beyond what the individual works permit.  Inclusion of a covered work 
1527  in an aggregate does not cause this License to apply to the other 
1528  parts of the aggregate. 
1529   
1530    6. Conveying Non-Source Forms. 
1531   
1532    You may convey a covered work in object code form under the terms 
1533  of sections 4 and 5, provided that you also convey the 
1534  machine-readable Corresponding Source under the terms of this License, 
1535  in one of these ways: 
1536   
1537      a) Convey the object code in, or embodied in, a physical product 
1538      (including a physical distribution medium), accompanied by the 
1539      Corresponding Source fixed on a durable physical medium 
1540      customarily used for software interchange. 
1541   
1542      b) Convey the object code in, or embodied in, a physical product 
1543      (including a physical distribution medium), accompanied by a 
1544      written offer, valid for at least three years and valid for as 
1545      long as you offer spare parts or customer support for that product 
1546      model, to give anyone who possesses the object code either (1) a 
1547      copy of the Corresponding Source for all the software in the 
1548      product that is covered by this License, on a durable physical 
1549      medium customarily used for software interchange, for a price no 
1550      more than your reasonable cost of physically performing this 
1551      conveying of source, or (2) access to copy the 
1552      Corresponding Source from a network server at no charge. 
1553   
1554      c) Convey individual copies of the object code with a copy of the 
1555      written offer to provide the Corresponding Source.  This 
1556      alternative is allowed only occasionally and noncommercially, and 
1557      only if you received the object code with such an offer, in accord 
1558      with subsection 6b. 
1559   
1560      d) Convey the object code by offering access from a designated 
1561      place (gratis or for a charge), and offer equivalent access to the 
1562      Corresponding Source in the same way through the same place at no 
1563      further charge.  You need not require recipients to copy the 
1564      Corresponding Source along with the object code.  If the place to 
1565      copy the object code is a network server, the Corresponding Source 
1566      may be on a different server (operated by you or a third party) 
1567      that supports equivalent copying facilities, provided you maintain 
1568      clear directions next to the object code saying where to find the 
1569      Corresponding Source.  Regardless of what server hosts the 
1570      Corresponding Source, you remain obligated to ensure that it is 
1571      available for as long as needed to satisfy these requirements. 
1572   
1573      e) Convey the object code using peer-to-peer transmission, provided 
1574      you inform other peers where the object code and Corresponding 
1575      Source of the work are being offered to the general public at no 
1576      charge under subsection 6d. 
1577   
1578    A separable portion of the object code, whose source code is excluded 
1579  from the Corresponding Source as a System Library, need not be 
1580  included in conveying the object code work. 
1581   
1582    A "User Product" is either (1) a "consumer product", which means any 
1583  tangible personal property which is normally used for personal, family, 
1584  or household purposes, or (2) anything designed or sold for incorporation 
1585  into a dwelling.  In determining whether a product is a consumer product, 
1586  doubtful cases shall be resolved in favor of coverage.  For a particular 
1587  product received by a particular user, "normally used" refers to a 
1588  typical or common use of that class of product, regardless of the status 
1589  of the particular user or of the way in which the particular user 
1590  actually uses, or expects or is expected to use, the product.  A product 
1591  is a consumer product regardless of whether the product has substantial 
1592  commercial, industrial or non-consumer uses, unless such uses represent 
1593  the only significant mode of use of the product. 
1594   
1595    "Installation Information" for a User Product means any methods, 
1596  procedures, authorization keys, or other information required to install 
1597  and execute modified versions of a covered work in that User Product from 
1598  a modified version of its Corresponding Source.  The information must 
1599  suffice to ensure that the continued functioning of the modified object 
1600  code is in no case prevented or interfered with solely because 
1601  modification has been made. 
1602   
1603    If you convey an object code work under this section in, or with, or 
1604  specifically for use in, a User Product, and the conveying occurs as 
1605  part of a transaction in which the right of possession and use of the 
1606  User Product is transferred to the recipient in perpetuity or for a 
1607  fixed term (regardless of how the transaction is characterized), the 
1608  Corresponding Source conveyed under this section must be accompanied 
1609  by the Installation Information.  But this requirement does not apply 
1610  if neither you nor any third party retains the ability to install 
1611  modified object code on the User Product (for example, the work has 
1612  been installed in ROM). 
1613   
1614    The requirement to provide Installation Information does not include a 
1615  requirement to continue to provide support service, warranty, or updates 
1616  for a work that has been modified or installed by the recipient, or for 
1617  the User Product in which it has been modified or installed.  Access to a 
1618  network may be denied when the modification itself materially and 
1619  adversely affects the operation of the network or violates the rules and 
1620  protocols for communication across the network. 
1621   
1622    Corresponding Source conveyed, and Installation Information provided, 
1623  in accord with this section must be in a format that is publicly 
1624  documented (and with an implementation available to the public in 
1625  source code form), and must require no special password or key for 
1626  unpacking, reading or copying. 
1627   
1628    7. Additional Terms. 
1629   
1630    "Additional permissions" are terms that supplement the terms of this 
1631  License by making exceptions from one or more of its conditions. 
1632  Additional permissions that are applicable to the entire Program shall 
1633  be treated as though they were included in this License, to the extent 
1634  that they are valid under applicable law.  If additional permissions 
1635  apply only to part of the Program, that part may be used separately 
1636  under those permissions, but the entire Program remains governed by 
1637  this License without regard to the additional permissions. 
1638   
1639    When you convey a copy of a covered work, you may at your option 
1640  remove any additional permissions from that copy, or from any part of 
1641  it.  (Additional permissions may be written to require their own 
1642  removal in certain cases when you modify the work.)  You may place 
1643  additional permissions on material, added by you to a covered work, 
1644  for which you have or can give appropriate copyright permission. 
1645   
1646    Notwithstanding any other provision of this License, for material you 
1647  add to a covered work, you may (if authorized by the copyright holders of 
1648  that material) supplement the terms of this License with terms: 
1649   
1650      a) Disclaiming warranty or limiting liability differently from the 
1651      terms of sections 15 and 16 of this License; or 
1652   
1653      b) Requiring preservation of specified reasonable legal notices or 
1654      author attributions in that material or in the Appropriate Legal 
1655      Notices displayed by works containing it; or 
1656   
1657      c) Prohibiting misrepresentation of the origin of that material, or 
1658      requiring that modified versions of such material be marked in 
1659      reasonable ways as different from the original version; or 
1660   
1661      d) Limiting the use for publicity purposes of names of licensors or 
1662      authors of the material; or 
1663   
1664      e) Declining to grant rights under trademark law for use of some 
1665      trade names, trademarks, or service marks; or 
1666   
1667      f) Requiring indemnification of licensors and authors of that 
1668      material by anyone who conveys the material (or modified versions of 
1669      it) with contractual assumptions of liability to the recipient, for 
1670      any liability that these contractual assumptions directly impose on 
1671      those licensors and authors. 
1672   
1673    All other non-permissive additional terms are considered "further 
1674  restrictions" within the meaning of section 10.  If the Program as you 
1675  received it, or any part of it, contains a notice stating that it is 
1676  governed by this License along with a term that is a further 
1677  restriction, you may remove that term.  If a license document contains 
1678  a further restriction but permits relicensing or conveying under this 
1679  License, you may add to a covered work material governed by the terms 
1680  of that license document, provided that the further restriction does 
1681  not survive such relicensing or conveying. 
1682   
1683    If you add terms to a covered work in accord with this section, you 
1684  must place, in the relevant source files, a statement of the 
1685  additional terms that apply to those files, or a notice indicating 
1686  where to find the applicable terms. 
1687   
1688    Additional terms, permissive or non-permissive, may be stated in the 
1689  form of a separately written license, or stated as exceptions; 
1690  the above requirements apply either way. 
1691   
1692    8. Termination. 
1693   
1694    You may not propagate or modify a covered work except as expressly 
1695  provided under this License.  Any attempt otherwise to propagate or 
1696  modify it is void, and will automatically terminate your rights under 
1697  this License (including any patent licenses granted under the third 
1698  paragraph of section 11). 
1699   
1700    However, if you cease all violation of this License, then your 
1701  license from a particular copyright holder is reinstated (a) 
1702  provisionally, unless and until the copyright holder explicitly and 
1703  finally terminates your license, and (b) permanently, if the copyright 
1704  holder fails to notify you of the violation by some reasonable means 
1705  prior to 60 days after the cessation. 
1706   
1707    Moreover, your license from a particular copyright holder is 
1708  reinstated permanently if the copyright holder notifies you of the 
1709  violation by some reasonable means, this is the first time you have 
1710  received notice of violation of this License (for any work) from that 
1711  copyright holder, and you cure the violation prior to 30 days after 
1712  your receipt of the notice. 
1713   
1714    Termination of your rights under this section does not terminate the 
1715  licenses of parties who have received copies or rights from you under 
1716  this License.  If your rights have been terminated and not permanently 
1717  reinstated, you do not qualify to receive new licenses for the same 
1718  material under section 10. 
1719   
1720    9. Acceptance Not Required for Having Copies. 
1721   
1722    You are not required to accept this License in order to receive or 
1723  run a copy of the Program.  Ancillary propagation of a covered work 
1724  occurring solely as a consequence of using peer-to-peer transmission 
1725  to receive a copy likewise does not require acceptance.  However, 
1726  nothing other than this License grants you permission to propagate or 
1727  modify any covered work.  These actions infringe copyright if you do 
1728  not accept this License.  Therefore, by modifying or propagating a 
1729  covered work, you indicate your acceptance of this License to do so. 
1730   
1731    10. Automatic Licensing of Downstream Recipients. 
1732   
1733    Each time you convey a covered work, the recipient automatically 
1734  receives a license from the original licensors, to run, modify and 
1735  propagate that work, subject to this License.  You are not responsible 
1736  for enforcing compliance by third parties with this License. 
1737   
1738    An "entity transaction" is a transaction transferring control of an 
1739  organization, or substantially all assets of one, or subdividing an 
1740  organization, or merging organizations.  If propagation of a covered 
1741  work results from an entity transaction, each party to that 
1742  transaction who receives a copy of the work also receives whatever 
1743  licenses to the work the party's predecessor in interest had or could 
1744  give under the previous paragraph, plus a right to possession of the 
1745  Corresponding Source of the work from the predecessor in interest, if 
1746  the predecessor has it or can get it with reasonable efforts. 
1747   
1748    You may not impose any further restrictions on the exercise of the 
1749  rights granted or affirmed under this License.  For example, you may 
1750  not impose a license fee, royalty, or other charge for exercise of 
1751  rights granted under this License, and you may not initiate litigation 
1752  (including a cross-claim or counterclaim in a lawsuit) alleging that 
1753  any patent claim is infringed by making, using, selling, offering for 
1754  sale, or importing the Program or any portion of it. 
1755   
1756    11. Patents. 
1757   
1758    A "contributor" is a copyright holder who authorizes use under this 
1759  License of the Program or a work on which the Program is based.  The 
1760  work thus licensed is called the contributor's "contributor version". 
1761   
1762    A contributor's "essential patent claims" are all patent claims 
1763  owned or controlled by the contributor, whether already acquired or 
1764  hereafter acquired, that would be infringed by some manner, permitted 
1765  by this License, of making, using, or selling its contributor version, 
1766  but do not include claims that would be infringed only as a 
1767  consequence of further modification of the contributor version.  For 
1768  purposes of this definition, "control" includes the right to grant 
1769  patent sublicenses in a manner consistent with the requirements of 
1770  this License. 
1771   
1772    Each contributor grants you a non-exclusive, worldwide, royalty-free 
1773  patent license under the contributor's essential patent claims, to 
1774  make, use, sell, offer for sale, import and otherwise run, modify and 
1775  propagate the contents of its contributor version. 
1776   
1777    In the following three paragraphs, a "patent license" is any express 
1778  agreement or commitment, however denominated, not to enforce a patent 
1779  (such as an express permission to practice a patent or covenant not to 
1780  sue for patent infringement).  To "grant" such a patent license to a 
1781  party means to make such an agreement or commitment not to enforce a 
1782  patent against the party. 
1783   
1784    If you convey a covered work, knowingly relying on a patent license, 
1785  and the Corresponding Source of the work is not available for anyone 
1786  to copy, free of charge and under the terms of this License, through a 
1787  publicly available network server or other readily accessible means, 
1788  then you must either (1) cause the Corresponding Source to be so 
1789  available, or (2) arrange to deprive yourself of the benefit of the 
1790  patent license for this particular work, or (3) arrange, in a manner 
1791  consistent with the requirements of this License, to extend the patent 
1792  license to downstream recipients.  "Knowingly relying" means you have 
1793  actual knowledge that, but for the patent license, your conveying the 
1794  covered work in a country, or your recipient's use of the covered work 
1795  in a country, would infringe one or more identifiable patents in that 
1796  country that you have reason to believe are valid. 
1797   
1798    If, pursuant to or in connection with a single transaction or 
1799  arrangement, you convey, or propagate by procuring conveyance of, a 
1800  covered work, and grant a patent license to some of the parties 
1801  receiving the covered work authorizing them to use, propagate, modify 
1802  or convey a specific copy of the covered work, then the patent license 
1803  you grant is automatically extended to all recipients of the covered 
1804  work and works based on it. 
1805   
1806    A patent license is "discriminatory" if it does not include within 
1807  the scope of its coverage, prohibits the exercise of, or is 
1808  conditioned on the non-exercise of one or more of the rights that are 
1809  specifically granted under this License.  You may not convey a covered 
1810  work if you are a party to an arrangement with a third party that is 
1811  in the business of distributing software, under which you make payment 
1812  to the third party based on the extent of your activity of conveying 
1813  the work, and under which the third party grants, to any of the 
1814  parties who would receive the covered work from you, a discriminatory 
1815  patent license (a) in connection with copies of the covered work 
1816  conveyed by you (or copies made from those copies), or (b) primarily 
1817  for and in connection with specific products or compilations that 
1818  contain the covered work, unless you entered into that arrangement, 
1819  or that patent license was granted, prior to 28 March 2007. 
1820   
1821    Nothing in this License shall be construed as excluding or limiting 
1822  any implied license or other defenses to infringement that may 
1823  otherwise be available to you under applicable patent law. 
1824   
1825    12. No Surrender of Others' Freedom. 
1826   
1827    If conditions are imposed on you (whether by court order, agreement or 
1828  otherwise) that contradict the conditions of this License, they do not 
1829  excuse you from the conditions of this License.  If you cannot convey a 
1830  covered work so as to satisfy simultaneously your obligations under this 
1831  License and any other pertinent obligations, then as a consequence you may 
1832  not convey it at all.  For example, if you agree to terms that obligate you 
1833  to collect a royalty for further conveying from those to whom you convey 
1834  the Program, the only way you could satisfy both those terms and this 
1835  License would be to refrain entirely from conveying the Program. 
1836   
1837    13. Use with the GNU Affero General Public License. 
1838   
1839    Notwithstanding any other provision of this License, you have 
1840  permission to link or combine any covered work with a work licensed 
1841  under version 3 of the GNU Affero General Public License into a single 
1842  combined work, and to convey the resulting work.  The terms of this 
1843  License will continue to apply to the part which is the covered work, 
1844  but the special requirements of the GNU Affero General Public License, 
1845  section 13, concerning interaction through a network will apply to the 
1846  combination as such. 
1847   
1848    14. Revised Versions of this License. 
1849   
1850    The Free Software Foundation may publish revised and/or new versions of 
1851  the GNU General Public License from time to time.  Such new versions will 
1852  be similar in spirit to the present version, but may differ in detail to 
1853  address new problems or concerns. 
1854   
1855    Each version is given a distinguishing version number.  If the 
1856  Program specifies that a certain numbered version of the GNU General 
1857  Public License "or any later version" applies to it, you have the 
1858  option of following the terms and conditions either of that numbered 
1859  version or of any later version published by the Free Software 
1860  Foundation.  If the Program does not specify a version number of the 
1861  GNU General Public License, you may choose any version ever published 
1862  by the Free Software Foundation. 
1863   
1864    If the Program specifies that a proxy can decide which future 
1865  versions of the GNU General Public License can be used, that proxy's 
1866  public statement of acceptance of a version permanently authorizes you 
1867  to choose that version for the Program. 
1868   
1869    Later license versions may give you additional or different 
1870  permissions.  However, no additional obligations are imposed on any 
1871  author or copyright holder as a result of your choosing to follow a 
1872  later version. 
1873   
1874    15. Disclaimer of Warranty. 
1875   
1876    THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 
1877  APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 
1878  HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 
1879  OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 
1880  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
1881  PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 
1882  IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 
1883  ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 
1884   
1885    16. Limitation of Liability. 
1886   
1887    IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 
1888  WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 
1889  THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 
1890  GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 
1891  USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 
1892  DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 
1893  PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 
1894  EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 
1895  SUCH DAMAGES. 
1896   
1897    17. Interpretation of Sections 15 and 16. 
1898   
1899    If the disclaimer of warranty and limitation of liability provided 
1900  above cannot be given local legal effect according to their terms, 
1901  reviewing courts shall apply local law that most closely approximates 
1902  an absolute waiver of all civil liability in connection with the 
1903  Program, unless a warranty or assumption of liability accompanies a 
1904  copy of the Program in return for a fee. 
1905   
1906                       END OF TERMS AND CONDITIONS 
1907   
1908              How to Apply These Terms to Your New Programs 
1909   
1910    If you develop a new program, and you want it to be of the greatest 
1911  possible use to the public, the best way to achieve this is to make it 
1912  free software which everyone can redistribute and change under these terms. 
1913   
1914    To do so, attach the following notices to the program.  It is safest 
1915  to attach them to the start of each source file to most effectively 
1916  state the exclusion of warranty; and each file should have at least 
1917  the "copyright" line and a pointer to where the full notice is found. 
1918   
1919      <one line to give the program's name and a brief idea of what it does.> 
1920      Copyright (C) <year>  <name of author> 
1921   
1922      This program is free software: you can redistribute it and/or modify 
1923      it under the terms of the GNU General Public License as published by 
1924      the Free Software Foundation, either version 3 of the License, or 
1925      (at your option) any later version. 
1926   
1927      This program is distributed in the hope that it will be useful, 
1928      but WITHOUT ANY WARRANTY; without even the implied warranty of 
1929      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
1930      GNU General Public License for more details. 
1931   
1932      You should have received a copy of the GNU General Public License 
1933      along with this program.  If not, see <http://www.gnu.org/licenses/>. 
1934   
1935  Also add information on how to contact you by electronic and paper mail. 
1936   
1937    If the program does terminal interaction, make it output a short 
1938  notice like this when it starts in an interactive mode: 
1939   
1940      <program>  Copyright (C) <year>  <name of author> 
1941      This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 
1942      This is free software, and you are welcome to redistribute it 
1943      under certain conditions; type `show c' for details. 
1944   
1945  The hypothetical commands `show w' and `show c' should show the appropriate 
1946  parts of the General Public License.  Of course, your program's commands 
1947  might be different; for a GUI interface, you would use an "about box". 
1948   
1949    You should also get your employer (if you work as a programmer) or school, 
1950  if any, to sign a "copyright disclaimer" for the program, if necessary. 
1951  For more information on this, and how to apply and follow the GNU GPL, see 
1952  <http://www.gnu.org/licenses/>. 
1953   
1954    The GNU General Public License does not permit incorporating your program 
1955  into proprietary programs.  If your program is a subroutine library, you 
1956  may consider it more useful to permit linking proprietary applications with 
1957  the library.  If this is what you want to do, use the GNU Lesser General 
1958  Public License instead of this License.  But first, please read 
1959  <http://www.gnu.org/philosophy/why-not-lgpl.html>. 
1960  """ 
1961   
1962   
1963  LGPL_2_1 = """ 
1964                    GNU LESSER GENERAL PUBLIC LICENSE 
1965                         Version 2.1, February 1999 
1966   
1967   Copyright (C) 1991, 1999 Free Software Foundation, Inc. 
1968   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA 
1969   Everyone is permitted to copy and distribute verbatim copies 
1970   of this license document, but changing it is not allowed. 
1971   
1972  [This is the first released version of the Lesser GPL.  It also counts 
1973   as the successor of the GNU Library Public License, version 2, hence 
1974   the version number 2.1.] 
1975   
1976                              Preamble 
1977   
1978    The licenses for most software are designed to take away your 
1979  freedom to share and change it.  By contrast, the GNU General Public 
1980  Licenses are intended to guarantee your freedom to share and change 
1981  free software--to make sure the software is free for all its users. 
1982   
1983    This license, the Lesser General Public License, applies to some 
1984  specially designated software packages--typically libraries--of the 
1985  Free Software Foundation and other authors who decide to use it.  You 
1986  can use it too, but we suggest you first think carefully about whether 
1987  this license or the ordinary General Public License is the better 
1988  strategy to use in any particular case, based on the explanations below. 
1989   
1990    When we speak of free software, we are referring to freedom of use, 
1991  not price.  Our General Public Licenses are designed to make sure that 
1992  you have the freedom to distribute copies of free software (and charge 
1993  for this service if you wish); that you receive source code or can get 
1994  it if you want it; that you can change the software and use pieces of 
1995  it in new free programs; and that you are informed that you can do 
1996  these things. 
1997   
1998    To protect your rights, we need to make restrictions that forbid 
1999  distributors to deny you these rights or to ask you to surrender these 
2000  rights.  These restrictions translate to certain responsibilities for 
2001  you if you distribute copies of the library or if you modify it. 
2002   
2003    For example, if you distribute copies of the library, whether gratis 
2004  or for a fee, you must give the recipients all the rights that we gave 
2005  you.  You must make sure that they, too, receive or can get the source 
2006  code.  If you link other code with the library, you must provide 
2007  complete object files to the recipients, so that they can relink them 
2008  with the library after making changes to the library and recompiling 
2009  it.  And you must show them these terms so they know their rights. 
2010   
2011    We protect your rights with a two-step method: (1) we copyright the 
2012  library, and (2) we offer you this license, which gives you legal 
2013  permission to copy, distribute and/or modify the library. 
2014   
2015    To protect each distributor, we want to make it very clear that 
2016  there is no warranty for the free library.  Also, if the library is 
2017  modified by someone else and passed on, the recipients should know 
2018  that what they have is not the original version, so that the original 
2019  author's reputation will not be affected by problems that might be 
2020  introduced by others. 
2021   
2022    Finally, software patents pose a constant threat to the existence of 
2023  any free program.  We wish to make sure that a company cannot 
2024  effectively restrict the users of a free program by obtaining a 
2025  restrictive license from a patent holder.  Therefore, we insist that 
2026  any patent license obtained for a version of the library must be 
2027  consistent with the full freedom of use specified in this license. 
2028   
2029    Most GNU software, including some libraries, is covered by the 
2030  ordinary GNU General Public License.  This license, the GNU Lesser 
2031  General Public License, applies to certain designated libraries, and 
2032  is quite different from the ordinary General Public License.  We use 
2033  this license for certain libraries in order to permit linking those 
2034  libraries into non-free programs. 
2035   
2036    When a program is linked with a library, whether statically or using 
2037  a shared library, the combination of the two is legally speaking a 
2038  combined work, a derivative of the original library.  The ordinary 
2039  General Public License therefore permits such linking only if the 
2040  entire combination fits its criteria of freedom.  The Lesser General 
2041  Public License permits more lax criteria for linking other code with 
2042  the library. 
2043   
2044    We call this license the "Lesser" General Public License because it 
2045  does Less to protect the user's freedom than the ordinary General 
2046  Public License.  It also provides other free software developers Less 
2047  of an advantage over competing non-free programs.  These disadvantages 
2048  are the reason we use the ordinary General Public License for many 
2049  libraries.  However, the Lesser license provides advantages in certain 
2050  special circumstances. 
2051   
2052    For example, on rare occasions, there may be a special need to 
2053  encourage the widest possible use of a certain library, so that it becomes 
2054  a de-facto standard.  To achieve this, non-free programs must be 
2055  allowed to use the library.  A more frequent case is that a free 
2056  library does the same job as widely used non-free libraries.  In this 
2057  case, there is little to gain by limiting the free library to free 
2058  software only, so we use the Lesser General Public License. 
2059   
2060    In other cases, permission to use a particular library in non-free 
2061  programs enables a greater number of people to use a large body of 
2062  free software.  For example, permission to use the GNU C Library in 
2063  non-free programs enables many more people to use the whole GNU 
2064  operating system, as well as its variant, the GNU/Linux operating 
2065  system. 
2066   
2067    Although the Lesser General Public License is Less protective of the 
2068  users' freedom, it does ensure that the user of a program that is 
2069  linked with the Library has the freedom and the wherewithal to run 
2070  that program using a modified version of the Library. 
2071   
2072    The precise terms and conditions for copying, distribution and 
2073  modification follow.  Pay close attention to the difference between a 
2074  "work based on the library" and a "work that uses the library".  The 
2075  former contains code derived from the library, whereas the latter must 
2076  be combined with the library in order to run. 
2077   
2078                    GNU LESSER GENERAL PUBLIC LICENSE 
2079     TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 
2080   
2081    0. This License Agreement applies to any software library or other 
2082  program which contains a notice placed by the copyright holder or 
2083  other authorized party saying it may be distributed under the terms of 
2084  this Lesser General Public License (also called "this License"). 
2085  Each licensee is addressed as "you". 
2086   
2087    A "library" means a collection of software functions and/or data 
2088  prepared so as to be conveniently linked with application programs 
2089  (which use some of those functions and data) to form executables. 
2090   
2091    The "Library", below, refers to any such software library or work 
2092  which has been distributed under these terms.  A "work based on the 
2093  Library" means either the Library or any derivative work under 
2094  copyright law: that is to say, a work containing the Library or a 
2095  portion of it, either verbatim or with modifications and/or translated 
2096  straightforwardly into another language.  (Hereinafter, translation is 
2097  included without limitation in the term "modification".) 
2098   
2099    "Source code" for a work means the preferred form of the work for 
2100  making modifications to it.  For a library, complete source code means 
2101  all the source code for all modules it contains, plus any associated 
2102  interface definition files, plus the scripts used to control compilation 
2103  and installation of the library. 
2104   
2105    Activities other than copying, distribution and modification are not 
2106  covered by this License; they are outside its scope.  The act of 
2107  running a program using the Library is not restricted, and output from 
2108  such a program is covered only if its contents constitute a work based 
2109  on the Library (independent of the use of the Library in a tool for 
2110  writing it).  Whether that is true depends on what the Library does 
2111  and what the program that uses the Library does. 
2112   
2113    1. You may copy and distribute verbatim copies of the Library's 
2114  complete source code as you receive it, in any medium, provided that 
2115  you conspicuously and appropriately publish on each copy an 
2116  appropriate copyright notice and disclaimer of warranty; keep intact 
2117  all the notices that refer to this License and to the absence of any 
2118  warranty; and distribute a copy of this License along with the 
2119  Library. 
2120   
2121    You may charge a fee for the physical act of transferring a copy, 
2122  and you may at your option offer warranty protection in exchange for a 
2123  fee. 
2124   
2125    2. You may modify your copy or copies of the Library or any portion 
2126  of it, thus forming a work based on the Library, and copy and 
2127  distribute such modifications or work under the terms of Section 1 
2128  above, provided that you also meet all of these conditions: 
2129   
2130      a) The modified work must itself be a software library. 
2131   
2132      b) You must cause the files modified to carry prominent notices 
2133      stating that you changed the files and the date of any change. 
2134   
2135      c) You must cause the whole of the work to be licensed at no 
2136      charge to all third parties under the terms of this License. 
2137   
2138      d) If a facility in the modified Library refers to a function or a 
2139      table of data to be supplied by an application program that uses 
2140      the facility, other than as an argument passed when the facility 
2141      is invoked, then you must make a good faith effort to ensure that, 
2142      in the event an application does not supply such function or 
2143      table, the facility still operates, and performs whatever part of 
2144      its purpose remains meaningful. 
2145   
2146      (For example, a function in a library to compute square roots has 
2147      a purpose that is entirely well-defined independent of the 
2148      application.  Therefore, Subsection 2d requires that any 
2149      application-supplied function or table used by this function must 
2150      be optional: if the application does not supply it, the square 
2151      root function must still compute square roots.) 
2152   
2153  These requirements apply to the modified work as a whole.  If 
2154  identifiable sections of that work are not derived from the Library, 
2155  and can be reasonably considered independent and separate works in 
2156  themselves, then this License, and its terms, do not apply to those 
2157  sections when you distribute them as separate works.  But when you 
2158  distribute the same sections as part of a whole which is a work based 
2159  on the Library, the distribution of the whole must be on the terms of 
2160  this License, whose permissions for other licensees extend to the 
2161  entire whole, and thus to each and every part regardless of who wrote 
2162  it. 
2163   
2164  Thus, it is not the intent of this section to claim rights or contest 
2165  your rights to work written entirely by you; rather, the intent is to 
2166  exercise the right to control the distribution of derivative or 
2167  collective works based on the Library. 
2168   
2169  In addition, mere aggregation of another work not based on the Library 
2170  with the Library (or with a work based on the Library) on a volume of 
2171  a storage or distribution medium does not bring the other work under 
2172  the scope of this License. 
2173   
2174    3. You may opt to apply the terms of the ordinary GNU General Public 
2175  License instead of this License to a given copy of the Library.  To do 
2176  this, you must alter all the notices that refer to this License, so 
2177  that they refer to the ordinary GNU General Public License, version 2, 
2178  instead of to this License.  (If a newer version than version 2 of the 
2179  ordinary GNU General Public License has appeared, then you can specify 
2180  that version instead if you wish.)  Do not make any other change in 
2181  these notices. 
2182   
2183    Once this change is made in a given copy, it is irreversible for 
2184  that copy, so the ordinary GNU General Public License applies to all 
2185  subsequent copies and derivative works made from that copy. 
2186   
2187    This option is useful when you wish to copy part of the code of 
2188  the Library into a program that is not a library. 
2189   
2190    4. You may copy and distribute the Library (or a portion or 
2191  derivative of it, under Section 2) in object code or executable form 
2192  under the terms of Sections 1 and 2 above provided that you accompany 
2193  it with the complete corresponding machine-readable source code, which 
2194  must be distributed under the terms of Sections 1 and 2 above on a 
2195  medium customarily used for software interchange. 
2196   
2197    If distribution of object code is made by offering access to copy 
2198  from a designated place, then offering equivalent access to copy the 
2199  source code from the same place satisfies the requirement to 
2200  distribute the source code, even though third parties are not 
2201  compelled to copy the source along with the object code. 
2202   
2203    5. A program that contains no derivative of any portion of the 
2204  Library, but is designed to work with the Library by being compiled or 
2205  linked with it, is called a "work that uses the Library".  Such a 
2206  work, in isolation, is not a derivative work of the Library, and 
2207  therefore falls outside the scope of this License. 
2208   
2209    However, linking a "work that uses the Library" with the Library 
2210  creates an executable that is a derivative of the Library (because it 
2211  contains portions of the Library), rather than a "work that uses the 
2212  library".  The executable is therefore covered by this License. 
2213  Section 6 states terms for distribution of such executables. 
2214   
2215    When a "work that uses the Library" uses material from a header file 
2216  that is part of the Library, the object code for the work may be a 
2217  derivative work of the Library even though the source code is not. 
2218  Whether this is true is especially significant if the work can be 
2219  linked without the Library, or if the work is itself a library.  The 
2220  threshold for this to be true is not precisely defined by law. 
2221   
2222    If such an object file uses only numerical parameters, data 
2223  structure layouts and accessors, and small macros and small inline 
2224  functions (ten lines or less in length), then the use of the object 
2225  file is unrestricted, regardless of whether it is legally a derivative 
2226  work.  (Executables containing this object code plus portions of the 
2227  Library will still fall under Section 6.) 
2228   
2229    Otherwise, if the work is a derivative of the Library, you may 
2230  distribute the object code for the work under the terms of Section 6. 
2231  Any executables containing that work also fall under Section 6, 
2232  whether or not they are linked directly with the Library itself. 
2233   
2234    6. As an exception to the Sections above, you may also combine or 
2235  link a "work that uses the Library" with the Library to produce a 
2236  work containing portions of the Library, and distribute that work 
2237  under terms of your choice, provided that the terms permit 
2238  modification of the work for the customer's own use and reverse 
2239  engineering for debugging such modifications. 
2240   
2241    You must give prominent notice with each copy of the work that the 
2242  Library is used in it and that the Library and its use are covered by 
2243  this License.  You must supply a copy of this License.  If the work 
2244  during execution displays copyright notices, you must include the 
2245  copyright notice for the Library among them, as well as a reference 
2246  directing the user to the copy of this License.  Also, you must do one 
2247  of these things: 
2248   
2249      a) Accompany the work with the complete corresponding 
2250      machine-readable source code for the Library including whatever 
2251      changes were used in the work (which must be distributed under 
2252      Sections 1 and 2 above); and, if the work is an executable linked 
2253      with the Library, with the complete machine-readable "work that 
2254      uses the Library", as object code and/or source code, so that the 
2255      user can modify the Library and then relink to produce a modified 
2256      executable containing the modified Library.  (It is understood 
2257      that the user who changes the contents of definitions files in the 
2258      Library will not necessarily be able to recompile the application 
2259      to use the modified definitions.) 
2260   
2261      b) Use a suitable shared library mechanism for linking with the 
2262      Library.  A suitable mechanism is one that (1) uses at run time a 
2263      copy of the library already present on the user's computer system, 
2264      rather than copying library functions into the executable, and (2) 
2265      will operate properly with a modified version of the library, if 
2266      the user installs one, as long as the modified version is 
2267      interface-compatible with the version that the work was made with. 
2268   
2269      c) Accompany the work with a written offer, valid for at 
2270      least three years, to give the same user the materials 
2271      specified in Subsection 6a, above, for a charge no more 
2272      than the cost of performing this distribution. 
2273   
2274      d) If distribution of the work is made by offering access to copy 
2275      from a designated place, offer equivalent access to copy the above 
2276      specified materials from the same place. 
2277   
2278      e) Verify that the user has already received a copy of these 
2279      materials or that you have already sent this user a copy. 
2280   
2281    For an executable, the required form of the "work that uses the 
2282  Library" must include any data and utility programs needed for 
2283  reproducing the executable from it.  However, as a special exception, 
2284  the materials to be distributed need not include anything that is 
2285  normally distributed (in either source or binary form) with the major 
2286  components (compiler, kernel, and so on) of the operating system on 
2287  which the executable runs, unless that component itself accompanies 
2288  the executable. 
2289   
2290    It may happen that this requirement contradicts the license 
2291  restrictions of other proprietary libraries that do not normally 
2292  accompany the operating system.  Such a contradiction means you cannot 
2293  use both them and the Library together in an executable that you 
2294  distribute. 
2295   
2296    7. You may place library facilities that are a work based on the 
2297  Library side-by-side in a single library together with other library 
2298  facilities not covered by this License, and distribute such a combined 
2299  library, provided that the separate distribution of the work based on 
2300  the Library and of the other library facilities is otherwise 
2301  permitted, and provided that you do these two things: 
2302   
2303      a) Accompany the combined library with a copy of the same work 
2304      based on the Library, uncombined with any other library 
2305      facilities.  This must be distributed under the terms of the 
2306      Sections above. 
2307   
2308      b) Give prominent notice with the combined library of the fact 
2309      that part of it is a work based on the Library, and explaining 
2310      where to find the accompanying uncombined form of the same work. 
2311   
2312    8. You may not copy, modify, sublicense, link with, or distribute 
2313  the Library except as expressly provided under this License.  Any 
2314  attempt otherwise to copy, modify, sublicense, link with, or 
2315  distribute the Library is void, and will automatically terminate your 
2316  rights under this License.  However, parties who have received copies, 
2317  or rights, from you under this License will not have their licenses 
2318  terminated so long as such parties remain in full compliance. 
2319   
2320    9. You are not required to accept this License, since you have not 
2321  signed it.  However, nothing else grants you permission to modify or 
2322  distribute the Library or its derivative works.  These actions are 
2323  prohibited by law if you do not accept this License.  Therefore, by 
2324  modifying or distributing the Library (or any work based on the 
2325  Library), you indicate your acceptance of this License to do so, and 
2326  all its terms and conditions for copying, distributing or modifying 
2327  the Library or works based on it. 
2328   
2329    10. Each time you redistribute the Library (or any work based on the 
2330  Library), the recipient automatically receives a license from the 
2331  original licensor to copy, distribute, link with or modify the Library 
2332  subject to these terms and conditions.  You may not impose any further 
2333  restrictions on the recipients' exercise of the rights granted herein. 
2334  You are not responsible for enforcing compliance by third parties with 
2335  this License. 
2336   
2337    11. If, as a consequence of a court judgment or allegation of patent 
2338  infringement or for any other reason (not limited to patent issues), 
2339  conditions are imposed on you (whether by court order, agreement or 
2340  otherwise) that contradict the conditions of this License, they do not 
2341  excuse you from the conditions of this License.  If you cannot 
2342  distribute so as to satisfy simultaneously your obligations under this 
2343  License and any other pertinent obligations, then as a consequence you 
2344  may not distribute the Library at all.  For example, if a patent 
2345  license would not permit royalty-free redistribution of the Library by 
2346  all those who receive copies directly or indirectly through you, then 
2347  the only way you could satisfy both it and this License would be to 
2348  refrain entirely from distribution of the Library. 
2349   
2350  If any portion of this section is held invalid or unenforceable under any 
2351  particular circumstance, the balance of the section is intended to apply, 
2352  and the section as a whole is intended to apply in other circumstances. 
2353   
2354  It is not the purpose of this section to induce you to infringe any 
2355  patents or other property right claims or to contest validity of any 
2356  such claims; this section has the sole purpose of protecting the 
2357  integrity of the free software distribution system which is 
2358  implemented by public license practices.  Many people have made 
2359  generous contributions to the wide range of software distributed 
2360  through that system in reliance on consistent application of that 
2361  system; it is up to the author/donor to decide if he or she is willing 
2362  to distribute software through any other system and a licensee cannot 
2363  impose that choice. 
2364   
2365  This section is intended to make thoroughly clear what is believed to 
2366  be a consequence of the rest of this License. 
2367   
2368    12. If the distribution and/or use of the Library is restricted in 
2369  certain countries either by patents or by copyrighted interfaces, the 
2370  original copyright holder who places the Library under this License may add 
2371  an explicit geographical distribution limitation excluding those countries, 
2372  so that distribution is permitted only in or among countries not thus 
2373  excluded.  In such case, this License incorporates the limitation as if 
2374  written in the body of this License. 
2375   
2376    13. The Free Software Foundation may publish revised and/or new 
2377  versions of the Lesser General Public License from time to time. 
2378  Such new versions will be similar in spirit to the present version, 
2379  but may differ in detail to address new problems or concerns. 
2380   
2381  Each version is given a distinguishing version number.  If the Library 
2382  specifies a version number of this License which applies to it and 
2383  "any later version", you have the option of following the terms and 
2384  conditions either of that version or of any later version published by 
2385  the Free Software Foundation.  If the Library does not specify a 
2386  license version number, you may choose any version ever published by 
2387  the Free Software Foundation. 
2388   
2389    14. If you wish to incorporate parts of the Library into other free 
2390  programs whose distribution conditions are incompatible with these, 
2391  write to the author to ask for permission.  For software which is 
2392  copyrighted by the Free Software Foundation, write to the Free 
2393  Software Foundation; we sometimes make exceptions for this.  Our 
2394  decision will be guided by the two goals of preserving the free status 
2395  of all derivatives of our free software and of promoting the sharing 
2396  and reuse of software generally. 
2397   
2398                              NO WARRANTY 
2399   
2400    15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO 
2401  WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 
2402  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 
2403  OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY 
2404  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE 
2405  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
2406  PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 
2407  LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME 
2408  THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 
2409   
2410    16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN 
2411  WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY 
2412  AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU 
2413  FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR 
2414  CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 
2415  LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 
2416  RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 
2417  FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF 
2418  SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 
2419  DAMAGES. 
2420   
2421                       END OF TERMS AND CONDITIONS 
2422   
2423             How to Apply These Terms to Your New Libraries 
2424   
2425    If you develop a new library, and you want it to be of the greatest 
2426  possible use to the public, we recommend making it free software that 
2427  everyone can redistribute and change.  You can do so by permitting 
2428  redistribution under these terms (or, alternatively, under the terms of the 
2429  ordinary General Public License). 
2430   
2431    To apply these terms, attach the following notices to the library.  It is 
2432  safest to attach them to the start of each source file to most effectively 
2433  convey the exclusion of warranty; and each file should have at least the 
2434  "copyright" line and a pointer to where the full notice is found. 
2435   
2436      <one line to give the library's name and a brief idea of what it does.> 
2437      Copyright (C) <year>  <name of author> 
2438   
2439      This library is free software; you can redistribute it and/or 
2440      modify it under the terms of the GNU Lesser General Public 
2441      License as published by the Free Software Foundation; either 
2442      version 2.1 of the License, or (at your option) any later version. 
2443   
2444      This library is distributed in the hope that it will be useful, 
2445      but WITHOUT ANY WARRANTY; without even the implied warranty of 
2446      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
2447      Lesser General Public License for more details. 
2448   
2449      You should have received a copy of the GNU Lesser General Public 
2450      License along with this library; if not, write to the Free Software 
2451      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA 
2452   
2453  Also add information on how to contact you by electronic and paper mail. 
2454   
2455  You should also get your employer (if you work as a programmer) or your 
2456  school, if any, to sign a "copyright disclaimer" for the library, if 
2457  necessary.  Here is a sample; alter the names: 
2458   
2459    Yoyodyne, Inc., hereby disclaims all copyright interest in the 
2460    library `Frob' (a library for tweaking knobs) written by James Random Hacker. 
2461   
2462    <signature of Ty Coon>, 1 April 1990 
2463    Ty Coon, President of Vice 
2464   
2465  That's all there is to it! 
2466  """ 
2467   
2468   
2469  LGPL_3 = """ 
2470                     GNU LESSER GENERAL PUBLIC LICENSE 
2471                         Version 3, 29 June 2007 
2472   
2473   Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> 
2474   Everyone is permitted to copy and distribute verbatim copies 
2475   of this license document, but changing it is not allowed. 
2476   
2477   
2478    This version of the GNU Lesser General Public License incorporates 
2479  the terms and conditions of version 3 of the GNU General Public 
2480  License, supplemented by the additional permissions listed below. 
2481   
2482    0. Additional Definitions. 
2483   
2484    As used herein, "this License" refers to version 3 of the GNU Lesser 
2485  General Public License, and the "GNU GPL" refers to version 3 of the GNU 
2486  General Public License. 
2487   
2488    "The Library" refers to a covered work governed by this License, 
2489  other than an Application or a Combined Work as defined below. 
2490   
2491    An "Application" is any work that makes use of an interface provided 
2492  by the Library, but which is not otherwise based on the Library. 
2493  Defining a subclass of a class defined by the Library is deemed a mode 
2494  of using an interface provided by the Library. 
2495   
2496    A "Combined Work" is a work produced by combining or linking an 
2497  Application with the Library.  The particular version of the Library 
2498  with which the Combined Work was made is also called the "Linked 
2499  Version". 
2500   
2501    The "Minimal Corresponding Source" for a Combined Work means the 
2502  Corresponding Source for the Combined Work, excluding any source code 
2503  for portions of the Combined Work that, considered in isolation, are 
2504  based on the Application, and not on the Linked Version. 
2505   
2506    The "Corresponding Application Code" for a Combined Work means the 
2507  object code and/or source code for the Application, including any data 
2508  and utility programs needed for reproducing the Combined Work from the 
2509  Application, but excluding the System Libraries of the Combined Work. 
2510   
2511    1. Exception to Section 3 of the GNU GPL. 
2512   
2513    You may convey a covered work under sections 3 and 4 of this License 
2514  without being bound by section 3 of the GNU GPL. 
2515   
2516    2. Conveying Modified Versions. 
2517   
2518    If you modify a copy of the Library, and, in your modifications, a 
2519  facility refers to a function or data to be supplied by an Application 
2520  that uses the facility (other than as an argument passed when the 
2521  facility is invoked), then you may convey a copy of the modified 
2522  version: 
2523   
2524     a) under this License, provided that you make a good faith effort to 
2525     ensure that, in the event an Application does not supply the 
2526     function or data, the facility still operates, and performs 
2527     whatever part of its purpose remains meaningful, or 
2528   
2529     b) under the GNU GPL, with none of the additional permissions of 
2530     this License applicable to that copy. 
2531   
2532    3. Object Code Incorporating Material from Library Header Files. 
2533   
2534    The object code form of an Application may incorporate material from 
2535  a header file that is part of the Library.  You may convey such object 
2536  code under terms of your choice, provided that, if the incorporated 
2537  material is not limited to numerical parameters, data structure 
2538  layouts and accessors, or small macros, inline functions and templates 
2539  (ten or fewer lines in length), you do both of the following: 
2540   
2541     a) Give prominent notice with each copy of the object code that the 
2542     Library is used in it and that the Library and its use are 
2543     covered by this License. 
2544   
2545     b) Accompany the object code with a copy of the GNU GPL and this license 
2546     document. 
2547   
2548    4. Combined Works. 
2549   
2550    You may convey a Combined Work under terms of your choice that, 
2551  taken together, effectively do not restrict modification of the 
2552  portions of the Library contained in the Combined Work and reverse 
2553  engineering for debugging such modifications, if you also do each of 
2554  the following: 
2555   
2556     a) Give prominent notice with each copy of the Combined Work that 
2557     the Library is used in it and that the Library and its use are 
2558     covered by this License. 
2559   
2560     b) Accompany the Combined Work with a copy of the GNU GPL and this license 
2561     document. 
2562   
2563     c) For a Combined Work that displays copyright notices during 
2564     execution, include the copyright notice for the Library among 
2565     these notices, as well as a reference directing the user to the 
2566     copies of the GNU GPL and this license document. 
2567   
2568     d) Do one of the following: 
2569   
2570         0) Convey the Minimal Corresponding Source under the terms of this 
2571         License, and the Corresponding Application Code in a form 
2572         suitable for, and under terms that permit, the user to 
2573         recombine or relink the Application with a modified version of 
2574         the Linked Version to produce a modified Combined Work, in the 
2575         manner specified by section 6 of the GNU GPL for conveying 
2576         Corresponding Source. 
2577   
2578         1) Use a suitable shared library mechanism for linking with the 
2579         Library.  A suitable mechanism is one that (a) uses at run time 
2580         a copy of the Library already present on the user's computer 
2581         system, and (b) will operate properly with a modified version 
2582         of the Library that is interface-compatible with the Linked 
2583         Version. 
2584   
2585     e) Provide Installation Information, but only if you would otherwise 
2586     be required to provide such information under section 6 of the 
2587     GNU GPL, and only to the extent that such information is 
2588     necessary to install and execute a modified version of the 
2589     Combined Work produced by recombining or relinking the 
2590     Application with a modified version of the Linked Version. (If 
2591     you use option 4d0, the Installation Information must accompany 
2592     the Minimal Corresponding Source and Corresponding Application 
2593     Code. If you use option 4d1, you must provide the Installation 
2594     Information in the manner specified by section 6 of the GNU GPL 
2595     for conveying Corresponding Source.) 
2596   
2597    5. Combined Libraries. 
2598   
2599    You may place library facilities that are a work based on the 
2600  Library side by side in a single library together with other library 
2601  facilities that are not Applications and are not covered by this 
2602  License, and convey such a combined library under terms of your 
2603  choice, if you do both of the following: 
2604   
2605     a) Accompany the combined library with a copy of the same work based 
2606     on the Library, uncombined with any other library facilities, 
2607     conveyed under the terms of this License. 
2608   
2609     b) Give prominent notice with the combined library that part of it 
2610     is a work based on the Library, and explaining where to find the 
2611     accompanying uncombined form of the same work. 
2612   
2613    6. Revised Versions of the GNU Lesser General Public License. 
2614   
2615    The Free Software Foundation may publish revised and/or new versions 
2616  of the GNU Lesser General Public License from time to time. Such new 
2617  versions will be similar in spirit to the present version, but may 
2618  differ in detail to address new problems or concerns. 
2619   
2620    Each version is given a distinguishing version number. If the 
2621  Library as you received it specifies that a certain numbered version 
2622  of the GNU Lesser General Public License "or any later version" 
2623  applies to it, you have the option of following the terms and 
2624  conditions either of that published version or of any later version 
2625  published by the Free Software Foundation. If the Library as you 
2626  received it does not specify a version number of the GNU Lesser 
2627  General Public License, you may choose any version of the GNU Lesser 
2628  General Public License ever published by the Free Software Foundation. 
2629   
2630    If the Library as you received it specifies that a proxy can decide 
2631  whether future versions of the GNU Lesser General Public License shall 
2632  apply, that proxy's public statement of acceptance of any version is 
2633  permanent authorization for you to choose that version for the 
2634  Library. 
2635  """ 
2636   
2637   
2638  MIT = """ 
2639  Copyright (C) %(year)s %(author)s 
2640   
2641  Permission is hereby granted, free of charge, to any person obtaining a copy of 
2642  this software and associated documentation files (the "Software"), to deal in 
2643  the Software without restriction, including without limitation the rights to 
2644  use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 
2645  of the Software, and to permit persons to whom the Software is furnished to do 
2646  so, subject to the following conditions: 
2647   
2648  The above copyright notice and this permission notice shall be included in all 
2649  copies or substantial portions of the Software. 
2650   
2651  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
2652  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
2653  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
2654  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
2655  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
2656  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
2657  SOFTWARE. 
2658  """ 
2659   
2660   
2661  MPL_2 = """ 
2662  Mozilla Public License Version 2.0 
2663  ================================== 
2664   
2665  1. Definitions 
2666  -------------- 
2667   
2668  1.1. "Contributor" 
2669      means each individual or legal entity that creates, contributes to 
2670      the creation of, or owns Covered Software. 
2671   
2672  1.2. "Contributor Version" 
2673      means the combination of the Contributions of others (if any) used 
2674      by a Contributor and that particular Contributor's Contribution. 
2675   
2676  1.3. "Contribution" 
2677      means Covered Software of a particular Contributor. 
2678   
2679  1.4. "Covered Software" 
2680      means Source Code Form to which the initial Contributor has attached 
2681      the notice in Exhibit A, the Executable Form of such Source Code 
2682      Form, and Modifications of such Source Code Form, in each case 
2683      including portions thereof. 
2684   
2685  1.5. "Incompatible With Secondary Licenses" 
2686      means 
2687   
2688      (a) that the initial Contributor has attached the notice described 
2689          in Exhibit B to the Covered Software; or 
2690   
2691      (b) that the Covered Software was made available under the terms of 
2692          version 1.1 or earlier of the License, but not also under the 
2693          terms of a Secondary License. 
2694   
2695  1.6. "Executable Form" 
2696      means any form of the work other than Source Code Form. 
2697   
2698  1.7. "Larger Work" 
2699      means a work that combines Covered Software with other material, in 
2700      a separate file or files, that is not Covered Software. 
2701   
2702  1.8. "License" 
2703      means this document. 
2704   
2705  1.9. "Licensable" 
2706      means having the right to grant, to the maximum extent possible, 
2707      whether at the time of the initial grant or subsequently, any and 
2708      all of the rights conveyed by this License. 
2709   
2710  1.10. "Modifications" 
2711      means any of the following: 
2712   
2713      (a) any file in Source Code Form that results from an addition to, 
2714          deletion from, or modification of the contents of Covered 
2715          Software; or 
2716   
2717      (b) any new file in Source Code Form that contains any Covered 
2718          Software. 
2719   
2720  1.11. "Patent Claims" of a Contributor 
2721      means any patent claim(s), including without limitation, method, 
2722      process, and apparatus claims, in any patent Licensable by such 
2723      Contributor that would be infringed, but for the grant of the 
2724      License, by the making, using, selling, offering for sale, having 
2725      made, import, or transfer of either its Contributions or its 
2726      Contributor Version. 
2727   
2728  1.12. "Secondary License" 
2729      means either the GNU General Public License, Version 2.0, the GNU 
2730      Lesser General Public License, Version 2.1, the GNU Affero General 
2731      Public License, Version 3.0, or any later versions of those 
2732      licenses. 
2733   
2734  1.13. "Source Code Form" 
2735      means the form of the work preferred for making modifications. 
2736   
2737  1.14. "You" (or "Your") 
2738      means an individual or a legal entity exercising rights under this 
2739      License. For legal entities, "You" includes any entity that 
2740      controls, is controlled by, or is under common control with You. For 
2741      purposes of this definition, "control" means (a) the power, direct 
2742      or indirect, to cause the direction or management of such entity, 
2743      whether by contract or otherwise, or (b) ownership of more than 
2744      fifty percent (50%%) of the outstanding shares or beneficial 
2745      ownership of such entity. 
2746   
2747  2. License Grants and Conditions 
2748  -------------------------------- 
2749   
2750  2.1. Grants 
2751   
2752  Each Contributor hereby grants You a world-wide, royalty-free, 
2753  non-exclusive license: 
2754   
2755  (a) under intellectual property rights (other than patent or trademark) 
2756      Licensable by such Contributor to use, reproduce, make available, 
2757      modify, display, perform, distribute, and otherwise exploit its 
2758      Contributions, either on an unmodified basis, with Modifications, or 
2759      as part of a Larger Work; and 
2760   
2761  (b) under Patent Claims of such Contributor to make, use, sell, offer 
2762      for sale, have made, import, and otherwise transfer either its 
2763      Contributions or its Contributor Version. 
2764   
2765  2.2. Effective Date 
2766   
2767  The licenses granted in Section 2.1 with respect to any Contribution 
2768  become effective for each Contribution on the date the Contributor first 
2769  distributes such Contribution. 
2770   
2771  2.3. Limitations on Grant Scope 
2772   
2773  The licenses granted in this Section 2 are the only rights granted under 
2774  this License. No additional rights or licenses will be implied from the 
2775  distribution or licensing of Covered Software under this License. 
2776  Notwithstanding Section 2.1(b) above, no patent license is granted by a 
2777  Contributor: 
2778   
2779  (a) for any code that a Contributor has removed from Covered Software; 
2780      or 
2781   
2782  (b) for infringements caused by: (i) Your and any other third party's 
2783      modifications of Covered Software, or (ii) the combination of its 
2784      Contributions with other software (except as part of its Contributor 
2785      Version); or 
2786   
2787  (c) under Patent Claims infringed by Covered Software in the absence of 
2788      its Contributions. 
2789   
2790  This License does not grant any rights in the trademarks, service marks, 
2791  or logos of any Contributor (except as may be necessary to comply with 
2792  the notice requirements in Section 3.4). 
2793   
2794  2.4. Subsequent Licenses 
2795   
2796  No Contributor makes additional grants as a result of Your choice to 
2797  distribute the Covered Software under a subsequent version of this 
2798  License (see Section 10.2) or under the terms of a Secondary License (if 
2799  permitted under the terms of Section 3.3). 
2800   
2801  2.5. Representation 
2802   
2803  Each Contributor represents that the Contributor believes its 
2804  Contributions are its original creation(s) or it has sufficient rights 
2805  to grant the rights to its Contributions conveyed by this License. 
2806   
2807  2.6. Fair Use 
2808   
2809  This License is not intended to limit any rights You have under 
2810  applicable copyright doctrines of fair use, fair dealing, or other 
2811  equivalents. 
2812   
2813  2.7. Conditions 
2814   
2815  Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted 
2816  in Section 2.1. 
2817   
2818  3. Responsibilities 
2819  ------------------- 
2820   
2821  3.1. Distribution of Source Form 
2822   
2823  All distribution of Covered Software in Source Code Form, including any 
2824  Modifications that You create or to which You contribute, must be under 
2825  the terms of this License. You must inform recipients that the Source 
2826  Code Form of the Covered Software is governed by the terms of this 
2827  License, and how they can obtain a copy of this License. You may not 
2828  attempt to alter or restrict the recipients' rights in the Source Code 
2829  Form. 
2830   
2831  3.2. Distribution of Executable Form 
2832   
2833  If You distribute Covered Software in Executable Form then: 
2834   
2835  (a) such Covered Software must also be made available in Source Code 
2836      Form, as described in Section 3.1, and You must inform recipients of 
2837      the Executable Form how they can obtain a copy of such Source Code 
2838      Form by reasonable means in a timely manner, at a charge no more 
2839      than the cost of distribution to the recipient; and 
2840   
2841  (b) You may distribute such Executable Form under the terms of this 
2842      License, or sublicense it under different terms, provided that the 
2843      license for the Executable Form does not attempt to limit or alter 
2844      the recipients' rights in the Source Code Form under this License. 
2845   
2846  3.3. Distribution of a Larger Work 
2847   
2848  You may create and distribute a Larger Work under terms of Your choice, 
2849  provided that You also comply with the requirements of this License for 
2850  the Covered Software. If the Larger Work is a combination of Covered 
2851  Software with a work governed by one or more Secondary Licenses, and the 
2852  Covered Software is not Incompatible With Secondary Licenses, this 
2853  License permits You to additionally distribute such Covered Software 
2854  under the terms of such Secondary License(s), so that the recipient of 
2855  the Larger Work may, at their option, further distribute the Covered 
2856  Software under the terms of either this License or such Secondary 
2857  License(s). 
2858   
2859  3.4. Notices 
2860   
2861  You may not remove or alter the substance of any license notices 
2862  (including copyright notices, patent notices, disclaimers of warranty, 
2863  or limitations of liability) contained within the Source Code Form of 
2864  the Covered Software, except that You may alter any license notices to 
2865  the extent required to remedy known factual inaccuracies. 
2866   
2867  3.5. Application of Additional Terms 
2868   
2869  You may choose to offer, and to charge a fee for, warranty, support, 
2870  indemnity or liability obligations to one or more recipients of Covered 
2871  Software. However, You may do so only on Your own behalf, and not on 
2872  behalf of any Contributor. You must make it absolutely clear that any 
2873  such warranty, support, indemnity, or liability obligation is offered by 
2874  You alone, and You hereby agree to indemnify every Contributor for any 
2875  liability incurred by such Contributor as a result of warranty, support, 
2876  indemnity or liability terms You offer. You may include additional 
2877  disclaimers of warranty and limitations of liability specific to any 
2878  jurisdiction. 
2879   
2880  4. Inability to Comply Due to Statute or Regulation 
2881  --------------------------------------------------- 
2882   
2883  If it is impossible for You to comply with any of the terms of this 
2884  License with respect to some or all of the Covered Software due to 
2885  statute, judicial order, or regulation then You must: (a) comply with 
2886  the terms of this License to the maximum extent possible; and (b) 
2887  describe the limitations and the code they affect. Such description must 
2888  be placed in a text file included with all distributions of the Covered 
2889  Software under this License. Except to the extent prohibited by statute 
2890  or regulation, such description must be sufficiently detailed for a 
2891  recipient of ordinary skill to be able to understand it. 
2892   
2893  5. Termination 
2894  -------------- 
2895   
2896  5.1. The rights granted under this License will terminate automatically 
2897  if You fail to comply with any of its terms. However, if You become 
2898  compliant, then the rights granted under this License from a particular 
2899  Contributor are reinstated (a) provisionally, unless and until such 
2900  Contributor explicitly and finally terminates Your grants, and (b) on an 
2901  ongoing basis, if such Contributor fails to notify You of the 
2902  non-compliance by some reasonable means prior to 60 days after You have 
2903  come back into compliance. Moreover, Your grants from a particular 
2904  Contributor are reinstated on an ongoing basis if such Contributor 
2905  notifies You of the non-compliance by some reasonable means, this is the 
2906  first time You have received notice of non-compliance with this License 
2907  from such Contributor, and You become compliant prior to 30 days after 
2908  Your receipt of the notice. 
2909   
2910  5.2. If You initiate litigation against any entity by asserting a patent 
2911  infringement claim (excluding declaratory judgment actions, 
2912  counter-claims, and cross-claims) alleging that a Contributor Version 
2913  directly or indirectly infringes any patent, then the rights granted to 
2914  You by any and all Contributors for the Covered Software under Section 
2915  2.1 of this License shall terminate. 
2916   
2917  5.3. In the event of termination under Sections 5.1 or 5.2 above, all 
2918  end user license agreements (excluding distributors and resellers) which 
2919  have been validly granted by You or Your distributors under this License 
2920  prior to termination shall survive termination. 
2921   
2922  ************************************************************************ 
2923  *                                                                      * 
2924  *  6. Disclaimer of Warranty                                           * 
2925  *  -------------------------                                           * 
2926  *                                                                      * 
2927  *  Covered Software is provided under this License on an "as is"       * 
2928  *  basis, without warranty of any kind, either expressed, implied, or  * 
2929  *  statutory, including, without limitation, warranties that the       * 
2930  *  Covered Software is free of defects, merchantable, fit for a        * 
2931  *  particular purpose or non-infringing. The entire risk as to the     * 
2932  *  quality and performance of the Covered Software is with You.        * 
2933  *  Should any Covered Software prove defective in any respect, You     * 
2934  *  (not any Contributor) assume the cost of any necessary servicing,   * 
2935  *  repair, or correction. This disclaimer of warranty constitutes an   * 
2936  *  essential part of this License. No use of any Covered Software is   * 
2937  *  authorized under this License except under this disclaimer.         * 
2938  *                                                                      * 
2939  ************************************************************************ 
2940   
2941  ************************************************************************ 
2942  *                                                                      * 
2943  *  7. Limitation of Liability                                          * 
2944  *  --------------------------                                          * 
2945  *                                                                      * 
2946  *  Under no circumstances and under no legal theory, whether tort      * 
2947  *  (including negligence), contract, or otherwise, shall any           * 
2948  *  Contributor, or anyone who distributes Covered Software as          * 
2949  *  permitted above, be liable to You for any direct, indirect,         * 
2950  *  special, incidental, or consequential damages of any character      * 
2951  *  including, without limitation, damages for lost profits, loss of    * 
2952  *  goodwill, work stoppage, computer failure or malfunction, or any    * 
2953  *  and all other commercial damages or losses, even if such party      * 
2954  *  shall have been informed of the possibility of such damages. This   * 
2955  *  limitation of liability shall not apply to liability for death or   * 
2956  *  personal injury resulting from such party's negligence to the       * 
2957  *  extent applicable law prohibits such limitation. Some               * 
2958  *  jurisdictions do not allow the exclusion or limitation of           * 
2959  *  incidental or consequential damages, so this exclusion and          * 
2960  *  limitation may not apply to You.                                    * 
2961  *                                                                      * 
2962  ************************************************************************ 
2963   
2964  8. Litigation 
2965  ------------- 
2966   
2967  Any litigation relating to this License may be brought only in the 
2968  courts of a jurisdiction where the defendant maintains its principal 
2969  place of business and such litigation shall be governed by laws of that 
2970  jurisdiction, without reference to its conflict-of-law provisions. 
2971  Nothing in this Section shall prevent a party's ability to bring 
2972  cross-claims or counter-claims. 
2973   
2974  9. Miscellaneous 
2975  ---------------- 
2976   
2977  This License represents the complete agreement concerning the subject 
2978  matter hereof. If any provision of this License is held to be 
2979  unenforceable, such provision shall be reformed only to the extent 
2980  necessary to make it enforceable. Any law or regulation which provides 
2981  that the language of a contract shall be construed against the drafter 
2982  shall not be used to construe this License against a Contributor. 
2983   
2984  10. Versions of the License 
2985  --------------------------- 
2986   
2987  10.1. New Versions 
2988   
2989  Mozilla Foundation is the license steward. Except as provided in Section 
2990  10.3, no one other than the license steward has the right to modify or 
2991  publish new versions of this License. Each version will be given a 
2992  distinguishing version number. 
2993   
2994  10.2. Effect of New Versions 
2995   
2996  You may distribute the Covered Software under the terms of the version 
2997  of the License under which You originally received the Covered Software, 
2998  or under the terms of any subsequent version published by the license 
2999  steward. 
3000   
3001  10.3. Modified Versions 
3002   
3003  If you create software not governed by this License, and you want to 
3004  create a new license for such software, you may create and use a 
3005  modified version of this License if you rename the license and remove 
3006  any references to the name of the license steward (except to note that 
3007  such modified license differs from this License). 
3008   
3009  10.4. Distributing Source Code Form that is Incompatible With Secondary 
3010  Licenses 
3011   
3012  If You choose to distribute Source Code Form that is Incompatible With 
3013  Secondary Licenses under the terms of this version of the License, the 
3014  notice described in Exhibit B of this License must be attached. 
3015   
3016  Exhibit A - Source Code Form License Notice 
3017  ------------------------------------------- 
3018   
3019    This Source Code Form is subject to the terms of the Mozilla Public 
3020    License, v. 2.0. If a copy of the MPL was not distributed with this 
3021    file, You can obtain one at http://mozilla.org/MPL/2.0/. 
3022   
3023  If it is not possible or desirable to put the notice in a particular 
3024  file, then You may include the notice in a location (such as a LICENSE 
3025  file in a relevant directory) where a recipient would be likely to look 
3026  for such a notice. 
3027   
3028  You may add additional accurate notices of copyright ownership. 
3029   
3030  Exhibit B - "Incompatible With Secondary Licenses" Notice 
3031  --------------------------------------------------------- 
3032   
3033    This Source Code Form is "Incompatible With Secondary Licenses", as 
3034    defined by the Mozilla Public License, v. 2.0. 
3035  """ 
3036   
3037   
3038  LICENSES = { 
3039      "Apache": APACHE_2, 
3040      "GPL": GPL_3, 
3041      "GPLv2": GPL_2, 
3042      "GPLv2+": GPL_2, 
3043      "GPLv3": GPL_3, 
3044      "LGPL": LGPL_3, 
3045      } 
3046