PageRenderTime 36ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

License | 162 lines | 137 code | 25 blank | 0 comment | 0 complexity | 58c4a0a09f24dcb4734929cef1edf3e8 MD5 | raw file
Possible License(s): Apache-2.0
  1. Apache License
  2. Version 2.0, January 2004
  4. 1. Definitions.
  5. "License" shall mean the terms and conditions for use, reproduction, and
  6. distribution as defined by Sections 1 through 9 of this document.
  7. "Licensor" shall mean the copyright owner or entity authorized by the
  8. copyright owner that is granting the License.
  9. "Legal Entity" shall mean the union of the acting entity and all other
  10. entities that control, are controlled by, or are under common control with
  11. that entity. For the purposes of this definition, "control" means (i) the
  12. power, direct or indirect, to cause the direction or management of such
  13. entity, whether by contract or otherwise, or (ii) ownership of fifty percent
  14. (50%) or more of the outstanding shares, or (iii) beneficial ownership of
  15. such entity.
  16. "You" (or "Your") shall mean an individual or Legal Entity exercising
  17. permissions granted by this License.
  18. "Source" form shall mean the preferred form for making modifications,
  19. including but not limited to software source code, documentation source, and
  20. configuration files.
  21. "Object" form shall mean any form resulting from mechanical transformation
  22. or translation of a Source form, including but not limited to compiled
  23. object code, generated documentation, and conversions to other media types.
  24. "Work" shall mean the work of authorship, whether in Source or Object form,
  25. made available under the License, as indicated by a copyright notice that is
  26. included in or attached to the work (an example is provided in the Appendix
  27. below).
  28. "Derivative Works" shall mean any work, whether in Source or Object form,
  29. that is based on (or derived from) the Work and for which the editorial
  30. revisions, annotations, elaborations, or other modifications represent, as a
  31. whole, an original work of authorship. For the purposes of this License,
  32. Derivative Works shall not include works that remain separable from, or
  33. merely link (or bind by name) to the interfaces of, the Work and Derivative
  34. Works thereof.
  35. "Contribution" shall mean any work of authorship, including the original
  36. version of the Work and any modifications or additions to that Work or
  37. Derivative Works thereof, that is intentionally submitted to Licensor for
  38. inclusion in the Work by the copyright owner or by an individual or Legal
  39. Entity authorized to submit on behalf of the copyright owner. For the
  40. purposes of this definition, "submitted" means any form of electronic,
  41. verbal, or written communication sent to the Licensor or its
  42. representatives, including but not limited to communication on electronic
  43. mailing lists, source code control systems, and issue tracking systems that
  44. are managed by, or on behalf of, the Licensor for the purpose of discussing
  45. and improving the Work, but excluding communication that is conspicuously
  46. marked or otherwise designated in writing by the copyright owner as "Not a
  47. Contribution."
  48. "Contributor" shall mean Licensor and any individual or Legal Entity on
  49. behalf of whom a Contribution has been received by Licensor and subsequently
  50. incorporated within the Work.
  51. 2. Grant of Copyright License. Subject to the terms and conditions of this
  52. License, each Contributor hereby grants to You a perpetual, worldwide,
  53. non-exclusive, no-charge, royalty-free, irrevocable copyright license to
  54. reproduce, prepare Derivative Works of, publicly display, publicly perform,
  55. sublicense, and distribute the Work and such Derivative Works in Source or
  56. Object form.
  57. 3. Grant of Patent License. Subject to the terms and conditions of this
  58. License, each Contributor hereby grants to You a perpetual, worldwide,
  59. non-exclusive, no-charge, royalty-free, irrevocable (except as stated in
  60. this section) patent license to make, have made, use, offer to sell, sell,
  61. import, and otherwise transfer the Work, where such license applies only to
  62. those patent claims licensable by such Contributor that are necessarily
  63. infringed by their Contribution(s) alone or by combination of their
  64. Contribution(s) with the Work to which such Contribution(s) was submitted.
  65. If You institute patent litigation against any entity (including a
  66. cross-claim or counterclaim in a lawsuit) alleging that the Work or a
  67. Contribution incorporated within the Work constitutes direct or contributory
  68. patent infringement, then any patent licenses granted to You under this
  69. License for that Work shall terminate as of the date such litigation is
  70. filed.
  71. 4. Redistribution. You may reproduce and distribute copies of the Work or
  72. Derivative Works thereof in any medium, with or without modifications, and
  73. in Source or Object form, provided that You meet the following conditions:
  74. a. You must give any other recipients of the Work or Derivative Works a copy
  75. of this License; and
  76. b. You must cause any modified files to carry prominent notices stating that
  77. You changed the files; and
  78. c. You must retain, in the Source form of any Derivative Works that You
  79. distribute, all copyright, patent, trademark, and attribution notices from
  80. the Source form of the Work, excluding those notices that do not pertain to
  81. any part of the Derivative Works; and
  82. d. If the Work includes a "NOTICE" text file as part of its distribution,
  83. then any Derivative Works that You distribute must include a readable copy
  84. of the attribution notices contained within such NOTICE file, excluding
  85. those notices that do not pertain to any part of the Derivative Works, in at
  86. least one of the following places: within a NOTICE text file distributed as
  87. part of the Derivative Works; within the Source form or documentation, if
  88. provided along with the Derivative Works; or, within a display generated by
  89. the Derivative Works, if and wherever such third-party notices normally
  90. appear. The contents of the NOTICE file are for informational purposes only
  91. and do not modify the License. You may add Your own attribution notices
  92. within Derivative Works that You distribute, alongside or as an addendum to
  93. the NOTICE text from the Work, provided that such additional attribution
  94. notices cannot be construed as modifying the License.
  95. You may add Your own copyright statement to Your modifications and may
  96. provide additional or different license terms and conditions for use,
  97. reproduction, or distribution of Your modifications, or for any such
  98. Derivative Works as a whole, provided Your use, reproduction, and
  99. distribution of the Work otherwise complies with the conditions stated in
  100. this License.
  101. 5. Submission of Contributions. Unless You explicitly state otherwise, any
  102. Contribution intentionally submitted for inclusion in the Work by You to the
  103. Licensor shall be under the terms and conditions of this License, without
  104. any additional terms or conditions. Notwithstanding the above, nothing
  105. herein shall supersede or modify the terms of any separate license agreement
  106. you may have executed with Licensor regarding such Contributions.
  107. 6. Trademarks. This License does not grant permission to use the trade
  108. names, trademarks, service marks, or product names of the Licensor, except
  109. as required for reasonable and customary use in describing the origin of the
  110. Work and reproducing the content of the NOTICE file.
  111. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
  112. writing, Licensor provides the Work (and each Contributor provides its
  114. KIND, either express or implied, including, without limitation, any
  115. warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or
  116. FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining
  117. the appropriateness of using or redistributing the Work and assume any risks
  118. associated with Your exercise of permissions under this License.
  119. 8. Limitation of Liability. In no event and under no legal theory, whether
  120. in tort (including negligence), contract, or otherwise, unless required by
  121. applicable law (such as deliberate and grossly negligent acts) or agreed to
  122. in writing, shall any Contributor be liable to You for damages, including
  123. any direct, indirect, special, incidental, or consequential damages of any
  124. character arising as a result of this License or out of the use or inability
  125. to use the Work (including but not limited to damages for loss of goodwill,
  126. work stoppage, computer failure or malfunction, or any and all other
  127. commercial damages or losses), even if such Contributor has been advised of
  128. the possibility of such damages.
  129. 9. Accepting Warranty or Additional Liability. While redistributing the Work
  130. or Derivative Works thereof, You may choose to offer, and charge a fee for,
  131. acceptance of support, warranty, indemnity, or other liability obligations
  132. and/or rights consistent with this License. However, in accepting such
  133. obligations, You may act only on Your own behalf and on Your sole
  134. responsibility, not on behalf of any other Contributor, and only if You
  135. agree to indemnify, defend, and hold each Contributor harmless for any
  136. liability incurred by, or claims asserted against, such Contributor by
  137. reason of your accepting any such warranty or additional liability.