deepsuite 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. deepsuite-1.0.0/.gitignore +203 -0
  2. deepsuite-1.0.0/LICENSE +197 -0
  3. deepsuite-1.0.0/PKG-INFO +447 -0
  4. deepsuite-1.0.0/README.md +399 -0
  5. deepsuite-1.0.0/deepsuite/README.md +261 -0
  6. deepsuite-1.0.0/deepsuite/__init__.py +42 -0
  7. deepsuite-1.0.0/deepsuite/callbacks/README.md +79 -0
  8. deepsuite-1.0.0/deepsuite/callbacks/__init__.py +17 -0
  9. deepsuite-1.0.0/deepsuite/callbacks/base.py +111 -0
  10. deepsuite-1.0.0/deepsuite/callbacks/embedding_logger.py +101 -0
  11. deepsuite-1.0.0/deepsuite/callbacks/kendryte.py +122 -0
  12. deepsuite-1.0.0/deepsuite/callbacks/onnx.py +123 -0
  13. deepsuite-1.0.0/deepsuite/callbacks/tensor_rt.py +197 -0
  14. deepsuite-1.0.0/deepsuite/callbacks/tflite.py +74 -0
  15. deepsuite-1.0.0/deepsuite/callbacks/torchscript.py +115 -0
  16. deepsuite-1.0.0/deepsuite/callbacks/tsne_laplace_callback.py +83 -0
  17. deepsuite-1.0.0/deepsuite/config/__init__.py +1 -0
  18. deepsuite-1.0.0/deepsuite/config/config_manager.py +63 -0
  19. deepsuite-1.0.0/deepsuite/heads/README.md +98 -0
  20. deepsuite-1.0.0/deepsuite/heads/__init__.py +7 -0
  21. deepsuite-1.0.0/deepsuite/heads/box.py +35 -0
  22. deepsuite-1.0.0/deepsuite/heads/centernet.py +49 -0
  23. deepsuite-1.0.0/deepsuite/heads/classification.py +17 -0
  24. deepsuite-1.0.0/deepsuite/heads/heatmap.py +31 -0
  25. deepsuite-1.0.0/deepsuite/heads/language_modeling.py +331 -0
  26. deepsuite-1.0.0/deepsuite/layers/README.md +134 -0
  27. deepsuite-1.0.0/deepsuite/layers/__init__.py +21 -0
  28. deepsuite-1.0.0/deepsuite/layers/attention/__init__.py +14 -0
  29. deepsuite-1.0.0/deepsuite/layers/attention/kv_compression.py +181 -0
  30. deepsuite-1.0.0/deepsuite/layers/attention/mla.py +264 -0
  31. deepsuite-1.0.0/deepsuite/layers/attention/rope.py +131 -0
  32. deepsuite-1.0.0/deepsuite/layers/bottleneck.py +152 -0
  33. deepsuite-1.0.0/deepsuite/layers/complex.py +65 -0
  34. deepsuite-1.0.0/deepsuite/layers/dft.py +112 -0
  35. deepsuite-1.0.0/deepsuite/layers/hermite.py +81 -0
  36. deepsuite-1.0.0/deepsuite/layers/laguerre.py +82 -0
  37. deepsuite-1.0.0/deepsuite/layers/moe.py +490 -0
  38. deepsuite-1.0.0/deepsuite/lightning_base/README.md +209 -0
  39. deepsuite-1.0.0/deepsuite/lightning_base/__init__.py +1 -0
  40. deepsuite-1.0.0/deepsuite/lightning_base/continual_learning_manager.py +85 -0
  41. deepsuite-1.0.0/deepsuite/lightning_base/dataset/__init__.py +10 -0
  42. deepsuite-1.0.0/deepsuite/lightning_base/dataset/audio_loader.py +44 -0
  43. deepsuite-1.0.0/deepsuite/lightning_base/dataset/base_loader.py +50 -0
  44. deepsuite-1.0.0/deepsuite/lightning_base/dataset/image_loader.py +64 -0
  45. deepsuite-1.0.0/deepsuite/lightning_base/dataset/text_loader.py +344 -0
  46. deepsuite-1.0.0/deepsuite/lightning_base/dataset/universal_set.py +22 -0
  47. deepsuite-1.0.0/deepsuite/lightning_base/module.py +356 -0
  48. deepsuite-1.0.0/deepsuite/lightning_base/trainer.py +178 -0
  49. deepsuite-1.0.0/deepsuite/loss/README.md +189 -0
  50. deepsuite-1.0.0/deepsuite/loss/__init__.py +54 -0
  51. deepsuite-1.0.0/deepsuite/loss/bbox.py +228 -0
  52. deepsuite-1.0.0/deepsuite/loss/centernet.py +29 -0
  53. deepsuite-1.0.0/deepsuite/loss/classification.py +47 -0
  54. deepsuite-1.0.0/deepsuite/loss/detection.py +198 -0
  55. deepsuite-1.0.0/deepsuite/loss/dfl.py +122 -0
  56. deepsuite-1.0.0/deepsuite/loss/distill.py +24 -0
  57. deepsuite-1.0.0/deepsuite/loss/focal.py +265 -0
  58. deepsuite-1.0.0/deepsuite/loss/heat.py +23 -0
  59. deepsuite-1.0.0/deepsuite/loss/keypoint.py +72 -0
  60. deepsuite-1.0.0/deepsuite/loss/language_modeling.py +339 -0
  61. deepsuite-1.0.0/deepsuite/loss/lwf.py +26 -0
  62. deepsuite-1.0.0/deepsuite/loss/mel.py +62 -0
  63. deepsuite-1.0.0/deepsuite/loss/rmse.py +53 -0
  64. deepsuite-1.0.0/deepsuite/loss/segmentation.py +244 -0
  65. deepsuite-1.0.0/deepsuite/loss/snr.py +94 -0
  66. deepsuite-1.0.0/deepsuite/loss/varifocal.py +146 -0
  67. deepsuite-1.0.0/deepsuite/metric/README.md +224 -0
  68. deepsuite-1.0.0/deepsuite/metric/__init__.py +1 -0
  69. deepsuite-1.0.0/deepsuite/metric/bbox_iou.py +163 -0
  70. deepsuite-1.0.0/deepsuite/metric/confidence_matrix.py +22 -0
  71. deepsuite-1.0.0/deepsuite/metric/detection.py +73 -0
  72. deepsuite-1.0.0/deepsuite/metric/map.py +46 -0
  73. deepsuite-1.0.0/deepsuite/metric/norm.py +22 -0
  74. deepsuite-1.0.0/deepsuite/metric/probiou.py +53 -0
  75. deepsuite-1.0.0/deepsuite/model/README.md +279 -0
  76. deepsuite-1.0.0/deepsuite/model/__init__.py +23 -0
  77. deepsuite-1.0.0/deepsuite/model/backend_adapter.py +72 -0
  78. deepsuite-1.0.0/deepsuite/model/beamforming/__init__.py +1 -0
  79. deepsuite-1.0.0/deepsuite/model/beamforming/beamforming.py +26 -0
  80. deepsuite-1.0.0/deepsuite/model/complex.py +46 -0
  81. deepsuite-1.0.0/deepsuite/model/conv.py +565 -0
  82. deepsuite-1.0.0/deepsuite/model/detection/__init__.py +1 -0
  83. deepsuite-1.0.0/deepsuite/model/detection/centernet.py +291 -0
  84. deepsuite-1.0.0/deepsuite/model/detection/darknet.py +20 -0
  85. deepsuite-1.0.0/deepsuite/model/detection/detection.py +141 -0
  86. deepsuite-1.0.0/deepsuite/model/detection/efficient.py +183 -0
  87. deepsuite-1.0.0/deepsuite/model/detection/head.py +16 -0
  88. deepsuite-1.0.0/deepsuite/model/detection/mobile.py +307 -0
  89. deepsuite-1.0.0/deepsuite/model/detection/resnet.py +157 -0
  90. deepsuite-1.0.0/deepsuite/model/detection/yolo.py +232 -0
  91. deepsuite-1.0.0/deepsuite/model/doa.py +43 -0
  92. deepsuite-1.0.0/deepsuite/model/feature/__init__.py +1 -0
  93. deepsuite-1.0.0/deepsuite/model/feature/darknet.py +97 -0
  94. deepsuite-1.0.0/deepsuite/model/feature/efficientnet.py +285 -0
  95. deepsuite-1.0.0/deepsuite/model/feature/fpn.py +36 -0
  96. deepsuite-1.0.0/deepsuite/model/feature/mobile.py +182 -0
  97. deepsuite-1.0.0/deepsuite/model/feature/resnet.py +128 -0
  98. deepsuite-1.0.0/deepsuite/model/feature/wavenet.py +551 -0
  99. deepsuite-1.0.0/deepsuite/model/feature/yolo.py +157 -0
  100. deepsuite-1.0.0/deepsuite/model/llm/__init__.py +17 -0
  101. deepsuite-1.0.0/deepsuite/model/llm/centernet.py +81 -0
  102. deepsuite-1.0.0/deepsuite/model/llm/deepseek.py +570 -0
  103. deepsuite-1.0.0/deepsuite/model/llm/gpt.py +616 -0
  104. deepsuite-1.0.0/deepsuite/model/loftr/__init__.py +0 -0
  105. deepsuite-1.0.0/deepsuite/model/loftr/coarse_matching.py +265 -0
  106. deepsuite-1.0.0/deepsuite/model/loftr/encoder_layer.py +49 -0
  107. deepsuite-1.0.0/deepsuite/model/loftr/fine_matching.py +127 -0
  108. deepsuite-1.0.0/deepsuite/model/loftr/fine_preprocess.py +89 -0
  109. deepsuite-1.0.0/deepsuite/model/loftr/full_attention.py +36 -0
  110. deepsuite-1.0.0/deepsuite/model/loftr/linear_attention.py +42 -0
  111. deepsuite-1.0.0/deepsuite/model/loftr/loftr.py +206 -0
  112. deepsuite-1.0.0/deepsuite/model/loftr/position_encoding.py +49 -0
  113. deepsuite-1.0.0/deepsuite/model/loftr/resnet_fpn.py +29 -0
  114. deepsuite-1.0.0/deepsuite/model/loftr/transformer.py +47 -0
  115. deepsuite-1.0.0/deepsuite/model/polynomial.py +204 -0
  116. deepsuite-1.0.0/deepsuite/model/residual.py +74 -0
  117. deepsuite-1.0.0/deepsuite/model/rnn.py +104 -0
  118. deepsuite-1.0.0/deepsuite/model/siamese.py +152 -0
  119. deepsuite-1.0.0/deepsuite/model/stn.py +60 -0
  120. deepsuite-1.0.0/deepsuite/model/tracking/__init__.py +0 -0
  121. deepsuite-1.0.0/deepsuite/model/tracking/tracking.py +113 -0
  122. deepsuite-1.0.0/deepsuite/model/tracking.py +61 -0
  123. deepsuite-1.0.0/deepsuite/model/unet.py +502 -0
  124. deepsuite-1.0.0/deepsuite/svm/__init__.py +1 -0
  125. deepsuite-1.0.0/deepsuite/svm/kernels.py +235 -0
  126. deepsuite-1.0.0/deepsuite/svm/svm.py +136 -0
  127. deepsuite-1.0.0/deepsuite/tracker/README.md +292 -0
  128. deepsuite-1.0.0/deepsuite/tracker/__init__.py +1 -0
  129. deepsuite-1.0.0/deepsuite/tracker/inference.py +46 -0
  130. deepsuite-1.0.0/deepsuite/tracker/reid_encoder.py +45 -0
  131. deepsuite-1.0.0/deepsuite/tracker/rnn_tracker.py +20 -0
  132. deepsuite-1.0.0/deepsuite/tracker/tracker.py +441 -0
  133. deepsuite-1.0.0/deepsuite/tracker/tracker_manager.py +183 -0
  134. deepsuite-1.0.0/deepsuite/typing.py +18 -0
  135. deepsuite-1.0.0/deepsuite/utils/README.md +331 -0
  136. deepsuite-1.0.0/deepsuite/utils/__init__.py +1 -0
  137. deepsuite-1.0.0/deepsuite/utils/anchor.py +20 -0
  138. deepsuite-1.0.0/deepsuite/utils/array_calibration.py +88 -0
  139. deepsuite-1.0.0/deepsuite/utils/autocast.py +10 -0
  140. deepsuite-1.0.0/deepsuite/utils/bbox.py +23 -0
  141. deepsuite-1.0.0/deepsuite/utils/complex.py +17 -0
  142. deepsuite-1.0.0/deepsuite/utils/device.py +62 -0
  143. deepsuite-1.0.0/deepsuite/utils/head_expansion.py +19 -0
  144. deepsuite-1.0.0/deepsuite/utils/hermite.py +63 -0
  145. deepsuite-1.0.0/deepsuite/utils/hw.py +120 -0
  146. deepsuite-1.0.0/deepsuite/utils/image.py +21 -0
  147. deepsuite-1.0.0/deepsuite/utils/laguerre.py +60 -0
  148. deepsuite-1.0.0/deepsuite/utils/rnn.py +44 -0
  149. deepsuite-1.0.0/deepsuite/utils/search_space.py +20 -0
  150. deepsuite-1.0.0/deepsuite/utils/summery.py +11 -0
  151. deepsuite-1.0.0/deepsuite/utils/taskAlignedAssigner.py +337 -0
  152. deepsuite-1.0.0/deepsuite/utils/teacher.py +79 -0
  153. deepsuite-1.0.0/deepsuite/utils/tensor.py +26 -0
  154. deepsuite-1.0.0/deepsuite/utils/tsignal.py +175 -0
  155. deepsuite-1.0.0/deepsuite/utils/xy.py +72 -0
  156. deepsuite-1.0.0/deepsuite/viz/README.md +294 -0
  157. deepsuite-1.0.0/deepsuite/viz/__init__.py +1 -0
  158. deepsuite-1.0.0/deepsuite/viz/embedding.py +53 -0
  159. deepsuite-1.0.0/pyproject.toml +293 -0
@@ -0,0 +1,203 @@
1
+ class_*.json
2
+ .trunk/*
3
+
4
+ .DS_Store
5
+
6
+ .vscode/
7
+
8
+ .jj/
9
+ .jjconfig.toml
10
+
11
+ docs/_build/
12
+
13
+ # Byte-compiled / optimized / DLL files
14
+ __pycache__/
15
+ *.py[cod]
16
+ *$py.class
17
+
18
+ *lock
19
+
20
+ # C extensions
21
+ *.so
22
+
23
+ runs/*
24
+ /home/meriem/git_tatto/tattoodb/.env
25
+ service-account-dev.json
26
+ service-account.json
27
+ /home/meriem/git_tatto/Tattoo/input
28
+ # Distribution / packaging
29
+ .Python
30
+ build/
31
+ develop-eggs/
32
+ dist/
33
+ downloads/
34
+ eggs/
35
+ .eggs/
36
+ lib/
37
+ lib64/
38
+ parts/
39
+ sdist/
40
+ var/
41
+ wheels/
42
+ share/python-wheels/
43
+ *.egg-info/
44
+ .installed.cfg
45
+ *.egg
46
+ MANIFEST
47
+
48
+ # PyInstaller
49
+ # Usually these files are written by a python script from a template
50
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
51
+ *.manifest
52
+ *.spec
53
+
54
+ # Installer logs
55
+ pip-log.txt
56
+ pip-delete-this-directory.txt
57
+
58
+ # Unit test / coverage reports
59
+ htmlcov/
60
+ .tox/
61
+ .nox/
62
+ .coverage
63
+ .coverage.*
64
+ .cache
65
+ nosetests.xml
66
+ coverage.xml
67
+ *.cover
68
+ *.py,cover
69
+ .hypothesis/
70
+ .pytest_cache/
71
+ cover/
72
+
73
+ # Translations
74
+ *.mo
75
+ *.pot
76
+
77
+ # Django stuff:
78
+ *.log
79
+ local_settings.py
80
+ db.sqlite3
81
+ db.sqlite3-journal
82
+
83
+ # Flask stuff:
84
+ instance/
85
+ .webassets-cache
86
+
87
+ # Scrapy stuff:
88
+ .scrapy
89
+
90
+ # Sphinx documentation
91
+ docs/_build/
92
+
93
+ # PyBuilder
94
+ .pybuilder/
95
+ target/
96
+
97
+ # Jupyter Notebook
98
+ .ipynb_checkpoints
99
+
100
+ # IPython
101
+ profile_default/
102
+ ipython_config.py
103
+
104
+ # pyenv
105
+ # For a library or package, you might want to ignore these files since the code is
106
+ # intended to run in multiple environments; otherwise, check them in:
107
+ # .python-version
108
+
109
+ # pipenv
110
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
111
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
112
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
113
+ # install all needed dependencies.
114
+ #Pipfile.lock
115
+
116
+ # UV
117
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
118
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
119
+ # commonly ignored for libraries.
120
+ #uv.lock
121
+
122
+ # poetry
123
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
124
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
125
+ # commonly ignored for libraries.
126
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
127
+ #poetry.lock
128
+
129
+ # pdm
130
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
131
+ #pdm.lock
132
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
133
+ # in version control.
134
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
135
+ .pdm.toml
136
+ .pdm-python
137
+ .pdm-build/
138
+
139
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
140
+ __pypackages__/
141
+
142
+ # Celery stuff
143
+ celerybeat-schedule
144
+ celerybeat.pid
145
+
146
+ # SageMath parsed files
147
+ *.sage.py
148
+
149
+ # Environments
150
+ .env
151
+ .env.dev
152
+ .venv
153
+ env/
154
+ venv/
155
+ ENV/
156
+ env.bak/
157
+ venv.bak/
158
+
159
+ # Spyder project settings
160
+ .spyderproject
161
+ .spyproject
162
+
163
+ # Rope project settings
164
+ .ropeproject
165
+
166
+ # mkdocs documentation
167
+ /site
168
+
169
+ # mypy
170
+ .mypy_cache/
171
+ .dmypy.json
172
+ dmypy.json
173
+
174
+ # Pyre type checker
175
+ .pyre/
176
+
177
+ # pytype static type analyzer
178
+ .pytype/
179
+
180
+ # Cython debug symbols
181
+ cython_debug/
182
+
183
+ # PyCharm
184
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
185
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
186
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
187
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
188
+ #.idea/
189
+
190
+ # Ruff stuff:
191
+ .ruff_cache/
192
+
193
+ # PyPI configuration file
194
+ .pypirc
195
+
196
+ runs/
197
+ assets/
198
+
199
+ *.pt
200
+ *.onnx
201
+
202
+ checkpoints/
203
+ fyne-cross/
@@ -0,0 +1,197 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined in Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity exercising
24
+ permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or Object
36
+ form, made available under the License, as indicated by a copyright
37
+ notice that is included in or attached to the work (an example is
38
+ provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any subsequent modifications
50
+ and additions to that Work or Derivative Works thereof, including
51
+ but not limited to any Improvements.
52
+
53
+ "Contributor" shall mean Licensor and any individual or Legal Entity
54
+ on behalf of whom a Contribution has been received by Licensor and
55
+ subsequently incorporated within the Work.
56
+
57
+ "Improvements" shall mean any modification or improvement to the Work
58
+ including without limitation any code, documentation, bug fixes, and
59
+ enhancements. For the purposes of this definition, "Improvements" shall
60
+ not include works that remain separable from, or merely link (or bind
61
+ by name) to the interfaces of, the Work.
62
+
63
+ 2. Grant of Copyright License. Subject to the terms and conditions of
64
+ this License, each Contributor hereby grants to You a perpetual,
65
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
66
+ copyright license to reproduce, prepare Derivative Works of,
67
+ publicly display, publicly perform, sublicense, and distribute the
68
+ Work and such Derivative Works in Source or Object form.
69
+
70
+ 3. Grant of Patent License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ (except as stated in this section) patent license to make, have made,
74
+ use, offer to sell, sell, import, and otherwise transfer the Work,
75
+ where such license applies only to those patent claims licensable
76
+ by such Contributor that are necessarily infringed by their
77
+ Contribution(s) alone or by combination of their Contribution(s)
78
+ with the Work to which such Contribution(s) was submitted. If You
79
+ institute patent litigation against any entity (including a
80
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
81
+ or a Contribution incorporated within the Work constitutes direct
82
+ or contributory patent infringement, then any patent licenses
83
+ granted to You under this License for that Work shall terminate
84
+ as of the date such litigation is filed.
85
+
86
+ 4. Redistribution. You may reproduce and distribute copies of the
87
+ Work or Derivative Works thereof in any medium, with or without
88
+ modifications, and in Source or Object form, provided that You
89
+ meet the following conditions:
90
+
91
+ (a) You must give any other recipients of the Work or
92
+ Derivative Works a copy of this License; and
93
+
94
+ (b) You must cause any modified files to carry prominent notices
95
+ stating that You changed the files; and
96
+
97
+ (c) You must retain, in the Source form of any Derivative Works
98
+ that You distribute, all copyright, patent, trademark, and
99
+ attribution notices from the Source form of the Work,
100
+ excluding those notices that do not pertain to any part of
101
+ the Derivative Works; and
102
+
103
+ (d) If the Work includes a "NOTICE" text file, as part of its
104
+ distribution, then any Derivative Works that You distribute must
105
+ include a readable copy of the attribution notices contained
106
+ within such NOTICE file, excluding those notices that do not
107
+ pertain to any part of the Derivative Works, in at least one
108
+ of the following places: within a NOTICE text file distributed
109
+ as part of the Derivative Works; within the Source form or
110
+ documentation, if provided along with the Derivative Works; or,
111
+ within a display generated by the Derivative Works, if and
112
+ wherever such third-party notices normally appear. The contents
113
+ of the NOTICE file are for informational purposes only and
114
+ do not modify the License. You may add Your own attribution
115
+ notices within Derivative Works that You distribute, alongside
116
+ or as an addendum to the NOTICE from the Work, provided that
117
+ such additional attribution notices cannot be construed as
118
+ modifying the License.
119
+
120
+ You may add Your own copyright statement to Your modifications and
121
+ may provide additional or different license terms and conditions
122
+ for use, reproduction, or distribution of Your modifications, or
123
+ for any such Derivative Works as a whole, provided Your use,
124
+ reproduction, and distribution of the Work otherwise complies with
125
+ the conditions of this License.
126
+
127
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
128
+ any Contribution intentionally submitted for inclusion in the Work
129
+ by You to Licensor shall be under the terms and conditions of
130
+ this License, without any additional terms or conditions.
131
+ Notwithstanding the above, nothing herein shall supersede or modify
132
+ the terms of any separate license agreement you may have executed
133
+ with Licensor regarding such Contribution.
134
+
135
+ 6. Trademarks. This License does not grant permission to use the trade
136
+ names, trademarks, service marks, or product names of the Licensor,
137
+ except as required for reasonable and customary use in describing the
138
+ origin of the Work and reproducing the content of the NOTICE file.
139
+
140
+ 7. Disclaimer of Warranty. Unless required by applicable law or
141
+ agreed to in writing, Licensor provides the Work (and each
142
+ Contributor provides its Contributions) on an "AS IS" BASIS,
143
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
144
+ implied, including, without limitation, any warranties or conditions
145
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
146
+ PARTICULAR PURPOSE. You are solely responsible for determining the
147
+ appropriateness of using or redistributing the Work and assume any
148
+ risks associated with Your exercise of permissions under this License.
149
+
150
+ 8. Limitation of Liability. In no event and under no legal theory,
151
+ whether in tort (including negligence), contract, or otherwise,
152
+ unless required by applicable law (such as deliberate and grossly
153
+ negligent acts) or agreed to in writing, shall any Contributor be
154
+ liable to You for damages, including any direct, indirect, special,
155
+ incidental, or consequential damages of any character arising as a
156
+ result of this License or out of the use or inability to use the
157
+ Work (including but not limited to damages for loss of goodwill,
158
+ work stoppage, computer failure or malfunction, or any and all
159
+ other commercial damages or losses), even if such Contributor
160
+ has been advised of the possibility of such damages.
161
+
162
+ 9. Accepting Warranty or Additional Liability. While redistributing
163
+ the Work or Derivative Works thereof, You may choose to offer,
164
+ and charge a fee for, acceptance of support, warranty, indemnity,
165
+ or other liability obligations and/or rights consistent with this
166
+ License. However, in accepting such obligations, You may act only
167
+ on Your own behalf and on Your sole responsibility, not on behalf
168
+ of any other Contributor, and only if You agree to indemnify,
169
+ defend, and hold each Contributor harmless for any liability
170
+ incurred by, or claims asserted against, such Contributor by reason
171
+ of your accepting any such warranty or additional liability.
172
+
173
+ END OF TERMS AND CONDITIONS
174
+
175
+ APPENDIX: How to apply the Apache License to your work.
176
+
177
+ To apply the Apache License to your work, attach the following
178
+ boilerplate notice, with the fields enclosed by brackets "{}"
179
+ replaced with your own identifying information. (Don't include
180
+ the brackets!) The text should be enclosed in the appropriate
181
+ comment syntax for the file format. We also recommend that you
182
+ include a file named "LICENSE" (with no extensions) containing the
183
+ plain text version of the applicable license.
184
+
185
+ Copyright [yyyy] [name of copyright owner]
186
+
187
+ Licensed under the Apache License, Version 2.0 (the "License");
188
+ you may not use this file except in compliance with the License.
189
+ You may obtain a copy of the License at
190
+
191
+ http://www.apache.org/licenses/LICENSE-2.0
192
+
193
+ Unless required by applicable law or agreed to in writing, software
194
+ distributed under the License is distributed on an "AS IS" BASIS,
195
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
196
+ See the License for the specific language governing permissions and
197
+ limitations under the License.