ZTWHHH commited on
Commit
910fade
·
verified ·
1 Parent(s): ebd1cc7

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. .gitattributes +1 -0
  2. evalkit_cambrian/lib/python3.10/concurrent/__init__.py +1 -0
  3. evalkit_cambrian/lib/python3.10/concurrent/__pycache__/__init__.cpython-310.pyc +0 -0
  4. evalkit_cambrian/lib/python3.10/concurrent/futures/__init__.py +53 -0
  5. evalkit_cambrian/lib/python3.10/concurrent/futures/__pycache__/__init__.cpython-310.pyc +0 -0
  6. evalkit_cambrian/lib/python3.10/concurrent/futures/__pycache__/_base.cpython-310.pyc +0 -0
  7. evalkit_cambrian/lib/python3.10/concurrent/futures/_base.py +656 -0
  8. evalkit_cambrian/lib/python3.10/concurrent/futures/thread.py +236 -0
  9. evalkit_cambrian/lib/python3.10/encodings/ascii.py +50 -0
  10. evalkit_cambrian/lib/python3.10/encodings/cp1006.py +307 -0
  11. evalkit_cambrian/lib/python3.10/encodings/cp949.py +39 -0
  12. evalkit_cambrian/lib/python3.10/encodings/hp_roman8.py +314 -0
  13. evalkit_cambrian/lib/python3.10/encodings/iso2022_jp_1.py +39 -0
  14. evalkit_cambrian/lib/python3.10/encodings/iso2022_jp_2.py +39 -0
  15. evalkit_cambrian/lib/python3.10/encodings/iso8859_10.py +307 -0
  16. evalkit_cambrian/lib/python3.10/encodings/iso8859_3.py +307 -0
  17. evalkit_cambrian/lib/python3.10/encodings/kz1048.py +307 -0
  18. evalkit_cambrian/lib/python3.10/encodings/latin_1.py +50 -0
  19. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/__init__.cpython-310.pyc +0 -0
  20. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/autocomplete.cpython-310.pyc +0 -0
  21. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/autocomplete_w.cpython-310.pyc +0 -0
  22. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/autoexpand.cpython-310.pyc +0 -0
  23. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/browser.cpython-310.pyc +0 -0
  24. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/calltip.cpython-310.pyc +0 -0
  25. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/calltip_w.cpython-310.pyc +0 -0
  26. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/codecontext.cpython-310.pyc +0 -0
  27. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/colorizer.cpython-310.pyc +0 -0
  28. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/config.cpython-310.pyc +0 -0
  29. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/config_key.cpython-310.pyc +0 -0
  30. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/configdialog.cpython-310.pyc +0 -0
  31. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/debugger_r.cpython-310.pyc +0 -0
  32. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/debugobj.cpython-310.pyc +0 -0
  33. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/debugobj_r.cpython-310.pyc +0 -0
  34. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/delegator.cpython-310.pyc +0 -0
  35. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/dynoption.cpython-310.pyc +0 -0
  36. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/editor.cpython-310.pyc +0 -0
  37. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/filelist.cpython-310.pyc +0 -0
  38. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/format.cpython-310.pyc +0 -0
  39. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/grep.cpython-310.pyc +0 -0
  40. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/help.cpython-310.pyc +0 -0
  41. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/help_about.cpython-310.pyc +0 -0
  42. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/history.cpython-310.pyc +0 -0
  43. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/hyperparser.cpython-310.pyc +0 -0
  44. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/idle.cpython-310.pyc +0 -0
  45. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/iomenu.cpython-310.pyc +0 -0
  46. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/macosx.cpython-310.pyc +0 -0
  47. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/mainmenu.cpython-310.pyc +0 -0
  48. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/parenmatch.cpython-310.pyc +0 -0
  49. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/pathbrowser.cpython-310.pyc +0 -0
  50. evalkit_cambrian/lib/python3.10/idlelib/__pycache__/percolator.cpython-310.pyc +0 -0
.gitattributes CHANGED
@@ -268,3 +268,4 @@ evalkit_cambrian/lib/python3.10/tkinter/__pycache__/__init__.cpython-310.pyc fil
268
  evalkit_cambrian/lib/python3.10/ensurepip/_bundled/pip-23.0.1-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
269
  evalkit_cambrian/bin/lzcat filter=lfs diff=lfs merge=lfs -text
270
  evalkit_cambrian/lib/python3.10/lib2to3/tests/__pycache__/test_fixers.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
 
 
268
  evalkit_cambrian/lib/python3.10/ensurepip/_bundled/pip-23.0.1-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
269
  evalkit_cambrian/bin/lzcat filter=lfs diff=lfs merge=lfs -text
270
  evalkit_cambrian/lib/python3.10/lib2to3/tests/__pycache__/test_fixers.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
271
+ evalkit_llava/x86_64-conda-linux-gnu/bin/ld filter=lfs diff=lfs merge=lfs -text
evalkit_cambrian/lib/python3.10/concurrent/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ # This directory is a Python package.
evalkit_cambrian/lib/python3.10/concurrent/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (389 Bytes). View file
 
evalkit_cambrian/lib/python3.10/concurrent/futures/__init__.py ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 2009 Brian Quinlan. All Rights Reserved.
2
+ # Licensed to PSF under a Contributor Agreement.
3
+
4
+ """Execute computations asynchronously using threads or processes."""
5
+
6
+ __author__ = 'Brian Quinlan ([email protected])'
7
+
8
+ from concurrent.futures._base import (FIRST_COMPLETED,
9
+ FIRST_EXCEPTION,
10
+ ALL_COMPLETED,
11
+ CancelledError,
12
+ TimeoutError,
13
+ InvalidStateError,
14
+ BrokenExecutor,
15
+ Future,
16
+ Executor,
17
+ wait,
18
+ as_completed)
19
+
20
+ __all__ = (
21
+ 'FIRST_COMPLETED',
22
+ 'FIRST_EXCEPTION',
23
+ 'ALL_COMPLETED',
24
+ 'CancelledError',
25
+ 'TimeoutError',
26
+ 'BrokenExecutor',
27
+ 'Future',
28
+ 'Executor',
29
+ 'wait',
30
+ 'as_completed',
31
+ 'ProcessPoolExecutor',
32
+ 'ThreadPoolExecutor',
33
+ )
34
+
35
+
36
+ def __dir__():
37
+ return __all__ + ('__author__', '__doc__')
38
+
39
+
40
+ def __getattr__(name):
41
+ global ProcessPoolExecutor, ThreadPoolExecutor
42
+
43
+ if name == 'ProcessPoolExecutor':
44
+ from .process import ProcessPoolExecutor as pe
45
+ ProcessPoolExecutor = pe
46
+ return pe
47
+
48
+ if name == 'ThreadPoolExecutor':
49
+ from .thread import ThreadPoolExecutor as te
50
+ ThreadPoolExecutor = te
51
+ return te
52
+
53
+ raise AttributeError(f"module {__name__} has no attribute {name}")
evalkit_cambrian/lib/python3.10/concurrent/futures/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (1.36 kB). View file
 
evalkit_cambrian/lib/python3.10/concurrent/futures/__pycache__/_base.cpython-310.pyc ADDED
Binary file (22.5 kB). View file
 
evalkit_cambrian/lib/python3.10/concurrent/futures/_base.py ADDED
@@ -0,0 +1,656 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 2009 Brian Quinlan. All Rights Reserved.
2
+ # Licensed to PSF under a Contributor Agreement.
3
+
4
+ __author__ = 'Brian Quinlan ([email protected])'
5
+
6
+ import collections
7
+ import logging
8
+ import threading
9
+ import time
10
+ import types
11
+
12
+ FIRST_COMPLETED = 'FIRST_COMPLETED'
13
+ FIRST_EXCEPTION = 'FIRST_EXCEPTION'
14
+ ALL_COMPLETED = 'ALL_COMPLETED'
15
+ _AS_COMPLETED = '_AS_COMPLETED'
16
+
17
+ # Possible future states (for internal use by the futures package).
18
+ PENDING = 'PENDING'
19
+ RUNNING = 'RUNNING'
20
+ # The future was cancelled by the user...
21
+ CANCELLED = 'CANCELLED'
22
+ # ...and _Waiter.add_cancelled() was called by a worker.
23
+ CANCELLED_AND_NOTIFIED = 'CANCELLED_AND_NOTIFIED'
24
+ FINISHED = 'FINISHED'
25
+
26
+ _FUTURE_STATES = [
27
+ PENDING,
28
+ RUNNING,
29
+ CANCELLED,
30
+ CANCELLED_AND_NOTIFIED,
31
+ FINISHED
32
+ ]
33
+
34
+ _STATE_TO_DESCRIPTION_MAP = {
35
+ PENDING: "pending",
36
+ RUNNING: "running",
37
+ CANCELLED: "cancelled",
38
+ CANCELLED_AND_NOTIFIED: "cancelled",
39
+ FINISHED: "finished"
40
+ }
41
+
42
+ # Logger for internal use by the futures package.
43
+ LOGGER = logging.getLogger("concurrent.futures")
44
+
45
+ class Error(Exception):
46
+ """Base class for all future-related exceptions."""
47
+ pass
48
+
49
+ class CancelledError(Error):
50
+ """The Future was cancelled."""
51
+ pass
52
+
53
+ class TimeoutError(Error):
54
+ """The operation exceeded the given deadline."""
55
+ pass
56
+
57
+ class InvalidStateError(Error):
58
+ """The operation is not allowed in this state."""
59
+ pass
60
+
61
+ class _Waiter(object):
62
+ """Provides the event that wait() and as_completed() block on."""
63
+ def __init__(self):
64
+ self.event = threading.Event()
65
+ self.finished_futures = []
66
+
67
+ def add_result(self, future):
68
+ self.finished_futures.append(future)
69
+
70
+ def add_exception(self, future):
71
+ self.finished_futures.append(future)
72
+
73
+ def add_cancelled(self, future):
74
+ self.finished_futures.append(future)
75
+
76
+ class _AsCompletedWaiter(_Waiter):
77
+ """Used by as_completed()."""
78
+
79
+ def __init__(self):
80
+ super(_AsCompletedWaiter, self).__init__()
81
+ self.lock = threading.Lock()
82
+
83
+ def add_result(self, future):
84
+ with self.lock:
85
+ super(_AsCompletedWaiter, self).add_result(future)
86
+ self.event.set()
87
+
88
+ def add_exception(self, future):
89
+ with self.lock:
90
+ super(_AsCompletedWaiter, self).add_exception(future)
91
+ self.event.set()
92
+
93
+ def add_cancelled(self, future):
94
+ with self.lock:
95
+ super(_AsCompletedWaiter, self).add_cancelled(future)
96
+ self.event.set()
97
+
98
+ class _FirstCompletedWaiter(_Waiter):
99
+ """Used by wait(return_when=FIRST_COMPLETED)."""
100
+
101
+ def add_result(self, future):
102
+ super().add_result(future)
103
+ self.event.set()
104
+
105
+ def add_exception(self, future):
106
+ super().add_exception(future)
107
+ self.event.set()
108
+
109
+ def add_cancelled(self, future):
110
+ super().add_cancelled(future)
111
+ self.event.set()
112
+
113
+ class _AllCompletedWaiter(_Waiter):
114
+ """Used by wait(return_when=FIRST_EXCEPTION and ALL_COMPLETED)."""
115
+
116
+ def __init__(self, num_pending_calls, stop_on_exception):
117
+ self.num_pending_calls = num_pending_calls
118
+ self.stop_on_exception = stop_on_exception
119
+ self.lock = threading.Lock()
120
+ super().__init__()
121
+
122
+ def _decrement_pending_calls(self):
123
+ with self.lock:
124
+ self.num_pending_calls -= 1
125
+ if not self.num_pending_calls:
126
+ self.event.set()
127
+
128
+ def add_result(self, future):
129
+ super().add_result(future)
130
+ self._decrement_pending_calls()
131
+
132
+ def add_exception(self, future):
133
+ super().add_exception(future)
134
+ if self.stop_on_exception:
135
+ self.event.set()
136
+ else:
137
+ self._decrement_pending_calls()
138
+
139
+ def add_cancelled(self, future):
140
+ super().add_cancelled(future)
141
+ self._decrement_pending_calls()
142
+
143
+ class _AcquireFutures(object):
144
+ """A context manager that does an ordered acquire of Future conditions."""
145
+
146
+ def __init__(self, futures):
147
+ self.futures = sorted(futures, key=id)
148
+
149
+ def __enter__(self):
150
+ for future in self.futures:
151
+ future._condition.acquire()
152
+
153
+ def __exit__(self, *args):
154
+ for future in self.futures:
155
+ future._condition.release()
156
+
157
+ def _create_and_install_waiters(fs, return_when):
158
+ if return_when == _AS_COMPLETED:
159
+ waiter = _AsCompletedWaiter()
160
+ elif return_when == FIRST_COMPLETED:
161
+ waiter = _FirstCompletedWaiter()
162
+ else:
163
+ pending_count = sum(
164
+ f._state not in [CANCELLED_AND_NOTIFIED, FINISHED] for f in fs)
165
+
166
+ if return_when == FIRST_EXCEPTION:
167
+ waiter = _AllCompletedWaiter(pending_count, stop_on_exception=True)
168
+ elif return_when == ALL_COMPLETED:
169
+ waiter = _AllCompletedWaiter(pending_count, stop_on_exception=False)
170
+ else:
171
+ raise ValueError("Invalid return condition: %r" % return_when)
172
+
173
+ for f in fs:
174
+ f._waiters.append(waiter)
175
+
176
+ return waiter
177
+
178
+
179
+ def _yield_finished_futures(fs, waiter, ref_collect):
180
+ """
181
+ Iterate on the list *fs*, yielding finished futures one by one in
182
+ reverse order.
183
+ Before yielding a future, *waiter* is removed from its waiters
184
+ and the future is removed from each set in the collection of sets
185
+ *ref_collect*.
186
+
187
+ The aim of this function is to avoid keeping stale references after
188
+ the future is yielded and before the iterator resumes.
189
+ """
190
+ while fs:
191
+ f = fs[-1]
192
+ for futures_set in ref_collect:
193
+ futures_set.remove(f)
194
+ with f._condition:
195
+ f._waiters.remove(waiter)
196
+ del f
197
+ # Careful not to keep a reference to the popped value
198
+ yield fs.pop()
199
+
200
+
201
+ def as_completed(fs, timeout=None):
202
+ """An iterator over the given futures that yields each as it completes.
203
+
204
+ Args:
205
+ fs: The sequence of Futures (possibly created by different Executors) to
206
+ iterate over.
207
+ timeout: The maximum number of seconds to wait. If None, then there
208
+ is no limit on the wait time.
209
+
210
+ Returns:
211
+ An iterator that yields the given Futures as they complete (finished or
212
+ cancelled). If any given Futures are duplicated, they will be returned
213
+ once.
214
+
215
+ Raises:
216
+ TimeoutError: If the entire result iterator could not be generated
217
+ before the given timeout.
218
+ """
219
+ if timeout is not None:
220
+ end_time = timeout + time.monotonic()
221
+
222
+ fs = set(fs)
223
+ total_futures = len(fs)
224
+ with _AcquireFutures(fs):
225
+ finished = set(
226
+ f for f in fs
227
+ if f._state in [CANCELLED_AND_NOTIFIED, FINISHED])
228
+ pending = fs - finished
229
+ waiter = _create_and_install_waiters(fs, _AS_COMPLETED)
230
+ finished = list(finished)
231
+ try:
232
+ yield from _yield_finished_futures(finished, waiter,
233
+ ref_collect=(fs,))
234
+
235
+ while pending:
236
+ if timeout is None:
237
+ wait_timeout = None
238
+ else:
239
+ wait_timeout = end_time - time.monotonic()
240
+ if wait_timeout < 0:
241
+ raise TimeoutError(
242
+ '%d (of %d) futures unfinished' % (
243
+ len(pending), total_futures))
244
+
245
+ waiter.event.wait(wait_timeout)
246
+
247
+ with waiter.lock:
248
+ finished = waiter.finished_futures
249
+ waiter.finished_futures = []
250
+ waiter.event.clear()
251
+
252
+ # reverse to keep finishing order
253
+ finished.reverse()
254
+ yield from _yield_finished_futures(finished, waiter,
255
+ ref_collect=(fs, pending))
256
+
257
+ finally:
258
+ # Remove waiter from unfinished futures
259
+ for f in fs:
260
+ with f._condition:
261
+ f._waiters.remove(waiter)
262
+
263
+ DoneAndNotDoneFutures = collections.namedtuple(
264
+ 'DoneAndNotDoneFutures', 'done not_done')
265
+ def wait(fs, timeout=None, return_when=ALL_COMPLETED):
266
+ """Wait for the futures in the given sequence to complete.
267
+
268
+ Args:
269
+ fs: The sequence of Futures (possibly created by different Executors) to
270
+ wait upon.
271
+ timeout: The maximum number of seconds to wait. If None, then there
272
+ is no limit on the wait time.
273
+ return_when: Indicates when this function should return. The options
274
+ are:
275
+
276
+ FIRST_COMPLETED - Return when any future finishes or is
277
+ cancelled.
278
+ FIRST_EXCEPTION - Return when any future finishes by raising an
279
+ exception. If no future raises an exception
280
+ then it is equivalent to ALL_COMPLETED.
281
+ ALL_COMPLETED - Return when all futures finish or are cancelled.
282
+
283
+ Returns:
284
+ A named 2-tuple of sets. The first set, named 'done', contains the
285
+ futures that completed (is finished or cancelled) before the wait
286
+ completed. The second set, named 'not_done', contains uncompleted
287
+ futures. Duplicate futures given to *fs* are removed and will be
288
+ returned only once.
289
+ """
290
+ fs = set(fs)
291
+ with _AcquireFutures(fs):
292
+ done = {f for f in fs
293
+ if f._state in [CANCELLED_AND_NOTIFIED, FINISHED]}
294
+ not_done = fs - done
295
+ if (return_when == FIRST_COMPLETED) and done:
296
+ return DoneAndNotDoneFutures(done, not_done)
297
+ elif (return_when == FIRST_EXCEPTION) and done:
298
+ if any(f for f in done
299
+ if not f.cancelled() and f.exception() is not None):
300
+ return DoneAndNotDoneFutures(done, not_done)
301
+
302
+ if len(done) == len(fs):
303
+ return DoneAndNotDoneFutures(done, not_done)
304
+
305
+ waiter = _create_and_install_waiters(fs, return_when)
306
+
307
+ waiter.event.wait(timeout)
308
+ for f in fs:
309
+ with f._condition:
310
+ f._waiters.remove(waiter)
311
+
312
+ done.update(waiter.finished_futures)
313
+ return DoneAndNotDoneFutures(done, fs - done)
314
+
315
+
316
+ def _result_or_cancel(fut, timeout=None):
317
+ try:
318
+ try:
319
+ return fut.result(timeout)
320
+ finally:
321
+ fut.cancel()
322
+ finally:
323
+ # Break a reference cycle with the exception in self._exception
324
+ del fut
325
+
326
+
327
+ class Future(object):
328
+ """Represents the result of an asynchronous computation."""
329
+
330
+ def __init__(self):
331
+ """Initializes the future. Should not be called by clients."""
332
+ self._condition = threading.Condition()
333
+ self._state = PENDING
334
+ self._result = None
335
+ self._exception = None
336
+ self._waiters = []
337
+ self._done_callbacks = []
338
+
339
+ def _invoke_callbacks(self):
340
+ for callback in self._done_callbacks:
341
+ try:
342
+ callback(self)
343
+ except Exception:
344
+ LOGGER.exception('exception calling callback for %r', self)
345
+
346
+ def __repr__(self):
347
+ with self._condition:
348
+ if self._state == FINISHED:
349
+ if self._exception:
350
+ return '<%s at %#x state=%s raised %s>' % (
351
+ self.__class__.__name__,
352
+ id(self),
353
+ _STATE_TO_DESCRIPTION_MAP[self._state],
354
+ self._exception.__class__.__name__)
355
+ else:
356
+ return '<%s at %#x state=%s returned %s>' % (
357
+ self.__class__.__name__,
358
+ id(self),
359
+ _STATE_TO_DESCRIPTION_MAP[self._state],
360
+ self._result.__class__.__name__)
361
+ return '<%s at %#x state=%s>' % (
362
+ self.__class__.__name__,
363
+ id(self),
364
+ _STATE_TO_DESCRIPTION_MAP[self._state])
365
+
366
+ def cancel(self):
367
+ """Cancel the future if possible.
368
+
369
+ Returns True if the future was cancelled, False otherwise. A future
370
+ cannot be cancelled if it is running or has already completed.
371
+ """
372
+ with self._condition:
373
+ if self._state in [RUNNING, FINISHED]:
374
+ return False
375
+
376
+ if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]:
377
+ return True
378
+
379
+ self._state = CANCELLED
380
+ self._condition.notify_all()
381
+
382
+ self._invoke_callbacks()
383
+ return True
384
+
385
+ def cancelled(self):
386
+ """Return True if the future was cancelled."""
387
+ with self._condition:
388
+ return self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]
389
+
390
+ def running(self):
391
+ """Return True if the future is currently executing."""
392
+ with self._condition:
393
+ return self._state == RUNNING
394
+
395
+ def done(self):
396
+ """Return True if the future was cancelled or finished executing."""
397
+ with self._condition:
398
+ return self._state in [CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED]
399
+
400
+ def __get_result(self):
401
+ if self._exception:
402
+ try:
403
+ raise self._exception
404
+ finally:
405
+ # Break a reference cycle with the exception in self._exception
406
+ self = None
407
+ else:
408
+ return self._result
409
+
410
+ def add_done_callback(self, fn):
411
+ """Attaches a callable that will be called when the future finishes.
412
+
413
+ Args:
414
+ fn: A callable that will be called with this future as its only
415
+ argument when the future completes or is cancelled. The callable
416
+ will always be called by a thread in the same process in which
417
+ it was added. If the future has already completed or been
418
+ cancelled then the callable will be called immediately. These
419
+ callables are called in the order that they were added.
420
+ """
421
+ with self._condition:
422
+ if self._state not in [CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED]:
423
+ self._done_callbacks.append(fn)
424
+ return
425
+ try:
426
+ fn(self)
427
+ except Exception:
428
+ LOGGER.exception('exception calling callback for %r', self)
429
+
430
+ def result(self, timeout=None):
431
+ """Return the result of the call that the future represents.
432
+
433
+ Args:
434
+ timeout: The number of seconds to wait for the result if the future
435
+ isn't done. If None, then there is no limit on the wait time.
436
+
437
+ Returns:
438
+ The result of the call that the future represents.
439
+
440
+ Raises:
441
+ CancelledError: If the future was cancelled.
442
+ TimeoutError: If the future didn't finish executing before the given
443
+ timeout.
444
+ Exception: If the call raised then that exception will be raised.
445
+ """
446
+ try:
447
+ with self._condition:
448
+ if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]:
449
+ raise CancelledError()
450
+ elif self._state == FINISHED:
451
+ return self.__get_result()
452
+
453
+ self._condition.wait(timeout)
454
+
455
+ if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]:
456
+ raise CancelledError()
457
+ elif self._state == FINISHED:
458
+ return self.__get_result()
459
+ else:
460
+ raise TimeoutError()
461
+ finally:
462
+ # Break a reference cycle with the exception in self._exception
463
+ self = None
464
+
465
+ def exception(self, timeout=None):
466
+ """Return the exception raised by the call that the future represents.
467
+
468
+ Args:
469
+ timeout: The number of seconds to wait for the exception if the
470
+ future isn't done. If None, then there is no limit on the wait
471
+ time.
472
+
473
+ Returns:
474
+ The exception raised by the call that the future represents or None
475
+ if the call completed without raising.
476
+
477
+ Raises:
478
+ CancelledError: If the future was cancelled.
479
+ TimeoutError: If the future didn't finish executing before the given
480
+ timeout.
481
+ """
482
+
483
+ with self._condition:
484
+ if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]:
485
+ raise CancelledError()
486
+ elif self._state == FINISHED:
487
+ return self._exception
488
+
489
+ self._condition.wait(timeout)
490
+
491
+ if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]:
492
+ raise CancelledError()
493
+ elif self._state == FINISHED:
494
+ return self._exception
495
+ else:
496
+ raise TimeoutError()
497
+
498
+ # The following methods should only be used by Executors and in tests.
499
+ def set_running_or_notify_cancel(self):
500
+ """Mark the future as running or process any cancel notifications.
501
+
502
+ Should only be used by Executor implementations and unit tests.
503
+
504
+ If the future has been cancelled (cancel() was called and returned
505
+ True) then any threads waiting on the future completing (though calls
506
+ to as_completed() or wait()) are notified and False is returned.
507
+
508
+ If the future was not cancelled then it is put in the running state
509
+ (future calls to running() will return True) and True is returned.
510
+
511
+ This method should be called by Executor implementations before
512
+ executing the work associated with this future. If this method returns
513
+ False then the work should not be executed.
514
+
515
+ Returns:
516
+ False if the Future was cancelled, True otherwise.
517
+
518
+ Raises:
519
+ RuntimeError: if this method was already called or if set_result()
520
+ or set_exception() was called.
521
+ """
522
+ with self._condition:
523
+ if self._state == CANCELLED:
524
+ self._state = CANCELLED_AND_NOTIFIED
525
+ for waiter in self._waiters:
526
+ waiter.add_cancelled(self)
527
+ # self._condition.notify_all() is not necessary because
528
+ # self.cancel() triggers a notification.
529
+ return False
530
+ elif self._state == PENDING:
531
+ self._state = RUNNING
532
+ return True
533
+ else:
534
+ LOGGER.critical('Future %s in unexpected state: %s',
535
+ id(self),
536
+ self._state)
537
+ raise RuntimeError('Future in unexpected state')
538
+
539
+ def set_result(self, result):
540
+ """Sets the return value of work associated with the future.
541
+
542
+ Should only be used by Executor implementations and unit tests.
543
+ """
544
+ with self._condition:
545
+ if self._state in {CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED}:
546
+ raise InvalidStateError('{}: {!r}'.format(self._state, self))
547
+ self._result = result
548
+ self._state = FINISHED
549
+ for waiter in self._waiters:
550
+ waiter.add_result(self)
551
+ self._condition.notify_all()
552
+ self._invoke_callbacks()
553
+
554
+ def set_exception(self, exception):
555
+ """Sets the result of the future as being the given exception.
556
+
557
+ Should only be used by Executor implementations and unit tests.
558
+ """
559
+ with self._condition:
560
+ if self._state in {CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED}:
561
+ raise InvalidStateError('{}: {!r}'.format(self._state, self))
562
+ self._exception = exception
563
+ self._state = FINISHED
564
+ for waiter in self._waiters:
565
+ waiter.add_exception(self)
566
+ self._condition.notify_all()
567
+ self._invoke_callbacks()
568
+
569
+ __class_getitem__ = classmethod(types.GenericAlias)
570
+
571
+ class Executor(object):
572
+ """This is an abstract base class for concrete asynchronous executors."""
573
+
574
+ def submit(self, fn, /, *args, **kwargs):
575
+ """Submits a callable to be executed with the given arguments.
576
+
577
+ Schedules the callable to be executed as fn(*args, **kwargs) and returns
578
+ a Future instance representing the execution of the callable.
579
+
580
+ Returns:
581
+ A Future representing the given call.
582
+ """
583
+ raise NotImplementedError()
584
+
585
+ def map(self, fn, *iterables, timeout=None, chunksize=1):
586
+ """Returns an iterator equivalent to map(fn, iter).
587
+
588
+ Args:
589
+ fn: A callable that will take as many arguments as there are
590
+ passed iterables.
591
+ timeout: The maximum number of seconds to wait. If None, then there
592
+ is no limit on the wait time.
593
+ chunksize: The size of the chunks the iterable will be broken into
594
+ before being passed to a child process. This argument is only
595
+ used by ProcessPoolExecutor; it is ignored by
596
+ ThreadPoolExecutor.
597
+
598
+ Returns:
599
+ An iterator equivalent to: map(func, *iterables) but the calls may
600
+ be evaluated out-of-order.
601
+
602
+ Raises:
603
+ TimeoutError: If the entire result iterator could not be generated
604
+ before the given timeout.
605
+ Exception: If fn(*args) raises for any values.
606
+ """
607
+ if timeout is not None:
608
+ end_time = timeout + time.monotonic()
609
+
610
+ fs = [self.submit(fn, *args) for args in zip(*iterables)]
611
+
612
+ # Yield must be hidden in closure so that the futures are submitted
613
+ # before the first iterator value is required.
614
+ def result_iterator():
615
+ try:
616
+ # reverse to keep finishing order
617
+ fs.reverse()
618
+ while fs:
619
+ # Careful not to keep a reference to the popped future
620
+ if timeout is None:
621
+ yield _result_or_cancel(fs.pop())
622
+ else:
623
+ yield _result_or_cancel(fs.pop(), end_time - time.monotonic())
624
+ finally:
625
+ for future in fs:
626
+ future.cancel()
627
+ return result_iterator()
628
+
629
+ def shutdown(self, wait=True, *, cancel_futures=False):
630
+ """Clean-up the resources associated with the Executor.
631
+
632
+ It is safe to call this method several times. Otherwise, no other
633
+ methods can be called after this one.
634
+
635
+ Args:
636
+ wait: If True then shutdown will not return until all running
637
+ futures have finished executing and the resources used by the
638
+ executor have been reclaimed.
639
+ cancel_futures: If True then shutdown will cancel all pending
640
+ futures. Futures that are completed or running will not be
641
+ cancelled.
642
+ """
643
+ pass
644
+
645
+ def __enter__(self):
646
+ return self
647
+
648
+ def __exit__(self, exc_type, exc_val, exc_tb):
649
+ self.shutdown(wait=True)
650
+ return False
651
+
652
+
653
+ class BrokenExecutor(RuntimeError):
654
+ """
655
+ Raised when a executor has become non-functional after a severe failure.
656
+ """
evalkit_cambrian/lib/python3.10/concurrent/futures/thread.py ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 2009 Brian Quinlan. All Rights Reserved.
2
+ # Licensed to PSF under a Contributor Agreement.
3
+
4
+ """Implements ThreadPoolExecutor."""
5
+
6
+ __author__ = 'Brian Quinlan ([email protected])'
7
+
8
+ from concurrent.futures import _base
9
+ import itertools
10
+ import queue
11
+ import threading
12
+ import types
13
+ import weakref
14
+ import os
15
+
16
+
17
+ _threads_queues = weakref.WeakKeyDictionary()
18
+ _shutdown = False
19
+ # Lock that ensures that new workers are not created while the interpreter is
20
+ # shutting down. Must be held while mutating _threads_queues and _shutdown.
21
+ _global_shutdown_lock = threading.Lock()
22
+
23
+ def _python_exit():
24
+ global _shutdown
25
+ with _global_shutdown_lock:
26
+ _shutdown = True
27
+ items = list(_threads_queues.items())
28
+ for t, q in items:
29
+ q.put(None)
30
+ for t, q in items:
31
+ t.join()
32
+
33
+ # Register for `_python_exit()` to be called just before joining all
34
+ # non-daemon threads. This is used instead of `atexit.register()` for
35
+ # compatibility with subinterpreters, which no longer support daemon threads.
36
+ # See bpo-39812 for context.
37
+ threading._register_atexit(_python_exit)
38
+
39
+ # At fork, reinitialize the `_global_shutdown_lock` lock in the child process
40
+ if hasattr(os, 'register_at_fork'):
41
+ os.register_at_fork(before=_global_shutdown_lock.acquire,
42
+ after_in_child=_global_shutdown_lock._at_fork_reinit,
43
+ after_in_parent=_global_shutdown_lock.release)
44
+
45
+
46
+ class _WorkItem(object):
47
+ def __init__(self, future, fn, args, kwargs):
48
+ self.future = future
49
+ self.fn = fn
50
+ self.args = args
51
+ self.kwargs = kwargs
52
+
53
+ def run(self):
54
+ if not self.future.set_running_or_notify_cancel():
55
+ return
56
+
57
+ try:
58
+ result = self.fn(*self.args, **self.kwargs)
59
+ except BaseException as exc:
60
+ self.future.set_exception(exc)
61
+ # Break a reference cycle with the exception 'exc'
62
+ self = None
63
+ else:
64
+ self.future.set_result(result)
65
+
66
+ __class_getitem__ = classmethod(types.GenericAlias)
67
+
68
+
69
+ def _worker(executor_reference, work_queue, initializer, initargs):
70
+ if initializer is not None:
71
+ try:
72
+ initializer(*initargs)
73
+ except BaseException:
74
+ _base.LOGGER.critical('Exception in initializer:', exc_info=True)
75
+ executor = executor_reference()
76
+ if executor is not None:
77
+ executor._initializer_failed()
78
+ return
79
+ try:
80
+ while True:
81
+ work_item = work_queue.get(block=True)
82
+ if work_item is not None:
83
+ work_item.run()
84
+ # Delete references to object. See issue16284
85
+ del work_item
86
+
87
+ # attempt to increment idle count
88
+ executor = executor_reference()
89
+ if executor is not None:
90
+ executor._idle_semaphore.release()
91
+ del executor
92
+ continue
93
+
94
+ executor = executor_reference()
95
+ # Exit if:
96
+ # - The interpreter is shutting down OR
97
+ # - The executor that owns the worker has been collected OR
98
+ # - The executor that owns the worker has been shutdown.
99
+ if _shutdown or executor is None or executor._shutdown:
100
+ # Flag the executor as shutting down as early as possible if it
101
+ # is not gc-ed yet.
102
+ if executor is not None:
103
+ executor._shutdown = True
104
+ # Notice other workers
105
+ work_queue.put(None)
106
+ return
107
+ del executor
108
+ except BaseException:
109
+ _base.LOGGER.critical('Exception in worker', exc_info=True)
110
+
111
+
112
+ class BrokenThreadPool(_base.BrokenExecutor):
113
+ """
114
+ Raised when a worker thread in a ThreadPoolExecutor failed initializing.
115
+ """
116
+
117
+
118
+ class ThreadPoolExecutor(_base.Executor):
119
+
120
+ # Used to assign unique thread names when thread_name_prefix is not supplied.
121
+ _counter = itertools.count().__next__
122
+
123
+ def __init__(self, max_workers=None, thread_name_prefix='',
124
+ initializer=None, initargs=()):
125
+ """Initializes a new ThreadPoolExecutor instance.
126
+
127
+ Args:
128
+ max_workers: The maximum number of threads that can be used to
129
+ execute the given calls.
130
+ thread_name_prefix: An optional name prefix to give our threads.
131
+ initializer: A callable used to initialize worker threads.
132
+ initargs: A tuple of arguments to pass to the initializer.
133
+ """
134
+ if max_workers is None:
135
+ # ThreadPoolExecutor is often used to:
136
+ # * CPU bound task which releases GIL
137
+ # * I/O bound task (which releases GIL, of course)
138
+ #
139
+ # We use cpu_count + 4 for both types of tasks.
140
+ # But we limit it to 32 to avoid consuming surprisingly large resource
141
+ # on many core machine.
142
+ max_workers = min(32, (os.cpu_count() or 1) + 4)
143
+ if max_workers <= 0:
144
+ raise ValueError("max_workers must be greater than 0")
145
+
146
+ if initializer is not None and not callable(initializer):
147
+ raise TypeError("initializer must be a callable")
148
+
149
+ self._max_workers = max_workers
150
+ self._work_queue = queue.SimpleQueue()
151
+ self._idle_semaphore = threading.Semaphore(0)
152
+ self._threads = set()
153
+ self._broken = False
154
+ self._shutdown = False
155
+ self._shutdown_lock = threading.Lock()
156
+ self._thread_name_prefix = (thread_name_prefix or
157
+ ("ThreadPoolExecutor-%d" % self._counter()))
158
+ self._initializer = initializer
159
+ self._initargs = initargs
160
+
161
+ def submit(self, fn, /, *args, **kwargs):
162
+ with self._shutdown_lock, _global_shutdown_lock:
163
+ if self._broken:
164
+ raise BrokenThreadPool(self._broken)
165
+
166
+ if self._shutdown:
167
+ raise RuntimeError('cannot schedule new futures after shutdown')
168
+ if _shutdown:
169
+ raise RuntimeError('cannot schedule new futures after '
170
+ 'interpreter shutdown')
171
+
172
+ f = _base.Future()
173
+ w = _WorkItem(f, fn, args, kwargs)
174
+
175
+ self._work_queue.put(w)
176
+ self._adjust_thread_count()
177
+ return f
178
+ submit.__doc__ = _base.Executor.submit.__doc__
179
+
180
+ def _adjust_thread_count(self):
181
+ # if idle threads are available, don't spin new threads
182
+ if self._idle_semaphore.acquire(timeout=0):
183
+ return
184
+
185
+ # When the executor gets lost, the weakref callback will wake up
186
+ # the worker threads.
187
+ def weakref_cb(_, q=self._work_queue):
188
+ q.put(None)
189
+
190
+ num_threads = len(self._threads)
191
+ if num_threads < self._max_workers:
192
+ thread_name = '%s_%d' % (self._thread_name_prefix or self,
193
+ num_threads)
194
+ t = threading.Thread(name=thread_name, target=_worker,
195
+ args=(weakref.ref(self, weakref_cb),
196
+ self._work_queue,
197
+ self._initializer,
198
+ self._initargs))
199
+ t.start()
200
+ self._threads.add(t)
201
+ _threads_queues[t] = self._work_queue
202
+
203
+ def _initializer_failed(self):
204
+ with self._shutdown_lock:
205
+ self._broken = ('A thread initializer failed, the thread pool '
206
+ 'is not usable anymore')
207
+ # Drain work queue and mark pending futures failed
208
+ while True:
209
+ try:
210
+ work_item = self._work_queue.get_nowait()
211
+ except queue.Empty:
212
+ break
213
+ if work_item is not None:
214
+ work_item.future.set_exception(BrokenThreadPool(self._broken))
215
+
216
+ def shutdown(self, wait=True, *, cancel_futures=False):
217
+ with self._shutdown_lock:
218
+ self._shutdown = True
219
+ if cancel_futures:
220
+ # Drain all work items from the queue, and then cancel their
221
+ # associated futures.
222
+ while True:
223
+ try:
224
+ work_item = self._work_queue.get_nowait()
225
+ except queue.Empty:
226
+ break
227
+ if work_item is not None:
228
+ work_item.future.cancel()
229
+
230
+ # Send a wake-up to prevent threads calling
231
+ # _work_queue.get(block=True) from permanently blocking.
232
+ self._work_queue.put(None)
233
+ if wait:
234
+ for t in self._threads:
235
+ t.join()
236
+ shutdown.__doc__ = _base.Executor.shutdown.__doc__
evalkit_cambrian/lib/python3.10/encodings/ascii.py ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python 'ascii' Codec
2
+
3
+
4
+ Written by Marc-Andre Lemburg ([email protected]).
5
+
6
+ (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
7
+
8
+ """
9
+ import codecs
10
+
11
+ ### Codec APIs
12
+
13
+ class Codec(codecs.Codec):
14
+
15
+ # Note: Binding these as C functions will result in the class not
16
+ # converting them to methods. This is intended.
17
+ encode = codecs.ascii_encode
18
+ decode = codecs.ascii_decode
19
+
20
+ class IncrementalEncoder(codecs.IncrementalEncoder):
21
+ def encode(self, input, final=False):
22
+ return codecs.ascii_encode(input, self.errors)[0]
23
+
24
+ class IncrementalDecoder(codecs.IncrementalDecoder):
25
+ def decode(self, input, final=False):
26
+ return codecs.ascii_decode(input, self.errors)[0]
27
+
28
+ class StreamWriter(Codec,codecs.StreamWriter):
29
+ pass
30
+
31
+ class StreamReader(Codec,codecs.StreamReader):
32
+ pass
33
+
34
+ class StreamConverter(StreamWriter,StreamReader):
35
+
36
+ encode = codecs.ascii_decode
37
+ decode = codecs.ascii_encode
38
+
39
+ ### encodings module API
40
+
41
+ def getregentry():
42
+ return codecs.CodecInfo(
43
+ name='ascii',
44
+ encode=Codec.encode,
45
+ decode=Codec.decode,
46
+ incrementalencoder=IncrementalEncoder,
47
+ incrementaldecoder=IncrementalDecoder,
48
+ streamwriter=StreamWriter,
49
+ streamreader=StreamReader,
50
+ )
evalkit_cambrian/lib/python3.10/encodings/cp1006.py ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec cp1006 generated from 'MAPPINGS/VENDORS/MISC/CP1006.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_table)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_table)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='cp1006',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+
45
+ ### Decoding Table
46
+
47
+ decoding_table = (
48
+ '\x00' # 0x00 -> NULL
49
+ '\x01' # 0x01 -> START OF HEADING
50
+ '\x02' # 0x02 -> START OF TEXT
51
+ '\x03' # 0x03 -> END OF TEXT
52
+ '\x04' # 0x04 -> END OF TRANSMISSION
53
+ '\x05' # 0x05 -> ENQUIRY
54
+ '\x06' # 0x06 -> ACKNOWLEDGE
55
+ '\x07' # 0x07 -> BELL
56
+ '\x08' # 0x08 -> BACKSPACE
57
+ '\t' # 0x09 -> HORIZONTAL TABULATION
58
+ '\n' # 0x0A -> LINE FEED
59
+ '\x0b' # 0x0B -> VERTICAL TABULATION
60
+ '\x0c' # 0x0C -> FORM FEED
61
+ '\r' # 0x0D -> CARRIAGE RETURN
62
+ '\x0e' # 0x0E -> SHIFT OUT
63
+ '\x0f' # 0x0F -> SHIFT IN
64
+ '\x10' # 0x10 -> DATA LINK ESCAPE
65
+ '\x11' # 0x11 -> DEVICE CONTROL ONE
66
+ '\x12' # 0x12 -> DEVICE CONTROL TWO
67
+ '\x13' # 0x13 -> DEVICE CONTROL THREE
68
+ '\x14' # 0x14 -> DEVICE CONTROL FOUR
69
+ '\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE
70
+ '\x16' # 0x16 -> SYNCHRONOUS IDLE
71
+ '\x17' # 0x17 -> END OF TRANSMISSION BLOCK
72
+ '\x18' # 0x18 -> CANCEL
73
+ '\x19' # 0x19 -> END OF MEDIUM
74
+ '\x1a' # 0x1A -> SUBSTITUTE
75
+ '\x1b' # 0x1B -> ESCAPE
76
+ '\x1c' # 0x1C -> FILE SEPARATOR
77
+ '\x1d' # 0x1D -> GROUP SEPARATOR
78
+ '\x1e' # 0x1E -> RECORD SEPARATOR
79
+ '\x1f' # 0x1F -> UNIT SEPARATOR
80
+ ' ' # 0x20 -> SPACE
81
+ '!' # 0x21 -> EXCLAMATION MARK
82
+ '"' # 0x22 -> QUOTATION MARK
83
+ '#' # 0x23 -> NUMBER SIGN
84
+ '$' # 0x24 -> DOLLAR SIGN
85
+ '%' # 0x25 -> PERCENT SIGN
86
+ '&' # 0x26 -> AMPERSAND
87
+ "'" # 0x27 -> APOSTROPHE
88
+ '(' # 0x28 -> LEFT PARENTHESIS
89
+ ')' # 0x29 -> RIGHT PARENTHESIS
90
+ '*' # 0x2A -> ASTERISK
91
+ '+' # 0x2B -> PLUS SIGN
92
+ ',' # 0x2C -> COMMA
93
+ '-' # 0x2D -> HYPHEN-MINUS
94
+ '.' # 0x2E -> FULL STOP
95
+ '/' # 0x2F -> SOLIDUS
96
+ '0' # 0x30 -> DIGIT ZERO
97
+ '1' # 0x31 -> DIGIT ONE
98
+ '2' # 0x32 -> DIGIT TWO
99
+ '3' # 0x33 -> DIGIT THREE
100
+ '4' # 0x34 -> DIGIT FOUR
101
+ '5' # 0x35 -> DIGIT FIVE
102
+ '6' # 0x36 -> DIGIT SIX
103
+ '7' # 0x37 -> DIGIT SEVEN
104
+ '8' # 0x38 -> DIGIT EIGHT
105
+ '9' # 0x39 -> DIGIT NINE
106
+ ':' # 0x3A -> COLON
107
+ ';' # 0x3B -> SEMICOLON
108
+ '<' # 0x3C -> LESS-THAN SIGN
109
+ '=' # 0x3D -> EQUALS SIGN
110
+ '>' # 0x3E -> GREATER-THAN SIGN
111
+ '?' # 0x3F -> QUESTION MARK
112
+ '@' # 0x40 -> COMMERCIAL AT
113
+ 'A' # 0x41 -> LATIN CAPITAL LETTER A
114
+ 'B' # 0x42 -> LATIN CAPITAL LETTER B
115
+ 'C' # 0x43 -> LATIN CAPITAL LETTER C
116
+ 'D' # 0x44 -> LATIN CAPITAL LETTER D
117
+ 'E' # 0x45 -> LATIN CAPITAL LETTER E
118
+ 'F' # 0x46 -> LATIN CAPITAL LETTER F
119
+ 'G' # 0x47 -> LATIN CAPITAL LETTER G
120
+ 'H' # 0x48 -> LATIN CAPITAL LETTER H
121
+ 'I' # 0x49 -> LATIN CAPITAL LETTER I
122
+ 'J' # 0x4A -> LATIN CAPITAL LETTER J
123
+ 'K' # 0x4B -> LATIN CAPITAL LETTER K
124
+ 'L' # 0x4C -> LATIN CAPITAL LETTER L
125
+ 'M' # 0x4D -> LATIN CAPITAL LETTER M
126
+ 'N' # 0x4E -> LATIN CAPITAL LETTER N
127
+ 'O' # 0x4F -> LATIN CAPITAL LETTER O
128
+ 'P' # 0x50 -> LATIN CAPITAL LETTER P
129
+ 'Q' # 0x51 -> LATIN CAPITAL LETTER Q
130
+ 'R' # 0x52 -> LATIN CAPITAL LETTER R
131
+ 'S' # 0x53 -> LATIN CAPITAL LETTER S
132
+ 'T' # 0x54 -> LATIN CAPITAL LETTER T
133
+ 'U' # 0x55 -> LATIN CAPITAL LETTER U
134
+ 'V' # 0x56 -> LATIN CAPITAL LETTER V
135
+ 'W' # 0x57 -> LATIN CAPITAL LETTER W
136
+ 'X' # 0x58 -> LATIN CAPITAL LETTER X
137
+ 'Y' # 0x59 -> LATIN CAPITAL LETTER Y
138
+ 'Z' # 0x5A -> LATIN CAPITAL LETTER Z
139
+ '[' # 0x5B -> LEFT SQUARE BRACKET
140
+ '\\' # 0x5C -> REVERSE SOLIDUS
141
+ ']' # 0x5D -> RIGHT SQUARE BRACKET
142
+ '^' # 0x5E -> CIRCUMFLEX ACCENT
143
+ '_' # 0x5F -> LOW LINE
144
+ '`' # 0x60 -> GRAVE ACCENT
145
+ 'a' # 0x61 -> LATIN SMALL LETTER A
146
+ 'b' # 0x62 -> LATIN SMALL LETTER B
147
+ 'c' # 0x63 -> LATIN SMALL LETTER C
148
+ 'd' # 0x64 -> LATIN SMALL LETTER D
149
+ 'e' # 0x65 -> LATIN SMALL LETTER E
150
+ 'f' # 0x66 -> LATIN SMALL LETTER F
151
+ 'g' # 0x67 -> LATIN SMALL LETTER G
152
+ 'h' # 0x68 -> LATIN SMALL LETTER H
153
+ 'i' # 0x69 -> LATIN SMALL LETTER I
154
+ 'j' # 0x6A -> LATIN SMALL LETTER J
155
+ 'k' # 0x6B -> LATIN SMALL LETTER K
156
+ 'l' # 0x6C -> LATIN SMALL LETTER L
157
+ 'm' # 0x6D -> LATIN SMALL LETTER M
158
+ 'n' # 0x6E -> LATIN SMALL LETTER N
159
+ 'o' # 0x6F -> LATIN SMALL LETTER O
160
+ 'p' # 0x70 -> LATIN SMALL LETTER P
161
+ 'q' # 0x71 -> LATIN SMALL LETTER Q
162
+ 'r' # 0x72 -> LATIN SMALL LETTER R
163
+ 's' # 0x73 -> LATIN SMALL LETTER S
164
+ 't' # 0x74 -> LATIN SMALL LETTER T
165
+ 'u' # 0x75 -> LATIN SMALL LETTER U
166
+ 'v' # 0x76 -> LATIN SMALL LETTER V
167
+ 'w' # 0x77 -> LATIN SMALL LETTER W
168
+ 'x' # 0x78 -> LATIN SMALL LETTER X
169
+ 'y' # 0x79 -> LATIN SMALL LETTER Y
170
+ 'z' # 0x7A -> LATIN SMALL LETTER Z
171
+ '{' # 0x7B -> LEFT CURLY BRACKET
172
+ '|' # 0x7C -> VERTICAL LINE
173
+ '}' # 0x7D -> RIGHT CURLY BRACKET
174
+ '~' # 0x7E -> TILDE
175
+ '\x7f' # 0x7F -> DELETE
176
+ '\x80' # 0x80 -> <control>
177
+ '\x81' # 0x81 -> <control>
178
+ '\x82' # 0x82 -> <control>
179
+ '\x83' # 0x83 -> <control>
180
+ '\x84' # 0x84 -> <control>
181
+ '\x85' # 0x85 -> <control>
182
+ '\x86' # 0x86 -> <control>
183
+ '\x87' # 0x87 -> <control>
184
+ '\x88' # 0x88 -> <control>
185
+ '\x89' # 0x89 -> <control>
186
+ '\x8a' # 0x8A -> <control>
187
+ '\x8b' # 0x8B -> <control>
188
+ '\x8c' # 0x8C -> <control>
189
+ '\x8d' # 0x8D -> <control>
190
+ '\x8e' # 0x8E -> <control>
191
+ '\x8f' # 0x8F -> <control>
192
+ '\x90' # 0x90 -> <control>
193
+ '\x91' # 0x91 -> <control>
194
+ '\x92' # 0x92 -> <control>
195
+ '\x93' # 0x93 -> <control>
196
+ '\x94' # 0x94 -> <control>
197
+ '\x95' # 0x95 -> <control>
198
+ '\x96' # 0x96 -> <control>
199
+ '\x97' # 0x97 -> <control>
200
+ '\x98' # 0x98 -> <control>
201
+ '\x99' # 0x99 -> <control>
202
+ '\x9a' # 0x9A -> <control>
203
+ '\x9b' # 0x9B -> <control>
204
+ '\x9c' # 0x9C -> <control>
205
+ '\x9d' # 0x9D -> <control>
206
+ '\x9e' # 0x9E -> <control>
207
+ '\x9f' # 0x9F -> <control>
208
+ '\xa0' # 0xA0 -> NO-BREAK SPACE
209
+ '\u06f0' # 0xA1 -> EXTENDED ARABIC-INDIC DIGIT ZERO
210
+ '\u06f1' # 0xA2 -> EXTENDED ARABIC-INDIC DIGIT ONE
211
+ '\u06f2' # 0xA3 -> EXTENDED ARABIC-INDIC DIGIT TWO
212
+ '\u06f3' # 0xA4 -> EXTENDED ARABIC-INDIC DIGIT THREE
213
+ '\u06f4' # 0xA5 -> EXTENDED ARABIC-INDIC DIGIT FOUR
214
+ '\u06f5' # 0xA6 -> EXTENDED ARABIC-INDIC DIGIT FIVE
215
+ '\u06f6' # 0xA7 -> EXTENDED ARABIC-INDIC DIGIT SIX
216
+ '\u06f7' # 0xA8 -> EXTENDED ARABIC-INDIC DIGIT SEVEN
217
+ '\u06f8' # 0xA9 -> EXTENDED ARABIC-INDIC DIGIT EIGHT
218
+ '\u06f9' # 0xAA -> EXTENDED ARABIC-INDIC DIGIT NINE
219
+ '\u060c' # 0xAB -> ARABIC COMMA
220
+ '\u061b' # 0xAC -> ARABIC SEMICOLON
221
+ '\xad' # 0xAD -> SOFT HYPHEN
222
+ '\u061f' # 0xAE -> ARABIC QUESTION MARK
223
+ '\ufe81' # 0xAF -> ARABIC LETTER ALEF WITH MADDA ABOVE ISOLATED FORM
224
+ '\ufe8d' # 0xB0 -> ARABIC LETTER ALEF ISOLATED FORM
225
+ '\ufe8e' # 0xB1 -> ARABIC LETTER ALEF FINAL FORM
226
+ '\ufe8e' # 0xB2 -> ARABIC LETTER ALEF FINAL FORM
227
+ '\ufe8f' # 0xB3 -> ARABIC LETTER BEH ISOLATED FORM
228
+ '\ufe91' # 0xB4 -> ARABIC LETTER BEH INITIAL FORM
229
+ '\ufb56' # 0xB5 -> ARABIC LETTER PEH ISOLATED FORM
230
+ '\ufb58' # 0xB6 -> ARABIC LETTER PEH INITIAL FORM
231
+ '\ufe93' # 0xB7 -> ARABIC LETTER TEH MARBUTA ISOLATED FORM
232
+ '\ufe95' # 0xB8 -> ARABIC LETTER TEH ISOLATED FORM
233
+ '\ufe97' # 0xB9 -> ARABIC LETTER TEH INITIAL FORM
234
+ '\ufb66' # 0xBA -> ARABIC LETTER TTEH ISOLATED FORM
235
+ '\ufb68' # 0xBB -> ARABIC LETTER TTEH INITIAL FORM
236
+ '\ufe99' # 0xBC -> ARABIC LETTER THEH ISOLATED FORM
237
+ '\ufe9b' # 0xBD -> ARABIC LETTER THEH INITIAL FORM
238
+ '\ufe9d' # 0xBE -> ARABIC LETTER JEEM ISOLATED FORM
239
+ '\ufe9f' # 0xBF -> ARABIC LETTER JEEM INITIAL FORM
240
+ '\ufb7a' # 0xC0 -> ARABIC LETTER TCHEH ISOLATED FORM
241
+ '\ufb7c' # 0xC1 -> ARABIC LETTER TCHEH INITIAL FORM
242
+ '\ufea1' # 0xC2 -> ARABIC LETTER HAH ISOLATED FORM
243
+ '\ufea3' # 0xC3 -> ARABIC LETTER HAH INITIAL FORM
244
+ '\ufea5' # 0xC4 -> ARABIC LETTER KHAH ISOLATED FORM
245
+ '\ufea7' # 0xC5 -> ARABIC LETTER KHAH INITIAL FORM
246
+ '\ufea9' # 0xC6 -> ARABIC LETTER DAL ISOLATED FORM
247
+ '\ufb84' # 0xC7 -> ARABIC LETTER DAHAL ISOLATED FORMN
248
+ '\ufeab' # 0xC8 -> ARABIC LETTER THAL ISOLATED FORM
249
+ '\ufead' # 0xC9 -> ARABIC LETTER REH ISOLATED FORM
250
+ '\ufb8c' # 0xCA -> ARABIC LETTER RREH ISOLATED FORM
251
+ '\ufeaf' # 0xCB -> ARABIC LETTER ZAIN ISOLATED FORM
252
+ '\ufb8a' # 0xCC -> ARABIC LETTER JEH ISOLATED FORM
253
+ '\ufeb1' # 0xCD -> ARABIC LETTER SEEN ISOLATED FORM
254
+ '\ufeb3' # 0xCE -> ARABIC LETTER SEEN INITIAL FORM
255
+ '\ufeb5' # 0xCF -> ARABIC LETTER SHEEN ISOLATED FORM
256
+ '\ufeb7' # 0xD0 -> ARABIC LETTER SHEEN INITIAL FORM
257
+ '\ufeb9' # 0xD1 -> ARABIC LETTER SAD ISOLATED FORM
258
+ '\ufebb' # 0xD2 -> ARABIC LETTER SAD INITIAL FORM
259
+ '\ufebd' # 0xD3 -> ARABIC LETTER DAD ISOLATED FORM
260
+ '\ufebf' # 0xD4 -> ARABIC LETTER DAD INITIAL FORM
261
+ '\ufec1' # 0xD5 -> ARABIC LETTER TAH ISOLATED FORM
262
+ '\ufec5' # 0xD6 -> ARABIC LETTER ZAH ISOLATED FORM
263
+ '\ufec9' # 0xD7 -> ARABIC LETTER AIN ISOLATED FORM
264
+ '\ufeca' # 0xD8 -> ARABIC LETTER AIN FINAL FORM
265
+ '\ufecb' # 0xD9 -> ARABIC LETTER AIN INITIAL FORM
266
+ '\ufecc' # 0xDA -> ARABIC LETTER AIN MEDIAL FORM
267
+ '\ufecd' # 0xDB -> ARABIC LETTER GHAIN ISOLATED FORM
268
+ '\ufece' # 0xDC -> ARABIC LETTER GHAIN FINAL FORM
269
+ '\ufecf' # 0xDD -> ARABIC LETTER GHAIN INITIAL FORM
270
+ '\ufed0' # 0xDE -> ARABIC LETTER GHAIN MEDIAL FORM
271
+ '\ufed1' # 0xDF -> ARABIC LETTER FEH ISOLATED FORM
272
+ '\ufed3' # 0xE0 -> ARABIC LETTER FEH INITIAL FORM
273
+ '\ufed5' # 0xE1 -> ARABIC LETTER QAF ISOLATED FORM
274
+ '\ufed7' # 0xE2 -> ARABIC LETTER QAF INITIAL FORM
275
+ '\ufed9' # 0xE3 -> ARABIC LETTER KAF ISOLATED FORM
276
+ '\ufedb' # 0xE4 -> ARABIC LETTER KAF INITIAL FORM
277
+ '\ufb92' # 0xE5 -> ARABIC LETTER GAF ISOLATED FORM
278
+ '\ufb94' # 0xE6 -> ARABIC LETTER GAF INITIAL FORM
279
+ '\ufedd' # 0xE7 -> ARABIC LETTER LAM ISOLATED FORM
280
+ '\ufedf' # 0xE8 -> ARABIC LETTER LAM INITIAL FORM
281
+ '\ufee0' # 0xE9 -> ARABIC LETTER LAM MEDIAL FORM
282
+ '\ufee1' # 0xEA -> ARABIC LETTER MEEM ISOLATED FORM
283
+ '\ufee3' # 0xEB -> ARABIC LETTER MEEM INITIAL FORM
284
+ '\ufb9e' # 0xEC -> ARABIC LETTER NOON GHUNNA ISOLATED FORM
285
+ '\ufee5' # 0xED -> ARABIC LETTER NOON ISOLATED FORM
286
+ '\ufee7' # 0xEE -> ARABIC LETTER NOON INITIAL FORM
287
+ '\ufe85' # 0xEF -> ARABIC LETTER WAW WITH HAMZA ABOVE ISOLATED FORM
288
+ '\ufeed' # 0xF0 -> ARABIC LETTER WAW ISOLATED FORM
289
+ '\ufba6' # 0xF1 -> ARABIC LETTER HEH GOAL ISOLATED FORM
290
+ '\ufba8' # 0xF2 -> ARABIC LETTER HEH GOAL INITIAL FORM
291
+ '\ufba9' # 0xF3 -> ARABIC LETTER HEH GOAL MEDIAL FORM
292
+ '\ufbaa' # 0xF4 -> ARABIC LETTER HEH DOACHASHMEE ISOLATED FORM
293
+ '\ufe80' # 0xF5 -> ARABIC LETTER HAMZA ISOLATED FORM
294
+ '\ufe89' # 0xF6 -> ARABIC LETTER YEH WITH HAMZA ABOVE ISOLATED FORM
295
+ '\ufe8a' # 0xF7 -> ARABIC LETTER YEH WITH HAMZA ABOVE FINAL FORM
296
+ '\ufe8b' # 0xF8 -> ARABIC LETTER YEH WITH HAMZA ABOVE INITIAL FORM
297
+ '\ufef1' # 0xF9 -> ARABIC LETTER YEH ISOLATED FORM
298
+ '\ufef2' # 0xFA -> ARABIC LETTER YEH FINAL FORM
299
+ '\ufef3' # 0xFB -> ARABIC LETTER YEH INITIAL FORM
300
+ '\ufbb0' # 0xFC -> ARABIC LETTER YEH BARREE WITH HAMZA ABOVE ISOLATED FORM
301
+ '\ufbae' # 0xFD -> ARABIC LETTER YEH BARREE ISOLATED FORM
302
+ '\ufe7c' # 0xFE -> ARABIC SHADDA ISOLATED FORM
303
+ '\ufe7d' # 0xFF -> ARABIC SHADDA MEDIAL FORM
304
+ )
305
+
306
+ ### Encoding table
307
+ encoding_table=codecs.charmap_build(decoding_table)
evalkit_cambrian/lib/python3.10/encodings/cp949.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # cp949.py: Python Unicode Codec for CP949
3
+ #
4
+ # Written by Hye-Shik Chang <[email protected]>
5
+ #
6
+
7
+ import _codecs_kr, codecs
8
+ import _multibytecodec as mbc
9
+
10
+ codec = _codecs_kr.getcodec('cp949')
11
+
12
+ class Codec(codecs.Codec):
13
+ encode = codec.encode
14
+ decode = codec.decode
15
+
16
+ class IncrementalEncoder(mbc.MultibyteIncrementalEncoder,
17
+ codecs.IncrementalEncoder):
18
+ codec = codec
19
+
20
+ class IncrementalDecoder(mbc.MultibyteIncrementalDecoder,
21
+ codecs.IncrementalDecoder):
22
+ codec = codec
23
+
24
+ class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader):
25
+ codec = codec
26
+
27
+ class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
28
+ codec = codec
29
+
30
+ def getregentry():
31
+ return codecs.CodecInfo(
32
+ name='cp949',
33
+ encode=Codec().encode,
34
+ decode=Codec().decode,
35
+ incrementalencoder=IncrementalEncoder,
36
+ incrementaldecoder=IncrementalDecoder,
37
+ streamreader=StreamReader,
38
+ streamwriter=StreamWriter,
39
+ )
evalkit_cambrian/lib/python3.10/encodings/hp_roman8.py ADDED
@@ -0,0 +1,314 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec generated from 'hp_roman8.txt' with gencodec.py.
2
+
3
+ Based on data from ftp://dkuug.dk/i18n/charmaps/HP-ROMAN8 (Keld Simonsen)
4
+
5
+ Original source: LaserJet IIP Printer User's Manual HP part no
6
+ 33471-90901, Hewlet-Packard, June 1989.
7
+
8
+ (Used with permission)
9
+
10
+ """#"
11
+
12
+ import codecs
13
+
14
+ ### Codec APIs
15
+
16
+ class Codec(codecs.Codec):
17
+
18
+ def encode(self,input,errors='strict'):
19
+ return codecs.charmap_encode(input,errors,encoding_table)
20
+
21
+ def decode(self,input,errors='strict'):
22
+ return codecs.charmap_decode(input,errors,decoding_table)
23
+
24
+ class IncrementalEncoder(codecs.IncrementalEncoder):
25
+ def encode(self, input, final=False):
26
+ return codecs.charmap_encode(input,self.errors,encoding_table)[0]
27
+
28
+ class IncrementalDecoder(codecs.IncrementalDecoder):
29
+ def decode(self, input, final=False):
30
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
31
+
32
+ class StreamWriter(Codec,codecs.StreamWriter):
33
+ pass
34
+
35
+ class StreamReader(Codec,codecs.StreamReader):
36
+ pass
37
+
38
+ ### encodings module API
39
+
40
+ def getregentry():
41
+ return codecs.CodecInfo(
42
+ name='hp-roman8',
43
+ encode=Codec().encode,
44
+ decode=Codec().decode,
45
+ incrementalencoder=IncrementalEncoder,
46
+ incrementaldecoder=IncrementalDecoder,
47
+ streamwriter=StreamWriter,
48
+ streamreader=StreamReader,
49
+ )
50
+
51
+
52
+ ### Decoding Table
53
+
54
+ decoding_table = (
55
+ '\x00' # 0x00 -> NULL
56
+ '\x01' # 0x01 -> START OF HEADING
57
+ '\x02' # 0x02 -> START OF TEXT
58
+ '\x03' # 0x03 -> END OF TEXT
59
+ '\x04' # 0x04 -> END OF TRANSMISSION
60
+ '\x05' # 0x05 -> ENQUIRY
61
+ '\x06' # 0x06 -> ACKNOWLEDGE
62
+ '\x07' # 0x07 -> BELL
63
+ '\x08' # 0x08 -> BACKSPACE
64
+ '\t' # 0x09 -> HORIZONTAL TABULATION
65
+ '\n' # 0x0A -> LINE FEED
66
+ '\x0b' # 0x0B -> VERTICAL TABULATION
67
+ '\x0c' # 0x0C -> FORM FEED
68
+ '\r' # 0x0D -> CARRIAGE RETURN
69
+ '\x0e' # 0x0E -> SHIFT OUT
70
+ '\x0f' # 0x0F -> SHIFT IN
71
+ '\x10' # 0x10 -> DATA LINK ESCAPE
72
+ '\x11' # 0x11 -> DEVICE CONTROL ONE
73
+ '\x12' # 0x12 -> DEVICE CONTROL TWO
74
+ '\x13' # 0x13 -> DEVICE CONTROL THREE
75
+ '\x14' # 0x14 -> DEVICE CONTROL FOUR
76
+ '\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE
77
+ '\x16' # 0x16 -> SYNCHRONOUS IDLE
78
+ '\x17' # 0x17 -> END OF TRANSMISSION BLOCK
79
+ '\x18' # 0x18 -> CANCEL
80
+ '\x19' # 0x19 -> END OF MEDIUM
81
+ '\x1a' # 0x1A -> SUBSTITUTE
82
+ '\x1b' # 0x1B -> ESCAPE
83
+ '\x1c' # 0x1C -> FILE SEPARATOR
84
+ '\x1d' # 0x1D -> GROUP SEPARATOR
85
+ '\x1e' # 0x1E -> RECORD SEPARATOR
86
+ '\x1f' # 0x1F -> UNIT SEPARATOR
87
+ ' ' # 0x20 -> SPACE
88
+ '!' # 0x21 -> EXCLAMATION MARK
89
+ '"' # 0x22 -> QUOTATION MARK
90
+ '#' # 0x23 -> NUMBER SIGN
91
+ '$' # 0x24 -> DOLLAR SIGN
92
+ '%' # 0x25 -> PERCENT SIGN
93
+ '&' # 0x26 -> AMPERSAND
94
+ "'" # 0x27 -> APOSTROPHE
95
+ '(' # 0x28 -> LEFT PARENTHESIS
96
+ ')' # 0x29 -> RIGHT PARENTHESIS
97
+ '*' # 0x2A -> ASTERISK
98
+ '+' # 0x2B -> PLUS SIGN
99
+ ',' # 0x2C -> COMMA
100
+ '-' # 0x2D -> HYPHEN-MINUS
101
+ '.' # 0x2E -> FULL STOP
102
+ '/' # 0x2F -> SOLIDUS
103
+ '0' # 0x30 -> DIGIT ZERO
104
+ '1' # 0x31 -> DIGIT ONE
105
+ '2' # 0x32 -> DIGIT TWO
106
+ '3' # 0x33 -> DIGIT THREE
107
+ '4' # 0x34 -> DIGIT FOUR
108
+ '5' # 0x35 -> DIGIT FIVE
109
+ '6' # 0x36 -> DIGIT SIX
110
+ '7' # 0x37 -> DIGIT SEVEN
111
+ '8' # 0x38 -> DIGIT EIGHT
112
+ '9' # 0x39 -> DIGIT NINE
113
+ ':' # 0x3A -> COLON
114
+ ';' # 0x3B -> SEMICOLON
115
+ '<' # 0x3C -> LESS-THAN SIGN
116
+ '=' # 0x3D -> EQUALS SIGN
117
+ '>' # 0x3E -> GREATER-THAN SIGN
118
+ '?' # 0x3F -> QUESTION MARK
119
+ '@' # 0x40 -> COMMERCIAL AT
120
+ 'A' # 0x41 -> LATIN CAPITAL LETTER A
121
+ 'B' # 0x42 -> LATIN CAPITAL LETTER B
122
+ 'C' # 0x43 -> LATIN CAPITAL LETTER C
123
+ 'D' # 0x44 -> LATIN CAPITAL LETTER D
124
+ 'E' # 0x45 -> LATIN CAPITAL LETTER E
125
+ 'F' # 0x46 -> LATIN CAPITAL LETTER F
126
+ 'G' # 0x47 -> LATIN CAPITAL LETTER G
127
+ 'H' # 0x48 -> LATIN CAPITAL LETTER H
128
+ 'I' # 0x49 -> LATIN CAPITAL LETTER I
129
+ 'J' # 0x4A -> LATIN CAPITAL LETTER J
130
+ 'K' # 0x4B -> LATIN CAPITAL LETTER K
131
+ 'L' # 0x4C -> LATIN CAPITAL LETTER L
132
+ 'M' # 0x4D -> LATIN CAPITAL LETTER M
133
+ 'N' # 0x4E -> LATIN CAPITAL LETTER N
134
+ 'O' # 0x4F -> LATIN CAPITAL LETTER O
135
+ 'P' # 0x50 -> LATIN CAPITAL LETTER P
136
+ 'Q' # 0x51 -> LATIN CAPITAL LETTER Q
137
+ 'R' # 0x52 -> LATIN CAPITAL LETTER R
138
+ 'S' # 0x53 -> LATIN CAPITAL LETTER S
139
+ 'T' # 0x54 -> LATIN CAPITAL LETTER T
140
+ 'U' # 0x55 -> LATIN CAPITAL LETTER U
141
+ 'V' # 0x56 -> LATIN CAPITAL LETTER V
142
+ 'W' # 0x57 -> LATIN CAPITAL LETTER W
143
+ 'X' # 0x58 -> LATIN CAPITAL LETTER X
144
+ 'Y' # 0x59 -> LATIN CAPITAL LETTER Y
145
+ 'Z' # 0x5A -> LATIN CAPITAL LETTER Z
146
+ '[' # 0x5B -> LEFT SQUARE BRACKET
147
+ '\\' # 0x5C -> REVERSE SOLIDUS
148
+ ']' # 0x5D -> RIGHT SQUARE BRACKET
149
+ '^' # 0x5E -> CIRCUMFLEX ACCENT
150
+ '_' # 0x5F -> LOW LINE
151
+ '`' # 0x60 -> GRAVE ACCENT
152
+ 'a' # 0x61 -> LATIN SMALL LETTER A
153
+ 'b' # 0x62 -> LATIN SMALL LETTER B
154
+ 'c' # 0x63 -> LATIN SMALL LETTER C
155
+ 'd' # 0x64 -> LATIN SMALL LETTER D
156
+ 'e' # 0x65 -> LATIN SMALL LETTER E
157
+ 'f' # 0x66 -> LATIN SMALL LETTER F
158
+ 'g' # 0x67 -> LATIN SMALL LETTER G
159
+ 'h' # 0x68 -> LATIN SMALL LETTER H
160
+ 'i' # 0x69 -> LATIN SMALL LETTER I
161
+ 'j' # 0x6A -> LATIN SMALL LETTER J
162
+ 'k' # 0x6B -> LATIN SMALL LETTER K
163
+ 'l' # 0x6C -> LATIN SMALL LETTER L
164
+ 'm' # 0x6D -> LATIN SMALL LETTER M
165
+ 'n' # 0x6E -> LATIN SMALL LETTER N
166
+ 'o' # 0x6F -> LATIN SMALL LETTER O
167
+ 'p' # 0x70 -> LATIN SMALL LETTER P
168
+ 'q' # 0x71 -> LATIN SMALL LETTER Q
169
+ 'r' # 0x72 -> LATIN SMALL LETTER R
170
+ 's' # 0x73 -> LATIN SMALL LETTER S
171
+ 't' # 0x74 -> LATIN SMALL LETTER T
172
+ 'u' # 0x75 -> LATIN SMALL LETTER U
173
+ 'v' # 0x76 -> LATIN SMALL LETTER V
174
+ 'w' # 0x77 -> LATIN SMALL LETTER W
175
+ 'x' # 0x78 -> LATIN SMALL LETTER X
176
+ 'y' # 0x79 -> LATIN SMALL LETTER Y
177
+ 'z' # 0x7A -> LATIN SMALL LETTER Z
178
+ '{' # 0x7B -> LEFT CURLY BRACKET
179
+ '|' # 0x7C -> VERTICAL LINE
180
+ '}' # 0x7D -> RIGHT CURLY BRACKET
181
+ '~' # 0x7E -> TILDE
182
+ '\x7f' # 0x7F -> DELETE
183
+ '\x80' # 0x80 -> <control>
184
+ '\x81' # 0x81 -> <control>
185
+ '\x82' # 0x82 -> <control>
186
+ '\x83' # 0x83 -> <control>
187
+ '\x84' # 0x84 -> <control>
188
+ '\x85' # 0x85 -> <control>
189
+ '\x86' # 0x86 -> <control>
190
+ '\x87' # 0x87 -> <control>
191
+ '\x88' # 0x88 -> <control>
192
+ '\x89' # 0x89 -> <control>
193
+ '\x8a' # 0x8A -> <control>
194
+ '\x8b' # 0x8B -> <control>
195
+ '\x8c' # 0x8C -> <control>
196
+ '\x8d' # 0x8D -> <control>
197
+ '\x8e' # 0x8E -> <control>
198
+ '\x8f' # 0x8F -> <control>
199
+ '\x90' # 0x90 -> <control>
200
+ '\x91' # 0x91 -> <control>
201
+ '\x92' # 0x92 -> <control>
202
+ '\x93' # 0x93 -> <control>
203
+ '\x94' # 0x94 -> <control>
204
+ '\x95' # 0x95 -> <control>
205
+ '\x96' # 0x96 -> <control>
206
+ '\x97' # 0x97 -> <control>
207
+ '\x98' # 0x98 -> <control>
208
+ '\x99' # 0x99 -> <control>
209
+ '\x9a' # 0x9A -> <control>
210
+ '\x9b' # 0x9B -> <control>
211
+ '\x9c' # 0x9C -> <control>
212
+ '\x9d' # 0x9D -> <control>
213
+ '\x9e' # 0x9E -> <control>
214
+ '\x9f' # 0x9F -> <control>
215
+ '\xa0' # 0xA0 -> NO-BREAK SPACE
216
+ '\xc0' # 0xA1 -> LATIN CAPITAL LETTER A WITH GRAVE
217
+ '\xc2' # 0xA2 -> LATIN CAPITAL LETTER A WITH CIRCUMFLEX
218
+ '\xc8' # 0xA3 -> LATIN CAPITAL LETTER E WITH GRAVE
219
+ '\xca' # 0xA4 -> LATIN CAPITAL LETTER E WITH CIRCUMFLEX
220
+ '\xcb' # 0xA5 -> LATIN CAPITAL LETTER E WITH DIAERESIS
221
+ '\xce' # 0xA6 -> LATIN CAPITAL LETTER I WITH CIRCUMFLEX
222
+ '\xcf' # 0xA7 -> LATIN CAPITAL LETTER I WITH DIAERESIS
223
+ '\xb4' # 0xA8 -> ACUTE ACCENT
224
+ '\u02cb' # 0xA9 -> MODIFIER LETTER GRAVE ACCENT (MANDARIN CHINESE FOURTH TONE)
225
+ '\u02c6' # 0xAA -> MODIFIER LETTER CIRCUMFLEX ACCENT
226
+ '\xa8' # 0xAB -> DIAERESIS
227
+ '\u02dc' # 0xAC -> SMALL TILDE
228
+ '\xd9' # 0xAD -> LATIN CAPITAL LETTER U WITH GRAVE
229
+ '\xdb' # 0xAE -> LATIN CAPITAL LETTER U WITH CIRCUMFLEX
230
+ '\u20a4' # 0xAF -> LIRA SIGN
231
+ '\xaf' # 0xB0 -> MACRON
232
+ '\xdd' # 0xB1 -> LATIN CAPITAL LETTER Y WITH ACUTE
233
+ '\xfd' # 0xB2 -> LATIN SMALL LETTER Y WITH ACUTE
234
+ '\xb0' # 0xB3 -> DEGREE SIGN
235
+ '\xc7' # 0xB4 -> LATIN CAPITAL LETTER C WITH CEDILLA
236
+ '\xe7' # 0xB5 -> LATIN SMALL LETTER C WITH CEDILLA
237
+ '\xd1' # 0xB6 -> LATIN CAPITAL LETTER N WITH TILDE
238
+ '\xf1' # 0xB7 -> LATIN SMALL LETTER N WITH TILDE
239
+ '\xa1' # 0xB8 -> INVERTED EXCLAMATION MARK
240
+ '\xbf' # 0xB9 -> INVERTED QUESTION MARK
241
+ '\xa4' # 0xBA -> CURRENCY SIGN
242
+ '\xa3' # 0xBB -> POUND SIGN
243
+ '\xa5' # 0xBC -> YEN SIGN
244
+ '\xa7' # 0xBD -> SECTION SIGN
245
+ '\u0192' # 0xBE -> LATIN SMALL LETTER F WITH HOOK
246
+ '\xa2' # 0xBF -> CENT SIGN
247
+ '\xe2' # 0xC0 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
248
+ '\xea' # 0xC1 -> LATIN SMALL LETTER E WITH CIRCUMFLEX
249
+ '\xf4' # 0xC2 -> LATIN SMALL LETTER O WITH CIRCUMFLEX
250
+ '\xfb' # 0xC3 -> LATIN SMALL LETTER U WITH CIRCUMFLEX
251
+ '\xe1' # 0xC4 -> LATIN SMALL LETTER A WITH ACUTE
252
+ '\xe9' # 0xC5 -> LATIN SMALL LETTER E WITH ACUTE
253
+ '\xf3' # 0xC6 -> LATIN SMALL LETTER O WITH ACUTE
254
+ '\xfa' # 0xC7 -> LATIN SMALL LETTER U WITH ACUTE
255
+ '\xe0' # 0xC8 -> LATIN SMALL LETTER A WITH GRAVE
256
+ '\xe8' # 0xC9 -> LATIN SMALL LETTER E WITH GRAVE
257
+ '\xf2' # 0xCA -> LATIN SMALL LETTER O WITH GRAVE
258
+ '\xf9' # 0xCB -> LATIN SMALL LETTER U WITH GRAVE
259
+ '\xe4' # 0xCC -> LATIN SMALL LETTER A WITH DIAERESIS
260
+ '\xeb' # 0xCD -> LATIN SMALL LETTER E WITH DIAERESIS
261
+ '\xf6' # 0xCE -> LATIN SMALL LETTER O WITH DIAERESIS
262
+ '\xfc' # 0xCF -> LATIN SMALL LETTER U WITH DIAERESIS
263
+ '\xc5' # 0xD0 -> LATIN CAPITAL LETTER A WITH RING ABOVE
264
+ '\xee' # 0xD1 -> LATIN SMALL LETTER I WITH CIRCUMFLEX
265
+ '\xd8' # 0xD2 -> LATIN CAPITAL LETTER O WITH STROKE
266
+ '\xc6' # 0xD3 -> LATIN CAPITAL LETTER AE
267
+ '\xe5' # 0xD4 -> LATIN SMALL LETTER A WITH RING ABOVE
268
+ '\xed' # 0xD5 -> LATIN SMALL LETTER I WITH ACUTE
269
+ '\xf8' # 0xD6 -> LATIN SMALL LETTER O WITH STROKE
270
+ '\xe6' # 0xD7 -> LATIN SMALL LETTER AE
271
+ '\xc4' # 0xD8 -> LATIN CAPITAL LETTER A WITH DIAERESIS
272
+ '\xec' # 0xD9 -> LATIN SMALL LETTER I WITH GRAVE
273
+ '\xd6' # 0xDA -> LATIN CAPITAL LETTER O WITH DIAERESIS
274
+ '\xdc' # 0xDB -> LATIN CAPITAL LETTER U WITH DIAERESIS
275
+ '\xc9' # 0xDC -> LATIN CAPITAL LETTER E WITH ACUTE
276
+ '\xef' # 0xDD -> LATIN SMALL LETTER I WITH DIAERESIS
277
+ '\xdf' # 0xDE -> LATIN SMALL LETTER SHARP S (GERMAN)
278
+ '\xd4' # 0xDF -> LATIN CAPITAL LETTER O WITH CIRCUMFLEX
279
+ '\xc1' # 0xE0 -> LATIN CAPITAL LETTER A WITH ACUTE
280
+ '\xc3' # 0xE1 -> LATIN CAPITAL LETTER A WITH TILDE
281
+ '\xe3' # 0xE2 -> LATIN SMALL LETTER A WITH TILDE
282
+ '\xd0' # 0xE3 -> LATIN CAPITAL LETTER ETH (ICELANDIC)
283
+ '\xf0' # 0xE4 -> LATIN SMALL LETTER ETH (ICELANDIC)
284
+ '\xcd' # 0xE5 -> LATIN CAPITAL LETTER I WITH ACUTE
285
+ '\xcc' # 0xE6 -> LATIN CAPITAL LETTER I WITH GRAVE
286
+ '\xd3' # 0xE7 -> LATIN CAPITAL LETTER O WITH ACUTE
287
+ '\xd2' # 0xE8 -> LATIN CAPITAL LETTER O WITH GRAVE
288
+ '\xd5' # 0xE9 -> LATIN CAPITAL LETTER O WITH TILDE
289
+ '\xf5' # 0xEA -> LATIN SMALL LETTER O WITH TILDE
290
+ '\u0160' # 0xEB -> LATIN CAPITAL LETTER S WITH CARON
291
+ '\u0161' # 0xEC -> LATIN SMALL LETTER S WITH CARON
292
+ '\xda' # 0xED -> LATIN CAPITAL LETTER U WITH ACUTE
293
+ '\u0178' # 0xEE -> LATIN CAPITAL LETTER Y WITH DIAERESIS
294
+ '\xff' # 0xEF -> LATIN SMALL LETTER Y WITH DIAERESIS
295
+ '\xde' # 0xF0 -> LATIN CAPITAL LETTER THORN (ICELANDIC)
296
+ '\xfe' # 0xF1 -> LATIN SMALL LETTER THORN (ICELANDIC)
297
+ '\xb7' # 0xF2 -> MIDDLE DOT
298
+ '\xb5' # 0xF3 -> MICRO SIGN
299
+ '\xb6' # 0xF4 -> PILCROW SIGN
300
+ '\xbe' # 0xF5 -> VULGAR FRACTION THREE QUARTERS
301
+ '\u2014' # 0xF6 -> EM DASH
302
+ '\xbc' # 0xF7 -> VULGAR FRACTION ONE QUARTER
303
+ '\xbd' # 0xF8 -> VULGAR FRACTION ONE HALF
304
+ '\xaa' # 0xF9 -> FEMININE ORDINAL INDICATOR
305
+ '\xba' # 0xFA -> MASCULINE ORDINAL INDICATOR
306
+ '\xab' # 0xFB -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
307
+ '\u25a0' # 0xFC -> BLACK SQUARE
308
+ '\xbb' # 0xFD -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
309
+ '\xb1' # 0xFE -> PLUS-MINUS SIGN
310
+ '\ufffe'
311
+ )
312
+
313
+ ### Encoding table
314
+ encoding_table=codecs.charmap_build(decoding_table)
evalkit_cambrian/lib/python3.10/encodings/iso2022_jp_1.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # iso2022_jp_1.py: Python Unicode Codec for ISO2022_JP_1
3
+ #
4
+ # Written by Hye-Shik Chang <[email protected]>
5
+ #
6
+
7
+ import _codecs_iso2022, codecs
8
+ import _multibytecodec as mbc
9
+
10
+ codec = _codecs_iso2022.getcodec('iso2022_jp_1')
11
+
12
+ class Codec(codecs.Codec):
13
+ encode = codec.encode
14
+ decode = codec.decode
15
+
16
+ class IncrementalEncoder(mbc.MultibyteIncrementalEncoder,
17
+ codecs.IncrementalEncoder):
18
+ codec = codec
19
+
20
+ class IncrementalDecoder(mbc.MultibyteIncrementalDecoder,
21
+ codecs.IncrementalDecoder):
22
+ codec = codec
23
+
24
+ class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader):
25
+ codec = codec
26
+
27
+ class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
28
+ codec = codec
29
+
30
+ def getregentry():
31
+ return codecs.CodecInfo(
32
+ name='iso2022_jp_1',
33
+ encode=Codec().encode,
34
+ decode=Codec().decode,
35
+ incrementalencoder=IncrementalEncoder,
36
+ incrementaldecoder=IncrementalDecoder,
37
+ streamreader=StreamReader,
38
+ streamwriter=StreamWriter,
39
+ )
evalkit_cambrian/lib/python3.10/encodings/iso2022_jp_2.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # iso2022_jp_2.py: Python Unicode Codec for ISO2022_JP_2
3
+ #
4
+ # Written by Hye-Shik Chang <[email protected]>
5
+ #
6
+
7
+ import _codecs_iso2022, codecs
8
+ import _multibytecodec as mbc
9
+
10
+ codec = _codecs_iso2022.getcodec('iso2022_jp_2')
11
+
12
+ class Codec(codecs.Codec):
13
+ encode = codec.encode
14
+ decode = codec.decode
15
+
16
+ class IncrementalEncoder(mbc.MultibyteIncrementalEncoder,
17
+ codecs.IncrementalEncoder):
18
+ codec = codec
19
+
20
+ class IncrementalDecoder(mbc.MultibyteIncrementalDecoder,
21
+ codecs.IncrementalDecoder):
22
+ codec = codec
23
+
24
+ class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader):
25
+ codec = codec
26
+
27
+ class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
28
+ codec = codec
29
+
30
+ def getregentry():
31
+ return codecs.CodecInfo(
32
+ name='iso2022_jp_2',
33
+ encode=Codec().encode,
34
+ decode=Codec().decode,
35
+ incrementalencoder=IncrementalEncoder,
36
+ incrementaldecoder=IncrementalDecoder,
37
+ streamreader=StreamReader,
38
+ streamwriter=StreamWriter,
39
+ )
evalkit_cambrian/lib/python3.10/encodings/iso8859_10.py ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec iso8859_10 generated from 'MAPPINGS/ISO8859/8859-10.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_table)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_table)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='iso8859-10',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+
45
+ ### Decoding Table
46
+
47
+ decoding_table = (
48
+ '\x00' # 0x00 -> NULL
49
+ '\x01' # 0x01 -> START OF HEADING
50
+ '\x02' # 0x02 -> START OF TEXT
51
+ '\x03' # 0x03 -> END OF TEXT
52
+ '\x04' # 0x04 -> END OF TRANSMISSION
53
+ '\x05' # 0x05 -> ENQUIRY
54
+ '\x06' # 0x06 -> ACKNOWLEDGE
55
+ '\x07' # 0x07 -> BELL
56
+ '\x08' # 0x08 -> BACKSPACE
57
+ '\t' # 0x09 -> HORIZONTAL TABULATION
58
+ '\n' # 0x0A -> LINE FEED
59
+ '\x0b' # 0x0B -> VERTICAL TABULATION
60
+ '\x0c' # 0x0C -> FORM FEED
61
+ '\r' # 0x0D -> CARRIAGE RETURN
62
+ '\x0e' # 0x0E -> SHIFT OUT
63
+ '\x0f' # 0x0F -> SHIFT IN
64
+ '\x10' # 0x10 -> DATA LINK ESCAPE
65
+ '\x11' # 0x11 -> DEVICE CONTROL ONE
66
+ '\x12' # 0x12 -> DEVICE CONTROL TWO
67
+ '\x13' # 0x13 -> DEVICE CONTROL THREE
68
+ '\x14' # 0x14 -> DEVICE CONTROL FOUR
69
+ '\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE
70
+ '\x16' # 0x16 -> SYNCHRONOUS IDLE
71
+ '\x17' # 0x17 -> END OF TRANSMISSION BLOCK
72
+ '\x18' # 0x18 -> CANCEL
73
+ '\x19' # 0x19 -> END OF MEDIUM
74
+ '\x1a' # 0x1A -> SUBSTITUTE
75
+ '\x1b' # 0x1B -> ESCAPE
76
+ '\x1c' # 0x1C -> FILE SEPARATOR
77
+ '\x1d' # 0x1D -> GROUP SEPARATOR
78
+ '\x1e' # 0x1E -> RECORD SEPARATOR
79
+ '\x1f' # 0x1F -> UNIT SEPARATOR
80
+ ' ' # 0x20 -> SPACE
81
+ '!' # 0x21 -> EXCLAMATION MARK
82
+ '"' # 0x22 -> QUOTATION MARK
83
+ '#' # 0x23 -> NUMBER SIGN
84
+ '$' # 0x24 -> DOLLAR SIGN
85
+ '%' # 0x25 -> PERCENT SIGN
86
+ '&' # 0x26 -> AMPERSAND
87
+ "'" # 0x27 -> APOSTROPHE
88
+ '(' # 0x28 -> LEFT PARENTHESIS
89
+ ')' # 0x29 -> RIGHT PARENTHESIS
90
+ '*' # 0x2A -> ASTERISK
91
+ '+' # 0x2B -> PLUS SIGN
92
+ ',' # 0x2C -> COMMA
93
+ '-' # 0x2D -> HYPHEN-MINUS
94
+ '.' # 0x2E -> FULL STOP
95
+ '/' # 0x2F -> SOLIDUS
96
+ '0' # 0x30 -> DIGIT ZERO
97
+ '1' # 0x31 -> DIGIT ONE
98
+ '2' # 0x32 -> DIGIT TWO
99
+ '3' # 0x33 -> DIGIT THREE
100
+ '4' # 0x34 -> DIGIT FOUR
101
+ '5' # 0x35 -> DIGIT FIVE
102
+ '6' # 0x36 -> DIGIT SIX
103
+ '7' # 0x37 -> DIGIT SEVEN
104
+ '8' # 0x38 -> DIGIT EIGHT
105
+ '9' # 0x39 -> DIGIT NINE
106
+ ':' # 0x3A -> COLON
107
+ ';' # 0x3B -> SEMICOLON
108
+ '<' # 0x3C -> LESS-THAN SIGN
109
+ '=' # 0x3D -> EQUALS SIGN
110
+ '>' # 0x3E -> GREATER-THAN SIGN
111
+ '?' # 0x3F -> QUESTION MARK
112
+ '@' # 0x40 -> COMMERCIAL AT
113
+ 'A' # 0x41 -> LATIN CAPITAL LETTER A
114
+ 'B' # 0x42 -> LATIN CAPITAL LETTER B
115
+ 'C' # 0x43 -> LATIN CAPITAL LETTER C
116
+ 'D' # 0x44 -> LATIN CAPITAL LETTER D
117
+ 'E' # 0x45 -> LATIN CAPITAL LETTER E
118
+ 'F' # 0x46 -> LATIN CAPITAL LETTER F
119
+ 'G' # 0x47 -> LATIN CAPITAL LETTER G
120
+ 'H' # 0x48 -> LATIN CAPITAL LETTER H
121
+ 'I' # 0x49 -> LATIN CAPITAL LETTER I
122
+ 'J' # 0x4A -> LATIN CAPITAL LETTER J
123
+ 'K' # 0x4B -> LATIN CAPITAL LETTER K
124
+ 'L' # 0x4C -> LATIN CAPITAL LETTER L
125
+ 'M' # 0x4D -> LATIN CAPITAL LETTER M
126
+ 'N' # 0x4E -> LATIN CAPITAL LETTER N
127
+ 'O' # 0x4F -> LATIN CAPITAL LETTER O
128
+ 'P' # 0x50 -> LATIN CAPITAL LETTER P
129
+ 'Q' # 0x51 -> LATIN CAPITAL LETTER Q
130
+ 'R' # 0x52 -> LATIN CAPITAL LETTER R
131
+ 'S' # 0x53 -> LATIN CAPITAL LETTER S
132
+ 'T' # 0x54 -> LATIN CAPITAL LETTER T
133
+ 'U' # 0x55 -> LATIN CAPITAL LETTER U
134
+ 'V' # 0x56 -> LATIN CAPITAL LETTER V
135
+ 'W' # 0x57 -> LATIN CAPITAL LETTER W
136
+ 'X' # 0x58 -> LATIN CAPITAL LETTER X
137
+ 'Y' # 0x59 -> LATIN CAPITAL LETTER Y
138
+ 'Z' # 0x5A -> LATIN CAPITAL LETTER Z
139
+ '[' # 0x5B -> LEFT SQUARE BRACKET
140
+ '\\' # 0x5C -> REVERSE SOLIDUS
141
+ ']' # 0x5D -> RIGHT SQUARE BRACKET
142
+ '^' # 0x5E -> CIRCUMFLEX ACCENT
143
+ '_' # 0x5F -> LOW LINE
144
+ '`' # 0x60 -> GRAVE ACCENT
145
+ 'a' # 0x61 -> LATIN SMALL LETTER A
146
+ 'b' # 0x62 -> LATIN SMALL LETTER B
147
+ 'c' # 0x63 -> LATIN SMALL LETTER C
148
+ 'd' # 0x64 -> LATIN SMALL LETTER D
149
+ 'e' # 0x65 -> LATIN SMALL LETTER E
150
+ 'f' # 0x66 -> LATIN SMALL LETTER F
151
+ 'g' # 0x67 -> LATIN SMALL LETTER G
152
+ 'h' # 0x68 -> LATIN SMALL LETTER H
153
+ 'i' # 0x69 -> LATIN SMALL LETTER I
154
+ 'j' # 0x6A -> LATIN SMALL LETTER J
155
+ 'k' # 0x6B -> LATIN SMALL LETTER K
156
+ 'l' # 0x6C -> LATIN SMALL LETTER L
157
+ 'm' # 0x6D -> LATIN SMALL LETTER M
158
+ 'n' # 0x6E -> LATIN SMALL LETTER N
159
+ 'o' # 0x6F -> LATIN SMALL LETTER O
160
+ 'p' # 0x70 -> LATIN SMALL LETTER P
161
+ 'q' # 0x71 -> LATIN SMALL LETTER Q
162
+ 'r' # 0x72 -> LATIN SMALL LETTER R
163
+ 's' # 0x73 -> LATIN SMALL LETTER S
164
+ 't' # 0x74 -> LATIN SMALL LETTER T
165
+ 'u' # 0x75 -> LATIN SMALL LETTER U
166
+ 'v' # 0x76 -> LATIN SMALL LETTER V
167
+ 'w' # 0x77 -> LATIN SMALL LETTER W
168
+ 'x' # 0x78 -> LATIN SMALL LETTER X
169
+ 'y' # 0x79 -> LATIN SMALL LETTER Y
170
+ 'z' # 0x7A -> LATIN SMALL LETTER Z
171
+ '{' # 0x7B -> LEFT CURLY BRACKET
172
+ '|' # 0x7C -> VERTICAL LINE
173
+ '}' # 0x7D -> RIGHT CURLY BRACKET
174
+ '~' # 0x7E -> TILDE
175
+ '\x7f' # 0x7F -> DELETE
176
+ '\x80' # 0x80 -> <control>
177
+ '\x81' # 0x81 -> <control>
178
+ '\x82' # 0x82 -> <control>
179
+ '\x83' # 0x83 -> <control>
180
+ '\x84' # 0x84 -> <control>
181
+ '\x85' # 0x85 -> <control>
182
+ '\x86' # 0x86 -> <control>
183
+ '\x87' # 0x87 -> <control>
184
+ '\x88' # 0x88 -> <control>
185
+ '\x89' # 0x89 -> <control>
186
+ '\x8a' # 0x8A -> <control>
187
+ '\x8b' # 0x8B -> <control>
188
+ '\x8c' # 0x8C -> <control>
189
+ '\x8d' # 0x8D -> <control>
190
+ '\x8e' # 0x8E -> <control>
191
+ '\x8f' # 0x8F -> <control>
192
+ '\x90' # 0x90 -> <control>
193
+ '\x91' # 0x91 -> <control>
194
+ '\x92' # 0x92 -> <control>
195
+ '\x93' # 0x93 -> <control>
196
+ '\x94' # 0x94 -> <control>
197
+ '\x95' # 0x95 -> <control>
198
+ '\x96' # 0x96 -> <control>
199
+ '\x97' # 0x97 -> <control>
200
+ '\x98' # 0x98 -> <control>
201
+ '\x99' # 0x99 -> <control>
202
+ '\x9a' # 0x9A -> <control>
203
+ '\x9b' # 0x9B -> <control>
204
+ '\x9c' # 0x9C -> <control>
205
+ '\x9d' # 0x9D -> <control>
206
+ '\x9e' # 0x9E -> <control>
207
+ '\x9f' # 0x9F -> <control>
208
+ '\xa0' # 0xA0 -> NO-BREAK SPACE
209
+ '\u0104' # 0xA1 -> LATIN CAPITAL LETTER A WITH OGONEK
210
+ '\u0112' # 0xA2 -> LATIN CAPITAL LETTER E WITH MACRON
211
+ '\u0122' # 0xA3 -> LATIN CAPITAL LETTER G WITH CEDILLA
212
+ '\u012a' # 0xA4 -> LATIN CAPITAL LETTER I WITH MACRON
213
+ '\u0128' # 0xA5 -> LATIN CAPITAL LETTER I WITH TILDE
214
+ '\u0136' # 0xA6 -> LATIN CAPITAL LETTER K WITH CEDILLA
215
+ '\xa7' # 0xA7 -> SECTION SIGN
216
+ '\u013b' # 0xA8 -> LATIN CAPITAL LETTER L WITH CEDILLA
217
+ '\u0110' # 0xA9 -> LATIN CAPITAL LETTER D WITH STROKE
218
+ '\u0160' # 0xAA -> LATIN CAPITAL LETTER S WITH CARON
219
+ '\u0166' # 0xAB -> LATIN CAPITAL LETTER T WITH STROKE
220
+ '\u017d' # 0xAC -> LATIN CAPITAL LETTER Z WITH CARON
221
+ '\xad' # 0xAD -> SOFT HYPHEN
222
+ '\u016a' # 0xAE -> LATIN CAPITAL LETTER U WITH MACRON
223
+ '\u014a' # 0xAF -> LATIN CAPITAL LETTER ENG
224
+ '\xb0' # 0xB0 -> DEGREE SIGN
225
+ '\u0105' # 0xB1 -> LATIN SMALL LETTER A WITH OGONEK
226
+ '\u0113' # 0xB2 -> LATIN SMALL LETTER E WITH MACRON
227
+ '\u0123' # 0xB3 -> LATIN SMALL LETTER G WITH CEDILLA
228
+ '\u012b' # 0xB4 -> LATIN SMALL LETTER I WITH MACRON
229
+ '\u0129' # 0xB5 -> LATIN SMALL LETTER I WITH TILDE
230
+ '\u0137' # 0xB6 -> LATIN SMALL LETTER K WITH CEDILLA
231
+ '\xb7' # 0xB7 -> MIDDLE DOT
232
+ '\u013c' # 0xB8 -> LATIN SMALL LETTER L WITH CEDILLA
233
+ '\u0111' # 0xB9 -> LATIN SMALL LETTER D WITH STROKE
234
+ '\u0161' # 0xBA -> LATIN SMALL LETTER S WITH CARON
235
+ '\u0167' # 0xBB -> LATIN SMALL LETTER T WITH STROKE
236
+ '\u017e' # 0xBC -> LATIN SMALL LETTER Z WITH CARON
237
+ '\u2015' # 0xBD -> HORIZONTAL BAR
238
+ '\u016b' # 0xBE -> LATIN SMALL LETTER U WITH MACRON
239
+ '\u014b' # 0xBF -> LATIN SMALL LETTER ENG
240
+ '\u0100' # 0xC0 -> LATIN CAPITAL LETTER A WITH MACRON
241
+ '\xc1' # 0xC1 -> LATIN CAPITAL LETTER A WITH ACUTE
242
+ '\xc2' # 0xC2 -> LATIN CAPITAL LETTER A WITH CIRCUMFLEX
243
+ '\xc3' # 0xC3 -> LATIN CAPITAL LETTER A WITH TILDE
244
+ '\xc4' # 0xC4 -> LATIN CAPITAL LETTER A WITH DIAERESIS
245
+ '\xc5' # 0xC5 -> LATIN CAPITAL LETTER A WITH RING ABOVE
246
+ '\xc6' # 0xC6 -> LATIN CAPITAL LETTER AE
247
+ '\u012e' # 0xC7 -> LATIN CAPITAL LETTER I WITH OGONEK
248
+ '\u010c' # 0xC8 -> LATIN CAPITAL LETTER C WITH CARON
249
+ '\xc9' # 0xC9 -> LATIN CAPITAL LETTER E WITH ACUTE
250
+ '\u0118' # 0xCA -> LATIN CAPITAL LETTER E WITH OGONEK
251
+ '\xcb' # 0xCB -> LATIN CAPITAL LETTER E WITH DIAERESIS
252
+ '\u0116' # 0xCC -> LATIN CAPITAL LETTER E WITH DOT ABOVE
253
+ '\xcd' # 0xCD -> LATIN CAPITAL LETTER I WITH ACUTE
254
+ '\xce' # 0xCE -> LATIN CAPITAL LETTER I WITH CIRCUMFLEX
255
+ '\xcf' # 0xCF -> LATIN CAPITAL LETTER I WITH DIAERESIS
256
+ '\xd0' # 0xD0 -> LATIN CAPITAL LETTER ETH (Icelandic)
257
+ '\u0145' # 0xD1 -> LATIN CAPITAL LETTER N WITH CEDILLA
258
+ '\u014c' # 0xD2 -> LATIN CAPITAL LETTER O WITH MACRON
259
+ '\xd3' # 0xD3 -> LATIN CAPITAL LETTER O WITH ACUTE
260
+ '\xd4' # 0xD4 -> LATIN CAPITAL LETTER O WITH CIRCUMFLEX
261
+ '\xd5' # 0xD5 -> LATIN CAPITAL LETTER O WITH TILDE
262
+ '\xd6' # 0xD6 -> LATIN CAPITAL LETTER O WITH DIAERESIS
263
+ '\u0168' # 0xD7 -> LATIN CAPITAL LETTER U WITH TILDE
264
+ '\xd8' # 0xD8 -> LATIN CAPITAL LETTER O WITH STROKE
265
+ '\u0172' # 0xD9 -> LATIN CAPITAL LETTER U WITH OGONEK
266
+ '\xda' # 0xDA -> LATIN CAPITAL LETTER U WITH ACUTE
267
+ '\xdb' # 0xDB -> LATIN CAPITAL LETTER U WITH CIRCUMFLEX
268
+ '\xdc' # 0xDC -> LATIN CAPITAL LETTER U WITH DIAERESIS
269
+ '\xdd' # 0xDD -> LATIN CAPITAL LETTER Y WITH ACUTE
270
+ '\xde' # 0xDE -> LATIN CAPITAL LETTER THORN (Icelandic)
271
+ '\xdf' # 0xDF -> LATIN SMALL LETTER SHARP S (German)
272
+ '\u0101' # 0xE0 -> LATIN SMALL LETTER A WITH MACRON
273
+ '\xe1' # 0xE1 -> LATIN SMALL LETTER A WITH ACUTE
274
+ '\xe2' # 0xE2 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
275
+ '\xe3' # 0xE3 -> LATIN SMALL LETTER A WITH TILDE
276
+ '\xe4' # 0xE4 -> LATIN SMALL LETTER A WITH DIAERESIS
277
+ '\xe5' # 0xE5 -> LATIN SMALL LETTER A WITH RING ABOVE
278
+ '\xe6' # 0xE6 -> LATIN SMALL LETTER AE
279
+ '\u012f' # 0xE7 -> LATIN SMALL LETTER I WITH OGONEK
280
+ '\u010d' # 0xE8 -> LATIN SMALL LETTER C WITH CARON
281
+ '\xe9' # 0xE9 -> LATIN SMALL LETTER E WITH ACUTE
282
+ '\u0119' # 0xEA -> LATIN SMALL LETTER E WITH OGONEK
283
+ '\xeb' # 0xEB -> LATIN SMALL LETTER E WITH DIAERESIS
284
+ '\u0117' # 0xEC -> LATIN SMALL LETTER E WITH DOT ABOVE
285
+ '\xed' # 0xED -> LATIN SMALL LETTER I WITH ACUTE
286
+ '\xee' # 0xEE -> LATIN SMALL LETTER I WITH CIRCUMFLEX
287
+ '\xef' # 0xEF -> LATIN SMALL LETTER I WITH DIAERESIS
288
+ '\xf0' # 0xF0 -> LATIN SMALL LETTER ETH (Icelandic)
289
+ '\u0146' # 0xF1 -> LATIN SMALL LETTER N WITH CEDILLA
290
+ '\u014d' # 0xF2 -> LATIN SMALL LETTER O WITH MACRON
291
+ '\xf3' # 0xF3 -> LATIN SMALL LETTER O WITH ACUTE
292
+ '\xf4' # 0xF4 -> LATIN SMALL LETTER O WITH CIRCUMFLEX
293
+ '\xf5' # 0xF5 -> LATIN SMALL LETTER O WITH TILDE
294
+ '\xf6' # 0xF6 -> LATIN SMALL LETTER O WITH DIAERESIS
295
+ '\u0169' # 0xF7 -> LATIN SMALL LETTER U WITH TILDE
296
+ '\xf8' # 0xF8 -> LATIN SMALL LETTER O WITH STROKE
297
+ '\u0173' # 0xF9 -> LATIN SMALL LETTER U WITH OGONEK
298
+ '\xfa' # 0xFA -> LATIN SMALL LETTER U WITH ACUTE
299
+ '\xfb' # 0xFB -> LATIN SMALL LETTER U WITH CIRCUMFLEX
300
+ '\xfc' # 0xFC -> LATIN SMALL LETTER U WITH DIAERESIS
301
+ '\xfd' # 0xFD -> LATIN SMALL LETTER Y WITH ACUTE
302
+ '\xfe' # 0xFE -> LATIN SMALL LETTER THORN (Icelandic)
303
+ '\u0138' # 0xFF -> LATIN SMALL LETTER KRA
304
+ )
305
+
306
+ ### Encoding table
307
+ encoding_table=codecs.charmap_build(decoding_table)
evalkit_cambrian/lib/python3.10/encodings/iso8859_3.py ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec iso8859_3 generated from 'MAPPINGS/ISO8859/8859-3.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_table)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_table)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='iso8859-3',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+
45
+ ### Decoding Table
46
+
47
+ decoding_table = (
48
+ '\x00' # 0x00 -> NULL
49
+ '\x01' # 0x01 -> START OF HEADING
50
+ '\x02' # 0x02 -> START OF TEXT
51
+ '\x03' # 0x03 -> END OF TEXT
52
+ '\x04' # 0x04 -> END OF TRANSMISSION
53
+ '\x05' # 0x05 -> ENQUIRY
54
+ '\x06' # 0x06 -> ACKNOWLEDGE
55
+ '\x07' # 0x07 -> BELL
56
+ '\x08' # 0x08 -> BACKSPACE
57
+ '\t' # 0x09 -> HORIZONTAL TABULATION
58
+ '\n' # 0x0A -> LINE FEED
59
+ '\x0b' # 0x0B -> VERTICAL TABULATION
60
+ '\x0c' # 0x0C -> FORM FEED
61
+ '\r' # 0x0D -> CARRIAGE RETURN
62
+ '\x0e' # 0x0E -> SHIFT OUT
63
+ '\x0f' # 0x0F -> SHIFT IN
64
+ '\x10' # 0x10 -> DATA LINK ESCAPE
65
+ '\x11' # 0x11 -> DEVICE CONTROL ONE
66
+ '\x12' # 0x12 -> DEVICE CONTROL TWO
67
+ '\x13' # 0x13 -> DEVICE CONTROL THREE
68
+ '\x14' # 0x14 -> DEVICE CONTROL FOUR
69
+ '\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE
70
+ '\x16' # 0x16 -> SYNCHRONOUS IDLE
71
+ '\x17' # 0x17 -> END OF TRANSMISSION BLOCK
72
+ '\x18' # 0x18 -> CANCEL
73
+ '\x19' # 0x19 -> END OF MEDIUM
74
+ '\x1a' # 0x1A -> SUBSTITUTE
75
+ '\x1b' # 0x1B -> ESCAPE
76
+ '\x1c' # 0x1C -> FILE SEPARATOR
77
+ '\x1d' # 0x1D -> GROUP SEPARATOR
78
+ '\x1e' # 0x1E -> RECORD SEPARATOR
79
+ '\x1f' # 0x1F -> UNIT SEPARATOR
80
+ ' ' # 0x20 -> SPACE
81
+ '!' # 0x21 -> EXCLAMATION MARK
82
+ '"' # 0x22 -> QUOTATION MARK
83
+ '#' # 0x23 -> NUMBER SIGN
84
+ '$' # 0x24 -> DOLLAR SIGN
85
+ '%' # 0x25 -> PERCENT SIGN
86
+ '&' # 0x26 -> AMPERSAND
87
+ "'" # 0x27 -> APOSTROPHE
88
+ '(' # 0x28 -> LEFT PARENTHESIS
89
+ ')' # 0x29 -> RIGHT PARENTHESIS
90
+ '*' # 0x2A -> ASTERISK
91
+ '+' # 0x2B -> PLUS SIGN
92
+ ',' # 0x2C -> COMMA
93
+ '-' # 0x2D -> HYPHEN-MINUS
94
+ '.' # 0x2E -> FULL STOP
95
+ '/' # 0x2F -> SOLIDUS
96
+ '0' # 0x30 -> DIGIT ZERO
97
+ '1' # 0x31 -> DIGIT ONE
98
+ '2' # 0x32 -> DIGIT TWO
99
+ '3' # 0x33 -> DIGIT THREE
100
+ '4' # 0x34 -> DIGIT FOUR
101
+ '5' # 0x35 -> DIGIT FIVE
102
+ '6' # 0x36 -> DIGIT SIX
103
+ '7' # 0x37 -> DIGIT SEVEN
104
+ '8' # 0x38 -> DIGIT EIGHT
105
+ '9' # 0x39 -> DIGIT NINE
106
+ ':' # 0x3A -> COLON
107
+ ';' # 0x3B -> SEMICOLON
108
+ '<' # 0x3C -> LESS-THAN SIGN
109
+ '=' # 0x3D -> EQUALS SIGN
110
+ '>' # 0x3E -> GREATER-THAN SIGN
111
+ '?' # 0x3F -> QUESTION MARK
112
+ '@' # 0x40 -> COMMERCIAL AT
113
+ 'A' # 0x41 -> LATIN CAPITAL LETTER A
114
+ 'B' # 0x42 -> LATIN CAPITAL LETTER B
115
+ 'C' # 0x43 -> LATIN CAPITAL LETTER C
116
+ 'D' # 0x44 -> LATIN CAPITAL LETTER D
117
+ 'E' # 0x45 -> LATIN CAPITAL LETTER E
118
+ 'F' # 0x46 -> LATIN CAPITAL LETTER F
119
+ 'G' # 0x47 -> LATIN CAPITAL LETTER G
120
+ 'H' # 0x48 -> LATIN CAPITAL LETTER H
121
+ 'I' # 0x49 -> LATIN CAPITAL LETTER I
122
+ 'J' # 0x4A -> LATIN CAPITAL LETTER J
123
+ 'K' # 0x4B -> LATIN CAPITAL LETTER K
124
+ 'L' # 0x4C -> LATIN CAPITAL LETTER L
125
+ 'M' # 0x4D -> LATIN CAPITAL LETTER M
126
+ 'N' # 0x4E -> LATIN CAPITAL LETTER N
127
+ 'O' # 0x4F -> LATIN CAPITAL LETTER O
128
+ 'P' # 0x50 -> LATIN CAPITAL LETTER P
129
+ 'Q' # 0x51 -> LATIN CAPITAL LETTER Q
130
+ 'R' # 0x52 -> LATIN CAPITAL LETTER R
131
+ 'S' # 0x53 -> LATIN CAPITAL LETTER S
132
+ 'T' # 0x54 -> LATIN CAPITAL LETTER T
133
+ 'U' # 0x55 -> LATIN CAPITAL LETTER U
134
+ 'V' # 0x56 -> LATIN CAPITAL LETTER V
135
+ 'W' # 0x57 -> LATIN CAPITAL LETTER W
136
+ 'X' # 0x58 -> LATIN CAPITAL LETTER X
137
+ 'Y' # 0x59 -> LATIN CAPITAL LETTER Y
138
+ 'Z' # 0x5A -> LATIN CAPITAL LETTER Z
139
+ '[' # 0x5B -> LEFT SQUARE BRACKET
140
+ '\\' # 0x5C -> REVERSE SOLIDUS
141
+ ']' # 0x5D -> RIGHT SQUARE BRACKET
142
+ '^' # 0x5E -> CIRCUMFLEX ACCENT
143
+ '_' # 0x5F -> LOW LINE
144
+ '`' # 0x60 -> GRAVE ACCENT
145
+ 'a' # 0x61 -> LATIN SMALL LETTER A
146
+ 'b' # 0x62 -> LATIN SMALL LETTER B
147
+ 'c' # 0x63 -> LATIN SMALL LETTER C
148
+ 'd' # 0x64 -> LATIN SMALL LETTER D
149
+ 'e' # 0x65 -> LATIN SMALL LETTER E
150
+ 'f' # 0x66 -> LATIN SMALL LETTER F
151
+ 'g' # 0x67 -> LATIN SMALL LETTER G
152
+ 'h' # 0x68 -> LATIN SMALL LETTER H
153
+ 'i' # 0x69 -> LATIN SMALL LETTER I
154
+ 'j' # 0x6A -> LATIN SMALL LETTER J
155
+ 'k' # 0x6B -> LATIN SMALL LETTER K
156
+ 'l' # 0x6C -> LATIN SMALL LETTER L
157
+ 'm' # 0x6D -> LATIN SMALL LETTER M
158
+ 'n' # 0x6E -> LATIN SMALL LETTER N
159
+ 'o' # 0x6F -> LATIN SMALL LETTER O
160
+ 'p' # 0x70 -> LATIN SMALL LETTER P
161
+ 'q' # 0x71 -> LATIN SMALL LETTER Q
162
+ 'r' # 0x72 -> LATIN SMALL LETTER R
163
+ 's' # 0x73 -> LATIN SMALL LETTER S
164
+ 't' # 0x74 -> LATIN SMALL LETTER T
165
+ 'u' # 0x75 -> LATIN SMALL LETTER U
166
+ 'v' # 0x76 -> LATIN SMALL LETTER V
167
+ 'w' # 0x77 -> LATIN SMALL LETTER W
168
+ 'x' # 0x78 -> LATIN SMALL LETTER X
169
+ 'y' # 0x79 -> LATIN SMALL LETTER Y
170
+ 'z' # 0x7A -> LATIN SMALL LETTER Z
171
+ '{' # 0x7B -> LEFT CURLY BRACKET
172
+ '|' # 0x7C -> VERTICAL LINE
173
+ '}' # 0x7D -> RIGHT CURLY BRACKET
174
+ '~' # 0x7E -> TILDE
175
+ '\x7f' # 0x7F -> DELETE
176
+ '\x80' # 0x80 -> <control>
177
+ '\x81' # 0x81 -> <control>
178
+ '\x82' # 0x82 -> <control>
179
+ '\x83' # 0x83 -> <control>
180
+ '\x84' # 0x84 -> <control>
181
+ '\x85' # 0x85 -> <control>
182
+ '\x86' # 0x86 -> <control>
183
+ '\x87' # 0x87 -> <control>
184
+ '\x88' # 0x88 -> <control>
185
+ '\x89' # 0x89 -> <control>
186
+ '\x8a' # 0x8A -> <control>
187
+ '\x8b' # 0x8B -> <control>
188
+ '\x8c' # 0x8C -> <control>
189
+ '\x8d' # 0x8D -> <control>
190
+ '\x8e' # 0x8E -> <control>
191
+ '\x8f' # 0x8F -> <control>
192
+ '\x90' # 0x90 -> <control>
193
+ '\x91' # 0x91 -> <control>
194
+ '\x92' # 0x92 -> <control>
195
+ '\x93' # 0x93 -> <control>
196
+ '\x94' # 0x94 -> <control>
197
+ '\x95' # 0x95 -> <control>
198
+ '\x96' # 0x96 -> <control>
199
+ '\x97' # 0x97 -> <control>
200
+ '\x98' # 0x98 -> <control>
201
+ '\x99' # 0x99 -> <control>
202
+ '\x9a' # 0x9A -> <control>
203
+ '\x9b' # 0x9B -> <control>
204
+ '\x9c' # 0x9C -> <control>
205
+ '\x9d' # 0x9D -> <control>
206
+ '\x9e' # 0x9E -> <control>
207
+ '\x9f' # 0x9F -> <control>
208
+ '\xa0' # 0xA0 -> NO-BREAK SPACE
209
+ '\u0126' # 0xA1 -> LATIN CAPITAL LETTER H WITH STROKE
210
+ '\u02d8' # 0xA2 -> BREVE
211
+ '\xa3' # 0xA3 -> POUND SIGN
212
+ '\xa4' # 0xA4 -> CURRENCY SIGN
213
+ '\ufffe'
214
+ '\u0124' # 0xA6 -> LATIN CAPITAL LETTER H WITH CIRCUMFLEX
215
+ '\xa7' # 0xA7 -> SECTION SIGN
216
+ '\xa8' # 0xA8 -> DIAERESIS
217
+ '\u0130' # 0xA9 -> LATIN CAPITAL LETTER I WITH DOT ABOVE
218
+ '\u015e' # 0xAA -> LATIN CAPITAL LETTER S WITH CEDILLA
219
+ '\u011e' # 0xAB -> LATIN CAPITAL LETTER G WITH BREVE
220
+ '\u0134' # 0xAC -> LATIN CAPITAL LETTER J WITH CIRCUMFLEX
221
+ '\xad' # 0xAD -> SOFT HYPHEN
222
+ '\ufffe'
223
+ '\u017b' # 0xAF -> LATIN CAPITAL LETTER Z WITH DOT ABOVE
224
+ '\xb0' # 0xB0 -> DEGREE SIGN
225
+ '\u0127' # 0xB1 -> LATIN SMALL LETTER H WITH STROKE
226
+ '\xb2' # 0xB2 -> SUPERSCRIPT TWO
227
+ '\xb3' # 0xB3 -> SUPERSCRIPT THREE
228
+ '\xb4' # 0xB4 -> ACUTE ACCENT
229
+ '\xb5' # 0xB5 -> MICRO SIGN
230
+ '\u0125' # 0xB6 -> LATIN SMALL LETTER H WITH CIRCUMFLEX
231
+ '\xb7' # 0xB7 -> MIDDLE DOT
232
+ '\xb8' # 0xB8 -> CEDILLA
233
+ '\u0131' # 0xB9 -> LATIN SMALL LETTER DOTLESS I
234
+ '\u015f' # 0xBA -> LATIN SMALL LETTER S WITH CEDILLA
235
+ '\u011f' # 0xBB -> LATIN SMALL LETTER G WITH BREVE
236
+ '\u0135' # 0xBC -> LATIN SMALL LETTER J WITH CIRCUMFLEX
237
+ '\xbd' # 0xBD -> VULGAR FRACTION ONE HALF
238
+ '\ufffe'
239
+ '\u017c' # 0xBF -> LATIN SMALL LETTER Z WITH DOT ABOVE
240
+ '\xc0' # 0xC0 -> LATIN CAPITAL LETTER A WITH GRAVE
241
+ '\xc1' # 0xC1 -> LATIN CAPITAL LETTER A WITH ACUTE
242
+ '\xc2' # 0xC2 -> LATIN CAPITAL LETTER A WITH CIRCUMFLEX
243
+ '\ufffe'
244
+ '\xc4' # 0xC4 -> LATIN CAPITAL LETTER A WITH DIAERESIS
245
+ '\u010a' # 0xC5 -> LATIN CAPITAL LETTER C WITH DOT ABOVE
246
+ '\u0108' # 0xC6 -> LATIN CAPITAL LETTER C WITH CIRCUMFLEX
247
+ '\xc7' # 0xC7 -> LATIN CAPITAL LETTER C WITH CEDILLA
248
+ '\xc8' # 0xC8 -> LATIN CAPITAL LETTER E WITH GRAVE
249
+ '\xc9' # 0xC9 -> LATIN CAPITAL LETTER E WITH ACUTE
250
+ '\xca' # 0xCA -> LATIN CAPITAL LETTER E WITH CIRCUMFLEX
251
+ '\xcb' # 0xCB -> LATIN CAPITAL LETTER E WITH DIAERESIS
252
+ '\xcc' # 0xCC -> LATIN CAPITAL LETTER I WITH GRAVE
253
+ '\xcd' # 0xCD -> LATIN CAPITAL LETTER I WITH ACUTE
254
+ '\xce' # 0xCE -> LATIN CAPITAL LETTER I WITH CIRCUMFLEX
255
+ '\xcf' # 0xCF -> LATIN CAPITAL LETTER I WITH DIAERESIS
256
+ '\ufffe'
257
+ '\xd1' # 0xD1 -> LATIN CAPITAL LETTER N WITH TILDE
258
+ '\xd2' # 0xD2 -> LATIN CAPITAL LETTER O WITH GRAVE
259
+ '\xd3' # 0xD3 -> LATIN CAPITAL LETTER O WITH ACUTE
260
+ '\xd4' # 0xD4 -> LATIN CAPITAL LETTER O WITH CIRCUMFLEX
261
+ '\u0120' # 0xD5 -> LATIN CAPITAL LETTER G WITH DOT ABOVE
262
+ '\xd6' # 0xD6 -> LATIN CAPITAL LETTER O WITH DIAERESIS
263
+ '\xd7' # 0xD7 -> MULTIPLICATION SIGN
264
+ '\u011c' # 0xD8 -> LATIN CAPITAL LETTER G WITH CIRCUMFLEX
265
+ '\xd9' # 0xD9 -> LATIN CAPITAL LETTER U WITH GRAVE
266
+ '\xda' # 0xDA -> LATIN CAPITAL LETTER U WITH ACUTE
267
+ '\xdb' # 0xDB -> LATIN CAPITAL LETTER U WITH CIRCUMFLEX
268
+ '\xdc' # 0xDC -> LATIN CAPITAL LETTER U WITH DIAERESIS
269
+ '\u016c' # 0xDD -> LATIN CAPITAL LETTER U WITH BREVE
270
+ '\u015c' # 0xDE -> LATIN CAPITAL LETTER S WITH CIRCUMFLEX
271
+ '\xdf' # 0xDF -> LATIN SMALL LETTER SHARP S
272
+ '\xe0' # 0xE0 -> LATIN SMALL LETTER A WITH GRAVE
273
+ '\xe1' # 0xE1 -> LATIN SMALL LETTER A WITH ACUTE
274
+ '\xe2' # 0xE2 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
275
+ '\ufffe'
276
+ '\xe4' # 0xE4 -> LATIN SMALL LETTER A WITH DIAERESIS
277
+ '\u010b' # 0xE5 -> LATIN SMALL LETTER C WITH DOT ABOVE
278
+ '\u0109' # 0xE6 -> LATIN SMALL LETTER C WITH CIRCUMFLEX
279
+ '\xe7' # 0xE7 -> LATIN SMALL LETTER C WITH CEDILLA
280
+ '\xe8' # 0xE8 -> LATIN SMALL LETTER E WITH GRAVE
281
+ '\xe9' # 0xE9 -> LATIN SMALL LETTER E WITH ACUTE
282
+ '\xea' # 0xEA -> LATIN SMALL LETTER E WITH CIRCUMFLEX
283
+ '\xeb' # 0xEB -> LATIN SMALL LETTER E WITH DIAERESIS
284
+ '\xec' # 0xEC -> LATIN SMALL LETTER I WITH GRAVE
285
+ '\xed' # 0xED -> LATIN SMALL LETTER I WITH ACUTE
286
+ '\xee' # 0xEE -> LATIN SMALL LETTER I WITH CIRCUMFLEX
287
+ '\xef' # 0xEF -> LATIN SMALL LETTER I WITH DIAERESIS
288
+ '\ufffe'
289
+ '\xf1' # 0xF1 -> LATIN SMALL LETTER N WITH TILDE
290
+ '\xf2' # 0xF2 -> LATIN SMALL LETTER O WITH GRAVE
291
+ '\xf3' # 0xF3 -> LATIN SMALL LETTER O WITH ACUTE
292
+ '\xf4' # 0xF4 -> LATIN SMALL LETTER O WITH CIRCUMFLEX
293
+ '\u0121' # 0xF5 -> LATIN SMALL LETTER G WITH DOT ABOVE
294
+ '\xf6' # 0xF6 -> LATIN SMALL LETTER O WITH DIAERESIS
295
+ '\xf7' # 0xF7 -> DIVISION SIGN
296
+ '\u011d' # 0xF8 -> LATIN SMALL LETTER G WITH CIRCUMFLEX
297
+ '\xf9' # 0xF9 -> LATIN SMALL LETTER U WITH GRAVE
298
+ '\xfa' # 0xFA -> LATIN SMALL LETTER U WITH ACUTE
299
+ '\xfb' # 0xFB -> LATIN SMALL LETTER U WITH CIRCUMFLEX
300
+ '\xfc' # 0xFC -> LATIN SMALL LETTER U WITH DIAERESIS
301
+ '\u016d' # 0xFD -> LATIN SMALL LETTER U WITH BREVE
302
+ '\u015d' # 0xFE -> LATIN SMALL LETTER S WITH CIRCUMFLEX
303
+ '\u02d9' # 0xFF -> DOT ABOVE
304
+ )
305
+
306
+ ### Encoding table
307
+ encoding_table=codecs.charmap_build(decoding_table)
evalkit_cambrian/lib/python3.10/encodings/kz1048.py ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec kz1048 generated from 'MAPPINGS/VENDORS/MISC/KZ1048.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self, input, errors='strict'):
12
+ return codecs.charmap_encode(input, errors, encoding_table)
13
+
14
+ def decode(self, input, errors='strict'):
15
+ return codecs.charmap_decode(input, errors, decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input, self.errors, encoding_table)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input, self.errors, decoding_table)[0]
24
+
25
+ class StreamWriter(Codec, codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec, codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='kz1048',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+
45
+ ### Decoding Table
46
+
47
+ decoding_table = (
48
+ '\x00' # 0x00 -> NULL
49
+ '\x01' # 0x01 -> START OF HEADING
50
+ '\x02' # 0x02 -> START OF TEXT
51
+ '\x03' # 0x03 -> END OF TEXT
52
+ '\x04' # 0x04 -> END OF TRANSMISSION
53
+ '\x05' # 0x05 -> ENQUIRY
54
+ '\x06' # 0x06 -> ACKNOWLEDGE
55
+ '\x07' # 0x07 -> BELL
56
+ '\x08' # 0x08 -> BACKSPACE
57
+ '\t' # 0x09 -> HORIZONTAL TABULATION
58
+ '\n' # 0x0A -> LINE FEED
59
+ '\x0b' # 0x0B -> VERTICAL TABULATION
60
+ '\x0c' # 0x0C -> FORM FEED
61
+ '\r' # 0x0D -> CARRIAGE RETURN
62
+ '\x0e' # 0x0E -> SHIFT OUT
63
+ '\x0f' # 0x0F -> SHIFT IN
64
+ '\x10' # 0x10 -> DATA LINK ESCAPE
65
+ '\x11' # 0x11 -> DEVICE CONTROL ONE
66
+ '\x12' # 0x12 -> DEVICE CONTROL TWO
67
+ '\x13' # 0x13 -> DEVICE CONTROL THREE
68
+ '\x14' # 0x14 -> DEVICE CONTROL FOUR
69
+ '\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE
70
+ '\x16' # 0x16 -> SYNCHRONOUS IDLE
71
+ '\x17' # 0x17 -> END OF TRANSMISSION BLOCK
72
+ '\x18' # 0x18 -> CANCEL
73
+ '\x19' # 0x19 -> END OF MEDIUM
74
+ '\x1a' # 0x1A -> SUBSTITUTE
75
+ '\x1b' # 0x1B -> ESCAPE
76
+ '\x1c' # 0x1C -> FILE SEPARATOR
77
+ '\x1d' # 0x1D -> GROUP SEPARATOR
78
+ '\x1e' # 0x1E -> RECORD SEPARATOR
79
+ '\x1f' # 0x1F -> UNIT SEPARATOR
80
+ ' ' # 0x20 -> SPACE
81
+ '!' # 0x21 -> EXCLAMATION MARK
82
+ '"' # 0x22 -> QUOTATION MARK
83
+ '#' # 0x23 -> NUMBER SIGN
84
+ '$' # 0x24 -> DOLLAR SIGN
85
+ '%' # 0x25 -> PERCENT SIGN
86
+ '&' # 0x26 -> AMPERSAND
87
+ "'" # 0x27 -> APOSTROPHE
88
+ '(' # 0x28 -> LEFT PARENTHESIS
89
+ ')' # 0x29 -> RIGHT PARENTHESIS
90
+ '*' # 0x2A -> ASTERISK
91
+ '+' # 0x2B -> PLUS SIGN
92
+ ',' # 0x2C -> COMMA
93
+ '-' # 0x2D -> HYPHEN-MINUS
94
+ '.' # 0x2E -> FULL STOP
95
+ '/' # 0x2F -> SOLIDUS
96
+ '0' # 0x30 -> DIGIT ZERO
97
+ '1' # 0x31 -> DIGIT ONE
98
+ '2' # 0x32 -> DIGIT TWO
99
+ '3' # 0x33 -> DIGIT THREE
100
+ '4' # 0x34 -> DIGIT FOUR
101
+ '5' # 0x35 -> DIGIT FIVE
102
+ '6' # 0x36 -> DIGIT SIX
103
+ '7' # 0x37 -> DIGIT SEVEN
104
+ '8' # 0x38 -> DIGIT EIGHT
105
+ '9' # 0x39 -> DIGIT NINE
106
+ ':' # 0x3A -> COLON
107
+ ';' # 0x3B -> SEMICOLON
108
+ '<' # 0x3C -> LESS-THAN SIGN
109
+ '=' # 0x3D -> EQUALS SIGN
110
+ '>' # 0x3E -> GREATER-THAN SIGN
111
+ '?' # 0x3F -> QUESTION MARK
112
+ '@' # 0x40 -> COMMERCIAL AT
113
+ 'A' # 0x41 -> LATIN CAPITAL LETTER A
114
+ 'B' # 0x42 -> LATIN CAPITAL LETTER B
115
+ 'C' # 0x43 -> LATIN CAPITAL LETTER C
116
+ 'D' # 0x44 -> LATIN CAPITAL LETTER D
117
+ 'E' # 0x45 -> LATIN CAPITAL LETTER E
118
+ 'F' # 0x46 -> LATIN CAPITAL LETTER F
119
+ 'G' # 0x47 -> LATIN CAPITAL LETTER G
120
+ 'H' # 0x48 -> LATIN CAPITAL LETTER H
121
+ 'I' # 0x49 -> LATIN CAPITAL LETTER I
122
+ 'J' # 0x4A -> LATIN CAPITAL LETTER J
123
+ 'K' # 0x4B -> LATIN CAPITAL LETTER K
124
+ 'L' # 0x4C -> LATIN CAPITAL LETTER L
125
+ 'M' # 0x4D -> LATIN CAPITAL LETTER M
126
+ 'N' # 0x4E -> LATIN CAPITAL LETTER N
127
+ 'O' # 0x4F -> LATIN CAPITAL LETTER O
128
+ 'P' # 0x50 -> LATIN CAPITAL LETTER P
129
+ 'Q' # 0x51 -> LATIN CAPITAL LETTER Q
130
+ 'R' # 0x52 -> LATIN CAPITAL LETTER R
131
+ 'S' # 0x53 -> LATIN CAPITAL LETTER S
132
+ 'T' # 0x54 -> LATIN CAPITAL LETTER T
133
+ 'U' # 0x55 -> LATIN CAPITAL LETTER U
134
+ 'V' # 0x56 -> LATIN CAPITAL LETTER V
135
+ 'W' # 0x57 -> LATIN CAPITAL LETTER W
136
+ 'X' # 0x58 -> LATIN CAPITAL LETTER X
137
+ 'Y' # 0x59 -> LATIN CAPITAL LETTER Y
138
+ 'Z' # 0x5A -> LATIN CAPITAL LETTER Z
139
+ '[' # 0x5B -> LEFT SQUARE BRACKET
140
+ '\\' # 0x5C -> REVERSE SOLIDUS
141
+ ']' # 0x5D -> RIGHT SQUARE BRACKET
142
+ '^' # 0x5E -> CIRCUMFLEX ACCENT
143
+ '_' # 0x5F -> LOW LINE
144
+ '`' # 0x60 -> GRAVE ACCENT
145
+ 'a' # 0x61 -> LATIN SMALL LETTER A
146
+ 'b' # 0x62 -> LATIN SMALL LETTER B
147
+ 'c' # 0x63 -> LATIN SMALL LETTER C
148
+ 'd' # 0x64 -> LATIN SMALL LETTER D
149
+ 'e' # 0x65 -> LATIN SMALL LETTER E
150
+ 'f' # 0x66 -> LATIN SMALL LETTER F
151
+ 'g' # 0x67 -> LATIN SMALL LETTER G
152
+ 'h' # 0x68 -> LATIN SMALL LETTER H
153
+ 'i' # 0x69 -> LATIN SMALL LETTER I
154
+ 'j' # 0x6A -> LATIN SMALL LETTER J
155
+ 'k' # 0x6B -> LATIN SMALL LETTER K
156
+ 'l' # 0x6C -> LATIN SMALL LETTER L
157
+ 'm' # 0x6D -> LATIN SMALL LETTER M
158
+ 'n' # 0x6E -> LATIN SMALL LETTER N
159
+ 'o' # 0x6F -> LATIN SMALL LETTER O
160
+ 'p' # 0x70 -> LATIN SMALL LETTER P
161
+ 'q' # 0x71 -> LATIN SMALL LETTER Q
162
+ 'r' # 0x72 -> LATIN SMALL LETTER R
163
+ 's' # 0x73 -> LATIN SMALL LETTER S
164
+ 't' # 0x74 -> LATIN SMALL LETTER T
165
+ 'u' # 0x75 -> LATIN SMALL LETTER U
166
+ 'v' # 0x76 -> LATIN SMALL LETTER V
167
+ 'w' # 0x77 -> LATIN SMALL LETTER W
168
+ 'x' # 0x78 -> LATIN SMALL LETTER X
169
+ 'y' # 0x79 -> LATIN SMALL LETTER Y
170
+ 'z' # 0x7A -> LATIN SMALL LETTER Z
171
+ '{' # 0x7B -> LEFT CURLY BRACKET
172
+ '|' # 0x7C -> VERTICAL LINE
173
+ '}' # 0x7D -> RIGHT CURLY BRACKET
174
+ '~' # 0x7E -> TILDE
175
+ '\x7f' # 0x7F -> DELETE
176
+ '\u0402' # 0x80 -> CYRILLIC CAPITAL LETTER DJE
177
+ '\u0403' # 0x81 -> CYRILLIC CAPITAL LETTER GJE
178
+ '\u201a' # 0x82 -> SINGLE LOW-9 QUOTATION MARK
179
+ '\u0453' # 0x83 -> CYRILLIC SMALL LETTER GJE
180
+ '\u201e' # 0x84 -> DOUBLE LOW-9 QUOTATION MARK
181
+ '\u2026' # 0x85 -> HORIZONTAL ELLIPSIS
182
+ '\u2020' # 0x86 -> DAGGER
183
+ '\u2021' # 0x87 -> DOUBLE DAGGER
184
+ '\u20ac' # 0x88 -> EURO SIGN
185
+ '\u2030' # 0x89 -> PER MILLE SIGN
186
+ '\u0409' # 0x8A -> CYRILLIC CAPITAL LETTER LJE
187
+ '\u2039' # 0x8B -> SINGLE LEFT-POINTING ANGLE QUOTATION MARK
188
+ '\u040a' # 0x8C -> CYRILLIC CAPITAL LETTER NJE
189
+ '\u049a' # 0x8D -> CYRILLIC CAPITAL LETTER KA WITH DESCENDER
190
+ '\u04ba' # 0x8E -> CYRILLIC CAPITAL LETTER SHHA
191
+ '\u040f' # 0x8F -> CYRILLIC CAPITAL LETTER DZHE
192
+ '\u0452' # 0x90 -> CYRILLIC SMALL LETTER DJE
193
+ '\u2018' # 0x91 -> LEFT SINGLE QUOTATION MARK
194
+ '\u2019' # 0x92 -> RIGHT SINGLE QUOTATION MARK
195
+ '\u201c' # 0x93 -> LEFT DOUBLE QUOTATION MARK
196
+ '\u201d' # 0x94 -> RIGHT DOUBLE QUOTATION MARK
197
+ '\u2022' # 0x95 -> BULLET
198
+ '\u2013' # 0x96 -> EN DASH
199
+ '\u2014' # 0x97 -> EM DASH
200
+ '\ufffe' # 0x98 -> UNDEFINED
201
+ '\u2122' # 0x99 -> TRADE MARK SIGN
202
+ '\u0459' # 0x9A -> CYRILLIC SMALL LETTER LJE
203
+ '\u203a' # 0x9B -> SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
204
+ '\u045a' # 0x9C -> CYRILLIC SMALL LETTER NJE
205
+ '\u049b' # 0x9D -> CYRILLIC SMALL LETTER KA WITH DESCENDER
206
+ '\u04bb' # 0x9E -> CYRILLIC SMALL LETTER SHHA
207
+ '\u045f' # 0x9F -> CYRILLIC SMALL LETTER DZHE
208
+ '\xa0' # 0xA0 -> NO-BREAK SPACE
209
+ '\u04b0' # 0xA1 -> CYRILLIC CAPITAL LETTER STRAIGHT U WITH STROKE
210
+ '\u04b1' # 0xA2 -> CYRILLIC SMALL LETTER STRAIGHT U WITH STROKE
211
+ '\u04d8' # 0xA3 -> CYRILLIC CAPITAL LETTER SCHWA
212
+ '\xa4' # 0xA4 -> CURRENCY SIGN
213
+ '\u04e8' # 0xA5 -> CYRILLIC CAPITAL LETTER BARRED O
214
+ '\xa6' # 0xA6 -> BROKEN BAR
215
+ '\xa7' # 0xA7 -> SECTION SIGN
216
+ '\u0401' # 0xA8 -> CYRILLIC CAPITAL LETTER IO
217
+ '\xa9' # 0xA9 -> COPYRIGHT SIGN
218
+ '\u0492' # 0xAA -> CYRILLIC CAPITAL LETTER GHE WITH STROKE
219
+ '\xab' # 0xAB -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
220
+ '\xac' # 0xAC -> NOT SIGN
221
+ '\xad' # 0xAD -> SOFT HYPHEN
222
+ '\xae' # 0xAE -> REGISTERED SIGN
223
+ '\u04ae' # 0xAF -> CYRILLIC CAPITAL LETTER STRAIGHT U
224
+ '\xb0' # 0xB0 -> DEGREE SIGN
225
+ '\xb1' # 0xB1 -> PLUS-MINUS SIGN
226
+ '\u0406' # 0xB2 -> CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I
227
+ '\u0456' # 0xB3 -> CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I
228
+ '\u04e9' # 0xB4 -> CYRILLIC SMALL LETTER BARRED O
229
+ '\xb5' # 0xB5 -> MICRO SIGN
230
+ '\xb6' # 0xB6 -> PILCROW SIGN
231
+ '\xb7' # 0xB7 -> MIDDLE DOT
232
+ '\u0451' # 0xB8 -> CYRILLIC SMALL LETTER IO
233
+ '\u2116' # 0xB9 -> NUMERO SIGN
234
+ '\u0493' # 0xBA -> CYRILLIC SMALL LETTER GHE WITH STROKE
235
+ '\xbb' # 0xBB -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
236
+ '\u04d9' # 0xBC -> CYRILLIC SMALL LETTER SCHWA
237
+ '\u04a2' # 0xBD -> CYRILLIC CAPITAL LETTER EN WITH DESCENDER
238
+ '\u04a3' # 0xBE -> CYRILLIC SMALL LETTER EN WITH DESCENDER
239
+ '\u04af' # 0xBF -> CYRILLIC SMALL LETTER STRAIGHT U
240
+ '\u0410' # 0xC0 -> CYRILLIC CAPITAL LETTER A
241
+ '\u0411' # 0xC1 -> CYRILLIC CAPITAL LETTER BE
242
+ '\u0412' # 0xC2 -> CYRILLIC CAPITAL LETTER VE
243
+ '\u0413' # 0xC3 -> CYRILLIC CAPITAL LETTER GHE
244
+ '\u0414' # 0xC4 -> CYRILLIC CAPITAL LETTER DE
245
+ '\u0415' # 0xC5 -> CYRILLIC CAPITAL LETTER IE
246
+ '\u0416' # 0xC6 -> CYRILLIC CAPITAL LETTER ZHE
247
+ '\u0417' # 0xC7 -> CYRILLIC CAPITAL LETTER ZE
248
+ '\u0418' # 0xC8 -> CYRILLIC CAPITAL LETTER I
249
+ '\u0419' # 0xC9 -> CYRILLIC CAPITAL LETTER SHORT I
250
+ '\u041a' # 0xCA -> CYRILLIC CAPITAL LETTER KA
251
+ '\u041b' # 0xCB -> CYRILLIC CAPITAL LETTER EL
252
+ '\u041c' # 0xCC -> CYRILLIC CAPITAL LETTER EM
253
+ '\u041d' # 0xCD -> CYRILLIC CAPITAL LETTER EN
254
+ '\u041e' # 0xCE -> CYRILLIC CAPITAL LETTER O
255
+ '\u041f' # 0xCF -> CYRILLIC CAPITAL LETTER PE
256
+ '\u0420' # 0xD0 -> CYRILLIC CAPITAL LETTER ER
257
+ '\u0421' # 0xD1 -> CYRILLIC CAPITAL LETTER ES
258
+ '\u0422' # 0xD2 -> CYRILLIC CAPITAL LETTER TE
259
+ '\u0423' # 0xD3 -> CYRILLIC CAPITAL LETTER U
260
+ '\u0424' # 0xD4 -> CYRILLIC CAPITAL LETTER EF
261
+ '\u0425' # 0xD5 -> CYRILLIC CAPITAL LETTER HA
262
+ '\u0426' # 0xD6 -> CYRILLIC CAPITAL LETTER TSE
263
+ '\u0427' # 0xD7 -> CYRILLIC CAPITAL LETTER CHE
264
+ '\u0428' # 0xD8 -> CYRILLIC CAPITAL LETTER SHA
265
+ '\u0429' # 0xD9 -> CYRILLIC CAPITAL LETTER SHCHA
266
+ '\u042a' # 0xDA -> CYRILLIC CAPITAL LETTER HARD SIGN
267
+ '\u042b' # 0xDB -> CYRILLIC CAPITAL LETTER YERU
268
+ '\u042c' # 0xDC -> CYRILLIC CAPITAL LETTER SOFT SIGN
269
+ '\u042d' # 0xDD -> CYRILLIC CAPITAL LETTER E
270
+ '\u042e' # 0xDE -> CYRILLIC CAPITAL LETTER YU
271
+ '\u042f' # 0xDF -> CYRILLIC CAPITAL LETTER YA
272
+ '\u0430' # 0xE0 -> CYRILLIC SMALL LETTER A
273
+ '\u0431' # 0xE1 -> CYRILLIC SMALL LETTER BE
274
+ '\u0432' # 0xE2 -> CYRILLIC SMALL LETTER VE
275
+ '\u0433' # 0xE3 -> CYRILLIC SMALL LETTER GHE
276
+ '\u0434' # 0xE4 -> CYRILLIC SMALL LETTER DE
277
+ '\u0435' # 0xE5 -> CYRILLIC SMALL LETTER IE
278
+ '\u0436' # 0xE6 -> CYRILLIC SMALL LETTER ZHE
279
+ '\u0437' # 0xE7 -> CYRILLIC SMALL LETTER ZE
280
+ '\u0438' # 0xE8 -> CYRILLIC SMALL LETTER I
281
+ '\u0439' # 0xE9 -> CYRILLIC SMALL LETTER SHORT I
282
+ '\u043a' # 0xEA -> CYRILLIC SMALL LETTER KA
283
+ '\u043b' # 0xEB -> CYRILLIC SMALL LETTER EL
284
+ '\u043c' # 0xEC -> CYRILLIC SMALL LETTER EM
285
+ '\u043d' # 0xED -> CYRILLIC SMALL LETTER EN
286
+ '\u043e' # 0xEE -> CYRILLIC SMALL LETTER O
287
+ '\u043f' # 0xEF -> CYRILLIC SMALL LETTER PE
288
+ '\u0440' # 0xF0 -> CYRILLIC SMALL LETTER ER
289
+ '\u0441' # 0xF1 -> CYRILLIC SMALL LETTER ES
290
+ '\u0442' # 0xF2 -> CYRILLIC SMALL LETTER TE
291
+ '\u0443' # 0xF3 -> CYRILLIC SMALL LETTER U
292
+ '\u0444' # 0xF4 -> CYRILLIC SMALL LETTER EF
293
+ '\u0445' # 0xF5 -> CYRILLIC SMALL LETTER HA
294
+ '\u0446' # 0xF6 -> CYRILLIC SMALL LETTER TSE
295
+ '\u0447' # 0xF7 -> CYRILLIC SMALL LETTER CHE
296
+ '\u0448' # 0xF8 -> CYRILLIC SMALL LETTER SHA
297
+ '\u0449' # 0xF9 -> CYRILLIC SMALL LETTER SHCHA
298
+ '\u044a' # 0xFA -> CYRILLIC SMALL LETTER HARD SIGN
299
+ '\u044b' # 0xFB -> CYRILLIC SMALL LETTER YERU
300
+ '\u044c' # 0xFC -> CYRILLIC SMALL LETTER SOFT SIGN
301
+ '\u044d' # 0xFD -> CYRILLIC SMALL LETTER E
302
+ '\u044e' # 0xFE -> CYRILLIC SMALL LETTER YU
303
+ '\u044f' # 0xFF -> CYRILLIC SMALL LETTER YA
304
+ )
305
+
306
+ ### Encoding table
307
+ encoding_table = codecs.charmap_build(decoding_table)
evalkit_cambrian/lib/python3.10/encodings/latin_1.py ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python 'latin-1' Codec
2
+
3
+
4
+ Written by Marc-Andre Lemburg ([email protected]).
5
+
6
+ (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
7
+
8
+ """
9
+ import codecs
10
+
11
+ ### Codec APIs
12
+
13
+ class Codec(codecs.Codec):
14
+
15
+ # Note: Binding these as C functions will result in the class not
16
+ # converting them to methods. This is intended.
17
+ encode = codecs.latin_1_encode
18
+ decode = codecs.latin_1_decode
19
+
20
+ class IncrementalEncoder(codecs.IncrementalEncoder):
21
+ def encode(self, input, final=False):
22
+ return codecs.latin_1_encode(input,self.errors)[0]
23
+
24
+ class IncrementalDecoder(codecs.IncrementalDecoder):
25
+ def decode(self, input, final=False):
26
+ return codecs.latin_1_decode(input,self.errors)[0]
27
+
28
+ class StreamWriter(Codec,codecs.StreamWriter):
29
+ pass
30
+
31
+ class StreamReader(Codec,codecs.StreamReader):
32
+ pass
33
+
34
+ class StreamConverter(StreamWriter,StreamReader):
35
+
36
+ encode = codecs.latin_1_decode
37
+ decode = codecs.latin_1_encode
38
+
39
+ ### encodings module API
40
+
41
+ def getregentry():
42
+ return codecs.CodecInfo(
43
+ name='iso8859-1',
44
+ encode=Codec.encode,
45
+ decode=Codec.decode,
46
+ incrementalencoder=IncrementalEncoder,
47
+ incrementaldecoder=IncrementalDecoder,
48
+ streamreader=StreamReader,
49
+ streamwriter=StreamWriter,
50
+ )
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (759 Bytes). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/autocomplete.cpython-310.pyc ADDED
Binary file (7.12 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/autocomplete_w.cpython-310.pyc ADDED
Binary file (11.6 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/autoexpand.cpython-310.pyc ADDED
Binary file (3.1 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/browser.cpython-310.pyc ADDED
Binary file (9.63 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/calltip.cpython-310.pyc ADDED
Binary file (6.06 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/calltip_w.cpython-310.pyc ADDED
Binary file (6.2 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/codecontext.cpython-310.pyc ADDED
Binary file (9.19 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/colorizer.cpython-310.pyc ADDED
Binary file (11.7 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/config.cpython-310.pyc ADDED
Binary file (30.6 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/config_key.cpython-310.pyc ADDED
Binary file (13.1 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/configdialog.cpython-310.pyc ADDED
Binary file (80.4 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/debugger_r.cpython-310.pyc ADDED
Binary file (13.8 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/debugobj.cpython-310.pyc ADDED
Binary file (5.23 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/debugobj_r.cpython-310.pyc ADDED
Binary file (2.24 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/delegator.cpython-310.pyc ADDED
Binary file (1.29 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/dynoption.cpython-310.pyc ADDED
Binary file (2.29 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/editor.cpython-310.pyc ADDED
Binary file (47.3 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/filelist.cpython-310.pyc ADDED
Binary file (3.7 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/format.cpython-310.pyc ADDED
Binary file (13.8 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/grep.cpython-310.pyc ADDED
Binary file (7.86 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/help.cpython-310.pyc ADDED
Binary file (10.6 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/help_about.cpython-310.pyc ADDED
Binary file (7.85 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/history.cpython-310.pyc ADDED
Binary file (3.65 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/hyperparser.cpython-310.pyc ADDED
Binary file (7.27 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/idle.cpython-310.pyc ADDED
Binary file (326 Bytes). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/iomenu.cpython-310.pyc ADDED
Binary file (12 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/macosx.cpython-310.pyc ADDED
Binary file (8.05 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/mainmenu.cpython-310.pyc ADDED
Binary file (3.26 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/parenmatch.cpython-310.pyc ADDED
Binary file (6.37 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/pathbrowser.cpython-310.pyc ADDED
Binary file (3.78 kB). View file
 
evalkit_cambrian/lib/python3.10/idlelib/__pycache__/percolator.cpython-310.pyc ADDED
Binary file (3.98 kB). View file