ZTWHHH commited on
Commit
a90f772
·
verified ·
1 Parent(s): b4b665d

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +1 -0
  2. deepseek/lib/python3.10/site-packages/PIL/__pycache__/BufrStubImagePlugin.cpython-310.pyc +0 -0
  3. deepseek/lib/python3.10/site-packages/PIL/__pycache__/ContainerIO.cpython-310.pyc +0 -0
  4. deepseek/lib/python3.10/site-packages/PIL/__pycache__/DdsImagePlugin.cpython-310.pyc +0 -0
  5. deepseek/lib/python3.10/site-packages/PIL/__pycache__/EpsImagePlugin.cpython-310.pyc +0 -0
  6. deepseek/lib/python3.10/site-packages/PIL/__pycache__/FontFile.cpython-310.pyc +0 -0
  7. deepseek/lib/python3.10/site-packages/PIL/__pycache__/IcnsImagePlugin.cpython-310.pyc +0 -0
  8. deepseek/lib/python3.10/site-packages/PIL/__pycache__/ImageChops.cpython-310.pyc +0 -0
  9. deepseek/lib/python3.10/site-packages/PIL/__pycache__/ImageMath.cpython-310.pyc +0 -0
  10. deepseek/lib/python3.10/site-packages/PIL/__pycache__/ImageOps.cpython-310.pyc +0 -0
  11. deepseek/lib/python3.10/site-packages/PIL/__pycache__/ImagePalette.cpython-310.pyc +0 -0
  12. deepseek/lib/python3.10/site-packages/PIL/__pycache__/Jpeg2KImagePlugin.cpython-310.pyc +0 -0
  13. deepseek/lib/python3.10/site-packages/PIL/__pycache__/JpegPresets.cpython-310.pyc +0 -0
  14. deepseek/lib/python3.10/site-packages/PIL/__pycache__/McIdasImagePlugin.cpython-310.pyc +0 -0
  15. deepseek/lib/python3.10/site-packages/PIL/__pycache__/MpegImagePlugin.cpython-310.pyc +0 -0
  16. deepseek/lib/python3.10/site-packages/PIL/__pycache__/PixarImagePlugin.cpython-310.pyc +0 -0
  17. deepseek/lib/python3.10/site-packages/PIL/__pycache__/PngImagePlugin.cpython-310.pyc +0 -0
  18. deepseek/lib/python3.10/site-packages/PIL/__pycache__/PyAccess.cpython-310.pyc +0 -0
  19. deepseek/lib/python3.10/site-packages/PIL/__pycache__/QoiImagePlugin.cpython-310.pyc +0 -0
  20. deepseek/lib/python3.10/site-packages/PIL/__pycache__/TarIO.cpython-310.pyc +0 -0
  21. deepseek/lib/python3.10/site-packages/PIL/__pycache__/TgaImagePlugin.cpython-310.pyc +0 -0
  22. deepseek/lib/python3.10/site-packages/PIL/__pycache__/WebPImagePlugin.cpython-310.pyc +0 -0
  23. deepseek/lib/python3.10/site-packages/PIL/__pycache__/report.cpython-310.pyc +0 -0
  24. deepseek/lib/python3.10/site-packages/importlib_metadata-8.5.0.dist-info/RECORD +32 -0
  25. deepseek/lib/python3.10/site-packages/lmformatenforcer/integrations/__init__.py +0 -0
  26. deepseek/lib/python3.10/site-packages/lmformatenforcer/integrations/haystackv1.py +50 -0
  27. deepseek/lib/python3.10/site-packages/nvidia_ml_py-12.560.30.dist-info/INSTALLER +1 -0
  28. deepseek/lib/python3.10/site-packages/nvidia_ml_py-12.560.30.dist-info/METADATA +253 -0
  29. deepseek/lib/python3.10/site-packages/nvidia_ml_py-12.560.30.dist-info/RECORD +10 -0
  30. deepseek/lib/python3.10/site-packages/nvidia_ml_py-12.560.30.dist-info/REQUESTED +0 -0
  31. deepseek/lib/python3.10/site-packages/nvidia_ml_py-12.560.30.dist-info/WHEEL +5 -0
  32. deepseek/lib/python3.10/site-packages/nvidia_ml_py-12.560.30.dist-info/top_level.txt +2 -0
  33. deepseek/lib/python3.10/site-packages/packaging-24.2.dist-info/INSTALLER +1 -0
  34. deepseek/lib/python3.10/site-packages/packaging-24.2.dist-info/LICENSE +3 -0
  35. deepseek/lib/python3.10/site-packages/packaging-24.2.dist-info/LICENSE.BSD +23 -0
  36. deepseek/lib/python3.10/site-packages/packaging-24.2.dist-info/RECORD +41 -0
  37. deepseek/lib/python3.10/site-packages/packaging-24.2.dist-info/REQUESTED +0 -0
  38. deepseek/lib/python3.10/site-packages/packaging-24.2.dist-info/WHEEL +4 -0
  39. deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/Autolev.g4 +118 -0
  40. deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/__init__.py +97 -0
  41. deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/__pycache__/__init__.cpython-310.pyc +0 -0
  42. deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/__pycache__/_build_autolev_antlr.cpython-310.pyc +0 -0
  43. deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/__pycache__/_listener_autolev_antlr.cpython-310.pyc +0 -0
  44. deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/__pycache__/_parse_autolev_antlr.cpython-310.pyc +0 -0
  45. deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/_antlr/__init__.py +5 -0
  46. deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/_antlr/__pycache__/__init__.cpython-310.pyc +0 -0
  47. deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/_antlr/__pycache__/autolevlexer.cpython-310.pyc +0 -0
  48. deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/_antlr/__pycache__/autolevlistener.cpython-310.pyc +0 -0
  49. deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/_antlr/__pycache__/autolevparser.cpython-310.pyc +0 -0
  50. deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/_antlr/autolevlexer.py +253 -0
.gitattributes CHANGED
@@ -677,3 +677,4 @@ deepseekvl2/lib/python3.10/site-packages/transformers/models/seamless_m4t_v2/__p
677
  deepseekvl2/lib/python3.10/site-packages/transformers/__pycache__/__init__.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
678
  deepseekvl2/lib/python3.10/site-packages/transformers/__pycache__/modeling_outputs.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
679
  deepseek/lib/python3.10/site-packages/setuptools/_vendor/__pycache__/typing_extensions.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
 
 
677
  deepseekvl2/lib/python3.10/site-packages/transformers/__pycache__/__init__.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
678
  deepseekvl2/lib/python3.10/site-packages/transformers/__pycache__/modeling_outputs.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
679
  deepseek/lib/python3.10/site-packages/setuptools/_vendor/__pycache__/typing_extensions.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
680
+ deepseekvl2/lib/python3.10/site-packages/transformers/__pycache__/modeling_utils.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
deepseek/lib/python3.10/site-packages/PIL/__pycache__/BufrStubImagePlugin.cpython-310.pyc ADDED
Binary file (2 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/ContainerIO.cpython-310.pyc ADDED
Binary file (3.23 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/DdsImagePlugin.cpython-310.pyc ADDED
Binary file (14 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/EpsImagePlugin.cpython-310.pyc ADDED
Binary file (9.89 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/FontFile.cpython-310.pyc ADDED
Binary file (2.89 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/IcnsImagePlugin.cpython-310.pyc ADDED
Binary file (9.81 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/ImageChops.cpython-310.pyc ADDED
Binary file (7.37 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/ImageMath.cpython-310.pyc ADDED
Binary file (10.9 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/ImageOps.cpython-310.pyc ADDED
Binary file (20.1 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/ImagePalette.cpython-310.pyc ADDED
Binary file (8.37 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/Jpeg2KImagePlugin.cpython-310.pyc ADDED
Binary file (9.59 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/JpegPresets.cpython-310.pyc ADDED
Binary file (7.98 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/McIdasImagePlugin.cpython-310.pyc ADDED
Binary file (1.51 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/MpegImagePlugin.cpython-310.pyc ADDED
Binary file (2.41 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/PixarImagePlugin.cpython-310.pyc ADDED
Binary file (1.29 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/PngImagePlugin.cpython-310.pyc ADDED
Binary file (32.4 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/PyAccess.cpython-310.pyc ADDED
Binary file (11.7 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/QoiImagePlugin.cpython-310.pyc ADDED
Binary file (3.56 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/TarIO.cpython-310.pyc ADDED
Binary file (1.75 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/TgaImagePlugin.cpython-310.pyc ADDED
Binary file (4.33 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/WebPImagePlugin.cpython-310.pyc ADDED
Binary file (7.78 kB). View file
 
deepseek/lib/python3.10/site-packages/PIL/__pycache__/report.cpython-310.pyc ADDED
Binary file (280 Bytes). View file
 
deepseek/lib/python3.10/site-packages/importlib_metadata-8.5.0.dist-info/RECORD ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ importlib_metadata-8.5.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2
+ importlib_metadata-8.5.0.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
3
+ importlib_metadata-8.5.0.dist-info/METADATA,sha256=HXikDpZut4rY2D4ZuhAxXnLUDb-f_XP_Cyp9iYmF4G0,4775
4
+ importlib_metadata-8.5.0.dist-info/RECORD,,
5
+ importlib_metadata-8.5.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ importlib_metadata-8.5.0.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
7
+ importlib_metadata-8.5.0.dist-info/top_level.txt,sha256=CO3fD9yylANiXkrMo4qHLV_mqXL2sC5JFKgt1yWAT-A,19
8
+ importlib_metadata/__init__.py,sha256=-Sk7aVqfmzLecdjSOpLKo1P_PegQanR__HsMMyEq0PI,35853
9
+ importlib_metadata/__pycache__/__init__.cpython-310.pyc,,
10
+ importlib_metadata/__pycache__/_adapters.cpython-310.pyc,,
11
+ importlib_metadata/__pycache__/_collections.cpython-310.pyc,,
12
+ importlib_metadata/__pycache__/_compat.cpython-310.pyc,,
13
+ importlib_metadata/__pycache__/_functools.cpython-310.pyc,,
14
+ importlib_metadata/__pycache__/_itertools.cpython-310.pyc,,
15
+ importlib_metadata/__pycache__/_meta.cpython-310.pyc,,
16
+ importlib_metadata/__pycache__/_text.cpython-310.pyc,,
17
+ importlib_metadata/__pycache__/diagnose.cpython-310.pyc,,
18
+ importlib_metadata/_adapters.py,sha256=wdyNWoVblu1r4z8v4t6iQEyjnqAujEyqWAp9wTCVluI,2317
19
+ importlib_metadata/_collections.py,sha256=CJ0OTCHIjWA0ZIVS4voORAsn2R4R2cQBEtPsZEJpASY,743
20
+ importlib_metadata/_compat.py,sha256=VC5ZDLlT-BcshauCShdFJvMNLntJJfZzNK1meGa-enw,1313
21
+ importlib_metadata/_functools.py,sha256=bSbAqC9-2niWM9364FYBx9GWtetnJEfo4mdLv8uMl7c,2895
22
+ importlib_metadata/_itertools.py,sha256=nMvp9SfHAQ_JYwK4L2i64lr3GRXGlYlikGTVzWbys_E,5351
23
+ importlib_metadata/_meta.py,sha256=JzuqMG4za5MoaBPCPv61c26fUBdQPZ4by3pbaQA_E_o,1823
24
+ importlib_metadata/_text.py,sha256=HCsFksZpJLeTP3NEk_ngrAeXVRRtTrtyh9eOABoRP4A,2166
25
+ importlib_metadata/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
+ importlib_metadata/compat/__pycache__/__init__.cpython-310.pyc,,
27
+ importlib_metadata/compat/__pycache__/py311.cpython-310.pyc,,
28
+ importlib_metadata/compat/__pycache__/py39.cpython-310.pyc,,
29
+ importlib_metadata/compat/py311.py,sha256=uqm-K-uohyj1042TH4a9Er_I5o7667DvulcD-gC_fSA,608
30
+ importlib_metadata/compat/py39.py,sha256=cPkMv6-0ilK-0Jw_Tkn0xYbOKJZc4WJKQHow0c2T44w,1102
31
+ importlib_metadata/diagnose.py,sha256=nkSRMiowlmkhLYhKhvCg9glmt_11Cox-EmLzEbqYTa8,379
32
+ importlib_metadata/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
deepseek/lib/python3.10/site-packages/lmformatenforcer/integrations/__init__.py ADDED
File without changes
deepseek/lib/python3.10/site-packages/lmformatenforcer/integrations/haystackv1.py ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ try:
2
+ from haystack.nodes import PromptNode
3
+ except ImportError:
4
+ raise ImportError('haystack is not installed. Please install it with "pip install farm-haystack"')
5
+
6
+ import enum
7
+ from typing import Callable, Optional
8
+ from lmformatenforcer import CharacterLevelParser
9
+
10
+ class LMFormatEnforcerPromptNode(PromptNode):
11
+ """A prompt node for Haystack V1 API that activates the LMFormatEnforcer on the generated text"""
12
+ class ModelType(enum.Enum):
13
+ HUGGINGFACE = 'HFLocalInvocationLayer'
14
+ # VLLM = 'vLLMLocalInvocationLayer' TODO: After vLLM 0.22 will be relased, this will be possible
15
+
16
+ def __init__(self, *args, character_level_parser: Optional[CharacterLevelParser] = None, **kwargs):
17
+ """Create a new prompt node that activates the LMFormatEnforcer on the generated text. See PromptNode
18
+ documentation for all of the regular arguments.
19
+ :param character_level_parser: A CharacterLevelParser that will be used to enforce the format of the generated"""
20
+ super().__init__(*args, **kwargs)
21
+ self.character_level_parser = character_level_parser
22
+ self.model_type = self._resolve_model_type()
23
+ self.token_enforcer_fn = self._prepare_token_enforcer_fn()
24
+
25
+ def _prepare_token_enforcer_fn(self) -> Optional[Callable]:
26
+ if not self.character_level_parser:
27
+ return None
28
+ if self.model_type == LMFormatEnforcerPromptNode.ModelType.HUGGINGFACE:
29
+ tokenizer = self.prompt_model.model_invocation_layer.pipe.tokenizer
30
+ from lmformatenforcer.integrations.transformers import build_transformers_prefix_allowed_tokens_fn
31
+ return build_transformers_prefix_allowed_tokens_fn(tokenizer, self.character_level_parser)
32
+ raise NotImplementedError(f"Token enforcer not implemented for model type {self.model_type.name}")
33
+
34
+ def _resolve_model_type(self) -> ModelType:
35
+ invocation_layer_name = self.prompt_model.model_invocation_layer.__class__.__name__
36
+ try:
37
+ return LMFormatEnforcerPromptNode.ModelType(invocation_layer_name)
38
+ except ValueError:
39
+ supported_strings = ",".join(str(t.name) for t in LMFormatEnforcerPromptNode.ModelType)
40
+ raise ValueError(f"Unsupported invocation layer: {invocation_layer_name}. "
41
+ f"Must be one of {supported_strings}")
42
+
43
+ def _prepare_model_kwargs(self):
44
+ model_kwargs = super()._prepare_model_kwargs()
45
+ if self.token_enforcer_fn:
46
+ if self.model_type == LMFormatEnforcerPromptNode.ModelType.HUGGINGFACE:
47
+ if 'generation_kwargs' not in model_kwargs:
48
+ model_kwargs['generation_kwargs'] = {}
49
+ model_kwargs['generation_kwargs']['prefix_allowed_tokens_fn'] = self.token_enforcer_fn
50
+ return model_kwargs
deepseek/lib/python3.10/site-packages/nvidia_ml_py-12.560.30.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
deepseek/lib/python3.10/site-packages/nvidia_ml_py-12.560.30.dist-info/METADATA ADDED
@@ -0,0 +1,253 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.1
2
+ Name: nvidia-ml-py
3
+ Version: 12.560.30
4
+ Summary: Python Bindings for the NVIDIA Management Library
5
+ Home-page: https://forums.developer.nvidia.com
6
+ Author: NVIDIA Corporation
7
+ Author-email: nvml-bindings@nvidia.com
8
+ License: BSD
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Intended Audience :: System Administrators
12
+ Classifier: License :: OSI Approved :: BSD License
13
+ Classifier: Operating System :: Microsoft :: Windows
14
+ Classifier: Operating System :: POSIX :: Linux
15
+ Classifier: Programming Language :: Python
16
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
17
+ Classifier: Topic :: System :: Hardware
18
+ Classifier: Topic :: System :: Systems Administration
19
+ Description-Content-Type: text/markdown
20
+
21
+ pyNVML
22
+ ======
23
+
24
+ Python bindings to the NVIDIA Management Library
25
+ ------------------------------------------------
26
+
27
+ Provides a Python interface to GPU management and monitoring functions.
28
+
29
+ This is a wrapper around the NVML library.
30
+ For information about the NVML library, see the NVML developer page
31
+ http://developer.nvidia.com/nvidia-management-library-nvml
32
+
33
+ Download the latest package from:
34
+ http://pypi.python.org/pypi/nvidia-ml-py/
35
+
36
+ Note this file can be run with 'python -m doctest -v README.txt'
37
+ although the results are system dependent
38
+
39
+ The nvml header file contains function documentation that is relevant
40
+ to this wrapper. The header file is distributed with.
41
+ https://developer.nvidia.com/gpu-deployment-kit
42
+
43
+ The main difference is this library handles allocating structs and
44
+ passing pointers to the functions, before returning the desired value.
45
+ Non-success return codes are raised as exceptions as described in the
46
+ section below.
47
+
48
+ REQUIRES
49
+ --------
50
+ Python 2.5, or an earlier version with the ctypes module.
51
+
52
+ INSTALLATION
53
+ ------------
54
+
55
+ Pip Installation with python3:
56
+ - `python3 -m pip install nvidia-ml-py`
57
+
58
+ Manual Installation:
59
+ ```
60
+ $ tar -xzf nvidia-ml-py-$major-$minor-$patch.tar.gz`
61
+ $ cd nvidia-ml-py-$major-$minor-$patch
62
+ $ sudo python setup.py install
63
+ ```
64
+
65
+ USAGE
66
+ -----
67
+ ```
68
+ >>> from pynvml import *
69
+ >>> nvmlInit()
70
+ >>> print(f"Driver Version: {nvmlSystemGetDriverVersion()}")
71
+ Driver Version: 11.515.48
72
+ >>> deviceCount = nvmlDeviceGetCount()
73
+ >>> for i in range(deviceCount):
74
+ ... handle = nvmlDeviceGetHandleByIndex(i)
75
+ ... print(f"Device {i} : {nvmlDeviceGetName(handle)}")
76
+ ...
77
+ Device 0 : Tesla K40c
78
+
79
+ >>> nvmlShutdown()
80
+ ```
81
+
82
+ FUNCTIONS
83
+ ---------
84
+ Python methods wrap NVML functions, implemented in a C shared library.
85
+ Each function's use is the same with the following exceptions:
86
+
87
+ - Instead of returning error codes, failing error codes are raised as Python exceptions.
88
+
89
+ ```
90
+ >>> try:
91
+ ... nvmlDeviceGetCount()
92
+ ... except NVMLError as error:
93
+ ... print(error)
94
+ ...
95
+ Uninitialized
96
+ ```
97
+
98
+ - C function output parameters are returned from the corresponding Python function left to right.
99
+ ```
100
+ nvmlReturn_t nvmlDeviceGetEccMode(nvmlDevice_t device,
101
+ nvmlEnableState_t *current,
102
+ nvmlEnableState_t *pending);
103
+
104
+ >>> nvmlInit()
105
+ >>> handle = nvmlDeviceGetHandleByIndex(0)
106
+ >>> (current, pending) = nvmlDeviceGetEccMode(handle)
107
+ ```
108
+ - C structs are converted into Python classes.
109
+
110
+ ```
111
+ // C Function and typedef struct
112
+ nvmlReturn_t DECLDIR nvmlDeviceGetMemoryInfo(nvmlDevice_t device,
113
+ nvmlMemory_t *memory);
114
+ typedef struct nvmlMemory_st {
115
+ unsigned long long total;
116
+ unsigned long long free;
117
+ unsigned long long used;
118
+ } nvmlMemory_t;
119
+
120
+
121
+ # Python call to function and accessing members of ctype struct
122
+ >>> info = nvmlDeviceGetMemoryInfo(handle)
123
+ >>> print(f"Total memory: {info.total}")
124
+ Total memory: 5636292608
125
+ >>> print(f"Free memory:, {info.free}")
126
+ Free memory: 5578420224
127
+ >>> print(f"Used memory: {info.used}")
128
+ Used memory: 57872384
129
+ ```
130
+
131
+ - Python handles string buffer creation.
132
+
133
+ ```
134
+ // C Function that needs character array and length
135
+ nvmlReturn_t nvmlSystemGetDriverVersion(char* version,
136
+ unsigned int length);
137
+
138
+ # Python function handles memory
139
+ >>> version = nvmlSystemGetDriverVersion()
140
+ >>> print(version)
141
+ ... 11.520.75
142
+ >>> nvmlShutdown()
143
+ ```
144
+
145
+ For usage information see the NVML documentation.
146
+
147
+ VARIABLES
148
+ ---------
149
+ All meaningful NVML constants and enums are exposed in Python.
150
+
151
+ The NVML_VALUE_NOT_AVAILABLE constant is not used. Instead None is mapped to the field.
152
+
153
+ EXCEPTIONS
154
+ ----------
155
+ Since the C library uses return codes and python prefers exception handling, the
156
+ library converts all return codes to various exceptions. The exceptions are generated
157
+ automatically via a function at run time instead of being defined manually.
158
+
159
+ The list of exceptions can be found in NVMLError base class.
160
+
161
+ The example seen above in the FUNCTIONS section:
162
+
163
+ ```
164
+ >>> try:
165
+ ... nvmlDeviceGetCount()
166
+ ... except NVMLError as error:
167
+ ... print(error)
168
+ ...
169
+ Uninitialized
170
+ ```
171
+
172
+ Can be more accurately caught like this:
173
+
174
+ ```
175
+ >>> try:
176
+ ... nvmlDeviceGetCount()
177
+ ... except NVMLError_Uninitialized as error:
178
+ ... print(error)
179
+ ...
180
+ Uninitialized
181
+ ```
182
+
183
+ The conversion from name to exception is like this for all exceptions:
184
+ * `NVML_ERROR_UNINITIALIZED` => `NVMLError_Uninitialized`
185
+ * `NVML_ERROR_LIBRARY_NOT_FOUND` => `NVMLError_LibraryNotFound`
186
+ * `NVML_ERROR_ALREADY_INITIALIZED` => `NVMLError_AlreadyInitialized`
187
+
188
+ RELEASE NOTES
189
+ -------------
190
+ Version 2.285.0
191
+ - Added new functions for NVML 2.285. See NVML documentation for more information.
192
+ - Ported to support Python 3.0 and Python 2.0 syntax.
193
+ - Added nvidia_smi.py tool as a sample app.
194
+
195
+ Version 3.295.0
196
+ - Added new functions for NVML 3.295. See NVML documentation for more information.
197
+ - Updated nvidia_smi.py tool
198
+ - Includes additional error handling
199
+
200
+ Version 4.304.0
201
+ - Added new functions for NVML 4.304. See NVML documentation for more information.
202
+ - Updated nvidia_smi.py tool
203
+
204
+ Version 4.304.3
205
+ - Fixing nvmlUnitGetDeviceCount bug
206
+
207
+ Version 5.319.0
208
+ - Added new functions for NVML 5.319. See NVML documentation for more information.
209
+
210
+ Version 6.340.0
211
+ - Added new functions for NVML 6.340. See NVML documentation for more information.
212
+
213
+ Version 7.346.0
214
+ - Added new functions for NVML 7.346. See NVML documentation for more information.
215
+
216
+ Version 7.352.0
217
+ - Added new functions for NVML 7.352. See NVML documentation for more information.
218
+
219
+ Version 10.418
220
+ - Added new functions for NVML 10.418. See NVML documentation for more information.
221
+ - Fixed issues with using the bindings with Python 3.x
222
+ - Replaced sample app nvidia_smi.py with example.py
223
+
224
+ Version 11.515.48
225
+ - Python3 support added
226
+ - Updated API to add function new to NVML, bringing pynvml up to date with NVML
227
+ - Added auto-version to handle byte and string conversion automatically for both structs and functions
228
+ - Minor bug fixes
229
+ - Added README.txt correctly in long_description for pypi.org
230
+
231
+ Version 11.520
232
+ - Updated Long Description to be actual markdown
233
+ - Added new functions for NVML 11.520
234
+
235
+ Version 11.525
236
+ - Added new functions for NVML 11.525
237
+
238
+ COPYRIGHT
239
+ ---------
240
+ Copyright (c) 2011-2023, NVIDIA Corporation. All rights reserved.
241
+
242
+ LICENSE
243
+ -------
244
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
245
+
246
+ - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
247
+
248
+ - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
249
+
250
+ - Neither the name of the NVIDIA Corporation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
251
+
252
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
253
+
deepseek/lib/python3.10/site-packages/nvidia_ml_py-12.560.30.dist-info/RECORD ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ __pycache__/example.cpython-310.pyc,,
2
+ __pycache__/pynvml.cpython-310.pyc,,
3
+ example.py,sha256=mDXwPVyEDuiKeMApEh53r_M36xuncmzMpFOGA3Q-_Kw,7968
4
+ nvidia_ml_py-12.560.30.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
5
+ nvidia_ml_py-12.560.30.dist-info/METADATA,sha256=QYL_CKtxv2IYm6sOtqB6mil6FXBqZtYI2WffW15rBgc,8552
6
+ nvidia_ml_py-12.560.30.dist-info/RECORD,,
7
+ nvidia_ml_py-12.560.30.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ nvidia_ml_py-12.560.30.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
9
+ nvidia_ml_py-12.560.30.dist-info/top_level.txt,sha256=wLINSA1WKnhsGgKsb_nuj51ZCQrXaN5qhioTL56g98A,15
10
+ pynvml.py,sha256=WnYw0wj8hCne16dMljigIfqv5ThPdr1jCuPMqlgwcCk,210228
deepseek/lib/python3.10/site-packages/nvidia_ml_py-12.560.30.dist-info/REQUESTED ADDED
File without changes
deepseek/lib/python3.10/site-packages/nvidia_ml_py-12.560.30.dist-info/WHEEL ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.42.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
deepseek/lib/python3.10/site-packages/nvidia_ml_py-12.560.30.dist-info/top_level.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ example
2
+ pynvml
deepseek/lib/python3.10/site-packages/packaging-24.2.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
deepseek/lib/python3.10/site-packages/packaging-24.2.dist-info/LICENSE ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ This software is made available under the terms of *either* of the licenses
2
+ found in LICENSE.APACHE or LICENSE.BSD. Contributions to this software is made
3
+ under the terms of *both* these licenses.
deepseek/lib/python3.10/site-packages/packaging-24.2.dist-info/LICENSE.BSD ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) Donald Stufft and individual contributors.
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+
7
+ 1. Redistributions of source code must retain the above copyright notice,
8
+ this list of conditions and the following disclaimer.
9
+
10
+ 2. Redistributions in binary form must reproduce the above copyright
11
+ notice, this list of conditions and the following disclaimer in the
12
+ documentation and/or other materials provided with the distribution.
13
+
14
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
deepseek/lib/python3.10/site-packages/packaging-24.2.dist-info/RECORD ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ packaging-24.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2
+ packaging-24.2.dist-info/LICENSE,sha256=ytHvW9NA1z4HS6YU0m996spceUDD2MNIUuZcSQlobEg,197
3
+ packaging-24.2.dist-info/LICENSE.APACHE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
4
+ packaging-24.2.dist-info/LICENSE.BSD,sha256=tw5-m3QvHMb5SLNMFqo5_-zpQZY2S8iP8NIYDwAo-sU,1344
5
+ packaging-24.2.dist-info/METADATA,sha256=ohH86s6k5mIfQxY2TS0LcSfADeOFa4BiCC-bxZV-pNs,3204
6
+ packaging-24.2.dist-info/RECORD,,
7
+ packaging-24.2.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ packaging-24.2.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
9
+ packaging/__init__.py,sha256=dk4Ta_vmdVJxYHDcfyhvQNw8V3PgSBomKNXqg-D2JDY,494
10
+ packaging/__pycache__/__init__.cpython-310.pyc,,
11
+ packaging/__pycache__/_elffile.cpython-310.pyc,,
12
+ packaging/__pycache__/_manylinux.cpython-310.pyc,,
13
+ packaging/__pycache__/_musllinux.cpython-310.pyc,,
14
+ packaging/__pycache__/_parser.cpython-310.pyc,,
15
+ packaging/__pycache__/_structures.cpython-310.pyc,,
16
+ packaging/__pycache__/_tokenizer.cpython-310.pyc,,
17
+ packaging/__pycache__/markers.cpython-310.pyc,,
18
+ packaging/__pycache__/metadata.cpython-310.pyc,,
19
+ packaging/__pycache__/requirements.cpython-310.pyc,,
20
+ packaging/__pycache__/specifiers.cpython-310.pyc,,
21
+ packaging/__pycache__/tags.cpython-310.pyc,,
22
+ packaging/__pycache__/utils.cpython-310.pyc,,
23
+ packaging/__pycache__/version.cpython-310.pyc,,
24
+ packaging/_elffile.py,sha256=cflAQAkE25tzhYmq_aCi72QfbT_tn891tPzfpbeHOwE,3306
25
+ packaging/_manylinux.py,sha256=vl5OCoz4kx80H5rwXKeXWjl9WNISGmr4ZgTpTP9lU9c,9612
26
+ packaging/_musllinux.py,sha256=p9ZqNYiOItGee8KcZFeHF_YcdhVwGHdK6r-8lgixvGQ,2694
27
+ packaging/_parser.py,sha256=s_TvTvDNK0NrM2QB3VKThdWFM4Nc0P6JnkObkl3MjpM,10236
28
+ packaging/_structures.py,sha256=q3eVNmbWJGG_S0Dit_S3Ao8qQqz_5PYTXFAKBZe5yr4,1431
29
+ packaging/_tokenizer.py,sha256=J6v5H7Jzvb-g81xp_2QACKwO7LxHQA6ikryMU7zXwN8,5273
30
+ packaging/licenses/__init__.py,sha256=1x5M1nEYjcgwEbLt0dXwz2ukjr18DiCzC0sraQqJ-Ww,5715
31
+ packaging/licenses/__pycache__/__init__.cpython-310.pyc,,
32
+ packaging/licenses/__pycache__/_spdx.cpython-310.pyc,,
33
+ packaging/licenses/_spdx.py,sha256=oAm1ztPFwlsmCKe7lAAsv_OIOfS1cWDu9bNBkeu-2ns,48398
34
+ packaging/markers.py,sha256=c89TNzB7ZdGYhkovm6PYmqGyHxXlYVaLW591PHUNKD8,10561
35
+ packaging/metadata.py,sha256=YJibM7GYe4re8-0a3OlXmGS-XDgTEoO4tlBt2q25Bng,34762
36
+ packaging/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
+ packaging/requirements.py,sha256=gYyRSAdbrIyKDY66ugIDUQjRMvxkH2ALioTmX3tnL6o,2947
38
+ packaging/specifiers.py,sha256=GG1wPNMcL0fMJO68vF53wKMdwnfehDcaI-r9NpTfilA,40074
39
+ packaging/tags.py,sha256=CFqrJzAzc2XNGexerH__T-Y5Iwq7WbsYXsiLERLWxY0,21014
40
+ packaging/utils.py,sha256=0F3Hh9OFuRgrhTgGZUl5K22Fv1YP2tZl1z_2gO6kJiA,5050
41
+ packaging/version.py,sha256=olfyuk_DPbflNkJ4wBWetXQ17c74x3DB501degUv7DY,16676
deepseek/lib/python3.10/site-packages/packaging-24.2.dist-info/REQUESTED ADDED
File without changes
deepseek/lib/python3.10/site-packages/packaging-24.2.dist-info/WHEEL ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: flit 3.10.1
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/Autolev.g4 ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ grammar Autolev;
2
+
3
+ options {
4
+ language = Python3;
5
+ }
6
+
7
+ prog: stat+;
8
+
9
+ stat: varDecl
10
+ | functionCall
11
+ | codeCommands
12
+ | massDecl
13
+ | inertiaDecl
14
+ | assignment
15
+ | settings
16
+ ;
17
+
18
+ assignment: vec equals expr #vecAssign
19
+ | ID '[' index ']' equals expr #indexAssign
20
+ | ID diff? equals expr #regularAssign;
21
+
22
+ equals: ('='|'+='|'-='|':='|'*='|'/='|'^=');
23
+
24
+ index: expr (',' expr)* ;
25
+
26
+ diff: ('\'')+;
27
+
28
+ functionCall: ID '(' (expr (',' expr)*)? ')'
29
+ | (Mass|Inertia) '(' (ID (',' ID)*)? ')';
30
+
31
+ varDecl: varType varDecl2 (',' varDecl2)*;
32
+
33
+ varType: Newtonian|Frames|Bodies|Particles|Points|Constants
34
+ | Specifieds|Imaginary|Variables ('\'')*|MotionVariables ('\'')*;
35
+
36
+ varDecl2: ID ('{' INT ',' INT '}')? (('{' INT ':' INT (',' INT ':' INT)* '}'))? ('{' INT '}')? ('+'|'-')? ('\'')* ('=' expr)?;
37
+
38
+ ranges: ('{' INT ':' INT (',' INT ':' INT)* '}');
39
+
40
+ massDecl: Mass massDecl2 (',' massDecl2)*;
41
+
42
+ massDecl2: ID '=' expr;
43
+
44
+ inertiaDecl: Inertia ID ('(' ID ')')? (',' expr)+;
45
+
46
+ matrix: '[' expr ((','|';') expr)* ']';
47
+ matrixInOutput: (ID (ID '=' (FLOAT|INT)?))|FLOAT|INT;
48
+
49
+ codeCommands: units
50
+ | inputs
51
+ | outputs
52
+ | codegen
53
+ | commands;
54
+
55
+ settings: ID (EXP|ID|FLOAT|INT)?;
56
+
57
+ units: UnitSystem ID (',' ID)*;
58
+ inputs: Input inputs2 (',' inputs2)*;
59
+ id_diff: ID diff?;
60
+ inputs2: id_diff '=' expr expr?;
61
+ outputs: Output outputs2 (',' outputs2)*;
62
+ outputs2: expr expr?;
63
+ codegen: ID functionCall ('['matrixInOutput (',' matrixInOutput)*']')? ID'.'ID;
64
+
65
+ commands: Save ID'.'ID
66
+ | Encode ID (',' ID)*;
67
+
68
+ vec: ID ('>')+
69
+ | '0>'
70
+ | '1>>';
71
+
72
+ expr: expr '^'<assoc=right> expr # Exponent
73
+ | expr ('*'|'/') expr # MulDiv
74
+ | expr ('+'|'-') expr # AddSub
75
+ | EXP # exp
76
+ | '-' expr # negativeOne
77
+ | FLOAT # float
78
+ | INT # int
79
+ | ID('\'')* # id
80
+ | vec # VectorOrDyadic
81
+ | ID '['expr (',' expr)* ']' # Indexing
82
+ | functionCall # function
83
+ | matrix # matrices
84
+ | '(' expr ')' # parens
85
+ | expr '=' expr # idEqualsExpr
86
+ | expr ':' expr # colon
87
+ | ID? ranges ('\'')* # rangess
88
+ ;
89
+
90
+ // These are to take care of the case insensitivity of Autolev.
91
+ Mass: ('M'|'m')('A'|'a')('S'|'s')('S'|'s');
92
+ Inertia: ('I'|'i')('N'|'n')('E'|'e')('R'|'r')('T'|'t')('I'|'i')('A'|'a');
93
+ Input: ('I'|'i')('N'|'n')('P'|'p')('U'|'u')('T'|'t')('S'|'s')?;
94
+ Output: ('O'|'o')('U'|'u')('T'|'t')('P'|'p')('U'|'u')('T'|'t');
95
+ Save: ('S'|'s')('A'|'a')('V'|'v')('E'|'e');
96
+ UnitSystem: ('U'|'u')('N'|'n')('I'|'i')('T'|'t')('S'|'s')('Y'|'y')('S'|'s')('T'|'t')('E'|'e')('M'|'m');
97
+ Encode: ('E'|'e')('N'|'n')('C'|'c')('O'|'o')('D'|'d')('E'|'e');
98
+ Newtonian: ('N'|'n')('E'|'e')('W'|'w')('T'|'t')('O'|'o')('N'|'n')('I'|'i')('A'|'a')('N'|'n');
99
+ Frames: ('F'|'f')('R'|'r')('A'|'a')('M'|'m')('E'|'e')('S'|'s')?;
100
+ Bodies: ('B'|'b')('O'|'o')('D'|'d')('I'|'i')('E'|'e')('S'|'s')?;
101
+ Particles: ('P'|'p')('A'|'a')('R'|'r')('T'|'t')('I'|'i')('C'|'c')('L'|'l')('E'|'e')('S'|'s')?;
102
+ Points: ('P'|'p')('O'|'o')('I'|'i')('N'|'n')('T'|'t')('S'|'s')?;
103
+ Constants: ('C'|'c')('O'|'o')('N'|'n')('S'|'s')('T'|'t')('A'|'a')('N'|'n')('T'|'t')('S'|'s')?;
104
+ Specifieds: ('S'|'s')('P'|'p')('E'|'e')('C'|'c')('I'|'i')('F'|'f')('I'|'i')('E'|'e')('D'|'d')('S'|'s')?;
105
+ Imaginary: ('I'|'i')('M'|'m')('A'|'a')('G'|'g')('I'|'i')('N'|'n')('A'|'a')('R'|'r')('Y'|'y');
106
+ Variables: ('V'|'v')('A'|'a')('R'|'r')('I'|'i')('A'|'a')('B'|'b')('L'|'l')('E'|'e')('S'|'s')?;
107
+ MotionVariables: ('M'|'m')('O'|'o')('T'|'t')('I'|'i')('O'|'o')('N'|'n')('V'|'v')('A'|'a')('R'|'r')('I'|'i')('A'|'a')('B'|'b')('L'|'l')('E'|'e')('S'|'s')?;
108
+
109
+ fragment DIFF: ('\'')*;
110
+ fragment DIGIT: [0-9];
111
+ INT: [0-9]+ ; // match integers
112
+ FLOAT: DIGIT+ '.' DIGIT*
113
+ | '.' DIGIT+;
114
+ EXP: FLOAT 'E' INT
115
+ | FLOAT 'E' '-' INT;
116
+ LINE_COMMENT : '%' .*? '\r'? '\n' -> skip ;
117
+ ID: [a-zA-Z][a-zA-Z0-9_]*;
118
+ WS: [ \t\r\n&]+ -> skip ; // toss out whitespace
deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/__init__.py ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from sympy.external import import_module
2
+ from sympy.utilities.decorator import doctest_depends_on
3
+
4
+ @doctest_depends_on(modules=('antlr4',))
5
+ def parse_autolev(autolev_code, include_numeric=False):
6
+ """Parses Autolev code (version 4.1) to SymPy code.
7
+
8
+ Parameters
9
+ =========
10
+ autolev_code : Can be an str or any object with a readlines() method (such as a file handle or StringIO).
11
+ include_numeric : boolean, optional
12
+ If True NumPy, PyDy, or other numeric code is included for numeric evaluation lines in the Autolev code.
13
+
14
+ Returns
15
+ =======
16
+ sympy_code : str
17
+ Equivalent SymPy and/or numpy/pydy code as the input code.
18
+
19
+
20
+ Example (Double Pendulum)
21
+ =========================
22
+ >>> my_al_text = ("MOTIONVARIABLES' Q{2}', U{2}'",
23
+ ... "CONSTANTS L,M,G",
24
+ ... "NEWTONIAN N",
25
+ ... "FRAMES A,B",
26
+ ... "SIMPROT(N, A, 3, Q1)",
27
+ ... "SIMPROT(N, B, 3, Q2)",
28
+ ... "W_A_N>=U1*N3>",
29
+ ... "W_B_N>=U2*N3>",
30
+ ... "POINT O",
31
+ ... "PARTICLES P,R",
32
+ ... "P_O_P> = L*A1>",
33
+ ... "P_P_R> = L*B1>",
34
+ ... "V_O_N> = 0>",
35
+ ... "V2PTS(N, A, O, P)",
36
+ ... "V2PTS(N, B, P, R)",
37
+ ... "MASS P=M, R=M",
38
+ ... "Q1' = U1",
39
+ ... "Q2' = U2",
40
+ ... "GRAVITY(G*N1>)",
41
+ ... "ZERO = FR() + FRSTAR()",
42
+ ... "KANE()",
43
+ ... "INPUT M=1,G=9.81,L=1",
44
+ ... "INPUT Q1=.1,Q2=.2,U1=0,U2=0",
45
+ ... "INPUT TFINAL=10, INTEGSTP=.01",
46
+ ... "CODE DYNAMICS() some_filename.c")
47
+ >>> my_al_text = '\\n'.join(my_al_text)
48
+ >>> from sympy.parsing.autolev import parse_autolev
49
+ >>> print(parse_autolev(my_al_text, include_numeric=True))
50
+ import sympy.physics.mechanics as _me
51
+ import sympy as _sm
52
+ import math as m
53
+ import numpy as _np
54
+ <BLANKLINE>
55
+ q1, q2, u1, u2 = _me.dynamicsymbols('q1 q2 u1 u2')
56
+ q1_d, q2_d, u1_d, u2_d = _me.dynamicsymbols('q1_ q2_ u1_ u2_', 1)
57
+ l, m, g = _sm.symbols('l m g', real=True)
58
+ frame_n = _me.ReferenceFrame('n')
59
+ frame_a = _me.ReferenceFrame('a')
60
+ frame_b = _me.ReferenceFrame('b')
61
+ frame_a.orient(frame_n, 'Axis', [q1, frame_n.z])
62
+ frame_b.orient(frame_n, 'Axis', [q2, frame_n.z])
63
+ frame_a.set_ang_vel(frame_n, u1*frame_n.z)
64
+ frame_b.set_ang_vel(frame_n, u2*frame_n.z)
65
+ point_o = _me.Point('o')
66
+ particle_p = _me.Particle('p', _me.Point('p_pt'), _sm.Symbol('m'))
67
+ particle_r = _me.Particle('r', _me.Point('r_pt'), _sm.Symbol('m'))
68
+ particle_p.point.set_pos(point_o, l*frame_a.x)
69
+ particle_r.point.set_pos(particle_p.point, l*frame_b.x)
70
+ point_o.set_vel(frame_n, 0)
71
+ particle_p.point.v2pt_theory(point_o,frame_n,frame_a)
72
+ particle_r.point.v2pt_theory(particle_p.point,frame_n,frame_b)
73
+ particle_p.mass = m
74
+ particle_r.mass = m
75
+ force_p = particle_p.mass*(g*frame_n.x)
76
+ force_r = particle_r.mass*(g*frame_n.x)
77
+ kd_eqs = [q1_d - u1, q2_d - u2]
78
+ forceList = [(particle_p.point,particle_p.mass*(g*frame_n.x)), (particle_r.point,particle_r.mass*(g*frame_n.x))]
79
+ kane = _me.KanesMethod(frame_n, q_ind=[q1,q2], u_ind=[u1, u2], kd_eqs = kd_eqs)
80
+ fr, frstar = kane.kanes_equations([particle_p, particle_r], forceList)
81
+ zero = fr+frstar
82
+ from pydy.system import System
83
+ sys = System(kane, constants = {l:1, m:1, g:9.81},
84
+ specifieds={},
85
+ initial_conditions={q1:.1, q2:.2, u1:0, u2:0},
86
+ times = _np.linspace(0.0, 10, 10/.01))
87
+ <BLANKLINE>
88
+ y=sys.integrate()
89
+ <BLANKLINE>
90
+ """
91
+
92
+ _autolev = import_module(
93
+ 'sympy.parsing.autolev._parse_autolev_antlr',
94
+ import_kwargs={'fromlist': ['X']})
95
+
96
+ if _autolev is not None:
97
+ return _autolev.parse_autolev(autolev_code, include_numeric)
deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (3.8 kB). View file
 
deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/__pycache__/_build_autolev_antlr.cpython-310.pyc ADDED
Binary file (2.48 kB). View file
 
deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/__pycache__/_listener_autolev_antlr.cpython-310.pyc ADDED
Binary file (50.4 kB). View file
 
deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/__pycache__/_parse_autolev_antlr.cpython-310.pyc ADDED
Binary file (1.5 kB). View file
 
deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/_antlr/__init__.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # *** GENERATED BY `setup.py antlr`, DO NOT EDIT BY HAND ***
2
+ #
3
+ # Generated with antlr4
4
+ # antlr4 is licensed under the BSD-3-Clause License
5
+ # https://github.com/antlr/antlr4/blob/master/LICENSE.txt
deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/_antlr/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (185 Bytes). View file
 
deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/_antlr/__pycache__/autolevlexer.cpython-310.pyc ADDED
Binary file (20.8 kB). View file
 
deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/_antlr/__pycache__/autolevlistener.cpython-310.pyc ADDED
Binary file (13.5 kB). View file
 
deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/_antlr/__pycache__/autolevparser.cpython-310.pyc ADDED
Binary file (94.5 kB). View file
 
deepseekvl2/lib/python3.10/site-packages/sympy/parsing/autolev/_antlr/autolevlexer.py ADDED
@@ -0,0 +1,253 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # *** GENERATED BY `setup.py antlr`, DO NOT EDIT BY HAND ***
2
+ #
3
+ # Generated with antlr4
4
+ # antlr4 is licensed under the BSD-3-Clause License
5
+ # https://github.com/antlr/antlr4/blob/master/LICENSE.txt
6
+ from antlr4 import *
7
+ from io import StringIO
8
+ import sys
9
+ if sys.version_info[1] > 5:
10
+ from typing import TextIO
11
+ else:
12
+ from typing.io import TextIO
13
+
14
+
15
+ def serializedATN():
16
+ return [
17
+ 4,0,49,393,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,
18
+ 2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,
19
+ 13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,
20
+ 19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,
21
+ 26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,
22
+ 32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,
23
+ 39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,
24
+ 45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,1,0,1,0,1,1,
25
+ 1,1,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,4,1,5,1,5,1,5,1,6,1,6,1,6,1,7,
26
+ 1,7,1,7,1,8,1,8,1,8,1,9,1,9,1,10,1,10,1,11,1,11,1,12,1,12,1,13,1,
27
+ 13,1,14,1,14,1,15,1,15,1,16,1,16,1,17,1,17,1,18,1,18,1,19,1,19,1,
28
+ 20,1,20,1,21,1,21,1,21,1,22,1,22,1,22,1,22,1,23,1,23,1,24,1,24,1,
29
+ 25,1,25,1,26,1,26,1,26,1,26,1,26,1,27,1,27,1,27,1,27,1,27,1,27,1,
30
+ 27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,3,28,184,8,28,1,29,1,29,1,
31
+ 29,1,29,1,29,1,29,1,29,1,30,1,30,1,30,1,30,1,30,1,31,1,31,1,31,1,
32
+ 31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,
33
+ 32,1,32,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,34,1,
34
+ 34,1,34,1,34,1,34,1,34,3,34,232,8,34,1,35,1,35,1,35,1,35,1,35,1,
35
+ 35,3,35,240,8,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,3,
36
+ 36,251,8,36,1,37,1,37,1,37,1,37,1,37,1,37,3,37,259,8,37,1,38,1,38,
37
+ 1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,270,8,38,1,39,1,39,1,39,
38
+ 1,39,1,39,1,39,1,39,1,39,1,39,1,39,3,39,282,8,39,1,40,1,40,1,40,
39
+ 1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,41,1,41,1,41,1,41,1,41,1,41,
40
+ 1,41,1,41,1,41,3,41,303,8,41,1,42,1,42,1,42,1,42,1,42,1,42,1,42,
41
+ 1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,3,42,320,8,42,1,43,5,43,
42
+ 323,8,43,10,43,12,43,326,9,43,1,44,1,44,1,45,4,45,331,8,45,11,45,
43
+ 12,45,332,1,46,4,46,336,8,46,11,46,12,46,337,1,46,1,46,5,46,342,
44
+ 8,46,10,46,12,46,345,9,46,1,46,1,46,4,46,349,8,46,11,46,12,46,350,
45
+ 3,46,353,8,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,3,47,
46
+ 364,8,47,1,48,1,48,5,48,368,8,48,10,48,12,48,371,9,48,1,48,3,48,
47
+ 374,8,48,1,48,1,48,1,48,1,48,1,49,1,49,5,49,382,8,49,10,49,12,49,
48
+ 385,9,49,1,50,4,50,388,8,50,11,50,12,50,389,1,50,1,50,1,369,0,51,
49
+ 1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,
50
+ 27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,
51
+ 49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,
52
+ 71,36,73,37,75,38,77,39,79,40,81,41,83,42,85,43,87,0,89,0,91,44,
53
+ 93,45,95,46,97,47,99,48,101,49,1,0,24,2,0,77,77,109,109,2,0,65,65,
54
+ 97,97,2,0,83,83,115,115,2,0,73,73,105,105,2,0,78,78,110,110,2,0,
55
+ 69,69,101,101,2,0,82,82,114,114,2,0,84,84,116,116,2,0,80,80,112,
56
+ 112,2,0,85,85,117,117,2,0,79,79,111,111,2,0,86,86,118,118,2,0,89,
57
+ 89,121,121,2,0,67,67,99,99,2,0,68,68,100,100,2,0,87,87,119,119,2,
58
+ 0,70,70,102,102,2,0,66,66,98,98,2,0,76,76,108,108,2,0,71,71,103,
59
+ 103,1,0,48,57,2,0,65,90,97,122,4,0,48,57,65,90,95,95,97,122,4,0,
60
+ 9,10,13,13,32,32,38,38,410,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,
61
+ 7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,
62
+ 1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,
63
+ 1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,
64
+ 1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,
65
+ 1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,
66
+ 1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,
67
+ 1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,
68
+ 1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,91,
69
+ 1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,
70
+ 1,0,0,0,1,103,1,0,0,0,3,105,1,0,0,0,5,107,1,0,0,0,7,109,1,0,0,0,
71
+ 9,112,1,0,0,0,11,115,1,0,0,0,13,118,1,0,0,0,15,121,1,0,0,0,17,124,
72
+ 1,0,0,0,19,127,1,0,0,0,21,129,1,0,0,0,23,131,1,0,0,0,25,133,1,0,
73
+ 0,0,27,135,1,0,0,0,29,137,1,0,0,0,31,139,1,0,0,0,33,141,1,0,0,0,
74
+ 35,143,1,0,0,0,37,145,1,0,0,0,39,147,1,0,0,0,41,149,1,0,0,0,43,151,
75
+ 1,0,0,0,45,154,1,0,0,0,47,158,1,0,0,0,49,160,1,0,0,0,51,162,1,0,
76
+ 0,0,53,164,1,0,0,0,55,169,1,0,0,0,57,177,1,0,0,0,59,185,1,0,0,0,
77
+ 61,192,1,0,0,0,63,197,1,0,0,0,65,208,1,0,0,0,67,215,1,0,0,0,69,225,
78
+ 1,0,0,0,71,233,1,0,0,0,73,241,1,0,0,0,75,252,1,0,0,0,77,260,1,0,
79
+ 0,0,79,271,1,0,0,0,81,283,1,0,0,0,83,293,1,0,0,0,85,304,1,0,0,0,
80
+ 87,324,1,0,0,0,89,327,1,0,0,0,91,330,1,0,0,0,93,352,1,0,0,0,95,363,
81
+ 1,0,0,0,97,365,1,0,0,0,99,379,1,0,0,0,101,387,1,0,0,0,103,104,5,
82
+ 91,0,0,104,2,1,0,0,0,105,106,5,93,0,0,106,4,1,0,0,0,107,108,5,61,
83
+ 0,0,108,6,1,0,0,0,109,110,5,43,0,0,110,111,5,61,0,0,111,8,1,0,0,
84
+ 0,112,113,5,45,0,0,113,114,5,61,0,0,114,10,1,0,0,0,115,116,5,58,
85
+ 0,0,116,117,5,61,0,0,117,12,1,0,0,0,118,119,5,42,0,0,119,120,5,61,
86
+ 0,0,120,14,1,0,0,0,121,122,5,47,0,0,122,123,5,61,0,0,123,16,1,0,
87
+ 0,0,124,125,5,94,0,0,125,126,5,61,0,0,126,18,1,0,0,0,127,128,5,44,
88
+ 0,0,128,20,1,0,0,0,129,130,5,39,0,0,130,22,1,0,0,0,131,132,5,40,
89
+ 0,0,132,24,1,0,0,0,133,134,5,41,0,0,134,26,1,0,0,0,135,136,5,123,
90
+ 0,0,136,28,1,0,0,0,137,138,5,125,0,0,138,30,1,0,0,0,139,140,5,58,
91
+ 0,0,140,32,1,0,0,0,141,142,5,43,0,0,142,34,1,0,0,0,143,144,5,45,
92
+ 0,0,144,36,1,0,0,0,145,146,5,59,0,0,146,38,1,0,0,0,147,148,5,46,
93
+ 0,0,148,40,1,0,0,0,149,150,5,62,0,0,150,42,1,0,0,0,151,152,5,48,
94
+ 0,0,152,153,5,62,0,0,153,44,1,0,0,0,154,155,5,49,0,0,155,156,5,62,
95
+ 0,0,156,157,5,62,0,0,157,46,1,0,0,0,158,159,5,94,0,0,159,48,1,0,
96
+ 0,0,160,161,5,42,0,0,161,50,1,0,0,0,162,163,5,47,0,0,163,52,1,0,
97
+ 0,0,164,165,7,0,0,0,165,166,7,1,0,0,166,167,7,2,0,0,167,168,7,2,
98
+ 0,0,168,54,1,0,0,0,169,170,7,3,0,0,170,171,7,4,0,0,171,172,7,5,0,
99
+ 0,172,173,7,6,0,0,173,174,7,7,0,0,174,175,7,3,0,0,175,176,7,1,0,
100
+ 0,176,56,1,0,0,0,177,178,7,3,0,0,178,179,7,4,0,0,179,180,7,8,0,0,
101
+ 180,181,7,9,0,0,181,183,7,7,0,0,182,184,7,2,0,0,183,182,1,0,0,0,
102
+ 183,184,1,0,0,0,184,58,1,0,0,0,185,186,7,10,0,0,186,187,7,9,0,0,
103
+ 187,188,7,7,0,0,188,189,7,8,0,0,189,190,7,9,0,0,190,191,7,7,0,0,
104
+ 191,60,1,0,0,0,192,193,7,2,0,0,193,194,7,1,0,0,194,195,7,11,0,0,
105
+ 195,196,7,5,0,0,196,62,1,0,0,0,197,198,7,9,0,0,198,199,7,4,0,0,199,
106
+ 200,7,3,0,0,200,201,7,7,0,0,201,202,7,2,0,0,202,203,7,12,0,0,203,
107
+ 204,7,2,0,0,204,205,7,7,0,0,205,206,7,5,0,0,206,207,7,0,0,0,207,
108
+ 64,1,0,0,0,208,209,7,5,0,0,209,210,7,4,0,0,210,211,7,13,0,0,211,
109
+ 212,7,10,0,0,212,213,7,14,0,0,213,214,7,5,0,0,214,66,1,0,0,0,215,
110
+ 216,7,4,0,0,216,217,7,5,0,0,217,218,7,15,0,0,218,219,7,7,0,0,219,
111
+ 220,7,10,0,0,220,221,7,4,0,0,221,222,7,3,0,0,222,223,7,1,0,0,223,
112
+ 224,7,4,0,0,224,68,1,0,0,0,225,226,7,16,0,0,226,227,7,6,0,0,227,
113
+ 228,7,1,0,0,228,229,7,0,0,0,229,231,7,5,0,0,230,232,7,2,0,0,231,
114
+ 230,1,0,0,0,231,232,1,0,0,0,232,70,1,0,0,0,233,234,7,17,0,0,234,
115
+ 235,7,10,0,0,235,236,7,14,0,0,236,237,7,3,0,0,237,239,7,5,0,0,238,
116
+ 240,7,2,0,0,239,238,1,0,0,0,239,240,1,0,0,0,240,72,1,0,0,0,241,242,
117
+ 7,8,0,0,242,243,7,1,0,0,243,244,7,6,0,0,244,245,7,7,0,0,245,246,
118
+ 7,3,0,0,246,247,7,13,0,0,247,248,7,18,0,0,248,250,7,5,0,0,249,251,
119
+ 7,2,0,0,250,249,1,0,0,0,250,251,1,0,0,0,251,74,1,0,0,0,252,253,7,
120
+ 8,0,0,253,254,7,10,0,0,254,255,7,3,0,0,255,256,7,4,0,0,256,258,7,
121
+ 7,0,0,257,259,7,2,0,0,258,257,1,0,0,0,258,259,1,0,0,0,259,76,1,0,
122
+ 0,0,260,261,7,13,0,0,261,262,7,10,0,0,262,263,7,4,0,0,263,264,7,
123
+ 2,0,0,264,265,7,7,0,0,265,266,7,1,0,0,266,267,7,4,0,0,267,269,7,
124
+ 7,0,0,268,270,7,2,0,0,269,268,1,0,0,0,269,270,1,0,0,0,270,78,1,0,
125
+ 0,0,271,272,7,2,0,0,272,273,7,8,0,0,273,274,7,5,0,0,274,275,7,13,
126
+ 0,0,275,276,7,3,0,0,276,277,7,16,0,0,277,278,7,3,0,0,278,279,7,5,
127
+ 0,0,279,281,7,14,0,0,280,282,7,2,0,0,281,280,1,0,0,0,281,282,1,0,
128
+ 0,0,282,80,1,0,0,0,283,284,7,3,0,0,284,285,7,0,0,0,285,286,7,1,0,
129
+ 0,286,287,7,19,0,0,287,288,7,3,0,0,288,289,7,4,0,0,289,290,7,1,0,
130
+ 0,290,291,7,6,0,0,291,292,7,12,0,0,292,82,1,0,0,0,293,294,7,11,0,
131
+ 0,294,295,7,1,0,0,295,296,7,6,0,0,296,297,7,3,0,0,297,298,7,1,0,
132
+ 0,298,299,7,17,0,0,299,300,7,18,0,0,300,302,7,5,0,0,301,303,7,2,
133
+ 0,0,302,301,1,0,0,0,302,303,1,0,0,0,303,84,1,0,0,0,304,305,7,0,0,
134
+ 0,305,306,7,10,0,0,306,307,7,7,0,0,307,308,7,3,0,0,308,309,7,10,
135
+ 0,0,309,310,7,4,0,0,310,311,7,11,0,0,311,312,7,1,0,0,312,313,7,6,
136
+ 0,0,313,314,7,3,0,0,314,315,7,1,0,0,315,316,7,17,0,0,316,317,7,18,
137
+ 0,0,317,319,7,5,0,0,318,320,7,2,0,0,319,318,1,0,0,0,319,320,1,0,
138
+ 0,0,320,86,1,0,0,0,321,323,5,39,0,0,322,321,1,0,0,0,323,326,1,0,
139
+ 0,0,324,322,1,0,0,0,324,325,1,0,0,0,325,88,1,0,0,0,326,324,1,0,0,
140
+ 0,327,328,7,20,0,0,328,90,1,0,0,0,329,331,7,20,0,0,330,329,1,0,0,
141
+ 0,331,332,1,0,0,0,332,330,1,0,0,0,332,333,1,0,0,0,333,92,1,0,0,0,
142
+ 334,336,3,89,44,0,335,334,1,0,0,0,336,337,1,0,0,0,337,335,1,0,0,
143
+ 0,337,338,1,0,0,0,338,339,1,0,0,0,339,343,5,46,0,0,340,342,3,89,
144
+ 44,0,341,340,1,0,0,0,342,345,1,0,0,0,343,341,1,0,0,0,343,344,1,0,
145
+ 0,0,344,353,1,0,0,0,345,343,1,0,0,0,346,348,5,46,0,0,347,349,3,89,
146
+ 44,0,348,347,1,0,0,0,349,350,1,0,0,0,350,348,1,0,0,0,350,351,1,0,
147
+ 0,0,351,353,1,0,0,0,352,335,1,0,0,0,352,346,1,0,0,0,353,94,1,0,0,
148
+ 0,354,355,3,93,46,0,355,356,5,69,0,0,356,357,3,91,45,0,357,364,1,
149
+ 0,0,0,358,359,3,93,46,0,359,360,5,69,0,0,360,361,5,45,0,0,361,362,
150
+ 3,91,45,0,362,364,1,0,0,0,363,354,1,0,0,0,363,358,1,0,0,0,364,96,
151
+ 1,0,0,0,365,369,5,37,0,0,366,368,9,0,0,0,367,366,1,0,0,0,368,371,
152
+ 1,0,0,0,369,370,1,0,0,0,369,367,1,0,0,0,370,373,1,0,0,0,371,369,
153
+ 1,0,0,0,372,374,5,13,0,0,373,372,1,0,0,0,373,374,1,0,0,0,374,375,
154
+ 1,0,0,0,375,376,5,10,0,0,376,377,1,0,0,0,377,378,6,48,0,0,378,98,
155
+ 1,0,0,0,379,383,7,21,0,0,380,382,7,22,0,0,381,380,1,0,0,0,382,385,
156
+ 1,0,0,0,383,381,1,0,0,0,383,384,1,0,0,0,384,100,1,0,0,0,385,383,
157
+ 1,0,0,0,386,388,7,23,0,0,387,386,1,0,0,0,388,389,1,0,0,0,389,387,
158
+ 1,0,0,0,389,390,1,0,0,0,390,391,1,0,0,0,391,392,6,50,0,0,392,102,
159
+ 1,0,0,0,21,0,183,231,239,250,258,269,281,302,319,324,332,337,343,
160
+ 350,352,363,369,373,383,389,1,6,0,0
161
+ ]
162
+
163
+ class AutolevLexer(Lexer):
164
+
165
+ atn = ATNDeserializer().deserialize(serializedATN())
166
+
167
+ decisionsToDFA = [ DFA(ds, i) for i, ds in enumerate(atn.decisionToState) ]
168
+
169
+ T__0 = 1
170
+ T__1 = 2
171
+ T__2 = 3
172
+ T__3 = 4
173
+ T__4 = 5
174
+ T__5 = 6
175
+ T__6 = 7
176
+ T__7 = 8
177
+ T__8 = 9
178
+ T__9 = 10
179
+ T__10 = 11
180
+ T__11 = 12
181
+ T__12 = 13
182
+ T__13 = 14
183
+ T__14 = 15
184
+ T__15 = 16
185
+ T__16 = 17
186
+ T__17 = 18
187
+ T__18 = 19
188
+ T__19 = 20
189
+ T__20 = 21
190
+ T__21 = 22
191
+ T__22 = 23
192
+ T__23 = 24
193
+ T__24 = 25
194
+ T__25 = 26
195
+ Mass = 27
196
+ Inertia = 28
197
+ Input = 29
198
+ Output = 30
199
+ Save = 31
200
+ UnitSystem = 32
201
+ Encode = 33
202
+ Newtonian = 34
203
+ Frames = 35
204
+ Bodies = 36
205
+ Particles = 37
206
+ Points = 38
207
+ Constants = 39
208
+ Specifieds = 40
209
+ Imaginary = 41
210
+ Variables = 42
211
+ MotionVariables = 43
212
+ INT = 44
213
+ FLOAT = 45
214
+ EXP = 46
215
+ LINE_COMMENT = 47
216
+ ID = 48
217
+ WS = 49
218
+
219
+ channelNames = [ u"DEFAULT_TOKEN_CHANNEL", u"HIDDEN" ]
220
+
221
+ modeNames = [ "DEFAULT_MODE" ]
222
+
223
+ literalNames = [ "<INVALID>",
224
+ "'['", "']'", "'='", "'+='", "'-='", "':='", "'*='", "'/='",
225
+ "'^='", "','", "'''", "'('", "')'", "'{'", "'}'", "':'", "'+'",
226
+ "'-'", "';'", "'.'", "'>'", "'0>'", "'1>>'", "'^'", "'*'", "'/'" ]
227
+
228
+ symbolicNames = [ "<INVALID>",
229
+ "Mass", "Inertia", "Input", "Output", "Save", "UnitSystem",
230
+ "Encode", "Newtonian", "Frames", "Bodies", "Particles", "Points",
231
+ "Constants", "Specifieds", "Imaginary", "Variables", "MotionVariables",
232
+ "INT", "FLOAT", "EXP", "LINE_COMMENT", "ID", "WS" ]
233
+
234
+ ruleNames = [ "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6",
235
+ "T__7", "T__8", "T__9", "T__10", "T__11", "T__12", "T__13",
236
+ "T__14", "T__15", "T__16", "T__17", "T__18", "T__19",
237
+ "T__20", "T__21", "T__22", "T__23", "T__24", "T__25",
238
+ "Mass", "Inertia", "Input", "Output", "Save", "UnitSystem",
239
+ "Encode", "Newtonian", "Frames", "Bodies", "Particles",
240
+ "Points", "Constants", "Specifieds", "Imaginary", "Variables",
241
+ "MotionVariables", "DIFF", "DIGIT", "INT", "FLOAT", "EXP",
242
+ "LINE_COMMENT", "ID", "WS" ]
243
+
244
+ grammarFileName = "Autolev.g4"
245
+
246
+ def __init__(self, input=None, output:TextIO = sys.stdout):
247
+ super().__init__(input, output)
248
+ self.checkVersion("4.11.1")
249
+ self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
250
+ self._actions = None
251
+ self._predicates = None
252
+
253
+