pearmut 0.2.6__py3-none-any.whl → 0.2.7__py3-none-any.whl

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.
@@ -1,350 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: pearmut
3
- Version: 0.2.6
4
- Summary: A tool for evaluation of model outputs, primarily MT.
5
- Author-email: Vilém Zouhar <vilem.zouhar@gmail.com>
6
- License: apache-2.0
7
- Project-URL: Repository, https://github.com/zouharvi/pearmut
8
- Project-URL: Issues, https://github.com/zouharvi/pearmut/issues
9
- Keywords: evaluation,machine translation,human evaluation,annotation
10
- Requires-Python: >=3.12
11
- Description-Content-Type: text/markdown
12
- License-File: LICENSE
13
- Requires-Dist: fastapi>=0.110.0
14
- Requires-Dist: uvicorn>=0.29.0
15
- Requires-Dist: wonderwords>=3.0.0
16
- Requires-Dist: psutil>=7.1.0
17
- Provides-Extra: dev
18
- Requires-Dist: pytest; extra == "dev"
19
- Dynamic: license-file
20
-
21
- # Pearmut 🍐
22
-
23
- Pearmut is a **Platform for Evaluation and Reviewing of Multilingual Tasks**.
24
- It evaluates model outputs, primarily translation but also various other NLP tasks.
25
- Supports multimodality (text, video, audio, images) and a variety of annotation protocols ([DA](https://aclanthology.org/N15-1124/), [ESA](https://aclanthology.org/2024.wmt-1.131/), [ESA<sup>AI</sup>](https://aclanthology.org/2025.naacl-long.255/), [MQM](https://doi.org/10.1162/tacl_a_00437), paired ESA, etc).
26
-
27
- [![PyPi version](https://badgen.net/pypi/v/pearmut/)](https://pypi.org/project/pearmut)
28
- &nbsp;
29
- [![PyPI download/month](https://img.shields.io/pypi/dm/pearmut.svg)](https://pypi.python.org/pypi/pearmut/)
30
- &nbsp;
31
- [![PyPi license](https://badgen.net/pypi/license/pearmut/)](https://pypi.org/project/pearmut/)
32
- &nbsp;
33
- [![build status](https://github.com/zouharvi/pearmut/actions/workflows/test.yml/badge.svg)](https://github.com/zouharvi/pearmut/actions/workflows/test.yml)
34
-
35
- <img width="1000" alt="Screenshot of ESA/MQM interface" src="https://github.com/user-attachments/assets/4fb9a1cb-78ac-47e0-99cd-0870a368a0ad" />
36
-
37
- ## Quick start
38
-
39
- You do not need to clone this repository. Simply install with pip and run locally:
40
- ```bash
41
- # install the package
42
- pip install pearmut
43
- # download two campaign definitions
44
- wget https://raw.githubusercontent.com/zouharvi/pearmut/refs/heads/main/examples/esa_encs.json
45
- wget https://raw.githubusercontent.com/zouharvi/pearmut/refs/heads/main/examples/da_enuk.json
46
- # load them into pearmut
47
- pearmut add esa_encs.json
48
- pearmut add da_enuk.json
49
- # start pearmut (will show management links)
50
- pearmut run
51
- ```
52
-
53
- ## Starting a campaign
54
-
55
- First, install the package
56
- ```bash
57
- pip install pearmut
58
- ```
59
-
60
- A campaign is described in a single JSON file (see [examples/](examples/)).
61
- One of the simplest ones, where each user has a pre-defined list of tasks (`task-based`), is:
62
- ```python
63
- {
64
- "info": {
65
- "assignment": "task-based",
66
- "template": "pointwise",
67
- "protocol_score": true, # we want scores [0...100] for each segment
68
- "protocol_error_spans": true, # we want error spans
69
- "protocol_error_categories": false, # we do not want error span categories
70
- },
71
- "campaign_id": "wmt25_#_en-cs_CZ",
72
- "data": [
73
- # data for first task/user
74
- [
75
- [
76
- # each evaluation item is a document
77
- {
78
- "instructions": "Evaluate translation from en to cs_CZ", # message to show to users above the first item
79
- "src": "This will be the year that Guinness loses its cool. Cheers to that!",
80
- "tgt": "Nevím přesně, kdy jsem to poprvé zaznamenal. Možná to bylo ve chvíli, ..."
81
- },
82
- {
83
- "src": "I'm not sure I can remember exactly when I sensed it. Maybe it was when some...",
84
- "tgt": "Tohle bude rok, kdy Guinness přijde o svůj „cool“ faktor. Na zdraví!"
85
- }
86
- ...
87
- ],
88
- # more document
89
- ...
90
- ],
91
- # data for second task/user
92
- [
93
- ...
94
- ],
95
- # arbitrary number of users (each corresponds to a single URL to be shared)
96
- ]
97
- }
98
- ```
99
- In general, the task item can be anything and is handled by the specific protocol template.
100
- For the standard ones (ESA, DA, MQM), we expect each item to be a dictionary (corresponding to a single document unit) that looks as follows:
101
- ```python
102
- # single document definition
103
- [
104
- {
105
- "src": "A najednou se všechna tato voda naplnila dalšími lidmi a dalšími věcmi.", # mandatory for ESA/MQM/DA
106
- "tgt": "And suddenly all the water became full of other people and other people." # mandatory for ESA/MQM/DA
107
- },
108
- {
109
- "src": "toto je pokračování stejného dokumentu",
110
- "tgt": "this is a continuation of the same document",
111
- ... # all other keys that will be stored, useful for your analysis
112
- }
113
- ],
114
- ... # definition of another item (document)
115
- ```
116
-
117
- ## Pre-filled Error Spans (ESA<sup>AI</sup> Support)
118
-
119
- For workflows where you want to provide pre-filled error annotations (e.g., ESA<sup>AI</sup>), you can include an `error_spans` key in each item.
120
- These spans will be loaded into the interface as existing annotations that users can review, modify, or delete.
121
-
122
- ```python
123
- {
124
- "src": "The quick brown fox jumps over the lazy dog.",
125
- "tgt": "Rychlá hnědá liška skáče přes líného psa.",
126
- "error_spans": [
127
- {
128
- "start_i": 0, # character index start (inclusive)
129
- "end_i": 5, # character index end (inclusive)
130
- "severity": "minor", # "minor", "major", "neutral", or null
131
- "category": null # MQM category string or null
132
- },
133
- {
134
- "start_i": 27,
135
- "end_i": 32,
136
- "severity": "major",
137
- "category": null
138
- }
139
- ]
140
- }
141
- ```
142
-
143
- For **listwise** template, `error_spans` is a 2D array where each inner array corresponds to error spans for that candidate.
144
-
145
- See [examples/esaai_prefilled.json](examples/esaai_prefilled.json) for a complete example.
146
-
147
- ## Tutorial and Attention Checks
148
-
149
- You can add validation rules to items for tutorials or attention checks. Items with `validation` field will be checked before submission:
150
-
151
- ```python
152
- {
153
- "src": "The quick brown fox jumps.",
154
- "tgt": "Rychlá hnědá liška skáče.",
155
- "validation": {
156
- "warning": "Please set score between 70-80.", # shown on failure (omit for silent logging)
157
- "score": [70, 80], # required score range [min, max]
158
- "error_spans": [{"start_i": [0, 2], "end_i": [4, 8], "severity": "minor"}], # expected spans
159
- "allow_skip": true # show "skip tutorial" button
160
- }
161
- }
162
- ```
163
-
164
- - Tutorial items: Include `allow_skip: true` and `warning` to let users skip after seeing the feedback
165
- - Loud attention checks: Include `warning` without `allow_skip` to force users to retry
166
- - Silent attention checks: Omit `warning` to silently log failures without user notification (useful for quality control with bad translations)
167
-
168
- For listwise template, `validation` is an array where each element corresponds to a candidate.
169
- The dashboard shows failed/total validation checks per user, and ✅/❌ based on whether they pass the threshold.
170
- Set `validation_threshold` in `info` to control pass/fail: integer for max failed count, float in [0,1) for max failed proportion.
171
- See [examples/tutorial_pointwise.json](examples/tutorial_pointwise.json) and [examples/tutorial_listwise.json](examples/tutorial_listwise.json) for complete examples.
172
-
173
- ## Single-stream Assignment
174
-
175
- We also support a simple allocation where all annotators draw from the same pool (`single-stream`). Items are randomly assigned to annotators from the pool of unfinished items:
176
- ```python
177
- {
178
- "campaign_id": "my campaign 6",
179
- "info": {
180
- "assignment": "single-stream",
181
- "template": "pointwise",
182
- "protocol_score": True, # collect scores
183
- "protocol_error_spans": True, # collect error spans
184
- "protocol_error_categories": False, # do not collect MQM categories, so ESA
185
- "users": 50, # number of annotators (can also be a list, see below)
186
- },
187
- "data": [...], # list of all items (shared among all annotators)
188
- }
189
- ```
190
-
191
-
192
- We also support dynamic allocation of annotations (`dynamic`, not yet ⚠️), which is more complex and can be ignored for now:
193
- ```python
194
- {
195
- "campaign_id": "my campaign 6",
196
- "info": {
197
- "assignment": "dynamic",
198
- "template": "listwise",
199
- "protocol_k": 5,
200
- "users": 50,
201
- },
202
- "data": [...], # list of all items
203
- }
204
- ```
205
-
206
- ## Pre-defined User IDs and Tokens
207
-
208
- By default, user IDs and completion tokens are automatically generated. The `users` field can be:
209
- - A number (e.g., `50`) to generate that many random user IDs
210
- - A list of strings (e.g., `["alice", "bob"]`) to use specific user IDs
211
- - A list of dictionaries to specify user IDs with custom tokens:
212
- ```python
213
- {
214
- "info": {
215
- ...
216
- "users": [
217
- {"user_id": "alice", "token_pass": "alice_done", "token_fail": "alice_fail"},
218
- {"user_id": "bob", "token_pass": "bob_done"} # missing tokens are auto-generated
219
- ],
220
- },
221
- ...
222
- }
223
- ```
224
-
225
- To load a campaign into the server, run the following.
226
- It will fail if an existing campaign with the same `campaign_id` already exists, unless you specify `-o/--overwrite`.
227
- It will also output a secret management link. Then, launch the server:
228
- ```bash
229
- pearmut add my_campaign_4.json
230
- pearmut run
231
- ```
232
-
233
- ## Campaign options
234
-
235
- In summary, you can select from the assignment types
236
-
237
- - `task-based`: each user has a predefined set of items
238
- - `single-stream`: all users are annotating together the same set of items
239
- - `dynamic`: WIP ⚠️
240
-
241
- and independently of that select your protocol template:
242
-
243
- - `pointwise`: evaluate a single output given a single output
244
- - `protocol_score`: ask for score 0 to 100
245
- - `protocol_error_spans`: ask for highlighting error spans
246
- - `protocol_error_categories`: ask for highlighting error categories
247
- - `listwise`: evaluate multiple outputs at the same time given a single output ⚠️
248
- - `protocol_score`: ask for score 0 to 100
249
- - `protocol_error_spans`: ask for highlighting error spans
250
- - `protocol_error_categories`: ask for highlighting error categories
251
-
252
- ## Campaign management
253
-
254
- When adding new campaigns or launching pearmut, a management link is shown that gives an overview of annotator progress but also an easy access to the annotation links or resetting the task progress (no data will be lost).
255
- This is also the place where you can download all progress and collected annotations (these files exist also locally but this might be more convenient).
256
-
257
- <img width="800" alt="Management dashboard" src="https://github.com/user-attachments/assets/800a1741-5f41-47ac-9d5d-5cbf6abfc0e6" />
258
-
259
- Additionally, at the end of an annotation, a token of completion is shown which can be compared to the correct one that you can download in metadat from the dashboard.
260
- An intentionally incorrect token can be shown if the annotations don't pass quality control.
261
-
262
- <img width="500" alt="Token on completion" src="https://github.com/user-attachments/assets/40eb904c-f47a-4011-aa63-9a4f1c501549" />
263
-
264
-
265
- ## Multimodal Annotations
266
-
267
- We also support anything HTML-compatible both on the input and on the output.
268
- This includes embedded YouTube videos, or even simple `<video ` tags that point to some resource somewhere.
269
- For an example, try [examples/multimodal.json](examples/multimodal.json).
270
- Tip: make sure the elements are already appropriately styled.
271
-
272
- <img width="1000" alt="Preview of multimodal elements in Pearmut" src="https://github.com/user-attachments/assets/77c4fa96-ee62-4e46-8e78-fd16e9007956" />
273
-
274
- ## CLI Commands
275
-
276
- Pearmut provides the following commands:
277
-
278
- - `pearmut add <file(s)>`: Add one or more campaign JSON files. Supports wildcards (e.g., `pearmut add examples/*.json`).
279
- - `-o/--overwrite`: Overwrite existing campaigns with the same ID.
280
- - `--server <url>`: Prefix server URL for protocol links (default: `http://localhost:8001`).
281
- - `pearmut run`: Start the Pearmut server.
282
- - `--port <port>`: Port to run the server on (default: 8001).
283
- - `--server <url>`: Prefix server URL for protocol links.
284
- - `pearmut purge [campaign]`: Remove campaign data.
285
- - Without arguments: Purges all campaigns (tasks, outputs, progress).
286
- - With campaign name: Purges only the specified campaign's data.
287
-
288
-
289
- ## Hosting Assets
290
-
291
- To host local assets (e.g., audio files, images, videos), use the `assets` key in your campaign file:
292
-
293
- ```python
294
- {
295
- "campaign_id": "my_campaign",
296
- "info": {
297
- "assets": {
298
- "source": "videos", # path to directory containing assets
299
- "destination": "assets/my_videos" # where to mount (must start with "assets/")
300
- },
301
- ...
302
- },
303
- "data": [ ... ]
304
- }
305
- ```
306
-
307
- Files in `videos/` become accessible at `localhost:8001/assets/my_videos/`.
308
- This creates a symlink, so the source directory must exist throughout the annotation period.
309
- If another campaign already uses the destination path, the add command will fail.
310
-
311
- ## Development
312
-
313
- Pearmut works by running a server that responds to requests from the frontend.
314
- These requests are not template-based but rather carry only data (which gives flexibility in designing new protocols and interfaces).
315
- By default, the frontend is served from `static/` which is pre-built when you `pip install pearmut`.
316
- To make changes locally, clone the repository and run the following, which will recompile the frontend on changes (server changes need server restart):
317
- ```bash
318
- cd pearmut
319
- # watch the frontend for changes (in a separate terminal)
320
- npm install web/ --prefix web/
321
- npm run build --prefix web/ # `watch` for rebuild on code change
322
-
323
- # install local package as editable
324
- pip3 install -e .
325
- # add existing data from WMT25, this generates annotation links
326
- # sets up progress/log files in current working folder
327
- pearmut add examples/wmt25_#_en-cs_CZ.json
328
- pearmut add examples/wmt25_#_cs-de_DE.json
329
- # shows a management link for all loaded campaigns and reload on change
330
- pearmut run
331
- ```
332
-
333
- Optionally, you can specify `--server` in `pearmut add` and `pearmut run` to show correct URL prefixes.
334
- The `pearmut run` also accepts `--port` (default 8001).
335
-
336
- If you wish to create a new protocol (referenceable from `info->template`), simply create a new HTML and TS file in `web/src` and add a rule to `webpack.config.js` so that your template gets built.
337
- A template can call the server for data etc (see [web/src/pointwise.ts](web/src/pointwise.ts) as an exmple).
338
-
339
- To run the platform, you need to run this on some publicly-facing server, or run it locally and tunnel your port to a public IP/domain.
340
-
341
- ## Citation
342
-
343
- If you use this work in your paper, please cite as:
344
- ```bibtex
345
- @misc{zouhar2025pearmut,
346
- author={Vilém Zouhar},
347
- title={Pearmut: Platform for Evaluating and Reviewing of Multilingual Tasks},
348
- url={https://github.com/zouharvi/pearmut/},
349
- year={2025},
350
- }
@@ -1,201 +0,0 @@
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 by 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
24
- exercising 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
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is 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 modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright [yyyy] [name of copyright owner]
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.