applied-ai-018 commited on
Commit
b80d94d
·
verified ·
1 Parent(s): 2ce45d5

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. llmeval-env/lib/python3.10/site-packages/frozenlist-1.4.1.dist-info/INSTALLER +1 -0
  2. llmeval-env/lib/python3.10/site-packages/frozenlist-1.4.1.dist-info/LICENSE +201 -0
  3. llmeval-env/lib/python3.10/site-packages/frozenlist-1.4.1.dist-info/METADATA +420 -0
  4. llmeval-env/lib/python3.10/site-packages/frozenlist-1.4.1.dist-info/RECORD +12 -0
  5. llmeval-env/lib/python3.10/site-packages/idna/__init__.py +44 -0
  6. llmeval-env/lib/python3.10/site-packages/idna/__pycache__/codec.cpython-310.pyc +0 -0
  7. llmeval-env/lib/python3.10/site-packages/idna/compat.py +13 -0
  8. llmeval-env/lib/python3.10/site-packages/idna/core.py +395 -0
  9. llmeval-env/lib/python3.10/site-packages/idna/idnadata.py +4245 -0
  10. llmeval-env/lib/python3.10/site-packages/idna/intranges.py +54 -0
  11. llmeval-env/lib/python3.10/site-packages/idna/package_data.py +2 -0
  12. llmeval-env/lib/python3.10/site-packages/idna/uts46data.py +0 -0
  13. llmeval-env/lib/python3.10/site-packages/multiprocess/__info__.py +221 -0
  14. llmeval-env/lib/python3.10/site-packages/multiprocess/__init__.py +66 -0
  15. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/__info__.cpython-310.pyc +0 -0
  16. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/__init__.cpython-310.pyc +0 -0
  17. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/connection.cpython-310.pyc +0 -0
  18. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/context.cpython-310.pyc +0 -0
  19. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/forkserver.cpython-310.pyc +0 -0
  20. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/heap.cpython-310.pyc +0 -0
  21. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/managers.cpython-310.pyc +0 -0
  22. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/pool.cpython-310.pyc +0 -0
  23. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/popen_fork.cpython-310.pyc +0 -0
  24. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/popen_forkserver.cpython-310.pyc +0 -0
  25. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/popen_spawn_posix.cpython-310.pyc +0 -0
  26. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/popen_spawn_win32.cpython-310.pyc +0 -0
  27. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/process.cpython-310.pyc +0 -0
  28. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/queues.cpython-310.pyc +0 -0
  29. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/reduction.cpython-310.pyc +0 -0
  30. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/resource_sharer.cpython-310.pyc +0 -0
  31. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/resource_tracker.cpython-310.pyc +0 -0
  32. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/shared_memory.cpython-310.pyc +0 -0
  33. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/sharedctypes.cpython-310.pyc +0 -0
  34. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/spawn.cpython-310.pyc +0 -0
  35. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/synchronize.cpython-310.pyc +0 -0
  36. llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/util.cpython-310.pyc +0 -0
  37. llmeval-env/lib/python3.10/site-packages/multiprocess/connection.py +976 -0
  38. llmeval-env/lib/python3.10/site-packages/multiprocess/dummy/__init__.py +126 -0
  39. llmeval-env/lib/python3.10/site-packages/multiprocess/dummy/__pycache__/__init__.cpython-310.pyc +0 -0
  40. llmeval-env/lib/python3.10/site-packages/multiprocess/dummy/__pycache__/connection.cpython-310.pyc +0 -0
  41. llmeval-env/lib/python3.10/site-packages/multiprocess/dummy/connection.py +75 -0
  42. llmeval-env/lib/python3.10/site-packages/multiprocess/forkserver.py +347 -0
  43. llmeval-env/lib/python3.10/site-packages/multiprocess/heap.py +337 -0
  44. llmeval-env/lib/python3.10/site-packages/multiprocess/pool.py +957 -0
  45. llmeval-env/lib/python3.10/site-packages/multiprocess/popen_fork.py +83 -0
  46. llmeval-env/lib/python3.10/site-packages/multiprocess/popen_forkserver.py +74 -0
  47. llmeval-env/lib/python3.10/site-packages/multiprocess/popen_spawn_posix.py +72 -0
  48. llmeval-env/lib/python3.10/site-packages/multiprocess/popen_spawn_win32.py +131 -0
  49. llmeval-env/lib/python3.10/site-packages/multiprocess/process.py +438 -0
  50. llmeval-env/lib/python3.10/site-packages/multiprocess/queues.py +382 -0
llmeval-env/lib/python3.10/site-packages/frozenlist-1.4.1.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
llmeval-env/lib/python3.10/site-packages/frozenlist-1.4.1.dist-info/LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 2013-2019 Nikolay Kim and Andrew Svetlov
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.
llmeval-env/lib/python3.10/site-packages/frozenlist-1.4.1.dist-info/METADATA ADDED
@@ -0,0 +1,420 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.1
2
+ Name: frozenlist
3
+ Version: 1.4.1
4
+ Summary: A list-like structure which implements collections.abc.MutableSequence
5
+ Home-page: https://github.com/aio-libs/frozenlist
6
+ Maintainer: aiohttp team <[email protected]>
7
+ Maintainer-email: [email protected]
8
+ License: Apache 2
9
+ Project-URL: Chat: Matrix, https://matrix.to/#/#aio-libs:matrix.org
10
+ Project-URL: Chat: Matrix Space, https://matrix.to/#/#aio-libs-space:matrix.org
11
+ Project-URL: CI: Github Actions, https://github.com/aio-libs/frozenlist/actions
12
+ Project-URL: Code of Conduct, https://github.com/aio-libs/.github/blob/master/CODE_OF_CONDUCT.md
13
+ Project-URL: Coverage: codecov, https://codecov.io/github/aio-libs/frozenlist
14
+ Project-URL: Docs: Changelog, https://github.com/aio-libs/frozenlist/blob/master/CHANGES.rst#changelog
15
+ Project-URL: Docs: RTD, https://frozenlist.aio-libs.org
16
+ Project-URL: GitHub: issues, https://github.com/aio-libs/frozenlist/issues
17
+ Project-URL: GitHub: repo, https://github.com/aio-libs/frozenlist
18
+ Classifier: Development Status :: 5 - Production/Stable
19
+ Classifier: Intended Audience :: Developers
20
+ Classifier: License :: OSI Approved :: Apache Software License
21
+ Classifier: Operating System :: POSIX
22
+ Classifier: Operating System :: MacOS :: MacOS X
23
+ Classifier: Operating System :: Microsoft :: Windows
24
+ Classifier: Programming Language :: Cython
25
+ Classifier: Programming Language :: Python
26
+ Classifier: Programming Language :: Python :: 3
27
+ Classifier: Programming Language :: Python :: 3.8
28
+ Classifier: Programming Language :: Python :: 3.9
29
+ Classifier: Programming Language :: Python :: 3.10
30
+ Classifier: Programming Language :: Python :: 3.11
31
+ Classifier: Programming Language :: Python :: 3.12
32
+ Classifier: Programming Language :: Python :: Implementation :: CPython
33
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
34
+ Requires-Python: >=3.8
35
+ Description-Content-Type: text/x-rst
36
+ License-File: LICENSE
37
+
38
+ frozenlist
39
+ ==========
40
+
41
+ .. image:: https://github.com/aio-libs/frozenlist/workflows/CI/badge.svg
42
+ :target: https://github.com/aio-libs/frozenlist/actions
43
+ :alt: GitHub status for master branch
44
+
45
+ .. image:: https://codecov.io/gh/aio-libs/frozenlist/branch/master/graph/badge.svg
46
+ :target: https://codecov.io/gh/aio-libs/frozenlist
47
+ :alt: codecov.io status for master branch
48
+
49
+ .. image:: https://img.shields.io/pypi/v/frozenlist.svg?logo=Python&logoColor=white
50
+ :target: https://pypi.org/project/frozenlist
51
+ :alt: frozenlist @ PyPI
52
+
53
+ .. image:: https://readthedocs.org/projects/frozenlist/badge/?version=latest
54
+ :target: https://frozenlist.aio-libs.org
55
+ :alt: Read The Docs build status badge
56
+
57
+ .. image:: https://img.shields.io/matrix/aio-libs:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
58
+ :target: https://matrix.to/#/%23aio-libs:matrix.org
59
+ :alt: Matrix Room — #aio-libs:matrix.org
60
+
61
+ .. image:: https://img.shields.io/matrix/aio-libs-space:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs-space%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
62
+ :target: https://matrix.to/#/%23aio-libs-space:matrix.org
63
+ :alt: Matrix Space — #aio-libs-space:matrix.org
64
+
65
+ Introduction
66
+ ------------
67
+
68
+ ``frozenlist.FrozenList`` is a list-like structure which implements
69
+ ``collections.abc.MutableSequence``. The list is *mutable* until ``FrozenList.freeze``
70
+ is called, after which list modifications raise ``RuntimeError``:
71
+
72
+
73
+ >>> from frozenlist import FrozenList
74
+ >>> fl = FrozenList([17, 42])
75
+ >>> fl.append('spam')
76
+ >>> fl.append('Vikings')
77
+ >>> fl
78
+ <FrozenList(frozen=False, [17, 42, 'spam', 'Vikings'])>
79
+ >>> fl.freeze()
80
+ >>> fl
81
+ <FrozenList(frozen=True, [17, 42, 'spam', 'Vikings'])>
82
+ >>> fl.frozen
83
+ True
84
+ >>> fl.append("Monty")
85
+ Traceback (most recent call last):
86
+ File "<stdin>", line 1, in <module>
87
+ File "frozenlist/_frozenlist.pyx", line 97, in frozenlist._frozenlist.FrozenList.append
88
+ self._check_frozen()
89
+ File "frozenlist/_frozenlist.pyx", line 19, in frozenlist._frozenlist.FrozenList._check_frozen
90
+ raise RuntimeError("Cannot modify frozen list.")
91
+ RuntimeError: Cannot modify frozen list.
92
+
93
+
94
+ FrozenList is also hashable, but only when frozen. Otherwise it also throws a RuntimeError:
95
+
96
+
97
+ >>> fl = FrozenList([17, 42, 'spam'])
98
+ >>> hash(fl)
99
+ Traceback (most recent call last):
100
+ File "<stdin>", line 1, in <module>
101
+ File "frozenlist/_frozenlist.pyx", line 111, in frozenlist._frozenlist.FrozenList.__hash__
102
+ raise RuntimeError("Cannot hash unfrozen list.")
103
+ RuntimeError: Cannot hash unfrozen list.
104
+ >>> fl.freeze()
105
+ >>> hash(fl)
106
+ 3713081631934410656
107
+ >>> dictionary = {fl: 'Vikings'} # frozen fl can be a dict key
108
+ >>> dictionary
109
+ {<FrozenList(frozen=True, [1, 2])>: 'Vikings'}
110
+
111
+
112
+ Installation
113
+ ------------
114
+
115
+ ::
116
+
117
+ $ pip install frozenlist
118
+
119
+ The library requires Python 3.8 or newer.
120
+
121
+
122
+ Documentation
123
+ -------------
124
+
125
+ https://frozenlist.aio-libs.org
126
+
127
+ Communication channels
128
+ ----------------------
129
+
130
+ We have a *Matrix Space* `#aio-libs-space:matrix.org
131
+ <https://matrix.to/#/%23aio-libs-space:matrix.org>`_ which is
132
+ also accessible via Gitter.
133
+
134
+ Requirements
135
+ ------------
136
+
137
+ - Python >= 3.8
138
+
139
+ License
140
+ -------
141
+
142
+ ``frozenlist`` is offered under the Apache 2 license.
143
+
144
+ Source code
145
+ -----------
146
+
147
+ The project is hosted on GitHub_
148
+
149
+ Please file an issue in the `bug tracker
150
+ <https://github.com/aio-libs/frozenlist/issues>`_ if you have found a bug
151
+ or have some suggestions to improve the library.
152
+
153
+ .. _GitHub: https://github.com/aio-libs/frozenlist
154
+
155
+ =========
156
+ Changelog
157
+ =========
158
+
159
+ ..
160
+ You should *NOT* be adding new change log entries to this file, this
161
+ file is managed by towncrier. You *may* edit previous change logs to
162
+ fix problems like typo corrections or such.
163
+ To add a new change log entry, please see
164
+ https://pip.pypa.io/en/latest/development/contributing/#news-entries
165
+ we named the news folder "changes".
166
+
167
+ WARNING: Don't drop the next directive!
168
+
169
+ .. towncrier release notes start
170
+
171
+ 1.4.1 (2023-12-15)
172
+ ==================
173
+
174
+ Packaging updates and notes for downstreams
175
+ -------------------------------------------
176
+
177
+ - Declared Python 3.12 and PyPy 3.8-3.10 supported officially
178
+ in the distribution package metadata.
179
+
180
+
181
+ *Related issues and pull requests on GitHub:*
182
+ `#553 <https://github.com/aio-libs/yarl/issues/553>`__.
183
+
184
+ - Replaced the packaging is replaced from an old-fashioned ``setup.py`` to an
185
+ in-tree `PEP 517 <https://peps.python.org/pep-517>`__ build backend -- by `@webknjaz <https://github.com/sponsors/webknjaz>`__.
186
+
187
+ Whenever the end-users or downstream packagers need to build ``frozenlist``
188
+ from source (a Git checkout or an sdist), they may pass a ``config_settings``
189
+ flag ``pure-python``. If this flag is not set, a C-extension will be built
190
+ and included into the distribution.
191
+
192
+ Here is how this can be done with ``pip``:
193
+
194
+ .. code-block:: console
195
+
196
+ $ python3 -m pip install . --config-settings=pure-python=
197
+
198
+ This will also work with ``-e | --editable``.
199
+
200
+ The same can be achieved via ``pypa/build``:
201
+
202
+ .. code-block:: console
203
+
204
+ $ python3 -m build --config-setting=pure-python=
205
+
206
+ Adding ``-w | --wheel`` can force ``pypa/build`` produce a wheel from source
207
+ directly, as opposed to building an ``sdist`` and then building from it.
208
+
209
+
210
+ *Related issues and pull requests on GitHub:*
211
+ `#560 <https://github.com/aio-libs/yarl/issues/560>`__.
212
+
213
+
214
+ Contributor-facing changes
215
+ --------------------------
216
+
217
+ - It is now possible to request line tracing in Cython builds using the
218
+ ``with-cython-tracing`` `PEP 517 <https://peps.python.org/pep-517>`__ config setting
219
+ -- `@webknjaz <https://github.com/sponsors/webknjaz>`__.
220
+
221
+ This can be used in CI and development environment to measure coverage
222
+ on Cython modules, but is not normally useful to the end-users or
223
+ downstream packagers.
224
+
225
+ Here's a usage example:
226
+
227
+ .. code-block:: console
228
+
229
+ $ python3 -Im pip install . --config-settings=with-cython-tracing=true
230
+
231
+ For editable installs, this setting is on by default. Otherwise, it's
232
+ off unless requested explicitly.
233
+
234
+ The following produces C-files required for the Cython coverage
235
+ plugin to map the measurements back to the PYX-files:
236
+
237
+ .. code-block:: console
238
+
239
+ $ python -Im pip install -e .
240
+
241
+ Alternatively, the ``FROZENLIST_CYTHON_TRACING=1`` environment variable
242
+ can be set to do the same as the `PEP 517 <https://peps.python.org/pep-517>`__ config setting.
243
+
244
+
245
+ *Related issues and pull requests on GitHub:*
246
+ `#560 <https://github.com/aio-libs/yarl/issues/560>`__.
247
+
248
+ - Coverage collection has been implemented for the Cython modules
249
+ -- by `@webknjaz <https://github.com/sponsors/webknjaz>`__.
250
+
251
+ It will also be reported to Codecov from any non-release CI jobs.
252
+
253
+
254
+ *Related issues and pull requests on GitHub:*
255
+ `#561 <https://github.com/aio-libs/yarl/issues/561>`__.
256
+
257
+ - A step-by-step ``Release Guide`` guide has
258
+ been added, describing how to release *frozenlist* -- by `@webknjaz <https://github.com/sponsors/webknjaz>`__.
259
+
260
+ This is primarily targeting the maintainers.
261
+
262
+
263
+ *Related issues and pull requests on GitHub:*
264
+ `#563 <https://github.com/aio-libs/yarl/issues/563>`__.
265
+
266
+ - Detailed ``Contributing Guidelines`` on
267
+ authoring the changelog fragments have been published in the
268
+ documentation -- by `@webknjaz <https://github.com/sponsors/webknjaz>`__.
269
+
270
+
271
+ *Related issues and pull requests on GitHub:*
272
+ `#564 <https://github.com/aio-libs/yarl/issues/564>`__.
273
+
274
+
275
+ ----
276
+
277
+
278
+ 1.4.0 (2023-07-12)
279
+ ==================
280
+
281
+ The published source distribution package became buildable
282
+ under Python 3.12.
283
+
284
+
285
+ ----
286
+
287
+
288
+ Bugfixes
289
+ --------
290
+
291
+ - Removed an unused ``typing.Tuple`` import
292
+ `#411 <https://github.com/aio-libs/frozenlist/issues/411>`_
293
+
294
+
295
+ Deprecations and Removals
296
+ -------------------------
297
+
298
+ - Dropped Python 3.7 support.
299
+ `#413 <https://github.com/aio-libs/frozenlist/issues/413>`_
300
+
301
+
302
+ Misc
303
+ ----
304
+
305
+ - `#410 <https://github.com/aio-libs/frozenlist/issues/410>`_, `#433 <https://github.com/aio-libs/frozenlist/issues/433>`_
306
+
307
+
308
+ ----
309
+
310
+
311
+ 1.3.3 (2022-11-08)
312
+ ==================
313
+
314
+ - Fixed CI runs when creating a new release, where new towncrier versions
315
+ fail when the current version section is already present.
316
+
317
+
318
+ ----
319
+
320
+
321
+ 1.3.2 (2022-11-08)
322
+ ==================
323
+
324
+ Misc
325
+ ----
326
+
327
+ - Updated the CI runs to better check for test results and to avoid deprecated syntax. `#327 <https://github.com/aio-libs/frozenlist/issues/327>`_
328
+
329
+
330
+ ----
331
+
332
+
333
+ 1.3.1 (2022-08-02)
334
+ ==================
335
+
336
+ The published source distribution package became buildable
337
+ under Python 3.11.
338
+
339
+
340
+ ----
341
+
342
+
343
+ 1.3.0 (2022-01-18)
344
+ ==================
345
+
346
+ Bugfixes
347
+ --------
348
+
349
+ - Do not install C sources with binary distributions.
350
+ `#250 <https://github.com/aio-libs/frozenlist/issues/250>`_
351
+
352
+
353
+ Deprecations and Removals
354
+ -------------------------
355
+
356
+ - Dropped Python 3.6 support
357
+ `#274 <https://github.com/aio-libs/frozenlist/issues/274>`_
358
+
359
+
360
+ ----
361
+
362
+
363
+ 1.2.0 (2021-10-16)
364
+ ==================
365
+
366
+ Features
367
+ --------
368
+
369
+ - ``FrozenList`` now supports being used as a generic type as per PEP 585, e.g. ``frozen_int_list: FrozenList[int]`` (requires Python 3.9 or newer).
370
+ `#172 <https://github.com/aio-libs/frozenlist/issues/172>`_
371
+ - Added support for Python 3.10.
372
+ `#227 <https://github.com/aio-libs/frozenlist/issues/227>`_
373
+ - Started shipping platform-specific wheels with the ``musl`` tag targeting typical Alpine Linux runtimes.
374
+ `#227 <https://github.com/aio-libs/frozenlist/issues/227>`_
375
+ - Started shipping platform-specific arm64 wheels for Apple Silicon.
376
+ `#227 <https://github.com/aio-libs/frozenlist/issues/227>`_
377
+
378
+
379
+ ----
380
+
381
+
382
+ 1.1.1 (2020-11-14)
383
+ ==================
384
+
385
+ Bugfixes
386
+ --------
387
+
388
+ - Provide x86 Windows wheels.
389
+ `#169 <https://github.com/aio-libs/frozenlist/issues/169>`_
390
+
391
+
392
+ ----
393
+
394
+
395
+ 1.1.0 (2020-10-13)
396
+ ==================
397
+
398
+ Features
399
+ --------
400
+
401
+ - Add support for hashing of a frozen list.
402
+ `#136 <https://github.com/aio-libs/frozenlist/issues/136>`_
403
+
404
+ - Support Python 3.8 and 3.9.
405
+
406
+ - Provide wheels for ``aarch64``, ``i686``, ``ppc64le``, ``s390x`` architectures on
407
+ Linux as well as ``x86_64``.
408
+
409
+
410
+ ----
411
+
412
+
413
+ 1.0.0 (2019-11-09)
414
+ ==================
415
+
416
+ Deprecations and Removals
417
+ -------------------------
418
+
419
+ - Dropped support for Python 3.5; only 3.6, 3.7 and 3.8 are supported going forward.
420
+ `#24 <https://github.com/aio-libs/frozenlist/issues/24>`_
llmeval-env/lib/python3.10/site-packages/frozenlist-1.4.1.dist-info/RECORD ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ frozenlist-1.4.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2
+ frozenlist-1.4.1.dist-info/LICENSE,sha256=b9UkPpLdf5jsacesN3co50kFcJ_1J6W_mNbQJjwE9bY,11332
3
+ frozenlist-1.4.1.dist-info/METADATA,sha256=i-BTxwxpJrHm-I8DMpFRvXVXJiqXwUcsPiUR47NY6eg,12136
4
+ frozenlist-1.4.1.dist-info/RECORD,,
5
+ frozenlist-1.4.1.dist-info/WHEEL,sha256=vV-3gZY0A60KvZ7BiFVUnyR1ohNO_OSjBIJIoRfk_rE,225
6
+ frozenlist-1.4.1.dist-info/top_level.txt,sha256=jivtxsPXA3nK3WBWW2LW5Mtu_GHt8UZA13NeCs2cKuA,11
7
+ frozenlist/__init__.py,sha256=hrSQhfujMaz1BWlHfwuVFrPD02-pCK7jG4e9FaCZCmM,2316
8
+ frozenlist/__init__.pyi,sha256=vMEoES1xGegPtVXoCi9XydEeHsyuIq-KdeXwP5PdsaA,1470
9
+ frozenlist/__pycache__/__init__.cpython-310.pyc,,
10
+ frozenlist/_frozenlist.cpython-310-x86_64-linux-gnu.so,sha256=NlvcEP-slIw1H6qbBejxVzEOxKG33BnttUAdSoP1wA4,766040
11
+ frozenlist/_frozenlist.pyx,sha256=9V4Z1En6TZwgFD26d-sjxyhUzUm338H1Qiz4-i5ukv0,2983
12
+ frozenlist/py.typed,sha256=sow9soTwP9T_gEAQSVh7Gb8855h04Nwmhs2We-JRgZM,7
llmeval-env/lib/python3.10/site-packages/idna/__init__.py ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from .package_data import __version__
2
+ from .core import (
3
+ IDNABidiError,
4
+ IDNAError,
5
+ InvalidCodepoint,
6
+ InvalidCodepointContext,
7
+ alabel,
8
+ check_bidi,
9
+ check_hyphen_ok,
10
+ check_initial_combiner,
11
+ check_label,
12
+ check_nfc,
13
+ decode,
14
+ encode,
15
+ ulabel,
16
+ uts46_remap,
17
+ valid_contextj,
18
+ valid_contexto,
19
+ valid_label_length,
20
+ valid_string_length,
21
+ )
22
+ from .intranges import intranges_contain
23
+
24
+ __all__ = [
25
+ "IDNABidiError",
26
+ "IDNAError",
27
+ "InvalidCodepoint",
28
+ "InvalidCodepointContext",
29
+ "alabel",
30
+ "check_bidi",
31
+ "check_hyphen_ok",
32
+ "check_initial_combiner",
33
+ "check_label",
34
+ "check_nfc",
35
+ "decode",
36
+ "encode",
37
+ "intranges_contain",
38
+ "ulabel",
39
+ "uts46_remap",
40
+ "valid_contextj",
41
+ "valid_contexto",
42
+ "valid_label_length",
43
+ "valid_string_length",
44
+ ]
llmeval-env/lib/python3.10/site-packages/idna/__pycache__/codec.cpython-310.pyc ADDED
Binary file (3.26 kB). View file
 
llmeval-env/lib/python3.10/site-packages/idna/compat.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from .core import *
2
+ from .codec import *
3
+ from typing import Any, Union
4
+
5
+ def ToASCII(label: str) -> bytes:
6
+ return encode(label)
7
+
8
+ def ToUnicode(label: Union[bytes, bytearray]) -> str:
9
+ return decode(label)
10
+
11
+ def nameprep(s: Any) -> None:
12
+ raise NotImplementedError('IDNA 2008 does not utilise nameprep protocol')
13
+
llmeval-env/lib/python3.10/site-packages/idna/core.py ADDED
@@ -0,0 +1,395 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from . import idnadata
2
+ import bisect
3
+ import unicodedata
4
+ import re
5
+ from typing import Union, Optional
6
+ from .intranges import intranges_contain
7
+
8
+ _virama_combining_class = 9
9
+ _alabel_prefix = b'xn--'
10
+ _unicode_dots_re = re.compile('[\u002e\u3002\uff0e\uff61]')
11
+
12
+ class IDNAError(UnicodeError):
13
+ """ Base exception for all IDNA-encoding related problems """
14
+ pass
15
+
16
+
17
+ class IDNABidiError(IDNAError):
18
+ """ Exception when bidirectional requirements are not satisfied """
19
+ pass
20
+
21
+
22
+ class InvalidCodepoint(IDNAError):
23
+ """ Exception when a disallowed or unallocated codepoint is used """
24
+ pass
25
+
26
+
27
+ class InvalidCodepointContext(IDNAError):
28
+ """ Exception when the codepoint is not valid in the context it is used """
29
+ pass
30
+
31
+
32
+ def _combining_class(cp: int) -> int:
33
+ v = unicodedata.combining(chr(cp))
34
+ if v == 0:
35
+ if not unicodedata.name(chr(cp)):
36
+ raise ValueError('Unknown character in unicodedata')
37
+ return v
38
+
39
+ def _is_script(cp: str, script: str) -> bool:
40
+ return intranges_contain(ord(cp), idnadata.scripts[script])
41
+
42
+ def _punycode(s: str) -> bytes:
43
+ return s.encode('punycode')
44
+
45
+ def _unot(s: int) -> str:
46
+ return 'U+{:04X}'.format(s)
47
+
48
+
49
+ def valid_label_length(label: Union[bytes, str]) -> bool:
50
+ if len(label) > 63:
51
+ return False
52
+ return True
53
+
54
+
55
+ def valid_string_length(label: Union[bytes, str], trailing_dot: bool) -> bool:
56
+ if len(label) > (254 if trailing_dot else 253):
57
+ return False
58
+ return True
59
+
60
+
61
+ def check_bidi(label: str, check_ltr: bool = False) -> bool:
62
+ # Bidi rules should only be applied if string contains RTL characters
63
+ bidi_label = False
64
+ for (idx, cp) in enumerate(label, 1):
65
+ direction = unicodedata.bidirectional(cp)
66
+ if direction == '':
67
+ # String likely comes from a newer version of Unicode
68
+ raise IDNABidiError('Unknown directionality in label {} at position {}'.format(repr(label), idx))
69
+ if direction in ['R', 'AL', 'AN']:
70
+ bidi_label = True
71
+ if not bidi_label and not check_ltr:
72
+ return True
73
+
74
+ # Bidi rule 1
75
+ direction = unicodedata.bidirectional(label[0])
76
+ if direction in ['R', 'AL']:
77
+ rtl = True
78
+ elif direction == 'L':
79
+ rtl = False
80
+ else:
81
+ raise IDNABidiError('First codepoint in label {} must be directionality L, R or AL'.format(repr(label)))
82
+
83
+ valid_ending = False
84
+ number_type = None # type: Optional[str]
85
+ for (idx, cp) in enumerate(label, 1):
86
+ direction = unicodedata.bidirectional(cp)
87
+
88
+ if rtl:
89
+ # Bidi rule 2
90
+ if not direction in ['R', 'AL', 'AN', 'EN', 'ES', 'CS', 'ET', 'ON', 'BN', 'NSM']:
91
+ raise IDNABidiError('Invalid direction for codepoint at position {} in a right-to-left label'.format(idx))
92
+ # Bidi rule 3
93
+ if direction in ['R', 'AL', 'EN', 'AN']:
94
+ valid_ending = True
95
+ elif direction != 'NSM':
96
+ valid_ending = False
97
+ # Bidi rule 4
98
+ if direction in ['AN', 'EN']:
99
+ if not number_type:
100
+ number_type = direction
101
+ else:
102
+ if number_type != direction:
103
+ raise IDNABidiError('Can not mix numeral types in a right-to-left label')
104
+ else:
105
+ # Bidi rule 5
106
+ if not direction in ['L', 'EN', 'ES', 'CS', 'ET', 'ON', 'BN', 'NSM']:
107
+ raise IDNABidiError('Invalid direction for codepoint at position {} in a left-to-right label'.format(idx))
108
+ # Bidi rule 6
109
+ if direction in ['L', 'EN']:
110
+ valid_ending = True
111
+ elif direction != 'NSM':
112
+ valid_ending = False
113
+
114
+ if not valid_ending:
115
+ raise IDNABidiError('Label ends with illegal codepoint directionality')
116
+
117
+ return True
118
+
119
+
120
+ def check_initial_combiner(label: str) -> bool:
121
+ if unicodedata.category(label[0])[0] == 'M':
122
+ raise IDNAError('Label begins with an illegal combining character')
123
+ return True
124
+
125
+
126
+ def check_hyphen_ok(label: str) -> bool:
127
+ if label[2:4] == '--':
128
+ raise IDNAError('Label has disallowed hyphens in 3rd and 4th position')
129
+ if label[0] == '-' or label[-1] == '-':
130
+ raise IDNAError('Label must not start or end with a hyphen')
131
+ return True
132
+
133
+
134
+ def check_nfc(label: str) -> None:
135
+ if unicodedata.normalize('NFC', label) != label:
136
+ raise IDNAError('Label must be in Normalization Form C')
137
+
138
+
139
+ def valid_contextj(label: str, pos: int) -> bool:
140
+ cp_value = ord(label[pos])
141
+
142
+ if cp_value == 0x200c:
143
+
144
+ if pos > 0:
145
+ if _combining_class(ord(label[pos - 1])) == _virama_combining_class:
146
+ return True
147
+
148
+ ok = False
149
+ for i in range(pos-1, -1, -1):
150
+ joining_type = idnadata.joining_types.get(ord(label[i]))
151
+ if joining_type == ord('T'):
152
+ continue
153
+ elif joining_type in [ord('L'), ord('D')]:
154
+ ok = True
155
+ break
156
+ else:
157
+ break
158
+
159
+ if not ok:
160
+ return False
161
+
162
+ ok = False
163
+ for i in range(pos+1, len(label)):
164
+ joining_type = idnadata.joining_types.get(ord(label[i]))
165
+ if joining_type == ord('T'):
166
+ continue
167
+ elif joining_type in [ord('R'), ord('D')]:
168
+ ok = True
169
+ break
170
+ else:
171
+ break
172
+ return ok
173
+
174
+ if cp_value == 0x200d:
175
+
176
+ if pos > 0:
177
+ if _combining_class(ord(label[pos - 1])) == _virama_combining_class:
178
+ return True
179
+ return False
180
+
181
+ else:
182
+
183
+ return False
184
+
185
+
186
+ def valid_contexto(label: str, pos: int, exception: bool = False) -> bool:
187
+ cp_value = ord(label[pos])
188
+
189
+ if cp_value == 0x00b7:
190
+ if 0 < pos < len(label)-1:
191
+ if ord(label[pos - 1]) == 0x006c and ord(label[pos + 1]) == 0x006c:
192
+ return True
193
+ return False
194
+
195
+ elif cp_value == 0x0375:
196
+ if pos < len(label)-1 and len(label) > 1:
197
+ return _is_script(label[pos + 1], 'Greek')
198
+ return False
199
+
200
+ elif cp_value == 0x05f3 or cp_value == 0x05f4:
201
+ if pos > 0:
202
+ return _is_script(label[pos - 1], 'Hebrew')
203
+ return False
204
+
205
+ elif cp_value == 0x30fb:
206
+ for cp in label:
207
+ if cp == '\u30fb':
208
+ continue
209
+ if _is_script(cp, 'Hiragana') or _is_script(cp, 'Katakana') or _is_script(cp, 'Han'):
210
+ return True
211
+ return False
212
+
213
+ elif 0x660 <= cp_value <= 0x669:
214
+ for cp in label:
215
+ if 0x6f0 <= ord(cp) <= 0x06f9:
216
+ return False
217
+ return True
218
+
219
+ elif 0x6f0 <= cp_value <= 0x6f9:
220
+ for cp in label:
221
+ if 0x660 <= ord(cp) <= 0x0669:
222
+ return False
223
+ return True
224
+
225
+ return False
226
+
227
+
228
+ def check_label(label: Union[str, bytes, bytearray]) -> None:
229
+ if isinstance(label, (bytes, bytearray)):
230
+ label = label.decode('utf-8')
231
+ if len(label) == 0:
232
+ raise IDNAError('Empty Label')
233
+
234
+ check_nfc(label)
235
+ check_hyphen_ok(label)
236
+ check_initial_combiner(label)
237
+
238
+ for (pos, cp) in enumerate(label):
239
+ cp_value = ord(cp)
240
+ if intranges_contain(cp_value, idnadata.codepoint_classes['PVALID']):
241
+ continue
242
+ elif intranges_contain(cp_value, idnadata.codepoint_classes['CONTEXTJ']):
243
+ if not valid_contextj(label, pos):
244
+ raise InvalidCodepointContext('Joiner {} not allowed at position {} in {}'.format(
245
+ _unot(cp_value), pos+1, repr(label)))
246
+ elif intranges_contain(cp_value, idnadata.codepoint_classes['CONTEXTO']):
247
+ if not valid_contexto(label, pos):
248
+ raise InvalidCodepointContext('Codepoint {} not allowed at position {} in {}'.format(_unot(cp_value), pos+1, repr(label)))
249
+ else:
250
+ raise InvalidCodepoint('Codepoint {} at position {} of {} not allowed'.format(_unot(cp_value), pos+1, repr(label)))
251
+
252
+ check_bidi(label)
253
+
254
+
255
+ def alabel(label: str) -> bytes:
256
+ try:
257
+ label_bytes = label.encode('ascii')
258
+ ulabel(label_bytes)
259
+ if not valid_label_length(label_bytes):
260
+ raise IDNAError('Label too long')
261
+ return label_bytes
262
+ except UnicodeEncodeError:
263
+ pass
264
+
265
+ check_label(label)
266
+ label_bytes = _alabel_prefix + _punycode(label)
267
+
268
+ if not valid_label_length(label_bytes):
269
+ raise IDNAError('Label too long')
270
+
271
+ return label_bytes
272
+
273
+
274
+ def ulabel(label: Union[str, bytes, bytearray]) -> str:
275
+ if not isinstance(label, (bytes, bytearray)):
276
+ try:
277
+ label_bytes = label.encode('ascii')
278
+ except UnicodeEncodeError:
279
+ check_label(label)
280
+ return label
281
+ else:
282
+ label_bytes = label
283
+
284
+ label_bytes = label_bytes.lower()
285
+ if label_bytes.startswith(_alabel_prefix):
286
+ label_bytes = label_bytes[len(_alabel_prefix):]
287
+ if not label_bytes:
288
+ raise IDNAError('Malformed A-label, no Punycode eligible content found')
289
+ if label_bytes.decode('ascii')[-1] == '-':
290
+ raise IDNAError('A-label must not end with a hyphen')
291
+ else:
292
+ check_label(label_bytes)
293
+ return label_bytes.decode('ascii')
294
+
295
+ try:
296
+ label = label_bytes.decode('punycode')
297
+ except UnicodeError:
298
+ raise IDNAError('Invalid A-label')
299
+ check_label(label)
300
+ return label
301
+
302
+
303
+ def uts46_remap(domain: str, std3_rules: bool = True, transitional: bool = False) -> str:
304
+ """Re-map the characters in the string according to UTS46 processing."""
305
+ from .uts46data import uts46data
306
+ output = ''
307
+
308
+ for pos, char in enumerate(domain):
309
+ code_point = ord(char)
310
+ try:
311
+ uts46row = uts46data[code_point if code_point < 256 else
312
+ bisect.bisect_left(uts46data, (code_point, 'Z')) - 1]
313
+ status = uts46row[1]
314
+ replacement = None # type: Optional[str]
315
+ if len(uts46row) == 3:
316
+ replacement = uts46row[2]
317
+ if (status == 'V' or
318
+ (status == 'D' and not transitional) or
319
+ (status == '3' and not std3_rules and replacement is None)):
320
+ output += char
321
+ elif replacement is not None and (status == 'M' or
322
+ (status == '3' and not std3_rules) or
323
+ (status == 'D' and transitional)):
324
+ output += replacement
325
+ elif status != 'I':
326
+ raise IndexError()
327
+ except IndexError:
328
+ raise InvalidCodepoint(
329
+ 'Codepoint {} not allowed at position {} in {}'.format(
330
+ _unot(code_point), pos + 1, repr(domain)))
331
+
332
+ return unicodedata.normalize('NFC', output)
333
+
334
+
335
+ def encode(s: Union[str, bytes, bytearray], strict: bool = False, uts46: bool = False, std3_rules: bool = False, transitional: bool = False) -> bytes:
336
+ if not isinstance(s, str):
337
+ try:
338
+ s = str(s, 'ascii')
339
+ except UnicodeDecodeError:
340
+ raise IDNAError('should pass a unicode string to the function rather than a byte string.')
341
+ if uts46:
342
+ s = uts46_remap(s, std3_rules, transitional)
343
+ trailing_dot = False
344
+ result = []
345
+ if strict:
346
+ labels = s.split('.')
347
+ else:
348
+ labels = _unicode_dots_re.split(s)
349
+ if not labels or labels == ['']:
350
+ raise IDNAError('Empty domain')
351
+ if labels[-1] == '':
352
+ del labels[-1]
353
+ trailing_dot = True
354
+ for label in labels:
355
+ s = alabel(label)
356
+ if s:
357
+ result.append(s)
358
+ else:
359
+ raise IDNAError('Empty label')
360
+ if trailing_dot:
361
+ result.append(b'')
362
+ s = b'.'.join(result)
363
+ if not valid_string_length(s, trailing_dot):
364
+ raise IDNAError('Domain too long')
365
+ return s
366
+
367
+
368
+ def decode(s: Union[str, bytes, bytearray], strict: bool = False, uts46: bool = False, std3_rules: bool = False) -> str:
369
+ try:
370
+ if not isinstance(s, str):
371
+ s = str(s, 'ascii')
372
+ except UnicodeDecodeError:
373
+ raise IDNAError('Invalid ASCII in A-label')
374
+ if uts46:
375
+ s = uts46_remap(s, std3_rules, False)
376
+ trailing_dot = False
377
+ result = []
378
+ if not strict:
379
+ labels = _unicode_dots_re.split(s)
380
+ else:
381
+ labels = s.split('.')
382
+ if not labels or labels == ['']:
383
+ raise IDNAError('Empty domain')
384
+ if not labels[-1]:
385
+ del labels[-1]
386
+ trailing_dot = True
387
+ for label in labels:
388
+ s = ulabel(label)
389
+ if s:
390
+ result.append(s)
391
+ else:
392
+ raise IDNAError('Empty label')
393
+ if trailing_dot:
394
+ result.append('')
395
+ return '.'.join(result)
llmeval-env/lib/python3.10/site-packages/idna/idnadata.py ADDED
@@ -0,0 +1,4245 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file is automatically generated by tools/idna-data
2
+
3
+ __version__ = '15.1.0'
4
+ scripts = {
5
+ 'Greek': (
6
+ 0x37000000374,
7
+ 0x37500000378,
8
+ 0x37a0000037e,
9
+ 0x37f00000380,
10
+ 0x38400000385,
11
+ 0x38600000387,
12
+ 0x3880000038b,
13
+ 0x38c0000038d,
14
+ 0x38e000003a2,
15
+ 0x3a3000003e2,
16
+ 0x3f000000400,
17
+ 0x1d2600001d2b,
18
+ 0x1d5d00001d62,
19
+ 0x1d6600001d6b,
20
+ 0x1dbf00001dc0,
21
+ 0x1f0000001f16,
22
+ 0x1f1800001f1e,
23
+ 0x1f2000001f46,
24
+ 0x1f4800001f4e,
25
+ 0x1f5000001f58,
26
+ 0x1f5900001f5a,
27
+ 0x1f5b00001f5c,
28
+ 0x1f5d00001f5e,
29
+ 0x1f5f00001f7e,
30
+ 0x1f8000001fb5,
31
+ 0x1fb600001fc5,
32
+ 0x1fc600001fd4,
33
+ 0x1fd600001fdc,
34
+ 0x1fdd00001ff0,
35
+ 0x1ff200001ff5,
36
+ 0x1ff600001fff,
37
+ 0x212600002127,
38
+ 0xab650000ab66,
39
+ 0x101400001018f,
40
+ 0x101a0000101a1,
41
+ 0x1d2000001d246,
42
+ ),
43
+ 'Han': (
44
+ 0x2e8000002e9a,
45
+ 0x2e9b00002ef4,
46
+ 0x2f0000002fd6,
47
+ 0x300500003006,
48
+ 0x300700003008,
49
+ 0x30210000302a,
50
+ 0x30380000303c,
51
+ 0x340000004dc0,
52
+ 0x4e000000a000,
53
+ 0xf9000000fa6e,
54
+ 0xfa700000fada,
55
+ 0x16fe200016fe4,
56
+ 0x16ff000016ff2,
57
+ 0x200000002a6e0,
58
+ 0x2a7000002b73a,
59
+ 0x2b7400002b81e,
60
+ 0x2b8200002cea2,
61
+ 0x2ceb00002ebe1,
62
+ 0x2ebf00002ee5e,
63
+ 0x2f8000002fa1e,
64
+ 0x300000003134b,
65
+ 0x31350000323b0,
66
+ ),
67
+ 'Hebrew': (
68
+ 0x591000005c8,
69
+ 0x5d0000005eb,
70
+ 0x5ef000005f5,
71
+ 0xfb1d0000fb37,
72
+ 0xfb380000fb3d,
73
+ 0xfb3e0000fb3f,
74
+ 0xfb400000fb42,
75
+ 0xfb430000fb45,
76
+ 0xfb460000fb50,
77
+ ),
78
+ 'Hiragana': (
79
+ 0x304100003097,
80
+ 0x309d000030a0,
81
+ 0x1b0010001b120,
82
+ 0x1b1320001b133,
83
+ 0x1b1500001b153,
84
+ 0x1f2000001f201,
85
+ ),
86
+ 'Katakana': (
87
+ 0x30a1000030fb,
88
+ 0x30fd00003100,
89
+ 0x31f000003200,
90
+ 0x32d0000032ff,
91
+ 0x330000003358,
92
+ 0xff660000ff70,
93
+ 0xff710000ff9e,
94
+ 0x1aff00001aff4,
95
+ 0x1aff50001affc,
96
+ 0x1affd0001afff,
97
+ 0x1b0000001b001,
98
+ 0x1b1200001b123,
99
+ 0x1b1550001b156,
100
+ 0x1b1640001b168,
101
+ ),
102
+ }
103
+ joining_types = {
104
+ 0xad: 84,
105
+ 0x300: 84,
106
+ 0x301: 84,
107
+ 0x302: 84,
108
+ 0x303: 84,
109
+ 0x304: 84,
110
+ 0x305: 84,
111
+ 0x306: 84,
112
+ 0x307: 84,
113
+ 0x308: 84,
114
+ 0x309: 84,
115
+ 0x30a: 84,
116
+ 0x30b: 84,
117
+ 0x30c: 84,
118
+ 0x30d: 84,
119
+ 0x30e: 84,
120
+ 0x30f: 84,
121
+ 0x310: 84,
122
+ 0x311: 84,
123
+ 0x312: 84,
124
+ 0x313: 84,
125
+ 0x314: 84,
126
+ 0x315: 84,
127
+ 0x316: 84,
128
+ 0x317: 84,
129
+ 0x318: 84,
130
+ 0x319: 84,
131
+ 0x31a: 84,
132
+ 0x31b: 84,
133
+ 0x31c: 84,
134
+ 0x31d: 84,
135
+ 0x31e: 84,
136
+ 0x31f: 84,
137
+ 0x320: 84,
138
+ 0x321: 84,
139
+ 0x322: 84,
140
+ 0x323: 84,
141
+ 0x324: 84,
142
+ 0x325: 84,
143
+ 0x326: 84,
144
+ 0x327: 84,
145
+ 0x328: 84,
146
+ 0x329: 84,
147
+ 0x32a: 84,
148
+ 0x32b: 84,
149
+ 0x32c: 84,
150
+ 0x32d: 84,
151
+ 0x32e: 84,
152
+ 0x32f: 84,
153
+ 0x330: 84,
154
+ 0x331: 84,
155
+ 0x332: 84,
156
+ 0x333: 84,
157
+ 0x334: 84,
158
+ 0x335: 84,
159
+ 0x336: 84,
160
+ 0x337: 84,
161
+ 0x338: 84,
162
+ 0x339: 84,
163
+ 0x33a: 84,
164
+ 0x33b: 84,
165
+ 0x33c: 84,
166
+ 0x33d: 84,
167
+ 0x33e: 84,
168
+ 0x33f: 84,
169
+ 0x340: 84,
170
+ 0x341: 84,
171
+ 0x342: 84,
172
+ 0x343: 84,
173
+ 0x344: 84,
174
+ 0x345: 84,
175
+ 0x346: 84,
176
+ 0x347: 84,
177
+ 0x348: 84,
178
+ 0x349: 84,
179
+ 0x34a: 84,
180
+ 0x34b: 84,
181
+ 0x34c: 84,
182
+ 0x34d: 84,
183
+ 0x34e: 84,
184
+ 0x34f: 84,
185
+ 0x350: 84,
186
+ 0x351: 84,
187
+ 0x352: 84,
188
+ 0x353: 84,
189
+ 0x354: 84,
190
+ 0x355: 84,
191
+ 0x356: 84,
192
+ 0x357: 84,
193
+ 0x358: 84,
194
+ 0x359: 84,
195
+ 0x35a: 84,
196
+ 0x35b: 84,
197
+ 0x35c: 84,
198
+ 0x35d: 84,
199
+ 0x35e: 84,
200
+ 0x35f: 84,
201
+ 0x360: 84,
202
+ 0x361: 84,
203
+ 0x362: 84,
204
+ 0x363: 84,
205
+ 0x364: 84,
206
+ 0x365: 84,
207
+ 0x366: 84,
208
+ 0x367: 84,
209
+ 0x368: 84,
210
+ 0x369: 84,
211
+ 0x36a: 84,
212
+ 0x36b: 84,
213
+ 0x36c: 84,
214
+ 0x36d: 84,
215
+ 0x36e: 84,
216
+ 0x36f: 84,
217
+ 0x483: 84,
218
+ 0x484: 84,
219
+ 0x485: 84,
220
+ 0x486: 84,
221
+ 0x487: 84,
222
+ 0x488: 84,
223
+ 0x489: 84,
224
+ 0x591: 84,
225
+ 0x592: 84,
226
+ 0x593: 84,
227
+ 0x594: 84,
228
+ 0x595: 84,
229
+ 0x596: 84,
230
+ 0x597: 84,
231
+ 0x598: 84,
232
+ 0x599: 84,
233
+ 0x59a: 84,
234
+ 0x59b: 84,
235
+ 0x59c: 84,
236
+ 0x59d: 84,
237
+ 0x59e: 84,
238
+ 0x59f: 84,
239
+ 0x5a0: 84,
240
+ 0x5a1: 84,
241
+ 0x5a2: 84,
242
+ 0x5a3: 84,
243
+ 0x5a4: 84,
244
+ 0x5a5: 84,
245
+ 0x5a6: 84,
246
+ 0x5a7: 84,
247
+ 0x5a8: 84,
248
+ 0x5a9: 84,
249
+ 0x5aa: 84,
250
+ 0x5ab: 84,
251
+ 0x5ac: 84,
252
+ 0x5ad: 84,
253
+ 0x5ae: 84,
254
+ 0x5af: 84,
255
+ 0x5b0: 84,
256
+ 0x5b1: 84,
257
+ 0x5b2: 84,
258
+ 0x5b3: 84,
259
+ 0x5b4: 84,
260
+ 0x5b5: 84,
261
+ 0x5b6: 84,
262
+ 0x5b7: 84,
263
+ 0x5b8: 84,
264
+ 0x5b9: 84,
265
+ 0x5ba: 84,
266
+ 0x5bb: 84,
267
+ 0x5bc: 84,
268
+ 0x5bd: 84,
269
+ 0x5bf: 84,
270
+ 0x5c1: 84,
271
+ 0x5c2: 84,
272
+ 0x5c4: 84,
273
+ 0x5c5: 84,
274
+ 0x5c7: 84,
275
+ 0x610: 84,
276
+ 0x611: 84,
277
+ 0x612: 84,
278
+ 0x613: 84,
279
+ 0x614: 84,
280
+ 0x615: 84,
281
+ 0x616: 84,
282
+ 0x617: 84,
283
+ 0x618: 84,
284
+ 0x619: 84,
285
+ 0x61a: 84,
286
+ 0x61c: 84,
287
+ 0x620: 68,
288
+ 0x622: 82,
289
+ 0x623: 82,
290
+ 0x624: 82,
291
+ 0x625: 82,
292
+ 0x626: 68,
293
+ 0x627: 82,
294
+ 0x628: 68,
295
+ 0x629: 82,
296
+ 0x62a: 68,
297
+ 0x62b: 68,
298
+ 0x62c: 68,
299
+ 0x62d: 68,
300
+ 0x62e: 68,
301
+ 0x62f: 82,
302
+ 0x630: 82,
303
+ 0x631: 82,
304
+ 0x632: 82,
305
+ 0x633: 68,
306
+ 0x634: 68,
307
+ 0x635: 68,
308
+ 0x636: 68,
309
+ 0x637: 68,
310
+ 0x638: 68,
311
+ 0x639: 68,
312
+ 0x63a: 68,
313
+ 0x63b: 68,
314
+ 0x63c: 68,
315
+ 0x63d: 68,
316
+ 0x63e: 68,
317
+ 0x63f: 68,
318
+ 0x640: 67,
319
+ 0x641: 68,
320
+ 0x642: 68,
321
+ 0x643: 68,
322
+ 0x644: 68,
323
+ 0x645: 68,
324
+ 0x646: 68,
325
+ 0x647: 68,
326
+ 0x648: 82,
327
+ 0x649: 68,
328
+ 0x64a: 68,
329
+ 0x64b: 84,
330
+ 0x64c: 84,
331
+ 0x64d: 84,
332
+ 0x64e: 84,
333
+ 0x64f: 84,
334
+ 0x650: 84,
335
+ 0x651: 84,
336
+ 0x652: 84,
337
+ 0x653: 84,
338
+ 0x654: 84,
339
+ 0x655: 84,
340
+ 0x656: 84,
341
+ 0x657: 84,
342
+ 0x658: 84,
343
+ 0x659: 84,
344
+ 0x65a: 84,
345
+ 0x65b: 84,
346
+ 0x65c: 84,
347
+ 0x65d: 84,
348
+ 0x65e: 84,
349
+ 0x65f: 84,
350
+ 0x66e: 68,
351
+ 0x66f: 68,
352
+ 0x670: 84,
353
+ 0x671: 82,
354
+ 0x672: 82,
355
+ 0x673: 82,
356
+ 0x675: 82,
357
+ 0x676: 82,
358
+ 0x677: 82,
359
+ 0x678: 68,
360
+ 0x679: 68,
361
+ 0x67a: 68,
362
+ 0x67b: 68,
363
+ 0x67c: 68,
364
+ 0x67d: 68,
365
+ 0x67e: 68,
366
+ 0x67f: 68,
367
+ 0x680: 68,
368
+ 0x681: 68,
369
+ 0x682: 68,
370
+ 0x683: 68,
371
+ 0x684: 68,
372
+ 0x685: 68,
373
+ 0x686: 68,
374
+ 0x687: 68,
375
+ 0x688: 82,
376
+ 0x689: 82,
377
+ 0x68a: 82,
378
+ 0x68b: 82,
379
+ 0x68c: 82,
380
+ 0x68d: 82,
381
+ 0x68e: 82,
382
+ 0x68f: 82,
383
+ 0x690: 82,
384
+ 0x691: 82,
385
+ 0x692: 82,
386
+ 0x693: 82,
387
+ 0x694: 82,
388
+ 0x695: 82,
389
+ 0x696: 82,
390
+ 0x697: 82,
391
+ 0x698: 82,
392
+ 0x699: 82,
393
+ 0x69a: 68,
394
+ 0x69b: 68,
395
+ 0x69c: 68,
396
+ 0x69d: 68,
397
+ 0x69e: 68,
398
+ 0x69f: 68,
399
+ 0x6a0: 68,
400
+ 0x6a1: 68,
401
+ 0x6a2: 68,
402
+ 0x6a3: 68,
403
+ 0x6a4: 68,
404
+ 0x6a5: 68,
405
+ 0x6a6: 68,
406
+ 0x6a7: 68,
407
+ 0x6a8: 68,
408
+ 0x6a9: 68,
409
+ 0x6aa: 68,
410
+ 0x6ab: 68,
411
+ 0x6ac: 68,
412
+ 0x6ad: 68,
413
+ 0x6ae: 68,
414
+ 0x6af: 68,
415
+ 0x6b0: 68,
416
+ 0x6b1: 68,
417
+ 0x6b2: 68,
418
+ 0x6b3: 68,
419
+ 0x6b4: 68,
420
+ 0x6b5: 68,
421
+ 0x6b6: 68,
422
+ 0x6b7: 68,
423
+ 0x6b8: 68,
424
+ 0x6b9: 68,
425
+ 0x6ba: 68,
426
+ 0x6bb: 68,
427
+ 0x6bc: 68,
428
+ 0x6bd: 68,
429
+ 0x6be: 68,
430
+ 0x6bf: 68,
431
+ 0x6c0: 82,
432
+ 0x6c1: 68,
433
+ 0x6c2: 68,
434
+ 0x6c3: 82,
435
+ 0x6c4: 82,
436
+ 0x6c5: 82,
437
+ 0x6c6: 82,
438
+ 0x6c7: 82,
439
+ 0x6c8: 82,
440
+ 0x6c9: 82,
441
+ 0x6ca: 82,
442
+ 0x6cb: 82,
443
+ 0x6cc: 68,
444
+ 0x6cd: 82,
445
+ 0x6ce: 68,
446
+ 0x6cf: 82,
447
+ 0x6d0: 68,
448
+ 0x6d1: 68,
449
+ 0x6d2: 82,
450
+ 0x6d3: 82,
451
+ 0x6d5: 82,
452
+ 0x6d6: 84,
453
+ 0x6d7: 84,
454
+ 0x6d8: 84,
455
+ 0x6d9: 84,
456
+ 0x6da: 84,
457
+ 0x6db: 84,
458
+ 0x6dc: 84,
459
+ 0x6df: 84,
460
+ 0x6e0: 84,
461
+ 0x6e1: 84,
462
+ 0x6e2: 84,
463
+ 0x6e3: 84,
464
+ 0x6e4: 84,
465
+ 0x6e7: 84,
466
+ 0x6e8: 84,
467
+ 0x6ea: 84,
468
+ 0x6eb: 84,
469
+ 0x6ec: 84,
470
+ 0x6ed: 84,
471
+ 0x6ee: 82,
472
+ 0x6ef: 82,
473
+ 0x6fa: 68,
474
+ 0x6fb: 68,
475
+ 0x6fc: 68,
476
+ 0x6ff: 68,
477
+ 0x70f: 84,
478
+ 0x710: 82,
479
+ 0x711: 84,
480
+ 0x712: 68,
481
+ 0x713: 68,
482
+ 0x714: 68,
483
+ 0x715: 82,
484
+ 0x716: 82,
485
+ 0x717: 82,
486
+ 0x718: 82,
487
+ 0x719: 82,
488
+ 0x71a: 68,
489
+ 0x71b: 68,
490
+ 0x71c: 68,
491
+ 0x71d: 68,
492
+ 0x71e: 82,
493
+ 0x71f: 68,
494
+ 0x720: 68,
495
+ 0x721: 68,
496
+ 0x722: 68,
497
+ 0x723: 68,
498
+ 0x724: 68,
499
+ 0x725: 68,
500
+ 0x726: 68,
501
+ 0x727: 68,
502
+ 0x728: 82,
503
+ 0x729: 68,
504
+ 0x72a: 82,
505
+ 0x72b: 68,
506
+ 0x72c: 82,
507
+ 0x72d: 68,
508
+ 0x72e: 68,
509
+ 0x72f: 82,
510
+ 0x730: 84,
511
+ 0x731: 84,
512
+ 0x732: 84,
513
+ 0x733: 84,
514
+ 0x734: 84,
515
+ 0x735: 84,
516
+ 0x736: 84,
517
+ 0x737: 84,
518
+ 0x738: 84,
519
+ 0x739: 84,
520
+ 0x73a: 84,
521
+ 0x73b: 84,
522
+ 0x73c: 84,
523
+ 0x73d: 84,
524
+ 0x73e: 84,
525
+ 0x73f: 84,
526
+ 0x740: 84,
527
+ 0x741: 84,
528
+ 0x742: 84,
529
+ 0x743: 84,
530
+ 0x744: 84,
531
+ 0x745: 84,
532
+ 0x746: 84,
533
+ 0x747: 84,
534
+ 0x748: 84,
535
+ 0x749: 84,
536
+ 0x74a: 84,
537
+ 0x74d: 82,
538
+ 0x74e: 68,
539
+ 0x74f: 68,
540
+ 0x750: 68,
541
+ 0x751: 68,
542
+ 0x752: 68,
543
+ 0x753: 68,
544
+ 0x754: 68,
545
+ 0x755: 68,
546
+ 0x756: 68,
547
+ 0x757: 68,
548
+ 0x758: 68,
549
+ 0x759: 82,
550
+ 0x75a: 82,
551
+ 0x75b: 82,
552
+ 0x75c: 68,
553
+ 0x75d: 68,
554
+ 0x75e: 68,
555
+ 0x75f: 68,
556
+ 0x760: 68,
557
+ 0x761: 68,
558
+ 0x762: 68,
559
+ 0x763: 68,
560
+ 0x764: 68,
561
+ 0x765: 68,
562
+ 0x766: 68,
563
+ 0x767: 68,
564
+ 0x768: 68,
565
+ 0x769: 68,
566
+ 0x76a: 68,
567
+ 0x76b: 82,
568
+ 0x76c: 82,
569
+ 0x76d: 68,
570
+ 0x76e: 68,
571
+ 0x76f: 68,
572
+ 0x770: 68,
573
+ 0x771: 82,
574
+ 0x772: 68,
575
+ 0x773: 82,
576
+ 0x774: 82,
577
+ 0x775: 68,
578
+ 0x776: 68,
579
+ 0x777: 68,
580
+ 0x778: 82,
581
+ 0x779: 82,
582
+ 0x77a: 68,
583
+ 0x77b: 68,
584
+ 0x77c: 68,
585
+ 0x77d: 68,
586
+ 0x77e: 68,
587
+ 0x77f: 68,
588
+ 0x7a6: 84,
589
+ 0x7a7: 84,
590
+ 0x7a8: 84,
591
+ 0x7a9: 84,
592
+ 0x7aa: 84,
593
+ 0x7ab: 84,
594
+ 0x7ac: 84,
595
+ 0x7ad: 84,
596
+ 0x7ae: 84,
597
+ 0x7af: 84,
598
+ 0x7b0: 84,
599
+ 0x7ca: 68,
600
+ 0x7cb: 68,
601
+ 0x7cc: 68,
602
+ 0x7cd: 68,
603
+ 0x7ce: 68,
604
+ 0x7cf: 68,
605
+ 0x7d0: 68,
606
+ 0x7d1: 68,
607
+ 0x7d2: 68,
608
+ 0x7d3: 68,
609
+ 0x7d4: 68,
610
+ 0x7d5: 68,
611
+ 0x7d6: 68,
612
+ 0x7d7: 68,
613
+ 0x7d8: 68,
614
+ 0x7d9: 68,
615
+ 0x7da: 68,
616
+ 0x7db: 68,
617
+ 0x7dc: 68,
618
+ 0x7dd: 68,
619
+ 0x7de: 68,
620
+ 0x7df: 68,
621
+ 0x7e0: 68,
622
+ 0x7e1: 68,
623
+ 0x7e2: 68,
624
+ 0x7e3: 68,
625
+ 0x7e4: 68,
626
+ 0x7e5: 68,
627
+ 0x7e6: 68,
628
+ 0x7e7: 68,
629
+ 0x7e8: 68,
630
+ 0x7e9: 68,
631
+ 0x7ea: 68,
632
+ 0x7eb: 84,
633
+ 0x7ec: 84,
634
+ 0x7ed: 84,
635
+ 0x7ee: 84,
636
+ 0x7ef: 84,
637
+ 0x7f0: 84,
638
+ 0x7f1: 84,
639
+ 0x7f2: 84,
640
+ 0x7f3: 84,
641
+ 0x7fa: 67,
642
+ 0x7fd: 84,
643
+ 0x816: 84,
644
+ 0x817: 84,
645
+ 0x818: 84,
646
+ 0x819: 84,
647
+ 0x81b: 84,
648
+ 0x81c: 84,
649
+ 0x81d: 84,
650
+ 0x81e: 84,
651
+ 0x81f: 84,
652
+ 0x820: 84,
653
+ 0x821: 84,
654
+ 0x822: 84,
655
+ 0x823: 84,
656
+ 0x825: 84,
657
+ 0x826: 84,
658
+ 0x827: 84,
659
+ 0x829: 84,
660
+ 0x82a: 84,
661
+ 0x82b: 84,
662
+ 0x82c: 84,
663
+ 0x82d: 84,
664
+ 0x840: 82,
665
+ 0x841: 68,
666
+ 0x842: 68,
667
+ 0x843: 68,
668
+ 0x844: 68,
669
+ 0x845: 68,
670
+ 0x846: 82,
671
+ 0x847: 82,
672
+ 0x848: 68,
673
+ 0x849: 82,
674
+ 0x84a: 68,
675
+ 0x84b: 68,
676
+ 0x84c: 68,
677
+ 0x84d: 68,
678
+ 0x84e: 68,
679
+ 0x84f: 68,
680
+ 0x850: 68,
681
+ 0x851: 68,
682
+ 0x852: 68,
683
+ 0x853: 68,
684
+ 0x854: 82,
685
+ 0x855: 68,
686
+ 0x856: 82,
687
+ 0x857: 82,
688
+ 0x858: 82,
689
+ 0x859: 84,
690
+ 0x85a: 84,
691
+ 0x85b: 84,
692
+ 0x860: 68,
693
+ 0x862: 68,
694
+ 0x863: 68,
695
+ 0x864: 68,
696
+ 0x865: 68,
697
+ 0x867: 82,
698
+ 0x868: 68,
699
+ 0x869: 82,
700
+ 0x86a: 82,
701
+ 0x870: 82,
702
+ 0x871: 82,
703
+ 0x872: 82,
704
+ 0x873: 82,
705
+ 0x874: 82,
706
+ 0x875: 82,
707
+ 0x876: 82,
708
+ 0x877: 82,
709
+ 0x878: 82,
710
+ 0x879: 82,
711
+ 0x87a: 82,
712
+ 0x87b: 82,
713
+ 0x87c: 82,
714
+ 0x87d: 82,
715
+ 0x87e: 82,
716
+ 0x87f: 82,
717
+ 0x880: 82,
718
+ 0x881: 82,
719
+ 0x882: 82,
720
+ 0x883: 67,
721
+ 0x884: 67,
722
+ 0x885: 67,
723
+ 0x886: 68,
724
+ 0x889: 68,
725
+ 0x88a: 68,
726
+ 0x88b: 68,
727
+ 0x88c: 68,
728
+ 0x88d: 68,
729
+ 0x88e: 82,
730
+ 0x898: 84,
731
+ 0x899: 84,
732
+ 0x89a: 84,
733
+ 0x89b: 84,
734
+ 0x89c: 84,
735
+ 0x89d: 84,
736
+ 0x89e: 84,
737
+ 0x89f: 84,
738
+ 0x8a0: 68,
739
+ 0x8a1: 68,
740
+ 0x8a2: 68,
741
+ 0x8a3: 68,
742
+ 0x8a4: 68,
743
+ 0x8a5: 68,
744
+ 0x8a6: 68,
745
+ 0x8a7: 68,
746
+ 0x8a8: 68,
747
+ 0x8a9: 68,
748
+ 0x8aa: 82,
749
+ 0x8ab: 82,
750
+ 0x8ac: 82,
751
+ 0x8ae: 82,
752
+ 0x8af: 68,
753
+ 0x8b0: 68,
754
+ 0x8b1: 82,
755
+ 0x8b2: 82,
756
+ 0x8b3: 68,
757
+ 0x8b4: 68,
758
+ 0x8b5: 68,
759
+ 0x8b6: 68,
760
+ 0x8b7: 68,
761
+ 0x8b8: 68,
762
+ 0x8b9: 82,
763
+ 0x8ba: 68,
764
+ 0x8bb: 68,
765
+ 0x8bc: 68,
766
+ 0x8bd: 68,
767
+ 0x8be: 68,
768
+ 0x8bf: 68,
769
+ 0x8c0: 68,
770
+ 0x8c1: 68,
771
+ 0x8c2: 68,
772
+ 0x8c3: 68,
773
+ 0x8c4: 68,
774
+ 0x8c5: 68,
775
+ 0x8c6: 68,
776
+ 0x8c7: 68,
777
+ 0x8c8: 68,
778
+ 0x8ca: 84,
779
+ 0x8cb: 84,
780
+ 0x8cc: 84,
781
+ 0x8cd: 84,
782
+ 0x8ce: 84,
783
+ 0x8cf: 84,
784
+ 0x8d0: 84,
785
+ 0x8d1: 84,
786
+ 0x8d2: 84,
787
+ 0x8d3: 84,
788
+ 0x8d4: 84,
789
+ 0x8d5: 84,
790
+ 0x8d6: 84,
791
+ 0x8d7: 84,
792
+ 0x8d8: 84,
793
+ 0x8d9: 84,
794
+ 0x8da: 84,
795
+ 0x8db: 84,
796
+ 0x8dc: 84,
797
+ 0x8dd: 84,
798
+ 0x8de: 84,
799
+ 0x8df: 84,
800
+ 0x8e0: 84,
801
+ 0x8e1: 84,
802
+ 0x8e3: 84,
803
+ 0x8e4: 84,
804
+ 0x8e5: 84,
805
+ 0x8e6: 84,
806
+ 0x8e7: 84,
807
+ 0x8e8: 84,
808
+ 0x8e9: 84,
809
+ 0x8ea: 84,
810
+ 0x8eb: 84,
811
+ 0x8ec: 84,
812
+ 0x8ed: 84,
813
+ 0x8ee: 84,
814
+ 0x8ef: 84,
815
+ 0x8f0: 84,
816
+ 0x8f1: 84,
817
+ 0x8f2: 84,
818
+ 0x8f3: 84,
819
+ 0x8f4: 84,
820
+ 0x8f5: 84,
821
+ 0x8f6: 84,
822
+ 0x8f7: 84,
823
+ 0x8f8: 84,
824
+ 0x8f9: 84,
825
+ 0x8fa: 84,
826
+ 0x8fb: 84,
827
+ 0x8fc: 84,
828
+ 0x8fd: 84,
829
+ 0x8fe: 84,
830
+ 0x8ff: 84,
831
+ 0x900: 84,
832
+ 0x901: 84,
833
+ 0x902: 84,
834
+ 0x93a: 84,
835
+ 0x93c: 84,
836
+ 0x941: 84,
837
+ 0x942: 84,
838
+ 0x943: 84,
839
+ 0x944: 84,
840
+ 0x945: 84,
841
+ 0x946: 84,
842
+ 0x947: 84,
843
+ 0x948: 84,
844
+ 0x94d: 84,
845
+ 0x951: 84,
846
+ 0x952: 84,
847
+ 0x953: 84,
848
+ 0x954: 84,
849
+ 0x955: 84,
850
+ 0x956: 84,
851
+ 0x957: 84,
852
+ 0x962: 84,
853
+ 0x963: 84,
854
+ 0x981: 84,
855
+ 0x9bc: 84,
856
+ 0x9c1: 84,
857
+ 0x9c2: 84,
858
+ 0x9c3: 84,
859
+ 0x9c4: 84,
860
+ 0x9cd: 84,
861
+ 0x9e2: 84,
862
+ 0x9e3: 84,
863
+ 0x9fe: 84,
864
+ 0xa01: 84,
865
+ 0xa02: 84,
866
+ 0xa3c: 84,
867
+ 0xa41: 84,
868
+ 0xa42: 84,
869
+ 0xa47: 84,
870
+ 0xa48: 84,
871
+ 0xa4b: 84,
872
+ 0xa4c: 84,
873
+ 0xa4d: 84,
874
+ 0xa51: 84,
875
+ 0xa70: 84,
876
+ 0xa71: 84,
877
+ 0xa75: 84,
878
+ 0xa81: 84,
879
+ 0xa82: 84,
880
+ 0xabc: 84,
881
+ 0xac1: 84,
882
+ 0xac2: 84,
883
+ 0xac3: 84,
884
+ 0xac4: 84,
885
+ 0xac5: 84,
886
+ 0xac7: 84,
887
+ 0xac8: 84,
888
+ 0xacd: 84,
889
+ 0xae2: 84,
890
+ 0xae3: 84,
891
+ 0xafa: 84,
892
+ 0xafb: 84,
893
+ 0xafc: 84,
894
+ 0xafd: 84,
895
+ 0xafe: 84,
896
+ 0xaff: 84,
897
+ 0xb01: 84,
898
+ 0xb3c: 84,
899
+ 0xb3f: 84,
900
+ 0xb41: 84,
901
+ 0xb42: 84,
902
+ 0xb43: 84,
903
+ 0xb44: 84,
904
+ 0xb4d: 84,
905
+ 0xb55: 84,
906
+ 0xb56: 84,
907
+ 0xb62: 84,
908
+ 0xb63: 84,
909
+ 0xb82: 84,
910
+ 0xbc0: 84,
911
+ 0xbcd: 84,
912
+ 0xc00: 84,
913
+ 0xc04: 84,
914
+ 0xc3c: 84,
915
+ 0xc3e: 84,
916
+ 0xc3f: 84,
917
+ 0xc40: 84,
918
+ 0xc46: 84,
919
+ 0xc47: 84,
920
+ 0xc48: 84,
921
+ 0xc4a: 84,
922
+ 0xc4b: 84,
923
+ 0xc4c: 84,
924
+ 0xc4d: 84,
925
+ 0xc55: 84,
926
+ 0xc56: 84,
927
+ 0xc62: 84,
928
+ 0xc63: 84,
929
+ 0xc81: 84,
930
+ 0xcbc: 84,
931
+ 0xcbf: 84,
932
+ 0xcc6: 84,
933
+ 0xccc: 84,
934
+ 0xccd: 84,
935
+ 0xce2: 84,
936
+ 0xce3: 84,
937
+ 0xd00: 84,
938
+ 0xd01: 84,
939
+ 0xd3b: 84,
940
+ 0xd3c: 84,
941
+ 0xd41: 84,
942
+ 0xd42: 84,
943
+ 0xd43: 84,
944
+ 0xd44: 84,
945
+ 0xd4d: 84,
946
+ 0xd62: 84,
947
+ 0xd63: 84,
948
+ 0xd81: 84,
949
+ 0xdca: 84,
950
+ 0xdd2: 84,
951
+ 0xdd3: 84,
952
+ 0xdd4: 84,
953
+ 0xdd6: 84,
954
+ 0xe31: 84,
955
+ 0xe34: 84,
956
+ 0xe35: 84,
957
+ 0xe36: 84,
958
+ 0xe37: 84,
959
+ 0xe38: 84,
960
+ 0xe39: 84,
961
+ 0xe3a: 84,
962
+ 0xe47: 84,
963
+ 0xe48: 84,
964
+ 0xe49: 84,
965
+ 0xe4a: 84,
966
+ 0xe4b: 84,
967
+ 0xe4c: 84,
968
+ 0xe4d: 84,
969
+ 0xe4e: 84,
970
+ 0xeb1: 84,
971
+ 0xeb4: 84,
972
+ 0xeb5: 84,
973
+ 0xeb6: 84,
974
+ 0xeb7: 84,
975
+ 0xeb8: 84,
976
+ 0xeb9: 84,
977
+ 0xeba: 84,
978
+ 0xebb: 84,
979
+ 0xebc: 84,
980
+ 0xec8: 84,
981
+ 0xec9: 84,
982
+ 0xeca: 84,
983
+ 0xecb: 84,
984
+ 0xecc: 84,
985
+ 0xecd: 84,
986
+ 0xece: 84,
987
+ 0xf18: 84,
988
+ 0xf19: 84,
989
+ 0xf35: 84,
990
+ 0xf37: 84,
991
+ 0xf39: 84,
992
+ 0xf71: 84,
993
+ 0xf72: 84,
994
+ 0xf73: 84,
995
+ 0xf74: 84,
996
+ 0xf75: 84,
997
+ 0xf76: 84,
998
+ 0xf77: 84,
999
+ 0xf78: 84,
1000
+ 0xf79: 84,
1001
+ 0xf7a: 84,
1002
+ 0xf7b: 84,
1003
+ 0xf7c: 84,
1004
+ 0xf7d: 84,
1005
+ 0xf7e: 84,
1006
+ 0xf80: 84,
1007
+ 0xf81: 84,
1008
+ 0xf82: 84,
1009
+ 0xf83: 84,
1010
+ 0xf84: 84,
1011
+ 0xf86: 84,
1012
+ 0xf87: 84,
1013
+ 0xf8d: 84,
1014
+ 0xf8e: 84,
1015
+ 0xf8f: 84,
1016
+ 0xf90: 84,
1017
+ 0xf91: 84,
1018
+ 0xf92: 84,
1019
+ 0xf93: 84,
1020
+ 0xf94: 84,
1021
+ 0xf95: 84,
1022
+ 0xf96: 84,
1023
+ 0xf97: 84,
1024
+ 0xf99: 84,
1025
+ 0xf9a: 84,
1026
+ 0xf9b: 84,
1027
+ 0xf9c: 84,
1028
+ 0xf9d: 84,
1029
+ 0xf9e: 84,
1030
+ 0xf9f: 84,
1031
+ 0xfa0: 84,
1032
+ 0xfa1: 84,
1033
+ 0xfa2: 84,
1034
+ 0xfa3: 84,
1035
+ 0xfa4: 84,
1036
+ 0xfa5: 84,
1037
+ 0xfa6: 84,
1038
+ 0xfa7: 84,
1039
+ 0xfa8: 84,
1040
+ 0xfa9: 84,
1041
+ 0xfaa: 84,
1042
+ 0xfab: 84,
1043
+ 0xfac: 84,
1044
+ 0xfad: 84,
1045
+ 0xfae: 84,
1046
+ 0xfaf: 84,
1047
+ 0xfb0: 84,
1048
+ 0xfb1: 84,
1049
+ 0xfb2: 84,
1050
+ 0xfb3: 84,
1051
+ 0xfb4: 84,
1052
+ 0xfb5: 84,
1053
+ 0xfb6: 84,
1054
+ 0xfb7: 84,
1055
+ 0xfb8: 84,
1056
+ 0xfb9: 84,
1057
+ 0xfba: 84,
1058
+ 0xfbb: 84,
1059
+ 0xfbc: 84,
1060
+ 0xfc6: 84,
1061
+ 0x102d: 84,
1062
+ 0x102e: 84,
1063
+ 0x102f: 84,
1064
+ 0x1030: 84,
1065
+ 0x1032: 84,
1066
+ 0x1033: 84,
1067
+ 0x1034: 84,
1068
+ 0x1035: 84,
1069
+ 0x1036: 84,
1070
+ 0x1037: 84,
1071
+ 0x1039: 84,
1072
+ 0x103a: 84,
1073
+ 0x103d: 84,
1074
+ 0x103e: 84,
1075
+ 0x1058: 84,
1076
+ 0x1059: 84,
1077
+ 0x105e: 84,
1078
+ 0x105f: 84,
1079
+ 0x1060: 84,
1080
+ 0x1071: 84,
1081
+ 0x1072: 84,
1082
+ 0x1073: 84,
1083
+ 0x1074: 84,
1084
+ 0x1082: 84,
1085
+ 0x1085: 84,
1086
+ 0x1086: 84,
1087
+ 0x108d: 84,
1088
+ 0x109d: 84,
1089
+ 0x135d: 84,
1090
+ 0x135e: 84,
1091
+ 0x135f: 84,
1092
+ 0x1712: 84,
1093
+ 0x1713: 84,
1094
+ 0x1714: 84,
1095
+ 0x1732: 84,
1096
+ 0x1733: 84,
1097
+ 0x1752: 84,
1098
+ 0x1753: 84,
1099
+ 0x1772: 84,
1100
+ 0x1773: 84,
1101
+ 0x17b4: 84,
1102
+ 0x17b5: 84,
1103
+ 0x17b7: 84,
1104
+ 0x17b8: 84,
1105
+ 0x17b9: 84,
1106
+ 0x17ba: 84,
1107
+ 0x17bb: 84,
1108
+ 0x17bc: 84,
1109
+ 0x17bd: 84,
1110
+ 0x17c6: 84,
1111
+ 0x17c9: 84,
1112
+ 0x17ca: 84,
1113
+ 0x17cb: 84,
1114
+ 0x17cc: 84,
1115
+ 0x17cd: 84,
1116
+ 0x17ce: 84,
1117
+ 0x17cf: 84,
1118
+ 0x17d0: 84,
1119
+ 0x17d1: 84,
1120
+ 0x17d2: 84,
1121
+ 0x17d3: 84,
1122
+ 0x17dd: 84,
1123
+ 0x1807: 68,
1124
+ 0x180a: 67,
1125
+ 0x180b: 84,
1126
+ 0x180c: 84,
1127
+ 0x180d: 84,
1128
+ 0x180f: 84,
1129
+ 0x1820: 68,
1130
+ 0x1821: 68,
1131
+ 0x1822: 68,
1132
+ 0x1823: 68,
1133
+ 0x1824: 68,
1134
+ 0x1825: 68,
1135
+ 0x1826: 68,
1136
+ 0x1827: 68,
1137
+ 0x1828: 68,
1138
+ 0x1829: 68,
1139
+ 0x182a: 68,
1140
+ 0x182b: 68,
1141
+ 0x182c: 68,
1142
+ 0x182d: 68,
1143
+ 0x182e: 68,
1144
+ 0x182f: 68,
1145
+ 0x1830: 68,
1146
+ 0x1831: 68,
1147
+ 0x1832: 68,
1148
+ 0x1833: 68,
1149
+ 0x1834: 68,
1150
+ 0x1835: 68,
1151
+ 0x1836: 68,
1152
+ 0x1837: 68,
1153
+ 0x1838: 68,
1154
+ 0x1839: 68,
1155
+ 0x183a: 68,
1156
+ 0x183b: 68,
1157
+ 0x183c: 68,
1158
+ 0x183d: 68,
1159
+ 0x183e: 68,
1160
+ 0x183f: 68,
1161
+ 0x1840: 68,
1162
+ 0x1841: 68,
1163
+ 0x1842: 68,
1164
+ 0x1843: 68,
1165
+ 0x1844: 68,
1166
+ 0x1845: 68,
1167
+ 0x1846: 68,
1168
+ 0x1847: 68,
1169
+ 0x1848: 68,
1170
+ 0x1849: 68,
1171
+ 0x184a: 68,
1172
+ 0x184b: 68,
1173
+ 0x184c: 68,
1174
+ 0x184d: 68,
1175
+ 0x184e: 68,
1176
+ 0x184f: 68,
1177
+ 0x1850: 68,
1178
+ 0x1851: 68,
1179
+ 0x1852: 68,
1180
+ 0x1853: 68,
1181
+ 0x1854: 68,
1182
+ 0x1855: 68,
1183
+ 0x1856: 68,
1184
+ 0x1857: 68,
1185
+ 0x1858: 68,
1186
+ 0x1859: 68,
1187
+ 0x185a: 68,
1188
+ 0x185b: 68,
1189
+ 0x185c: 68,
1190
+ 0x185d: 68,
1191
+ 0x185e: 68,
1192
+ 0x185f: 68,
1193
+ 0x1860: 68,
1194
+ 0x1861: 68,
1195
+ 0x1862: 68,
1196
+ 0x1863: 68,
1197
+ 0x1864: 68,
1198
+ 0x1865: 68,
1199
+ 0x1866: 68,
1200
+ 0x1867: 68,
1201
+ 0x1868: 68,
1202
+ 0x1869: 68,
1203
+ 0x186a: 68,
1204
+ 0x186b: 68,
1205
+ 0x186c: 68,
1206
+ 0x186d: 68,
1207
+ 0x186e: 68,
1208
+ 0x186f: 68,
1209
+ 0x1870: 68,
1210
+ 0x1871: 68,
1211
+ 0x1872: 68,
1212
+ 0x1873: 68,
1213
+ 0x1874: 68,
1214
+ 0x1875: 68,
1215
+ 0x1876: 68,
1216
+ 0x1877: 68,
1217
+ 0x1878: 68,
1218
+ 0x1885: 84,
1219
+ 0x1886: 84,
1220
+ 0x1887: 68,
1221
+ 0x1888: 68,
1222
+ 0x1889: 68,
1223
+ 0x188a: 68,
1224
+ 0x188b: 68,
1225
+ 0x188c: 68,
1226
+ 0x188d: 68,
1227
+ 0x188e: 68,
1228
+ 0x188f: 68,
1229
+ 0x1890: 68,
1230
+ 0x1891: 68,
1231
+ 0x1892: 68,
1232
+ 0x1893: 68,
1233
+ 0x1894: 68,
1234
+ 0x1895: 68,
1235
+ 0x1896: 68,
1236
+ 0x1897: 68,
1237
+ 0x1898: 68,
1238
+ 0x1899: 68,
1239
+ 0x189a: 68,
1240
+ 0x189b: 68,
1241
+ 0x189c: 68,
1242
+ 0x189d: 68,
1243
+ 0x189e: 68,
1244
+ 0x189f: 68,
1245
+ 0x18a0: 68,
1246
+ 0x18a1: 68,
1247
+ 0x18a2: 68,
1248
+ 0x18a3: 68,
1249
+ 0x18a4: 68,
1250
+ 0x18a5: 68,
1251
+ 0x18a6: 68,
1252
+ 0x18a7: 68,
1253
+ 0x18a8: 68,
1254
+ 0x18a9: 84,
1255
+ 0x18aa: 68,
1256
+ 0x1920: 84,
1257
+ 0x1921: 84,
1258
+ 0x1922: 84,
1259
+ 0x1927: 84,
1260
+ 0x1928: 84,
1261
+ 0x1932: 84,
1262
+ 0x1939: 84,
1263
+ 0x193a: 84,
1264
+ 0x193b: 84,
1265
+ 0x1a17: 84,
1266
+ 0x1a18: 84,
1267
+ 0x1a1b: 84,
1268
+ 0x1a56: 84,
1269
+ 0x1a58: 84,
1270
+ 0x1a59: 84,
1271
+ 0x1a5a: 84,
1272
+ 0x1a5b: 84,
1273
+ 0x1a5c: 84,
1274
+ 0x1a5d: 84,
1275
+ 0x1a5e: 84,
1276
+ 0x1a60: 84,
1277
+ 0x1a62: 84,
1278
+ 0x1a65: 84,
1279
+ 0x1a66: 84,
1280
+ 0x1a67: 84,
1281
+ 0x1a68: 84,
1282
+ 0x1a69: 84,
1283
+ 0x1a6a: 84,
1284
+ 0x1a6b: 84,
1285
+ 0x1a6c: 84,
1286
+ 0x1a73: 84,
1287
+ 0x1a74: 84,
1288
+ 0x1a75: 84,
1289
+ 0x1a76: 84,
1290
+ 0x1a77: 84,
1291
+ 0x1a78: 84,
1292
+ 0x1a79: 84,
1293
+ 0x1a7a: 84,
1294
+ 0x1a7b: 84,
1295
+ 0x1a7c: 84,
1296
+ 0x1a7f: 84,
1297
+ 0x1ab0: 84,
1298
+ 0x1ab1: 84,
1299
+ 0x1ab2: 84,
1300
+ 0x1ab3: 84,
1301
+ 0x1ab4: 84,
1302
+ 0x1ab5: 84,
1303
+ 0x1ab6: 84,
1304
+ 0x1ab7: 84,
1305
+ 0x1ab8: 84,
1306
+ 0x1ab9: 84,
1307
+ 0x1aba: 84,
1308
+ 0x1abb: 84,
1309
+ 0x1abc: 84,
1310
+ 0x1abd: 84,
1311
+ 0x1abe: 84,
1312
+ 0x1abf: 84,
1313
+ 0x1ac0: 84,
1314
+ 0x1ac1: 84,
1315
+ 0x1ac2: 84,
1316
+ 0x1ac3: 84,
1317
+ 0x1ac4: 84,
1318
+ 0x1ac5: 84,
1319
+ 0x1ac6: 84,
1320
+ 0x1ac7: 84,
1321
+ 0x1ac8: 84,
1322
+ 0x1ac9: 84,
1323
+ 0x1aca: 84,
1324
+ 0x1acb: 84,
1325
+ 0x1acc: 84,
1326
+ 0x1acd: 84,
1327
+ 0x1ace: 84,
1328
+ 0x1b00: 84,
1329
+ 0x1b01: 84,
1330
+ 0x1b02: 84,
1331
+ 0x1b03: 84,
1332
+ 0x1b34: 84,
1333
+ 0x1b36: 84,
1334
+ 0x1b37: 84,
1335
+ 0x1b38: 84,
1336
+ 0x1b39: 84,
1337
+ 0x1b3a: 84,
1338
+ 0x1b3c: 84,
1339
+ 0x1b42: 84,
1340
+ 0x1b6b: 84,
1341
+ 0x1b6c: 84,
1342
+ 0x1b6d: 84,
1343
+ 0x1b6e: 84,
1344
+ 0x1b6f: 84,
1345
+ 0x1b70: 84,
1346
+ 0x1b71: 84,
1347
+ 0x1b72: 84,
1348
+ 0x1b73: 84,
1349
+ 0x1b80: 84,
1350
+ 0x1b81: 84,
1351
+ 0x1ba2: 84,
1352
+ 0x1ba3: 84,
1353
+ 0x1ba4: 84,
1354
+ 0x1ba5: 84,
1355
+ 0x1ba8: 84,
1356
+ 0x1ba9: 84,
1357
+ 0x1bab: 84,
1358
+ 0x1bac: 84,
1359
+ 0x1bad: 84,
1360
+ 0x1be6: 84,
1361
+ 0x1be8: 84,
1362
+ 0x1be9: 84,
1363
+ 0x1bed: 84,
1364
+ 0x1bef: 84,
1365
+ 0x1bf0: 84,
1366
+ 0x1bf1: 84,
1367
+ 0x1c2c: 84,
1368
+ 0x1c2d: 84,
1369
+ 0x1c2e: 84,
1370
+ 0x1c2f: 84,
1371
+ 0x1c30: 84,
1372
+ 0x1c31: 84,
1373
+ 0x1c32: 84,
1374
+ 0x1c33: 84,
1375
+ 0x1c36: 84,
1376
+ 0x1c37: 84,
1377
+ 0x1cd0: 84,
1378
+ 0x1cd1: 84,
1379
+ 0x1cd2: 84,
1380
+ 0x1cd4: 84,
1381
+ 0x1cd5: 84,
1382
+ 0x1cd6: 84,
1383
+ 0x1cd7: 84,
1384
+ 0x1cd8: 84,
1385
+ 0x1cd9: 84,
1386
+ 0x1cda: 84,
1387
+ 0x1cdb: 84,
1388
+ 0x1cdc: 84,
1389
+ 0x1cdd: 84,
1390
+ 0x1cde: 84,
1391
+ 0x1cdf: 84,
1392
+ 0x1ce0: 84,
1393
+ 0x1ce2: 84,
1394
+ 0x1ce3: 84,
1395
+ 0x1ce4: 84,
1396
+ 0x1ce5: 84,
1397
+ 0x1ce6: 84,
1398
+ 0x1ce7: 84,
1399
+ 0x1ce8: 84,
1400
+ 0x1ced: 84,
1401
+ 0x1cf4: 84,
1402
+ 0x1cf8: 84,
1403
+ 0x1cf9: 84,
1404
+ 0x1dc0: 84,
1405
+ 0x1dc1: 84,
1406
+ 0x1dc2: 84,
1407
+ 0x1dc3: 84,
1408
+ 0x1dc4: 84,
1409
+ 0x1dc5: 84,
1410
+ 0x1dc6: 84,
1411
+ 0x1dc7: 84,
1412
+ 0x1dc8: 84,
1413
+ 0x1dc9: 84,
1414
+ 0x1dca: 84,
1415
+ 0x1dcb: 84,
1416
+ 0x1dcc: 84,
1417
+ 0x1dcd: 84,
1418
+ 0x1dce: 84,
1419
+ 0x1dcf: 84,
1420
+ 0x1dd0: 84,
1421
+ 0x1dd1: 84,
1422
+ 0x1dd2: 84,
1423
+ 0x1dd3: 84,
1424
+ 0x1dd4: 84,
1425
+ 0x1dd5: 84,
1426
+ 0x1dd6: 84,
1427
+ 0x1dd7: 84,
1428
+ 0x1dd8: 84,
1429
+ 0x1dd9: 84,
1430
+ 0x1dda: 84,
1431
+ 0x1ddb: 84,
1432
+ 0x1ddc: 84,
1433
+ 0x1ddd: 84,
1434
+ 0x1dde: 84,
1435
+ 0x1ddf: 84,
1436
+ 0x1de0: 84,
1437
+ 0x1de1: 84,
1438
+ 0x1de2: 84,
1439
+ 0x1de3: 84,
1440
+ 0x1de4: 84,
1441
+ 0x1de5: 84,
1442
+ 0x1de6: 84,
1443
+ 0x1de7: 84,
1444
+ 0x1de8: 84,
1445
+ 0x1de9: 84,
1446
+ 0x1dea: 84,
1447
+ 0x1deb: 84,
1448
+ 0x1dec: 84,
1449
+ 0x1ded: 84,
1450
+ 0x1dee: 84,
1451
+ 0x1def: 84,
1452
+ 0x1df0: 84,
1453
+ 0x1df1: 84,
1454
+ 0x1df2: 84,
1455
+ 0x1df3: 84,
1456
+ 0x1df4: 84,
1457
+ 0x1df5: 84,
1458
+ 0x1df6: 84,
1459
+ 0x1df7: 84,
1460
+ 0x1df8: 84,
1461
+ 0x1df9: 84,
1462
+ 0x1dfa: 84,
1463
+ 0x1dfb: 84,
1464
+ 0x1dfc: 84,
1465
+ 0x1dfd: 84,
1466
+ 0x1dfe: 84,
1467
+ 0x1dff: 84,
1468
+ 0x200b: 84,
1469
+ 0x200d: 67,
1470
+ 0x200e: 84,
1471
+ 0x200f: 84,
1472
+ 0x202a: 84,
1473
+ 0x202b: 84,
1474
+ 0x202c: 84,
1475
+ 0x202d: 84,
1476
+ 0x202e: 84,
1477
+ 0x2060: 84,
1478
+ 0x2061: 84,
1479
+ 0x2062: 84,
1480
+ 0x2063: 84,
1481
+ 0x2064: 84,
1482
+ 0x206a: 84,
1483
+ 0x206b: 84,
1484
+ 0x206c: 84,
1485
+ 0x206d: 84,
1486
+ 0x206e: 84,
1487
+ 0x206f: 84,
1488
+ 0x20d0: 84,
1489
+ 0x20d1: 84,
1490
+ 0x20d2: 84,
1491
+ 0x20d3: 84,
1492
+ 0x20d4: 84,
1493
+ 0x20d5: 84,
1494
+ 0x20d6: 84,
1495
+ 0x20d7: 84,
1496
+ 0x20d8: 84,
1497
+ 0x20d9: 84,
1498
+ 0x20da: 84,
1499
+ 0x20db: 84,
1500
+ 0x20dc: 84,
1501
+ 0x20dd: 84,
1502
+ 0x20de: 84,
1503
+ 0x20df: 84,
1504
+ 0x20e0: 84,
1505
+ 0x20e1: 84,
1506
+ 0x20e2: 84,
1507
+ 0x20e3: 84,
1508
+ 0x20e4: 84,
1509
+ 0x20e5: 84,
1510
+ 0x20e6: 84,
1511
+ 0x20e7: 84,
1512
+ 0x20e8: 84,
1513
+ 0x20e9: 84,
1514
+ 0x20ea: 84,
1515
+ 0x20eb: 84,
1516
+ 0x20ec: 84,
1517
+ 0x20ed: 84,
1518
+ 0x20ee: 84,
1519
+ 0x20ef: 84,
1520
+ 0x20f0: 84,
1521
+ 0x2cef: 84,
1522
+ 0x2cf0: 84,
1523
+ 0x2cf1: 84,
1524
+ 0x2d7f: 84,
1525
+ 0x2de0: 84,
1526
+ 0x2de1: 84,
1527
+ 0x2de2: 84,
1528
+ 0x2de3: 84,
1529
+ 0x2de4: 84,
1530
+ 0x2de5: 84,
1531
+ 0x2de6: 84,
1532
+ 0x2de7: 84,
1533
+ 0x2de8: 84,
1534
+ 0x2de9: 84,
1535
+ 0x2dea: 84,
1536
+ 0x2deb: 84,
1537
+ 0x2dec: 84,
1538
+ 0x2ded: 84,
1539
+ 0x2dee: 84,
1540
+ 0x2def: 84,
1541
+ 0x2df0: 84,
1542
+ 0x2df1: 84,
1543
+ 0x2df2: 84,
1544
+ 0x2df3: 84,
1545
+ 0x2df4: 84,
1546
+ 0x2df5: 84,
1547
+ 0x2df6: 84,
1548
+ 0x2df7: 84,
1549
+ 0x2df8: 84,
1550
+ 0x2df9: 84,
1551
+ 0x2dfa: 84,
1552
+ 0x2dfb: 84,
1553
+ 0x2dfc: 84,
1554
+ 0x2dfd: 84,
1555
+ 0x2dfe: 84,
1556
+ 0x2dff: 84,
1557
+ 0x302a: 84,
1558
+ 0x302b: 84,
1559
+ 0x302c: 84,
1560
+ 0x302d: 84,
1561
+ 0x3099: 84,
1562
+ 0x309a: 84,
1563
+ 0xa66f: 84,
1564
+ 0xa670: 84,
1565
+ 0xa671: 84,
1566
+ 0xa672: 84,
1567
+ 0xa674: 84,
1568
+ 0xa675: 84,
1569
+ 0xa676: 84,
1570
+ 0xa677: 84,
1571
+ 0xa678: 84,
1572
+ 0xa679: 84,
1573
+ 0xa67a: 84,
1574
+ 0xa67b: 84,
1575
+ 0xa67c: 84,
1576
+ 0xa67d: 84,
1577
+ 0xa69e: 84,
1578
+ 0xa69f: 84,
1579
+ 0xa6f0: 84,
1580
+ 0xa6f1: 84,
1581
+ 0xa802: 84,
1582
+ 0xa806: 84,
1583
+ 0xa80b: 84,
1584
+ 0xa825: 84,
1585
+ 0xa826: 84,
1586
+ 0xa82c: 84,
1587
+ 0xa840: 68,
1588
+ 0xa841: 68,
1589
+ 0xa842: 68,
1590
+ 0xa843: 68,
1591
+ 0xa844: 68,
1592
+ 0xa845: 68,
1593
+ 0xa846: 68,
1594
+ 0xa847: 68,
1595
+ 0xa848: 68,
1596
+ 0xa849: 68,
1597
+ 0xa84a: 68,
1598
+ 0xa84b: 68,
1599
+ 0xa84c: 68,
1600
+ 0xa84d: 68,
1601
+ 0xa84e: 68,
1602
+ 0xa84f: 68,
1603
+ 0xa850: 68,
1604
+ 0xa851: 68,
1605
+ 0xa852: 68,
1606
+ 0xa853: 68,
1607
+ 0xa854: 68,
1608
+ 0xa855: 68,
1609
+ 0xa856: 68,
1610
+ 0xa857: 68,
1611
+ 0xa858: 68,
1612
+ 0xa859: 68,
1613
+ 0xa85a: 68,
1614
+ 0xa85b: 68,
1615
+ 0xa85c: 68,
1616
+ 0xa85d: 68,
1617
+ 0xa85e: 68,
1618
+ 0xa85f: 68,
1619
+ 0xa860: 68,
1620
+ 0xa861: 68,
1621
+ 0xa862: 68,
1622
+ 0xa863: 68,
1623
+ 0xa864: 68,
1624
+ 0xa865: 68,
1625
+ 0xa866: 68,
1626
+ 0xa867: 68,
1627
+ 0xa868: 68,
1628
+ 0xa869: 68,
1629
+ 0xa86a: 68,
1630
+ 0xa86b: 68,
1631
+ 0xa86c: 68,
1632
+ 0xa86d: 68,
1633
+ 0xa86e: 68,
1634
+ 0xa86f: 68,
1635
+ 0xa870: 68,
1636
+ 0xa871: 68,
1637
+ 0xa872: 76,
1638
+ 0xa8c4: 84,
1639
+ 0xa8c5: 84,
1640
+ 0xa8e0: 84,
1641
+ 0xa8e1: 84,
1642
+ 0xa8e2: 84,
1643
+ 0xa8e3: 84,
1644
+ 0xa8e4: 84,
1645
+ 0xa8e5: 84,
1646
+ 0xa8e6: 84,
1647
+ 0xa8e7: 84,
1648
+ 0xa8e8: 84,
1649
+ 0xa8e9: 84,
1650
+ 0xa8ea: 84,
1651
+ 0xa8eb: 84,
1652
+ 0xa8ec: 84,
1653
+ 0xa8ed: 84,
1654
+ 0xa8ee: 84,
1655
+ 0xa8ef: 84,
1656
+ 0xa8f0: 84,
1657
+ 0xa8f1: 84,
1658
+ 0xa8ff: 84,
1659
+ 0xa926: 84,
1660
+ 0xa927: 84,
1661
+ 0xa928: 84,
1662
+ 0xa929: 84,
1663
+ 0xa92a: 84,
1664
+ 0xa92b: 84,
1665
+ 0xa92c: 84,
1666
+ 0xa92d: 84,
1667
+ 0xa947: 84,
1668
+ 0xa948: 84,
1669
+ 0xa949: 84,
1670
+ 0xa94a: 84,
1671
+ 0xa94b: 84,
1672
+ 0xa94c: 84,
1673
+ 0xa94d: 84,
1674
+ 0xa94e: 84,
1675
+ 0xa94f: 84,
1676
+ 0xa950: 84,
1677
+ 0xa951: 84,
1678
+ 0xa980: 84,
1679
+ 0xa981: 84,
1680
+ 0xa982: 84,
1681
+ 0xa9b3: 84,
1682
+ 0xa9b6: 84,
1683
+ 0xa9b7: 84,
1684
+ 0xa9b8: 84,
1685
+ 0xa9b9: 84,
1686
+ 0xa9bc: 84,
1687
+ 0xa9bd: 84,
1688
+ 0xa9e5: 84,
1689
+ 0xaa29: 84,
1690
+ 0xaa2a: 84,
1691
+ 0xaa2b: 84,
1692
+ 0xaa2c: 84,
1693
+ 0xaa2d: 84,
1694
+ 0xaa2e: 84,
1695
+ 0xaa31: 84,
1696
+ 0xaa32: 84,
1697
+ 0xaa35: 84,
1698
+ 0xaa36: 84,
1699
+ 0xaa43: 84,
1700
+ 0xaa4c: 84,
1701
+ 0xaa7c: 84,
1702
+ 0xaab0: 84,
1703
+ 0xaab2: 84,
1704
+ 0xaab3: 84,
1705
+ 0xaab4: 84,
1706
+ 0xaab7: 84,
1707
+ 0xaab8: 84,
1708
+ 0xaabe: 84,
1709
+ 0xaabf: 84,
1710
+ 0xaac1: 84,
1711
+ 0xaaec: 84,
1712
+ 0xaaed: 84,
1713
+ 0xaaf6: 84,
1714
+ 0xabe5: 84,
1715
+ 0xabe8: 84,
1716
+ 0xabed: 84,
1717
+ 0xfb1e: 84,
1718
+ 0xfe00: 84,
1719
+ 0xfe01: 84,
1720
+ 0xfe02: 84,
1721
+ 0xfe03: 84,
1722
+ 0xfe04: 84,
1723
+ 0xfe05: 84,
1724
+ 0xfe06: 84,
1725
+ 0xfe07: 84,
1726
+ 0xfe08: 84,
1727
+ 0xfe09: 84,
1728
+ 0xfe0a: 84,
1729
+ 0xfe0b: 84,
1730
+ 0xfe0c: 84,
1731
+ 0xfe0d: 84,
1732
+ 0xfe0e: 84,
1733
+ 0xfe0f: 84,
1734
+ 0xfe20: 84,
1735
+ 0xfe21: 84,
1736
+ 0xfe22: 84,
1737
+ 0xfe23: 84,
1738
+ 0xfe24: 84,
1739
+ 0xfe25: 84,
1740
+ 0xfe26: 84,
1741
+ 0xfe27: 84,
1742
+ 0xfe28: 84,
1743
+ 0xfe29: 84,
1744
+ 0xfe2a: 84,
1745
+ 0xfe2b: 84,
1746
+ 0xfe2c: 84,
1747
+ 0xfe2d: 84,
1748
+ 0xfe2e: 84,
1749
+ 0xfe2f: 84,
1750
+ 0xfeff: 84,
1751
+ 0xfff9: 84,
1752
+ 0xfffa: 84,
1753
+ 0xfffb: 84,
1754
+ 0x101fd: 84,
1755
+ 0x102e0: 84,
1756
+ 0x10376: 84,
1757
+ 0x10377: 84,
1758
+ 0x10378: 84,
1759
+ 0x10379: 84,
1760
+ 0x1037a: 84,
1761
+ 0x10a01: 84,
1762
+ 0x10a02: 84,
1763
+ 0x10a03: 84,
1764
+ 0x10a05: 84,
1765
+ 0x10a06: 84,
1766
+ 0x10a0c: 84,
1767
+ 0x10a0d: 84,
1768
+ 0x10a0e: 84,
1769
+ 0x10a0f: 84,
1770
+ 0x10a38: 84,
1771
+ 0x10a39: 84,
1772
+ 0x10a3a: 84,
1773
+ 0x10a3f: 84,
1774
+ 0x10ac0: 68,
1775
+ 0x10ac1: 68,
1776
+ 0x10ac2: 68,
1777
+ 0x10ac3: 68,
1778
+ 0x10ac4: 68,
1779
+ 0x10ac5: 82,
1780
+ 0x10ac7: 82,
1781
+ 0x10ac9: 82,
1782
+ 0x10aca: 82,
1783
+ 0x10acd: 76,
1784
+ 0x10ace: 82,
1785
+ 0x10acf: 82,
1786
+ 0x10ad0: 82,
1787
+ 0x10ad1: 82,
1788
+ 0x10ad2: 82,
1789
+ 0x10ad3: 68,
1790
+ 0x10ad4: 68,
1791
+ 0x10ad5: 68,
1792
+ 0x10ad6: 68,
1793
+ 0x10ad7: 76,
1794
+ 0x10ad8: 68,
1795
+ 0x10ad9: 68,
1796
+ 0x10ada: 68,
1797
+ 0x10adb: 68,
1798
+ 0x10adc: 68,
1799
+ 0x10add: 82,
1800
+ 0x10ade: 68,
1801
+ 0x10adf: 68,
1802
+ 0x10ae0: 68,
1803
+ 0x10ae1: 82,
1804
+ 0x10ae4: 82,
1805
+ 0x10ae5: 84,
1806
+ 0x10ae6: 84,
1807
+ 0x10aeb: 68,
1808
+ 0x10aec: 68,
1809
+ 0x10aed: 68,
1810
+ 0x10aee: 68,
1811
+ 0x10aef: 82,
1812
+ 0x10b80: 68,
1813
+ 0x10b81: 82,
1814
+ 0x10b82: 68,
1815
+ 0x10b83: 82,
1816
+ 0x10b84: 82,
1817
+ 0x10b85: 82,
1818
+ 0x10b86: 68,
1819
+ 0x10b87: 68,
1820
+ 0x10b88: 68,
1821
+ 0x10b89: 82,
1822
+ 0x10b8a: 68,
1823
+ 0x10b8b: 68,
1824
+ 0x10b8c: 82,
1825
+ 0x10b8d: 68,
1826
+ 0x10b8e: 82,
1827
+ 0x10b8f: 82,
1828
+ 0x10b90: 68,
1829
+ 0x10b91: 82,
1830
+ 0x10ba9: 82,
1831
+ 0x10baa: 82,
1832
+ 0x10bab: 82,
1833
+ 0x10bac: 82,
1834
+ 0x10bad: 68,
1835
+ 0x10bae: 68,
1836
+ 0x10d00: 76,
1837
+ 0x10d01: 68,
1838
+ 0x10d02: 68,
1839
+ 0x10d03: 68,
1840
+ 0x10d04: 68,
1841
+ 0x10d05: 68,
1842
+ 0x10d06: 68,
1843
+ 0x10d07: 68,
1844
+ 0x10d08: 68,
1845
+ 0x10d09: 68,
1846
+ 0x10d0a: 68,
1847
+ 0x10d0b: 68,
1848
+ 0x10d0c: 68,
1849
+ 0x10d0d: 68,
1850
+ 0x10d0e: 68,
1851
+ 0x10d0f: 68,
1852
+ 0x10d10: 68,
1853
+ 0x10d11: 68,
1854
+ 0x10d12: 68,
1855
+ 0x10d13: 68,
1856
+ 0x10d14: 68,
1857
+ 0x10d15: 68,
1858
+ 0x10d16: 68,
1859
+ 0x10d17: 68,
1860
+ 0x10d18: 68,
1861
+ 0x10d19: 68,
1862
+ 0x10d1a: 68,
1863
+ 0x10d1b: 68,
1864
+ 0x10d1c: 68,
1865
+ 0x10d1d: 68,
1866
+ 0x10d1e: 68,
1867
+ 0x10d1f: 68,
1868
+ 0x10d20: 68,
1869
+ 0x10d21: 68,
1870
+ 0x10d22: 82,
1871
+ 0x10d23: 68,
1872
+ 0x10d24: 84,
1873
+ 0x10d25: 84,
1874
+ 0x10d26: 84,
1875
+ 0x10d27: 84,
1876
+ 0x10eab: 84,
1877
+ 0x10eac: 84,
1878
+ 0x10efd: 84,
1879
+ 0x10efe: 84,
1880
+ 0x10eff: 84,
1881
+ 0x10f30: 68,
1882
+ 0x10f31: 68,
1883
+ 0x10f32: 68,
1884
+ 0x10f33: 82,
1885
+ 0x10f34: 68,
1886
+ 0x10f35: 68,
1887
+ 0x10f36: 68,
1888
+ 0x10f37: 68,
1889
+ 0x10f38: 68,
1890
+ 0x10f39: 68,
1891
+ 0x10f3a: 68,
1892
+ 0x10f3b: 68,
1893
+ 0x10f3c: 68,
1894
+ 0x10f3d: 68,
1895
+ 0x10f3e: 68,
1896
+ 0x10f3f: 68,
1897
+ 0x10f40: 68,
1898
+ 0x10f41: 68,
1899
+ 0x10f42: 68,
1900
+ 0x10f43: 68,
1901
+ 0x10f44: 68,
1902
+ 0x10f46: 84,
1903
+ 0x10f47: 84,
1904
+ 0x10f48: 84,
1905
+ 0x10f49: 84,
1906
+ 0x10f4a: 84,
1907
+ 0x10f4b: 84,
1908
+ 0x10f4c: 84,
1909
+ 0x10f4d: 84,
1910
+ 0x10f4e: 84,
1911
+ 0x10f4f: 84,
1912
+ 0x10f50: 84,
1913
+ 0x10f51: 68,
1914
+ 0x10f52: 68,
1915
+ 0x10f53: 68,
1916
+ 0x10f54: 82,
1917
+ 0x10f70: 68,
1918
+ 0x10f71: 68,
1919
+ 0x10f72: 68,
1920
+ 0x10f73: 68,
1921
+ 0x10f74: 82,
1922
+ 0x10f75: 82,
1923
+ 0x10f76: 68,
1924
+ 0x10f77: 68,
1925
+ 0x10f78: 68,
1926
+ 0x10f79: 68,
1927
+ 0x10f7a: 68,
1928
+ 0x10f7b: 68,
1929
+ 0x10f7c: 68,
1930
+ 0x10f7d: 68,
1931
+ 0x10f7e: 68,
1932
+ 0x10f7f: 68,
1933
+ 0x10f80: 68,
1934
+ 0x10f81: 68,
1935
+ 0x10f82: 84,
1936
+ 0x10f83: 84,
1937
+ 0x10f84: 84,
1938
+ 0x10f85: 84,
1939
+ 0x10fb0: 68,
1940
+ 0x10fb2: 68,
1941
+ 0x10fb3: 68,
1942
+ 0x10fb4: 82,
1943
+ 0x10fb5: 82,
1944
+ 0x10fb6: 82,
1945
+ 0x10fb8: 68,
1946
+ 0x10fb9: 82,
1947
+ 0x10fba: 82,
1948
+ 0x10fbb: 68,
1949
+ 0x10fbc: 68,
1950
+ 0x10fbd: 82,
1951
+ 0x10fbe: 68,
1952
+ 0x10fbf: 68,
1953
+ 0x10fc1: 68,
1954
+ 0x10fc2: 82,
1955
+ 0x10fc3: 82,
1956
+ 0x10fc4: 68,
1957
+ 0x10fc9: 82,
1958
+ 0x10fca: 68,
1959
+ 0x10fcb: 76,
1960
+ 0x11001: 84,
1961
+ 0x11038: 84,
1962
+ 0x11039: 84,
1963
+ 0x1103a: 84,
1964
+ 0x1103b: 84,
1965
+ 0x1103c: 84,
1966
+ 0x1103d: 84,
1967
+ 0x1103e: 84,
1968
+ 0x1103f: 84,
1969
+ 0x11040: 84,
1970
+ 0x11041: 84,
1971
+ 0x11042: 84,
1972
+ 0x11043: 84,
1973
+ 0x11044: 84,
1974
+ 0x11045: 84,
1975
+ 0x11046: 84,
1976
+ 0x11070: 84,
1977
+ 0x11073: 84,
1978
+ 0x11074: 84,
1979
+ 0x1107f: 84,
1980
+ 0x11080: 84,
1981
+ 0x11081: 84,
1982
+ 0x110b3: 84,
1983
+ 0x110b4: 84,
1984
+ 0x110b5: 84,
1985
+ 0x110b6: 84,
1986
+ 0x110b9: 84,
1987
+ 0x110ba: 84,
1988
+ 0x110c2: 84,
1989
+ 0x11100: 84,
1990
+ 0x11101: 84,
1991
+ 0x11102: 84,
1992
+ 0x11127: 84,
1993
+ 0x11128: 84,
1994
+ 0x11129: 84,
1995
+ 0x1112a: 84,
1996
+ 0x1112b: 84,
1997
+ 0x1112d: 84,
1998
+ 0x1112e: 84,
1999
+ 0x1112f: 84,
2000
+ 0x11130: 84,
2001
+ 0x11131: 84,
2002
+ 0x11132: 84,
2003
+ 0x11133: 84,
2004
+ 0x11134: 84,
2005
+ 0x11173: 84,
2006
+ 0x11180: 84,
2007
+ 0x11181: 84,
2008
+ 0x111b6: 84,
2009
+ 0x111b7: 84,
2010
+ 0x111b8: 84,
2011
+ 0x111b9: 84,
2012
+ 0x111ba: 84,
2013
+ 0x111bb: 84,
2014
+ 0x111bc: 84,
2015
+ 0x111bd: 84,
2016
+ 0x111be: 84,
2017
+ 0x111c9: 84,
2018
+ 0x111ca: 84,
2019
+ 0x111cb: 84,
2020
+ 0x111cc: 84,
2021
+ 0x111cf: 84,
2022
+ 0x1122f: 84,
2023
+ 0x11230: 84,
2024
+ 0x11231: 84,
2025
+ 0x11234: 84,
2026
+ 0x11236: 84,
2027
+ 0x11237: 84,
2028
+ 0x1123e: 84,
2029
+ 0x11241: 84,
2030
+ 0x112df: 84,
2031
+ 0x112e3: 84,
2032
+ 0x112e4: 84,
2033
+ 0x112e5: 84,
2034
+ 0x112e6: 84,
2035
+ 0x112e7: 84,
2036
+ 0x112e8: 84,
2037
+ 0x112e9: 84,
2038
+ 0x112ea: 84,
2039
+ 0x11300: 84,
2040
+ 0x11301: 84,
2041
+ 0x1133b: 84,
2042
+ 0x1133c: 84,
2043
+ 0x11340: 84,
2044
+ 0x11366: 84,
2045
+ 0x11367: 84,
2046
+ 0x11368: 84,
2047
+ 0x11369: 84,
2048
+ 0x1136a: 84,
2049
+ 0x1136b: 84,
2050
+ 0x1136c: 84,
2051
+ 0x11370: 84,
2052
+ 0x11371: 84,
2053
+ 0x11372: 84,
2054
+ 0x11373: 84,
2055
+ 0x11374: 84,
2056
+ 0x11438: 84,
2057
+ 0x11439: 84,
2058
+ 0x1143a: 84,
2059
+ 0x1143b: 84,
2060
+ 0x1143c: 84,
2061
+ 0x1143d: 84,
2062
+ 0x1143e: 84,
2063
+ 0x1143f: 84,
2064
+ 0x11442: 84,
2065
+ 0x11443: 84,
2066
+ 0x11444: 84,
2067
+ 0x11446: 84,
2068
+ 0x1145e: 84,
2069
+ 0x114b3: 84,
2070
+ 0x114b4: 84,
2071
+ 0x114b5: 84,
2072
+ 0x114b6: 84,
2073
+ 0x114b7: 84,
2074
+ 0x114b8: 84,
2075
+ 0x114ba: 84,
2076
+ 0x114bf: 84,
2077
+ 0x114c0: 84,
2078
+ 0x114c2: 84,
2079
+ 0x114c3: 84,
2080
+ 0x115b2: 84,
2081
+ 0x115b3: 84,
2082
+ 0x115b4: 84,
2083
+ 0x115b5: 84,
2084
+ 0x115bc: 84,
2085
+ 0x115bd: 84,
2086
+ 0x115bf: 84,
2087
+ 0x115c0: 84,
2088
+ 0x115dc: 84,
2089
+ 0x115dd: 84,
2090
+ 0x11633: 84,
2091
+ 0x11634: 84,
2092
+ 0x11635: 84,
2093
+ 0x11636: 84,
2094
+ 0x11637: 84,
2095
+ 0x11638: 84,
2096
+ 0x11639: 84,
2097
+ 0x1163a: 84,
2098
+ 0x1163d: 84,
2099
+ 0x1163f: 84,
2100
+ 0x11640: 84,
2101
+ 0x116ab: 84,
2102
+ 0x116ad: 84,
2103
+ 0x116b0: 84,
2104
+ 0x116b1: 84,
2105
+ 0x116b2: 84,
2106
+ 0x116b3: 84,
2107
+ 0x116b4: 84,
2108
+ 0x116b5: 84,
2109
+ 0x116b7: 84,
2110
+ 0x1171d: 84,
2111
+ 0x1171e: 84,
2112
+ 0x1171f: 84,
2113
+ 0x11722: 84,
2114
+ 0x11723: 84,
2115
+ 0x11724: 84,
2116
+ 0x11725: 84,
2117
+ 0x11727: 84,
2118
+ 0x11728: 84,
2119
+ 0x11729: 84,
2120
+ 0x1172a: 84,
2121
+ 0x1172b: 84,
2122
+ 0x1182f: 84,
2123
+ 0x11830: 84,
2124
+ 0x11831: 84,
2125
+ 0x11832: 84,
2126
+ 0x11833: 84,
2127
+ 0x11834: 84,
2128
+ 0x11835: 84,
2129
+ 0x11836: 84,
2130
+ 0x11837: 84,
2131
+ 0x11839: 84,
2132
+ 0x1183a: 84,
2133
+ 0x1193b: 84,
2134
+ 0x1193c: 84,
2135
+ 0x1193e: 84,
2136
+ 0x11943: 84,
2137
+ 0x119d4: 84,
2138
+ 0x119d5: 84,
2139
+ 0x119d6: 84,
2140
+ 0x119d7: 84,
2141
+ 0x119da: 84,
2142
+ 0x119db: 84,
2143
+ 0x119e0: 84,
2144
+ 0x11a01: 84,
2145
+ 0x11a02: 84,
2146
+ 0x11a03: 84,
2147
+ 0x11a04: 84,
2148
+ 0x11a05: 84,
2149
+ 0x11a06: 84,
2150
+ 0x11a07: 84,
2151
+ 0x11a08: 84,
2152
+ 0x11a09: 84,
2153
+ 0x11a0a: 84,
2154
+ 0x11a33: 84,
2155
+ 0x11a34: 84,
2156
+ 0x11a35: 84,
2157
+ 0x11a36: 84,
2158
+ 0x11a37: 84,
2159
+ 0x11a38: 84,
2160
+ 0x11a3b: 84,
2161
+ 0x11a3c: 84,
2162
+ 0x11a3d: 84,
2163
+ 0x11a3e: 84,
2164
+ 0x11a47: 84,
2165
+ 0x11a51: 84,
2166
+ 0x11a52: 84,
2167
+ 0x11a53: 84,
2168
+ 0x11a54: 84,
2169
+ 0x11a55: 84,
2170
+ 0x11a56: 84,
2171
+ 0x11a59: 84,
2172
+ 0x11a5a: 84,
2173
+ 0x11a5b: 84,
2174
+ 0x11a8a: 84,
2175
+ 0x11a8b: 84,
2176
+ 0x11a8c: 84,
2177
+ 0x11a8d: 84,
2178
+ 0x11a8e: 84,
2179
+ 0x11a8f: 84,
2180
+ 0x11a90: 84,
2181
+ 0x11a91: 84,
2182
+ 0x11a92: 84,
2183
+ 0x11a93: 84,
2184
+ 0x11a94: 84,
2185
+ 0x11a95: 84,
2186
+ 0x11a96: 84,
2187
+ 0x11a98: 84,
2188
+ 0x11a99: 84,
2189
+ 0x11c30: 84,
2190
+ 0x11c31: 84,
2191
+ 0x11c32: 84,
2192
+ 0x11c33: 84,
2193
+ 0x11c34: 84,
2194
+ 0x11c35: 84,
2195
+ 0x11c36: 84,
2196
+ 0x11c38: 84,
2197
+ 0x11c39: 84,
2198
+ 0x11c3a: 84,
2199
+ 0x11c3b: 84,
2200
+ 0x11c3c: 84,
2201
+ 0x11c3d: 84,
2202
+ 0x11c3f: 84,
2203
+ 0x11c92: 84,
2204
+ 0x11c93: 84,
2205
+ 0x11c94: 84,
2206
+ 0x11c95: 84,
2207
+ 0x11c96: 84,
2208
+ 0x11c97: 84,
2209
+ 0x11c98: 84,
2210
+ 0x11c99: 84,
2211
+ 0x11c9a: 84,
2212
+ 0x11c9b: 84,
2213
+ 0x11c9c: 84,
2214
+ 0x11c9d: 84,
2215
+ 0x11c9e: 84,
2216
+ 0x11c9f: 84,
2217
+ 0x11ca0: 84,
2218
+ 0x11ca1: 84,
2219
+ 0x11ca2: 84,
2220
+ 0x11ca3: 84,
2221
+ 0x11ca4: 84,
2222
+ 0x11ca5: 84,
2223
+ 0x11ca6: 84,
2224
+ 0x11ca7: 84,
2225
+ 0x11caa: 84,
2226
+ 0x11cab: 84,
2227
+ 0x11cac: 84,
2228
+ 0x11cad: 84,
2229
+ 0x11cae: 84,
2230
+ 0x11caf: 84,
2231
+ 0x11cb0: 84,
2232
+ 0x11cb2: 84,
2233
+ 0x11cb3: 84,
2234
+ 0x11cb5: 84,
2235
+ 0x11cb6: 84,
2236
+ 0x11d31: 84,
2237
+ 0x11d32: 84,
2238
+ 0x11d33: 84,
2239
+ 0x11d34: 84,
2240
+ 0x11d35: 84,
2241
+ 0x11d36: 84,
2242
+ 0x11d3a: 84,
2243
+ 0x11d3c: 84,
2244
+ 0x11d3d: 84,
2245
+ 0x11d3f: 84,
2246
+ 0x11d40: 84,
2247
+ 0x11d41: 84,
2248
+ 0x11d42: 84,
2249
+ 0x11d43: 84,
2250
+ 0x11d44: 84,
2251
+ 0x11d45: 84,
2252
+ 0x11d47: 84,
2253
+ 0x11d90: 84,
2254
+ 0x11d91: 84,
2255
+ 0x11d95: 84,
2256
+ 0x11d97: 84,
2257
+ 0x11ef3: 84,
2258
+ 0x11ef4: 84,
2259
+ 0x11f00: 84,
2260
+ 0x11f01: 84,
2261
+ 0x11f36: 84,
2262
+ 0x11f37: 84,
2263
+ 0x11f38: 84,
2264
+ 0x11f39: 84,
2265
+ 0x11f3a: 84,
2266
+ 0x11f40: 84,
2267
+ 0x11f42: 84,
2268
+ 0x13430: 84,
2269
+ 0x13431: 84,
2270
+ 0x13432: 84,
2271
+ 0x13433: 84,
2272
+ 0x13434: 84,
2273
+ 0x13435: 84,
2274
+ 0x13436: 84,
2275
+ 0x13437: 84,
2276
+ 0x13438: 84,
2277
+ 0x13439: 84,
2278
+ 0x1343a: 84,
2279
+ 0x1343b: 84,
2280
+ 0x1343c: 84,
2281
+ 0x1343d: 84,
2282
+ 0x1343e: 84,
2283
+ 0x1343f: 84,
2284
+ 0x13440: 84,
2285
+ 0x13447: 84,
2286
+ 0x13448: 84,
2287
+ 0x13449: 84,
2288
+ 0x1344a: 84,
2289
+ 0x1344b: 84,
2290
+ 0x1344c: 84,
2291
+ 0x1344d: 84,
2292
+ 0x1344e: 84,
2293
+ 0x1344f: 84,
2294
+ 0x13450: 84,
2295
+ 0x13451: 84,
2296
+ 0x13452: 84,
2297
+ 0x13453: 84,
2298
+ 0x13454: 84,
2299
+ 0x13455: 84,
2300
+ 0x16af0: 84,
2301
+ 0x16af1: 84,
2302
+ 0x16af2: 84,
2303
+ 0x16af3: 84,
2304
+ 0x16af4: 84,
2305
+ 0x16b30: 84,
2306
+ 0x16b31: 84,
2307
+ 0x16b32: 84,
2308
+ 0x16b33: 84,
2309
+ 0x16b34: 84,
2310
+ 0x16b35: 84,
2311
+ 0x16b36: 84,
2312
+ 0x16f4f: 84,
2313
+ 0x16f8f: 84,
2314
+ 0x16f90: 84,
2315
+ 0x16f91: 84,
2316
+ 0x16f92: 84,
2317
+ 0x16fe4: 84,
2318
+ 0x1bc9d: 84,
2319
+ 0x1bc9e: 84,
2320
+ 0x1bca0: 84,
2321
+ 0x1bca1: 84,
2322
+ 0x1bca2: 84,
2323
+ 0x1bca3: 84,
2324
+ 0x1cf00: 84,
2325
+ 0x1cf01: 84,
2326
+ 0x1cf02: 84,
2327
+ 0x1cf03: 84,
2328
+ 0x1cf04: 84,
2329
+ 0x1cf05: 84,
2330
+ 0x1cf06: 84,
2331
+ 0x1cf07: 84,
2332
+ 0x1cf08: 84,
2333
+ 0x1cf09: 84,
2334
+ 0x1cf0a: 84,
2335
+ 0x1cf0b: 84,
2336
+ 0x1cf0c: 84,
2337
+ 0x1cf0d: 84,
2338
+ 0x1cf0e: 84,
2339
+ 0x1cf0f: 84,
2340
+ 0x1cf10: 84,
2341
+ 0x1cf11: 84,
2342
+ 0x1cf12: 84,
2343
+ 0x1cf13: 84,
2344
+ 0x1cf14: 84,
2345
+ 0x1cf15: 84,
2346
+ 0x1cf16: 84,
2347
+ 0x1cf17: 84,
2348
+ 0x1cf18: 84,
2349
+ 0x1cf19: 84,
2350
+ 0x1cf1a: 84,
2351
+ 0x1cf1b: 84,
2352
+ 0x1cf1c: 84,
2353
+ 0x1cf1d: 84,
2354
+ 0x1cf1e: 84,
2355
+ 0x1cf1f: 84,
2356
+ 0x1cf20: 84,
2357
+ 0x1cf21: 84,
2358
+ 0x1cf22: 84,
2359
+ 0x1cf23: 84,
2360
+ 0x1cf24: 84,
2361
+ 0x1cf25: 84,
2362
+ 0x1cf26: 84,
2363
+ 0x1cf27: 84,
2364
+ 0x1cf28: 84,
2365
+ 0x1cf29: 84,
2366
+ 0x1cf2a: 84,
2367
+ 0x1cf2b: 84,
2368
+ 0x1cf2c: 84,
2369
+ 0x1cf2d: 84,
2370
+ 0x1cf30: 84,
2371
+ 0x1cf31: 84,
2372
+ 0x1cf32: 84,
2373
+ 0x1cf33: 84,
2374
+ 0x1cf34: 84,
2375
+ 0x1cf35: 84,
2376
+ 0x1cf36: 84,
2377
+ 0x1cf37: 84,
2378
+ 0x1cf38: 84,
2379
+ 0x1cf39: 84,
2380
+ 0x1cf3a: 84,
2381
+ 0x1cf3b: 84,
2382
+ 0x1cf3c: 84,
2383
+ 0x1cf3d: 84,
2384
+ 0x1cf3e: 84,
2385
+ 0x1cf3f: 84,
2386
+ 0x1cf40: 84,
2387
+ 0x1cf41: 84,
2388
+ 0x1cf42: 84,
2389
+ 0x1cf43: 84,
2390
+ 0x1cf44: 84,
2391
+ 0x1cf45: 84,
2392
+ 0x1cf46: 84,
2393
+ 0x1d167: 84,
2394
+ 0x1d168: 84,
2395
+ 0x1d169: 84,
2396
+ 0x1d173: 84,
2397
+ 0x1d174: 84,
2398
+ 0x1d175: 84,
2399
+ 0x1d176: 84,
2400
+ 0x1d177: 84,
2401
+ 0x1d178: 84,
2402
+ 0x1d179: 84,
2403
+ 0x1d17a: 84,
2404
+ 0x1d17b: 84,
2405
+ 0x1d17c: 84,
2406
+ 0x1d17d: 84,
2407
+ 0x1d17e: 84,
2408
+ 0x1d17f: 84,
2409
+ 0x1d180: 84,
2410
+ 0x1d181: 84,
2411
+ 0x1d182: 84,
2412
+ 0x1d185: 84,
2413
+ 0x1d186: 84,
2414
+ 0x1d187: 84,
2415
+ 0x1d188: 84,
2416
+ 0x1d189: 84,
2417
+ 0x1d18a: 84,
2418
+ 0x1d18b: 84,
2419
+ 0x1d1aa: 84,
2420
+ 0x1d1ab: 84,
2421
+ 0x1d1ac: 84,
2422
+ 0x1d1ad: 84,
2423
+ 0x1d242: 84,
2424
+ 0x1d243: 84,
2425
+ 0x1d244: 84,
2426
+ 0x1da00: 84,
2427
+ 0x1da01: 84,
2428
+ 0x1da02: 84,
2429
+ 0x1da03: 84,
2430
+ 0x1da04: 84,
2431
+ 0x1da05: 84,
2432
+ 0x1da06: 84,
2433
+ 0x1da07: 84,
2434
+ 0x1da08: 84,
2435
+ 0x1da09: 84,
2436
+ 0x1da0a: 84,
2437
+ 0x1da0b: 84,
2438
+ 0x1da0c: 84,
2439
+ 0x1da0d: 84,
2440
+ 0x1da0e: 84,
2441
+ 0x1da0f: 84,
2442
+ 0x1da10: 84,
2443
+ 0x1da11: 84,
2444
+ 0x1da12: 84,
2445
+ 0x1da13: 84,
2446
+ 0x1da14: 84,
2447
+ 0x1da15: 84,
2448
+ 0x1da16: 84,
2449
+ 0x1da17: 84,
2450
+ 0x1da18: 84,
2451
+ 0x1da19: 84,
2452
+ 0x1da1a: 84,
2453
+ 0x1da1b: 84,
2454
+ 0x1da1c: 84,
2455
+ 0x1da1d: 84,
2456
+ 0x1da1e: 84,
2457
+ 0x1da1f: 84,
2458
+ 0x1da20: 84,
2459
+ 0x1da21: 84,
2460
+ 0x1da22: 84,
2461
+ 0x1da23: 84,
2462
+ 0x1da24: 84,
2463
+ 0x1da25: 84,
2464
+ 0x1da26: 84,
2465
+ 0x1da27: 84,
2466
+ 0x1da28: 84,
2467
+ 0x1da29: 84,
2468
+ 0x1da2a: 84,
2469
+ 0x1da2b: 84,
2470
+ 0x1da2c: 84,
2471
+ 0x1da2d: 84,
2472
+ 0x1da2e: 84,
2473
+ 0x1da2f: 84,
2474
+ 0x1da30: 84,
2475
+ 0x1da31: 84,
2476
+ 0x1da32: 84,
2477
+ 0x1da33: 84,
2478
+ 0x1da34: 84,
2479
+ 0x1da35: 84,
2480
+ 0x1da36: 84,
2481
+ 0x1da3b: 84,
2482
+ 0x1da3c: 84,
2483
+ 0x1da3d: 84,
2484
+ 0x1da3e: 84,
2485
+ 0x1da3f: 84,
2486
+ 0x1da40: 84,
2487
+ 0x1da41: 84,
2488
+ 0x1da42: 84,
2489
+ 0x1da43: 84,
2490
+ 0x1da44: 84,
2491
+ 0x1da45: 84,
2492
+ 0x1da46: 84,
2493
+ 0x1da47: 84,
2494
+ 0x1da48: 84,
2495
+ 0x1da49: 84,
2496
+ 0x1da4a: 84,
2497
+ 0x1da4b: 84,
2498
+ 0x1da4c: 84,
2499
+ 0x1da4d: 84,
2500
+ 0x1da4e: 84,
2501
+ 0x1da4f: 84,
2502
+ 0x1da50: 84,
2503
+ 0x1da51: 84,
2504
+ 0x1da52: 84,
2505
+ 0x1da53: 84,
2506
+ 0x1da54: 84,
2507
+ 0x1da55: 84,
2508
+ 0x1da56: 84,
2509
+ 0x1da57: 84,
2510
+ 0x1da58: 84,
2511
+ 0x1da59: 84,
2512
+ 0x1da5a: 84,
2513
+ 0x1da5b: 84,
2514
+ 0x1da5c: 84,
2515
+ 0x1da5d: 84,
2516
+ 0x1da5e: 84,
2517
+ 0x1da5f: 84,
2518
+ 0x1da60: 84,
2519
+ 0x1da61: 84,
2520
+ 0x1da62: 84,
2521
+ 0x1da63: 84,
2522
+ 0x1da64: 84,
2523
+ 0x1da65: 84,
2524
+ 0x1da66: 84,
2525
+ 0x1da67: 84,
2526
+ 0x1da68: 84,
2527
+ 0x1da69: 84,
2528
+ 0x1da6a: 84,
2529
+ 0x1da6b: 84,
2530
+ 0x1da6c: 84,
2531
+ 0x1da75: 84,
2532
+ 0x1da84: 84,
2533
+ 0x1da9b: 84,
2534
+ 0x1da9c: 84,
2535
+ 0x1da9d: 84,
2536
+ 0x1da9e: 84,
2537
+ 0x1da9f: 84,
2538
+ 0x1daa1: 84,
2539
+ 0x1daa2: 84,
2540
+ 0x1daa3: 84,
2541
+ 0x1daa4: 84,
2542
+ 0x1daa5: 84,
2543
+ 0x1daa6: 84,
2544
+ 0x1daa7: 84,
2545
+ 0x1daa8: 84,
2546
+ 0x1daa9: 84,
2547
+ 0x1daaa: 84,
2548
+ 0x1daab: 84,
2549
+ 0x1daac: 84,
2550
+ 0x1daad: 84,
2551
+ 0x1daae: 84,
2552
+ 0x1daaf: 84,
2553
+ 0x1e000: 84,
2554
+ 0x1e001: 84,
2555
+ 0x1e002: 84,
2556
+ 0x1e003: 84,
2557
+ 0x1e004: 84,
2558
+ 0x1e005: 84,
2559
+ 0x1e006: 84,
2560
+ 0x1e008: 84,
2561
+ 0x1e009: 84,
2562
+ 0x1e00a: 84,
2563
+ 0x1e00b: 84,
2564
+ 0x1e00c: 84,
2565
+ 0x1e00d: 84,
2566
+ 0x1e00e: 84,
2567
+ 0x1e00f: 84,
2568
+ 0x1e010: 84,
2569
+ 0x1e011: 84,
2570
+ 0x1e012: 84,
2571
+ 0x1e013: 84,
2572
+ 0x1e014: 84,
2573
+ 0x1e015: 84,
2574
+ 0x1e016: 84,
2575
+ 0x1e017: 84,
2576
+ 0x1e018: 84,
2577
+ 0x1e01b: 84,
2578
+ 0x1e01c: 84,
2579
+ 0x1e01d: 84,
2580
+ 0x1e01e: 84,
2581
+ 0x1e01f: 84,
2582
+ 0x1e020: 84,
2583
+ 0x1e021: 84,
2584
+ 0x1e023: 84,
2585
+ 0x1e024: 84,
2586
+ 0x1e026: 84,
2587
+ 0x1e027: 84,
2588
+ 0x1e028: 84,
2589
+ 0x1e029: 84,
2590
+ 0x1e02a: 84,
2591
+ 0x1e08f: 84,
2592
+ 0x1e130: 84,
2593
+ 0x1e131: 84,
2594
+ 0x1e132: 84,
2595
+ 0x1e133: 84,
2596
+ 0x1e134: 84,
2597
+ 0x1e135: 84,
2598
+ 0x1e136: 84,
2599
+ 0x1e2ae: 84,
2600
+ 0x1e2ec: 84,
2601
+ 0x1e2ed: 84,
2602
+ 0x1e2ee: 84,
2603
+ 0x1e2ef: 84,
2604
+ 0x1e4ec: 84,
2605
+ 0x1e4ed: 84,
2606
+ 0x1e4ee: 84,
2607
+ 0x1e4ef: 84,
2608
+ 0x1e8d0: 84,
2609
+ 0x1e8d1: 84,
2610
+ 0x1e8d2: 84,
2611
+ 0x1e8d3: 84,
2612
+ 0x1e8d4: 84,
2613
+ 0x1e8d5: 84,
2614
+ 0x1e8d6: 84,
2615
+ 0x1e900: 68,
2616
+ 0x1e901: 68,
2617
+ 0x1e902: 68,
2618
+ 0x1e903: 68,
2619
+ 0x1e904: 68,
2620
+ 0x1e905: 68,
2621
+ 0x1e906: 68,
2622
+ 0x1e907: 68,
2623
+ 0x1e908: 68,
2624
+ 0x1e909: 68,
2625
+ 0x1e90a: 68,
2626
+ 0x1e90b: 68,
2627
+ 0x1e90c: 68,
2628
+ 0x1e90d: 68,
2629
+ 0x1e90e: 68,
2630
+ 0x1e90f: 68,
2631
+ 0x1e910: 68,
2632
+ 0x1e911: 68,
2633
+ 0x1e912: 68,
2634
+ 0x1e913: 68,
2635
+ 0x1e914: 68,
2636
+ 0x1e915: 68,
2637
+ 0x1e916: 68,
2638
+ 0x1e917: 68,
2639
+ 0x1e918: 68,
2640
+ 0x1e919: 68,
2641
+ 0x1e91a: 68,
2642
+ 0x1e91b: 68,
2643
+ 0x1e91c: 68,
2644
+ 0x1e91d: 68,
2645
+ 0x1e91e: 68,
2646
+ 0x1e91f: 68,
2647
+ 0x1e920: 68,
2648
+ 0x1e921: 68,
2649
+ 0x1e922: 68,
2650
+ 0x1e923: 68,
2651
+ 0x1e924: 68,
2652
+ 0x1e925: 68,
2653
+ 0x1e926: 68,
2654
+ 0x1e927: 68,
2655
+ 0x1e928: 68,
2656
+ 0x1e929: 68,
2657
+ 0x1e92a: 68,
2658
+ 0x1e92b: 68,
2659
+ 0x1e92c: 68,
2660
+ 0x1e92d: 68,
2661
+ 0x1e92e: 68,
2662
+ 0x1e92f: 68,
2663
+ 0x1e930: 68,
2664
+ 0x1e931: 68,
2665
+ 0x1e932: 68,
2666
+ 0x1e933: 68,
2667
+ 0x1e934: 68,
2668
+ 0x1e935: 68,
2669
+ 0x1e936: 68,
2670
+ 0x1e937: 68,
2671
+ 0x1e938: 68,
2672
+ 0x1e939: 68,
2673
+ 0x1e93a: 68,
2674
+ 0x1e93b: 68,
2675
+ 0x1e93c: 68,
2676
+ 0x1e93d: 68,
2677
+ 0x1e93e: 68,
2678
+ 0x1e93f: 68,
2679
+ 0x1e940: 68,
2680
+ 0x1e941: 68,
2681
+ 0x1e942: 68,
2682
+ 0x1e943: 68,
2683
+ 0x1e944: 84,
2684
+ 0x1e945: 84,
2685
+ 0x1e946: 84,
2686
+ 0x1e947: 84,
2687
+ 0x1e948: 84,
2688
+ 0x1e949: 84,
2689
+ 0x1e94a: 84,
2690
+ 0x1e94b: 84,
2691
+ 0xe0001: 84,
2692
+ 0xe0020: 84,
2693
+ 0xe0021: 84,
2694
+ 0xe0022: 84,
2695
+ 0xe0023: 84,
2696
+ 0xe0024: 84,
2697
+ 0xe0025: 84,
2698
+ 0xe0026: 84,
2699
+ 0xe0027: 84,
2700
+ 0xe0028: 84,
2701
+ 0xe0029: 84,
2702
+ 0xe002a: 84,
2703
+ 0xe002b: 84,
2704
+ 0xe002c: 84,
2705
+ 0xe002d: 84,
2706
+ 0xe002e: 84,
2707
+ 0xe002f: 84,
2708
+ 0xe0030: 84,
2709
+ 0xe0031: 84,
2710
+ 0xe0032: 84,
2711
+ 0xe0033: 84,
2712
+ 0xe0034: 84,
2713
+ 0xe0035: 84,
2714
+ 0xe0036: 84,
2715
+ 0xe0037: 84,
2716
+ 0xe0038: 84,
2717
+ 0xe0039: 84,
2718
+ 0xe003a: 84,
2719
+ 0xe003b: 84,
2720
+ 0xe003c: 84,
2721
+ 0xe003d: 84,
2722
+ 0xe003e: 84,
2723
+ 0xe003f: 84,
2724
+ 0xe0040: 84,
2725
+ 0xe0041: 84,
2726
+ 0xe0042: 84,
2727
+ 0xe0043: 84,
2728
+ 0xe0044: 84,
2729
+ 0xe0045: 84,
2730
+ 0xe0046: 84,
2731
+ 0xe0047: 84,
2732
+ 0xe0048: 84,
2733
+ 0xe0049: 84,
2734
+ 0xe004a: 84,
2735
+ 0xe004b: 84,
2736
+ 0xe004c: 84,
2737
+ 0xe004d: 84,
2738
+ 0xe004e: 84,
2739
+ 0xe004f: 84,
2740
+ 0xe0050: 84,
2741
+ 0xe0051: 84,
2742
+ 0xe0052: 84,
2743
+ 0xe0053: 84,
2744
+ 0xe0054: 84,
2745
+ 0xe0055: 84,
2746
+ 0xe0056: 84,
2747
+ 0xe0057: 84,
2748
+ 0xe0058: 84,
2749
+ 0xe0059: 84,
2750
+ 0xe005a: 84,
2751
+ 0xe005b: 84,
2752
+ 0xe005c: 84,
2753
+ 0xe005d: 84,
2754
+ 0xe005e: 84,
2755
+ 0xe005f: 84,
2756
+ 0xe0060: 84,
2757
+ 0xe0061: 84,
2758
+ 0xe0062: 84,
2759
+ 0xe0063: 84,
2760
+ 0xe0064: 84,
2761
+ 0xe0065: 84,
2762
+ 0xe0066: 84,
2763
+ 0xe0067: 84,
2764
+ 0xe0068: 84,
2765
+ 0xe0069: 84,
2766
+ 0xe006a: 84,
2767
+ 0xe006b: 84,
2768
+ 0xe006c: 84,
2769
+ 0xe006d: 84,
2770
+ 0xe006e: 84,
2771
+ 0xe006f: 84,
2772
+ 0xe0070: 84,
2773
+ 0xe0071: 84,
2774
+ 0xe0072: 84,
2775
+ 0xe0073: 84,
2776
+ 0xe0074: 84,
2777
+ 0xe0075: 84,
2778
+ 0xe0076: 84,
2779
+ 0xe0077: 84,
2780
+ 0xe0078: 84,
2781
+ 0xe0079: 84,
2782
+ 0xe007a: 84,
2783
+ 0xe007b: 84,
2784
+ 0xe007c: 84,
2785
+ 0xe007d: 84,
2786
+ 0xe007e: 84,
2787
+ 0xe007f: 84,
2788
+ 0xe0100: 84,
2789
+ 0xe0101: 84,
2790
+ 0xe0102: 84,
2791
+ 0xe0103: 84,
2792
+ 0xe0104: 84,
2793
+ 0xe0105: 84,
2794
+ 0xe0106: 84,
2795
+ 0xe0107: 84,
2796
+ 0xe0108: 84,
2797
+ 0xe0109: 84,
2798
+ 0xe010a: 84,
2799
+ 0xe010b: 84,
2800
+ 0xe010c: 84,
2801
+ 0xe010d: 84,
2802
+ 0xe010e: 84,
2803
+ 0xe010f: 84,
2804
+ 0xe0110: 84,
2805
+ 0xe0111: 84,
2806
+ 0xe0112: 84,
2807
+ 0xe0113: 84,
2808
+ 0xe0114: 84,
2809
+ 0xe0115: 84,
2810
+ 0xe0116: 84,
2811
+ 0xe0117: 84,
2812
+ 0xe0118: 84,
2813
+ 0xe0119: 84,
2814
+ 0xe011a: 84,
2815
+ 0xe011b: 84,
2816
+ 0xe011c: 84,
2817
+ 0xe011d: 84,
2818
+ 0xe011e: 84,
2819
+ 0xe011f: 84,
2820
+ 0xe0120: 84,
2821
+ 0xe0121: 84,
2822
+ 0xe0122: 84,
2823
+ 0xe0123: 84,
2824
+ 0xe0124: 84,
2825
+ 0xe0125: 84,
2826
+ 0xe0126: 84,
2827
+ 0xe0127: 84,
2828
+ 0xe0128: 84,
2829
+ 0xe0129: 84,
2830
+ 0xe012a: 84,
2831
+ 0xe012b: 84,
2832
+ 0xe012c: 84,
2833
+ 0xe012d: 84,
2834
+ 0xe012e: 84,
2835
+ 0xe012f: 84,
2836
+ 0xe0130: 84,
2837
+ 0xe0131: 84,
2838
+ 0xe0132: 84,
2839
+ 0xe0133: 84,
2840
+ 0xe0134: 84,
2841
+ 0xe0135: 84,
2842
+ 0xe0136: 84,
2843
+ 0xe0137: 84,
2844
+ 0xe0138: 84,
2845
+ 0xe0139: 84,
2846
+ 0xe013a: 84,
2847
+ 0xe013b: 84,
2848
+ 0xe013c: 84,
2849
+ 0xe013d: 84,
2850
+ 0xe013e: 84,
2851
+ 0xe013f: 84,
2852
+ 0xe0140: 84,
2853
+ 0xe0141: 84,
2854
+ 0xe0142: 84,
2855
+ 0xe0143: 84,
2856
+ 0xe0144: 84,
2857
+ 0xe0145: 84,
2858
+ 0xe0146: 84,
2859
+ 0xe0147: 84,
2860
+ 0xe0148: 84,
2861
+ 0xe0149: 84,
2862
+ 0xe014a: 84,
2863
+ 0xe014b: 84,
2864
+ 0xe014c: 84,
2865
+ 0xe014d: 84,
2866
+ 0xe014e: 84,
2867
+ 0xe014f: 84,
2868
+ 0xe0150: 84,
2869
+ 0xe0151: 84,
2870
+ 0xe0152: 84,
2871
+ 0xe0153: 84,
2872
+ 0xe0154: 84,
2873
+ 0xe0155: 84,
2874
+ 0xe0156: 84,
2875
+ 0xe0157: 84,
2876
+ 0xe0158: 84,
2877
+ 0xe0159: 84,
2878
+ 0xe015a: 84,
2879
+ 0xe015b: 84,
2880
+ 0xe015c: 84,
2881
+ 0xe015d: 84,
2882
+ 0xe015e: 84,
2883
+ 0xe015f: 84,
2884
+ 0xe0160: 84,
2885
+ 0xe0161: 84,
2886
+ 0xe0162: 84,
2887
+ 0xe0163: 84,
2888
+ 0xe0164: 84,
2889
+ 0xe0165: 84,
2890
+ 0xe0166: 84,
2891
+ 0xe0167: 84,
2892
+ 0xe0168: 84,
2893
+ 0xe0169: 84,
2894
+ 0xe016a: 84,
2895
+ 0xe016b: 84,
2896
+ 0xe016c: 84,
2897
+ 0xe016d: 84,
2898
+ 0xe016e: 84,
2899
+ 0xe016f: 84,
2900
+ 0xe0170: 84,
2901
+ 0xe0171: 84,
2902
+ 0xe0172: 84,
2903
+ 0xe0173: 84,
2904
+ 0xe0174: 84,
2905
+ 0xe0175: 84,
2906
+ 0xe0176: 84,
2907
+ 0xe0177: 84,
2908
+ 0xe0178: 84,
2909
+ 0xe0179: 84,
2910
+ 0xe017a: 84,
2911
+ 0xe017b: 84,
2912
+ 0xe017c: 84,
2913
+ 0xe017d: 84,
2914
+ 0xe017e: 84,
2915
+ 0xe017f: 84,
2916
+ 0xe0180: 84,
2917
+ 0xe0181: 84,
2918
+ 0xe0182: 84,
2919
+ 0xe0183: 84,
2920
+ 0xe0184: 84,
2921
+ 0xe0185: 84,
2922
+ 0xe0186: 84,
2923
+ 0xe0187: 84,
2924
+ 0xe0188: 84,
2925
+ 0xe0189: 84,
2926
+ 0xe018a: 84,
2927
+ 0xe018b: 84,
2928
+ 0xe018c: 84,
2929
+ 0xe018d: 84,
2930
+ 0xe018e: 84,
2931
+ 0xe018f: 84,
2932
+ 0xe0190: 84,
2933
+ 0xe0191: 84,
2934
+ 0xe0192: 84,
2935
+ 0xe0193: 84,
2936
+ 0xe0194: 84,
2937
+ 0xe0195: 84,
2938
+ 0xe0196: 84,
2939
+ 0xe0197: 84,
2940
+ 0xe0198: 84,
2941
+ 0xe0199: 84,
2942
+ 0xe019a: 84,
2943
+ 0xe019b: 84,
2944
+ 0xe019c: 84,
2945
+ 0xe019d: 84,
2946
+ 0xe019e: 84,
2947
+ 0xe019f: 84,
2948
+ 0xe01a0: 84,
2949
+ 0xe01a1: 84,
2950
+ 0xe01a2: 84,
2951
+ 0xe01a3: 84,
2952
+ 0xe01a4: 84,
2953
+ 0xe01a5: 84,
2954
+ 0xe01a6: 84,
2955
+ 0xe01a7: 84,
2956
+ 0xe01a8: 84,
2957
+ 0xe01a9: 84,
2958
+ 0xe01aa: 84,
2959
+ 0xe01ab: 84,
2960
+ 0xe01ac: 84,
2961
+ 0xe01ad: 84,
2962
+ 0xe01ae: 84,
2963
+ 0xe01af: 84,
2964
+ 0xe01b0: 84,
2965
+ 0xe01b1: 84,
2966
+ 0xe01b2: 84,
2967
+ 0xe01b3: 84,
2968
+ 0xe01b4: 84,
2969
+ 0xe01b5: 84,
2970
+ 0xe01b6: 84,
2971
+ 0xe01b7: 84,
2972
+ 0xe01b8: 84,
2973
+ 0xe01b9: 84,
2974
+ 0xe01ba: 84,
2975
+ 0xe01bb: 84,
2976
+ 0xe01bc: 84,
2977
+ 0xe01bd: 84,
2978
+ 0xe01be: 84,
2979
+ 0xe01bf: 84,
2980
+ 0xe01c0: 84,
2981
+ 0xe01c1: 84,
2982
+ 0xe01c2: 84,
2983
+ 0xe01c3: 84,
2984
+ 0xe01c4: 84,
2985
+ 0xe01c5: 84,
2986
+ 0xe01c6: 84,
2987
+ 0xe01c7: 84,
2988
+ 0xe01c8: 84,
2989
+ 0xe01c9: 84,
2990
+ 0xe01ca: 84,
2991
+ 0xe01cb: 84,
2992
+ 0xe01cc: 84,
2993
+ 0xe01cd: 84,
2994
+ 0xe01ce: 84,
2995
+ 0xe01cf: 84,
2996
+ 0xe01d0: 84,
2997
+ 0xe01d1: 84,
2998
+ 0xe01d2: 84,
2999
+ 0xe01d3: 84,
3000
+ 0xe01d4: 84,
3001
+ 0xe01d5: 84,
3002
+ 0xe01d6: 84,
3003
+ 0xe01d7: 84,
3004
+ 0xe01d8: 84,
3005
+ 0xe01d9: 84,
3006
+ 0xe01da: 84,
3007
+ 0xe01db: 84,
3008
+ 0xe01dc: 84,
3009
+ 0xe01dd: 84,
3010
+ 0xe01de: 84,
3011
+ 0xe01df: 84,
3012
+ 0xe01e0: 84,
3013
+ 0xe01e1: 84,
3014
+ 0xe01e2: 84,
3015
+ 0xe01e3: 84,
3016
+ 0xe01e4: 84,
3017
+ 0xe01e5: 84,
3018
+ 0xe01e6: 84,
3019
+ 0xe01e7: 84,
3020
+ 0xe01e8: 84,
3021
+ 0xe01e9: 84,
3022
+ 0xe01ea: 84,
3023
+ 0xe01eb: 84,
3024
+ 0xe01ec: 84,
3025
+ 0xe01ed: 84,
3026
+ 0xe01ee: 84,
3027
+ 0xe01ef: 84,
3028
+ }
3029
+ codepoint_classes = {
3030
+ 'PVALID': (
3031
+ 0x2d0000002e,
3032
+ 0x300000003a,
3033
+ 0x610000007b,
3034
+ 0xdf000000f7,
3035
+ 0xf800000100,
3036
+ 0x10100000102,
3037
+ 0x10300000104,
3038
+ 0x10500000106,
3039
+ 0x10700000108,
3040
+ 0x1090000010a,
3041
+ 0x10b0000010c,
3042
+ 0x10d0000010e,
3043
+ 0x10f00000110,
3044
+ 0x11100000112,
3045
+ 0x11300000114,
3046
+ 0x11500000116,
3047
+ 0x11700000118,
3048
+ 0x1190000011a,
3049
+ 0x11b0000011c,
3050
+ 0x11d0000011e,
3051
+ 0x11f00000120,
3052
+ 0x12100000122,
3053
+ 0x12300000124,
3054
+ 0x12500000126,
3055
+ 0x12700000128,
3056
+ 0x1290000012a,
3057
+ 0x12b0000012c,
3058
+ 0x12d0000012e,
3059
+ 0x12f00000130,
3060
+ 0x13100000132,
3061
+ 0x13500000136,
3062
+ 0x13700000139,
3063
+ 0x13a0000013b,
3064
+ 0x13c0000013d,
3065
+ 0x13e0000013f,
3066
+ 0x14200000143,
3067
+ 0x14400000145,
3068
+ 0x14600000147,
3069
+ 0x14800000149,
3070
+ 0x14b0000014c,
3071
+ 0x14d0000014e,
3072
+ 0x14f00000150,
3073
+ 0x15100000152,
3074
+ 0x15300000154,
3075
+ 0x15500000156,
3076
+ 0x15700000158,
3077
+ 0x1590000015a,
3078
+ 0x15b0000015c,
3079
+ 0x15d0000015e,
3080
+ 0x15f00000160,
3081
+ 0x16100000162,
3082
+ 0x16300000164,
3083
+ 0x16500000166,
3084
+ 0x16700000168,
3085
+ 0x1690000016a,
3086
+ 0x16b0000016c,
3087
+ 0x16d0000016e,
3088
+ 0x16f00000170,
3089
+ 0x17100000172,
3090
+ 0x17300000174,
3091
+ 0x17500000176,
3092
+ 0x17700000178,
3093
+ 0x17a0000017b,
3094
+ 0x17c0000017d,
3095
+ 0x17e0000017f,
3096
+ 0x18000000181,
3097
+ 0x18300000184,
3098
+ 0x18500000186,
3099
+ 0x18800000189,
3100
+ 0x18c0000018e,
3101
+ 0x19200000193,
3102
+ 0x19500000196,
3103
+ 0x1990000019c,
3104
+ 0x19e0000019f,
3105
+ 0x1a1000001a2,
3106
+ 0x1a3000001a4,
3107
+ 0x1a5000001a6,
3108
+ 0x1a8000001a9,
3109
+ 0x1aa000001ac,
3110
+ 0x1ad000001ae,
3111
+ 0x1b0000001b1,
3112
+ 0x1b4000001b5,
3113
+ 0x1b6000001b7,
3114
+ 0x1b9000001bc,
3115
+ 0x1bd000001c4,
3116
+ 0x1ce000001cf,
3117
+ 0x1d0000001d1,
3118
+ 0x1d2000001d3,
3119
+ 0x1d4000001d5,
3120
+ 0x1d6000001d7,
3121
+ 0x1d8000001d9,
3122
+ 0x1da000001db,
3123
+ 0x1dc000001de,
3124
+ 0x1df000001e0,
3125
+ 0x1e1000001e2,
3126
+ 0x1e3000001e4,
3127
+ 0x1e5000001e6,
3128
+ 0x1e7000001e8,
3129
+ 0x1e9000001ea,
3130
+ 0x1eb000001ec,
3131
+ 0x1ed000001ee,
3132
+ 0x1ef000001f1,
3133
+ 0x1f5000001f6,
3134
+ 0x1f9000001fa,
3135
+ 0x1fb000001fc,
3136
+ 0x1fd000001fe,
3137
+ 0x1ff00000200,
3138
+ 0x20100000202,
3139
+ 0x20300000204,
3140
+ 0x20500000206,
3141
+ 0x20700000208,
3142
+ 0x2090000020a,
3143
+ 0x20b0000020c,
3144
+ 0x20d0000020e,
3145
+ 0x20f00000210,
3146
+ 0x21100000212,
3147
+ 0x21300000214,
3148
+ 0x21500000216,
3149
+ 0x21700000218,
3150
+ 0x2190000021a,
3151
+ 0x21b0000021c,
3152
+ 0x21d0000021e,
3153
+ 0x21f00000220,
3154
+ 0x22100000222,
3155
+ 0x22300000224,
3156
+ 0x22500000226,
3157
+ 0x22700000228,
3158
+ 0x2290000022a,
3159
+ 0x22b0000022c,
3160
+ 0x22d0000022e,
3161
+ 0x22f00000230,
3162
+ 0x23100000232,
3163
+ 0x2330000023a,
3164
+ 0x23c0000023d,
3165
+ 0x23f00000241,
3166
+ 0x24200000243,
3167
+ 0x24700000248,
3168
+ 0x2490000024a,
3169
+ 0x24b0000024c,
3170
+ 0x24d0000024e,
3171
+ 0x24f000002b0,
3172
+ 0x2b9000002c2,
3173
+ 0x2c6000002d2,
3174
+ 0x2ec000002ed,
3175
+ 0x2ee000002ef,
3176
+ 0x30000000340,
3177
+ 0x34200000343,
3178
+ 0x3460000034f,
3179
+ 0x35000000370,
3180
+ 0x37100000372,
3181
+ 0x37300000374,
3182
+ 0x37700000378,
3183
+ 0x37b0000037e,
3184
+ 0x39000000391,
3185
+ 0x3ac000003cf,
3186
+ 0x3d7000003d8,
3187
+ 0x3d9000003da,
3188
+ 0x3db000003dc,
3189
+ 0x3dd000003de,
3190
+ 0x3df000003e0,
3191
+ 0x3e1000003e2,
3192
+ 0x3e3000003e4,
3193
+ 0x3e5000003e6,
3194
+ 0x3e7000003e8,
3195
+ 0x3e9000003ea,
3196
+ 0x3eb000003ec,
3197
+ 0x3ed000003ee,
3198
+ 0x3ef000003f0,
3199
+ 0x3f3000003f4,
3200
+ 0x3f8000003f9,
3201
+ 0x3fb000003fd,
3202
+ 0x43000000460,
3203
+ 0x46100000462,
3204
+ 0x46300000464,
3205
+ 0x46500000466,
3206
+ 0x46700000468,
3207
+ 0x4690000046a,
3208
+ 0x46b0000046c,
3209
+ 0x46d0000046e,
3210
+ 0x46f00000470,
3211
+ 0x47100000472,
3212
+ 0x47300000474,
3213
+ 0x47500000476,
3214
+ 0x47700000478,
3215
+ 0x4790000047a,
3216
+ 0x47b0000047c,
3217
+ 0x47d0000047e,
3218
+ 0x47f00000480,
3219
+ 0x48100000482,
3220
+ 0x48300000488,
3221
+ 0x48b0000048c,
3222
+ 0x48d0000048e,
3223
+ 0x48f00000490,
3224
+ 0x49100000492,
3225
+ 0x49300000494,
3226
+ 0x49500000496,
3227
+ 0x49700000498,
3228
+ 0x4990000049a,
3229
+ 0x49b0000049c,
3230
+ 0x49d0000049e,
3231
+ 0x49f000004a0,
3232
+ 0x4a1000004a2,
3233
+ 0x4a3000004a4,
3234
+ 0x4a5000004a6,
3235
+ 0x4a7000004a8,
3236
+ 0x4a9000004aa,
3237
+ 0x4ab000004ac,
3238
+ 0x4ad000004ae,
3239
+ 0x4af000004b0,
3240
+ 0x4b1000004b2,
3241
+ 0x4b3000004b4,
3242
+ 0x4b5000004b6,
3243
+ 0x4b7000004b8,
3244
+ 0x4b9000004ba,
3245
+ 0x4bb000004bc,
3246
+ 0x4bd000004be,
3247
+ 0x4bf000004c0,
3248
+ 0x4c2000004c3,
3249
+ 0x4c4000004c5,
3250
+ 0x4c6000004c7,
3251
+ 0x4c8000004c9,
3252
+ 0x4ca000004cb,
3253
+ 0x4cc000004cd,
3254
+ 0x4ce000004d0,
3255
+ 0x4d1000004d2,
3256
+ 0x4d3000004d4,
3257
+ 0x4d5000004d6,
3258
+ 0x4d7000004d8,
3259
+ 0x4d9000004da,
3260
+ 0x4db000004dc,
3261
+ 0x4dd000004de,
3262
+ 0x4df000004e0,
3263
+ 0x4e1000004e2,
3264
+ 0x4e3000004e4,
3265
+ 0x4e5000004e6,
3266
+ 0x4e7000004e8,
3267
+ 0x4e9000004ea,
3268
+ 0x4eb000004ec,
3269
+ 0x4ed000004ee,
3270
+ 0x4ef000004f0,
3271
+ 0x4f1000004f2,
3272
+ 0x4f3000004f4,
3273
+ 0x4f5000004f6,
3274
+ 0x4f7000004f8,
3275
+ 0x4f9000004fa,
3276
+ 0x4fb000004fc,
3277
+ 0x4fd000004fe,
3278
+ 0x4ff00000500,
3279
+ 0x50100000502,
3280
+ 0x50300000504,
3281
+ 0x50500000506,
3282
+ 0x50700000508,
3283
+ 0x5090000050a,
3284
+ 0x50b0000050c,
3285
+ 0x50d0000050e,
3286
+ 0x50f00000510,
3287
+ 0x51100000512,
3288
+ 0x51300000514,
3289
+ 0x51500000516,
3290
+ 0x51700000518,
3291
+ 0x5190000051a,
3292
+ 0x51b0000051c,
3293
+ 0x51d0000051e,
3294
+ 0x51f00000520,
3295
+ 0x52100000522,
3296
+ 0x52300000524,
3297
+ 0x52500000526,
3298
+ 0x52700000528,
3299
+ 0x5290000052a,
3300
+ 0x52b0000052c,
3301
+ 0x52d0000052e,
3302
+ 0x52f00000530,
3303
+ 0x5590000055a,
3304
+ 0x56000000587,
3305
+ 0x58800000589,
3306
+ 0x591000005be,
3307
+ 0x5bf000005c0,
3308
+ 0x5c1000005c3,
3309
+ 0x5c4000005c6,
3310
+ 0x5c7000005c8,
3311
+ 0x5d0000005eb,
3312
+ 0x5ef000005f3,
3313
+ 0x6100000061b,
3314
+ 0x62000000640,
3315
+ 0x64100000660,
3316
+ 0x66e00000675,
3317
+ 0x679000006d4,
3318
+ 0x6d5000006dd,
3319
+ 0x6df000006e9,
3320
+ 0x6ea000006f0,
3321
+ 0x6fa00000700,
3322
+ 0x7100000074b,
3323
+ 0x74d000007b2,
3324
+ 0x7c0000007f6,
3325
+ 0x7fd000007fe,
3326
+ 0x8000000082e,
3327
+ 0x8400000085c,
3328
+ 0x8600000086b,
3329
+ 0x87000000888,
3330
+ 0x8890000088f,
3331
+ 0x898000008e2,
3332
+ 0x8e300000958,
3333
+ 0x96000000964,
3334
+ 0x96600000970,
3335
+ 0x97100000984,
3336
+ 0x9850000098d,
3337
+ 0x98f00000991,
3338
+ 0x993000009a9,
3339
+ 0x9aa000009b1,
3340
+ 0x9b2000009b3,
3341
+ 0x9b6000009ba,
3342
+ 0x9bc000009c5,
3343
+ 0x9c7000009c9,
3344
+ 0x9cb000009cf,
3345
+ 0x9d7000009d8,
3346
+ 0x9e0000009e4,
3347
+ 0x9e6000009f2,
3348
+ 0x9fc000009fd,
3349
+ 0x9fe000009ff,
3350
+ 0xa0100000a04,
3351
+ 0xa0500000a0b,
3352
+ 0xa0f00000a11,
3353
+ 0xa1300000a29,
3354
+ 0xa2a00000a31,
3355
+ 0xa3200000a33,
3356
+ 0xa3500000a36,
3357
+ 0xa3800000a3a,
3358
+ 0xa3c00000a3d,
3359
+ 0xa3e00000a43,
3360
+ 0xa4700000a49,
3361
+ 0xa4b00000a4e,
3362
+ 0xa5100000a52,
3363
+ 0xa5c00000a5d,
3364
+ 0xa6600000a76,
3365
+ 0xa8100000a84,
3366
+ 0xa8500000a8e,
3367
+ 0xa8f00000a92,
3368
+ 0xa9300000aa9,
3369
+ 0xaaa00000ab1,
3370
+ 0xab200000ab4,
3371
+ 0xab500000aba,
3372
+ 0xabc00000ac6,
3373
+ 0xac700000aca,
3374
+ 0xacb00000ace,
3375
+ 0xad000000ad1,
3376
+ 0xae000000ae4,
3377
+ 0xae600000af0,
3378
+ 0xaf900000b00,
3379
+ 0xb0100000b04,
3380
+ 0xb0500000b0d,
3381
+ 0xb0f00000b11,
3382
+ 0xb1300000b29,
3383
+ 0xb2a00000b31,
3384
+ 0xb3200000b34,
3385
+ 0xb3500000b3a,
3386
+ 0xb3c00000b45,
3387
+ 0xb4700000b49,
3388
+ 0xb4b00000b4e,
3389
+ 0xb5500000b58,
3390
+ 0xb5f00000b64,
3391
+ 0xb6600000b70,
3392
+ 0xb7100000b72,
3393
+ 0xb8200000b84,
3394
+ 0xb8500000b8b,
3395
+ 0xb8e00000b91,
3396
+ 0xb9200000b96,
3397
+ 0xb9900000b9b,
3398
+ 0xb9c00000b9d,
3399
+ 0xb9e00000ba0,
3400
+ 0xba300000ba5,
3401
+ 0xba800000bab,
3402
+ 0xbae00000bba,
3403
+ 0xbbe00000bc3,
3404
+ 0xbc600000bc9,
3405
+ 0xbca00000bce,
3406
+ 0xbd000000bd1,
3407
+ 0xbd700000bd8,
3408
+ 0xbe600000bf0,
3409
+ 0xc0000000c0d,
3410
+ 0xc0e00000c11,
3411
+ 0xc1200000c29,
3412
+ 0xc2a00000c3a,
3413
+ 0xc3c00000c45,
3414
+ 0xc4600000c49,
3415
+ 0xc4a00000c4e,
3416
+ 0xc5500000c57,
3417
+ 0xc5800000c5b,
3418
+ 0xc5d00000c5e,
3419
+ 0xc6000000c64,
3420
+ 0xc6600000c70,
3421
+ 0xc8000000c84,
3422
+ 0xc8500000c8d,
3423
+ 0xc8e00000c91,
3424
+ 0xc9200000ca9,
3425
+ 0xcaa00000cb4,
3426
+ 0xcb500000cba,
3427
+ 0xcbc00000cc5,
3428
+ 0xcc600000cc9,
3429
+ 0xcca00000cce,
3430
+ 0xcd500000cd7,
3431
+ 0xcdd00000cdf,
3432
+ 0xce000000ce4,
3433
+ 0xce600000cf0,
3434
+ 0xcf100000cf4,
3435
+ 0xd0000000d0d,
3436
+ 0xd0e00000d11,
3437
+ 0xd1200000d45,
3438
+ 0xd4600000d49,
3439
+ 0xd4a00000d4f,
3440
+ 0xd5400000d58,
3441
+ 0xd5f00000d64,
3442
+ 0xd6600000d70,
3443
+ 0xd7a00000d80,
3444
+ 0xd8100000d84,
3445
+ 0xd8500000d97,
3446
+ 0xd9a00000db2,
3447
+ 0xdb300000dbc,
3448
+ 0xdbd00000dbe,
3449
+ 0xdc000000dc7,
3450
+ 0xdca00000dcb,
3451
+ 0xdcf00000dd5,
3452
+ 0xdd600000dd7,
3453
+ 0xdd800000de0,
3454
+ 0xde600000df0,
3455
+ 0xdf200000df4,
3456
+ 0xe0100000e33,
3457
+ 0xe3400000e3b,
3458
+ 0xe4000000e4f,
3459
+ 0xe5000000e5a,
3460
+ 0xe8100000e83,
3461
+ 0xe8400000e85,
3462
+ 0xe8600000e8b,
3463
+ 0xe8c00000ea4,
3464
+ 0xea500000ea6,
3465
+ 0xea700000eb3,
3466
+ 0xeb400000ebe,
3467
+ 0xec000000ec5,
3468
+ 0xec600000ec7,
3469
+ 0xec800000ecf,
3470
+ 0xed000000eda,
3471
+ 0xede00000ee0,
3472
+ 0xf0000000f01,
3473
+ 0xf0b00000f0c,
3474
+ 0xf1800000f1a,
3475
+ 0xf2000000f2a,
3476
+ 0xf3500000f36,
3477
+ 0xf3700000f38,
3478
+ 0xf3900000f3a,
3479
+ 0xf3e00000f43,
3480
+ 0xf4400000f48,
3481
+ 0xf4900000f4d,
3482
+ 0xf4e00000f52,
3483
+ 0xf5300000f57,
3484
+ 0xf5800000f5c,
3485
+ 0xf5d00000f69,
3486
+ 0xf6a00000f6d,
3487
+ 0xf7100000f73,
3488
+ 0xf7400000f75,
3489
+ 0xf7a00000f81,
3490
+ 0xf8200000f85,
3491
+ 0xf8600000f93,
3492
+ 0xf9400000f98,
3493
+ 0xf9900000f9d,
3494
+ 0xf9e00000fa2,
3495
+ 0xfa300000fa7,
3496
+ 0xfa800000fac,
3497
+ 0xfad00000fb9,
3498
+ 0xfba00000fbd,
3499
+ 0xfc600000fc7,
3500
+ 0x10000000104a,
3501
+ 0x10500000109e,
3502
+ 0x10d0000010fb,
3503
+ 0x10fd00001100,
3504
+ 0x120000001249,
3505
+ 0x124a0000124e,
3506
+ 0x125000001257,
3507
+ 0x125800001259,
3508
+ 0x125a0000125e,
3509
+ 0x126000001289,
3510
+ 0x128a0000128e,
3511
+ 0x1290000012b1,
3512
+ 0x12b2000012b6,
3513
+ 0x12b8000012bf,
3514
+ 0x12c0000012c1,
3515
+ 0x12c2000012c6,
3516
+ 0x12c8000012d7,
3517
+ 0x12d800001311,
3518
+ 0x131200001316,
3519
+ 0x13180000135b,
3520
+ 0x135d00001360,
3521
+ 0x138000001390,
3522
+ 0x13a0000013f6,
3523
+ 0x14010000166d,
3524
+ 0x166f00001680,
3525
+ 0x16810000169b,
3526
+ 0x16a0000016eb,
3527
+ 0x16f1000016f9,
3528
+ 0x170000001716,
3529
+ 0x171f00001735,
3530
+ 0x174000001754,
3531
+ 0x17600000176d,
3532
+ 0x176e00001771,
3533
+ 0x177200001774,
3534
+ 0x1780000017b4,
3535
+ 0x17b6000017d4,
3536
+ 0x17d7000017d8,
3537
+ 0x17dc000017de,
3538
+ 0x17e0000017ea,
3539
+ 0x18100000181a,
3540
+ 0x182000001879,
3541
+ 0x1880000018ab,
3542
+ 0x18b0000018f6,
3543
+ 0x19000000191f,
3544
+ 0x19200000192c,
3545
+ 0x19300000193c,
3546
+ 0x19460000196e,
3547
+ 0x197000001975,
3548
+ 0x1980000019ac,
3549
+ 0x19b0000019ca,
3550
+ 0x19d0000019da,
3551
+ 0x1a0000001a1c,
3552
+ 0x1a2000001a5f,
3553
+ 0x1a6000001a7d,
3554
+ 0x1a7f00001a8a,
3555
+ 0x1a9000001a9a,
3556
+ 0x1aa700001aa8,
3557
+ 0x1ab000001abe,
3558
+ 0x1abf00001acf,
3559
+ 0x1b0000001b4d,
3560
+ 0x1b5000001b5a,
3561
+ 0x1b6b00001b74,
3562
+ 0x1b8000001bf4,
3563
+ 0x1c0000001c38,
3564
+ 0x1c4000001c4a,
3565
+ 0x1c4d00001c7e,
3566
+ 0x1cd000001cd3,
3567
+ 0x1cd400001cfb,
3568
+ 0x1d0000001d2c,
3569
+ 0x1d2f00001d30,
3570
+ 0x1d3b00001d3c,
3571
+ 0x1d4e00001d4f,
3572
+ 0x1d6b00001d78,
3573
+ 0x1d7900001d9b,
3574
+ 0x1dc000001e00,
3575
+ 0x1e0100001e02,
3576
+ 0x1e0300001e04,
3577
+ 0x1e0500001e06,
3578
+ 0x1e0700001e08,
3579
+ 0x1e0900001e0a,
3580
+ 0x1e0b00001e0c,
3581
+ 0x1e0d00001e0e,
3582
+ 0x1e0f00001e10,
3583
+ 0x1e1100001e12,
3584
+ 0x1e1300001e14,
3585
+ 0x1e1500001e16,
3586
+ 0x1e1700001e18,
3587
+ 0x1e1900001e1a,
3588
+ 0x1e1b00001e1c,
3589
+ 0x1e1d00001e1e,
3590
+ 0x1e1f00001e20,
3591
+ 0x1e2100001e22,
3592
+ 0x1e2300001e24,
3593
+ 0x1e2500001e26,
3594
+ 0x1e2700001e28,
3595
+ 0x1e2900001e2a,
3596
+ 0x1e2b00001e2c,
3597
+ 0x1e2d00001e2e,
3598
+ 0x1e2f00001e30,
3599
+ 0x1e3100001e32,
3600
+ 0x1e3300001e34,
3601
+ 0x1e3500001e36,
3602
+ 0x1e3700001e38,
3603
+ 0x1e3900001e3a,
3604
+ 0x1e3b00001e3c,
3605
+ 0x1e3d00001e3e,
3606
+ 0x1e3f00001e40,
3607
+ 0x1e4100001e42,
3608
+ 0x1e4300001e44,
3609
+ 0x1e4500001e46,
3610
+ 0x1e4700001e48,
3611
+ 0x1e4900001e4a,
3612
+ 0x1e4b00001e4c,
3613
+ 0x1e4d00001e4e,
3614
+ 0x1e4f00001e50,
3615
+ 0x1e5100001e52,
3616
+ 0x1e5300001e54,
3617
+ 0x1e5500001e56,
3618
+ 0x1e5700001e58,
3619
+ 0x1e5900001e5a,
3620
+ 0x1e5b00001e5c,
3621
+ 0x1e5d00001e5e,
3622
+ 0x1e5f00001e60,
3623
+ 0x1e6100001e62,
3624
+ 0x1e6300001e64,
3625
+ 0x1e6500001e66,
3626
+ 0x1e6700001e68,
3627
+ 0x1e6900001e6a,
3628
+ 0x1e6b00001e6c,
3629
+ 0x1e6d00001e6e,
3630
+ 0x1e6f00001e70,
3631
+ 0x1e7100001e72,
3632
+ 0x1e7300001e74,
3633
+ 0x1e7500001e76,
3634
+ 0x1e7700001e78,
3635
+ 0x1e7900001e7a,
3636
+ 0x1e7b00001e7c,
3637
+ 0x1e7d00001e7e,
3638
+ 0x1e7f00001e80,
3639
+ 0x1e8100001e82,
3640
+ 0x1e8300001e84,
3641
+ 0x1e8500001e86,
3642
+ 0x1e8700001e88,
3643
+ 0x1e8900001e8a,
3644
+ 0x1e8b00001e8c,
3645
+ 0x1e8d00001e8e,
3646
+ 0x1e8f00001e90,
3647
+ 0x1e9100001e92,
3648
+ 0x1e9300001e94,
3649
+ 0x1e9500001e9a,
3650
+ 0x1e9c00001e9e,
3651
+ 0x1e9f00001ea0,
3652
+ 0x1ea100001ea2,
3653
+ 0x1ea300001ea4,
3654
+ 0x1ea500001ea6,
3655
+ 0x1ea700001ea8,
3656
+ 0x1ea900001eaa,
3657
+ 0x1eab00001eac,
3658
+ 0x1ead00001eae,
3659
+ 0x1eaf00001eb0,
3660
+ 0x1eb100001eb2,
3661
+ 0x1eb300001eb4,
3662
+ 0x1eb500001eb6,
3663
+ 0x1eb700001eb8,
3664
+ 0x1eb900001eba,
3665
+ 0x1ebb00001ebc,
3666
+ 0x1ebd00001ebe,
3667
+ 0x1ebf00001ec0,
3668
+ 0x1ec100001ec2,
3669
+ 0x1ec300001ec4,
3670
+ 0x1ec500001ec6,
3671
+ 0x1ec700001ec8,
3672
+ 0x1ec900001eca,
3673
+ 0x1ecb00001ecc,
3674
+ 0x1ecd00001ece,
3675
+ 0x1ecf00001ed0,
3676
+ 0x1ed100001ed2,
3677
+ 0x1ed300001ed4,
3678
+ 0x1ed500001ed6,
3679
+ 0x1ed700001ed8,
3680
+ 0x1ed900001eda,
3681
+ 0x1edb00001edc,
3682
+ 0x1edd00001ede,
3683
+ 0x1edf00001ee0,
3684
+ 0x1ee100001ee2,
3685
+ 0x1ee300001ee4,
3686
+ 0x1ee500001ee6,
3687
+ 0x1ee700001ee8,
3688
+ 0x1ee900001eea,
3689
+ 0x1eeb00001eec,
3690
+ 0x1eed00001eee,
3691
+ 0x1eef00001ef0,
3692
+ 0x1ef100001ef2,
3693
+ 0x1ef300001ef4,
3694
+ 0x1ef500001ef6,
3695
+ 0x1ef700001ef8,
3696
+ 0x1ef900001efa,
3697
+ 0x1efb00001efc,
3698
+ 0x1efd00001efe,
3699
+ 0x1eff00001f08,
3700
+ 0x1f1000001f16,
3701
+ 0x1f2000001f28,
3702
+ 0x1f3000001f38,
3703
+ 0x1f4000001f46,
3704
+ 0x1f5000001f58,
3705
+ 0x1f6000001f68,
3706
+ 0x1f7000001f71,
3707
+ 0x1f7200001f73,
3708
+ 0x1f7400001f75,
3709
+ 0x1f7600001f77,
3710
+ 0x1f7800001f79,
3711
+ 0x1f7a00001f7b,
3712
+ 0x1f7c00001f7d,
3713
+ 0x1fb000001fb2,
3714
+ 0x1fb600001fb7,
3715
+ 0x1fc600001fc7,
3716
+ 0x1fd000001fd3,
3717
+ 0x1fd600001fd8,
3718
+ 0x1fe000001fe3,
3719
+ 0x1fe400001fe8,
3720
+ 0x1ff600001ff7,
3721
+ 0x214e0000214f,
3722
+ 0x218400002185,
3723
+ 0x2c3000002c60,
3724
+ 0x2c6100002c62,
3725
+ 0x2c6500002c67,
3726
+ 0x2c6800002c69,
3727
+ 0x2c6a00002c6b,
3728
+ 0x2c6c00002c6d,
3729
+ 0x2c7100002c72,
3730
+ 0x2c7300002c75,
3731
+ 0x2c7600002c7c,
3732
+ 0x2c8100002c82,
3733
+ 0x2c8300002c84,
3734
+ 0x2c8500002c86,
3735
+ 0x2c8700002c88,
3736
+ 0x2c8900002c8a,
3737
+ 0x2c8b00002c8c,
3738
+ 0x2c8d00002c8e,
3739
+ 0x2c8f00002c90,
3740
+ 0x2c9100002c92,
3741
+ 0x2c9300002c94,
3742
+ 0x2c9500002c96,
3743
+ 0x2c9700002c98,
3744
+ 0x2c9900002c9a,
3745
+ 0x2c9b00002c9c,
3746
+ 0x2c9d00002c9e,
3747
+ 0x2c9f00002ca0,
3748
+ 0x2ca100002ca2,
3749
+ 0x2ca300002ca4,
3750
+ 0x2ca500002ca6,
3751
+ 0x2ca700002ca8,
3752
+ 0x2ca900002caa,
3753
+ 0x2cab00002cac,
3754
+ 0x2cad00002cae,
3755
+ 0x2caf00002cb0,
3756
+ 0x2cb100002cb2,
3757
+ 0x2cb300002cb4,
3758
+ 0x2cb500002cb6,
3759
+ 0x2cb700002cb8,
3760
+ 0x2cb900002cba,
3761
+ 0x2cbb00002cbc,
3762
+ 0x2cbd00002cbe,
3763
+ 0x2cbf00002cc0,
3764
+ 0x2cc100002cc2,
3765
+ 0x2cc300002cc4,
3766
+ 0x2cc500002cc6,
3767
+ 0x2cc700002cc8,
3768
+ 0x2cc900002cca,
3769
+ 0x2ccb00002ccc,
3770
+ 0x2ccd00002cce,
3771
+ 0x2ccf00002cd0,
3772
+ 0x2cd100002cd2,
3773
+ 0x2cd300002cd4,
3774
+ 0x2cd500002cd6,
3775
+ 0x2cd700002cd8,
3776
+ 0x2cd900002cda,
3777
+ 0x2cdb00002cdc,
3778
+ 0x2cdd00002cde,
3779
+ 0x2cdf00002ce0,
3780
+ 0x2ce100002ce2,
3781
+ 0x2ce300002ce5,
3782
+ 0x2cec00002ced,
3783
+ 0x2cee00002cf2,
3784
+ 0x2cf300002cf4,
3785
+ 0x2d0000002d26,
3786
+ 0x2d2700002d28,
3787
+ 0x2d2d00002d2e,
3788
+ 0x2d3000002d68,
3789
+ 0x2d7f00002d97,
3790
+ 0x2da000002da7,
3791
+ 0x2da800002daf,
3792
+ 0x2db000002db7,
3793
+ 0x2db800002dbf,
3794
+ 0x2dc000002dc7,
3795
+ 0x2dc800002dcf,
3796
+ 0x2dd000002dd7,
3797
+ 0x2dd800002ddf,
3798
+ 0x2de000002e00,
3799
+ 0x2e2f00002e30,
3800
+ 0x300500003008,
3801
+ 0x302a0000302e,
3802
+ 0x303c0000303d,
3803
+ 0x304100003097,
3804
+ 0x30990000309b,
3805
+ 0x309d0000309f,
3806
+ 0x30a1000030fb,
3807
+ 0x30fc000030ff,
3808
+ 0x310500003130,
3809
+ 0x31a0000031c0,
3810
+ 0x31f000003200,
3811
+ 0x340000004dc0,
3812
+ 0x4e000000a48d,
3813
+ 0xa4d00000a4fe,
3814
+ 0xa5000000a60d,
3815
+ 0xa6100000a62c,
3816
+ 0xa6410000a642,
3817
+ 0xa6430000a644,
3818
+ 0xa6450000a646,
3819
+ 0xa6470000a648,
3820
+ 0xa6490000a64a,
3821
+ 0xa64b0000a64c,
3822
+ 0xa64d0000a64e,
3823
+ 0xa64f0000a650,
3824
+ 0xa6510000a652,
3825
+ 0xa6530000a654,
3826
+ 0xa6550000a656,
3827
+ 0xa6570000a658,
3828
+ 0xa6590000a65a,
3829
+ 0xa65b0000a65c,
3830
+ 0xa65d0000a65e,
3831
+ 0xa65f0000a660,
3832
+ 0xa6610000a662,
3833
+ 0xa6630000a664,
3834
+ 0xa6650000a666,
3835
+ 0xa6670000a668,
3836
+ 0xa6690000a66a,
3837
+ 0xa66b0000a66c,
3838
+ 0xa66d0000a670,
3839
+ 0xa6740000a67e,
3840
+ 0xa67f0000a680,
3841
+ 0xa6810000a682,
3842
+ 0xa6830000a684,
3843
+ 0xa6850000a686,
3844
+ 0xa6870000a688,
3845
+ 0xa6890000a68a,
3846
+ 0xa68b0000a68c,
3847
+ 0xa68d0000a68e,
3848
+ 0xa68f0000a690,
3849
+ 0xa6910000a692,
3850
+ 0xa6930000a694,
3851
+ 0xa6950000a696,
3852
+ 0xa6970000a698,
3853
+ 0xa6990000a69a,
3854
+ 0xa69b0000a69c,
3855
+ 0xa69e0000a6e6,
3856
+ 0xa6f00000a6f2,
3857
+ 0xa7170000a720,
3858
+ 0xa7230000a724,
3859
+ 0xa7250000a726,
3860
+ 0xa7270000a728,
3861
+ 0xa7290000a72a,
3862
+ 0xa72b0000a72c,
3863
+ 0xa72d0000a72e,
3864
+ 0xa72f0000a732,
3865
+ 0xa7330000a734,
3866
+ 0xa7350000a736,
3867
+ 0xa7370000a738,
3868
+ 0xa7390000a73a,
3869
+ 0xa73b0000a73c,
3870
+ 0xa73d0000a73e,
3871
+ 0xa73f0000a740,
3872
+ 0xa7410000a742,
3873
+ 0xa7430000a744,
3874
+ 0xa7450000a746,
3875
+ 0xa7470000a748,
3876
+ 0xa7490000a74a,
3877
+ 0xa74b0000a74c,
3878
+ 0xa74d0000a74e,
3879
+ 0xa74f0000a750,
3880
+ 0xa7510000a752,
3881
+ 0xa7530000a754,
3882
+ 0xa7550000a756,
3883
+ 0xa7570000a758,
3884
+ 0xa7590000a75a,
3885
+ 0xa75b0000a75c,
3886
+ 0xa75d0000a75e,
3887
+ 0xa75f0000a760,
3888
+ 0xa7610000a762,
3889
+ 0xa7630000a764,
3890
+ 0xa7650000a766,
3891
+ 0xa7670000a768,
3892
+ 0xa7690000a76a,
3893
+ 0xa76b0000a76c,
3894
+ 0xa76d0000a76e,
3895
+ 0xa76f0000a770,
3896
+ 0xa7710000a779,
3897
+ 0xa77a0000a77b,
3898
+ 0xa77c0000a77d,
3899
+ 0xa77f0000a780,
3900
+ 0xa7810000a782,
3901
+ 0xa7830000a784,
3902
+ 0xa7850000a786,
3903
+ 0xa7870000a789,
3904
+ 0xa78c0000a78d,
3905
+ 0xa78e0000a790,
3906
+ 0xa7910000a792,
3907
+ 0xa7930000a796,
3908
+ 0xa7970000a798,
3909
+ 0xa7990000a79a,
3910
+ 0xa79b0000a79c,
3911
+ 0xa79d0000a79e,
3912
+ 0xa79f0000a7a0,
3913
+ 0xa7a10000a7a2,
3914
+ 0xa7a30000a7a4,
3915
+ 0xa7a50000a7a6,
3916
+ 0xa7a70000a7a8,
3917
+ 0xa7a90000a7aa,
3918
+ 0xa7af0000a7b0,
3919
+ 0xa7b50000a7b6,
3920
+ 0xa7b70000a7b8,
3921
+ 0xa7b90000a7ba,
3922
+ 0xa7bb0000a7bc,
3923
+ 0xa7bd0000a7be,
3924
+ 0xa7bf0000a7c0,
3925
+ 0xa7c10000a7c2,
3926
+ 0xa7c30000a7c4,
3927
+ 0xa7c80000a7c9,
3928
+ 0xa7ca0000a7cb,
3929
+ 0xa7d10000a7d2,
3930
+ 0xa7d30000a7d4,
3931
+ 0xa7d50000a7d6,
3932
+ 0xa7d70000a7d8,
3933
+ 0xa7d90000a7da,
3934
+ 0xa7f60000a7f8,
3935
+ 0xa7fa0000a828,
3936
+ 0xa82c0000a82d,
3937
+ 0xa8400000a874,
3938
+ 0xa8800000a8c6,
3939
+ 0xa8d00000a8da,
3940
+ 0xa8e00000a8f8,
3941
+ 0xa8fb0000a8fc,
3942
+ 0xa8fd0000a92e,
3943
+ 0xa9300000a954,
3944
+ 0xa9800000a9c1,
3945
+ 0xa9cf0000a9da,
3946
+ 0xa9e00000a9ff,
3947
+ 0xaa000000aa37,
3948
+ 0xaa400000aa4e,
3949
+ 0xaa500000aa5a,
3950
+ 0xaa600000aa77,
3951
+ 0xaa7a0000aac3,
3952
+ 0xaadb0000aade,
3953
+ 0xaae00000aaf0,
3954
+ 0xaaf20000aaf7,
3955
+ 0xab010000ab07,
3956
+ 0xab090000ab0f,
3957
+ 0xab110000ab17,
3958
+ 0xab200000ab27,
3959
+ 0xab280000ab2f,
3960
+ 0xab300000ab5b,
3961
+ 0xab600000ab69,
3962
+ 0xabc00000abeb,
3963
+ 0xabec0000abee,
3964
+ 0xabf00000abfa,
3965
+ 0xac000000d7a4,
3966
+ 0xfa0e0000fa10,
3967
+ 0xfa110000fa12,
3968
+ 0xfa130000fa15,
3969
+ 0xfa1f0000fa20,
3970
+ 0xfa210000fa22,
3971
+ 0xfa230000fa25,
3972
+ 0xfa270000fa2a,
3973
+ 0xfb1e0000fb1f,
3974
+ 0xfe200000fe30,
3975
+ 0xfe730000fe74,
3976
+ 0x100000001000c,
3977
+ 0x1000d00010027,
3978
+ 0x100280001003b,
3979
+ 0x1003c0001003e,
3980
+ 0x1003f0001004e,
3981
+ 0x100500001005e,
3982
+ 0x10080000100fb,
3983
+ 0x101fd000101fe,
3984
+ 0x102800001029d,
3985
+ 0x102a0000102d1,
3986
+ 0x102e0000102e1,
3987
+ 0x1030000010320,
3988
+ 0x1032d00010341,
3989
+ 0x103420001034a,
3990
+ 0x103500001037b,
3991
+ 0x103800001039e,
3992
+ 0x103a0000103c4,
3993
+ 0x103c8000103d0,
3994
+ 0x104280001049e,
3995
+ 0x104a0000104aa,
3996
+ 0x104d8000104fc,
3997
+ 0x1050000010528,
3998
+ 0x1053000010564,
3999
+ 0x10597000105a2,
4000
+ 0x105a3000105b2,
4001
+ 0x105b3000105ba,
4002
+ 0x105bb000105bd,
4003
+ 0x1060000010737,
4004
+ 0x1074000010756,
4005
+ 0x1076000010768,
4006
+ 0x1078000010781,
4007
+ 0x1080000010806,
4008
+ 0x1080800010809,
4009
+ 0x1080a00010836,
4010
+ 0x1083700010839,
4011
+ 0x1083c0001083d,
4012
+ 0x1083f00010856,
4013
+ 0x1086000010877,
4014
+ 0x108800001089f,
4015
+ 0x108e0000108f3,
4016
+ 0x108f4000108f6,
4017
+ 0x1090000010916,
4018
+ 0x109200001093a,
4019
+ 0x10980000109b8,
4020
+ 0x109be000109c0,
4021
+ 0x10a0000010a04,
4022
+ 0x10a0500010a07,
4023
+ 0x10a0c00010a14,
4024
+ 0x10a1500010a18,
4025
+ 0x10a1900010a36,
4026
+ 0x10a3800010a3b,
4027
+ 0x10a3f00010a40,
4028
+ 0x10a6000010a7d,
4029
+ 0x10a8000010a9d,
4030
+ 0x10ac000010ac8,
4031
+ 0x10ac900010ae7,
4032
+ 0x10b0000010b36,
4033
+ 0x10b4000010b56,
4034
+ 0x10b6000010b73,
4035
+ 0x10b8000010b92,
4036
+ 0x10c0000010c49,
4037
+ 0x10cc000010cf3,
4038
+ 0x10d0000010d28,
4039
+ 0x10d3000010d3a,
4040
+ 0x10e8000010eaa,
4041
+ 0x10eab00010ead,
4042
+ 0x10eb000010eb2,
4043
+ 0x10efd00010f1d,
4044
+ 0x10f2700010f28,
4045
+ 0x10f3000010f51,
4046
+ 0x10f7000010f86,
4047
+ 0x10fb000010fc5,
4048
+ 0x10fe000010ff7,
4049
+ 0x1100000011047,
4050
+ 0x1106600011076,
4051
+ 0x1107f000110bb,
4052
+ 0x110c2000110c3,
4053
+ 0x110d0000110e9,
4054
+ 0x110f0000110fa,
4055
+ 0x1110000011135,
4056
+ 0x1113600011140,
4057
+ 0x1114400011148,
4058
+ 0x1115000011174,
4059
+ 0x1117600011177,
4060
+ 0x11180000111c5,
4061
+ 0x111c9000111cd,
4062
+ 0x111ce000111db,
4063
+ 0x111dc000111dd,
4064
+ 0x1120000011212,
4065
+ 0x1121300011238,
4066
+ 0x1123e00011242,
4067
+ 0x1128000011287,
4068
+ 0x1128800011289,
4069
+ 0x1128a0001128e,
4070
+ 0x1128f0001129e,
4071
+ 0x1129f000112a9,
4072
+ 0x112b0000112eb,
4073
+ 0x112f0000112fa,
4074
+ 0x1130000011304,
4075
+ 0x113050001130d,
4076
+ 0x1130f00011311,
4077
+ 0x1131300011329,
4078
+ 0x1132a00011331,
4079
+ 0x1133200011334,
4080
+ 0x113350001133a,
4081
+ 0x1133b00011345,
4082
+ 0x1134700011349,
4083
+ 0x1134b0001134e,
4084
+ 0x1135000011351,
4085
+ 0x1135700011358,
4086
+ 0x1135d00011364,
4087
+ 0x113660001136d,
4088
+ 0x1137000011375,
4089
+ 0x114000001144b,
4090
+ 0x114500001145a,
4091
+ 0x1145e00011462,
4092
+ 0x11480000114c6,
4093
+ 0x114c7000114c8,
4094
+ 0x114d0000114da,
4095
+ 0x11580000115b6,
4096
+ 0x115b8000115c1,
4097
+ 0x115d8000115de,
4098
+ 0x1160000011641,
4099
+ 0x1164400011645,
4100
+ 0x116500001165a,
4101
+ 0x11680000116b9,
4102
+ 0x116c0000116ca,
4103
+ 0x117000001171b,
4104
+ 0x1171d0001172c,
4105
+ 0x117300001173a,
4106
+ 0x1174000011747,
4107
+ 0x118000001183b,
4108
+ 0x118c0000118ea,
4109
+ 0x118ff00011907,
4110
+ 0x119090001190a,
4111
+ 0x1190c00011914,
4112
+ 0x1191500011917,
4113
+ 0x1191800011936,
4114
+ 0x1193700011939,
4115
+ 0x1193b00011944,
4116
+ 0x119500001195a,
4117
+ 0x119a0000119a8,
4118
+ 0x119aa000119d8,
4119
+ 0x119da000119e2,
4120
+ 0x119e3000119e5,
4121
+ 0x11a0000011a3f,
4122
+ 0x11a4700011a48,
4123
+ 0x11a5000011a9a,
4124
+ 0x11a9d00011a9e,
4125
+ 0x11ab000011af9,
4126
+ 0x11c0000011c09,
4127
+ 0x11c0a00011c37,
4128
+ 0x11c3800011c41,
4129
+ 0x11c5000011c5a,
4130
+ 0x11c7200011c90,
4131
+ 0x11c9200011ca8,
4132
+ 0x11ca900011cb7,
4133
+ 0x11d0000011d07,
4134
+ 0x11d0800011d0a,
4135
+ 0x11d0b00011d37,
4136
+ 0x11d3a00011d3b,
4137
+ 0x11d3c00011d3e,
4138
+ 0x11d3f00011d48,
4139
+ 0x11d5000011d5a,
4140
+ 0x11d6000011d66,
4141
+ 0x11d6700011d69,
4142
+ 0x11d6a00011d8f,
4143
+ 0x11d9000011d92,
4144
+ 0x11d9300011d99,
4145
+ 0x11da000011daa,
4146
+ 0x11ee000011ef7,
4147
+ 0x11f0000011f11,
4148
+ 0x11f1200011f3b,
4149
+ 0x11f3e00011f43,
4150
+ 0x11f5000011f5a,
4151
+ 0x11fb000011fb1,
4152
+ 0x120000001239a,
4153
+ 0x1248000012544,
4154
+ 0x12f9000012ff1,
4155
+ 0x1300000013430,
4156
+ 0x1344000013456,
4157
+ 0x1440000014647,
4158
+ 0x1680000016a39,
4159
+ 0x16a4000016a5f,
4160
+ 0x16a6000016a6a,
4161
+ 0x16a7000016abf,
4162
+ 0x16ac000016aca,
4163
+ 0x16ad000016aee,
4164
+ 0x16af000016af5,
4165
+ 0x16b0000016b37,
4166
+ 0x16b4000016b44,
4167
+ 0x16b5000016b5a,
4168
+ 0x16b6300016b78,
4169
+ 0x16b7d00016b90,
4170
+ 0x16e6000016e80,
4171
+ 0x16f0000016f4b,
4172
+ 0x16f4f00016f88,
4173
+ 0x16f8f00016fa0,
4174
+ 0x16fe000016fe2,
4175
+ 0x16fe300016fe5,
4176
+ 0x16ff000016ff2,
4177
+ 0x17000000187f8,
4178
+ 0x1880000018cd6,
4179
+ 0x18d0000018d09,
4180
+ 0x1aff00001aff4,
4181
+ 0x1aff50001affc,
4182
+ 0x1affd0001afff,
4183
+ 0x1b0000001b123,
4184
+ 0x1b1320001b133,
4185
+ 0x1b1500001b153,
4186
+ 0x1b1550001b156,
4187
+ 0x1b1640001b168,
4188
+ 0x1b1700001b2fc,
4189
+ 0x1bc000001bc6b,
4190
+ 0x1bc700001bc7d,
4191
+ 0x1bc800001bc89,
4192
+ 0x1bc900001bc9a,
4193
+ 0x1bc9d0001bc9f,
4194
+ 0x1cf000001cf2e,
4195
+ 0x1cf300001cf47,
4196
+ 0x1da000001da37,
4197
+ 0x1da3b0001da6d,
4198
+ 0x1da750001da76,
4199
+ 0x1da840001da85,
4200
+ 0x1da9b0001daa0,
4201
+ 0x1daa10001dab0,
4202
+ 0x1df000001df1f,
4203
+ 0x1df250001df2b,
4204
+ 0x1e0000001e007,
4205
+ 0x1e0080001e019,
4206
+ 0x1e01b0001e022,
4207
+ 0x1e0230001e025,
4208
+ 0x1e0260001e02b,
4209
+ 0x1e08f0001e090,
4210
+ 0x1e1000001e12d,
4211
+ 0x1e1300001e13e,
4212
+ 0x1e1400001e14a,
4213
+ 0x1e14e0001e14f,
4214
+ 0x1e2900001e2af,
4215
+ 0x1e2c00001e2fa,
4216
+ 0x1e4d00001e4fa,
4217
+ 0x1e7e00001e7e7,
4218
+ 0x1e7e80001e7ec,
4219
+ 0x1e7ed0001e7ef,
4220
+ 0x1e7f00001e7ff,
4221
+ 0x1e8000001e8c5,
4222
+ 0x1e8d00001e8d7,
4223
+ 0x1e9220001e94c,
4224
+ 0x1e9500001e95a,
4225
+ 0x200000002a6e0,
4226
+ 0x2a7000002b73a,
4227
+ 0x2b7400002b81e,
4228
+ 0x2b8200002cea2,
4229
+ 0x2ceb00002ebe1,
4230
+ 0x2ebf00002ee5e,
4231
+ 0x300000003134b,
4232
+ 0x31350000323b0,
4233
+ ),
4234
+ 'CONTEXTJ': (
4235
+ 0x200c0000200e,
4236
+ ),
4237
+ 'CONTEXTO': (
4238
+ 0xb7000000b8,
4239
+ 0x37500000376,
4240
+ 0x5f3000005f5,
4241
+ 0x6600000066a,
4242
+ 0x6f0000006fa,
4243
+ 0x30fb000030fc,
4244
+ ),
4245
+ }
llmeval-env/lib/python3.10/site-packages/idna/intranges.py ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Given a list of integers, made up of (hopefully) a small number of long runs
3
+ of consecutive integers, compute a representation of the form
4
+ ((start1, end1), (start2, end2) ...). Then answer the question "was x present
5
+ in the original list?" in time O(log(# runs)).
6
+ """
7
+
8
+ import bisect
9
+ from typing import List, Tuple
10
+
11
+ def intranges_from_list(list_: List[int]) -> Tuple[int, ...]:
12
+ """Represent a list of integers as a sequence of ranges:
13
+ ((start_0, end_0), (start_1, end_1), ...), such that the original
14
+ integers are exactly those x such that start_i <= x < end_i for some i.
15
+
16
+ Ranges are encoded as single integers (start << 32 | end), not as tuples.
17
+ """
18
+
19
+ sorted_list = sorted(list_)
20
+ ranges = []
21
+ last_write = -1
22
+ for i in range(len(sorted_list)):
23
+ if i+1 < len(sorted_list):
24
+ if sorted_list[i] == sorted_list[i+1]-1:
25
+ continue
26
+ current_range = sorted_list[last_write+1:i+1]
27
+ ranges.append(_encode_range(current_range[0], current_range[-1] + 1))
28
+ last_write = i
29
+
30
+ return tuple(ranges)
31
+
32
+ def _encode_range(start: int, end: int) -> int:
33
+ return (start << 32) | end
34
+
35
+ def _decode_range(r: int) -> Tuple[int, int]:
36
+ return (r >> 32), (r & ((1 << 32) - 1))
37
+
38
+
39
+ def intranges_contain(int_: int, ranges: Tuple[int, ...]) -> bool:
40
+ """Determine if `int_` falls into one of the ranges in `ranges`."""
41
+ tuple_ = _encode_range(int_, 0)
42
+ pos = bisect.bisect_left(ranges, tuple_)
43
+ # we could be immediately ahead of a tuple (start, end)
44
+ # with start < int_ <= end
45
+ if pos > 0:
46
+ left, right = _decode_range(ranges[pos-1])
47
+ if left <= int_ < right:
48
+ return True
49
+ # or we could be immediately behind a tuple (int_, end)
50
+ if pos < len(ranges):
51
+ left, _ = _decode_range(ranges[pos])
52
+ if left == int_:
53
+ return True
54
+ return False
llmeval-env/lib/python3.10/site-packages/idna/package_data.py ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ __version__ = '3.7'
2
+
llmeval-env/lib/python3.10/site-packages/idna/uts46data.py ADDED
The diff for this file is too large to render. See raw diff
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__info__.py ADDED
@@ -0,0 +1,221 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ #
3
+ # Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
4
+ # Copyright (c) 2024 The Uncertainty Quantification Foundation.
5
+ # License: 3-clause BSD. The full license text is available at:
6
+ # - https://github.com/uqfoundation/multiprocess/blob/master/LICENSE
7
+ '''
8
+ -----------------------------------------------------------------
9
+ multiprocess: better multiprocessing and multithreading in Python
10
+ -----------------------------------------------------------------
11
+
12
+ About Multiprocess
13
+ ==================
14
+
15
+ ``multiprocess`` is a fork of ``multiprocessing``. ``multiprocess`` extends ``multiprocessing`` to provide enhanced serialization, using `dill`. ``multiprocess`` leverages ``multiprocessing`` to support the spawning of processes using the API of the Python standard library's ``threading`` module. ``multiprocessing`` has been distributed as part of the standard library since Python 2.6.
16
+
17
+ ``multiprocess`` is part of ``pathos``, a Python framework for heterogeneous computing.
18
+ ``multiprocess`` is in active development, so any user feedback, bug reports, comments,
19
+ or suggestions are highly appreciated. A list of issues is located at https://github.com/uqfoundation/multiprocess/issues, with a legacy list maintained at https://uqfoundation.github.io/project/pathos/query.
20
+
21
+
22
+ Major Features
23
+ ==============
24
+
25
+ ``multiprocess`` enables:
26
+
27
+ - objects to be transferred between processes using pipes or multi-producer/multi-consumer queues
28
+ - objects to be shared between processes using a server process or (for simple data) shared memory
29
+
30
+ ``multiprocess`` provides:
31
+
32
+ - equivalents of all the synchronization primitives in ``threading``
33
+ - a ``Pool`` class to facilitate submitting tasks to worker processes
34
+ - enhanced serialization, using ``dill``
35
+
36
+
37
+ Current Release
38
+ ===============
39
+
40
+ The latest released version of ``multiprocess`` is available from:
41
+
42
+ https://pypi.org/project/multiprocess
43
+
44
+ ``multiprocess`` is distributed under a 3-clause BSD license, and is a fork of ``multiprocessing``.
45
+
46
+
47
+ Development Version
48
+ ===================
49
+
50
+ You can get the latest development version with all the shiny new features at:
51
+
52
+ https://github.com/uqfoundation
53
+
54
+ If you have a new contribution, please submit a pull request.
55
+
56
+
57
+ Installation
58
+ ============
59
+
60
+ ``multiprocess`` can be installed with ``pip``::
61
+
62
+ $ pip install multiprocess
63
+
64
+ For Python 2, a C compiler is required to build the included extension module from source. Python 3 and binary installs do not require a C compiler.
65
+
66
+
67
+ Requirements
68
+ ============
69
+
70
+ ``multiprocess`` requires:
71
+
72
+ - ``python`` (or ``pypy``), **>=3.8**
73
+ - ``setuptools``, **>=42**
74
+ - ``dill``, **>=0.3.8**
75
+
76
+
77
+ Basic Usage
78
+ ===========
79
+
80
+ The ``multiprocess.Process`` class follows the API of ``threading.Thread``.
81
+ For example ::
82
+
83
+ from multiprocess import Process, Queue
84
+
85
+ def f(q):
86
+ q.put('hello world')
87
+
88
+ if __name__ == '__main__':
89
+ q = Queue()
90
+ p = Process(target=f, args=[q])
91
+ p.start()
92
+ print (q.get())
93
+ p.join()
94
+
95
+ Synchronization primitives like locks, semaphores and conditions are
96
+ available, for example ::
97
+
98
+ >>> from multiprocess import Condition
99
+ >>> c = Condition()
100
+ >>> print (c)
101
+ <Condition(<RLock(None, 0)>), 0>
102
+ >>> c.acquire()
103
+ True
104
+ >>> print (c)
105
+ <Condition(<RLock(MainProcess, 1)>), 0>
106
+
107
+ One can also use a manager to create shared objects either in shared
108
+ memory or in a server process, for example ::
109
+
110
+ >>> from multiprocess import Manager
111
+ >>> manager = Manager()
112
+ >>> l = manager.list(range(10))
113
+ >>> l.reverse()
114
+ >>> print (l)
115
+ [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]
116
+ >>> print (repr(l))
117
+ <Proxy[list] object at 0x00E1B3B0>
118
+
119
+ Tasks can be offloaded to a pool of worker processes in various ways,
120
+ for example ::
121
+
122
+ >>> from multiprocess import Pool
123
+ >>> def f(x): return x*x
124
+ ...
125
+ >>> p = Pool(4)
126
+ >>> result = p.map_async(f, range(10))
127
+ >>> print (result.get(timeout=1))
128
+ [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]
129
+
130
+ When ``dill`` is installed, serialization is extended to most objects,
131
+ for example ::
132
+
133
+ >>> from multiprocess import Pool
134
+ >>> p = Pool(4)
135
+ >>> print (p.map(lambda x: (lambda y:y**2)(x) + x, xrange(10)))
136
+ [0, 2, 6, 12, 20, 30, 42, 56, 72, 90]
137
+
138
+
139
+ More Information
140
+ ================
141
+
142
+ Probably the best way to get started is to look at the documentation at
143
+ http://multiprocess.rtfd.io. Also see ``multiprocess.tests`` for scripts that
144
+ demonstrate how ``multiprocess`` can be used to leverge multiple processes
145
+ to execute Python in parallel. You can run the test suite with
146
+ ``python -m multiprocess.tests``. As ``multiprocess`` conforms to the
147
+ ``multiprocessing`` interface, the examples and documentation found at
148
+ http://docs.python.org/library/multiprocessing.html also apply to
149
+ ``multiprocess`` if one will ``import multiprocessing as multiprocess``.
150
+ See https://github.com/uqfoundation/multiprocess/tree/master/py3.12/examples
151
+ for a set of examples that demonstrate some basic use cases and benchmarking
152
+ for running Python code in parallel. Please feel free to submit a ticket on
153
+ github, or ask a question on stackoverflow (**@Mike McKerns**). If you would
154
+ like to share how you use ``multiprocess`` in your work, please send an email
155
+ (to **mmckerns at uqfoundation dot org**).
156
+
157
+
158
+ Citation
159
+ ========
160
+
161
+ If you use ``multiprocess`` to do research that leads to publication, we ask that you
162
+ acknowledge use of ``multiprocess`` by citing the following in your publication::
163
+
164
+ M.M. McKerns, L. Strand, T. Sullivan, A. Fang, M.A.G. Aivazis,
165
+ "Building a framework for predictive science", Proceedings of
166
+ the 10th Python in Science Conference, 2011;
167
+ http://arxiv.org/pdf/1202.1056
168
+
169
+ Michael McKerns and Michael Aivazis,
170
+ "pathos: a framework for heterogeneous computing", 2010- ;
171
+ https://uqfoundation.github.io/project/pathos
172
+
173
+ Please see https://uqfoundation.github.io/project/pathos or
174
+ http://arxiv.org/pdf/1202.1056 for further information.
175
+
176
+ '''
177
+
178
+ __all__ = []
179
+ __version__ = '0.70.16'
180
+ __author__ = 'Mike McKerns'
181
+
182
+ __license__ = '''
183
+ Copyright (c) 2008-2016 California Institute of Technology.
184
+ Copyright (c) 2016-2024 The Uncertainty Quantification Foundation.
185
+ All rights reserved.
186
+
187
+ This software forks the python package "multiprocessing". Licence and
188
+ copyright information for multiprocessing can be found in "COPYING".
189
+
190
+ This software is available subject to the conditions and terms laid
191
+ out below. By downloading and using this software you are agreeing
192
+ to the following conditions.
193
+
194
+ Redistribution and use in source and binary forms, with or without
195
+ modification, are permitted provided that the following conditions
196
+ are met:
197
+
198
+ - Redistributions of source code must retain the above copyright
199
+ notice, this list of conditions and the following disclaimer.
200
+
201
+ - Redistributions in binary form must reproduce the above copyright
202
+ notice, this list of conditions and the following disclaimer in the
203
+ documentation and/or other materials provided with the distribution.
204
+
205
+ - Neither the names of the copyright holders nor the names of any of
206
+ the contributors may be used to endorse or promote products derived
207
+ from this software without specific prior written permission.
208
+
209
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
210
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
211
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
212
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
213
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
214
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
215
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
216
+ OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
217
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
218
+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
219
+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
220
+
221
+ '''
llmeval-env/lib/python3.10/site-packages/multiprocess/__init__.py ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # Package analogous to 'threading.py' but using processes
3
+ #
4
+ # multiprocessing/__init__.py
5
+ #
6
+ # This package is intended to duplicate the functionality (and much of
7
+ # the API) of threading.py but uses processes instead of threads. A
8
+ # subpackage 'multiprocessing.dummy' has the same API but is a simple
9
+ # wrapper for 'threading'.
10
+ #
11
+ # Original: Copyright (c) 2006-2008, R Oudkerk
12
+ # Original: Licensed to PSF under a Contributor Agreement.
13
+ # Forked by Mike McKerns, to support enhanced serialization.
14
+
15
+ # author, version, license, and long description
16
+ try: # the package is installed
17
+ from .__info__ import __version__, __author__, __doc__, __license__
18
+ except: # pragma: no cover
19
+ import os
20
+ import sys
21
+ root = os.path.dirname(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
22
+ sys.path.append(root)
23
+ # get distribution meta info
24
+ from version import (__version__, __author__,
25
+ get_license_text, get_readme_as_rst)
26
+ __license__ = get_license_text(os.path.join(root, 'LICENSE'))
27
+ __license__ = "\n%s" % __license__
28
+ __doc__ = get_readme_as_rst(os.path.join(root, 'README.md'))
29
+ del os, sys, root, get_license_text, get_readme_as_rst
30
+
31
+
32
+ import sys
33
+ from . import context
34
+
35
+ #
36
+ # Copy stuff from default context
37
+ #
38
+
39
+ __all__ = [x for x in dir(context._default_context) if not x.startswith('_')]
40
+ globals().update((name, getattr(context._default_context, name)) for name in __all__)
41
+
42
+ #
43
+ # XXX These should not really be documented or public.
44
+ #
45
+
46
+ SUBDEBUG = 5
47
+ SUBWARNING = 25
48
+
49
+ #
50
+ # Alias for main module -- will be reset by bootstrapping child processes
51
+ #
52
+
53
+ if '__main__' in sys.modules:
54
+ sys.modules['__mp_main__'] = sys.modules['__main__']
55
+
56
+
57
+ def license():
58
+ """print license"""
59
+ print (__license__)
60
+ return
61
+
62
+ def citation():
63
+ """print citation"""
64
+ print (__doc__[-491:-118])
65
+ return
66
+
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/__info__.cpython-310.pyc ADDED
Binary file (7.92 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (1.43 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/connection.cpython-310.pyc ADDED
Binary file (25.7 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/context.cpython-310.pyc ADDED
Binary file (12.9 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/forkserver.cpython-310.pyc ADDED
Binary file (8.47 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/heap.cpython-310.pyc ADDED
Binary file (7.71 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/managers.cpython-310.pyc ADDED
Binary file (40.8 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/pool.cpython-310.pyc ADDED
Binary file (25.2 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/popen_fork.cpython-310.pyc ADDED
Binary file (2.56 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/popen_forkserver.cpython-310.pyc ADDED
Binary file (2.51 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/popen_spawn_posix.cpython-310.pyc ADDED
Binary file (2.39 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/popen_spawn_win32.cpython-310.pyc ADDED
Binary file (3.52 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/process.cpython-310.pyc ADDED
Binary file (11.3 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/queues.cpython-310.pyc ADDED
Binary file (10.4 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/reduction.cpython-310.pyc ADDED
Binary file (8.46 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/resource_sharer.cpython-310.pyc ADDED
Binary file (5.35 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/resource_tracker.cpython-310.pyc ADDED
Binary file (5.6 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/shared_memory.cpython-310.pyc ADDED
Binary file (14.5 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/sharedctypes.cpython-310.pyc ADDED
Binary file (7.15 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/spawn.cpython-310.pyc ADDED
Binary file (6.78 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/synchronize.cpython-310.pyc ADDED
Binary file (11.5 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/__pycache__/util.cpython-310.pyc ADDED
Binary file (11.5 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/connection.py ADDED
@@ -0,0 +1,976 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # A higher level module for using sockets (or Windows named pipes)
3
+ #
4
+ # multiprocessing/connection.py
5
+ #
6
+ # Copyright (c) 2006-2008, R Oudkerk
7
+ # Licensed to PSF under a Contributor Agreement.
8
+ #
9
+
10
+ __all__ = [ 'Client', 'Listener', 'Pipe', 'wait' ]
11
+
12
+ import io
13
+ import os
14
+ import sys
15
+ import socket
16
+ import struct
17
+ import time
18
+ import tempfile
19
+ import itertools
20
+
21
+ try:
22
+ import _multiprocess as _multiprocessing
23
+ except ImportError:
24
+ import _multiprocessing
25
+
26
+ from . import util
27
+
28
+ from . import AuthenticationError, BufferTooShort
29
+ from .context import reduction
30
+ _ForkingPickler = reduction.ForkingPickler
31
+
32
+ try:
33
+ import _winapi
34
+ from _winapi import WAIT_OBJECT_0, WAIT_ABANDONED_0, WAIT_TIMEOUT, INFINITE
35
+ except ImportError:
36
+ if sys.platform == 'win32':
37
+ raise
38
+ _winapi = None
39
+
40
+ #
41
+ #
42
+ #
43
+
44
+ BUFSIZE = 8192
45
+ # A very generous timeout when it comes to local connections...
46
+ CONNECTION_TIMEOUT = 20.
47
+
48
+ _mmap_counter = itertools.count()
49
+
50
+ default_family = 'AF_INET'
51
+ families = ['AF_INET']
52
+
53
+ if hasattr(socket, 'AF_UNIX'):
54
+ default_family = 'AF_UNIX'
55
+ families += ['AF_UNIX']
56
+
57
+ if sys.platform == 'win32':
58
+ default_family = 'AF_PIPE'
59
+ families += ['AF_PIPE']
60
+
61
+
62
+ def _init_timeout(timeout=CONNECTION_TIMEOUT):
63
+ return getattr(time,'monotonic',time.time)() + timeout
64
+
65
+ def _check_timeout(t):
66
+ return getattr(time,'monotonic',time.time)() > t
67
+
68
+ #
69
+ #
70
+ #
71
+
72
+ def arbitrary_address(family):
73
+ '''
74
+ Return an arbitrary free address for the given family
75
+ '''
76
+ if family == 'AF_INET':
77
+ return ('localhost', 0)
78
+ elif family == 'AF_UNIX':
79
+ return tempfile.mktemp(prefix='listener-', dir=util.get_temp_dir())
80
+ elif family == 'AF_PIPE':
81
+ return tempfile.mktemp(prefix=r'\\.\pipe\pyc-%d-%d-' %
82
+ (os.getpid(), next(_mmap_counter)), dir="")
83
+ else:
84
+ raise ValueError('unrecognized family')
85
+
86
+ def _validate_family(family):
87
+ '''
88
+ Checks if the family is valid for the current environment.
89
+ '''
90
+ if sys.platform != 'win32' and family == 'AF_PIPE':
91
+ raise ValueError('Family %s is not recognized.' % family)
92
+
93
+ if sys.platform == 'win32' and family == 'AF_UNIX':
94
+ # double check
95
+ if not hasattr(socket, family):
96
+ raise ValueError('Family %s is not recognized.' % family)
97
+
98
+ def address_type(address):
99
+ '''
100
+ Return the types of the address
101
+
102
+ This can be 'AF_INET', 'AF_UNIX', or 'AF_PIPE'
103
+ '''
104
+ if type(address) == tuple:
105
+ return 'AF_INET'
106
+ elif type(address) is str and address.startswith('\\\\'):
107
+ return 'AF_PIPE'
108
+ elif type(address) is str or util.is_abstract_socket_namespace(address):
109
+ return 'AF_UNIX'
110
+ else:
111
+ raise ValueError('address type of %r unrecognized' % address)
112
+
113
+ #
114
+ # Connection classes
115
+ #
116
+
117
+ class _ConnectionBase:
118
+ _handle = None
119
+
120
+ def __init__(self, handle, readable=True, writable=True):
121
+ handle = handle.__index__()
122
+ if handle < 0:
123
+ raise ValueError("invalid handle")
124
+ if not readable and not writable:
125
+ raise ValueError(
126
+ "at least one of `readable` and `writable` must be True")
127
+ self._handle = handle
128
+ self._readable = readable
129
+ self._writable = writable
130
+
131
+ # XXX should we use util.Finalize instead of a __del__?
132
+
133
+ def __del__(self):
134
+ if self._handle is not None:
135
+ self._close()
136
+
137
+ def _check_closed(self):
138
+ if self._handle is None:
139
+ raise OSError("handle is closed")
140
+
141
+ def _check_readable(self):
142
+ if not self._readable:
143
+ raise OSError("connection is write-only")
144
+
145
+ def _check_writable(self):
146
+ if not self._writable:
147
+ raise OSError("connection is read-only")
148
+
149
+ def _bad_message_length(self):
150
+ if self._writable:
151
+ self._readable = False
152
+ else:
153
+ self.close()
154
+ raise OSError("bad message length")
155
+
156
+ @property
157
+ def closed(self):
158
+ """True if the connection is closed"""
159
+ return self._handle is None
160
+
161
+ @property
162
+ def readable(self):
163
+ """True if the connection is readable"""
164
+ return self._readable
165
+
166
+ @property
167
+ def writable(self):
168
+ """True if the connection is writable"""
169
+ return self._writable
170
+
171
+ def fileno(self):
172
+ """File descriptor or handle of the connection"""
173
+ self._check_closed()
174
+ return self._handle
175
+
176
+ def close(self):
177
+ """Close the connection"""
178
+ if self._handle is not None:
179
+ try:
180
+ self._close()
181
+ finally:
182
+ self._handle = None
183
+
184
+ def send_bytes(self, buf, offset=0, size=None):
185
+ """Send the bytes data from a bytes-like object"""
186
+ self._check_closed()
187
+ self._check_writable()
188
+ m = memoryview(buf)
189
+ # HACK for byte-indexing of non-bytewise buffers (e.g. array.array)
190
+ if m.itemsize > 1:
191
+ m = memoryview(bytes(m))
192
+ n = len(m)
193
+ if offset < 0:
194
+ raise ValueError("offset is negative")
195
+ if n < offset:
196
+ raise ValueError("buffer length < offset")
197
+ if size is None:
198
+ size = n - offset
199
+ elif size < 0:
200
+ raise ValueError("size is negative")
201
+ elif offset + size > n:
202
+ raise ValueError("buffer length < offset + size")
203
+ self._send_bytes(m[offset:offset + size])
204
+
205
+ def send(self, obj):
206
+ """Send a (picklable) object"""
207
+ self._check_closed()
208
+ self._check_writable()
209
+ self._send_bytes(_ForkingPickler.dumps(obj))
210
+
211
+ def recv_bytes(self, maxlength=None):
212
+ """
213
+ Receive bytes data as a bytes object.
214
+ """
215
+ self._check_closed()
216
+ self._check_readable()
217
+ if maxlength is not None and maxlength < 0:
218
+ raise ValueError("negative maxlength")
219
+ buf = self._recv_bytes(maxlength)
220
+ if buf is None:
221
+ self._bad_message_length()
222
+ return buf.getvalue()
223
+
224
+ def recv_bytes_into(self, buf, offset=0):
225
+ """
226
+ Receive bytes data into a writeable bytes-like object.
227
+ Return the number of bytes read.
228
+ """
229
+ self._check_closed()
230
+ self._check_readable()
231
+ with memoryview(buf) as m:
232
+ # Get bytesize of arbitrary buffer
233
+ itemsize = m.itemsize
234
+ bytesize = itemsize * len(m)
235
+ if offset < 0:
236
+ raise ValueError("negative offset")
237
+ elif offset > bytesize:
238
+ raise ValueError("offset too large")
239
+ result = self._recv_bytes()
240
+ size = result.tell()
241
+ if bytesize < offset + size:
242
+ raise BufferTooShort(result.getvalue())
243
+ # Message can fit in dest
244
+ result.seek(0)
245
+ result.readinto(m[offset // itemsize :
246
+ (offset + size) // itemsize])
247
+ return size
248
+
249
+ def recv(self):
250
+ """Receive a (picklable) object"""
251
+ self._check_closed()
252
+ self._check_readable()
253
+ buf = self._recv_bytes()
254
+ return _ForkingPickler.loads(buf.getbuffer())
255
+
256
+ def poll(self, timeout=0.0):
257
+ """Whether there is any input available to be read"""
258
+ self._check_closed()
259
+ self._check_readable()
260
+ return self._poll(timeout)
261
+
262
+ def __enter__(self):
263
+ return self
264
+
265
+ def __exit__(self, exc_type, exc_value, exc_tb):
266
+ self.close()
267
+
268
+
269
+ if _winapi:
270
+
271
+ class PipeConnection(_ConnectionBase):
272
+ """
273
+ Connection class based on a Windows named pipe.
274
+ Overlapped I/O is used, so the handles must have been created
275
+ with FILE_FLAG_OVERLAPPED.
276
+ """
277
+ _got_empty_message = False
278
+
279
+ def _close(self, _CloseHandle=_winapi.CloseHandle):
280
+ _CloseHandle(self._handle)
281
+
282
+ def _send_bytes(self, buf):
283
+ ov, err = _winapi.WriteFile(self._handle, buf, overlapped=True)
284
+ try:
285
+ if err == _winapi.ERROR_IO_PENDING:
286
+ waitres = _winapi.WaitForMultipleObjects(
287
+ [ov.event], False, INFINITE)
288
+ assert waitres == WAIT_OBJECT_0
289
+ except:
290
+ ov.cancel()
291
+ raise
292
+ finally:
293
+ nwritten, err = ov.GetOverlappedResult(True)
294
+ assert err == 0
295
+ assert nwritten == len(buf)
296
+
297
+ def _recv_bytes(self, maxsize=None):
298
+ if self._got_empty_message:
299
+ self._got_empty_message = False
300
+ return io.BytesIO()
301
+ else:
302
+ bsize = 128 if maxsize is None else min(maxsize, 128)
303
+ try:
304
+ ov, err = _winapi.ReadFile(self._handle, bsize,
305
+ overlapped=True)
306
+ try:
307
+ if err == _winapi.ERROR_IO_PENDING:
308
+ waitres = _winapi.WaitForMultipleObjects(
309
+ [ov.event], False, INFINITE)
310
+ assert waitres == WAIT_OBJECT_0
311
+ except:
312
+ ov.cancel()
313
+ raise
314
+ finally:
315
+ nread, err = ov.GetOverlappedResult(True)
316
+ if err == 0:
317
+ f = io.BytesIO()
318
+ f.write(ov.getbuffer())
319
+ return f
320
+ elif err == _winapi.ERROR_MORE_DATA:
321
+ return self._get_more_data(ov, maxsize)
322
+ except OSError as e:
323
+ if e.winerror == _winapi.ERROR_BROKEN_PIPE:
324
+ raise EOFError
325
+ else:
326
+ raise
327
+ raise RuntimeError("shouldn't get here; expected KeyboardInterrupt")
328
+
329
+ def _poll(self, timeout):
330
+ if (self._got_empty_message or
331
+ _winapi.PeekNamedPipe(self._handle)[0] != 0):
332
+ return True
333
+ return bool(wait([self], timeout))
334
+
335
+ def _get_more_data(self, ov, maxsize):
336
+ buf = ov.getbuffer()
337
+ f = io.BytesIO()
338
+ f.write(buf)
339
+ left = _winapi.PeekNamedPipe(self._handle)[1]
340
+ assert left > 0
341
+ if maxsize is not None and len(buf) + left > maxsize:
342
+ self._bad_message_length()
343
+ ov, err = _winapi.ReadFile(self._handle, left, overlapped=True)
344
+ rbytes, err = ov.GetOverlappedResult(True)
345
+ assert err == 0
346
+ assert rbytes == left
347
+ f.write(ov.getbuffer())
348
+ return f
349
+
350
+
351
+ class Connection(_ConnectionBase):
352
+ """
353
+ Connection class based on an arbitrary file descriptor (Unix only), or
354
+ a socket handle (Windows).
355
+ """
356
+
357
+ if _winapi:
358
+ def _close(self, _close=_multiprocessing.closesocket):
359
+ _close(self._handle)
360
+ _write = _multiprocessing.send
361
+ _read = _multiprocessing.recv
362
+ else:
363
+ def _close(self, _close=os.close):
364
+ _close(self._handle)
365
+ _write = os.write
366
+ _read = os.read
367
+
368
+ def _send(self, buf, write=_write):
369
+ remaining = len(buf)
370
+ while True:
371
+ n = write(self._handle, buf)
372
+ remaining -= n
373
+ if remaining == 0:
374
+ break
375
+ buf = buf[n:]
376
+
377
+ def _recv(self, size, read=_read):
378
+ buf = io.BytesIO()
379
+ handle = self._handle
380
+ remaining = size
381
+ while remaining > 0:
382
+ chunk = read(handle, remaining)
383
+ n = len(chunk)
384
+ if n == 0:
385
+ if remaining == size:
386
+ raise EOFError
387
+ else:
388
+ raise OSError("got end of file during message")
389
+ buf.write(chunk)
390
+ remaining -= n
391
+ return buf
392
+
393
+ def _send_bytes(self, buf):
394
+ n = len(buf)
395
+ if n > 0x7fffffff:
396
+ pre_header = struct.pack("!i", -1)
397
+ header = struct.pack("!Q", n)
398
+ self._send(pre_header)
399
+ self._send(header)
400
+ self._send(buf)
401
+ else:
402
+ # For wire compatibility with 3.7 and lower
403
+ header = struct.pack("!i", n)
404
+ if n > 16384:
405
+ # The payload is large so Nagle's algorithm won't be triggered
406
+ # and we'd better avoid the cost of concatenation.
407
+ self._send(header)
408
+ self._send(buf)
409
+ else:
410
+ # Issue #20540: concatenate before sending, to avoid delays due
411
+ # to Nagle's algorithm on a TCP socket.
412
+ # Also note we want to avoid sending a 0-length buffer separately,
413
+ # to avoid "broken pipe" errors if the other end closed the pipe.
414
+ self._send(header + buf)
415
+
416
+ def _recv_bytes(self, maxsize=None):
417
+ buf = self._recv(4)
418
+ size, = struct.unpack("!i", buf.getvalue())
419
+ if size == -1:
420
+ buf = self._recv(8)
421
+ size, = struct.unpack("!Q", buf.getvalue())
422
+ if maxsize is not None and size > maxsize:
423
+ return None
424
+ return self._recv(size)
425
+
426
+ def _poll(self, timeout):
427
+ r = wait([self], timeout)
428
+ return bool(r)
429
+
430
+
431
+ #
432
+ # Public functions
433
+ #
434
+
435
+ class Listener(object):
436
+ '''
437
+ Returns a listener object.
438
+
439
+ This is a wrapper for a bound socket which is 'listening' for
440
+ connections, or for a Windows named pipe.
441
+ '''
442
+ def __init__(self, address=None, family=None, backlog=1, authkey=None):
443
+ family = family or (address and address_type(address)) \
444
+ or default_family
445
+ address = address or arbitrary_address(family)
446
+
447
+ _validate_family(family)
448
+ if family == 'AF_PIPE':
449
+ self._listener = PipeListener(address, backlog)
450
+ else:
451
+ self._listener = SocketListener(address, family, backlog)
452
+
453
+ if authkey is not None and not isinstance(authkey, bytes):
454
+ raise TypeError('authkey should be a byte string')
455
+
456
+ self._authkey = authkey
457
+
458
+ def accept(self):
459
+ '''
460
+ Accept a connection on the bound socket or named pipe of `self`.
461
+
462
+ Returns a `Connection` object.
463
+ '''
464
+ if self._listener is None:
465
+ raise OSError('listener is closed')
466
+ c = self._listener.accept()
467
+ if self._authkey:
468
+ deliver_challenge(c, self._authkey)
469
+ answer_challenge(c, self._authkey)
470
+ return c
471
+
472
+ def close(self):
473
+ '''
474
+ Close the bound socket or named pipe of `self`.
475
+ '''
476
+ listener = self._listener
477
+ if listener is not None:
478
+ self._listener = None
479
+ listener.close()
480
+
481
+ @property
482
+ def address(self):
483
+ return self._listener._address
484
+
485
+ @property
486
+ def last_accepted(self):
487
+ return self._listener._last_accepted
488
+
489
+ def __enter__(self):
490
+ return self
491
+
492
+ def __exit__(self, exc_type, exc_value, exc_tb):
493
+ self.close()
494
+
495
+
496
+ def Client(address, family=None, authkey=None):
497
+ '''
498
+ Returns a connection to the address of a `Listener`
499
+ '''
500
+ family = family or address_type(address)
501
+ _validate_family(family)
502
+ if family == 'AF_PIPE':
503
+ c = PipeClient(address)
504
+ else:
505
+ c = SocketClient(address)
506
+
507
+ if authkey is not None and not isinstance(authkey, bytes):
508
+ raise TypeError('authkey should be a byte string')
509
+
510
+ if authkey is not None:
511
+ answer_challenge(c, authkey)
512
+ deliver_challenge(c, authkey)
513
+
514
+ return c
515
+
516
+
517
+ if sys.platform != 'win32':
518
+
519
+ def Pipe(duplex=True):
520
+ '''
521
+ Returns pair of connection objects at either end of a pipe
522
+ '''
523
+ if duplex:
524
+ s1, s2 = socket.socketpair()
525
+ s1.setblocking(True)
526
+ s2.setblocking(True)
527
+ c1 = Connection(s1.detach())
528
+ c2 = Connection(s2.detach())
529
+ else:
530
+ fd1, fd2 = os.pipe()
531
+ c1 = Connection(fd1, writable=False)
532
+ c2 = Connection(fd2, readable=False)
533
+
534
+ return c1, c2
535
+
536
+ else:
537
+
538
+ def Pipe(duplex=True):
539
+ '''
540
+ Returns pair of connection objects at either end of a pipe
541
+ '''
542
+ address = arbitrary_address('AF_PIPE')
543
+ if duplex:
544
+ openmode = _winapi.PIPE_ACCESS_DUPLEX
545
+ access = _winapi.GENERIC_READ | _winapi.GENERIC_WRITE
546
+ obsize, ibsize = BUFSIZE, BUFSIZE
547
+ else:
548
+ openmode = _winapi.PIPE_ACCESS_INBOUND
549
+ access = _winapi.GENERIC_WRITE
550
+ obsize, ibsize = 0, BUFSIZE
551
+
552
+ h1 = _winapi.CreateNamedPipe(
553
+ address, openmode | _winapi.FILE_FLAG_OVERLAPPED |
554
+ _winapi.FILE_FLAG_FIRST_PIPE_INSTANCE,
555
+ _winapi.PIPE_TYPE_MESSAGE | _winapi.PIPE_READMODE_MESSAGE |
556
+ _winapi.PIPE_WAIT,
557
+ 1, obsize, ibsize, _winapi.NMPWAIT_WAIT_FOREVER,
558
+ # default security descriptor: the handle cannot be inherited
559
+ _winapi.NULL
560
+ )
561
+ h2 = _winapi.CreateFile(
562
+ address, access, 0, _winapi.NULL, _winapi.OPEN_EXISTING,
563
+ _winapi.FILE_FLAG_OVERLAPPED, _winapi.NULL
564
+ )
565
+ _winapi.SetNamedPipeHandleState(
566
+ h2, _winapi.PIPE_READMODE_MESSAGE, None, None
567
+ )
568
+
569
+ overlapped = _winapi.ConnectNamedPipe(h1, overlapped=True)
570
+ _, err = overlapped.GetOverlappedResult(True)
571
+ assert err == 0
572
+
573
+ c1 = PipeConnection(h1, writable=duplex)
574
+ c2 = PipeConnection(h2, readable=duplex)
575
+
576
+ return c1, c2
577
+
578
+ #
579
+ # Definitions for connections based on sockets
580
+ #
581
+
582
+ class SocketListener(object):
583
+ '''
584
+ Representation of a socket which is bound to an address and listening
585
+ '''
586
+ def __init__(self, address, family, backlog=1):
587
+ self._socket = socket.socket(getattr(socket, family))
588
+ try:
589
+ # SO_REUSEADDR has different semantics on Windows (issue #2550).
590
+ if os.name == 'posix':
591
+ self._socket.setsockopt(socket.SOL_SOCKET,
592
+ socket.SO_REUSEADDR, 1)
593
+ self._socket.setblocking(True)
594
+ self._socket.bind(address)
595
+ self._socket.listen(backlog)
596
+ self._address = self._socket.getsockname()
597
+ except OSError:
598
+ self._socket.close()
599
+ raise
600
+ self._family = family
601
+ self._last_accepted = None
602
+
603
+ if family == 'AF_UNIX' and not util.is_abstract_socket_namespace(address):
604
+ # Linux abstract socket namespaces do not need to be explicitly unlinked
605
+ self._unlink = util.Finalize(
606
+ self, os.unlink, args=(address,), exitpriority=0
607
+ )
608
+ else:
609
+ self._unlink = None
610
+
611
+ def accept(self):
612
+ s, self._last_accepted = self._socket.accept()
613
+ s.setblocking(True)
614
+ return Connection(s.detach())
615
+
616
+ def close(self):
617
+ try:
618
+ self._socket.close()
619
+ finally:
620
+ unlink = self._unlink
621
+ if unlink is not None:
622
+ self._unlink = None
623
+ unlink()
624
+
625
+
626
+ def SocketClient(address):
627
+ '''
628
+ Return a connection object connected to the socket given by `address`
629
+ '''
630
+ family = address_type(address)
631
+ with socket.socket( getattr(socket, family) ) as s:
632
+ s.setblocking(True)
633
+ s.connect(address)
634
+ return Connection(s.detach())
635
+
636
+ #
637
+ # Definitions for connections based on named pipes
638
+ #
639
+
640
+ if sys.platform == 'win32':
641
+
642
+ class PipeListener(object):
643
+ '''
644
+ Representation of a named pipe
645
+ '''
646
+ def __init__(self, address, backlog=None):
647
+ self._address = address
648
+ self._handle_queue = [self._new_handle(first=True)]
649
+
650
+ self._last_accepted = None
651
+ util.sub_debug('listener created with address=%r', self._address)
652
+ self.close = util.Finalize(
653
+ self, PipeListener._finalize_pipe_listener,
654
+ args=(self._handle_queue, self._address), exitpriority=0
655
+ )
656
+
657
+ def _new_handle(self, first=False):
658
+ flags = _winapi.PIPE_ACCESS_DUPLEX | _winapi.FILE_FLAG_OVERLAPPED
659
+ if first:
660
+ flags |= _winapi.FILE_FLAG_FIRST_PIPE_INSTANCE
661
+ return _winapi.CreateNamedPipe(
662
+ self._address, flags,
663
+ _winapi.PIPE_TYPE_MESSAGE | _winapi.PIPE_READMODE_MESSAGE |
664
+ _winapi.PIPE_WAIT,
665
+ _winapi.PIPE_UNLIMITED_INSTANCES, BUFSIZE, BUFSIZE,
666
+ _winapi.NMPWAIT_WAIT_FOREVER, _winapi.NULL
667
+ )
668
+
669
+ def accept(self):
670
+ self._handle_queue.append(self._new_handle())
671
+ handle = self._handle_queue.pop(0)
672
+ try:
673
+ ov = _winapi.ConnectNamedPipe(handle, overlapped=True)
674
+ except OSError as e:
675
+ if e.winerror != _winapi.ERROR_NO_DATA:
676
+ raise
677
+ # ERROR_NO_DATA can occur if a client has already connected,
678
+ # written data and then disconnected -- see Issue 14725.
679
+ else:
680
+ try:
681
+ res = _winapi.WaitForMultipleObjects(
682
+ [ov.event], False, INFINITE)
683
+ except:
684
+ ov.cancel()
685
+ _winapi.CloseHandle(handle)
686
+ raise
687
+ finally:
688
+ _, err = ov.GetOverlappedResult(True)
689
+ assert err == 0
690
+ return PipeConnection(handle)
691
+
692
+ @staticmethod
693
+ def _finalize_pipe_listener(queue, address):
694
+ util.sub_debug('closing listener with address=%r', address)
695
+ for handle in queue:
696
+ _winapi.CloseHandle(handle)
697
+
698
+ def PipeClient(address):
699
+ '''
700
+ Return a connection object connected to the pipe given by `address`
701
+ '''
702
+ t = _init_timeout()
703
+ while 1:
704
+ try:
705
+ _winapi.WaitNamedPipe(address, 1000)
706
+ h = _winapi.CreateFile(
707
+ address, _winapi.GENERIC_READ | _winapi.GENERIC_WRITE,
708
+ 0, _winapi.NULL, _winapi.OPEN_EXISTING,
709
+ _winapi.FILE_FLAG_OVERLAPPED, _winapi.NULL
710
+ )
711
+ except OSError as e:
712
+ if e.winerror not in (_winapi.ERROR_SEM_TIMEOUT,
713
+ _winapi.ERROR_PIPE_BUSY) or _check_timeout(t):
714
+ raise
715
+ else:
716
+ break
717
+ else:
718
+ raise
719
+
720
+ _winapi.SetNamedPipeHandleState(
721
+ h, _winapi.PIPE_READMODE_MESSAGE, None, None
722
+ )
723
+ return PipeConnection(h)
724
+
725
+ #
726
+ # Authentication stuff
727
+ #
728
+
729
+ MESSAGE_LENGTH = 20
730
+
731
+ CHALLENGE = b'#CHALLENGE#'
732
+ WELCOME = b'#WELCOME#'
733
+ FAILURE = b'#FAILURE#'
734
+
735
+ def deliver_challenge(connection, authkey):
736
+ import hmac
737
+ if not isinstance(authkey, bytes):
738
+ raise ValueError(
739
+ "Authkey must be bytes, not {0!s}".format(type(authkey)))
740
+ message = os.urandom(MESSAGE_LENGTH)
741
+ connection.send_bytes(CHALLENGE + message)
742
+ digest = hmac.new(authkey, message, 'md5').digest()
743
+ response = connection.recv_bytes(256) # reject large message
744
+ if response == digest:
745
+ connection.send_bytes(WELCOME)
746
+ else:
747
+ connection.send_bytes(FAILURE)
748
+ raise AuthenticationError('digest received was wrong')
749
+
750
+ def answer_challenge(connection, authkey):
751
+ import hmac
752
+ if not isinstance(authkey, bytes):
753
+ raise ValueError(
754
+ "Authkey must be bytes, not {0!s}".format(type(authkey)))
755
+ message = connection.recv_bytes(256) # reject large message
756
+ assert message[:len(CHALLENGE)] == CHALLENGE, 'message = %r' % message
757
+ message = message[len(CHALLENGE):]
758
+ digest = hmac.new(authkey, message, 'md5').digest()
759
+ connection.send_bytes(digest)
760
+ response = connection.recv_bytes(256) # reject large message
761
+ if response != WELCOME:
762
+ raise AuthenticationError('digest sent was rejected')
763
+
764
+ #
765
+ # Support for using xmlrpclib for serialization
766
+ #
767
+
768
+ class ConnectionWrapper(object):
769
+ def __init__(self, conn, dumps, loads):
770
+ self._conn = conn
771
+ self._dumps = dumps
772
+ self._loads = loads
773
+ for attr in ('fileno', 'close', 'poll', 'recv_bytes', 'send_bytes'):
774
+ obj = getattr(conn, attr)
775
+ setattr(self, attr, obj)
776
+ def send(self, obj):
777
+ s = self._dumps(obj)
778
+ self._conn.send_bytes(s)
779
+ def recv(self):
780
+ s = self._conn.recv_bytes()
781
+ return self._loads(s)
782
+
783
+ def _xml_dumps(obj):
784
+ return xmlrpclib.dumps((obj,), None, None, None, 1).encode('utf-8')
785
+
786
+ def _xml_loads(s):
787
+ (obj,), method = xmlrpclib.loads(s.decode('utf-8'))
788
+ return obj
789
+
790
+ class XmlListener(Listener):
791
+ def accept(self):
792
+ global xmlrpclib
793
+ import xmlrpc.client as xmlrpclib
794
+ obj = Listener.accept(self)
795
+ return ConnectionWrapper(obj, _xml_dumps, _xml_loads)
796
+
797
+ def XmlClient(*args, **kwds):
798
+ global xmlrpclib
799
+ import xmlrpc.client as xmlrpclib
800
+ return ConnectionWrapper(Client(*args, **kwds), _xml_dumps, _xml_loads)
801
+
802
+ #
803
+ # Wait
804
+ #
805
+
806
+ if sys.platform == 'win32':
807
+
808
+ def _exhaustive_wait(handles, timeout):
809
+ # Return ALL handles which are currently signalled. (Only
810
+ # returning the first signalled might create starvation issues.)
811
+ L = list(handles)
812
+ ready = []
813
+ while L:
814
+ res = _winapi.WaitForMultipleObjects(L, False, timeout)
815
+ if res == WAIT_TIMEOUT:
816
+ break
817
+ elif WAIT_OBJECT_0 <= res < WAIT_OBJECT_0 + len(L):
818
+ res -= WAIT_OBJECT_0
819
+ elif WAIT_ABANDONED_0 <= res < WAIT_ABANDONED_0 + len(L):
820
+ res -= WAIT_ABANDONED_0
821
+ else:
822
+ raise RuntimeError('Should not get here')
823
+ ready.append(L[res])
824
+ L = L[res+1:]
825
+ timeout = 0
826
+ return ready
827
+
828
+ _ready_errors = {_winapi.ERROR_BROKEN_PIPE, _winapi.ERROR_NETNAME_DELETED}
829
+
830
+ def wait(object_list, timeout=None):
831
+ '''
832
+ Wait till an object in object_list is ready/readable.
833
+
834
+ Returns list of those objects in object_list which are ready/readable.
835
+ '''
836
+ if timeout is None:
837
+ timeout = INFINITE
838
+ elif timeout < 0:
839
+ timeout = 0
840
+ else:
841
+ timeout = int(timeout * 1000 + 0.5)
842
+
843
+ object_list = list(object_list)
844
+ waithandle_to_obj = {}
845
+ ov_list = []
846
+ ready_objects = set()
847
+ ready_handles = set()
848
+
849
+ try:
850
+ for o in object_list:
851
+ try:
852
+ fileno = getattr(o, 'fileno')
853
+ except AttributeError:
854
+ waithandle_to_obj[o.__index__()] = o
855
+ else:
856
+ # start an overlapped read of length zero
857
+ try:
858
+ ov, err = _winapi.ReadFile(fileno(), 0, True)
859
+ except OSError as e:
860
+ ov, err = None, e.winerror
861
+ if err not in _ready_errors:
862
+ raise
863
+ if err == _winapi.ERROR_IO_PENDING:
864
+ ov_list.append(ov)
865
+ waithandle_to_obj[ov.event] = o
866
+ else:
867
+ # If o.fileno() is an overlapped pipe handle and
868
+ # err == 0 then there is a zero length message
869
+ # in the pipe, but it HAS NOT been consumed...
870
+ if ov and sys.getwindowsversion()[:2] >= (6, 2):
871
+ # ... except on Windows 8 and later, where
872
+ # the message HAS been consumed.
873
+ try:
874
+ _, err = ov.GetOverlappedResult(False)
875
+ except OSError as e:
876
+ err = e.winerror
877
+ if not err and hasattr(o, '_got_empty_message'):
878
+ o._got_empty_message = True
879
+ ready_objects.add(o)
880
+ timeout = 0
881
+
882
+ ready_handles = _exhaustive_wait(waithandle_to_obj.keys(), timeout)
883
+ finally:
884
+ # request that overlapped reads stop
885
+ for ov in ov_list:
886
+ ov.cancel()
887
+
888
+ # wait for all overlapped reads to stop
889
+ for ov in ov_list:
890
+ try:
891
+ _, err = ov.GetOverlappedResult(True)
892
+ except OSError as e:
893
+ err = e.winerror
894
+ if err not in _ready_errors:
895
+ raise
896
+ if err != _winapi.ERROR_OPERATION_ABORTED:
897
+ o = waithandle_to_obj[ov.event]
898
+ ready_objects.add(o)
899
+ if err == 0:
900
+ # If o.fileno() is an overlapped pipe handle then
901
+ # a zero length message HAS been consumed.
902
+ if hasattr(o, '_got_empty_message'):
903
+ o._got_empty_message = True
904
+
905
+ ready_objects.update(waithandle_to_obj[h] for h in ready_handles)
906
+ return [o for o in object_list if o in ready_objects]
907
+
908
+ else:
909
+
910
+ import selectors
911
+
912
+ # poll/select have the advantage of not requiring any extra file
913
+ # descriptor, contrarily to epoll/kqueue (also, they require a single
914
+ # syscall).
915
+ if hasattr(selectors, 'PollSelector'):
916
+ _WaitSelector = selectors.PollSelector
917
+ else:
918
+ _WaitSelector = selectors.SelectSelector
919
+
920
+ def wait(object_list, timeout=None):
921
+ '''
922
+ Wait till an object in object_list is ready/readable.
923
+
924
+ Returns list of those objects in object_list which are ready/readable.
925
+ '''
926
+ with _WaitSelector() as selector:
927
+ for obj in object_list:
928
+ selector.register(obj, selectors.EVENT_READ)
929
+
930
+ if timeout is not None:
931
+ deadline = getattr(time,'monotonic',time.time)() + timeout
932
+
933
+ while True:
934
+ ready = selector.select(timeout)
935
+ if ready:
936
+ return [key.fileobj for (key, events) in ready]
937
+ else:
938
+ if timeout is not None:
939
+ timeout = deadline - getattr(time,'monotonic',time.time)()
940
+ if timeout < 0:
941
+ return ready
942
+
943
+ #
944
+ # Make connection and socket objects sharable if possible
945
+ #
946
+
947
+ if sys.platform == 'win32':
948
+ def reduce_connection(conn):
949
+ handle = conn.fileno()
950
+ with socket.fromfd(handle, socket.AF_INET, socket.SOCK_STREAM) as s:
951
+ from . import resource_sharer
952
+ ds = resource_sharer.DupSocket(s)
953
+ return rebuild_connection, (ds, conn.readable, conn.writable)
954
+ def rebuild_connection(ds, readable, writable):
955
+ sock = ds.detach()
956
+ return Connection(sock.detach(), readable, writable)
957
+ reduction.register(Connection, reduce_connection)
958
+
959
+ def reduce_pipe_connection(conn):
960
+ access = ((_winapi.FILE_GENERIC_READ if conn.readable else 0) |
961
+ (_winapi.FILE_GENERIC_WRITE if conn.writable else 0))
962
+ dh = reduction.DupHandle(conn.fileno(), access)
963
+ return rebuild_pipe_connection, (dh, conn.readable, conn.writable)
964
+ def rebuild_pipe_connection(dh, readable, writable):
965
+ handle = dh.detach()
966
+ return PipeConnection(handle, readable, writable)
967
+ reduction.register(PipeConnection, reduce_pipe_connection)
968
+
969
+ else:
970
+ def reduce_connection(conn):
971
+ df = reduction.DupFd(conn.fileno())
972
+ return rebuild_connection, (df, conn.readable, conn.writable)
973
+ def rebuild_connection(df, readable, writable):
974
+ fd = df.detach()
975
+ return Connection(fd, readable, writable)
976
+ reduction.register(Connection, reduce_connection)
llmeval-env/lib/python3.10/site-packages/multiprocess/dummy/__init__.py ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # Support for the API of the multiprocessing package using threads
3
+ #
4
+ # multiprocessing/dummy/__init__.py
5
+ #
6
+ # Copyright (c) 2006-2008, R Oudkerk
7
+ # Licensed to PSF under a Contributor Agreement.
8
+ #
9
+
10
+ __all__ = [
11
+ 'Process', 'current_process', 'active_children', 'freeze_support',
12
+ 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Condition',
13
+ 'Event', 'Barrier', 'Queue', 'Manager', 'Pipe', 'Pool', 'JoinableQueue'
14
+ ]
15
+
16
+ #
17
+ # Imports
18
+ #
19
+
20
+ import threading
21
+ import sys
22
+ import weakref
23
+ import array
24
+
25
+ from .connection import Pipe
26
+ from threading import Lock, RLock, Semaphore, BoundedSemaphore
27
+ from threading import Event, Condition, Barrier
28
+ from queue import Queue
29
+
30
+ #
31
+ #
32
+ #
33
+
34
+ class DummyProcess(threading.Thread):
35
+
36
+ def __init__(self, group=None, target=None, name=None, args=(), kwargs={}):
37
+ threading.Thread.__init__(self, group, target, name, args, kwargs)
38
+ self._pid = None
39
+ self._children = weakref.WeakKeyDictionary()
40
+ self._start_called = False
41
+ self._parent = current_process()
42
+
43
+ def start(self):
44
+ if self._parent is not current_process():
45
+ raise RuntimeError(
46
+ "Parent is {0!r} but current_process is {1!r}".format(
47
+ self._parent, current_process()))
48
+ self._start_called = True
49
+ if hasattr(self._parent, '_children'):
50
+ self._parent._children[self] = None
51
+ threading.Thread.start(self)
52
+
53
+ @property
54
+ def exitcode(self):
55
+ if self._start_called and not self.is_alive():
56
+ return 0
57
+ else:
58
+ return None
59
+
60
+ #
61
+ #
62
+ #
63
+
64
+ Process = DummyProcess
65
+ current_process = threading.current_thread
66
+ current_process()._children = weakref.WeakKeyDictionary()
67
+
68
+ def active_children():
69
+ children = current_process()._children
70
+ for p in list(children):
71
+ if not p.is_alive():
72
+ children.pop(p, None)
73
+ return list(children)
74
+
75
+ def freeze_support():
76
+ pass
77
+
78
+ #
79
+ #
80
+ #
81
+
82
+ class Namespace(object):
83
+ def __init__(self, /, **kwds):
84
+ self.__dict__.update(kwds)
85
+ def __repr__(self):
86
+ items = list(self.__dict__.items())
87
+ temp = []
88
+ for name, value in items:
89
+ if not name.startswith('_'):
90
+ temp.append('%s=%r' % (name, value))
91
+ temp.sort()
92
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(temp))
93
+
94
+ dict = dict
95
+ list = list
96
+
97
+ def Array(typecode, sequence, lock=True):
98
+ return array.array(typecode, sequence)
99
+
100
+ class Value(object):
101
+ def __init__(self, typecode, value, lock=True):
102
+ self._typecode = typecode
103
+ self._value = value
104
+
105
+ @property
106
+ def value(self):
107
+ return self._value
108
+
109
+ @value.setter
110
+ def value(self, value):
111
+ self._value = value
112
+
113
+ def __repr__(self):
114
+ return '<%s(%r, %r)>'%(type(self).__name__,self._typecode,self._value)
115
+
116
+ def Manager():
117
+ return sys.modules[__name__]
118
+
119
+ def shutdown():
120
+ pass
121
+
122
+ def Pool(processes=None, initializer=None, initargs=()):
123
+ from ..pool import ThreadPool
124
+ return ThreadPool(processes, initializer, initargs)
125
+
126
+ JoinableQueue = Queue
llmeval-env/lib/python3.10/site-packages/multiprocess/dummy/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (3.91 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/dummy/__pycache__/connection.cpython-310.pyc ADDED
Binary file (2.61 kB). View file
 
llmeval-env/lib/python3.10/site-packages/multiprocess/dummy/connection.py ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # Analogue of `multiprocessing.connection` which uses queues instead of sockets
3
+ #
4
+ # multiprocessing/dummy/connection.py
5
+ #
6
+ # Copyright (c) 2006-2008, R Oudkerk
7
+ # Licensed to PSF under a Contributor Agreement.
8
+ #
9
+
10
+ __all__ = [ 'Client', 'Listener', 'Pipe' ]
11
+
12
+ from queue import Queue
13
+
14
+
15
+ families = [None]
16
+
17
+
18
+ class Listener(object):
19
+
20
+ def __init__(self, address=None, family=None, backlog=1):
21
+ self._backlog_queue = Queue(backlog)
22
+
23
+ def accept(self):
24
+ return Connection(*self._backlog_queue.get())
25
+
26
+ def close(self):
27
+ self._backlog_queue = None
28
+
29
+ @property
30
+ def address(self):
31
+ return self._backlog_queue
32
+
33
+ def __enter__(self):
34
+ return self
35
+
36
+ def __exit__(self, exc_type, exc_value, exc_tb):
37
+ self.close()
38
+
39
+
40
+ def Client(address):
41
+ _in, _out = Queue(), Queue()
42
+ address.put((_out, _in))
43
+ return Connection(_in, _out)
44
+
45
+
46
+ def Pipe(duplex=True):
47
+ a, b = Queue(), Queue()
48
+ return Connection(a, b), Connection(b, a)
49
+
50
+
51
+ class Connection(object):
52
+
53
+ def __init__(self, _in, _out):
54
+ self._out = _out
55
+ self._in = _in
56
+ self.send = self.send_bytes = _out.put
57
+ self.recv = self.recv_bytes = _in.get
58
+
59
+ def poll(self, timeout=0.0):
60
+ if self._in.qsize() > 0:
61
+ return True
62
+ if timeout <= 0.0:
63
+ return False
64
+ with self._in.not_empty:
65
+ self._in.not_empty.wait(timeout)
66
+ return self._in.qsize() > 0
67
+
68
+ def close(self):
69
+ pass
70
+
71
+ def __enter__(self):
72
+ return self
73
+
74
+ def __exit__(self, exc_type, exc_value, exc_tb):
75
+ self.close()
llmeval-env/lib/python3.10/site-packages/multiprocess/forkserver.py ADDED
@@ -0,0 +1,347 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import errno
2
+ import os
3
+ import selectors
4
+ import signal
5
+ import socket
6
+ import struct
7
+ import sys
8
+ import threading
9
+ import warnings
10
+
11
+ from . import connection
12
+ from . import process
13
+ from .context import reduction
14
+ from . import resource_tracker
15
+ from . import spawn
16
+ from . import util
17
+
18
+ __all__ = ['ensure_running', 'get_inherited_fds', 'connect_to_new_process',
19
+ 'set_forkserver_preload']
20
+
21
+ #
22
+ #
23
+ #
24
+
25
+ MAXFDS_TO_SEND = 256
26
+ SIGNED_STRUCT = struct.Struct('q') # large enough for pid_t
27
+
28
+ #
29
+ # Forkserver class
30
+ #
31
+
32
+ class ForkServer(object):
33
+
34
+ def __init__(self):
35
+ self._forkserver_address = None
36
+ self._forkserver_alive_fd = None
37
+ self._forkserver_pid = None
38
+ self._inherited_fds = None
39
+ self._lock = threading.Lock()
40
+ self._preload_modules = ['__main__']
41
+
42
+ def _stop(self):
43
+ # Method used by unit tests to stop the server
44
+ with self._lock:
45
+ self._stop_unlocked()
46
+
47
+ def _stop_unlocked(self):
48
+ if self._forkserver_pid is None:
49
+ return
50
+
51
+ # close the "alive" file descriptor asks the server to stop
52
+ os.close(self._forkserver_alive_fd)
53
+ self._forkserver_alive_fd = None
54
+
55
+ os.waitpid(self._forkserver_pid, 0)
56
+ self._forkserver_pid = None
57
+
58
+ if not util.is_abstract_socket_namespace(self._forkserver_address):
59
+ os.unlink(self._forkserver_address)
60
+ self._forkserver_address = None
61
+
62
+ def set_forkserver_preload(self, modules_names):
63
+ '''Set list of module names to try to load in forkserver process.'''
64
+ if not all(type(mod) is str for mod in self._preload_modules):
65
+ raise TypeError('module_names must be a list of strings')
66
+ self._preload_modules = modules_names
67
+
68
+ def get_inherited_fds(self):
69
+ '''Return list of fds inherited from parent process.
70
+
71
+ This returns None if the current process was not started by fork
72
+ server.
73
+ '''
74
+ return self._inherited_fds
75
+
76
+ def connect_to_new_process(self, fds):
77
+ '''Request forkserver to create a child process.
78
+
79
+ Returns a pair of fds (status_r, data_w). The calling process can read
80
+ the child process's pid and (eventually) its returncode from status_r.
81
+ The calling process should write to data_w the pickled preparation and
82
+ process data.
83
+ '''
84
+ self.ensure_running()
85
+ if len(fds) + 4 >= MAXFDS_TO_SEND:
86
+ raise ValueError('too many fds')
87
+ with socket.socket(socket.AF_UNIX) as client:
88
+ client.connect(self._forkserver_address)
89
+ parent_r, child_w = os.pipe()
90
+ child_r, parent_w = os.pipe()
91
+ allfds = [child_r, child_w, self._forkserver_alive_fd,
92
+ resource_tracker.getfd()]
93
+ allfds += fds
94
+ try:
95
+ reduction.sendfds(client, allfds)
96
+ return parent_r, parent_w
97
+ except:
98
+ os.close(parent_r)
99
+ os.close(parent_w)
100
+ raise
101
+ finally:
102
+ os.close(child_r)
103
+ os.close(child_w)
104
+
105
+ def ensure_running(self):
106
+ '''Make sure that a fork server is running.
107
+
108
+ This can be called from any process. Note that usually a child
109
+ process will just reuse the forkserver started by its parent, so
110
+ ensure_running() will do nothing.
111
+ '''
112
+ with self._lock:
113
+ resource_tracker.ensure_running()
114
+ if self._forkserver_pid is not None:
115
+ # forkserver was launched before, is it still running?
116
+ pid, status = os.waitpid(self._forkserver_pid, os.WNOHANG)
117
+ if not pid:
118
+ # still alive
119
+ return
120
+ # dead, launch it again
121
+ os.close(self._forkserver_alive_fd)
122
+ self._forkserver_address = None
123
+ self._forkserver_alive_fd = None
124
+ self._forkserver_pid = None
125
+
126
+ cmd = ('from multiprocess.forkserver import main; ' +
127
+ 'main(%d, %d, %r, **%r)')
128
+
129
+ if self._preload_modules:
130
+ desired_keys = {'main_path', 'sys_path'}
131
+ data = spawn.get_preparation_data('ignore')
132
+ data = {x: y for x, y in data.items() if x in desired_keys}
133
+ else:
134
+ data = {}
135
+
136
+ with socket.socket(socket.AF_UNIX) as listener:
137
+ address = connection.arbitrary_address('AF_UNIX')
138
+ listener.bind(address)
139
+ if not util.is_abstract_socket_namespace(address):
140
+ os.chmod(address, 0o600)
141
+ listener.listen()
142
+
143
+ # all client processes own the write end of the "alive" pipe;
144
+ # when they all terminate the read end becomes ready.
145
+ alive_r, alive_w = os.pipe()
146
+ try:
147
+ fds_to_pass = [listener.fileno(), alive_r]
148
+ cmd %= (listener.fileno(), alive_r, self._preload_modules,
149
+ data)
150
+ exe = spawn.get_executable()
151
+ args = [exe] + util._args_from_interpreter_flags()
152
+ args += ['-c', cmd]
153
+ pid = util.spawnv_passfds(exe, args, fds_to_pass)
154
+ except:
155
+ os.close(alive_w)
156
+ raise
157
+ finally:
158
+ os.close(alive_r)
159
+ self._forkserver_address = address
160
+ self._forkserver_alive_fd = alive_w
161
+ self._forkserver_pid = pid
162
+
163
+ #
164
+ #
165
+ #
166
+
167
+ def main(listener_fd, alive_r, preload, main_path=None, sys_path=None):
168
+ '''Run forkserver.'''
169
+ if preload:
170
+ if '__main__' in preload and main_path is not None:
171
+ process.current_process()._inheriting = True
172
+ try:
173
+ spawn.import_main_path(main_path)
174
+ finally:
175
+ del process.current_process()._inheriting
176
+ for modname in preload:
177
+ try:
178
+ __import__(modname)
179
+ except ImportError:
180
+ pass
181
+
182
+ util._close_stdin()
183
+
184
+ sig_r, sig_w = os.pipe()
185
+ os.set_blocking(sig_r, False)
186
+ os.set_blocking(sig_w, False)
187
+
188
+ def sigchld_handler(*_unused):
189
+ # Dummy signal handler, doesn't do anything
190
+ pass
191
+
192
+ handlers = {
193
+ # unblocking SIGCHLD allows the wakeup fd to notify our event loop
194
+ signal.SIGCHLD: sigchld_handler,
195
+ # protect the process from ^C
196
+ signal.SIGINT: signal.SIG_IGN,
197
+ }
198
+ old_handlers = {sig: signal.signal(sig, val)
199
+ for (sig, val) in handlers.items()}
200
+
201
+ # calling os.write() in the Python signal handler is racy
202
+ signal.set_wakeup_fd(sig_w)
203
+
204
+ # map child pids to client fds
205
+ pid_to_fd = {}
206
+
207
+ with socket.socket(socket.AF_UNIX, fileno=listener_fd) as listener, \
208
+ selectors.DefaultSelector() as selector:
209
+ _forkserver._forkserver_address = listener.getsockname()
210
+
211
+ selector.register(listener, selectors.EVENT_READ)
212
+ selector.register(alive_r, selectors.EVENT_READ)
213
+ selector.register(sig_r, selectors.EVENT_READ)
214
+
215
+ while True:
216
+ try:
217
+ while True:
218
+ rfds = [key.fileobj for (key, events) in selector.select()]
219
+ if rfds:
220
+ break
221
+
222
+ if alive_r in rfds:
223
+ # EOF because no more client processes left
224
+ assert os.read(alive_r, 1) == b'', "Not at EOF?"
225
+ raise SystemExit
226
+
227
+ if sig_r in rfds:
228
+ # Got SIGCHLD
229
+ os.read(sig_r, 65536) # exhaust
230
+ while True:
231
+ # Scan for child processes
232
+ try:
233
+ pid, sts = os.waitpid(-1, os.WNOHANG)
234
+ except ChildProcessError:
235
+ break
236
+ if pid == 0:
237
+ break
238
+ child_w = pid_to_fd.pop(pid, None)
239
+ if child_w is not None:
240
+ returncode = os.waitstatus_to_exitcode(sts)
241
+ # Send exit code to client process
242
+ try:
243
+ write_signed(child_w, returncode)
244
+ except BrokenPipeError:
245
+ # client vanished
246
+ pass
247
+ os.close(child_w)
248
+ else:
249
+ # This shouldn't happen really
250
+ warnings.warn('forkserver: waitpid returned '
251
+ 'unexpected pid %d' % pid)
252
+
253
+ if listener in rfds:
254
+ # Incoming fork request
255
+ with listener.accept()[0] as s:
256
+ # Receive fds from client
257
+ fds = reduction.recvfds(s, MAXFDS_TO_SEND + 1)
258
+ if len(fds) > MAXFDS_TO_SEND:
259
+ raise RuntimeError(
260
+ "Too many ({0:n}) fds to send".format(
261
+ len(fds)))
262
+ child_r, child_w, *fds = fds
263
+ s.close()
264
+ pid = os.fork()
265
+ if pid == 0:
266
+ # Child
267
+ code = 1
268
+ try:
269
+ listener.close()
270
+ selector.close()
271
+ unused_fds = [alive_r, child_w, sig_r, sig_w]
272
+ unused_fds.extend(pid_to_fd.values())
273
+ code = _serve_one(child_r, fds,
274
+ unused_fds,
275
+ old_handlers)
276
+ except Exception:
277
+ sys.excepthook(*sys.exc_info())
278
+ sys.stderr.flush()
279
+ finally:
280
+ os._exit(code)
281
+ else:
282
+ # Send pid to client process
283
+ try:
284
+ write_signed(child_w, pid)
285
+ except BrokenPipeError:
286
+ # client vanished
287
+ pass
288
+ pid_to_fd[pid] = child_w
289
+ os.close(child_r)
290
+ for fd in fds:
291
+ os.close(fd)
292
+
293
+ except OSError as e:
294
+ if e.errno != errno.ECONNABORTED:
295
+ raise
296
+
297
+
298
+ def _serve_one(child_r, fds, unused_fds, handlers):
299
+ # close unnecessary stuff and reset signal handlers
300
+ signal.set_wakeup_fd(-1)
301
+ for sig, val in handlers.items():
302
+ signal.signal(sig, val)
303
+ for fd in unused_fds:
304
+ os.close(fd)
305
+
306
+ (_forkserver._forkserver_alive_fd,
307
+ resource_tracker._resource_tracker._fd,
308
+ *_forkserver._inherited_fds) = fds
309
+
310
+ # Run process object received over pipe
311
+ parent_sentinel = os.dup(child_r)
312
+ code = spawn._main(child_r, parent_sentinel)
313
+
314
+ return code
315
+
316
+
317
+ #
318
+ # Read and write signed numbers
319
+ #
320
+
321
+ def read_signed(fd):
322
+ data = b''
323
+ length = SIGNED_STRUCT.size
324
+ while len(data) < length:
325
+ s = os.read(fd, length - len(data))
326
+ if not s:
327
+ raise EOFError('unexpected EOF')
328
+ data += s
329
+ return SIGNED_STRUCT.unpack(data)[0]
330
+
331
+ def write_signed(fd, n):
332
+ msg = SIGNED_STRUCT.pack(n)
333
+ while msg:
334
+ nbytes = os.write(fd, msg)
335
+ if nbytes == 0:
336
+ raise RuntimeError('should not get here')
337
+ msg = msg[nbytes:]
338
+
339
+ #
340
+ #
341
+ #
342
+
343
+ _forkserver = ForkServer()
344
+ ensure_running = _forkserver.ensure_running
345
+ get_inherited_fds = _forkserver.get_inherited_fds
346
+ connect_to_new_process = _forkserver.connect_to_new_process
347
+ set_forkserver_preload = _forkserver.set_forkserver_preload
llmeval-env/lib/python3.10/site-packages/multiprocess/heap.py ADDED
@@ -0,0 +1,337 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # Module which supports allocation of memory from an mmap
3
+ #
4
+ # multiprocessing/heap.py
5
+ #
6
+ # Copyright (c) 2006-2008, R Oudkerk
7
+ # Licensed to PSF under a Contributor Agreement.
8
+ #
9
+
10
+ import bisect
11
+ from collections import defaultdict
12
+ import mmap
13
+ import os
14
+ import sys
15
+ import tempfile
16
+ import threading
17
+
18
+ from .context import reduction, assert_spawning
19
+ from . import util
20
+
21
+ __all__ = ['BufferWrapper']
22
+
23
+ #
24
+ # Inheritable class which wraps an mmap, and from which blocks can be allocated
25
+ #
26
+
27
+ if sys.platform == 'win32':
28
+
29
+ import _winapi
30
+
31
+ class Arena(object):
32
+ """
33
+ A shared memory area backed by anonymous memory (Windows).
34
+ """
35
+
36
+ _rand = tempfile._RandomNameSequence()
37
+
38
+ def __init__(self, size):
39
+ self.size = size
40
+ for i in range(100):
41
+ name = 'pym-%d-%s' % (os.getpid(), next(self._rand))
42
+ buf = mmap.mmap(-1, size, tagname=name)
43
+ if _winapi.GetLastError() == 0:
44
+ break
45
+ # We have reopened a preexisting mmap.
46
+ buf.close()
47
+ else:
48
+ raise FileExistsError('Cannot find name for new mmap')
49
+ self.name = name
50
+ self.buffer = buf
51
+ self._state = (self.size, self.name)
52
+
53
+ def __getstate__(self):
54
+ assert_spawning(self)
55
+ return self._state
56
+
57
+ def __setstate__(self, state):
58
+ self.size, self.name = self._state = state
59
+ # Reopen existing mmap
60
+ self.buffer = mmap.mmap(-1, self.size, tagname=self.name)
61
+ # XXX Temporarily preventing buildbot failures while determining
62
+ # XXX the correct long-term fix. See issue 23060
63
+ #assert _winapi.GetLastError() == _winapi.ERROR_ALREADY_EXISTS
64
+
65
+ else:
66
+
67
+ class Arena(object):
68
+ """
69
+ A shared memory area backed by a temporary file (POSIX).
70
+ """
71
+
72
+ if sys.platform == 'linux':
73
+ _dir_candidates = ['/dev/shm']
74
+ else:
75
+ _dir_candidates = []
76
+
77
+ def __init__(self, size, fd=-1):
78
+ self.size = size
79
+ self.fd = fd
80
+ if fd == -1:
81
+ # Arena is created anew (if fd != -1, it means we're coming
82
+ # from rebuild_arena() below)
83
+ self.fd, name = tempfile.mkstemp(
84
+ prefix='pym-%d-'%os.getpid(),
85
+ dir=self._choose_dir(size))
86
+ os.unlink(name)
87
+ util.Finalize(self, os.close, (self.fd,))
88
+ os.ftruncate(self.fd, size)
89
+ self.buffer = mmap.mmap(self.fd, self.size)
90
+
91
+ def _choose_dir(self, size):
92
+ # Choose a non-storage backed directory if possible,
93
+ # to improve performance
94
+ for d in self._dir_candidates:
95
+ st = os.statvfs(d)
96
+ if st.f_bavail * st.f_frsize >= size: # enough free space?
97
+ return d
98
+ return util.get_temp_dir()
99
+
100
+ def reduce_arena(a):
101
+ if a.fd == -1:
102
+ raise ValueError('Arena is unpicklable because '
103
+ 'forking was enabled when it was created')
104
+ return rebuild_arena, (a.size, reduction.DupFd(a.fd))
105
+
106
+ def rebuild_arena(size, dupfd):
107
+ return Arena(size, dupfd.detach())
108
+
109
+ reduction.register(Arena, reduce_arena)
110
+
111
+ #
112
+ # Class allowing allocation of chunks of memory from arenas
113
+ #
114
+
115
+ class Heap(object):
116
+
117
+ # Minimum malloc() alignment
118
+ _alignment = 8
119
+
120
+ _DISCARD_FREE_SPACE_LARGER_THAN = 4 * 1024 ** 2 # 4 MB
121
+ _DOUBLE_ARENA_SIZE_UNTIL = 4 * 1024 ** 2
122
+
123
+ def __init__(self, size=mmap.PAGESIZE):
124
+ self._lastpid = os.getpid()
125
+ self._lock = threading.Lock()
126
+ # Current arena allocation size
127
+ self._size = size
128
+ # A sorted list of available block sizes in arenas
129
+ self._lengths = []
130
+
131
+ # Free block management:
132
+ # - map each block size to a list of `(Arena, start, stop)` blocks
133
+ self._len_to_seq = {}
134
+ # - map `(Arena, start)` tuple to the `(Arena, start, stop)` block
135
+ # starting at that offset
136
+ self._start_to_block = {}
137
+ # - map `(Arena, stop)` tuple to the `(Arena, start, stop)` block
138
+ # ending at that offset
139
+ self._stop_to_block = {}
140
+
141
+ # Map arenas to their `(Arena, start, stop)` blocks in use
142
+ self._allocated_blocks = defaultdict(set)
143
+ self._arenas = []
144
+
145
+ # List of pending blocks to free - see comment in free() below
146
+ self._pending_free_blocks = []
147
+
148
+ # Statistics
149
+ self._n_mallocs = 0
150
+ self._n_frees = 0
151
+
152
+ @staticmethod
153
+ def _roundup(n, alignment):
154
+ # alignment must be a power of 2
155
+ mask = alignment - 1
156
+ return (n + mask) & ~mask
157
+
158
+ def _new_arena(self, size):
159
+ # Create a new arena with at least the given *size*
160
+ length = self._roundup(max(self._size, size), mmap.PAGESIZE)
161
+ # We carve larger and larger arenas, for efficiency, until we
162
+ # reach a large-ish size (roughly L3 cache-sized)
163
+ if self._size < self._DOUBLE_ARENA_SIZE_UNTIL:
164
+ self._size *= 2
165
+ util.info('allocating a new mmap of length %d', length)
166
+ arena = Arena(length)
167
+ self._arenas.append(arena)
168
+ return (arena, 0, length)
169
+
170
+ def _discard_arena(self, arena):
171
+ # Possibly delete the given (unused) arena
172
+ length = arena.size
173
+ # Reusing an existing arena is faster than creating a new one, so
174
+ # we only reclaim space if it's large enough.
175
+ if length < self._DISCARD_FREE_SPACE_LARGER_THAN:
176
+ return
177
+ blocks = self._allocated_blocks.pop(arena)
178
+ assert not blocks
179
+ del self._start_to_block[(arena, 0)]
180
+ del self._stop_to_block[(arena, length)]
181
+ self._arenas.remove(arena)
182
+ seq = self._len_to_seq[length]
183
+ seq.remove((arena, 0, length))
184
+ if not seq:
185
+ del self._len_to_seq[length]
186
+ self._lengths.remove(length)
187
+
188
+ def _malloc(self, size):
189
+ # returns a large enough block -- it might be much larger
190
+ i = bisect.bisect_left(self._lengths, size)
191
+ if i == len(self._lengths):
192
+ return self._new_arena(size)
193
+ else:
194
+ length = self._lengths[i]
195
+ seq = self._len_to_seq[length]
196
+ block = seq.pop()
197
+ if not seq:
198
+ del self._len_to_seq[length], self._lengths[i]
199
+
200
+ (arena, start, stop) = block
201
+ del self._start_to_block[(arena, start)]
202
+ del self._stop_to_block[(arena, stop)]
203
+ return block
204
+
205
+ def _add_free_block(self, block):
206
+ # make block available and try to merge with its neighbours in the arena
207
+ (arena, start, stop) = block
208
+
209
+ try:
210
+ prev_block = self._stop_to_block[(arena, start)]
211
+ except KeyError:
212
+ pass
213
+ else:
214
+ start, _ = self._absorb(prev_block)
215
+
216
+ try:
217
+ next_block = self._start_to_block[(arena, stop)]
218
+ except KeyError:
219
+ pass
220
+ else:
221
+ _, stop = self._absorb(next_block)
222
+
223
+ block = (arena, start, stop)
224
+ length = stop - start
225
+
226
+ try:
227
+ self._len_to_seq[length].append(block)
228
+ except KeyError:
229
+ self._len_to_seq[length] = [block]
230
+ bisect.insort(self._lengths, length)
231
+
232
+ self._start_to_block[(arena, start)] = block
233
+ self._stop_to_block[(arena, stop)] = block
234
+
235
+ def _absorb(self, block):
236
+ # deregister this block so it can be merged with a neighbour
237
+ (arena, start, stop) = block
238
+ del self._start_to_block[(arena, start)]
239
+ del self._stop_to_block[(arena, stop)]
240
+
241
+ length = stop - start
242
+ seq = self._len_to_seq[length]
243
+ seq.remove(block)
244
+ if not seq:
245
+ del self._len_to_seq[length]
246
+ self._lengths.remove(length)
247
+
248
+ return start, stop
249
+
250
+ def _remove_allocated_block(self, block):
251
+ arena, start, stop = block
252
+ blocks = self._allocated_blocks[arena]
253
+ blocks.remove((start, stop))
254
+ if not blocks:
255
+ # Arena is entirely free, discard it from this process
256
+ self._discard_arena(arena)
257
+
258
+ def _free_pending_blocks(self):
259
+ # Free all the blocks in the pending list - called with the lock held.
260
+ while True:
261
+ try:
262
+ block = self._pending_free_blocks.pop()
263
+ except IndexError:
264
+ break
265
+ self._add_free_block(block)
266
+ self._remove_allocated_block(block)
267
+
268
+ def free(self, block):
269
+ # free a block returned by malloc()
270
+ # Since free() can be called asynchronously by the GC, it could happen
271
+ # that it's called while self._lock is held: in that case,
272
+ # self._lock.acquire() would deadlock (issue #12352). To avoid that, a
273
+ # trylock is used instead, and if the lock can't be acquired
274
+ # immediately, the block is added to a list of blocks to be freed
275
+ # synchronously sometimes later from malloc() or free(), by calling
276
+ # _free_pending_blocks() (appending and retrieving from a list is not
277
+ # strictly thread-safe but under CPython it's atomic thanks to the GIL).
278
+ if os.getpid() != self._lastpid:
279
+ raise ValueError(
280
+ "My pid ({0:n}) is not last pid {1:n}".format(
281
+ os.getpid(),self._lastpid))
282
+ if not self._lock.acquire(False):
283
+ # can't acquire the lock right now, add the block to the list of
284
+ # pending blocks to free
285
+ self._pending_free_blocks.append(block)
286
+ else:
287
+ # we hold the lock
288
+ try:
289
+ self._n_frees += 1
290
+ self._free_pending_blocks()
291
+ self._add_free_block(block)
292
+ self._remove_allocated_block(block)
293
+ finally:
294
+ self._lock.release()
295
+
296
+ def malloc(self, size):
297
+ # return a block of right size (possibly rounded up)
298
+ if size < 0:
299
+ raise ValueError("Size {0:n} out of range".format(size))
300
+ if sys.maxsize <= size:
301
+ raise OverflowError("Size {0:n} too large".format(size))
302
+ if os.getpid() != self._lastpid:
303
+ self.__init__() # reinitialize after fork
304
+ with self._lock:
305
+ self._n_mallocs += 1
306
+ # allow pending blocks to be marked available
307
+ self._free_pending_blocks()
308
+ size = self._roundup(max(size, 1), self._alignment)
309
+ (arena, start, stop) = self._malloc(size)
310
+ real_stop = start + size
311
+ if real_stop < stop:
312
+ # if the returned block is larger than necessary, mark
313
+ # the remainder available
314
+ self._add_free_block((arena, real_stop, stop))
315
+ self._allocated_blocks[arena].add((start, real_stop))
316
+ return (arena, start, real_stop)
317
+
318
+ #
319
+ # Class wrapping a block allocated out of a Heap -- can be inherited by child process
320
+ #
321
+
322
+ class BufferWrapper(object):
323
+
324
+ _heap = Heap()
325
+
326
+ def __init__(self, size):
327
+ if size < 0:
328
+ raise ValueError("Size {0:n} out of range".format(size))
329
+ if sys.maxsize <= size:
330
+ raise OverflowError("Size {0:n} too large".format(size))
331
+ block = BufferWrapper._heap.malloc(size)
332
+ self._state = (block, size)
333
+ util.Finalize(self, BufferWrapper._heap.free, args=(block,))
334
+
335
+ def create_memoryview(self):
336
+ (arena, start, stop), size = self._state
337
+ return memoryview(arena.buffer)[start:start+size]
llmeval-env/lib/python3.10/site-packages/multiprocess/pool.py ADDED
@@ -0,0 +1,957 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # Module providing the `Pool` class for managing a process pool
3
+ #
4
+ # multiprocessing/pool.py
5
+ #
6
+ # Copyright (c) 2006-2008, R Oudkerk
7
+ # Licensed to PSF under a Contributor Agreement.
8
+ #
9
+
10
+ __all__ = ['Pool', 'ThreadPool']
11
+
12
+ #
13
+ # Imports
14
+ #
15
+
16
+ import collections
17
+ import itertools
18
+ import os
19
+ import queue
20
+ import threading
21
+ import time
22
+ import traceback
23
+ import types
24
+ import warnings
25
+
26
+ # If threading is available then ThreadPool should be provided. Therefore
27
+ # we avoid top-level imports which are liable to fail on some systems.
28
+ from . import util
29
+ from . import get_context, TimeoutError
30
+ from .connection import wait
31
+
32
+ #
33
+ # Constants representing the state of a pool
34
+ #
35
+
36
+ INIT = "INIT"
37
+ RUN = "RUN"
38
+ CLOSE = "CLOSE"
39
+ TERMINATE = "TERMINATE"
40
+
41
+ #
42
+ # Miscellaneous
43
+ #
44
+
45
+ job_counter = itertools.count()
46
+
47
+ def mapstar(args):
48
+ return list(map(*args))
49
+
50
+ def starmapstar(args):
51
+ return list(itertools.starmap(args[0], args[1]))
52
+
53
+ #
54
+ # Hack to embed stringification of remote traceback in local traceback
55
+ #
56
+
57
+ class RemoteTraceback(Exception):
58
+ def __init__(self, tb):
59
+ self.tb = tb
60
+ def __str__(self):
61
+ return self.tb
62
+
63
+ class ExceptionWithTraceback:
64
+ def __init__(self, exc, tb):
65
+ tb = traceback.format_exception(type(exc), exc, tb)
66
+ tb = ''.join(tb)
67
+ self.exc = exc
68
+ self.tb = '\n"""\n%s"""' % tb
69
+ def __reduce__(self):
70
+ return rebuild_exc, (self.exc, self.tb)
71
+
72
+ def rebuild_exc(exc, tb):
73
+ exc.__cause__ = RemoteTraceback(tb)
74
+ return exc
75
+
76
+ #
77
+ # Code run by worker processes
78
+ #
79
+
80
+ class MaybeEncodingError(Exception):
81
+ """Wraps possible unpickleable errors, so they can be
82
+ safely sent through the socket."""
83
+
84
+ def __init__(self, exc, value):
85
+ self.exc = repr(exc)
86
+ self.value = repr(value)
87
+ super(MaybeEncodingError, self).__init__(self.exc, self.value)
88
+
89
+ def __str__(self):
90
+ return "Error sending result: '%s'. Reason: '%s'" % (self.value,
91
+ self.exc)
92
+
93
+ def __repr__(self):
94
+ return "<%s: %s>" % (self.__class__.__name__, self)
95
+
96
+
97
+ def worker(inqueue, outqueue, initializer=None, initargs=(), maxtasks=None,
98
+ wrap_exception=False):
99
+ if (maxtasks is not None) and not (isinstance(maxtasks, int)
100
+ and maxtasks >= 1):
101
+ raise AssertionError("Maxtasks {!r} is not valid".format(maxtasks))
102
+ put = outqueue.put
103
+ get = inqueue.get
104
+ if hasattr(inqueue, '_writer'):
105
+ inqueue._writer.close()
106
+ outqueue._reader.close()
107
+
108
+ if initializer is not None:
109
+ initializer(*initargs)
110
+
111
+ completed = 0
112
+ while maxtasks is None or (maxtasks and completed < maxtasks):
113
+ try:
114
+ task = get()
115
+ except (EOFError, OSError):
116
+ util.debug('worker got EOFError or OSError -- exiting')
117
+ break
118
+
119
+ if task is None:
120
+ util.debug('worker got sentinel -- exiting')
121
+ break
122
+
123
+ job, i, func, args, kwds = task
124
+ try:
125
+ result = (True, func(*args, **kwds))
126
+ except Exception as e:
127
+ if wrap_exception and func is not _helper_reraises_exception:
128
+ e = ExceptionWithTraceback(e, e.__traceback__)
129
+ result = (False, e)
130
+ try:
131
+ put((job, i, result))
132
+ except Exception as e:
133
+ wrapped = MaybeEncodingError(e, result[1])
134
+ util.debug("Possible encoding error while sending result: %s" % (
135
+ wrapped))
136
+ put((job, i, (False, wrapped)))
137
+
138
+ task = job = result = func = args = kwds = None
139
+ completed += 1
140
+ util.debug('worker exiting after %d tasks' % completed)
141
+
142
+ def _helper_reraises_exception(ex):
143
+ 'Pickle-able helper function for use by _guarded_task_generation.'
144
+ raise ex
145
+
146
+ #
147
+ # Class representing a process pool
148
+ #
149
+
150
+ class _PoolCache(dict):
151
+ """
152
+ Class that implements a cache for the Pool class that will notify
153
+ the pool management threads every time the cache is emptied. The
154
+ notification is done by the use of a queue that is provided when
155
+ instantiating the cache.
156
+ """
157
+ def __init__(self, /, *args, notifier=None, **kwds):
158
+ self.notifier = notifier
159
+ super().__init__(*args, **kwds)
160
+
161
+ def __delitem__(self, item):
162
+ super().__delitem__(item)
163
+
164
+ # Notify that the cache is empty. This is important because the
165
+ # pool keeps maintaining workers until the cache gets drained. This
166
+ # eliminates a race condition in which a task is finished after the
167
+ # the pool's _handle_workers method has enter another iteration of the
168
+ # loop. In this situation, the only event that can wake up the pool
169
+ # is the cache to be emptied (no more tasks available).
170
+ if not self:
171
+ self.notifier.put(None)
172
+
173
+ class Pool(object):
174
+ '''
175
+ Class which supports an async version of applying functions to arguments.
176
+ '''
177
+ _wrap_exception = True
178
+
179
+ @staticmethod
180
+ def Process(ctx, *args, **kwds):
181
+ return ctx.Process(*args, **kwds)
182
+
183
+ def __init__(self, processes=None, initializer=None, initargs=(),
184
+ maxtasksperchild=None, context=None):
185
+ # Attributes initialized early to make sure that they exist in
186
+ # __del__() if __init__() raises an exception
187
+ self._pool = []
188
+ self._state = INIT
189
+
190
+ self._ctx = context or get_context()
191
+ self._setup_queues()
192
+ self._taskqueue = queue.SimpleQueue()
193
+ # The _change_notifier queue exist to wake up self._handle_workers()
194
+ # when the cache (self._cache) is empty or when there is a change in
195
+ # the _state variable of the thread that runs _handle_workers.
196
+ self._change_notifier = self._ctx.SimpleQueue()
197
+ self._cache = _PoolCache(notifier=self._change_notifier)
198
+ self._maxtasksperchild = maxtasksperchild
199
+ self._initializer = initializer
200
+ self._initargs = initargs
201
+
202
+ if processes is None:
203
+ processes = os.cpu_count() or 1
204
+ if processes < 1:
205
+ raise ValueError("Number of processes must be at least 1")
206
+ if maxtasksperchild is not None:
207
+ if not isinstance(maxtasksperchild, int) or maxtasksperchild <= 0:
208
+ raise ValueError("maxtasksperchild must be a positive int or None")
209
+
210
+ if initializer is not None and not callable(initializer):
211
+ raise TypeError('initializer must be a callable')
212
+
213
+ self._processes = processes
214
+ try:
215
+ self._repopulate_pool()
216
+ except Exception:
217
+ for p in self._pool:
218
+ if p.exitcode is None:
219
+ p.terminate()
220
+ for p in self._pool:
221
+ p.join()
222
+ raise
223
+
224
+ sentinels = self._get_sentinels()
225
+
226
+ self._worker_handler = threading.Thread(
227
+ target=Pool._handle_workers,
228
+ args=(self._cache, self._taskqueue, self._ctx, self.Process,
229
+ self._processes, self._pool, self._inqueue, self._outqueue,
230
+ self._initializer, self._initargs, self._maxtasksperchild,
231
+ self._wrap_exception, sentinels, self._change_notifier)
232
+ )
233
+ self._worker_handler.daemon = True
234
+ self._worker_handler._state = RUN
235
+ self._worker_handler.start()
236
+
237
+
238
+ self._task_handler = threading.Thread(
239
+ target=Pool._handle_tasks,
240
+ args=(self._taskqueue, self._quick_put, self._outqueue,
241
+ self._pool, self._cache)
242
+ )
243
+ self._task_handler.daemon = True
244
+ self._task_handler._state = RUN
245
+ self._task_handler.start()
246
+
247
+ self._result_handler = threading.Thread(
248
+ target=Pool._handle_results,
249
+ args=(self._outqueue, self._quick_get, self._cache)
250
+ )
251
+ self._result_handler.daemon = True
252
+ self._result_handler._state = RUN
253
+ self._result_handler.start()
254
+
255
+ self._terminate = util.Finalize(
256
+ self, self._terminate_pool,
257
+ args=(self._taskqueue, self._inqueue, self._outqueue, self._pool,
258
+ self._change_notifier, self._worker_handler, self._task_handler,
259
+ self._result_handler, self._cache),
260
+ exitpriority=15
261
+ )
262
+ self._state = RUN
263
+
264
+ # Copy globals as function locals to make sure that they are available
265
+ # during Python shutdown when the Pool is destroyed.
266
+ def __del__(self, _warn=warnings.warn, RUN=RUN):
267
+ if self._state == RUN:
268
+ _warn(f"unclosed running multiprocessing pool {self!r}",
269
+ ResourceWarning, source=self)
270
+ if getattr(self, '_change_notifier', None) is not None:
271
+ self._change_notifier.put(None)
272
+
273
+ def __repr__(self):
274
+ cls = self.__class__
275
+ return (f'<{cls.__module__}.{cls.__qualname__} '
276
+ f'state={self._state} '
277
+ f'pool_size={len(self._pool)}>')
278
+
279
+ def _get_sentinels(self):
280
+ task_queue_sentinels = [self._outqueue._reader]
281
+ self_notifier_sentinels = [self._change_notifier._reader]
282
+ return [*task_queue_sentinels, *self_notifier_sentinels]
283
+
284
+ @staticmethod
285
+ def _get_worker_sentinels(workers):
286
+ return [worker.sentinel for worker in
287
+ workers if hasattr(worker, "sentinel")]
288
+
289
+ @staticmethod
290
+ def _join_exited_workers(pool):
291
+ """Cleanup after any worker processes which have exited due to reaching
292
+ their specified lifetime. Returns True if any workers were cleaned up.
293
+ """
294
+ cleaned = False
295
+ for i in reversed(range(len(pool))):
296
+ worker = pool[i]
297
+ if worker.exitcode is not None:
298
+ # worker exited
299
+ util.debug('cleaning up worker %d' % i)
300
+ worker.join()
301
+ cleaned = True
302
+ del pool[i]
303
+ return cleaned
304
+
305
+ def _repopulate_pool(self):
306
+ return self._repopulate_pool_static(self._ctx, self.Process,
307
+ self._processes,
308
+ self._pool, self._inqueue,
309
+ self._outqueue, self._initializer,
310
+ self._initargs,
311
+ self._maxtasksperchild,
312
+ self._wrap_exception)
313
+
314
+ @staticmethod
315
+ def _repopulate_pool_static(ctx, Process, processes, pool, inqueue,
316
+ outqueue, initializer, initargs,
317
+ maxtasksperchild, wrap_exception):
318
+ """Bring the number of pool processes up to the specified number,
319
+ for use after reaping workers which have exited.
320
+ """
321
+ for i in range(processes - len(pool)):
322
+ w = Process(ctx, target=worker,
323
+ args=(inqueue, outqueue,
324
+ initializer,
325
+ initargs, maxtasksperchild,
326
+ wrap_exception))
327
+ w.name = w.name.replace('Process', 'PoolWorker')
328
+ w.daemon = True
329
+ w.start()
330
+ pool.append(w)
331
+ util.debug('added worker')
332
+
333
+ @staticmethod
334
+ def _maintain_pool(ctx, Process, processes, pool, inqueue, outqueue,
335
+ initializer, initargs, maxtasksperchild,
336
+ wrap_exception):
337
+ """Clean up any exited workers and start replacements for them.
338
+ """
339
+ if Pool._join_exited_workers(pool):
340
+ Pool._repopulate_pool_static(ctx, Process, processes, pool,
341
+ inqueue, outqueue, initializer,
342
+ initargs, maxtasksperchild,
343
+ wrap_exception)
344
+
345
+ def _setup_queues(self):
346
+ self._inqueue = self._ctx.SimpleQueue()
347
+ self._outqueue = self._ctx.SimpleQueue()
348
+ self._quick_put = self._inqueue._writer.send
349
+ self._quick_get = self._outqueue._reader.recv
350
+
351
+ def _check_running(self):
352
+ if self._state != RUN:
353
+ raise ValueError("Pool not running")
354
+
355
+ def apply(self, func, args=(), kwds={}):
356
+ '''
357
+ Equivalent of `func(*args, **kwds)`.
358
+ Pool must be running.
359
+ '''
360
+ return self.apply_async(func, args, kwds).get()
361
+
362
+ def map(self, func, iterable, chunksize=None):
363
+ '''
364
+ Apply `func` to each element in `iterable`, collecting the results
365
+ in a list that is returned.
366
+ '''
367
+ return self._map_async(func, iterable, mapstar, chunksize).get()
368
+
369
+ def starmap(self, func, iterable, chunksize=None):
370
+ '''
371
+ Like `map()` method but the elements of the `iterable` are expected to
372
+ be iterables as well and will be unpacked as arguments. Hence
373
+ `func` and (a, b) becomes func(a, b).
374
+ '''
375
+ return self._map_async(func, iterable, starmapstar, chunksize).get()
376
+
377
+ def starmap_async(self, func, iterable, chunksize=None, callback=None,
378
+ error_callback=None):
379
+ '''
380
+ Asynchronous version of `starmap()` method.
381
+ '''
382
+ return self._map_async(func, iterable, starmapstar, chunksize,
383
+ callback, error_callback)
384
+
385
+ def _guarded_task_generation(self, result_job, func, iterable):
386
+ '''Provides a generator of tasks for imap and imap_unordered with
387
+ appropriate handling for iterables which throw exceptions during
388
+ iteration.'''
389
+ try:
390
+ i = -1
391
+ for i, x in enumerate(iterable):
392
+ yield (result_job, i, func, (x,), {})
393
+ except Exception as e:
394
+ yield (result_job, i+1, _helper_reraises_exception, (e,), {})
395
+
396
+ def imap(self, func, iterable, chunksize=1):
397
+ '''
398
+ Equivalent of `map()` -- can be MUCH slower than `Pool.map()`.
399
+ '''
400
+ self._check_running()
401
+ if chunksize == 1:
402
+ result = IMapIterator(self)
403
+ self._taskqueue.put(
404
+ (
405
+ self._guarded_task_generation(result._job, func, iterable),
406
+ result._set_length
407
+ ))
408
+ return result
409
+ else:
410
+ if chunksize < 1:
411
+ raise ValueError(
412
+ "Chunksize must be 1+, not {0:n}".format(
413
+ chunksize))
414
+ task_batches = Pool._get_tasks(func, iterable, chunksize)
415
+ result = IMapIterator(self)
416
+ self._taskqueue.put(
417
+ (
418
+ self._guarded_task_generation(result._job,
419
+ mapstar,
420
+ task_batches),
421
+ result._set_length
422
+ ))
423
+ return (item for chunk in result for item in chunk)
424
+
425
+ def imap_unordered(self, func, iterable, chunksize=1):
426
+ '''
427
+ Like `imap()` method but ordering of results is arbitrary.
428
+ '''
429
+ self._check_running()
430
+ if chunksize == 1:
431
+ result = IMapUnorderedIterator(self)
432
+ self._taskqueue.put(
433
+ (
434
+ self._guarded_task_generation(result._job, func, iterable),
435
+ result._set_length
436
+ ))
437
+ return result
438
+ else:
439
+ if chunksize < 1:
440
+ raise ValueError(
441
+ "Chunksize must be 1+, not {0!r}".format(chunksize))
442
+ task_batches = Pool._get_tasks(func, iterable, chunksize)
443
+ result = IMapUnorderedIterator(self)
444
+ self._taskqueue.put(
445
+ (
446
+ self._guarded_task_generation(result._job,
447
+ mapstar,
448
+ task_batches),
449
+ result._set_length
450
+ ))
451
+ return (item for chunk in result for item in chunk)
452
+
453
+ def apply_async(self, func, args=(), kwds={}, callback=None,
454
+ error_callback=None):
455
+ '''
456
+ Asynchronous version of `apply()` method.
457
+ '''
458
+ self._check_running()
459
+ result = ApplyResult(self, callback, error_callback)
460
+ self._taskqueue.put(([(result._job, 0, func, args, kwds)], None))
461
+ return result
462
+
463
+ def map_async(self, func, iterable, chunksize=None, callback=None,
464
+ error_callback=None):
465
+ '''
466
+ Asynchronous version of `map()` method.
467
+ '''
468
+ return self._map_async(func, iterable, mapstar, chunksize, callback,
469
+ error_callback)
470
+
471
+ def _map_async(self, func, iterable, mapper, chunksize=None, callback=None,
472
+ error_callback=None):
473
+ '''
474
+ Helper function to implement map, starmap and their async counterparts.
475
+ '''
476
+ self._check_running()
477
+ if not hasattr(iterable, '__len__'):
478
+ iterable = list(iterable)
479
+
480
+ if chunksize is None:
481
+ chunksize, extra = divmod(len(iterable), len(self._pool) * 4)
482
+ if extra:
483
+ chunksize += 1
484
+ if len(iterable) == 0:
485
+ chunksize = 0
486
+
487
+ task_batches = Pool._get_tasks(func, iterable, chunksize)
488
+ result = MapResult(self, chunksize, len(iterable), callback,
489
+ error_callback=error_callback)
490
+ self._taskqueue.put(
491
+ (
492
+ self._guarded_task_generation(result._job,
493
+ mapper,
494
+ task_batches),
495
+ None
496
+ )
497
+ )
498
+ return result
499
+
500
+ @staticmethod
501
+ def _wait_for_updates(sentinels, change_notifier, timeout=None):
502
+ wait(sentinels, timeout=timeout)
503
+ while not change_notifier.empty():
504
+ change_notifier.get()
505
+
506
+ @classmethod
507
+ def _handle_workers(cls, cache, taskqueue, ctx, Process, processes,
508
+ pool, inqueue, outqueue, initializer, initargs,
509
+ maxtasksperchild, wrap_exception, sentinels,
510
+ change_notifier):
511
+ thread = threading.current_thread()
512
+
513
+ # Keep maintaining workers until the cache gets drained, unless the pool
514
+ # is terminated.
515
+ while thread._state == RUN or (cache and thread._state != TERMINATE):
516
+ cls._maintain_pool(ctx, Process, processes, pool, inqueue,
517
+ outqueue, initializer, initargs,
518
+ maxtasksperchild, wrap_exception)
519
+
520
+ current_sentinels = [*cls._get_worker_sentinels(pool), *sentinels]
521
+
522
+ cls._wait_for_updates(current_sentinels, change_notifier)
523
+ # send sentinel to stop workers
524
+ taskqueue.put(None)
525
+ util.debug('worker handler exiting')
526
+
527
+ @staticmethod
528
+ def _handle_tasks(taskqueue, put, outqueue, pool, cache):
529
+ thread = threading.current_thread()
530
+
531
+ for taskseq, set_length in iter(taskqueue.get, None):
532
+ task = None
533
+ try:
534
+ # iterating taskseq cannot fail
535
+ for task in taskseq:
536
+ if thread._state != RUN:
537
+ util.debug('task handler found thread._state != RUN')
538
+ break
539
+ try:
540
+ put(task)
541
+ except Exception as e:
542
+ job, idx = task[:2]
543
+ try:
544
+ cache[job]._set(idx, (False, e))
545
+ except KeyError:
546
+ pass
547
+ else:
548
+ if set_length:
549
+ util.debug('doing set_length()')
550
+ idx = task[1] if task else -1
551
+ set_length(idx + 1)
552
+ continue
553
+ break
554
+ finally:
555
+ task = taskseq = job = None
556
+ else:
557
+ util.debug('task handler got sentinel')
558
+
559
+ try:
560
+ # tell result handler to finish when cache is empty
561
+ util.debug('task handler sending sentinel to result handler')
562
+ outqueue.put(None)
563
+
564
+ # tell workers there is no more work
565
+ util.debug('task handler sending sentinel to workers')
566
+ for p in pool:
567
+ put(None)
568
+ except OSError:
569
+ util.debug('task handler got OSError when sending sentinels')
570
+
571
+ util.debug('task handler exiting')
572
+
573
+ @staticmethod
574
+ def _handle_results(outqueue, get, cache):
575
+ thread = threading.current_thread()
576
+
577
+ while 1:
578
+ try:
579
+ task = get()
580
+ except (OSError, EOFError):
581
+ util.debug('result handler got EOFError/OSError -- exiting')
582
+ return
583
+
584
+ if thread._state != RUN:
585
+ assert thread._state == TERMINATE, "Thread not in TERMINATE"
586
+ util.debug('result handler found thread._state=TERMINATE')
587
+ break
588
+
589
+ if task is None:
590
+ util.debug('result handler got sentinel')
591
+ break
592
+
593
+ job, i, obj = task
594
+ try:
595
+ cache[job]._set(i, obj)
596
+ except KeyError:
597
+ pass
598
+ task = job = obj = None
599
+
600
+ while cache and thread._state != TERMINATE:
601
+ try:
602
+ task = get()
603
+ except (OSError, EOFError):
604
+ util.debug('result handler got EOFError/OSError -- exiting')
605
+ return
606
+
607
+ if task is None:
608
+ util.debug('result handler ignoring extra sentinel')
609
+ continue
610
+ job, i, obj = task
611
+ try:
612
+ cache[job]._set(i, obj)
613
+ except KeyError:
614
+ pass
615
+ task = job = obj = None
616
+
617
+ if hasattr(outqueue, '_reader'):
618
+ util.debug('ensuring that outqueue is not full')
619
+ # If we don't make room available in outqueue then
620
+ # attempts to add the sentinel (None) to outqueue may
621
+ # block. There is guaranteed to be no more than 2 sentinels.
622
+ try:
623
+ for i in range(10):
624
+ if not outqueue._reader.poll():
625
+ break
626
+ get()
627
+ except (OSError, EOFError):
628
+ pass
629
+
630
+ util.debug('result handler exiting: len(cache)=%s, thread._state=%s',
631
+ len(cache), thread._state)
632
+
633
+ @staticmethod
634
+ def _get_tasks(func, it, size):
635
+ it = iter(it)
636
+ while 1:
637
+ x = tuple(itertools.islice(it, size))
638
+ if not x:
639
+ return
640
+ yield (func, x)
641
+
642
+ def __reduce__(self):
643
+ raise NotImplementedError(
644
+ 'pool objects cannot be passed between processes or pickled'
645
+ )
646
+
647
+ def close(self):
648
+ util.debug('closing pool')
649
+ if self._state == RUN:
650
+ self._state = CLOSE
651
+ self._worker_handler._state = CLOSE
652
+ self._change_notifier.put(None)
653
+
654
+ def terminate(self):
655
+ util.debug('terminating pool')
656
+ self._state = TERMINATE
657
+ self._terminate()
658
+
659
+ def join(self):
660
+ util.debug('joining pool')
661
+ if self._state == RUN:
662
+ raise ValueError("Pool is still running")
663
+ elif self._state not in (CLOSE, TERMINATE):
664
+ raise ValueError("In unknown state")
665
+ self._worker_handler.join()
666
+ self._task_handler.join()
667
+ self._result_handler.join()
668
+ for p in self._pool:
669
+ p.join()
670
+
671
+ @staticmethod
672
+ def _help_stuff_finish(inqueue, task_handler, size):
673
+ # task_handler may be blocked trying to put items on inqueue
674
+ util.debug('removing tasks from inqueue until task handler finished')
675
+ inqueue._rlock.acquire()
676
+ while task_handler.is_alive() and inqueue._reader.poll():
677
+ inqueue._reader.recv()
678
+ time.sleep(0)
679
+
680
+ @classmethod
681
+ def _terminate_pool(cls, taskqueue, inqueue, outqueue, pool, change_notifier,
682
+ worker_handler, task_handler, result_handler, cache):
683
+ # this is guaranteed to only be called once
684
+ util.debug('finalizing pool')
685
+
686
+ # Notify that the worker_handler state has been changed so the
687
+ # _handle_workers loop can be unblocked (and exited) in order to
688
+ # send the finalization sentinel all the workers.
689
+ worker_handler._state = TERMINATE
690
+ change_notifier.put(None)
691
+
692
+ task_handler._state = TERMINATE
693
+
694
+ util.debug('helping task handler/workers to finish')
695
+ cls._help_stuff_finish(inqueue, task_handler, len(pool))
696
+
697
+ if (not result_handler.is_alive()) and (len(cache) != 0):
698
+ raise AssertionError(
699
+ "Cannot have cache with result_hander not alive")
700
+
701
+ result_handler._state = TERMINATE
702
+ change_notifier.put(None)
703
+ outqueue.put(None) # sentinel
704
+
705
+ # We must wait for the worker handler to exit before terminating
706
+ # workers because we don't want workers to be restarted behind our back.
707
+ util.debug('joining worker handler')
708
+ if threading.current_thread() is not worker_handler:
709
+ worker_handler.join()
710
+
711
+ # Terminate workers which haven't already finished.
712
+ if pool and hasattr(pool[0], 'terminate'):
713
+ util.debug('terminating workers')
714
+ for p in pool:
715
+ if p.exitcode is None:
716
+ p.terminate()
717
+
718
+ util.debug('joining task handler')
719
+ if threading.current_thread() is not task_handler:
720
+ task_handler.join()
721
+
722
+ util.debug('joining result handler')
723
+ if threading.current_thread() is not result_handler:
724
+ result_handler.join()
725
+
726
+ if pool and hasattr(pool[0], 'terminate'):
727
+ util.debug('joining pool workers')
728
+ for p in pool:
729
+ if p.is_alive():
730
+ # worker has not yet exited
731
+ util.debug('cleaning up worker %d' % p.pid)
732
+ p.join()
733
+
734
+ def __enter__(self):
735
+ self._check_running()
736
+ return self
737
+
738
+ def __exit__(self, exc_type, exc_val, exc_tb):
739
+ self.terminate()
740
+
741
+ #
742
+ # Class whose instances are returned by `Pool.apply_async()`
743
+ #
744
+
745
+ class ApplyResult(object):
746
+
747
+ def __init__(self, pool, callback, error_callback):
748
+ self._pool = pool
749
+ self._event = threading.Event()
750
+ self._job = next(job_counter)
751
+ self._cache = pool._cache
752
+ self._callback = callback
753
+ self._error_callback = error_callback
754
+ self._cache[self._job] = self
755
+
756
+ def ready(self):
757
+ return self._event.is_set()
758
+
759
+ def successful(self):
760
+ if not self.ready():
761
+ raise ValueError("{0!r} not ready".format(self))
762
+ return self._success
763
+
764
+ def wait(self, timeout=None):
765
+ self._event.wait(timeout)
766
+
767
+ def get(self, timeout=None):
768
+ self.wait(timeout)
769
+ if not self.ready():
770
+ raise TimeoutError
771
+ if self._success:
772
+ return self._value
773
+ else:
774
+ raise self._value
775
+
776
+ def _set(self, i, obj):
777
+ self._success, self._value = obj
778
+ if self._callback and self._success:
779
+ self._callback(self._value)
780
+ if self._error_callback and not self._success:
781
+ self._error_callback(self._value)
782
+ self._event.set()
783
+ del self._cache[self._job]
784
+ self._pool = None
785
+
786
+ __class_getitem__ = classmethod(types.GenericAlias)
787
+
788
+ AsyncResult = ApplyResult # create alias -- see #17805
789
+
790
+ #
791
+ # Class whose instances are returned by `Pool.map_async()`
792
+ #
793
+
794
+ class MapResult(ApplyResult):
795
+
796
+ def __init__(self, pool, chunksize, length, callback, error_callback):
797
+ ApplyResult.__init__(self, pool, callback,
798
+ error_callback=error_callback)
799
+ self._success = True
800
+ self._value = [None] * length
801
+ self._chunksize = chunksize
802
+ if chunksize <= 0:
803
+ self._number_left = 0
804
+ self._event.set()
805
+ del self._cache[self._job]
806
+ else:
807
+ self._number_left = length//chunksize + bool(length % chunksize)
808
+
809
+ def _set(self, i, success_result):
810
+ self._number_left -= 1
811
+ success, result = success_result
812
+ if success and self._success:
813
+ self._value[i*self._chunksize:(i+1)*self._chunksize] = result
814
+ if self._number_left == 0:
815
+ if self._callback:
816
+ self._callback(self._value)
817
+ del self._cache[self._job]
818
+ self._event.set()
819
+ self._pool = None
820
+ else:
821
+ if not success and self._success:
822
+ # only store first exception
823
+ self._success = False
824
+ self._value = result
825
+ if self._number_left == 0:
826
+ # only consider the result ready once all jobs are done
827
+ if self._error_callback:
828
+ self._error_callback(self._value)
829
+ del self._cache[self._job]
830
+ self._event.set()
831
+ self._pool = None
832
+
833
+ #
834
+ # Class whose instances are returned by `Pool.imap()`
835
+ #
836
+
837
+ class IMapIterator(object):
838
+
839
+ def __init__(self, pool):
840
+ self._pool = pool
841
+ self._cond = threading.Condition(threading.Lock())
842
+ self._job = next(job_counter)
843
+ self._cache = pool._cache
844
+ self._items = collections.deque()
845
+ self._index = 0
846
+ self._length = None
847
+ self._unsorted = {}
848
+ self._cache[self._job] = self
849
+
850
+ def __iter__(self):
851
+ return self
852
+
853
+ def next(self, timeout=None):
854
+ with self._cond:
855
+ try:
856
+ item = self._items.popleft()
857
+ except IndexError:
858
+ if self._index == self._length:
859
+ self._pool = None
860
+ raise StopIteration from None
861
+ self._cond.wait(timeout)
862
+ try:
863
+ item = self._items.popleft()
864
+ except IndexError:
865
+ if self._index == self._length:
866
+ self._pool = None
867
+ raise StopIteration from None
868
+ raise TimeoutError from None
869
+
870
+ success, value = item
871
+ if success:
872
+ return value
873
+ raise value
874
+
875
+ __next__ = next # XXX
876
+
877
+ def _set(self, i, obj):
878
+ with self._cond:
879
+ if self._index == i:
880
+ self._items.append(obj)
881
+ self._index += 1
882
+ while self._index in self._unsorted:
883
+ obj = self._unsorted.pop(self._index)
884
+ self._items.append(obj)
885
+ self._index += 1
886
+ self._cond.notify()
887
+ else:
888
+ self._unsorted[i] = obj
889
+
890
+ if self._index == self._length:
891
+ del self._cache[self._job]
892
+ self._pool = None
893
+
894
+ def _set_length(self, length):
895
+ with self._cond:
896
+ self._length = length
897
+ if self._index == self._length:
898
+ self._cond.notify()
899
+ del self._cache[self._job]
900
+ self._pool = None
901
+
902
+ #
903
+ # Class whose instances are returned by `Pool.imap_unordered()`
904
+ #
905
+
906
+ class IMapUnorderedIterator(IMapIterator):
907
+
908
+ def _set(self, i, obj):
909
+ with self._cond:
910
+ self._items.append(obj)
911
+ self._index += 1
912
+ self._cond.notify()
913
+ if self._index == self._length:
914
+ del self._cache[self._job]
915
+ self._pool = None
916
+
917
+ #
918
+ #
919
+ #
920
+
921
+ class ThreadPool(Pool):
922
+ _wrap_exception = False
923
+
924
+ @staticmethod
925
+ def Process(ctx, *args, **kwds):
926
+ from .dummy import Process
927
+ return Process(*args, **kwds)
928
+
929
+ def __init__(self, processes=None, initializer=None, initargs=()):
930
+ Pool.__init__(self, processes, initializer, initargs)
931
+
932
+ def _setup_queues(self):
933
+ self._inqueue = queue.SimpleQueue()
934
+ self._outqueue = queue.SimpleQueue()
935
+ self._quick_put = self._inqueue.put
936
+ self._quick_get = self._outqueue.get
937
+
938
+ def _get_sentinels(self):
939
+ return [self._change_notifier._reader]
940
+
941
+ @staticmethod
942
+ def _get_worker_sentinels(workers):
943
+ return []
944
+
945
+ @staticmethod
946
+ def _help_stuff_finish(inqueue, task_handler, size):
947
+ # drain inqueue, and put sentinels at its head to make workers finish
948
+ try:
949
+ while True:
950
+ inqueue.get(block=False)
951
+ except queue.Empty:
952
+ pass
953
+ for i in range(size):
954
+ inqueue.put(None)
955
+
956
+ def _wait_for_updates(self, sentinels, change_notifier, timeout):
957
+ time.sleep(timeout)
llmeval-env/lib/python3.10/site-packages/multiprocess/popen_fork.py ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import signal
3
+
4
+ from . import util
5
+
6
+ __all__ = ['Popen']
7
+
8
+ #
9
+ # Start child process using fork
10
+ #
11
+
12
+ class Popen(object):
13
+ method = 'fork'
14
+
15
+ def __init__(self, process_obj):
16
+ util._flush_std_streams()
17
+ self.returncode = None
18
+ self.finalizer = None
19
+ self._launch(process_obj)
20
+
21
+ def duplicate_for_child(self, fd):
22
+ return fd
23
+
24
+ def poll(self, flag=os.WNOHANG):
25
+ if self.returncode is None:
26
+ try:
27
+ pid, sts = os.waitpid(self.pid, flag)
28
+ except OSError:
29
+ # Child process not yet created. See #1731717
30
+ # e.errno == errno.ECHILD == 10
31
+ return None
32
+ if pid == self.pid:
33
+ self.returncode = os.waitstatus_to_exitcode(sts)
34
+ return self.returncode
35
+
36
+ def wait(self, timeout=None):
37
+ if self.returncode is None:
38
+ if timeout is not None:
39
+ from multiprocess.connection import wait
40
+ if not wait([self.sentinel], timeout):
41
+ return None
42
+ # This shouldn't block if wait() returned successfully.
43
+ return self.poll(os.WNOHANG if timeout == 0.0 else 0)
44
+ return self.returncode
45
+
46
+ def _send_signal(self, sig):
47
+ if self.returncode is None:
48
+ try:
49
+ os.kill(self.pid, sig)
50
+ except ProcessLookupError:
51
+ pass
52
+ except OSError:
53
+ if self.wait(timeout=0.1) is None:
54
+ raise
55
+
56
+ def terminate(self):
57
+ self._send_signal(signal.SIGTERM)
58
+
59
+ def kill(self):
60
+ self._send_signal(signal.SIGKILL)
61
+
62
+ def _launch(self, process_obj):
63
+ code = 1
64
+ parent_r, child_w = os.pipe()
65
+ child_r, parent_w = os.pipe()
66
+ self.pid = os.fork()
67
+ if self.pid == 0:
68
+ try:
69
+ os.close(parent_r)
70
+ os.close(parent_w)
71
+ code = process_obj._bootstrap(parent_sentinel=child_r)
72
+ finally:
73
+ os._exit(code)
74
+ else:
75
+ os.close(child_w)
76
+ os.close(child_r)
77
+ self.finalizer = util.Finalize(self, util.close_fds,
78
+ (parent_r, parent_w,))
79
+ self.sentinel = parent_r
80
+
81
+ def close(self):
82
+ if self.finalizer is not None:
83
+ self.finalizer()
llmeval-env/lib/python3.10/site-packages/multiprocess/popen_forkserver.py ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import io
2
+ import os
3
+
4
+ from .context import reduction, set_spawning_popen
5
+ if not reduction.HAVE_SEND_HANDLE:
6
+ raise ImportError('No support for sending fds between processes')
7
+ from . import forkserver
8
+ from . import popen_fork
9
+ from . import spawn
10
+ from . import util
11
+
12
+
13
+ __all__ = ['Popen']
14
+
15
+ #
16
+ # Wrapper for an fd used while launching a process
17
+ #
18
+
19
+ class _DupFd(object):
20
+ def __init__(self, ind):
21
+ self.ind = ind
22
+ def detach(self):
23
+ return forkserver.get_inherited_fds()[self.ind]
24
+
25
+ #
26
+ # Start child process using a server process
27
+ #
28
+
29
+ class Popen(popen_fork.Popen):
30
+ method = 'forkserver'
31
+ DupFd = _DupFd
32
+
33
+ def __init__(self, process_obj):
34
+ self._fds = []
35
+ super().__init__(process_obj)
36
+
37
+ def duplicate_for_child(self, fd):
38
+ self._fds.append(fd)
39
+ return len(self._fds) - 1
40
+
41
+ def _launch(self, process_obj):
42
+ prep_data = spawn.get_preparation_data(process_obj._name)
43
+ buf = io.BytesIO()
44
+ set_spawning_popen(self)
45
+ try:
46
+ reduction.dump(prep_data, buf)
47
+ reduction.dump(process_obj, buf)
48
+ finally:
49
+ set_spawning_popen(None)
50
+
51
+ self.sentinel, w = forkserver.connect_to_new_process(self._fds)
52
+ # Keep a duplicate of the data pipe's write end as a sentinel of the
53
+ # parent process used by the child process.
54
+ _parent_w = os.dup(w)
55
+ self.finalizer = util.Finalize(self, util.close_fds,
56
+ (_parent_w, self.sentinel))
57
+ with open(w, 'wb', closefd=True) as f:
58
+ f.write(buf.getbuffer())
59
+ self.pid = forkserver.read_signed(self.sentinel)
60
+
61
+ def poll(self, flag=os.WNOHANG):
62
+ if self.returncode is None:
63
+ from multiprocess.connection import wait
64
+ timeout = 0 if flag == os.WNOHANG else None
65
+ if not wait([self.sentinel], timeout):
66
+ return None
67
+ try:
68
+ self.returncode = forkserver.read_signed(self.sentinel)
69
+ except (OSError, EOFError):
70
+ # This should not happen usually, but perhaps the forkserver
71
+ # process itself got killed
72
+ self.returncode = 255
73
+
74
+ return self.returncode
llmeval-env/lib/python3.10/site-packages/multiprocess/popen_spawn_posix.py ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import io
2
+ import os
3
+
4
+ from .context import reduction, set_spawning_popen
5
+ from . import popen_fork
6
+ from . import spawn
7
+ from . import util
8
+
9
+ __all__ = ['Popen']
10
+
11
+
12
+ #
13
+ # Wrapper for an fd used while launching a process
14
+ #
15
+
16
+ class _DupFd(object):
17
+ def __init__(self, fd):
18
+ self.fd = fd
19
+ def detach(self):
20
+ return self.fd
21
+
22
+ #
23
+ # Start child process using a fresh interpreter
24
+ #
25
+
26
+ class Popen(popen_fork.Popen):
27
+ method = 'spawn'
28
+ DupFd = _DupFd
29
+
30
+ def __init__(self, process_obj):
31
+ self._fds = []
32
+ super().__init__(process_obj)
33
+
34
+ def duplicate_for_child(self, fd):
35
+ self._fds.append(fd)
36
+ return fd
37
+
38
+ def _launch(self, process_obj):
39
+ from . import resource_tracker
40
+ tracker_fd = resource_tracker.getfd()
41
+ self._fds.append(tracker_fd)
42
+ prep_data = spawn.get_preparation_data(process_obj._name)
43
+ fp = io.BytesIO()
44
+ set_spawning_popen(self)
45
+ try:
46
+ reduction.dump(prep_data, fp)
47
+ reduction.dump(process_obj, fp)
48
+ finally:
49
+ set_spawning_popen(None)
50
+
51
+ parent_r = child_w = child_r = parent_w = None
52
+ try:
53
+ parent_r, child_w = os.pipe()
54
+ child_r, parent_w = os.pipe()
55
+ cmd = spawn.get_command_line(tracker_fd=tracker_fd,
56
+ pipe_handle=child_r)
57
+ self._fds.extend([child_r, child_w])
58
+ self.pid = util.spawnv_passfds(spawn.get_executable(),
59
+ cmd, self._fds)
60
+ self.sentinel = parent_r
61
+ with open(parent_w, 'wb', closefd=False) as f:
62
+ f.write(fp.getbuffer())
63
+ finally:
64
+ fds_to_close = []
65
+ for fd in (parent_r, parent_w):
66
+ if fd is not None:
67
+ fds_to_close.append(fd)
68
+ self.finalizer = util.Finalize(self, util.close_fds, fds_to_close)
69
+
70
+ for fd in (child_r, child_w):
71
+ if fd is not None:
72
+ os.close(fd)
llmeval-env/lib/python3.10/site-packages/multiprocess/popen_spawn_win32.py ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import msvcrt
3
+ import signal
4
+ import sys
5
+ import _winapi
6
+
7
+ from .context import reduction, get_spawning_popen, set_spawning_popen
8
+ from . import spawn
9
+ from . import util
10
+
11
+ __all__ = ['Popen']
12
+
13
+ #
14
+ #
15
+ #
16
+
17
+ TERMINATE = 0x10000
18
+ WINEXE = (sys.platform == 'win32' and getattr(sys, 'frozen', False))
19
+ WINSERVICE = sys.executable.lower().endswith("pythonservice.exe")
20
+
21
+
22
+ def _path_eq(p1, p2):
23
+ return p1 == p2 or os.path.normcase(p1) == os.path.normcase(p2)
24
+
25
+ WINENV = not _path_eq(sys.executable, sys._base_executable)
26
+
27
+
28
+ def _close_handles(*handles):
29
+ for handle in handles:
30
+ _winapi.CloseHandle(handle)
31
+
32
+
33
+ #
34
+ # We define a Popen class similar to the one from subprocess, but
35
+ # whose constructor takes a process object as its argument.
36
+ #
37
+
38
+ class Popen(object):
39
+ '''
40
+ Start a subprocess to run the code of a process object
41
+ '''
42
+ method = 'spawn'
43
+
44
+ def __init__(self, process_obj):
45
+ prep_data = spawn.get_preparation_data(process_obj._name)
46
+
47
+ # read end of pipe will be duplicated by the child process
48
+ # -- see spawn_main() in spawn.py.
49
+ #
50
+ # bpo-33929: Previously, the read end of pipe was "stolen" by the child
51
+ # process, but it leaked a handle if the child process had been
52
+ # terminated before it could steal the handle from the parent process.
53
+ rhandle, whandle = _winapi.CreatePipe(None, 0)
54
+ wfd = msvcrt.open_osfhandle(whandle, 0)
55
+ cmd = spawn.get_command_line(parent_pid=os.getpid(),
56
+ pipe_handle=rhandle)
57
+ cmd = ' '.join('"%s"' % x for x in cmd)
58
+
59
+ python_exe = spawn.get_executable()
60
+
61
+ # bpo-35797: When running in a venv, we bypass the redirect
62
+ # executor and launch our base Python.
63
+ if WINENV and _path_eq(python_exe, sys.executable):
64
+ python_exe = sys._base_executable
65
+ env = os.environ.copy()
66
+ env["__PYVENV_LAUNCHER__"] = sys.executable
67
+ else:
68
+ env = None
69
+
70
+ with open(wfd, 'wb', closefd=True) as to_child:
71
+ # start process
72
+ try:
73
+ hp, ht, pid, tid = _winapi.CreateProcess(
74
+ python_exe, cmd,
75
+ None, None, False, 0, env, None, None)
76
+ _winapi.CloseHandle(ht)
77
+ except:
78
+ _winapi.CloseHandle(rhandle)
79
+ raise
80
+
81
+ # set attributes of self
82
+ self.pid = pid
83
+ self.returncode = None
84
+ self._handle = hp
85
+ self.sentinel = int(hp)
86
+ self.finalizer = util.Finalize(self, _close_handles,
87
+ (self.sentinel, int(rhandle)))
88
+
89
+ # send information to child
90
+ set_spawning_popen(self)
91
+ try:
92
+ reduction.dump(prep_data, to_child)
93
+ reduction.dump(process_obj, to_child)
94
+ finally:
95
+ set_spawning_popen(None)
96
+
97
+ def duplicate_for_child(self, handle):
98
+ assert self is get_spawning_popen()
99
+ return reduction.duplicate(handle, self.sentinel)
100
+
101
+ def wait(self, timeout=None):
102
+ if self.returncode is None:
103
+ if timeout is None:
104
+ msecs = _winapi.INFINITE
105
+ else:
106
+ msecs = max(0, int(timeout * 1000 + 0.5))
107
+
108
+ res = _winapi.WaitForSingleObject(int(self._handle), msecs)
109
+ if res == _winapi.WAIT_OBJECT_0:
110
+ code = _winapi.GetExitCodeProcess(self._handle)
111
+ if code == TERMINATE:
112
+ code = -signal.SIGTERM
113
+ self.returncode = code
114
+
115
+ return self.returncode
116
+
117
+ def poll(self):
118
+ return self.wait(timeout=0)
119
+
120
+ def terminate(self):
121
+ if self.returncode is None:
122
+ try:
123
+ _winapi.TerminateProcess(int(self._handle), TERMINATE)
124
+ except OSError:
125
+ if self.wait(timeout=1.0) is None:
126
+ raise
127
+
128
+ kill = terminate
129
+
130
+ def close(self):
131
+ self.finalizer()
llmeval-env/lib/python3.10/site-packages/multiprocess/process.py ADDED
@@ -0,0 +1,438 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # Module providing the `Process` class which emulates `threading.Thread`
3
+ #
4
+ # multiprocessing/process.py
5
+ #
6
+ # Copyright (c) 2006-2008, R Oudkerk
7
+ # Licensed to PSF under a Contributor Agreement.
8
+ #
9
+
10
+ __all__ = ['BaseProcess', 'current_process', 'active_children',
11
+ 'parent_process']
12
+
13
+ #
14
+ # Imports
15
+ #
16
+
17
+ import os
18
+ import sys
19
+ import signal
20
+ import itertools
21
+ import threading
22
+ from _weakrefset import WeakSet
23
+
24
+ #
25
+ #
26
+ #
27
+
28
+ try:
29
+ ORIGINAL_DIR = os.path.abspath(os.getcwd())
30
+ except OSError:
31
+ ORIGINAL_DIR = None
32
+
33
+ #
34
+ # Public functions
35
+ #
36
+
37
+ def current_process():
38
+ '''
39
+ Return process object representing the current process
40
+ '''
41
+ return _current_process
42
+
43
+ def active_children():
44
+ '''
45
+ Return list of process objects corresponding to live child processes
46
+ '''
47
+ _cleanup()
48
+ return list(_children)
49
+
50
+
51
+ def parent_process():
52
+ '''
53
+ Return process object representing the parent process
54
+ '''
55
+ return _parent_process
56
+
57
+ #
58
+ #
59
+ #
60
+
61
+ def _cleanup():
62
+ # check for processes which have finished
63
+ for p in list(_children):
64
+ if p._popen.poll() is not None:
65
+ _children.discard(p)
66
+
67
+ #
68
+ # The `Process` class
69
+ #
70
+
71
+ class BaseProcess(object):
72
+ '''
73
+ Process objects represent activity that is run in a separate process
74
+
75
+ The class is analogous to `threading.Thread`
76
+ '''
77
+ def _Popen(self):
78
+ raise NotImplementedError
79
+
80
+ def __init__(self, group=None, target=None, name=None, args=(), kwargs={},
81
+ *, daemon=None):
82
+ assert group is None, 'group argument must be None for now'
83
+ count = next(_process_counter)
84
+ self._identity = _current_process._identity + (count,)
85
+ self._config = _current_process._config.copy()
86
+ self._parent_pid = os.getpid()
87
+ self._parent_name = _current_process.name
88
+ self._popen = None
89
+ self._closed = False
90
+ self._target = target
91
+ self._args = tuple(args)
92
+ self._kwargs = dict(kwargs)
93
+ self._name = name or type(self).__name__ + '-' + \
94
+ ':'.join(str(i) for i in self._identity)
95
+ if daemon is not None:
96
+ self.daemon = daemon
97
+ _dangling.add(self)
98
+
99
+ def _check_closed(self):
100
+ if self._closed:
101
+ raise ValueError("process object is closed")
102
+
103
+ def run(self):
104
+ '''
105
+ Method to be run in sub-process; can be overridden in sub-class
106
+ '''
107
+ if self._target:
108
+ self._target(*self._args, **self._kwargs)
109
+
110
+ def start(self):
111
+ '''
112
+ Start child process
113
+ '''
114
+ self._check_closed()
115
+ assert self._popen is None, 'cannot start a process twice'
116
+ assert self._parent_pid == os.getpid(), \
117
+ 'can only start a process object created by current process'
118
+ assert not _current_process._config.get('daemon'), \
119
+ 'daemonic processes are not allowed to have children'
120
+ _cleanup()
121
+ self._popen = self._Popen(self)
122
+ self._sentinel = self._popen.sentinel
123
+ # Avoid a refcycle if the target function holds an indirect
124
+ # reference to the process object (see bpo-30775)
125
+ del self._target, self._args, self._kwargs
126
+ _children.add(self)
127
+
128
+ def terminate(self):
129
+ '''
130
+ Terminate process; sends SIGTERM signal or uses TerminateProcess()
131
+ '''
132
+ self._check_closed()
133
+ self._popen.terminate()
134
+
135
+ def kill(self):
136
+ '''
137
+ Terminate process; sends SIGKILL signal or uses TerminateProcess()
138
+ '''
139
+ self._check_closed()
140
+ self._popen.kill()
141
+
142
+ def join(self, timeout=None):
143
+ '''
144
+ Wait until child process terminates
145
+ '''
146
+ self._check_closed()
147
+ assert self._parent_pid == os.getpid(), 'can only join a child process'
148
+ assert self._popen is not None, 'can only join a started process'
149
+ res = self._popen.wait(timeout)
150
+ if res is not None:
151
+ _children.discard(self)
152
+
153
+ def is_alive(self):
154
+ '''
155
+ Return whether process is alive
156
+ '''
157
+ self._check_closed()
158
+ if self is _current_process:
159
+ return True
160
+ assert self._parent_pid == os.getpid(), 'can only test a child process'
161
+
162
+ if self._popen is None:
163
+ return False
164
+
165
+ returncode = self._popen.poll()
166
+ if returncode is None:
167
+ return True
168
+ else:
169
+ _children.discard(self)
170
+ return False
171
+
172
+ def close(self):
173
+ '''
174
+ Close the Process object.
175
+
176
+ This method releases resources held by the Process object. It is
177
+ an error to call this method if the child process is still running.
178
+ '''
179
+ if self._popen is not None:
180
+ if self._popen.poll() is None:
181
+ raise ValueError("Cannot close a process while it is still running. "
182
+ "You should first call join() or terminate().")
183
+ self._popen.close()
184
+ self._popen = None
185
+ del self._sentinel
186
+ _children.discard(self)
187
+ self._closed = True
188
+
189
+ @property
190
+ def name(self):
191
+ return self._name
192
+
193
+ @name.setter
194
+ def name(self, name):
195
+ assert isinstance(name, str), 'name must be a string'
196
+ self._name = name
197
+
198
+ @property
199
+ def daemon(self):
200
+ '''
201
+ Return whether process is a daemon
202
+ '''
203
+ return self._config.get('daemon', False)
204
+
205
+ @daemon.setter
206
+ def daemon(self, daemonic):
207
+ '''
208
+ Set whether process is a daemon
209
+ '''
210
+ assert self._popen is None, 'process has already started'
211
+ self._config['daemon'] = daemonic
212
+
213
+ @property
214
+ def authkey(self):
215
+ return self._config['authkey']
216
+
217
+ @authkey.setter
218
+ def authkey(self, authkey):
219
+ '''
220
+ Set authorization key of process
221
+ '''
222
+ self._config['authkey'] = AuthenticationString(authkey)
223
+
224
+ @property
225
+ def exitcode(self):
226
+ '''
227
+ Return exit code of process or `None` if it has yet to stop
228
+ '''
229
+ self._check_closed()
230
+ if self._popen is None:
231
+ return self._popen
232
+ return self._popen.poll()
233
+
234
+ @property
235
+ def ident(self):
236
+ '''
237
+ Return identifier (PID) of process or `None` if it has yet to start
238
+ '''
239
+ self._check_closed()
240
+ if self is _current_process:
241
+ return os.getpid()
242
+ else:
243
+ return self._popen and self._popen.pid
244
+
245
+ pid = ident
246
+
247
+ @property
248
+ def sentinel(self):
249
+ '''
250
+ Return a file descriptor (Unix) or handle (Windows) suitable for
251
+ waiting for process termination.
252
+ '''
253
+ self._check_closed()
254
+ try:
255
+ return self._sentinel
256
+ except AttributeError:
257
+ raise ValueError("process not started") from None
258
+
259
+ def __repr__(self):
260
+ exitcode = None
261
+ if self is _current_process:
262
+ status = 'started'
263
+ elif self._closed:
264
+ status = 'closed'
265
+ elif self._parent_pid != os.getpid():
266
+ status = 'unknown'
267
+ elif self._popen is None:
268
+ status = 'initial'
269
+ else:
270
+ exitcode = self._popen.poll()
271
+ if exitcode is not None:
272
+ status = 'stopped'
273
+ else:
274
+ status = 'started'
275
+
276
+ info = [type(self).__name__, 'name=%r' % self._name]
277
+ if self._popen is not None:
278
+ info.append('pid=%s' % self._popen.pid)
279
+ info.append('parent=%s' % self._parent_pid)
280
+ info.append(status)
281
+ if exitcode is not None:
282
+ exitcode = _exitcode_to_name.get(exitcode, exitcode)
283
+ info.append('exitcode=%s' % exitcode)
284
+ if self.daemon:
285
+ info.append('daemon')
286
+ return '<%s>' % ' '.join(info)
287
+
288
+ ##
289
+
290
+ def _bootstrap(self, parent_sentinel=None):
291
+ from . import util, context
292
+ global _current_process, _parent_process, _process_counter, _children
293
+
294
+ try:
295
+ if self._start_method is not None:
296
+ context._force_start_method(self._start_method)
297
+ _process_counter = itertools.count(1)
298
+ _children = set()
299
+ util._close_stdin()
300
+ old_process = _current_process
301
+ _current_process = self
302
+ _parent_process = _ParentProcess(
303
+ self._parent_name, self._parent_pid, parent_sentinel)
304
+ if threading._HAVE_THREAD_NATIVE_ID:
305
+ threading.main_thread()._set_native_id()
306
+ try:
307
+ self._after_fork()
308
+ finally:
309
+ # delay finalization of the old process object until after
310
+ # _run_after_forkers() is executed
311
+ del old_process
312
+ util.info('child process calling self.run()')
313
+ try:
314
+ self.run()
315
+ exitcode = 0
316
+ finally:
317
+ util._exit_function()
318
+ except SystemExit as e:
319
+ if e.code is None:
320
+ exitcode = 0
321
+ elif isinstance(e.code, int):
322
+ exitcode = e.code
323
+ else:
324
+ sys.stderr.write(str(e.code) + '\n')
325
+ exitcode = 1
326
+ except:
327
+ exitcode = 1
328
+ import traceback
329
+ sys.stderr.write('Process %s:\n' % self.name)
330
+ traceback.print_exc()
331
+ finally:
332
+ threading._shutdown()
333
+ util.info('process exiting with exitcode %d' % exitcode)
334
+ util._flush_std_streams()
335
+
336
+ return exitcode
337
+
338
+ @staticmethod
339
+ def _after_fork():
340
+ from . import util
341
+ util._finalizer_registry.clear()
342
+ util._run_after_forkers()
343
+
344
+
345
+ #
346
+ # We subclass bytes to avoid accidental transmission of auth keys over network
347
+ #
348
+
349
+ class AuthenticationString(bytes):
350
+ def __reduce__(self):
351
+ from .context import get_spawning_popen
352
+ if get_spawning_popen() is None:
353
+ raise TypeError(
354
+ 'Pickling an AuthenticationString object is '
355
+ 'disallowed for security reasons'
356
+ )
357
+ return AuthenticationString, (bytes(self),)
358
+
359
+
360
+ #
361
+ # Create object representing the parent process
362
+ #
363
+
364
+ class _ParentProcess(BaseProcess):
365
+
366
+ def __init__(self, name, pid, sentinel):
367
+ self._identity = ()
368
+ self._name = name
369
+ self._pid = pid
370
+ self._parent_pid = None
371
+ self._popen = None
372
+ self._closed = False
373
+ self._sentinel = sentinel
374
+ self._config = {}
375
+
376
+ def is_alive(self):
377
+ from multiprocess.connection import wait
378
+ return not wait([self._sentinel], timeout=0)
379
+
380
+ @property
381
+ def ident(self):
382
+ return self._pid
383
+
384
+ def join(self, timeout=None):
385
+ '''
386
+ Wait until parent process terminates
387
+ '''
388
+ from multiprocess.connection import wait
389
+ wait([self._sentinel], timeout=timeout)
390
+
391
+ pid = ident
392
+
393
+ #
394
+ # Create object representing the main process
395
+ #
396
+
397
+ class _MainProcess(BaseProcess):
398
+
399
+ def __init__(self):
400
+ self._identity = ()
401
+ self._name = 'MainProcess'
402
+ self._parent_pid = None
403
+ self._popen = None
404
+ self._closed = False
405
+ self._config = {'authkey': AuthenticationString(os.urandom(32)),
406
+ 'semprefix': '/mp'}
407
+ # Note that some versions of FreeBSD only allow named
408
+ # semaphores to have names of up to 14 characters. Therefore
409
+ # we choose a short prefix.
410
+ #
411
+ # On MacOSX in a sandbox it may be necessary to use a
412
+ # different prefix -- see #19478.
413
+ #
414
+ # Everything in self._config will be inherited by descendant
415
+ # processes.
416
+
417
+ def close(self):
418
+ pass
419
+
420
+
421
+ _parent_process = None
422
+ _current_process = _MainProcess()
423
+ _process_counter = itertools.count(1)
424
+ _children = set()
425
+ del _MainProcess
426
+
427
+ #
428
+ # Give names to some return codes
429
+ #
430
+
431
+ _exitcode_to_name = {}
432
+
433
+ for name, signum in list(signal.__dict__.items()):
434
+ if name[:3]=='SIG' and '_' not in name:
435
+ _exitcode_to_name[-signum] = f'-{name}'
436
+
437
+ # For debug and leak testing
438
+ _dangling = WeakSet()
llmeval-env/lib/python3.10/site-packages/multiprocess/queues.py ADDED
@@ -0,0 +1,382 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # Module implementing queues
3
+ #
4
+ # multiprocessing/queues.py
5
+ #
6
+ # Copyright (c) 2006-2008, R Oudkerk
7
+ # Licensed to PSF under a Contributor Agreement.
8
+ #
9
+
10
+ __all__ = ['Queue', 'SimpleQueue', 'JoinableQueue']
11
+
12
+ import sys
13
+ import os
14
+ import threading
15
+ import collections
16
+ import time
17
+ import types
18
+ import weakref
19
+ import errno
20
+
21
+ from queue import Empty, Full
22
+
23
+ try:
24
+ import _multiprocess as _multiprocessing
25
+ except ImportError:
26
+ import _multiprocessing
27
+
28
+ from . import connection
29
+ from . import context
30
+ _ForkingPickler = context.reduction.ForkingPickler
31
+
32
+ from .util import debug, info, Finalize, register_after_fork, is_exiting
33
+
34
+ #
35
+ # Queue type using a pipe, buffer and thread
36
+ #
37
+
38
+ class Queue(object):
39
+
40
+ def __init__(self, maxsize=0, *, ctx):
41
+ if maxsize <= 0:
42
+ # Can raise ImportError (see issues #3770 and #23400)
43
+ from .synchronize import SEM_VALUE_MAX as maxsize
44
+ self._maxsize = maxsize
45
+ self._reader, self._writer = connection.Pipe(duplex=False)
46
+ self._rlock = ctx.Lock()
47
+ self._opid = os.getpid()
48
+ if sys.platform == 'win32':
49
+ self._wlock = None
50
+ else:
51
+ self._wlock = ctx.Lock()
52
+ self._sem = ctx.BoundedSemaphore(maxsize)
53
+ # For use by concurrent.futures
54
+ self._ignore_epipe = False
55
+ self._reset()
56
+
57
+ if sys.platform != 'win32':
58
+ register_after_fork(self, Queue._after_fork)
59
+
60
+ def __getstate__(self):
61
+ context.assert_spawning(self)
62
+ return (self._ignore_epipe, self._maxsize, self._reader, self._writer,
63
+ self._rlock, self._wlock, self._sem, self._opid)
64
+
65
+ def __setstate__(self, state):
66
+ (self._ignore_epipe, self._maxsize, self._reader, self._writer,
67
+ self._rlock, self._wlock, self._sem, self._opid) = state
68
+ self._reset()
69
+
70
+ def _after_fork(self):
71
+ debug('Queue._after_fork()')
72
+ self._reset(after_fork=True)
73
+
74
+ def _reset(self, after_fork=False):
75
+ if after_fork:
76
+ self._notempty._at_fork_reinit()
77
+ else:
78
+ self._notempty = threading.Condition(threading.Lock())
79
+ self._buffer = collections.deque()
80
+ self._thread = None
81
+ self._jointhread = None
82
+ self._joincancelled = False
83
+ self._closed = False
84
+ self._close = None
85
+ self._send_bytes = self._writer.send_bytes
86
+ self._recv_bytes = self._reader.recv_bytes
87
+ self._poll = self._reader.poll
88
+
89
+ def put(self, obj, block=True, timeout=None):
90
+ if self._closed:
91
+ raise ValueError(f"Queue {self!r} is closed")
92
+ if not self._sem.acquire(block, timeout):
93
+ raise Full
94
+
95
+ with self._notempty:
96
+ if self._thread is None:
97
+ self._start_thread()
98
+ self._buffer.append(obj)
99
+ self._notempty.notify()
100
+
101
+ def get(self, block=True, timeout=None):
102
+ if self._closed:
103
+ raise ValueError(f"Queue {self!r} is closed")
104
+ if block and timeout is None:
105
+ with self._rlock:
106
+ res = self._recv_bytes()
107
+ self._sem.release()
108
+ else:
109
+ if block:
110
+ deadline = getattr(time,'monotonic',time.time)() + timeout
111
+ if not self._rlock.acquire(block, timeout):
112
+ raise Empty
113
+ try:
114
+ if block:
115
+ timeout = deadline - getattr(time,'monotonic',time.time)()
116
+ if not self._poll(timeout):
117
+ raise Empty
118
+ elif not self._poll():
119
+ raise Empty
120
+ res = self._recv_bytes()
121
+ self._sem.release()
122
+ finally:
123
+ self._rlock.release()
124
+ # unserialize the data after having released the lock
125
+ return _ForkingPickler.loads(res)
126
+
127
+ def qsize(self):
128
+ # Raises NotImplementedError on Mac OSX because of broken sem_getvalue()
129
+ return self._maxsize - self._sem._semlock._get_value()
130
+
131
+ def empty(self):
132
+ return not self._poll()
133
+
134
+ def full(self):
135
+ return self._sem._semlock._is_zero()
136
+
137
+ def get_nowait(self):
138
+ return self.get(False)
139
+
140
+ def put_nowait(self, obj):
141
+ return self.put(obj, False)
142
+
143
+ def close(self):
144
+ self._closed = True
145
+ close = self._close
146
+ if close:
147
+ self._close = None
148
+ close()
149
+
150
+ def join_thread(self):
151
+ debug('Queue.join_thread()')
152
+ assert self._closed, "Queue {0!r} not closed".format(self)
153
+ if self._jointhread:
154
+ self._jointhread()
155
+
156
+ def cancel_join_thread(self):
157
+ debug('Queue.cancel_join_thread()')
158
+ self._joincancelled = True
159
+ try:
160
+ self._jointhread.cancel()
161
+ except AttributeError:
162
+ pass
163
+
164
+ def _start_thread(self):
165
+ debug('Queue._start_thread()')
166
+
167
+ # Start thread which transfers data from buffer to pipe
168
+ self._buffer.clear()
169
+ self._thread = threading.Thread(
170
+ target=Queue._feed,
171
+ args=(self._buffer, self._notempty, self._send_bytes,
172
+ self._wlock, self._reader.close, self._writer.close,
173
+ self._ignore_epipe, self._on_queue_feeder_error,
174
+ self._sem),
175
+ name='QueueFeederThread'
176
+ )
177
+ self._thread.daemon = True
178
+
179
+ debug('doing self._thread.start()')
180
+ self._thread.start()
181
+ debug('... done self._thread.start()')
182
+
183
+ if not self._joincancelled:
184
+ self._jointhread = Finalize(
185
+ self._thread, Queue._finalize_join,
186
+ [weakref.ref(self._thread)],
187
+ exitpriority=-5
188
+ )
189
+
190
+ # Send sentinel to the thread queue object when garbage collected
191
+ self._close = Finalize(
192
+ self, Queue._finalize_close,
193
+ [self._buffer, self._notempty],
194
+ exitpriority=10
195
+ )
196
+
197
+ @staticmethod
198
+ def _finalize_join(twr):
199
+ debug('joining queue thread')
200
+ thread = twr()
201
+ if thread is not None:
202
+ thread.join()
203
+ debug('... queue thread joined')
204
+ else:
205
+ debug('... queue thread already dead')
206
+
207
+ @staticmethod
208
+ def _finalize_close(buffer, notempty):
209
+ debug('telling queue thread to quit')
210
+ with notempty:
211
+ buffer.append(_sentinel)
212
+ notempty.notify()
213
+
214
+ @staticmethod
215
+ def _feed(buffer, notempty, send_bytes, writelock, reader_close,
216
+ writer_close, ignore_epipe, onerror, queue_sem):
217
+ debug('starting thread to feed data to pipe')
218
+ nacquire = notempty.acquire
219
+ nrelease = notempty.release
220
+ nwait = notempty.wait
221
+ bpopleft = buffer.popleft
222
+ sentinel = _sentinel
223
+ if sys.platform != 'win32':
224
+ wacquire = writelock.acquire
225
+ wrelease = writelock.release
226
+ else:
227
+ wacquire = None
228
+
229
+ while 1:
230
+ try:
231
+ nacquire()
232
+ try:
233
+ if not buffer:
234
+ nwait()
235
+ finally:
236
+ nrelease()
237
+ try:
238
+ while 1:
239
+ obj = bpopleft()
240
+ if obj is sentinel:
241
+ debug('feeder thread got sentinel -- exiting')
242
+ reader_close()
243
+ writer_close()
244
+ return
245
+
246
+ # serialize the data before acquiring the lock
247
+ obj = _ForkingPickler.dumps(obj)
248
+ if wacquire is None:
249
+ send_bytes(obj)
250
+ else:
251
+ wacquire()
252
+ try:
253
+ send_bytes(obj)
254
+ finally:
255
+ wrelease()
256
+ except IndexError:
257
+ pass
258
+ except Exception as e:
259
+ if ignore_epipe and getattr(e, 'errno', 0) == errno.EPIPE:
260
+ return
261
+ # Since this runs in a daemon thread the resources it uses
262
+ # may be become unusable while the process is cleaning up.
263
+ # We ignore errors which happen after the process has
264
+ # started to cleanup.
265
+ if is_exiting():
266
+ info('error in queue thread: %s', e)
267
+ return
268
+ else:
269
+ # Since the object has not been sent in the queue, we need
270
+ # to decrease the size of the queue. The error acts as
271
+ # if the object had been silently removed from the queue
272
+ # and this step is necessary to have a properly working
273
+ # queue.
274
+ queue_sem.release()
275
+ onerror(e, obj)
276
+
277
+ @staticmethod
278
+ def _on_queue_feeder_error(e, obj):
279
+ """
280
+ Private API hook called when feeding data in the background thread
281
+ raises an exception. For overriding by concurrent.futures.
282
+ """
283
+ import traceback
284
+ traceback.print_exc()
285
+
286
+
287
+ _sentinel = object()
288
+
289
+ #
290
+ # A queue type which also supports join() and task_done() methods
291
+ #
292
+ # Note that if you do not call task_done() for each finished task then
293
+ # eventually the counter's semaphore may overflow causing Bad Things
294
+ # to happen.
295
+ #
296
+
297
+ class JoinableQueue(Queue):
298
+
299
+ def __init__(self, maxsize=0, *, ctx):
300
+ Queue.__init__(self, maxsize, ctx=ctx)
301
+ self._unfinished_tasks = ctx.Semaphore(0)
302
+ self._cond = ctx.Condition()
303
+
304
+ def __getstate__(self):
305
+ return Queue.__getstate__(self) + (self._cond, self._unfinished_tasks)
306
+
307
+ def __setstate__(self, state):
308
+ Queue.__setstate__(self, state[:-2])
309
+ self._cond, self._unfinished_tasks = state[-2:]
310
+
311
+ def put(self, obj, block=True, timeout=None):
312
+ if self._closed:
313
+ raise ValueError(f"Queue {self!r} is closed")
314
+ if not self._sem.acquire(block, timeout):
315
+ raise Full
316
+
317
+ with self._notempty, self._cond:
318
+ if self._thread is None:
319
+ self._start_thread()
320
+ self._buffer.append(obj)
321
+ self._unfinished_tasks.release()
322
+ self._notempty.notify()
323
+
324
+ def task_done(self):
325
+ with self._cond:
326
+ if not self._unfinished_tasks.acquire(False):
327
+ raise ValueError('task_done() called too many times')
328
+ if self._unfinished_tasks._semlock._is_zero():
329
+ self._cond.notify_all()
330
+
331
+ def join(self):
332
+ with self._cond:
333
+ if not self._unfinished_tasks._semlock._is_zero():
334
+ self._cond.wait()
335
+
336
+ #
337
+ # Simplified Queue type -- really just a locked pipe
338
+ #
339
+
340
+ class SimpleQueue(object):
341
+
342
+ def __init__(self, *, ctx):
343
+ self._reader, self._writer = connection.Pipe(duplex=False)
344
+ self._rlock = ctx.Lock()
345
+ self._poll = self._reader.poll
346
+ if sys.platform == 'win32':
347
+ self._wlock = None
348
+ else:
349
+ self._wlock = ctx.Lock()
350
+
351
+ def close(self):
352
+ self._reader.close()
353
+ self._writer.close()
354
+
355
+ def empty(self):
356
+ return not self._poll()
357
+
358
+ def __getstate__(self):
359
+ context.assert_spawning(self)
360
+ return (self._reader, self._writer, self._rlock, self._wlock)
361
+
362
+ def __setstate__(self, state):
363
+ (self._reader, self._writer, self._rlock, self._wlock) = state
364
+ self._poll = self._reader.poll
365
+
366
+ def get(self):
367
+ with self._rlock:
368
+ res = self._reader.recv_bytes()
369
+ # unserialize the data after having released the lock
370
+ return _ForkingPickler.loads(res)
371
+
372
+ def put(self, obj):
373
+ # serialize the data before acquiring the lock
374
+ obj = _ForkingPickler.dumps(obj)
375
+ if self._wlock is None:
376
+ # writes to a message oriented win32 pipe are atomic
377
+ self._writer.send_bytes(obj)
378
+ else:
379
+ with self._wlock:
380
+ self._writer.send_bytes(obj)
381
+
382
+ __class_getitem__ = classmethod(types.GenericAlias)