1*4882a593SmuzhiyunLicensed under the Academic Free License version 2.0 (below) 2*4882a593SmuzhiyunOr under the following terms: 3*4882a593Smuzhiyun 4*4882a593SmuzhiyunThis library is free software; you can redistribute it and/or 5*4882a593Smuzhiyunmodify it under the terms of the GNU Lesser General Public 6*4882a593SmuzhiyunLicense as published by the Free Software Foundation; either 7*4882a593Smuzhiyunversion 2 of the License, or (at your option) any later version. 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunThis library is distributed in the hope that it will be useful, 10*4882a593Smuzhiyunbut WITHOUT ANY WARRANTY; without even the implied warranty of 11*4882a593SmuzhiyunMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12*4882a593SmuzhiyunLesser General Public License for more details. 13*4882a593Smuzhiyun 14*4882a593SmuzhiyunYou should have received a copy of the GNU Lesser General Public 15*4882a593SmuzhiyunLicense along with this library; if not, write to the 16*4882a593SmuzhiyunFree Software Foundation, Inc., 59 Temple Place - Suite 330, 17*4882a593SmuzhiyunBoston, MA 02111-1307, USA. 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun-------------------------------------------------------------------------------- 21*4882a593SmuzhiyunAcademic Free License v. 2.0 22*4882a593Smuzhiyun-------------------------------------------------------------------------------- 23*4882a593Smuzhiyun 24*4882a593SmuzhiyunThis Academic Free License (the "License") applies to any original work of 25*4882a593Smuzhiyunauthorship (the "Original Work") whose owner (the "Licensor") has placed the 26*4882a593Smuzhiyunfollowing notice immediately following the copyright notice for the Original 27*4882a593SmuzhiyunWork: 28*4882a593Smuzhiyun 29*4882a593SmuzhiyunLicensed under the Academic Free License version 2.0 30*4882a593Smuzhiyun1) Grant of Copyright License. Licensor hereby grants You a world-wide, 31*4882a593Smuzhiyunroyalty-free, non-exclusive, perpetual, sublicenseable license to do the 32*4882a593Smuzhiyunfollowing: 33*4882a593Smuzhiyun 34*4882a593Smuzhiyuna) to reproduce the Original Work in copies; 35*4882a593Smuzhiyunb) to prepare derivative works ("Derivative Works") based upon the Original 36*4882a593Smuzhiyun Work; 37*4882a593Smuzhiyunc) to distribute copies of the Original Work and Derivative Works to the 38*4882a593Smuzhiyun public; 39*4882a593Smuzhiyund) to perform the Original Work publicly; and 40*4882a593Smuzhiyune) to display the Original Work publicly. 41*4882a593Smuzhiyun 42*4882a593Smuzhiyun2) Grant of Patent License. Licensor hereby grants You a world-wide, 43*4882a593Smuzhiyunroyalty-free, non-exclusive, perpetual, sublicenseable license, under patent 44*4882a593Smuzhiyunclaims owned or controlled by the Licensor that are embodied in the Original 45*4882a593SmuzhiyunWork as furnished by the Licensor, to make, use, sell and offer for sale the 46*4882a593SmuzhiyunOriginal Work and Derivative Works. 47*4882a593Smuzhiyun 48*4882a593Smuzhiyun3) Grant of Source Code License. The term "Source Code" means the preferred 49*4882a593Smuzhiyunform of the Original Work for making modifications to it and all available 50*4882a593Smuzhiyundocumentation describing how to modify the Original Work. Licensor hereby 51*4882a593Smuzhiyunagrees to provide a machine-readable copy of the Source Code of the Original 52*4882a593SmuzhiyunWork along with each copy of the Original Work that Licensor distributes. 53*4882a593SmuzhiyunLicensor reserves the right to satisfy this obligation by placing a 54*4882a593Smuzhiyunmachine-readable copy of the Source Code in an information repository 55*4882a593Smuzhiyunreasonably calculated to permit inexpensive and convenient access by You for as 56*4882a593Smuzhiyunlong as Licensor continues to distribute the Original Work, and by publishing 57*4882a593Smuzhiyunthe address of that information repository in a notice immediately following 58*4882a593Smuzhiyunthe copyright notice that applies to the Original Work. 59*4882a593Smuzhiyun 60*4882a593Smuzhiyun4) Exclusions From License Grant. Neither the names of Licensor, nor the names 61*4882a593Smuzhiyunof any contributors to the Original Work, nor any of their trademarks or 62*4882a593Smuzhiyunservice marks, may be used to endorse or promote products derived from this 63*4882a593SmuzhiyunOriginal Work without express prior written permission of the Licensor. Nothing 64*4882a593Smuzhiyunin this License shall be deemed to grant any rights to trademarks, copyrights, 65*4882a593Smuzhiyunpatents, trade secrets or any other intellectual property of Licensor except as 66*4882a593Smuzhiyunexpressly stated herein. No patent license is granted to make, use, sell or 67*4882a593Smuzhiyunoffer to sell embodiments of any patent claims other than the licensed claims 68*4882a593Smuzhiyundefined in Section 2. No right is granted to the trademarks of Licensor even if 69*4882a593Smuzhiyunsuch marks are included in the Original Work. Nothing in this License shall be 70*4882a593Smuzhiyuninterpreted to prohibit Licensor from licensing under different terms from this 71*4882a593SmuzhiyunLicense any Original Work that Licensor otherwise would have a right to 72*4882a593Smuzhiyunlicense. 73*4882a593Smuzhiyun 74*4882a593Smuzhiyun5) This section intentionally omitted. 75*4882a593Smuzhiyun 76*4882a593Smuzhiyun6) Attribution Rights. You must retain, in the Source Code of any Derivative 77*4882a593SmuzhiyunWorks that You create, all copyright, patent or trademark notices from the 78*4882a593SmuzhiyunSource Code of the Original Work, as well as any notices of licensing and any 79*4882a593Smuzhiyundescriptive text identified therein as an "Attribution Notice." You must cause 80*4882a593Smuzhiyunthe Source Code for any Derivative Works that You create to carry a prominent 81*4882a593SmuzhiyunAttribution Notice reasonably calculated to inform recipients that You have 82*4882a593Smuzhiyunmodified the Original Work. 83*4882a593Smuzhiyun 84*4882a593Smuzhiyun7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that 85*4882a593Smuzhiyunthe copyright in and to the Original Work and the patent rights granted herein 86*4882a593Smuzhiyunby Licensor are owned by the Licensor or are sublicensed to You under the terms 87*4882a593Smuzhiyunof this License with the permission of the contributor(s) of those copyrights 88*4882a593Smuzhiyunand patent rights. Except as expressly stated in the immediately proceeding 89*4882a593Smuzhiyunsentence, the Original Work is provided under this License on an "AS IS" BASIS 90*4882a593Smuzhiyunand WITHOUT WARRANTY, either express or implied, including, without limitation, 91*4882a593Smuzhiyunthe warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR 92*4882a593SmuzhiyunPURPOSE. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. 93*4882a593SmuzhiyunThis DISCLAIMER OF WARRANTY constitutes an essential part of this License. No 94*4882a593Smuzhiyunlicense to Original Work is granted hereunder except under this disclaimer. 95*4882a593Smuzhiyun 96*4882a593Smuzhiyun8) Limitation of Liability. Under no circumstances and under no legal theory, 97*4882a593Smuzhiyunwhether in tort (including negligence), contract, or otherwise, shall the 98*4882a593SmuzhiyunLicensor be liable to any person for any direct, indirect, special, incidental, 99*4882a593Smuzhiyunor consequential damages of any character arising as a result of this License 100*4882a593Smuzhiyunor the use of the Original Work including, without limitation, damages for loss 101*4882a593Smuzhiyunof goodwill, work stoppage, computer failure or malfunction, or any and all 102*4882a593Smuzhiyunother commercial damages or losses. This limitation of liability shall not 103*4882a593Smuzhiyunapply to liability for death or personal injury resulting from Licensor's 104*4882a593Smuzhiyunnegligence to the extent applicable law prohibits such limitation. Some 105*4882a593Smuzhiyunjurisdictions do not allow the exclusion or limitation of incidental or 106*4882a593Smuzhiyunconsequential damages, so this exclusion and limitation may not apply to You. 107*4882a593Smuzhiyun 108*4882a593Smuzhiyun9) Acceptance and Termination. If You distribute copies of the Original Work or 109*4882a593Smuzhiyuna Derivative Work, You must make a reasonable effort under the circumstances to 110*4882a593Smuzhiyunobtain the express assent of recipients to the terms of this License. Nothing 111*4882a593Smuzhiyunelse but this License (or another written agreement between Licensor and You) 112*4882a593Smuzhiyungrants You permission to create Derivative Works based upon the Original Work 113*4882a593Smuzhiyunor to exercise any of the rights granted in Section 1 herein, and any attempt 114*4882a593Smuzhiyunto do so except under the terms of this License (or another written agreement 115*4882a593Smuzhiyunbetween Licensor and You) is expressly prohibited by U.S. copyright law, the 116*4882a593Smuzhiyunequivalent laws of other countries, and by international treaty. Therefore, by 117*4882a593Smuzhiyunexercising any of the rights granted to You in Section 1 herein, You indicate 118*4882a593SmuzhiyunYour acceptance of this License and all of its terms and conditions. 119*4882a593Smuzhiyun 120*4882a593Smuzhiyun10) Termination for Patent Action. This License shall terminate automatically 121*4882a593Smuzhiyunand You may no longer exercise any of the rights granted to You by this License 122*4882a593Smuzhiyunas of the date You commence an action, including a cross-claim or counterclaim, 123*4882a593Smuzhiyunfor patent infringement (i) against Licensor with respect to a patent 124*4882a593Smuzhiyunapplicable to software or (ii) against any entity with respect to a patent 125*4882a593Smuzhiyunapplicable to the Original Work (but excluding combinations of the Original 126*4882a593SmuzhiyunWork with other software or hardware). 127*4882a593Smuzhiyun 128*4882a593Smuzhiyun11) Jurisdiction, Venue and Governing Law. Any action or suit relating to this 129*4882a593SmuzhiyunLicense may be brought only in the courts of a jurisdiction wherein the 130*4882a593SmuzhiyunLicensor resides or in which Licensor conducts its primary business, and under 131*4882a593Smuzhiyunthe laws of that jurisdiction excluding its conflict-of-law provisions. The 132*4882a593Smuzhiyunapplication of the United Nations Convention on Contracts for the International 133*4882a593SmuzhiyunSale of Goods is expressly excluded. Any use of the Original Work outside the 134*4882a593Smuzhiyunscope of this License or after its termination shall be subject to the 135*4882a593Smuzhiyunrequirements and penalties of the U.S. Copyright Act, 17 U.S.C. 101 et seq., 136*4882a593Smuzhiyunthe equivalent laws of other countries, and international treaty. This section 137*4882a593Smuzhiyunshall survive the termination of this License. 138*4882a593Smuzhiyun 139*4882a593Smuzhiyun12) Attorneys Fees. In any action to enforce the terms of this License or 140*4882a593Smuzhiyunseeking damages relating thereto, the prevailing party shall be entitled to 141*4882a593Smuzhiyunrecover its costs and expenses, including, without limitation, reasonable 142*4882a593Smuzhiyunattorneys' fees and costs incurred in connection with such action, including 143*4882a593Smuzhiyunany appeal of such action. This section shall survive the termination of this 144*4882a593SmuzhiyunLicense. 145*4882a593Smuzhiyun 146*4882a593Smuzhiyun13) Miscellaneous. This License represents the complete agreement concerning 147*4882a593Smuzhiyunthe subject matter hereof. If any provision of this License is held to be 148*4882a593Smuzhiyununenforceable, such provision shall be reformed only to the extent necessary to 149*4882a593Smuzhiyunmake it enforceable. 150*4882a593Smuzhiyun 151*4882a593Smuzhiyun14) Definition of "You" in This License. "You" throughout this License, whether 152*4882a593Smuzhiyunin upper or lower case, means an individual or a legal entity exercising rights 153*4882a593Smuzhiyununder, and complying with all of the terms of, this License. For legal 154*4882a593Smuzhiyunentities, "You" includes any entity that controls, is controlled by, or is 155*4882a593Smuzhiyununder common control with you. For purposes of this definition, "control" means 156*4882a593Smuzhiyun(i) the power, direct or indirect, to cause the direction or management of such 157*4882a593Smuzhiyunentity, whether by contract or otherwise, or (ii) ownership of fifty percent 158*4882a593Smuzhiyun(50%) or more of the outstanding shares, or (iii) beneficial ownership of such 159*4882a593Smuzhiyunentity. 160*4882a593Smuzhiyun 161*4882a593Smuzhiyun15) Right to Use. You may use the Original Work in all ways not otherwise 162*4882a593Smuzhiyunrestricted or conditioned by this License or by law, and Licensor promises not 163*4882a593Smuzhiyunto interfere with or be responsible for such uses by You. 164*4882a593Smuzhiyun 165*4882a593SmuzhiyunThis license is Copyright (C) 2003 Lawrence E. Rosen. All rights reserved. 166*4882a593SmuzhiyunPermission is hereby granted to copy and distribute this license without 167*4882a593Smuzhiyunmodification. This license may not be modified without the express written 168*4882a593Smuzhiyunpermission of its copyright owner. 169