Repository Analysis

numpy/numpy

The fundamental package for scientific computing with Python.

6.8 Low AI signal View on GitHub
6.8
Adjusted Score
6.8
Raw Score
100%
Time Factor
2026-05-30
Last Push
32,110
Stars
Python
Language
540,519
Lines of Code
1059
Files
4005
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 40MEDIUM 108LOW 3857

Pattern Findings

4005 matches across 14 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers1957 hits · 1640 pts
SeverityFileLineSnippet
LOWtools/check_python_h_first.py55def check_python_h_included_first(name_to_check: str) -> int:
LOWtools/pyright_completeness.py40def run_pyright_with_coverage(
LOWnumpy/linalg/_linalg.py143def _raise_linalgerror_singular(err, flag):
LOWnumpy/linalg/_linalg.py146def _raise_linalgerror_nonposdef(err, flag):
LOWnumpy/linalg/_linalg.py149def _raise_linalgerror_eigenvalues_nonconvergence(err, flag):
LOWnumpy/linalg/_linalg.py152def _raise_linalgerror_svd_nonconvergence(err, flag):
LOWnumpy/linalg/_linalg.py3005def _multi_dot_matrix_chain_order(arrays, return_costs=False):
LOWnumpy/linalg/_linalg.py3417def _matrix_transpose_dispatcher(x):
LOWnumpy/linalg/tests/test_linalg.py447 def test_generalized_sq_cases(self):
LOWnumpy/linalg/tests/test_linalg.py452 def test_generalized_empty_sq_cases(self):
LOWnumpy/linalg/tests/test_linalg.py459 def test_generalized_nonsq_cases(self):
LOWnumpy/linalg/tests/test_linalg.py464 def test_generalized_empty_nonsq_cases(self):
LOWnumpy/linalg/tests/test_linalg.py471 def test_generalized_herm_cases(self):
LOWnumpy/linalg/tests/test_linalg.py476 def test_generalized_empty_herm_cases(self):
LOWnumpy/linalg/tests/test_linalg.py481def identity_like_generalized(a):
LOWnumpy/linalg/tests/test_linalg.py1159 def test_exceptions_bad_power(self, dt):
LOWnumpy/linalg/tests/test_linalg.py1164 def test_exceptions_non_square(self, dt):
LOWnumpy/linalg/tests/test_linalg.py1170 def test_exceptions_not_invertible(self, dt):
LOWnumpy/linalg/tests/test_linalg.py1815 def test_mode_all_but_economic(self):
LOWnumpy/linalg/tests/test_linalg.py1999def test_generalized_raise_multiloop():
LOWnumpy/linalg/tests/test_linalg.py2109 def test_basic_function_with_three_arguments(self):
LOWnumpy/linalg/tests/test_linalg.py2119 def test_basic_function_with_two_arguments(self):
LOWnumpy/linalg/tests/test_linalg.py2127 def test_basic_function_with_dynamic_programming_optimization(self):
LOWnumpy/linalg/tests/test_linalg.py2136 def test_vector_as_first_argument(self):
LOWnumpy/linalg/tests/test_linalg.py2146 def test_vector_as_last_argument(self):
LOWnumpy/linalg/tests/test_linalg.py2156 def test_vector_as_first_and_last_argument(self):
LOWnumpy/linalg/tests/test_linalg.py2166 def test_three_arguments_and_out(self):
LOWnumpy/linalg/tests/test_linalg.py2179 def test_two_arguments_and_out(self):
LOWnumpy/linalg/tests/test_linalg.py2189 def test_dynamic_programming_optimization_and_out(self):
LOWnumpy/linalg/tests/test_linalg.py2201 def test_dynamic_programming_logic(self):
LOWnumpy/linalg/tests/test_linalg.py2231 def test_too_few_input_arrays(self):
LOWnumpy/linalg/tests/test_linalg.py2295def test_unsupported_commontype():
LOWnumpy/linalg/tests/test_deprecations.py9def test_qr_mode_full_future_warning():
LOWnumpy/linalg/tests/test_regression.py144 def test_lstsq_complex_larger_rhs(self):
LOWnumpy/linalg/tests/test_regression.py157 def test_cholesky_empty_array(self, upper):
LOWnumpy/linalg/tests/test_regression.py163 def test_matrix_rank_rtol_argument(self, rtol):
LOWnumpy/ctypeslib/_ctypeslib.py398 def _ctype_from_dtype_subarray(dtype):
LOWnumpy/ctypeslib/_ctypeslib.py403 def _ctype_from_dtype_structured(dtype):
LOWnumpy/ma/testutils.py90def _assert_equal_on_sequences(actual, desired, err_msg=''):
LOWnumpy/ma/testutils.py247def assert_array_approx_equal(x, y, decimal=6, err_msg='', verbose=True):
LOWnumpy/ma/testutils.py261def assert_array_almost_equal(x, y, decimal=6, err_msg='', verbose=True):
LOWnumpy/ma/core.py435def _recursive_set_fill_value(fillvalue, dt):
LOWnumpy/ma/core.py834def is_string_or_list_of_strings(val):
LOWnumpy/ma/core.py1331def _replace_dtype_fields_recursive(dtype, primitive_dtype):
LOWnumpy/ma/tests/test_old_ma.py762 def test_assignment_by_condition(self):
LOWnumpy/ma/tests/test_core.py751 def test_pickling_maskedconstant(self):
LOWnumpy/ma/tests/test_core.py760 def test_pickling_wstructured(self):
LOWnumpy/ma/tests/test_core.py769 def test_pickling_keepalignment(self):
LOWnumpy/ma/tests/test_core.py777 def test_single_element_subscript(self):
LOWnumpy/ma/tests/test_core.py1223 def test_masked_singleton_arithmetic(self):
LOWnumpy/ma/tests/test_core.py1233 def test_masked_singleton_equality(self):
LOWnumpy/ma/tests/test_core.py1241 def test_arithmetic_with_masked_singleton(self):
LOWnumpy/ma/tests/test_core.py2289 def test_fill_value_datetime_structured(self):
LOWnumpy/ma/tests/test_core.py2297 def test_fill_value_datetime_structured_datetime(self):
LOWnumpy/ma/tests/test_core.py2305 def test_fill_value_datetime_structured_integer(self):
LOWnumpy/ma/tests/test_core.py4542 def test_masked_where_oddities(self):
LOWnumpy/ma/tests/test_core.py4549 def test_masked_where_shape_constraint(self):
LOWnumpy/ma/tests/test_core.py4556 def test_masked_where_structured(self):
LOWnumpy/ma/tests/test_core.py4756 def test_where_with_masked_choice(self):
LOWnumpy/ma/tests/test_core.py4778 def test_where_with_masked_condition(self):
1897 more matches not shown…
Unused Imports888 hits · 596 pts
SeverityFileLineSnippet
LOWtools/ci/check_c_api_usage.py2
LOWnumpy/conftest.py25
LOWnumpy/__init__.py90
LOWnumpy/__init__.py92
LOWnumpy/__init__.py92
LOWnumpy/__init__.py93
LOWnumpy/__init__.py106
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
LOWnumpy/__init__.py120
828 more matches not shown…
Over-Commented Block603 hits · 576 pts
SeverityFileLineSnippet
LOWtools/list_installed_dll_dependencies_cygwin.sh1#!/bin/dash
LOWtools/swig/test/Matrix.h1#ifndef MATRIX_H
LOWtools/swig/test/SuperTensor.h1#ifndef SUPERTENSOR_H
LOWtools/swig/test/Flat.h1#ifndef FLAT_H
LOWtools/swig/test/Vector.h1#ifndef VECTOR_H
LOWtools/swig/test/Vector.h21// interfaces, respectively, for:
LOWtools/swig/test/Tensor.h1#ifndef TENSOR_H
LOWtools/ci/lsan_suppressions.txt1# This file contains suppressions for the LSAN tool
LOWtools/ci/lsan_suppressions.txt21#13 0xffffb5cbc6f0 in import_find_and_load Python/import.c:3737
LOWtools/ci/ubsan_suppressions_x86_64.txt1# This file contains suppressions for the default (with GIL) build to prevent runtime errors
LOWtools/ci/ubsan_suppressions_arm64.txt1# This file contains suppressions for the default (with GIL) build to prevent runtime errors
LOWtools/ci/ubsan_suppressions_arm64.txt41# function:_core/src/common/npy_argparse.c
LOWmeson_cpu/x86/test_x86_v2.c1#if defined(DETECT_FEATURES) && defined(__INTEL_COMPILER)
LOWnumpy/linalg/umath_linalg.cpp21#include <cstddef>
LOWnumpy/linalg/umath_linalg.cpp401
LOWnumpy/linalg/lapack_litemodule.c21#elif NPY_BITSOF_INT == 64
LOWnumpy/linalg/lapack_lite/f2c.h201typedef VOID Z_f; /* double complex function */
LOWnumpy/linalg/lapack_lite/f2c.c721 }
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h1/*
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h21#define cgelq2_ BLAS_FUNC(cgelq2)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h41#define chetrd_ BLAS_FUNC(chetrd)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h61#define claqr2_ BLAS_FUNC(claqr2)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h81#define cpotrf_ BLAS_FUNC(cpotrf)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h101#define cunghr_ BLAS_FUNC(cunghr)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h121#define dgebal_ BLAS_FUNC(dgebal)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h141#define disnan_ BLAS_FUNC(disnan)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h161#define dlahr2_ BLAS_FUNC(dlahr2)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h181#define dlaqr1_ BLAS_FUNC(dlaqr1)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h201#define dlasd7_ BLAS_FUNC(dlasd7)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h221#define dlauum_ BLAS_FUNC(dlauum)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h241#define dpotrs_ BLAS_FUNC(dpotrs)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h261#define dtrtri_ BLAS_FUNC(dtrtri)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h281#define sbdsdc_ BLAS_FUNC(sbdsdc)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h301#define sgeqrf_ BLAS_FUNC(sgeqrf)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h321#define slaed6_ BLAS_FUNC(slaed6)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h341#define slamrg_ BLAS_FUNC(slamrg)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h361#define slascl_ BLAS_FUNC(slascl)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h381#define slasr_ BLAS_FUNC(slasr)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h401#define sorml2_ BLAS_FUNC(sorml2)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h421#define ssytd2_ BLAS_FUNC(ssytd2)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h441#define zgeev_ BLAS_FUNC(zgeev)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h461#define zher2k_ BLAS_FUNC(zher2k)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h481#define zlanhe_ BLAS_FUNC(zlanhe)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h501#define zlauu2_ BLAS_FUNC(zlauu2)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h521#define zungbr_ BLAS_FUNC(zungbr)
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h541#define c_exp numpy_lapack_lite_c_exp
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h561#define d_prod numpy_lapack_lite_d_prod
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h581#define e_wdue numpy_lapack_lite_e_wdue
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h601#define getarg_ numpy_lapack_lite_getarg_
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h621#define i_nint numpy_lapack_lite_i_nint
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h641#define r_cnjg numpy_lapack_lite_r_cnjg
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h661#define s_paus numpy_lapack_lite_s_paus
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h681#define s_wsue numpy_lapack_lite_s_wsue
LOWnumpy/ma/core.py3061 # created from (= obj) and us. Or there might not. This method can
LOWnumpy/ma/core.py3081 # as the template object (b/c views like arr[...] should keep the same
LOWnumpy/ma/core.py3361 dout._update_from(self)
LOWnumpy/_core/feature_detection_stdio.h1#define _GNU_SOURCE
LOWnumpy/_core/shape_base.py921 >>> np.block([[a]]) # atleast_2d(a)
LOWnumpy/_core/include/numpy/utils.h1#ifndef NUMPY_CORE_INCLUDE_NUMPY_UTILS_H_
LOWnumpy/_core/include/numpy/utils.h21 #define NPY_DECL_ALIGNED(x)
543 more matches not shown…
Deep Nesting262 hits · 220 pts
SeverityFileLineSnippet
LOWtools/check_python_h_first.py55
LOWtools/refguide_check.py242
LOWtools/refguide_check.py546
LOWtools/ci/check_c_api_usage.py87
LOWtools/ci/check_c_api_usage.py121
LOWtools/c_coverage/c_coverage_report.py116
LOWnumpy/__init__.py700
LOWnumpy/_utils/_pep440.py223
LOWnumpy/_utils/_pep440.py391
LOWnumpy/linalg/_linalg.py201
LOWnumpy/linalg/_linalg.py2599
LOWnumpy/linalg/_linalg.py3005
LOWnumpy/linalg/tests/test_linalg.py1419
LOWnumpy/linalg/lapack_lite/make_lite.py288
LOWnumpy/linalg/lapack_lite/make_lite.py177
LOWnumpy/linalg/lapack_lite/fortran.py17
LOWnumpy/linalg/lapack_lite/fortran.py80
LOWnumpy/ctypeslib/_ctypeslib.py239
LOWnumpy/ma/extras.py1521
LOWnumpy/ma/core.py218
LOWnumpy/ma/core.py467
LOWnumpy/ma/core.py2721
LOWnumpy/ma/core.py2882
LOWnumpy/ma/core.py3050
LOWnumpy/ma/core.py3143
LOWnumpy/ma/core.py3277
LOWnumpy/ma/core.py3406
LOWnumpy/ma/core.py3857
LOWnumpy/ma/core.py4047
LOWnumpy/ma/core.py4594
LOWnumpy/ma/core.py5376
LOWnumpy/ma/core.py5470
LOWnumpy/ma/mrecords.py579
LOWnumpy/ma/mrecords.py94
LOWnumpy/ma/tests/test_core.py718
LOWnumpy/ma/tests/test_extras.py974
LOWnumpy/_core/fromnumeric.py2246
LOWnumpy/_core/_dtype.py101
LOWnumpy/_core/_dtype.py326
LOWnumpy/_core/_internal.py90
LOWnumpy/_core/_internal.py151
LOWnumpy/_core/_internal.py226
LOWnumpy/_core/_internal.py367
LOWnumpy/_core/_internal.py465
LOWnumpy/_core/_internal.py630
LOWnumpy/_core/records.py943
LOWnumpy/_core/memmap.py215
LOWnumpy/_core/getlimits.py175
LOWnumpy/_core/_dtype_ctypes.py103
LOWnumpy/_core/shape_base.py138
LOWnumpy/_core/shape_base.py557
LOWnumpy/_core/numeric.py1998
LOWnumpy/_core/numeric.py2320
LOWnumpy/_core/function_base.py490
LOWnumpy/_core/einsumfunc.py150
LOWnumpy/_core/einsumfunc.py330
LOWnumpy/_core/einsumfunc.py445
LOWnumpy/_core/einsumfunc.py635
LOWnumpy/_core/einsumfunc.py1126
LOWnumpy/_core/numerictypes.py322
202 more matches not shown…
Cross-Language Confusion33 hits · 166 pts
SeverityFileLineSnippet
HIGHtools/swig/test/testArray.py41 for i in range(self.array1.length()):
HIGHtools/swig/test/testArray.py52 self.assertTrue(self.array1.length() == self.length)
HIGHtools/swig/test/testArray.py100 for i in range(self.array1.length()):
HIGHtools/swig/test/testArray.py106 for i in range(self.array1.length()):
HIGHtools/swig/test/testArray.py112 for i in range(self.array1.length()):
HIGHtools/swig/test/testArray.py295 for i in range(self.array3.length()):
HIGHtools/swig/test/testArray.py306 self.assertTrue(self.array3.length() == self.length)
HIGHtools/swig/test/testArray.py354 for i in range(self.array3.length()):
HIGHtools/swig/test/testArray.py361 for i in range(self.array3.length()):
HIGHtools/swig/test/testArray.py367 for i in range(self.array3.length()):
HIGHnumpy/ma/extras.py699 the contents of the input array. Treat the input as undefined,
HIGHnumpy/_core/tests/test_mem_policy.py56 if (args != NULL && PyCapsule_CheckExact(args)) {
HIGHnumpy/_core/tests/test_stringdtype.py1409 # str_len always errors for any non-string null, even NA ones because
HIGHnumpy/_core/code_generators/generate_ufunc_api.py42 if (numpy == NULL && PyErr_ExceptionMatches(PyExc_ModuleNotFoundError)) {
HIGHnumpy/_core/code_generators/generate_numpy_api.py66 if (numpy == NULL && PyErr_ExceptionMatches(PyExc_ModuleNotFoundError)) {
HIGHnumpy/f2py/cfuncs.py802 /* empty bytes has trailing null, so dereferencing is always safe */
HIGHnumpy/f2py/cfuncs.py383 case NPY_BOOL: *(npy_bool *)(PyArray_DATA(arr))=(_re!=0 && _im!=0); break;\\
HIGHnumpy/f2py/cfuncs.py496 for (_m -= 1; _m >= 0 && _to[_m] == NULLVALUE; _m--) { \\
HIGHnumpy/f2py/cfuncs.py770 if (n < 0 || *len < 0 || buf == NULL) {
HIGHnumpy/f2py/cfuncs.py918 return !(*v == -1 && PyErr_Occurred());
HIGHnumpy/f2py/cfuncs.py925 return !(*v == -1 && PyErr_Occurred());
HIGHnumpy/f2py/cfuncs.py967 return !(*v == -1 && PyErr_Occurred());
HIGHnumpy/f2py/cfuncs.py974 return !(*v == -1 && PyErr_Occurred());
HIGHnumpy/f2py/cfuncs.py1017 return !(*v == -1 && PyErr_Occurred());
HIGHnumpy/f2py/cfuncs.py1024 return !(*v == -1 && PyErr_Occurred());
HIGHnumpy/f2py/cfuncs.py1093 return !(*v == -1.0 && PyErr_Occurred());
HIGHnumpy/f2py/cfuncs.py1100 return !(*v == -1.0 && PyErr_Occurred());
HIGHnumpy/f2py/cfuncs.py1226 return !(npy_creal(v->_npy) == -1.0 && PyErr_Occurred());
HIGHnumpy/f2py/cfuncs.py1230 return !(npy_creal(v->_npy) == -1.0 && PyErr_Occurred());
HIGHnumpy/f2py/tests/test_character.py455 !f2py check(i>=0 && i<12) i
HIGHnumpy/lib/_arraypad_impl.py841 # (padded area is undefined)
HIGHnumpy/lib/_function_base_impl.py3939 the contents of the input array. Treat the input as undefined,
HIGHnumpy/lib/_nanfunctions_impl.py1148 the contents of the input array. Treat the input as undefined,
Excessive Try-Catch Wrapping119 hits · 124 pts
SeverityFileLineSnippet
LOWtools/refguide_check.py309 except Exception:
LOWtools/refguide_check.py516 except Exception:
LOWtools/ci/check_c_api_usage.py215 except Exception as e:
LOWnumpy/linalg/_linalg.py2780 except Exception as e:
LOWnumpy/linalg/tests/test_linalg.py405 except Exception as e:
LOWnumpy/linalg/tests/test_linalg.py2047 except Exception:
LOWnumpy/linalg/lapack_lite/make_lite.py285 except Exception:
MEDIUMnumpy/linalg/lapack_lite/make_lite.py282def ensure_executable(name):
LOWnumpy/ctypeslib/_ctypeslib.py309 except Exception as e:
MEDIUMnumpy/ma/core.py319def _scalar_fill_value(dtype):
LOWnumpy/ma/core.py1097 except Exception:
LOWnumpy/ma/core.py1237 except Exception:
LOWnumpy/ma/mrecords.py243 except Exception:
LOWnumpy/ma/mrecords.py260 except Exception:
MEDIUMnumpy/ma/mrecords.py180def __getattribute__(self, attr):
LOWnumpy/ma/tests/test_extras.py985 except Exception:
LOWnumpy/_core/_internal.py954 except Exception:
MEDIUMnumpy/_core/_internal.py58def _usefields(adict, align):
LOWnumpy/_core/records.py463 except Exception:
LOWnumpy/_core/records.py476 except Exception:
LOWnumpy/_core/numeric.py1158 except Exception:
LOWnumpy/_core/numeric.py2531 except Exception:
LOWnumpy/_core/numeric.py2599 except Exception:
LOWnumpy/_core/numeric.py2603 except Exception:
LOWnumpy/_core/function_base.py486 except Exception:
LOWnumpy/_core/numerictypes.py171 except Exception:
LOWnumpy/_core/numerictypes.py223 except Exception:
LOWnumpy/_core/tests/test_scalarmath.py110 except Exception as e:
LOWnumpy/_core/tests/test_arrayprint.py1341 except Exception:
LOWnumpy/_core/tests/test_indexing.py989 except Exception:
LOWnumpy/_core/tests/test_indexing.py1088 except Exception:
LOWnumpy/_core/tests/test_indexing.py1128 except Exception as e:
LOWnumpy/_core/tests/test_indexing.py1152 except Exception as e:
LOWnumpy/_core/tests/test_extint128.py58 except Exception:
LOWnumpy/_core/tests/test_ufunc.py188 except Exception as exc:
LOWnumpy/_core/tests/test_strings.py142 except Exception:
MEDIUMnumpy/_core/tests/test_multiarray.py395def make_array(size, offset, strides):
LOWnumpy/_core/tests/test_multiarray.py9760 except Exception:
LOWnumpy/_core/tests/test_multiarray.py399 except Exception as e:
MEDIUMnumpy/_core/tests/test_nditer.py3025def _is_buffered(iterator):
LOWnumpy/_core/tests/test_nditer.py1547 except Exception:
LOWnumpy/_core/tests/test_nditer.py3184 except Exception:
LOWnumpy/_core/tests/test_nditer.py3365 except Exception:
LOWnumpy/_core/tests/test_cpu_features.py26 except Exception as err:
LOWnumpy/_core/tests/test_cpu_features.py33 except Exception as err:
LOWnumpy/_core/tests/test_cpu_features.py422 except Exception:
MEDIUMnumpy/_core/tests/test_cpu_features.py176def _expect_error(
LOWnumpy/_core/tests/test_regression.py1885 except Exception:
LOWnumpy/_core/code_generators/genapi.py308 except Exception as e:
MEDIUMnumpy/_core/code_generators/genapi.py133def __str__(self):
LOWnumpy/f2py/crackfortran.py1150 except Exception:
LOWnumpy/f2py/crackfortran.py1164 except Exception:
LOWnumpy/f2py/crackfortran.py1174 except Exception:
LOWnumpy/f2py/crackfortran.py1302 except Exception:
LOWnumpy/f2py/crackfortran.py1376 except Exception:
LOWnumpy/f2py/crackfortran.py1962 except Exception:
LOWnumpy/f2py/crackfortran.py2307 except Exception:
LOWnumpy/f2py/crackfortran.py2345 except Exception:
LOWnumpy/f2py/crackfortran.py2533 except Exception as msg:
LOWnumpy/f2py/crackfortran.py2566 except Exception as msg:
59 more matches not shown…
Decorative Section Separators48 hits · 104 pts
SeverityFileLineSnippet
MEDIUMnumpy/ma/extras.py245#####--------------------------------------------------------------------------
MEDIUMnumpy/ma/extras.py247#####--------------------------------------------------------------------------
MEDIUMnumpy/ma/extras.py337#####--------------------------------------------------------------------------
MEDIUMnumpy/ma/extras.py339#####--------------------------------------------------------------------------
MEDIUMnumpy/ma/extras.py1225#####--------------------------------------------------------------------------
MEDIUMnumpy/ma/extras.py1227#####--------------------------------------------------------------------------
MEDIUMnumpy/ma/extras.py1732#####--------------------------------------------------------------------------
MEDIUMnumpy/ma/extras.py1734#####--------------------------------------------------------------------------
MEDIUMnumpy/ma/extras.py1796#####--------------------------------------------------------------------------
MEDIUMnumpy/ma/extras.py1798#####--------------------------------------------------------------------------
MEDIUMnumpy/lib/_type_check_impl.py356#-----------------------------------------------------------------------------
MEDIUMnumpy/lib/_type_check_impl.py489#-----------------------------------------------------------------------------
MEDIUMnumpy/lib/_type_check_impl.py554#-----------------------------------------------------------------------------
MEDIUMnumpy/lib/_type_check_impl.py642#-----------------------------------------------------------------------------
MEDIUMnumpy/lib/_npyio_impl.py1728#####--------------------------------------------------------------------------
MEDIUMnumpy/lib/_npyio_impl.py1730#####--------------------------------------------------------------------------
MEDIUMnumpy/lib/_utils_impl.py137#-----------------------------------------------------------------------------
MEDIUMnumpy/lib/tests/test__iotools.py84# -----------------------------------------------------------------------------
MEDIUMnumpy/lib/tests/test__iotools.py138# -----------------------------------------------------------------------------
MEDIUMnumpy/lib/tests/test_io.py1349#####--------------------------------------------------------------------------
MEDIUM.github/workflows/windows.yml71 #=======================================================================================
MEDIUM.github/workflows/windows.yml124 #=======================================================================================
MEDIUMdoc/source/conf.py88# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py90# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py238# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py240# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py310# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py312# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py404# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py406# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py416# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py418# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py435# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py437# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py445# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py447# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py451# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py453# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py465# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py467# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py496# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py498# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py616# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py618# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py630# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py632# -----------------------------------------------------------------------------
MEDIUMdoc/neps/conf.py174# -----------------------------------------------------------------------------
MEDIUMdoc/neps/conf.py176# -----------------------------------------------------------------------------
Self-Referential Comments35 hits · 96 pts
SeverityFileLineSnippet
MEDIUMnumpy/linalg/tests/test_linalg.py1500 # Define the part for 2d arrays separately, so we can subclass this
MEDIUMnumpy/linalg/tests/test_linalg.py1734 # Define the array class here, so run this on matrices elsewhere.
MEDIUMnumpy/ma/core.py3847 # Create the attribute if it was undefined
MEDIUMnumpy/ma/mrecords.py236 # Create a shortcut (so that we don't have to call getattr all the time)
MEDIUMnumpy/ma/mrecords.py719 # Create a new empty recarray
MEDIUMnumpy/ma/mrecords.py729 # Create a new empty recarray
MEDIUMnumpy/_core/numeric.py1684 # Create the output array
MEDIUMnumpy/_core/tests/test_numerictypes.py494 # This function is old enough that we're really just documenting the quirks
MEDIUMnumpy/_core/tests/test_array_coercion.py816 # Create an equivalent descriptor with a new and distinct dtype
MEDIUMnumpy/_core/tests/test_multithreading.py192 # Create a deeply nested dtype to make a failure more likely:
MEDIUMnumpy/_core/tests/test_multithreading.py218 # Create a deeply nested dtype to make a failure more likely:
MEDIUMnumpy/_core/tests/test_half.py283 # Create an array of all finite float16s
MEDIUMnumpy/_core/tests/test_dtype.py1947 # Create an array and test that memory gets cleaned up (gh-25949)
MEDIUMnumpy/_core/tests/test_stringdtype.py1651 # Create an empty array with expanded dimension, and fill it. Then,
MEDIUMnumpy/_core/tests/test_multiarray.py4428 # Create an object with the given base, in the given module, with a
MEDIUMnumpy/_core/tests/test_multiarray.py11390 # Create a base array (scalar) and copy its interface
MEDIUMnumpy/_core/code_generators/genapi.py355 # Create the mangled name:
MEDIUMnumpy/typing/tests/data/pass/simple.py28# Define the arguments on the previous line to prevent bidirectional
MEDIUMnumpy/f2py/cfuncs.py566# Defining the correct value to indicate thread-local storage in C without
MEDIUMnumpy/lib/recfunctions.py471 # Create an iterator for the data
MEDIUMnumpy/lib/_arraypad_impl.py797 # Create a new zero padded array
MEDIUMnumpy/lib/_npyio_impl.py1714 # Create the new array as a single data-type and then
MEDIUMnumpy/lib/_npyio_impl.py2086 # Define the list of missing_values (one column: one list)
MEDIUMnumpy/lib/_npyio_impl.py2140 # Define the default
MEDIUMnumpy/lib/_index_tricks_impl.py786# The following functions complement those in twodim_base, but are
MEDIUMnumpy/lib/_datasource.py22 >>> # Create a DataSource, use os.curdir (default) for local storage.
MEDIUMnumpy/lib/tests/test_arrayterator.py13 # Create a random array
MEDIUMnumpy/lib/tests/test__datasource.py292 # Create a locally cached temp file with a URL based
MEDIUMnumpy/lib/tests/test_nanfunctions.py1278 # Create a multi-dimensional array to test
MEDIUMnumpy/random/tests/test_random.py530 # Create a dict works like a sequence but isn't one
MEDIUM.github/workflows/linux_simd.yml7# This file is meant for testing different SIMD-related build options and
MEDIUM.github/workflows/linux.yml3# This file is meant for testing across supported Python versions, build types
MEDIUM.github/workflows/linux_blas.yml3# This file is meant for testing different BLAS/LAPACK flavors and build
MEDIUMdoc/source/conf.py208 # Create the admonition node, to be populated by `nested_parse`
MEDIUMdoc/neps/conf.py5# This file is execfile()d with the current directory set to its
AI Slop Vocabulary30 hits · 58 pts
SeverityFileLineSnippet
LOWtools/changelog.py164 # just use the first 80 characters, with ellipses.
LOWnumpy/ma/core.py4231 # For regular arrays, just use the data as they come.
LOWnumpy/ma/core.py3179 # Unary domain: just use this one
LOWnumpy/_core/_internal.py433 # if both are identical, we can (maybe!) just return the same dtype.
LOWnumpy/_core/__init__.py47 # cache_tag is documented to be possibly None, so just use name if it is
LOWnumpy/_core/tests/test_scalarmath.py583 # Scalars should just return False and not give a warnings.
LOWnumpy/_core/tests/test_array_coercion.py903 # result. This should likely just return S0 and if not maybe the decision
LOWnumpy/_core/tests/test_custom_dtypes.py397 # Also user dtype can just return self if conjugate should be no-op.
LOWnumpy/_core/tests/test_defchararray.py508 # Test special cases that should just return the input array,
LOWnumpy/_core/tests/test_overrides.py201 # we just call the function in that case.
MEDIUMnumpy/_core/tests/test_multiarray.py6580 # in conjunction with subarray dimensions being absorbed into the
MEDIUMnumpy/_core/tests/test_multiarray.py11215# Test large arrays that leverage openMP implementations from x86-simd-sort:
MEDIUMnumpy/_core/tests/test_multiarray.py11223# Test large arrays that leverage openMP implementations from x86-simd-sort:
LOWnumpy/_core/tests/test_regression.py1308 # `dot` should just return zero (m, n) matrix
MEDIUMnumpy/f2py/func2subr.py136 # Essentially, this gets called again with modules where the name of the
LOWnumpy/f2py/capi_maps.py474 # elsize, so we just return 1 and let elsize be determined at
MEDIUMnumpy/lib/_iotools.py651 # something more robust.
LOWnumpy/lib/recfunctions.py317 # Should we flatten the items, or just use a nested approach
LOWnumpy/lib/recfunctions.py1034 # stride, we can just return a view
LOWnumpy/lib/recfunctions.py1614 #... we haven't: just add the description to the current list
LOWnumpy/lib/_function_base_impl.py4873 # therefore simply set 0 values in cdf to -1.
MEDIUMnumpy/lib/_datasource.py397 # TODO: This should be more robust. Handles case where path includes
LOWnumpy/lib/_utils_impl.py441 # numpy scalar, which is not writeable. If so, just return nan.
MEDIUMnumpy/lib/tests/test_shape_base.py565# array_split has more comprehensive test of splitting.
MEDIUMnumpy/lib/tests/test__datasource.py38# A valid website for more robust testing
LOWnumpy/lib/tests/test_nanfunctions.py1288 # We just use ones as weights, but replace it with 0 or 1e200 at the
LOWnumpy/random/tests/test_generator_mt19937.py1629 # rounding but not in any important way, so we just use a looser
LOWnumpy/random/tests/test_randomstate.py1112 # rounding but not in any important way, so we just use a looser
MEDIUM…mpy/random/tests/test_generator_mt19937_regressions.py218 # it doesn't hang. Certainly for a monotonically decreasing
LOWnumpy/random/tests/test_random.py874 # rounding but not in any important way, so we just use a looser
Redundant / Tautological Comments20 hits · 29 pts
SeverityFileLineSnippet
LOW.spin/cmds.py667 # Check if `towncrier` is installed
LOWnumpy/__init__.py856 # Check if BLAS adds spurious FPEs, seen on M4 arms with Accelerate.
LOWnumpy/ma/extras.py879 # Set axis to tuple of ints
LOWnumpy/ma/extras.py1544 # Check if we can guarantee that the integers in the (N - ddof)
LOWnumpy/ma/extras.py1566 # Check if we can guarantee that the integers in the (N - ddof)
LOWnumpy/ma/core.py6360 # Set temps to save time when dealing w/ marrays.
LOWnumpy/ma/tests/test_core.py4760 # Set False to masked
LOWnumpy/ma/tests/test_core.py4769 # Set True to masked
LOWnumpy/_core/_internal.py764 # Check if this was a simple 1-item type, and unwrap it
LOWnumpy/_core/tests/test_indexing.py1068 # Check if broadcasting works
LOWnumpy/_core/tests/test_indexing.py1171 # Check if we got a view, unless its a 0-sized or 0-d array.
LOWnumpy/_core/tests/test_function_base.py33 # Check if the current platform is ARMHF (32-bit ARM architecture)
LOWnumpy/_core/tests/test_casting_unittests.py344 # Check if alignment makes a difference, but only if supported
LOWnumpy/_core/tests/test_api.py602 # Check if new arrays are correct:
LOWnumpy/_core/tests/test_regression.py1498 # Check if log1p is behaving on 32 bit intel systems.
LOWnumpy/f2py/tests/util.py29# Check if compilers are available at all...
LOWnumpy/lib/_arraysetops_impl.py910 # Check if one of the arrays may contain arbitrary objects
LOWnumpy/lib/_npyio_impl.py2159 # Add the value to the list
LOWnumpy/lib/_format_impl.py954 # Check if we ought to create the file.
LOW.github/workflows/linux_blas.yml374 # Check if the patch works:
Cross-File Repetition5 hits · 25 pts
SeverityFileLineSnippet
HIGHnumpy/ma/tests/test_core.py0tests for structural pattern matching support (pep 634).
HIGHnumpy/_core/tests/test_records.py0tests for structural pattern matching support (pep 634).
HIGHnumpy/_core/tests/test_multiarray.py0tests for structural pattern matching support (pep 634).
HIGHnumpy/_core/tests/test_memmap.py0tests for structural pattern matching support (pep 634).
HIGHnumpy/matrixlib/tests/test_defmatrix.py0tests for structural pattern matching support (pep 634).
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippet
HIGHnumpy/_core/tests/test_nditer.py1013 # Check that arrays are cast as requested
HIGHnumpy/_core/tests/test_nditer.py1119 # Check that scalars are cast as requested
Slop Phrases2 hits · 2 pts
SeverityFileLineSnippet
LOWnumpy/ma/core.py4681 # make sure to return a 0-d array if axis is supplied
LOWnumpy/_core/numeric.py2416 # This will cause casting of x later. Also, make sure to allow subclasses
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippet
LOWnumpy/lib/tests/test_io.py327 # We need to check if the garbage collector can properly close