ADAPT-Chase commited on
Commit
76d87a9
·
verified ·
1 Parent(s): 34c4dff

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 +33 -0
  2. tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/__config__.cpython-312.pyc +0 -0
  3. tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/__init__.cpython-312.pyc +0 -0
  4. tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/_array_api_info.cpython-312.pyc +0 -0
  5. tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/_configtool.cpython-312.pyc +0 -0
  6. tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/_distributor_init.cpython-312.pyc +0 -0
  7. tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/_expired_attrs_2_0.cpython-312.pyc +0 -0
  8. tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/_globals.cpython-312.pyc +0 -0
  9. tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/_pytesttester.cpython-312.pyc +0 -0
  10. tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/conftest.cpython-312.pyc +0 -0
  11. tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/ctypeslib.cpython-312.pyc +0 -0
  12. tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/dtypes.cpython-312.pyc +0 -0
  13. tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/exceptions.cpython-312.pyc +0 -0
  14. tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/matlib.cpython-312.pyc +0 -0
  15. tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/version.cpython-312.pyc +0 -0
  16. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__init__.py +180 -0
  17. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__init__.pyi +2 -0
  18. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/__init__.cpython-312.pyc +0 -0
  19. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_add_newdocs.cpython-312.pyc +3 -0
  20. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_add_newdocs_scalars.cpython-312.pyc +0 -0
  21. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_asarray.cpython-312.pyc +0 -0
  22. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_dtype.cpython-312.pyc +0 -0
  23. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_dtype_ctypes.cpython-312.pyc +0 -0
  24. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_exceptions.cpython-312.pyc +0 -0
  25. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_internal.cpython-312.pyc +0 -0
  26. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_machar.cpython-312.pyc +0 -0
  27. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_methods.cpython-312.pyc +0 -0
  28. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_string_helpers.cpython-312.pyc +0 -0
  29. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_type_aliases.cpython-312.pyc +0 -0
  30. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_ufunc_config.cpython-312.pyc +0 -0
  31. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/arrayprint.cpython-312.pyc +0 -0
  32. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/cversions.cpython-312.pyc +0 -0
  33. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/defchararray.cpython-312.pyc +0 -0
  34. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/einsumfunc.cpython-312.pyc +0 -0
  35. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/fromnumeric.cpython-312.pyc +3 -0
  36. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/function_base.cpython-312.pyc +0 -0
  37. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/getlimits.cpython-312.pyc +0 -0
  38. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/memmap.cpython-312.pyc +0 -0
  39. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/multiarray.cpython-312.pyc +0 -0
  40. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/numeric.cpython-312.pyc +0 -0
  41. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/numerictypes.cpython-312.pyc +0 -0
  42. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/overrides.cpython-312.pyc +0 -0
  43. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/printoptions.cpython-312.pyc +0 -0
  44. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/records.cpython-312.pyc +0 -0
  45. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/shape_base.cpython-312.pyc +0 -0
  46. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/strings.cpython-312.pyc +0 -0
  47. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/umath.cpython-312.pyc +0 -0
  48. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/_add_newdocs.py +0 -0
  49. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/_add_newdocs.pyi +3 -0
  50. tool_server/.venv/lib/python3.12/site-packages/numpy/_core/_add_newdocs_scalars.py +389 -0
.gitattributes CHANGED
@@ -3865,3 +3865,36 @@ tool_server/.venv/lib/python3.12/site-packages/vllm/_C.abi3.so filter=lfs diff=l
3865
  tool_server/.venv/lib/python3.12/site-packages/vllm/_flashmla_C.abi3.so filter=lfs diff=lfs merge=lfs -text
3866
  tool_server/.venv/lib/python3.12/site-packages/vllm/_moe_C.abi3.so filter=lfs diff=lfs merge=lfs -text
3867
  tool_server/.venv/lib/python3.12/site-packages/numpy/linalg/_umath_linalg.cpython-312-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3865
  tool_server/.venv/lib/python3.12/site-packages/vllm/_flashmla_C.abi3.so filter=lfs diff=lfs merge=lfs -text
3866
  tool_server/.venv/lib/python3.12/site-packages/vllm/_moe_C.abi3.so filter=lfs diff=lfs merge=lfs -text
3867
  tool_server/.venv/lib/python3.12/site-packages/numpy/linalg/_umath_linalg.cpython-312-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
3868
+ tool_server/.venv/lib/python3.12/site-packages/numpy/random/_generator.cpython-312-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
3869
+ tool_server/.venv/lib/python3.12/site-packages/numpy/random/_pcg64.cpython-312-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
3870
+ tool_server/.venv/lib/python3.12/site-packages/numpy/random/_mt19937.cpython-312-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
3871
+ tool_server/.venv/lib/python3.12/site-packages/numpy/random/_common.cpython-312-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
3872
+ tool_server/.venv/lib/python3.12/site-packages/numpy/random/_philox.cpython-312-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
3873
+ tool_server/.venv/lib/python3.12/site-packages/numpy/random/_bounded_integers.cpython-312-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
3874
+ tool_server/.venv/lib/python3.12/site-packages/numpy/random/bit_generator.cpython-312-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
3875
+ tool_server/.venv/lib/python3.12/site-packages/numpy/random/mtrand.cpython-312-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
3876
+ tool_server/.venv/lib/python3.12/site-packages/numpy/_core/_simd.cpython-312-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
3877
+ tool_server/.venv/lib/python3.12/site-packages/numpy/_core/_multiarray_umath.cpython-312-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
3878
+ tool_server/.venv/lib/python3.12/site-packages/numpy/_core/_multiarray_tests.cpython-312-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
3879
+ tool_server/.venv/lib/python3.12/site-packages/numpy/fft/_pocketfft_umath.cpython-312-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
3880
+ tool_server/.venv/lib/python3.12/site-packages/numpy/ma/__pycache__/core.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3881
+ tool_server/.venv/lib/python3.12/site-packages/numpy/ma/tests/__pycache__/test_core.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3882
+ tool_server/.venv/lib/python3.12/site-packages/numpy/ma/tests/__pycache__/test_extras.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3883
+ tool_server/.venv/lib/python3.12/site-packages/numpy/testing/tests/__pycache__/test_utils.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3884
+ tool_server/.venv/lib/python3.12/site-packages/numpy/testing/_private/__pycache__/utils.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3885
+ tool_server/.venv/lib/python3.12/site-packages/numpy/f2py/__pycache__/crackfortran.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3886
+ tool_server/.venv/lib/python3.12/site-packages/numpy/linalg/__pycache__/_linalg.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3887
+ tool_server/.venv/lib/python3.12/site-packages/numpy/linalg/tests/__pycache__/test_linalg.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3888
+ tool_server/.venv/lib/python3.12/site-packages/numpy/lib/__pycache__/_function_base_impl.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3889
+ tool_server/.venv/lib/python3.12/site-packages/numpy/lib/tests/__pycache__/test_function_base.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3890
+ tool_server/.venv/lib/python3.12/site-packages/numpy/lib/tests/__pycache__/test_io.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3891
+ tool_server/.venv/lib/python3.12/site-packages/numpy/random/tests/__pycache__/test_generator_mt19937.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3892
+ tool_server/.venv/lib/python3.12/site-packages/numpy/random/tests/__pycache__/test_random.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3893
+ tool_server/.venv/lib/python3.12/site-packages/numpy/random/tests/__pycache__/test_randomstate.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3894
+ tool_server/.venv/lib/python3.12/site-packages/numpy/_core/lib/libnpymath.a filter=lfs diff=lfs merge=lfs -text
3895
+ tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_add_newdocs.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3896
+ tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/fromnumeric.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3897
+ tool_server/.venv/lib/python3.12/site-packages/numpy/_core/tests/__pycache__/test_ufunc.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3898
+ tool_server/.venv/lib/python3.12/site-packages/numpy/_core/tests/__pycache__/test_umath.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3899
+ tool_server/.venv/lib/python3.12/site-packages/numpy/_core/tests/__pycache__/test_nditer.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3900
+ tool_server/.venv/lib/python3.12/site-packages/numpy/_core/tests/__pycache__/test_numeric.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/__config__.cpython-312.pyc ADDED
Binary file (5.09 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/__init__.cpython-312.pyc ADDED
Binary file (27.5 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/_array_api_info.cpython-312.pyc ADDED
Binary file (11 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/_configtool.cpython-312.pyc ADDED
Binary file (1.66 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/_distributor_init.cpython-312.pyc ADDED
Binary file (653 Bytes). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/_expired_attrs_2_0.cpython-312.pyc ADDED
Binary file (4.36 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/_globals.cpython-312.pyc ADDED
Binary file (3.89 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/_pytesttester.cpython-312.pyc ADDED
Binary file (6.74 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/conftest.cpython-312.pyc ADDED
Binary file (10.6 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/ctypeslib.cpython-312.pyc ADDED
Binary file (22 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/dtypes.cpython-312.pyc ADDED
Binary file (1.53 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/exceptions.cpython-312.pyc ADDED
Binary file (8.77 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/matlib.cpython-312.pyc ADDED
Binary file (12 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/__pycache__/version.cpython-312.pyc ADDED
Binary file (542 Bytes). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__init__.py ADDED
@@ -0,0 +1,180 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Contains the core of NumPy: ndarray, ufuncs, dtypes, etc.
3
+
4
+ Please note that this module is private. All functions and objects
5
+ are available in the main ``numpy`` namespace - use that instead.
6
+
7
+ """
8
+
9
+ import os
10
+
11
+ from numpy.version import version as __version__
12
+
13
+
14
+ # disables OpenBLAS affinity setting of the main thread that limits
15
+ # python threads or processes to one core
16
+ env_added = []
17
+ for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']:
18
+ if envkey not in os.environ:
19
+ os.environ[envkey] = '1'
20
+ env_added.append(envkey)
21
+
22
+ try:
23
+ from . import multiarray
24
+ except ImportError as exc:
25
+ import sys
26
+ msg = """
27
+
28
+ IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
29
+
30
+ Importing the numpy C-extensions failed. This error can happen for
31
+ many reasons, often due to issues with your setup or how NumPy was
32
+ installed.
33
+
34
+ We have compiled some common reasons and troubleshooting tips at:
35
+
36
+ https://numpy.org/devdocs/user/troubleshooting-importerror.html
37
+
38
+ Please note and check the following:
39
+
40
+ * The Python version is: Python%d.%d from "%s"
41
+ * The NumPy version is: "%s"
42
+
43
+ and make sure that they are the versions you expect.
44
+ Please carefully study the documentation linked above for further help.
45
+
46
+ Original error was: %s
47
+ """ % (sys.version_info[0], sys.version_info[1], sys.executable,
48
+ __version__, exc)
49
+ raise ImportError(msg)
50
+ finally:
51
+ for envkey in env_added:
52
+ del os.environ[envkey]
53
+ del envkey
54
+ del env_added
55
+ del os
56
+
57
+ from . import umath
58
+
59
+ # Check that multiarray,umath are pure python modules wrapping
60
+ # _multiarray_umath and not either of the old c-extension modules
61
+ if not (hasattr(multiarray, '_multiarray_umath') and
62
+ hasattr(umath, '_multiarray_umath')):
63
+ import sys
64
+ path = sys.modules['numpy'].__path__
65
+ msg = ("Something is wrong with the numpy installation. "
66
+ "While importing we detected an older version of "
67
+ "numpy in {}. One method of fixing this is to repeatedly uninstall "
68
+ "numpy until none is found, then reinstall this version.")
69
+ raise ImportError(msg.format(path))
70
+
71
+ from . import numerictypes as nt
72
+ from .numerictypes import sctypes, sctypeDict
73
+ multiarray.set_typeDict(nt.sctypeDict)
74
+ from . import numeric
75
+ from .numeric import *
76
+ from . import fromnumeric
77
+ from .fromnumeric import *
78
+ from .records import record, recarray
79
+ # Note: module name memmap is overwritten by a class with same name
80
+ from .memmap import *
81
+ from . import function_base
82
+ from .function_base import *
83
+ from . import _machar
84
+ from . import getlimits
85
+ from .getlimits import *
86
+ from . import shape_base
87
+ from .shape_base import *
88
+ from . import einsumfunc
89
+ from .einsumfunc import *
90
+ del nt
91
+
92
+ from .numeric import absolute as abs
93
+
94
+ # do this after everything else, to minimize the chance of this misleadingly
95
+ # appearing in an import-time traceback
96
+ from . import _add_newdocs
97
+ from . import _add_newdocs_scalars
98
+ # add these for module-freeze analysis (like PyInstaller)
99
+ from . import _dtype_ctypes
100
+ from . import _internal
101
+ from . import _dtype
102
+ from . import _methods
103
+
104
+ acos = numeric.arccos
105
+ acosh = numeric.arccosh
106
+ asin = numeric.arcsin
107
+ asinh = numeric.arcsinh
108
+ atan = numeric.arctan
109
+ atanh = numeric.arctanh
110
+ atan2 = numeric.arctan2
111
+ concat = numeric.concatenate
112
+ bitwise_left_shift = numeric.left_shift
113
+ bitwise_invert = numeric.invert
114
+ bitwise_right_shift = numeric.right_shift
115
+ permute_dims = numeric.transpose
116
+ pow = numeric.power
117
+
118
+ __all__ = [
119
+ "abs", "acos", "acosh", "asin", "asinh", "atan", "atanh", "atan2",
120
+ "bitwise_invert", "bitwise_left_shift", "bitwise_right_shift", "concat",
121
+ "pow", "permute_dims", "memmap", "sctypeDict", "record", "recarray"
122
+ ]
123
+ __all__ += numeric.__all__
124
+ __all__ += function_base.__all__
125
+ __all__ += getlimits.__all__
126
+ __all__ += shape_base.__all__
127
+ __all__ += einsumfunc.__all__
128
+
129
+
130
+ def _ufunc_reduce(func):
131
+ # Report the `__name__`. pickle will try to find the module. Note that
132
+ # pickle supports for this `__name__` to be a `__qualname__`. It may
133
+ # make sense to add a `__qualname__` to ufuncs, to allow this more
134
+ # explicitly (Numba has ufuncs as attributes).
135
+ # See also: https://github.com/dask/distributed/issues/3450
136
+ return func.__name__
137
+
138
+
139
+ def _DType_reconstruct(scalar_type):
140
+ # This is a work-around to pickle type(np.dtype(np.float64)), etc.
141
+ # and it should eventually be replaced with a better solution, e.g. when
142
+ # DTypes become HeapTypes.
143
+ return type(dtype(scalar_type))
144
+
145
+
146
+ def _DType_reduce(DType):
147
+ # As types/classes, most DTypes can simply be pickled by their name:
148
+ if not DType._legacy or DType.__module__ == "numpy.dtypes":
149
+ return DType.__name__
150
+
151
+ # However, user defined legacy dtypes (like rational) do not end up in
152
+ # `numpy.dtypes` as module and do not have a public class at all.
153
+ # For these, we pickle them by reconstructing them from the scalar type:
154
+ scalar_type = DType.type
155
+ return _DType_reconstruct, (scalar_type,)
156
+
157
+
158
+ def __getattr__(name):
159
+ # Deprecated 2022-11-22, NumPy 1.25.
160
+ if name == "MachAr":
161
+ import warnings
162
+ warnings.warn(
163
+ "The `np._core.MachAr` is considered private API (NumPy 1.24)",
164
+ DeprecationWarning, stacklevel=2,
165
+ )
166
+ return _machar.MachAr
167
+ raise AttributeError(f"Module {__name__!r} has no attribute {name!r}")
168
+
169
+
170
+ import copyreg
171
+
172
+ copyreg.pickle(ufunc, _ufunc_reduce)
173
+ copyreg.pickle(type(dtype), _DType_reduce, _DType_reconstruct)
174
+
175
+ # Unclutter namespace (must keep _*_reconstruct for unpickling)
176
+ del copyreg, _ufunc_reduce, _DType_reduce
177
+
178
+ from numpy._pytesttester import PytestTester
179
+ test = PytestTester(__name__)
180
+ del PytestTester
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__init__.pyi ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ # NOTE: The `np._core` namespace is deliberately kept empty due to it
2
+ # being private
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/__init__.cpython-312.pyc ADDED
Binary file (5.78 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_add_newdocs.cpython-312.pyc ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66ceb44d7f1be5b5c55b34762ec5afd66d4f90e7badbc9524ca2b24d0490d4df
3
+ size 200091
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_add_newdocs_scalars.cpython-312.pyc ADDED
Binary file (13.2 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_asarray.cpython-312.pyc ADDED
Binary file (4.28 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_dtype.cpython-312.pyc ADDED
Binary file (13.7 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_dtype_ctypes.cpython-312.pyc ADDED
Binary file (4.92 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_exceptions.cpython-312.pyc ADDED
Binary file (8.55 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_internal.cpython-312.pyc ADDED
Binary file (35.2 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_machar.cpython-312.pyc ADDED
Binary file (11.7 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_methods.cpython-312.pyc ADDED
Binary file (11.5 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_string_helpers.cpython-312.pyc ADDED
Binary file (3.29 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_type_aliases.cpython-312.pyc ADDED
Binary file (3.75 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/_ufunc_config.cpython-312.pyc ADDED
Binary file (16.6 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/arrayprint.cpython-312.pyc ADDED
Binary file (72.1 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/cversions.cpython-312.pyc ADDED
Binary file (625 Bytes). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/defchararray.cpython-312.pyc ADDED
Binary file (42 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/einsumfunc.cpython-312.pyc ADDED
Binary file (50 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/fromnumeric.cpython-312.pyc ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b09b37f05f8a342441d36a4a96020b3656731cb2489cfd1c3a956d7d285e550c
3
+ size 150558
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/function_base.cpython-312.pyc ADDED
Binary file (20.8 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/getlimits.cpython-312.pyc ADDED
Binary file (28.5 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/memmap.cpython-312.pyc ADDED
Binary file (13.3 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/multiarray.cpython-312.pyc ADDED
Binary file (58.7 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/numeric.cpython-312.pyc ADDED
Binary file (90.2 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/numerictypes.cpython-312.pyc ADDED
Binary file (17.8 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/overrides.cpython-312.pyc ADDED
Binary file (7.89 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/printoptions.cpython-312.pyc ADDED
Binary file (978 Bytes). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/records.cpython-312.pyc ADDED
Binary file (39.5 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/shape_base.cpython-312.pyc ADDED
Binary file (34.6 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/strings.cpython-312.pyc ADDED
Binary file (54.1 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/__pycache__/umath.cpython-312.pyc ADDED
Binary file (2 kB). View file
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/_add_newdocs.py ADDED
The diff for this file is too large to render. See raw diff
 
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/_add_newdocs.pyi ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from .overrides import get_array_function_like_doc as get_array_function_like_doc
2
+
3
+ def refer_to_array_attribute(attr: str, method: bool = True) -> tuple[str, str]: ...
tool_server/.venv/lib/python3.12/site-packages/numpy/_core/_add_newdocs_scalars.py ADDED
@@ -0,0 +1,389 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ This file is separate from ``_add_newdocs.py`` so that it can be mocked out by
3
+ our sphinx ``conf.py`` during doc builds, where we want to avoid showing
4
+ platform-dependent information.
5
+ """
6
+ import sys
7
+ import os
8
+ from numpy._core import dtype
9
+ from numpy._core import numerictypes as _numerictypes
10
+ from numpy._core.function_base import add_newdoc
11
+
12
+ ##############################################################################
13
+ #
14
+ # Documentation for concrete scalar classes
15
+ #
16
+ ##############################################################################
17
+
18
+ def numeric_type_aliases(aliases):
19
+ def type_aliases_gen():
20
+ for alias, doc in aliases:
21
+ try:
22
+ alias_type = getattr(_numerictypes, alias)
23
+ except AttributeError:
24
+ # The set of aliases that actually exist varies between platforms
25
+ pass
26
+ else:
27
+ yield (alias_type, alias, doc)
28
+ return list(type_aliases_gen())
29
+
30
+
31
+ possible_aliases = numeric_type_aliases([
32
+ ('int8', '8-bit signed integer (``-128`` to ``127``)'),
33
+ ('int16', '16-bit signed integer (``-32_768`` to ``32_767``)'),
34
+ ('int32', '32-bit signed integer (``-2_147_483_648`` to ``2_147_483_647``)'),
35
+ ('int64', '64-bit signed integer (``-9_223_372_036_854_775_808`` to ``9_223_372_036_854_775_807``)'),
36
+ ('intp', 'Signed integer large enough to fit pointer, compatible with C ``intptr_t``'),
37
+ ('uint8', '8-bit unsigned integer (``0`` to ``255``)'),
38
+ ('uint16', '16-bit unsigned integer (``0`` to ``65_535``)'),
39
+ ('uint32', '32-bit unsigned integer (``0`` to ``4_294_967_295``)'),
40
+ ('uint64', '64-bit unsigned integer (``0`` to ``18_446_744_073_709_551_615``)'),
41
+ ('uintp', 'Unsigned integer large enough to fit pointer, compatible with C ``uintptr_t``'),
42
+ ('float16', '16-bit-precision floating-point number type: sign bit, 5 bits exponent, 10 bits mantissa'),
43
+ ('float32', '32-bit-precision floating-point number type: sign bit, 8 bits exponent, 23 bits mantissa'),
44
+ ('float64', '64-bit precision floating-point number type: sign bit, 11 bits exponent, 52 bits mantissa'),
45
+ ('float96', '96-bit extended-precision floating-point number type'),
46
+ ('float128', '128-bit extended-precision floating-point number type'),
47
+ ('complex64', 'Complex number type composed of 2 32-bit-precision floating-point numbers'),
48
+ ('complex128', 'Complex number type composed of 2 64-bit-precision floating-point numbers'),
49
+ ('complex192', 'Complex number type composed of 2 96-bit extended-precision floating-point numbers'),
50
+ ('complex256', 'Complex number type composed of 2 128-bit extended-precision floating-point numbers'),
51
+ ])
52
+
53
+
54
+ def _get_platform_and_machine():
55
+ try:
56
+ system, _, _, _, machine = os.uname()
57
+ except AttributeError:
58
+ system = sys.platform
59
+ if system == 'win32':
60
+ machine = os.environ.get('PROCESSOR_ARCHITEW6432', '') \
61
+ or os.environ.get('PROCESSOR_ARCHITECTURE', '')
62
+ else:
63
+ machine = 'unknown'
64
+ return system, machine
65
+
66
+
67
+ _system, _machine = _get_platform_and_machine()
68
+ _doc_alias_string = f":Alias on this platform ({_system} {_machine}):"
69
+
70
+
71
+ def add_newdoc_for_scalar_type(obj, fixed_aliases, doc):
72
+ # note: `:field: value` is rST syntax which renders as field lists.
73
+ o = getattr(_numerictypes, obj)
74
+
75
+ character_code = dtype(o).char
76
+ canonical_name_doc = "" if obj == o.__name__ else \
77
+ f":Canonical name: `numpy.{obj}`\n "
78
+ if fixed_aliases:
79
+ alias_doc = ''.join(f":Alias: `numpy.{alias}`\n "
80
+ for alias in fixed_aliases)
81
+ else:
82
+ alias_doc = ''
83
+ alias_doc += ''.join(f"{_doc_alias_string} `numpy.{alias}`: {doc}.\n "
84
+ for (alias_type, alias, doc) in possible_aliases if alias_type is o)
85
+
86
+ docstring = f"""
87
+ {doc.strip()}
88
+
89
+ :Character code: ``'{character_code}'``
90
+ {canonical_name_doc}{alias_doc}
91
+ """
92
+
93
+ add_newdoc('numpy._core.numerictypes', obj, docstring)
94
+
95
+
96
+ _bool_docstring = (
97
+ """
98
+ Boolean type (True or False), stored as a byte.
99
+
100
+ .. warning::
101
+
102
+ The :class:`bool` type is not a subclass of the :class:`int_` type
103
+ (the :class:`bool` is not even a number type). This is different
104
+ than Python's default implementation of :class:`bool` as a
105
+ sub-class of :class:`int`.
106
+ """
107
+ )
108
+
109
+ add_newdoc_for_scalar_type('bool', [], _bool_docstring)
110
+
111
+ add_newdoc_for_scalar_type('bool_', [], _bool_docstring)
112
+
113
+ add_newdoc_for_scalar_type('byte', [],
114
+ """
115
+ Signed integer type, compatible with C ``char``.
116
+ """)
117
+
118
+ add_newdoc_for_scalar_type('short', [],
119
+ """
120
+ Signed integer type, compatible with C ``short``.
121
+ """)
122
+
123
+ add_newdoc_for_scalar_type('intc', [],
124
+ """
125
+ Signed integer type, compatible with C ``int``.
126
+ """)
127
+
128
+ # TODO: These docs probably need an if to highlight the default rather than
129
+ # the C-types (and be correct).
130
+ add_newdoc_for_scalar_type('int_', [],
131
+ """
132
+ Default signed integer type, 64bit on 64bit systems and 32bit on 32bit
133
+ systems.
134
+ """)
135
+
136
+ add_newdoc_for_scalar_type('longlong', [],
137
+ """
138
+ Signed integer type, compatible with C ``long long``.
139
+ """)
140
+
141
+ add_newdoc_for_scalar_type('ubyte', [],
142
+ """
143
+ Unsigned integer type, compatible with C ``unsigned char``.
144
+ """)
145
+
146
+ add_newdoc_for_scalar_type('ushort', [],
147
+ """
148
+ Unsigned integer type, compatible with C ``unsigned short``.
149
+ """)
150
+
151
+ add_newdoc_for_scalar_type('uintc', [],
152
+ """
153
+ Unsigned integer type, compatible with C ``unsigned int``.
154
+ """)
155
+
156
+ add_newdoc_for_scalar_type('uint', [],
157
+ """
158
+ Unsigned signed integer type, 64bit on 64bit systems and 32bit on 32bit
159
+ systems.
160
+ """)
161
+
162
+ add_newdoc_for_scalar_type('ulonglong', [],
163
+ """
164
+ Signed integer type, compatible with C ``unsigned long long``.
165
+ """)
166
+
167
+ add_newdoc_for_scalar_type('half', [],
168
+ """
169
+ Half-precision floating-point number type.
170
+ """)
171
+
172
+ add_newdoc_for_scalar_type('single', [],
173
+ """
174
+ Single-precision floating-point number type, compatible with C ``float``.
175
+ """)
176
+
177
+ add_newdoc_for_scalar_type('double', [],
178
+ """
179
+ Double-precision floating-point number type, compatible with Python
180
+ :class:`float` and C ``double``.
181
+ """)
182
+
183
+ add_newdoc_for_scalar_type('longdouble', [],
184
+ """
185
+ Extended-precision floating-point number type, compatible with C
186
+ ``long double`` but not necessarily with IEEE 754 quadruple-precision.
187
+ """)
188
+
189
+ add_newdoc_for_scalar_type('csingle', [],
190
+ """
191
+ Complex number type composed of two single-precision floating-point
192
+ numbers.
193
+ """)
194
+
195
+ add_newdoc_for_scalar_type('cdouble', [],
196
+ """
197
+ Complex number type composed of two double-precision floating-point
198
+ numbers, compatible with Python :class:`complex`.
199
+ """)
200
+
201
+ add_newdoc_for_scalar_type('clongdouble', [],
202
+ """
203
+ Complex number type composed of two extended-precision floating-point
204
+ numbers.
205
+ """)
206
+
207
+ add_newdoc_for_scalar_type('object_', [],
208
+ """
209
+ Any Python object.
210
+ """)
211
+
212
+ add_newdoc_for_scalar_type('str_', [],
213
+ r"""
214
+ A unicode string.
215
+
216
+ This type strips trailing null codepoints.
217
+
218
+ >>> s = np.str_("abc\x00")
219
+ >>> s
220
+ 'abc'
221
+
222
+ Unlike the builtin :class:`str`, this supports the
223
+ :ref:`python:bufferobjects`, exposing its contents as UCS4:
224
+
225
+ >>> m = memoryview(np.str_("abc"))
226
+ >>> m.format
227
+ '3w'
228
+ >>> m.tobytes()
229
+ b'a\x00\x00\x00b\x00\x00\x00c\x00\x00\x00'
230
+ """)
231
+
232
+ add_newdoc_for_scalar_type('bytes_', [],
233
+ r"""
234
+ A byte string.
235
+
236
+ When used in arrays, this type strips trailing null bytes.
237
+ """)
238
+
239
+ add_newdoc_for_scalar_type('void', [],
240
+ r"""
241
+ np.void(length_or_data, /, dtype=None)
242
+
243
+ Create a new structured or unstructured void scalar.
244
+
245
+ Parameters
246
+ ----------
247
+ length_or_data : int, array-like, bytes-like, object
248
+ One of multiple meanings (see notes). The length or
249
+ bytes data of an unstructured void. Or alternatively,
250
+ the data to be stored in the new scalar when `dtype`
251
+ is provided.
252
+ This can be an array-like, in which case an array may
253
+ be returned.
254
+ dtype : dtype, optional
255
+ If provided the dtype of the new scalar. This dtype must
256
+ be "void" dtype (i.e. a structured or unstructured void,
257
+ see also :ref:`defining-structured-types`).
258
+
259
+ .. versionadded:: 1.24
260
+
261
+ Notes
262
+ -----
263
+ For historical reasons and because void scalars can represent both
264
+ arbitrary byte data and structured dtypes, the void constructor
265
+ has three calling conventions:
266
+
267
+ 1. ``np.void(5)`` creates a ``dtype="V5"`` scalar filled with five
268
+ ``\0`` bytes. The 5 can be a Python or NumPy integer.
269
+ 2. ``np.void(b"bytes-like")`` creates a void scalar from the byte string.
270
+ The dtype itemsize will match the byte string length, here ``"V10"``.
271
+ 3. When a ``dtype=`` is passed the call is roughly the same as an
272
+ array creation. However, a void scalar rather than array is returned.
273
+
274
+ Please see the examples which show all three different conventions.
275
+
276
+ Examples
277
+ --------
278
+ >>> np.void(5)
279
+ np.void(b'\x00\x00\x00\x00\x00')
280
+ >>> np.void(b'abcd')
281
+ np.void(b'\x61\x62\x63\x64')
282
+ >>> np.void((3.2, b'eggs'), dtype="d,S5")
283
+ np.void((3.2, b'eggs'), dtype=[('f0', '<f8'), ('f1', 'S5')])
284
+ >>> np.void(3, dtype=[('x', np.int8), ('y', np.int8)])
285
+ np.void((3, 3), dtype=[('x', 'i1'), ('y', 'i1')])
286
+
287
+ """)
288
+
289
+ add_newdoc_for_scalar_type('datetime64', [],
290
+ """
291
+ If created from a 64-bit integer, it represents an offset from
292
+ ``1970-01-01T00:00:00``.
293
+ If created from string, the string can be in ISO 8601 date
294
+ or datetime format.
295
+
296
+ When parsing a string to create a datetime object, if the string contains
297
+ a trailing timezone (A 'Z' or a timezone offset), the timezone will be
298
+ dropped and a User Warning is given.
299
+
300
+ Datetime64 objects should be considered to be UTC and therefore have an
301
+ offset of +0000.
302
+
303
+ >>> np.datetime64(10, 'Y')
304
+ np.datetime64('1980')
305
+ >>> np.datetime64('1980', 'Y')
306
+ np.datetime64('1980')
307
+ >>> np.datetime64(10, 'D')
308
+ np.datetime64('1970-01-11')
309
+
310
+ See :ref:`arrays.datetime` for more information.
311
+ """)
312
+
313
+ add_newdoc_for_scalar_type('timedelta64', [],
314
+ """
315
+ A timedelta stored as a 64-bit integer.
316
+
317
+ See :ref:`arrays.datetime` for more information.
318
+ """)
319
+
320
+ add_newdoc('numpy._core.numerictypes', "integer", ('is_integer',
321
+ """
322
+ integer.is_integer() -> bool
323
+
324
+ Return ``True`` if the number is finite with integral value.
325
+
326
+ .. versionadded:: 1.22
327
+
328
+ Examples
329
+ --------
330
+ >>> import numpy as np
331
+ >>> np.int64(-2).is_integer()
332
+ True
333
+ >>> np.uint32(5).is_integer()
334
+ True
335
+ """))
336
+
337
+ # TODO: work out how to put this on the base class, np.floating
338
+ for float_name in ('half', 'single', 'double', 'longdouble'):
339
+ add_newdoc('numpy._core.numerictypes', float_name, ('as_integer_ratio',
340
+ """
341
+ {ftype}.as_integer_ratio() -> (int, int)
342
+
343
+ Return a pair of integers, whose ratio is exactly equal to the original
344
+ floating point number, and with a positive denominator.
345
+ Raise `OverflowError` on infinities and a `ValueError` on NaNs.
346
+
347
+ >>> np.{ftype}(10.0).as_integer_ratio()
348
+ (10, 1)
349
+ >>> np.{ftype}(0.0).as_integer_ratio()
350
+ (0, 1)
351
+ >>> np.{ftype}(-.25).as_integer_ratio()
352
+ (-1, 4)
353
+ """.format(ftype=float_name)))
354
+
355
+ add_newdoc('numpy._core.numerictypes', float_name, ('is_integer',
356
+ f"""
357
+ {float_name}.is_integer() -> bool
358
+
359
+ Return ``True`` if the floating point number is finite with integral
360
+ value, and ``False`` otherwise.
361
+
362
+ .. versionadded:: 1.22
363
+
364
+ Examples
365
+ --------
366
+ >>> np.{float_name}(-2.0).is_integer()
367
+ True
368
+ >>> np.{float_name}(3.2).is_integer()
369
+ False
370
+ """))
371
+
372
+ for int_name in ('int8', 'uint8', 'int16', 'uint16', 'int32', 'uint32',
373
+ 'int64', 'uint64', 'int64', 'uint64', 'int64', 'uint64'):
374
+ # Add negative examples for signed cases by checking typecode
375
+ add_newdoc('numpy._core.numerictypes', int_name, ('bit_count',
376
+ f"""
377
+ {int_name}.bit_count() -> int
378
+
379
+ Computes the number of 1-bits in the absolute value of the input.
380
+ Analogous to the builtin `int.bit_count` or ``popcount`` in C++.
381
+
382
+ Examples
383
+ --------
384
+ >>> np.{int_name}(127).bit_count()
385
+ 7""" +
386
+ (f"""
387
+ >>> np.{int_name}(-127).bit_count()
388
+ 7
389
+ """ if dtype(int_name).char.islower() else "")))