LICENSE.TXT 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. Tencent is pleased to support the open source community by making wwsearch-全文检索引擎 available.
  2. Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
  3. wwsearch-全文检索引擎 is licensed under the Apache License Version 2.0, except for the third-party components listed below.
  4. A copy of the Apache License Version 2.0 is included in this file.
  5. Other dependencies and licenses:
  6. Open Source Software Licensed Under the BSD 3-Clause License:
  7. --------------------------------------------------------------------
  8. 1. Protobuf 2.4.1
  9. Copyright 2008, Google Inc.
  10. Terms of the BSD 3-Clause License:
  11. --------------------------------------------
  12. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
  13. conditions are met:
  14. 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  15. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer
  16. in the documentation and/or other materials provided with the distribution.
  17. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived
  18. from this software without specific prior written permission.
  19. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
  20. NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
  21. THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  22. (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  23. HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  24. ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  25. Open Source Software Licensed Under the BSD 3-Clause License and Other Licenses of the Third-party Components therein:
  26. --------------------------------------------------------------------
  27. 1. Snappy 1.1.4
  28. Copyright 2011, Google Inc.
  29. Copyright 2005 and onwards Google Inc.
  30. Copyright 2011 Martin Gieseking
  31. Redistribution and use in source and binary forms, with or without
  32. modification, are permitted provided that the following conditions are
  33. met:
  34. * Redistributions of source code must retain the above copyright
  35. notice, this list of conditions and the following disclaimer.
  36. * Redistributions in binary form must reproduce the above
  37. copyright notice, this list of conditions and the following disclaimer
  38. in the documentation and/or other materials provided with the
  39. distribution.
  40. * Neither the name of Google Inc. nor the names of its
  41. contributors may be used to endorse or promote products derived from
  42. this software without specific prior written permission.
  43. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  44. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  45. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  46. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  47. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  48. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  49. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  50. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  51. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  52. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  53. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  54. ===
  55. Some of the benchmark data in testdata/ is licensed differently:
  56. - fireworks.jpeg is Copyright 2013 Steinar H. Gunderson, and
  57. is licensed under the Creative Commons Attribution 3.0 license
  58. (CC-BY-3.0). See https://creativecommons.org/licenses/by/3.0/
  59. for more information.
  60. - kppkn.gtb is taken from the Gaviota chess tablebase set, and
  61. is licensed under the MIT License. See
  62. https://sites.google.com/site/gaviotachessengine/Home/endgame-tablebases-1
  63. for more information.
  64. - paper-100k.pdf is an excerpt (bytes 92160 to 194560) from the paper
  65. “Combinatorial Modeling of Chromatin Features Quantitatively Predicts DNA
  66. Replication Timing in _Drosophila_” by Federico Comoglio and Renato Paro,
  67. which is licensed under the CC-BY license. See
  68. http://www.ploscompbiol.org/static/license for more ifnormation.
  69. - alice29.txt, asyoulik.txt, plrabn12.txt and lcet10.txt are from Project
  70. Gutenberg. The first three have expired copyrights and are in the public
  71. domain; the latter does not have expired copyright, but is still in the
  72. public domain according to the license information
  73. (http://www.gutenberg.org/ebooks/53).
  74. Open Source Software Licensed under the Apache License Version 2.0 and Other Licenses of the Third-party Components therein:
  75. ----------------------------------------------------------------------------------------------------------------------------------------
  76. 1. RocksDB 5.16.6
  77. Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
  78. Copyright (c) 2011 The LevelDB Authors. All rights reserved.
  79. Copyright 2005-2009, Google Inc.
  80. RocksDB is dual-licensed under both the GPLv2 (found in the COPYING file in the root directory) and Apache 2.0 License (found in the
  81. LICENSE.Apache file in the root directory).
  82. You may select, at your option, one of the above-listed licenses. (Hence, we choose the Apache 2.0 License in this project) The text
  83. of the Apache 2.0 License is as follows.
  84. Apache License
  85. Version 2.0, January 2004
  86. http://www.apache.org/licenses/
  87. TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
  88. 1. Definitions.
  89. "License" shall mean the terms and conditions for use, reproduction,
  90. and distribution as defined by Sections 1 through 9 of this document.
  91. "Licensor" shall mean the copyright owner or entity authorized by
  92. the copyright owner that is granting the License.
  93. "Legal Entity" shall mean the union of the acting entity and all
  94. other entities that control, are controlled by, or are under common
  95. control with that entity. For the purposes of this definition,
  96. "control" means (i) the power, direct or indirect, to cause the
  97. direction or management of such entity, whether by contract or
  98. otherwise, or (ii) ownership of fifty percent (50%) or more of the
  99. outstanding shares, or (iii) beneficial ownership of such entity.
  100. "You" (or "Your") shall mean an individual or Legal Entity
  101. exercising permissions granted by this License.
  102. "Source" form shall mean the preferred form for making modifications,
  103. including but not limited to software source code, documentation
  104. source, and configuration files.
  105. "Object" form shall mean any form resulting from mechanical
  106. transformation or translation of a Source form, including but
  107. not limited to compiled object code, generated documentation,
  108. and conversions to other media types.
  109. "Work" shall mean the work of authorship, whether in Source or
  110. Object form, made available under the License, as indicated by a
  111. copyright notice that is included in or attached to the work
  112. (an example is provided in the Appendix below).
  113. "Derivative Works" shall mean any work, whether in Source or Object
  114. form, that is based on (or derived from) the Work and for which the
  115. editorial revisions, annotations, elaborations, or other modifications
  116. represent, as a whole, an original work of authorship. For the purposes
  117. of this License, Derivative Works shall not include works that remain
  118. separable from, or merely link (or bind by name) to the interfaces of,
  119. the Work and Derivative Works thereof.
  120. "Contribution" shall mean any work of authorship, including
  121. the original version of the Work and any modifications or additions
  122. to that Work or Derivative Works thereof, that is intentionally
  123. submitted to Licensor for inclusion in the Work by the copyright owner
  124. or by an individual or Legal Entity authorized to submit on behalf of
  125. the copyright owner. For the purposes of this definition, "submitted"
  126. means any form of electronic, verbal, or written communication sent
  127. to the Licensor or its representatives, including but not limited to
  128. communication on electronic mailing lists, source code control systems,
  129. and issue tracking systems that are managed by, or on behalf of, the
  130. Licensor for the purpose of discussing and improving the Work, but
  131. excluding communication that is conspicuously marked or otherwise
  132. designated in writing by the copyright owner as "Not a Contribution."
  133. "Contributor" shall mean Licensor and any individual or Legal Entity
  134. on behalf of whom a Contribution has been received by Licensor and
  135. subsequently incorporated within the Work.
  136. 2. Grant of Copyright License. Subject to the terms and conditions of
  137. this License, each Contributor hereby grants to You a perpetual,
  138. worldwide, non-exclusive, no-charge, royalty-free, irrevocable
  139. copyright license to reproduce, prepare Derivative Works of,
  140. publicly display, publicly perform, sublicense, and distribute the
  141. Work and such Derivative Works in Source or Object form.
  142. 3. Grant of Patent License. Subject to the terms and conditions of
  143. this License, each Contributor hereby grants to You a perpetual,
  144. worldwide, non-exclusive, no-charge, royalty-free, irrevocable
  145. (except as stated in this section) patent license to make, have made,
  146. use, offer to sell, sell, import, and otherwise transfer the Work,
  147. where such license applies only to those patent claims licensable
  148. by such Contributor that are necessarily infringed by their
  149. Contribution(s) alone or by combination of their Contribution(s)
  150. with the Work to which such Contribution(s) was submitted. If You
  151. institute patent litigation against any entity (including a
  152. cross-claim or counterclaim in a lawsuit) alleging that the Work
  153. or a Contribution incorporated within the Work constitutes direct
  154. or contributory patent infringement, then any patent licenses
  155. granted to You under this License for that Work shall terminate
  156. as of the date such litigation is filed.
  157. 4. Redistribution. You may reproduce and distribute copies of the
  158. Work or Derivative Works thereof in any medium, with or without
  159. modifications, and in Source or Object form, provided that You
  160. meet the following conditions:
  161. (a) You must give any other recipients of the Work or
  162. Derivative Works a copy of this License; and
  163. (b) You must cause any modified files to carry prominent notices
  164. stating that You changed the files; and
  165. (c) You must retain, in the Source form of any Derivative Works
  166. that You distribute, all copyright, patent, trademark, and
  167. attribution notices from the Source form of the Work,
  168. excluding those notices that do not pertain to any part of
  169. the Derivative Works; and
  170. (d) If the Work includes a "NOTICE" text file as part of its
  171. distribution, then any Derivative Works that You distribute must
  172. include a readable copy of the attribution notices contained
  173. within such NOTICE file, excluding those notices that do not
  174. pertain to any part of the Derivative Works, in at least one
  175. of the following places: within a NOTICE text file distributed
  176. as part of the Derivative Works; within the Source form or
  177. documentation, if provided along with the Derivative Works; or,
  178. within a display generated by the Derivative Works, if and
  179. wherever such third-party notices normally appear. The contents
  180. of the NOTICE file are for informational purposes only and
  181. do not modify the License. You may add Your own attribution
  182. notices within Derivative Works that You distribute, alongside
  183. or as an addendum to the NOTICE text from the Work, provided
  184. that such additional attribution notices cannot be construed
  185. as modifying the License.
  186. You may add Your own copyright statement to Your modifications and
  187. may provide additional or different license terms and conditions
  188. for use, reproduction, or distribution of Your modifications, or
  189. for any such Derivative Works as a whole, provided Your use,
  190. reproduction, and distribution of the Work otherwise complies with
  191. the conditions stated in this License.
  192. 5. Submission of Contributions. Unless You explicitly state otherwise,
  193. any Contribution intentionally submitted for inclusion in the Work
  194. by You to the Licensor shall be under the terms and conditions of
  195. this License, without any additional terms or conditions.
  196. Notwithstanding the above, nothing herein shall supersede or modify
  197. the terms of any separate license agreement you may have executed
  198. with Licensor regarding such Contributions.
  199. 6. Trademarks. This License does not grant permission to use the trade
  200. names, trademarks, service marks, or product names of the Licensor,
  201. except as required for reasonable and customary use in describing the
  202. origin of the Work and reproducing the content of the NOTICE file.
  203. 7. Disclaimer of Warranty. Unless required by applicable law or
  204. agreed to in writing, Licensor provides the Work (and each
  205. Contributor provides its Contributions) on an "AS IS" BASIS,
  206. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  207. implied, including, without limitation, any warranties or conditions
  208. of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
  209. PARTICULAR PURPOSE. You are solely responsible for determining the
  210. appropriateness of using or redistributing the Work and assume any
  211. risks associated with Your exercise of permissions under this License.
  212. 8. Limitation of Liability. In no event and under no legal theory,
  213. whether in tort (including negligence), contract, or otherwise,
  214. unless required by applicable law (such as deliberate and grossly
  215. negligent acts) or agreed to in writing, shall any Contributor be
  216. liable to You for damages, including any direct, indirect, special,
  217. incidental, or consequential damages of any character arising as a
  218. result of this License or out of the use or inability to use the
  219. Work (including but not limited to damages for loss of goodwill,
  220. work stoppage, computer failure or malfunction, or any and all
  221. other commercial damages or losses), even if such Contributor
  222. has been advised of the possibility of such damages.
  223. 9. Accepting Warranty or Additional Liability. While redistributing
  224. the Work or Derivative Works thereof, You may choose to offer,
  225. and charge a fee for, acceptance of support, warranty, indemnity,
  226. or other liability obligations and/or rights consistent with this
  227. License. However, in accepting such obligations, You may act only
  228. on Your own behalf and on Your sole responsibility, not on behalf
  229. of any other Contributor, and only if You agree to indemnify,
  230. defend, and hold each Contributor harmless for any liability
  231. incurred by, or claims asserted against, such Contributor by reason
  232. of your accepting any such warranty or additional liability.
  233. END OF TERMS AND CONDITIONS
  234. This product contains code that is from LevelDB, and that code is under the following license:
  235. Copyright (c) 2011 The LevelDB Authors. All rights reserved.
  236. Redistribution and use in source and binary forms, with or without
  237. modification, are permitted provided that the following conditions are
  238. met:
  239. * Redistributions of source code must retain the above copyright
  240. notice, this list of conditions and the following disclaimer.
  241. * Redistributions in binary form must reproduce the above
  242. copyright notice, this list of conditions and the following disclaimer
  243. in the documentation and/or other materials provided with the
  244. distribution.
  245. * Neither the name of Google Inc. nor the names of its
  246. contributors may be used to endorse or promote products derived from
  247. this software without specific prior written permission.
  248. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  249. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  250. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  251. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  252. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  253. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  254. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  255. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  256. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  257. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  258. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  259. For gtest-all.cc and gtest.h, code is licensed under the following license:
  260. Copyright 2005-2009, Google Inc.
  261. // All rights reserved.
  262. //
  263. // Redistribution and use in source and binary forms, with or without
  264. // modification, are permitted provided that the following conditions are
  265. // met:
  266. //
  267. // * Redistributions of source code must retain the above copyright
  268. // notice, this list of conditions and the following disclaimer.
  269. // * Redistributions in binary form must reproduce the above
  270. // copyright notice, this list of conditions and the following disclaimer
  271. // in the documentation and/or other materials provided with the
  272. // distribution.
  273. // * Neither the name of Google Inc. nor the names of its
  274. // contributors may be used to endorse or promote products derived from
  275. // this software without specific prior written permission.
  276. //
  277. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  278. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  279. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  280. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  281. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  282. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  283. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  284. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  285. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  286. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  287. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  288. //
  289. // Author: wan@google.com (Zhanyong Wan)