The fundamental package for scientific computing with Python.
4005 matches across 14 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/check_python_h_first.py | 55 | def check_python_h_included_first(name_to_check: str) -> int: |
| LOW | tools/pyright_completeness.py | 40 | def run_pyright_with_coverage( |
| LOW | numpy/linalg/_linalg.py | 143 | def _raise_linalgerror_singular(err, flag): |
| LOW | numpy/linalg/_linalg.py | 146 | def _raise_linalgerror_nonposdef(err, flag): |
| LOW | numpy/linalg/_linalg.py | 149 | def _raise_linalgerror_eigenvalues_nonconvergence(err, flag): |
| LOW | numpy/linalg/_linalg.py | 152 | def _raise_linalgerror_svd_nonconvergence(err, flag): |
| LOW | numpy/linalg/_linalg.py | 3005 | def _multi_dot_matrix_chain_order(arrays, return_costs=False): |
| LOW | numpy/linalg/_linalg.py | 3417 | def _matrix_transpose_dispatcher(x): |
| LOW | numpy/linalg/tests/test_linalg.py | 447 | def test_generalized_sq_cases(self): |
| LOW | numpy/linalg/tests/test_linalg.py | 452 | def test_generalized_empty_sq_cases(self): |
| LOW | numpy/linalg/tests/test_linalg.py | 459 | def test_generalized_nonsq_cases(self): |
| LOW | numpy/linalg/tests/test_linalg.py | 464 | def test_generalized_empty_nonsq_cases(self): |
| LOW | numpy/linalg/tests/test_linalg.py | 471 | def test_generalized_herm_cases(self): |
| LOW | numpy/linalg/tests/test_linalg.py | 476 | def test_generalized_empty_herm_cases(self): |
| LOW | numpy/linalg/tests/test_linalg.py | 481 | def identity_like_generalized(a): |
| LOW | numpy/linalg/tests/test_linalg.py | 1159 | def test_exceptions_bad_power(self, dt): |
| LOW | numpy/linalg/tests/test_linalg.py | 1164 | def test_exceptions_non_square(self, dt): |
| LOW | numpy/linalg/tests/test_linalg.py | 1170 | def test_exceptions_not_invertible(self, dt): |
| LOW | numpy/linalg/tests/test_linalg.py | 1815 | def test_mode_all_but_economic(self): |
| LOW | numpy/linalg/tests/test_linalg.py | 1999 | def test_generalized_raise_multiloop(): |
| LOW | numpy/linalg/tests/test_linalg.py | 2109 | def test_basic_function_with_three_arguments(self): |
| LOW | numpy/linalg/tests/test_linalg.py | 2119 | def test_basic_function_with_two_arguments(self): |
| LOW | numpy/linalg/tests/test_linalg.py | 2127 | def test_basic_function_with_dynamic_programming_optimization(self): |
| LOW | numpy/linalg/tests/test_linalg.py | 2136 | def test_vector_as_first_argument(self): |
| LOW | numpy/linalg/tests/test_linalg.py | 2146 | def test_vector_as_last_argument(self): |
| LOW | numpy/linalg/tests/test_linalg.py | 2156 | def test_vector_as_first_and_last_argument(self): |
| LOW | numpy/linalg/tests/test_linalg.py | 2166 | def test_three_arguments_and_out(self): |
| LOW | numpy/linalg/tests/test_linalg.py | 2179 | def test_two_arguments_and_out(self): |
| LOW | numpy/linalg/tests/test_linalg.py | 2189 | def test_dynamic_programming_optimization_and_out(self): |
| LOW | numpy/linalg/tests/test_linalg.py | 2201 | def test_dynamic_programming_logic(self): |
| LOW | numpy/linalg/tests/test_linalg.py | 2231 | def test_too_few_input_arrays(self): |
| LOW | numpy/linalg/tests/test_linalg.py | 2295 | def test_unsupported_commontype(): |
| LOW | numpy/linalg/tests/test_deprecations.py | 9 | def test_qr_mode_full_future_warning(): |
| LOW | numpy/linalg/tests/test_regression.py | 144 | def test_lstsq_complex_larger_rhs(self): |
| LOW | numpy/linalg/tests/test_regression.py | 157 | def test_cholesky_empty_array(self, upper): |
| LOW | numpy/linalg/tests/test_regression.py | 163 | def test_matrix_rank_rtol_argument(self, rtol): |
| LOW | numpy/ctypeslib/_ctypeslib.py | 398 | def _ctype_from_dtype_subarray(dtype): |
| LOW | numpy/ctypeslib/_ctypeslib.py | 403 | def _ctype_from_dtype_structured(dtype): |
| LOW | numpy/ma/testutils.py | 90 | def _assert_equal_on_sequences(actual, desired, err_msg=''): |
| LOW | numpy/ma/testutils.py | 247 | def assert_array_approx_equal(x, y, decimal=6, err_msg='', verbose=True): |
| LOW | numpy/ma/testutils.py | 261 | def assert_array_almost_equal(x, y, decimal=6, err_msg='', verbose=True): |
| LOW | numpy/ma/core.py | 435 | def _recursive_set_fill_value(fillvalue, dt): |
| LOW | numpy/ma/core.py | 834 | def is_string_or_list_of_strings(val): |
| LOW | numpy/ma/core.py | 1331 | def _replace_dtype_fields_recursive(dtype, primitive_dtype): |
| LOW | numpy/ma/tests/test_old_ma.py | 762 | def test_assignment_by_condition(self): |
| LOW | numpy/ma/tests/test_core.py | 751 | def test_pickling_maskedconstant(self): |
| LOW | numpy/ma/tests/test_core.py | 760 | def test_pickling_wstructured(self): |
| LOW | numpy/ma/tests/test_core.py | 769 | def test_pickling_keepalignment(self): |
| LOW | numpy/ma/tests/test_core.py | 777 | def test_single_element_subscript(self): |
| LOW | numpy/ma/tests/test_core.py | 1223 | def test_masked_singleton_arithmetic(self): |
| LOW | numpy/ma/tests/test_core.py | 1233 | def test_masked_singleton_equality(self): |
| LOW | numpy/ma/tests/test_core.py | 1241 | def test_arithmetic_with_masked_singleton(self): |
| LOW | numpy/ma/tests/test_core.py | 2289 | def test_fill_value_datetime_structured(self): |
| LOW | numpy/ma/tests/test_core.py | 2297 | def test_fill_value_datetime_structured_datetime(self): |
| LOW | numpy/ma/tests/test_core.py | 2305 | def test_fill_value_datetime_structured_integer(self): |
| LOW | numpy/ma/tests/test_core.py | 4542 | def test_masked_where_oddities(self): |
| LOW | numpy/ma/tests/test_core.py | 4549 | def test_masked_where_shape_constraint(self): |
| LOW | numpy/ma/tests/test_core.py | 4556 | def test_masked_where_structured(self): |
| LOW | numpy/ma/tests/test_core.py | 4756 | def test_where_with_masked_choice(self): |
| LOW | numpy/ma/tests/test_core.py | 4778 | def test_where_with_masked_condition(self): |
| 1897 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/ci/check_c_api_usage.py | 2 | |
| LOW | numpy/conftest.py | 25 | |
| LOW | numpy/__init__.py | 90 | |
| LOW | numpy/__init__.py | 92 | |
| LOW | numpy/__init__.py | 92 | |
| LOW | numpy/__init__.py | 93 | |
| LOW | numpy/__init__.py | 106 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| LOW | numpy/__init__.py | 120 | |
| 828 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/list_installed_dll_dependencies_cygwin.sh | 1 | #!/bin/dash |
| LOW | tools/swig/test/Matrix.h | 1 | #ifndef MATRIX_H |
| LOW | tools/swig/test/SuperTensor.h | 1 | #ifndef SUPERTENSOR_H |
| LOW | tools/swig/test/Flat.h | 1 | #ifndef FLAT_H |
| LOW | tools/swig/test/Vector.h | 1 | #ifndef VECTOR_H |
| LOW | tools/swig/test/Vector.h | 21 | // interfaces, respectively, for: |
| LOW | tools/swig/test/Tensor.h | 1 | #ifndef TENSOR_H |
| LOW | tools/ci/lsan_suppressions.txt | 1 | # This file contains suppressions for the LSAN tool |
| LOW | tools/ci/lsan_suppressions.txt | 21 | #13 0xffffb5cbc6f0 in import_find_and_load Python/import.c:3737 |
| LOW | tools/ci/ubsan_suppressions_x86_64.txt | 1 | # This file contains suppressions for the default (with GIL) build to prevent runtime errors |
| LOW | tools/ci/ubsan_suppressions_arm64.txt | 1 | # This file contains suppressions for the default (with GIL) build to prevent runtime errors |
| LOW | tools/ci/ubsan_suppressions_arm64.txt | 41 | # function:_core/src/common/npy_argparse.c |
| LOW | meson_cpu/x86/test_x86_v2.c | 1 | #if defined(DETECT_FEATURES) && defined(__INTEL_COMPILER) |
| LOW | numpy/linalg/umath_linalg.cpp | 21 | #include <cstddef> |
| LOW | numpy/linalg/umath_linalg.cpp | 401 | |
| LOW | numpy/linalg/lapack_litemodule.c | 21 | #elif NPY_BITSOF_INT == 64 |
| LOW | numpy/linalg/lapack_lite/f2c.h | 201 | typedef VOID Z_f; /* double complex function */ |
| LOW | numpy/linalg/lapack_lite/f2c.c | 721 | } |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 1 | /* |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 21 | #define cgelq2_ BLAS_FUNC(cgelq2) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 41 | #define chetrd_ BLAS_FUNC(chetrd) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 61 | #define claqr2_ BLAS_FUNC(claqr2) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 81 | #define cpotrf_ BLAS_FUNC(cpotrf) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 101 | #define cunghr_ BLAS_FUNC(cunghr) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 121 | #define dgebal_ BLAS_FUNC(dgebal) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 141 | #define disnan_ BLAS_FUNC(disnan) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 161 | #define dlahr2_ BLAS_FUNC(dlahr2) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 181 | #define dlaqr1_ BLAS_FUNC(dlaqr1) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 201 | #define dlasd7_ BLAS_FUNC(dlasd7) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 221 | #define dlauum_ BLAS_FUNC(dlauum) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 241 | #define dpotrs_ BLAS_FUNC(dpotrs) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 261 | #define dtrtri_ BLAS_FUNC(dtrtri) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 281 | #define sbdsdc_ BLAS_FUNC(sbdsdc) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 301 | #define sgeqrf_ BLAS_FUNC(sgeqrf) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 321 | #define slaed6_ BLAS_FUNC(slaed6) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 341 | #define slamrg_ BLAS_FUNC(slamrg) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 361 | #define slascl_ BLAS_FUNC(slascl) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 381 | #define slasr_ BLAS_FUNC(slasr) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 401 | #define sorml2_ BLAS_FUNC(sorml2) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 421 | #define ssytd2_ BLAS_FUNC(ssytd2) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 441 | #define zgeev_ BLAS_FUNC(zgeev) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 461 | #define zher2k_ BLAS_FUNC(zher2k) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 481 | #define zlanhe_ BLAS_FUNC(zlanhe) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 501 | #define zlauu2_ BLAS_FUNC(zlauu2) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 521 | #define zungbr_ BLAS_FUNC(zungbr) |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 541 | #define c_exp numpy_lapack_lite_c_exp |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 561 | #define d_prod numpy_lapack_lite_d_prod |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 581 | #define e_wdue numpy_lapack_lite_e_wdue |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 601 | #define getarg_ numpy_lapack_lite_getarg_ |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 621 | #define i_nint numpy_lapack_lite_i_nint |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 641 | #define r_cnjg numpy_lapack_lite_r_cnjg |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 661 | #define s_paus numpy_lapack_lite_s_paus |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 681 | #define s_wsue numpy_lapack_lite_s_wsue |
| LOW | numpy/ma/core.py | 3061 | # created from (= obj) and us. Or there might not. This method can |
| LOW | numpy/ma/core.py | 3081 | # as the template object (b/c views like arr[...] should keep the same |
| LOW | numpy/ma/core.py | 3361 | dout._update_from(self) |
| LOW | numpy/_core/feature_detection_stdio.h | 1 | #define _GNU_SOURCE |
| LOW | numpy/_core/shape_base.py | 921 | >>> np.block([[a]]) # atleast_2d(a) |
| LOW | numpy/_core/include/numpy/utils.h | 1 | #ifndef NUMPY_CORE_INCLUDE_NUMPY_UTILS_H_ |
| LOW | numpy/_core/include/numpy/utils.h | 21 | #define NPY_DECL_ALIGNED(x) |
| 543 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/check_python_h_first.py | 55 | |
| LOW | tools/refguide_check.py | 242 | |
| LOW | tools/refguide_check.py | 546 | |
| LOW | tools/ci/check_c_api_usage.py | 87 | |
| LOW | tools/ci/check_c_api_usage.py | 121 | |
| LOW | tools/c_coverage/c_coverage_report.py | 116 | |
| LOW | numpy/__init__.py | 700 | |
| LOW | numpy/_utils/_pep440.py | 223 | |
| LOW | numpy/_utils/_pep440.py | 391 | |
| LOW | numpy/linalg/_linalg.py | 201 | |
| LOW | numpy/linalg/_linalg.py | 2599 | |
| LOW | numpy/linalg/_linalg.py | 3005 | |
| LOW | numpy/linalg/tests/test_linalg.py | 1419 | |
| LOW | numpy/linalg/lapack_lite/make_lite.py | 288 | |
| LOW | numpy/linalg/lapack_lite/make_lite.py | 177 | |
| LOW | numpy/linalg/lapack_lite/fortran.py | 17 | |
| LOW | numpy/linalg/lapack_lite/fortran.py | 80 | |
| LOW | numpy/ctypeslib/_ctypeslib.py | 239 | |
| LOW | numpy/ma/extras.py | 1521 | |
| LOW | numpy/ma/core.py | 218 | |
| LOW | numpy/ma/core.py | 467 | |
| LOW | numpy/ma/core.py | 2721 | |
| LOW | numpy/ma/core.py | 2882 | |
| LOW | numpy/ma/core.py | 3050 | |
| LOW | numpy/ma/core.py | 3143 | |
| LOW | numpy/ma/core.py | 3277 | |
| LOW | numpy/ma/core.py | 3406 | |
| LOW | numpy/ma/core.py | 3857 | |
| LOW | numpy/ma/core.py | 4047 | |
| LOW | numpy/ma/core.py | 4594 | |
| LOW | numpy/ma/core.py | 5376 | |
| LOW | numpy/ma/core.py | 5470 | |
| LOW | numpy/ma/mrecords.py | 579 | |
| LOW | numpy/ma/mrecords.py | 94 | |
| LOW | numpy/ma/tests/test_core.py | 718 | |
| LOW | numpy/ma/tests/test_extras.py | 974 | |
| LOW | numpy/_core/fromnumeric.py | 2246 | |
| LOW | numpy/_core/_dtype.py | 101 | |
| LOW | numpy/_core/_dtype.py | 326 | |
| LOW | numpy/_core/_internal.py | 90 | |
| LOW | numpy/_core/_internal.py | 151 | |
| LOW | numpy/_core/_internal.py | 226 | |
| LOW | numpy/_core/_internal.py | 367 | |
| LOW | numpy/_core/_internal.py | 465 | |
| LOW | numpy/_core/_internal.py | 630 | |
| LOW | numpy/_core/records.py | 943 | |
| LOW | numpy/_core/memmap.py | 215 | |
| LOW | numpy/_core/getlimits.py | 175 | |
| LOW | numpy/_core/_dtype_ctypes.py | 103 | |
| LOW | numpy/_core/shape_base.py | 138 | |
| LOW | numpy/_core/shape_base.py | 557 | |
| LOW | numpy/_core/numeric.py | 1998 | |
| LOW | numpy/_core/numeric.py | 2320 | |
| LOW | numpy/_core/function_base.py | 490 | |
| LOW | numpy/_core/einsumfunc.py | 150 | |
| LOW | numpy/_core/einsumfunc.py | 330 | |
| LOW | numpy/_core/einsumfunc.py | 445 | |
| LOW | numpy/_core/einsumfunc.py | 635 | |
| LOW | numpy/_core/einsumfunc.py | 1126 | |
| LOW | numpy/_core/numerictypes.py | 322 | |
| 202 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tools/swig/test/testArray.py | 41 | for i in range(self.array1.length()): |
| HIGH | tools/swig/test/testArray.py | 52 | self.assertTrue(self.array1.length() == self.length) |
| HIGH | tools/swig/test/testArray.py | 100 | for i in range(self.array1.length()): |
| HIGH | tools/swig/test/testArray.py | 106 | for i in range(self.array1.length()): |
| HIGH | tools/swig/test/testArray.py | 112 | for i in range(self.array1.length()): |
| HIGH | tools/swig/test/testArray.py | 295 | for i in range(self.array3.length()): |
| HIGH | tools/swig/test/testArray.py | 306 | self.assertTrue(self.array3.length() == self.length) |
| HIGH | tools/swig/test/testArray.py | 354 | for i in range(self.array3.length()): |
| HIGH | tools/swig/test/testArray.py | 361 | for i in range(self.array3.length()): |
| HIGH | tools/swig/test/testArray.py | 367 | for i in range(self.array3.length()): |
| HIGH | numpy/ma/extras.py | 699 | the contents of the input array. Treat the input as undefined, |
| HIGH | numpy/_core/tests/test_mem_policy.py | 56 | if (args != NULL && PyCapsule_CheckExact(args)) { |
| HIGH | numpy/_core/tests/test_stringdtype.py | 1409 | # str_len always errors for any non-string null, even NA ones because |
| HIGH | numpy/_core/code_generators/generate_ufunc_api.py | 42 | if (numpy == NULL && PyErr_ExceptionMatches(PyExc_ModuleNotFoundError)) { |
| HIGH | numpy/_core/code_generators/generate_numpy_api.py | 66 | if (numpy == NULL && PyErr_ExceptionMatches(PyExc_ModuleNotFoundError)) { |
| HIGH | numpy/f2py/cfuncs.py | 802 | /* empty bytes has trailing null, so dereferencing is always safe */ |
| HIGH | numpy/f2py/cfuncs.py | 383 | case NPY_BOOL: *(npy_bool *)(PyArray_DATA(arr))=(_re!=0 && _im!=0); break;\\ |
| HIGH | numpy/f2py/cfuncs.py | 496 | for (_m -= 1; _m >= 0 && _to[_m] == NULLVALUE; _m--) { \\ |
| HIGH | numpy/f2py/cfuncs.py | 770 | if (n < 0 || *len < 0 || buf == NULL) { |
| HIGH | numpy/f2py/cfuncs.py | 918 | return !(*v == -1 && PyErr_Occurred()); |
| HIGH | numpy/f2py/cfuncs.py | 925 | return !(*v == -1 && PyErr_Occurred()); |
| HIGH | numpy/f2py/cfuncs.py | 967 | return !(*v == -1 && PyErr_Occurred()); |
| HIGH | numpy/f2py/cfuncs.py | 974 | return !(*v == -1 && PyErr_Occurred()); |
| HIGH | numpy/f2py/cfuncs.py | 1017 | return !(*v == -1 && PyErr_Occurred()); |
| HIGH | numpy/f2py/cfuncs.py | 1024 | return !(*v == -1 && PyErr_Occurred()); |
| HIGH | numpy/f2py/cfuncs.py | 1093 | return !(*v == -1.0 && PyErr_Occurred()); |
| HIGH | numpy/f2py/cfuncs.py | 1100 | return !(*v == -1.0 && PyErr_Occurred()); |
| HIGH | numpy/f2py/cfuncs.py | 1226 | return !(npy_creal(v->_npy) == -1.0 && PyErr_Occurred()); |
| HIGH | numpy/f2py/cfuncs.py | 1230 | return !(npy_creal(v->_npy) == -1.0 && PyErr_Occurred()); |
| HIGH | numpy/f2py/tests/test_character.py | 455 | !f2py check(i>=0 && i<12) i |
| HIGH | numpy/lib/_arraypad_impl.py | 841 | # (padded area is undefined) |
| HIGH | numpy/lib/_function_base_impl.py | 3939 | the contents of the input array. Treat the input as undefined, |
| HIGH | numpy/lib/_nanfunctions_impl.py | 1148 | the contents of the input array. Treat the input as undefined, |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/refguide_check.py | 309 | except Exception: |
| LOW | tools/refguide_check.py | 516 | except Exception: |
| LOW | tools/ci/check_c_api_usage.py | 215 | except Exception as e: |
| LOW | numpy/linalg/_linalg.py | 2780 | except Exception as e: |
| LOW | numpy/linalg/tests/test_linalg.py | 405 | except Exception as e: |
| LOW | numpy/linalg/tests/test_linalg.py | 2047 | except Exception: |
| LOW | numpy/linalg/lapack_lite/make_lite.py | 285 | except Exception: |
| MEDIUM | numpy/linalg/lapack_lite/make_lite.py | 282 | def ensure_executable(name): |
| LOW | numpy/ctypeslib/_ctypeslib.py | 309 | except Exception as e: |
| MEDIUM | numpy/ma/core.py | 319 | def _scalar_fill_value(dtype): |
| LOW | numpy/ma/core.py | 1097 | except Exception: |
| LOW | numpy/ma/core.py | 1237 | except Exception: |
| LOW | numpy/ma/mrecords.py | 243 | except Exception: |
| LOW | numpy/ma/mrecords.py | 260 | except Exception: |
| MEDIUM | numpy/ma/mrecords.py | 180 | def __getattribute__(self, attr): |
| LOW | numpy/ma/tests/test_extras.py | 985 | except Exception: |
| LOW | numpy/_core/_internal.py | 954 | except Exception: |
| MEDIUM | numpy/_core/_internal.py | 58 | def _usefields(adict, align): |
| LOW | numpy/_core/records.py | 463 | except Exception: |
| LOW | numpy/_core/records.py | 476 | except Exception: |
| LOW | numpy/_core/numeric.py | 1158 | except Exception: |
| LOW | numpy/_core/numeric.py | 2531 | except Exception: |
| LOW | numpy/_core/numeric.py | 2599 | except Exception: |
| LOW | numpy/_core/numeric.py | 2603 | except Exception: |
| LOW | numpy/_core/function_base.py | 486 | except Exception: |
| LOW | numpy/_core/numerictypes.py | 171 | except Exception: |
| LOW | numpy/_core/numerictypes.py | 223 | except Exception: |
| LOW | numpy/_core/tests/test_scalarmath.py | 110 | except Exception as e: |
| LOW | numpy/_core/tests/test_arrayprint.py | 1341 | except Exception: |
| LOW | numpy/_core/tests/test_indexing.py | 989 | except Exception: |
| LOW | numpy/_core/tests/test_indexing.py | 1088 | except Exception: |
| LOW | numpy/_core/tests/test_indexing.py | 1128 | except Exception as e: |
| LOW | numpy/_core/tests/test_indexing.py | 1152 | except Exception as e: |
| LOW | numpy/_core/tests/test_extint128.py | 58 | except Exception: |
| LOW | numpy/_core/tests/test_ufunc.py | 188 | except Exception as exc: |
| LOW | numpy/_core/tests/test_strings.py | 142 | except Exception: |
| MEDIUM | numpy/_core/tests/test_multiarray.py | 395 | def make_array(size, offset, strides): |
| LOW | numpy/_core/tests/test_multiarray.py | 9760 | except Exception: |
| LOW | numpy/_core/tests/test_multiarray.py | 399 | except Exception as e: |
| MEDIUM | numpy/_core/tests/test_nditer.py | 3025 | def _is_buffered(iterator): |
| LOW | numpy/_core/tests/test_nditer.py | 1547 | except Exception: |
| LOW | numpy/_core/tests/test_nditer.py | 3184 | except Exception: |
| LOW | numpy/_core/tests/test_nditer.py | 3365 | except Exception: |
| LOW | numpy/_core/tests/test_cpu_features.py | 26 | except Exception as err: |
| LOW | numpy/_core/tests/test_cpu_features.py | 33 | except Exception as err: |
| LOW | numpy/_core/tests/test_cpu_features.py | 422 | except Exception: |
| MEDIUM | numpy/_core/tests/test_cpu_features.py | 176 | def _expect_error( |
| LOW | numpy/_core/tests/test_regression.py | 1885 | except Exception: |
| LOW | numpy/_core/code_generators/genapi.py | 308 | except Exception as e: |
| MEDIUM | numpy/_core/code_generators/genapi.py | 133 | def __str__(self): |
| LOW | numpy/f2py/crackfortran.py | 1150 | except Exception: |
| LOW | numpy/f2py/crackfortran.py | 1164 | except Exception: |
| LOW | numpy/f2py/crackfortran.py | 1174 | except Exception: |
| LOW | numpy/f2py/crackfortran.py | 1302 | except Exception: |
| LOW | numpy/f2py/crackfortran.py | 1376 | except Exception: |
| LOW | numpy/f2py/crackfortran.py | 1962 | except Exception: |
| LOW | numpy/f2py/crackfortran.py | 2307 | except Exception: |
| LOW | numpy/f2py/crackfortran.py | 2345 | except Exception: |
| LOW | numpy/f2py/crackfortran.py | 2533 | except Exception as msg: |
| LOW | numpy/f2py/crackfortran.py | 2566 | except Exception as msg: |
| 59 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | numpy/ma/extras.py | 245 | #####-------------------------------------------------------------------------- |
| MEDIUM | numpy/ma/extras.py | 247 | #####-------------------------------------------------------------------------- |
| MEDIUM | numpy/ma/extras.py | 337 | #####-------------------------------------------------------------------------- |
| MEDIUM | numpy/ma/extras.py | 339 | #####-------------------------------------------------------------------------- |
| MEDIUM | numpy/ma/extras.py | 1225 | #####-------------------------------------------------------------------------- |
| MEDIUM | numpy/ma/extras.py | 1227 | #####-------------------------------------------------------------------------- |
| MEDIUM | numpy/ma/extras.py | 1732 | #####-------------------------------------------------------------------------- |
| MEDIUM | numpy/ma/extras.py | 1734 | #####-------------------------------------------------------------------------- |
| MEDIUM | numpy/ma/extras.py | 1796 | #####-------------------------------------------------------------------------- |
| MEDIUM | numpy/ma/extras.py | 1798 | #####-------------------------------------------------------------------------- |
| MEDIUM | numpy/lib/_type_check_impl.py | 356 | #----------------------------------------------------------------------------- |
| MEDIUM | numpy/lib/_type_check_impl.py | 489 | #----------------------------------------------------------------------------- |
| MEDIUM | numpy/lib/_type_check_impl.py | 554 | #----------------------------------------------------------------------------- |
| MEDIUM | numpy/lib/_type_check_impl.py | 642 | #----------------------------------------------------------------------------- |
| MEDIUM | numpy/lib/_npyio_impl.py | 1728 | #####-------------------------------------------------------------------------- |
| MEDIUM | numpy/lib/_npyio_impl.py | 1730 | #####-------------------------------------------------------------------------- |
| MEDIUM | numpy/lib/_utils_impl.py | 137 | #----------------------------------------------------------------------------- |
| MEDIUM | numpy/lib/tests/test__iotools.py | 84 | # ----------------------------------------------------------------------------- |
| MEDIUM | numpy/lib/tests/test__iotools.py | 138 | # ----------------------------------------------------------------------------- |
| MEDIUM | numpy/lib/tests/test_io.py | 1349 | #####-------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/windows.yml | 71 | #======================================================================================= |
| MEDIUM | .github/workflows/windows.yml | 124 | #======================================================================================= |
| MEDIUM | doc/source/conf.py | 88 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 90 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 238 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 240 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 310 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 312 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 404 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 406 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 416 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 418 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 435 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 437 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 445 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 447 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 451 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 453 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 465 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 467 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 496 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 498 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 616 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 618 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 630 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 632 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/neps/conf.py | 174 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/neps/conf.py | 176 | # ----------------------------------------------------------------------------- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | numpy/linalg/tests/test_linalg.py | 1500 | # Define the part for 2d arrays separately, so we can subclass this |
| MEDIUM | numpy/linalg/tests/test_linalg.py | 1734 | # Define the array class here, so run this on matrices elsewhere. |
| MEDIUM | numpy/ma/core.py | 3847 | # Create the attribute if it was undefined |
| MEDIUM | numpy/ma/mrecords.py | 236 | # Create a shortcut (so that we don't have to call getattr all the time) |
| MEDIUM | numpy/ma/mrecords.py | 719 | # Create a new empty recarray |
| MEDIUM | numpy/ma/mrecords.py | 729 | # Create a new empty recarray |
| MEDIUM | numpy/_core/numeric.py | 1684 | # Create the output array |
| MEDIUM | numpy/_core/tests/test_numerictypes.py | 494 | # This function is old enough that we're really just documenting the quirks |
| MEDIUM | numpy/_core/tests/test_array_coercion.py | 816 | # Create an equivalent descriptor with a new and distinct dtype |
| MEDIUM | numpy/_core/tests/test_multithreading.py | 192 | # Create a deeply nested dtype to make a failure more likely: |
| MEDIUM | numpy/_core/tests/test_multithreading.py | 218 | # Create a deeply nested dtype to make a failure more likely: |
| MEDIUM | numpy/_core/tests/test_half.py | 283 | # Create an array of all finite float16s |
| MEDIUM | numpy/_core/tests/test_dtype.py | 1947 | # Create an array and test that memory gets cleaned up (gh-25949) |
| MEDIUM | numpy/_core/tests/test_stringdtype.py | 1651 | # Create an empty array with expanded dimension, and fill it. Then, |
| MEDIUM | numpy/_core/tests/test_multiarray.py | 4428 | # Create an object with the given base, in the given module, with a |
| MEDIUM | numpy/_core/tests/test_multiarray.py | 11390 | # Create a base array (scalar) and copy its interface |
| MEDIUM | numpy/_core/code_generators/genapi.py | 355 | # Create the mangled name: |
| MEDIUM | numpy/typing/tests/data/pass/simple.py | 28 | # Define the arguments on the previous line to prevent bidirectional |
| MEDIUM | numpy/f2py/cfuncs.py | 566 | # Defining the correct value to indicate thread-local storage in C without |
| MEDIUM | numpy/lib/recfunctions.py | 471 | # Create an iterator for the data |
| MEDIUM | numpy/lib/_arraypad_impl.py | 797 | # Create a new zero padded array |
| MEDIUM | numpy/lib/_npyio_impl.py | 1714 | # Create the new array as a single data-type and then |
| MEDIUM | numpy/lib/_npyio_impl.py | 2086 | # Define the list of missing_values (one column: one list) |
| MEDIUM | numpy/lib/_npyio_impl.py | 2140 | # Define the default |
| MEDIUM | numpy/lib/_index_tricks_impl.py | 786 | # The following functions complement those in twodim_base, but are |
| MEDIUM | numpy/lib/_datasource.py | 22 | >>> # Create a DataSource, use os.curdir (default) for local storage. |
| MEDIUM | numpy/lib/tests/test_arrayterator.py | 13 | # Create a random array |
| MEDIUM | numpy/lib/tests/test__datasource.py | 292 | # Create a locally cached temp file with a URL based |
| MEDIUM | numpy/lib/tests/test_nanfunctions.py | 1278 | # Create a multi-dimensional array to test |
| MEDIUM | numpy/random/tests/test_random.py | 530 | # Create a dict works like a sequence but isn't one |
| MEDIUM | .github/workflows/linux_simd.yml | 7 | # This file is meant for testing different SIMD-related build options and |
| MEDIUM | .github/workflows/linux.yml | 3 | # This file is meant for testing across supported Python versions, build types |
| MEDIUM | .github/workflows/linux_blas.yml | 3 | # This file is meant for testing different BLAS/LAPACK flavors and build |
| MEDIUM | doc/source/conf.py | 208 | # Create the admonition node, to be populated by `nested_parse` |
| MEDIUM | doc/neps/conf.py | 5 | # This file is execfile()d with the current directory set to its |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/changelog.py | 164 | # just use the first 80 characters, with ellipses. |
| LOW | numpy/ma/core.py | 4231 | # For regular arrays, just use the data as they come. |
| LOW | numpy/ma/core.py | 3179 | # Unary domain: just use this one |
| LOW | numpy/_core/_internal.py | 433 | # if both are identical, we can (maybe!) just return the same dtype. |
| LOW | numpy/_core/__init__.py | 47 | # cache_tag is documented to be possibly None, so just use name if it is |
| LOW | numpy/_core/tests/test_scalarmath.py | 583 | # Scalars should just return False and not give a warnings. |
| LOW | numpy/_core/tests/test_array_coercion.py | 903 | # result. This should likely just return S0 and if not maybe the decision |
| LOW | numpy/_core/tests/test_custom_dtypes.py | 397 | # Also user dtype can just return self if conjugate should be no-op. |
| LOW | numpy/_core/tests/test_defchararray.py | 508 | # Test special cases that should just return the input array, |
| LOW | numpy/_core/tests/test_overrides.py | 201 | # we just call the function in that case. |
| MEDIUM | numpy/_core/tests/test_multiarray.py | 6580 | # in conjunction with subarray dimensions being absorbed into the |
| MEDIUM | numpy/_core/tests/test_multiarray.py | 11215 | # Test large arrays that leverage openMP implementations from x86-simd-sort: |
| MEDIUM | numpy/_core/tests/test_multiarray.py | 11223 | # Test large arrays that leverage openMP implementations from x86-simd-sort: |
| LOW | numpy/_core/tests/test_regression.py | 1308 | # `dot` should just return zero (m, n) matrix |
| MEDIUM | numpy/f2py/func2subr.py | 136 | # Essentially, this gets called again with modules where the name of the |
| LOW | numpy/f2py/capi_maps.py | 474 | # elsize, so we just return 1 and let elsize be determined at |
| MEDIUM | numpy/lib/_iotools.py | 651 | # something more robust. |
| LOW | numpy/lib/recfunctions.py | 317 | # Should we flatten the items, or just use a nested approach |
| LOW | numpy/lib/recfunctions.py | 1034 | # stride, we can just return a view |
| LOW | numpy/lib/recfunctions.py | 1614 | #... we haven't: just add the description to the current list |
| LOW | numpy/lib/_function_base_impl.py | 4873 | # therefore simply set 0 values in cdf to -1. |
| MEDIUM | numpy/lib/_datasource.py | 397 | # TODO: This should be more robust. Handles case where path includes |
| LOW | numpy/lib/_utils_impl.py | 441 | # numpy scalar, which is not writeable. If so, just return nan. |
| MEDIUM | numpy/lib/tests/test_shape_base.py | 565 | # array_split has more comprehensive test of splitting. |
| MEDIUM | numpy/lib/tests/test__datasource.py | 38 | # A valid website for more robust testing |
| LOW | numpy/lib/tests/test_nanfunctions.py | 1288 | # We just use ones as weights, but replace it with 0 or 1e200 at the |
| LOW | numpy/random/tests/test_generator_mt19937.py | 1629 | # rounding but not in any important way, so we just use a looser |
| LOW | numpy/random/tests/test_randomstate.py | 1112 | # rounding but not in any important way, so we just use a looser |
| MEDIUM | …mpy/random/tests/test_generator_mt19937_regressions.py | 218 | # it doesn't hang. Certainly for a monotonically decreasing |
| LOW | numpy/random/tests/test_random.py | 874 | # rounding but not in any important way, so we just use a looser |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .spin/cmds.py | 667 | # Check if `towncrier` is installed |
| LOW | numpy/__init__.py | 856 | # Check if BLAS adds spurious FPEs, seen on M4 arms with Accelerate. |
| LOW | numpy/ma/extras.py | 879 | # Set axis to tuple of ints |
| LOW | numpy/ma/extras.py | 1544 | # Check if we can guarantee that the integers in the (N - ddof) |
| LOW | numpy/ma/extras.py | 1566 | # Check if we can guarantee that the integers in the (N - ddof) |
| LOW | numpy/ma/core.py | 6360 | # Set temps to save time when dealing w/ marrays. |
| LOW | numpy/ma/tests/test_core.py | 4760 | # Set False to masked |
| LOW | numpy/ma/tests/test_core.py | 4769 | # Set True to masked |
| LOW | numpy/_core/_internal.py | 764 | # Check if this was a simple 1-item type, and unwrap it |
| LOW | numpy/_core/tests/test_indexing.py | 1068 | # Check if broadcasting works |
| LOW | numpy/_core/tests/test_indexing.py | 1171 | # Check if we got a view, unless its a 0-sized or 0-d array. |
| LOW | numpy/_core/tests/test_function_base.py | 33 | # Check if the current platform is ARMHF (32-bit ARM architecture) |
| LOW | numpy/_core/tests/test_casting_unittests.py | 344 | # Check if alignment makes a difference, but only if supported |
| LOW | numpy/_core/tests/test_api.py | 602 | # Check if new arrays are correct: |
| LOW | numpy/_core/tests/test_regression.py | 1498 | # Check if log1p is behaving on 32 bit intel systems. |
| LOW | numpy/f2py/tests/util.py | 29 | # Check if compilers are available at all... |
| LOW | numpy/lib/_arraysetops_impl.py | 910 | # Check if one of the arrays may contain arbitrary objects |
| LOW | numpy/lib/_npyio_impl.py | 2159 | # Add the value to the list |
| LOW | numpy/lib/_format_impl.py | 954 | # Check if we ought to create the file. |
| LOW | .github/workflows/linux_blas.yml | 374 | # Check if the patch works: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | numpy/ma/tests/test_core.py | 0 | tests for structural pattern matching support (pep 634). |
| HIGH | numpy/_core/tests/test_records.py | 0 | tests for structural pattern matching support (pep 634). |
| HIGH | numpy/_core/tests/test_multiarray.py | 0 | tests for structural pattern matching support (pep 634). |
| HIGH | numpy/_core/tests/test_memmap.py | 0 | tests for structural pattern matching support (pep 634). |
| HIGH | numpy/matrixlib/tests/test_defmatrix.py | 0 | tests for structural pattern matching support (pep 634). |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | numpy/_core/tests/test_nditer.py | 1013 | # Check that arrays are cast as requested |
| HIGH | numpy/_core/tests/test_nditer.py | 1119 | # Check that scalars are cast as requested |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | numpy/ma/core.py | 4681 | # make sure to return a 0-d array if axis is supplied |
| LOW | numpy/_core/numeric.py | 2416 | # This will cause casting of x later. Also, make sure to allow subclasses |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | numpy/lib/tests/test_io.py | 327 | # We need to check if the garbage collector can properly close |