Repository Analysis

numpy/numpy

The fundamental package for scientific computing with Python.

7.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of numpy/numpy, a Python project with 32,359 GitHub stars. SynthScan v2.0 examined 543,107 lines of code across 1056 source files, recording 4270 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 7.5 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

7.5
Adjusted Score
7.5
Raw Score
100%
Time Factor
2026-07-14
Last Push
32.4K
Stars
Python
Language
543.1K
Lines of Code
1.1K
Files
4.3K
Pattern Hits
2026-07-14
Scan Date
0.08
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 82MEDIUM 108LOW 4080

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 4270 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers2042 hits · 1695 pts
SeverityFileLineSnippetContext
LOWtools/check_python_h_first.py55def check_python_h_included_first(name_to_check: str) -> int:CODE
LOWnumpy/linalg/_linalg.py142def _raise_linalgerror_singular(err, flag):CODE
LOWnumpy/linalg/_linalg.py145def _raise_linalgerror_nonposdef(err, flag):CODE
LOWnumpy/linalg/_linalg.py148def _raise_linalgerror_eigenvalues_nonconvergence(err, flag):CODE
LOWnumpy/linalg/_linalg.py151def _raise_linalgerror_svd_nonconvergence(err, flag):CODE
LOWnumpy/linalg/_linalg.py2979def _multi_dot_matrix_chain_order(arrays, return_costs=False):STRING
LOWnumpy/linalg/_linalg.py3392def _matrix_transpose_dispatcher(x):CODE
LOWnumpy/linalg/tests/test_linalg.py447 def test_generalized_sq_cases(self):CODE
LOWnumpy/linalg/tests/test_linalg.py452 def test_generalized_empty_sq_cases(self):CODE
LOWnumpy/linalg/tests/test_linalg.py459 def test_generalized_nonsq_cases(self):CODE
LOWnumpy/linalg/tests/test_linalg.py464 def test_generalized_empty_nonsq_cases(self):CODE
LOWnumpy/linalg/tests/test_linalg.py471 def test_generalized_herm_cases(self):CODE
LOWnumpy/linalg/tests/test_linalg.py476 def test_generalized_empty_herm_cases(self):CODE
LOWnumpy/linalg/tests/test_linalg.py481def identity_like_generalized(a):CODE
LOWnumpy/linalg/tests/test_linalg.py1159 def test_exceptions_bad_power(self, dt):CODE
LOWnumpy/linalg/tests/test_linalg.py1164 def test_exceptions_non_square(self, dt):CODE
LOWnumpy/linalg/tests/test_linalg.py1170 def test_exceptions_not_invertible(self, dt):CODE
LOWnumpy/linalg/tests/test_linalg.py1815 def test_mode_all_but_economic(self):CODE
LOWnumpy/linalg/tests/test_linalg.py1999def test_generalized_raise_multiloop():CODE
LOWnumpy/linalg/tests/test_linalg.py2109 def test_basic_function_with_three_arguments(self):STRING
LOWnumpy/linalg/tests/test_linalg.py2119 def test_basic_function_with_two_arguments(self):STRING
LOWnumpy/linalg/tests/test_linalg.py2127 def test_basic_function_with_dynamic_programming_optimization(self):STRING
LOWnumpy/linalg/tests/test_linalg.py2136 def test_vector_as_first_argument(self):STRING
LOWnumpy/linalg/tests/test_linalg.py2146 def test_vector_as_last_argument(self):STRING
LOWnumpy/linalg/tests/test_linalg.py2156 def test_vector_as_first_and_last_argument(self):STRING
LOWnumpy/linalg/tests/test_linalg.py2166 def test_three_arguments_and_out(self):STRING
LOWnumpy/linalg/tests/test_linalg.py2179 def test_two_arguments_and_out(self):STRING
LOWnumpy/linalg/tests/test_linalg.py2189 def test_dynamic_programming_optimization_and_out(self):STRING
LOWnumpy/linalg/tests/test_linalg.py2201 def test_dynamic_programming_logic(self):STRING
LOWnumpy/linalg/tests/test_linalg.py2231 def test_too_few_input_arrays(self):STRING
LOWnumpy/linalg/tests/test_linalg.py2295def 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.py398 def _ctype_from_dtype_subarray(dtype):CODE
LOWnumpy/ctypeslib/_ctypeslib.py403 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.py435def _recursive_set_fill_value(fillvalue, dt):CODE
LOWnumpy/ma/core.py834def is_string_or_list_of_strings(val):CODE
LOWnumpy/ma/core.py1331def _replace_dtype_fields_recursive(dtype, primitive_dtype):CODE
LOWnumpy/ma/tests/test_old_ma.py762 def test_assignment_by_condition(self):CODE
LOWnumpy/ma/tests/test_core.py751 def test_pickling_maskedconstant(self):CODE
LOWnumpy/ma/tests/test_core.py760 def test_pickling_wstructured(self):CODE
LOWnumpy/ma/tests/test_core.py769 def test_pickling_keepalignment(self):CODE
LOWnumpy/ma/tests/test_core.py777 def test_single_element_subscript(self):CODE
LOWnumpy/ma/tests/test_core.py1225 def test_masked_singleton_arithmetic(self):CODE
LOWnumpy/ma/tests/test_core.py1235 def test_masked_singleton_equality(self):CODE
LOWnumpy/ma/tests/test_core.py1243 def test_arithmetic_with_masked_singleton(self):CODE
LOWnumpy/ma/tests/test_core.py2291 def test_fill_value_datetime_structured(self):CODE
LOWnumpy/ma/tests/test_core.py2299 def test_fill_value_datetime_structured_datetime(self):CODE
LOWnumpy/ma/tests/test_core.py2307 def test_fill_value_datetime_structured_integer(self):CODE
LOWnumpy/ma/tests/test_core.py4537 def test_masked_where_oddities(self):CODE
LOWnumpy/ma/tests/test_core.py4544 def test_masked_where_shape_constraint(self):CODE
LOWnumpy/ma/tests/test_core.py4551 def test_masked_where_structured(self):CODE
LOWnumpy/ma/tests/test_core.py4751 def test_where_with_masked_choice(self):CODE
LOWnumpy/ma/tests/test_core.py4773 def test_where_with_masked_condition(self):CODE
LOWnumpy/ma/tests/test_core.py245 def test_concatenate_alongaxis(self):CODE
1982 more matches not shown…
Unused Imports881 hits · 588 pts
SeverityFileLineSnippetContext
LOWtools/ci/check_c_api_usage.py2CODE
LOWnumpy/conftest.py25CODE
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
821 more matches not shown…
Over-Commented Block611 hits · 584 pts
SeverityFileLineSnippetContext
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/lsan_suppressions.txt21#13 0xffffb5cbc6f0 in import_find_and_load Python/import.c:3737COMMENT
LOWtools/ci/ubsan_suppressions_x86_64.txt1# This file contains suppressions for the default (with GIL) build to prevent runtime errorsCOMMENT
LOWtools/ci/ubsan_suppressions_arm64.txt1# This file contains suppressions for the default (with GIL) build to prevent runtime errorsCOMMENT
LOWtools/ci/ubsan_suppressions_arm64.txt41# function:_core/src/common/npy_argparse.cCOMMENT
LOWmeson_cpu/x86/test_x86_v2.c1#if defined(DETECT_FEATURES) && defined(__INTEL_COMPILER)COMMENT
LOWpixi-packages/freethreading/pixi.toml21# python = "*" prevents downstream from building cpython from sources.COMMENT
LOWpixi-packages/default/pixi.toml21# python = "*" prevents downstream from building cpython from sources.COMMENT
LOWnumpy/linalg/umath_linalg.cpp21#include <cstddef>COMMENT
LOWnumpy/linalg/umath_linalg.cpp401COMMENT
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.py3061 # created from (= obj) and us. Or there might not. This method canCOMMENT
LOWnumpy/ma/core.py3081 # as the template object (b/c views like arr[...] should keep the sameCOMMENT
LOWnumpy/ma/core.py3361 dout._update_from(self)COMMENT
LOWnumpy/_core/feature_detection_stdio.h1#define _GNU_SOURCECOMMENT
LOWnumpy/_core/shape_base.py921 >>> np.block([[b]]) # atleast_2d(b)COMMENT
551 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 Nesting264 hits · 219 pts
SeverityFileLineSnippetContext
LOWtools/check_python_h_first.py55CODE
LOWtools/refguide_check.py258CODE
LOWtools/refguide_check.py562CODE
LOWtools/ci/check_c_api_usage.py87CODE
LOWtools/ci/check_c_api_usage.py121CODE
LOWtools/c_coverage/c_coverage_report.py116CODE
LOWnumpy/__init__.py700CODE
LOWnumpy/_utils/_pep440.py223CODE
LOWnumpy/_utils/_pep440.py391CODE
LOWnumpy/linalg/_linalg.py200CODE
LOWnumpy/linalg/_linalg.py2573CODE
LOWnumpy/linalg/_linalg.py2979CODE
LOWnumpy/linalg/tests/test_linalg.py1419CODE
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.py239CODE
LOWnumpy/ma/extras.py1548CODE
LOWnumpy/ma/core.py218CODE
LOWnumpy/ma/core.py467CODE
LOWnumpy/ma/core.py2721CODE
LOWnumpy/ma/core.py2882CODE
LOWnumpy/ma/core.py3050CODE
LOWnumpy/ma/core.py3143CODE
LOWnumpy/ma/core.py3277CODE
LOWnumpy/ma/core.py3406CODE
LOWnumpy/ma/core.py3857CODE
LOWnumpy/ma/core.py4047CODE
LOWnumpy/ma/core.py4594CODE
LOWnumpy/ma/core.py5376CODE
LOWnumpy/ma/core.py5470CODE
LOWnumpy/ma/mrecords.py579CODE
LOWnumpy/ma/mrecords.py94CODE
LOWnumpy/ma/tests/test_core.py718CODE
LOWnumpy/ma/tests/test_extras.py974CODE
LOWnumpy/_core/fromnumeric.py2287CODE
LOWnumpy/_core/_dtype.py101CODE
LOWnumpy/_core/_dtype.py326CODE
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.py943CODE
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.py2000CODE
LOWnumpy/_core/numeric.py2322CODE
LOWnumpy/_core/function_base.py516CODE
LOWnumpy/_core/einsumfunc.py150CODE
LOWnumpy/_core/einsumfunc.py330CODE
LOWnumpy/_core/einsumfunc.py445CODE
LOWnumpy/_core/einsumfunc.py635CODE
LOWnumpy/_core/einsumfunc.py1126CODE
LOWnumpy/_core/numerictypes.py322CODE
204 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
HIGHtools/swig/test/testArray.py100 for i in range(self.array1.length()):CODE
HIGHtools/swig/test/testArray.py106 for i in range(self.array1.length()):CODE
HIGHtools/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
HIGHtools/swig/test/testArray.py354 for i in range(self.array3.length()):STRING
HIGHtools/swig/test/testArray.py361 for i in range(self.array3.length()):STRING
HIGHtools/swig/test/testArray.py367 for i in range(self.array3.length()):STRING
HIGHnumpy/ma/extras.py725 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.py1583 # 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.py841 # (padded area is undefined)COMMENT
HIGHnumpy/lib/_function_base_impl.py3939 the contents of the input array. Treat the input as undefined,CODE
HIGHnumpy/lib/_nanfunctions_impl.py1148 the contents of the input array. Treat the input as undefined,STRING
Excessive Try-Catch Wrapping120 hits · 125 pts
SeverityFileLineSnippetContext
LOWtools/refguide_check.py325 except Exception:CODE
LOWtools/refguide_check.py532 except Exception:CODE
LOWtools/ci/check_c_api_usage.py215 except Exception as e:CODE
LOWnumpy/linalg/_linalg.py2754 except Exception as e:STRING
LOWnumpy/linalg/tests/test_linalg.py405 except Exception as e:CODE
LOWnumpy/linalg/tests/test_linalg.py2047 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.py309 except Exception as e:CODE
MEDIUMnumpy/ma/core.py319def _scalar_fill_value(dtype):CODE
LOWnumpy/ma/core.py1097 except Exception:CODE
LOWnumpy/ma/core.py1237 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.py985 except Exception:CODE
LOWnumpy/_core/_internal.py956 except Exception:CODE
MEDIUMnumpy/_core/_internal.py59def _usefields(adict, align):CODE
LOWnumpy/_core/records.py463 except Exception:CODE
LOWnumpy/_core/records.py476 except Exception:CODE
LOWnumpy/_core/numeric.py1160 except Exception:STRING
LOWnumpy/_core/numeric.py2533 except Exception:STRING
LOWnumpy/_core/numeric.py2601 except Exception:STRING
LOWnumpy/_core/numeric.py2605 except Exception:STRING
LOWnumpy/_core/function_base.py503 except Exception:CODE
LOWnumpy/_core/function_base.py512 except Exception:CODE
LOWnumpy/_core/numerictypes.py171 except Exception:CODE
LOWnumpy/_core/numerictypes.py223 except Exception:CODE
LOWnumpy/_core/tests/test_scalarmath.py111 except Exception as e:CODE
LOWnumpy/_core/tests/test_arrayprint.py1342 except Exception:CODE
LOWnumpy/_core/tests/test_indexing.py1000 except Exception:CODE
LOWnumpy/_core/tests/test_indexing.py1099 except Exception:CODE
LOWnumpy/_core/tests/test_indexing.py1139 except Exception as e:CODE
LOWnumpy/_core/tests/test_indexing.py1163 except Exception as e:CODE
LOWnumpy/_core/tests/test_extint128.py58 except Exception:CODE
LOWnumpy/_core/tests/test_ufunc.py188 except Exception as exc:CODE
LOWnumpy/_core/tests/test_strings.py142 except Exception:CODE
MEDIUMnumpy/_core/tests/test_multiarray.py395def make_array(size, offset, strides):CODE
LOWnumpy/_core/tests/test_multiarray.py10042 except Exception:CODE
LOWnumpy/_core/tests/test_multiarray.py399 except Exception as e:CODE
MEDIUMnumpy/_core/tests/test_nditer.py3030def _is_buffered(iterator):CODE
LOWnumpy/_core/tests/test_nditer.py1552 except Exception:CODE
LOWnumpy/_core/tests/test_nditer.py3189 except Exception:STRING
LOWnumpy/_core/tests/test_nditer.py3370 except Exception:STRING
LOWnumpy/_core/tests/test_cpu_features.py26 except Exception as err:CODE
LOWnumpy/_core/tests/test_cpu_features.py33 except Exception as err:CODE
LOWnumpy/_core/tests/test_cpu_features.py461 except Exception:CODE
MEDIUMnumpy/_core/tests/test_cpu_features.py176def _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
LOWnumpy/f2py/crackfortran.py1962 except Exception:CODE
LOWnumpy/f2py/crackfortran.py2307 except Exception:CODE
LOWnumpy/f2py/crackfortran.py2345 except Exception:CODE
LOWnumpy/f2py/crackfortran.py2533 except Exception as msg:CODE
60 more matches not shown…
Decorative Section Separators48 hits · 104 pts
SeverityFileLineSnippetContext
MEDIUMnumpy/ma/extras.py245#####--------------------------------------------------------------------------COMMENT
MEDIUMnumpy/ma/extras.py247#####--------------------------------------------------------------------------COMMENT
MEDIUMnumpy/ma/extras.py337#####--------------------------------------------------------------------------COMMENT
MEDIUMnumpy/ma/extras.py339#####--------------------------------------------------------------------------COMMENT
MEDIUMnumpy/ma/extras.py1252#####--------------------------------------------------------------------------COMMENT
MEDIUMnumpy/ma/extras.py1254#####--------------------------------------------------------------------------COMMENT
MEDIUMnumpy/ma/extras.py1759#####--------------------------------------------------------------------------COMMENT
MEDIUMnumpy/ma/extras.py1761#####--------------------------------------------------------------------------COMMENT
MEDIUMnumpy/ma/extras.py1823#####--------------------------------------------------------------------------COMMENT
MEDIUMnumpy/ma/extras.py1825#####--------------------------------------------------------------------------COMMENT
MEDIUMnumpy/lib/_type_check_impl.py356#-----------------------------------------------------------------------------COMMENT
MEDIUMnumpy/lib/_type_check_impl.py489#-----------------------------------------------------------------------------COMMENT
MEDIUMnumpy/lib/_type_check_impl.py554#-----------------------------------------------------------------------------COMMENT
MEDIUMnumpy/lib/_type_check_impl.py642#-----------------------------------------------------------------------------COMMENT
MEDIUMnumpy/lib/_npyio_impl.py1728#####--------------------------------------------------------------------------STRING
MEDIUMnumpy/lib/_npyio_impl.py1730#####--------------------------------------------------------------------------STRING
MEDIUMnumpy/lib/_utils_impl.py137#-----------------------------------------------------------------------------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.yml126 #=======================================================================================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
MEDIUMdoc/source/conf.py404# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py406# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py416# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py418# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py435# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py437# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py445# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py447# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py451# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py453# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py465# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py467# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py496# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py498# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py616# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py618# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py630# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py632# -----------------------------------------------------------------------------STRING
MEDIUMdoc/neps/conf.py174# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/neps/conf.py176# -----------------------------------------------------------------------------COMMENT
Self-Referential Comments35 hits · 96 pts
SeverityFileLineSnippetContext
MEDIUMnumpy/linalg/tests/test_linalg.py1500 # Define the part for 2d arrays separately, so we can subclass thisCOMMENT
MEDIUMnumpy/linalg/tests/test_linalg.py1734 # Define the array class here, so run this on matrices elsewhere.COMMENT
MEDIUMnumpy/ma/core.py3847 # 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.py1686 # Create the output arraySTRING
MEDIUMnumpy/_core/tests/test_numerictypes.py494 # 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.py267 # Create a deeply nested dtype to make a failure more likely:COMMENT
MEDIUMnumpy/_core/tests/test_multithreading.py293 # 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.py1951 # Create an array and test that memory gets cleaned up (gh-25949)COMMENT
MEDIUMnumpy/_core/tests/test_stringdtype.py1940 # Create an empty array with expanded dimension, and fill it. Then,COMMENT
MEDIUMnumpy/_core/tests/test_multiarray.py4688 # Create an object with the given base, in the given module, with aCOMMENT
MEDIUMnumpy/_core/tests/test_multiarray.py11672 # 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.py797 # 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
MEDIUMnumpy/lib/tests/test_nanfunctions.py1278 # Create a multi-dimensional array to testCOMMENT
MEDIUMnumpy/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
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.py44__all__ = [CODE
LOWnumpy/_core/fromnumeric.py18__all__ = [CODE
LOWnumpy/_core/multiarray.py30__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.py96__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__.py177__all__ = ["ArrayLike", "DTypeLike", "NBitBase", "NDArray"]CODE
LOWnumpy/f2py/__init__.py10__all__ = ['run_main', 'get_include']CODE
LOWnumpy/f2py/symbolic.py27__all__ = ['Expr']CODE
LOWnumpy/f2py/capi_maps.py26__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.py32__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 Vocabulary30 hits · 58 pts
SeverityFileLineSnippetContext
LOWtools/changelog.py164 # just use the first 80 characters, with ellipses.COMMENT
LOWnumpy/ma/core.py4231 # For regular arrays, just use the data as they come.COMMENT
LOWnumpy/ma/core.py3179 # 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.py584 # 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.py397 # 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.py201 # we just call the function in that case.COMMENT
MEDIUMnumpy/_core/tests/test_multiarray.py6842 # in conjunction with subarray dimensions being absorbed into theCOMMENT
MEDIUMnumpy/_core/tests/test_multiarray.py11497# Test large arrays that leverage openMP implementations from x86-simd-sort:COMMENT
MEDIUMnumpy/_core/tests/test_multiarray.py11505# 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.py136 # Essentially, this gets called again with modules where the name of theCOMMENT
LOWnumpy/f2py/capi_maps.py474 # 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.py4870 # 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.py441 # 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
LOWnumpy/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.py1634 # 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
AI Structural Patterns50 hits · 47 pts
SeverityFileLineSnippetContext
LOWnumpy/_utils/_inspect.py141CODE
LOWnumpy/linalg/_linalg.py2565CODE
LOWnumpy/ma/core.py6859CODE
LOWnumpy/ma/core.py2882CODE
LOWnumpy/ma/mrecords.py471CODE
LOWnumpy/ma/mrecords.py514CODE
LOWnumpy/ma/mrecords.py94CODE
LOWnumpy/ma/tests/test_subclassing.py108CODE
LOWnumpy/_core/fromnumeric.py3906CODE
LOWnumpy/_core/fromnumeric.py3912CODE
LOWnumpy/_core/fromnumeric.py4110CODE
LOWnumpy/_core/fromnumeric.py4116CODE
LOWnumpy/_core/records.py750CODE
LOWnumpy/_core/records.py754CODE
LOWnumpy/_core/records.py838CODE
LOWnumpy/_core/records.py943CODE
LOWnumpy/_core/records.py385CODE
LOWnumpy/_core/numeric.py1557CODE
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.py111CODE
LOWnumpy/f2py/crackfortran.py3305CODE
LOWnumpy/f2py/crackfortran.py3613CODE
LOWnumpy/f2py/use_rules.py100CODE
LOWnumpy/testing/_private/utils.py738CODE
LOWnumpy/lib/_npyio_impl.py861CODE
LOWnumpy/lib/_npyio_impl.py1120CODE
LOWnumpy/lib/_npyio_impl.py1735CODE
LOWnumpy/lib/_function_base_impl.py4685CODE
LOWnumpy/lib/_function_base_impl.py4880CODE
LOWnumpy/lib/_nanfunctions_impl.py564CODE
LOWnumpy/lib/_nanfunctions_impl.py626CODE
LOWnumpy/lib/_nanfunctions_impl.py1684CODE
LOWnumpy/lib/_nanfunctions_impl.py1691CODE
LOWnumpy/lib/_nanfunctions_impl.py1874CODE
LOWnumpy/lib/_nanfunctions_impl.py1881CODE
LOWnumpy/lib/tests/test_twodim_base.py39CODE
LOWnumpy/lib/tests/test_function_base.py71CODE
LOWnumpy/fft/_pocketfft.py216CODE
LOWnumpy/fft/_pocketfft.py321CODE
LOWnumpy/fft/_pocketfft.py418CODE
LOWnumpy/fft/_pocketfft.py526CODE
LOWnumpy/fft/_pocketfft.py629CODE
LOWnumpy/matrixlib/defmatrix.py170CODE
LOWnumpy/polynomial/_polybase.py592CODE
LOWnumpy/polynomial/_polybase.py650CODE
Redundant / Tautological Comments20 hits · 29 pts
SeverityFileLineSnippetContext
LOW.spin/cmds.py667 # Check if `towncrier` is installedCOMMENT
LOWnumpy/__init__.py856 # Check if BLAS adds spurious FPEs, seen on M4 arms with Accelerate.COMMENT
LOWnumpy/ma/extras.py906 # Set axis to tuple of intsCOMMENT
LOWnumpy/ma/extras.py1571 # Check if we can guarantee that the integers in the (N - ddof)COMMENT
LOWnumpy/ma/extras.py1593 # Check if we can guarantee that the integers in the (N - ddof)COMMENT
LOWnumpy/ma/core.py6360 # Set temps to save time when dealing w/ marrays.COMMENT
LOWnumpy/ma/tests/test_core.py4755 # Set False to maskedCOMMENT
LOWnumpy/ma/tests/test_core.py4764 # 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.py1079 # Check if broadcasting worksCOMMENT
LOWnumpy/_core/tests/test_indexing.py1182 # 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.py346 # Check if alignment makes a difference, but only if supportedSTRING
LOWnumpy/_core/tests/test_api.py629 # 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.py910 # 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.py960 # Check if we ought to create the file.COMMENT
LOW.github/workflows/linux_blas.yml374 # Check if the patch works:COMMENT
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHnumpy/_core/tests/test_nditer.py1013 # Check that arrays are cast as requestedCOMMENT
HIGHnumpy/_core/tests/test_nditer.py1119 # 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.py4681 # make sure to return a 0-d array if axis is suppliedCOMMENT
LOWnumpy/_core/numeric.py2418 # 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