Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/INSTALLER +1 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/LICENSE +20 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/METADATA +46 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/RECORD +43 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/WHEEL +6 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/top_level.txt +2 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/__pycache__/_cuda_bindings_redirector.cpython-312.pyc +0 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/__pycache__/isympy.cpython-312.pyc +0 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/__pycache__/six.cpython-312.pyc +0 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/__pycache__/sqlitedict.cpython-312.pyc +0 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/_yaml/__init__.py +33 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/aiohappyeyeballs-2.5.0.dist-info/INSTALLER +1 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/aiohappyeyeballs-2.5.0.dist-info/LICENSE +279 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/aiohappyeyeballs-2.5.0.dist-info/METADATA +123 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/aiohappyeyeballs-2.5.0.dist-info/RECORD +16 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/aiohappyeyeballs-2.5.0.dist-info/WHEEL +4 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/aiosignal/__init__.py +36 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/aiosignal/py.typed +0 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/colorama-0.4.6.dist-info/INSTALLER +1 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/colorama-0.4.6.dist-info/METADATA +441 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/colorama-0.4.6.dist-info/RECORD +31 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/colorama-0.4.6.dist-info/WHEEL +5 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/cuda_bindings-12.9.4.dist-info/INSTALLER +1 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/cuda_bindings-12.9.4.dist-info/METADATA +50 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/cuda_bindings-12.9.4.dist-info/RECORD +145 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/cuda_bindings-12.9.4.dist-info/WHEEL +6 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/cuda_bindings-12.9.4.dist-info/top_level.txt +1 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/datasets-2.20.0.dist-info/AUTHORS +8 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/datasets-2.20.0.dist-info/INSTALLER +1 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/datasets-2.20.0.dist-info/LICENSE +202 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/datasets-2.20.0.dist-info/METADATA +368 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/datasets-2.20.0.dist-info/RECORD +279 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/datasets-2.20.0.dist-info/REQUESTED +0 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/datasets-2.20.0.dist-info/WHEEL +5 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/datasets-2.20.0.dist-info/entry_points.txt +3 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/datasets-2.20.0.dist-info/top_level.txt +1 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/evaluate-0.4.6.dist-info/INSTALLER +1 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/evaluate-0.4.6.dist-info/LICENSE +202 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/evaluate-0.4.6.dist-info/METADATA +209 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/evaluate-0.4.6.dist-info/RECORD +65 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/evaluate-0.4.6.dist-info/REQUESTED +0 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/evaluate-0.4.6.dist-info/WHEEL +5 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/evaluate-0.4.6.dist-info/entry_points.txt +3 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/evaluate-0.4.6.dist-info/top_level.txt +1 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/filelock/__init__.py +70 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/filelock/_api.py +403 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/filelock/_error.py +30 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/filelock/_soft.py +47 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/filelock/_unix.py +68 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/filelock/_util.py +52 -0
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2017-2021 Ingy döt Net
|
| 2 |
+
Copyright (c) 2006-2016 Kirill Simonov
|
| 3 |
+
|
| 4 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
| 5 |
+
this software and associated documentation files (the "Software"), to deal in
|
| 6 |
+
the Software without restriction, including without limitation the rights to
|
| 7 |
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
| 8 |
+
of the Software, and to permit persons to whom the Software is furnished to do
|
| 9 |
+
so, subject to the following conditions:
|
| 10 |
+
|
| 11 |
+
The above copyright notice and this permission notice shall be included in all
|
| 12 |
+
copies or substantial portions of the Software.
|
| 13 |
+
|
| 14 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 15 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 16 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 17 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 18 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 19 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 20 |
+
SOFTWARE.
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/METADATA
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: PyYAML
|
| 3 |
+
Version: 6.0.2
|
| 4 |
+
Summary: YAML parser and emitter for Python
|
| 5 |
+
Home-page: https://pyyaml.org/
|
| 6 |
+
Download-URL: https://pypi.org/project/PyYAML/
|
| 7 |
+
Author: Kirill Simonov
|
| 8 |
+
Author-email: xi@resolvent.net
|
| 9 |
+
License: MIT
|
| 10 |
+
Project-URL: Bug Tracker, https://github.com/yaml/pyyaml/issues
|
| 11 |
+
Project-URL: CI, https://github.com/yaml/pyyaml/actions
|
| 12 |
+
Project-URL: Documentation, https://pyyaml.org/wiki/PyYAMLDocumentation
|
| 13 |
+
Project-URL: Mailing lists, http://lists.sourceforge.net/lists/listinfo/yaml-core
|
| 14 |
+
Project-URL: Source Code, https://github.com/yaml/pyyaml
|
| 15 |
+
Platform: Any
|
| 16 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 17 |
+
Classifier: Intended Audience :: Developers
|
| 18 |
+
Classifier: License :: OSI Approved :: MIT License
|
| 19 |
+
Classifier: Operating System :: OS Independent
|
| 20 |
+
Classifier: Programming Language :: Cython
|
| 21 |
+
Classifier: Programming Language :: Python
|
| 22 |
+
Classifier: Programming Language :: Python :: 3
|
| 23 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 24 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 25 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 26 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 27 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 28 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 29 |
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
| 30 |
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
| 31 |
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
| 32 |
+
Classifier: Topic :: Text Processing :: Markup
|
| 33 |
+
Requires-Python: >=3.8
|
| 34 |
+
License-File: LICENSE
|
| 35 |
+
|
| 36 |
+
YAML is a data serialization format designed for human readability
|
| 37 |
+
and interaction with scripting languages. PyYAML is a YAML parser
|
| 38 |
+
and emitter for Python.
|
| 39 |
+
|
| 40 |
+
PyYAML features a complete YAML 1.1 parser, Unicode support, pickle
|
| 41 |
+
support, capable extension API, and sensible error messages. PyYAML
|
| 42 |
+
supports standard YAML tags and provides Python-specific tags that
|
| 43 |
+
allow to represent an arbitrary Python object.
|
| 44 |
+
|
| 45 |
+
PyYAML is applicable for a broad range of tasks from complex
|
| 46 |
+
configuration files to object serialization and persistence.
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/RECORD
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PyYAML-6.0.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 2 |
+
PyYAML-6.0.2.dist-info/LICENSE,sha256=jTko-dxEkP1jVwfLiOsmvXZBAqcoKVQwfT5RZ6V36KQ,1101
|
| 3 |
+
PyYAML-6.0.2.dist-info/METADATA,sha256=9-odFB5seu4pGPcEv7E8iyxNF51_uKnaNGjLAhz2lto,2060
|
| 4 |
+
PyYAML-6.0.2.dist-info/RECORD,,
|
| 5 |
+
PyYAML-6.0.2.dist-info/WHEEL,sha256=1pP4yhrbipRtdbm4Rbg3aoTjzc7pDhpHKO0CEY24CNM,152
|
| 6 |
+
PyYAML-6.0.2.dist-info/top_level.txt,sha256=rpj0IVMTisAjh_1vG3Ccf9v5jpCQwAz6cD1IVU5ZdhQ,11
|
| 7 |
+
_yaml/__init__.py,sha256=04Ae_5osxahpJHa3XBZUAf4wi6XX32gR8D6X6p64GEA,1402
|
| 8 |
+
_yaml/__pycache__/__init__.cpython-312.pyc,,
|
| 9 |
+
yaml/__init__.py,sha256=N35S01HMesFTe0aRRMWkPj0Pa8IEbHpE9FK7cr5Bdtw,12311
|
| 10 |
+
yaml/__pycache__/__init__.cpython-312.pyc,,
|
| 11 |
+
yaml/__pycache__/composer.cpython-312.pyc,,
|
| 12 |
+
yaml/__pycache__/constructor.cpython-312.pyc,,
|
| 13 |
+
yaml/__pycache__/cyaml.cpython-312.pyc,,
|
| 14 |
+
yaml/__pycache__/dumper.cpython-312.pyc,,
|
| 15 |
+
yaml/__pycache__/emitter.cpython-312.pyc,,
|
| 16 |
+
yaml/__pycache__/error.cpython-312.pyc,,
|
| 17 |
+
yaml/__pycache__/events.cpython-312.pyc,,
|
| 18 |
+
yaml/__pycache__/loader.cpython-312.pyc,,
|
| 19 |
+
yaml/__pycache__/nodes.cpython-312.pyc,,
|
| 20 |
+
yaml/__pycache__/parser.cpython-312.pyc,,
|
| 21 |
+
yaml/__pycache__/reader.cpython-312.pyc,,
|
| 22 |
+
yaml/__pycache__/representer.cpython-312.pyc,,
|
| 23 |
+
yaml/__pycache__/resolver.cpython-312.pyc,,
|
| 24 |
+
yaml/__pycache__/scanner.cpython-312.pyc,,
|
| 25 |
+
yaml/__pycache__/serializer.cpython-312.pyc,,
|
| 26 |
+
yaml/__pycache__/tokens.cpython-312.pyc,,
|
| 27 |
+
yaml/_yaml.cpython-312-x86_64-linux-gnu.so,sha256=PJFgxnc0f5Dyde6WKmBm6fZWapawmWl7aBRruXjRA80,2481784
|
| 28 |
+
yaml/composer.py,sha256=_Ko30Wr6eDWUeUpauUGT3Lcg9QPBnOPVlTnIMRGJ9FM,4883
|
| 29 |
+
yaml/constructor.py,sha256=kNgkfaeLUkwQYY_Q6Ff1Tz2XVw_pG1xVE9Ak7z-viLA,28639
|
| 30 |
+
yaml/cyaml.py,sha256=6ZrAG9fAYvdVe2FK_w0hmXoG7ZYsoYUwapG8CiC72H0,3851
|
| 31 |
+
yaml/dumper.py,sha256=PLctZlYwZLp7XmeUdwRuv4nYOZ2UBnDIUy8-lKfLF-o,2837
|
| 32 |
+
yaml/emitter.py,sha256=jghtaU7eFwg31bG0B7RZea_29Adi9CKmXq_QjgQpCkQ,43006
|
| 33 |
+
yaml/error.py,sha256=Ah9z-toHJUbE9j-M8YpxgSRM5CgLCcwVzJgLLRF2Fxo,2533
|
| 34 |
+
yaml/events.py,sha256=50_TksgQiE4up-lKo_V-nBy-tAIxkIPQxY5qDhKCeHw,2445
|
| 35 |
+
yaml/loader.py,sha256=UVa-zIqmkFSCIYq_PgSGm4NSJttHY2Rf_zQ4_b1fHN0,2061
|
| 36 |
+
yaml/nodes.py,sha256=gPKNj8pKCdh2d4gr3gIYINnPOaOxGhJAUiYhGRnPE84,1440
|
| 37 |
+
yaml/parser.py,sha256=ilWp5vvgoHFGzvOZDItFoGjD6D42nhlZrZyjAwa0oJo,25495
|
| 38 |
+
yaml/reader.py,sha256=0dmzirOiDG4Xo41RnuQS7K9rkY3xjHiVasfDMNTqCNw,6794
|
| 39 |
+
yaml/representer.py,sha256=IuWP-cAW9sHKEnS0gCqSa894k1Bg4cgTxaDwIcbRQ-Y,14190
|
| 40 |
+
yaml/resolver.py,sha256=9L-VYfm4mWHxUD1Vg4X7rjDRK_7VZd6b92wzq7Y2IKY,9004
|
| 41 |
+
yaml/scanner.py,sha256=YEM3iLZSaQwXcQRg2l2R4MdT0zGP2F9eHkKGKnHyWQY,51279
|
| 42 |
+
yaml/serializer.py,sha256=ChuFgmhU01hj4xgI8GaKv6vfM2Bujwa9i7d2FAHj7cA,4165
|
| 43 |
+
yaml/tokens.py,sha256=lTQIzSVw8Mg9wv459-TjiOQe6wVziqaRlqX2_89rp54,2573
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: bdist_wheel (0.44.0)
|
| 3 |
+
Root-Is-Purelib: false
|
| 4 |
+
Tag: cp312-cp312-manylinux_2_17_x86_64
|
| 5 |
+
Tag: cp312-cp312-manylinux2014_x86_64
|
| 6 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_yaml
|
| 2 |
+
yaml
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/__pycache__/_cuda_bindings_redirector.cpython-312.pyc
ADDED
|
Binary file (1.15 kB). View file
|
|
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/__pycache__/isympy.cpython-312.pyc
ADDED
|
Binary file (11.1 kB). View file
|
|
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/__pycache__/six.cpython-312.pyc
ADDED
|
Binary file (41.3 kB). View file
|
|
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/__pycache__/sqlitedict.cpython-312.pyc
ADDED
|
Binary file (28.5 kB). View file
|
|
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/_yaml/__init__.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This is a stub package designed to roughly emulate the _yaml
|
| 2 |
+
# extension module, which previously existed as a standalone module
|
| 3 |
+
# and has been moved into the `yaml` package namespace.
|
| 4 |
+
# It does not perfectly mimic its old counterpart, but should get
|
| 5 |
+
# close enough for anyone who's relying on it even when they shouldn't.
|
| 6 |
+
import yaml
|
| 7 |
+
|
| 8 |
+
# in some circumstances, the yaml module we imoprted may be from a different version, so we need
|
| 9 |
+
# to tread carefully when poking at it here (it may not have the attributes we expect)
|
| 10 |
+
if not getattr(yaml, '__with_libyaml__', False):
|
| 11 |
+
from sys import version_info
|
| 12 |
+
|
| 13 |
+
exc = ModuleNotFoundError if version_info >= (3, 6) else ImportError
|
| 14 |
+
raise exc("No module named '_yaml'")
|
| 15 |
+
else:
|
| 16 |
+
from yaml._yaml import *
|
| 17 |
+
import warnings
|
| 18 |
+
warnings.warn(
|
| 19 |
+
'The _yaml extension module is now located at yaml._yaml'
|
| 20 |
+
' and its location is subject to change. To use the'
|
| 21 |
+
' LibYAML-based parser and emitter, import from `yaml`:'
|
| 22 |
+
' `from yaml import CLoader as Loader, CDumper as Dumper`.',
|
| 23 |
+
DeprecationWarning
|
| 24 |
+
)
|
| 25 |
+
del warnings
|
| 26 |
+
# Don't `del yaml` here because yaml is actually an existing
|
| 27 |
+
# namespace member of _yaml.
|
| 28 |
+
|
| 29 |
+
__name__ = '_yaml'
|
| 30 |
+
# If the module is top-level (i.e. not a part of any specific package)
|
| 31 |
+
# then the attribute should be set to ''.
|
| 32 |
+
# https://docs.python.org/3.8/library/types.html
|
| 33 |
+
__package__ = ''
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/aiohappyeyeballs-2.5.0.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/aiohappyeyeballs-2.5.0.dist-info/LICENSE
ADDED
|
@@ -0,0 +1,279 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
A. HISTORY OF THE SOFTWARE
|
| 2 |
+
==========================
|
| 3 |
+
|
| 4 |
+
Python was created in the early 1990s by Guido van Rossum at Stichting
|
| 5 |
+
Mathematisch Centrum (CWI, see https://www.cwi.nl) in the Netherlands
|
| 6 |
+
as a successor of a language called ABC. Guido remains Python's
|
| 7 |
+
principal author, although it includes many contributions from others.
|
| 8 |
+
|
| 9 |
+
In 1995, Guido continued his work on Python at the Corporation for
|
| 10 |
+
National Research Initiatives (CNRI, see https://www.cnri.reston.va.us)
|
| 11 |
+
in Reston, Virginia where he released several versions of the
|
| 12 |
+
software.
|
| 13 |
+
|
| 14 |
+
In May 2000, Guido and the Python core development team moved to
|
| 15 |
+
BeOpen.com to form the BeOpen PythonLabs team. In October of the same
|
| 16 |
+
year, the PythonLabs team moved to Digital Creations, which became
|
| 17 |
+
Zope Corporation. In 2001, the Python Software Foundation (PSF, see
|
| 18 |
+
https://www.python.org/psf/) was formed, a non-profit organization
|
| 19 |
+
created specifically to own Python-related Intellectual Property.
|
| 20 |
+
Zope Corporation was a sponsoring member of the PSF.
|
| 21 |
+
|
| 22 |
+
All Python releases are Open Source (see https://opensource.org for
|
| 23 |
+
the Open Source Definition). Historically, most, but not all, Python
|
| 24 |
+
releases have also been GPL-compatible; the table below summarizes
|
| 25 |
+
the various releases.
|
| 26 |
+
|
| 27 |
+
Release Derived Year Owner GPL-
|
| 28 |
+
from compatible? (1)
|
| 29 |
+
|
| 30 |
+
0.9.0 thru 1.2 1991-1995 CWI yes
|
| 31 |
+
1.3 thru 1.5.2 1.2 1995-1999 CNRI yes
|
| 32 |
+
1.6 1.5.2 2000 CNRI no
|
| 33 |
+
2.0 1.6 2000 BeOpen.com no
|
| 34 |
+
1.6.1 1.6 2001 CNRI yes (2)
|
| 35 |
+
2.1 2.0+1.6.1 2001 PSF no
|
| 36 |
+
2.0.1 2.0+1.6.1 2001 PSF yes
|
| 37 |
+
2.1.1 2.1+2.0.1 2001 PSF yes
|
| 38 |
+
2.1.2 2.1.1 2002 PSF yes
|
| 39 |
+
2.1.3 2.1.2 2002 PSF yes
|
| 40 |
+
2.2 and above 2.1.1 2001-now PSF yes
|
| 41 |
+
|
| 42 |
+
Footnotes:
|
| 43 |
+
|
| 44 |
+
(1) GPL-compatible doesn't mean that we're distributing Python under
|
| 45 |
+
the GPL. All Python licenses, unlike the GPL, let you distribute
|
| 46 |
+
a modified version without making your changes open source. The
|
| 47 |
+
GPL-compatible licenses make it possible to combine Python with
|
| 48 |
+
other software that is released under the GPL; the others don't.
|
| 49 |
+
|
| 50 |
+
(2) According to Richard Stallman, 1.6.1 is not GPL-compatible,
|
| 51 |
+
because its license has a choice of law clause. According to
|
| 52 |
+
CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1
|
| 53 |
+
is "not incompatible" with the GPL.
|
| 54 |
+
|
| 55 |
+
Thanks to the many outside volunteers who have worked under Guido's
|
| 56 |
+
direction to make these releases possible.
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON
|
| 60 |
+
===============================================================
|
| 61 |
+
|
| 62 |
+
Python software and documentation are licensed under the
|
| 63 |
+
Python Software Foundation License Version 2.
|
| 64 |
+
|
| 65 |
+
Starting with Python 3.8.6, examples, recipes, and other code in
|
| 66 |
+
the documentation are dual licensed under the PSF License Version 2
|
| 67 |
+
and the Zero-Clause BSD license.
|
| 68 |
+
|
| 69 |
+
Some software incorporated into Python is under different licenses.
|
| 70 |
+
The licenses are listed with code falling under that license.
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
|
| 74 |
+
--------------------------------------------
|
| 75 |
+
|
| 76 |
+
1. This LICENSE AGREEMENT is between the Python Software Foundation
|
| 77 |
+
("PSF"), and the Individual or Organization ("Licensee") accessing and
|
| 78 |
+
otherwise using this software ("Python") in source or binary form and
|
| 79 |
+
its associated documentation.
|
| 80 |
+
|
| 81 |
+
2. Subject to the terms and conditions of this License Agreement, PSF hereby
|
| 82 |
+
grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
|
| 83 |
+
analyze, test, perform and/or display publicly, prepare derivative works,
|
| 84 |
+
distribute, and otherwise use Python alone or in any derivative version,
|
| 85 |
+
provided, however, that PSF's License Agreement and PSF's notice of copyright,
|
| 86 |
+
i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
| 87 |
+
2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Python Software Foundation;
|
| 88 |
+
All Rights Reserved" are retained in Python alone or in any derivative version
|
| 89 |
+
prepared by Licensee.
|
| 90 |
+
|
| 91 |
+
3. In the event Licensee prepares a derivative work that is based on
|
| 92 |
+
or incorporates Python or any part thereof, and wants to make
|
| 93 |
+
the derivative work available to others as provided herein, then
|
| 94 |
+
Licensee hereby agrees to include in any such work a brief summary of
|
| 95 |
+
the changes made to Python.
|
| 96 |
+
|
| 97 |
+
4. PSF is making Python available to Licensee on an "AS IS"
|
| 98 |
+
basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
| 99 |
+
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
|
| 100 |
+
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
|
| 101 |
+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
|
| 102 |
+
INFRINGE ANY THIRD PARTY RIGHTS.
|
| 103 |
+
|
| 104 |
+
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
|
| 105 |
+
FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
|
| 106 |
+
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
|
| 107 |
+
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
| 108 |
+
|
| 109 |
+
6. This License Agreement will automatically terminate upon a material
|
| 110 |
+
breach of its terms and conditions.
|
| 111 |
+
|
| 112 |
+
7. Nothing in this License Agreement shall be deemed to create any
|
| 113 |
+
relationship of agency, partnership, or joint venture between PSF and
|
| 114 |
+
Licensee. This License Agreement does not grant permission to use PSF
|
| 115 |
+
trademarks or trade name in a trademark sense to endorse or promote
|
| 116 |
+
products or services of Licensee, or any third party.
|
| 117 |
+
|
| 118 |
+
8. By copying, installing or otherwise using Python, Licensee
|
| 119 |
+
agrees to be bound by the terms and conditions of this License
|
| 120 |
+
Agreement.
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0
|
| 124 |
+
-------------------------------------------
|
| 125 |
+
|
| 126 |
+
BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1
|
| 127 |
+
|
| 128 |
+
1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an
|
| 129 |
+
office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the
|
| 130 |
+
Individual or Organization ("Licensee") accessing and otherwise using
|
| 131 |
+
this software in source or binary form and its associated
|
| 132 |
+
documentation ("the Software").
|
| 133 |
+
|
| 134 |
+
2. Subject to the terms and conditions of this BeOpen Python License
|
| 135 |
+
Agreement, BeOpen hereby grants Licensee a non-exclusive,
|
| 136 |
+
royalty-free, world-wide license to reproduce, analyze, test, perform
|
| 137 |
+
and/or display publicly, prepare derivative works, distribute, and
|
| 138 |
+
otherwise use the Software alone or in any derivative version,
|
| 139 |
+
provided, however, that the BeOpen Python License is retained in the
|
| 140 |
+
Software, alone or in any derivative version prepared by Licensee.
|
| 141 |
+
|
| 142 |
+
3. BeOpen is making the Software available to Licensee on an "AS IS"
|
| 143 |
+
basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
| 144 |
+
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND
|
| 145 |
+
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
|
| 146 |
+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT
|
| 147 |
+
INFRINGE ANY THIRD PARTY RIGHTS.
|
| 148 |
+
|
| 149 |
+
4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE
|
| 150 |
+
SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS
|
| 151 |
+
AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY
|
| 152 |
+
DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
| 153 |
+
|
| 154 |
+
5. This License Agreement will automatically terminate upon a material
|
| 155 |
+
breach of its terms and conditions.
|
| 156 |
+
|
| 157 |
+
6. This License Agreement shall be governed by and interpreted in all
|
| 158 |
+
respects by the law of the State of California, excluding conflict of
|
| 159 |
+
law provisions. Nothing in this License Agreement shall be deemed to
|
| 160 |
+
create any relationship of agency, partnership, or joint venture
|
| 161 |
+
between BeOpen and Licensee. This License Agreement does not grant
|
| 162 |
+
permission to use BeOpen trademarks or trade names in a trademark
|
| 163 |
+
sense to endorse or promote products or services of Licensee, or any
|
| 164 |
+
third party. As an exception, the "BeOpen Python" logos available at
|
| 165 |
+
http://www.pythonlabs.com/logos.html may be used according to the
|
| 166 |
+
permissions granted on that web page.
|
| 167 |
+
|
| 168 |
+
7. By copying, installing or otherwise using the software, Licensee
|
| 169 |
+
agrees to be bound by the terms and conditions of this License
|
| 170 |
+
Agreement.
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1
|
| 174 |
+
---------------------------------------
|
| 175 |
+
|
| 176 |
+
1. This LICENSE AGREEMENT is between the Corporation for National
|
| 177 |
+
Research Initiatives, having an office at 1895 Preston White Drive,
|
| 178 |
+
Reston, VA 20191 ("CNRI"), and the Individual or Organization
|
| 179 |
+
("Licensee") accessing and otherwise using Python 1.6.1 software in
|
| 180 |
+
source or binary form and its associated documentation.
|
| 181 |
+
|
| 182 |
+
2. Subject to the terms and conditions of this License Agreement, CNRI
|
| 183 |
+
hereby grants Licensee a nonexclusive, royalty-free, world-wide
|
| 184 |
+
license to reproduce, analyze, test, perform and/or display publicly,
|
| 185 |
+
prepare derivative works, distribute, and otherwise use Python 1.6.1
|
| 186 |
+
alone or in any derivative version, provided, however, that CNRI's
|
| 187 |
+
License Agreement and CNRI's notice of copyright, i.e., "Copyright (c)
|
| 188 |
+
1995-2001 Corporation for National Research Initiatives; All Rights
|
| 189 |
+
Reserved" are retained in Python 1.6.1 alone or in any derivative
|
| 190 |
+
version prepared by Licensee. Alternately, in lieu of CNRI's License
|
| 191 |
+
Agreement, Licensee may substitute the following text (omitting the
|
| 192 |
+
quotes): "Python 1.6.1 is made available subject to the terms and
|
| 193 |
+
conditions in CNRI's License Agreement. This Agreement together with
|
| 194 |
+
Python 1.6.1 may be located on the internet using the following
|
| 195 |
+
unique, persistent identifier (known as a handle): 1895.22/1013. This
|
| 196 |
+
Agreement may also be obtained from a proxy server on the internet
|
| 197 |
+
using the following URL: http://hdl.handle.net/1895.22/1013".
|
| 198 |
+
|
| 199 |
+
3. In the event Licensee prepares a derivative work that is based on
|
| 200 |
+
or incorporates Python 1.6.1 or any part thereof, and wants to make
|
| 201 |
+
the derivative work available to others as provided herein, then
|
| 202 |
+
Licensee hereby agrees to include in any such work a brief summary of
|
| 203 |
+
the changes made to Python 1.6.1.
|
| 204 |
+
|
| 205 |
+
4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS"
|
| 206 |
+
basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
| 207 |
+
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND
|
| 208 |
+
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
|
| 209 |
+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT
|
| 210 |
+
INFRINGE ANY THIRD PARTY RIGHTS.
|
| 211 |
+
|
| 212 |
+
5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
|
| 213 |
+
1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
|
| 214 |
+
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1,
|
| 215 |
+
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
| 216 |
+
|
| 217 |
+
6. This License Agreement will automatically terminate upon a material
|
| 218 |
+
breach of its terms and conditions.
|
| 219 |
+
|
| 220 |
+
7. This License Agreement shall be governed by the federal
|
| 221 |
+
intellectual property law of the United States, including without
|
| 222 |
+
limitation the federal copyright law, and, to the extent such
|
| 223 |
+
U.S. federal law does not apply, by the law of the Commonwealth of
|
| 224 |
+
Virginia, excluding Virginia's conflict of law provisions.
|
| 225 |
+
Notwithstanding the foregoing, with regard to derivative works based
|
| 226 |
+
on Python 1.6.1 that incorporate non-separable material that was
|
| 227 |
+
previously distributed under the GNU General Public License (GPL), the
|
| 228 |
+
law of the Commonwealth of Virginia shall govern this License
|
| 229 |
+
Agreement only as to issues arising under or with respect to
|
| 230 |
+
Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this
|
| 231 |
+
License Agreement shall be deemed to create any relationship of
|
| 232 |
+
agency, partnership, or joint venture between CNRI and Licensee. This
|
| 233 |
+
License Agreement does not grant permission to use CNRI trademarks or
|
| 234 |
+
trade name in a trademark sense to endorse or promote products or
|
| 235 |
+
services of Licensee, or any third party.
|
| 236 |
+
|
| 237 |
+
8. By clicking on the "ACCEPT" button where indicated, or by copying,
|
| 238 |
+
installing or otherwise using Python 1.6.1, Licensee agrees to be
|
| 239 |
+
bound by the terms and conditions of this License Agreement.
|
| 240 |
+
|
| 241 |
+
ACCEPT
|
| 242 |
+
|
| 243 |
+
|
| 244 |
+
CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2
|
| 245 |
+
--------------------------------------------------
|
| 246 |
+
|
| 247 |
+
Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam,
|
| 248 |
+
The Netherlands. All rights reserved.
|
| 249 |
+
|
| 250 |
+
Permission to use, copy, modify, and distribute this software and its
|
| 251 |
+
documentation for any purpose and without fee is hereby granted,
|
| 252 |
+
provided that the above copyright notice appear in all copies and that
|
| 253 |
+
both that copyright notice and this permission notice appear in
|
| 254 |
+
supporting documentation, and that the name of Stichting Mathematisch
|
| 255 |
+
Centrum or CWI not be used in advertising or publicity pertaining to
|
| 256 |
+
distribution of the software without specific, written prior
|
| 257 |
+
permission.
|
| 258 |
+
|
| 259 |
+
STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
|
| 260 |
+
THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
| 261 |
+
FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
|
| 262 |
+
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 263 |
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
| 264 |
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
| 265 |
+
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 266 |
+
|
| 267 |
+
ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION
|
| 268 |
+
----------------------------------------------------------------------
|
| 269 |
+
|
| 270 |
+
Permission to use, copy, modify, and/or distribute this software for any
|
| 271 |
+
purpose with or without fee is hereby granted.
|
| 272 |
+
|
| 273 |
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
| 274 |
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
| 275 |
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
| 276 |
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
| 277 |
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
| 278 |
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
| 279 |
+
PERFORMANCE OF THIS SOFTWARE.
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/aiohappyeyeballs-2.5.0.dist-info/METADATA
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.3
|
| 2 |
+
Name: aiohappyeyeballs
|
| 3 |
+
Version: 2.5.0
|
| 4 |
+
Summary: Happy Eyeballs for asyncio
|
| 5 |
+
License: PSF-2.0
|
| 6 |
+
Author: J. Nick Koston
|
| 7 |
+
Author-email: nick@koston.org
|
| 8 |
+
Requires-Python: >=3.9
|
| 9 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 10 |
+
Classifier: Intended Audience :: Developers
|
| 11 |
+
Classifier: Natural Language :: English
|
| 12 |
+
Classifier: Operating System :: OS Independent
|
| 13 |
+
Classifier: Topic :: Software Development :: Libraries
|
| 14 |
+
Classifier: Programming Language :: Python :: 3
|
| 15 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 16 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 17 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 18 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 19 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 20 |
+
Classifier: License :: OSI Approved :: Python Software Foundation License
|
| 21 |
+
Project-URL: Bug Tracker, https://github.com/aio-libs/aiohappyeyeballs/issues
|
| 22 |
+
Project-URL: Changelog, https://github.com/aio-libs/aiohappyeyeballs/blob/main/CHANGELOG.md
|
| 23 |
+
Project-URL: Documentation, https://aiohappyeyeballs.readthedocs.io
|
| 24 |
+
Project-URL: Repository, https://github.com/aio-libs/aiohappyeyeballs
|
| 25 |
+
Description-Content-Type: text/markdown
|
| 26 |
+
|
| 27 |
+
# aiohappyeyeballs
|
| 28 |
+
|
| 29 |
+
<p align="center">
|
| 30 |
+
<a href="https://github.com/aio-libs/aiohappyeyeballs/actions/workflows/ci.yml?query=branch%3Amain">
|
| 31 |
+
<img src="https://img.shields.io/github/actions/workflow/status/aio-libs/aiohappyeyeballs/ci-cd.yml?branch=main&label=CI&logo=github&style=flat-square" alt="CI Status" >
|
| 32 |
+
</a>
|
| 33 |
+
<a href="https://aiohappyeyeballs.readthedocs.io">
|
| 34 |
+
<img src="https://img.shields.io/readthedocs/aiohappyeyeballs.svg?logo=read-the-docs&logoColor=fff&style=flat-square" alt="Documentation Status">
|
| 35 |
+
</a>
|
| 36 |
+
<a href="https://codecov.io/gh/aio-libs/aiohappyeyeballs">
|
| 37 |
+
<img src="https://img.shields.io/codecov/c/github/aio-libs/aiohappyeyeballs.svg?logo=codecov&logoColor=fff&style=flat-square" alt="Test coverage percentage">
|
| 38 |
+
</a>
|
| 39 |
+
</p>
|
| 40 |
+
<p align="center">
|
| 41 |
+
<a href="https://python-poetry.org/">
|
| 42 |
+
<img src="https://img.shields.io/badge/packaging-poetry-299bd7?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAASCAYAAABrXO8xAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJJSURBVHgBfZLPa1NBEMe/s7tNXoxW1KJQKaUHkXhQvHgW6UHQQ09CBS/6V3hKc/AP8CqCrUcpmop3Cx48eDB4yEECjVQrlZb80CRN8t6OM/teagVxYZi38+Yz853dJbzoMV3MM8cJUcLMSUKIE8AzQ2PieZzFxEJOHMOgMQQ+dUgSAckNXhapU/NMhDSWLs1B24A8sO1xrN4NECkcAC9ASkiIJc6k5TRiUDPhnyMMdhKc+Zx19l6SgyeW76BEONY9exVQMzKExGKwwPsCzza7KGSSWRWEQhyEaDXp6ZHEr416ygbiKYOd7TEWvvcQIeusHYMJGhTwF9y7sGnSwaWyFAiyoxzqW0PM/RjghPxF2pWReAowTEXnDh0xgcLs8l2YQmOrj3N7ByiqEoH0cARs4u78WgAVkoEDIDoOi3AkcLOHU60RIg5wC4ZuTC7FaHKQm8Hq1fQuSOBvX/sodmNJSB5geaF5CPIkUeecdMxieoRO5jz9bheL6/tXjrwCyX/UYBUcjCaWHljx1xiX6z9xEjkYAzbGVnB8pvLmyXm9ep+W8CmsSHQQY77Zx1zboxAV0w7ybMhQmfqdmmw3nEp1I0Z+FGO6M8LZdoyZnuzzBdjISicKRnpxzI9fPb+0oYXsNdyi+d3h9bm9MWYHFtPeIZfLwzmFDKy1ai3p+PDls1Llz4yyFpferxjnyjJDSEy9CaCx5m2cJPerq6Xm34eTrZt3PqxYO1XOwDYZrFlH1fWnpU38Y9HRze3lj0vOujZcXKuuXm3jP+s3KbZVra7y2EAAAAAASUVORK5CYII=" alt="Poetry">
|
| 43 |
+
</a>
|
| 44 |
+
<a href="https://github.com/astral-sh/ruff">
|
| 45 |
+
<img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff">
|
| 46 |
+
</a>
|
| 47 |
+
<a href="https://github.com/pre-commit/pre-commit">
|
| 48 |
+
<img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=flat-square" alt="pre-commit">
|
| 49 |
+
</a>
|
| 50 |
+
</p>
|
| 51 |
+
<p align="center">
|
| 52 |
+
<a href="https://pypi.org/project/aiohappyeyeballs/">
|
| 53 |
+
<img src="https://img.shields.io/pypi/v/aiohappyeyeballs.svg?logo=python&logoColor=fff&style=flat-square" alt="PyPI Version">
|
| 54 |
+
</a>
|
| 55 |
+
<img src="https://img.shields.io/pypi/pyversions/aiohappyeyeballs.svg?style=flat-square&logo=python&logoColor=fff" alt="Supported Python versions">
|
| 56 |
+
<img src="https://img.shields.io/pypi/l/aiohappyeyeballs.svg?style=flat-square" alt="License">
|
| 57 |
+
</p>
|
| 58 |
+
|
| 59 |
+
---
|
| 60 |
+
|
| 61 |
+
**Documentation**: <a href="https://aiohappyeyeballs.readthedocs.io" target="_blank">https://aiohappyeyeballs.readthedocs.io </a>
|
| 62 |
+
|
| 63 |
+
**Source Code**: <a href="https://github.com/aio-libs/aiohappyeyeballs" target="_blank">https://github.com/aio-libs/aiohappyeyeballs </a>
|
| 64 |
+
|
| 65 |
+
---
|
| 66 |
+
|
| 67 |
+
[Happy Eyeballs](https://en.wikipedia.org/wiki/Happy_Eyeballs)
|
| 68 |
+
([RFC 8305](https://www.rfc-editor.org/rfc/rfc8305.html))
|
| 69 |
+
|
| 70 |
+
## Use case
|
| 71 |
+
|
| 72 |
+
This library exists to allow connecting with
|
| 73 |
+
[Happy Eyeballs](https://en.wikipedia.org/wiki/Happy_Eyeballs)
|
| 74 |
+
([RFC 8305](https://www.rfc-editor.org/rfc/rfc8305.html))
|
| 75 |
+
when you
|
| 76 |
+
already have a list of addrinfo and not a DNS name.
|
| 77 |
+
|
| 78 |
+
The stdlib version of `loop.create_connection()`
|
| 79 |
+
will only work when you pass in an unresolved name which
|
| 80 |
+
is not a good fit when using DNS caching or resolving
|
| 81 |
+
names via another method such as `zeroconf`.
|
| 82 |
+
|
| 83 |
+
## Installation
|
| 84 |
+
|
| 85 |
+
Install this via pip (or your favourite package manager):
|
| 86 |
+
|
| 87 |
+
`pip install aiohappyeyeballs`
|
| 88 |
+
|
| 89 |
+
## License
|
| 90 |
+
|
| 91 |
+
[aiohappyeyeballs is licensed under the same terms as cpython itself.](https://github.com/python/cpython/blob/main/LICENSE)
|
| 92 |
+
|
| 93 |
+
## Example usage
|
| 94 |
+
|
| 95 |
+
```python
|
| 96 |
+
|
| 97 |
+
addr_infos = await loop.getaddrinfo("example.org", 80)
|
| 98 |
+
|
| 99 |
+
socket = await start_connection(addr_infos)
|
| 100 |
+
socket = await start_connection(addr_infos, local_addr_infos=local_addr_infos, happy_eyeballs_delay=0.2)
|
| 101 |
+
|
| 102 |
+
transport, protocol = await loop.create_connection(
|
| 103 |
+
MyProtocol, sock=socket, ...)
|
| 104 |
+
|
| 105 |
+
# Remove the first address for each family from addr_info
|
| 106 |
+
pop_addr_infos_interleave(addr_info, 1)
|
| 107 |
+
|
| 108 |
+
# Remove all matching address from addr_info
|
| 109 |
+
remove_addr_infos(addr_info, "dead::beef::")
|
| 110 |
+
|
| 111 |
+
# Convert a local_addr to local_addr_infos
|
| 112 |
+
local_addr_infos = addr_to_addr_infos(("127.0.0.1",0))
|
| 113 |
+
```
|
| 114 |
+
|
| 115 |
+
## Credits
|
| 116 |
+
|
| 117 |
+
This package contains code from cpython and is licensed under the same terms as cpython itself.
|
| 118 |
+
|
| 119 |
+
This package was created with
|
| 120 |
+
[Copier](https://copier.readthedocs.io/) and the
|
| 121 |
+
[browniebroke/pypackage-template](https://github.com/browniebroke/pypackage-template)
|
| 122 |
+
project template.
|
| 123 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/aiohappyeyeballs-2.5.0.dist-info/RECORD
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
aiohappyeyeballs-2.5.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 2 |
+
aiohappyeyeballs-2.5.0.dist-info/LICENSE,sha256=Oy-B_iHRgcSZxZolbI4ZaEVdZonSaaqFNzv7avQdo78,13936
|
| 3 |
+
aiohappyeyeballs-2.5.0.dist-info/METADATA,sha256=y_3HGOJoNi2P5UbXNeHZm6QbcCqTvTTZJPRWEZrlqFk,5915
|
| 4 |
+
aiohappyeyeballs-2.5.0.dist-info/RECORD,,
|
| 5 |
+
aiohappyeyeballs-2.5.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
| 6 |
+
aiohappyeyeballs/__init__.py,sha256=KEVHr8NrkKXCb69d55dQRT3ENUsu5GlET4Q_l_Gl-t8,361
|
| 7 |
+
aiohappyeyeballs/__pycache__/__init__.cpython-312.pyc,,
|
| 8 |
+
aiohappyeyeballs/__pycache__/_staggered.cpython-312.pyc,,
|
| 9 |
+
aiohappyeyeballs/__pycache__/impl.cpython-312.pyc,,
|
| 10 |
+
aiohappyeyeballs/__pycache__/types.cpython-312.pyc,,
|
| 11 |
+
aiohappyeyeballs/__pycache__/utils.cpython-312.pyc,,
|
| 12 |
+
aiohappyeyeballs/_staggered.py,sha256=pY7aQPYPT0OZAYpPePutVem5ikpNPewl50XXW6dQP98,6780
|
| 13 |
+
aiohappyeyeballs/impl.py,sha256=Dlcm2mTJ28ucrGnxkb_fo9CZzLAkOOBizOt7dreBbXE,9681
|
| 14 |
+
aiohappyeyeballs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 15 |
+
aiohappyeyeballs/types.py,sha256=jyuonLGf3b01snRXgpZd2wywwS-gfhMcRnXgE6ro22Q,332
|
| 16 |
+
aiohappyeyeballs/utils.py,sha256=on9GxIR0LhEfZu8P6Twi9hepX9zDanuZM20MWsb3xlQ,3028
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/aiohappyeyeballs-2.5.0.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: poetry-core 2.1.1
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/aiosignal/__init__.py
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from frozenlist import FrozenList
|
| 2 |
+
|
| 3 |
+
__version__ = "1.3.2"
|
| 4 |
+
|
| 5 |
+
__all__ = ("Signal",)
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class Signal(FrozenList):
|
| 9 |
+
"""Coroutine-based signal implementation.
|
| 10 |
+
|
| 11 |
+
To connect a callback to a signal, use any list method.
|
| 12 |
+
|
| 13 |
+
Signals are fired using the send() coroutine, which takes named
|
| 14 |
+
arguments.
|
| 15 |
+
"""
|
| 16 |
+
|
| 17 |
+
__slots__ = ("_owner",)
|
| 18 |
+
|
| 19 |
+
def __init__(self, owner):
|
| 20 |
+
super().__init__()
|
| 21 |
+
self._owner = owner
|
| 22 |
+
|
| 23 |
+
def __repr__(self):
|
| 24 |
+
return "<Signal owner={}, frozen={}, {!r}>".format(
|
| 25 |
+
self._owner, self.frozen, list(self)
|
| 26 |
+
)
|
| 27 |
+
|
| 28 |
+
async def send(self, *args, **kwargs):
|
| 29 |
+
"""
|
| 30 |
+
Sends data to all registered receivers.
|
| 31 |
+
"""
|
| 32 |
+
if not self.frozen:
|
| 33 |
+
raise RuntimeError("Cannot send non-frozen signal.")
|
| 34 |
+
|
| 35 |
+
for receiver in self:
|
| 36 |
+
await receiver(*args, **kwargs) # type: ignore
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/aiosignal/py.typed
ADDED
|
File without changes
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/colorama-0.4.6.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/colorama-0.4.6.dist-info/METADATA
ADDED
|
@@ -0,0 +1,441 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: colorama
|
| 3 |
+
Version: 0.4.6
|
| 4 |
+
Summary: Cross-platform colored terminal text.
|
| 5 |
+
Project-URL: Homepage, https://github.com/tartley/colorama
|
| 6 |
+
Author-email: Jonathan Hartley <tartley@tartley.com>
|
| 7 |
+
License-File: LICENSE.txt
|
| 8 |
+
Keywords: ansi,color,colour,crossplatform,terminal,text,windows,xplatform
|
| 9 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 10 |
+
Classifier: Environment :: Console
|
| 11 |
+
Classifier: Intended Audience :: Developers
|
| 12 |
+
Classifier: License :: OSI Approved :: BSD License
|
| 13 |
+
Classifier: Operating System :: OS Independent
|
| 14 |
+
Classifier: Programming Language :: Python
|
| 15 |
+
Classifier: Programming Language :: Python :: 2
|
| 16 |
+
Classifier: Programming Language :: Python :: 2.7
|
| 17 |
+
Classifier: Programming Language :: Python :: 3
|
| 18 |
+
Classifier: Programming Language :: Python :: 3.7
|
| 19 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 22 |
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
| 23 |
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
| 24 |
+
Classifier: Topic :: Terminals
|
| 25 |
+
Requires-Python: !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7
|
| 26 |
+
Description-Content-Type: text/x-rst
|
| 27 |
+
|
| 28 |
+
.. image:: https://img.shields.io/pypi/v/colorama.svg
|
| 29 |
+
:target: https://pypi.org/project/colorama/
|
| 30 |
+
:alt: Latest Version
|
| 31 |
+
|
| 32 |
+
.. image:: https://img.shields.io/pypi/pyversions/colorama.svg
|
| 33 |
+
:target: https://pypi.org/project/colorama/
|
| 34 |
+
:alt: Supported Python versions
|
| 35 |
+
|
| 36 |
+
.. image:: https://github.com/tartley/colorama/actions/workflows/test.yml/badge.svg
|
| 37 |
+
:target: https://github.com/tartley/colorama/actions/workflows/test.yml
|
| 38 |
+
:alt: Build Status
|
| 39 |
+
|
| 40 |
+
Colorama
|
| 41 |
+
========
|
| 42 |
+
|
| 43 |
+
Makes ANSI escape character sequences (for producing colored terminal text and
|
| 44 |
+
cursor positioning) work under MS Windows.
|
| 45 |
+
|
| 46 |
+
.. |donate| image:: https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif
|
| 47 |
+
:target: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=2MZ9D2GMLYCUJ&item_name=Colorama¤cy_code=USD
|
| 48 |
+
:alt: Donate with Paypal
|
| 49 |
+
|
| 50 |
+
`PyPI for releases <https://pypi.org/project/colorama/>`_ |
|
| 51 |
+
`Github for source <https://github.com/tartley/colorama>`_ |
|
| 52 |
+
`Colorama for enterprise on Tidelift <https://github.com/tartley/colorama/blob/master/ENTERPRISE.md>`_
|
| 53 |
+
|
| 54 |
+
If you find Colorama useful, please |donate| to the authors. Thank you!
|
| 55 |
+
|
| 56 |
+
Installation
|
| 57 |
+
------------
|
| 58 |
+
|
| 59 |
+
Tested on CPython 2.7, 3.7, 3.8, 3.9 and 3.10 and Pypy 2.7 and 3.8.
|
| 60 |
+
|
| 61 |
+
No requirements other than the standard library.
|
| 62 |
+
|
| 63 |
+
.. code-block:: bash
|
| 64 |
+
|
| 65 |
+
pip install colorama
|
| 66 |
+
# or
|
| 67 |
+
conda install -c anaconda colorama
|
| 68 |
+
|
| 69 |
+
Description
|
| 70 |
+
-----------
|
| 71 |
+
|
| 72 |
+
ANSI escape character sequences have long been used to produce colored terminal
|
| 73 |
+
text and cursor positioning on Unix and Macs. Colorama makes this work on
|
| 74 |
+
Windows, too, by wrapping ``stdout``, stripping ANSI sequences it finds (which
|
| 75 |
+
would appear as gobbledygook in the output), and converting them into the
|
| 76 |
+
appropriate win32 calls to modify the state of the terminal. On other platforms,
|
| 77 |
+
Colorama does nothing.
|
| 78 |
+
|
| 79 |
+
This has the upshot of providing a simple cross-platform API for printing
|
| 80 |
+
colored terminal text from Python, and has the happy side-effect that existing
|
| 81 |
+
applications or libraries which use ANSI sequences to produce colored output on
|
| 82 |
+
Linux or Macs can now also work on Windows, simply by calling
|
| 83 |
+
``colorama.just_fix_windows_console()`` (since v0.4.6) or ``colorama.init()``
|
| 84 |
+
(all versions, but may have other side-effects – see below).
|
| 85 |
+
|
| 86 |
+
An alternative approach is to install ``ansi.sys`` on Windows machines, which
|
| 87 |
+
provides the same behaviour for all applications running in terminals. Colorama
|
| 88 |
+
is intended for situations where that isn't easy (e.g., maybe your app doesn't
|
| 89 |
+
have an installer.)
|
| 90 |
+
|
| 91 |
+
Demo scripts in the source code repository print some colored text using
|
| 92 |
+
ANSI sequences. Compare their output under Gnome-terminal's built in ANSI
|
| 93 |
+
handling, versus on Windows Command-Prompt using Colorama:
|
| 94 |
+
|
| 95 |
+
.. image:: https://github.com/tartley/colorama/raw/master/screenshots/ubuntu-demo.png
|
| 96 |
+
:width: 661
|
| 97 |
+
:height: 357
|
| 98 |
+
:alt: ANSI sequences on Ubuntu under gnome-terminal.
|
| 99 |
+
|
| 100 |
+
.. image:: https://github.com/tartley/colorama/raw/master/screenshots/windows-demo.png
|
| 101 |
+
:width: 668
|
| 102 |
+
:height: 325
|
| 103 |
+
:alt: Same ANSI sequences on Windows, using Colorama.
|
| 104 |
+
|
| 105 |
+
These screenshots show that, on Windows, Colorama does not support ANSI 'dim
|
| 106 |
+
text'; it looks the same as 'normal text'.
|
| 107 |
+
|
| 108 |
+
Usage
|
| 109 |
+
-----
|
| 110 |
+
|
| 111 |
+
Initialisation
|
| 112 |
+
..............
|
| 113 |
+
|
| 114 |
+
If the only thing you want from Colorama is to get ANSI escapes to work on
|
| 115 |
+
Windows, then run:
|
| 116 |
+
|
| 117 |
+
.. code-block:: python
|
| 118 |
+
|
| 119 |
+
from colorama import just_fix_windows_console
|
| 120 |
+
just_fix_windows_console()
|
| 121 |
+
|
| 122 |
+
If you're on a recent version of Windows 10 or better, and your stdout/stderr
|
| 123 |
+
are pointing to a Windows console, then this will flip the magic configuration
|
| 124 |
+
switch to enable Windows' built-in ANSI support.
|
| 125 |
+
|
| 126 |
+
If you're on an older version of Windows, and your stdout/stderr are pointing to
|
| 127 |
+
a Windows console, then this will wrap ``sys.stdout`` and/or ``sys.stderr`` in a
|
| 128 |
+
magic file object that intercepts ANSI escape sequences and issues the
|
| 129 |
+
appropriate Win32 calls to emulate them.
|
| 130 |
+
|
| 131 |
+
In all other circumstances, it does nothing whatsoever. Basically the idea is
|
| 132 |
+
that this makes Windows act like Unix with respect to ANSI escape handling.
|
| 133 |
+
|
| 134 |
+
It's safe to call this function multiple times. It's safe to call this function
|
| 135 |
+
on non-Windows platforms, but it won't do anything. It's safe to call this
|
| 136 |
+
function when one or both of your stdout/stderr are redirected to a file – it
|
| 137 |
+
won't do anything to those streams.
|
| 138 |
+
|
| 139 |
+
Alternatively, you can use the older interface with more features (but also more
|
| 140 |
+
potential footguns):
|
| 141 |
+
|
| 142 |
+
.. code-block:: python
|
| 143 |
+
|
| 144 |
+
from colorama import init
|
| 145 |
+
init()
|
| 146 |
+
|
| 147 |
+
This does the same thing as ``just_fix_windows_console``, except for the
|
| 148 |
+
following differences:
|
| 149 |
+
|
| 150 |
+
- It's not safe to call ``init`` multiple times; you can end up with multiple
|
| 151 |
+
layers of wrapping and broken ANSI support.
|
| 152 |
+
|
| 153 |
+
- Colorama will apply a heuristic to guess whether stdout/stderr support ANSI,
|
| 154 |
+
and if it thinks they don't, then it will wrap ``sys.stdout`` and
|
| 155 |
+
``sys.stderr`` in a magic file object that strips out ANSI escape sequences
|
| 156 |
+
before printing them. This happens on all platforms, and can be convenient if
|
| 157 |
+
you want to write your code to emit ANSI escape sequences unconditionally, and
|
| 158 |
+
let Colorama decide whether they should actually be output. But note that
|
| 159 |
+
Colorama's heuristic is not particularly clever.
|
| 160 |
+
|
| 161 |
+
- ``init`` also accepts explicit keyword args to enable/disable various
|
| 162 |
+
functionality – see below.
|
| 163 |
+
|
| 164 |
+
To stop using Colorama before your program exits, simply call ``deinit()``.
|
| 165 |
+
This will restore ``stdout`` and ``stderr`` to their original values, so that
|
| 166 |
+
Colorama is disabled. To resume using Colorama again, call ``reinit()``; it is
|
| 167 |
+
cheaper than calling ``init()`` again (but does the same thing).
|
| 168 |
+
|
| 169 |
+
Most users should depend on ``colorama >= 0.4.6``, and use
|
| 170 |
+
``just_fix_windows_console``. The old ``init`` interface will be supported
|
| 171 |
+
indefinitely for backwards compatibility, but we don't plan to fix any issues
|
| 172 |
+
with it, also for backwards compatibility.
|
| 173 |
+
|
| 174 |
+
Colored Output
|
| 175 |
+
..............
|
| 176 |
+
|
| 177 |
+
Cross-platform printing of colored text can then be done using Colorama's
|
| 178 |
+
constant shorthand for ANSI escape sequences. These are deliberately
|
| 179 |
+
rudimentary, see below.
|
| 180 |
+
|
| 181 |
+
.. code-block:: python
|
| 182 |
+
|
| 183 |
+
from colorama import Fore, Back, Style
|
| 184 |
+
print(Fore.RED + 'some red text')
|
| 185 |
+
print(Back.GREEN + 'and with a green background')
|
| 186 |
+
print(Style.DIM + 'and in dim text')
|
| 187 |
+
print(Style.RESET_ALL)
|
| 188 |
+
print('back to normal now')
|
| 189 |
+
|
| 190 |
+
...or simply by manually printing ANSI sequences from your own code:
|
| 191 |
+
|
| 192 |
+
.. code-block:: python
|
| 193 |
+
|
| 194 |
+
print('\033[31m' + 'some red text')
|
| 195 |
+
print('\033[39m') # and reset to default color
|
| 196 |
+
|
| 197 |
+
...or, Colorama can be used in conjunction with existing ANSI libraries
|
| 198 |
+
such as the venerable `Termcolor <https://pypi.org/project/termcolor/>`_
|
| 199 |
+
the fabulous `Blessings <https://pypi.org/project/blessings/>`_,
|
| 200 |
+
or the incredible `_Rich <https://pypi.org/project/rich/>`_.
|
| 201 |
+
|
| 202 |
+
If you wish Colorama's Fore, Back and Style constants were more capable,
|
| 203 |
+
then consider using one of the above highly capable libraries to generate
|
| 204 |
+
colors, etc, and use Colorama just for its primary purpose: to convert
|
| 205 |
+
those ANSI sequences to also work on Windows:
|
| 206 |
+
|
| 207 |
+
SIMILARLY, do not send PRs adding the generation of new ANSI types to Colorama.
|
| 208 |
+
We are only interested in converting ANSI codes to win32 API calls, not
|
| 209 |
+
shortcuts like the above to generate ANSI characters.
|
| 210 |
+
|
| 211 |
+
.. code-block:: python
|
| 212 |
+
|
| 213 |
+
from colorama import just_fix_windows_console
|
| 214 |
+
from termcolor import colored
|
| 215 |
+
|
| 216 |
+
# use Colorama to make Termcolor work on Windows too
|
| 217 |
+
just_fix_windows_console()
|
| 218 |
+
|
| 219 |
+
# then use Termcolor for all colored text output
|
| 220 |
+
print(colored('Hello, World!', 'green', 'on_red'))
|
| 221 |
+
|
| 222 |
+
Available formatting constants are::
|
| 223 |
+
|
| 224 |
+
Fore: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE, RESET.
|
| 225 |
+
Back: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE, RESET.
|
| 226 |
+
Style: DIM, NORMAL, BRIGHT, RESET_ALL
|
| 227 |
+
|
| 228 |
+
``Style.RESET_ALL`` resets foreground, background, and brightness. Colorama will
|
| 229 |
+
perform this reset automatically on program exit.
|
| 230 |
+
|
| 231 |
+
These are fairly well supported, but not part of the standard::
|
| 232 |
+
|
| 233 |
+
Fore: LIGHTBLACK_EX, LIGHTRED_EX, LIGHTGREEN_EX, LIGHTYELLOW_EX, LIGHTBLUE_EX, LIGHTMAGENTA_EX, LIGHTCYAN_EX, LIGHTWHITE_EX
|
| 234 |
+
Back: LIGHTBLACK_EX, LIGHTRED_EX, LIGHTGREEN_EX, LIGHTYELLOW_EX, LIGHTBLUE_EX, LIGHTMAGENTA_EX, LIGHTCYAN_EX, LIGHTWHITE_EX
|
| 235 |
+
|
| 236 |
+
Cursor Positioning
|
| 237 |
+
..................
|
| 238 |
+
|
| 239 |
+
ANSI codes to reposition the cursor are supported. See ``demos/demo06.py`` for
|
| 240 |
+
an example of how to generate them.
|
| 241 |
+
|
| 242 |
+
Init Keyword Args
|
| 243 |
+
.................
|
| 244 |
+
|
| 245 |
+
``init()`` accepts some ``**kwargs`` to override default behaviour.
|
| 246 |
+
|
| 247 |
+
init(autoreset=False):
|
| 248 |
+
If you find yourself repeatedly sending reset sequences to turn off color
|
| 249 |
+
changes at the end of every print, then ``init(autoreset=True)`` will
|
| 250 |
+
automate that:
|
| 251 |
+
|
| 252 |
+
.. code-block:: python
|
| 253 |
+
|
| 254 |
+
from colorama import init
|
| 255 |
+
init(autoreset=True)
|
| 256 |
+
print(Fore.RED + 'some red text')
|
| 257 |
+
print('automatically back to default color again')
|
| 258 |
+
|
| 259 |
+
init(strip=None):
|
| 260 |
+
Pass ``True`` or ``False`` to override whether ANSI codes should be
|
| 261 |
+
stripped from the output. The default behaviour is to strip if on Windows
|
| 262 |
+
or if output is redirected (not a tty).
|
| 263 |
+
|
| 264 |
+
init(convert=None):
|
| 265 |
+
Pass ``True`` or ``False`` to override whether to convert ANSI codes in the
|
| 266 |
+
output into win32 calls. The default behaviour is to convert if on Windows
|
| 267 |
+
and output is to a tty (terminal).
|
| 268 |
+
|
| 269 |
+
init(wrap=True):
|
| 270 |
+
On Windows, Colorama works by replacing ``sys.stdout`` and ``sys.stderr``
|
| 271 |
+
with proxy objects, which override the ``.write()`` method to do their work.
|
| 272 |
+
If this wrapping causes you problems, then this can be disabled by passing
|
| 273 |
+
``init(wrap=False)``. The default behaviour is to wrap if ``autoreset`` or
|
| 274 |
+
``strip`` or ``convert`` are True.
|
| 275 |
+
|
| 276 |
+
When wrapping is disabled, colored printing on non-Windows platforms will
|
| 277 |
+
continue to work as normal. To do cross-platform colored output, you can
|
| 278 |
+
use Colorama's ``AnsiToWin32`` proxy directly:
|
| 279 |
+
|
| 280 |
+
.. code-block:: python
|
| 281 |
+
|
| 282 |
+
import sys
|
| 283 |
+
from colorama import init, AnsiToWin32
|
| 284 |
+
init(wrap=False)
|
| 285 |
+
stream = AnsiToWin32(sys.stderr).stream
|
| 286 |
+
|
| 287 |
+
# Python 2
|
| 288 |
+
print >>stream, Fore.BLUE + 'blue text on stderr'
|
| 289 |
+
|
| 290 |
+
# Python 3
|
| 291 |
+
print(Fore.BLUE + 'blue text on stderr', file=stream)
|
| 292 |
+
|
| 293 |
+
Recognised ANSI Sequences
|
| 294 |
+
.........................
|
| 295 |
+
|
| 296 |
+
ANSI sequences generally take the form::
|
| 297 |
+
|
| 298 |
+
ESC [ <param> ; <param> ... <command>
|
| 299 |
+
|
| 300 |
+
Where ``<param>`` is an integer, and ``<command>`` is a single letter. Zero or
|
| 301 |
+
more params are passed to a ``<command>``. If no params are passed, it is
|
| 302 |
+
generally synonymous with passing a single zero. No spaces exist in the
|
| 303 |
+
sequence; they have been inserted here simply to read more easily.
|
| 304 |
+
|
| 305 |
+
The only ANSI sequences that Colorama converts into win32 calls are::
|
| 306 |
+
|
| 307 |
+
ESC [ 0 m # reset all (colors and brightness)
|
| 308 |
+
ESC [ 1 m # bright
|
| 309 |
+
ESC [ 2 m # dim (looks same as normal brightness)
|
| 310 |
+
ESC [ 22 m # normal brightness
|
| 311 |
+
|
| 312 |
+
# FOREGROUND:
|
| 313 |
+
ESC [ 30 m # black
|
| 314 |
+
ESC [ 31 m # red
|
| 315 |
+
ESC [ 32 m # green
|
| 316 |
+
ESC [ 33 m # yellow
|
| 317 |
+
ESC [ 34 m # blue
|
| 318 |
+
ESC [ 35 m # magenta
|
| 319 |
+
ESC [ 36 m # cyan
|
| 320 |
+
ESC [ 37 m # white
|
| 321 |
+
ESC [ 39 m # reset
|
| 322 |
+
|
| 323 |
+
# BACKGROUND
|
| 324 |
+
ESC [ 40 m # black
|
| 325 |
+
ESC [ 41 m # red
|
| 326 |
+
ESC [ 42 m # green
|
| 327 |
+
ESC [ 43 m # yellow
|
| 328 |
+
ESC [ 44 m # blue
|
| 329 |
+
ESC [ 45 m # magenta
|
| 330 |
+
ESC [ 46 m # cyan
|
| 331 |
+
ESC [ 47 m # white
|
| 332 |
+
ESC [ 49 m # reset
|
| 333 |
+
|
| 334 |
+
# cursor positioning
|
| 335 |
+
ESC [ y;x H # position cursor at x across, y down
|
| 336 |
+
ESC [ y;x f # position cursor at x across, y down
|
| 337 |
+
ESC [ n A # move cursor n lines up
|
| 338 |
+
ESC [ n B # move cursor n lines down
|
| 339 |
+
ESC [ n C # move cursor n characters forward
|
| 340 |
+
ESC [ n D # move cursor n characters backward
|
| 341 |
+
|
| 342 |
+
# clear the screen
|
| 343 |
+
ESC [ mode J # clear the screen
|
| 344 |
+
|
| 345 |
+
# clear the line
|
| 346 |
+
ESC [ mode K # clear the line
|
| 347 |
+
|
| 348 |
+
Multiple numeric params to the ``'m'`` command can be combined into a single
|
| 349 |
+
sequence::
|
| 350 |
+
|
| 351 |
+
ESC [ 36 ; 45 ; 1 m # bright cyan text on magenta background
|
| 352 |
+
|
| 353 |
+
All other ANSI sequences of the form ``ESC [ <param> ; <param> ... <command>``
|
| 354 |
+
are silently stripped from the output on Windows.
|
| 355 |
+
|
| 356 |
+
Any other form of ANSI sequence, such as single-character codes or alternative
|
| 357 |
+
initial characters, are not recognised or stripped. It would be cool to add
|
| 358 |
+
them though. Let me know if it would be useful for you, via the Issues on
|
| 359 |
+
GitHub.
|
| 360 |
+
|
| 361 |
+
Status & Known Problems
|
| 362 |
+
-----------------------
|
| 363 |
+
|
| 364 |
+
I've personally only tested it on Windows XP (CMD, Console2), Ubuntu
|
| 365 |
+
(gnome-terminal, xterm), and OS X.
|
| 366 |
+
|
| 367 |
+
Some valid ANSI sequences aren't recognised.
|
| 368 |
+
|
| 369 |
+
If you're hacking on the code, see `README-hacking.md`_. ESPECIALLY, see the
|
| 370 |
+
explanation there of why we do not want PRs that allow Colorama to generate new
|
| 371 |
+
types of ANSI codes.
|
| 372 |
+
|
| 373 |
+
See outstanding issues and wish-list:
|
| 374 |
+
https://github.com/tartley/colorama/issues
|
| 375 |
+
|
| 376 |
+
If anything doesn't work for you, or doesn't do what you expected or hoped for,
|
| 377 |
+
I'd love to hear about it on that issues list, would be delighted by patches,
|
| 378 |
+
and would be happy to grant commit access to anyone who submits a working patch
|
| 379 |
+
or two.
|
| 380 |
+
|
| 381 |
+
.. _README-hacking.md: README-hacking.md
|
| 382 |
+
|
| 383 |
+
License
|
| 384 |
+
-------
|
| 385 |
+
|
| 386 |
+
Copyright Jonathan Hartley & Arnon Yaari, 2013-2020. BSD 3-Clause license; see
|
| 387 |
+
LICENSE file.
|
| 388 |
+
|
| 389 |
+
Professional support
|
| 390 |
+
--------------------
|
| 391 |
+
|
| 392 |
+
.. |tideliftlogo| image:: https://cdn2.hubspot.net/hubfs/4008838/website/logos/logos_for_download/Tidelift_primary-shorthand-logo.png
|
| 393 |
+
:alt: Tidelift
|
| 394 |
+
:target: https://tidelift.com/subscription/pkg/pypi-colorama?utm_source=pypi-colorama&utm_medium=referral&utm_campaign=readme
|
| 395 |
+
|
| 396 |
+
.. list-table::
|
| 397 |
+
:widths: 10 100
|
| 398 |
+
|
| 399 |
+
* - |tideliftlogo|
|
| 400 |
+
- Professional support for colorama is available as part of the
|
| 401 |
+
`Tidelift Subscription`_.
|
| 402 |
+
Tidelift gives software development teams a single source for purchasing
|
| 403 |
+
and maintaining their software, with professional grade assurances from
|
| 404 |
+
the experts who know it best, while seamlessly integrating with existing
|
| 405 |
+
tools.
|
| 406 |
+
|
| 407 |
+
.. _Tidelift Subscription: https://tidelift.com/subscription/pkg/pypi-colorama?utm_source=pypi-colorama&utm_medium=referral&utm_campaign=readme
|
| 408 |
+
|
| 409 |
+
Thanks
|
| 410 |
+
------
|
| 411 |
+
|
| 412 |
+
See the CHANGELOG for more thanks!
|
| 413 |
+
|
| 414 |
+
* Marc Schlaich (schlamar) for a ``setup.py`` fix for Python2.5.
|
| 415 |
+
* Marc Abramowitz, reported & fixed a crash on exit with closed ``stdout``,
|
| 416 |
+
providing a solution to issue #7's setuptools/distutils debate,
|
| 417 |
+
and other fixes.
|
| 418 |
+
* User 'eryksun', for guidance on correctly instantiating ``ctypes.windll``.
|
| 419 |
+
* Matthew McCormick for politely pointing out a longstanding crash on non-Win.
|
| 420 |
+
* Ben Hoyt, for a magnificent fix under 64-bit Windows.
|
| 421 |
+
* Jesse at Empty Square for submitting a fix for examples in the README.
|
| 422 |
+
* User 'jamessp', an observant documentation fix for cursor positioning.
|
| 423 |
+
* User 'vaal1239', Dave Mckee & Lackner Kristof for a tiny but much-needed Win7
|
| 424 |
+
fix.
|
| 425 |
+
* Julien Stuyck, for wisely suggesting Python3 compatible updates to README.
|
| 426 |
+
* Daniel Griffith for multiple fabulous patches.
|
| 427 |
+
* Oscar Lesta for a valuable fix to stop ANSI chars being sent to non-tty
|
| 428 |
+
output.
|
| 429 |
+
* Roger Binns, for many suggestions, valuable feedback, & bug reports.
|
| 430 |
+
* Tim Golden for thought and much appreciated feedback on the initial idea.
|
| 431 |
+
* User 'Zearin' for updates to the README file.
|
| 432 |
+
* John Szakmeister for adding support for light colors
|
| 433 |
+
* Charles Merriam for adding documentation to demos
|
| 434 |
+
* Jurko for a fix on 64-bit Windows CPython2.5 w/o ctypes
|
| 435 |
+
* Florian Bruhin for a fix when stdout or stderr are None
|
| 436 |
+
* Thomas Weininger for fixing ValueError on Windows
|
| 437 |
+
* Remi Rampin for better Github integration and fixes to the README file
|
| 438 |
+
* Simeon Visser for closing a file handle using 'with' and updating classifiers
|
| 439 |
+
to include Python 3.3 and 3.4
|
| 440 |
+
* Andy Neff for fixing RESET of LIGHT_EX colors.
|
| 441 |
+
* Jonathan Hartley for the initial idea and implementation.
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/colorama-0.4.6.dist-info/RECORD
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
colorama-0.4.6.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 2 |
+
colorama-0.4.6.dist-info/METADATA,sha256=e67SnrUMOym9sz_4TjF3vxvAV4T3aF7NyqRHHH3YEMw,17158
|
| 3 |
+
colorama-0.4.6.dist-info/RECORD,,
|
| 4 |
+
colorama-0.4.6.dist-info/WHEEL,sha256=cdcF4Fbd0FPtw2EMIOwH-3rSOTUdTCeOSXRMD1iLUb8,105
|
| 5 |
+
colorama-0.4.6.dist-info/licenses/LICENSE.txt,sha256=ysNcAmhuXQSlpxQL-zs25zrtSWZW6JEQLkKIhteTAxg,1491
|
| 6 |
+
colorama/__init__.py,sha256=wePQA4U20tKgYARySLEC047ucNX-g8pRLpYBuiHlLb8,266
|
| 7 |
+
colorama/__pycache__/__init__.cpython-312.pyc,,
|
| 8 |
+
colorama/__pycache__/ansi.cpython-312.pyc,,
|
| 9 |
+
colorama/__pycache__/ansitowin32.cpython-312.pyc,,
|
| 10 |
+
colorama/__pycache__/initialise.cpython-312.pyc,,
|
| 11 |
+
colorama/__pycache__/win32.cpython-312.pyc,,
|
| 12 |
+
colorama/__pycache__/winterm.cpython-312.pyc,,
|
| 13 |
+
colorama/ansi.py,sha256=Top4EeEuaQdBWdteKMEcGOTeKeF19Q-Wo_6_Cj5kOzQ,2522
|
| 14 |
+
colorama/ansitowin32.py,sha256=vPNYa3OZbxjbuFyaVo0Tmhmy1FZ1lKMWCnT7odXpItk,11128
|
| 15 |
+
colorama/initialise.py,sha256=-hIny86ClXo39ixh5iSCfUIa2f_h_bgKRDW7gqs-KLU,3325
|
| 16 |
+
colorama/tests/__init__.py,sha256=MkgPAEzGQd-Rq0w0PZXSX2LadRWhUECcisJY8lSrm4Q,75
|
| 17 |
+
colorama/tests/__pycache__/__init__.cpython-312.pyc,,
|
| 18 |
+
colorama/tests/__pycache__/ansi_test.cpython-312.pyc,,
|
| 19 |
+
colorama/tests/__pycache__/ansitowin32_test.cpython-312.pyc,,
|
| 20 |
+
colorama/tests/__pycache__/initialise_test.cpython-312.pyc,,
|
| 21 |
+
colorama/tests/__pycache__/isatty_test.cpython-312.pyc,,
|
| 22 |
+
colorama/tests/__pycache__/utils.cpython-312.pyc,,
|
| 23 |
+
colorama/tests/__pycache__/winterm_test.cpython-312.pyc,,
|
| 24 |
+
colorama/tests/ansi_test.py,sha256=FeViDrUINIZcr505PAxvU4AjXz1asEiALs9GXMhwRaE,2839
|
| 25 |
+
colorama/tests/ansitowin32_test.py,sha256=RN7AIhMJ5EqDsYaCjVo-o4u8JzDD4ukJbmevWKS70rY,10678
|
| 26 |
+
colorama/tests/initialise_test.py,sha256=BbPy-XfyHwJ6zKozuQOvNvQZzsx9vdb_0bYXn7hsBTc,6741
|
| 27 |
+
colorama/tests/isatty_test.py,sha256=Pg26LRpv0yQDB5Ac-sxgVXG7hsA1NYvapFgApZfYzZg,1866
|
| 28 |
+
colorama/tests/utils.py,sha256=1IIRylG39z5-dzq09R_ngufxyPZxgldNbrxKxUGwGKE,1079
|
| 29 |
+
colorama/tests/winterm_test.py,sha256=qoWFPEjym5gm2RuMwpf3pOis3a5r_PJZFCzK254JL8A,3709
|
| 30 |
+
colorama/win32.py,sha256=YQOKwMTwtGBbsY4dL5HYTvwTeP9wIQra5MvPNddpxZs,6181
|
| 31 |
+
colorama/winterm.py,sha256=XCQFDHjPi6AHYNdZwy0tA02H-Jh48Jp-HvCjeLeLp3U,7134
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/colorama-0.4.6.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: hatchling 1.11.1
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py2-none-any
|
| 5 |
+
Tag: py3-none-any
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/cuda_bindings-12.9.4.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/cuda_bindings-12.9.4.dist-info/METADATA
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.4
|
| 2 |
+
Name: cuda-bindings
|
| 3 |
+
Version: 12.9.4
|
| 4 |
+
Summary: Python bindings for CUDA
|
| 5 |
+
Author-email: NVIDIA Corporation <cuda-python-conduct@nvidia.com>
|
| 6 |
+
License-Expression: LicenseRef-NVIDIA-SOFTWARE-LICENSE
|
| 7 |
+
Project-URL: Repository, https://github.com/NVIDIA/cuda-python
|
| 8 |
+
Project-URL: Documentation, https://nvidia.github.io/cuda-python/
|
| 9 |
+
Classifier: Intended Audience :: Developers
|
| 10 |
+
Classifier: Topic :: Database
|
| 11 |
+
Classifier: Topic :: Scientific/Engineering
|
| 12 |
+
Classifier: Programming Language :: Python
|
| 13 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 14 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 15 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 16 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 17 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 18 |
+
Classifier: Environment :: GPU :: NVIDIA CUDA
|
| 19 |
+
Description-Content-Type: text/x-rst
|
| 20 |
+
License-File: LICENSE
|
| 21 |
+
Requires-Dist: cuda-pathfinder~=1.1
|
| 22 |
+
Provides-Extra: all
|
| 23 |
+
Requires-Dist: nvidia-cuda-nvcc-cu12; extra == "all"
|
| 24 |
+
Requires-Dist: nvidia-cuda-nvrtc-cu12; extra == "all"
|
| 25 |
+
Requires-Dist: nvidia-nvjitlink-cu12>=12.3; extra == "all"
|
| 26 |
+
Requires-Dist: nvidia-cufile-cu12; sys_platform == "linux" and extra == "all"
|
| 27 |
+
Provides-Extra: test
|
| 28 |
+
Requires-Dist: cython<3.2,>=3.1; extra == "test"
|
| 29 |
+
Requires-Dist: setuptools>=77.0.0; extra == "test"
|
| 30 |
+
Requires-Dist: numpy>=1.21.1; extra == "test"
|
| 31 |
+
Requires-Dist: pytest>=6.2.4; extra == "test"
|
| 32 |
+
Requires-Dist: pytest-benchmark>=3.4.1; extra == "test"
|
| 33 |
+
Requires-Dist: pyglet>=2.1.9; extra == "test"
|
| 34 |
+
Dynamic: license-file
|
| 35 |
+
|
| 36 |
+
.. SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
| 37 |
+
.. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
|
| 38 |
+
|
| 39 |
+
****************************************
|
| 40 |
+
cuda-bindings: Low-level CUDA interfaces
|
| 41 |
+
****************************************
|
| 42 |
+
|
| 43 |
+
`cuda.bindings <https://nvidia.github.io/cuda-python/cuda-bindings/>`_ is a standard set of low-level interfaces, providing full coverage of and 1:1 access to the CUDA host APIs from Python. Checkout the `Overview <https://nvidia.github.io/cuda-python/cuda-bindings/latest/overview.html>`_ for the workflow and performance results.
|
| 44 |
+
|
| 45 |
+
* `Repository <https://github.com/NVIDIA/cuda-python/tree/main/cuda_bindings>`_
|
| 46 |
+
* `Documentation <https://nvidia.github.io/cuda-python/cuda-bindings/>`_
|
| 47 |
+
* `Examples <https://github.com/NVIDIA/cuda-python/tree/main/cuda_bindings/examples>`_
|
| 48 |
+
* `Issue tracker <https://github.com/NVIDIA/cuda-python/issues/>`_
|
| 49 |
+
|
| 50 |
+
For the installation instruction, please refer to the `Installation <https://nvidia.github.io/cuda-python/cuda-bindings/latest/install.html>`_ page.
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/cuda_bindings-12.9.4.dist-info/RECORD
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__pycache__/_cuda_bindings_redirector.cpython-312.pyc,,
|
| 2 |
+
_cuda_bindings_redirector.pth,sha256=KNhlB-eR2oNc-LndIf6YtXm3ezyifjrSe65iObyU92k,195
|
| 3 |
+
_cuda_bindings_redirector.py,sha256=X41i3ukpIUeaqmJKsUBRkJ5bhYvmKA-HmKLShkw-vMQ,873
|
| 4 |
+
cuda/bindings/__init__.pxd,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 5 |
+
cuda/bindings/__init__.py,sha256=MwaiGzsnjQRwjtwFMGS36SnuaElYmFDh_VOT5vAvzhI,246
|
| 6 |
+
cuda/bindings/__pycache__/__init__.cpython-312.pyc,,
|
| 7 |
+
cuda/bindings/__pycache__/_version.cpython-312.pyc,,
|
| 8 |
+
cuda/bindings/_bindings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 9 |
+
cuda/bindings/_bindings/__pycache__/__init__.cpython-312.pyc,,
|
| 10 |
+
cuda/bindings/_bindings/cydriver.cpp,sha256=3KrAiXZLAk4QExJnwCi0RqRFc9e5MmpyA0pXYP4lvOU,5336682
|
| 11 |
+
cuda/bindings/_bindings/cydriver.cpython-312-x86_64-linux-gnu.so,sha256=9BVsi4L1VJkXJJ4wCw33L-8WJucTvlw01Ikbm_RctZE,598704
|
| 12 |
+
cuda/bindings/_bindings/cydriver.pxd,sha256=U-67ijzur-1tNB_ND9GhOMUr8LYQ90lHo3Pp-WmfSX0,66096
|
| 13 |
+
cuda/bindings/_bindings/cydriver.pyx,sha256=CW_MRbU7X84Nu_tihEZ5htcGJgAaHjS2pl5TsuvNgu8,477099
|
| 14 |
+
cuda/bindings/_bindings/cynvrtc.cpp,sha256=WsjRF9zVYxUNKlURTeQ8sftUpWIKs0TB4o3bvWwtp44,592617
|
| 15 |
+
cuda/bindings/_bindings/cynvrtc.cpython-312-x86_64-linux-gnu.so,sha256=NMM2xFEaeshO4J8dc1cklOI45ApFu6w5t6b5ekKd0Zs,94832
|
| 16 |
+
cuda/bindings/_bindings/cynvrtc.pxd,sha256=xdfpIbU5dZjByiUYSoBVvKd3epaI4b2iH8aB1NqTNus,3262
|
| 17 |
+
cuda/bindings/_bindings/cynvrtc.pyx,sha256=u1vo7xbj5XBP3uVax-jDc3Zoip81EHFJ1hoXUNO_gsQ,19226
|
| 18 |
+
cuda/bindings/_bindings/cyruntime.cpp,sha256=AamVerI0ntAzvBqYKU8TTjatZV7HuGW-dlTMFV8fk5A,2488681
|
| 19 |
+
cuda/bindings/_bindings/cyruntime.cpython-312-x86_64-linux-gnu.so,sha256=WK5_Q8BbIK-Ys3j4HJwsKHt59gSdg5w2lpCKC5LN_RI,916112
|
| 20 |
+
cuda/bindings/_bindings/cyruntime.pxd,sha256=Dlc1C_tTcX_X6klbo8gBJk3e1WhNn1jublCUp4ZxpN8,46820
|
| 21 |
+
cuda/bindings/_bindings/cyruntime.pyx,sha256=XIl_sg9jPe6dZ6QtI85-HIlSeICuUOu70LkMbOqdp7g,104497
|
| 22 |
+
cuda/bindings/_bindings/cyruntime_ptds.cpp,sha256=U9dF0AjV3hpYODcjs3TYIkTU6OFFg9f7ncMkSlqwJPs,749777
|
| 23 |
+
cuda/bindings/_bindings/cyruntime_ptds.cpython-312-x86_64-linux-gnu.so,sha256=nPkzxbeALDKVaY-S-CoMlzt70Tw41QesBLUa0xblBBs,772624
|
| 24 |
+
cuda/bindings/_bindings/cyruntime_ptds.pxd,sha256=dkObccpRHhnjr5UZvHbaiwtVZm53rEDa48xoKTBxcfs,46862
|
| 25 |
+
cuda/bindings/_bindings/cyruntime_ptds.pyx,sha256=BcBTcaRHEW1Li_UiZoa5ZMtwcDcr342tDe8zmUFCiWM,65848
|
| 26 |
+
cuda/bindings/_bindings/loader.cpp,sha256=SbRXr0SecKlJ0EwM_ZIuyY5E5P9HB8xswlVWIZvxbII,10878
|
| 27 |
+
cuda/bindings/_bindings/loader.h,sha256=nv8OzG_tSP4jszgK5o4-ELSW6K1iZEwaEekIECjP1dA,545
|
| 28 |
+
cuda/bindings/_bindings/loader.pxd,sha256=vBMdQU-VrGguCEW58Y8V2HRzaUh5DDC0NkNWLJ_silI,252
|
| 29 |
+
cuda/bindings/_internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 30 |
+
cuda/bindings/_internal/__pycache__/__init__.cpython-312.pyc,,
|
| 31 |
+
cuda/bindings/_internal/cufile.cpp,sha256=MWboE-4TqKxCzioiRXFRiPrG01fmGQBdB2MHBxXFFnA,756974
|
| 32 |
+
cuda/bindings/_internal/cufile.cpython-312-x86_64-linux-gnu.so,sha256=u3Ckb4fkOuy735BWldHpmY6oAgElt4-2JejYWWQtU_c,107120
|
| 33 |
+
cuda/bindings/_internal/cufile.pxd,sha256=5wlp4PQbuxiC7e_16UpdG_cKna_dwAklTxxu9-Zgx2s,4513
|
| 34 |
+
cuda/bindings/_internal/cufile.pyx,sha256=ibxisCEGx2_djrUCziJ3Qud2y9UrF4utNJV6FwXhuw8,30854
|
| 35 |
+
cuda/bindings/_internal/cufile_linux.pyx,sha256=ibxisCEGx2_djrUCziJ3Qud2y9UrF4utNJV6FwXhuw8,30854
|
| 36 |
+
cuda/bindings/_internal/nvjitlink.cpp,sha256=CnBhyy4LeHf4B5mjp4cIKh5Zih0D2xasowcoCUkHpjI,530841
|
| 37 |
+
cuda/bindings/_internal/nvjitlink.cpython-312-x86_64-linux-gnu.so,sha256=ZfDsIBD-Bzx2FeQLgZKXpezZYTVG_wbHlVEfKeR7QSk,82544
|
| 38 |
+
cuda/bindings/_internal/nvjitlink.pxd,sha256=r9pGNwOhalRmNvg-Bem7EIJ0Uirgm8jL4LeB5OI5Qv4,2463
|
| 39 |
+
cuda/bindings/_internal/nvjitlink.pyx,sha256=UPKxtW-h6BxX-enAp1Cwn8XpNHScUTLOE_toylcv1Zw,15326
|
| 40 |
+
cuda/bindings/_internal/nvjitlink_linux.pyx,sha256=UPKxtW-h6BxX-enAp1Cwn8XpNHScUTLOE_toylcv1Zw,15326
|
| 41 |
+
cuda/bindings/_internal/nvjitlink_windows.pyx,sha256=SMWwON3_2KYYxcIRwbMRpz1F43wEJO7PUI-07dyhoYw,13972
|
| 42 |
+
cuda/bindings/_internal/nvvm.cpp,sha256=TmkHB9bIyDWvexm1FjdSVRrX32-vgSGv6Ow0ELWxUSI,538397
|
| 43 |
+
cuda/bindings/_internal/nvvm.cpython-312-x86_64-linux-gnu.so,sha256=fQNUUQz3u_VURIFTaJ5V56TMOxvMsMMvz2hIbrEFAOw,82544
|
| 44 |
+
cuda/bindings/_internal/nvvm.pxd,sha256=mBYfe7Ku2ZIRc8EURO3VgUeRVzQDyWm_abyoYuOZKKU,2087
|
| 45 |
+
cuda/bindings/_internal/nvvm.pyx,sha256=U0tuiNy1i5p417vhKHCAfV_cl1307I5a2ryecHejssc,14431
|
| 46 |
+
cuda/bindings/_internal/nvvm_linux.pyx,sha256=U0tuiNy1i5p417vhKHCAfV_cl1307I5a2ryecHejssc,14431
|
| 47 |
+
cuda/bindings/_internal/nvvm_windows.pyx,sha256=hZJFwQRg16bQb1djS95DM14iHbVnwLwlbdVtac0M8ZQ,12619
|
| 48 |
+
cuda/bindings/_internal/utils.cpp,sha256=cdNQMAoo1cK-aVXaOW7uXR68M9RFF9CewaiEi713N38,513913
|
| 49 |
+
cuda/bindings/_internal/utils.cpython-312-x86_64-linux-gnu.so,sha256=FQ6jKmn7NWXw02URkOq64F-t7cSSFXkVGQcL0uHCN9I,122232
|
| 50 |
+
cuda/bindings/_internal/utils.pxd,sha256=IosEOz6zYBBR1Qfnobz-UnzDv0fl-mBtG5Px8tZXVkA,4677
|
| 51 |
+
cuda/bindings/_internal/utils.pyx,sha256=Xb_9y2iK41Htcjgxr7Sex1rUX8CvHUzj706-ICVfFyE,4974
|
| 52 |
+
cuda/bindings/_lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 53 |
+
cuda/bindings/_lib/__pycache__/__init__.cpython-312.pyc,,
|
| 54 |
+
cuda/bindings/_lib/cyruntime/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 55 |
+
cuda/bindings/_lib/cyruntime/__pycache__/__init__.cpython-312.pyc,,
|
| 56 |
+
cuda/bindings/_lib/cyruntime/cyruntime.pxd,sha256=icR65C-YpWJ59uyCRMRg_wGbqNGt6qPQLh2ksFkuTis,4785
|
| 57 |
+
cuda/bindings/_lib/cyruntime/cyruntime.pxi,sha256=xQGllvLx76JE8WEeKS3LjOungvwj335nP6QNmKulr8c,88191
|
| 58 |
+
cuda/bindings/_lib/dlfcn.pxd,sha256=Hey780RLtX6IQwca7kzsBnoMJ6CsizjfaKtcY240GrE,406
|
| 59 |
+
cuda/bindings/_lib/param_packer.h,sha256=ITzzEtJ4ykPY1Py7_SPlf8u1gY9tUlAelvQ6Z3b0vkc,6031
|
| 60 |
+
cuda/bindings/_lib/param_packer.pxd,sha256=9dAhnMLzwYbdDhdiTW6EFXRPfIE5wvfnKwoZTVIhjgs,374
|
| 61 |
+
cuda/bindings/_lib/utils.pxd,sha256=lETNHYHejCh7G9AGyYotT6ChLQlpC6RkrwCds5F2KWw,3401
|
| 62 |
+
cuda/bindings/_lib/utils.pxi,sha256=4wRMcW34p2ozrcPljQJPRvFQCvNWxntWXnJYUw-C7xE,31228
|
| 63 |
+
cuda/bindings/_lib/windll.pxd,sha256=oOzOOJ_hpQNVnqareRx3h_ctJI_zpebBDfaRhxtpSk8,1445
|
| 64 |
+
cuda/bindings/_version.py,sha256=rvnUrtrL194zOPG_wAMMBT-eE5FjDOzy_wKDFBywpPo,190
|
| 65 |
+
cuda/bindings/cufile.cpp,sha256=OB9ceJd4BMKi8aRmz7EQxFSbhHIJ84_EJhpYNewBZXg,2084518
|
| 66 |
+
cuda/bindings/cufile.cpython-312-x86_64-linux-gnu.so,sha256=UkfwKC_LCChGdhaMm3dCIkNvX4hUbUB3f7F0-ucD7R8,419792
|
| 67 |
+
cuda/bindings/cufile.pxd,sha256=VPQ-j1nRfpBndADUxte20syCk_c1Xtz1ecmF_ojzXk8,3434
|
| 68 |
+
cuda/bindings/cufile.pyx,sha256=ziQ1g2TVgRIs8CzY2nl8dQUaT73JZ_XHUa0kBzSx5DI,43453
|
| 69 |
+
cuda/bindings/cycufile.cpp,sha256=u1QAq_xTAbAzbk5Lj_R2uKBQo9p5KzQ5K5Naxp_hTRs,305313
|
| 70 |
+
cuda/bindings/cycufile.cpython-312-x86_64-linux-gnu.so,sha256=GNu7n5O-Smuqo6D4RtRURqHHq_lebtixBwK8THwJgQE,31584
|
| 71 |
+
cuda/bindings/cycufile.pxd,sha256=BviSPZsQpMhZNLj2ZyfcDNcpTxCkHPHfcDR4-ed9bSY,11763
|
| 72 |
+
cuda/bindings/cycufile.pyx,sha256=f01Z8igqJUMJ2hdP_ihiiotdfOFyf_DaCJbTlxWbJwo,6589
|
| 73 |
+
cuda/bindings/cydriver.cpp,sha256=X0ys0YNcfo3xEi2WZ6CGLw9mYfk_NqHNpUqci9veAOw,1532311
|
| 74 |
+
cuda/bindings/cydriver.cpython-312-x86_64-linux-gnu.so,sha256=3wByXaiXbva4I5oj-W9gXcKQO05W6w68d3DUKR10d04,187232
|
| 75 |
+
cuda/bindings/cydriver.pxd,sha256=Evh8Sw1gEEVikeMjwE0viM1KYm9poUr3ny1IbBZCiZQ,158239
|
| 76 |
+
cuda/bindings/cydriver.pyx,sha256=1pfRJ-x00lANlQD4axWq6UXCCdtheQoe7CkmJGch230,99699
|
| 77 |
+
cuda/bindings/cynvjitlink.cpp,sha256=qN3u9yPXa-MBSLjz8ktNeArP1pH66llWdgMCRbrbsHo,227933
|
| 78 |
+
cuda/bindings/cynvjitlink.cpython-312-x86_64-linux-gnu.so,sha256=j2CxLeTQVOM8bpYOGSrSxks_R5QK0GKLiDgJKeL00J4,27488
|
| 79 |
+
cuda/bindings/cynvjitlink.pxd,sha256=_m51JP6NEHgSlbTYYFVM1Px-hVRyg_CegWoYsgqp6uM,4644
|
| 80 |
+
cuda/bindings/cynvjitlink.pyx,sha256=YhLbTMaUSsX8X6MnDhrV3ldIJPLMPzsIy8sWjuIRYJ4,3357
|
| 81 |
+
cuda/bindings/cynvrtc.cpp,sha256=wV_US2TH4tBh8fcsH_aDwzuJjrrYX-zEIMmmw8QLt5s,254856
|
| 82 |
+
cuda/bindings/cynvrtc.cpython-312-x86_64-linux-gnu.so,sha256=oAQuelwCR-I2AxxW_B0a8vdWvxuBLo_bdgec55CXJ9I,31584
|
| 83 |
+
cuda/bindings/cynvrtc.pxd,sha256=I4s3yv7A0_XUvCmELEn0UXvH3U7aAiD7kA72djnE2sg,4139
|
| 84 |
+
cuda/bindings/cynvrtc.pyx,sha256=FsERKZ5aeDW5xtJpHcFc1BiZsR7apr54uT7wHvB1T-k,4732
|
| 85 |
+
cuda/bindings/cynvvm.cpp,sha256=prY9wvdpKPhXZa1piGlkM2XMtqepHxkw0etC_fV3iW8,221819
|
| 86 |
+
cuda/bindings/cynvvm.cpython-312-x86_64-linux-gnu.so,sha256=hbbekcu8CPf0Vv1s1ot3fTFQb3v8esTfETDORew9p8I,23392
|
| 87 |
+
cuda/bindings/cynvvm.pxd,sha256=wSWJO9TW84qnxm7ly-1PbpGTSwI-ZNe6U1SVFQqaLn4,3087
|
| 88 |
+
cuda/bindings/cynvvm.pyx,sha256=XWbq16DfE6xJa954qiwuTj11DKJlroYS1wHvCrtZG18,2864
|
| 89 |
+
cuda/bindings/cyruntime.cpp,sha256=IqsG6VLRSCnElPwGNt2c_9uAhn6GIV9pJwHt89ycVsY,1245949
|
| 90 |
+
cuda/bindings/cyruntime.cpython-312-x86_64-linux-gnu.so,sha256=UPZnyR1q-_4GKnxa6N2JR_YkS-jWHklzsfCeTg-q9pI,146432
|
| 91 |
+
cuda/bindings/cyruntime.pxd,sha256=n2iZWpQyGFWtMfE7N2tMTq6ysKL4UaRYoa-tlZYtrag,60423
|
| 92 |
+
cuda/bindings/cyruntime.pyx,sha256=hDqUiDEwsfpZVmQ4hn2f1M9-QOId26UKIqgXxAXdWs4,75058
|
| 93 |
+
cuda/bindings/cyruntime_functions.pxi,sha256=lQEdUsLiVmk4bxcenqnVxZZS1j1gds6oJX7Dw_evzW0,35448
|
| 94 |
+
cuda/bindings/cyruntime_types.pxi,sha256=5iRgbkt6Twc0gbbInSMMEw7_X5KYFGZGJvcwKYyOa7A,51509
|
| 95 |
+
cuda/bindings/driver.cpp,sha256=Dlvp22_bNPykRQLQrvATxLpXzLCo57GzEwOtZsuQgaw,37317473
|
| 96 |
+
cuda/bindings/driver.cpython-312-x86_64-linux-gnu.so,sha256=RudCqwzHrHpQbeQdjG167Mksr_MwMulrxJyBsgTVr9o,7889944
|
| 97 |
+
cuda/bindings/driver.pxd,sha256=F08_ME3UhVVGqKgDtbIp8jzgJZCyrCQHcLLfeQVQ0hU,198314
|
| 98 |
+
cuda/bindings/driver.pyx,sha256=Sd4WFR-ZautasvRwm56KETFDVkpkvQBimlcgmva5DfY,2078692
|
| 99 |
+
cuda/bindings/nvjitlink.cpp,sha256=Uq32HyNO8Oq3jpxuNCFXWPBKvUmhVGH1hNASyjcdC2c,602964
|
| 100 |
+
cuda/bindings/nvjitlink.cpython-312-x86_64-linux-gnu.so,sha256=VkclrscHmQZlhA0a2t8tWuoYTvj8LFiIvMyNZYjbbqg,111920
|
| 101 |
+
cuda/bindings/nvjitlink.pxd,sha256=neeTYLL2zuTrOYPITKb1FTMcwSZeyf2hILckXgQlBy8,1631
|
| 102 |
+
cuda/bindings/nvjitlink.pyx,sha256=KkvUtPWtAIpl_cZ3D0WwenePF_ZhDDnMtztpX1t9bgQ,10030
|
| 103 |
+
cuda/bindings/nvrtc.cpp,sha256=oFu5q-2oE9Y7Mn8YMJDGHi0MCehzIZvJOQ4L7KZ1BjI,2794280
|
| 104 |
+
cuda/bindings/nvrtc.cpython-312-x86_64-linux-gnu.so,sha256=2QwvDs1vODvw1zefF2VdP45ld4SuU2QCc1tgcc1lFk8,436952
|
| 105 |
+
cuda/bindings/nvrtc.pxd,sha256=KdQ-OO-azJAstRWyZZA4_UMJHLQep6gUG_QCgIOQ3wg,759
|
| 106 |
+
cuda/bindings/nvrtc.pyx,sha256=SowESyJ-WLm63xdwvOBDNiJMUvbGVj0OIMpy9h4bI8Q,35757
|
| 107 |
+
cuda/bindings/nvvm.cpp,sha256=itqhIi8x0Q0yzwsXZkZPAVdHi_6kT2jfeBkskXTZShU,545426
|
| 108 |
+
cuda/bindings/nvvm.cpython-312-x86_64-linux-gnu.so,sha256=lL-uR1E73VrGGeOEJuWeJswPBWB6QZ2CnvHoZ8vWnuQ,103696
|
| 109 |
+
cuda/bindings/nvvm.pxd,sha256=cmQzv-UpKehfXemlk1blXuYMTjD3pK0Iijb5BY39Xdo,1517
|
| 110 |
+
cuda/bindings/nvvm.pyx,sha256=Pjg5vEuvTlTYV7PVXw-5Wj7BwufggKRHNHrypXKq6ao,9185
|
| 111 |
+
cuda/bindings/runtime.cpp,sha256=NAN9Jhb4zbnstVjGlOcQpci34CGRY5Bserj3rw4iNVw,27202710
|
| 112 |
+
cuda/bindings/runtime.cpython-312-x86_64-linux-gnu.so,sha256=9BRn7mqgiopuQ969pT6H10C4ZJSa4mOjX8txS7mpPOc,5525848
|
| 113 |
+
cuda/bindings/runtime.pxd,sha256=jx4qPfbd16uDx1c6R6VIKrLuhUse9tg-IjDSsfbzbIk,97943
|
| 114 |
+
cuda/bindings/runtime.pyx,sha256=DCwWAwkhinkEJ4Zpu78VuGH0YZb2dDHUOenY_q-IkiU,1424771
|
| 115 |
+
cuda/bindings/utils/__init__.py,sha256=AcONSPwlZfQ8W54dBR2lQ0sy975Km3Nn0-E4KXIxvRE,879
|
| 116 |
+
cuda/bindings/utils/__pycache__/__init__.cpython-312.pyc,,
|
| 117 |
+
cuda/bindings/utils/__pycache__/_ptx_utils.cpython-312.pyc,,
|
| 118 |
+
cuda/bindings/utils/_ptx_utils.py,sha256=JvxiAoZLla1DvJvw3twYQ8ofSqrCE-fQAsMAfr_vxP4,3165
|
| 119 |
+
cuda/ccuda.cpp,sha256=CC0Idd0Q1lSEcxmaLsy_zeKCiCtOBAv_rLGJbKbGG6A,238723
|
| 120 |
+
cuda/ccuda.cpython-312-x86_64-linux-gnu.so,sha256=Yr322bx1gkbvuo2qBfiGViHcEFmt4ptsiBqkbYTLvB8,23392
|
| 121 |
+
cuda/ccuda.pxd,sha256=-rRZuvxjFwtTHqBd116rqnBcwT5OsXxEGXJ6K92XNCk,646
|
| 122 |
+
cuda/ccuda.pyx,sha256=TSFMKwjKEEHq-_y5KoPF9gCTLQvy8WPkDztvXukNidM,290
|
| 123 |
+
cuda/ccudart.cpp,sha256=PnMrP_jzJXLuY1MewxP6eOndKpj1i2AARj97-qoptHk,243939
|
| 124 |
+
cuda/ccudart.cpython-312-x86_64-linux-gnu.so,sha256=0667Nk5ImEck50vQYGzvZu6QhxNAEf6seeePNlU6lNY,23392
|
| 125 |
+
cuda/ccudart.pxd,sha256=1q5ib_kgDoDOBrUFArxEHOr7NYvGQCDFol_-CW0iUsk,653
|
| 126 |
+
cuda/ccudart.pyx,sha256=gP-IiOGV4yJDVKUQv8lkHPfZ335hm01iDnhZSvUlI74,294
|
| 127 |
+
cuda/cnvrtc.cpp,sha256=NdZLw6YvIa_naKZ8g1UFFtdpE9pMPiL5KXAo_bgiVFs,197889
|
| 128 |
+
cuda/cnvrtc.cpython-312-x86_64-linux-gnu.so,sha256=Sqzg5xBZSm-Xb5eJkCTk-PXKK0wl-a_ahNiioGna6Mc,23392
|
| 129 |
+
cuda/cnvrtc.pxd,sha256=io3eEqzkRWTs19EL7Dsr6v9nBHB9GP_0Li0xbSphUUg,645
|
| 130 |
+
cuda/cnvrtc.pyx,sha256=Rtx0GqywLHNki6ZxNhJ2pvBPXQW3n4VCJuVMwzplNDg,286
|
| 131 |
+
cuda/cuda.cpp,sha256=APGhUtjXuBGJdWgxGmIZSm4srVEMU3lZ2v1AA8POfPI,207100
|
| 132 |
+
cuda/cuda.cpython-312-x86_64-linux-gnu.so,sha256=LbhTgVNpp5a1quJ63ngg60kA-nRr5DgSyc4FaVqQ6Ik,23456
|
| 133 |
+
cuda/cuda.pyx,sha256=koAGbl98xuqaFLzfSiMdf0PsZwIRMgSqBCD0VvO0KBo,873
|
| 134 |
+
cuda/cudart.cpp,sha256=T72eHviTA5O0tjJgNyfDZDQjmsM5lXp7kOAMvCI6GDI,207194
|
| 135 |
+
cuda/cudart.cpython-312-x86_64-linux-gnu.so,sha256=rx8PQUstfAA0Zou1PLGutrK7aid1ff--z9iS7fVOAoM,23456
|
| 136 |
+
cuda/cudart.pyx,sha256=aO3CHl2FX5OokueAhJZoUzumAxHZbjSZcIyaf-unxWQ,883
|
| 137 |
+
cuda/nvrtc.cpp,sha256=tm9yH1eiiWjqwc1V1nK16-ZWiHbtomix0MfkCGoUPfQ,207123
|
| 138 |
+
cuda/nvrtc.cpython-312-x86_64-linux-gnu.so,sha256=T29GMPIjfwlF8phY8t2Kq-OjDG5wOw8RvdmxqkT4nA0,23456
|
| 139 |
+
cuda/nvrtc.pyx,sha256=jswEwshPcySgcbFLkCiT5wXzA3462rfbBpaXK1Ty2cI,872
|
| 140 |
+
cuda_bindings-12.9.4.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 141 |
+
cuda_bindings-12.9.4.dist-info/METADATA,sha256=6JZh9BTr07MltmSp9nEnTA4OoYieuLAsRB7g1TdSScQ,2578
|
| 142 |
+
cuda_bindings-12.9.4.dist-info/RECORD,,
|
| 143 |
+
cuda_bindings-12.9.4.dist-info/WHEEL,sha256=LpQoElFRmdjMbJKp2FHd8t88QuEtEHUH_crLCk0WHuI,152
|
| 144 |
+
cuda_bindings-12.9.4.dist-info/licenses/LICENSE,sha256=Jakdbt-2T7eAoBPcHEAMIkmqaZjIyLlN_6yV2Z5dvww,11096
|
| 145 |
+
cuda_bindings-12.9.4.dist-info/top_level.txt,sha256=U5vpnvwNpaJF8bl4KnoUluMDTRt0J972FipwXjgNQ3A,5
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/cuda_bindings-12.9.4.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: setuptools (80.9.0)
|
| 3 |
+
Root-Is-Purelib: false
|
| 4 |
+
Tag: cp312-cp312-manylinux_2_24_x86_64
|
| 5 |
+
Tag: cp312-cp312-manylinux_2_28_x86_64
|
| 6 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/cuda_bindings-12.9.4.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
cuda
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/datasets-2.20.0.dist-info/AUTHORS
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This is the list of HuggingFace Datasets authors for copyright purposes.
|
| 2 |
+
#
|
| 3 |
+
# This does not necessarily list everyone who has contributed code, since in
|
| 4 |
+
# some cases, their employer may be the copyright holder. To see the full list
|
| 5 |
+
# of contributors, see the revision history in source control.
|
| 6 |
+
|
| 7 |
+
Google Inc.
|
| 8 |
+
HuggingFace Inc.
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/datasets-2.20.0.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/datasets-2.20.0.dist-info/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Apache License
|
| 3 |
+
Version 2.0, January 2004
|
| 4 |
+
http://www.apache.org/licenses/
|
| 5 |
+
|
| 6 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 12 |
+
|
| 13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 14 |
+
the copyright owner that is granting the License.
|
| 15 |
+
|
| 16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 17 |
+
other entities that control, are controlled by, or are under common
|
| 18 |
+
control with that entity. For the purposes of this definition,
|
| 19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 20 |
+
direction or management of such entity, whether by contract or
|
| 21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 23 |
+
|
| 24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 25 |
+
exercising permissions granted by this License.
|
| 26 |
+
|
| 27 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 28 |
+
including but not limited to software source code, documentation
|
| 29 |
+
source, and configuration files.
|
| 30 |
+
|
| 31 |
+
"Object" form shall mean any form resulting from mechanical
|
| 32 |
+
transformation or translation of a Source form, including but
|
| 33 |
+
not limited to compiled object code, generated documentation,
|
| 34 |
+
and conversions to other media types.
|
| 35 |
+
|
| 36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 37 |
+
Object form, made available under the License, as indicated by a
|
| 38 |
+
copyright notice that is included in or attached to the work
|
| 39 |
+
(an example is provided in the Appendix below).
|
| 40 |
+
|
| 41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 42 |
+
form, that is based on (or derived from) the Work and for which the
|
| 43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 45 |
+
of this License, Derivative Works shall not include works that remain
|
| 46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 47 |
+
the Work and Derivative Works thereof.
|
| 48 |
+
|
| 49 |
+
"Contribution" shall mean any work of authorship, including
|
| 50 |
+
the original version of the Work and any modifications or additions
|
| 51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 55 |
+
means any form of electronic, verbal, or written communication sent
|
| 56 |
+
to the Licensor or its representatives, including but not limited to
|
| 57 |
+
communication on electronic mailing lists, source code control systems,
|
| 58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 60 |
+
excluding communication that is conspicuously marked or otherwise
|
| 61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 62 |
+
|
| 63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 65 |
+
subsequently incorporated within the Work.
|
| 66 |
+
|
| 67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 72 |
+
Work and such Derivative Works in Source or Object form.
|
| 73 |
+
|
| 74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 77 |
+
(except as stated in this section) patent license to make, have made,
|
| 78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 79 |
+
where such license applies only to those patent claims licensable
|
| 80 |
+
by such Contributor that are necessarily infringed by their
|
| 81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 83 |
+
institute patent litigation against any entity (including a
|
| 84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 85 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 86 |
+
or contributory patent infringement, then any patent licenses
|
| 87 |
+
granted to You under this License for that Work shall terminate
|
| 88 |
+
as of the date such litigation is filed.
|
| 89 |
+
|
| 90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 91 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 92 |
+
modifications, and in Source or Object form, provided that You
|
| 93 |
+
meet the following conditions:
|
| 94 |
+
|
| 95 |
+
(a) You must give any other recipients of the Work or
|
| 96 |
+
Derivative Works a copy of this License; and
|
| 97 |
+
|
| 98 |
+
(b) You must cause any modified files to carry prominent notices
|
| 99 |
+
stating that You changed the files; and
|
| 100 |
+
|
| 101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 102 |
+
that You distribute, all copyright, patent, trademark, and
|
| 103 |
+
attribution notices from the Source form of the Work,
|
| 104 |
+
excluding those notices that do not pertain to any part of
|
| 105 |
+
the Derivative Works; and
|
| 106 |
+
|
| 107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 108 |
+
distribution, then any Derivative Works that You distribute must
|
| 109 |
+
include a readable copy of the attribution notices contained
|
| 110 |
+
within such NOTICE file, excluding those notices that do not
|
| 111 |
+
pertain to any part of the Derivative Works, in at least one
|
| 112 |
+
of the following places: within a NOTICE text file distributed
|
| 113 |
+
as part of the Derivative Works; within the Source form or
|
| 114 |
+
documentation, if provided along with the Derivative Works; or,
|
| 115 |
+
within a display generated by the Derivative Works, if and
|
| 116 |
+
wherever such third-party notices normally appear. The contents
|
| 117 |
+
of the NOTICE file are for informational purposes only and
|
| 118 |
+
do not modify the License. You may add Your own attribution
|
| 119 |
+
notices within Derivative Works that You distribute, alongside
|
| 120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 121 |
+
that such additional attribution notices cannot be construed
|
| 122 |
+
as modifying the License.
|
| 123 |
+
|
| 124 |
+
You may add Your own copyright statement to Your modifications and
|
| 125 |
+
may provide additional or different license terms and conditions
|
| 126 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 127 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 128 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 129 |
+
the conditions stated in this License.
|
| 130 |
+
|
| 131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 133 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 134 |
+
this License, without any additional terms or conditions.
|
| 135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 136 |
+
the terms of any separate license agreement you may have executed
|
| 137 |
+
with Licensor regarding such Contributions.
|
| 138 |
+
|
| 139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 141 |
+
except as required for reasonable and customary use in describing the
|
| 142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 143 |
+
|
| 144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 145 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 148 |
+
implied, including, without limitation, any warranties or conditions
|
| 149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 151 |
+
appropriateness of using or redistributing the Work and assume any
|
| 152 |
+
risks associated with Your exercise of permissions under this License.
|
| 153 |
+
|
| 154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 155 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 156 |
+
unless required by applicable law (such as deliberate and grossly
|
| 157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 158 |
+
liable to You for damages, including any direct, indirect, special,
|
| 159 |
+
incidental, or consequential damages of any character arising as a
|
| 160 |
+
result of this License or out of the use or inability to use the
|
| 161 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 162 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 163 |
+
other commercial damages or losses), even if such Contributor
|
| 164 |
+
has been advised of the possibility of such damages.
|
| 165 |
+
|
| 166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 169 |
+
or other liability obligations and/or rights consistent with this
|
| 170 |
+
License. However, in accepting such obligations, You may act only
|
| 171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 172 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 173 |
+
defend, and hold each Contributor harmless for any liability
|
| 174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 175 |
+
of your accepting any such warranty or additional liability.
|
| 176 |
+
|
| 177 |
+
END OF TERMS AND CONDITIONS
|
| 178 |
+
|
| 179 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 180 |
+
|
| 181 |
+
To apply the Apache License to your work, attach the following
|
| 182 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 183 |
+
replaced with your own identifying information. (Don't include
|
| 184 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 185 |
+
comment syntax for the file format. We also recommend that a
|
| 186 |
+
file or class name and description of purpose be included on the
|
| 187 |
+
same "printed page" as the copyright notice for easier
|
| 188 |
+
identification within third-party archives.
|
| 189 |
+
|
| 190 |
+
Copyright [yyyy] [name of copyright owner]
|
| 191 |
+
|
| 192 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 193 |
+
you may not use this file except in compliance with the License.
|
| 194 |
+
You may obtain a copy of the License at
|
| 195 |
+
|
| 196 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 197 |
+
|
| 198 |
+
Unless required by applicable law or agreed to in writing, software
|
| 199 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 200 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 201 |
+
See the License for the specific language governing permissions and
|
| 202 |
+
limitations under the License.
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/datasets-2.20.0.dist-info/METADATA
ADDED
|
@@ -0,0 +1,368 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: datasets
|
| 3 |
+
Version: 2.20.0
|
| 4 |
+
Summary: HuggingFace community-driven open-source library of datasets
|
| 5 |
+
Home-page: https://github.com/huggingface/datasets
|
| 6 |
+
Author: HuggingFace Inc.
|
| 7 |
+
Author-email: thomas@huggingface.co
|
| 8 |
+
License: Apache 2.0
|
| 9 |
+
Download-URL: https://github.com/huggingface/datasets/tags
|
| 10 |
+
Keywords: datasets machine learning datasets metrics
|
| 11 |
+
Platform: UNKNOWN
|
| 12 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 13 |
+
Classifier: Intended Audience :: Developers
|
| 14 |
+
Classifier: Intended Audience :: Education
|
| 15 |
+
Classifier: Intended Audience :: Science/Research
|
| 16 |
+
Classifier: License :: OSI Approved :: Apache Software License
|
| 17 |
+
Classifier: Operating System :: OS Independent
|
| 18 |
+
Classifier: Programming Language :: Python :: 3
|
| 19 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 22 |
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
| 23 |
+
Requires-Python: >=3.8.0
|
| 24 |
+
Description-Content-Type: text/markdown
|
| 25 |
+
License-File: LICENSE
|
| 26 |
+
License-File: AUTHORS
|
| 27 |
+
Requires-Dist: filelock
|
| 28 |
+
Requires-Dist: numpy (>=1.17)
|
| 29 |
+
Requires-Dist: pyarrow (>=15.0.0)
|
| 30 |
+
Requires-Dist: pyarrow-hotfix
|
| 31 |
+
Requires-Dist: dill (<0.3.9,>=0.3.0)
|
| 32 |
+
Requires-Dist: pandas
|
| 33 |
+
Requires-Dist: requests (>=2.32.2)
|
| 34 |
+
Requires-Dist: tqdm (>=4.66.3)
|
| 35 |
+
Requires-Dist: xxhash
|
| 36 |
+
Requires-Dist: multiprocess
|
| 37 |
+
Requires-Dist: fsspec[http] (<=2024.5.0,>=2023.1.0)
|
| 38 |
+
Requires-Dist: aiohttp
|
| 39 |
+
Requires-Dist: huggingface-hub (>=0.21.2)
|
| 40 |
+
Requires-Dist: packaging
|
| 41 |
+
Requires-Dist: pyyaml (>=5.1)
|
| 42 |
+
Provides-Extra: apache-beam
|
| 43 |
+
Requires-Dist: apache-beam (>=2.26.0) ; extra == 'apache-beam'
|
| 44 |
+
Provides-Extra: audio
|
| 45 |
+
Requires-Dist: soundfile (>=0.12.1) ; extra == 'audio'
|
| 46 |
+
Requires-Dist: librosa ; extra == 'audio'
|
| 47 |
+
Provides-Extra: benchmarks
|
| 48 |
+
Requires-Dist: tensorflow (==2.12.0) ; extra == 'benchmarks'
|
| 49 |
+
Requires-Dist: torch (==2.0.1) ; extra == 'benchmarks'
|
| 50 |
+
Requires-Dist: transformers (==4.30.1) ; extra == 'benchmarks'
|
| 51 |
+
Provides-Extra: dev
|
| 52 |
+
Requires-Dist: absl-py ; extra == 'dev'
|
| 53 |
+
Requires-Dist: joblib (<1.3.0) ; extra == 'dev'
|
| 54 |
+
Requires-Dist: joblibspark ; extra == 'dev'
|
| 55 |
+
Requires-Dist: pytest ; extra == 'dev'
|
| 56 |
+
Requires-Dist: pytest-datadir ; extra == 'dev'
|
| 57 |
+
Requires-Dist: pytest-xdist ; extra == 'dev'
|
| 58 |
+
Requires-Dist: elasticsearch (<8.0.0) ; extra == 'dev'
|
| 59 |
+
Requires-Dist: faiss-cpu (>=1.6.4) ; extra == 'dev'
|
| 60 |
+
Requires-Dist: lz4 ; extra == 'dev'
|
| 61 |
+
Requires-Dist: pyspark (>=3.4) ; extra == 'dev'
|
| 62 |
+
Requires-Dist: py7zr ; extra == 'dev'
|
| 63 |
+
Requires-Dist: rarfile (>=4.0) ; extra == 'dev'
|
| 64 |
+
Requires-Dist: sqlalchemy ; extra == 'dev'
|
| 65 |
+
Requires-Dist: s3fs (>=2021.11.1) ; extra == 'dev'
|
| 66 |
+
Requires-Dist: protobuf (<4.0.0) ; extra == 'dev'
|
| 67 |
+
Requires-Dist: tensorflow (>=2.6.0) ; extra == 'dev'
|
| 68 |
+
Requires-Dist: tiktoken ; extra == 'dev'
|
| 69 |
+
Requires-Dist: torch (>=2.0.0) ; extra == 'dev'
|
| 70 |
+
Requires-Dist: soundfile (>=0.12.1) ; extra == 'dev'
|
| 71 |
+
Requires-Dist: transformers ; extra == 'dev'
|
| 72 |
+
Requires-Dist: typing-extensions (>=4.6.1) ; extra == 'dev'
|
| 73 |
+
Requires-Dist: zstandard ; extra == 'dev'
|
| 74 |
+
Requires-Dist: polars[timezone] (>=0.20.0) ; extra == 'dev'
|
| 75 |
+
Requires-Dist: Pillow (>=9.4.0) ; extra == 'dev'
|
| 76 |
+
Requires-Dist: librosa ; extra == 'dev'
|
| 77 |
+
Requires-Dist: ruff (>=0.3.0) ; extra == 'dev'
|
| 78 |
+
Requires-Dist: s3fs ; extra == 'dev'
|
| 79 |
+
Requires-Dist: torch ; extra == 'dev'
|
| 80 |
+
Requires-Dist: jax (>=0.3.14) ; (sys_platform != "win32") and extra == 'dev'
|
| 81 |
+
Requires-Dist: jaxlib (>=0.3.14) ; (sys_platform != "win32") and extra == 'dev'
|
| 82 |
+
Provides-Extra: docs
|
| 83 |
+
Requires-Dist: s3fs ; extra == 'docs'
|
| 84 |
+
Requires-Dist: transformers ; extra == 'docs'
|
| 85 |
+
Requires-Dist: torch ; extra == 'docs'
|
| 86 |
+
Requires-Dist: tensorflow (>=2.6.0) ; extra == 'docs'
|
| 87 |
+
Provides-Extra: jax
|
| 88 |
+
Requires-Dist: jax (>=0.3.14) ; extra == 'jax'
|
| 89 |
+
Requires-Dist: jaxlib (>=0.3.14) ; extra == 'jax'
|
| 90 |
+
Provides-Extra: metrics-tests
|
| 91 |
+
Requires-Dist: accelerate ; extra == 'metrics-tests'
|
| 92 |
+
Requires-Dist: bert-score (>=0.3.6) ; extra == 'metrics-tests'
|
| 93 |
+
Requires-Dist: jiwer ; extra == 'metrics-tests'
|
| 94 |
+
Requires-Dist: langdetect ; extra == 'metrics-tests'
|
| 95 |
+
Requires-Dist: mauve-text ; extra == 'metrics-tests'
|
| 96 |
+
Requires-Dist: nltk ; extra == 'metrics-tests'
|
| 97 |
+
Requires-Dist: rouge-score ; extra == 'metrics-tests'
|
| 98 |
+
Requires-Dist: sacrebleu ; extra == 'metrics-tests'
|
| 99 |
+
Requires-Dist: sacremoses ; extra == 'metrics-tests'
|
| 100 |
+
Requires-Dist: scikit-learn ; extra == 'metrics-tests'
|
| 101 |
+
Requires-Dist: scipy ; extra == 'metrics-tests'
|
| 102 |
+
Requires-Dist: sentencepiece ; extra == 'metrics-tests'
|
| 103 |
+
Requires-Dist: seqeval ; extra == 'metrics-tests'
|
| 104 |
+
Requires-Dist: spacy (>=3.0.0) ; extra == 'metrics-tests'
|
| 105 |
+
Requires-Dist: tldextract ; extra == 'metrics-tests'
|
| 106 |
+
Requires-Dist: toml (>=0.10.1) ; extra == 'metrics-tests'
|
| 107 |
+
Requires-Dist: typer (<0.5.0) ; extra == 'metrics-tests'
|
| 108 |
+
Requires-Dist: requests-file (>=1.5.1) ; extra == 'metrics-tests'
|
| 109 |
+
Requires-Dist: tldextract (>=3.1.0) ; extra == 'metrics-tests'
|
| 110 |
+
Requires-Dist: texttable (>=1.6.3) ; extra == 'metrics-tests'
|
| 111 |
+
Requires-Dist: Werkzeug (>=1.0.1) ; extra == 'metrics-tests'
|
| 112 |
+
Requires-Dist: six (~=1.15.0) ; extra == 'metrics-tests'
|
| 113 |
+
Provides-Extra: quality
|
| 114 |
+
Requires-Dist: ruff (>=0.3.0) ; extra == 'quality'
|
| 115 |
+
Provides-Extra: s3
|
| 116 |
+
Requires-Dist: s3fs ; extra == 's3'
|
| 117 |
+
Provides-Extra: streaming
|
| 118 |
+
Provides-Extra: tensorflow
|
| 119 |
+
Requires-Dist: tensorflow (>=2.6.0) ; extra == 'tensorflow'
|
| 120 |
+
Provides-Extra: tensorflow_gpu
|
| 121 |
+
Requires-Dist: tensorflow (>=2.6.0) ; extra == 'tensorflow_gpu'
|
| 122 |
+
Provides-Extra: tests
|
| 123 |
+
Requires-Dist: absl-py ; extra == 'tests'
|
| 124 |
+
Requires-Dist: joblib (<1.3.0) ; extra == 'tests'
|
| 125 |
+
Requires-Dist: joblibspark ; extra == 'tests'
|
| 126 |
+
Requires-Dist: pytest ; extra == 'tests'
|
| 127 |
+
Requires-Dist: pytest-datadir ; extra == 'tests'
|
| 128 |
+
Requires-Dist: pytest-xdist ; extra == 'tests'
|
| 129 |
+
Requires-Dist: elasticsearch (<8.0.0) ; extra == 'tests'
|
| 130 |
+
Requires-Dist: faiss-cpu (>=1.6.4) ; extra == 'tests'
|
| 131 |
+
Requires-Dist: lz4 ; extra == 'tests'
|
| 132 |
+
Requires-Dist: pyspark (>=3.4) ; extra == 'tests'
|
| 133 |
+
Requires-Dist: py7zr ; extra == 'tests'
|
| 134 |
+
Requires-Dist: rarfile (>=4.0) ; extra == 'tests'
|
| 135 |
+
Requires-Dist: sqlalchemy ; extra == 'tests'
|
| 136 |
+
Requires-Dist: s3fs (>=2021.11.1) ; extra == 'tests'
|
| 137 |
+
Requires-Dist: protobuf (<4.0.0) ; extra == 'tests'
|
| 138 |
+
Requires-Dist: tensorflow (>=2.6.0) ; extra == 'tests'
|
| 139 |
+
Requires-Dist: tiktoken ; extra == 'tests'
|
| 140 |
+
Requires-Dist: torch (>=2.0.0) ; extra == 'tests'
|
| 141 |
+
Requires-Dist: soundfile (>=0.12.1) ; extra == 'tests'
|
| 142 |
+
Requires-Dist: transformers ; extra == 'tests'
|
| 143 |
+
Requires-Dist: typing-extensions (>=4.6.1) ; extra == 'tests'
|
| 144 |
+
Requires-Dist: zstandard ; extra == 'tests'
|
| 145 |
+
Requires-Dist: polars[timezone] (>=0.20.0) ; extra == 'tests'
|
| 146 |
+
Requires-Dist: Pillow (>=9.4.0) ; extra == 'tests'
|
| 147 |
+
Requires-Dist: librosa ; extra == 'tests'
|
| 148 |
+
Requires-Dist: jax (>=0.3.14) ; (sys_platform != "win32") and extra == 'tests'
|
| 149 |
+
Requires-Dist: jaxlib (>=0.3.14) ; (sys_platform != "win32") and extra == 'tests'
|
| 150 |
+
Provides-Extra: torch
|
| 151 |
+
Requires-Dist: torch ; extra == 'torch'
|
| 152 |
+
Provides-Extra: vision
|
| 153 |
+
Requires-Dist: Pillow (>=9.4.0) ; extra == 'vision'
|
| 154 |
+
|
| 155 |
+
<p align="center">
|
| 156 |
+
<picture>
|
| 157 |
+
<source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/datasets/huggingface/documentation-images/raw/main/datasets-logo-dark.svg">
|
| 158 |
+
<source media="(prefers-color-scheme: light)" srcset="https://huggingface.co/datasets/huggingface/documentation-images/raw/main/datasets-logo-light.svg">
|
| 159 |
+
<img alt="Hugging Face Datasets Library" src="https://huggingface.co/datasets/huggingface/documentation-images/raw/main/datasets-logo-light.svg" width="352" height="59" style="max-width: 100%;">
|
| 160 |
+
</picture>
|
| 161 |
+
<br/>
|
| 162 |
+
<br/>
|
| 163 |
+
</p>
|
| 164 |
+
|
| 165 |
+
<p align="center">
|
| 166 |
+
<a href="https://github.com/huggingface/datasets/actions/workflows/ci.yml?query=branch%3Amain">
|
| 167 |
+
<img alt="Build" src="https://github.com/huggingface/datasets/actions/workflows/ci.yml/badge.svg?branch=main">
|
| 168 |
+
</a>
|
| 169 |
+
<a href="https://github.com/huggingface/datasets/blob/main/LICENSE">
|
| 170 |
+
<img alt="GitHub" src="https://img.shields.io/github/license/huggingface/datasets.svg?color=blue">
|
| 171 |
+
</a>
|
| 172 |
+
<a href="https://huggingface.co/docs/datasets/index.html">
|
| 173 |
+
<img alt="Documentation" src="https://img.shields.io/website/http/huggingface.co/docs/datasets/index.html.svg?down_color=red&down_message=offline&up_message=online">
|
| 174 |
+
</a>
|
| 175 |
+
<a href="https://github.com/huggingface/datasets/releases">
|
| 176 |
+
<img alt="GitHub release" src="https://img.shields.io/github/release/huggingface/datasets.svg">
|
| 177 |
+
</a>
|
| 178 |
+
<a href="https://huggingface.co/datasets/">
|
| 179 |
+
<img alt="Number of datasets" src="https://img.shields.io/endpoint?url=https://huggingface.co/api/shields/datasets&color=brightgreen">
|
| 180 |
+
</a>
|
| 181 |
+
<a href="CODE_OF_CONDUCT.md">
|
| 182 |
+
<img alt="Contributor Covenant" src="https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg">
|
| 183 |
+
</a>
|
| 184 |
+
<a href="https://zenodo.org/badge/latestdoi/250213286"><img src="https://zenodo.org/badge/250213286.svg" alt="DOI"></a>
|
| 185 |
+
</p>
|
| 186 |
+
|
| 187 |
+
🤗 Datasets is a lightweight library providing **two** main features:
|
| 188 |
+
|
| 189 |
+
- **one-line dataloaders for many public datasets**: one-liners to download and pre-process any of the  major public datasets (image datasets, audio datasets, text datasets in 467 languages and dialects, etc.) provided on the [HuggingFace Datasets Hub](https://huggingface.co/datasets). With a simple command like `squad_dataset = load_dataset("squad")`, get any of these datasets ready to use in a dataloader for training/evaluating a ML model (Numpy/Pandas/PyTorch/TensorFlow/JAX),
|
| 190 |
+
- **efficient data pre-processing**: simple, fast and reproducible data pre-processing for the public datasets as well as your own local datasets in CSV, JSON, text, PNG, JPEG, WAV, MP3, Parquet, etc. With simple commands like `processed_dataset = dataset.map(process_example)`, efficiently prepare the dataset for inspection and ML model evaluation and training.
|
| 191 |
+
|
| 192 |
+
[🎓 **Documentation**](https://huggingface.co/docs/datasets/) [🔎 **Find a dataset in the Hub**](https://huggingface.co/datasets) [🌟 **Share a dataset on the Hub**](https://huggingface.co/docs/datasets/share)
|
| 193 |
+
|
| 194 |
+
<h3 align="center">
|
| 195 |
+
<a href="https://hf.co/course"><img src="https://raw.githubusercontent.com/huggingface/datasets/main/docs/source/imgs/course_banner.png"></a>
|
| 196 |
+
</h3>
|
| 197 |
+
|
| 198 |
+
🤗 Datasets is designed to let the community easily add and share new datasets.
|
| 199 |
+
|
| 200 |
+
🤗 Datasets has many additional interesting features:
|
| 201 |
+
|
| 202 |
+
- Thrive on large datasets: 🤗 Datasets naturally frees the user from RAM memory limitation, all datasets are memory-mapped using an efficient zero-serialization cost backend (Apache Arrow).
|
| 203 |
+
- Smart caching: never wait for your data to process several times.
|
| 204 |
+
- Lightweight and fast with a transparent and pythonic API (multi-processing/caching/memory-mapping).
|
| 205 |
+
- Built-in interoperability with NumPy, pandas, PyTorch, TensorFlow 2 and JAX.
|
| 206 |
+
- Native support for audio and image data.
|
| 207 |
+
- Enable streaming mode to save disk space and start iterating over the dataset immediately.
|
| 208 |
+
|
| 209 |
+
🤗 Datasets originated from a fork of the awesome [TensorFlow Datasets](https://github.com/tensorflow/datasets) and the HuggingFace team want to deeply thank the TensorFlow Datasets team for building this amazing library. More details on the differences between 🤗 Datasets and `tfds` can be found in the section [Main differences between 🤗 Datasets and `tfds`](#main-differences-between--datasets-and-tfds).
|
| 210 |
+
|
| 211 |
+
# Installation
|
| 212 |
+
|
| 213 |
+
## With pip
|
| 214 |
+
|
| 215 |
+
🤗 Datasets can be installed from PyPi and has to be installed in a virtual environment (venv or conda for instance)
|
| 216 |
+
|
| 217 |
+
```bash
|
| 218 |
+
pip install datasets
|
| 219 |
+
```
|
| 220 |
+
|
| 221 |
+
## With conda
|
| 222 |
+
|
| 223 |
+
🤗 Datasets can be installed using conda as follows:
|
| 224 |
+
|
| 225 |
+
```bash
|
| 226 |
+
conda install -c huggingface -c conda-forge datasets
|
| 227 |
+
```
|
| 228 |
+
|
| 229 |
+
Follow the installation pages of TensorFlow and PyTorch to see how to install them with conda.
|
| 230 |
+
|
| 231 |
+
For more details on installation, check the installation page in the documentation: https://huggingface.co/docs/datasets/installation
|
| 232 |
+
|
| 233 |
+
## Installation to use with PyTorch/TensorFlow/pandas
|
| 234 |
+
|
| 235 |
+
If you plan to use 🤗 Datasets with PyTorch (1.0+), TensorFlow (2.2+) or pandas, you should also install PyTorch, TensorFlow or pandas.
|
| 236 |
+
|
| 237 |
+
For more details on using the library with NumPy, pandas, PyTorch or TensorFlow, check the quick start page in the documentation: https://huggingface.co/docs/datasets/quickstart
|
| 238 |
+
|
| 239 |
+
# Usage
|
| 240 |
+
|
| 241 |
+
🤗 Datasets is made to be very simple to use - the API is centered around a single function, `datasets.load_dataset(dataset_name, **kwargs)`, that instantiates a dataset.
|
| 242 |
+
|
| 243 |
+
This library can be used for text/image/audio/etc. datasets. Here is an example to load a text dataset:
|
| 244 |
+
|
| 245 |
+
Here is a quick example:
|
| 246 |
+
|
| 247 |
+
```python
|
| 248 |
+
from datasets import load_dataset
|
| 249 |
+
|
| 250 |
+
# Print all the available datasets
|
| 251 |
+
from huggingface_hub import list_datasets
|
| 252 |
+
print([dataset.id for dataset in list_datasets()])
|
| 253 |
+
|
| 254 |
+
# Load a dataset and print the first example in the training set
|
| 255 |
+
squad_dataset = load_dataset('squad')
|
| 256 |
+
print(squad_dataset['train'][0])
|
| 257 |
+
|
| 258 |
+
# Process the dataset - add a column with the length of the context texts
|
| 259 |
+
dataset_with_length = squad_dataset.map(lambda x: {"length": len(x["context"])})
|
| 260 |
+
|
| 261 |
+
# Process the dataset - tokenize the context texts (using a tokenizer from the 🤗 Transformers library)
|
| 262 |
+
from transformers import AutoTokenizer
|
| 263 |
+
tokenizer = AutoTokenizer.from_pretrained('bert-base-cased')
|
| 264 |
+
|
| 265 |
+
tokenized_dataset = squad_dataset.map(lambda x: tokenizer(x['context']), batched=True)
|
| 266 |
+
```
|
| 267 |
+
|
| 268 |
+
If your dataset is bigger than your disk or if you don't want to wait to download the data, you can use streaming:
|
| 269 |
+
|
| 270 |
+
```python
|
| 271 |
+
# If you want to use the dataset immediately and efficiently stream the data as you iterate over the dataset
|
| 272 |
+
image_dataset = load_dataset('cifar100', streaming=True)
|
| 273 |
+
for example in image_dataset["train"]:
|
| 274 |
+
break
|
| 275 |
+
```
|
| 276 |
+
|
| 277 |
+
For more details on using the library, check the quick start page in the documentation: https://huggingface.co/docs/datasets/quickstart and the specific pages on:
|
| 278 |
+
|
| 279 |
+
- Loading a dataset: https://huggingface.co/docs/datasets/loading
|
| 280 |
+
- What's in a Dataset: https://huggingface.co/docs/datasets/access
|
| 281 |
+
- Processing data with 🤗 Datasets: https://huggingface.co/docs/datasets/process
|
| 282 |
+
- Processing audio data: https://huggingface.co/docs/datasets/audio_process
|
| 283 |
+
- Processing image data: https://huggingface.co/docs/datasets/image_process
|
| 284 |
+
- Processing text data: https://huggingface.co/docs/datasets/nlp_process
|
| 285 |
+
- Streaming a dataset: https://huggingface.co/docs/datasets/stream
|
| 286 |
+
- Writing your own dataset loading script: https://huggingface.co/docs/datasets/dataset_script
|
| 287 |
+
- etc.
|
| 288 |
+
|
| 289 |
+
# Add a new dataset to the Hub
|
| 290 |
+
|
| 291 |
+
We have a very detailed step-by-step guide to add a new dataset to the  datasets already provided on the [HuggingFace Datasets Hub](https://huggingface.co/datasets).
|
| 292 |
+
|
| 293 |
+
You can find:
|
| 294 |
+
- [how to upload a dataset to the Hub using your web browser or Python](https://huggingface.co/docs/datasets/upload_dataset) and also
|
| 295 |
+
- [how to upload it using Git](https://huggingface.co/docs/datasets/share).
|
| 296 |
+
|
| 297 |
+
# Main differences between 🤗 Datasets and `tfds`
|
| 298 |
+
|
| 299 |
+
If you are familiar with the great TensorFlow Datasets, here are the main differences between 🤗 Datasets and `tfds`:
|
| 300 |
+
|
| 301 |
+
- the scripts in 🤗 Datasets are not provided within the library but are queried, downloaded/cached and dynamically loaded upon request
|
| 302 |
+
- the backend serialization of 🤗 Datasets is based on [Apache Arrow](https://arrow.apache.org/) instead of TF Records and leverage python dataclasses for info and features with some diverging features (we mostly don't do encoding and store the raw data as much as possible in the backend serialization cache).
|
| 303 |
+
- the user-facing dataset object of 🤗 Datasets is not a `tf.data.Dataset` but a built-in framework-agnostic dataset class with methods inspired by what we like in `tf.data` (like a `map()` method). It basically wraps a memory-mapped Arrow table cache.
|
| 304 |
+
|
| 305 |
+
# Disclaimers
|
| 306 |
+
|
| 307 |
+
🤗 Datasets may run Python code defined by the dataset authors to parse certain data formats or structures. For security reasons, we ask users to:
|
| 308 |
+
- check the dataset scripts they're going to run beforehand and
|
| 309 |
+
- pin the `revision` of the repositories they use.
|
| 310 |
+
|
| 311 |
+
If you're a dataset owner and wish to update any part of it (description, citation, license, etc.), or do not want your dataset to be included in the Hugging Face Hub, please get in touch by opening a discussion or a pull request in the Community tab of the dataset page. Thanks for your contribution to the ML community!
|
| 312 |
+
|
| 313 |
+
## BibTeX
|
| 314 |
+
|
| 315 |
+
If you want to cite our 🤗 Datasets library, you can use our [paper](https://arxiv.org/abs/2109.02846):
|
| 316 |
+
|
| 317 |
+
```bibtex
|
| 318 |
+
@inproceedings{lhoest-etal-2021-datasets,
|
| 319 |
+
title = "Datasets: A Community Library for Natural Language Processing",
|
| 320 |
+
author = "Lhoest, Quentin and
|
| 321 |
+
Villanova del Moral, Albert and
|
| 322 |
+
Jernite, Yacine and
|
| 323 |
+
Thakur, Abhishek and
|
| 324 |
+
von Platen, Patrick and
|
| 325 |
+
Patil, Suraj and
|
| 326 |
+
Chaumond, Julien and
|
| 327 |
+
Drame, Mariama and
|
| 328 |
+
Plu, Julien and
|
| 329 |
+
Tunstall, Lewis and
|
| 330 |
+
Davison, Joe and
|
| 331 |
+
{\v{S}}a{\v{s}}ko, Mario and
|
| 332 |
+
Chhablani, Gunjan and
|
| 333 |
+
Malik, Bhavitvya and
|
| 334 |
+
Brandeis, Simon and
|
| 335 |
+
Le Scao, Teven and
|
| 336 |
+
Sanh, Victor and
|
| 337 |
+
Xu, Canwen and
|
| 338 |
+
Patry, Nicolas and
|
| 339 |
+
McMillan-Major, Angelina and
|
| 340 |
+
Schmid, Philipp and
|
| 341 |
+
Gugger, Sylvain and
|
| 342 |
+
Delangue, Cl{\'e}ment and
|
| 343 |
+
Matussi{\`e}re, Th{\'e}o and
|
| 344 |
+
Debut, Lysandre and
|
| 345 |
+
Bekman, Stas and
|
| 346 |
+
Cistac, Pierric and
|
| 347 |
+
Goehringer, Thibault and
|
| 348 |
+
Mustar, Victor and
|
| 349 |
+
Lagunas, Fran{\c{c}}ois and
|
| 350 |
+
Rush, Alexander and
|
| 351 |
+
Wolf, Thomas",
|
| 352 |
+
booktitle = "Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing: System Demonstrations",
|
| 353 |
+
month = nov,
|
| 354 |
+
year = "2021",
|
| 355 |
+
address = "Online and Punta Cana, Dominican Republic",
|
| 356 |
+
publisher = "Association for Computational Linguistics",
|
| 357 |
+
url = "https://aclanthology.org/2021.emnlp-demo.21",
|
| 358 |
+
pages = "175--184",
|
| 359 |
+
abstract = "The scale, variety, and quantity of publicly-available NLP datasets has grown rapidly as researchers propose new tasks, larger models, and novel benchmarks. Datasets is a community library for contemporary NLP designed to support this ecosystem. Datasets aims to standardize end-user interfaces, versioning, and documentation, while providing a lightweight front-end that behaves similarly for small datasets as for internet-scale corpora. The design of the library incorporates a distributed, community-driven approach to adding datasets and documenting usage. After a year of development, the library now includes more than 650 unique datasets, has more than 250 contributors, and has helped support a variety of novel cross-dataset research projects and shared tasks. The library is available at https://github.com/huggingface/datasets.",
|
| 360 |
+
eprint={2109.02846},
|
| 361 |
+
archivePrefix={arXiv},
|
| 362 |
+
primaryClass={cs.CL},
|
| 363 |
+
}
|
| 364 |
+
```
|
| 365 |
+
|
| 366 |
+
If you need to cite a specific version of our 🤗 Datasets library for reproducibility, you can use the corresponding version Zenodo DOI from this [list](https://zenodo.org/search?q=conceptrecid:%224817768%22&sort=-version&all_versions=True).
|
| 367 |
+
|
| 368 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/datasets-2.20.0.dist-info/RECORD
ADDED
|
@@ -0,0 +1,279 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
../../../bin/datasets-cli,sha256=XRKMHoTu8RcaLptXEEAyYX_8C4uF3XYeK9zsbtSI_gc,291
|
| 2 |
+
datasets-2.20.0.dist-info/AUTHORS,sha256=L0FBY23tCNHLmvsOKAbumHn8WZZIK98sH53JYxhAchU,327
|
| 3 |
+
datasets-2.20.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 4 |
+
datasets-2.20.0.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
| 5 |
+
datasets-2.20.0.dist-info/METADATA,sha256=gERdf7DgYyPEKT-hrxzMIU01ZL41YI2HyKH8hzqMvP4,19239
|
| 6 |
+
datasets-2.20.0.dist-info/RECORD,,
|
| 7 |
+
datasets-2.20.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 8 |
+
datasets-2.20.0.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
|
| 9 |
+
datasets-2.20.0.dist-info/entry_points.txt,sha256=vhdg1JXUleCZtwvozP5q5iHqRpSETfyhSDJ39zW3KUA,70
|
| 10 |
+
datasets-2.20.0.dist-info/top_level.txt,sha256=9A857YvCQm_Dg3UjeKkWPz9sDBos0t3zN2pf5krTemQ,9
|
| 11 |
+
datasets/__init__.py,sha256=8dmPjgX01SGGJtr2LIkb3JEk1Qa187IT0yVIFrP2py4,2965
|
| 12 |
+
datasets/__pycache__/__init__.cpython-312.pyc,,
|
| 13 |
+
datasets/__pycache__/arrow_dataset.cpython-312.pyc,,
|
| 14 |
+
datasets/__pycache__/arrow_reader.cpython-312.pyc,,
|
| 15 |
+
datasets/__pycache__/arrow_writer.cpython-312.pyc,,
|
| 16 |
+
datasets/__pycache__/builder.bak.cpython-312.pyc,,
|
| 17 |
+
datasets/__pycache__/builder.cpython-312.pyc,,
|
| 18 |
+
datasets/__pycache__/combine.cpython-312.pyc,,
|
| 19 |
+
datasets/__pycache__/config.cpython-312.pyc,,
|
| 20 |
+
datasets/__pycache__/data_files.cpython-312.pyc,,
|
| 21 |
+
datasets/__pycache__/dataset_dict.cpython-312.pyc,,
|
| 22 |
+
datasets/__pycache__/distributed.cpython-312.pyc,,
|
| 23 |
+
datasets/__pycache__/exceptions.cpython-312.pyc,,
|
| 24 |
+
datasets/__pycache__/fingerprint.cpython-312.pyc,,
|
| 25 |
+
datasets/__pycache__/hub.cpython-312.pyc,,
|
| 26 |
+
datasets/__pycache__/info.cpython-312.pyc,,
|
| 27 |
+
datasets/__pycache__/inspect.cpython-312.pyc,,
|
| 28 |
+
datasets/__pycache__/iterable_dataset.cpython-312.pyc,,
|
| 29 |
+
datasets/__pycache__/keyhash.cpython-312.pyc,,
|
| 30 |
+
datasets/__pycache__/load.cpython-312.pyc,,
|
| 31 |
+
datasets/__pycache__/metric.cpython-312.pyc,,
|
| 32 |
+
datasets/__pycache__/naming.cpython-312.pyc,,
|
| 33 |
+
datasets/__pycache__/search.cpython-312.pyc,,
|
| 34 |
+
datasets/__pycache__/splits.cpython-312.pyc,,
|
| 35 |
+
datasets/__pycache__/streaming.cpython-312.pyc,,
|
| 36 |
+
datasets/__pycache__/table.cpython-312.pyc,,
|
| 37 |
+
datasets/arrow_dataset.py,sha256=7NM75kN1s55iKN1YanMCcTVfNJxxdquxEpbLMbwuLKQ,298993
|
| 38 |
+
datasets/arrow_reader.py,sha256=xbU1VF-BBnX1qY8CaS9nlXILCExdPNtOuSI3TjoHM30,27236
|
| 39 |
+
datasets/arrow_writer.py,sha256=0rtyqfWyAHFijbqv17kdRqOkwE1yxP6-JD3vpYpolEU,33637
|
| 40 |
+
datasets/builder.bak.py,sha256=YZYHkGfXIFeM878CLLM0YvyrY6gLw3_z_MEh-QnCybE,111808
|
| 41 |
+
datasets/builder.py,sha256=ty0za1TEbknXxeFANeqG8POqPtY4lsF_C0a-dRcGMsA,111510
|
| 42 |
+
datasets/combine.py,sha256=OvMg-5A_cBraHyEXbNTTrWjd9sbUiyA7PG6aBJpbg5Q,10924
|
| 43 |
+
datasets/commands/__init__.py,sha256=rujbQtxJbwHhF9WQqp2DD9tfVTghDMJdl0v6H551Pcs,312
|
| 44 |
+
datasets/commands/__pycache__/__init__.cpython-312.pyc,,
|
| 45 |
+
datasets/commands/__pycache__/convert.cpython-312.pyc,,
|
| 46 |
+
datasets/commands/__pycache__/convert_to_parquet.cpython-312.pyc,,
|
| 47 |
+
datasets/commands/__pycache__/datasets_cli.cpython-312.pyc,,
|
| 48 |
+
datasets/commands/__pycache__/delete_from_hub.cpython-312.pyc,,
|
| 49 |
+
datasets/commands/__pycache__/dummy_data.cpython-312.pyc,,
|
| 50 |
+
datasets/commands/__pycache__/env.cpython-312.pyc,,
|
| 51 |
+
datasets/commands/__pycache__/run_beam.cpython-312.pyc,,
|
| 52 |
+
datasets/commands/__pycache__/test.cpython-312.pyc,,
|
| 53 |
+
datasets/commands/convert.py,sha256=-VOqHh0ySkIOfEYmR7HVs7PzouVrkVShqyUtNGcNCYU,7914
|
| 54 |
+
datasets/commands/convert_to_parquet.py,sha256=cCCug82MPSUiA_TUlJLFUhqGdaKNOL2NVpKQNtTvaCQ,1593
|
| 55 |
+
datasets/commands/datasets_cli.py,sha256=IYDSegUQgDa2ckXrwvLUXGm2517NKiUadLYkpBXWXI8,1648
|
| 56 |
+
datasets/commands/delete_from_hub.py,sha256=o0wdolb1r1Jnl6F0KdqKn3u0l8VR2od6KzbRoqrSNPM,1396
|
| 57 |
+
datasets/commands/dummy_data.py,sha256=rBVQAN1wd9fvldw79PVoL3vNZdqosjO_PPO_SFEYUqw,23106
|
| 58 |
+
datasets/commands/env.py,sha256=8qg-hpXSXXsHvtYFvJkn5rn9IncqPsjjx3nR8no4a2I,1239
|
| 59 |
+
datasets/commands/run_beam.py,sha256=Dg8migMADmQvUg0koc2MN-yOQts8olBw548gCejNuwM,7010
|
| 60 |
+
datasets/commands/test.py,sha256=VzxjshSCoLj9QjX5kSi5SUJDqLHClRJ5hMdMgOiEUmo,9127
|
| 61 |
+
datasets/config.py,sha256=6Rsgs5qKpRVq0OepP6gNBNd3GLK5kvhgO3rpbRWxkQc,10507
|
| 62 |
+
datasets/data_files.py,sha256=UcIKAbve3bht_J2bCJ_j6Wg4huDOi9K0mvlrmviC7MA,32464
|
| 63 |
+
datasets/dataset_dict.py,sha256=YKFCRsGotytbwDAnPpyOeWbwVDPGVyRWdwP3AxLrXSg,105682
|
| 64 |
+
datasets/distributed.py,sha256=jZ31II0mmlPMhZbEtbAsX6jlK0U69qdpV3uS5U5JFYw,1560
|
| 65 |
+
datasets/download/__init__.py,sha256=lbFOtITDaR7PHrhzJ8VfRnpaOT6NYozSxUcLv_GVfTg,281
|
| 66 |
+
datasets/download/__pycache__/__init__.cpython-312.pyc,,
|
| 67 |
+
datasets/download/__pycache__/download_config.cpython-312.pyc,,
|
| 68 |
+
datasets/download/__pycache__/download_manager.cpython-312.pyc,,
|
| 69 |
+
datasets/download/__pycache__/mock_download_manager.cpython-312.pyc,,
|
| 70 |
+
datasets/download/__pycache__/streaming_download_manager.cpython-312.pyc,,
|
| 71 |
+
datasets/download/download_config.py,sha256=I2OBuePpZsZoktzBarjq4SJjJHM-1biTiletBPad8go,5097
|
| 72 |
+
datasets/download/download_manager.py,sha256=Fvz0FDBrmaH8gYfobcKeaT6p4gaCos9m0sjY3F8vKmg,17213
|
| 73 |
+
datasets/download/mock_download_manager.py,sha256=jpMYk8SFjqnoR9J-8qqldQyKCtzjCnUXKPkSp3og7DY,10351
|
| 74 |
+
datasets/download/streaming_download_manager.py,sha256=eqFKHDWSaP2bZpaDQIJbUIvZOSb6r6P1Kj4Ko7qGTVI,7339
|
| 75 |
+
datasets/exceptions.py,sha256=eESFezOkT8uyRPRjwA7R4pP7EXBfBDG-YF9agsWYZ8E,6183
|
| 76 |
+
datasets/features/__init__.py,sha256=gLTc48U23pAGe9dofgR5C-mitCjWMqoOXMoAu1U3HxA,431
|
| 77 |
+
datasets/features/__pycache__/__init__.cpython-312.pyc,,
|
| 78 |
+
datasets/features/__pycache__/audio.cpython-312.pyc,,
|
| 79 |
+
datasets/features/__pycache__/features.cpython-312.pyc,,
|
| 80 |
+
datasets/features/__pycache__/image.cpython-312.pyc,,
|
| 81 |
+
datasets/features/__pycache__/translation.cpython-312.pyc,,
|
| 82 |
+
datasets/features/audio.py,sha256=8_xpCxr5jyCM9zemFWTZK6mNfXv6VeF_3stNdQx0JFA,12225
|
| 83 |
+
datasets/features/features.py,sha256=g1LTA8jL_PQJRlP3XMXSIaWjNXUSrHdlNPWaqPSZabs,90178
|
| 84 |
+
datasets/features/image.py,sha256=JoBseOcKuoa4d04xu-sQylvGWVURhZfJPml4pSTHDnQ,15526
|
| 85 |
+
datasets/features/translation.py,sha256=J6jxAcAPakmMwtaHhHAhDENi1AgIGmeNn4neuEeFWYg,4476
|
| 86 |
+
datasets/filesystems/__init__.py,sha256=bLz7EzLxZS9pqWp1Q8paS1g0waD05K44hBvKFwgIZ48,2268
|
| 87 |
+
datasets/filesystems/__pycache__/__init__.cpython-312.pyc,,
|
| 88 |
+
datasets/filesystems/__pycache__/compression.cpython-312.pyc,,
|
| 89 |
+
datasets/filesystems/__pycache__/s3filesystem.cpython-312.pyc,,
|
| 90 |
+
datasets/filesystems/compression.py,sha256=2NnuTGzqmH5wk_Vmp9nhuQCAAZ6bzBpCErvrHVOLR4c,4488
|
| 91 |
+
datasets/filesystems/s3filesystem.py,sha256=KowTCvTSsrdAU4syiaRffNw4g25-DTbjsoXBIMWz2tk,5725
|
| 92 |
+
datasets/fingerprint.py,sha256=pDq49L1aSrD9WXyfEVsR0rt28jDdW7rj7CiTykbIMRo,22040
|
| 93 |
+
datasets/formatting/__init__.py,sha256=K_egpF_SWGHL9H0hlob4lO6g214Sjh0fMG-7_V8w7eE,5391
|
| 94 |
+
datasets/formatting/__pycache__/__init__.cpython-312.pyc,,
|
| 95 |
+
datasets/formatting/__pycache__/formatting.cpython-312.pyc,,
|
| 96 |
+
datasets/formatting/__pycache__/jax_formatter.cpython-312.pyc,,
|
| 97 |
+
datasets/formatting/__pycache__/np_formatter.cpython-312.pyc,,
|
| 98 |
+
datasets/formatting/__pycache__/polars_formatter.cpython-312.pyc,,
|
| 99 |
+
datasets/formatting/__pycache__/tf_formatter.cpython-312.pyc,,
|
| 100 |
+
datasets/formatting/__pycache__/torch_formatter.cpython-312.pyc,,
|
| 101 |
+
datasets/formatting/formatting.py,sha256=uq2z8ifT_q09Fp3mTa563LUiuVHsFI0SZLTNfVzXRrw,25853
|
| 102 |
+
datasets/formatting/jax_formatter.py,sha256=KoTbq0XSUQ1Rp3G5IzN3cU192JZ9t5HAZtHiVpHPbB4,6839
|
| 103 |
+
datasets/formatting/np_formatter.py,sha256=DJBnt3oF0fHWJCqe4j6o9BOupZ0uGrw_xxFfsGBVoyk,4525
|
| 104 |
+
datasets/formatting/polars_formatter.py,sha256=PoOZM4RLFvAJdRZyNG5w3aOps3W3Saq1F8Mfyapgv8I,4700
|
| 105 |
+
datasets/formatting/tf_formatter.py,sha256=QRzeq8f1ALa6961PBNFRTH3RT4S-_8soqfUl9a7F89I,4657
|
| 106 |
+
datasets/formatting/torch_formatter.py,sha256=s6bP2ktOa8GXkjXq46odn1VpnzZhHN4Wrh7JUP9_3Y0,4728
|
| 107 |
+
datasets/hub.py,sha256=wcTkEn0rL6kfG76CQIG5NeZoCtZ2XWJe0JnU-HnKs2U,9380
|
| 108 |
+
datasets/info.py,sha256=R-o9Uv97SUoSI_SV4_HQQX7rJx6RHHWFfFmGIrnmeWg,26789
|
| 109 |
+
datasets/inspect.py,sha256=CFZ-Z1l9umEZRftcBNXecEq9I47gMAC-0JOCg3QCRqA,26400
|
| 110 |
+
datasets/io/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 111 |
+
datasets/io/__pycache__/__init__.cpython-312.pyc,,
|
| 112 |
+
datasets/io/__pycache__/abc.cpython-312.pyc,,
|
| 113 |
+
datasets/io/__pycache__/csv.cpython-312.pyc,,
|
| 114 |
+
datasets/io/__pycache__/generator.cpython-312.pyc,,
|
| 115 |
+
datasets/io/__pycache__/json.cpython-312.pyc,,
|
| 116 |
+
datasets/io/__pycache__/parquet.cpython-312.pyc,,
|
| 117 |
+
datasets/io/__pycache__/spark.cpython-312.pyc,,
|
| 118 |
+
datasets/io/__pycache__/sql.cpython-312.pyc,,
|
| 119 |
+
datasets/io/__pycache__/text.cpython-312.pyc,,
|
| 120 |
+
datasets/io/abc.py,sha256=LwDMXYs6YkhZuz1JiMK4PDIqgNjv7I8xH3UMUELW2ys,1672
|
| 121 |
+
datasets/io/csv.py,sha256=v4zaWehHb9U3njbdhy7wQnb8qO_c_58XOUC9JgBBVwI,5265
|
| 122 |
+
datasets/io/generator.py,sha256=mHPZLq376-RQfq9bwxDp7EHjyCJKG242gaPWUmTNA5E,1788
|
| 123 |
+
datasets/io/json.py,sha256=_0PwV7ps8In3HQpNNJpYtdmafMEmQsF1lr74YuCRLlg,6459
|
| 124 |
+
datasets/io/parquet.py,sha256=qnPUUITsm-shWK2_6FcJE6rlRwivr97d7ghP0IT5QZA,5832
|
| 125 |
+
datasets/io/spark.py,sha256=VUIODLHgIbiK0CI0UvthQ_gUO0MQDtHUozvw7Dfs8FI,1797
|
| 126 |
+
datasets/io/sql.py,sha256=4Zjw7peVEhhzoDtz2VTCFPqt2Tpy4zMB7T7ajb2GVTY,4234
|
| 127 |
+
datasets/io/text.py,sha256=bebEzXBSGC40_Gy94j9ZTJ7Hg0IfrV_4pnIUEhQZVig,1975
|
| 128 |
+
datasets/iterable_dataset.py,sha256=ZZQtUTL6STNwuJgZmfQ4WvJ3kYiA-ERJPhFu7HitnUw,128842
|
| 129 |
+
datasets/keyhash.py,sha256=gZLJ-0lIaj5mXP3fm0zFz8oY9L3Qu_OMkgil06oq0eg,3872
|
| 130 |
+
datasets/load.py,sha256=TnWdQ4I7lEpqGJCM6HJw8H9INgrz_tFvivV-qddj2zM,127049
|
| 131 |
+
datasets/metric.py,sha256=BDyIxMAC7i9lGDrRcJjeMN1sxEcfXHGX29_SfTVfC3c,28065
|
| 132 |
+
datasets/naming.py,sha256=aqQqYG4QR8YoxJJMAUyVv_oQyudm4WAApsEHvcozpNg,3001
|
| 133 |
+
datasets/packaged_modules/__init__.py,sha256=Ot5gc8qiTJOBP4SSOLB4jRQboJuFdjonV7JiI0lxGz8,3748
|
| 134 |
+
datasets/packaged_modules/__pycache__/__init__.cpython-312.pyc,,
|
| 135 |
+
datasets/packaged_modules/arrow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 136 |
+
datasets/packaged_modules/arrow/__pycache__/__init__.cpython-312.pyc,,
|
| 137 |
+
datasets/packaged_modules/arrow/__pycache__/arrow.cpython-312.pyc,,
|
| 138 |
+
datasets/packaged_modules/arrow/arrow.py,sha256=No69C8TLnOotZfzHn_Vxl6Zct1pyTiuUMG8l9LHl0js,3028
|
| 139 |
+
datasets/packaged_modules/audiofolder/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 140 |
+
datasets/packaged_modules/audiofolder/__pycache__/__init__.cpython-312.pyc,,
|
| 141 |
+
datasets/packaged_modules/audiofolder/__pycache__/audiofolder.cpython-312.pyc,,
|
| 142 |
+
datasets/packaged_modules/audiofolder/audiofolder.py,sha256=t6dAb2CAXuGi_7KOf985XmypE12LkzHqeV19tAt39e8,1630
|
| 143 |
+
datasets/packaged_modules/cache/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 144 |
+
datasets/packaged_modules/cache/__pycache__/__init__.cpython-312.pyc,,
|
| 145 |
+
datasets/packaged_modules/cache/__pycache__/cache.cpython-312.pyc,,
|
| 146 |
+
datasets/packaged_modules/cache/cache.py,sha256=XYXcLgZQRh8O85W-omwsnAJ9ZN3F1xz462PvU1n485o,8909
|
| 147 |
+
datasets/packaged_modules/csv/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 148 |
+
datasets/packaged_modules/csv/__pycache__/__init__.cpython-312.pyc,,
|
| 149 |
+
datasets/packaged_modules/csv/__pycache__/csv.cpython-312.pyc,,
|
| 150 |
+
datasets/packaged_modules/csv/csv.py,sha256=82m39udsJK92n87jx1_vJYZ4HGKIm6JOKgQmowfkj1w,8580
|
| 151 |
+
datasets/packaged_modules/folder_based_builder/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 152 |
+
datasets/packaged_modules/folder_based_builder/__pycache__/__init__.cpython-312.pyc,,
|
| 153 |
+
datasets/packaged_modules/folder_based_builder/__pycache__/folder_based_builder.cpython-312.pyc,,
|
| 154 |
+
datasets/packaged_modules/folder_based_builder/folder_based_builder.py,sha256=VH9AAlv81NjYS-6BII1VAx6AQ9Qa3xt4Z5Kz2vdRmU8,22571
|
| 155 |
+
datasets/packaged_modules/generator/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 156 |
+
datasets/packaged_modules/generator/__pycache__/__init__.cpython-312.pyc,,
|
| 157 |
+
datasets/packaged_modules/generator/__pycache__/generator.cpython-312.pyc,,
|
| 158 |
+
datasets/packaged_modules/generator/generator.py,sha256=NpSXrAcSNM117K03NPzTr0UMQvam_gJCtShHzMxt5K4,982
|
| 159 |
+
datasets/packaged_modules/imagefolder/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 160 |
+
datasets/packaged_modules/imagefolder/__pycache__/__init__.cpython-312.pyc,,
|
| 161 |
+
datasets/packaged_modules/imagefolder/__pycache__/imagefolder.cpython-312.pyc,,
|
| 162 |
+
datasets/packaged_modules/imagefolder/imagefolder.py,sha256=2giBUZHlLbJSv2Zx_YhmkQiFrtsSuMjKdM0GV8EtABs,2037
|
| 163 |
+
datasets/packaged_modules/json/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 164 |
+
datasets/packaged_modules/json/__pycache__/__init__.cpython-312.pyc,,
|
| 165 |
+
datasets/packaged_modules/json/__pycache__/json.cpython-312.pyc,,
|
| 166 |
+
datasets/packaged_modules/json/json.py,sha256=LuyZKNR4P8Nk9tDg2dk_8zU6z94Tf9MBvgLSwabIKww,8529
|
| 167 |
+
datasets/packaged_modules/pandas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 168 |
+
datasets/packaged_modules/pandas/__pycache__/__init__.cpython-312.pyc,,
|
| 169 |
+
datasets/packaged_modules/pandas/__pycache__/pandas.cpython-312.pyc,,
|
| 170 |
+
datasets/packaged_modules/pandas/pandas.py,sha256=eR0B5iGOHZ1owzezYmlvx5U_rWblmlpCt_PdC5Ax59E,2547
|
| 171 |
+
datasets/packaged_modules/parquet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 172 |
+
datasets/packaged_modules/parquet/__pycache__/__init__.cpython-312.pyc,,
|
| 173 |
+
datasets/packaged_modules/parquet/__pycache__/parquet.cpython-312.pyc,,
|
| 174 |
+
datasets/packaged_modules/parquet/parquet.py,sha256=m-M-YrS6uzdOxvbBpT8vw8lVs65FJuNiXgb5bN-uy08,4541
|
| 175 |
+
datasets/packaged_modules/spark/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 176 |
+
datasets/packaged_modules/spark/__pycache__/__init__.cpython-312.pyc,,
|
| 177 |
+
datasets/packaged_modules/spark/__pycache__/spark.cpython-312.pyc,,
|
| 178 |
+
datasets/packaged_modules/spark/spark.py,sha256=SVvpgK9eaaOFSSM6ajoXgHcmRVzV2iutdA1aEzvz9IM,14626
|
| 179 |
+
datasets/packaged_modules/sql/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 180 |
+
datasets/packaged_modules/sql/__pycache__/__init__.cpython-312.pyc,,
|
| 181 |
+
datasets/packaged_modules/sql/__pycache__/sql.cpython-312.pyc,,
|
| 182 |
+
datasets/packaged_modules/sql/sql.py,sha256=CihTzJh3Z95a0WbEoCT159aUkGh-KsNhv62v5LctLXk,4514
|
| 183 |
+
datasets/packaged_modules/text/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 184 |
+
datasets/packaged_modules/text/__pycache__/__init__.cpython-312.pyc,,
|
| 185 |
+
datasets/packaged_modules/text/__pycache__/text.cpython-312.pyc,,
|
| 186 |
+
datasets/packaged_modules/text/text.py,sha256=w_BcPHmyMVDmn2kRDsLc9ASGW51KRyeALYYabm8Z4kg,6027
|
| 187 |
+
datasets/packaged_modules/webdataset/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 188 |
+
datasets/packaged_modules/webdataset/__pycache__/__init__.cpython-312.pyc,,
|
| 189 |
+
datasets/packaged_modules/webdataset/__pycache__/_tenbin.cpython-312.pyc,,
|
| 190 |
+
datasets/packaged_modules/webdataset/__pycache__/webdataset.cpython-312.pyc,,
|
| 191 |
+
datasets/packaged_modules/webdataset/_tenbin.py,sha256=oovYsgR2R3eXSn1xSCLG3oTly1szKDP4UOiRp4ORdIk,8533
|
| 192 |
+
datasets/packaged_modules/webdataset/webdataset.py,sha256=zRsipIHpT4kD7F20j32I2zrYwHmyo9lXyOdO0kBrJFI,9347
|
| 193 |
+
datasets/parallel/__init__.py,sha256=wiRFK4x67ez2vvmjwM2Sb9R1yFdf38laSarU9y0Bido,76
|
| 194 |
+
datasets/parallel/__pycache__/__init__.cpython-312.pyc,,
|
| 195 |
+
datasets/parallel/__pycache__/parallel.cpython-312.pyc,,
|
| 196 |
+
datasets/parallel/parallel.py,sha256=E-oOQ6zwKrkLFPwZ-3EOcr_aANJDhE-d6QTq7Mp7WvA,4738
|
| 197 |
+
datasets/search.py,sha256=oUh55M77KOxHU-V4ZFVosHCj3IaAOWJJ8bmkGD1aXxw,35606
|
| 198 |
+
datasets/splits.py,sha256=2FY6TPAvkBDhU4szbgHcOZTtKgngtNKE6noCmfhLP6U,23509
|
| 199 |
+
datasets/streaming.py,sha256=A04UAT5VeFrAn7t6gODgnxb7DgJvONLW-22uESg6-Fo,6540
|
| 200 |
+
datasets/table.py,sha256=t8g-hVxNhOlKZquvuwymnId7uNqLxXJ7f4jqZCMwaL4,95428
|
| 201 |
+
datasets/tasks/__init__.py,sha256=ExUcieN-G7_ybwfGqi3-Kt3akv3hrnlCq_RwEosFhiY,1614
|
| 202 |
+
datasets/tasks/__pycache__/__init__.cpython-312.pyc,,
|
| 203 |
+
datasets/tasks/__pycache__/audio_classification.cpython-312.pyc,,
|
| 204 |
+
datasets/tasks/__pycache__/automatic_speech_recognition.cpython-312.pyc,,
|
| 205 |
+
datasets/tasks/__pycache__/base.cpython-312.pyc,,
|
| 206 |
+
datasets/tasks/__pycache__/image_classification.cpython-312.pyc,,
|
| 207 |
+
datasets/tasks/__pycache__/language_modeling.cpython-312.pyc,,
|
| 208 |
+
datasets/tasks/__pycache__/question_answering.cpython-312.pyc,,
|
| 209 |
+
datasets/tasks/__pycache__/summarization.cpython-312.pyc,,
|
| 210 |
+
datasets/tasks/__pycache__/text_classification.cpython-312.pyc,,
|
| 211 |
+
datasets/tasks/audio_classification.py,sha256=fkR37qfJfJRPgCizf9iDV-dBnsGmLo2V0w8JpMwyX0M,1297
|
| 212 |
+
datasets/tasks/automatic_speech_recognition.py,sha256=zbTTsLX5N-_Da5oucuk6zBZhDdhD4N5_rzsni9lT_vo,1309
|
| 213 |
+
datasets/tasks/base.py,sha256=SlYEeDS87jruZNNkDRgz-U4q7EUijePL-RTN14ngwsk,1095
|
| 214 |
+
datasets/tasks/image_classification.py,sha256=llF5_koN5APq7cF_WlGy5c9hAVspRlYCprXgwAa7kCc,1297
|
| 215 |
+
datasets/tasks/language_modeling.py,sha256=Vdor-TdCGdiMpaIPZr0fRvgNrt5_D-1JElXKGbfQhvI,581
|
| 216 |
+
datasets/tasks/question_answering.py,sha256=z8a80QRTsouUuIYVKQRDMTxOGeSK1QMycyDHxUW42zg,1105
|
| 217 |
+
datasets/tasks/summarization.py,sha256=adrpmvgfAjXCyDRdZnZ52h0FKql5-EWU61Z2-v6rN-w,772
|
| 218 |
+
datasets/tasks/text_classification.py,sha256=KvlddXxnnzzjCjJmyY3Z-e1G4dpTN0UXqlmZ1L0LrjU,1403
|
| 219 |
+
datasets/utils/__init__.py,sha256=PuZtB9YTbRyvdwubnsx-JGdHuMA7p0I0Rmh0E_uxYF0,999
|
| 220 |
+
datasets/utils/__pycache__/__init__.cpython-312.pyc,,
|
| 221 |
+
datasets/utils/__pycache__/_dataset_viewer.cpython-312.pyc,,
|
| 222 |
+
datasets/utils/__pycache__/_dill.cpython-312.pyc,,
|
| 223 |
+
datasets/utils/__pycache__/_filelock.cpython-312.pyc,,
|
| 224 |
+
datasets/utils/__pycache__/beam_utils.cpython-312.pyc,,
|
| 225 |
+
datasets/utils/__pycache__/cache.cpython-312.pyc,,
|
| 226 |
+
datasets/utils/__pycache__/deprecation_utils.cpython-312.pyc,,
|
| 227 |
+
datasets/utils/__pycache__/doc_utils.cpython-312.pyc,,
|
| 228 |
+
datasets/utils/__pycache__/download_manager.cpython-312.pyc,,
|
| 229 |
+
datasets/utils/__pycache__/experimental.cpython-312.pyc,,
|
| 230 |
+
datasets/utils/__pycache__/extract.cpython-312.pyc,,
|
| 231 |
+
datasets/utils/__pycache__/file_utils.cpython-312.pyc,,
|
| 232 |
+
datasets/utils/__pycache__/filelock.cpython-312.pyc,,
|
| 233 |
+
datasets/utils/__pycache__/hub.cpython-312.pyc,,
|
| 234 |
+
datasets/utils/__pycache__/info_utils.cpython-312.pyc,,
|
| 235 |
+
datasets/utils/__pycache__/logging.cpython-312.pyc,,
|
| 236 |
+
datasets/utils/__pycache__/metadata.cpython-312.pyc,,
|
| 237 |
+
datasets/utils/__pycache__/patching.cpython-312.pyc,,
|
| 238 |
+
datasets/utils/__pycache__/py_utils.cpython-312.pyc,,
|
| 239 |
+
datasets/utils/__pycache__/readme.cpython-312.pyc,,
|
| 240 |
+
datasets/utils/__pycache__/sharding.cpython-312.pyc,,
|
| 241 |
+
datasets/utils/__pycache__/stratify.cpython-312.pyc,,
|
| 242 |
+
datasets/utils/__pycache__/tf_utils.cpython-312.pyc,,
|
| 243 |
+
datasets/utils/__pycache__/tqdm.cpython-312.pyc,,
|
| 244 |
+
datasets/utils/__pycache__/track.cpython-312.pyc,,
|
| 245 |
+
datasets/utils/__pycache__/typing.cpython-312.pyc,,
|
| 246 |
+
datasets/utils/__pycache__/version.cpython-312.pyc,,
|
| 247 |
+
datasets/utils/_dataset_viewer.py,sha256=L9gqrMGS6FgmEJps2uBK7HFFPFENrL881ZKIVAiaF-E,4438
|
| 248 |
+
datasets/utils/_dill.py,sha256=_qM3dQ_9sYQg5PrQdGuzpNvdRhf1nLgYQNF4MZAaZ-8,16916
|
| 249 |
+
datasets/utils/_filelock.py,sha256=yl4ZQupEUyPu7f8D2ZCXitIMlajDu322QcO7Fio8eQI,2370
|
| 250 |
+
datasets/utils/beam_utils.py,sha256=DvA0ZVrx4-T9iHpB9VpduKn435p4rFaJw0Ua5cKmpeI,2029
|
| 251 |
+
datasets/utils/cache.py,sha256=ouFjySURlby2H9KqJLfpRBM8H1Fwiuo3LBlfZAB-OPo,10557
|
| 252 |
+
datasets/utils/deprecation_utils.py,sha256=hTHwlzRs92NfNVudH71LMpW70sjbsP5amebrIgi3A-U,3452
|
| 253 |
+
datasets/utils/doc_utils.py,sha256=HoSm0TFaQaCYGfDgNhpBJ4Xc2WQZuOD6dTxLd9D87fs,407
|
| 254 |
+
datasets/utils/download_manager.py,sha256=AXDA-dUNUOmmy4Z7e8A34BJtQPcbJhWSQuO4p5wnDWY,60
|
| 255 |
+
datasets/utils/experimental.py,sha256=JgOjaEY3RWZ--3u0-ry82gLCDUpudfBfl-hWZ46SyS4,1097
|
| 256 |
+
datasets/utils/extract.py,sha256=Pw00NNW-vbmTfHduB-YCBEaw8qEmR4z_Ira7ZMiSlXs,14189
|
| 257 |
+
datasets/utils/file_utils.py,sha256=qrKSYyyyO8JGRc6wE2PLb4qmiv76rFVPQr0GWy7SLRk,65597
|
| 258 |
+
datasets/utils/filelock.py,sha256=H6C5dQGFCzVKyeDRRY8fZ4YGTEvvNd-MTjpL_sWYb5k,352
|
| 259 |
+
datasets/utils/hub.py,sha256=V2JGolL5VjFT0YiEhI0sxJED_9tGdvma7lH22d64S9I,130
|
| 260 |
+
datasets/utils/info_utils.py,sha256=gAzubjnQbE0YTzB3hf3Cipmx5wCBtOje3fPwjYdzVBE,4330
|
| 261 |
+
datasets/utils/logging.py,sha256=a9kgqN1Xo6HvsIPbrHY08n7cUukxQqd3vpwTubisL3E,5404
|
| 262 |
+
datasets/utils/metadata.py,sha256=EXuwMc0s3jgksgglAFYERpKUd5deEsjQZq5wlIImjUM,12440
|
| 263 |
+
datasets/utils/patching.py,sha256=iTeb7XG4faLJKNylq55EcZyCndUXU_XBDvOOkuDz_sc,4955
|
| 264 |
+
datasets/utils/py_utils.py,sha256=YsBGk9CGEEH3LOsHeQ2_xNKCLABeMl1YgKTjCI24Awg,27624
|
| 265 |
+
datasets/utils/readme.py,sha256=JFlaLMCGrIz0nQCdnYKUZk5d9D9DErEYfjtRrX9VzIw,12627
|
| 266 |
+
datasets/utils/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 267 |
+
datasets/utils/resources/__pycache__/__init__.cpython-312.pyc,,
|
| 268 |
+
datasets/utils/resources/creators.json,sha256=XtIpMZefgBOdTevRrQTkFiufbgCbp_iyxseyphYQkn0,257
|
| 269 |
+
datasets/utils/resources/languages.json,sha256=Z0rQNPsfje8zMi8KdvvwxF4APwwqcskJFUvhNiLAgPM,199138
|
| 270 |
+
datasets/utils/resources/multilingualities.json,sha256=02Uc8RtRzfl13l98Y_alZm5HuMYwPzL78B0S5a1X-8c,205
|
| 271 |
+
datasets/utils/resources/readme_structure.yaml,sha256=hNf9msoBZw5jfakQrDb0Af8T325TXdcaHsAO2MUcZvY,3877
|
| 272 |
+
datasets/utils/resources/size_categories.json,sha256=_5nAP7z8R6t7_GfER81QudFO6Y1tqYu4AWrr4Aot8S8,171
|
| 273 |
+
datasets/utils/sharding.py,sha256=FDi895opKH7XkpfIu-ag9PqBQo2PGx0tSO3Dg-gDAAs,4288
|
| 274 |
+
datasets/utils/stratify.py,sha256=uMwuCDRbW342vy-lXDHs6IQusOr7c9nOG3PpnWyzJO4,4091
|
| 275 |
+
datasets/utils/tf_utils.py,sha256=YWmXP525b-kp1A-pnF-rGEOKqmg0Dv5j8RXJieSbkZc,25044
|
| 276 |
+
datasets/utils/tqdm.py,sha256=44F0g2fBpJwShh1l88PP7Z8kBihFWA_Yee4sjiQSxes,4303
|
| 277 |
+
datasets/utils/track.py,sha256=k0HYom1uxmEvYdIOMei6ie39mrrOBmf-Qd0HAYVnfag,1407
|
| 278 |
+
datasets/utils/typing.py,sha256=LznosIqUzjXgwbRLAGCv4_7-yZo7muYY42Y3495oz5I,224
|
| 279 |
+
datasets/utils/version.py,sha256=Z82cHpjTbQVJyWgnwSU8DsW2G0y-sSbSoOVeQrAds9k,3281
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/datasets-2.20.0.dist-info/REQUESTED
ADDED
|
File without changes
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/datasets-2.20.0.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: bdist_wheel (0.36.2)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
| 5 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/datasets-2.20.0.dist-info/entry_points.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[console_scripts]
|
| 2 |
+
datasets-cli = datasets.commands.datasets_cli:main
|
| 3 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/datasets-2.20.0.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
datasets
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/evaluate-0.4.6.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/evaluate-0.4.6.dist-info/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Apache License
|
| 3 |
+
Version 2.0, January 2004
|
| 4 |
+
http://www.apache.org/licenses/
|
| 5 |
+
|
| 6 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 12 |
+
|
| 13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 14 |
+
the copyright owner that is granting the License.
|
| 15 |
+
|
| 16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 17 |
+
other entities that control, are controlled by, or are under common
|
| 18 |
+
control with that entity. For the purposes of this definition,
|
| 19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 20 |
+
direction or management of such entity, whether by contract or
|
| 21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 23 |
+
|
| 24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 25 |
+
exercising permissions granted by this License.
|
| 26 |
+
|
| 27 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 28 |
+
including but not limited to software source code, documentation
|
| 29 |
+
source, and configuration files.
|
| 30 |
+
|
| 31 |
+
"Object" form shall mean any form resulting from mechanical
|
| 32 |
+
transformation or translation of a Source form, including but
|
| 33 |
+
not limited to compiled object code, generated documentation,
|
| 34 |
+
and conversions to other media types.
|
| 35 |
+
|
| 36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 37 |
+
Object form, made available under the License, as indicated by a
|
| 38 |
+
copyright notice that is included in or attached to the work
|
| 39 |
+
(an example is provided in the Appendix below).
|
| 40 |
+
|
| 41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 42 |
+
form, that is based on (or derived from) the Work and for which the
|
| 43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 45 |
+
of this License, Derivative Works shall not include works that remain
|
| 46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 47 |
+
the Work and Derivative Works thereof.
|
| 48 |
+
|
| 49 |
+
"Contribution" shall mean any work of authorship, including
|
| 50 |
+
the original version of the Work and any modifications or additions
|
| 51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 55 |
+
means any form of electronic, verbal, or written communication sent
|
| 56 |
+
to the Licensor or its representatives, including but not limited to
|
| 57 |
+
communication on electronic mailing lists, source code control systems,
|
| 58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 60 |
+
excluding communication that is conspicuously marked or otherwise
|
| 61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 62 |
+
|
| 63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 65 |
+
subsequently incorporated within the Work.
|
| 66 |
+
|
| 67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 72 |
+
Work and such Derivative Works in Source or Object form.
|
| 73 |
+
|
| 74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 77 |
+
(except as stated in this section) patent license to make, have made,
|
| 78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 79 |
+
where such license applies only to those patent claims licensable
|
| 80 |
+
by such Contributor that are necessarily infringed by their
|
| 81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 83 |
+
institute patent litigation against any entity (including a
|
| 84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 85 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 86 |
+
or contributory patent infringement, then any patent licenses
|
| 87 |
+
granted to You under this License for that Work shall terminate
|
| 88 |
+
as of the date such litigation is filed.
|
| 89 |
+
|
| 90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 91 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 92 |
+
modifications, and in Source or Object form, provided that You
|
| 93 |
+
meet the following conditions:
|
| 94 |
+
|
| 95 |
+
(a) You must give any other recipients of the Work or
|
| 96 |
+
Derivative Works a copy of this License; and
|
| 97 |
+
|
| 98 |
+
(b) You must cause any modified files to carry prominent notices
|
| 99 |
+
stating that You changed the files; and
|
| 100 |
+
|
| 101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 102 |
+
that You distribute, all copyright, patent, trademark, and
|
| 103 |
+
attribution notices from the Source form of the Work,
|
| 104 |
+
excluding those notices that do not pertain to any part of
|
| 105 |
+
the Derivative Works; and
|
| 106 |
+
|
| 107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 108 |
+
distribution, then any Derivative Works that You distribute must
|
| 109 |
+
include a readable copy of the attribution notices contained
|
| 110 |
+
within such NOTICE file, excluding those notices that do not
|
| 111 |
+
pertain to any part of the Derivative Works, in at least one
|
| 112 |
+
of the following places: within a NOTICE text file distributed
|
| 113 |
+
as part of the Derivative Works; within the Source form or
|
| 114 |
+
documentation, if provided along with the Derivative Works; or,
|
| 115 |
+
within a display generated by the Derivative Works, if and
|
| 116 |
+
wherever such third-party notices normally appear. The contents
|
| 117 |
+
of the NOTICE file are for informational purposes only and
|
| 118 |
+
do not modify the License. You may add Your own attribution
|
| 119 |
+
notices within Derivative Works that You distribute, alongside
|
| 120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 121 |
+
that such additional attribution notices cannot be construed
|
| 122 |
+
as modifying the License.
|
| 123 |
+
|
| 124 |
+
You may add Your own copyright statement to Your modifications and
|
| 125 |
+
may provide additional or different license terms and conditions
|
| 126 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 127 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 128 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 129 |
+
the conditions stated in this License.
|
| 130 |
+
|
| 131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 133 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 134 |
+
this License, without any additional terms or conditions.
|
| 135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 136 |
+
the terms of any separate license agreement you may have executed
|
| 137 |
+
with Licensor regarding such Contributions.
|
| 138 |
+
|
| 139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 141 |
+
except as required for reasonable and customary use in describing the
|
| 142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 143 |
+
|
| 144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 145 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 148 |
+
implied, including, without limitation, any warranties or conditions
|
| 149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 151 |
+
appropriateness of using or redistributing the Work and assume any
|
| 152 |
+
risks associated with Your exercise of permissions under this License.
|
| 153 |
+
|
| 154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 155 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 156 |
+
unless required by applicable law (such as deliberate and grossly
|
| 157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 158 |
+
liable to You for damages, including any direct, indirect, special,
|
| 159 |
+
incidental, or consequential damages of any character arising as a
|
| 160 |
+
result of this License or out of the use or inability to use the
|
| 161 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 162 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 163 |
+
other commercial damages or losses), even if such Contributor
|
| 164 |
+
has been advised of the possibility of such damages.
|
| 165 |
+
|
| 166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 169 |
+
or other liability obligations and/or rights consistent with this
|
| 170 |
+
License. However, in accepting such obligations, You may act only
|
| 171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 172 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 173 |
+
defend, and hold each Contributor harmless for any liability
|
| 174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 175 |
+
of your accepting any such warranty or additional liability.
|
| 176 |
+
|
| 177 |
+
END OF TERMS AND CONDITIONS
|
| 178 |
+
|
| 179 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 180 |
+
|
| 181 |
+
To apply the Apache License to your work, attach the following
|
| 182 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 183 |
+
replaced with your own identifying information. (Don't include
|
| 184 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 185 |
+
comment syntax for the file format. We also recommend that a
|
| 186 |
+
file or class name and description of purpose be included on the
|
| 187 |
+
same "printed page" as the copyright notice for easier
|
| 188 |
+
identification within third-party archives.
|
| 189 |
+
|
| 190 |
+
Copyright [yyyy] [name of copyright owner]
|
| 191 |
+
|
| 192 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 193 |
+
you may not use this file except in compliance with the License.
|
| 194 |
+
You may obtain a copy of the License at
|
| 195 |
+
|
| 196 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 197 |
+
|
| 198 |
+
Unless required by applicable law or agreed to in writing, software
|
| 199 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 200 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 201 |
+
See the License for the specific language governing permissions and
|
| 202 |
+
limitations under the License.
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/evaluate-0.4.6.dist-info/METADATA
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: evaluate
|
| 3 |
+
Version: 0.4.6
|
| 4 |
+
Summary: HuggingFace community-driven open-source library of evaluation
|
| 5 |
+
Home-page: https://github.com/huggingface/evaluate
|
| 6 |
+
Author: HuggingFace Inc.
|
| 7 |
+
Author-email: leandro@huggingface.co
|
| 8 |
+
License: Apache 2.0
|
| 9 |
+
Download-URL: https://github.com/huggingface/evaluate/tags
|
| 10 |
+
Keywords: metrics machine learning evaluate evaluation
|
| 11 |
+
Platform: UNKNOWN
|
| 12 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 13 |
+
Classifier: Intended Audience :: Developers
|
| 14 |
+
Classifier: Intended Audience :: Education
|
| 15 |
+
Classifier: Intended Audience :: Science/Research
|
| 16 |
+
Classifier: License :: OSI Approved :: Apache Software License
|
| 17 |
+
Classifier: Operating System :: OS Independent
|
| 18 |
+
Classifier: Programming Language :: Python :: 3
|
| 19 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 22 |
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
| 23 |
+
Requires-Python: >=3.8.0
|
| 24 |
+
Description-Content-Type: text/markdown
|
| 25 |
+
License-File: LICENSE
|
| 26 |
+
Requires-Dist: datasets>=2.0.0
|
| 27 |
+
Requires-Dist: numpy>=1.17
|
| 28 |
+
Requires-Dist: dill
|
| 29 |
+
Requires-Dist: pandas
|
| 30 |
+
Requires-Dist: requests>=2.19.0
|
| 31 |
+
Requires-Dist: tqdm>=4.62.1
|
| 32 |
+
Requires-Dist: xxhash
|
| 33 |
+
Requires-Dist: multiprocess
|
| 34 |
+
Requires-Dist: fsspec[http]>=2021.05.0
|
| 35 |
+
Requires-Dist: huggingface-hub>=0.7.0
|
| 36 |
+
Requires-Dist: packaging
|
| 37 |
+
Requires-Dist: importlib-metadata; python_version < "3.8"
|
| 38 |
+
Provides-Extra: dev
|
| 39 |
+
Requires-Dist: absl-py; extra == "dev"
|
| 40 |
+
Requires-Dist: charcut>=1.1.1; extra == "dev"
|
| 41 |
+
Requires-Dist: cer>=1.2.0; extra == "dev"
|
| 42 |
+
Requires-Dist: nltk; extra == "dev"
|
| 43 |
+
Requires-Dist: pytest; extra == "dev"
|
| 44 |
+
Requires-Dist: pytest-datadir; extra == "dev"
|
| 45 |
+
Requires-Dist: pytest-xdist; extra == "dev"
|
| 46 |
+
Requires-Dist: numpy<2.0.0; extra == "dev"
|
| 47 |
+
Requires-Dist: tensorflow!=2.6.0,!=2.6.1,<=2.10,>=2.3; extra == "dev"
|
| 48 |
+
Requires-Dist: torch; extra == "dev"
|
| 49 |
+
Requires-Dist: accelerate; extra == "dev"
|
| 50 |
+
Requires-Dist: bert-score>=0.3.6; extra == "dev"
|
| 51 |
+
Requires-Dist: rouge-score>=0.1.2; extra == "dev"
|
| 52 |
+
Requires-Dist: sacrebleu; extra == "dev"
|
| 53 |
+
Requires-Dist: sacremoses; extra == "dev"
|
| 54 |
+
Requires-Dist: scipy>=1.10.0; extra == "dev"
|
| 55 |
+
Requires-Dist: seqeval; extra == "dev"
|
| 56 |
+
Requires-Dist: scikit-learn; extra == "dev"
|
| 57 |
+
Requires-Dist: jiwer; extra == "dev"
|
| 58 |
+
Requires-Dist: sentencepiece; extra == "dev"
|
| 59 |
+
Requires-Dist: transformers; extra == "dev"
|
| 60 |
+
Requires-Dist: mauve-text; extra == "dev"
|
| 61 |
+
Requires-Dist: trectools; extra == "dev"
|
| 62 |
+
Requires-Dist: toml>=0.10.1; extra == "dev"
|
| 63 |
+
Requires-Dist: requests-file>=1.5.1; extra == "dev"
|
| 64 |
+
Requires-Dist: tldextract>=3.1.0; extra == "dev"
|
| 65 |
+
Requires-Dist: texttable>=1.6.3; extra == "dev"
|
| 66 |
+
Requires-Dist: unidecode>=1.3.4; extra == "dev"
|
| 67 |
+
Requires-Dist: Werkzeug>=1.0.1; extra == "dev"
|
| 68 |
+
Requires-Dist: six~=1.15.0; extra == "dev"
|
| 69 |
+
Requires-Dist: black~=22.0; extra == "dev"
|
| 70 |
+
Requires-Dist: flake8>=3.8.3; extra == "dev"
|
| 71 |
+
Requires-Dist: isort>=5.0.0; extra == "dev"
|
| 72 |
+
Requires-Dist: pyyaml>=5.3.1; extra == "dev"
|
| 73 |
+
Provides-Extra: docs
|
| 74 |
+
Requires-Dist: s3fs; extra == "docs"
|
| 75 |
+
Provides-Extra: evaluator
|
| 76 |
+
Requires-Dist: transformers; extra == "evaluator"
|
| 77 |
+
Requires-Dist: scipy>=1.7.1; extra == "evaluator"
|
| 78 |
+
Provides-Extra: quality
|
| 79 |
+
Requires-Dist: black~=22.0; extra == "quality"
|
| 80 |
+
Requires-Dist: flake8>=3.8.3; extra == "quality"
|
| 81 |
+
Requires-Dist: isort>=5.0.0; extra == "quality"
|
| 82 |
+
Requires-Dist: pyyaml>=5.3.1; extra == "quality"
|
| 83 |
+
Provides-Extra: template
|
| 84 |
+
Requires-Dist: cookiecutter; extra == "template"
|
| 85 |
+
Requires-Dist: gradio>=3.0.0; extra == "template"
|
| 86 |
+
Provides-Extra: tensorflow
|
| 87 |
+
Requires-Dist: tensorflow!=2.6.0,!=2.6.1,>=2.2.0; extra == "tensorflow"
|
| 88 |
+
Provides-Extra: tensorflow_gpu
|
| 89 |
+
Requires-Dist: tensorflow-gpu!=2.6.0,!=2.6.1,>=2.2.0; extra == "tensorflow-gpu"
|
| 90 |
+
Provides-Extra: tests
|
| 91 |
+
Requires-Dist: absl-py; extra == "tests"
|
| 92 |
+
Requires-Dist: charcut>=1.1.1; extra == "tests"
|
| 93 |
+
Requires-Dist: cer>=1.2.0; extra == "tests"
|
| 94 |
+
Requires-Dist: nltk; extra == "tests"
|
| 95 |
+
Requires-Dist: pytest; extra == "tests"
|
| 96 |
+
Requires-Dist: pytest-datadir; extra == "tests"
|
| 97 |
+
Requires-Dist: pytest-xdist; extra == "tests"
|
| 98 |
+
Requires-Dist: numpy<2.0.0; extra == "tests"
|
| 99 |
+
Requires-Dist: tensorflow!=2.6.0,!=2.6.1,<=2.10,>=2.3; extra == "tests"
|
| 100 |
+
Requires-Dist: torch; extra == "tests"
|
| 101 |
+
Requires-Dist: accelerate; extra == "tests"
|
| 102 |
+
Requires-Dist: bert-score>=0.3.6; extra == "tests"
|
| 103 |
+
Requires-Dist: rouge-score>=0.1.2; extra == "tests"
|
| 104 |
+
Requires-Dist: sacrebleu; extra == "tests"
|
| 105 |
+
Requires-Dist: sacremoses; extra == "tests"
|
| 106 |
+
Requires-Dist: scipy>=1.10.0; extra == "tests"
|
| 107 |
+
Requires-Dist: seqeval; extra == "tests"
|
| 108 |
+
Requires-Dist: scikit-learn; extra == "tests"
|
| 109 |
+
Requires-Dist: jiwer; extra == "tests"
|
| 110 |
+
Requires-Dist: sentencepiece; extra == "tests"
|
| 111 |
+
Requires-Dist: transformers; extra == "tests"
|
| 112 |
+
Requires-Dist: mauve-text; extra == "tests"
|
| 113 |
+
Requires-Dist: trectools; extra == "tests"
|
| 114 |
+
Requires-Dist: toml>=0.10.1; extra == "tests"
|
| 115 |
+
Requires-Dist: requests-file>=1.5.1; extra == "tests"
|
| 116 |
+
Requires-Dist: tldextract>=3.1.0; extra == "tests"
|
| 117 |
+
Requires-Dist: texttable>=1.6.3; extra == "tests"
|
| 118 |
+
Requires-Dist: unidecode>=1.3.4; extra == "tests"
|
| 119 |
+
Requires-Dist: Werkzeug>=1.0.1; extra == "tests"
|
| 120 |
+
Requires-Dist: six~=1.15.0; extra == "tests"
|
| 121 |
+
Provides-Extra: torch
|
| 122 |
+
Requires-Dist: torch; extra == "torch"
|
| 123 |
+
|
| 124 |
+
<p align="center">
|
| 125 |
+
<br>
|
| 126 |
+
<img src="https://huggingface.co/datasets/evaluate/media/resolve/main/evaluate-banner.png" width="400"/>
|
| 127 |
+
<br>
|
| 128 |
+
</p>
|
| 129 |
+
|
| 130 |
+
<p align="center">
|
| 131 |
+
<a href="https://github.com/huggingface/evaluate/actions/workflows/ci.yml?query=branch%3Amain">
|
| 132 |
+
<img alt="Build" src="https://github.com/huggingface/evaluate/actions/workflows/ci.yml/badge.svg?branch=main">
|
| 133 |
+
</a>
|
| 134 |
+
<a href="https://github.com/huggingface/evaluate/blob/master/LICENSE">
|
| 135 |
+
<img alt="GitHub" src="https://img.shields.io/github/license/huggingface/evaluate.svg?color=blue">
|
| 136 |
+
</a>
|
| 137 |
+
<a href="https://huggingface.co/docs/evaluate/index">
|
| 138 |
+
<img alt="Documentation" src="https://img.shields.io/website/http/huggingface.co/docs/evaluate/index.svg?down_color=red&down_message=offline&up_message=online">
|
| 139 |
+
</a>
|
| 140 |
+
<a href="https://github.com/huggingface/evaluate/releases">
|
| 141 |
+
<img alt="GitHub release" src="https://img.shields.io/github/release/huggingface/evaluate.svg">
|
| 142 |
+
</a>
|
| 143 |
+
<a href="CODE_OF_CONDUCT.md">
|
| 144 |
+
<img alt="Contributor Covenant" src="https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg">
|
| 145 |
+
</a>
|
| 146 |
+
</p>
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
> **Tip:** For more recent evaluation approaches, for example for evaluating LLMs, we recommend our newer and more actively maintained library [LightEval](https://github.com/huggingface/lighteval).
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
🤗 Evaluate is a library that makes evaluating and comparing models and reporting their performance easier and more standardized.
|
| 155 |
+
|
| 156 |
+
It currently contains:
|
| 157 |
+
|
| 158 |
+
- **implementations of dozens of popular metrics**: the existing metrics cover a variety of tasks spanning from NLP to Computer Vision, and include dataset-specific metrics for datasets. With a simple command like `accuracy = load("accuracy")`, get any of these metrics ready to use for evaluating a ML model in any framework (Numpy/Pandas/PyTorch/TensorFlow/JAX).
|
| 159 |
+
- **comparisons and measurements**: comparisons are used to measure the difference between models and measurements are tools to evaluate datasets.
|
| 160 |
+
- **an easy way of adding new evaluation modules to the 🤗 Hub**: you can create new evaluation modules and push them to a dedicated Space in the 🤗 Hub with `evaluate-cli create [metric name]`, which allows you to see easily compare different metrics and their outputs for the same sets of references and predictions.
|
| 161 |
+
|
| 162 |
+
[🎓 **Documentation**](https://huggingface.co/docs/evaluate/)
|
| 163 |
+
|
| 164 |
+
🔎 **Find a [metric](https://huggingface.co/evaluate-metric), [comparison](https://huggingface.co/evaluate-comparison), [measurement](https://huggingface.co/evaluate-measurement) on the Hub**
|
| 165 |
+
|
| 166 |
+
[🌟 **Add a new evaluation module**](https://huggingface.co/docs/evaluate/)
|
| 167 |
+
|
| 168 |
+
🤗 Evaluate also has lots of useful features like:
|
| 169 |
+
|
| 170 |
+
- **Type checking**: the input types are checked to make sure that you are using the right input formats for each metric
|
| 171 |
+
- **Metric cards**: each metrics comes with a card that describes the values, limitations and their ranges, as well as providing examples of their usage and usefulness.
|
| 172 |
+
- **Community metrics:** Metrics live on the Hugging Face Hub and you can easily add your own metrics for your project or to collaborate with others.
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
# Installation
|
| 176 |
+
|
| 177 |
+
## With pip
|
| 178 |
+
|
| 179 |
+
🤗 Evaluate can be installed from PyPi and has to be installed in a virtual environment (venv or conda for instance)
|
| 180 |
+
|
| 181 |
+
```bash
|
| 182 |
+
pip install evaluate
|
| 183 |
+
```
|
| 184 |
+
|
| 185 |
+
# Usage
|
| 186 |
+
|
| 187 |
+
🤗 Evaluate's main methods are:
|
| 188 |
+
|
| 189 |
+
- `evaluate.list_evaluation_modules()` to list the available metrics, comparisons and measurements
|
| 190 |
+
- `evaluate.load(module_name, **kwargs)` to instantiate an evaluation module
|
| 191 |
+
- `results = module.compute(*kwargs)` to compute the result of an evaluation module
|
| 192 |
+
|
| 193 |
+
# Adding a new evaluation module
|
| 194 |
+
|
| 195 |
+
First install the necessary dependencies to create a new metric with the following command:
|
| 196 |
+
```bash
|
| 197 |
+
pip install evaluate[template]
|
| 198 |
+
```
|
| 199 |
+
Then you can get started with the following command which will create a new folder for your metric and display the necessary steps:
|
| 200 |
+
```bash
|
| 201 |
+
evaluate-cli create "Awesome Metric"
|
| 202 |
+
```
|
| 203 |
+
See this [step-by-step guide](https://huggingface.co/docs/evaluate/creating_and_sharing) in the documentation for detailed instructions.
|
| 204 |
+
|
| 205 |
+
## Credits
|
| 206 |
+
|
| 207 |
+
Thanks to [@marella](https://github.com/marella) for letting us use the `evaluate` namespace on PyPi previously used by his [library](https://github.com/marella/evaluate).
|
| 208 |
+
|
| 209 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/evaluate-0.4.6.dist-info/RECORD
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
../../../bin/evaluate-cli,sha256=eSCz52hrIV0xsNxmcZUi_WMT0JUfXhWqrvJ7lwcMA-Y,291
|
| 2 |
+
evaluate-0.4.6.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 3 |
+
evaluate-0.4.6.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
| 4 |
+
evaluate-0.4.6.dist-info/METADATA,sha256=bQ7ra6adRqGzuFO3DLg3ogYkIZKuTEgCao3DF1hV3ko,9521
|
| 5 |
+
evaluate-0.4.6.dist-info/RECORD,,
|
| 6 |
+
evaluate-0.4.6.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 7 |
+
evaluate-0.4.6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
| 8 |
+
evaluate-0.4.6.dist-info/entry_points.txt,sha256=m2P3heof0lsg47nq6tYW_yUtxTfimd3RuD26Yk8KMkM,70
|
| 9 |
+
evaluate-0.4.6.dist-info/top_level.txt,sha256=wBEoxird-u8p4OKDwq5z9rlfH-ybeez8rjaKNLNJ3B0,9
|
| 10 |
+
evaluate/__init__.py,sha256=R9HfU7D_HP339OJEXufHzlZ_zwZBEQ7UQYm_-RC-rXU,1754
|
| 11 |
+
evaluate/__pycache__/__init__.cpython-312.pyc,,
|
| 12 |
+
evaluate/__pycache__/config.cpython-312.pyc,,
|
| 13 |
+
evaluate/__pycache__/hub.cpython-312.pyc,,
|
| 14 |
+
evaluate/__pycache__/info.cpython-312.pyc,,
|
| 15 |
+
evaluate/__pycache__/inspect.cpython-312.pyc,,
|
| 16 |
+
evaluate/__pycache__/loading.cpython-312.pyc,,
|
| 17 |
+
evaluate/__pycache__/module.cpython-312.pyc,,
|
| 18 |
+
evaluate/__pycache__/naming.cpython-312.pyc,,
|
| 19 |
+
evaluate/__pycache__/saving.cpython-312.pyc,,
|
| 20 |
+
evaluate/__pycache__/visualization.cpython-312.pyc,,
|
| 21 |
+
evaluate/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 22 |
+
evaluate/commands/__pycache__/__init__.cpython-312.pyc,,
|
| 23 |
+
evaluate/commands/__pycache__/evaluate_cli.cpython-312.pyc,,
|
| 24 |
+
evaluate/commands/evaluate_cli.py,sha256=w7GWb48JPjoC0BX7Jn12qtxQUBYOlZNhdg4YegA93Fw,4491
|
| 25 |
+
evaluate/config.py,sha256=g4g-S6hVAw0Ys9As7gKaFP66pZeh8hoJJ5GEXaLSWV8,6648
|
| 26 |
+
evaluate/evaluation_suite/__init__.py,sha256=TjcFihBDf_ZQAoIjSXPEC0iFBeEC_LFqCfXKbrkyhWs,4941
|
| 27 |
+
evaluate/evaluation_suite/__pycache__/__init__.cpython-312.pyc,,
|
| 28 |
+
evaluate/evaluator/__init__.py,sha256=JoWqRP-qCgNzDre6nO8zpJ2Iyp0eUkN7eDKPOPUXz2g,5788
|
| 29 |
+
evaluate/evaluator/__pycache__/__init__.cpython-312.pyc,,
|
| 30 |
+
evaluate/evaluator/__pycache__/audio_classification.cpython-312.pyc,,
|
| 31 |
+
evaluate/evaluator/__pycache__/automatic_speech_recognition.cpython-312.pyc,,
|
| 32 |
+
evaluate/evaluator/__pycache__/base.cpython-312.pyc,,
|
| 33 |
+
evaluate/evaluator/__pycache__/image_classification.cpython-312.pyc,,
|
| 34 |
+
evaluate/evaluator/__pycache__/question_answering.cpython-312.pyc,,
|
| 35 |
+
evaluate/evaluator/__pycache__/text2text_generation.cpython-312.pyc,,
|
| 36 |
+
evaluate/evaluator/__pycache__/text_classification.cpython-312.pyc,,
|
| 37 |
+
evaluate/evaluator/__pycache__/text_generation.cpython-312.pyc,,
|
| 38 |
+
evaluate/evaluator/__pycache__/token_classification.cpython-312.pyc,,
|
| 39 |
+
evaluate/evaluator/__pycache__/utils.cpython-312.pyc,,
|
| 40 |
+
evaluate/evaluator/audio_classification.py,sha256=v5myOnm0PN8BWVnm4nWCzcyklaLtdnbOS3EJ09TPFhg,5804
|
| 41 |
+
evaluate/evaluator/automatic_speech_recognition.py,sha256=jOveYJXsH-t5SzGe7FzXhnHeDKFhqWZUtK3S1l9XYus,4392
|
| 42 |
+
evaluate/evaluator/base.py,sha256=--M302w8Bea6u6iYCc9dGFZL1wDIRGd7uUorhcmUAus,22881
|
| 43 |
+
evaluate/evaluator/image_classification.py,sha256=RJ7NUS91hjZkr5JqhqtYsr5dxBkChA3Qim6An8fHT50,4751
|
| 44 |
+
evaluate/evaluator/question_answering.py,sha256=ArF5BKfE9J9uC-q1GQwbvkAHw1ThgA997ERKmPS-Z4g,9566
|
| 45 |
+
evaluate/evaluator/text2text_generation.py,sha256=M2itKYfIz9z_9J-Y7sXyx4HKMhQbdYwbv8oThSw8Yzw,9676
|
| 46 |
+
evaluate/evaluator/text_classification.py,sha256=g1MUwa3TCUCUBGvZDmdeJ_l8BAOgbn0Q0y4TDvep8Uk,6676
|
| 47 |
+
evaluate/evaluator/text_generation.py,sha256=4ZnHweTUpvNZhaprewTPms__00I8Tnje586ZDCG_ZlU,2679
|
| 48 |
+
evaluate/evaluator/token_classification.py,sha256=XMzteW1coN2e3KWmpWj-OGafj22pzMa7UiHylooirHk,11546
|
| 49 |
+
evaluate/evaluator/utils.py,sha256=HDKdLWLHtfpP-Hhe9cf1TFVIRsmfNgLHifDcGYujKZs,2451
|
| 50 |
+
evaluate/hub.py,sha256=ZX6VYZU0EkjTWmABuJ6Zg6oHXIT2dHkHy0u8RgyL9UQ,4550
|
| 51 |
+
evaluate/info.py,sha256=l5gXfqHhj77-XvFhz57Mns-Ev-lNJsLxsyYPHPvSzj0,5490
|
| 52 |
+
evaluate/inspect.py,sha256=vVSCLr7HWLxIpXzwpDPuiE5XwiP5QQ82oGkdok7aO7o,4969
|
| 53 |
+
evaluate/loading.py,sha256=P5MjZvrGHRgOE6jVPnyCNWOpbY-iPz_kLIydZjiNT7Q,35219
|
| 54 |
+
evaluate/module.py,sha256=vMsLOskdsD6c_pU85AVo_kceg_r1RNGMFGAR6oZZuHM,46420
|
| 55 |
+
evaluate/naming.py,sha256=Lpw8JmoJfiWs4xDUMEDzcIKO9Nw9RS2lzjeuUP-9acA,2827
|
| 56 |
+
evaluate/saving.py,sha256=UoixNIHmWEceJREvGZlJNViVjRkgNf3MRflwnnhnNUA,2159
|
| 57 |
+
evaluate/utils/__init__.py,sha256=kdFi2pVFSXm_y4EvvuQNnlPUkOPmGLNtc9YTfxAmdsI,1201
|
| 58 |
+
evaluate/utils/__pycache__/__init__.cpython-312.pyc,,
|
| 59 |
+
evaluate/utils/__pycache__/file_utils.cpython-312.pyc,,
|
| 60 |
+
evaluate/utils/__pycache__/gradio.cpython-312.pyc,,
|
| 61 |
+
evaluate/utils/__pycache__/logging.cpython-312.pyc,,
|
| 62 |
+
evaluate/utils/file_utils.py,sha256=QlyTZ2QmJusWjmVsbbohTzUNAraXcd8_LC5lHtMeCo8,22007
|
| 63 |
+
evaluate/utils/gradio.py,sha256=UXGRxiPsJ41Xm5gGF7Jf_1vTOPopE_wDoBIyBS0S8d4,4434
|
| 64 |
+
evaluate/utils/logging.py,sha256=nsDr0MuHJ10xF-sYiZUVIVHGla3XcfTFAHwr8Mx6ehA,6674
|
| 65 |
+
evaluate/visualization.py,sha256=m-mD6vxOIQ-_KXTues2tB4r7c4jdygBybHJeidP-jgw,9293
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/evaluate-0.4.6.dist-info/REQUESTED
ADDED
|
File without changes
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/evaluate-0.4.6.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: bdist_wheel (0.45.1)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
| 5 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/evaluate-0.4.6.dist-info/entry_points.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[console_scripts]
|
| 2 |
+
evaluate-cli = evaluate.commands.evaluate_cli:main
|
| 3 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/evaluate-0.4.6.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
evaluate
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/filelock/__init__.py
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
A platform independent file lock that supports the with-statement.
|
| 3 |
+
|
| 4 |
+
.. autodata:: filelock.__version__
|
| 5 |
+
:no-value:
|
| 6 |
+
|
| 7 |
+
"""
|
| 8 |
+
|
| 9 |
+
from __future__ import annotations
|
| 10 |
+
|
| 11 |
+
import sys
|
| 12 |
+
import warnings
|
| 13 |
+
from typing import TYPE_CHECKING
|
| 14 |
+
|
| 15 |
+
from ._api import AcquireReturnProxy, BaseFileLock
|
| 16 |
+
from ._error import Timeout
|
| 17 |
+
from ._soft import SoftFileLock
|
| 18 |
+
from ._unix import UnixFileLock, has_fcntl
|
| 19 |
+
from ._windows import WindowsFileLock
|
| 20 |
+
from .asyncio import (
|
| 21 |
+
AsyncAcquireReturnProxy,
|
| 22 |
+
AsyncSoftFileLock,
|
| 23 |
+
AsyncUnixFileLock,
|
| 24 |
+
AsyncWindowsFileLock,
|
| 25 |
+
BaseAsyncFileLock,
|
| 26 |
+
)
|
| 27 |
+
from .version import version
|
| 28 |
+
|
| 29 |
+
#: version of the project as a string
|
| 30 |
+
__version__: str = version
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
if sys.platform == "win32": # pragma: win32 cover
|
| 34 |
+
_FileLock: type[BaseFileLock] = WindowsFileLock
|
| 35 |
+
_AsyncFileLock: type[BaseAsyncFileLock] = AsyncWindowsFileLock
|
| 36 |
+
else: # pragma: win32 no cover # noqa: PLR5501
|
| 37 |
+
if has_fcntl:
|
| 38 |
+
_FileLock: type[BaseFileLock] = UnixFileLock
|
| 39 |
+
_AsyncFileLock: type[BaseAsyncFileLock] = AsyncUnixFileLock
|
| 40 |
+
else:
|
| 41 |
+
_FileLock = SoftFileLock
|
| 42 |
+
_AsyncFileLock = AsyncSoftFileLock
|
| 43 |
+
if warnings is not None:
|
| 44 |
+
warnings.warn("only soft file lock is available", stacklevel=2)
|
| 45 |
+
|
| 46 |
+
if TYPE_CHECKING:
|
| 47 |
+
FileLock = SoftFileLock
|
| 48 |
+
AsyncFileLock = AsyncSoftFileLock
|
| 49 |
+
else:
|
| 50 |
+
#: Alias for the lock, which should be used for the current platform.
|
| 51 |
+
FileLock = _FileLock
|
| 52 |
+
AsyncFileLock = _AsyncFileLock
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
__all__ = [
|
| 56 |
+
"AcquireReturnProxy",
|
| 57 |
+
"AsyncAcquireReturnProxy",
|
| 58 |
+
"AsyncFileLock",
|
| 59 |
+
"AsyncSoftFileLock",
|
| 60 |
+
"AsyncUnixFileLock",
|
| 61 |
+
"AsyncWindowsFileLock",
|
| 62 |
+
"BaseAsyncFileLock",
|
| 63 |
+
"BaseFileLock",
|
| 64 |
+
"FileLock",
|
| 65 |
+
"SoftFileLock",
|
| 66 |
+
"Timeout",
|
| 67 |
+
"UnixFileLock",
|
| 68 |
+
"WindowsFileLock",
|
| 69 |
+
"__version__",
|
| 70 |
+
]
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/filelock/_api.py
ADDED
|
@@ -0,0 +1,403 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import contextlib
|
| 4 |
+
import inspect
|
| 5 |
+
import logging
|
| 6 |
+
import os
|
| 7 |
+
import time
|
| 8 |
+
import warnings
|
| 9 |
+
from abc import ABCMeta, abstractmethod
|
| 10 |
+
from dataclasses import dataclass
|
| 11 |
+
from threading import local
|
| 12 |
+
from typing import TYPE_CHECKING, Any, cast
|
| 13 |
+
from weakref import WeakValueDictionary
|
| 14 |
+
|
| 15 |
+
from ._error import Timeout
|
| 16 |
+
|
| 17 |
+
if TYPE_CHECKING:
|
| 18 |
+
import sys
|
| 19 |
+
from types import TracebackType
|
| 20 |
+
|
| 21 |
+
if sys.version_info >= (3, 11): # pragma: no cover (py311+)
|
| 22 |
+
from typing import Self
|
| 23 |
+
else: # pragma: no cover (<py311)
|
| 24 |
+
from typing_extensions import Self
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
_LOGGER = logging.getLogger("filelock")
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
# This is a helper class which is returned by :meth:`BaseFileLock.acquire` and wraps the lock to make sure __enter__
|
| 31 |
+
# is not called twice when entering the with statement. If we would simply return *self*, the lock would be acquired
|
| 32 |
+
# again in the *__enter__* method of the BaseFileLock, but not released again automatically. issue #37 (memory leak)
|
| 33 |
+
class AcquireReturnProxy:
|
| 34 |
+
"""A context-aware object that will release the lock file when exiting."""
|
| 35 |
+
|
| 36 |
+
def __init__(self, lock: BaseFileLock) -> None:
|
| 37 |
+
self.lock = lock
|
| 38 |
+
|
| 39 |
+
def __enter__(self) -> BaseFileLock:
|
| 40 |
+
return self.lock
|
| 41 |
+
|
| 42 |
+
def __exit__(
|
| 43 |
+
self,
|
| 44 |
+
exc_type: type[BaseException] | None,
|
| 45 |
+
exc_value: BaseException | None,
|
| 46 |
+
traceback: TracebackType | None,
|
| 47 |
+
) -> None:
|
| 48 |
+
self.lock.release()
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
@dataclass
|
| 52 |
+
class FileLockContext:
|
| 53 |
+
"""A dataclass which holds the context for a ``BaseFileLock`` object."""
|
| 54 |
+
|
| 55 |
+
# The context is held in a separate class to allow optional use of thread local storage via the
|
| 56 |
+
# ThreadLocalFileContext class.
|
| 57 |
+
|
| 58 |
+
#: The path to the lock file.
|
| 59 |
+
lock_file: str
|
| 60 |
+
|
| 61 |
+
#: The default timeout value.
|
| 62 |
+
timeout: float
|
| 63 |
+
|
| 64 |
+
#: The mode for the lock files
|
| 65 |
+
mode: int
|
| 66 |
+
|
| 67 |
+
#: Whether the lock should be blocking or not
|
| 68 |
+
blocking: bool
|
| 69 |
+
|
| 70 |
+
#: The file descriptor for the *_lock_file* as it is returned by the os.open() function, not None when lock held
|
| 71 |
+
lock_file_fd: int | None = None
|
| 72 |
+
|
| 73 |
+
#: The lock counter is used for implementing the nested locking mechanism.
|
| 74 |
+
lock_counter: int = 0 # When the lock is acquired is increased and the lock is only released, when this value is 0
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
class ThreadLocalFileContext(FileLockContext, local):
|
| 78 |
+
"""A thread local version of the ``FileLockContext`` class."""
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
class FileLockMeta(ABCMeta):
|
| 82 |
+
def __call__( # noqa: PLR0913
|
| 83 |
+
cls,
|
| 84 |
+
lock_file: str | os.PathLike[str],
|
| 85 |
+
timeout: float = -1,
|
| 86 |
+
mode: int = 0o644,
|
| 87 |
+
thread_local: bool = True, # noqa: FBT001, FBT002
|
| 88 |
+
*,
|
| 89 |
+
blocking: bool = True,
|
| 90 |
+
is_singleton: bool = False,
|
| 91 |
+
**kwargs: Any, # capture remaining kwargs for subclasses # noqa: ANN401
|
| 92 |
+
) -> BaseFileLock:
|
| 93 |
+
if is_singleton:
|
| 94 |
+
instance = cls._instances.get(str(lock_file)) # type: ignore[attr-defined]
|
| 95 |
+
if instance:
|
| 96 |
+
params_to_check = {
|
| 97 |
+
"thread_local": (thread_local, instance.is_thread_local()),
|
| 98 |
+
"timeout": (timeout, instance.timeout),
|
| 99 |
+
"mode": (mode, instance.mode),
|
| 100 |
+
"blocking": (blocking, instance.blocking),
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
non_matching_params = {
|
| 104 |
+
name: (passed_param, set_param)
|
| 105 |
+
for name, (passed_param, set_param) in params_to_check.items()
|
| 106 |
+
if passed_param != set_param
|
| 107 |
+
}
|
| 108 |
+
if not non_matching_params:
|
| 109 |
+
return cast("BaseFileLock", instance)
|
| 110 |
+
|
| 111 |
+
# parameters do not match; raise error
|
| 112 |
+
msg = "Singleton lock instances cannot be initialized with differing arguments"
|
| 113 |
+
msg += "\nNon-matching arguments: "
|
| 114 |
+
for param_name, (passed_param, set_param) in non_matching_params.items():
|
| 115 |
+
msg += f"\n\t{param_name} (existing lock has {set_param} but {passed_param} was passed)"
|
| 116 |
+
raise ValueError(msg)
|
| 117 |
+
|
| 118 |
+
# Workaround to make `__init__`'s params optional in subclasses
|
| 119 |
+
# E.g. virtualenv changes the signature of the `__init__` method in the `BaseFileLock` class descendant
|
| 120 |
+
# (https://github.com/tox-dev/filelock/pull/340)
|
| 121 |
+
|
| 122 |
+
all_params = {
|
| 123 |
+
"timeout": timeout,
|
| 124 |
+
"mode": mode,
|
| 125 |
+
"thread_local": thread_local,
|
| 126 |
+
"blocking": blocking,
|
| 127 |
+
"is_singleton": is_singleton,
|
| 128 |
+
**kwargs,
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
present_params = inspect.signature(cls.__init__).parameters # type: ignore[misc]
|
| 132 |
+
init_params = {key: value for key, value in all_params.items() if key in present_params}
|
| 133 |
+
|
| 134 |
+
instance = super().__call__(lock_file, **init_params)
|
| 135 |
+
|
| 136 |
+
if is_singleton:
|
| 137 |
+
cls._instances[str(lock_file)] = instance # type: ignore[attr-defined]
|
| 138 |
+
|
| 139 |
+
return cast("BaseFileLock", instance)
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
class BaseFileLock(contextlib.ContextDecorator, metaclass=FileLockMeta):
|
| 143 |
+
"""Abstract base class for a file lock object."""
|
| 144 |
+
|
| 145 |
+
_instances: WeakValueDictionary[str, BaseFileLock]
|
| 146 |
+
|
| 147 |
+
def __init_subclass__(cls, **kwargs: dict[str, Any]) -> None:
|
| 148 |
+
"""Setup unique state for lock subclasses."""
|
| 149 |
+
super().__init_subclass__(**kwargs)
|
| 150 |
+
cls._instances = WeakValueDictionary()
|
| 151 |
+
|
| 152 |
+
def __init__( # noqa: PLR0913
|
| 153 |
+
self,
|
| 154 |
+
lock_file: str | os.PathLike[str],
|
| 155 |
+
timeout: float = -1,
|
| 156 |
+
mode: int = 0o644,
|
| 157 |
+
thread_local: bool = True, # noqa: FBT001, FBT002
|
| 158 |
+
*,
|
| 159 |
+
blocking: bool = True,
|
| 160 |
+
is_singleton: bool = False,
|
| 161 |
+
) -> None:
|
| 162 |
+
"""
|
| 163 |
+
Create a new lock object.
|
| 164 |
+
|
| 165 |
+
:param lock_file: path to the file
|
| 166 |
+
:param timeout: default timeout when acquiring the lock, in seconds. It will be used as fallback value in \
|
| 167 |
+
the acquire method, if no timeout value (``None``) is given. If you want to disable the timeout, set it \
|
| 168 |
+
to a negative value. A timeout of 0 means that there is exactly one attempt to acquire the file lock.
|
| 169 |
+
:param mode: file permissions for the lockfile
|
| 170 |
+
:param thread_local: Whether this object's internal context should be thread local or not. If this is set to \
|
| 171 |
+
``False`` then the lock will be reentrant across threads.
|
| 172 |
+
:param blocking: whether the lock should be blocking or not
|
| 173 |
+
:param is_singleton: If this is set to ``True`` then only one instance of this class will be created \
|
| 174 |
+
per lock file. This is useful if you want to use the lock object for reentrant locking without needing \
|
| 175 |
+
to pass the same object around.
|
| 176 |
+
|
| 177 |
+
"""
|
| 178 |
+
self._is_thread_local = thread_local
|
| 179 |
+
self._is_singleton = is_singleton
|
| 180 |
+
|
| 181 |
+
# Create the context. Note that external code should not work with the context directly and should instead use
|
| 182 |
+
# properties of this class.
|
| 183 |
+
kwargs: dict[str, Any] = {
|
| 184 |
+
"lock_file": os.fspath(lock_file),
|
| 185 |
+
"timeout": timeout,
|
| 186 |
+
"mode": mode,
|
| 187 |
+
"blocking": blocking,
|
| 188 |
+
}
|
| 189 |
+
self._context: FileLockContext = (ThreadLocalFileContext if thread_local else FileLockContext)(**kwargs)
|
| 190 |
+
|
| 191 |
+
def is_thread_local(self) -> bool:
|
| 192 |
+
""":return: a flag indicating if this lock is thread local or not"""
|
| 193 |
+
return self._is_thread_local
|
| 194 |
+
|
| 195 |
+
@property
|
| 196 |
+
def is_singleton(self) -> bool:
|
| 197 |
+
""":return: a flag indicating if this lock is singleton or not"""
|
| 198 |
+
return self._is_singleton
|
| 199 |
+
|
| 200 |
+
@property
|
| 201 |
+
def lock_file(self) -> str:
|
| 202 |
+
""":return: path to the lock file"""
|
| 203 |
+
return self._context.lock_file
|
| 204 |
+
|
| 205 |
+
@property
|
| 206 |
+
def timeout(self) -> float:
|
| 207 |
+
"""
|
| 208 |
+
:return: the default timeout value, in seconds
|
| 209 |
+
|
| 210 |
+
.. versionadded:: 2.0.0
|
| 211 |
+
"""
|
| 212 |
+
return self._context.timeout
|
| 213 |
+
|
| 214 |
+
@timeout.setter
|
| 215 |
+
def timeout(self, value: float | str) -> None:
|
| 216 |
+
"""
|
| 217 |
+
Change the default timeout value.
|
| 218 |
+
|
| 219 |
+
:param value: the new value, in seconds
|
| 220 |
+
|
| 221 |
+
"""
|
| 222 |
+
self._context.timeout = float(value)
|
| 223 |
+
|
| 224 |
+
@property
|
| 225 |
+
def blocking(self) -> bool:
|
| 226 |
+
""":return: whether the locking is blocking or not"""
|
| 227 |
+
return self._context.blocking
|
| 228 |
+
|
| 229 |
+
@blocking.setter
|
| 230 |
+
def blocking(self, value: bool) -> None:
|
| 231 |
+
"""
|
| 232 |
+
Change the default blocking value.
|
| 233 |
+
|
| 234 |
+
:param value: the new value as bool
|
| 235 |
+
|
| 236 |
+
"""
|
| 237 |
+
self._context.blocking = value
|
| 238 |
+
|
| 239 |
+
@property
|
| 240 |
+
def mode(self) -> int:
|
| 241 |
+
""":return: the file permissions for the lockfile"""
|
| 242 |
+
return self._context.mode
|
| 243 |
+
|
| 244 |
+
@abstractmethod
|
| 245 |
+
def _acquire(self) -> None:
|
| 246 |
+
"""If the file lock could be acquired, self._context.lock_file_fd holds the file descriptor of the lock file."""
|
| 247 |
+
raise NotImplementedError
|
| 248 |
+
|
| 249 |
+
@abstractmethod
|
| 250 |
+
def _release(self) -> None:
|
| 251 |
+
"""Releases the lock and sets self._context.lock_file_fd to None."""
|
| 252 |
+
raise NotImplementedError
|
| 253 |
+
|
| 254 |
+
@property
|
| 255 |
+
def is_locked(self) -> bool:
|
| 256 |
+
"""
|
| 257 |
+
|
| 258 |
+
:return: A boolean indicating if the lock file is holding the lock currently.
|
| 259 |
+
|
| 260 |
+
.. versionchanged:: 2.0.0
|
| 261 |
+
|
| 262 |
+
This was previously a method and is now a property.
|
| 263 |
+
"""
|
| 264 |
+
return self._context.lock_file_fd is not None
|
| 265 |
+
|
| 266 |
+
@property
|
| 267 |
+
def lock_counter(self) -> int:
|
| 268 |
+
""":return: The number of times this lock has been acquired (but not yet released)."""
|
| 269 |
+
return self._context.lock_counter
|
| 270 |
+
|
| 271 |
+
def acquire(
|
| 272 |
+
self,
|
| 273 |
+
timeout: float | None = None,
|
| 274 |
+
poll_interval: float = 0.05,
|
| 275 |
+
*,
|
| 276 |
+
poll_intervall: float | None = None,
|
| 277 |
+
blocking: bool | None = None,
|
| 278 |
+
) -> AcquireReturnProxy:
|
| 279 |
+
"""
|
| 280 |
+
Try to acquire the file lock.
|
| 281 |
+
|
| 282 |
+
:param timeout: maximum wait time for acquiring the lock, ``None`` means use the default :attr:`~timeout` is and
|
| 283 |
+
if ``timeout < 0``, there is no timeout and this method will block until the lock could be acquired
|
| 284 |
+
:param poll_interval: interval of trying to acquire the lock file
|
| 285 |
+
:param poll_intervall: deprecated, kept for backwards compatibility, use ``poll_interval`` instead
|
| 286 |
+
:param blocking: defaults to True. If False, function will return immediately if it cannot obtain a lock on the
|
| 287 |
+
first attempt. Otherwise, this method will block until the timeout expires or the lock is acquired.
|
| 288 |
+
:raises Timeout: if fails to acquire lock within the timeout period
|
| 289 |
+
:return: a context object that will unlock the file when the context is exited
|
| 290 |
+
|
| 291 |
+
.. code-block:: python
|
| 292 |
+
|
| 293 |
+
# You can use this method in the context manager (recommended)
|
| 294 |
+
with lock.acquire():
|
| 295 |
+
pass
|
| 296 |
+
|
| 297 |
+
# Or use an equivalent try-finally construct:
|
| 298 |
+
lock.acquire()
|
| 299 |
+
try:
|
| 300 |
+
pass
|
| 301 |
+
finally:
|
| 302 |
+
lock.release()
|
| 303 |
+
|
| 304 |
+
.. versionchanged:: 2.0.0
|
| 305 |
+
|
| 306 |
+
This method returns now a *proxy* object instead of *self*,
|
| 307 |
+
so that it can be used in a with statement without side effects.
|
| 308 |
+
|
| 309 |
+
"""
|
| 310 |
+
# Use the default timeout, if no timeout is provided.
|
| 311 |
+
if timeout is None:
|
| 312 |
+
timeout = self._context.timeout
|
| 313 |
+
|
| 314 |
+
if blocking is None:
|
| 315 |
+
blocking = self._context.blocking
|
| 316 |
+
|
| 317 |
+
if poll_intervall is not None:
|
| 318 |
+
msg = "use poll_interval instead of poll_intervall"
|
| 319 |
+
warnings.warn(msg, DeprecationWarning, stacklevel=2)
|
| 320 |
+
poll_interval = poll_intervall
|
| 321 |
+
|
| 322 |
+
# Increment the number right at the beginning. We can still undo it, if something fails.
|
| 323 |
+
self._context.lock_counter += 1
|
| 324 |
+
|
| 325 |
+
lock_id = id(self)
|
| 326 |
+
lock_filename = self.lock_file
|
| 327 |
+
start_time = time.perf_counter()
|
| 328 |
+
try:
|
| 329 |
+
while True:
|
| 330 |
+
if not self.is_locked:
|
| 331 |
+
_LOGGER.debug("Attempting to acquire lock %s on %s", lock_id, lock_filename)
|
| 332 |
+
self._acquire()
|
| 333 |
+
if self.is_locked:
|
| 334 |
+
_LOGGER.debug("Lock %s acquired on %s", lock_id, lock_filename)
|
| 335 |
+
break
|
| 336 |
+
if blocking is False:
|
| 337 |
+
_LOGGER.debug("Failed to immediately acquire lock %s on %s", lock_id, lock_filename)
|
| 338 |
+
raise Timeout(lock_filename) # noqa: TRY301
|
| 339 |
+
if 0 <= timeout < time.perf_counter() - start_time:
|
| 340 |
+
_LOGGER.debug("Timeout on acquiring lock %s on %s", lock_id, lock_filename)
|
| 341 |
+
raise Timeout(lock_filename) # noqa: TRY301
|
| 342 |
+
msg = "Lock %s not acquired on %s, waiting %s seconds ..."
|
| 343 |
+
_LOGGER.debug(msg, lock_id, lock_filename, poll_interval)
|
| 344 |
+
time.sleep(poll_interval)
|
| 345 |
+
except BaseException: # Something did go wrong, so decrement the counter.
|
| 346 |
+
self._context.lock_counter = max(0, self._context.lock_counter - 1)
|
| 347 |
+
raise
|
| 348 |
+
return AcquireReturnProxy(lock=self)
|
| 349 |
+
|
| 350 |
+
def release(self, force: bool = False) -> None: # noqa: FBT001, FBT002
|
| 351 |
+
"""
|
| 352 |
+
Releases the file lock. Please note, that the lock is only completely released, if the lock counter is 0.
|
| 353 |
+
Also note, that the lock file itself is not automatically deleted.
|
| 354 |
+
|
| 355 |
+
:param force: If true, the lock counter is ignored and the lock is released in every case/
|
| 356 |
+
|
| 357 |
+
"""
|
| 358 |
+
if self.is_locked:
|
| 359 |
+
self._context.lock_counter -= 1
|
| 360 |
+
|
| 361 |
+
if self._context.lock_counter == 0 or force:
|
| 362 |
+
lock_id, lock_filename = id(self), self.lock_file
|
| 363 |
+
|
| 364 |
+
_LOGGER.debug("Attempting to release lock %s on %s", lock_id, lock_filename)
|
| 365 |
+
self._release()
|
| 366 |
+
self._context.lock_counter = 0
|
| 367 |
+
_LOGGER.debug("Lock %s released on %s", lock_id, lock_filename)
|
| 368 |
+
|
| 369 |
+
def __enter__(self) -> Self:
|
| 370 |
+
"""
|
| 371 |
+
Acquire the lock.
|
| 372 |
+
|
| 373 |
+
:return: the lock object
|
| 374 |
+
|
| 375 |
+
"""
|
| 376 |
+
self.acquire()
|
| 377 |
+
return self
|
| 378 |
+
|
| 379 |
+
def __exit__(
|
| 380 |
+
self,
|
| 381 |
+
exc_type: type[BaseException] | None,
|
| 382 |
+
exc_value: BaseException | None,
|
| 383 |
+
traceback: TracebackType | None,
|
| 384 |
+
) -> None:
|
| 385 |
+
"""
|
| 386 |
+
Release the lock.
|
| 387 |
+
|
| 388 |
+
:param exc_type: the exception type if raised
|
| 389 |
+
:param exc_value: the exception value if raised
|
| 390 |
+
:param traceback: the exception traceback if raised
|
| 391 |
+
|
| 392 |
+
"""
|
| 393 |
+
self.release()
|
| 394 |
+
|
| 395 |
+
def __del__(self) -> None:
|
| 396 |
+
"""Called when the lock object is deleted."""
|
| 397 |
+
self.release(force=True)
|
| 398 |
+
|
| 399 |
+
|
| 400 |
+
__all__ = [
|
| 401 |
+
"AcquireReturnProxy",
|
| 402 |
+
"BaseFileLock",
|
| 403 |
+
]
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/filelock/_error.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from typing import Any
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
class Timeout(TimeoutError): # noqa: N818
|
| 7 |
+
"""Raised when the lock could not be acquired in *timeout* seconds."""
|
| 8 |
+
|
| 9 |
+
def __init__(self, lock_file: str) -> None:
|
| 10 |
+
super().__init__()
|
| 11 |
+
self._lock_file = lock_file
|
| 12 |
+
|
| 13 |
+
def __reduce__(self) -> str | tuple[Any, ...]:
|
| 14 |
+
return self.__class__, (self._lock_file,) # Properly pickle the exception
|
| 15 |
+
|
| 16 |
+
def __str__(self) -> str:
|
| 17 |
+
return f"The file lock '{self._lock_file}' could not be acquired."
|
| 18 |
+
|
| 19 |
+
def __repr__(self) -> str:
|
| 20 |
+
return f"{self.__class__.__name__}({self.lock_file!r})"
|
| 21 |
+
|
| 22 |
+
@property
|
| 23 |
+
def lock_file(self) -> str:
|
| 24 |
+
""":return: The path of the file lock."""
|
| 25 |
+
return self._lock_file
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
__all__ = [
|
| 29 |
+
"Timeout",
|
| 30 |
+
]
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/filelock/_soft.py
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import os
|
| 4 |
+
import sys
|
| 5 |
+
from contextlib import suppress
|
| 6 |
+
from errno import EACCES, EEXIST
|
| 7 |
+
from pathlib import Path
|
| 8 |
+
|
| 9 |
+
from ._api import BaseFileLock
|
| 10 |
+
from ._util import ensure_directory_exists, raise_on_not_writable_file
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
class SoftFileLock(BaseFileLock):
|
| 14 |
+
"""Simply watches the existence of the lock file."""
|
| 15 |
+
|
| 16 |
+
def _acquire(self) -> None:
|
| 17 |
+
raise_on_not_writable_file(self.lock_file)
|
| 18 |
+
ensure_directory_exists(self.lock_file)
|
| 19 |
+
# first check for exists and read-only mode as the open will mask this case as EEXIST
|
| 20 |
+
flags = (
|
| 21 |
+
os.O_WRONLY # open for writing only
|
| 22 |
+
| os.O_CREAT
|
| 23 |
+
| os.O_EXCL # together with above raise EEXIST if the file specified by filename exists
|
| 24 |
+
| os.O_TRUNC # truncate the file to zero byte
|
| 25 |
+
)
|
| 26 |
+
try:
|
| 27 |
+
file_handler = os.open(self.lock_file, flags, self._context.mode)
|
| 28 |
+
except OSError as exception: # re-raise unless expected exception
|
| 29 |
+
if not (
|
| 30 |
+
exception.errno == EEXIST # lock already exist
|
| 31 |
+
or (exception.errno == EACCES and sys.platform == "win32") # has no access to this lock
|
| 32 |
+
): # pragma: win32 no cover
|
| 33 |
+
raise
|
| 34 |
+
else:
|
| 35 |
+
self._context.lock_file_fd = file_handler
|
| 36 |
+
|
| 37 |
+
def _release(self) -> None:
|
| 38 |
+
assert self._context.lock_file_fd is not None # noqa: S101
|
| 39 |
+
os.close(self._context.lock_file_fd) # the lock file is definitely not None
|
| 40 |
+
self._context.lock_file_fd = None
|
| 41 |
+
with suppress(OSError): # the file is already deleted and that's what we want
|
| 42 |
+
Path(self.lock_file).unlink()
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
__all__ = [
|
| 46 |
+
"SoftFileLock",
|
| 47 |
+
]
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/filelock/_unix.py
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import os
|
| 4 |
+
import sys
|
| 5 |
+
from contextlib import suppress
|
| 6 |
+
from errno import ENOSYS
|
| 7 |
+
from pathlib import Path
|
| 8 |
+
from typing import cast
|
| 9 |
+
|
| 10 |
+
from ._api import BaseFileLock
|
| 11 |
+
from ._util import ensure_directory_exists
|
| 12 |
+
|
| 13 |
+
#: a flag to indicate if the fcntl API is available
|
| 14 |
+
has_fcntl = False
|
| 15 |
+
if sys.platform == "win32": # pragma: win32 cover
|
| 16 |
+
|
| 17 |
+
class UnixFileLock(BaseFileLock):
|
| 18 |
+
"""Uses the :func:`fcntl.flock` to hard lock the lock file on unix systems."""
|
| 19 |
+
|
| 20 |
+
def _acquire(self) -> None:
|
| 21 |
+
raise NotImplementedError
|
| 22 |
+
|
| 23 |
+
def _release(self) -> None:
|
| 24 |
+
raise NotImplementedError
|
| 25 |
+
|
| 26 |
+
else: # pragma: win32 no cover
|
| 27 |
+
try:
|
| 28 |
+
import fcntl
|
| 29 |
+
except ImportError:
|
| 30 |
+
pass
|
| 31 |
+
else:
|
| 32 |
+
has_fcntl = True
|
| 33 |
+
|
| 34 |
+
class UnixFileLock(BaseFileLock):
|
| 35 |
+
"""Uses the :func:`fcntl.flock` to hard lock the lock file on unix systems."""
|
| 36 |
+
|
| 37 |
+
def _acquire(self) -> None:
|
| 38 |
+
ensure_directory_exists(self.lock_file)
|
| 39 |
+
open_flags = os.O_RDWR | os.O_TRUNC
|
| 40 |
+
if not Path(self.lock_file).exists():
|
| 41 |
+
open_flags |= os.O_CREAT
|
| 42 |
+
fd = os.open(self.lock_file, open_flags, self._context.mode)
|
| 43 |
+
with suppress(PermissionError): # This locked is not owned by this UID
|
| 44 |
+
os.fchmod(fd, self._context.mode)
|
| 45 |
+
try:
|
| 46 |
+
fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
|
| 47 |
+
except OSError as exception:
|
| 48 |
+
os.close(fd)
|
| 49 |
+
if exception.errno == ENOSYS: # NotImplemented error
|
| 50 |
+
msg = "FileSystem does not appear to support flock; use SoftFileLock instead"
|
| 51 |
+
raise NotImplementedError(msg) from exception
|
| 52 |
+
else:
|
| 53 |
+
self._context.lock_file_fd = fd
|
| 54 |
+
|
| 55 |
+
def _release(self) -> None:
|
| 56 |
+
# Do not remove the lockfile:
|
| 57 |
+
# https://github.com/tox-dev/py-filelock/issues/31
|
| 58 |
+
# https://stackoverflow.com/questions/17708885/flock-removing-locked-file-without-race-condition
|
| 59 |
+
fd = cast("int", self._context.lock_file_fd)
|
| 60 |
+
self._context.lock_file_fd = None
|
| 61 |
+
fcntl.flock(fd, fcntl.LOCK_UN)
|
| 62 |
+
os.close(fd)
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
__all__ = [
|
| 66 |
+
"UnixFileLock",
|
| 67 |
+
"has_fcntl",
|
| 68 |
+
]
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/filelock/_util.py
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import os
|
| 4 |
+
import stat
|
| 5 |
+
import sys
|
| 6 |
+
from errno import EACCES, EISDIR
|
| 7 |
+
from pathlib import Path
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def raise_on_not_writable_file(filename: str) -> None:
|
| 11 |
+
"""
|
| 12 |
+
Raise an exception if attempting to open the file for writing would fail.
|
| 13 |
+
|
| 14 |
+
This is done so files that will never be writable can be separated from files that are writable but currently
|
| 15 |
+
locked.
|
| 16 |
+
|
| 17 |
+
:param filename: file to check
|
| 18 |
+
:raises OSError: as if the file was opened for writing.
|
| 19 |
+
|
| 20 |
+
"""
|
| 21 |
+
try: # use stat to do exists + can write to check without race condition
|
| 22 |
+
file_stat = os.stat(filename) # noqa: PTH116
|
| 23 |
+
except OSError:
|
| 24 |
+
return # swallow does not exist or other errors
|
| 25 |
+
|
| 26 |
+
if file_stat.st_mtime != 0: # if os.stat returns but modification is zero that's an invalid os.stat - ignore it
|
| 27 |
+
if not (file_stat.st_mode & stat.S_IWUSR):
|
| 28 |
+
raise PermissionError(EACCES, "Permission denied", filename)
|
| 29 |
+
|
| 30 |
+
if stat.S_ISDIR(file_stat.st_mode):
|
| 31 |
+
if sys.platform == "win32": # pragma: win32 cover
|
| 32 |
+
# On Windows, this is PermissionError
|
| 33 |
+
raise PermissionError(EACCES, "Permission denied", filename)
|
| 34 |
+
else: # pragma: win32 no cover # noqa: RET506
|
| 35 |
+
# On linux / macOS, this is IsADirectoryError
|
| 36 |
+
raise IsADirectoryError(EISDIR, "Is a directory", filename)
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
def ensure_directory_exists(filename: Path | str) -> None:
|
| 40 |
+
"""
|
| 41 |
+
Ensure the directory containing the file exists (create it if necessary).
|
| 42 |
+
|
| 43 |
+
:param filename: file.
|
| 44 |
+
|
| 45 |
+
"""
|
| 46 |
+
Path(filename).parent.mkdir(parents=True, exist_ok=True)
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
__all__ = [
|
| 50 |
+
"ensure_directory_exists",
|
| 51 |
+
"raise_on_not_writable_file",
|
| 52 |
+
]
|