content stringlengths 1 103k ⌀ | path stringlengths 8 216 | filename stringlengths 2 179 | language stringclasses 15
values | size_bytes int64 2 189k | quality_score float64 0.5 0.95 | complexity float64 0 1 | documentation_ratio float64 0 1 | repository stringclasses 5
values | stars int64 0 1k | created_date stringdate 2023-07-10 19:21:08 2025-07-09 19:11:45 | license stringclasses 4
values | is_test bool 2
classes | file_hash stringlengths 32 32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
import abc\nfrom collections.abc import Callable, Mapping, Sequence\nfrom threading import Lock\nfrom typing import (\n Any,\n ClassVar,\n Literal,\n NamedTuple,\n Self,\n TypeAlias,\n TypedDict,\n overload,\n type_check_only,\n)\n\nfrom _typeshed import Incomplete\nfrom typing_extensions imp... | .venv\Lib\site-packages\numpy\random\bit_generator.pyi | bit_generator.pyi | Other | 3,728 | 0.95 | 0.258065 | 0.047619 | node-utils | 585 | 2023-10-12T18:05:52.203518 | GPL-3.0 | false | 427ca6f8e04e8d9ee041d95ba2c543e5 |
#cython: wraparound=False, nonecheck=False, boundscheck=False, cdivision=True, language_level=3\nfrom numpy cimport npy_intp\n\nfrom libc.stdint cimport (uint64_t, int32_t, int64_t)\nfrom numpy.random cimport bitgen_t\n\ncdef extern from "numpy/random/distributions.h":\n\n struct s_binomial_t:\n int has_binom... | .venv\Lib\site-packages\numpy\random\c_distributions.pxd | c_distributions.pxd | Other | 6,454 | 0.95 | 0 | 0.019802 | vue-tools | 717 | 2025-04-18T19:34:53.962094 | Apache-2.0 | false | 8a62bdbc28a7810c2aac8f65bac02250 |
**This software is dual-licensed under the The University of Illinois/NCSA\nOpen Source License (NCSA) and The 3-Clause BSD License**\n\n# NCSA Open Source License\n**Copyright (c) 2019 Kevin Sheppard. All rights reserved.**\n\nDeveloped by: Kevin Sheppard (<kevin.sheppard@economics.ox.ac.uk>,\n<kevin.k.sheppard@gmail.... | .venv\Lib\site-packages\numpy\random\LICENSE.md | LICENSE.md | Markdown | 3,582 | 0.8 | 0 | 0.145455 | node-utils | 691 | 2024-01-16T13:08:07.636326 | MIT | false | 09b2aa3c0d32aea36fb330dc9c728fc4 |
!<arch>\n/ -1 0 3724 `\n | .venv\Lib\site-packages\numpy\random\mtrand.cp313-win_amd64.lib | mtrand.cp313-win_amd64.lib | Other | 17,122 | 0.8 | 0 | 0 | vue-tools | 909 | 2023-11-28T07:08:49.450477 | MIT | false | 70cd84db481fad6cc83698fcf6e6d09b |
import builtins\nfrom collections.abc import Callable\nfrom typing import Any, Literal, overload\n\nimport numpy as np\nfrom numpy import (\n dtype,\n float64,\n int8,\n int16,\n int32,\n int64,\n int_,\n long,\n uint,\n uint8,\n uint16,\n uint32,\n uint64,\n ulong,\n)\nfrom nu... | .venv\Lib\site-packages\numpy\random\mtrand.pyi | mtrand.pyi | Other | 23,390 | 0.95 | 0.183499 | 0.002869 | python-kit | 381 | 2023-11-07T19:44:28.654460 | BSD-3-Clause | false | b928b1176ced7c8b5df500dabe20c004 |
!<arch>\n/ -1 0 3768 `\n | .venv\Lib\site-packages\numpy\random\_bounded_integers.cp313-win_amd64.lib | _bounded_integers.cp313-win_amd64.lib | Other | 18,000 | 0.8 | 0 | 0 | vue-tools | 81 | 2025-03-18T22:18:17.271608 | MIT | false | c9d78d91338aaeccbc2f1f7091102880 |
from libc.stdint cimport (uint8_t, uint16_t, uint32_t, uint64_t,\n\n int8_t, int16_t, int32_t, int64_t, intptr_t)\n\nimport numpy as np\n\ncimport numpy as np\n\nctypedef np.npy_bool bool_t\n\n\n\nfrom numpy.random cimport bitgen_t\n\n\n\ncdef inline uint64_t _gen_mask(uint64_t max_val) noexcep... | .venv\Lib\site-packages\numpy\random\_bounded_integers.pxd | _bounded_integers.pxd | Other | 1,763 | 0.95 | 0.013158 | 0.038462 | python-kit | 755 | 2024-04-15T18:57:13.519133 | BSD-3-Clause | false | 4ef6dcf555273c7aacb8af62cbbe8e01 |
__all__: list[str] = []\n | .venv\Lib\site-packages\numpy\random\_bounded_integers.pyi | _bounded_integers.pyi | Other | 25 | 0.5 | 0 | 0 | vue-tools | 448 | 2024-04-30T07:38:34.977229 | BSD-3-Clause | false | 8cad7b52788a1f41859dbfd33f997a6b |
!<arch>\n/ -1 0 170 `\n | .venv\Lib\site-packages\numpy\random\_common.cp313-win_amd64.lib | _common.cp313-win_amd64.lib | Other | 2,012 | 0.8 | 0 | 0 | python-kit | 145 | 2024-07-09T13:57:07.542027 | BSD-3-Clause | false | d984d6f49aacaa23920d28206a34c8b6 |
#cython: language_level=3\n\nfrom libc.stdint cimport uint32_t, uint64_t, int32_t, int64_t\n\nimport numpy as np\ncimport numpy as np\n\nfrom numpy.random cimport bitgen_t\n\ncdef double POISSON_LAM_MAX\ncdef double LEGACY_POISSON_LAM_MAX\ncdef uint64_t MAXSIZE\n\ncdef enum ConstraintType:\n CONS_NONE\n CONS_NON_... | .venv\Lib\site-packages\numpy\random\_common.pxd | _common.pxd | Other | 5,089 | 0.95 | 0 | 0.012346 | node-utils | 83 | 2025-01-14T04:41:02.940140 | GPL-3.0 | false | ebd5e04b37a24268cb423a6126e12d1a |
from collections.abc import Callable\nfrom typing import Any, NamedTuple, TypeAlias\n\nimport numpy as np\n\n__all__: list[str] = ["interface"]\n\n_CDataVoidPointer: TypeAlias = Any\n\nclass interface(NamedTuple):\n state_address: int\n state: _CDataVoidPointer\n next_uint64: Callable[..., np.uint64]\n next... | .venv\Lib\site-packages\numpy\random\_common.pyi | _common.pyi | Other | 437 | 0.85 | 0.0625 | 0 | awesome-app | 292 | 2024-03-12T17:19:28.353817 | BSD-3-Clause | false | c37c7fb84d3126a2b40251b23a8acada |
!<arch>\n/ -1 0 3998 `\n | .venv\Lib\site-packages\numpy\random\_generator.cp313-win_amd64.lib | _generator.cp313-win_amd64.lib | Other | 18,400 | 0.8 | 0 | 0.008696 | react-lib | 145 | 2024-07-15T02:27:35.138762 | Apache-2.0 | false | 91f761e8e5fc09a340daf40e1d8f1551 |
from collections.abc import Callable\nfrom typing import Any, Literal, TypeAlias, TypeVar, overload\n\nimport numpy as np\nfrom numpy import dtype, float32, float64, int64\nfrom numpy._typing import (\n ArrayLike,\n DTypeLike,\n NDArray,\n _ArrayLikeFloat_co,\n _ArrayLikeInt_co,\n _BoolCodes,\n _Do... | .venv\Lib\site-packages\numpy\random\_generator.pyi | _generator.pyi | Other | 24,865 | 0.95 | 0.153037 | 0.040094 | awesome-app | 144 | 2023-07-12T02:50:02.374348 | Apache-2.0 | false | f2a1e6597396188b3e1136e7ddaad470 |
!<arch>\n/ -1 0 174 `\n | .venv\Lib\site-packages\numpy\random\_mt19937.cp313-win_amd64.lib | _mt19937.cp313-win_amd64.lib | Other | 2,032 | 0.8 | 0 | 0 | node-utils | 845 | 2024-09-22T18:25:56.351013 | Apache-2.0 | false | e03037797441852ee6f4da3874658726 |
MZ | .venv\Lib\site-packages\numpy\random\_mt19937.cp313-win_amd64.pyd | _mt19937.cp313-win_amd64.pyd | Other | 84,992 | 0.75 | 0.040816 | 0.011475 | vue-tools | 806 | 2024-12-03T00:28:27.110531 | GPL-3.0 | false | 642b2c6a2255bafb875f23bce92d6620 |
from typing import TypedDict, type_check_only\n\nfrom numpy import uint32\nfrom numpy._typing import _ArrayLikeInt_co\nfrom numpy.random.bit_generator import BitGenerator, SeedSequence\nfrom numpy.typing import NDArray\n\n@type_check_only\nclass _MT19937Internal(TypedDict):\n key: NDArray[uint32]\n pos: int\n\n@t... | .venv\Lib\site-packages\numpy\random\_mt19937.pyi | _mt19937.pyi | Other | 800 | 0.85 | 0.32 | 0 | react-lib | 701 | 2023-09-17T14:08:26.254375 | Apache-2.0 | false | ba66491d9dabea069fff09c3174351da |
!<arch>\n/ -1 0 166 `\n | .venv\Lib\site-packages\numpy\random\_pcg64.cp313-win_amd64.lib | _pcg64.cp313-win_amd64.lib | Other | 1,996 | 0.8 | 0 | 0 | vue-tools | 393 | 2023-08-18T12:55:17.252601 | MIT | false | 2f33dc87a5f28767d09bae43f06a27fb |
MZ | .venv\Lib\site-packages\numpy\random\_pcg64.cp313-win_amd64.pyd | _pcg64.cp313-win_amd64.pyd | Other | 95,232 | 0.75 | 0.044888 | 0.022758 | vue-tools | 691 | 2023-10-07T16:26:56.708348 | BSD-3-Clause | false | 19e8f41ad7d3b61460c0b3d61a59d222 |
from typing import TypedDict, type_check_only\n\nfrom numpy._typing import _ArrayLikeInt_co\nfrom numpy.random.bit_generator import BitGenerator, SeedSequence\n\n@type_check_only\nclass _PCG64Internal(TypedDict):\n state: int\n inc: int\n\n@type_check_only\nclass _PCG64State(TypedDict):\n bit_generator: str\n ... | .venv\Lib\site-packages\numpy\random\_pcg64.pyi | _pcg64.pyi | Other | 1,186 | 0.85 | 0.318182 | 0 | python-kit | 236 | 2024-03-01T06:07:18.593678 | MIT | false | 53a5bee635fc55cac228edcf96eaa58b |
!<arch>\n/ -1 0 170 `\n | .venv\Lib\site-packages\numpy\random\_philox.cp313-win_amd64.lib | _philox.cp313-win_amd64.lib | Other | 2,012 | 0.8 | 0 | 0 | node-utils | 533 | 2024-02-17T07:16:27.644563 | GPL-3.0 | false | 8897f01476d02a410f4dd39ea4b5cc94 |
MZ | .venv\Lib\site-packages\numpy\random\_philox.cp313-win_amd64.pyd | _philox.cp313-win_amd64.pyd | Other | 78,848 | 0.75 | 0.048137 | 0.011475 | python-kit | 607 | 2025-03-21T02:52:44.386825 | BSD-3-Clause | false | 35b4d6d606ce6d06bcc8d946cdd367a1 |
from typing import TypedDict, type_check_only\n\nfrom numpy import uint64\nfrom numpy._typing import _ArrayLikeInt_co\nfrom numpy.random.bit_generator import BitGenerator, SeedSequence\nfrom numpy.typing import NDArray\n\n@type_check_only\nclass _PhiloxInternal(TypedDict):\n counter: NDArray[uint64]\n key: NDArra... | .venv\Lib\site-packages\numpy\random\_philox.pyi | _philox.pyi | Other | 1,044 | 0.85 | 0.205128 | 0 | vue-tools | 532 | 2024-01-28T17:05:54.511766 | MIT | false | 87cd8aa221f80fdf6a196e43470c467b |
from ._generator import Generator\nfrom ._mt19937 import MT19937\nfrom ._pcg64 import PCG64, PCG64DXSM\nfrom ._philox import Philox\nfrom ._sfc64 import SFC64\nfrom .bit_generator import BitGenerator\nfrom .mtrand import RandomState\n\nBitGenerators = {'MT19937': MT19937,\n 'PCG64': PCG64,\n ... | .venv\Lib\site-packages\numpy\random\_pickle.py | _pickle.py | Python | 2,830 | 0.95 | 0.136364 | 0.013514 | react-lib | 795 | 2024-06-08T01:48:39.362268 | GPL-3.0 | false | 1751f6063a0834f57eda619999cd39be |
from collections.abc import Callable\nfrom typing import Final, Literal, TypedDict, TypeVar, overload, type_check_only\n\nfrom numpy.random._generator import Generator\nfrom numpy.random._mt19937 import MT19937\nfrom numpy.random._pcg64 import PCG64, PCG64DXSM\nfrom numpy.random._philox import Philox\nfrom numpy.random... | .venv\Lib\site-packages\numpy\random\_pickle.pyi | _pickle.pyi | Other | 1,651 | 0.85 | 0.209302 | 0 | awesome-app | 396 | 2023-09-29T06:03:36.325534 | GPL-3.0 | false | bda72cf22c0a868bdb9b348234de764b |
!<arch>\n/ -1 0 166 `\n | .venv\Lib\site-packages\numpy\random\_sfc64.cp313-win_amd64.lib | _sfc64.cp313-win_amd64.lib | Other | 1,996 | 0.8 | 0 | 0 | awesome-app | 497 | 2025-01-22T10:11:34.506441 | GPL-3.0 | false | 383ccca993215675ea053c4388d1d5ec |
MZ | .venv\Lib\site-packages\numpy\random\_sfc64.cp313-win_amd64.pyd | _sfc64.cp313-win_amd64.pyd | Other | 59,392 | 0.95 | 0.043578 | 0.009479 | awesome-app | 352 | 2023-12-01T10:56:56.593228 | Apache-2.0 | false | c14f296395b9de810c369d9e161f2d8f |
from typing import TypedDict, type_check_only\n\nfrom numpy import uint64\nfrom numpy._typing import NDArray, _ArrayLikeInt_co\nfrom numpy.random.bit_generator import BitGenerator, SeedSequence\n\n@type_check_only\nclass _SFC64Internal(TypedDict):\n state: NDArray[uint64]\n\n@type_check_only\nclass _SFC64State(Typed... | .venv\Lib\site-packages\numpy\random\_sfc64.pyi | _sfc64.pyi | Other | 710 | 0.85 | 0.214286 | 0 | react-lib | 539 | 2023-12-26T10:04:39.514681 | BSD-3-Clause | false | a4c053ca31f15ca8e8562b92f6945ee0 |
cimport numpy as np\nfrom libc.stdint cimport uint32_t, uint64_t\n\ncdef extern from "numpy/random/bitgen.h":\n struct bitgen:\n void *state\n uint64_t (*next_uint64)(void *st) nogil\n uint32_t (*next_uint32)(void *st) nogil\n double (*next_double)(void *st) nogil\n uint64_t (*next... | .venv\Lib\site-packages\numpy\random\__init__.pxd | __init__.pxd | Other | 445 | 0.85 | 0 | 0 | vue-tools | 161 | 2024-03-19T12:54:33.812231 | GPL-3.0 | false | b15e3c4ace18a97f03cad53e1f8d85a3 |
"""\n========================\nRandom Number Generation\n========================\n\nUse ``default_rng()`` to create a `Generator` and call its methods.\n\n=============== =========================================================\nGenerator\n--------------- ---------------------------------------------------------\nGen... | .venv\Lib\site-packages\numpy\random\__init__.py | __init__.py | Python | 7,693 | 0.95 | 0.037559 | 0.005348 | vue-tools | 121 | 2024-08-30T03:22:09.631342 | BSD-3-Clause | false | 798f9f8d2f877a2be63e9c915a124a65 |
from ._generator import Generator, default_rng\nfrom ._mt19937 import MT19937\nfrom ._pcg64 import PCG64, PCG64DXSM\nfrom ._philox import Philox\nfrom ._sfc64 import SFC64\nfrom .bit_generator import BitGenerator, SeedSequence\nfrom .mtrand import (\n RandomState,\n beta,\n binomial,\n bytes,\n chisquare... | .venv\Lib\site-packages\numpy\random\__init__.pyi | __init__.pyi | Other | 2,233 | 0.95 | 0 | 0 | vue-tools | 567 | 2023-08-05T22:39:56.487009 | BSD-3-Clause | false | 5e4c07cdd352a51101a78651222985a7 |
import os\nimport sys\nfrom os.path import join\n\nimport pytest\n\nimport numpy as np\nfrom numpy.random import (\n MT19937,\n PCG64,\n PCG64DXSM,\n SFC64,\n Generator,\n Philox,\n RandomState,\n SeedSequence,\n default_rng,\n)\nfrom numpy.random._common import interface\nfrom numpy.testing ... | .venv\Lib\site-packages\numpy\random\tests\test_direct.py | test_direct.py | Python | 20,511 | 0.95 | 0.138514 | 0.022587 | python-kit | 702 | 2025-04-12T20:52:52.714377 | Apache-2.0 | true | dea4e9d60696603082b517b001ebca4b |
import os\nimport shutil\nimport subprocess\nimport sys\nimport sysconfig\nimport warnings\nfrom importlib.util import module_from_spec, spec_from_file_location\n\nimport pytest\n\nimport numpy as np\nfrom numpy.testing import IS_EDITABLE, IS_WASM\n\ntry:\n import cffi\nexcept ImportError:\n cffi = None\n\nif sys... | .venv\Lib\site-packages\numpy\random\tests\test_extending.py | test_extending.py | Python | 4,659 | 0.95 | 0.110236 | 0.123894 | vue-tools | 121 | 2023-11-10T04:50:52.512842 | BSD-3-Clause | true | 2f1e6515d9ff00e8111d3219d9134328 |
import pytest\n\nimport numpy as np\nfrom numpy.random import MT19937, Generator\nfrom numpy.testing import assert_, assert_array_equal\n\n\nclass TestRegression:\n\n def setup_method(self):\n self.mt19937 = Generator(MT19937(121263137472525314065))\n\n def test_vonmises_range(self):\n # Make sure g... | .venv\Lib\site-packages\numpy\random\tests\test_generator_mt19937_regressions.py | test_generator_mt19937_regressions.py | Python | 8,314 | 0.95 | 0.193237 | 0.323699 | node-utils | 340 | 2024-08-19T02:02:49.598919 | GPL-3.0 | true | 723e92f74136410c6445aeef8d8818a6 |
import sys\nimport warnings\n\nimport pytest\n\nimport numpy as np\nfrom numpy import random\nfrom numpy.testing import (\n IS_WASM,\n assert_,\n assert_array_almost_equal,\n assert_array_equal,\n assert_equal,\n assert_no_warnings,\n assert_raises,\n assert_warns,\n suppress_warnings,\n)\n\n... | .venv\Lib\site-packages\numpy\random\tests\test_random.py | test_random.py | Python | 72,055 | 0.75 | 0.123506 | 0.066892 | awesome-app | 261 | 2025-03-01T20:45:03.007861 | Apache-2.0 | true | 7f311a88525df5ccc54291c36f898027 |
import hashlib\nimport pickle\nimport sys\nimport warnings\n\nimport pytest\n\nimport numpy as np\nfrom numpy import random\nfrom numpy.random import MT19937, PCG64\nfrom numpy.testing import (\n IS_WASM,\n assert_,\n assert_array_almost_equal,\n assert_array_equal,\n assert_equal,\n assert_no_warning... | .venv\Lib\site-packages\numpy\random\tests\test_randomstate.py | test_randomstate.py | Python | 87,879 | 0.75 | 0.11784 | 0.05735 | vue-tools | 461 | 2024-12-30T04:39:58.421838 | MIT | true | 0205669666db5a09958c5e14ecbd4d90 |
import sys\n\nimport pytest\n\nimport numpy as np\nfrom numpy import random\nfrom numpy.testing import (\n assert_,\n assert_array_equal,\n assert_raises,\n)\n\n\nclass TestRegression:\n\n def test_VonMises_range(self):\n # Make sure generated random variables are in [-pi, pi].\n # Regression ... | .venv\Lib\site-packages\numpy\random\tests\test_randomstate_regression.py | test_randomstate_regression.py | Python | 8,227 | 0.95 | 0.193548 | 0.21978 | vue-tools | 44 | 2024-03-13T02:09:46.628590 | MIT | true | 3e3f950c449da59c1cc95aab510d3913 |
import sys\n\nimport numpy as np\nfrom numpy import random\nfrom numpy.testing import (\n assert_,\n assert_array_equal,\n assert_raises,\n)\n\n\nclass TestRegression:\n\n def test_VonMises_range(self):\n # Make sure generated random variables are in [-pi, pi].\n # Regression test for ticket #... | .venv\Lib\site-packages\numpy\random\tests\test_regression.py | test_regression.py | Python | 5,623 | 0.95 | 0.203947 | 0.226563 | python-kit | 829 | 2024-01-29T09:28:55.550159 | MIT | true | 90c473a5557c7f2b5579bb5f89e85783 |
import numpy as np\nfrom numpy.random import SeedSequence\nfrom numpy.testing import assert_array_compare, assert_array_equal\n\n\ndef test_reference_data():\n """ Check that SeedSequence generates data the same as the C++ reference.\n\n https://gist.github.com/imneme/540829265469e673d045\n """\n inputs = [... | .venv\Lib\site-packages\numpy\random\tests\test_seed_sequence.py | test_seed_sequence.py | Python | 3,389 | 0.95 | 0.063291 | 0.083333 | node-utils | 529 | 2025-02-13T13:52:09.842535 | BSD-3-Clause | true | 730878b7352b21558d80608b164e2d02 |
import pickle\nfrom functools import partial\n\nimport pytest\n\nimport numpy as np\nfrom numpy.random import MT19937, PCG64, PCG64DXSM, SFC64, Generator, Philox\nfrom numpy.testing import assert_, assert_array_equal, assert_equal\n\n\n@pytest.fixture(scope='module',\n params=(np.bool, np.int8, np.int16,... | .venv\Lib\site-packages\numpy\random\tests\test_smoke.py | test_smoke.py | Python | 28,960 | 0.95 | 0.126984 | 0.018466 | node-utils | 82 | 2023-10-21T01:37:03.717240 | MIT | true | 8ed3c76cae1e2abc42e1239c85bc1e3d |
!fgenerator_pcg64_np121.pkl | .venv\Lib\site-packages\numpy\random\tests\data\generator_pcg64_np121.pkl.gz | generator_pcg64_np121.pkl.gz | Other | 203 | 0.7 | 0.1 | 0 | awesome-app | 60 | 2024-12-05T02:27:43.642329 | MIT | true | ee72d5f24ee531cb004ab725cc8af8f3 |
fgenerator_pcg64_126.pkl | .venv\Lib\site-packages\numpy\random\tests\data\generator_pcg64_np126.pkl.gz | generator_pcg64_np126.pkl.gz | Other | 208 | 0.8 | 0.1 | 0 | node-utils | 43 | 2024-10-25T21:16:24.269419 | Apache-2.0 | true | 0e05cc18ab9d6069de339f9cfd66e807 |
seed, 0xdeadbeaf\n0, 0xc816921f\n1, 0xb3623c6d\n2, 0x5fa391bb\n3, 0x40178d9\n4, 0x7dcc9811\n5, 0x548eb8e6\n6, 0x92ba3125\n7, 0x65fde68d\n8, 0x2f81ec95\n9, 0xbd94f7a2\n10, 0xdc4d9bcc\n11, 0xa672bf13\n12, 0xb41113e\n13, 0xec7e0066\n14, 0x50239372\n15, 0xd9d66b1d\n16, 0xab72a161\n17, 0xddc2e29f\n18, 0x7ea29ab4\n19, 0x80d1... | .venv\Lib\site-packages\numpy\random\tests\data\mt19937-testset-1.csv | mt19937-testset-1.csv | Other | 16,845 | 0.7 | 0 | 0 | python-kit | 265 | 2023-07-29T13:44:50.152956 | MIT | true | 42f930477266cc22c4a0bf3859ad0655 |
seed, 0x0\n0, 0x7ab4ea94\n1, 0x9b561119\n2, 0x4957d02e\n3, 0x7dd3fdc2\n4, 0x5affe54\n5, 0x5a01741c\n6, 0x8b9e8c1f\n7, 0xda5bf11a\n8, 0x509226\n9, 0x64e2ea17\n10, 0x82c6dab5\n11, 0xe4302515\n12, 0x8198b873\n13, 0xc3ec9a82\n14, 0x829dff28\n15, 0x5278e44f\n16, 0x994a7d2c\n17, 0xf1c89398\n18, 0xaf2fddec\n19, 0x22abc6ee\n20... | .venv\Lib\site-packages\numpy\random\tests\data\mt19937-testset-2.csv | mt19937-testset-2.csv | Other | 16,826 | 0.7 | 0 | 0 | vue-tools | 363 | 2024-09-02T19:50:15.593861 | Apache-2.0 | true | e9af7389e46de3a6b804d773dd3fe28e |
seed, 0xdeadbeaf\n0, 0x60d24054e17a0698\n1, 0xd5e79d89856e4f12\n2, 0xd254972fe64bd782\n3, 0xf1e3072a53c72571\n4, 0xd7c1d7393d4115c9\n5, 0x77b75928b763e1e2\n6, 0xee6dee05190f7909\n7, 0x15f7b1c51d7fa319\n8, 0x27e44105f26ac2d7\n9, 0xcc0d88b29e5b415\n10, 0xe07b1a90c685e361\n11, 0xd2e430240de95e38\n12, 0x3260bca9a24ca9da\n1... | .venv\Lib\site-packages\numpy\random\tests\data\pcg64-testset-1.csv | pcg64-testset-1.csv | Other | 24,840 | 0.7 | 0 | 0 | node-utils | 124 | 2024-07-27T08:37:58.422479 | GPL-3.0 | true | 150bbd205f0a7808bd01187892f8f296 |
seed, 0x0\n0, 0xa30febcfd9c2825f\n1, 0x4510bdf882d9d721\n2, 0xa7d3da94ecde8b8\n3, 0x43b27b61342f01d\n4, 0xd0327a782cde513b\n5, 0xe9aa5979a6401c4e\n6, 0x9b4c7b7180edb27f\n7, 0xbac0495ff8829a45\n8, 0x8b2b01e7a1dc7fbf\n9, 0xef60e8078f56bfed\n10, 0xd0dbc74d4700374c\n11, 0xb37868abbe90b0\n12, 0xdb7ed8bf64e6f5f0\n13, 0x89910... | .venv\Lib\site-packages\numpy\random\tests\data\pcg64-testset-2.csv | pcg64-testset-2.csv | Other | 24,846 | 0.7 | 0 | 0 | awesome-app | 649 | 2024-06-13T21:51:13.215593 | BSD-3-Clause | true | fa508f87d9882410ede29e647d69dd8c |
seed, 0xdeadbeaf\n0, 0xdf1ddcf1e22521fe\n1, 0xc71b2f9c706cf151\n2, 0x6922a8cc24ad96b2\n3, 0x82738c549beccc30\n4, 0x5e8415cdb1f17580\n5, 0x64c54ad0c09cb43\n6, 0x361a17a607dce278\n7, 0x4346f6afb7acad68\n8, 0x6e9f14d4f6398d6b\n9, 0xf818d4343f8ed822\n10, 0x6327647daf508ed6\n11, 0xe1d1dbe5496a262a\n12, 0xfc081e619076b2e0\n1... | .venv\Lib\site-packages\numpy\random\tests\data\pcg64dxsm-testset-1.csv | pcg64dxsm-testset-1.csv | Other | 24,834 | 0.7 | 0 | 0 | awesome-app | 9 | 2023-08-16T14:38:12.063035 | MIT | true | 4f8a0bb760030d130b3748a5140a2d96 |
seed, 0x0\n0, 0xd97e4a147f788a70\n1, 0x8dfa7bce56e3a253\n2, 0x13556ed9f53d3c10\n3, 0x55dbf1c241341e98\n4, 0xa2cd98f722eb0e0a\n5, 0x83dfc407203ade8\n6, 0xeaa083df518f030d\n7, 0x44968c87e432852b\n8, 0x573107b9cb8d9ecc\n9, 0x9eedd1da50b9daca\n10, 0xb33a6735ca451e3c\n11, 0x72830d2b39677262\n12, 0x9da8c512fd0207e8\n13, 0x1f... | .venv\Lib\site-packages\numpy\random\tests\data\pcg64dxsm-testset-2.csv | pcg64dxsm-testset-2.csv | Other | 24,840 | 0.7 | 0 | 0 | react-lib | 736 | 2024-07-31T11:50:30.469223 | Apache-2.0 | true | b613c4aadf84117260ec4cc8aa177ca9 |
seed, 0xdeadbeaf\n0, 0xedc95200e2bd66a5\n1, 0x581d4e43b7682352\n2, 0x4be7278f5e373eab\n3, 0xee47f17991a9e7ea\n4, 0x38a7d2ae422f2e2c\n5, 0xe2a6730a3b4a8a15\n6, 0x1588b7a841486442\n7, 0x13ad777246700504\n8, 0x14d157e0f5e18204\n9, 0xd87c22a7ee8c13f1\n10, 0x30cc389ce3542ba1\n11, 0xb8a53348955bb2e9\n12, 0xc08802e3c454f74f\n... | .venv\Lib\site-packages\numpy\random\tests\data\philox-testset-1.csv | philox-testset-1.csv | Other | 24,853 | 0.7 | 0 | 0 | react-lib | 107 | 2024-01-02T17:46:21.624427 | GPL-3.0 | true | 3183e7881d445adeee576ec328708a4c |
seed, 0x0\n0, 0x399e5b222b82fa9\n1, 0x41fd08c1f00f3bc5\n2, 0x78b8824162ee4d04\n3, 0x176747919e02739d\n4, 0xfaa88f002a8d3596\n5, 0x418eb6f592e6c227\n6, 0xef83020b8344dd45\n7, 0x30a74a1a6eaa064b\n8, 0x93d43bf97a490c3\n9, 0xe4ba28b442194cc\n10, 0xc829083a168a8656\n11, 0x73f45d50f8e22849\n12, 0xf912db57352824cc\n13, 0xf524... | .venv\Lib\site-packages\numpy\random\tests\data\philox-testset-2.csv | philox-testset-2.csv | Other | 24,839 | 0.7 | 0 | 0 | node-utils | 367 | 2024-05-01T18:12:44.290221 | Apache-2.0 | true | 1d4af19aa29c321ab03dfda4b5fd282d |
seed, 0xdeadbeaf\n0, 0xa475f55fbb6bc638\n1, 0xb2d594b6c29d971c\n2, 0x275bc4ece4484fb1\n3, 0x569be72d9b3492fb\n4, 0x89a5bb9b206a670c\n5, 0xd951bfa06afdc3f9\n6, 0x7ee2e1029d52a265\n7, 0x12ef1d4de0cb4d4c\n8, 0x41658ba8f0ef0280\n9, 0x5b650c82e4fe09c5\n10, 0x638a9f3e30ec4e94\n11, 0x147487fb2ba9233e\n12, 0x89ef035603d2d1fb\n... | .venv\Lib\site-packages\numpy\random\tests\data\sfc64-testset-1.csv | sfc64-testset-1.csv | Other | 24,841 | 0.7 | 0 | 0 | awesome-app | 899 | 2024-12-15T13:43:16.265953 | GPL-3.0 | true | e3372a8a685fe4106a0392e3363ef65e |
seed, 0x0\n0, 0x91959e5fb96a6332\n1, 0x3c1dd8a25a7e9f21\n2, 0x657bdffc99798d9e\n3, 0x1a04de320b19e022\n4, 0x65b92af0e5f3c61c\n5, 0x9c84070ce8f743c0\n6, 0xbb10e573693cdb25\n7, 0xd65ea9e76b37fb6b\n8, 0x503efd0e76c8ae66\n9, 0xd711dcd04c26d0f\n10, 0x12f53f435814ac8c\n11, 0xb392cd402cfc82bd\n12, 0x461764550e06c889\n13, 0x71... | .venv\Lib\site-packages\numpy\random\tests\data\sfc64-testset-2.csv | sfc64-testset-2.csv | Other | 24,834 | 0.7 | 0 | 0 | python-kit | 591 | 2023-08-25T03:18:07.494924 | GPL-3.0 | true | 105b1258cbf0369612a61009298b5e87 |
fsfc64_np126.pkl | .venv\Lib\site-packages\numpy\random\tests\data\sfc64_np126.pkl.gz | sfc64_np126.pkl.gz | Other | 290 | 0.8 | 0 | 0 | react-lib | 156 | 2024-05-19T12:05:26.538291 | MIT | true | 961e9e014a978016989f3e9a303712f8 |
\n\n | .venv\Lib\site-packages\numpy\random\tests\data\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 198 | 0.7 | 0 | 0 | node-utils | 304 | 2025-04-15T02:39:08.348763 | GPL-3.0 | true | cc59e9b208bcf7b46b80b6000aa5d88c |
\n\n | .venv\Lib\site-packages\numpy\random\tests\__pycache__\test_direct.cpython-313.pyc | test_direct.cpython-313.pyc | Other | 35,634 | 0.8 | 0 | 0.014599 | python-kit | 461 | 2023-08-27T20:35:57.355743 | MIT | true | 39da1bec370fb15fa20eeb73cf4dab02 |
\n\n | .venv\Lib\site-packages\numpy\random\tests\__pycache__\test_extending.cpython-313.pyc | test_extending.cpython-313.pyc | Other | 6,136 | 0.95 | 0.012987 | 0.013158 | python-kit | 741 | 2023-11-19T06:43:27.296931 | MIT | true | d6d6310b3bc67a22b3d1800a8f158e25 |
\n\n | .venv\Lib\site-packages\numpy\random\tests\__pycache__\test_generator_mt19937_regressions.cpython-313.pyc | test_generator_mt19937_regressions.cpython-313.pyc | Other | 13,583 | 0.8 | 0 | 0 | python-kit | 186 | 2025-05-20T14:35:52.996532 | MIT | true | dd641792d16aac64ae9f3452e5351dd4 |
\n\n | .venv\Lib\site-packages\numpy\random\tests\__pycache__\test_randomstate_regression.cpython-313.pyc | test_randomstate_regression.cpython-313.pyc | Other | 15,261 | 0.8 | 0 | 0.029412 | node-utils | 651 | 2025-02-16T12:46:25.567217 | BSD-3-Clause | true | 8d93b47ba305cacd352f0ff553d1a3ef |
\n\n | .venv\Lib\site-packages\numpy\random\tests\__pycache__\test_regression.cpython-313.pyc | test_regression.cpython-313.pyc | Other | 10,979 | 0.8 | 0 | 0 | python-kit | 472 | 2025-04-20T21:29:08.369623 | MIT | true | 286b40f03907b4b1209cfc755d4138eb |
\n\n | .venv\Lib\site-packages\numpy\random\tests\__pycache__\test_seed_sequence.cpython-313.pyc | test_seed_sequence.cpython-313.pyc | Other | 3,432 | 0.8 | 0 | 0.02439 | vue-tools | 107 | 2024-09-29T22:18:08.984557 | Apache-2.0 | true | 3f6687a932fcc5d6c8e173a2ee4c7bad |
\n\n | .venv\Lib\site-packages\numpy\random\tests\__pycache__\test_smoke.cpython-313.pyc | test_smoke.cpython-313.pyc | Other | 56,613 | 0.6 | 0 | 0.010989 | react-lib | 811 | 2024-01-18T16:24:41.008144 | Apache-2.0 | true | bc5f0c892f0797072ea8f932494b017a |
\n\n | .venv\Lib\site-packages\numpy\random\tests\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 193 | 0.7 | 0 | 0 | vue-tools | 753 | 2024-09-16T12:53:23.336843 | BSD-3-Clause | true | 5d7fda41415e9c1d02296597d4f9db46 |
"""\nUse cffi to access any of the underlying C functions from distributions.h\n"""\nimport os\n\nimport cffi\n\nimport numpy as np\n\nfrom .parse import parse_distributions_h\n\nffi = cffi.FFI()\n\ninc_dir = os.path.join(np.get_include(), 'numpy')\n\n# Basic numpy types\nffi.cdef('''\n typedef intptr_t npy_intp;\n ... | .venv\Lib\site-packages\numpy\random\_examples\cffi\extending.py | extending.py | Python | 928 | 0.95 | 0.022727 | 0.133333 | react-lib | 692 | 2024-01-18T20:08:24.142362 | BSD-3-Clause | false | ea3856a5e2bda367a19965bccab94288 |
import os\n\n\ndef parse_distributions_h(ffi, inc_dir):\n """\n Parse distributions.h located in inc_dir for CFFI, filling in the ffi.cdef\n\n Read the function declarations without the "#define ..." macros that will\n be filled in when loading the library.\n """\n\n with open(os.path.join(inc_dir, 'r... | .venv\Lib\site-packages\numpy\random\_examples\cffi\parse.py | parse.py | Python | 1,803 | 0.95 | 0.245283 | 0.155556 | awesome-app | 465 | 2024-12-16T22:15:34.734391 | GPL-3.0 | false | 720d079af888e4ff2c5ad9afe3399aa6 |
\n\n | .venv\Lib\site-packages\numpy\random\_examples\cffi\__pycache__\extending.cpython-313.pyc | extending.cpython-313.pyc | Other | 1,665 | 0.95 | 0 | 0 | node-utils | 15 | 2024-04-05T17:35:51.981920 | MIT | false | b5bf0a1a599080e72398bbc6141b5d1f |
\n\n | .venv\Lib\site-packages\numpy\random\_examples\cffi\__pycache__\parse.cpython-313.pyc | parse.cpython-313.pyc | Other | 2,360 | 0.95 | 0.0625 | 0 | react-lib | 119 | 2024-12-15T15:35:31.171306 | MIT | false | ce9c551a4d6b28ce6c99a7bf17048abe |
#cython: language_level=3\n\nfrom libc.stdint cimport uint32_t\nfrom cpython.pycapsule cimport PyCapsule_IsValid, PyCapsule_GetPointer\n\nimport numpy as np\ncimport numpy as np\ncimport cython\n\nfrom numpy.random cimport bitgen_t\nfrom numpy.random import PCG64\n\nnp.import_array()\n\n\n@cython.boundscheck(False)\n@c... | .venv\Lib\site-packages\numpy\random\_examples\cython\extending.pyx | extending.pyx | Other | 2,344 | 0.95 | 0.116883 | 0.081967 | react-lib | 547 | 2023-12-23T15:15:32.779512 | MIT | false | 54d792dbf85996089a17048921769114 |
#cython: language_level=3\n"""\nThis file shows how the to use a BitGenerator to create a distribution.\n"""\nimport numpy as np\ncimport numpy as np\ncimport cython\nfrom cpython.pycapsule cimport PyCapsule_IsValid, PyCapsule_GetPointer\nfrom libc.stdint cimport uint16_t, uint64_t\nfrom numpy.random cimport bitgen_t\n... | .venv\Lib\site-packages\numpy\random\_examples\cython\extending_distributions.pyx | extending_distributions.pyx | Other | 3,984 | 0.95 | 0.127119 | 0.086538 | awesome-app | 87 | 2024-09-18T10:45:47.668230 | BSD-3-Clause | false | f500b1e8463a4abc526dc6885eb25230 |
project('random-build-examples', 'c', 'cpp', 'cython')\n\npy_mod = import('python')\npy3 = py_mod.find_installation(pure: false)\n\ncc = meson.get_compiler('c')\ncy = meson.get_compiler('cython')\n\n# Keep synced with pyproject.toml\nif not cy.version().version_compare('>=3.0.6')\n error('tests requires Cython >= 3.0.... | .venv\Lib\site-packages\numpy\random\_examples\cython\meson.build | meson.build | Other | 1,747 | 0.95 | 0.037736 | 0.021739 | vue-tools | 435 | 2023-11-27T13:50:02.943762 | GPL-3.0 | false | 3d70fb85443f979dc6e2031899453024 |
from timeit import timeit\n\nimport numba as nb\n\nimport numpy as np\nfrom numpy.random import PCG64\n\nbit_gen = PCG64()\nnext_d = bit_gen.cffi.next_double\nstate_addr = bit_gen.cffi.state_address\n\ndef normals(n, state):\n out = np.empty(n)\n for i in range((n + 1) // 2):\n x1 = 2.0 * next_d(state) - 1... | .venv\Lib\site-packages\numpy\random\_examples\numba\extending.py | extending.py | Python | 2,045 | 0.95 | 0.139535 | 0.064516 | awesome-app | 790 | 2023-09-11T04:39:11.982220 | BSD-3-Clause | false | 32586ad5d8b22f0c91cb41088dce6b36 |
r"""\nBuilding the required library in this example requires a source distribution\nof NumPy or clone of the NumPy git repository since distributions.c is not\nincluded in binary distributions.\n\nOn *nix, execute in numpy/random/src/distributions\n\nexport ${PYTHON_VERSION}=3.8 # Python version\nexport PYTHON_INCLUDE=... | .venv\Lib\site-packages\numpy\random\_examples\numba\extending_distributions.py | extending_distributions.py | Python | 2,103 | 0.95 | 0.059701 | 0.038462 | awesome-app | 892 | 2025-03-28T12:21:01.523751 | MIT | false | 9e717425f68dcc06d204e2e209287c51 |
\n\n | .venv\Lib\site-packages\numpy\random\_examples\numba\__pycache__\extending.cpython-313.pyc | extending.cpython-313.pyc | Other | 3,789 | 0.8 | 0.020408 | 0 | node-utils | 222 | 2023-10-11T14:37:01.971053 | MIT | false | f6aed96c6a4b583440a33c9c58a2502c |
\n\n | .venv\Lib\site-packages\numpy\random\_examples\numba\__pycache__\extending_distributions.cpython-313.pyc | extending_distributions.cpython-313.pyc | Other | 2,747 | 0.95 | 0 | 0.044444 | python-kit | 829 | 2024-07-30T15:54:25.817227 | Apache-2.0 | false | b2143c294556860577a891042ef4ac24 |
\n\n | .venv\Lib\site-packages\numpy\random\__pycache__\_pickle.cpython-313.pyc | _pickle.cpython-313.pyc | Other | 2,824 | 0.95 | 0.088235 | 0 | node-utils | 381 | 2024-08-20T11:12:59.067259 | MIT | false | 5809fa72f93a75c31f29042f137fc572 |
\n\n | .venv\Lib\site-packages\numpy\random\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 7,471 | 0.95 | 0.039216 | 0 | awesome-app | 774 | 2025-03-08T02:47:13.980576 | MIT | false | c62ca79af13bd735bc39175698271779 |
from numpy._core.records import *\nfrom numpy._core.records import __all__, __doc__\n | .venv\Lib\site-packages\numpy\rec\__init__.py | __init__.py | Python | 85 | 0.65 | 0 | 0 | node-utils | 269 | 2024-03-24T20:25:47.804487 | Apache-2.0 | false | 3e73a2891c547eff1e02f83f7287f6dd |
from numpy._core.records import (\n array,\n find_duplicate,\n format_parser,\n fromarrays,\n fromfile,\n fromrecords,\n fromstring,\n recarray,\n record,\n)\n\n__all__ = [\n "record",\n "recarray",\n "format_parser",\n "fromarrays",\n "fromrecords",\n "fromstring",\n "fr... | .venv\Lib\site-packages\numpy\rec\__init__.pyi | __init__.pyi | Other | 370 | 0.85 | 0 | 0 | python-kit | 655 | 2025-04-27T21:34:47.110941 | Apache-2.0 | false | a67f474c34d9306c6ec906fe7a3336ba |
\n\n | .venv\Lib\site-packages\numpy\rec\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 277 | 0.7 | 0 | 0 | vue-tools | 81 | 2024-03-10T13:54:32.738150 | MIT | false | 0843caf2f6fa41eb9c1b8f363d8376a7 |
from numpy._core.strings import *\nfrom numpy._core.strings import __all__, __doc__\n | .venv\Lib\site-packages\numpy\strings\__init__.py | __init__.py | Python | 85 | 0.65 | 0 | 0 | node-utils | 745 | 2024-06-08T12:58:56.594893 | MIT | false | 185e6e43d6eb2c3db8d3acef9070f647 |
from numpy._core.strings import (\n add,\n capitalize,\n center,\n count,\n decode,\n encode,\n endswith,\n equal,\n expandtabs,\n find,\n greater,\n greater_equal,\n index,\n isalnum,\n isalpha,\n isdecimal,\n isdigit,\n islower,\n isnumeric,\n isspace,\n ... | .venv\Lib\site-packages\numpy\strings\__init__.pyi | __init__.pyi | Other | 1,416 | 0.85 | 0 | 0 | vue-tools | 145 | 2025-01-08T23:22:19.496522 | MIT | false | cdeb05251e998b84248c94d7763c8d4a |
\n\n | .venv\Lib\site-packages\numpy\strings\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 281 | 0.7 | 0 | 0 | python-kit | 302 | 2024-01-27T14:34:20.204590 | MIT | false | 858764430c033ae2adb382f140d7335e |
"""Tools for testing implementations of __array_function__ and ufunc overrides\n\n\n"""\n\nimport numpy._core.umath as _umath\nfrom numpy import ufunc as _ufunc\nfrom numpy._core.overrides import ARRAY_FUNCTIONS as _array_functions\n\n\ndef get_overridable_numpy_ufuncs():\n """List all numpy ufuncs overridable via `... | .venv\Lib\site-packages\numpy\testing\overrides.py | overrides.py | Python | 2,218 | 0.95 | 0.190476 | 0.031746 | python-kit | 469 | 2025-05-28T10:54:22.211249 | Apache-2.0 | true | d7ac9353934af221306733106bf1d9cb |
from collections.abc import Callable, Hashable\nfrom typing import Any\n\nfrom typing_extensions import TypeIs\n\nimport numpy as np\n\ndef get_overridable_numpy_ufuncs() -> set[np.ufunc]: ...\ndef get_overridable_numpy_array_functions() -> set[Callable[..., Any]]: ...\ndef allows_array_ufunc_override(func: object) -> ... | .venv\Lib\site-packages\numpy\testing\overrides.pyi | overrides.pyi | Other | 408 | 0.85 | 0.363636 | 0 | react-lib | 226 | 2024-07-18T11:41:17.487211 | Apache-2.0 | true | cf206e6b302f699afbab38d65bab4182 |
#!/usr/bin/env python3\n"""Prints type-coercion tables for the built-in NumPy types\n\n"""\nfrom collections import namedtuple\n\nimport numpy as np\nfrom numpy._core.numerictypes import obj2sctype\n\n\n# Generic object that can be added, but doesn't do anything else\nclass GenericObject:\n def __init__(self, v):\n ... | .venv\Lib\site-packages\numpy\testing\print_coercion_tables.py | print_coercion_tables.py | Python | 6,493 | 0.95 | 0.178744 | 0.038889 | vue-tools | 615 | 2023-12-14T16:44:36.195237 | MIT | true | 00e25acabe3b046fb27fe2d4e4cfe21b |
from collections.abc import Iterable\nfrom typing import ClassVar, Generic, Self\n\nfrom typing_extensions import TypeVar\n\nimport numpy as np\n\n_VT_co = TypeVar("_VT_co", default=object, covariant=True)\n\n# undocumented\nclass GenericObject(Generic[_VT_co]):\n dtype: ClassVar[np.dtype[np.object_]] = ...\n v: ... | .venv\Lib\site-packages\numpy\testing\print_coercion_tables.pyi | print_coercion_tables.pyi | Other | 848 | 0.95 | 0.259259 | 0.047619 | node-utils | 986 | 2024-11-09T01:19:25.889390 | BSD-3-Clause | true | 30cf349abb63e8665187c29aeea4a59d |
"""Common test support for all numpy test scripts.\n\nThis single module should provide all the common functionality for numpy tests\nin a single location, so that test scripts can just import it and work right\naway.\n\n"""\nfrom unittest import TestCase\n\nfrom . import _private, overrides\nfrom ._private import extb... | .venv\Lib\site-packages\numpy\testing\__init__.py | __init__.py | Python | 603 | 0.85 | 0.090909 | 0 | python-kit | 854 | 2025-06-14T20:18:49.537083 | GPL-3.0 | true | 678e8ad60609e5c9d8190178478ad727 |
from unittest import TestCase\n\nfrom . import overrides\nfrom ._private.utils import (\n HAS_LAPACK64,\n HAS_REFCOUNT,\n IS_EDITABLE,\n IS_INSTALLED,\n IS_MUSL,\n IS_PYPY,\n IS_PYSTON,\n IS_WASM,\n NOGIL_BUILD,\n NUMPY_ROOT,\n IgnoreException,\n KnownFailureException,\n SkipTest,... | .venv\Lib\site-packages\numpy\testing\__init__.pyi | __init__.pyi | Other | 2,147 | 0.85 | 0 | 0 | node-utils | 355 | 2024-04-14T23:47:22.284445 | MIT | true | c1e86de418fd2d3a01dbf9699f75e920 |
import itertools\nimport os\nimport re\nimport sys\nimport warnings\nimport weakref\n\nimport pytest\n\nimport numpy as np\nimport numpy._core._multiarray_umath as ncu\nfrom numpy.testing import (\n HAS_REFCOUNT,\n assert_,\n assert_allclose,\n assert_almost_equal,\n assert_approx_equal,\n assert_arra... | .venv\Lib\site-packages\numpy\testing\tests\test_utils.py | test_utils.py | Python | 71,492 | 0.75 | 0.112154 | 0.085842 | node-utils | 859 | 2024-04-28T11:02:38.228297 | Apache-2.0 | true | 3e3365e9ccc54194bbb0d02a6a17161e |
\n\n | .venv\Lib\site-packages\numpy\testing\tests\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 194 | 0.7 | 0 | 0 | python-kit | 322 | 2025-02-02T19:19:42.753777 | BSD-3-Clause | true | b902805e968d14fc5b169d91f9fde218 |
"""\nBuild a c-extension module on-the-fly in tests.\nSee build_and_import_extensions for usage hints\n\n"""\n\nimport os\nimport pathlib\nimport subprocess\nimport sys\nimport sysconfig\nimport textwrap\n\n__all__ = ['build_and_import_extension', 'compile_extension_module']\n\n\ndef build_and_import_extension(\n ... | .venv\Lib\site-packages\numpy\testing\_private\extbuild.py | extbuild.py | Python | 7,966 | 0.95 | 0.096 | 0.013699 | react-lib | 698 | 2025-06-06T02:59:09.357970 | Apache-2.0 | true | 563cf82ebd77e164b13a3ca9cb537b6b |
import pathlib\nimport types\nfrom collections.abc import Sequence\n\n__all__ = ["build_and_import_extension", "compile_extension_module"]\n\ndef build_and_import_extension(\n modname: str,\n functions: Sequence[tuple[str, str, str]],\n *,\n prologue: str = "",\n build_dir: pathlib.Path | None = None,\n ... | .venv\Lib\site-packages\numpy\testing\_private\extbuild.pyi | extbuild.pyi | Other | 651 | 0.95 | 0.08 | 0.090909 | react-lib | 503 | 2024-01-22T17:55:30.560495 | Apache-2.0 | true | b724641bf7e68caf8a4cafe267db7b3c |
"""\nUtility function to facilitate testing.\n\n"""\nimport concurrent.futures\nimport contextlib\nimport gc\nimport importlib.metadata\nimport operator\nimport os\nimport pathlib\nimport platform\nimport pprint\nimport re\nimport shutil\nimport sys\nimport sysconfig\nimport threading\nimport warnings\nfrom functools i... | .venv\Lib\site-packages\numpy\testing\_private\utils.py | utils.py | Python | 98,466 | 0.75 | 0.163103 | 0.053109 | python-kit | 442 | 2024-09-08T13:07:45.770998 | Apache-2.0 | true | 081c63b859493703e8e034ad03007be6 |
import ast\nimport sys\nimport types\nimport unittest\nimport warnings\nfrom collections.abc import Callable, Iterable, Sequence\nfrom contextlib import _GeneratorContextManager\nfrom pathlib import Path\nfrom re import Pattern\nfrom typing import (\n Any,\n AnyStr,\n ClassVar,\n Final,\n Generic,\n N... | .venv\Lib\site-packages\numpy\testing\_private\utils.pyi | utils.pyi | Other | 13,442 | 0.95 | 0.144289 | 0.114286 | react-lib | 240 | 2024-04-20T11:47:58.875116 | MIT | true | 3d4fff6345d98e520ffda1ece103d3c4 |
\n\n | .venv\Lib\site-packages\numpy\testing\_private\__pycache__\extbuild.cpython-313.pyc | extbuild.cpython-313.pyc | Other | 9,230 | 0.95 | 0.041237 | 0.021622 | awesome-app | 476 | 2024-12-02T13:46:22.625901 | BSD-3-Clause | true | 1a4e3e78eff9bb3ae601a2ecf30e6820 |
\n\n | .venv\Lib\site-packages\numpy\testing\_private\__pycache__\utils.cpython-313.pyc | utils.cpython-313.pyc | Other | 103,798 | 0.75 | 0.061872 | 0.008521 | vue-tools | 692 | 2024-10-19T11:46:15.488624 | BSD-3-Clause | true | 594f7f12bb6845605824f859b5e88c65 |
\n\n | .venv\Lib\site-packages\numpy\testing\_private\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 197 | 0.7 | 0 | 0 | node-utils | 411 | 2024-01-26T18:56:15.815074 | MIT | true | 03557a1f1ddc56df68338eeba42ec213 |
\n\n | .venv\Lib\site-packages\numpy\testing\__pycache__\overrides.cpython-313.pyc | overrides.cpython-313.pyc | Other | 2,582 | 0.95 | 0.147059 | 0 | python-kit | 527 | 2023-12-04T20:43:57.535362 | MIT | true | a1cfb7c0582d249288bf55c177fd8544 |
\n\n | .venv\Lib\site-packages\numpy\testing\__pycache__\print_coercion_tables.cpython-313.pyc | print_coercion_tables.cpython-313.pyc | Other | 8,232 | 0.95 | 0.009804 | 0 | python-kit | 127 | 2023-07-29T21:18:52.357021 | BSD-3-Clause | true | 9e0750492577e6e256c5781fb6e6e96e |
\n\n | .venv\Lib\site-packages\numpy\testing\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 883 | 0.85 | 0.133333 | 0 | react-lib | 157 | 2024-04-12T06:16:09.089848 | BSD-3-Clause | true | 84758e1781ba8f234c5c70acc214c810 |
import importlib\nimport importlib.metadata\nimport os\nimport pathlib\nimport subprocess\n\nimport pytest\n\nimport numpy as np\nimport numpy._core.include\nimport numpy._core.lib.pkgconfig\nfrom numpy.testing import IS_EDITABLE, IS_INSTALLED, IS_WASM, NUMPY_ROOT\n\nINCLUDE_DIR = NUMPY_ROOT / '_core' / 'include'\nPKG_... | .venv\Lib\site-packages\numpy\tests\test_configtool.py | test_configtool.py | Python | 1,787 | 0.85 | 0.145833 | 0 | react-lib | 634 | 2024-11-09T07:15:18.862604 | MIT | true | 014b99a4e225871100af178392560353 |
import sys\nimport sysconfig\nimport weakref\nfrom pathlib import Path\n\nimport pytest\n\nimport numpy as np\nfrom numpy.ctypeslib import as_array, load_library, ndpointer\nfrom numpy.testing import assert_, assert_array_equal, assert_equal, assert_raises\n\ntry:\n import ctypes\nexcept ImportError:\n ctypes = N... | .venv\Lib\site-packages\numpy\tests\test_ctypeslib.py | test_ctypeslib.py | Python | 12,752 | 0.95 | 0.100796 | 0.053797 | vue-tools | 992 | 2025-03-16T11:00:11.448689 | BSD-3-Clause | true | df4065ee9eba47d229a6e1f21b3a213e |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.