applied-ai-018 commited on
Commit
0ad8957
·
verified ·
1 Parent(s): 7b41f75

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. env-llmeval/lib/python3.10/site-packages/attrs/__init__.py +65 -0
  2. env-llmeval/lib/python3.10/site-packages/attrs/__init__.pyi +67 -0
  3. env-llmeval/lib/python3.10/site-packages/attrs/__pycache__/validators.cpython-310.pyc +0 -0
  4. env-llmeval/lib/python3.10/site-packages/attrs/converters.py +3 -0
  5. env-llmeval/lib/python3.10/site-packages/attrs/exceptions.py +3 -0
  6. env-llmeval/lib/python3.10/site-packages/attrs/filters.py +3 -0
  7. env-llmeval/lib/python3.10/site-packages/attrs/py.typed +0 -0
  8. env-llmeval/lib/python3.10/site-packages/attrs/setters.py +3 -0
  9. env-llmeval/lib/python3.10/site-packages/attrs/validators.py +3 -0
  10. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/__init__.cpython-310.pyc +0 -0
  11. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test__iotools.cpython-310.pyc +0 -0
  12. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test__version.cpython-310.pyc +0 -0
  13. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_arraypad.cpython-310.pyc +0 -0
  14. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_arraysetops.cpython-310.pyc +0 -0
  15. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_financial_expired.cpython-310.pyc +0 -0
  16. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_format.cpython-310.pyc +0 -0
  17. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_function_base.cpython-310.pyc +0 -0
  18. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_histograms.cpython-310.pyc +0 -0
  19. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_index_tricks.cpython-310.pyc +0 -0
  20. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_loadtxt.cpython-310.pyc +0 -0
  21. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_mixins.cpython-310.pyc +0 -0
  22. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_nanfunctions.cpython-310.pyc +0 -0
  23. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_packbits.cpython-310.pyc +0 -0
  24. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_polynomial.cpython-310.pyc +0 -0
  25. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_recfunctions.cpython-310.pyc +0 -0
  26. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_regression.cpython-310.pyc +0 -0
  27. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_shape_base.cpython-310.pyc +0 -0
  28. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_stride_tricks.cpython-310.pyc +0 -0
  29. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_twodim_base.cpython-310.pyc +0 -0
  30. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_type_check.cpython-310.pyc +0 -0
  31. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_ufunclike.cpython-310.pyc +0 -0
  32. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_utils.cpython-310.pyc +0 -0
  33. env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/data/py3-objarr.npy +3 -0
  34. env-llmeval/lib/python3.10/site-packages/numpy/random/LICENSE.md +71 -0
  35. env-llmeval/lib/python3.10/site-packages/numpy/random/__init__.pxd +14 -0
  36. env-llmeval/lib/python3.10/site-packages/numpy/random/__init__.py +215 -0
  37. env-llmeval/lib/python3.10/site-packages/numpy/random/__init__.pyi +72 -0
  38. env-llmeval/lib/python3.10/site-packages/numpy/random/_bounded_integers.cpython-310-x86_64-linux-gnu.so +0 -0
  39. env-llmeval/lib/python3.10/site-packages/numpy/random/_bounded_integers.pxd +29 -0
  40. env-llmeval/lib/python3.10/site-packages/numpy/random/_common.cpython-310-x86_64-linux-gnu.so +0 -0
  41. env-llmeval/lib/python3.10/site-packages/numpy/random/_common.pxd +106 -0
  42. env-llmeval/lib/python3.10/site-packages/numpy/random/_generator.cpython-310-x86_64-linux-gnu.so +0 -0
  43. env-llmeval/lib/python3.10/site-packages/numpy/random/_generator.pyi +681 -0
  44. env-llmeval/lib/python3.10/site-packages/numpy/random/_mt19937.cpython-310-x86_64-linux-gnu.so +0 -0
  45. env-llmeval/lib/python3.10/site-packages/numpy/random/_mt19937.pyi +22 -0
  46. env-llmeval/lib/python3.10/site-packages/numpy/random/_pcg64.cpython-310-x86_64-linux-gnu.so +0 -0
  47. env-llmeval/lib/python3.10/site-packages/numpy/random/_pcg64.pyi +42 -0
  48. env-llmeval/lib/python3.10/site-packages/numpy/random/_philox.cpython-310-x86_64-linux-gnu.so +0 -0
  49. env-llmeval/lib/python3.10/site-packages/numpy/random/_philox.pyi +36 -0
  50. env-llmeval/lib/python3.10/site-packages/numpy/random/_pickle.py +80 -0
env-llmeval/lib/python3.10/site-packages/attrs/__init__.py ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: MIT
2
+
3
+ from attr import (
4
+ NOTHING,
5
+ Attribute,
6
+ AttrsInstance,
7
+ Factory,
8
+ _make_getattr,
9
+ assoc,
10
+ cmp_using,
11
+ define,
12
+ evolve,
13
+ field,
14
+ fields,
15
+ fields_dict,
16
+ frozen,
17
+ has,
18
+ make_class,
19
+ mutable,
20
+ resolve_types,
21
+ validate,
22
+ )
23
+ from attr._next_gen import asdict, astuple
24
+
25
+ from . import converters, exceptions, filters, setters, validators
26
+
27
+
28
+ __all__ = [
29
+ "__author__",
30
+ "__copyright__",
31
+ "__description__",
32
+ "__doc__",
33
+ "__email__",
34
+ "__license__",
35
+ "__title__",
36
+ "__url__",
37
+ "__version__",
38
+ "__version_info__",
39
+ "asdict",
40
+ "assoc",
41
+ "astuple",
42
+ "Attribute",
43
+ "AttrsInstance",
44
+ "cmp_using",
45
+ "converters",
46
+ "define",
47
+ "evolve",
48
+ "exceptions",
49
+ "Factory",
50
+ "field",
51
+ "fields_dict",
52
+ "fields",
53
+ "filters",
54
+ "frozen",
55
+ "has",
56
+ "make_class",
57
+ "mutable",
58
+ "NOTHING",
59
+ "resolve_types",
60
+ "setters",
61
+ "validate",
62
+ "validators",
63
+ ]
64
+
65
+ __getattr__ = _make_getattr(__name__)
env-llmeval/lib/python3.10/site-packages/attrs/__init__.pyi ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import (
2
+ Any,
3
+ Callable,
4
+ Dict,
5
+ Mapping,
6
+ Optional,
7
+ Sequence,
8
+ Tuple,
9
+ Type,
10
+ )
11
+
12
+ # Because we need to type our own stuff, we have to make everything from
13
+ # attr explicitly public too.
14
+ from attr import __author__ as __author__
15
+ from attr import __copyright__ as __copyright__
16
+ from attr import __description__ as __description__
17
+ from attr import __email__ as __email__
18
+ from attr import __license__ as __license__
19
+ from attr import __title__ as __title__
20
+ from attr import __url__ as __url__
21
+ from attr import __version__ as __version__
22
+ from attr import __version_info__ as __version_info__
23
+ from attr import _FilterType
24
+ from attr import assoc as assoc
25
+ from attr import Attribute as Attribute
26
+ from attr import AttrsInstance as AttrsInstance
27
+ from attr import cmp_using as cmp_using
28
+ from attr import converters as converters
29
+ from attr import define as define
30
+ from attr import evolve as evolve
31
+ from attr import exceptions as exceptions
32
+ from attr import Factory as Factory
33
+ from attr import field as field
34
+ from attr import fields as fields
35
+ from attr import fields_dict as fields_dict
36
+ from attr import filters as filters
37
+ from attr import frozen as frozen
38
+ from attr import has as has
39
+ from attr import make_class as make_class
40
+ from attr import mutable as mutable
41
+ from attr import NOTHING as NOTHING
42
+ from attr import resolve_types as resolve_types
43
+ from attr import setters as setters
44
+ from attr import validate as validate
45
+ from attr import validators as validators
46
+
47
+ # TODO: see definition of attr.asdict/astuple
48
+ def asdict(
49
+ inst: AttrsInstance,
50
+ recurse: bool = ...,
51
+ filter: Optional[_FilterType[Any]] = ...,
52
+ dict_factory: Type[Mapping[Any, Any]] = ...,
53
+ retain_collection_types: bool = ...,
54
+ value_serializer: Optional[
55
+ Callable[[type, Attribute[Any], Any], Any]
56
+ ] = ...,
57
+ tuple_keys: bool = ...,
58
+ ) -> Dict[str, Any]: ...
59
+
60
+ # TODO: add support for returning NamedTuple from the mypy plugin
61
+ def astuple(
62
+ inst: AttrsInstance,
63
+ recurse: bool = ...,
64
+ filter: Optional[_FilterType[Any]] = ...,
65
+ tuple_factory: Type[Sequence[Any]] = ...,
66
+ retain_collection_types: bool = ...,
67
+ ) -> Tuple[Any, ...]: ...
env-llmeval/lib/python3.10/site-packages/attrs/__pycache__/validators.cpython-310.pyc ADDED
Binary file (204 Bytes). View file
 
env-llmeval/lib/python3.10/site-packages/attrs/converters.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # SPDX-License-Identifier: MIT
2
+
3
+ from attr.converters import * # noqa: F403
env-llmeval/lib/python3.10/site-packages/attrs/exceptions.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # SPDX-License-Identifier: MIT
2
+
3
+ from attr.exceptions import * # noqa: F403
env-llmeval/lib/python3.10/site-packages/attrs/filters.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # SPDX-License-Identifier: MIT
2
+
3
+ from attr.filters import * # noqa: F403
env-llmeval/lib/python3.10/site-packages/attrs/py.typed ADDED
File without changes
env-llmeval/lib/python3.10/site-packages/attrs/setters.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # SPDX-License-Identifier: MIT
2
+
3
+ from attr.setters import * # noqa: F403
env-llmeval/lib/python3.10/site-packages/attrs/validators.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # SPDX-License-Identifier: MIT
2
+
3
+ from attr.validators import * # noqa: F403
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (180 Bytes). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test__iotools.cpython-310.pyc ADDED
Binary file (11.3 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test__version.cpython-310.pyc ADDED
Binary file (2.21 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_arraypad.cpython-310.pyc ADDED
Binary file (47.1 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_arraysetops.cpython-310.pyc ADDED
Binary file (25.5 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_financial_expired.cpython-310.pyc ADDED
Binary file (593 Bytes). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_format.cpython-310.pyc ADDED
Binary file (36.1 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_function_base.cpython-310.pyc ADDED
Binary file (143 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_histograms.cpython-310.pyc ADDED
Binary file (28.9 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_index_tricks.cpython-310.pyc ADDED
Binary file (19.5 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_loadtxt.cpython-310.pyc ADDED
Binary file (37.6 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_mixins.cpython-310.pyc ADDED
Binary file (7.46 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_nanfunctions.cpython-310.pyc ADDED
Binary file (40.8 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_packbits.cpython-310.pyc ADDED
Binary file (14.3 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_polynomial.cpython-310.pyc ADDED
Binary file (10.5 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_recfunctions.cpython-310.pyc ADDED
Binary file (32.1 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_regression.cpython-310.pyc ADDED
Binary file (10.3 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_shape_base.cpython-310.pyc ADDED
Binary file (30.2 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_stride_tricks.cpython-310.pyc ADDED
Binary file (16.5 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_twodim_base.cpython-310.pyc ADDED
Binary file (18.1 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_type_check.cpython-310.pyc ADDED
Binary file (16.8 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_ufunclike.cpython-310.pyc ADDED
Binary file (3.46 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/__pycache__/test_utils.cpython-310.pyc ADDED
Binary file (7.38 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/lib/tests/data/py3-objarr.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a534d587c7b3a7e97000addf920bdd294f00ae9e4d30ace7543f8ce84c7fb80d
3
+ size 341
env-llmeval/lib/python3.10/site-packages/numpy/random/LICENSE.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ **This software is dual-licensed under the The University of Illinois/NCSA
2
+ Open Source License (NCSA) and The 3-Clause BSD License**
3
+
4
+ # NCSA Open Source License
5
+ **Copyright (c) 2019 Kevin Sheppard. All rights reserved.**
6
+
7
+ Developed by: Kevin Sheppard (<[email protected]>,
8
9
+ [http://www.kevinsheppard.com](http://www.kevinsheppard.com)
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
12
+ this software and associated documentation files (the "Software"), to deal with
13
+ the Software without restriction, including without limitation the rights to
14
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
15
+ of the Software, and to permit persons to whom the Software is furnished to do
16
+ so, subject to the following conditions:
17
+
18
+ Redistributions of source code must retain the above copyright notice, this
19
+ list of conditions and the following disclaimers.
20
+
21
+ Redistributions in binary form must reproduce the above copyright notice, this
22
+ list of conditions and the following disclaimers in the documentation and/or
23
+ other materials provided with the distribution.
24
+
25
+ Neither the names of Kevin Sheppard, nor the names of any contributors may be
26
+ used to endorse or promote products derived from this Software without specific
27
+ prior written permission.
28
+
29
+ **THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32
+ CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH
35
+ THE SOFTWARE.**
36
+
37
+
38
+ # 3-Clause BSD License
39
+ **Copyright (c) 2019 Kevin Sheppard. All rights reserved.**
40
+
41
+ Redistribution and use in source and binary forms, with or without
42
+ modification, are permitted provided that the following conditions are met:
43
+
44
+ 1. Redistributions of source code must retain the above copyright notice,
45
+ this list of conditions and the following disclaimer.
46
+
47
+ 2. Redistributions in binary form must reproduce the above copyright notice,
48
+ this list of conditions and the following disclaimer in the documentation
49
+ and/or other materials provided with the distribution.
50
+
51
+ 3. Neither the name of the copyright holder nor the names of its contributors
52
+ may be used to endorse or promote products derived from this software
53
+ without specific prior written permission.
54
+
55
+ **THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
56
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
57
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
58
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
59
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
60
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
61
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
62
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
63
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
64
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
65
+ THE POSSIBILITY OF SUCH DAMAGE.**
66
+
67
+ # Components
68
+
69
+ Many parts of this module have been derived from original sources,
70
+ often the algorithm's designer. Component licenses are located with
71
+ the component code.
env-llmeval/lib/python3.10/site-packages/numpy/random/__init__.pxd ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cimport numpy as np
2
+ from libc.stdint cimport uint32_t, uint64_t
3
+
4
+ cdef extern from "numpy/random/bitgen.h":
5
+ struct bitgen:
6
+ void *state
7
+ uint64_t (*next_uint64)(void *st) nogil
8
+ uint32_t (*next_uint32)(void *st) nogil
9
+ double (*next_double)(void *st) nogil
10
+ uint64_t (*next_raw)(void *st) nogil
11
+
12
+ ctypedef bitgen bitgen_t
13
+
14
+ from numpy.random.bit_generator cimport BitGenerator, SeedSequence
env-llmeval/lib/python3.10/site-packages/numpy/random/__init__.py ADDED
@@ -0,0 +1,215 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ ========================
3
+ Random Number Generation
4
+ ========================
5
+
6
+ Use ``default_rng()`` to create a `Generator` and call its methods.
7
+
8
+ =============== =========================================================
9
+ Generator
10
+ --------------- ---------------------------------------------------------
11
+ Generator Class implementing all of the random number distributions
12
+ default_rng Default constructor for ``Generator``
13
+ =============== =========================================================
14
+
15
+ ============================================= ===
16
+ BitGenerator Streams that work with Generator
17
+ --------------------------------------------- ---
18
+ MT19937
19
+ PCG64
20
+ PCG64DXSM
21
+ Philox
22
+ SFC64
23
+ ============================================= ===
24
+
25
+ ============================================= ===
26
+ Getting entropy to initialize a BitGenerator
27
+ --------------------------------------------- ---
28
+ SeedSequence
29
+ ============================================= ===
30
+
31
+
32
+ Legacy
33
+ ------
34
+
35
+ For backwards compatibility with previous versions of numpy before 1.17, the
36
+ various aliases to the global `RandomState` methods are left alone and do not
37
+ use the new `Generator` API.
38
+
39
+ ==================== =========================================================
40
+ Utility functions
41
+ -------------------- ---------------------------------------------------------
42
+ random Uniformly distributed floats over ``[0, 1)``
43
+ bytes Uniformly distributed random bytes.
44
+ permutation Randomly permute a sequence / generate a random sequence.
45
+ shuffle Randomly permute a sequence in place.
46
+ choice Random sample from 1-D array.
47
+ ==================== =========================================================
48
+
49
+ ==================== =========================================================
50
+ Compatibility
51
+ functions - removed
52
+ in the new API
53
+ -------------------- ---------------------------------------------------------
54
+ rand Uniformly distributed values.
55
+ randn Normally distributed values.
56
+ ranf Uniformly distributed floating point numbers.
57
+ random_integers Uniformly distributed integers in a given range.
58
+ (deprecated, use ``integers(..., closed=True)`` instead)
59
+ random_sample Alias for `random_sample`
60
+ randint Uniformly distributed integers in a given range
61
+ seed Seed the legacy random number generator.
62
+ ==================== =========================================================
63
+
64
+ ==================== =========================================================
65
+ Univariate
66
+ distributions
67
+ -------------------- ---------------------------------------------------------
68
+ beta Beta distribution over ``[0, 1]``.
69
+ binomial Binomial distribution.
70
+ chisquare :math:`\\chi^2` distribution.
71
+ exponential Exponential distribution.
72
+ f F (Fisher-Snedecor) distribution.
73
+ gamma Gamma distribution.
74
+ geometric Geometric distribution.
75
+ gumbel Gumbel distribution.
76
+ hypergeometric Hypergeometric distribution.
77
+ laplace Laplace distribution.
78
+ logistic Logistic distribution.
79
+ lognormal Log-normal distribution.
80
+ logseries Logarithmic series distribution.
81
+ negative_binomial Negative binomial distribution.
82
+ noncentral_chisquare Non-central chi-square distribution.
83
+ noncentral_f Non-central F distribution.
84
+ normal Normal / Gaussian distribution.
85
+ pareto Pareto distribution.
86
+ poisson Poisson distribution.
87
+ power Power distribution.
88
+ rayleigh Rayleigh distribution.
89
+ triangular Triangular distribution.
90
+ uniform Uniform distribution.
91
+ vonmises Von Mises circular distribution.
92
+ wald Wald (inverse Gaussian) distribution.
93
+ weibull Weibull distribution.
94
+ zipf Zipf's distribution over ranked data.
95
+ ==================== =========================================================
96
+
97
+ ==================== ==========================================================
98
+ Multivariate
99
+ distributions
100
+ -------------------- ----------------------------------------------------------
101
+ dirichlet Multivariate generalization of Beta distribution.
102
+ multinomial Multivariate generalization of the binomial distribution.
103
+ multivariate_normal Multivariate generalization of the normal distribution.
104
+ ==================== ==========================================================
105
+
106
+ ==================== =========================================================
107
+ Standard
108
+ distributions
109
+ -------------------- ---------------------------------------------------------
110
+ standard_cauchy Standard Cauchy-Lorentz distribution.
111
+ standard_exponential Standard exponential distribution.
112
+ standard_gamma Standard Gamma distribution.
113
+ standard_normal Standard normal distribution.
114
+ standard_t Standard Student's t-distribution.
115
+ ==================== =========================================================
116
+
117
+ ==================== =========================================================
118
+ Internal functions
119
+ -------------------- ---------------------------------------------------------
120
+ get_state Get tuple representing internal state of generator.
121
+ set_state Set state of generator.
122
+ ==================== =========================================================
123
+
124
+
125
+ """
126
+ __all__ = [
127
+ 'beta',
128
+ 'binomial',
129
+ 'bytes',
130
+ 'chisquare',
131
+ 'choice',
132
+ 'dirichlet',
133
+ 'exponential',
134
+ 'f',
135
+ 'gamma',
136
+ 'geometric',
137
+ 'get_state',
138
+ 'gumbel',
139
+ 'hypergeometric',
140
+ 'laplace',
141
+ 'logistic',
142
+ 'lognormal',
143
+ 'logseries',
144
+ 'multinomial',
145
+ 'multivariate_normal',
146
+ 'negative_binomial',
147
+ 'noncentral_chisquare',
148
+ 'noncentral_f',
149
+ 'normal',
150
+ 'pareto',
151
+ 'permutation',
152
+ 'poisson',
153
+ 'power',
154
+ 'rand',
155
+ 'randint',
156
+ 'randn',
157
+ 'random',
158
+ 'random_integers',
159
+ 'random_sample',
160
+ 'ranf',
161
+ 'rayleigh',
162
+ 'sample',
163
+ 'seed',
164
+ 'set_state',
165
+ 'shuffle',
166
+ 'standard_cauchy',
167
+ 'standard_exponential',
168
+ 'standard_gamma',
169
+ 'standard_normal',
170
+ 'standard_t',
171
+ 'triangular',
172
+ 'uniform',
173
+ 'vonmises',
174
+ 'wald',
175
+ 'weibull',
176
+ 'zipf',
177
+ ]
178
+
179
+ # add these for module-freeze analysis (like PyInstaller)
180
+ from . import _pickle
181
+ from . import _common
182
+ from . import _bounded_integers
183
+
184
+ from ._generator import Generator, default_rng
185
+ from .bit_generator import SeedSequence, BitGenerator
186
+ from ._mt19937 import MT19937
187
+ from ._pcg64 import PCG64, PCG64DXSM
188
+ from ._philox import Philox
189
+ from ._sfc64 import SFC64
190
+ from .mtrand import *
191
+
192
+ __all__ += ['Generator', 'RandomState', 'SeedSequence', 'MT19937',
193
+ 'Philox', 'PCG64', 'PCG64DXSM', 'SFC64', 'default_rng',
194
+ 'BitGenerator']
195
+
196
+
197
+ def __RandomState_ctor():
198
+ """Return a RandomState instance.
199
+
200
+ This function exists solely to assist (un)pickling.
201
+
202
+ Note that the state of the RandomState returned here is irrelevant, as this
203
+ function's entire purpose is to return a newly allocated RandomState whose
204
+ state pickle can set. Consequently the RandomState returned by this function
205
+ is a freshly allocated copy with a seed=0.
206
+
207
+ See https://github.com/numpy/numpy/issues/4763 for a detailed discussion
208
+
209
+ """
210
+ return RandomState(seed=0)
211
+
212
+
213
+ from numpy._pytesttester import PytestTester
214
+ test = PytestTester(__name__)
215
+ del PytestTester
env-llmeval/lib/python3.10/site-packages/numpy/random/__init__.pyi ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from numpy._pytesttester import PytestTester
2
+
3
+ from numpy.random._generator import Generator as Generator
4
+ from numpy.random._generator import default_rng as default_rng
5
+ from numpy.random._mt19937 import MT19937 as MT19937
6
+ from numpy.random._pcg64 import (
7
+ PCG64 as PCG64,
8
+ PCG64DXSM as PCG64DXSM,
9
+ )
10
+ from numpy.random._philox import Philox as Philox
11
+ from numpy.random._sfc64 import SFC64 as SFC64
12
+ from numpy.random.bit_generator import BitGenerator as BitGenerator
13
+ from numpy.random.bit_generator import SeedSequence as SeedSequence
14
+ from numpy.random.mtrand import (
15
+ RandomState as RandomState,
16
+ beta as beta,
17
+ binomial as binomial,
18
+ bytes as bytes,
19
+ chisquare as chisquare,
20
+ choice as choice,
21
+ dirichlet as dirichlet,
22
+ exponential as exponential,
23
+ f as f,
24
+ gamma as gamma,
25
+ geometric as geometric,
26
+ get_bit_generator as get_bit_generator,
27
+ get_state as get_state,
28
+ gumbel as gumbel,
29
+ hypergeometric as hypergeometric,
30
+ laplace as laplace,
31
+ logistic as logistic,
32
+ lognormal as lognormal,
33
+ logseries as logseries,
34
+ multinomial as multinomial,
35
+ multivariate_normal as multivariate_normal,
36
+ negative_binomial as negative_binomial,
37
+ noncentral_chisquare as noncentral_chisquare,
38
+ noncentral_f as noncentral_f,
39
+ normal as normal,
40
+ pareto as pareto,
41
+ permutation as permutation,
42
+ poisson as poisson,
43
+ power as power,
44
+ rand as rand,
45
+ randint as randint,
46
+ randn as randn,
47
+ random as random,
48
+ random_integers as random_integers,
49
+ random_sample as random_sample,
50
+ ranf as ranf,
51
+ rayleigh as rayleigh,
52
+ sample as sample,
53
+ seed as seed,
54
+ set_bit_generator as set_bit_generator,
55
+ set_state as set_state,
56
+ shuffle as shuffle,
57
+ standard_cauchy as standard_cauchy,
58
+ standard_exponential as standard_exponential,
59
+ standard_gamma as standard_gamma,
60
+ standard_normal as standard_normal,
61
+ standard_t as standard_t,
62
+ triangular as triangular,
63
+ uniform as uniform,
64
+ vonmises as vonmises,
65
+ wald as wald,
66
+ weibull as weibull,
67
+ zipf as zipf,
68
+ )
69
+
70
+ __all__: list[str]
71
+ __path__: list[str]
72
+ test: PytestTester
env-llmeval/lib/python3.10/site-packages/numpy/random/_bounded_integers.cpython-310-x86_64-linux-gnu.so ADDED
Binary file (379 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/random/_bounded_integers.pxd ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from libc.stdint cimport (uint8_t, uint16_t, uint32_t, uint64_t,
2
+ int8_t, int16_t, int32_t, int64_t, intptr_t)
3
+ import numpy as np
4
+ cimport numpy as np
5
+ ctypedef np.npy_bool bool_t
6
+
7
+ from numpy.random cimport bitgen_t
8
+
9
+ cdef inline uint64_t _gen_mask(uint64_t max_val) nogil:
10
+ """Mask generator for use in bounded random numbers"""
11
+ # Smallest bit mask >= max
12
+ cdef uint64_t mask = max_val
13
+ mask |= mask >> 1
14
+ mask |= mask >> 2
15
+ mask |= mask >> 4
16
+ mask |= mask >> 8
17
+ mask |= mask >> 16
18
+ mask |= mask >> 32
19
+ return mask
20
+
21
+ cdef object _rand_uint64(object low, object high, object size, bint use_masked, bint closed, bitgen_t *state, object lock)
22
+ cdef object _rand_uint32(object low, object high, object size, bint use_masked, bint closed, bitgen_t *state, object lock)
23
+ cdef object _rand_uint16(object low, object high, object size, bint use_masked, bint closed, bitgen_t *state, object lock)
24
+ cdef object _rand_uint8(object low, object high, object size, bint use_masked, bint closed, bitgen_t *state, object lock)
25
+ cdef object _rand_bool(object low, object high, object size, bint use_masked, bint closed, bitgen_t *state, object lock)
26
+ cdef object _rand_int64(object low, object high, object size, bint use_masked, bint closed, bitgen_t *state, object lock)
27
+ cdef object _rand_int32(object low, object high, object size, bint use_masked, bint closed, bitgen_t *state, object lock)
28
+ cdef object _rand_int16(object low, object high, object size, bint use_masked, bint closed, bitgen_t *state, object lock)
29
+ cdef object _rand_int8(object low, object high, object size, bint use_masked, bint closed, bitgen_t *state, object lock)
env-llmeval/lib/python3.10/site-packages/numpy/random/_common.cpython-310-x86_64-linux-gnu.so ADDED
Binary file (276 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/random/_common.pxd ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #cython: language_level=3
2
+
3
+ from libc.stdint cimport uint32_t, uint64_t, int32_t, int64_t
4
+
5
+ import numpy as np
6
+ cimport numpy as np
7
+
8
+ from numpy.random cimport bitgen_t
9
+
10
+ cdef double POISSON_LAM_MAX
11
+ cdef double LEGACY_POISSON_LAM_MAX
12
+ cdef uint64_t MAXSIZE
13
+
14
+ cdef enum ConstraintType:
15
+ CONS_NONE
16
+ CONS_NON_NEGATIVE
17
+ CONS_POSITIVE
18
+ CONS_POSITIVE_NOT_NAN
19
+ CONS_BOUNDED_0_1
20
+ CONS_BOUNDED_GT_0_1
21
+ CONS_BOUNDED_LT_0_1
22
+ CONS_GT_1
23
+ CONS_GTE_1
24
+ CONS_POISSON
25
+ LEGACY_CONS_POISSON
26
+
27
+ ctypedef ConstraintType constraint_type
28
+
29
+ cdef object benchmark(bitgen_t *bitgen, object lock, Py_ssize_t cnt, object method)
30
+ cdef object random_raw(bitgen_t *bitgen, object lock, object size, object output)
31
+ cdef object prepare_cffi(bitgen_t *bitgen)
32
+ cdef object prepare_ctypes(bitgen_t *bitgen)
33
+ cdef int check_constraint(double val, object name, constraint_type cons) except -1
34
+ cdef int check_array_constraint(np.ndarray val, object name, constraint_type cons) except -1
35
+
36
+ cdef extern from "include/aligned_malloc.h":
37
+ cdef void *PyArray_realloc_aligned(void *p, size_t n)
38
+ cdef void *PyArray_malloc_aligned(size_t n)
39
+ cdef void *PyArray_calloc_aligned(size_t n, size_t s)
40
+ cdef void PyArray_free_aligned(void *p)
41
+
42
+ ctypedef void (*random_double_fill)(bitgen_t *state, np.npy_intp count, double* out) noexcept nogil
43
+ ctypedef double (*random_double_0)(void *state) noexcept nogil
44
+ ctypedef double (*random_double_1)(void *state, double a) noexcept nogil
45
+ ctypedef double (*random_double_2)(void *state, double a, double b) noexcept nogil
46
+ ctypedef double (*random_double_3)(void *state, double a, double b, double c) noexcept nogil
47
+
48
+ ctypedef void (*random_float_fill)(bitgen_t *state, np.npy_intp count, float* out) noexcept nogil
49
+ ctypedef float (*random_float_0)(bitgen_t *state) noexcept nogil
50
+ ctypedef float (*random_float_1)(bitgen_t *state, float a) noexcept nogil
51
+
52
+ ctypedef int64_t (*random_uint_0)(void *state) noexcept nogil
53
+ ctypedef int64_t (*random_uint_d)(void *state, double a) noexcept nogil
54
+ ctypedef int64_t (*random_uint_dd)(void *state, double a, double b) noexcept nogil
55
+ ctypedef int64_t (*random_uint_di)(void *state, double a, uint64_t b) noexcept nogil
56
+ ctypedef int64_t (*random_uint_i)(void *state, int64_t a) noexcept nogil
57
+ ctypedef int64_t (*random_uint_iii)(void *state, int64_t a, int64_t b, int64_t c) noexcept nogil
58
+
59
+ ctypedef uint32_t (*random_uint_0_32)(bitgen_t *state) noexcept nogil
60
+ ctypedef uint32_t (*random_uint_1_i_32)(bitgen_t *state, uint32_t a) noexcept nogil
61
+
62
+ ctypedef int32_t (*random_int_2_i_32)(bitgen_t *state, int32_t a, int32_t b) noexcept nogil
63
+ ctypedef int64_t (*random_int_2_i)(bitgen_t *state, int64_t a, int64_t b) noexcept nogil
64
+
65
+ cdef double kahan_sum(double *darr, np.npy_intp n) noexcept
66
+
67
+ cdef inline double uint64_to_double(uint64_t rnd) noexcept nogil:
68
+ return (rnd >> 11) * (1.0 / 9007199254740992.0)
69
+
70
+ cdef object double_fill(void *func, bitgen_t *state, object size, object lock, object out)
71
+
72
+ cdef object float_fill(void *func, bitgen_t *state, object size, object lock, object out)
73
+
74
+ cdef object float_fill_from_double(void *func, bitgen_t *state, object size, object lock, object out)
75
+
76
+ cdef object wrap_int(object val, object bits)
77
+
78
+ cdef np.ndarray int_to_array(object value, object name, object bits, object uint_size)
79
+
80
+ cdef validate_output_shape(iter_shape, np.ndarray output)
81
+
82
+ cdef object cont(void *func, void *state, object size, object lock, int narg,
83
+ object a, object a_name, constraint_type a_constraint,
84
+ object b, object b_name, constraint_type b_constraint,
85
+ object c, object c_name, constraint_type c_constraint,
86
+ object out)
87
+
88
+ cdef object disc(void *func, void *state, object size, object lock,
89
+ int narg_double, int narg_int64,
90
+ object a, object a_name, constraint_type a_constraint,
91
+ object b, object b_name, constraint_type b_constraint,
92
+ object c, object c_name, constraint_type c_constraint)
93
+
94
+ cdef object cont_f(void *func, bitgen_t *state, object size, object lock,
95
+ object a, object a_name, constraint_type a_constraint,
96
+ object out)
97
+
98
+ cdef object cont_broadcast_3(void *func, void *state, object size, object lock,
99
+ np.ndarray a_arr, object a_name, constraint_type a_constraint,
100
+ np.ndarray b_arr, object b_name, constraint_type b_constraint,
101
+ np.ndarray c_arr, object c_name, constraint_type c_constraint)
102
+
103
+ cdef object discrete_broadcast_iii(void *func, void *state, object size, object lock,
104
+ np.ndarray a_arr, object a_name, constraint_type a_constraint,
105
+ np.ndarray b_arr, object b_name, constraint_type b_constraint,
106
+ np.ndarray c_arr, object c_name, constraint_type c_constraint)
env-llmeval/lib/python3.10/site-packages/numpy/random/_generator.cpython-310-x86_64-linux-gnu.so ADDED
Binary file (976 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/random/_generator.pyi ADDED
@@ -0,0 +1,681 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from collections.abc import Callable
2
+ from typing import Any, Union, overload, TypeVar, Literal
3
+
4
+ from numpy import (
5
+ bool_,
6
+ dtype,
7
+ float32,
8
+ float64,
9
+ int8,
10
+ int16,
11
+ int32,
12
+ int64,
13
+ int_,
14
+ ndarray,
15
+ uint,
16
+ uint8,
17
+ uint16,
18
+ uint32,
19
+ uint64,
20
+ )
21
+ from numpy.random import BitGenerator, SeedSequence
22
+ from numpy._typing import (
23
+ ArrayLike,
24
+ _ArrayLikeFloat_co,
25
+ _ArrayLikeInt_co,
26
+ _DoubleCodes,
27
+ _DTypeLikeBool,
28
+ _DTypeLikeInt,
29
+ _DTypeLikeUInt,
30
+ _Float32Codes,
31
+ _Float64Codes,
32
+ _FloatLike_co,
33
+ _Int8Codes,
34
+ _Int16Codes,
35
+ _Int32Codes,
36
+ _Int64Codes,
37
+ _IntCodes,
38
+ _ShapeLike,
39
+ _SingleCodes,
40
+ _SupportsDType,
41
+ _UInt8Codes,
42
+ _UInt16Codes,
43
+ _UInt32Codes,
44
+ _UInt64Codes,
45
+ _UIntCodes,
46
+ )
47
+
48
+ _ArrayType = TypeVar("_ArrayType", bound=ndarray[Any, Any])
49
+
50
+ _DTypeLikeFloat32 = Union[
51
+ dtype[float32],
52
+ _SupportsDType[dtype[float32]],
53
+ type[float32],
54
+ _Float32Codes,
55
+ _SingleCodes,
56
+ ]
57
+
58
+ _DTypeLikeFloat64 = Union[
59
+ dtype[float64],
60
+ _SupportsDType[dtype[float64]],
61
+ type[float],
62
+ type[float64],
63
+ _Float64Codes,
64
+ _DoubleCodes,
65
+ ]
66
+
67
+ class Generator:
68
+ def __init__(self, bit_generator: BitGenerator) -> None: ...
69
+ def __repr__(self) -> str: ...
70
+ def __str__(self) -> str: ...
71
+ def __getstate__(self) -> dict[str, Any]: ...
72
+ def __setstate__(self, state: dict[str, Any]) -> None: ...
73
+ def __reduce__(self) -> tuple[Callable[[str], Generator], tuple[str], dict[str, Any]]: ...
74
+ @property
75
+ def bit_generator(self) -> BitGenerator: ...
76
+ def spawn(self, n_children: int) -> list[Generator]: ...
77
+ def bytes(self, length: int) -> bytes: ...
78
+ @overload
79
+ def standard_normal( # type: ignore[misc]
80
+ self,
81
+ size: None = ...,
82
+ dtype: _DTypeLikeFloat32 | _DTypeLikeFloat64 = ...,
83
+ out: None = ...,
84
+ ) -> float: ...
85
+ @overload
86
+ def standard_normal( # type: ignore[misc]
87
+ self,
88
+ size: _ShapeLike = ...,
89
+ ) -> ndarray[Any, dtype[float64]]: ...
90
+ @overload
91
+ def standard_normal( # type: ignore[misc]
92
+ self,
93
+ *,
94
+ out: ndarray[Any, dtype[float64]] = ...,
95
+ ) -> ndarray[Any, dtype[float64]]: ...
96
+ @overload
97
+ def standard_normal( # type: ignore[misc]
98
+ self,
99
+ size: _ShapeLike = ...,
100
+ dtype: _DTypeLikeFloat32 = ...,
101
+ out: None | ndarray[Any, dtype[float32]] = ...,
102
+ ) -> ndarray[Any, dtype[float32]]: ...
103
+ @overload
104
+ def standard_normal( # type: ignore[misc]
105
+ self,
106
+ size: _ShapeLike = ...,
107
+ dtype: _DTypeLikeFloat64 = ...,
108
+ out: None | ndarray[Any, dtype[float64]] = ...,
109
+ ) -> ndarray[Any, dtype[float64]]: ...
110
+ @overload
111
+ def permutation(self, x: int, axis: int = ...) -> ndarray[Any, dtype[int64]]: ...
112
+ @overload
113
+ def permutation(self, x: ArrayLike, axis: int = ...) -> ndarray[Any, Any]: ...
114
+ @overload
115
+ def standard_exponential( # type: ignore[misc]
116
+ self,
117
+ size: None = ...,
118
+ dtype: _DTypeLikeFloat32 | _DTypeLikeFloat64 = ...,
119
+ method: Literal["zig", "inv"] = ...,
120
+ out: None = ...,
121
+ ) -> float: ...
122
+ @overload
123
+ def standard_exponential(
124
+ self,
125
+ size: _ShapeLike = ...,
126
+ ) -> ndarray[Any, dtype[float64]]: ...
127
+ @overload
128
+ def standard_exponential(
129
+ self,
130
+ *,
131
+ out: ndarray[Any, dtype[float64]] = ...,
132
+ ) -> ndarray[Any, dtype[float64]]: ...
133
+ @overload
134
+ def standard_exponential(
135
+ self,
136
+ size: _ShapeLike = ...,
137
+ *,
138
+ method: Literal["zig", "inv"] = ...,
139
+ out: None | ndarray[Any, dtype[float64]] = ...,
140
+ ) -> ndarray[Any, dtype[float64]]: ...
141
+ @overload
142
+ def standard_exponential(
143
+ self,
144
+ size: _ShapeLike = ...,
145
+ dtype: _DTypeLikeFloat32 = ...,
146
+ method: Literal["zig", "inv"] = ...,
147
+ out: None | ndarray[Any, dtype[float32]] = ...,
148
+ ) -> ndarray[Any, dtype[float32]]: ...
149
+ @overload
150
+ def standard_exponential(
151
+ self,
152
+ size: _ShapeLike = ...,
153
+ dtype: _DTypeLikeFloat64 = ...,
154
+ method: Literal["zig", "inv"] = ...,
155
+ out: None | ndarray[Any, dtype[float64]] = ...,
156
+ ) -> ndarray[Any, dtype[float64]]: ...
157
+ @overload
158
+ def random( # type: ignore[misc]
159
+ self,
160
+ size: None = ...,
161
+ dtype: _DTypeLikeFloat32 | _DTypeLikeFloat64 = ...,
162
+ out: None = ...,
163
+ ) -> float: ...
164
+ @overload
165
+ def random(
166
+ self,
167
+ *,
168
+ out: ndarray[Any, dtype[float64]] = ...,
169
+ ) -> ndarray[Any, dtype[float64]]: ...
170
+ @overload
171
+ def random(
172
+ self,
173
+ size: _ShapeLike = ...,
174
+ *,
175
+ out: None | ndarray[Any, dtype[float64]] = ...,
176
+ ) -> ndarray[Any, dtype[float64]]: ...
177
+ @overload
178
+ def random(
179
+ self,
180
+ size: _ShapeLike = ...,
181
+ dtype: _DTypeLikeFloat32 = ...,
182
+ out: None | ndarray[Any, dtype[float32]] = ...,
183
+ ) -> ndarray[Any, dtype[float32]]: ...
184
+ @overload
185
+ def random(
186
+ self,
187
+ size: _ShapeLike = ...,
188
+ dtype: _DTypeLikeFloat64 = ...,
189
+ out: None | ndarray[Any, dtype[float64]] = ...,
190
+ ) -> ndarray[Any, dtype[float64]]: ...
191
+ @overload
192
+ def beta(
193
+ self,
194
+ a: _FloatLike_co,
195
+ b: _FloatLike_co,
196
+ size: None = ...,
197
+ ) -> float: ... # type: ignore[misc]
198
+ @overload
199
+ def beta(
200
+ self, a: _ArrayLikeFloat_co, b: _ArrayLikeFloat_co, size: None | _ShapeLike = ...
201
+ ) -> ndarray[Any, dtype[float64]]: ...
202
+ @overload
203
+ def exponential(self, scale: _FloatLike_co = ..., size: None = ...) -> float: ... # type: ignore[misc]
204
+ @overload
205
+ def exponential(
206
+ self, scale: _ArrayLikeFloat_co = ..., size: None | _ShapeLike = ...
207
+ ) -> ndarray[Any, dtype[float64]]: ...
208
+ @overload
209
+ def integers( # type: ignore[misc]
210
+ self,
211
+ low: int,
212
+ high: None | int = ...,
213
+ ) -> int: ...
214
+ @overload
215
+ def integers( # type: ignore[misc]
216
+ self,
217
+ low: int,
218
+ high: None | int = ...,
219
+ size: None = ...,
220
+ dtype: _DTypeLikeBool = ...,
221
+ endpoint: bool = ...,
222
+ ) -> bool: ...
223
+ @overload
224
+ def integers( # type: ignore[misc]
225
+ self,
226
+ low: int,
227
+ high: None | int = ...,
228
+ size: None = ...,
229
+ dtype: _DTypeLikeInt | _DTypeLikeUInt = ...,
230
+ endpoint: bool = ...,
231
+ ) -> int: ...
232
+ @overload
233
+ def integers( # type: ignore[misc]
234
+ self,
235
+ low: _ArrayLikeInt_co,
236
+ high: None | _ArrayLikeInt_co = ...,
237
+ size: None | _ShapeLike = ...,
238
+ ) -> ndarray[Any, dtype[int64]]: ...
239
+ @overload
240
+ def integers( # type: ignore[misc]
241
+ self,
242
+ low: _ArrayLikeInt_co,
243
+ high: None | _ArrayLikeInt_co = ...,
244
+ size: None | _ShapeLike = ...,
245
+ dtype: _DTypeLikeBool = ...,
246
+ endpoint: bool = ...,
247
+ ) -> ndarray[Any, dtype[bool_]]: ...
248
+ @overload
249
+ def integers( # type: ignore[misc]
250
+ self,
251
+ low: _ArrayLikeInt_co,
252
+ high: None | _ArrayLikeInt_co = ...,
253
+ size: None | _ShapeLike = ...,
254
+ dtype: dtype[int8] | type[int8] | _Int8Codes | _SupportsDType[dtype[int8]] = ...,
255
+ endpoint: bool = ...,
256
+ ) -> ndarray[Any, dtype[int8]]: ...
257
+ @overload
258
+ def integers( # type: ignore[misc]
259
+ self,
260
+ low: _ArrayLikeInt_co,
261
+ high: None | _ArrayLikeInt_co = ...,
262
+ size: None | _ShapeLike = ...,
263
+ dtype: dtype[int16] | type[int16] | _Int16Codes | _SupportsDType[dtype[int16]] = ...,
264
+ endpoint: bool = ...,
265
+ ) -> ndarray[Any, dtype[int16]]: ...
266
+ @overload
267
+ def integers( # type: ignore[misc]
268
+ self,
269
+ low: _ArrayLikeInt_co,
270
+ high: None | _ArrayLikeInt_co = ...,
271
+ size: None | _ShapeLike = ...,
272
+ dtype: dtype[int32] | type[int32] | _Int32Codes | _SupportsDType[dtype[int32]] = ...,
273
+ endpoint: bool = ...,
274
+ ) -> ndarray[Any, dtype[int32]]: ...
275
+ @overload
276
+ def integers( # type: ignore[misc]
277
+ self,
278
+ low: _ArrayLikeInt_co,
279
+ high: None | _ArrayLikeInt_co = ...,
280
+ size: None | _ShapeLike = ...,
281
+ dtype: None | dtype[int64] | type[int64] | _Int64Codes | _SupportsDType[dtype[int64]] = ...,
282
+ endpoint: bool = ...,
283
+ ) -> ndarray[Any, dtype[int64]]: ...
284
+ @overload
285
+ def integers( # type: ignore[misc]
286
+ self,
287
+ low: _ArrayLikeInt_co,
288
+ high: None | _ArrayLikeInt_co = ...,
289
+ size: None | _ShapeLike = ...,
290
+ dtype: dtype[uint8] | type[uint8] | _UInt8Codes | _SupportsDType[dtype[uint8]] = ...,
291
+ endpoint: bool = ...,
292
+ ) -> ndarray[Any, dtype[uint8]]: ...
293
+ @overload
294
+ def integers( # type: ignore[misc]
295
+ self,
296
+ low: _ArrayLikeInt_co,
297
+ high: None | _ArrayLikeInt_co = ...,
298
+ size: None | _ShapeLike = ...,
299
+ dtype: dtype[uint16] | type[uint16] | _UInt16Codes | _SupportsDType[dtype[uint16]] = ...,
300
+ endpoint: bool = ...,
301
+ ) -> ndarray[Any, dtype[uint16]]: ...
302
+ @overload
303
+ def integers( # type: ignore[misc]
304
+ self,
305
+ low: _ArrayLikeInt_co,
306
+ high: None | _ArrayLikeInt_co = ...,
307
+ size: None | _ShapeLike = ...,
308
+ dtype: dtype[uint32] | type[uint32] | _UInt32Codes | _SupportsDType[dtype[uint32]] = ...,
309
+ endpoint: bool = ...,
310
+ ) -> ndarray[Any, dtype[uint32]]: ...
311
+ @overload
312
+ def integers( # type: ignore[misc]
313
+ self,
314
+ low: _ArrayLikeInt_co,
315
+ high: None | _ArrayLikeInt_co = ...,
316
+ size: None | _ShapeLike = ...,
317
+ dtype: dtype[uint64] | type[uint64] | _UInt64Codes | _SupportsDType[dtype[uint64]] = ...,
318
+ endpoint: bool = ...,
319
+ ) -> ndarray[Any, dtype[uint64]]: ...
320
+ @overload
321
+ def integers( # type: ignore[misc]
322
+ self,
323
+ low: _ArrayLikeInt_co,
324
+ high: None | _ArrayLikeInt_co = ...,
325
+ size: None | _ShapeLike = ...,
326
+ dtype: dtype[int_] | type[int] | type[int_] | _IntCodes | _SupportsDType[dtype[int_]] = ...,
327
+ endpoint: bool = ...,
328
+ ) -> ndarray[Any, dtype[int_]]: ...
329
+ @overload
330
+ def integers( # type: ignore[misc]
331
+ self,
332
+ low: _ArrayLikeInt_co,
333
+ high: None | _ArrayLikeInt_co = ...,
334
+ size: None | _ShapeLike = ...,
335
+ dtype: dtype[uint] | type[uint] | _UIntCodes | _SupportsDType[dtype[uint]] = ...,
336
+ endpoint: bool = ...,
337
+ ) -> ndarray[Any, dtype[uint]]: ...
338
+ # TODO: Use a TypeVar _T here to get away from Any output? Should be int->ndarray[Any,dtype[int64]], ArrayLike[_T] -> _T | ndarray[Any,Any]
339
+ @overload
340
+ def choice(
341
+ self,
342
+ a: int,
343
+ size: None = ...,
344
+ replace: bool = ...,
345
+ p: None | _ArrayLikeFloat_co = ...,
346
+ axis: int = ...,
347
+ shuffle: bool = ...,
348
+ ) -> int: ...
349
+ @overload
350
+ def choice(
351
+ self,
352
+ a: int,
353
+ size: _ShapeLike = ...,
354
+ replace: bool = ...,
355
+ p: None | _ArrayLikeFloat_co = ...,
356
+ axis: int = ...,
357
+ shuffle: bool = ...,
358
+ ) -> ndarray[Any, dtype[int64]]: ...
359
+ @overload
360
+ def choice(
361
+ self,
362
+ a: ArrayLike,
363
+ size: None = ...,
364
+ replace: bool = ...,
365
+ p: None | _ArrayLikeFloat_co = ...,
366
+ axis: int = ...,
367
+ shuffle: bool = ...,
368
+ ) -> Any: ...
369
+ @overload
370
+ def choice(
371
+ self,
372
+ a: ArrayLike,
373
+ size: _ShapeLike = ...,
374
+ replace: bool = ...,
375
+ p: None | _ArrayLikeFloat_co = ...,
376
+ axis: int = ...,
377
+ shuffle: bool = ...,
378
+ ) -> ndarray[Any, Any]: ...
379
+ @overload
380
+ def uniform(
381
+ self,
382
+ low: _FloatLike_co = ...,
383
+ high: _FloatLike_co = ...,
384
+ size: None = ...,
385
+ ) -> float: ... # type: ignore[misc]
386
+ @overload
387
+ def uniform(
388
+ self,
389
+ low: _ArrayLikeFloat_co = ...,
390
+ high: _ArrayLikeFloat_co = ...,
391
+ size: None | _ShapeLike = ...,
392
+ ) -> ndarray[Any, dtype[float64]]: ...
393
+ @overload
394
+ def normal(
395
+ self,
396
+ loc: _FloatLike_co = ...,
397
+ scale: _FloatLike_co = ...,
398
+ size: None = ...,
399
+ ) -> float: ... # type: ignore[misc]
400
+ @overload
401
+ def normal(
402
+ self,
403
+ loc: _ArrayLikeFloat_co = ...,
404
+ scale: _ArrayLikeFloat_co = ...,
405
+ size: None | _ShapeLike = ...,
406
+ ) -> ndarray[Any, dtype[float64]]: ...
407
+ @overload
408
+ def standard_gamma( # type: ignore[misc]
409
+ self,
410
+ shape: _FloatLike_co,
411
+ size: None = ...,
412
+ dtype: _DTypeLikeFloat32 | _DTypeLikeFloat64 = ...,
413
+ out: None = ...,
414
+ ) -> float: ...
415
+ @overload
416
+ def standard_gamma(
417
+ self,
418
+ shape: _ArrayLikeFloat_co,
419
+ size: None | _ShapeLike = ...,
420
+ ) -> ndarray[Any, dtype[float64]]: ...
421
+ @overload
422
+ def standard_gamma(
423
+ self,
424
+ shape: _ArrayLikeFloat_co,
425
+ *,
426
+ out: ndarray[Any, dtype[float64]] = ...,
427
+ ) -> ndarray[Any, dtype[float64]]: ...
428
+ @overload
429
+ def standard_gamma(
430
+ self,
431
+ shape: _ArrayLikeFloat_co,
432
+ size: None | _ShapeLike = ...,
433
+ dtype: _DTypeLikeFloat32 = ...,
434
+ out: None | ndarray[Any, dtype[float32]] = ...,
435
+ ) -> ndarray[Any, dtype[float32]]: ...
436
+ @overload
437
+ def standard_gamma(
438
+ self,
439
+ shape: _ArrayLikeFloat_co,
440
+ size: None | _ShapeLike = ...,
441
+ dtype: _DTypeLikeFloat64 = ...,
442
+ out: None | ndarray[Any, dtype[float64]] = ...,
443
+ ) -> ndarray[Any, dtype[float64]]: ...
444
+ @overload
445
+ def gamma(self, shape: _FloatLike_co, scale: _FloatLike_co = ..., size: None = ...) -> float: ... # type: ignore[misc]
446
+ @overload
447
+ def gamma(
448
+ self,
449
+ shape: _ArrayLikeFloat_co,
450
+ scale: _ArrayLikeFloat_co = ...,
451
+ size: None | _ShapeLike = ...,
452
+ ) -> ndarray[Any, dtype[float64]]: ...
453
+ @overload
454
+ def f(self, dfnum: _FloatLike_co, dfden: _FloatLike_co, size: None = ...) -> float: ... # type: ignore[misc]
455
+ @overload
456
+ def f(
457
+ self, dfnum: _ArrayLikeFloat_co, dfden: _ArrayLikeFloat_co, size: None | _ShapeLike = ...
458
+ ) -> ndarray[Any, dtype[float64]]: ...
459
+ @overload
460
+ def noncentral_f(self, dfnum: _FloatLike_co, dfden: _FloatLike_co, nonc: _FloatLike_co, size: None = ...) -> float: ... # type: ignore[misc]
461
+ @overload
462
+ def noncentral_f(
463
+ self,
464
+ dfnum: _ArrayLikeFloat_co,
465
+ dfden: _ArrayLikeFloat_co,
466
+ nonc: _ArrayLikeFloat_co,
467
+ size: None | _ShapeLike = ...,
468
+ ) -> ndarray[Any, dtype[float64]]: ...
469
+ @overload
470
+ def chisquare(self, df: _FloatLike_co, size: None = ...) -> float: ... # type: ignore[misc]
471
+ @overload
472
+ def chisquare(
473
+ self, df: _ArrayLikeFloat_co, size: None | _ShapeLike = ...
474
+ ) -> ndarray[Any, dtype[float64]]: ...
475
+ @overload
476
+ def noncentral_chisquare(self, df: _FloatLike_co, nonc: _FloatLike_co, size: None = ...) -> float: ... # type: ignore[misc]
477
+ @overload
478
+ def noncentral_chisquare(
479
+ self, df: _ArrayLikeFloat_co, nonc: _ArrayLikeFloat_co, size: None | _ShapeLike = ...
480
+ ) -> ndarray[Any, dtype[float64]]: ...
481
+ @overload
482
+ def standard_t(self, df: _FloatLike_co, size: None = ...) -> float: ... # type: ignore[misc]
483
+ @overload
484
+ def standard_t(
485
+ self, df: _ArrayLikeFloat_co, size: None = ...
486
+ ) -> ndarray[Any, dtype[float64]]: ...
487
+ @overload
488
+ def standard_t(
489
+ self, df: _ArrayLikeFloat_co, size: _ShapeLike = ...
490
+ ) -> ndarray[Any, dtype[float64]]: ...
491
+ @overload
492
+ def vonmises(self, mu: _FloatLike_co, kappa: _FloatLike_co, size: None = ...) -> float: ... # type: ignore[misc]
493
+ @overload
494
+ def vonmises(
495
+ self, mu: _ArrayLikeFloat_co, kappa: _ArrayLikeFloat_co, size: None | _ShapeLike = ...
496
+ ) -> ndarray[Any, dtype[float64]]: ...
497
+ @overload
498
+ def pareto(self, a: _FloatLike_co, size: None = ...) -> float: ... # type: ignore[misc]
499
+ @overload
500
+ def pareto(
501
+ self, a: _ArrayLikeFloat_co, size: None | _ShapeLike = ...
502
+ ) -> ndarray[Any, dtype[float64]]: ...
503
+ @overload
504
+ def weibull(self, a: _FloatLike_co, size: None = ...) -> float: ... # type: ignore[misc]
505
+ @overload
506
+ def weibull(
507
+ self, a: _ArrayLikeFloat_co, size: None | _ShapeLike = ...
508
+ ) -> ndarray[Any, dtype[float64]]: ...
509
+ @overload
510
+ def power(self, a: _FloatLike_co, size: None = ...) -> float: ... # type: ignore[misc]
511
+ @overload
512
+ def power(
513
+ self, a: _ArrayLikeFloat_co, size: None | _ShapeLike = ...
514
+ ) -> ndarray[Any, dtype[float64]]: ...
515
+ @overload
516
+ def standard_cauchy(self, size: None = ...) -> float: ... # type: ignore[misc]
517
+ @overload
518
+ def standard_cauchy(self, size: _ShapeLike = ...) -> ndarray[Any, dtype[float64]]: ...
519
+ @overload
520
+ def laplace(
521
+ self,
522
+ loc: _FloatLike_co = ...,
523
+ scale: _FloatLike_co = ...,
524
+ size: None = ...,
525
+ ) -> float: ... # type: ignore[misc]
526
+ @overload
527
+ def laplace(
528
+ self,
529
+ loc: _ArrayLikeFloat_co = ...,
530
+ scale: _ArrayLikeFloat_co = ...,
531
+ size: None | _ShapeLike = ...,
532
+ ) -> ndarray[Any, dtype[float64]]: ...
533
+ @overload
534
+ def gumbel(
535
+ self,
536
+ loc: _FloatLike_co = ...,
537
+ scale: _FloatLike_co = ...,
538
+ size: None = ...,
539
+ ) -> float: ... # type: ignore[misc]
540
+ @overload
541
+ def gumbel(
542
+ self,
543
+ loc: _ArrayLikeFloat_co = ...,
544
+ scale: _ArrayLikeFloat_co = ...,
545
+ size: None | _ShapeLike = ...,
546
+ ) -> ndarray[Any, dtype[float64]]: ...
547
+ @overload
548
+ def logistic(
549
+ self,
550
+ loc: _FloatLike_co = ...,
551
+ scale: _FloatLike_co = ...,
552
+ size: None = ...,
553
+ ) -> float: ... # type: ignore[misc]
554
+ @overload
555
+ def logistic(
556
+ self,
557
+ loc: _ArrayLikeFloat_co = ...,
558
+ scale: _ArrayLikeFloat_co = ...,
559
+ size: None | _ShapeLike = ...,
560
+ ) -> ndarray[Any, dtype[float64]]: ...
561
+ @overload
562
+ def lognormal(
563
+ self,
564
+ mean: _FloatLike_co = ...,
565
+ sigma: _FloatLike_co = ...,
566
+ size: None = ...,
567
+ ) -> float: ... # type: ignore[misc]
568
+ @overload
569
+ def lognormal(
570
+ self,
571
+ mean: _ArrayLikeFloat_co = ...,
572
+ sigma: _ArrayLikeFloat_co = ...,
573
+ size: None | _ShapeLike = ...,
574
+ ) -> ndarray[Any, dtype[float64]]: ...
575
+ @overload
576
+ def rayleigh(self, scale: _FloatLike_co = ..., size: None = ...) -> float: ... # type: ignore[misc]
577
+ @overload
578
+ def rayleigh(
579
+ self, scale: _ArrayLikeFloat_co = ..., size: None | _ShapeLike = ...
580
+ ) -> ndarray[Any, dtype[float64]]: ...
581
+ @overload
582
+ def wald(self, mean: _FloatLike_co, scale: _FloatLike_co, size: None = ...) -> float: ... # type: ignore[misc]
583
+ @overload
584
+ def wald(
585
+ self, mean: _ArrayLikeFloat_co, scale: _ArrayLikeFloat_co, size: None | _ShapeLike = ...
586
+ ) -> ndarray[Any, dtype[float64]]: ...
587
+ @overload
588
+ def triangular(
589
+ self,
590
+ left: _FloatLike_co,
591
+ mode: _FloatLike_co,
592
+ right: _FloatLike_co,
593
+ size: None = ...,
594
+ ) -> float: ... # type: ignore[misc]
595
+ @overload
596
+ def triangular(
597
+ self,
598
+ left: _ArrayLikeFloat_co,
599
+ mode: _ArrayLikeFloat_co,
600
+ right: _ArrayLikeFloat_co,
601
+ size: None | _ShapeLike = ...,
602
+ ) -> ndarray[Any, dtype[float64]]: ...
603
+ @overload
604
+ def binomial(self, n: int, p: _FloatLike_co, size: None = ...) -> int: ... # type: ignore[misc]
605
+ @overload
606
+ def binomial(
607
+ self, n: _ArrayLikeInt_co, p: _ArrayLikeFloat_co, size: None | _ShapeLike = ...
608
+ ) -> ndarray[Any, dtype[int64]]: ...
609
+ @overload
610
+ def negative_binomial(self, n: _FloatLike_co, p: _FloatLike_co, size: None = ...) -> int: ... # type: ignore[misc]
611
+ @overload
612
+ def negative_binomial(
613
+ self, n: _ArrayLikeFloat_co, p: _ArrayLikeFloat_co, size: None | _ShapeLike = ...
614
+ ) -> ndarray[Any, dtype[int64]]: ...
615
+ @overload
616
+ def poisson(self, lam: _FloatLike_co = ..., size: None = ...) -> int: ... # type: ignore[misc]
617
+ @overload
618
+ def poisson(
619
+ self, lam: _ArrayLikeFloat_co = ..., size: None | _ShapeLike = ...
620
+ ) -> ndarray[Any, dtype[int64]]: ...
621
+ @overload
622
+ def zipf(self, a: _FloatLike_co, size: None = ...) -> int: ... # type: ignore[misc]
623
+ @overload
624
+ def zipf(
625
+ self, a: _ArrayLikeFloat_co, size: None | _ShapeLike = ...
626
+ ) -> ndarray[Any, dtype[int64]]: ...
627
+ @overload
628
+ def geometric(self, p: _FloatLike_co, size: None = ...) -> int: ... # type: ignore[misc]
629
+ @overload
630
+ def geometric(
631
+ self, p: _ArrayLikeFloat_co, size: None | _ShapeLike = ...
632
+ ) -> ndarray[Any, dtype[int64]]: ...
633
+ @overload
634
+ def hypergeometric(self, ngood: int, nbad: int, nsample: int, size: None = ...) -> int: ... # type: ignore[misc]
635
+ @overload
636
+ def hypergeometric(
637
+ self,
638
+ ngood: _ArrayLikeInt_co,
639
+ nbad: _ArrayLikeInt_co,
640
+ nsample: _ArrayLikeInt_co,
641
+ size: None | _ShapeLike = ...,
642
+ ) -> ndarray[Any, dtype[int64]]: ...
643
+ @overload
644
+ def logseries(self, p: _FloatLike_co, size: None = ...) -> int: ... # type: ignore[misc]
645
+ @overload
646
+ def logseries(
647
+ self, p: _ArrayLikeFloat_co, size: None | _ShapeLike = ...
648
+ ) -> ndarray[Any, dtype[int64]]: ...
649
+ def multivariate_normal(
650
+ self,
651
+ mean: _ArrayLikeFloat_co,
652
+ cov: _ArrayLikeFloat_co,
653
+ size: None | _ShapeLike = ...,
654
+ check_valid: Literal["warn", "raise", "ignore"] = ...,
655
+ tol: float = ...,
656
+ *,
657
+ method: Literal["svd", "eigh", "cholesky"] = ...,
658
+ ) -> ndarray[Any, dtype[float64]]: ...
659
+ def multinomial(
660
+ self, n: _ArrayLikeInt_co,
661
+ pvals: _ArrayLikeFloat_co,
662
+ size: None | _ShapeLike = ...
663
+ ) -> ndarray[Any, dtype[int64]]: ...
664
+ def multivariate_hypergeometric(
665
+ self,
666
+ colors: _ArrayLikeInt_co,
667
+ nsample: int,
668
+ size: None | _ShapeLike = ...,
669
+ method: Literal["marginals", "count"] = ...,
670
+ ) -> ndarray[Any, dtype[int64]]: ...
671
+ def dirichlet(
672
+ self, alpha: _ArrayLikeFloat_co, size: None | _ShapeLike = ...
673
+ ) -> ndarray[Any, dtype[float64]]: ...
674
+ def permuted(
675
+ self, x: ArrayLike, *, axis: None | int = ..., out: None | ndarray[Any, Any] = ...
676
+ ) -> ndarray[Any, Any]: ...
677
+ def shuffle(self, x: ArrayLike, axis: int = ...) -> None: ...
678
+
679
+ def default_rng(
680
+ seed: None | _ArrayLikeInt_co | SeedSequence | BitGenerator | Generator = ...
681
+ ) -> Generator: ...
env-llmeval/lib/python3.10/site-packages/numpy/random/_mt19937.cpython-310-x86_64-linux-gnu.so ADDED
Binary file (120 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/random/_mt19937.pyi ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, TypedDict
2
+
3
+ from numpy import dtype, ndarray, uint32
4
+ from numpy.random.bit_generator import BitGenerator, SeedSequence
5
+ from numpy._typing import _ArrayLikeInt_co
6
+
7
+ class _MT19937Internal(TypedDict):
8
+ key: ndarray[Any, dtype[uint32]]
9
+ pos: int
10
+
11
+ class _MT19937State(TypedDict):
12
+ bit_generator: str
13
+ state: _MT19937Internal
14
+
15
+ class MT19937(BitGenerator):
16
+ def __init__(self, seed: None | _ArrayLikeInt_co | SeedSequence = ...) -> None: ...
17
+ def _legacy_seeding(self, seed: _ArrayLikeInt_co) -> None: ...
18
+ def jumped(self, jumps: int = ...) -> MT19937: ...
19
+ @property
20
+ def state(self) -> _MT19937State: ...
21
+ @state.setter
22
+ def state(self, value: _MT19937State) -> None: ...
env-llmeval/lib/python3.10/site-packages/numpy/random/_pcg64.cpython-310-x86_64-linux-gnu.so ADDED
Binary file (126 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/random/_pcg64.pyi ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import TypedDict
2
+
3
+ from numpy.random.bit_generator import BitGenerator, SeedSequence
4
+ from numpy._typing import _ArrayLikeInt_co
5
+
6
+ class _PCG64Internal(TypedDict):
7
+ state: int
8
+ inc: int
9
+
10
+ class _PCG64State(TypedDict):
11
+ bit_generator: str
12
+ state: _PCG64Internal
13
+ has_uint32: int
14
+ uinteger: int
15
+
16
+ class PCG64(BitGenerator):
17
+ def __init__(self, seed: None | _ArrayLikeInt_co | SeedSequence = ...) -> None: ...
18
+ def jumped(self, jumps: int = ...) -> PCG64: ...
19
+ @property
20
+ def state(
21
+ self,
22
+ ) -> _PCG64State: ...
23
+ @state.setter
24
+ def state(
25
+ self,
26
+ value: _PCG64State,
27
+ ) -> None: ...
28
+ def advance(self, delta: int) -> PCG64: ...
29
+
30
+ class PCG64DXSM(BitGenerator):
31
+ def __init__(self, seed: None | _ArrayLikeInt_co | SeedSequence = ...) -> None: ...
32
+ def jumped(self, jumps: int = ...) -> PCG64DXSM: ...
33
+ @property
34
+ def state(
35
+ self,
36
+ ) -> _PCG64State: ...
37
+ @state.setter
38
+ def state(
39
+ self,
40
+ value: _PCG64State,
41
+ ) -> None: ...
42
+ def advance(self, delta: int) -> PCG64DXSM: ...
env-llmeval/lib/python3.10/site-packages/numpy/random/_philox.cpython-310-x86_64-linux-gnu.so ADDED
Binary file (107 kB). View file
 
env-llmeval/lib/python3.10/site-packages/numpy/random/_philox.pyi ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, TypedDict
2
+
3
+ from numpy import dtype, ndarray, uint64
4
+ from numpy.random.bit_generator import BitGenerator, SeedSequence
5
+ from numpy._typing import _ArrayLikeInt_co
6
+
7
+ class _PhiloxInternal(TypedDict):
8
+ counter: ndarray[Any, dtype[uint64]]
9
+ key: ndarray[Any, dtype[uint64]]
10
+
11
+ class _PhiloxState(TypedDict):
12
+ bit_generator: str
13
+ state: _PhiloxInternal
14
+ buffer: ndarray[Any, dtype[uint64]]
15
+ buffer_pos: int
16
+ has_uint32: int
17
+ uinteger: int
18
+
19
+ class Philox(BitGenerator):
20
+ def __init__(
21
+ self,
22
+ seed: None | _ArrayLikeInt_co | SeedSequence = ...,
23
+ counter: None | _ArrayLikeInt_co = ...,
24
+ key: None | _ArrayLikeInt_co = ...,
25
+ ) -> None: ...
26
+ @property
27
+ def state(
28
+ self,
29
+ ) -> _PhiloxState: ...
30
+ @state.setter
31
+ def state(
32
+ self,
33
+ value: _PhiloxState,
34
+ ) -> None: ...
35
+ def jumped(self, jumps: int = ...) -> Philox: ...
36
+ def advance(self, delta: int) -> Philox: ...
env-llmeval/lib/python3.10/site-packages/numpy/random/_pickle.py ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from .mtrand import RandomState
2
+ from ._philox import Philox
3
+ from ._pcg64 import PCG64, PCG64DXSM
4
+ from ._sfc64 import SFC64
5
+
6
+ from ._generator import Generator
7
+ from ._mt19937 import MT19937
8
+
9
+ BitGenerators = {'MT19937': MT19937,
10
+ 'PCG64': PCG64,
11
+ 'PCG64DXSM': PCG64DXSM,
12
+ 'Philox': Philox,
13
+ 'SFC64': SFC64,
14
+ }
15
+
16
+
17
+ def __bit_generator_ctor(bit_generator_name='MT19937'):
18
+ """
19
+ Pickling helper function that returns a bit generator object
20
+
21
+ Parameters
22
+ ----------
23
+ bit_generator_name : str
24
+ String containing the name of the BitGenerator
25
+
26
+ Returns
27
+ -------
28
+ bit_generator : BitGenerator
29
+ BitGenerator instance
30
+ """
31
+ if bit_generator_name in BitGenerators:
32
+ bit_generator = BitGenerators[bit_generator_name]
33
+ else:
34
+ raise ValueError(str(bit_generator_name) + ' is not a known '
35
+ 'BitGenerator module.')
36
+
37
+ return bit_generator()
38
+
39
+
40
+ def __generator_ctor(bit_generator_name="MT19937",
41
+ bit_generator_ctor=__bit_generator_ctor):
42
+ """
43
+ Pickling helper function that returns a Generator object
44
+
45
+ Parameters
46
+ ----------
47
+ bit_generator_name : str
48
+ String containing the core BitGenerator's name
49
+ bit_generator_ctor : callable, optional
50
+ Callable function that takes bit_generator_name as its only argument
51
+ and returns an instantized bit generator.
52
+
53
+ Returns
54
+ -------
55
+ rg : Generator
56
+ Generator using the named core BitGenerator
57
+ """
58
+ return Generator(bit_generator_ctor(bit_generator_name))
59
+
60
+
61
+ def __randomstate_ctor(bit_generator_name="MT19937",
62
+ bit_generator_ctor=__bit_generator_ctor):
63
+ """
64
+ Pickling helper function that returns a legacy RandomState-like object
65
+
66
+ Parameters
67
+ ----------
68
+ bit_generator_name : str
69
+ String containing the core BitGenerator's name
70
+ bit_generator_ctor : callable, optional
71
+ Callable function that takes bit_generator_name as its only argument
72
+ and returns an instantized bit generator.
73
+
74
+ Returns
75
+ -------
76
+ rs : RandomState
77
+ Legacy RandomState using the named core BitGenerator
78
+ """
79
+
80
+ return RandomState(bit_generator_ctor(bit_generator_name))