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
#ifndef NUMPY_CORE_INCLUDE_NUMPY_UTILS_H_\n#define NUMPY_CORE_INCLUDE_NUMPY_UTILS_H_\n\n#ifndef __COMP_NPY_UNUSED\n #if defined(__GNUC__)\n #define __COMP_NPY_UNUSED __attribute__ ((__unused__))\n #elif defined(__ICC)\n #define __COMP_NPY_UNUSED __attribute__ ((__unused__))\n #elif defined(__clan...
.venv\Lib\site-packages\numpy\_core\include\numpy\utils.h
utils.h
C
1,222
0.95
0.054054
1
node-utils
187
2024-05-11T19:41:12.282886
MIT
false
29f08ef2059c21c3001b05dacd8ebc48
#ifndef NUMPY_CORE_INCLUDE_NUMPY__NEIGHBORHOOD_IMP_H_\n#error You should not include this header directly\n#endif\n/*\n * Private API (here for inline)\n */\nstatic inline int\n_PyArrayNeighborhoodIter_IncrCoord(PyArrayNeighborhoodIterObject* iter);\n\n/*\n * Update to next item of the iterator\n *\n * Note: this simpl...
.venv\Lib\site-packages\numpy\_core\include\numpy\_neighborhood_iterator_imp.h
_neighborhood_iterator_imp.h
C
1,947
0.95
0.066667
0.435897
node-utils
779
2023-12-03T04:26:19.571187
MIT
false
5ef85e23eefd97f448d4d08111126905
/* #undef NPY_HAVE_ENDIAN_H */\n\n#define NPY_SIZEOF_SHORT 2\n#define NPY_SIZEOF_INT 4\n#define NPY_SIZEOF_LONG 4\n#define NPY_SIZEOF_FLOAT 4\n#define NPY_SIZEOF_COMPLEX_FLOAT 8\n#define NPY_SIZEOF_DOUBLE 8\n#define NPY_SIZEOF_COMPLEX_DOUBLE 16\n#define NPY_SIZEOF_LONGDOUBLE 8\n#define NPY_SIZEOF_COMPLEX_LONGDOUBLE 16\...
.venv\Lib\site-packages\numpy\_core\include\numpy\_numpyconfig.h
_numpyconfig.h
C
902
0.95
0.030303
1
awesome-app
941
2024-09-14T08:07:52.867573
Apache-2.0
false
f965cc7ef71c965b0b366ddbdd6d2bd6
/*\n * Public exposure of the DType Classes. These are tricky to expose\n * via the Python API, so they are exposed through this header for now.\n *\n * These definitions are only relevant for the public API and we reserve\n * the slots 320-360 in the API table generation for this (currently).\n *\n * TODO: This file ...
.venv\Lib\site-packages\numpy\_core\include\numpy\_public_dtype_api_table.h
_public_dtype_api_table.h
C
4,660
0.95
0.081395
1
python-kit
118
2023-09-22T15:46:11.320465
GPL-3.0
false
27c8601ffdceba559496f0eb8519d7fe
\n/* These pointers will be stored in the C-object for use in other\n extension modules\n*/\n\nvoid *PyArray_API[] = {\n (void *) PyArray_GetNDArrayCVersion,\n NULL,\n (void *) &PyArray_Type,\n (void *) &PyArrayDescr_Type,\n NULL,\n (void *) &PyArrayIter_Type,\n (void...
.venv\Lib\site-packages\numpy\_core\include\numpy\__multiarray_api.c
__multiarray_api.c
C
13,074
0.8
0.00266
0.005348
node-utils
541
2025-01-06T13:39:06.664085
Apache-2.0
false
0124d456e3dda15ce851c57b77149a66
\n#if defined(_MULTIARRAYMODULE) || defined(WITH_CPYCHECKER_STEALS_REFERENCE_TO_ARG_ATTRIBUTE)\n\ntypedef struct {\n PyObject_HEAD\n npy_bool obval;\n} PyBoolScalarObject;\n\nextern NPY_NO_EXPORT PyTypeObject PyArrayNeighborhoodIter_Type;\nextern NPY_NO_EXPORT PyBoolScalarObject _PyArrayScalar_BoolValues[...
.venv\Lib\site-packages\numpy\_core\include\numpy\__multiarray_api.h
__multiarray_api.h
C
63,261
0.75
0.027127
0.248208
awesome-app
47
2024-08-09T20:13:40.588022
BSD-3-Clause
false
79a8e598da5ff19d64d0653b3e044b15
\n/* These pointers will be stored in the C-object for use in other\n extension modules\n*/\n\nvoid *PyUFunc_API[] = {\n (void *) &PyUFunc_Type,\n (void *) PyUFunc_FromFuncAndData,\n (void *) PyUFunc_RegisterLoopForType,\n NULL,\n (void *) PyUFunc_f_f_As_d_d,\n (void *) PyUF...
.venv\Lib\site-packages\numpy\_core\include\numpy\__ufunc_api.c
__ufunc_api.c
C
1,809
0.8
0.018519
0.038462
react-lib
212
2023-08-04T20:09:29.059812
Apache-2.0
false
bfa8d5dc70f31db70c1eb4c403336be4
\n#ifdef _UMATHMODULE\n\nextern NPY_NO_EXPORT PyTypeObject PyUFunc_Type;\n\nextern NPY_NO_EXPORT PyTypeObject PyUFunc_Type;\n\nNPY_NO_EXPORT PyObject * PyUFunc_FromFuncAndData \\n (PyUFuncGenericFunction *, void *const *, const char *, int, int, int, int, const char *, const char *, int);\nNPY_NO_EXPORT int PyU...
.venv\Lib\site-packages\numpy\_core\include\numpy\__ufunc_api.h
__ufunc_api.h
C
13,516
0.95
0.064516
0.227848
vue-tools
717
2023-07-12T14:20:03.476224
GPL-3.0
false
7924bb5be488622cb7b4b6afccdaf28d
#ifndef NUMPY_CORE_INCLUDE_NUMPY_RANDOM_BITGEN_H_\n#define NUMPY_CORE_INCLUDE_NUMPY_RANDOM_BITGEN_H_\n\n#pragma once\n#include <stddef.h>\n#include <stdbool.h>\n#include <stdint.h>\n\n/* Must match the declaration in numpy/random/<any>.pxd */\n\ntypedef struct bitgen {\n void *state;\n uint64_t (*next_uint64)(void *s...
.venv\Lib\site-packages\numpy\_core\include\numpy\random\bitgen.h
bitgen.h
C
508
0.95
0
0.533333
awesome-app
630
2025-04-11T17:10:36.871008
BSD-3-Clause
false
b80b1830332f082e431fdccfff2f8489
#ifndef NUMPY_CORE_INCLUDE_NUMPY_RANDOM_DISTRIBUTIONS_H_\n#define NUMPY_CORE_INCLUDE_NUMPY_RANDOM_DISTRIBUTIONS_H_\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include <Python.h>\n#include "numpy/npy_common.h"\n#include <stddef.h>\n#include <stdbool.h>\n#include <stdint.h>\n\n#include "numpy/npy_math.h"\n#include "n...
.venv\Lib\site-packages\numpy\_core\include\numpy\random\distributions.h
distributions.h
C
10,070
0.95
0.009569
0.243094
node-utils
531
2024-04-06T09:42:10.636055
BSD-3-Clause
false
a44f47404af85258e2959cd100340685
// libdivide.h - Optimized integer division\n// https://libdivide.com\n//\n// Copyright (C) 2010 - 2019 ridiculous_fish, <libdivide@ridiculousfish.com>\n// Copyright (C) 2016 - 2019 Kim Walisch, <kim.walisch@gmail.com>\n//\n// libdivide is dual-licensed under the Boost or zlib licenses.\n// You may use libdivide under ...
.venv\Lib\site-packages\numpy\_core\include\numpy\random\libdivide.h
libdivide.h
C
82,217
0.75
0.08658
0.293413
awesome-app
968
2024-07-27T11:58:18.994505
BSD-3-Clause
false
4a27c048f093a7d867140c05ebca7c19
zlib License\n ------------\n\n Copyright (C) 2010 - 2019 ridiculous_fish, <libdivide@ridiculousfish.com>\n Copyright (C) 2016 - 2019 Kim Walisch, <kim.walisch@gmail.com>\n\n This software is provided 'as-is', without any express or implied\n warranty. In no event will the authors be held liable for any damages...
.venv\Lib\site-packages\numpy\_core\include\numpy\random\LICENSE.txt
LICENSE.txt
Other
1,039
0.85
0.095238
0
react-lib
325
2024-10-08T03:04:14.300316
Apache-2.0
false
e1c97b70a98c8ec5aff0aa275fdb2c91
[meta]\nName = mlib\nDescription = Math library used with this version of numpy\nVersion = 1.0\n\n[default]\nLibs=\nCflags=\n\n[msvc]\nLibs=m.lib\nCflags=\n
.venv\Lib\site-packages\numpy\_core\lib\npy-pkg-config\mlib.ini
mlib.ini
Other
156
0.7
0
0
react-lib
104
2024-02-18T01:36:51.538937
Apache-2.0
false
f9f1205b6d47bc46f71266f60ca86c17
[meta]\nName=npymath\nDescription=Portable, core math library implementing C99 standard\nVersion=0.1\n\n[variables]\npkgname=numpy._core\nprefix=${pkgdir}\nlibdir=${prefix}\lib\nincludedir=${prefix}\include\n\n[default]\nLibs=-L${libdir} -lnpymath\nCflags=-I${includedir}\nRequires=mlib\n\n[msvc]\nLibs=/LIBPATH:${libdir...
.venv\Lib\site-packages\numpy\_core\lib\npy-pkg-config\npymath.ini
npymath.ini
Other
381
0.7
0
0
node-utils
681
2025-06-19T11:54:52.991765
BSD-3-Clause
false
2d7ad4bea95b37fa1a036e7620159993
prefix=${pcfiledir}/../..\nincludedir=${prefix}/include\n\nName: numpy\nDescription: NumPy is the fundamental package for scientific computing with Python.\nVersion: 2.3.1\nCflags: -I${includedir}\n
.venv\Lib\site-packages\numpy\_core\lib\pkgconfig\numpy.pc
numpy.pc
Other
198
0.7
0.142857
0
python-kit
670
2023-11-13T00:02:19.610435
MIT
false
279f3777df404c0b74bd29c1cdf5090b
import numbers\n\nimport numpy as np\nfrom numpy._core.numerictypes import sctypes\nfrom numpy.testing import assert_\n\n\nclass TestABC:\n def test_abstract(self):\n assert_(issubclass(np.number, numbers.Number))\n\n assert_(issubclass(np.inexact, numbers.Complex))\n assert_(issubclass(np.compl...
.venv\Lib\site-packages\numpy\_core\tests\test_abc.py
test_abc.py
Python
2,275
0.85
0.185185
0
awesome-app
963
2025-02-15T18:43:04.813550
GPL-3.0
true
c63ea08b7e5a5723dcebfc7b925f52f9
import sys\n\nimport pytest\nfrom numpy._core._rational_tests import rational\n\nimport numpy as np\nimport numpy._core.umath as ncu\nfrom numpy.testing import (\n HAS_REFCOUNT,\n assert_,\n assert_array_equal,\n assert_equal,\n assert_raises,\n assert_warns,\n)\n\n\ndef test_array_array():\n tobj ...
.venv\Lib\site-packages\numpy\_core\tests\test_api.py
test_api.py
Python
23,575
0.95
0.061192
0.151923
node-utils
629
2024-03-04T11:05:23.370623
MIT
true
88d8cecbd2253d75b7a161b572fedb1a
"""\nTests for the private NumPy argument parsing functionality.\nThey mainly exists to ensure good test coverage without having to try the\nweirder cases on actual numpy functions but test them in one place.\n\nThe test function is defined in C to be equivalent to (errors may not always\nmatch exactly, and could be ad...
.venv\Lib\site-packages\numpy\_core\tests\test_argparse.py
test_argparse.py
Python
2,962
0.95
0.184783
0.084507
react-lib
260
2025-04-12T23:55:44.971216
MIT
true
f37e342b0609b0c14b9702e4997223e9
"""\nThis file tests the generic aspects of ArrayMethod. At the time of writing\nthis is private API, but when added, public API may be added here.\n"""\n\nimport types\nfrom typing import Any\n\nimport pytest\nfrom numpy._core._multiarray_umath import _get_castingimpl as get_castingimpl\n\nimport numpy as np\n\n\ncla...
.venv\Lib\site-packages\numpy\_core\tests\test_arraymethod.py
test_arraymethod.py
Python
3,307
0.95
0.130952
0.1
node-utils
658
2024-06-25T15:05:09.545753
GPL-3.0
true
c8158eea7861f5928c1831cfcc109d08
import pytest\n\nimport numpy as np\nfrom numpy.testing import assert_array_equal\n\n\ndef test_matrix_transpose_raises_error_for_1d():\n msg = "matrix transpose with ndim < 2 is undefined"\n arr = np.arange(48)\n with pytest.raises(ValueError, match=msg):\n arr.mT\n\n\ndef test_matrix_transpose_equals_...
.venv\Lib\site-packages\numpy\_core\tests\test_arrayobject.py
test_arrayobject.py
Python
2,671
0.95
0.146667
0.232143
awesome-app
980
2023-07-31T13:20:14.951506
MIT
true
297c52c54ccc6cab01f82bb2689cd844
import gc\nimport sys\nimport textwrap\n\nimport pytest\nfrom hypothesis import given\nfrom hypothesis.extra import numpy as hynp\n\nimport numpy as np\nfrom numpy._core.arrayprint import _typelessdata\nfrom numpy.testing import (\n HAS_REFCOUNT,\n IS_WASM,\n assert_,\n assert_equal,\n assert_raises,\n ...
.venv\Lib\site-packages\numpy\_core\tests\test_arrayprint.py
test_arrayprint.py
Python
52,066
0.75
0.097139
0.061472
python-kit
919
2023-10-31T05:52:11.587517
Apache-2.0
true
c775d2d3f45797c36809fb8a01adfbcc
import pytest\n\nimport numpy as np\n\ninfo = np.__array_namespace_info__()\n\n\ndef test_capabilities():\n caps = info.capabilities()\n assert caps["boolean indexing"] is True\n assert caps["data-dependent shapes"] is True\n\n # This will be added in the 2024.12 release of the array API standard.\n\n # ...
.venv\Lib\site-packages\numpy\_core\tests\test_array_api_info.py
test_array_api_info.py
Python
3,176
0.95
0.088496
0.056818
vue-tools
3
2025-02-09T03:15:46.571453
MIT
true
8d838761700102bd66b8d0d5c9b5ece9
"""\nTests for array coercion, mainly through testing `np.array` results directly.\nNote that other such tests exist, e.g., in `test_api.py` and many corner-cases\nare tested (sometimes indirectly) elsewhere.\n"""\n\nfrom itertools import permutations, product\n\nimport numpy._core._multiarray_umath as ncu\nimport pyte...
.venv\Lib\site-packages\numpy\_core\tests\test_array_coercion.py
test_array_coercion.py
Python
35,808
0.95
0.161361
0.209893
node-utils
376
2024-01-20T09:15:54.810480
BSD-3-Clause
true
a350ad06e34a290789667676d547c818
import sys\nimport sysconfig\n\nimport pytest\n\nimport numpy as np\nfrom numpy.testing import IS_EDITABLE, IS_WASM, extbuild\n\n\n@pytest.fixture\ndef get_module(tmp_path):\n """ Some codes to generate data and manage temporary buffers use when\n sharing with numpy via the array interface protocol.\n """\n ...
.venv\Lib\site-packages\numpy\_core\tests\test_array_interface.py
test_array_interface.py
Python
8,065
0.95
0.085586
0.224138
vue-tools
295
2025-06-28T21:50:41.174283
BSD-3-Clause
true
b0f22390e95e2304cbbff4966da228ff
import pytest\nfrom pytest import param\n\nimport numpy as np\nfrom numpy.testing import IS_WASM\n\n\ndef values_and_dtypes():\n """\n Generate value+dtype pairs that generate floating point errors during\n casts. The invalid casts to integers will generate "invalid" value\n warnings, the float casts all g...
.venv\Lib\site-packages\numpy\_core\tests\test_casting_floatingpoint_errors.py
test_casting_floatingpoint_errors.py
Python
5,230
0.95
0.149351
0.068376
react-lib
496
2023-11-11T06:19:48.734304
BSD-3-Clause
true
e4643b3db941ae641462d613f57f372c
"""\nThe tests exercise the casting machinery in a more low-level manner.\nThe reason is mostly to test a new implementation of the casting machinery.\n\nUnlike most tests in NumPy, these are closer to unit-tests rather\nthan integration tests.\n"""\n\nimport ctypes\nimport enum\nimport random\nimport textwrap\n\nimpor...
.venv\Lib\site-packages\numpy\_core\tests\test_casting_unittests.py
test_casting_unittests.py
Python
35,153
0.95
0.141983
0.119883
vue-tools
749
2024-11-22T09:45:33.133981
MIT
true
add333d25633ea3658784fe292ad066e
"""\nTests for numpy/_core/src/multiarray/conversion_utils.c\n"""\nimport re\n\nimport numpy._core._multiarray_tests as mt\nimport pytest\n\nfrom numpy._core.multiarray import CLIP, RAISE, WRAP\nfrom numpy.testing import assert_raises\n\n\nclass StringConverterTestCase:\n allow_bytes = True\n case_insensitive = T...
.venv\Lib\site-packages\numpy\_core\tests\test_conversion_utils.py
test_conversion_utils.py
Python
6,568
0.95
0.223301
0.030675
node-utils
75
2024-09-15T23:45:40.783964
MIT
true
c1a36001c21909cfb035516716aa6113
from numpy._core._multiarray_umath import (\n __cpu_baseline__,\n __cpu_dispatch__,\n __cpu_features__,\n)\n\nfrom numpy._core import _umath_tests\nfrom numpy.testing import assert_equal\n\n\ndef test_dispatcher():\n """\n Testing the utilities of the CPU dispatcher\n """\n targets = (\n "SS...
.venv\Lib\site-packages\numpy\_core\tests\test_cpu_dispatcher.py
test_cpu_dispatcher.py
Python
1,619
0.95
0.163265
0.095238
awesome-app
392
2025-06-15T10:43:37.586016
BSD-3-Clause
true
b8e4d2fc45dff62ccdf1a89bd87d9e55
import os\nimport pathlib\nimport platform\nimport re\nimport subprocess\nimport sys\n\nimport pytest\nfrom numpy._core._multiarray_umath import (\n __cpu_baseline__,\n __cpu_dispatch__,\n __cpu_features__,\n)\n\n\ndef assert_features_equal(actual, desired, fname):\n __tracebackhide__ = True # Hide traceba...
.venv\Lib\site-packages\numpy\_core\tests\test_cpu_features.py
test_cpu_features.py
Python
16,135
0.95
0.178241
0.058047
vue-tools
326
2024-11-03T07:09:58.028466
BSD-3-Clause
true
28f105b35f9c130f7aa7437a466dcf54
from tempfile import NamedTemporaryFile\n\nimport pytest\nfrom numpy._core._multiarray_umath import (\n _discover_array_parameters as discover_array_params,\n)\nfrom numpy._core._multiarray_umath import _get_sfloat_dtype\n\nimport numpy as np\nfrom numpy.testing import assert_array_equal\n\nSF = _get_sfloat_dtype()\...
.venv\Lib\site-packages\numpy\_core\tests\test_custom_dtypes.py
test_custom_dtypes.py
Python
12,081
0.95
0.12381
0.1417
python-kit
653
2024-07-29T07:37:18.184886
BSD-3-Clause
true
bdc31eb4e5974dc8756dd98528179fcb
import os\nimport subprocess\nimport sys\nimport sysconfig\nfrom datetime import datetime\n\nimport pytest\n\nimport numpy as np\nfrom numpy.testing import IS_EDITABLE, IS_WASM, assert_array_equal\n\n# This import is copied from random.tests.test_extending\ntry:\n import cython\n from Cython.Compiler.Version impo...
.venv\Lib\site-packages\numpy\_core\tests\test_cython.py
test_cython.py
Python
10,537
0.95
0.108262
0.04943
node-utils
40
2024-08-28T17:14:12.804858
GPL-3.0
true
182e2f7c1217eb2daee98f8d2150602e
import pytest\n\nimport numpy as np\nfrom numpy._core.multiarray import _vec_string\nfrom numpy.testing import (\n assert_,\n assert_array_equal,\n assert_equal,\n assert_raises,\n assert_raises_regex,\n)\n\nkw_unicode_true = {'unicode': True} # make 2to3 work properly\nkw_unicode_false = {'unicode': Fa...
.venv\Lib\site-packages\numpy\_core\tests\test_defchararray.py
test_defchararray.py
Python
31,454
0.95
0.16
0.02406
python-kit
511
2025-04-04T21:12:36.650453
GPL-3.0
true
6b253846f091f68d9881ac12f9297b23
"""\nTests related to deprecation warnings. Also a convenient place\nto document how deprecations should eventually be turned into errors.\n\n"""\nimport contextlib\nimport warnings\n\nimport numpy._core._struct_ufunc_tests as struct_ufunc\nimport pytest\nfrom numpy._core._multiarray_tests import fromstring_null_term_c...
.venv\Lib\site-packages\numpy\_core\tests\test_deprecations.py
test_deprecations.py
Python
17,555
0.95
0.237885
0.091413
awesome-app
519
2024-08-18T22:49:42.949618
BSD-3-Clause
true
83800727b10a007341fe63358a51f09f
import sys\n\nimport pytest\n\nimport numpy as np\nfrom numpy.testing import IS_PYPY, assert_array_equal\n\n\ndef new_and_old_dlpack():\n yield np.arange(5)\n\n class OldDLPack(np.ndarray):\n # Support only the "old" version\n def __dlpack__(self, stream=None):\n return super().__dlpack__...
.venv\Lib\site-packages\numpy\_core\tests\test_dlpack.py
test_dlpack.py
Python
6,020
0.95
0.136842
0.061224
vue-tools
991
2024-12-22T00:48:08.943789
Apache-2.0
true
8189fdbc0ba52643b4192fe404e2e0b0
import ctypes\nimport gc\nimport operator\nimport pickle\nimport random\nimport sys\nimport types\nfrom itertools import permutations\nfrom typing import Any\n\nimport hypothesis\nimport pytest\nfrom hypothesis.extra import numpy as hynp\nfrom numpy._core._multiarray_tests import create_custom_field_dtype\nfrom numpy._...
.venv\Lib\site-packages\numpy\_core\tests\test_dtype.py
test_dtype.py
Python
80,792
0.75
0.134336
0.096491
vue-tools
792
2024-02-02T14:19:17.073771
BSD-3-Clause
true
5d6b6d63fffad671e2efc5ad9d64f296
import itertools\n\nimport pytest\n\nimport numpy as np\nfrom numpy.testing import (\n assert_,\n assert_allclose,\n assert_almost_equal,\n assert_array_equal,\n assert_equal,\n assert_raises,\n assert_raises_regex,\n suppress_warnings,\n)\n\n# Setup for optimize einsum\nchars = 'abcdefghij'\nsi...
.venv\Lib\site-packages\numpy\_core\tests\test_einsum.py
test_einsum.py
Python
57,594
0.75
0.126803
0.149728
awesome-app
510
2023-12-01T11:58:00.249025
GPL-3.0
true
8057d6952284735d05821fdd46739998
import sysconfig\n\nimport pytest\n\nimport numpy as np\nfrom numpy.testing import IS_WASM, assert_raises\n\n# The floating point emulation on ARM EABI systems lacking a hardware FPU is\n# known to be buggy. This is an attempt to identify these hosts. It may not\n# catch all possible cases, but it catches the known cas...
.venv\Lib\site-packages\numpy\_core\tests\test_errstate.py
test_errstate.py
Python
4,758
0.95
0.152672
0.165138
react-lib
115
2024-05-14T14:33:01.069128
BSD-3-Clause
true
554bfc2847d5d13bdf1d91c6154a5f83
import contextlib\nimport itertools\nimport operator\n\nimport numpy._core._multiarray_tests as mt\nimport pytest\n\nimport numpy as np\nfrom numpy.testing import assert_equal, assert_raises\n\nINT64_MAX = np.iinfo(np.int64).max\nINT64_MIN = np.iinfo(np.int64).min\nINT64_MID = 2**32\n\n# int128 is not two's complement,...
.venv\Lib\site-packages\numpy\_core\tests\test_extint128.py
test_extint128.py
Python
5,842
0.95
0.290323
0.017442
react-lib
666
2023-10-28T14:37:27.992669
Apache-2.0
true
6b9d897c30211066fa4e8929665db92f
import platform\nimport sys\n\nimport pytest\n\nimport numpy as np\nfrom numpy import (\n arange,\n array,\n dtype,\n errstate,\n geomspace,\n isnan,\n linspace,\n logspace,\n ndarray,\n nextafter,\n sqrt,\n stack,\n)\nfrom numpy._core import sctypes\nfrom numpy._core.function_base i...
.venv\Lib\site-packages\numpy\_core\tests\test_function_base.py
test_function_base.py
Python
18,154
0.95
0.141153
0.054632
vue-tools
729
2025-06-27T14:57:12.913987
BSD-3-Clause
true
82c5589829015d8c4d4785c69dfe4d12
""" Test functions for limits module.\n\n"""\nimport types\nimport warnings\n\nimport pytest\n\nimport numpy as np\nfrom numpy import double, half, longdouble, single\nfrom numpy._core import finfo, iinfo\nfrom numpy._core.getlimits import _discovered_machar, _float_ma\nfrom numpy.testing import assert_, assert_equal, ...
.venv\Lib\site-packages\numpy\_core\tests\test_getlimits.py
test_getlimits.py
Python
7,181
0.95
0.234146
0.103659
vue-tools
744
2024-10-22T06:30:57.415176
BSD-3-Clause
true
b698d5535609562fa2b9ed481c3e7344
import platform\n\nimport pytest\n\nimport numpy as np\nfrom numpy import float16, float32, float64, uint16\nfrom numpy.testing import IS_WASM, assert_, assert_equal\n\n\ndef assert_raises_fpe(strmatch, callable, *args, **kwargs):\n try:\n callable(*args, **kwargs)\n except FloatingPointError as exc:\n ...
.venv\Lib\site-packages\numpy\_core\tests\test_half.py
test_half.py
Python
24,993
0.95
0.06338
0.132911
react-lib
865
2024-03-29T05:57:42.902444
GPL-3.0
true
badc8afaf6fdd2192527c47de93fb644
import random\n\nimport pytest\nfrom numpy._core._multiarray_tests import identityhash_tester\n\n\n@pytest.mark.parametrize("key_length", [1, 3, 6])\n@pytest.mark.parametrize("length", [1, 16, 2000])\ndef test_identity_hashtable(key_length, length):\n # use a 30 object pool for everything (duplicates will happen)\n ...
.venv\Lib\site-packages\numpy\_core\tests\test_hashtable.py
test_hashtable.py
Python
1,182
0.95
0.171429
0.185185
awesome-app
746
2024-01-03T00:29:25.506288
Apache-2.0
true
ac6f4e5fbdd9c36a3b543e89be9c2c54
import numpy as np\nfrom numpy.testing import (\n assert_raises,\n assert_raises_regex,\n)\n\n\nclass TestIndexErrors:\n '''Tests to exercise indexerrors not covered by other tests.'''\n\n def test_arraytypes_fasttake(self):\n 'take from a 0-length dimension'\n x = np.empty((2, 3, 0, 4))\n ...
.venv\Lib\site-packages\numpy\_core\tests\test_indexerrors.py
test_indexerrors.py
Python
4,851
0.95
0.096
0.019417
vue-tools
398
2024-07-15T19:09:13.701208
GPL-3.0
true
408f3468cd708607c34d405bce861ac6
import functools\nimport operator\nimport sys\nimport warnings\nfrom itertools import product\n\nimport pytest\nfrom numpy._core._multiarray_tests import array_indexing\n\nimport numpy as np\nfrom numpy.exceptions import ComplexWarning, VisibleDeprecationWarning\nfrom numpy.testing import (\n HAS_REFCOUNT,\n asse...
.venv\Lib\site-packages\numpy\_core\tests\test_indexing.py
test_indexing.py
Python
56,876
0.75
0.156014
0.191593
node-utils
260
2023-09-30T15:58:30.362761
MIT
true
1f89c783f9f7f6e8b1fadce9469b76b5
import sys\n\nimport pytest\n\nimport numpy as np\nfrom numpy.testing import HAS_REFCOUNT, assert_, assert_array_equal, assert_raises\n\n\nclass TestTake:\n def test_simple(self):\n a = [[1, 2], [3, 4]]\n a_str = [[b'1', b'2'], [b'3', b'4']]\n modes = ['raise', 'wrap', 'clip']\n indices =...
.venv\Lib\site-packages\numpy\_core\tests\test_item_selection.py
test_item_selection.py
Python
6,798
0.95
0.215569
0.121429
react-lib
444
2023-08-19T02:22:23.071053
GPL-3.0
true
da23f67beac3bba027a578951bb6ac36
import os\nimport subprocess\nimport sys\nimport sysconfig\n\nimport pytest\n\nfrom numpy.testing import IS_EDITABLE, IS_PYPY, IS_WASM, NOGIL_BUILD\n\n# This import is copied from random.tests.test_extending\ntry:\n import cython\n from Cython.Compiler.Version import version as cython_version\nexcept ImportError:...
.venv\Lib\site-packages\numpy\_core\tests\test_limited_api.py
test_limited_api.py
Python
3,565
0.95
0.107843
0.068966
vue-tools
113
2024-05-23T01:28:46.046601
MIT
true
20cbf1a9ec795b95f716326df78ad1d4
import platform\nimport warnings\n\nimport pytest\n\nimport numpy as np\nfrom numpy._core.tests._locales import CommaDecimalPointLocale\nfrom numpy.testing import (\n IS_MUSL,\n assert_,\n assert_array_equal,\n assert_equal,\n assert_raises,\n temppath,\n)\n\nLD_INFO = np.finfo(np.longdouble)\nlongdou...
.venv\Lib\site-packages\numpy\_core\tests\test_longdouble.py
test_longdouble.py
Python
12,760
0.95
0.116531
0.132867
python-kit
534
2025-05-15T23:50:57.120931
MIT
true
9895c9d370ea981d13996c34ef9343c6
"""\nTest machar. Given recent changes to hardcode type data, we might want to get\nrid of both MachAr and this test at some point.\n\n"""\nimport numpy._core.numerictypes as ntypes\nfrom numpy import array, errstate\nfrom numpy._core._machar import MachAr\n\n\nclass TestMachAr:\n def _run_machar_highprec(self):\n ...
.venv\Lib\site-packages\numpy\_core\tests\test_machar.py
test_machar.py
Python
1,097
0.95
0.233333
0.192308
vue-tools
732
2024-09-09T20:55:33.105752
Apache-2.0
true
8ae5ae6df0f29675362fb1117eda050d
import mmap\nimport os\nimport sys\nfrom pathlib import Path\nfrom tempfile import NamedTemporaryFile, TemporaryFile\n\nimport pytest\n\nfrom numpy import (\n add,\n allclose,\n arange,\n asarray,\n average,\n isscalar,\n memmap,\n multiply,\n ndarray,\n prod,\n subtract,\n sum,\n)\n...
.venv\Lib\site-packages\numpy\_core\tests\test_memmap.py
test_memmap.py
Python
8,432
0.95
0.130081
0.071429
node-utils
261
2024-03-06T16:52:36.915290
MIT
true
af74c4725f1c700d4932308627aa2f57
import itertools\n\nimport pytest\nfrom numpy._core._multiarray_tests import internal_overlap, solve_diophantine\n\nimport numpy as np\nfrom numpy._core import _umath_tests\nfrom numpy.lib.stride_tricks import as_strided\nfrom numpy.testing import assert_, assert_array_equal, assert_equal, assert_raises\n\nndims = 2\ns...
.venv\Lib\site-packages\numpy\_core\tests\test_mem_overlap.py
test_mem_overlap.py
Python
30,149
0.95
0.178495
0.089489
react-lib
663
2024-12-10T02:19:58.312258
GPL-3.0
true
ce8b9dd9efb311e94aa9d97d51c0047a
import asyncio\nimport gc\nimport os\nimport sys\nimport sysconfig\nimport threading\n\nimport pytest\n\nimport numpy as np\nfrom numpy._core.multiarray import get_handler_name\nfrom numpy.testing import IS_EDITABLE, IS_WASM, assert_warns, extbuild\n\n\n@pytest.fixture\ndef get_module(tmp_path):\n """ Add a memory p...
.venv\Lib\site-packages\numpy\_core\tests\test_mem_policy.py
test_mem_policy.py
Python
17,246
0.95
0.115044
0.107143
vue-tools
729
2024-10-26T04:54:14.922052
Apache-2.0
true
f2a25af75a3a5f7593f4237a396a6cba
import concurrent.futures\nimport string\nimport threading\n\nimport pytest\n\nimport numpy as np\nfrom numpy._core import _rational_tests\nfrom numpy.testing import IS_64BIT, IS_WASM\nfrom numpy.testing._private.utils import run_threaded\n\nif IS_WASM:\n pytest.skip(allow_module_level=True, reason="no threading sup...
.venv\Lib\site-packages\numpy\_core\tests\test_multithreading.py
test_multithreading.py
Python
8,893
0.95
0.181507
0.142222
vue-tools
599
2023-10-11T14:57:42.525849
Apache-2.0
true
3870b7f18283e58dc603710b8df6a22f
"""\nThis file adds basic tests to test the NEP 50 style promotion compatibility\nmode. Most of these test are likely to be simply deleted again once NEP 50\nis adopted in the main test suite. A few may be moved elsewhere.\n"""\n\nimport operator\n\nimport hypothesis\nimport pytest\nfrom hypothesis import strategies\...
.venv\Lib\site-packages\numpy\_core\tests\test_nep50_promotions.py
test_nep50_promotions.py
Python
10,355
0.95
0.108014
0.162037
vue-tools
794
2024-03-05T20:01:04.274209
BSD-3-Clause
true
35cb3c4c5b28b3e4b8f38dd63d59de9f
import itertools\nimport sys\n\nimport pytest\n\nimport numpy as np\nimport numpy._core.numerictypes as nt\nfrom numpy._core.numerictypes import issctype, maximum_sctype, sctype2char, sctypes\nfrom numpy.testing import (\n IS_PYPY,\n assert_,\n assert_equal,\n assert_raises,\n assert_raises_regex,\n)\n\n...
.venv\Lib\site-packages\numpy\_core\tests\test_numerictypes.py
test_numerictypes.py
Python
23,893
0.95
0.159164
0.10325
node-utils
138
2025-04-24T01:03:15.697381
MIT
true
9682f2b7ea62c5570c51e95e563b59dc
import inspect\nimport os\nimport pickle\nimport sys\nimport tempfile\nfrom io import StringIO\nfrom unittest import mock\n\nimport pytest\n\nimport numpy as np\nfrom numpy._core.overrides import (\n _get_implementing_args,\n array_function_dispatch,\n verify_matching_signatures,\n)\nfrom numpy.testing import ...
.venv\Lib\site-packages\numpy\_core\tests\test_overrides.py
test_overrides.py
Python
28,309
0.95
0.238938
0.058333
node-utils
752
2025-04-16T17:49:04.651906
BSD-3-Clause
true
96aea7826d0dec7b9bf8b189ce642a26
import sys\nfrom io import StringIO\n\nimport pytest\n\nimport numpy as np\nfrom numpy._core.tests._locales import CommaDecimalPointLocale\nfrom numpy.testing import IS_MUSL, assert_, assert_equal\n\n_REF = {np.inf: 'inf', -np.inf: '-inf', np.nan: 'nan'}\n\n\n@pytest.mark.parametrize('tp', [np.float32, np.double, np.lo...
.venv\Lib\site-packages\numpy\_core\tests\test_print.py
test_print.py
Python
6,987
0.95
0.23
0.037267
python-kit
402
2025-05-11T05:34:50.149714
GPL-3.0
true
f2b08bca693427029f130a8c79d83b03
import warnings\n\nimport pytest\n\nimport numpy as np\n\n\n@pytest.mark.filterwarnings("error")\ndef test_getattr_warning():\n # issue gh-14735: make sure we clear only getattr errors, and let warnings\n # through\n class Wrapper:\n def __init__(self, array):\n self.array = array\n\n ...
.venv\Lib\site-packages\numpy\_core\tests\test_protocols.py
test_protocols.py
Python
1,219
0.95
0.23913
0.0625
node-utils
390
2024-04-01T14:09:19.447437
GPL-3.0
true
e39954a7e419a43db2d39cd2053ac575
import collections.abc\nimport pickle\nimport textwrap\nfrom io import BytesIO\nfrom os import path\nfrom pathlib import Path\n\nimport pytest\n\nimport numpy as np\nfrom numpy.testing import (\n assert_,\n assert_array_almost_equal,\n assert_array_equal,\n assert_equal,\n assert_raises,\n temppath,\n...
.venv\Lib\site-packages\numpy\_core\tests\test_records.py
test_records.py
Python
21,091
0.95
0.102941
0.082251
awesome-app
351
2024-04-10T09:47:34.545128
Apache-2.0
true
22c00956eff20359bb993383c8d7e3ce
import copy\nimport gc\nimport pickle\nimport sys\nimport tempfile\nfrom io import BytesIO\nfrom itertools import chain\nfrom os import path\n\nimport pytest\n\nimport numpy as np\nfrom numpy._utils import asbytes, asunicode\nfrom numpy.exceptions import AxisError, ComplexWarning\nfrom numpy.testing import (\n HAS_R...
.venv\Lib\site-packages\numpy\_core\tests\test_regression.py
test_regression.py
Python
98,235
0.75
0.164419
0.165563
python-kit
951
2024-12-10T16:50:47.600221
Apache-2.0
true
975b90234b942c66de55adba9ac0713d
"""\nTest scalar buffer interface adheres to PEP 3118\n"""\nimport pytest\nfrom numpy._core._multiarray_tests import get_buffer_info\nfrom numpy._core._rational_tests import rational\n\nimport numpy as np\nfrom numpy.testing import assert_, assert_equal, assert_raises\n\n# PEP3118 format strings for native (standard al...
.venv\Lib\site-packages\numpy\_core\tests\test_scalarbuffer.py
test_scalarbuffer.py
Python
5,791
0.95
0.078431
0.094488
react-lib
630
2023-08-07T13:43:40.751840
BSD-3-Clause
true
1831408926c306b46c73ff4d7c983e8e
""" Test printing of scalar types.\n\n"""\nimport pytest\n\nimport numpy as np\nfrom numpy.testing import assert_, assert_raises\n\n\nclass A:\n pass\nclass B(A, np.float64):\n pass\n\nclass C(B):\n pass\nclass D(C, B):\n pass\n\nclass B0(np.float64, A):\n pass\nclass C0(B0):\n pass\n\nclass HasNew:\n...
.venv\Lib\site-packages\numpy\_core\tests\test_scalarinherit.py
test_scalarinherit.py
Python
2,692
0.95
0.219048
0.083333
node-utils
67
2023-08-16T22:09:29.986598
GPL-3.0
true
b1d37cf34ac07d0a44c03ee04d7223bb
import contextlib\nimport itertools\nimport operator\nimport platform\nimport sys\nimport warnings\n\nimport pytest\nfrom hypothesis import given, settings\nfrom hypothesis.extra import numpy as hynp\nfrom hypothesis.strategies import sampled_from\nfrom numpy._core._rational_tests import rational\n\nimport numpy as np\...
.venv\Lib\site-packages\numpy\_core\tests\test_scalarmath.py
test_scalarmath.py
Python
47,759
0.95
0.193878
0.144711
react-lib
798
2023-12-28T05:56:48.678514
GPL-3.0
true
c323737b692e4f29ccea3c9ac4cb4006
""" Test printing of scalar types.\n\n"""\nimport platform\n\nimport pytest\n\nimport numpy as np\nfrom numpy.testing import IS_MUSL, assert_, assert_equal, assert_raises\n\n\nclass TestRealScalars:\n def test_str(self):\n svals = [0.0, -0.0, 1, -1, np.inf, -np.inf, np.nan]\n styps = [np.float16, np.fl...
.venv\Lib\site-packages\numpy\_core\tests\test_scalarprint.py
test_scalarprint.py
Python
20,108
0.95
0.086849
0.129213
vue-tools
526
2024-08-24T15:30:34.904502
MIT
true
92dcb66d8c923743f4e300c8a09b6ba1
"""\nTest the scalar constructors, which also do type-coercion\n"""\nimport pytest\n\nimport numpy as np\nfrom numpy.testing import (\n assert_almost_equal,\n assert_equal,\n assert_warns,\n)\n\n\nclass TestFromString:\n def test_floating(self):\n # Ticket #640, floats from string\n fsingle = ...
.venv\Lib\site-packages\numpy\_core\tests\test_scalar_ctors.py
test_scalar_ctors.py
Python
6,931
0.95
0.140097
0.075581
vue-tools
596
2024-03-18T14:19:30.084741
BSD-3-Clause
true
2f0ddb94436a906bb0bdc52e51e50f7d
"""\nTest the scalar constructors, which also do type-coercion\n"""\nimport fractions\nimport platform\nimport types\nfrom typing import Any\n\nimport pytest\n\nimport numpy as np\nfrom numpy._core import sctypes\nfrom numpy.testing import assert_equal, assert_raises\n\n\nclass TestAsIntegerRatio:\n # derived in par...
.venv\Lib\site-packages\numpy\_core\tests\test_scalar_methods.py
test_scalar_methods.py
Python
9,363
0.95
0.154472
0.057416
awesome-app
90
2024-03-15T10:07:44.056092
MIT
true
df3ea9facbda0b71c010b2aa48917878
import sys\n\nimport pytest\n\nimport numpy as np\nfrom numpy._core import (\n arange,\n array,\n atleast_1d,\n atleast_2d,\n atleast_3d,\n block,\n concatenate,\n hstack,\n newaxis,\n stack,\n vstack,\n)\nfrom numpy._core.shape_base import (\n _block_concatenate,\n _block_dispatc...
.venv\Lib\site-packages\numpy\_core\tests\test_shape_base.py
test_shape_base.py
Python
32,427
0.95
0.1156
0.062992
vue-tools
348
2025-05-03T09:57:25.155731
MIT
true
1258ec31989a81d38cf5e5a4894603ec
# NOTE: Please avoid the use of numpy.testing since NPYV intrinsics\n# may be involved in their functionality.\nimport itertools\nimport math\nimport operator\nimport re\n\nimport pytest\nfrom numpy._core._multiarray_umath import __cpu_baseline__\n\nfrom numpy._core._simd import clear_floatstatus, get_floatstatus, targ...
.venv\Lib\site-packages\numpy\_core\tests\test_simd.py
test_simd.py
Python
50,164
0.95
0.184191
0.064946
awesome-app
112
2023-09-03T13:22:24.945479
GPL-3.0
true
86ba21a3cfb12b8706bb82428c13e685
import pytest\n\nfrom numpy._core._simd import targets\n\n"""\nThis testing unit only for checking the sanity of common functionality,\ntherefore all we need is just to take one submodule that represents any\nof enabled SIMD extensions to run the test on it and the second submodule\nrequired to run only one check relat...
.venv\Lib\site-packages\numpy\_core\tests\test_simd_module.py
test_simd_module.py
Python
4,007
0.95
0.165049
0.011111
awesome-app
690
2024-05-24T09:49:34.343724
GPL-3.0
true
9bae58ef7f2a54bbc168a9952d73979e
import copy\nimport itertools\nimport os\nimport pickle\nimport sys\nimport tempfile\n\nimport pytest\n\nimport numpy as np\nfrom numpy._core.tests._natype import get_stringdtype_dtype as get_dtype\nfrom numpy._core.tests._natype import pd_NA\nfrom numpy.dtypes import StringDType\nfrom numpy.testing import IS_PYPY, ass...
.venv\Lib\site-packages\numpy\_core\tests\test_stringdtype.py
test_stringdtype.py
Python
57,794
0.75
0.132808
0.062078
react-lib
345
2024-03-02T07:34:37.148559
MIT
true
6b0c72f08568f1410542fc67861f2483
import operator\nimport sys\n\nimport pytest\n\nimport numpy as np\nfrom numpy.testing import IS_PYPY, assert_array_equal, assert_raises\nfrom numpy.testing._private.utils import requires_memory\n\nCOMPARISONS = [\n (operator.eq, np.equal, "=="),\n (operator.ne, np.not_equal, "!="),\n (operator.lt, np.less, "<...
.venv\Lib\site-packages\numpy\_core\tests\test_strings.py
test_strings.py
Python
59,284
0.75
0.091034
0.01214
node-utils
384
2024-12-07T14:28:56.305340
MIT
true
c6259eb438ca71b1be1b241a9358aae5
import os\nimport sys\nfrom ctypes import POINTER, c_double, c_float, c_int, c_longlong, cast, pointer\nfrom os import path\n\nimport pytest\nfrom numpy._core._multiarray_umath import __cpu_features__\n\nimport numpy as np\nfrom numpy.testing import assert_array_max_ulp\nfrom numpy.testing._private.utils import _glibc_...
.venv\Lib\site-packages\numpy\_core\tests\test_umath_accuracy.py
test_umath_accuracy.py
Python
5,602
0.95
0.137097
0.036697
node-utils
166
2025-01-06T18:54:20.637352
Apache-2.0
true
fac9a7c9f825b0abbcb79029d1295c43
import platform\nimport sys\n\n# import the c-extension module directly since _arg is not exported via umath\nimport numpy._core._multiarray_umath as ncu\nimport pytest\n\nimport numpy as np\nfrom numpy.testing import (\n assert_almost_equal,\n assert_array_equal,\n assert_array_max_ulp,\n assert_equal,\n ...
.venv\Lib\site-packages\numpy\_core\tests\test_umath_complex.py
test_umath_complex.py
Python
24,253
0.95
0.135783
0.184891
node-utils
490
2024-05-17T18:37:23.658363
Apache-2.0
true
6b98b0fc7cdc3bcd70c77fb8c3d30cbe
\nimport numpy as np\nfrom numpy.testing import assert_, assert_array_equal, assert_equal\n\n\ndef buffer_length(arr):\n if isinstance(arr, str):\n if not arr:\n charmax = 0\n else:\n charmax = max(ord(c) for c in arr)\n if charmax < 256:\n size = 1\n elif...
.venv\Lib\site-packages\numpy\_core\tests\test_unicode.py
test_unicode.py
Python
13,335
0.95
0.157609
0.216783
awesome-app
161
2024-12-25T22:08:08.538328
BSD-3-Clause
true
40bc9c2efa1b3a663d093cbe2ffb2e1e
"""\nTests of the ._exceptions module. Primarily for exercising the __str__ methods.\n"""\n\nimport pickle\n\nimport pytest\n\nimport numpy as np\nfrom numpy.exceptions import AxisError\n\n_ArrayMemoryError = np._core._exceptions._ArrayMemoryError\n_UFuncNoLoopError = np._core._exceptions._UFuncNoLoopError\n\nclass Tes...
.venv\Lib\site-packages\numpy\_core\tests\test__exceptions.py
test__exceptions.py
Python
3,012
0.95
0.144444
0.054054
node-utils
108
2024-06-03T20:56:52.352521
MIT
true
40606bd5b3ce35b34edc6c6b9a8f0b8a
"""Provide class for testing in French locale\n\n"""\nimport locale\nimport sys\n\nimport pytest\n\n__ALL__ = ['CommaDecimalPointLocale']\n\n\ndef find_comma_decimal_point_locale():\n """See if platform has a decimal point as comma locale.\n\n Find a locale that uses a comma instead of a period as the\n decima...
.venv\Lib\site-packages\numpy\_core\tests\_locales.py
_locales.py
Python
2,248
0.85
0.25
0
node-utils
100
2024-09-23T09:44:04.405257
Apache-2.0
true
336e8814325e21caa38b74dcb70a1e2f
# Vendored implementation of pandas.NA, adapted from pandas/_libs/missing.pyx\n#\n# This is vendored to avoid adding pandas as a test dependency.\n\n__all__ = ["pd_NA"]\n\nimport numbers\n\nimport numpy as np\n\n\ndef _create_binary_propagating_op(name, is_divmod=False):\n is_cmp = name.strip("_") in ["eq", "ne", "l...
.venv\Lib\site-packages\numpy\_core\tests\_natype.py
_natype.py
Python
6,730
0.95
0.214634
0.0875
react-lib
401
2025-05-07T03:24:48.984371
GPL-3.0
true
41506ac5aa74d966a35abe13e6b52799
cnumpy.core.multiarray\n_reconstruct\nqcnumpy\nndarray\nqK
.venv\Lib\site-packages\numpy\_core\tests\data\astype_copy.pkl
astype_copy.pkl
Other
716
0.7
0
0
awesome-app
996
2025-07-09T02:56:15.946014
MIT
true
cd1b85e5d04b562819206983cdcc3e19
#include <algorithm>\n#include <fstream>\n#include <iostream>\n#include <math.h>\n#include <random>\n#include <cstdio>\n#include <ctime>\n#include <vector>\n\nstruct ufunc {\n std::string name;\n double (*f32func)(double);\n long double (*f64func)(long double);\n float f32ulp;\n float f64ulp;\n};\n\ntemp...
.venv\Lib\site-packages\numpy\_core\tests\data\generate_umath_validation_data.cpp
generate_umath_validation_data.cpp
C++
6,012
0.8
0.058824
0.178344
python-kit
173
2024-07-23T21:23:12.334470
GPL-3.0
true
80d8e19726afbea46b80e25c2c1e8ec2
SIMPLE = T / file does conform to FITS standard BITPIX = 16 / number of bits per data pixel NAXIS = 0 / number of data axes EXTEND = T / FITS dataset may contain extensions ...
.venv\Lib\site-packages\numpy\_core\tests\data\recarray_from_file.fits
recarray_from_file.fits
Other
8,640
0.95
0.1
0
react-lib
314
2025-01-06T00:47:24.182153
GPL-3.0
true
b8e122f880bc10fd52cabfaae9ba6ed5
dtype,input,output,ulperrortol\nnp.float32,0xbddd7f50,0x3fd6eec2,3\nnp.float32,0xbe32a20c,0x3fdf8182,3\nnp.float32,0xbf607c09,0x4028f84f,3\nnp.float32,0x3f25d906,0x3f5db544,3\nnp.float32,0x3f01cec8,0x3f84febf,3\nnp.float32,0x3f1d5c6e,0x3f68a735,3\nnp.float32,0xbf0cab89,0x4009c36d,3\nnp.float32,0xbf176b40,0x400d0941,3\n...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-arccos.csv
umath-validation-set-arccos.csv
Other
62,794
0.5
0
0
vue-tools
906
2023-08-15T00:03:12.688026
BSD-3-Clause
true
e9f1c350a2b589b1e6e2cceb2f975b05
dtype,input,output,ulperrortol\nnp.float32,0x3f83203f,0x3e61d9d6,2\nnp.float32,0x3f98dea1,0x3f1d1af6,2\nnp.float32,0x7fa00000,0x7fe00000,2\nnp.float32,0x7eba99af,0x42b0d032,2\nnp.float32,0x3fc95a13,0x3f833650,2\nnp.float32,0x3fce9a45,0x3f8771e1,2\nnp.float32,0x3fc1bd96,0x3f797811,2\nnp.float32,0x7eba2391,0x42b0ceed,2\n...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-arccosh.csv
umath-validation-set-arccosh.csv
Other
62,794
0.5
0
0
python-kit
48
2024-04-26T15:41:13.570493
Apache-2.0
true
5a5014dd42f94729f5cf69497fa16038
dtype,input,output,ulperrortol\nnp.float32,0xbe7d3a7c,0xbe7fe217,4\nnp.float32,0x3dc102f0,0x3dc14c60,4\nnp.float32,0xbe119c28,0xbe121aef,4\nnp.float32,0xbe51cd68,0xbe534c75,4\nnp.float32,0x3c04a300,0x3c04a35f,4\nnp.float32,0xbf4f0b62,0xbf712a69,4\nnp.float32,0x3ef61a5c,0x3f005cf6,4\nnp.float32,0xbf13024c,0xbf1c97df,4\n...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-arcsin.csv
umath-validation-set-arcsin.csv
Other
62,768
0.5
0
0
node-utils
799
2023-09-17T13:10:24.945626
GPL-3.0
true
24f78b261b6d3eff2f1fa5029fde6e64
dtype,input,output,ulperrortol\nnp.float32,0xbf24142a,0xbf1a85ef,2\nnp.float32,0x3e71cf91,0x3e6f9e37,2\nnp.float32,0xe52a7,0xe52a7,2\nnp.float32,0x3ef1e074,0x3ee9add9,2\nnp.float32,0x806160ac,0x806160ac,2\nnp.float32,0x7e2d59a2,0x42af4798,2\nnp.float32,0xbf32cac9,0xbf26bf96,2\nnp.float32,0x3f081701,0x3f026142,2\nnp.flo...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-arcsinh.csv
umath-validation-set-arcsinh.csv
Other
61,718
0.5
0
0
react-lib
805
2024-07-03T21:47:03.914412
Apache-2.0
true
0f6718b99957ba62de9f2d6c1b73394f
dtype,input,output,ulperrortol\nnp.float32,0x3f338252,0x3f1c8d9c,3\nnp.float32,0x7e569df2,0x3fc90fdb,3\nnp.float32,0xbf347e25,0xbf1d361f,3\nnp.float32,0xbf0a654e,0xbefdbfd2,3\nnp.float32,0x8070968e,0x8070968e,3\nnp.float32,0x803cfb27,0x803cfb27,3\nnp.float32,0x8024362e,0x8024362e,3\nnp.float32,0xfd55dca0,0xbfc90fdb,3\n...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-arctan.csv
umath-validation-set-arctan.csv
Other
61,734
0.5
0
0
node-utils
636
2023-11-27T09:30:15.504525
BSD-3-Clause
true
45988c00bb5ed694e1051a5b82508b99
dtype,input,output,ulperrortol\nnp.float32,0x3ee82930,0x3efa60fd,2\nnp.float32,0x3f0aa640,0x3f1b3e13,2\nnp.float32,0x3ec1a21c,0x3ecbbf8d,2\nnp.float32,0x3cdb1740,0x3cdb24a1,2\nnp.float32,0xbf28b6f3,0xbf4a86ac,2\nnp.float32,0xbe490dcc,0xbe4bb2eb,2\nnp.float32,0x80000001,0x80000001,2\nnp.float32,0xbf44f9dd,0xbf826ce1,2\n...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-arctanh.csv
umath-validation-set-arctanh.csv
Other
62,768
0.5
0
0
react-lib
693
2025-05-03T01:00:51.307015
GPL-3.0
true
eb69a7fada3fb706d61455324214de49
dtype,input,output,ulperrortol\nnp.float32,0x3ee7054c,0x3f4459ea,2\nnp.float32,0x7d1e2489,0x54095925,2\nnp.float32,0x7ee5edf5,0x549b992b,2\nnp.float32,0x380607,0x2a425e72,2\nnp.float32,0x34a8f3,0x2a3e6603,2\nnp.float32,0x3eee2844,0x3f465a45,2\nnp.float32,0x59e49c,0x2a638d0a,2\nnp.float32,0xbf72c77a,0xbf7b83d4,2\nnp.flo...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-cbrt.csv
umath-validation-set-cbrt.csv
Other
62,275
0.5
0
0
python-kit
470
2025-03-31T09:17:21.627984
MIT
true
1526fa2a6a135f7f8fe1877b2d9ee57b
dtype,input,output,ulperrortol\n## +ve denormals ##\nnp.float32,0x004b4716,0x3f800000,2\nnp.float32,0x007b2490,0x3f800000,2\nnp.float32,0x007c99fa,0x3f800000,2\nnp.float32,0x00734a0c,0x3f800000,2\nnp.float32,0x0070de24,0x3f800000,2\nnp.float32,0x007fffff,0x3f800000,2\nnp.float32,0x00000001,0x3f800000,2\n## -ve denormal...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-cos.csv
umath-validation-set-cos.csv
Other
60,497
0.6
0
0.002909
react-lib
436
2025-01-01T06:32:29.349428
Apache-2.0
true
6026a018dedc706fa673352e055543ca
dtype,input,output,ulperrortol\nnp.float32,0xfe0ac238,0x7f800000,3\nnp.float32,0xbf553b86,0x3faf079b,3\nnp.float32,0xff4457da,0x7f800000,3\nnp.float32,0xff7253f3,0x7f800000,3\nnp.float32,0x5a5802,0x3f800000,3\nnp.float32,0x3db03413,0x3f80795b,3\nnp.float32,0x7f6795c9,0x7f800000,3\nnp.float32,0x805b9142,0x3f800000,3\nnp...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-cosh.csv
umath-validation-set-cosh.csv
Other
62,298
0.5
0
0
node-utils
471
2024-10-22T18:22:57.559403
GPL-3.0
true
e8c7053b1623275eb369b75fe4094c11
dtype,input,output,ulperrortol\n## +ve denormals ##\nnp.float32,0x004b4716,0x3f800000,3\nnp.float32,0x007b2490,0x3f800000,3\nnp.float32,0x007c99fa,0x3f800000,3\nnp.float32,0x00734a0c,0x3f800000,3\nnp.float32,0x0070de24,0x3f800000,3\nnp.float32,0x00495d65,0x3f800000,3\nnp.float32,0x006894f6,0x3f800000,3\nnp.float32,0x00...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-exp.csv
umath-validation-set-exp.csv
Other
17,903
0.8
0
0.106796
node-utils
333
2025-05-28T08:33:51.381002
Apache-2.0
true
839bf4ded6d4747b0dfe1ecc68282bf5
dtype,input,output,ulperrortol\nnp.float32,0xbdfe94b0,0x3f6adda6,2\nnp.float32,0x3f20f8f8,0x3fc5ec69,2\nnp.float32,0x7040b5,0x3f800000,2\nnp.float32,0x30ec5,0x3f800000,2\nnp.float32,0x3eb63070,0x3fa3ce29,2\nnp.float32,0xff4dda3d,0x0,2\nnp.float32,0x805b832f,0x3f800000,2\nnp.float32,0x3e883fb7,0x3f99ed8c,2\nnp.float32,0...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-exp2.csv
umath-validation-set-exp2.csv
Other
60,053
0.5
0
0
node-utils
487
2024-09-23T09:41:02.594128
MIT
true
6d37c52e68d9f590fef8104ca1656d84
dtype,input,output,ulperrortol\nnp.float32,0x80606724,0x80606724,3\nnp.float32,0xbf16790f,0xbee38e14,3\nnp.float32,0xbf1778a1,0xbee4a97f,3\nnp.float32,0x7d4fc610,0x7f800000,3\nnp.float32,0xbec30a20,0xbea230d5,3\nnp.float32,0x3eae8a36,0x3ecffac5,3\nnp.float32,0xbf1f08f1,0xbeece93c,3\nnp.float32,0x80374376,0x80374376,3\n...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-expm1.csv
umath-validation-set-expm1.csv
Other
61,728
0.5
0
0
awesome-app
54
2024-07-19T00:24:26.168347
GPL-3.0
true
cb326ba0da4387ce7e2c6d5b539f8b1b
dtype,input,output,ulperrortol\n## +ve denormals ##\nnp.float32,0x004b4716,0xc2afbc1b,4\nnp.float32,0x007b2490,0xc2aec01e,4\nnp.float32,0x007c99fa,0xc2aeba17,4\nnp.float32,0x00734a0c,0xc2aee1dc,4\nnp.float32,0x0070de24,0xc2aeecba,4\nnp.float32,0x007fffff,0xc2aeac50,4\nnp.float32,0x00000001,0xc2ce8ed0,4\n## -ve denormal...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-log.csv
umath-validation-set-log.csv
Other
11,963
0.8
0
0.0369
vue-tools
505
2023-12-27T14:50:51.095218
Apache-2.0
true
ff9012683118a838aa14d2145e62fcee
dtype,input,output,ulperrortol\nnp.float32,0x3f6fd5c8,0xbce80e8e,4\nnp.float32,0x3ea4ab17,0xbefc3deb,4\nnp.float32,0x3e87a133,0xbf13b0b7,4\nnp.float32,0x3f0d9069,0xbe83bb19,4\nnp.float32,0x3f7b9269,0xbbf84f47,4\nnp.float32,0x3f7a9ffa,0xbc16fd97,4\nnp.float32,0x7f535d34,0x4219cb66,4\nnp.float32,0x3e79ad7c,0xbf1ce857,4\n...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-log10.csv
umath-validation-set-log10.csv
Other
70,551
0.5
0
0
awesome-app
137
2024-09-01T16:19:31.438315
MIT
true
4cb030776907ced376d8cf0d1c5071ab
dtype,input,output,ulperrortol\nnp.float32,0x3e10aca8,0x3e075347,2\nnp.float32,0x3f776e66,0x3f2d2003,2\nnp.float32,0xbf34e8ce,0xbf9cfd5c,2\nnp.float32,0xbf0260ee,0xbf363f69,2\nnp.float32,0x3ed285e8,0x3eb05870,2\nnp.float32,0x262b88,0x262b88,2\nnp.float32,0x3eeffd6c,0x3ec4cfdb,2\nnp.float32,0x3ee86808,0x3ebf9f54,2\nnp.f...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-log1p.csv
umath-validation-set-log1p.csv
Other
61,732
0.5
0
0
vue-tools
628
2024-07-30T20:21:53.218412
BSD-3-Clause
true
7bdefc7b6e128eeb4b0710889977ac47
dtype,input,output,ulperrortol\nnp.float32,0x80000000,0xff800000,3\nnp.float32,0x7f12870a,0x42fe63db,3\nnp.float32,0x3ef29cf5,0xbf89eb12,3\nnp.float32,0x3d6ba8fb,0xc083d26c,3\nnp.float32,0x3d9907e8,0xc06f8230,3\nnp.float32,0x4ee592,0xc2fd656e,3\nnp.float32,0x58d8b1,0xc2fd0db3,3\nnp.float32,0x7ba103,0xc2fc19aa,3\nnp.flo...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-log2.csv
umath-validation-set-log2.csv
Other
70,546
0.5
0
0
awesome-app
933
2024-04-07T15:49:26.056812
MIT
true
8404b9dfb20ebd0472af456699ca0016
Steps to validate transcendental functions:\n1) Add a file 'umath-validation-set-<ufuncname>.txt', where ufuncname is name of\n the function in NumPy you want to validate\n2) The file should contain 4 columns: dtype,input,expected output,ulperror\n a. dtype: one of np.float16, np.float32, np.float64\n b. input:...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-README.txt
umath-validation-set-README.txt
Other
982
0.85
0.333333
0
node-utils
323
2023-11-22T11:40:28.905594
Apache-2.0
true
fd7efb77a74e2d8bb17c2866324fd1fd
dtype,input,output,ulperrortol\n## +ve denormals ##\nnp.float32,0x004b4716,0x004b4716,2\nnp.float32,0x007b2490,0x007b2490,2\nnp.float32,0x007c99fa,0x007c99fa,2\nnp.float32,0x00734a0c,0x00734a0c,2\nnp.float32,0x0070de24,0x0070de24,2\nnp.float32,0x007fffff,0x007fffff,2\nnp.float32,0x00000001,0x00000001,2\n## -ve denormal...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-sin.csv
umath-validation-set-sin.csv
Other
59,981
0.6
0
0.00292
node-utils
102
2024-03-03T23:39:26.030639
Apache-2.0
true
c70380b08736b821b046ea7bbd53f36a
dtype,input,output,ulperrortol\nnp.float32,0xfee27582,0xff800000,2\nnp.float32,0xff19f092,0xff800000,2\nnp.float32,0xbf393576,0xbf49cb31,2\nnp.float32,0x8020fdea,0x8020fdea,2\nnp.float32,0x455f4e,0x455f4e,2\nnp.float32,0xff718c35,0xff800000,2\nnp.float32,0x3f3215e3,0x3f40cce5,2\nnp.float32,0x19e833,0x19e833,2\nnp.float...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-sinh.csv
umath-validation-set-sinh.csv
Other
61,722
0.5
0
0
python-kit
802
2024-12-06T02:10:37.425002
Apache-2.0
true
be13dc7172f984c9f2b1b7077bda69f6
dtype,input,output,ulperrortol\nnp.float32,0xfd97ece0,0xc11186e9,4\nnp.float32,0x8013bb34,0x8013bb34,4\nnp.float32,0x316389,0x316389,4\nnp.float32,0x7f7fffff,0xbf1c9eca,4\nnp.float32,0x3f7674bb,0x3fb7e450,4\nnp.float32,0x80800000,0x80800000,4\nnp.float32,0x7f5995e8,0xbf94106c,4\nnp.float32,0x74527,0x74527,4\nnp.float32...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-tan.csv
umath-validation-set-tan.csv
Other
61,728
0.5
0
0
node-utils
7
2025-05-24T16:17:58.895219
MIT
true
62860199c86c5f81a1b3fd7c81e3cf27
dtype,input,output,ulperrortol\nnp.float32,0xbe26ebb0,0xbe25752f,2\nnp.float32,0xbe22ecc0,0xbe219054,2\nnp.float32,0x8010a6b3,0x8010a6b3,2\nnp.float32,0x3135da,0x3135da,2\nnp.float32,0xbe982afc,0xbe93d727,2\nnp.float32,0x16a51f,0x16a51f,2\nnp.float32,0x491e56,0x491e56,2\nnp.float32,0x4bf7ca,0x4bf7ca,2\nnp.float32,0x3ee...
.venv\Lib\site-packages\numpy\_core\tests\data\umath-validation-set-tanh.csv
umath-validation-set-tanh.csv
Other
61,728
0.5
0
0
python-kit
849
2025-04-24T03:32:24.632153
BSD-3-Clause
true
525820cea48d1e4bd028614da460fbb3