AI Slop Code RIsk Monitor

numpy/numpy

The fundamental package for scientific computing with Python.

8.6 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for numpy/numpy, a Python project with 33,051 GitHub stars. SynthScan examined 552,153 lines of code across 1069 source files, recording 4637 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 8.6 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

8.6
Adjusted Signal
8.6
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
33.1K
Stars
Python
Language
552.2K
Lines of Code
1.1K
Files
4.6K
Pattern Hits
2026-10-12
Scan Date
0.19
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 23.1/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 3297 finding(s).

Hallucinated Dependency & Supply Chain Risk 6.6/100 · LOW

Are imports declared and package/API names verified? 923 finding(s).

Agent Over-Engineering Ratio 23.8/100 · LOW

Are wrappers, guards, and repeated structures necessary? 2735 finding(s).

PR Review Velocity Impact 41.1/100 · MEDIUM

Which changes need focused human review? 4637 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 198MEDIUM 110LOW 4329

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 4637 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers2268 hits · 1840 pts
SeverityFileLineSnippetContext
LOWtools/check_python_h_first.py55def check_python_h_included_first(name_to_check: str) -> int:CODE
LOWnumpy/_utils/_config_helpers.py9def _cleanup_empty_dict_values(d):CODE
LOW⚡numpy/linalg/_linalg.py142def _raise_linalgerror_singular(err, flag):CODE
LOW⚡numpy/linalg/_linalg.py145def _raise_linalgerror_nonposdef(err, flag):CODE
LOW⚡numpy/linalg/_linalg.py148def _raise_linalgerror_eigenvalues_nonconvergence(err, flag):CODE
LOW⚡numpy/linalg/_linalg.py151def _raise_linalgerror_svd_nonconvergence(err, flag):CODE
LOWnumpy/linalg/_linalg.py2997def _multi_dot_matrix_chain_order(arrays, return_costs=False):STRING
LOWnumpy/linalg/_linalg.py3410def _matrix_transpose_dispatcher(x):CODE
LOW⚡numpy/linalg/tests/test_linalg.py453 def test_generalized_sq_cases(self):CODE
LOW⚡numpy/linalg/tests/test_linalg.py458 def test_generalized_empty_sq_cases(self):CODE
LOW⚡numpy/linalg/tests/test_linalg.py465 def test_generalized_nonsq_cases(self):CODE
LOW⚡numpy/linalg/tests/test_linalg.py470 def test_generalized_empty_nonsq_cases(self):CODE
LOW⚡numpy/linalg/tests/test_linalg.py477 def test_generalized_herm_cases(self):CODE
LOW⚡numpy/linalg/tests/test_linalg.py482 def test_generalized_empty_herm_cases(self):CODE
LOW⚡numpy/linalg/tests/test_linalg.py487def identity_like_generalized(a):CODE
LOW⚡numpy/linalg/tests/test_linalg.py1221 def test_exceptions_bad_power(self, dt):CODE
LOW⚡numpy/linalg/tests/test_linalg.py1226 def test_exceptions_non_square(self, dt):CODE
LOW⚡numpy/linalg/tests/test_linalg.py1231 def test_exceptions_not_invertible(self, dt):CODE
LOWnumpy/linalg/tests/test_linalg.py980def test_pinv_rtol_none_non_inexact(dtype):CODE
LOWnumpy/linalg/tests/test_linalg.py1876 def test_mode_all_but_economic(self):CODE
LOWnumpy/linalg/tests/test_linalg.py2059def test_generalized_raise_multiloop():CODE
LOW⚡numpy/linalg/tests/test_linalg.py2169 def test_basic_function_with_three_arguments(self):STRING
LOW⚡numpy/linalg/tests/test_linalg.py2179 def test_basic_function_with_two_arguments(self):STRING
LOW⚡numpy/linalg/tests/test_linalg.py2187 def test_basic_function_with_dynamic_programming_optimization(self):STRING
LOW⚡numpy/linalg/tests/test_linalg.py2196 def test_vector_as_first_argument(self):STRING
LOW⚡numpy/linalg/tests/test_linalg.py2206 def test_vector_as_last_argument(self):STRING
LOW⚡numpy/linalg/tests/test_linalg.py2216 def test_vector_as_first_and_last_argument(self):STRING
LOW⚡numpy/linalg/tests/test_linalg.py2226 def test_three_arguments_and_out(self):STRING
LOWnumpy/linalg/tests/test_linalg.py2239 def test_two_arguments_and_out(self):STRING
LOWnumpy/linalg/tests/test_linalg.py2249 def test_dynamic_programming_optimization_and_out(self):STRING
LOWnumpy/linalg/tests/test_linalg.py2261 def test_dynamic_programming_logic(self):STRING
LOWnumpy/linalg/tests/test_linalg.py2291 def test_too_few_input_arrays(self):STRING
LOWnumpy/linalg/tests/test_linalg.py2355def test_unsupported_commontype():STRING
LOWnumpy/linalg/tests/test_deprecations.py9def test_qr_mode_full_removed():CODE
LOWnumpy/linalg/tests/test_regression.py144 def test_lstsq_complex_larger_rhs(self):CODE
LOWnumpy/linalg/tests/test_regression.py157 def test_cholesky_empty_array(self, upper):CODE
LOWnumpy/linalg/tests/test_regression.py163 def test_matrix_rank_rtol_argument(self, rtol):CODE
LOWnumpy/ctypeslib/_ctypeslib.py410 def _ctype_from_dtype_subarray(dtype):CODE
LOWnumpy/ctypeslib/_ctypeslib.py415 def _ctype_from_dtype_structured(dtype):CODE
LOWnumpy/ma/testutils.py90def _assert_equal_on_sequences(actual, desired, err_msg=''):CODE
LOWnumpy/ma/testutils.py247def assert_array_approx_equal(x, y, decimal=6, err_msg='', verbose=True):CODE
LOWnumpy/ma/testutils.py261def assert_array_almost_equal(x, y, decimal=6, err_msg='', verbose=True):CODE
LOWnumpy/ma/core.py318def _check_fill_value_or_default(fill_value, ndtype):CODE
LOWnumpy/ma/core.py444def _recursive_set_fill_value(fillvalue, dt):CODE
LOWnumpy/ma/core.py843def is_string_or_list_of_strings(val):CODE
LOWnumpy/ma/core.py1340def _replace_dtype_fields_recursive(dtype, primitive_dtype):CODE
LOWnumpy/ma/tests/test_old_ma.py762 def test_assignment_by_condition(self):CODE
LOW⚡numpy/ma/tests/test_core.py754 def test_pickling_maskedconstant(self):CODE
LOW⚡numpy/ma/tests/test_core.py763 def test_pickling_wstructured(self):CODE
LOW⚡numpy/ma/tests/test_core.py772 def test_pickling_keepalignment(self):CODE
LOW⚡numpy/ma/tests/test_core.py780 def test_single_element_subscript(self):CODE
LOW⚡numpy/ma/tests/test_core.py1228 def test_masked_singleton_arithmetic(self):CODE
LOW⚡numpy/ma/tests/test_core.py1238 def test_masked_singleton_equality(self):CODE
LOW⚡numpy/ma/tests/test_core.py1246 def test_arithmetic_with_masked_singleton(self):CODE
LOW⚡numpy/ma/tests/test_core.py2330 def test_fill_value_datetime_structured(self):CODE
LOW⚡numpy/ma/tests/test_core.py2338 def test_fill_value_datetime_structured_datetime(self):CODE
LOW⚡numpy/ma/tests/test_core.py2346 def test_fill_value_datetime_structured_integer(self):CODE
LOW⚡numpy/ma/tests/test_core.py2753 def test_fillvalue_reset_on_lossy_float_cast_in_constructor(self):CODE
LOW⚡numpy/ma/tests/test_core.py2763 def test_fillvalue_user_given_still_raises_in_constructor(self):CODE
LOW⚡numpy/ma/tests/test_core.py2768 def test_fillvalue_reset_on_object_to_float_in_constructor(self):CODE
2208 more matches not shown…
Unused Imports889 hits · 590 pts
SeverityFileLineSnippetContext
LOWtools/ci/check_c_api_usage.py2CODE
LOWnumpy/conftest.py32CODE
LOWnumpy/__init__.py90CODE
LOWnumpy/__init__.py92CODE
LOWnumpy/__init__.py92CODE
LOWnumpy/__init__.py93CODE
LOWnumpy/__init__.py106CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
LOWnumpy/__init__.py120CODE
829 more matches not shown…
Over-Commented Block616 hits · 590 pts
SeverityFileLineSnippetContext
LOWpyproject.toml61 'numpy/linalg/lapack_lite/LICENSE.txt', # BSD-3-ClauseCOMMENT
LOWtools/list_installed_dll_dependencies_cygwin.sh1#!/bin/dashCOMMENT
LOWtools/swig/test/Matrix.h1#ifndef MATRIX_HCOMMENT
LOWtools/swig/test/SuperTensor.h1#ifndef SUPERTENSOR_HCOMMENT
LOWtools/swig/test/Flat.h1#ifndef FLAT_HCOMMENT
LOWtools/swig/test/Vector.h1#ifndef VECTOR_HCOMMENT
LOWtools/swig/test/Vector.h21// interfaces, respectively, for:COMMENT
LOWtools/swig/test/Tensor.h1#ifndef TENSOR_HCOMMENT
LOWtools/ci/lsan_suppressions.txt1# This file contains suppressions for the LSAN toolCOMMENT
LOWtools/ci/ubsan_suppressions_arm64.txt41# function:_core/src/multiarray/convert_datatype.cCOMMENT
LOWmeson_cpu/x86/test_x86_v2.c1#if defined(DETECT_FEATURES) && defined(__INTEL_COMPILER)COMMENT
LOWrequirements/hypothesis_requirements.txt1# hypothesis is an *optional* test dependency: it supplements the deterministicCOMMENT
LOWnumpy/linalg/umath_linalg.cpp21#include <cstddef>COMMENT
LOWnumpy/linalg/umath_linalg.cpp421#define LAPACK(FUNC) \COMMENT
LOWnumpy/linalg/lapack_litemodule.c21#elif NPY_BITSOF_INT == 64COMMENT
LOWnumpy/linalg/lapack_lite/f2c.h201typedef VOID Z_f; /* double complex function */COMMENT
LOWnumpy/linalg/lapack_lite/f2c.c721 }COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h1/*COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h21#define cgelq2_ BLAS_FUNC(cgelq2)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h41#define chetrd_ BLAS_FUNC(chetrd)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h61#define claqr2_ BLAS_FUNC(claqr2)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h81#define cpotrf_ BLAS_FUNC(cpotrf)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h101#define cunghr_ BLAS_FUNC(cunghr)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h121#define dgebal_ BLAS_FUNC(dgebal)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h141#define disnan_ BLAS_FUNC(disnan)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h161#define dlahr2_ BLAS_FUNC(dlahr2)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h181#define dlaqr1_ BLAS_FUNC(dlaqr1)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h201#define dlasd7_ BLAS_FUNC(dlasd7)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h221#define dlauum_ BLAS_FUNC(dlauum)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h241#define dpotrs_ BLAS_FUNC(dpotrs)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h261#define dtrtri_ BLAS_FUNC(dtrtri)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h281#define sbdsdc_ BLAS_FUNC(sbdsdc)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h301#define sgeqrf_ BLAS_FUNC(sgeqrf)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h321#define slaed6_ BLAS_FUNC(slaed6)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h341#define slamrg_ BLAS_FUNC(slamrg)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h361#define slascl_ BLAS_FUNC(slascl)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h381#define slasr_ BLAS_FUNC(slasr)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h401#define sorml2_ BLAS_FUNC(sorml2)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h421#define ssytd2_ BLAS_FUNC(ssytd2)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h441#define zgeev_ BLAS_FUNC(zgeev)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h461#define zher2k_ BLAS_FUNC(zher2k)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h481#define zlanhe_ BLAS_FUNC(zlanhe)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h501#define zlauu2_ BLAS_FUNC(zlauu2)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h521#define zungbr_ BLAS_FUNC(zungbr)COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h541#define c_exp numpy_lapack_lite_c_expCOMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h561#define d_prod numpy_lapack_lite_d_prodCOMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h581#define e_wdue numpy_lapack_lite_e_wdueCOMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h601#define getarg_ numpy_lapack_lite_getarg_COMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h621#define i_nint numpy_lapack_lite_i_nintCOMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h641#define r_cnjg numpy_lapack_lite_r_cnjgCOMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h661#define s_paus numpy_lapack_lite_s_pausCOMMENT
LOWnumpy/linalg/lapack_lite/lapack_lite_names.h681#define s_wsue numpy_lapack_lite_s_wsueCOMMENT
LOWnumpy/ma/core.py3081 # created from (= obj) and us. Or there might not. This method canCOMMENT
LOWnumpy/ma/core.py3101 # as the template object (b/c views like arr[...] should keep the sameCOMMENT
LOWnumpy/ma/core.py3401 dout = dout.view(type(self))COMMENT
LOWnumpy/_core/feature_detection_stdio.h1#define _GNU_SOURCECOMMENT
LOWnumpy/_core/shape_base.py921 >>> np.block([[b]]) # atleast_2d(b)COMMENT
LOWnumpy/_core/include/numpy/utils.h1#ifndef NUMPY_CORE_INCLUDE_NUMPY_UTILS_H_COMMENT
LOWnumpy/_core/include/numpy/utils.h81 #define _NPY_OPAQUE_FIRST_FIELD NPY_DECL_ALIGNED(8)COMMENT
LOWnumpy/_core/include/numpy/ufuncobject.h341/* Make sure it gets defined if it isn't already */COMMENT
556 more matches not shown…
Empty Error Handlers116 hits · 580 pts
SeverityFileLineSnippetContext
HIGH.spin/cmds.py305except ValueError:CODE
HIGH.spin/cmds.py349except (ImportError, RuntimeError):CODE
HIGHtools/check_python_h_first.py198except ValueError:CODE
HIGHtools/refguide_check.py226except ValueError:CODE
HIGHtools/refguide_check.py318except Exception:CODE
HIGHtools/ci/check_c_api_usage.py115except FileNotFoundError:CODE
HIGHnumpy/__init__.py452except AttributeError:CODE
HIGHnumpy/__init__.py824except ValueError:CODE
HIGHnumpy/_distributor_init.py14except ImportError:CODE
HIGHnumpy/_utils/__init__.py33except (AttributeError):CODE
HIGHnumpy/linalg/tests/test_linalg.py56except ImportError:CODE
HIGHnumpy/linalg/tests/test_linalg.py2105except ValueError:CODE
HIGHnumpy/ctypeslib/_ctypeslib.py337except KeyError:CODE
HIGHnumpy/ma/core.py1246except Exception:CODE
HIGHnumpy/ma/core.py1029except TypeError:CODE
HIGHnumpy/ma/core.py1106except Exception:CODE
HIGHnumpy/ma/core.py3152except (TypeError, AttributeError):CODE
HIGHnumpy/ma/core.py3523except (AttributeError, TypeError):CODE
HIGHnumpy/ma/mrecords.py183except AttributeError:CODE
HIGHnumpy/ma/mrecords.py206except IndexError:CODE
HIGHnumpy/ma/tests/test_core.py5213except ValueError:CODE
HIGHnumpy/ma/tests/test_core.py1399except MaskError:CODE
HIGHnumpy/ma/tests/test_extras.py1370except ValueError:CODE
HIGHnumpy/ma/tests/test_extras.py1434except ValueError:CODE
HIGHnumpy/ma/tests/test_extras.py994except np.exceptions.AxisError:CODE
HIGHnumpy/ma/tests/test_mrecords.py253except NotImplementedError:CODE
HIGHnumpy/ma/tests/test_mrecords.py263except (NotImplementedError, TypeError):CODE
HIGHnumpy/_core/fromnumeric.py56except AttributeError:CODE
HIGHnumpy/_core/fromnumeric.py81except AttributeError:CODE
HIGHnumpy/_core/fromnumeric.py4092except AttributeError:CODE
HIGHnumpy/_core/fromnumeric.py4296except AttributeError:CODE
HIGHnumpy/_core/fromnumeric.py4500except AttributeError:CODE
HIGHnumpy/_core/records.py220except AttributeError:CODE
HIGHnumpy/_core/records.py425except AttributeError: # attr must be a fieldnameCODE
HIGHnumpy/_core/_add_newdocs_scalars.py23except AttributeError:CODE
HIGHnumpy/_core/memmap.py257except TypeError:CODE
HIGHnumpy/_core/getlimits.py177except TypeError:CODE
HIGHnumpy/_core/numeric.py1485except TypeError:CODE
HIGHnumpy/_core/function_base.py516except Exception:CODE
HIGHnumpy/_core/function_base.py507except Exception:CODE
HIGHnumpy/_core/tests/test_scalarmath.py886except TypeError:CODE
HIGHnumpy/_core/tests/test_scalarmath.py899except TypeError:CODE
HIGHnumpy/_core/tests/test_scalarmath.py910except TypeError:CODE
HIGHnumpy/_core/tests/test_scalarmath.py932except TypeError:CODE
HIGHnumpy/_core/tests/test_scalarmath.py936except TypeError:CODE
HIGHnumpy/_core/tests/test_arrayprint.py1210except ValueError:CODE
HIGHnumpy/_core/tests/test_array_interface.py125except ImportError:CODE
HIGHnumpy/_core/tests/test_deprecations.py181except OverflowError:CODE
HIGHnumpy/_core/tests/test_deprecations.py187except OverflowError:CODE
HIGHnumpy/_core/tests/test_mem_policy.py221except ImportError:CODE
HIGHnumpy/_core/tests/_locales.py39except locale.Error:CODE
HIGHnumpy/_core/tests/test_ufunc.py2906except TypeError:CODE
HIGHnumpy/_core/tests/test_ufunc.py2915except TypeError:CODE
HIGHnumpy/_core/tests/test_ufunc.py2924except TypeError:CODE
HIGHnumpy/_core/tests/test_stringdtype.py2298except TypeError:CODE
HIGHnumpy/_core/tests/test_multiarray.py10435except TypeError:CODE
HIGHnumpy/_core/tests/test_multiarray.py10169except NotImplementedError:CODE
HIGHnumpy/_core/tests/test_multiarray.py7289except IndexError:CODE
HIGHnumpy/_core/tests/test_nditer.py3428except TypeError:CODE
HIGHnumpy/_core/tests/test_nditer.py3611except Exception:CODE
56 more matches not shown…
Cross-File Repetition47 hits · 235 pts
SeverityFileLineSnippetContext
HIGHnumpy/ma/tests/test_core.py0tests for structural pattern matching support (pep 634).STRING
HIGHnumpy/_core/tests/test_records.py0tests for structural pattern matching support (pep 634).STRING
HIGHnumpy/_core/tests/test_multiarray.py0tests for structural pattern matching support (pep 634).STRING
HIGHnumpy/_core/tests/test_memmap.py0tests for structural pattern matching support (pep 634).STRING
HIGHnumpy/matrixlib/tests/test_defmatrix.py0tests for structural pattern matching support (pep 634).STRING
HIGHnumpy/f2py/common_rules.py0auxiliary functions for f2py2e. copyright 1999 -- 2011 pearu peterson all rights reserved. copyright 2011 -- present numSTRING
HIGHnumpy/f2py/cb_rules.py0auxiliary functions for f2py2e. copyright 1999 -- 2011 pearu peterson all rights reserved. copyright 2011 -- present numSTRING
HIGHnumpy/f2py/__init__.py0auxiliary functions for f2py2e. copyright 1999 -- 2011 pearu peterson all rights reserved. copyright 2011 -- present numSTRING
HIGHnumpy/f2py/func2subr.py0auxiliary functions for f2py2e. copyright 1999 -- 2011 pearu peterson all rights reserved. copyright 2011 -- present numSTRING
HIGHnumpy/f2py/capi_maps.py0auxiliary functions for f2py2e. copyright 1999 -- 2011 pearu peterson all rights reserved. copyright 2011 -- present numSTRING
HIGHnumpy/f2py/f90mod_rules.py0auxiliary functions for f2py2e. copyright 1999 -- 2011 pearu peterson all rights reserved. copyright 2011 -- present numSTRING
HIGHnumpy/f2py/use_rules.py0auxiliary functions for f2py2e. copyright 1999 -- 2011 pearu peterson all rights reserved. copyright 2011 -- present numSTRING
HIGHnumpy/f2py/auxfuncs.py0auxiliary functions for f2py2e. copyright 1999 -- 2011 pearu peterson all rights reserved. copyright 2011 -- present numSTRING
HIGHnumpy/polynomial/laguerre.py0evaluate a 2-d legendre series at points (x, y). this function returns the values: .. math:: p(x,y) = \\sum_{i,j} c_{i,jSTRING
HIGHnumpy/polynomial/hermite_e.py0evaluate a 2-d legendre series at points (x, y). this function returns the values: .. math:: p(x,y) = \\sum_{i,j} c_{i,jSTRING
HIGHnumpy/polynomial/chebyshev.py0evaluate a 2-d legendre series at points (x, y). this function returns the values: .. math:: p(x,y) = \\sum_{i,j} c_{i,jSTRING
HIGHnumpy/polynomial/legendre.py0evaluate a 2-d legendre series at points (x, y). this function returns the values: .. math:: p(x,y) = \\sum_{i,j} c_{i,jSTRING
HIGHnumpy/polynomial/laguerre.py0evaluate an n-d hermite series at points. this function returns the values: .. math:: p(pts, c) = \sum_{i_1, i_2, \dots,STRING
HIGHnumpy/polynomial/hermite_e.py0evaluate an n-d hermite series at points. this function returns the values: .. math:: p(pts, c) = \sum_{i_1, i_2, \dots,STRING
HIGHnumpy/polynomial/chebyshev.py0evaluate an n-d hermite series at points. this function returns the values: .. math:: p(pts, c) = \sum_{i_1, i_2, \dots,STRING
HIGHnumpy/polynomial/polynomial.py0evaluate an n-d hermite series at points. this function returns the values: .. math:: p(pts, c) = \sum_{i_1, i_2, \dots,STRING
HIGHnumpy/polynomial/legendre.py0evaluate an n-d hermite series at points. this function returns the values: .. math:: p(pts, c) = \sum_{i_1, i_2, \dots,STRING
HIGHnumpy/polynomial/hermite.py0evaluate an n-d hermite series at points. this function returns the values: .. math:: p(pts, c) = \sum_{i_1, i_2, \dots,STRING
HIGHnumpy/polynomial/laguerre.py0least squares fit of hermite series to data. return the coefficients of a hermite series of degree `deg` that is the leaSTRING
HIGHnumpy/polynomial/hermite_e.py0least squares fit of hermite series to data. return the coefficients of a hermite series of degree `deg` that is the leaSTRING
HIGHnumpy/polynomial/hermite.py0least squares fit of hermite series to data. return the coefficients of a hermite series of degree `deg` that is the leaSTRING
HIGHnumpy/polynomial/laguerre.py0a hermite series class. the hermite class provides the standard python numerical methods '+', '-', '*', '//', '%', 'divmSTRING
HIGHnumpy/polynomial/hermite_e.py0a hermite series class. the hermite class provides the standard python numerical methods '+', '-', '*', '//', '%', 'divmSTRING
HIGHnumpy/polynomial/chebyshev.py0a hermite series class. the hermite class provides the standard python numerical methods '+', '-', '*', '//', '%', 'divmSTRING
HIGHnumpy/polynomial/polynomial.py0a hermite series class. the hermite class provides the standard python numerical methods '+', '-', '*', '//', '%', 'divmSTRING
HIGHnumpy/polynomial/legendre.py0a hermite series class. the hermite class provides the standard python numerical methods '+', '-', '*', '//', '%', 'divmSTRING
HIGHnumpy/polynomial/hermite.py0a hermite series class. the hermite class provides the standard python numerical methods '+', '-', '*', '//', '%', 'divmSTRING
HIGHnumpy/polynomial/hermite_e.py0evaluate a 3-d legendre series at points (x, y, z). this function returns the values: .. math:: p(x,y,z) = \\sum_{i,j,k}STRING
HIGHnumpy/polynomial/chebyshev.py0evaluate a 3-d legendre series at points (x, y, z). this function returns the values: .. math:: p(x,y,z) = \\sum_{i,j,k}STRING
HIGHnumpy/polynomial/legendre.py0evaluate a 3-d legendre series at points (x, y, z). this function returns the values: .. math:: p(x,y,z) = \\sum_{i,j,k}STRING
HIGHnumpy/polynomial/hermite_e.py0evaluate a 3-d legendre series on the cartesian product of x, y, and z. this function returns the values: .. math:: p(a,STRING
HIGHnumpy/polynomial/chebyshev.py0evaluate a 3-d legendre series on the cartesian product of x, y, and z. this function returns the values: .. math:: p(a,STRING
HIGHnumpy/polynomial/legendre.py0evaluate a 3-d legendre series on the cartesian product of x, y, and z. this function returns the values: .. math:: p(a,STRING
HIGHnumpy/polynomial/hermite_e.py0pseudo-vandermonde matrix of given degrees. returns the pseudo-vandermonde matrix of degrees `deg` and sample points ``(STRING
HIGHnumpy/polynomial/chebyshev.py0pseudo-vandermonde matrix of given degrees. returns the pseudo-vandermonde matrix of degrees `deg` and sample points ``(STRING
HIGHnumpy/polynomial/legendre.py0pseudo-vandermonde matrix of given degrees. returns the pseudo-vandermonde matrix of degrees `deg` and sample points ``(STRING
HIGHnumpy/polynomial/hermite_e.py0pseudo-vandermonde matrix of given degrees. returns the pseudo-vandermonde matrix of degrees `deg` and sample points ``(STRING
HIGHnumpy/polynomial/chebyshev.py0pseudo-vandermonde matrix of given degrees. returns the pseudo-vandermonde matrix of degrees `deg` and sample points ``(STRING
HIGHnumpy/polynomial/legendre.py0pseudo-vandermonde matrix of given degrees. returns the pseudo-vandermonde matrix of degrees `deg` and sample points ``(STRING
HIGHnumpy/polynomial/hermite_e.py0return the scaled companion matrix of c. the basis polynomials are scaled so that the companion matrix is symmetric whenSTRING
HIGHnumpy/polynomial/chebyshev.py0return the scaled companion matrix of c. the basis polynomials are scaled so that the companion matrix is symmetric whenSTRING
HIGHnumpy/polynomial/legendre.py0return the scaled companion matrix of c. the basis polynomials are scaled so that the companion matrix is symmetric whenSTRING
Deep Nesting269 hits · 217 pts
SeverityFileLineSnippetContext
LOWtools/check_python_h_first.py55CODE
LOWtools/refguide_check.py251CODE
LOWtools/refguide_check.py555CODE
LOWtools/ci/check_c_api_usage.py87CODE
LOWtools/ci/check_c_api_usage.py121CODE
LOWnumpy/__init__.py702CODE
LOWnumpy/_utils/_pep440.py223CODE
LOWnumpy/_utils/_pep440.py391CODE
LOWnumpy/linalg/_linalg.py200CODE
LOWnumpy/linalg/_linalg.py2591CODE
LOWnumpy/linalg/_linalg.py2997CODE
LOWnumpy/linalg/tests/test_linalg.py1480CODE
LOWnumpy/linalg/lapack_lite/make_lite.py288CODE
LOWnumpy/linalg/lapack_lite/make_lite.py177CODE
LOWnumpy/linalg/lapack_lite/fortran.py17CODE
LOWnumpy/linalg/lapack_lite/fortran.py80CODE
LOWnumpy/ctypeslib/_ctypeslib.py251CODE
LOWnumpy/ctypeslib/_ctypeslib.py95CODE
LOWnumpy/ma/extras.py1664CODE
LOWnumpy/ma/core.py219CODE
LOWnumpy/ma/core.py476CODE
LOWnumpy/ma/core.py2730CODE
LOWnumpy/ma/core.py2891CODE
LOWnumpy/ma/core.py3070CODE
LOWnumpy/ma/core.py3163CODE
LOWnumpy/ma/core.py3319CODE
LOWnumpy/ma/core.py3448CODE
LOWnumpy/ma/core.py3899CODE
LOWnumpy/ma/core.py4089CODE
LOWnumpy/ma/core.py4636CODE
LOWnumpy/ma/core.py5418CODE
LOWnumpy/ma/core.py5512CODE
LOWnumpy/ma/mrecords.py579CODE
LOWnumpy/ma/mrecords.py94CODE
LOWnumpy/ma/tests/test_core.py721CODE
LOWnumpy/ma/tests/test_extras.py975CODE
LOWnumpy/_core/fromnumeric.py2364CODE
LOWnumpy/_core/_dtype.py101CODE
LOWnumpy/_core/_dtype.py322CODE
LOWnumpy/_core/_internal.py91CODE
LOWnumpy/_core/_internal.py152CODE
LOWnumpy/_core/_internal.py227CODE
LOWnumpy/_core/_internal.py368CODE
LOWnumpy/_core/_internal.py466CODE
LOWnumpy/_core/_internal.py632CODE
LOWnumpy/_core/records.py959CODE
LOWnumpy/_core/memmap.py215CODE
LOWnumpy/_core/getlimits.py169CODE
LOWnumpy/_core/_dtype_ctypes.py103CODE
LOWnumpy/_core/shape_base.py138CODE
LOWnumpy/_core/shape_base.py555CODE
LOWnumpy/_core/numeric.py2024CODE
LOWnumpy/_core/numeric.py2346CODE
LOWnumpy/_core/function_base.py520CODE
LOWnumpy/_core/einsumfunc.py150CODE
LOWnumpy/_core/einsumfunc.py330CODE
LOWnumpy/_core/einsumfunc.py445CODE
LOWnumpy/_core/einsumfunc.py635CODE
LOWnumpy/_core/einsumfunc.py1126CODE
LOWnumpy/_core/numerictypes.py329CODE
209 more matches not shown…
Cross-Language Confusion33 hits · 166 pts
SeverityFileLineSnippetContext
HIGHtools/swig/test/testArray.py41 for i in range(self.array1.length()):CODE
HIGHtools/swig/test/testArray.py52 self.assertTrue(self.array1.length() == self.length)CODE
HIGH⚡tools/swig/test/testArray.py100 for i in range(self.array1.length()):CODE
HIGH⚡tools/swig/test/testArray.py106 for i in range(self.array1.length()):CODE
HIGH⚡tools/swig/test/testArray.py112 for i in range(self.array1.length()):CODE
HIGHtools/swig/test/testArray.py295 for i in range(self.array3.length()):STRING
HIGHtools/swig/test/testArray.py306 self.assertTrue(self.array3.length() == self.length)STRING
HIGH⚡tools/swig/test/testArray.py354 for i in range(self.array3.length()):STRING
HIGH⚡tools/swig/test/testArray.py361 for i in range(self.array3.length()):STRING
HIGH⚡tools/swig/test/testArray.py367 for i in range(self.array3.length()):STRING
HIGHnumpy/ma/extras.py726 the contents of the input array. Treat the input as undefined,STRING
HIGHnumpy/_core/tests/test_mem_policy.py56 if (args != NULL && PyCapsule_CheckExact(args)) {CODE
HIGHnumpy/_core/tests/test_stringdtype.py2624 # str_len always errors for any non-string null, even NA ones becauseCOMMENT
HIGHnumpy/_core/code_generators/generate_ufunc_api.py42 if (numpy == NULL && PyErr_ExceptionMatches(PyExc_ModuleNotFoundError)) {CODE
HIGHnumpy/_core/code_generators/generate_numpy_api.py66 if (numpy == NULL && PyErr_ExceptionMatches(PyExc_ModuleNotFoundError)) {CODE
HIGHnumpy/f2py/cfuncs.py798 /* empty bytes has trailing null, so dereferencing is always safe */COMMENT
HIGHnumpy/f2py/cfuncs.py383 case NPY_BOOL: *(npy_bool *)(PyArray_DATA(arr))=(_re!=0 && _im!=0); break;\\CODE
HIGHnumpy/f2py/cfuncs.py496 for (_m -= 1; _m >= 0 && _to[_m] == NULLVALUE; _m--) { \\CODE
HIGHnumpy/f2py/cfuncs.py766 if (n < 0 || *len < 0 || buf == NULL) {CODE
HIGHnumpy/f2py/cfuncs.py912 return !(*v == -1 && PyErr_Occurred());CODE
HIGHnumpy/f2py/cfuncs.py919 return !(*v == -1 && PyErr_Occurred());CODE
HIGHnumpy/f2py/cfuncs.py961 return !(*v == -1 && PyErr_Occurred());CODE
HIGHnumpy/f2py/cfuncs.py968 return !(*v == -1 && PyErr_Occurred());CODE
HIGHnumpy/f2py/cfuncs.py1011 return !(*v == -1 && PyErr_Occurred());CODE
HIGHnumpy/f2py/cfuncs.py1018 return !(*v == -1 && PyErr_Occurred());CODE
HIGHnumpy/f2py/cfuncs.py1087 return !(*v == -1.0 && PyErr_Occurred());CODE
HIGHnumpy/f2py/cfuncs.py1094 return !(*v == -1.0 && PyErr_Occurred());CODE
HIGHnumpy/f2py/cfuncs.py1220 return !(npy_creal(v->_npy) == -1.0 && PyErr_Occurred());CODE
HIGHnumpy/f2py/cfuncs.py1224 return !(npy_creal(v->_npy) == -1.0 && PyErr_Occurred());CODE
HIGHnumpy/f2py/tests/test_character.py455 !f2py check(i>=0 && i<12) iCODE
HIGHnumpy/lib/_arraypad_impl.py873 # (padded area is undefined)COMMENT
HIGHnumpy/lib/_function_base_impl.py3968 the contents of the input array. Treat the input as undefined,CODE
HIGHnumpy/lib/_nanfunctions_impl.py1153 the contents of the input array. Treat the input as undefined,STRING
Excessive Try-Catch Wrapping125 hits · 126 pts
SeverityFileLineSnippetContext
LOWtools/refguide_check.py318 except Exception:CODE
LOWtools/refguide_check.py525 except Exception:CODE
LOWtools/ci/check_c_api_usage.py215 except Exception as e:CODE
LOWnumpy/linalg/_linalg.py2772 except Exception as e:STRING
LOWnumpy/linalg/tests/test_linalg.py411 except Exception as e:CODE
LOWnumpy/linalg/tests/test_linalg.py2107 except Exception:CODE
LOWnumpy/linalg/lapack_lite/make_lite.py285 except Exception:STRING
MEDIUMnumpy/linalg/lapack_lite/make_lite.py282def ensure_executable(name):CODE
LOWnumpy/ctypeslib/_ctypeslib.py321 except Exception as e:CODE
MEDIUMnumpy/ma/core.py328def _scalar_fill_value(dtype):CODE
LOWnumpy/ma/core.py1106 except Exception:CODE
LOWnumpy/ma/core.py1246 except Exception:CODE
LOWnumpy/ma/mrecords.py243 except Exception:CODE
LOWnumpy/ma/mrecords.py260 except Exception:CODE
MEDIUMnumpy/ma/mrecords.py180def __getattribute__(self, attr):CODE
LOWnumpy/ma/tests/test_extras.py986 except Exception:CODE
LOWnumpy/_core/_internal.py956 except Exception:CODE
MEDIUMnumpy/_core/_internal.py59def _usefields(adict, align):CODE
LOWnumpy/_core/records.py467 except Exception:CODE
LOWnumpy/_core/records.py480 except Exception:CODE
LOWnumpy/_core/numeric.py1171 except Exception:STRING
LOWnumpy/_core/numeric.py2557 except Exception:STRING
LOWnumpy/_core/numeric.py2625 except Exception:STRING
LOWnumpy/_core/numeric.py2629 except Exception:STRING
LOWnumpy/_core/function_base.py507 except Exception:CODE
LOWnumpy/_core/function_base.py516 except Exception:CODE
LOWnumpy/_core/numerictypes.py172 except Exception:CODE
LOWnumpy/_core/numerictypes.py224 except Exception:CODE
LOWnumpy/_core/tests/test_scalarmath.py115 except Exception as e:CODE
LOWnumpy/_core/tests/test_arrayprint.py1342 except Exception:CODE
LOWnumpy/_core/tests/test_shape_base.py466 except Exception as e:CODE
LOWnumpy/_core/tests/test_shape_base.py489 except Exception as e:CODE
MEDIUMnumpy/_core/tests/test_shape_base.py463def outcome(func):CODE
MEDIUMnumpy/_core/tests/test_shape_base.py486def outcome(func):CODE
LOWnumpy/_core/tests/test_indexing.py1011 except Exception:CODE
LOWnumpy/_core/tests/test_indexing.py1110 except Exception:CODE
LOWnumpy/_core/tests/test_indexing.py1150 except Exception as e:CODE
LOWnumpy/_core/tests/test_indexing.py1174 except Exception as e:CODE
LOWnumpy/_core/tests/test_extint128.py58 except Exception:CODE
LOWnumpy/_core/tests/test_ufunc.py203 except Exception as exc:CODE
LOWnumpy/_core/tests/test_strings.py142 except Exception:CODE
MEDIUMnumpy/_core/tests/test_multiarray.py416def make_array(size, offset, strides):CODE
LOW⚡numpy/_core/tests/test_multiarray.py10437 except Exception:CODE
LOWnumpy/_core/tests/test_multiarray.py420 except Exception as e:CODE
MEDIUMnumpy/_core/tests/test_nditer.py3271def _is_buffered(iterator):CODE
LOWnumpy/_core/tests/test_nditer.py1566 except Exception:CODE
LOW⚡numpy/_core/tests/test_nditer.py3430 except Exception:STRING
LOWnumpy/_core/tests/test_nditer.py3611 except Exception:STRING
LOWnumpy/_core/tests/test_cpu_features.py28 except Exception as err:CODE
LOWnumpy/_core/tests/test_cpu_features.py35 except Exception as err:CODE
LOWnumpy/_core/tests/test_cpu_features.py457 except Exception:CODE
MEDIUMnumpy/_core/tests/test_cpu_features.py172def _expect_error(CODE
LOWnumpy/_core/tests/test_regression.py1885 except Exception:CODE
LOWnumpy/_core/code_generators/genapi.py308 except Exception as e:CODE
MEDIUMnumpy/_core/code_generators/genapi.py133def __str__(self):CODE
LOWnumpy/f2py/crackfortran.py1150 except Exception:CODE
LOWnumpy/f2py/crackfortran.py1164 except Exception:CODE
LOWnumpy/f2py/crackfortran.py1174 except Exception:CODE
LOWnumpy/f2py/crackfortran.py1302 except Exception:CODE
LOWnumpy/f2py/crackfortran.py1376 except Exception:CODE
65 more matches not shown…
Self-Referential Comments35 hits · 96 pts
SeverityFileLineSnippetContext
MEDIUMnumpy/linalg/tests/test_linalg.py1561 # Define the part for 2d arrays separately, so we can subclass thisCOMMENT
MEDIUMnumpy/linalg/tests/test_linalg.py1795 # Define the array class here, so run this on matrices elsewhere.COMMENT
MEDIUMnumpy/ma/core.py3889 # Create the attribute if it was undefinedCOMMENT
MEDIUMnumpy/ma/mrecords.py236 # Create a shortcut (so that we don't have to call getattr all the time)COMMENT
MEDIUMnumpy/ma/mrecords.py719 # Create a new empty recarrayCOMMENT
MEDIUMnumpy/ma/mrecords.py729 # Create a new empty recarrayCOMMENT
MEDIUMnumpy/_core/numeric.py1700 # Create the output arraySTRING
MEDIUMnumpy/_core/tests/test_numerictypes.py520 # This function is old enough that we're really just documenting the quirksCOMMENT
MEDIUMnumpy/_core/tests/test_array_coercion.py815 # Create an equivalent descriptor with a new and distinct dtypeCOMMENT
MEDIUMnumpy/_core/tests/test_multithreading.py310 # Create a deeply nested dtype to make a failure more likely:COMMENT
MEDIUMnumpy/_core/tests/test_multithreading.py336 # Create a deeply nested dtype to make a failure more likely:COMMENT
MEDIUMnumpy/_core/tests/test_half.py283 # Create an array of all finite float16sCOMMENT
MEDIUMnumpy/_core/tests/test_dtype.py2073 # Create an array and test that memory gets cleaned up (gh-25949)COMMENT
MEDIUMnumpy/_core/tests/test_stringdtype.py2989 # Create an empty array with expanded dimension, and fill it. Then,COMMENT
MEDIUMnumpy/_core/tests/test_multiarray.py4838 # Create an object with the given base, in the given module, with aCOMMENT
MEDIUMnumpy/_core/tests/test_multiarray.py12066 # Create a base array (scalar) and copy its interfaceCOMMENT
MEDIUMnumpy/_core/code_generators/genapi.py355 # Create the mangled name:COMMENT
MEDIUMnumpy/typing/tests/data/pass/simple.py28# Define the arguments on the previous line to prevent bidirectionalCOMMENT
MEDIUMnumpy/f2py/cfuncs.py562# Defining the correct value to indicate thread-local storage in C withoutSTRING
MEDIUMnumpy/lib/recfunctions.py471 # Create an iterator for the dataCOMMENT
MEDIUMnumpy/lib/_arraypad_impl.py829 # Create a new zero padded arrayCOMMENT
MEDIUMnumpy/lib/_npyio_impl.py1714 # Create the new array as a single data-type and thenSTRING
MEDIUMnumpy/lib/_npyio_impl.py2086 # Define the list of missing_values (one column: one list)STRING
MEDIUMnumpy/lib/_npyio_impl.py2140 # Define the defaultSTRING
MEDIUMnumpy/lib/_index_tricks_impl.py786# The following functions complement those in twodim_base, but areCOMMENT
MEDIUMnumpy/lib/_datasource.py22 >>> # Create a DataSource, use os.curdir (default) for local storage.STRING
MEDIUMnumpy/lib/tests/test_arrayterator.py13 # Create a random arrayCOMMENT
MEDIUMnumpy/lib/tests/test__datasource.py324 # Create a locally cached temp file with a URL basedCOMMENT
MEDIUM⚡numpy/lib/tests/test_nanfunctions.py1278 # Create a multi-dimensional array to testCOMMENT
MEDIUM⚡numpy/random/tests/test_random.py530 # Create a dict works like a sequence but isn't oneCOMMENT
MEDIUM.github/workflows/linux_simd.yml6# This file is meant for testing different SIMD-related build options andCOMMENT
MEDIUM.github/workflows/linux.yml3# This file is meant for testing across supported Python versions, build typesCOMMENT
MEDIUM.github/workflows/linux_blas.yml3# This file is meant for testing different BLAS/LAPACK flavors and buildCOMMENT
MEDIUMdoc/source/conf.py208 # Create the admonition node, to be populated by `nested_parse`COMMENT
MEDIUMdoc/neps/conf.py5# This file is execfile()d with the current directory set to itsCOMMENT
Decorative Section Separators48 hits · 91 pts
SeverityFileLineSnippetContext
MEDIUMnumpy/ma/extras.py246#####--------------------------------------------------------------------------COMMENT
MEDIUMnumpy/ma/extras.py248#####--------------------------------------------------------------------------COMMENT
MEDIUMnumpy/ma/extras.py338#####--------------------------------------------------------------------------COMMENT
MEDIUMnumpy/ma/extras.py340#####--------------------------------------------------------------------------COMMENT
MEDIUMnumpy/ma/extras.py1368#####--------------------------------------------------------------------------STRING
MEDIUMnumpy/ma/extras.py1370#####--------------------------------------------------------------------------STRING
MEDIUMnumpy/ma/extras.py1875#####--------------------------------------------------------------------------STRING
MEDIUMnumpy/ma/extras.py1877#####--------------------------------------------------------------------------STRING
MEDIUMnumpy/ma/extras.py1939#####--------------------------------------------------------------------------STRING
MEDIUMnumpy/ma/extras.py1941#####--------------------------------------------------------------------------STRING
MEDIUMnumpy/lib/_type_check_impl.py356#-----------------------------------------------------------------------------COMMENT
MEDIUMnumpy/lib/_type_check_impl.py493#-----------------------------------------------------------------------------COMMENT
MEDIUMnumpy/lib/_type_check_impl.py558#-----------------------------------------------------------------------------COMMENT
MEDIUMnumpy/lib/_type_check_impl.py646#-----------------------------------------------------------------------------COMMENT
MEDIUMnumpy/lib/_npyio_impl.py1728#####--------------------------------------------------------------------------STRING
MEDIUMnumpy/lib/_npyio_impl.py1730#####--------------------------------------------------------------------------STRING
MEDIUMnumpy/lib/_utils_impl.py155#-----------------------------------------------------------------------------COMMENT
MEDIUMnumpy/lib/tests/test__iotools.py84# -----------------------------------------------------------------------------COMMENT
MEDIUMnumpy/lib/tests/test__iotools.py138# -----------------------------------------------------------------------------COMMENT
MEDIUMnumpy/lib/tests/test_io.py1349#####--------------------------------------------------------------------------STRING
MEDIUM.github/workflows/windows.yml71 #=======================================================================================COMMENT
MEDIUM.github/workflows/windows.yml130 #=======================================================================================COMMENT
MEDIUMdoc/source/conf.py88# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py90# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py238# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py240# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py310# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py312# -----------------------------------------------------------------------------COMMENT
MEDIUM⚡doc/source/conf.py404# -----------------------------------------------------------------------------STRING
MEDIUM⚡doc/source/conf.py406# -----------------------------------------------------------------------------STRING
MEDIUM⚡doc/source/conf.py416# -----------------------------------------------------------------------------STRING
MEDIUM⚡doc/source/conf.py418# -----------------------------------------------------------------------------STRING
MEDIUM⚡doc/source/conf.py436# -----------------------------------------------------------------------------STRING
MEDIUM⚡doc/source/conf.py438# -----------------------------------------------------------------------------STRING
MEDIUM⚡doc/source/conf.py446# -----------------------------------------------------------------------------STRING
MEDIUM⚡doc/source/conf.py448# -----------------------------------------------------------------------------STRING
MEDIUM⚡doc/source/conf.py452# -----------------------------------------------------------------------------STRING
MEDIUM⚡doc/source/conf.py454# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py466# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py468# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py497# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py499# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py617# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py619# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py631# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py633# -----------------------------------------------------------------------------STRING
MEDIUMdoc/neps/conf.py174# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/neps/conf.py176# -----------------------------------------------------------------------------COMMENT
Modern Structural Boilerplate81 hits · 80 pts
SeverityFileLineSnippetContext
LOWnumpy/_globals.py22__all__ = ['_NoValue', '_CopyMode']CODE
LOWnumpy/dtypes.py26__all__ = ["register_dlpack_dtype"]CODE
LOWnumpy/matlib.py22__all__ = ['rand', 'randn', 'repmat']CODE
LOWnumpy/exceptions.py35__all__ = [CODE
LOWnumpy/_pytesttester.py34__all__ = ['PytestTester']CODE
LOWnumpy/_utils/_pep440.py36__all__ = [CODE
LOWnumpy/_utils/_conversions.py6__all__ = ["asunicode", "asbytes"]CODE
LOWnumpy/_utils/_inspect.py10__all__ = ['getargspec', 'formatargspec']CODE
LOWnumpy/core/__init__.py25__all__ = ["arrayprint", "defchararray", "_dtype_ctypes", "_dtype", # noqa: F822CODE
LOWnumpy/linalg/_linalg.py12__all__ = ['matrix_power', 'solve', 'tensorsolve', 'tensorinv', 'inv',CODE
LOWnumpy/ctypeslib/_ctypeslib.py52__all__ = ['load_library', 'ndpointer', 'c_intp', 'as_ctypes', 'as_array',CODE
LOWnumpy/ma/extras.py10__all__ = [CODE
LOWnumpy/ma/__init__.py46__all__ = ['core', 'extras']CODE
LOWnumpy/ma/core.py51__all__ = [CODE
LOWnumpy/ma/mrecords.py27__all__ = [CODE
LOWnumpy/_core/umath.py45__all__ = [CODE
LOWnumpy/_core/fromnumeric.py17__all__ = [CODE
LOWnumpy/_core/multiarray.py29__all__ = [CODE
LOWnumpy/_core/_asarray.py9__all__ = ["require"]CODE
LOWnumpy/_core/records.py15__all__ = [CODE
LOWnumpy/_core/__init__.py152__all__ = [STRING
LOWnumpy/_core/memmap.py9__all__ = ['memmap']CODE
LOWnumpy/_core/getlimits.py4__all__ = ['finfo', 'iinfo']CODE
LOWnumpy/_core/defchararray.py40__all__ = [CODE
LOWnumpy/_core/shape_base.py1__all__ = ['atleast_1d', 'atleast_2d', 'atleast_3d', 'block', 'hstack',CODE
LOWnumpy/_core/numeric.py73__all__ = [CODE
LOWnumpy/_core/function_base.py15__all__ = ['logspace', 'linspace', 'geomspace']CODE
LOWnumpy/_core/einsumfunc.py14__all__ = ['einsum', 'einsum_path']CODE
LOWnumpy/_core/_ufunc_config.py13__all__ = [CODE
LOWnumpy/_core/numerictypes.py97__all__ = [CODE
LOWnumpy/_core/printoptions.py12__all__ = ["format_options"]CODE
LOWnumpy/_core/strings.py73__all__ = [CODE
LOWnumpy/_core/arrayprint.py6__all__ = ["array2string", "array_str", "array_repr",CODE
LOWnumpy/_core/tests/_natype.py5__all__ = ["pd_NA"]CODE
LOWnumpy/_typing/_nested_sequence.py16__all__ = ["_NestedSequence"]CODE
LOWnumpy/typing/__init__.py187__all__ = [CODE
LOWnumpy/f2py/__init__.py10__all__ = ['run_main', 'get_include']CODE
LOWnumpy/f2py/symbolic.py27__all__ = ['Expr']CODE
LOWnumpy/f2py/capi_maps.py27__all__ = [CODE
LOWnumpy/f2py/auxfuncs.py20__all__ = [CODE
LOWnumpy/testing/_private/extbuild.py15__all__ = ['build_and_import_extension', 'compile_extension_module']CODE
LOWnumpy/testing/_private/utils.py33__all__ = [CODE
LOWnumpy/lib/mixins.py6__all__ = ['NDArrayOperatorsMixin']CODE
LOWnumpy/lib/_polynomial_impl.py5__all__ = ['poly', 'roots', 'polyint', 'polyder', 'polyadd',CODE
LOWnumpy/lib/recfunctions.py16__all__ = [CODE
LOWnumpy/lib/_array_utils_impl.py8__all__ = ["byte_bounds", "normalize_axis_tuple", "normalize_axis_index"]CODE
LOWnumpy/lib/_arraysetops_impl.py29__all__ = [CODE
LOWnumpy/lib/_stride_tricks_impl.py12__all__ = ["broadcast_to", "broadcast_arrays", "broadcast_shapes"]CODE
LOWnumpy/lib/_version.py10__all__ = ['NumpyVersion']CODE
LOWnumpy/lib/_type_check_impl.py7__all__ = ['iscomplexobj', 'isrealobj', 'imag', 'iscomplex',CODE
LOWnumpy/lib/_scimath_impl.py23__all__ = [CODE
LOWnumpy/lib/__init__.py48__all__ = [CODE
LOWnumpy/lib/_arrayterator_impl.py13__all__ = ['Arrayterator']CODE
LOWnumpy/lib/introspect.py5__all__ = ['opt_func_info']CODE
LOWnumpy/lib/_shape_base_impl.py21__all__ = [CODE
LOWnumpy/lib/_histograms_impl.py12__all__ = ['histogram', 'histogramdd', 'histogram_bin_edges']CODE
LOWnumpy/lib/_arraypad_impl.py12__all__ = ['pad']CODE
LOWnumpy/lib/_ufunclike_impl.py6__all__ = ['fix', 'isneginf', 'isposinf']CODE
LOWnumpy/lib/_npyio_impl.py40__all__ = [CODE
LOWnumpy/lib/_index_tricks_impl.py20__all__ = [CODE
21 more matches not shown…
AI Slop Vocabulary31 hits · 59 pts
SeverityFileLineSnippetContext
LOWtools/changelog.py164 # just use the first 80 characters, with ellipses.COMMENT
LOWnumpy/ma/core.py4273 # For regular arrays, just use the data as they come.COMMENT
LOWnumpy/ma/core.py3199 # Unary domain: just use this oneSTRING
LOWnumpy/_core/_internal.py434 # if both are identical, we can (maybe!) just return the same dtype.COMMENT
LOWnumpy/_core/__init__.py47 # cache_tag is documented to be possibly None, so just use name if it isCOMMENT
LOWnumpy/_core/tests/test_scalarmath.py590 # Scalars should just return False and not give a warnings.COMMENT
LOWnumpy/_core/tests/test_array_coercion.py902 # result. This should likely just return S0 and if not maybe the decisionCOMMENT
LOWnumpy/_core/tests/test_custom_dtypes.py585 # Also user dtype can just return self if conjugate should be no-op.COMMENT
LOWnumpy/_core/tests/test_defchararray.py508 # Test special cases that should just return the input array,COMMENT
LOWnumpy/_core/tests/test_overrides.py203 # we just call the function in that case.COMMENT
MEDIUMnumpy/_core/tests/test_multiarray.py7158 # in conjunction with subarray dimensions being absorbed into theCOMMENT
MEDIUMnumpy/_core/tests/test_multiarray.py11891# Test large arrays that leverage openMP implementations from x86-simd-sort:COMMENT
MEDIUMnumpy/_core/tests/test_multiarray.py11899# Test large arrays that leverage openMP implementations from x86-simd-sort:COMMENT
LOWnumpy/_core/tests/test_regression.py1308 # `dot` should just return zero (m, n) matrixCOMMENT
MEDIUMnumpy/f2py/func2subr.py146 # Essentially, this gets called again with modules where the name of theCOMMENT
LOWnumpy/f2py/capi_maps.py476 # elsize, so we just return 1 and let elsize be determined atCOMMENT
MEDIUMnumpy/lib/_iotools.py651 # something more robust.COMMENT
LOWnumpy/lib/recfunctions.py317 # Should we flatten the items, or just use a nested approachCOMMENT
LOWnumpy/lib/recfunctions.py1034 # stride, we can just return a viewCOMMENT
LOWnumpy/lib/recfunctions.py1614 #... we haven't: just add the description to the current listCOMMENT
LOWnumpy/lib/_function_base_impl.py4900 # therefore simply set 0 values in cdf to -1.COMMENT
MEDIUMnumpy/lib/_datasource.py400 # TODO: This should be more robust. Handles case where path includesCOMMENT
LOWnumpy/lib/_utils_impl.py459 # numpy scalar, which is not writeable. If so, just return nan.COMMENT
MEDIUMnumpy/lib/tests/test_shape_base.py565# array_split has more comprehensive test of splitting.COMMENT
MEDIUMnumpy/lib/tests/test__datasource.py39# A valid website for more robust testingCOMMENT
LOW⚡numpy/lib/tests/test_nanfunctions.py1288 # We just use ones as weights, but replace it with 0 or 1e200 at theCOMMENT
LOWnumpy/random/tests/test_generator_mt19937.py1633 # rounding but not in any important way, so we just use a looserCOMMENT
LOWnumpy/random/tests/test_randomstate.py1112 # rounding but not in any important way, so we just use a looserCOMMENT
MEDIUM…mpy/random/tests/test_generator_mt19937_regressions.py218 # it doesn't hang. Certainly for a monotonically decreasingCOMMENT
LOWnumpy/random/tests/test_random.py874 # rounding but not in any important way, so we just use a looserCOMMENT
LOW.github/ccache/action.yml26 # Note: we can't simply use restore followed by save because composite actionsCOMMENT
AI Structural Patterns50 hits · 46 pts
SeverityFileLineSnippetContext
LOWnumpy/_utils/_inspect.py141CODE
LOWnumpy/linalg/_linalg.py2583CODE
LOWnumpy/ma/core.py6901CODE
LOWnumpy/ma/core.py2891CODE
LOWnumpy/ma/mrecords.py471CODE
LOWnumpy/ma/mrecords.py514CODE
LOWnumpy/ma/mrecords.py94CODE
LOWnumpy/ma/tests/test_subclassing.py108CODE
LOWnumpy/_core/fromnumeric.py4101CODE
LOWnumpy/_core/fromnumeric.py4107CODE
LOWnumpy/_core/fromnumeric.py4305CODE
LOWnumpy/_core/fromnumeric.py4311CODE
LOWnumpy/_core/records.py754CODE
LOWnumpy/_core/records.py758CODE
LOWnumpy/_core/records.py848CODE
LOWnumpy/_core/records.py959CODE
LOWnumpy/_core/records.py389CODE
LOWnumpy/_core/numeric.py1568CODE
LOWnumpy/_core/arrayprint.py57CODE
LOWnumpy/_core/arrayprint.py123CODE
LOWnumpy/_core/arrayprint.py315CODE
LOWnumpy/_core/arrayprint.py634CODE
LOWnumpy/_core/arrayprint.py644CODE
LOWnumpy/_core/arrayprint.py1221CODE
LOWnumpy/_core/tests/test_multiarray.py115CODE
LOWnumpy/f2py/crackfortran.py3305CODE
LOWnumpy/f2py/crackfortran.py3613CODE
LOWnumpy/f2py/use_rules.py100CODE
LOWnumpy/testing/_private/utils.py759CODE
LOWnumpy/lib/_npyio_impl.py861CODE
LOWnumpy/lib/_npyio_impl.py1120CODE
LOWnumpy/lib/_npyio_impl.py1735CODE
LOWnumpy/lib/_function_base_impl.py4714CODE
LOWnumpy/lib/_function_base_impl.py4910CODE
LOWnumpy/lib/_nanfunctions_impl.py569CODE
LOWnumpy/lib/_nanfunctions_impl.py631CODE
LOWnumpy/lib/_nanfunctions_impl.py1689CODE
LOWnumpy/lib/_nanfunctions_impl.py1696CODE
LOWnumpy/lib/_nanfunctions_impl.py1879CODE
LOWnumpy/lib/_nanfunctions_impl.py1886CODE
LOWnumpy/lib/tests/test_twodim_base.py39CODE
LOWnumpy/lib/tests/test_function_base.py74CODE
LOWnumpy/fft/_pocketfft.py213CODE
LOWnumpy/fft/_pocketfft.py314CODE
LOWnumpy/fft/_pocketfft.py407CODE
LOWnumpy/fft/_pocketfft.py511CODE
LOWnumpy/fft/_pocketfft.py610CODE
LOWnumpy/matrixlib/defmatrix.py170CODE
LOWnumpy/polynomial/_polybase.py592CODE
LOWnumpy/polynomial/_polybase.py650CODE
Redundant / Tautological Comments20 hits · 26 pts
SeverityFileLineSnippetContext
LOW.spin/cmds.py675 # Check if `towncrier` is installedCOMMENT
LOWnumpy/__init__.py858 # Check if BLAS adds spurious FPEs, seen on M4 arms with Accelerate.COMMENT
LOWnumpy/ma/extras.py907 # Set axis to tuple of intsCOMMENT
LOWnumpy/ma/extras.py1687 # Check if we can guarantee that the integers in the (N - ddof)STRING
LOWnumpy/ma/extras.py1709 # Check if we can guarantee that the integers in the (N - ddof)STRING
LOWnumpy/ma/core.py6402 # Set temps to save time when dealing w/ marrays.COMMENT
LOW⚡numpy/ma/tests/test_core.py4905 # Set False to maskedCOMMENT
LOW⚡numpy/ma/tests/test_core.py4914 # Set True to maskedCOMMENT
LOWnumpy/_core/_internal.py766 # Check if this was a simple 1-item type, and unwrap itCOMMENT
LOWnumpy/_core/tests/test_indexing.py1090 # Check if broadcasting worksCOMMENT
LOWnumpy/_core/tests/test_indexing.py1193 # Check if we got a view, unless its a 0-sized or 0-d array.COMMENT
LOWnumpy/_core/tests/test_function_base.py35 # Check if the current platform is ARMHF (32-bit ARM architecture)COMMENT
LOWnumpy/_core/tests/test_casting_unittests.py350 # Check if alignment makes a difference, but only if supportedSTRING
LOWnumpy/_core/tests/test_api.py644 # Check if new arrays are correct:COMMENT
LOWnumpy/_core/tests/test_regression.py1498 # Check if log1p is behaving on 32 bit intel systems.COMMENT
LOWnumpy/f2py/tests/util.py29# Check if compilers are available at all...COMMENT
LOWnumpy/lib/_arraysetops_impl.py923 # Check if one of the arrays may contain arbitrary objectsCOMMENT
LOWnumpy/lib/_npyio_impl.py2159 # Add the value to the listSTRING
LOWnumpy/lib/_format_impl.py961 # Check if we ought to create the file.COMMENT
LOW.github/workflows/linux_blas.yml365 # Check if the patch works:COMMENT
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHnumpy/_core/tests/test_nditer.py1027 # Check that arrays are cast as requestedCOMMENT
HIGHnumpy/_core/tests/test_nditer.py1133 # Check that scalars are cast as requestedCOMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWnumpy/f2py/symbolic.py569 # TODO: implement a method for deciding when __call__ shouldCOMMENT
LOWnumpy/f2py/tests/test_docs.py66 # TODO: implement test methods for other example Fortran codesCOMMENT
Slop Phrases2 hits · 2 pts
SeverityFileLineSnippetContext
LOWnumpy/ma/core.py4723 # make sure to return a 0-d array if axis is suppliedCOMMENT
LOWnumpy/_core/numeric.py2442 # This will cause casting of x later. Also, make sure to allow subclassesSTRING
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWnumpy/lib/tests/test_io.py327 # We need to check if the garbage collector can properly closeCOMMENT
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWnumpy/lib/tests/test_mixins.py7# NOTE: This class should be kept as an exact copy of the example from theCOMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWnumpy/_core/tests/test_cython.py386 bad = np.array(["placeholder"], dtype=sdt)CODE