The fundamental package for scientific computing with Python.
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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 3297 finding(s).
Are imports declared and package/API names verified? 923 finding(s).
Are wrappers, guards, and repeated structures necessary? 2735 finding(s).
Which changes need focused human review? 4637 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/check_python_h_first.py | 55 | def check_python_h_included_first(name_to_check: str) -> int: | CODE |
| LOW | numpy/_utils/_config_helpers.py | 9 | def _cleanup_empty_dict_values(d): | CODE |
| LOW⚡ | numpy/linalg/_linalg.py | 142 | def _raise_linalgerror_singular(err, flag): | CODE |
| LOW⚡ | numpy/linalg/_linalg.py | 145 | def _raise_linalgerror_nonposdef(err, flag): | CODE |
| LOW⚡ | numpy/linalg/_linalg.py | 148 | def _raise_linalgerror_eigenvalues_nonconvergence(err, flag): | CODE |
| LOW⚡ | numpy/linalg/_linalg.py | 151 | def _raise_linalgerror_svd_nonconvergence(err, flag): | CODE |
| LOW | numpy/linalg/_linalg.py | 2997 | def _multi_dot_matrix_chain_order(arrays, return_costs=False): | STRING |
| LOW | numpy/linalg/_linalg.py | 3410 | def _matrix_transpose_dispatcher(x): | CODE |
| LOW⚡ | numpy/linalg/tests/test_linalg.py | 453 | def test_generalized_sq_cases(self): | CODE |
| LOW⚡ | numpy/linalg/tests/test_linalg.py | 458 | def test_generalized_empty_sq_cases(self): | CODE |
| LOW⚡ | numpy/linalg/tests/test_linalg.py | 465 | def test_generalized_nonsq_cases(self): | CODE |
| LOW⚡ | numpy/linalg/tests/test_linalg.py | 470 | def test_generalized_empty_nonsq_cases(self): | CODE |
| LOW⚡ | numpy/linalg/tests/test_linalg.py | 477 | def test_generalized_herm_cases(self): | CODE |
| LOW⚡ | numpy/linalg/tests/test_linalg.py | 482 | def test_generalized_empty_herm_cases(self): | CODE |
| LOW⚡ | numpy/linalg/tests/test_linalg.py | 487 | def identity_like_generalized(a): | CODE |
| LOW⚡ | numpy/linalg/tests/test_linalg.py | 1221 | def test_exceptions_bad_power(self, dt): | CODE |
| LOW⚡ | numpy/linalg/tests/test_linalg.py | 1226 | def test_exceptions_non_square(self, dt): | CODE |
| LOW⚡ | numpy/linalg/tests/test_linalg.py | 1231 | def test_exceptions_not_invertible(self, dt): | CODE |
| LOW | numpy/linalg/tests/test_linalg.py | 980 | def test_pinv_rtol_none_non_inexact(dtype): | CODE |
| LOW | numpy/linalg/tests/test_linalg.py | 1876 | def test_mode_all_but_economic(self): | CODE |
| LOW | numpy/linalg/tests/test_linalg.py | 2059 | def test_generalized_raise_multiloop(): | CODE |
| LOW⚡ | numpy/linalg/tests/test_linalg.py | 2169 | def test_basic_function_with_three_arguments(self): | STRING |
| LOW⚡ | numpy/linalg/tests/test_linalg.py | 2179 | def test_basic_function_with_two_arguments(self): | STRING |
| LOW⚡ | numpy/linalg/tests/test_linalg.py | 2187 | def test_basic_function_with_dynamic_programming_optimization(self): | STRING |
| LOW⚡ | numpy/linalg/tests/test_linalg.py | 2196 | def test_vector_as_first_argument(self): | STRING |
| LOW⚡ | numpy/linalg/tests/test_linalg.py | 2206 | def test_vector_as_last_argument(self): | STRING |
| LOW⚡ | numpy/linalg/tests/test_linalg.py | 2216 | def test_vector_as_first_and_last_argument(self): | STRING |
| LOW⚡ | numpy/linalg/tests/test_linalg.py | 2226 | def test_three_arguments_and_out(self): | STRING |
| LOW | numpy/linalg/tests/test_linalg.py | 2239 | def test_two_arguments_and_out(self): | STRING |
| LOW | numpy/linalg/tests/test_linalg.py | 2249 | def test_dynamic_programming_optimization_and_out(self): | STRING |
| LOW | numpy/linalg/tests/test_linalg.py | 2261 | def test_dynamic_programming_logic(self): | STRING |
| LOW | numpy/linalg/tests/test_linalg.py | 2291 | def test_too_few_input_arrays(self): | STRING |
| LOW | numpy/linalg/tests/test_linalg.py | 2355 | def test_unsupported_commontype(): | STRING |
| LOW | numpy/linalg/tests/test_deprecations.py | 9 | def test_qr_mode_full_removed(): | CODE |
| LOW | numpy/linalg/tests/test_regression.py | 144 | def test_lstsq_complex_larger_rhs(self): | CODE |
| LOW | numpy/linalg/tests/test_regression.py | 157 | def test_cholesky_empty_array(self, upper): | CODE |
| LOW | numpy/linalg/tests/test_regression.py | 163 | def test_matrix_rank_rtol_argument(self, rtol): | CODE |
| LOW | numpy/ctypeslib/_ctypeslib.py | 410 | def _ctype_from_dtype_subarray(dtype): | CODE |
| LOW | numpy/ctypeslib/_ctypeslib.py | 415 | def _ctype_from_dtype_structured(dtype): | CODE |
| LOW | numpy/ma/testutils.py | 90 | def _assert_equal_on_sequences(actual, desired, err_msg=''): | CODE |
| LOW | numpy/ma/testutils.py | 247 | def assert_array_approx_equal(x, y, decimal=6, err_msg='', verbose=True): | CODE |
| LOW | numpy/ma/testutils.py | 261 | def assert_array_almost_equal(x, y, decimal=6, err_msg='', verbose=True): | CODE |
| LOW | numpy/ma/core.py | 318 | def _check_fill_value_or_default(fill_value, ndtype): | CODE |
| LOW | numpy/ma/core.py | 444 | def _recursive_set_fill_value(fillvalue, dt): | CODE |
| LOW | numpy/ma/core.py | 843 | def is_string_or_list_of_strings(val): | CODE |
| LOW | numpy/ma/core.py | 1340 | def _replace_dtype_fields_recursive(dtype, primitive_dtype): | CODE |
| LOW | numpy/ma/tests/test_old_ma.py | 762 | def test_assignment_by_condition(self): | CODE |
| LOW⚡ | numpy/ma/tests/test_core.py | 754 | def test_pickling_maskedconstant(self): | CODE |
| LOW⚡ | numpy/ma/tests/test_core.py | 763 | def test_pickling_wstructured(self): | CODE |
| LOW⚡ | numpy/ma/tests/test_core.py | 772 | def test_pickling_keepalignment(self): | CODE |
| LOW⚡ | numpy/ma/tests/test_core.py | 780 | def test_single_element_subscript(self): | CODE |
| LOW⚡ | numpy/ma/tests/test_core.py | 1228 | def test_masked_singleton_arithmetic(self): | CODE |
| LOW⚡ | numpy/ma/tests/test_core.py | 1238 | def test_masked_singleton_equality(self): | CODE |
| LOW⚡ | numpy/ma/tests/test_core.py | 1246 | def test_arithmetic_with_masked_singleton(self): | CODE |
| LOW⚡ | numpy/ma/tests/test_core.py | 2330 | def test_fill_value_datetime_structured(self): | CODE |
| LOW⚡ | numpy/ma/tests/test_core.py | 2338 | def test_fill_value_datetime_structured_datetime(self): | CODE |
| LOW⚡ | numpy/ma/tests/test_core.py | 2346 | def test_fill_value_datetime_structured_integer(self): | CODE |
| LOW⚡ | numpy/ma/tests/test_core.py | 2753 | def test_fillvalue_reset_on_lossy_float_cast_in_constructor(self): | CODE |
| LOW⚡ | numpy/ma/tests/test_core.py | 2763 | def test_fillvalue_user_given_still_raises_in_constructor(self): | CODE |
| LOW⚡ | numpy/ma/tests/test_core.py | 2768 | def test_fillvalue_reset_on_object_to_float_in_constructor(self): | CODE |
| 2208 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/ci/check_c_api_usage.py | 2 | CODE | |
| LOW | numpy/conftest.py | 32 | CODE | |
| LOW | numpy/__init__.py | 90 | CODE | |
| LOW | numpy/__init__.py | 92 | CODE | |
| LOW | numpy/__init__.py | 92 | CODE | |
| LOW | numpy/__init__.py | 93 | CODE | |
| LOW | numpy/__init__.py | 106 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| LOW | numpy/__init__.py | 120 | CODE | |
| 829 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pyproject.toml | 61 | 'numpy/linalg/lapack_lite/LICENSE.txt', # BSD-3-Clause | COMMENT |
| LOW | tools/list_installed_dll_dependencies_cygwin.sh | 1 | #!/bin/dash | COMMENT |
| LOW | tools/swig/test/Matrix.h | 1 | #ifndef MATRIX_H | COMMENT |
| LOW | tools/swig/test/SuperTensor.h | 1 | #ifndef SUPERTENSOR_H | COMMENT |
| LOW | tools/swig/test/Flat.h | 1 | #ifndef FLAT_H | COMMENT |
| LOW | tools/swig/test/Vector.h | 1 | #ifndef VECTOR_H | COMMENT |
| LOW | tools/swig/test/Vector.h | 21 | // interfaces, respectively, for: | COMMENT |
| LOW | tools/swig/test/Tensor.h | 1 | #ifndef TENSOR_H | COMMENT |
| LOW | tools/ci/lsan_suppressions.txt | 1 | # This file contains suppressions for the LSAN tool | COMMENT |
| LOW | tools/ci/ubsan_suppressions_arm64.txt | 41 | # function:_core/src/multiarray/convert_datatype.c | COMMENT |
| LOW | meson_cpu/x86/test_x86_v2.c | 1 | #if defined(DETECT_FEATURES) && defined(__INTEL_COMPILER) | COMMENT |
| LOW | requirements/hypothesis_requirements.txt | 1 | # hypothesis is an *optional* test dependency: it supplements the deterministic | COMMENT |
| LOW | numpy/linalg/umath_linalg.cpp | 21 | #include <cstddef> | COMMENT |
| LOW | numpy/linalg/umath_linalg.cpp | 421 | #define LAPACK(FUNC) \ | COMMENT |
| LOW | numpy/linalg/lapack_litemodule.c | 21 | #elif NPY_BITSOF_INT == 64 | COMMENT |
| LOW | numpy/linalg/lapack_lite/f2c.h | 201 | typedef VOID Z_f; /* double complex function */ | COMMENT |
| LOW | numpy/linalg/lapack_lite/f2c.c | 721 | } | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 1 | /* | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 21 | #define cgelq2_ BLAS_FUNC(cgelq2) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 41 | #define chetrd_ BLAS_FUNC(chetrd) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 61 | #define claqr2_ BLAS_FUNC(claqr2) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 81 | #define cpotrf_ BLAS_FUNC(cpotrf) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 101 | #define cunghr_ BLAS_FUNC(cunghr) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 121 | #define dgebal_ BLAS_FUNC(dgebal) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 141 | #define disnan_ BLAS_FUNC(disnan) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 161 | #define dlahr2_ BLAS_FUNC(dlahr2) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 181 | #define dlaqr1_ BLAS_FUNC(dlaqr1) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 201 | #define dlasd7_ BLAS_FUNC(dlasd7) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 221 | #define dlauum_ BLAS_FUNC(dlauum) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 241 | #define dpotrs_ BLAS_FUNC(dpotrs) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 261 | #define dtrtri_ BLAS_FUNC(dtrtri) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 281 | #define sbdsdc_ BLAS_FUNC(sbdsdc) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 301 | #define sgeqrf_ BLAS_FUNC(sgeqrf) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 321 | #define slaed6_ BLAS_FUNC(slaed6) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 341 | #define slamrg_ BLAS_FUNC(slamrg) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 361 | #define slascl_ BLAS_FUNC(slascl) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 381 | #define slasr_ BLAS_FUNC(slasr) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 401 | #define sorml2_ BLAS_FUNC(sorml2) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 421 | #define ssytd2_ BLAS_FUNC(ssytd2) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 441 | #define zgeev_ BLAS_FUNC(zgeev) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 461 | #define zher2k_ BLAS_FUNC(zher2k) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 481 | #define zlanhe_ BLAS_FUNC(zlanhe) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 501 | #define zlauu2_ BLAS_FUNC(zlauu2) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 521 | #define zungbr_ BLAS_FUNC(zungbr) | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 541 | #define c_exp numpy_lapack_lite_c_exp | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 561 | #define d_prod numpy_lapack_lite_d_prod | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 581 | #define e_wdue numpy_lapack_lite_e_wdue | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 601 | #define getarg_ numpy_lapack_lite_getarg_ | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 621 | #define i_nint numpy_lapack_lite_i_nint | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 641 | #define r_cnjg numpy_lapack_lite_r_cnjg | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 661 | #define s_paus numpy_lapack_lite_s_paus | COMMENT |
| LOW | numpy/linalg/lapack_lite/lapack_lite_names.h | 681 | #define s_wsue numpy_lapack_lite_s_wsue | COMMENT |
| LOW | numpy/ma/core.py | 3081 | # created from (= obj) and us. Or there might not. This method can | COMMENT |
| LOW | numpy/ma/core.py | 3101 | # as the template object (b/c views like arr[...] should keep the same | COMMENT |
| LOW | numpy/ma/core.py | 3401 | dout = dout.view(type(self)) | COMMENT |
| LOW | numpy/_core/feature_detection_stdio.h | 1 | #define _GNU_SOURCE | COMMENT |
| LOW | numpy/_core/shape_base.py | 921 | >>> np.block([[b]]) # atleast_2d(b) | COMMENT |
| LOW | numpy/_core/include/numpy/utils.h | 1 | #ifndef NUMPY_CORE_INCLUDE_NUMPY_UTILS_H_ | COMMENT |
| LOW | numpy/_core/include/numpy/utils.h | 81 | #define _NPY_OPAQUE_FIRST_FIELD NPY_DECL_ALIGNED(8) | COMMENT |
| LOW | numpy/_core/include/numpy/ufuncobject.h | 341 | /* Make sure it gets defined if it isn't already */ | COMMENT |
| 556 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | .spin/cmds.py | 305 | except ValueError: | CODE |
| HIGH | .spin/cmds.py | 349 | except (ImportError, RuntimeError): | CODE |
| HIGH | tools/check_python_h_first.py | 198 | except ValueError: | CODE |
| HIGH | tools/refguide_check.py | 226 | except ValueError: | CODE |
| HIGH | tools/refguide_check.py | 318 | except Exception: | CODE |
| HIGH | tools/ci/check_c_api_usage.py | 115 | except FileNotFoundError: | CODE |
| HIGH | numpy/__init__.py | 452 | except AttributeError: | CODE |
| HIGH | numpy/__init__.py | 824 | except ValueError: | CODE |
| HIGH | numpy/_distributor_init.py | 14 | except ImportError: | CODE |
| HIGH | numpy/_utils/__init__.py | 33 | except (AttributeError): | CODE |
| HIGH | numpy/linalg/tests/test_linalg.py | 56 | except ImportError: | CODE |
| HIGH | numpy/linalg/tests/test_linalg.py | 2105 | except ValueError: | CODE |
| HIGH | numpy/ctypeslib/_ctypeslib.py | 337 | except KeyError: | CODE |
| HIGH | numpy/ma/core.py | 1246 | except Exception: | CODE |
| HIGH | numpy/ma/core.py | 1029 | except TypeError: | CODE |
| HIGH | numpy/ma/core.py | 1106 | except Exception: | CODE |
| HIGH | numpy/ma/core.py | 3152 | except (TypeError, AttributeError): | CODE |
| HIGH | numpy/ma/core.py | 3523 | except (AttributeError, TypeError): | CODE |
| HIGH | numpy/ma/mrecords.py | 183 | except AttributeError: | CODE |
| HIGH | numpy/ma/mrecords.py | 206 | except IndexError: | CODE |
| HIGH | numpy/ma/tests/test_core.py | 5213 | except ValueError: | CODE |
| HIGH | numpy/ma/tests/test_core.py | 1399 | except MaskError: | CODE |
| HIGH | numpy/ma/tests/test_extras.py | 1370 | except ValueError: | CODE |
| HIGH | numpy/ma/tests/test_extras.py | 1434 | except ValueError: | CODE |
| HIGH | numpy/ma/tests/test_extras.py | 994 | except np.exceptions.AxisError: | CODE |
| HIGH | numpy/ma/tests/test_mrecords.py | 253 | except NotImplementedError: | CODE |
| HIGH | numpy/ma/tests/test_mrecords.py | 263 | except (NotImplementedError, TypeError): | CODE |
| HIGH | numpy/_core/fromnumeric.py | 56 | except AttributeError: | CODE |
| HIGH | numpy/_core/fromnumeric.py | 81 | except AttributeError: | CODE |
| HIGH | numpy/_core/fromnumeric.py | 4092 | except AttributeError: | CODE |
| HIGH | numpy/_core/fromnumeric.py | 4296 | except AttributeError: | CODE |
| HIGH | numpy/_core/fromnumeric.py | 4500 | except AttributeError: | CODE |
| HIGH | numpy/_core/records.py | 220 | except AttributeError: | CODE |
| HIGH | numpy/_core/records.py | 425 | except AttributeError: # attr must be a fieldname | CODE |
| HIGH | numpy/_core/_add_newdocs_scalars.py | 23 | except AttributeError: | CODE |
| HIGH | numpy/_core/memmap.py | 257 | except TypeError: | CODE |
| HIGH | numpy/_core/getlimits.py | 177 | except TypeError: | CODE |
| HIGH | numpy/_core/numeric.py | 1485 | except TypeError: | CODE |
| HIGH | numpy/_core/function_base.py | 516 | except Exception: | CODE |
| HIGH | numpy/_core/function_base.py | 507 | except Exception: | CODE |
| HIGH | numpy/_core/tests/test_scalarmath.py | 886 | except TypeError: | CODE |
| HIGH | numpy/_core/tests/test_scalarmath.py | 899 | except TypeError: | CODE |
| HIGH | numpy/_core/tests/test_scalarmath.py | 910 | except TypeError: | CODE |
| HIGH | numpy/_core/tests/test_scalarmath.py | 932 | except TypeError: | CODE |
| HIGH | numpy/_core/tests/test_scalarmath.py | 936 | except TypeError: | CODE |
| HIGH | numpy/_core/tests/test_arrayprint.py | 1210 | except ValueError: | CODE |
| HIGH | numpy/_core/tests/test_array_interface.py | 125 | except ImportError: | CODE |
| HIGH | numpy/_core/tests/test_deprecations.py | 181 | except OverflowError: | CODE |
| HIGH | numpy/_core/tests/test_deprecations.py | 187 | except OverflowError: | CODE |
| HIGH | numpy/_core/tests/test_mem_policy.py | 221 | except ImportError: | CODE |
| HIGH | numpy/_core/tests/_locales.py | 39 | except locale.Error: | CODE |
| HIGH | numpy/_core/tests/test_ufunc.py | 2906 | except TypeError: | CODE |
| HIGH | numpy/_core/tests/test_ufunc.py | 2915 | except TypeError: | CODE |
| HIGH | numpy/_core/tests/test_ufunc.py | 2924 | except TypeError: | CODE |
| HIGH | numpy/_core/tests/test_stringdtype.py | 2298 | except TypeError: | CODE |
| HIGH | numpy/_core/tests/test_multiarray.py | 10435 | except TypeError: | CODE |
| HIGH | numpy/_core/tests/test_multiarray.py | 10169 | except NotImplementedError: | CODE |
| HIGH | numpy/_core/tests/test_multiarray.py | 7289 | except IndexError: | CODE |
| HIGH | numpy/_core/tests/test_nditer.py | 3428 | except TypeError: | CODE |
| HIGH | numpy/_core/tests/test_nditer.py | 3611 | except Exception: | CODE |
| 56 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | numpy/ma/tests/test_core.py | 0 | tests for structural pattern matching support (pep 634). | STRING |
| HIGH | numpy/_core/tests/test_records.py | 0 | tests for structural pattern matching support (pep 634). | STRING |
| HIGH | numpy/_core/tests/test_multiarray.py | 0 | tests for structural pattern matching support (pep 634). | STRING |
| HIGH | numpy/_core/tests/test_memmap.py | 0 | tests for structural pattern matching support (pep 634). | STRING |
| HIGH | numpy/matrixlib/tests/test_defmatrix.py | 0 | tests for structural pattern matching support (pep 634). | STRING |
| HIGH | numpy/f2py/common_rules.py | 0 | auxiliary functions for f2py2e. copyright 1999 -- 2011 pearu peterson all rights reserved. copyright 2011 -- present num | STRING |
| HIGH | numpy/f2py/cb_rules.py | 0 | auxiliary functions for f2py2e. copyright 1999 -- 2011 pearu peterson all rights reserved. copyright 2011 -- present num | STRING |
| HIGH | numpy/f2py/__init__.py | 0 | auxiliary functions for f2py2e. copyright 1999 -- 2011 pearu peterson all rights reserved. copyright 2011 -- present num | STRING |
| HIGH | numpy/f2py/func2subr.py | 0 | auxiliary functions for f2py2e. copyright 1999 -- 2011 pearu peterson all rights reserved. copyright 2011 -- present num | STRING |
| HIGH | numpy/f2py/capi_maps.py | 0 | auxiliary functions for f2py2e. copyright 1999 -- 2011 pearu peterson all rights reserved. copyright 2011 -- present num | STRING |
| HIGH | numpy/f2py/f90mod_rules.py | 0 | auxiliary functions for f2py2e. copyright 1999 -- 2011 pearu peterson all rights reserved. copyright 2011 -- present num | STRING |
| HIGH | numpy/f2py/use_rules.py | 0 | auxiliary functions for f2py2e. copyright 1999 -- 2011 pearu peterson all rights reserved. copyright 2011 -- present num | STRING |
| HIGH | numpy/f2py/auxfuncs.py | 0 | auxiliary functions for f2py2e. copyright 1999 -- 2011 pearu peterson all rights reserved. copyright 2011 -- present num | STRING |
| HIGH | numpy/polynomial/laguerre.py | 0 | evaluate a 2-d legendre series at points (x, y). this function returns the values: .. math:: p(x,y) = \\sum_{i,j} c_{i,j | STRING |
| HIGH | numpy/polynomial/hermite_e.py | 0 | evaluate a 2-d legendre series at points (x, y). this function returns the values: .. math:: p(x,y) = \\sum_{i,j} c_{i,j | STRING |
| HIGH | numpy/polynomial/chebyshev.py | 0 | evaluate a 2-d legendre series at points (x, y). this function returns the values: .. math:: p(x,y) = \\sum_{i,j} c_{i,j | STRING |
| HIGH | numpy/polynomial/legendre.py | 0 | evaluate a 2-d legendre series at points (x, y). this function returns the values: .. math:: p(x,y) = \\sum_{i,j} c_{i,j | STRING |
| HIGH | numpy/polynomial/laguerre.py | 0 | evaluate an n-d hermite series at points. this function returns the values: .. math:: p(pts, c) = \sum_{i_1, i_2, \dots, | STRING |
| HIGH | numpy/polynomial/hermite_e.py | 0 | evaluate an n-d hermite series at points. this function returns the values: .. math:: p(pts, c) = \sum_{i_1, i_2, \dots, | STRING |
| HIGH | numpy/polynomial/chebyshev.py | 0 | evaluate an n-d hermite series at points. this function returns the values: .. math:: p(pts, c) = \sum_{i_1, i_2, \dots, | STRING |
| HIGH | numpy/polynomial/polynomial.py | 0 | evaluate an n-d hermite series at points. this function returns the values: .. math:: p(pts, c) = \sum_{i_1, i_2, \dots, | STRING |
| HIGH | numpy/polynomial/legendre.py | 0 | evaluate an n-d hermite series at points. this function returns the values: .. math:: p(pts, c) = \sum_{i_1, i_2, \dots, | STRING |
| HIGH | numpy/polynomial/hermite.py | 0 | evaluate an n-d hermite series at points. this function returns the values: .. math:: p(pts, c) = \sum_{i_1, i_2, \dots, | STRING |
| HIGH | numpy/polynomial/laguerre.py | 0 | least squares fit of hermite series to data. return the coefficients of a hermite series of degree `deg` that is the lea | STRING |
| HIGH | numpy/polynomial/hermite_e.py | 0 | least squares fit of hermite series to data. return the coefficients of a hermite series of degree `deg` that is the lea | STRING |
| HIGH | numpy/polynomial/hermite.py | 0 | least squares fit of hermite series to data. return the coefficients of a hermite series of degree `deg` that is the lea | STRING |
| HIGH | numpy/polynomial/laguerre.py | 0 | a hermite series class. the hermite class provides the standard python numerical methods '+', '-', '*', '//', '%', 'divm | STRING |
| HIGH | numpy/polynomial/hermite_e.py | 0 | a hermite series class. the hermite class provides the standard python numerical methods '+', '-', '*', '//', '%', 'divm | STRING |
| HIGH | numpy/polynomial/chebyshev.py | 0 | a hermite series class. the hermite class provides the standard python numerical methods '+', '-', '*', '//', '%', 'divm | STRING |
| HIGH | numpy/polynomial/polynomial.py | 0 | a hermite series class. the hermite class provides the standard python numerical methods '+', '-', '*', '//', '%', 'divm | STRING |
| HIGH | numpy/polynomial/legendre.py | 0 | a hermite series class. the hermite class provides the standard python numerical methods '+', '-', '*', '//', '%', 'divm | STRING |
| HIGH | numpy/polynomial/hermite.py | 0 | a hermite series class. the hermite class provides the standard python numerical methods '+', '-', '*', '//', '%', 'divm | STRING |
| HIGH | numpy/polynomial/hermite_e.py | 0 | evaluate 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 |
| HIGH | numpy/polynomial/chebyshev.py | 0 | evaluate 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 |
| HIGH | numpy/polynomial/legendre.py | 0 | evaluate 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 |
| HIGH | numpy/polynomial/hermite_e.py | 0 | evaluate a 3-d legendre series on the cartesian product of x, y, and z. this function returns the values: .. math:: p(a, | STRING |
| HIGH | numpy/polynomial/chebyshev.py | 0 | evaluate a 3-d legendre series on the cartesian product of x, y, and z. this function returns the values: .. math:: p(a, | STRING |
| HIGH | numpy/polynomial/legendre.py | 0 | evaluate a 3-d legendre series on the cartesian product of x, y, and z. this function returns the values: .. math:: p(a, | STRING |
| HIGH | numpy/polynomial/hermite_e.py | 0 | pseudo-vandermonde matrix of given degrees. returns the pseudo-vandermonde matrix of degrees `deg` and sample points ``( | STRING |
| HIGH | numpy/polynomial/chebyshev.py | 0 | pseudo-vandermonde matrix of given degrees. returns the pseudo-vandermonde matrix of degrees `deg` and sample points ``( | STRING |
| HIGH | numpy/polynomial/legendre.py | 0 | pseudo-vandermonde matrix of given degrees. returns the pseudo-vandermonde matrix of degrees `deg` and sample points ``( | STRING |
| HIGH | numpy/polynomial/hermite_e.py | 0 | pseudo-vandermonde matrix of given degrees. returns the pseudo-vandermonde matrix of degrees `deg` and sample points ``( | STRING |
| HIGH | numpy/polynomial/chebyshev.py | 0 | pseudo-vandermonde matrix of given degrees. returns the pseudo-vandermonde matrix of degrees `deg` and sample points ``( | STRING |
| HIGH | numpy/polynomial/legendre.py | 0 | pseudo-vandermonde matrix of given degrees. returns the pseudo-vandermonde matrix of degrees `deg` and sample points ``( | STRING |
| HIGH | numpy/polynomial/hermite_e.py | 0 | return the scaled companion matrix of c. the basis polynomials are scaled so that the companion matrix is symmetric when | STRING |
| HIGH | numpy/polynomial/chebyshev.py | 0 | return the scaled companion matrix of c. the basis polynomials are scaled so that the companion matrix is symmetric when | STRING |
| HIGH | numpy/polynomial/legendre.py | 0 | return the scaled companion matrix of c. the basis polynomials are scaled so that the companion matrix is symmetric when | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/check_python_h_first.py | 55 | CODE | |
| LOW | tools/refguide_check.py | 251 | CODE | |
| LOW | tools/refguide_check.py | 555 | CODE | |
| LOW | tools/ci/check_c_api_usage.py | 87 | CODE | |
| LOW | tools/ci/check_c_api_usage.py | 121 | CODE | |
| LOW | numpy/__init__.py | 702 | CODE | |
| LOW | numpy/_utils/_pep440.py | 223 | CODE | |
| LOW | numpy/_utils/_pep440.py | 391 | CODE | |
| LOW | numpy/linalg/_linalg.py | 200 | CODE | |
| LOW | numpy/linalg/_linalg.py | 2591 | CODE | |
| LOW | numpy/linalg/_linalg.py | 2997 | CODE | |
| LOW | numpy/linalg/tests/test_linalg.py | 1480 | CODE | |
| LOW | numpy/linalg/lapack_lite/make_lite.py | 288 | CODE | |
| LOW | numpy/linalg/lapack_lite/make_lite.py | 177 | CODE | |
| LOW | numpy/linalg/lapack_lite/fortran.py | 17 | CODE | |
| LOW | numpy/linalg/lapack_lite/fortran.py | 80 | CODE | |
| LOW | numpy/ctypeslib/_ctypeslib.py | 251 | CODE | |
| LOW | numpy/ctypeslib/_ctypeslib.py | 95 | CODE | |
| LOW | numpy/ma/extras.py | 1664 | CODE | |
| LOW | numpy/ma/core.py | 219 | CODE | |
| LOW | numpy/ma/core.py | 476 | CODE | |
| LOW | numpy/ma/core.py | 2730 | CODE | |
| LOW | numpy/ma/core.py | 2891 | CODE | |
| LOW | numpy/ma/core.py | 3070 | CODE | |
| LOW | numpy/ma/core.py | 3163 | CODE | |
| LOW | numpy/ma/core.py | 3319 | CODE | |
| LOW | numpy/ma/core.py | 3448 | CODE | |
| LOW | numpy/ma/core.py | 3899 | CODE | |
| LOW | numpy/ma/core.py | 4089 | CODE | |
| LOW | numpy/ma/core.py | 4636 | CODE | |
| LOW | numpy/ma/core.py | 5418 | CODE | |
| LOW | numpy/ma/core.py | 5512 | CODE | |
| LOW | numpy/ma/mrecords.py | 579 | CODE | |
| LOW | numpy/ma/mrecords.py | 94 | CODE | |
| LOW | numpy/ma/tests/test_core.py | 721 | CODE | |
| LOW | numpy/ma/tests/test_extras.py | 975 | CODE | |
| LOW | numpy/_core/fromnumeric.py | 2364 | CODE | |
| LOW | numpy/_core/_dtype.py | 101 | CODE | |
| LOW | numpy/_core/_dtype.py | 322 | CODE | |
| LOW | numpy/_core/_internal.py | 91 | CODE | |
| LOW | numpy/_core/_internal.py | 152 | CODE | |
| LOW | numpy/_core/_internal.py | 227 | CODE | |
| LOW | numpy/_core/_internal.py | 368 | CODE | |
| LOW | numpy/_core/_internal.py | 466 | CODE | |
| LOW | numpy/_core/_internal.py | 632 | CODE | |
| LOW | numpy/_core/records.py | 959 | CODE | |
| LOW | numpy/_core/memmap.py | 215 | CODE | |
| LOW | numpy/_core/getlimits.py | 169 | CODE | |
| LOW | numpy/_core/_dtype_ctypes.py | 103 | CODE | |
| LOW | numpy/_core/shape_base.py | 138 | CODE | |
| LOW | numpy/_core/shape_base.py | 555 | CODE | |
| LOW | numpy/_core/numeric.py | 2024 | CODE | |
| LOW | numpy/_core/numeric.py | 2346 | CODE | |
| LOW | numpy/_core/function_base.py | 520 | CODE | |
| LOW | numpy/_core/einsumfunc.py | 150 | CODE | |
| LOW | numpy/_core/einsumfunc.py | 330 | CODE | |
| LOW | numpy/_core/einsumfunc.py | 445 | CODE | |
| LOW | numpy/_core/einsumfunc.py | 635 | CODE | |
| LOW | numpy/_core/einsumfunc.py | 1126 | CODE | |
| LOW | numpy/_core/numerictypes.py | 329 | CODE | |
| 209 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/swig/test/testArray.py | 41 | for i in range(self.array1.length()): | CODE |
| HIGH | tools/swig/test/testArray.py | 52 | self.assertTrue(self.array1.length() == self.length) | CODE |
| HIGH⚡ | tools/swig/test/testArray.py | 100 | for i in range(self.array1.length()): | CODE |
| HIGH⚡ | tools/swig/test/testArray.py | 106 | for i in range(self.array1.length()): | CODE |
| HIGH⚡ | tools/swig/test/testArray.py | 112 | for i in range(self.array1.length()): | CODE |
| HIGH | tools/swig/test/testArray.py | 295 | for i in range(self.array3.length()): | STRING |
| HIGH | tools/swig/test/testArray.py | 306 | self.assertTrue(self.array3.length() == self.length) | STRING |
| HIGH⚡ | tools/swig/test/testArray.py | 354 | for i in range(self.array3.length()): | STRING |
| HIGH⚡ | tools/swig/test/testArray.py | 361 | for i in range(self.array3.length()): | STRING |
| HIGH⚡ | tools/swig/test/testArray.py | 367 | for i in range(self.array3.length()): | STRING |
| HIGH | numpy/ma/extras.py | 726 | the contents of the input array. Treat the input as undefined, | STRING |
| HIGH | numpy/_core/tests/test_mem_policy.py | 56 | if (args != NULL && PyCapsule_CheckExact(args)) { | CODE |
| HIGH | numpy/_core/tests/test_stringdtype.py | 2624 | # str_len always errors for any non-string null, even NA ones because | COMMENT |
| HIGH | numpy/_core/code_generators/generate_ufunc_api.py | 42 | if (numpy == NULL && PyErr_ExceptionMatches(PyExc_ModuleNotFoundError)) { | CODE |
| HIGH | numpy/_core/code_generators/generate_numpy_api.py | 66 | if (numpy == NULL && PyErr_ExceptionMatches(PyExc_ModuleNotFoundError)) { | CODE |
| HIGH | numpy/f2py/cfuncs.py | 798 | /* empty bytes has trailing null, so dereferencing is always safe */ | COMMENT |
| HIGH | numpy/f2py/cfuncs.py | 383 | case NPY_BOOL: *(npy_bool *)(PyArray_DATA(arr))=(_re!=0 && _im!=0); break;\\ | CODE |
| HIGH | numpy/f2py/cfuncs.py | 496 | for (_m -= 1; _m >= 0 && _to[_m] == NULLVALUE; _m--) { \\ | CODE |
| HIGH | numpy/f2py/cfuncs.py | 766 | if (n < 0 || *len < 0 || buf == NULL) { | CODE |
| HIGH | numpy/f2py/cfuncs.py | 912 | return !(*v == -1 && PyErr_Occurred()); | CODE |
| HIGH | numpy/f2py/cfuncs.py | 919 | return !(*v == -1 && PyErr_Occurred()); | CODE |
| HIGH | numpy/f2py/cfuncs.py | 961 | return !(*v == -1 && PyErr_Occurred()); | CODE |
| HIGH | numpy/f2py/cfuncs.py | 968 | return !(*v == -1 && PyErr_Occurred()); | CODE |
| HIGH | numpy/f2py/cfuncs.py | 1011 | return !(*v == -1 && PyErr_Occurred()); | CODE |
| HIGH | numpy/f2py/cfuncs.py | 1018 | return !(*v == -1 && PyErr_Occurred()); | CODE |
| HIGH | numpy/f2py/cfuncs.py | 1087 | return !(*v == -1.0 && PyErr_Occurred()); | CODE |
| HIGH | numpy/f2py/cfuncs.py | 1094 | return !(*v == -1.0 && PyErr_Occurred()); | CODE |
| HIGH | numpy/f2py/cfuncs.py | 1220 | return !(npy_creal(v->_npy) == -1.0 && PyErr_Occurred()); | CODE |
| HIGH | numpy/f2py/cfuncs.py | 1224 | return !(npy_creal(v->_npy) == -1.0 && PyErr_Occurred()); | CODE |
| HIGH | numpy/f2py/tests/test_character.py | 455 | !f2py check(i>=0 && i<12) i | CODE |
| HIGH | numpy/lib/_arraypad_impl.py | 873 | # (padded area is undefined) | COMMENT |
| HIGH | numpy/lib/_function_base_impl.py | 3968 | the contents of the input array. Treat the input as undefined, | CODE |
| HIGH | numpy/lib/_nanfunctions_impl.py | 1153 | the contents of the input array. Treat the input as undefined, | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/refguide_check.py | 318 | except Exception: | CODE |
| LOW | tools/refguide_check.py | 525 | except Exception: | CODE |
| LOW | tools/ci/check_c_api_usage.py | 215 | except Exception as e: | CODE |
| LOW | numpy/linalg/_linalg.py | 2772 | except Exception as e: | STRING |
| LOW | numpy/linalg/tests/test_linalg.py | 411 | except Exception as e: | CODE |
| LOW | numpy/linalg/tests/test_linalg.py | 2107 | except Exception: | CODE |
| LOW | numpy/linalg/lapack_lite/make_lite.py | 285 | except Exception: | STRING |
| MEDIUM | numpy/linalg/lapack_lite/make_lite.py | 282 | def ensure_executable(name): | CODE |
| LOW | numpy/ctypeslib/_ctypeslib.py | 321 | except Exception as e: | CODE |
| MEDIUM | numpy/ma/core.py | 328 | def _scalar_fill_value(dtype): | CODE |
| LOW | numpy/ma/core.py | 1106 | except Exception: | CODE |
| LOW | numpy/ma/core.py | 1246 | except Exception: | CODE |
| LOW | numpy/ma/mrecords.py | 243 | except Exception: | CODE |
| LOW | numpy/ma/mrecords.py | 260 | except Exception: | CODE |
| MEDIUM | numpy/ma/mrecords.py | 180 | def __getattribute__(self, attr): | CODE |
| LOW | numpy/ma/tests/test_extras.py | 986 | except Exception: | CODE |
| LOW | numpy/_core/_internal.py | 956 | except Exception: | CODE |
| MEDIUM | numpy/_core/_internal.py | 59 | def _usefields(adict, align): | CODE |
| LOW | numpy/_core/records.py | 467 | except Exception: | CODE |
| LOW | numpy/_core/records.py | 480 | except Exception: | CODE |
| LOW | numpy/_core/numeric.py | 1171 | except Exception: | STRING |
| LOW | numpy/_core/numeric.py | 2557 | except Exception: | STRING |
| LOW | numpy/_core/numeric.py | 2625 | except Exception: | STRING |
| LOW | numpy/_core/numeric.py | 2629 | except Exception: | STRING |
| LOW | numpy/_core/function_base.py | 507 | except Exception: | CODE |
| LOW | numpy/_core/function_base.py | 516 | except Exception: | CODE |
| LOW | numpy/_core/numerictypes.py | 172 | except Exception: | CODE |
| LOW | numpy/_core/numerictypes.py | 224 | except Exception: | CODE |
| LOW | numpy/_core/tests/test_scalarmath.py | 115 | except Exception as e: | CODE |
| LOW | numpy/_core/tests/test_arrayprint.py | 1342 | except Exception: | CODE |
| LOW | numpy/_core/tests/test_shape_base.py | 466 | except Exception as e: | CODE |
| LOW | numpy/_core/tests/test_shape_base.py | 489 | except Exception as e: | CODE |
| MEDIUM | numpy/_core/tests/test_shape_base.py | 463 | def outcome(func): | CODE |
| MEDIUM | numpy/_core/tests/test_shape_base.py | 486 | def outcome(func): | CODE |
| LOW | numpy/_core/tests/test_indexing.py | 1011 | except Exception: | CODE |
| LOW | numpy/_core/tests/test_indexing.py | 1110 | except Exception: | CODE |
| LOW | numpy/_core/tests/test_indexing.py | 1150 | except Exception as e: | CODE |
| LOW | numpy/_core/tests/test_indexing.py | 1174 | except Exception as e: | CODE |
| LOW | numpy/_core/tests/test_extint128.py | 58 | except Exception: | CODE |
| LOW | numpy/_core/tests/test_ufunc.py | 203 | except Exception as exc: | CODE |
| LOW | numpy/_core/tests/test_strings.py | 142 | except Exception: | CODE |
| MEDIUM | numpy/_core/tests/test_multiarray.py | 416 | def make_array(size, offset, strides): | CODE |
| LOW⚡ | numpy/_core/tests/test_multiarray.py | 10437 | except Exception: | CODE |
| LOW | numpy/_core/tests/test_multiarray.py | 420 | except Exception as e: | CODE |
| MEDIUM | numpy/_core/tests/test_nditer.py | 3271 | def _is_buffered(iterator): | CODE |
| LOW | numpy/_core/tests/test_nditer.py | 1566 | except Exception: | CODE |
| LOW⚡ | numpy/_core/tests/test_nditer.py | 3430 | except Exception: | STRING |
| LOW | numpy/_core/tests/test_nditer.py | 3611 | except Exception: | STRING |
| LOW | numpy/_core/tests/test_cpu_features.py | 28 | except Exception as err: | CODE |
| LOW | numpy/_core/tests/test_cpu_features.py | 35 | except Exception as err: | CODE |
| LOW | numpy/_core/tests/test_cpu_features.py | 457 | except Exception: | CODE |
| MEDIUM | numpy/_core/tests/test_cpu_features.py | 172 | def _expect_error( | CODE |
| LOW | numpy/_core/tests/test_regression.py | 1885 | except Exception: | CODE |
| LOW | numpy/_core/code_generators/genapi.py | 308 | except Exception as e: | CODE |
| MEDIUM | numpy/_core/code_generators/genapi.py | 133 | def __str__(self): | CODE |
| LOW | numpy/f2py/crackfortran.py | 1150 | except Exception: | CODE |
| LOW | numpy/f2py/crackfortran.py | 1164 | except Exception: | CODE |
| LOW | numpy/f2py/crackfortran.py | 1174 | except Exception: | CODE |
| LOW | numpy/f2py/crackfortran.py | 1302 | except Exception: | CODE |
| LOW | numpy/f2py/crackfortran.py | 1376 | except Exception: | CODE |
| 65 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | numpy/linalg/tests/test_linalg.py | 1561 | # Define the part for 2d arrays separately, so we can subclass this | COMMENT |
| MEDIUM | numpy/linalg/tests/test_linalg.py | 1795 | # Define the array class here, so run this on matrices elsewhere. | COMMENT |
| MEDIUM | numpy/ma/core.py | 3889 | # Create the attribute if it was undefined | COMMENT |
| MEDIUM | numpy/ma/mrecords.py | 236 | # Create a shortcut (so that we don't have to call getattr all the time) | COMMENT |
| MEDIUM | numpy/ma/mrecords.py | 719 | # Create a new empty recarray | COMMENT |
| MEDIUM | numpy/ma/mrecords.py | 729 | # Create a new empty recarray | COMMENT |
| MEDIUM | numpy/_core/numeric.py | 1700 | # Create the output array | STRING |
| MEDIUM | numpy/_core/tests/test_numerictypes.py | 520 | # This function is old enough that we're really just documenting the quirks | COMMENT |
| MEDIUM | numpy/_core/tests/test_array_coercion.py | 815 | # Create an equivalent descriptor with a new and distinct dtype | COMMENT |
| MEDIUM | numpy/_core/tests/test_multithreading.py | 310 | # Create a deeply nested dtype to make a failure more likely: | COMMENT |
| MEDIUM | numpy/_core/tests/test_multithreading.py | 336 | # Create a deeply nested dtype to make a failure more likely: | COMMENT |
| MEDIUM | numpy/_core/tests/test_half.py | 283 | # Create an array of all finite float16s | COMMENT |
| MEDIUM | numpy/_core/tests/test_dtype.py | 2073 | # Create an array and test that memory gets cleaned up (gh-25949) | COMMENT |
| MEDIUM | numpy/_core/tests/test_stringdtype.py | 2989 | # Create an empty array with expanded dimension, and fill it. Then, | COMMENT |
| MEDIUM | numpy/_core/tests/test_multiarray.py | 4838 | # Create an object with the given base, in the given module, with a | COMMENT |
| MEDIUM | numpy/_core/tests/test_multiarray.py | 12066 | # Create a base array (scalar) and copy its interface | COMMENT |
| MEDIUM | numpy/_core/code_generators/genapi.py | 355 | # Create the mangled name: | COMMENT |
| MEDIUM | numpy/typing/tests/data/pass/simple.py | 28 | # Define the arguments on the previous line to prevent bidirectional | COMMENT |
| MEDIUM | numpy/f2py/cfuncs.py | 562 | # Defining the correct value to indicate thread-local storage in C without | STRING |
| MEDIUM | numpy/lib/recfunctions.py | 471 | # Create an iterator for the data | COMMENT |
| MEDIUM | numpy/lib/_arraypad_impl.py | 829 | # Create a new zero padded array | COMMENT |
| MEDIUM | numpy/lib/_npyio_impl.py | 1714 | # Create the new array as a single data-type and then | STRING |
| MEDIUM | numpy/lib/_npyio_impl.py | 2086 | # Define the list of missing_values (one column: one list) | STRING |
| MEDIUM | numpy/lib/_npyio_impl.py | 2140 | # Define the default | STRING |
| MEDIUM | numpy/lib/_index_tricks_impl.py | 786 | # The following functions complement those in twodim_base, but are | COMMENT |
| MEDIUM | numpy/lib/_datasource.py | 22 | >>> # Create a DataSource, use os.curdir (default) for local storage. | STRING |
| MEDIUM | numpy/lib/tests/test_arrayterator.py | 13 | # Create a random array | COMMENT |
| MEDIUM | numpy/lib/tests/test__datasource.py | 324 | # Create a locally cached temp file with a URL based | COMMENT |
| MEDIUM⚡ | numpy/lib/tests/test_nanfunctions.py | 1278 | # Create a multi-dimensional array to test | COMMENT |
| MEDIUM⚡ | numpy/random/tests/test_random.py | 530 | # Create a dict works like a sequence but isn't one | COMMENT |
| MEDIUM | .github/workflows/linux_simd.yml | 6 | # This file is meant for testing different SIMD-related build options and | COMMENT |
| MEDIUM | .github/workflows/linux.yml | 3 | # This file is meant for testing across supported Python versions, build types | COMMENT |
| MEDIUM | .github/workflows/linux_blas.yml | 3 | # This file is meant for testing different BLAS/LAPACK flavors and build | COMMENT |
| MEDIUM | doc/source/conf.py | 208 | # Create the admonition node, to be populated by `nested_parse` | COMMENT |
| MEDIUM | doc/neps/conf.py | 5 | # This file is execfile()d with the current directory set to its | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | numpy/ma/extras.py | 246 | #####-------------------------------------------------------------------------- | COMMENT |
| MEDIUM | numpy/ma/extras.py | 248 | #####-------------------------------------------------------------------------- | COMMENT |
| MEDIUM | numpy/ma/extras.py | 338 | #####-------------------------------------------------------------------------- | COMMENT |
| MEDIUM | numpy/ma/extras.py | 340 | #####-------------------------------------------------------------------------- | COMMENT |
| MEDIUM | numpy/ma/extras.py | 1368 | #####-------------------------------------------------------------------------- | STRING |
| MEDIUM | numpy/ma/extras.py | 1370 | #####-------------------------------------------------------------------------- | STRING |
| MEDIUM | numpy/ma/extras.py | 1875 | #####-------------------------------------------------------------------------- | STRING |
| MEDIUM | numpy/ma/extras.py | 1877 | #####-------------------------------------------------------------------------- | STRING |
| MEDIUM | numpy/ma/extras.py | 1939 | #####-------------------------------------------------------------------------- | STRING |
| MEDIUM | numpy/ma/extras.py | 1941 | #####-------------------------------------------------------------------------- | STRING |
| MEDIUM | numpy/lib/_type_check_impl.py | 356 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | numpy/lib/_type_check_impl.py | 493 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | numpy/lib/_type_check_impl.py | 558 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | numpy/lib/_type_check_impl.py | 646 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | numpy/lib/_npyio_impl.py | 1728 | #####-------------------------------------------------------------------------- | STRING |
| MEDIUM | numpy/lib/_npyio_impl.py | 1730 | #####-------------------------------------------------------------------------- | STRING |
| MEDIUM | numpy/lib/_utils_impl.py | 155 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | numpy/lib/tests/test__iotools.py | 84 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | numpy/lib/tests/test__iotools.py | 138 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | numpy/lib/tests/test_io.py | 1349 | #####-------------------------------------------------------------------------- | STRING |
| MEDIUM | .github/workflows/windows.yml | 71 | #======================================================================================= | COMMENT |
| MEDIUM | .github/workflows/windows.yml | 130 | #======================================================================================= | COMMENT |
| MEDIUM | doc/source/conf.py | 88 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | doc/source/conf.py | 90 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | doc/source/conf.py | 238 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | doc/source/conf.py | 240 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | doc/source/conf.py | 310 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | doc/source/conf.py | 312 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | doc/source/conf.py | 404 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | doc/source/conf.py | 406 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | doc/source/conf.py | 416 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | doc/source/conf.py | 418 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | doc/source/conf.py | 436 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | doc/source/conf.py | 438 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | doc/source/conf.py | 446 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | doc/source/conf.py | 448 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | doc/source/conf.py | 452 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | doc/source/conf.py | 454 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM | doc/source/conf.py | 466 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM | doc/source/conf.py | 468 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM | doc/source/conf.py | 497 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM | doc/source/conf.py | 499 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM | doc/source/conf.py | 617 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM | doc/source/conf.py | 619 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM | doc/source/conf.py | 631 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM | doc/source/conf.py | 633 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM | doc/neps/conf.py | 174 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | doc/neps/conf.py | 176 | # ----------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | numpy/_globals.py | 22 | __all__ = ['_NoValue', '_CopyMode'] | CODE |
| LOW | numpy/dtypes.py | 26 | __all__ = ["register_dlpack_dtype"] | CODE |
| LOW | numpy/matlib.py | 22 | __all__ = ['rand', 'randn', 'repmat'] | CODE |
| LOW | numpy/exceptions.py | 35 | __all__ = [ | CODE |
| LOW | numpy/_pytesttester.py | 34 | __all__ = ['PytestTester'] | CODE |
| LOW | numpy/_utils/_pep440.py | 36 | __all__ = [ | CODE |
| LOW | numpy/_utils/_conversions.py | 6 | __all__ = ["asunicode", "asbytes"] | CODE |
| LOW | numpy/_utils/_inspect.py | 10 | __all__ = ['getargspec', 'formatargspec'] | CODE |
| LOW | numpy/core/__init__.py | 25 | __all__ = ["arrayprint", "defchararray", "_dtype_ctypes", "_dtype", # noqa: F822 | CODE |
| LOW | numpy/linalg/_linalg.py | 12 | __all__ = ['matrix_power', 'solve', 'tensorsolve', 'tensorinv', 'inv', | CODE |
| LOW | numpy/ctypeslib/_ctypeslib.py | 52 | __all__ = ['load_library', 'ndpointer', 'c_intp', 'as_ctypes', 'as_array', | CODE |
| LOW | numpy/ma/extras.py | 10 | __all__ = [ | CODE |
| LOW | numpy/ma/__init__.py | 46 | __all__ = ['core', 'extras'] | CODE |
| LOW | numpy/ma/core.py | 51 | __all__ = [ | CODE |
| LOW | numpy/ma/mrecords.py | 27 | __all__ = [ | CODE |
| LOW | numpy/_core/umath.py | 45 | __all__ = [ | CODE |
| LOW | numpy/_core/fromnumeric.py | 17 | __all__ = [ | CODE |
| LOW | numpy/_core/multiarray.py | 29 | __all__ = [ | CODE |
| LOW | numpy/_core/_asarray.py | 9 | __all__ = ["require"] | CODE |
| LOW | numpy/_core/records.py | 15 | __all__ = [ | CODE |
| LOW | numpy/_core/__init__.py | 152 | __all__ = [ | STRING |
| LOW | numpy/_core/memmap.py | 9 | __all__ = ['memmap'] | CODE |
| LOW | numpy/_core/getlimits.py | 4 | __all__ = ['finfo', 'iinfo'] | CODE |
| LOW | numpy/_core/defchararray.py | 40 | __all__ = [ | CODE |
| LOW | numpy/_core/shape_base.py | 1 | __all__ = ['atleast_1d', 'atleast_2d', 'atleast_3d', 'block', 'hstack', | CODE |
| LOW | numpy/_core/numeric.py | 73 | __all__ = [ | CODE |
| LOW | numpy/_core/function_base.py | 15 | __all__ = ['logspace', 'linspace', 'geomspace'] | CODE |
| LOW | numpy/_core/einsumfunc.py | 14 | __all__ = ['einsum', 'einsum_path'] | CODE |
| LOW | numpy/_core/_ufunc_config.py | 13 | __all__ = [ | CODE |
| LOW | numpy/_core/numerictypes.py | 97 | __all__ = [ | CODE |
| LOW | numpy/_core/printoptions.py | 12 | __all__ = ["format_options"] | CODE |
| LOW | numpy/_core/strings.py | 73 | __all__ = [ | CODE |
| LOW | numpy/_core/arrayprint.py | 6 | __all__ = ["array2string", "array_str", "array_repr", | CODE |
| LOW | numpy/_core/tests/_natype.py | 5 | __all__ = ["pd_NA"] | CODE |
| LOW | numpy/_typing/_nested_sequence.py | 16 | __all__ = ["_NestedSequence"] | CODE |
| LOW | numpy/typing/__init__.py | 187 | __all__ = [ | CODE |
| LOW | numpy/f2py/__init__.py | 10 | __all__ = ['run_main', 'get_include'] | CODE |
| LOW | numpy/f2py/symbolic.py | 27 | __all__ = ['Expr'] | CODE |
| LOW | numpy/f2py/capi_maps.py | 27 | __all__ = [ | CODE |
| LOW | numpy/f2py/auxfuncs.py | 20 | __all__ = [ | CODE |
| LOW | numpy/testing/_private/extbuild.py | 15 | __all__ = ['build_and_import_extension', 'compile_extension_module'] | CODE |
| LOW | numpy/testing/_private/utils.py | 33 | __all__ = [ | CODE |
| LOW | numpy/lib/mixins.py | 6 | __all__ = ['NDArrayOperatorsMixin'] | CODE |
| LOW | numpy/lib/_polynomial_impl.py | 5 | __all__ = ['poly', 'roots', 'polyint', 'polyder', 'polyadd', | CODE |
| LOW | numpy/lib/recfunctions.py | 16 | __all__ = [ | CODE |
| LOW | numpy/lib/_array_utils_impl.py | 8 | __all__ = ["byte_bounds", "normalize_axis_tuple", "normalize_axis_index"] | CODE |
| LOW | numpy/lib/_arraysetops_impl.py | 29 | __all__ = [ | CODE |
| LOW | numpy/lib/_stride_tricks_impl.py | 12 | __all__ = ["broadcast_to", "broadcast_arrays", "broadcast_shapes"] | CODE |
| LOW | numpy/lib/_version.py | 10 | __all__ = ['NumpyVersion'] | CODE |
| LOW | numpy/lib/_type_check_impl.py | 7 | __all__ = ['iscomplexobj', 'isrealobj', 'imag', 'iscomplex', | CODE |
| LOW | numpy/lib/_scimath_impl.py | 23 | __all__ = [ | CODE |
| LOW | numpy/lib/__init__.py | 48 | __all__ = [ | CODE |
| LOW | numpy/lib/_arrayterator_impl.py | 13 | __all__ = ['Arrayterator'] | CODE |
| LOW | numpy/lib/introspect.py | 5 | __all__ = ['opt_func_info'] | CODE |
| LOW | numpy/lib/_shape_base_impl.py | 21 | __all__ = [ | CODE |
| LOW | numpy/lib/_histograms_impl.py | 12 | __all__ = ['histogram', 'histogramdd', 'histogram_bin_edges'] | CODE |
| LOW | numpy/lib/_arraypad_impl.py | 12 | __all__ = ['pad'] | CODE |
| LOW | numpy/lib/_ufunclike_impl.py | 6 | __all__ = ['fix', 'isneginf', 'isposinf'] | CODE |
| LOW | numpy/lib/_npyio_impl.py | 40 | __all__ = [ | CODE |
| LOW | numpy/lib/_index_tricks_impl.py | 20 | __all__ = [ | CODE |
| 21 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/changelog.py | 164 | # just use the first 80 characters, with ellipses. | COMMENT |
| LOW | numpy/ma/core.py | 4273 | # For regular arrays, just use the data as they come. | COMMENT |
| LOW | numpy/ma/core.py | 3199 | # Unary domain: just use this one | STRING |
| LOW | numpy/_core/_internal.py | 434 | # if both are identical, we can (maybe!) just return the same dtype. | COMMENT |
| LOW | numpy/_core/__init__.py | 47 | # cache_tag is documented to be possibly None, so just use name if it is | COMMENT |
| LOW | numpy/_core/tests/test_scalarmath.py | 590 | # Scalars should just return False and not give a warnings. | COMMENT |
| LOW | numpy/_core/tests/test_array_coercion.py | 902 | # result. This should likely just return S0 and if not maybe the decision | COMMENT |
| LOW | numpy/_core/tests/test_custom_dtypes.py | 585 | # Also user dtype can just return self if conjugate should be no-op. | COMMENT |
| LOW | numpy/_core/tests/test_defchararray.py | 508 | # Test special cases that should just return the input array, | COMMENT |
| LOW | numpy/_core/tests/test_overrides.py | 203 | # we just call the function in that case. | COMMENT |
| MEDIUM | numpy/_core/tests/test_multiarray.py | 7158 | # in conjunction with subarray dimensions being absorbed into the | COMMENT |
| MEDIUM | numpy/_core/tests/test_multiarray.py | 11891 | # Test large arrays that leverage openMP implementations from x86-simd-sort: | COMMENT |
| MEDIUM | numpy/_core/tests/test_multiarray.py | 11899 | # Test large arrays that leverage openMP implementations from x86-simd-sort: | COMMENT |
| LOW | numpy/_core/tests/test_regression.py | 1308 | # `dot` should just return zero (m, n) matrix | COMMENT |
| MEDIUM | numpy/f2py/func2subr.py | 146 | # Essentially, this gets called again with modules where the name of the | COMMENT |
| LOW | numpy/f2py/capi_maps.py | 476 | # elsize, so we just return 1 and let elsize be determined at | COMMENT |
| MEDIUM | numpy/lib/_iotools.py | 651 | # something more robust. | COMMENT |
| LOW | numpy/lib/recfunctions.py | 317 | # Should we flatten the items, or just use a nested approach | COMMENT |
| LOW | numpy/lib/recfunctions.py | 1034 | # stride, we can just return a view | COMMENT |
| LOW | numpy/lib/recfunctions.py | 1614 | #... we haven't: just add the description to the current list | COMMENT |
| LOW | numpy/lib/_function_base_impl.py | 4900 | # therefore simply set 0 values in cdf to -1. | COMMENT |
| MEDIUM | numpy/lib/_datasource.py | 400 | # TODO: This should be more robust. Handles case where path includes | COMMENT |
| LOW | numpy/lib/_utils_impl.py | 459 | # numpy scalar, which is not writeable. If so, just return nan. | COMMENT |
| MEDIUM | numpy/lib/tests/test_shape_base.py | 565 | # array_split has more comprehensive test of splitting. | COMMENT |
| MEDIUM | numpy/lib/tests/test__datasource.py | 39 | # A valid website for more robust testing | COMMENT |
| LOW⚡ | numpy/lib/tests/test_nanfunctions.py | 1288 | # We just use ones as weights, but replace it with 0 or 1e200 at the | COMMENT |
| LOW | numpy/random/tests/test_generator_mt19937.py | 1633 | # rounding but not in any important way, so we just use a looser | COMMENT |
| LOW | numpy/random/tests/test_randomstate.py | 1112 | # rounding but not in any important way, so we just use a looser | COMMENT |
| MEDIUM | …mpy/random/tests/test_generator_mt19937_regressions.py | 218 | # it doesn't hang. Certainly for a monotonically decreasing | COMMENT |
| LOW | numpy/random/tests/test_random.py | 874 | # rounding but not in any important way, so we just use a looser | COMMENT |
| LOW | .github/ccache/action.yml | 26 | # Note: we can't simply use restore followed by save because composite actions | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | numpy/_utils/_inspect.py | 141 | CODE | |
| LOW | numpy/linalg/_linalg.py | 2583 | CODE | |
| LOW | numpy/ma/core.py | 6901 | CODE | |
| LOW | numpy/ma/core.py | 2891 | CODE | |
| LOW | numpy/ma/mrecords.py | 471 | CODE | |
| LOW | numpy/ma/mrecords.py | 514 | CODE | |
| LOW | numpy/ma/mrecords.py | 94 | CODE | |
| LOW | numpy/ma/tests/test_subclassing.py | 108 | CODE | |
| LOW | numpy/_core/fromnumeric.py | 4101 | CODE | |
| LOW | numpy/_core/fromnumeric.py | 4107 | CODE | |
| LOW | numpy/_core/fromnumeric.py | 4305 | CODE | |
| LOW | numpy/_core/fromnumeric.py | 4311 | CODE | |
| LOW | numpy/_core/records.py | 754 | CODE | |
| LOW | numpy/_core/records.py | 758 | CODE | |
| LOW | numpy/_core/records.py | 848 | CODE | |
| LOW | numpy/_core/records.py | 959 | CODE | |
| LOW | numpy/_core/records.py | 389 | CODE | |
| LOW | numpy/_core/numeric.py | 1568 | CODE | |
| LOW | numpy/_core/arrayprint.py | 57 | CODE | |
| LOW | numpy/_core/arrayprint.py | 123 | CODE | |
| LOW | numpy/_core/arrayprint.py | 315 | CODE | |
| LOW | numpy/_core/arrayprint.py | 634 | CODE | |
| LOW | numpy/_core/arrayprint.py | 644 | CODE | |
| LOW | numpy/_core/arrayprint.py | 1221 | CODE | |
| LOW | numpy/_core/tests/test_multiarray.py | 115 | CODE | |
| LOW | numpy/f2py/crackfortran.py | 3305 | CODE | |
| LOW | numpy/f2py/crackfortran.py | 3613 | CODE | |
| LOW | numpy/f2py/use_rules.py | 100 | CODE | |
| LOW | numpy/testing/_private/utils.py | 759 | CODE | |
| LOW | numpy/lib/_npyio_impl.py | 861 | CODE | |
| LOW | numpy/lib/_npyio_impl.py | 1120 | CODE | |
| LOW | numpy/lib/_npyio_impl.py | 1735 | CODE | |
| LOW | numpy/lib/_function_base_impl.py | 4714 | CODE | |
| LOW | numpy/lib/_function_base_impl.py | 4910 | CODE | |
| LOW | numpy/lib/_nanfunctions_impl.py | 569 | CODE | |
| LOW | numpy/lib/_nanfunctions_impl.py | 631 | CODE | |
| LOW | numpy/lib/_nanfunctions_impl.py | 1689 | CODE | |
| LOW | numpy/lib/_nanfunctions_impl.py | 1696 | CODE | |
| LOW | numpy/lib/_nanfunctions_impl.py | 1879 | CODE | |
| LOW | numpy/lib/_nanfunctions_impl.py | 1886 | CODE | |
| LOW | numpy/lib/tests/test_twodim_base.py | 39 | CODE | |
| LOW | numpy/lib/tests/test_function_base.py | 74 | CODE | |
| LOW | numpy/fft/_pocketfft.py | 213 | CODE | |
| LOW | numpy/fft/_pocketfft.py | 314 | CODE | |
| LOW | numpy/fft/_pocketfft.py | 407 | CODE | |
| LOW | numpy/fft/_pocketfft.py | 511 | CODE | |
| LOW | numpy/fft/_pocketfft.py | 610 | CODE | |
| LOW | numpy/matrixlib/defmatrix.py | 170 | CODE | |
| LOW | numpy/polynomial/_polybase.py | 592 | CODE | |
| LOW | numpy/polynomial/_polybase.py | 650 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .spin/cmds.py | 675 | # Check if `towncrier` is installed | COMMENT |
| LOW | numpy/__init__.py | 858 | # Check if BLAS adds spurious FPEs, seen on M4 arms with Accelerate. | COMMENT |
| LOW | numpy/ma/extras.py | 907 | # Set axis to tuple of ints | COMMENT |
| LOW | numpy/ma/extras.py | 1687 | # Check if we can guarantee that the integers in the (N - ddof) | STRING |
| LOW | numpy/ma/extras.py | 1709 | # Check if we can guarantee that the integers in the (N - ddof) | STRING |
| LOW | numpy/ma/core.py | 6402 | # Set temps to save time when dealing w/ marrays. | COMMENT |
| LOW⚡ | numpy/ma/tests/test_core.py | 4905 | # Set False to masked | COMMENT |
| LOW⚡ | numpy/ma/tests/test_core.py | 4914 | # Set True to masked | COMMENT |
| LOW | numpy/_core/_internal.py | 766 | # Check if this was a simple 1-item type, and unwrap it | COMMENT |
| LOW | numpy/_core/tests/test_indexing.py | 1090 | # Check if broadcasting works | COMMENT |
| LOW | numpy/_core/tests/test_indexing.py | 1193 | # Check if we got a view, unless its a 0-sized or 0-d array. | COMMENT |
| LOW | numpy/_core/tests/test_function_base.py | 35 | # Check if the current platform is ARMHF (32-bit ARM architecture) | COMMENT |
| LOW | numpy/_core/tests/test_casting_unittests.py | 350 | # Check if alignment makes a difference, but only if supported | STRING |
| LOW | numpy/_core/tests/test_api.py | 644 | # Check if new arrays are correct: | COMMENT |
| LOW | numpy/_core/tests/test_regression.py | 1498 | # Check if log1p is behaving on 32 bit intel systems. | COMMENT |
| LOW | numpy/f2py/tests/util.py | 29 | # Check if compilers are available at all... | COMMENT |
| LOW | numpy/lib/_arraysetops_impl.py | 923 | # Check if one of the arrays may contain arbitrary objects | COMMENT |
| LOW | numpy/lib/_npyio_impl.py | 2159 | # Add the value to the list | STRING |
| LOW | numpy/lib/_format_impl.py | 961 | # Check if we ought to create the file. | COMMENT |
| LOW | .github/workflows/linux_blas.yml | 365 | # Check if the patch works: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | numpy/_core/tests/test_nditer.py | 1027 | # Check that arrays are cast as requested | COMMENT |
| HIGH | numpy/_core/tests/test_nditer.py | 1133 | # Check that scalars are cast as requested | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | numpy/f2py/symbolic.py | 569 | # TODO: implement a method for deciding when __call__ should | COMMENT |
| LOW | numpy/f2py/tests/test_docs.py | 66 | # TODO: implement test methods for other example Fortran codes | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | numpy/ma/core.py | 4723 | # make sure to return a 0-d array if axis is supplied | COMMENT |
| LOW | numpy/_core/numeric.py | 2442 | # This will cause casting of x later. Also, make sure to allow subclasses | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | numpy/lib/tests/test_io.py | 327 | # We need to check if the garbage collector can properly close | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | numpy/lib/tests/test_mixins.py | 7 | # NOTE: This class should be kept as an exact copy of the example from the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | numpy/_core/tests/test_cython.py | 386 | bad = np.array(["placeholder"], dtype=sdt) | CODE |