AI Slop Code RIsk Monitor

scipy/scipy

SciPy library main repository

7.0 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for scipy/scipy, a Python project with 15,104 GitHub stars. SynthScan examined 964,410 lines of code across 1796 source files, recording 5910 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 7.0 (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.

7.0
Adjusted Signal
7.0
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
15.1K
Stars
Python
Language
964.4K
Lines of Code
1.8K
Files
5.9K
Pattern Hits
2026-10-12
Scan Date
0.07
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 20.8/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 3.2/100 · LOW

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

Agent Over-Engineering Ratio 19.9/100 · LOW

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

PR Review Velocity Impact 31.7/100 · MEDIUM

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 0HIGH 126MEDIUM 413LOW 5371

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers2662 hits · 2443 pts
SeverityFileLineSnippetContext
LOW.spin/cmds.py1060def _count_physical_cores_linux():CODE
LOW.spin/cmds.py1104def _count_physical_cores_darwin():CODE
LOW.spin/cmds.py1114def _count_physical_cores_freebsd():CODE
LOWtools/linting/check_xp_untested.py49 def pytest_collection_modifyitems(self, session, config, items):CODE
LOWtools/linting/check_python_h_first.py66def check_python_h_included_first(name_to_check: str) -> int:CODE
LOWtools/building/tempita/_tempita.py389def paste_script_template_renderer(content, vars, filename=None):CODE
LOWbenchmarks/process_global_benchmarks.py5def process_global_benchmarks(f):CODE
LOWbenchmarks/benchmarks/optimize.py210 def run_differentialevolution(self):CODE
LOWbenchmarks/benchmarks/cluster_hierarchy_disjoint_set.py37 def time_merge_already_merged(self, n):CODE
LOWbenchmarks/benchmarks/ndimage_interpolation.py53 def time_geometric_transform_mapping(self, shape, order, mode):CODE
LOWbenchmarks/benchmarks/sparse_csgraph.py64 def time_strongly_connected_components(self, kind):CODE
LOWbenchmarks/benchmarks/spatial.py181 def time_query_ball_point_nosort(self, mnr, p, probe_radius, boxsize, leafsize):CODE
LOWbenchmarks/benchmarks/spatial.py225 def time_sparse_distance_matrix(self, mn1n2, p, probe_radius,CODE
LOW⚡benchmarks/benchmarks/spatial.py275 def time_count_neighbors_deep(self, mn1n2, Nr):CODE
LOW⚡benchmarks/benchmarks/spatial.py282 def time_count_neighbors_shallow(self, mn1n2, Nr):CODE
LOW⚡benchmarks/benchmarks/spatial.py289def generate_spherical_points(num_points):CODE
LOWbenchmarks/benchmarks/spatial.py315 def time_spherical_voronoi_calculation(self, num_points):CODE
LOWbenchmarks/benchmarks/spatial.py330 def time_spherical_polygon_vertex_sorting(self, num_points):CODE
LOWbenchmarks/benchmarks/spatial.py352 def time_spherical_polygon_area_calculation(self, num_points, ndim):CODE
LOWbenchmarks/benchmarks/stats.py184 def track_truncnorm_stats_error(self, case, moment):CODE
LOWbenchmarks/benchmarks/stats.py295 def track_distribution_ppf_roundtrip(self, dist_name):CODE
LOWbenchmarks/benchmarks/stats.py306 def track_distribution_ppf_roundtrip_extrema(self, dist_name):CODE
LOWbenchmarks/benchmarks/stats.py316 def track_distribution_isf_roundtrip(self, dist_name):CODE
LOWbenchmarks/benchmarks/stats.py327 def track_distribution_isf_roundtrip_extrema(self, dist_name):CODE
LOWbenchmarks/benchmarks/stats.py457 def time_gaussian_kde_evaluate(self, length):CODE
LOWbenchmarks/benchmarks/stats.py529 def time_binned_statistic_dd_reuse_bin(self, statistic):CODE
LOWbenchmarks/benchmarks/stats.py744 def time_wasserstein_distance(self, n_size):CODE
LOWbenchmarks/benchmarks/interpolate.py272 def time_smooth_bivariate_spline(self, n_samples):CODE
LOWbenchmarks/benchmarks/interpolate.py275 def time_lsq_bivariate_spline(self, n_samples):CODE
LOWbenchmarks/benchmarks/interpolate.py309 def time_rect_bivariate_spline(self, size, s):CODE
LOWbenchmarks/benchmarks/interpolate.py375 def time_rgi_setup_interpolator(self, ndim, max_coord_size,CODE
LOWbenchmarks/benchmarks/interpolate.py416 def time_rgi_setup_interpolator(self, ndim, n_samples, method):CODE
LOWbenchmarks/benchmarks/interpolate.py456 def time_rgi_setup_interpolator(self, ndim, n_samples):CODE
LOWbenchmarks/benchmarks/interpolate.py537 def time_rgi_setup_interpolator(self, ndim, max_coord_size,CODE
LOWbenchmarks/benchmarks/sparse_csgraph_matching.py27 def time_maximum_bipartite_matching(self, n, density):CODE
LOWbenchmarks/benchmarks/fft_basic.py123 def time_next_fast_len_cached(self, size):CODE
LOW…hmarks/benchmarks/tests/test_go_benchmark_functions.py51 def test_bounds_access_subscriptable(self):CODE
LOWdoc/source/conf.py592def _note_extension_dependency(app, what, name, obj, options, lines):STRING
LOWdoc/source/array_api_capabilities_table.py34def _get_flat_table_and_backends(CODE
LOWdoc/source/array_api_capabilities_table.py101 def _get_generated_doc_link_for_function(self, module, func):CODE
LOW…bprojects/pyprima/pyprima/pyprima/tests/test_bounds.py4def test_eliminate_fixed_bounds():CODE
LOW…jects/pyprima/pyprima/pyprima/tests/test_end_to_end.py10def test_end_to_end_no_constraints():CODE
LOW…jects/pyprima/pyprima/pyprima/tests/test_end_to_end.py21def test_end_to_end_linear_constraints(minimize_with_debugging):CODE
LOW…jects/pyprima/pyprima/pyprima/tests/test_end_to_end.py30def test_end_to_end_nonlinear_constraint():CODE
LOW⚡…ts/pyprima/pyprima/pyprima/tests/test_miscellaneous.py21def test_callback_no_terminate():CODE
LOW⚡…ts/pyprima/pyprima/pyprima/tests/test_miscellaneous.py31def test_rhoend_without_rhobeg():CODE
LOW⚡…ts/pyprima/pyprima/pyprima/tests/test_miscellaneous.py36def test_rhobeg_without_rhoend():CODE
LOW…ts/pyprima/pyprima/pyprima/tests/test_miscellaneous.py62def test_minimize_constraint_violation():CODE
LOW…a/pyprima/src/pyprima/common/_nonlinear_constraints.py3def transform_constraint_function(nlc):CODE
LOW…rima/pyprima/src/pyprima/common/_linear_constraints.py5def combine_multiple_linear_constraints(constraints):CODE
LOWscipy/conftest.py566def _backends_kwargs_from_request(request, skip_or_xfail):CODE
LOWscipy/conftest.py660def skip_or_xfail_xp_backends(request: pytest.FixtureRequest,CODE
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3429def _append_singleton_leaf_node(Z, p, n, level, lvs, ivl, leaf_label_func,STRING
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3455def _append_nonsingleton_leaf_node(Z, p, n, level, lvs, ivl, leaf_label_func,STRING
LOW⚡scipy/cluster/hierarchy/_hierarchy_impl.py3473def _append_contraction_marks(Z, iv, i, n, contraction_marks, xp):STRING
LOW⚡scipy/cluster/hierarchy/_hierarchy_impl.py3480def _append_contraction_marks_sub(Z, iv, i, n, contraction_marks, xp):STRING
LOW⚡scipy/cluster/hierarchy/_hierarchy_impl.py3489def _dendrogram_calculate_info(Z, p, truncate_mode,STRING
LOWscipy/cluster/hierarchy/tests/test_disjoint_set.py98def test_linear_union_sequence(n, direction):CODE
LOW⚡scipy/cluster/hierarchy/tests/test_hierarchy.py85 def test_linkage_non_finite_elements_in_distance_matrix(self, xp):CODE
LOW⚡scipy/cluster/hierarchy/tests/test_hierarchy.py91 def test_linkage_empty_distance_matrix(self, xp):CODE
2602 more matches not shown…
Decorative Section Separators262 hits · 767 pts
SeverityFileLineSnippetContext
MEDIUMtools/generate_cython_abi_tests.py26# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/generate_cython_abi_tests.py28# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/generate_cython_abi_tests.py54# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/generate_cython_abi_tests.py56# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/generate_cython_abi_tests.py82# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/generate_cython_abi_tests.py84# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/generate_cython_abi_tests.py120# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/generate_cython_abi_tests.py126# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/generate_cython_abi_tests.py158# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/generate_cython_abi_tests.py160# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/generate_cython_abi_tests.py233# ---------------------------------------------------------------------------STRING
MEDIUMtools/generate_cython_abi_tests.py235# ---------------------------------------------------------------------------STRING
MEDIUMtools/release/write_release_and_log.py40# ----------------------------COMMENT
MEDIUMtools/release/write_release_and_log.py42# ----------------------------COMMENT
MEDIUMtools/release/authors.py174#------------------------------------------------------------------------------STRING
MEDIUMtools/release/authors.py176#------------------------------------------------------------------------------STRING
MEDIUMtools/release/authors.py233#------------------------------------------------------------------------------STRING
MEDIUMtools/wheels/cibw_before_build_pyodide.sh60# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/wheels/cibw_before_build_pyodide.sh62# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/wheels/cibw_before_build_pyodide.sh81# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/wheels/cibw_before_build_pyodide.sh83# ---------------------------------------------------------------------------COMMENT
MEDIUM…nchmarks/go_benchmark_functions/go_funcs_univariate.py6#-----------------------------------------------------------------------COMMENT
MEDIUM…nchmarks/go_benchmark_functions/go_funcs_univariate.py8#-----------------------------------------------------------------------COMMENT
MEDIUM⚡.github/workflows/linux_intel_oneAPI.yml12 # ┌───────────── minute (0 - 59)COMMENT
MEDIUM⚡.github/workflows/linux_intel_oneAPI.yml13 # │ ┌───────────── hour (0 - 23)COMMENT
MEDIUM⚡.github/workflows/linux_intel_oneAPI.yml14 # │ │ ┌───────────── day of the month (1 - 31)COMMENT
MEDIUM⚡.github/workflows/linux_intel_oneAPI.yml15 # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)COMMENT
MEDIUM⚡.github/workflows/linux_intel_oneAPI.yml16 # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)COMMENT
MEDIUM⚡.github/workflows/windows_intel_oneAPI.yml13 # ┌───────────── minute (0 - 59)COMMENT
MEDIUM⚡.github/workflows/windows_intel_oneAPI.yml14 # │ ┌───────────── hour (0 - 23)COMMENT
MEDIUM⚡.github/workflows/windows_intel_oneAPI.yml15 # │ │ ┌───────────── day of the month (1 - 31)COMMENT
MEDIUM⚡.github/workflows/windows_intel_oneAPI.yml16 # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)COMMENT
MEDIUM⚡.github/workflows/windows_intel_oneAPI.yml17 # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)COMMENT
MEDIUM⚡.github/workflows/array_api.yml12 # ┌───────────── minute (0 - 59)COMMENT
MEDIUM⚡.github/workflows/array_api.yml13 # │ ┌───────────── hour (0 - 23)COMMENT
MEDIUM⚡.github/workflows/array_api.yml14 # │ │ ┌───────────── day of the month (1 - 31)COMMENT
MEDIUM⚡.github/workflows/array_api.yml15 # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)COMMENT
MEDIUM⚡.github/workflows/array_api.yml16 # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)COMMENT
MEDIUM⚡doc/source/conf.py280# -----------------------------------------------------------------------------COMMENT
MEDIUM⚡doc/source/conf.py282# -----------------------------------------------------------------------------COMMENT
MEDIUM⚡doc/source/conf.py287# -----------------------------------------------------------------------------COMMENT
MEDIUM⚡doc/source/conf.py289# -----------------------------------------------------------------------------COMMENT
MEDIUM⚡doc/source/conf.py320# -----------------------------------------------------------------------------COMMENT
MEDIUM⚡doc/source/conf.py322# -----------------------------------------------------------------------------COMMENT
MEDIUM⚡doc/source/conf.py330# -----------------------------------------------------------------------------COMMENT
MEDIUM⚡doc/source/conf.py332# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py31# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py33# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py200# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py202# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py301# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py303# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py347#------------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py349#------------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py394# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py396# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py425#------------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py427#------------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py439# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py441# -----------------------------------------------------------------------------STRING
202 more matches not shown…
Over-Commented Block901 hits · 734 pts
SeverityFileLineSnippetContext
LOWpyproject.toml1# Note that in maintenance branches, all build dependencies shouldCOMMENT
LOWtools/linting/check_test_name.py121 for _node in node.body:COMMENT
LOWtools/wheels/cibw_before_build_pyodide.sh1#!/bin/bashCOMMENT
LOWtools/building/ninjatracing.py1# Copyright 2018 Nico WeberCOMMENT
LOWbenchmarks/asv.conf.json21 // "install_command": ["in-dir={env_dir} python -mpip install {wheel_file}"],COMMENT
LOWbenchmarks/asv.conf.json61 // If missing or the empty string, the tool will be automaticallyCOMMENT
LOWbenchmarks/benchmarks/test_functions.py201#basinhoppingCOMMENT
LOW…hmarks/benchmarks/go_benchmark_functions/go_funcs_S.py261# is a multimodal minimization problem defined as follows:COMMENT
LOW.github/workflows/codeql.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
LOW.github/workflows/codeql.yml61 # Add any setup steps before running the `github/codeql-action/init` action.COMMENT
LOW.github/workflows/gpu-ci.yml1name: GPU jobsCOMMENT
LOW.github/workflows/linux_blas.yml1name: BLAS tests (Linux)COMMENT
LOWsubprojects/qhull_r/libqhull_r/user_r.h141 returns False. Use (a > REALmax/2) instead of (a == REALmax).COMMENT
LOWsubprojects/qhull_r/libqhull_r/user_r.h221 Note: may fail if more than 1 hour elapsed timeCOMMENT
LOWsubprojects/qhull_r/libqhull_r/user_r.h281 number generator [CACM 31:1195 '88]. It is included with Qhull.COMMENT
LOWsubprojects/qhull_r/libqhull_r/user_r.h301COMMENT
LOWsubprojects/qhull_r/libqhull_r/rboxlib_r.c21#include <setjmp.h>COMMENT
LOWsubprojects/qhull_r/libqhull_r/stat_r.h441#define wadd_(id, val) {MAYdebugx; qh->qhstat.stats[id].r += (val);}COMMENT
LOWsubprojects/qhull_r/libqhull_r/qhull_ra.h21 full parens around (x?y:z)COMMENT
LOWsubprojects/qhull_r/libqhull_r/qhull_ra.h41#include <math.h>COMMENT
LOWsubprojects/qhull_r/libqhull_r/qhull_ra.h81#define trace1(args) {if (qh->IStracing >= 1) qh_fprintf args;}COMMENT
LOWsubprojects/qhull_r/libqhull_r/qset_r.c21#include "libqhull_r.h" /* for qhT and QHULL_CRTDBG */COMMENT
LOWsubprojects/qhull_r/libqhull_r/libqhull_r.h101 >--------------------------------</a><a name="boolT">-</a>COMMENT
LOWsubprojects/qhull_r/libqhull_r/libqhull_r.h181*/COMMENT
LOWsubprojects/duccfft/ducc0/infra/threading.h61// Mutex, UniqueLock, LockGuard, CondVar, set_active_pool(),COMMENT
LOWsubprojects/duccfft/ducc0/infra/threading.h81#include <optional>COMMENT
LOWsubprojects/duccfft/ducc0/infra/useful_macros.h61#define DUCC0_PREFETCH_W(addr) __builtin_prefetch(addr,1);COMMENT
LOWsubprojects/duccfft/ducc0/infra/simd.h141}COMMENT
LOWsubprojects/duccfft/ducc0/infra/simd.h161#endifCOMMENT
LOWsubprojects/duccfft/ducc0/infra/simd.h181#include <arm_sve.h>COMMENT
LOWsubprojects/duccfft/ducc0/infra/simd.h841#endifCOMMENT
LOWsubprojects/duccfft/ducc0/fft/fftnd_impl.h61#include <numeric>COMMENT
LOWsubprojects/duccfft/ducc0/fft/fft1d_impl.h61COMMENT
LOWsubprojects/duccfft/ducc0/bindings/pybind_utils.h41 * You should have received a copy of the GNU General Public LicenseCOMMENT
LOWsubprojects/duccfft/ducc0/bindings/pybind_utils.h61#include <nanobind/stl/variant.h>COMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/update.py161 # the "pole position" in his comments. CONMAT, CVAL, FVAL, and SIMI are updated accordingly.COMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/update.py221 if 0 <= jopt < num_vars:COMMENT
LOW…prima/pyprima/pyprima/src/pyprima/cobyla/initialize.py41 assert num_constraints >= 0, f'M >= 0 {srname}'COMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobyla.py341 if xu is not None:COMMENT
LOW…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py241 # Powell did, we should use the UNUPDATED version, namely ZDASAV.COMMENT
LOW…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py341 sqrtd = max(np.sqrt(ss*dd + sd*sd), abs(sd), np.sqrt(ss * dd))COMMENT
LOW…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py361 # !if (dd <= 0) thenCOMMENT
LOW…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py461 #====================#COMMENT
LOW…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py481 # delta = delta_inCOMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py41 # Local variablesCOMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py81COMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py121 # PostconditionsCOMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py141 # We must initialize shortd, ratio, and jdrop_tr because these get defined onCOMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py161 gamma3 = np.maximum(1, np.minimum(0.75 * gamma2, 1.5))COMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py181 # Increase the penalty parameter CPEN, if needed, so thatCOMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py201COMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py221 d = trstlp(A, -conmat[:, num_vars], delta, g)COMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py301 # N.B.:COMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py321 # hence a bad model) rather than an improperly large DELTA, and it mightCOMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py361 # 2. If SIM[:, NUM_VARS] and RHO remain unchanged, then ADEQUATE_GEO will become True after atCOMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py381 # especially for linearly constrained problems due to the factor TENTH (= ETA1).COMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py401 # make it work in COBYLA. As in NEWUOA, we recorded the errors of the recent models, and setCOMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py421 # distinction makes no practical difference for CUTEst problems with at most 100 variablesCOMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py441 # is orthogonal to the face opposite to SIM(:, JDROP_GEO) and has a length of 0.5*DELTA,COMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py601 assert np.size(simi, 0) == num_vars and np.size(simi, 1) == num_varsCOMMENT
841 more matches not shown…
Unused Imports596 hits · 538 pts
SeverityFileLineSnippetContext
LOWtools/building/tempita/__init__.py4CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py44CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py45CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py46CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py47CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py48CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py49CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py50CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py51CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py52CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py53CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py54CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py55CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py56CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py57CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py58CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py59CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py60CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py61CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py62CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py63CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py64CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py65CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py66CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py67CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py68CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py69CODE
LOW…arks/benchmarks/go_benchmark_functions/go_benchmark.py4CODE
LOWdoc/source/tutorial/conftest.py1CODE
LOW…ojects/pyprima/pyprima/pyprima/src/pyprima/__init__.py2CODE
LOWscipy/conftest.py34CODE
LOWscipy/conftest.py79CODE
LOWscipy/conftest.py86CODE
LOWscipy/__init__.py37CODE
LOWscipy/__init__.py29CODE
LOWscipy/__init__.py64CODE
LOWscipy/_distributor_init.py16CODE
LOWscipy/cluster/__init__.py27CODE
LOWscipy/cluster/__init__.py27CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
LOWscipy/cluster/hierarchy/__init__.py100CODE
536 more matches not shown…
Deep Nesting497 hits · 452 pts
SeverityFileLineSnippetContext
LOW.spin/cmds.py64CODE
LOW.spin/cmds.py188CODE
LOW.spin/cmds.py1123CODE
LOWtools/linting/check_python_h_first.py66CODE
LOWtools/linting/check_nondefault_device.py130CODE
LOWtools/linting/numpydoc_lint.py616CODE
LOWtools/linting/check_unicode.py26CODE
LOWtools/linting/check_test_name.py96CODE
LOWtools/refguide/refguide_check.py213CODE
LOWtools/refguide/refguide_check.py501CODE
LOWtools/refguide/refguide_summaries.py43CODE
LOWtools/building/tempita/_tempita.py619CODE
LOWtools/building/tempita/_tempita.py748CODE
LOWtools/building/tempita/_tempita.py939CODE
LOWtools/building/tempita/_tempita.py100CODE
LOWtools/building/tempita/_tempita.py228CODE
LOWtools/building/tempita/_tempita.py332CODE
LOWbenchmarks/benchmarks/optimize.py560CODE
LOWbenchmarks/benchmarks/lsq_problems.py466CODE
LOWbenchmarks/benchmarks/linalg.py112CODE
LOWbenchmarks/benchmarks/common.py80CODE
LOWbenchmarks/benchmarks/common.py230CODE
LOWbenchmarks/benchmarks/stats.py220CODE
LOWbenchmarks/benchmarks/stats.py387CODE
LOWbenchmarks/benchmarks/sparse.py102CODE
LOWbenchmarks/benchmarks/fft_basic.py245CODE
LOWbenchmarks/benchmarks/fft_basic.py284CODE
LOW…hmarks/benchmarks/go_benchmark_functions/go_funcs_D.py242CODE
LOWbenchmarks/benchmarks/cutest/dfovec.py6CODE
LOWbenchmarks/benchmarks/cutest/calfun.py16CODE
LOWbenchmarks/benchmarks/cutest/dfoxs.py6CODE
LOWdoc/source/array_api_capabilities_table.py110CODE
LOW…ojects/pyprima/pyprima/pyprima/src/pyprima/__init__.py24CODE
LOW…ojects/pyprima/pyprima/pyprima/src/pyprima/__init__.py37CODE
LOW…ojects/pyprima/pyprima/pyprima/src/pyprima/__init__.py79CODE
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobyla.py487CODE
LOW…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py116CODE
LOW…ts/pyprima/pyprima/pyprima/src/pyprima/common/ratio.py14CODE
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py27CODE
LOW…s/pyprima/pyprima/pyprima/src/pyprima/common/linalg.py59CODE
LOW…s/pyprima/pyprima/pyprima/src/pyprima/common/linalg.py106CODE
LOW…s/pyprima/pyprima/pyprima/src/pyprima/common/linalg.py198CODE
LOW…s/pyprima/pyprima/pyprima/src/pyprima/common/linalg.py234CODE
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/preproc.py20CODE
LOW…pyprima/pyprima/pyprima/src/pyprima/common/_project.py17CODE
LOWscipy/conftest.py140CODE
LOWscipy/conftest.py566CODE
LOWscipy/conftest.py809CODE
LOWscipy/cluster/hierarchy/_hierarchy_impl.py2427CODE
LOWscipy/cluster/hierarchy/_hierarchy_impl.py2826CODE
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3489CODE
LOWscipy/cluster/hierarchy/_hierarchy_impl.py1120CODE
LOWscipy/ndimage/_ni_support.py37CODE
LOWscipy/ndimage/_ni_support.py78CODE
LOWscipy/ndimage/_ni_support.py110CODE
LOWscipy/ndimage/_support_alternative_backends.py38CODE
LOWscipy/ndimage/_support_alternative_backends.py39CODE
LOWscipy/ndimage/_support_alternative_backends.py41CODE
LOWscipy/ndimage/_filters.py1938CODE
LOWscipy/ndimage/_morphology.py216CODE
437 more matches not shown…
Empty Error Handlers72 hits · 360 pts
SeverityFileLineSnippetContext
HIGH.spin/cmds.py755except ValueError:CODE
HIGH.spin/cmds.py1068except Exception:CODE
HIGH.spin/cmds.py1089except Exception:CODE
HIGH.spin/cmds.py777except (ImportError, RuntimeError):CODE
HIGH.spin/cmds.py1017except NotImplementedError:CODE
HIGHtools/linting/check_python_h_first.py170except ValueError:CODE
HIGHtools/refguide/refguide_check.py189except ValueError:CODE
HIGHtools/refguide/refguide_check.py246except Exception:CODE
HIGHtools/release/write_release_and_log.py25except AttributeError:CODE
HIGHtools/release/authors.py120except KeyError:CODE
HIGHtools/building/gitversion.py36except FileNotFoundError:CODE
HIGHtools/building/ninjatracing.py129except OSError:CODE
HIGHtools/building/tempita/_tempita.py130except ValueError:CODE
HIGHbenchmarks/benchmarks/cluster_hierarchy_disjoint_set.py5except ImportError:CODE
HIGHbenchmarks/benchmarks/ndimage_interpolation.py8except ImportError:CODE
HIGHbenchmarks/benchmarks/common.py456except ValueError:CODE
HIGHbenchmarks/benchmarks/stats.py13except ImportError:CODE
HIGHdoc/source/conf.py451except ImportError:CODE
HIGHscipy/conftest.py253except Exception:CODE
HIGHscipy/conftest.py300except ImportError:CODE
HIGHscipy/conftest.py308except ImportError:CODE
HIGHscipy/conftest.py346except ImportError:CODE
HIGHscipy/conftest.py364except ImportError:CODE
HIGHscipy/conftest.py393except ImportError:CODE
HIGHscipy/conftest.py413except ImportError:CODE
HIGHscipy/conftest.py129except (ImportError, AttributeError):CODE
HIGHscipy/_distributor_init.py17except ImportError:CODE
HIGHscipy/linalg/_matfuncs_inv_ssq.py703except np.linalg.LinAlgError:CODE
HIGHscipy/optimize/_shgo.py1572except TypeError:CODE
HIGHscipy/optimize/_optimize.py855except _MaxFuncCallError:CODE
HIGHscipy/optimize/_optimize.py932except _MaxFuncCallError:CODE
HIGHscipy/optimize/_milp.py49except (TypeError, ValueError, VisibleDeprecationWarning):CODE
HIGHscipy/optimize/_minpack_py.py499except (LinAlgError, ValueError):CODE
HIGHscipy/optimize/_shgo_lib/_complex.py340except UnboundLocalError:CODE
HIGHscipy/optimize/_shgo_lib/_complex.py929except UnboundLocalError:CODE
HIGHscipy/optimize/_shgo_lib/_complex.py935except ValueError:CODE
HIGHscipy/optimize/_shgo_lib/_complex.py951except KeyError:CODE
HIGHscipy/optimize/_shgo_lib/_complex.py958except KeyError:CODE
HIGHscipy/optimize/_shgo_lib/_complex.py967except KeyError:CODE
HIGHscipy/optimize/_shgo_lib/_complex.py1048except KeyError:CODE
HIGHscipy/optimize/_lsq/common.py199except LinAlgError:CODE
HIGHscipy/integrate/tests/test_quadpack.py48except OSError:CODE
HIGHscipy/io/_mmio.py1002except ImportError:CODE
HIGHscipy/io/_mmio.py1007except ImportError:CODE
HIGHscipy/io/_netcdf.py284except AttributeError:CODE
HIGHscipy/io/_netcdf.py883except AttributeError:CODE
HIGHscipy/io/_fast_matrix_market/__init__.py77except (ImportError, AttributeError):CODE
HIGHscipy/io/_fast_matrix_market/__init__.py238except TypeError:CODE
HIGHscipy/_lib/_testutils.py275except (ImportError, AttributeError):CODE
HIGHscipy/_lib/_array_api.py974except AttributeError:CODE
HIGHscipy/_lib/_bunch.py223except (AttributeError, ValueError):CODE
HIGHscipy/_lib/_docscrape.py676except AttributeError:CODE
HIGHscipy/_lib/_uarray/_backend.py275except KeyError:CODE
HIGHscipy/_lib/_uarray/_backend.py304except KeyError:CODE
HIGHscipy/_lib/tests/test_array_api.py143except (TypeError, ValueError):CODE
HIGHscipy/special/_mptestutils.py14except ImportError:CODE
HIGHscipy/special/_ufunc_tools.py97except TypeError:CODE
HIGHscipy/special/_precompute/wright_bessel_data.py16except ImportError:CODE
HIGHscipy/special/_precompute/expn_asy.py16except ImportError:CODE
HIGHscipy/special/_precompute/gammainc_asy.py16except ImportError:CODE
12 more matches not shown…
Self-Referential Comments108 hits · 292 pts
SeverityFileLineSnippetContext
MEDIUM…hmarks/benchmarks/go_benchmark_functions/go_funcs_S.py260# This class defines the Schmidt-Vetters global optimization problem. ThisCOMMENT
MEDIUM.github/label-filename.yml1# This file contains globs for automatically adding labels based on changed files,COMMENT
MEDIUM.github/label-title-on-close.yml1# This file contains regexes for automatically adding labels to PRs which have been merged.COMMENT
MEDIUM.github/label-title.yml1# This file contains regexes for automatically adding labels based on issue/PR titles,COMMENT
MEDIUM.github/workflows/linux_blas.yml3# This file is meant for testing LP64/ILP64 BLAS/LAPACK flavors and buildCOMMENT
MEDIUMdoc/source/conf.py568 # Create the admonition node, to be populated by `nested_parse`STRING
MEDIUM…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobyla.py520 # Define the indices of the nontrivial bound constraints.COMMENT
MEDIUM…pyprima/pyprima/pyprima/src/pyprima/cobyla/geometry.py51 # The following code is Powell's scheme for defining JDROP.COMMENT
MEDIUM…ts/pyprima/pyprima/pyprima/src/pyprima/common/infos.py26# The following codes are used by ERROR STOP as stop-codes, which should be default integers.COMMENT
MEDIUMscipy/cluster/hierarchy/_hierarchy_impl.py1372 # Create a list full of None's to store the node objectsCOMMENT
MEDIUMscipy/cluster/hierarchy/_hierarchy_impl.py1375 # Create the nodes corresponding to the n original objects.COMMENT
MEDIUMscipy/linalg/_matfuncs_sqrtm.py73 # Define the index range covered by each block.COMMENT
MEDIUMscipy/linalg/interpolative.py834 >>> # Create a rank-5 matrixCODE
MEDIUMscipy/linalg/_special_matrices.py259 # This function is a slightly modified version of theSTRING
MEDIUMscipy/linalg/tests/test_decomp.py3507 # Create an array with boundary offset 4COMMENT
MEDIUMscipy/linalg/tests/test_decomp.py3522 # Create an array with boundary offset 4COMMENT
MEDIUMscipy/linalg/tests/test_decomp.py3535 # Create an array with boundary offset 8COMMENT
MEDIUMscipy/linalg/tests/test_lapack.py1321 # Create the RFP array manually (n is even!)COMMENT
MEDIUMscipy/linalg/tests/test_lapack.py1373 # Create the TP array manuallyCOMMENT
MEDIUMscipy/linalg/tests/test_procrustes.py91 # Create a perturbed input matrix.COMMENT
MEDIUMscipy/optimize/_shgo.py770 # Initialize return objectCOMMENT
MEDIUMscipy/optimize/_basinhopping.py44 """This class implements the core of the basinhopping algorithm.STRING
MEDIUMscipy/optimize/_slsqp_py.py573# The following functions modify their first input argument in-place.COMMENT
MEDIUMscipy/optimize/_differentialevolution.py541 """This class implements the differential evolution solverSTRING
MEDIUMscipy/optimize/_differentialevolution.py1055 # Create an array for population of candidate solutions.STRING
MEDIUMscipy/optimize/_differentialevolution.py1088 # Create an array for population of candidate solutions.STRING
MEDIUMscipy/optimize/_dcsrch.py342 # Initialize local variables.COMMENT
MEDIUMscipy/optimize/_dcsrch.py402 # Define the modified function and derivative values.COMMENT
MEDIUMscipy/optimize/tests/test_nnls.py89 # The following code sets up a system of equations such thatCOMMENT
MEDIUMscipy/optimize/tests/test_nnls.py147 # The following code sets up a system of equations such thatCOMMENT
MEDIUMscipy/optimize/_shgo_lib/_complex.py1098 # Create the vertex originCOMMENT
MEDIUMscipy/io/_idl.py38# Define the different data types that can be found in an IDL save fileCOMMENT
MEDIUMscipy/io/_idl.py55# Define the different record types that can be found in an IDL save fileCOMMENT
MEDIUMscipy/io/_idl.py71# Define a dictionary to contain structure definitionsCOMMENT
MEDIUMscipy/_lib/_elementwise_iterative_method.py254 # Initialize the result object and active element index arrayCOMMENT
MEDIUM⚡scipy/special/_generate_pyx.py373# This file is automatically generated by _generate_pyx.py.COMMENT
MEDIUMscipy/special/_generate_pyx.py395# This file is automatically generated by _generate_pyx.py.COMMENT
MEDIUMscipy/special/_support_alternative_backends.py324 # The below function is the same as above but makes use of shape_mapperCOMMENT
MEDIUMscipy/special/tests/test_iv_ratio.py1# This file contains unit tests for iv_ratio() and related functions.COMMENT
MEDIUM…ipy/special/tests/test_support_alternative_backends.py412 # The below function evaluation will trigger a deprecation warningCOMMENT
MEDIUMscipy/special/tests/test_cdflib.py769 # The following code was used to generate the values.COMMENT
MEDIUMscipy/_external/packaging_version/src/version.py1# This file is dual licensed under the terms of the Apache License, VersionCOMMENT
MEDIUMscipy/_external/packaging_version/src/_structures.py1# This file is dual licensed under the terms of the Apache License, VersionCOMMENT
MEDIUMscipy/interpolate/_fitpack_repro.py693 # Initialize the class with input data points x, y,COMMENT
MEDIUMscipy/interpolate/tests/test_interpnd.py503 # Create the interpolatorCOMMENT
MEDIUMscipy/interpolate/tests/test_fitpack2.py452 # Create a 2x3 array where F-order and C-order give different resultsCOMMENT
MEDIUMscipy/fft/_backend.py121 >>> class NoopBackend: # Define an invalid BackendSTRING
MEDIUMscipy/sparse/_coo.py536 # Define the array of data consisting of the entries to be added.COMMENT
MEDIUMscipy/sparse/_coo.py1526 # Create the new COO array with the original n-D shapeCOMMENT
MEDIUMscipy/sparse/_matrix.py8 """This class provides a base class for all sparse matrix classes.STRING
MEDIUMscipy/sparse/linalg/_expm_multiply.py689 # Define the output ndarray.COMMENT
MEDIUMscipy/sparse/linalg/_onenormest.py262 # This function is a more or less direct translationCOMMENT
MEDIUMscipy/sparse/linalg/_eigen/lobpcg/lobpcg.py535 # Define the closed range of indices of eigenvalues to return.COMMENT
MEDIUMscipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py194 # Define the generalized eigenvalue problem Av = cBvCOMMENT
MEDIUMscipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py627 # Define the generalized eigenvalue problem Av = cBvCOMMENT
MEDIUMscipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py661 # Define the preconditioner function as LinearOperator.COMMENT
MEDIUMscipy/sparse/linalg/tests/test_onenormest.py203 # Define a matrix through its product A B.COMMENT
MEDIUMscipy/sparse/linalg/_dsolve/linsolve.py314 # Create a sparse output matrix by repeatedly applyingCOMMENT
MEDIUM⚡scipy/sparse/csgraph/tests/test_spanning_tree.py11 # Create a graph with two connected components.COMMENT
MEDIUM⚡scipy/sparse/csgraph/tests/test_spanning_tree.py19 # Create the expected spanning tree.COMMENT
48 more matches not shown…
Modern Structural Boilerplate244 hits · 244 pts
SeverityFileLineSnippetContext
LOWtools/building/tempita/_looper.py23__all__ = ['looper']CODE
LOWtools/building/tempita/_tempita.py41__all__ = ['TemplateError', 'Template', 'sub', 'bunch']CODE
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py71__all__ = [s for s in dir() if not s.startswith('_')]CODE
LOW…chmarks/benchmarks/linprog_benchmark_files/__init__.py19__all__ = [s for s in dir() if not s.startswith('_')]CODE
LOWscipy/cluster/__init__.py25__all__ = ['vq', 'hierarchy']CODE
LOWscipy/cluster/hierarchy/__init__.py109__all__ = ['ClusterNode', 'ClusterWarning', 'DisjointSet', 'average', 'centroid',CODE
LOWscipy/cluster/hierarchy/_hierarchy_impl.py56__all__ = ['ClusterNode', 'ClusterWarning', 'DisjointSet',CODE
LOWscipy/cluster/vq/_vq_impl.py16__all__ = ['ClusterError', 'kmeans', 'kmeans2', 'py_vq', 'vq', 'whiten']CODE
LOWscipy/cluster/vq/__init__.py77__all__ = ["ClusterError", "kmeans", "kmeans2", "vq", "whiten"]CODE
LOWscipy/ndimage/_measurements.py37__all__ = ['label', 'find_objects', 'labeled_comprehension', 'sum', 'mean',CODE
LOWscipy/ndimage/_ni_docstrings.py6__all__ = ['docfiller']CODE
LOWscipy/ndimage/_fourier.py36__all__ = ['fourier_gaussian', 'fourier_uniform', 'fourier_ellipsoid',CODE
LOWscipy/ndimage/_filters.py46__all__ = ['correlate1d', 'convolve1d', 'gaussian_filter1d', 'gaussian_filter',CODE
LOWscipy/ndimage/_morphology.py39__all__ = ['iterate_structure', 'generate_binary_structure', 'binary_erosion',CODE
LOWscipy/ndimage/_interpolation.py44__all__ = ['spline_filter1d', 'spline_filter', 'geometric_transform',CODE
LOWscipy/linalg/_sketches.py11__all__ = ['clarkson_woodruff_transform']CODE
LOWscipy/linalg/_decomp_cholesky.py14__all__ = ['cholesky', 'cho_factor', 'cho_solve', 'cholesky_banded',CODE
LOWscipy/linalg/_procrustes.py11__all__ = ['orthogonal_procrustes']CODE
LOWscipy/linalg/_matfuncs_sqrtm.py7__all__ = []CODE
LOWscipy/linalg/_decomp_qr.py16__all__ = ['qr', 'qr_multiply', 'rq']CODE
LOWscipy/linalg/_decomp_svd.py16__all__ = ['svd', 'svdvals', 'diagsvd', 'orth', 'subspace_angles', 'null_space']CODE
LOWscipy/linalg/_decomp.py15__all__ = ['eig', 'eigvals', 'eigh', 'eigvalsh',CODE
LOWscipy/linalg/__init__.py223__all__ = [s for s in dir() if not s.startswith('_')]CODE
LOWscipy/linalg/_matfuncs.py22__all__ = ['expm', 'cosm', 'sinm', 'tanm', 'coshm', 'sinhm', 'tanhm', 'logm',CODE
LOWscipy/linalg/_decomp_lu.py16__all__ = ['lu', 'lu_solve', 'lu_factor']CODE
LOWscipy/linalg/_decomp_schur.py17__all__ = ['schur', 'rsf2csf']CODE
LOWscipy/linalg/_solvers.py25__all__ = ['solve_sylvester',CODE
LOWscipy/linalg/_decomp_polar.py6__all__ = ['polar']CODE
LOWscipy/linalg/interpolative.py363__all__ = [STRING
LOWscipy/linalg/blas.py235__all__ = ['get_blas_funcs', 'find_best_blas_type']CODE
LOWscipy/linalg/_decomp_ldl.py12__all__ = ['ldl']CODE
LOWscipy/linalg/_decomp_cossin.py9__all__ = ['cossin']CODE
LOWscipy/linalg/_decomp_qz.py13__all__ = ['qz', 'ordqz']CODE
LOWscipy/linalg/_expm_frechet.py7__all__ = ['expm_frechet', 'expm_cond']CODE
LOWscipy/linalg/_basic.py21__all__ = ['solve', 'solve_triangular', 'solveh_banded', 'solve_banded',CODE
LOWscipy/linalg/_misc.py8__all__ = ['LinAlgError', 'LinAlgWarning', 'norm', 'bandwidth']CODE
LOWscipy/linalg/lapack.py936__all__ = ['get_lapack_funcs']CODE
LOW⚡scipy/linalg/_special_matrices.py12__all__ = ['toeplitz', 'circulant', 'hankel',CODE
LOWscipy/optimize/_root.py8__all__ = ['root']CODE
LOWscipy/optimize/_cobyla_py.py20__all__ = ['fmin_cobyla']CODE
LOWscipy/optimize/_biteopt_py.py10__all__ = ['biteopt']CODE
LOWscipy/optimize/_shgo.py21__all__ = ['shgo']CODE
LOWscipy/optimize/_optimize.py20__all__ = ['fmin', 'fmin_powell', 'fmin_bfgs', 'fmin_ncg', 'fmin_cg',CODE
LOWscipy/optimize/_trustregion_ncg.py8__all__ = []CODE
LOWscipy/optimize/_minimize.py10__all__ = ['minimize', 'minimize_scalar']CODE
LOWscipy/optimize/_isotonic.py12__all__ = ["isotonic_regression"]CODE
LOWscipy/optimize/_lbfgsb_py.py47__all__ = ['fmin_l_bfgs_b', 'LbfgsInvHessProduct']CODE
LOWscipy/optimize/_zeros_py.py13__all__ = ['newton', 'bisect', 'ridder', 'brentq', 'brenth', 'toms748',CODE
LOWscipy/optimize/elementwise.py38__all__ = ["find_root", "find_minimum", "bracket_root", "bracket_minimum"]CODE
LOWscipy/optimize/_basinhopping.py12__all__ = ['basinhopping']CODE
LOWscipy/optimize/_linprog.py33__all__ = ['linprog', 'linprog_verbose_callback', 'linprog_terse_callback']CODE
LOWscipy/optimize/_slsqp_py.py16__all__ = ['approx_jacobian', 'fmin_slsqp']CODE
LOWscipy/optimize/_hessian_update_strategy.py8__all__ = ['HessianUpdateStrategy', 'BFGS', 'SR1']CODE
LOWscipy/optimize/__init__.py452__all__ = [s for s in dir() if not s.startswith('_')]CODE
LOWscipy/optimize/_linesearch.py21__all__ = ['LineSearchWarning', 'line_search_wolfe1', 'line_search_wolfe2',CODE
LOWscipy/optimize/_nnls.py5__all__ = ['nnls']CODE
LOWscipy/optimize/_trustregion_krylov.py4__all__ = ['_minimize_trust_krylov']CODE
LOWscipy/optimize/_trustregion.py12__all__ = []CODE
LOWscipy/optimize/_minpack_py.py19__all__ = ['fsolve', 'leastsq', 'fixed_point', 'curve_fit']CODE
LOWscipy/optimize/_direct_py.py10__all__ = ['direct']CODE
184 more matches not shown…
AI Structural Patterns224 hits · 217 pts
SeverityFileLineSnippetContext
LOWtools/building/tempita/_tempita.py100CODE
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobyla.py56CODE
LOW…s/pyprima/pyprima/pyprima/src/pyprima/common/linalg.py132CODE
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/preproc.py20CODE
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3037CODE
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3489CODE
LOWscipy/ndimage/_filters.py215CODE
LOWscipy/ndimage/_filters.py1938CODE
LOWscipy/ndimage/_filters.py2308CODE
LOWscipy/ndimage/_morphology.py305CODE
LOWscipy/ndimage/_morphology.py407CODE
LOWscipy/ndimage/_morphology.py546CODE
LOWscipy/ndimage/_morphology.py676CODE
LOWscipy/ndimage/_morphology.py1174CODE
LOWscipy/ndimage/_morphology.py1292CODE
LOWscipy/ndimage/_morphology.py1449CODE
LOWscipy/ndimage/_morphology.py1541CODE
LOWscipy/ndimage/_morphology.py1633CODE
LOWscipy/ndimage/_morphology.py1754CODE
LOWscipy/ndimage/_morphology.py1816CODE
LOWscipy/ndimage/_morphology.py1902CODE
LOWscipy/ndimage/_interpolation.py229CODE
LOWscipy/linalg/_decomp.py311CODE
LOWscipy/linalg/_decomp.py933CODE
LOWscipy/linalg/_generate_pyx.py735CODE
LOWscipy/linalg/tests/test_batch.py32CODE
LOWscipy/optimize/_linprog_ip.py839CODE
LOWscipy/optimize/_root.py280CODE
LOWscipy/optimize/_root.py338CODE
LOWscipy/optimize/_cobyla_py.py23CODE
LOWscipy/optimize/_cobyla_py.py186CODE
LOWscipy/optimize/_shgo.py24CODE
LOWscipy/optimize/_shgo.py491CODE
LOWscipy/optimize/_optimize.py579CODE
LOWscipy/optimize/_optimize.py703CODE
LOWscipy/optimize/_optimize.py1203CODE
LOWscipy/optimize/_optimize.py1347CODE
LOWscipy/optimize/_optimize.py1538CODE
LOWscipy/optimize/_optimize.py1721CODE
LOWscipy/optimize/_optimize.py1883CODE
LOWscipy/optimize/_optimize.py2003CODE
LOWscipy/optimize/_optimize.py2438CODE
LOWscipy/optimize/_optimize.py3273CODE
LOWscipy/optimize/_optimize.py3415CODE
LOWscipy/optimize/_linprog_doc.py8CODE
LOWscipy/optimize/_linprog_doc.py292CODE
LOWscipy/optimize/_linprog_doc.py533CODE
LOWscipy/optimize/_linprog_doc.py761CODE
LOWscipy/optimize/_linprog_doc.py1092CODE
LOWscipy/optimize/_linprog_doc.py1278CODE
LOWscipy/optimize/_minimize.py55CODE
LOWscipy/optimize/_lbfgsb_py.py93CODE
LOWscipy/optimize/_lbfgsb_py.py272CODE
LOWscipy/optimize/_zeros_py.py122CODE
LOWscipy/optimize/_basinhopping.py352CODE
LOWscipy/optimize/_linprog.py178CODE
LOWscipy/optimize/_slsqp_py.py71CODE
LOWscipy/optimize/_slsqp_py.py220CODE
LOWscipy/optimize/_elementwise.py514CODE
LOWscipy/optimize/_elementwise.py704CODE
164 more matches not shown…
Redundant / Tautological Comments98 hits · 146 pts
SeverityFileLineSnippetContext
LOWtools/linting/check_unicode.py42 # Read the file as bytes, and check for any bytes greater than 127.COMMENT
LOWtools/building/ninjatracing.py103 # Check if any event duration is greater than the duration from ninja.COMMENT
LOW…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py290 # Set sdirn to the direction of the next change to the current vector of variablesCOMMENT
LOW…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py322 # Set sdirn to the direction of the next change to the current vector of variables.COMMENT
LOW…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py377 # Set dnew to the new variables if step is the steplength, and reduce cviol to the correspondingCOMMENT
LOW…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py388 # Set vmultd to the vmultc vector that would occur if d became dnew. A device is included toCOMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py330 delta = rho # Set delta to rho when it is close to or below.CODE
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py335 # Set JDROP_TR to the index of the vertex to be replaced with X. JDROP_TR = 0 means thereCOMMENT
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py77 elif iprint > 0: # Print the message to the standard out.CODE
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py79 else: # Print the message to a file named FNAME.CODE
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py118 # Print the message.COMMENT
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py140 elif iprint > 0: # Print the message to the standard out.CODE
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py142 else: # Print the message to a file named FNAME.CODE
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py184 # Print the message.COMMENT
LOW⚡…/pyprima/pyprima/pyprima/src/pyprima/common/message.py210 elif iprint > 0: # Print the message to the standard out.CODE
LOW⚡…/pyprima/pyprima/pyprima/src/pyprima/common/message.py212 else: # Print the message to a file named FNAME.CODE
LOW⚡…/pyprima/pyprima/pyprima/src/pyprima/common/message.py215 # Print the message.COMMENT
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py241 elif iprint > 0: # Print the message to the standard out.CODE
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py243 else: # Print the message to a file named FNAME.CODE
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py281 # Print the message.COMMENT
LOWscipy/conftest.py522 # Check if ``uses_xp_capabilities`` mark is present.COMMENT
LOWscipy/linalg/_generate_pyx.py99 # Check if scipy's cython_blas exports blas_int (ILP64 support).STRING
LOWscipy/linalg/_generate_pyx.py196 # Check if scipy's cython_lapack exports blas_int (ILP64 support).STRING
LOWscipy/linalg/_solvers.py848 # Check if the data matrices q, r are (sufficiently) hermitianSTRING
LOWscipy/linalg/_solvers.py859 # Check if the generalized case is required with omitted argumentsSTRING
LOWscipy/linalg/tests/test_decomp.py2583 # Check if the result is actually correct & check overwrite behaviorCOMMENT
LOWscipy/optimize/_shgo.py541 # Check if bounds are correctly specifiedCOMMENT
LOWscipy/optimize/_linprog_simplex.py368 # Check if any artificial variables are still in the basis.COMMENT
LOWscipy/optimize/_hessian_update_strategy.py404 # Check if curvature condition is violatedCOMMENT
LOWscipy/optimize/_dual_annealing.py440 # Check if is valid valueCOMMENT
LOWscipy/optimize/_trustregion_exact.py327 # Check if factorization succeededCOMMENT
LOWscipy/optimize/_trustregion_exact.py383 # Check if the factorization have succeededCOMMENT
LOWscipy/optimize/tests/test_optimize.py53 # Verify if check_grad is able to estimate the derivative of theCOMMENT
LOWscipy/optimize/tests/test_optimize.py77 # Check if the epsilon parameter is being considered.COMMENT
LOWscipy/optimize/tests/test__dual_annealing.py344 # Check if update is accepted.COMMENT
LOW⚡scipy/optimize/tests/test_trustregion_exact.py92 # Check if the leading submatrix is singular.COMMENT
LOW⚡scipy/optimize/tests/test_trustregion_exact.py95 # Check if `v` fulfil the specified propertiesCOMMENT
LOW⚡scipy/optimize/tests/test_trustregion_exact.py119 # Check if the leading submatrix is singular.COMMENT
LOW⚡scipy/optimize/tests/test_trustregion_exact.py122 # Check if `v` fulfil the specified propertiesCOMMENT
LOWscipy/optimize/tests/test_trustregion_exact.py144 # Check if the leading submatrix is singularCOMMENT
LOWscipy/optimize/tests/test_trustregion_exact.py147 # Check if `v` fulfil the specified propertiesCOMMENT
LOW⚡scipy/optimize/tests/test_trustregion_exact.py356 # Check if it respect k_trfCOMMENT
LOW⚡scipy/optimize/tests/test_trustregion_exact.py363 # Check if it respect k_optCOMMENT
LOWscipy/optimize/_shgo_lib/_complex.py448 # Check if generator already existsCOMMENT
LOWscipy/optimize/_shgo_lib/_complex.py1116 # Check if connected, else s_i is not a simplexCOMMENT
LOWscipy/optimize/_lsq/common.py120 # Check if J has full rank and try Gauss-Newton step.COMMENT
LOWscipy/optimize/_lsq/trf.py167 # Check if reflection step is available.COMMENT
LOWscipy/optimize/_trustregion_constr/qp_subproblem.py217 # Check if intersection is feasibleCOMMENT
LOWscipy/optimize/_trustregion_constr/qp_subproblem.py592 # Check if ``x`` is inside the box and start counter if it is not.COMMENT
LOWscipy/optimize/_trustregion_constr/projections.py47 # Check if norms are zeroCOMMENT
LOWscipy/integrate/tests/test_integrate.py287 # Check if solout works even if it is set after the initial value.COMMENT
LOWscipy/io/_netcdf.py605 # Read file headers and set data.COMMENT
LOWscipy/io/_idl.py798 # Check if the end of the file has been reachedCOMMENT
LOWscipy/io/_idl.py826 # Set f to be the decompressed file, and skip the first four bytesCOMMENT
LOWscipy/io/_idl.py841 # Close the fileCOMMENT
LOWscipy/io/tests/test_netcdf.py135 # Read file from fileobj, with mmapCOMMENT
LOW⚡scipy/io/tests/test_netcdf.py438 # Open the file in append mode and add dataCOMMENT
LOW⚡scipy/io/tests/test_netcdf.py444 # Read the file and check that append workedCOMMENT
LOW⚡scipy/io/tests/test_netcdf.py452 # Read the file and check that 'data' was not saved as user definedCOMMENT
LOWscipy/io/tests/test_netcdf.py557 # Open file with mmap=False to avoid problems with closing a mmap'ed fileCOMMENT
38 more matches not shown…
Cross-File Repetition29 hits · 145 pts
SeverityFileLineSnippetContext
HIGHscipy/linalg/_matfuncs_inv_ssq.py0efficiently estimate the 1-norm of a^p. parameters ---------- a : ndarray matrix whose 1-norm of a power is to be computSTRING
HIGHscipy/sparse/linalg/_expm_multiply.py0efficiently estimate the 1-norm of a^p. parameters ---------- a : ndarray matrix whose 1-norm of a power is to be computSTRING
HIGHscipy/sparse/linalg/_matfuncs.py0efficiently estimate the 1-norm of a^p. parameters ---------- a : ndarray matrix whose 1-norm of a power is to be computSTRING
HIGHscipy/linalg/tests/test_cython_abi.py0regression test for the cython_special binary interface. the __pyx_capi__ dict of each module contains pycapsule objectsSTRING
HIGHscipy/optimize/tests/test_cython_abi.py0regression test for the cython_special binary interface. the __pyx_capi__ dict of each module contains pycapsule objectsSTRING
HIGHscipy/special/tests/test_cython_abi.py0regression test for the cython_special binary interface. the __pyx_capi__ dict of each module contains pycapsule objectsSTRING
HIGHscipy/linalg/tests/test_cython_abi.py0return {name: signature} for every entry in module.__pyx_capi__.STRING
HIGHscipy/optimize/tests/test_cython_abi.py0return {name: signature} for every entry in module.__pyx_capi__.STRING
HIGHscipy/special/tests/test_cython_abi.py0return {name: signature} for every entry in module.__pyx_capi__.STRING
HIGHscipy/io/_mmio.py0the default value for `spmatrix` is changing to `false` in v2.1. that means the default return type will be a sparse arrSTRING
HIGHscipy/io/_fast_matrix_market/__init__.py0the default value for `spmatrix` is changing to `false` in v2.1. that means the default return type will be a sparse arrSTRING
HIGHscipy/io/_harwell_boeing/hb.py0the default value for `spmatrix` is changing to `false` in v2.1. that means the default return type will be a sparse arrSTRING
HIGHscipy/io/matlab/_mio.py0the default value for `spmatrix` is changing to `false` in v2.1. that means the default return type will be a sparse arrSTRING
HIGHscipy/io/_mmio.py0the value `spmatrix=true` will no longer be supported in v2.2. the spmatrix classes are deprecated and will be removed tSTRING
HIGHscipy/io/_fast_matrix_market/__init__.py0the value `spmatrix=true` will no longer be supported in v2.2. the spmatrix classes are deprecated and will be removed tSTRING
HIGHscipy/io/_harwell_boeing/hb.py0the value `spmatrix=true` will no longer be supported in v2.2. the spmatrix classes are deprecated and will be removed tSTRING
HIGHscipy/io/matlab/_mio.py0the value `spmatrix=true` will no longer be supported in v2.2. the spmatrix classes are deprecated and will be removed tSTRING
HIGHscipy/sparse/_bsr.py0swap the members of x if this is a column-oriented matrixSTRING
HIGHscipy/sparse/_csr.py0swap the members of x if this is a column-oriented matrixSTRING
HIGHscipy/sparse/_csc.py0swap the members of x if this is a column-oriented matrixSTRING
HIGHscipy/sparse/_csr.py0returns a copy of row i of the matrix, as a (1 x n) sparse matrix (row vector).STRING
HIGHscipy/sparse/_csc.py0returns a copy of row i of the matrix, as a (1 x n) sparse matrix (row vector).STRING
HIGHscipy/sparse/_matrix.py0returns a copy of row i of the matrix, as a (1 x n) sparse matrix (row vector).STRING
HIGHscipy/sparse/_csr.py0`isspmatrix_dok` is being replaced by `self.format == "dok" and issparse`. all sparse matrix classes (*_matrix) are beinSTRING
HIGHscipy/sparse/_coo.py0`isspmatrix_dok` is being replaced by `self.format == "dok" and issparse`. all sparse matrix classes (*_matrix) are beinSTRING
HIGHscipy/sparse/_dia.py0`isspmatrix_dok` is being replaced by `self.format == "dok" and issparse`. all sparse matrix classes (*_matrix) are beinSTRING
HIGHscipy/sparse/_lil.py0`isspmatrix_dok` is being replaced by `self.format == "dok" and issparse`. all sparse matrix classes (*_matrix) are beinSTRING
HIGHscipy/sparse/_csc.py0`isspmatrix_dok` is being replaced by `self.format == "dok" and issparse`. all sparse matrix classes (*_matrix) are beinSTRING
HIGHscipy/sparse/_dok.py0`isspmatrix_dok` is being replaced by `self.format == "dok" and issparse`. all sparse matrix classes (*_matrix) are beinSTRING
AI Slop Vocabulary61 hits · 108 pts
SeverityFileLineSnippetContext
LOWpixi.toml638# Note: we need BLAS support in Meson merged before we can simply use `-Dblas=mkl`COMMENT
LOWtools/release/gh_lists.py83 # just use the first 80 characters, with ellipses.COMMENT
LOWbenchmarks/benchmarks/optimize.py563 # if so, then just return the ret_valueCOMMENT
LOWbenchmarks/benchmarks/common.py316 # Unknown, just return whatever is here.COMMENT
LOW.github/ccache/action.yml28 # Note: we can't simply use restore followed by save because composite actionsCOMMENT
MEDIUM…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/update.py138 # Essentially jopt = np.argmin(phi). However, we keep jopt = num_vars unless thereCOMMENT
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobyla.py454 # In MATLAB/Python/Julia/R implementation, we should simply set MAXHIST = MAXFUN and initializeCOMMENT
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/preproc.py101 # We cannot simply set MAXFILT = MIN(MAXFILT, MAXHISTMEM/...), as they may not haveCOMMENT
LOWscipy/linalg/_decomp.py572 ## If not given, simply use the defaultSTRING
MEDIUMscipy/linalg/tests/test_decomp_lu.py190 # Those matrices are more robust to detect problems in permutationCOMMENT
MEDIUMscipy/linalg/src/_matfuncs_expm.c1105 // We utilize the unused powers of Am as scratch memory depending on m value.COMMENT
MEDIUMscipy/linalg/src/_matfuncs_expm.c1320 // We utilize the unused powers of Am as scratch memory depending on m value.COMMENT
MEDIUMscipy/linalg/src/_matfuncs_expm.c1538 // We utilize the unused powers of Am as scratch memory depending on m value.COMMENT
MEDIUMscipy/linalg/src/_matfuncs_expm.c1874 // We utilize the unused powers of Am as scratch memory depending on m value.COMMENT
LOWscipy/optimize/_optimize.py3212 # If this is the case, then we can just return (0, 0)STRING
MEDIUMscipy/optimize/_bracket.py309 # To facilitate this, `work.active` contains a unit integer index ofCOMMENT
LOWscipy/optimize/_lsq/least_squares.py71 # lmdif and just use lmder.COMMENT
LOWscipy/optimize/_lsq/dogbox.py135 # the bounds, and just return it constrained version if not. But in aCOMMENT
MEDIUMscipy/optimize/_lsq/common.py721 """Scale Jacobian and residuals for a robust loss function.STRING
LOWscipy/optimize/_trustregion_constr/tr_interior_point.py88 # and just set both equality and inequalityCOMMENT
MEDIUMscipy/optimize/src/nnls.c27 // Essentially a permuted gemv operation via BLAS ddot, in NumPy notation;COMMENT
LOWscipy/integrate/_quadrature.py127 # Cannot just use the broadcasted arrays that are returnedSTRING
MEDIUMscipy/integrate/_lebedev.py52 # combined with radial quadratures to provide robust cubature formulae. ForCOMMENT
LOW⚡scipy/_lib/_util.py954 # whenever mdhaber/marray#89 is resolved, could just return `res`COMMENT
LOWscipy/special/_mptestutils.py53 # Outside of linspace range; just return a logspace.COMMENT
LOWscipy/special/_mptestutils.py56 # Outside of logspace range; just return a linspaceCOMMENT
LOWscipy/special/_support_alternative_backends.py282 # set in JAX. One cannot just use xp_promote for the input dtypes becauseCOMMENT
LOWscipy/special/_support_alternative_backends.py298 # JAX uses NumPy dtypes so we can just pass these directly toCOMMENT
LOWscipy/special/tests/test_ufunc_signatures.py104 # since we only care about dtypes and not values here, just use an appropriatelyCOMMENT
MEDIUMscipy/differentiate/_differentiate.py245 https://www.mathworks.com/matlabcentral/fileexchange/13490-adaptive-robust-numerical-differentiationSTRING
LOWscipy/interpolate/_rbfinterp.py510 # If this number is below 1e6 we just use 1e6STRING
LOWscipy/interpolate/_interpolate.py374 # For slinear or zero order spline, we just pass nans through.COMMENT
LOWscipy/sparse/_coo.py141 # index overflow. This is why we can't simply callCOMMENT
MEDIUMscipy/sparse/linalg/_svdp.py242 # work arrays to utilize BLAS level 3 operations. In almost all relevantCOMMENT
LOW⚡scipy/sparse/linalg/_eigen/arpack/arpack.py19# may use eigsh(), but eigsh() will simply call eigs()COMMENT
MEDIUMscipy/sparse/linalg/_eigen/tests/test_svds.py863 # I can't see a robust relationship between `ncv` and relevant outputsCOMMENT
MEDIUMscipy/sparse/linalg/tests/test_propack.py35# It is not very robust to arbitrary seeding since partial reorthogonalizationCOMMENT
MEDIUMscipy/sparse/tests/test_base.py955 # comprehensive testCOMMENT
LOWscipy/signal/_ltisys.py2217 # Zero input: just use matrix exponentialSTRING
MEDIUMscipy/signal/tests/_scipy_spectral_test_shim.py1"""Helpers to utilize existing stft / istft tests for testing `ShortTimeFFT`.STRING
MEDIUMscipy/signal/windows/_windows.py2371 # sufficiently smooth functions, and more robust than relying on anSTRING
MEDIUMscipy/stats/_stats_py.py9666 # To facilitate comparison with [1], we'll use variable names thatSTRING
MEDIUMscipy/stats/_stats_py.py10722 # Written to match [1] Equation 27 closely to facilitate review.STRING
MEDIUMscipy/stats/_qmvnt.py244# included in this file to facilitate the resolution of gh-8367, gh-16142, andCOMMENT
MEDIUMscipy/stats/_discrete_distns.py1559 # Thus, we can leverage the following:STRING
LOWscipy/stats/_continuous_distns.py475 # Without this check, this function would just return theCOMMENT
LOWscipy/stats/_continuous_distns.py3702 # Without this check, this function would just return theCOMMENT
LOWscipy/stats/_continuous_distns.py6324 # Without this check, this function would just return theSTRING
LOWscipy/stats/_continuous_distns.py8565 # to handle inside pearson3._pdf) or negative. So just return TrueSTRING
LOWscipy/stats/_distribution_infrastructure.py102# mind NaNs; they just return NaN. The behavior "If x_i is NaN, the resultCOMMENT
MEDIUMscipy/stats/_distribution_infrastructure.py1142 # cases. That would be a bit more robust, but it would also be quiteSTRING
MEDIUMscipy/stats/_distribution_infrastructure.py1966 # raises a distribution-specific error message to facilitateSTRING
LOWscipy/stats/_distribution_infrastructure.py2664 # Can't just call `out = _cdf2_subtraction(self, x, y, **params)` hereSTRING
MEDIUMscipy/stats/tests/test_mstats_basic.py1105 # method is robust to outliers: brekdown point of 50%COMMENT
MEDIUMscipy/stats/tests/test_continuous_basic.py142 # TODO: multiple checks in this function are not robust, tweaking theCOMMENT
MEDIUMscipy/stats/tests/test_hypotests.py2017 # because games_howell leverage _tukey_hsd_iv()STRING
LOWscipy/stats/tests/test_axis_nan_policy.py283# For some functions, nan_policy='propagate' should not just return NaNsCOMMENT
MEDIUMscipy/stats/tests/test_correlation.py395 # method is robust to outliers: breakdown point of 50%COMMENT
LOWscipy/stats/tests/test_distributions.py5084 # this try-except wrapper and just call the function.COMMENT
MEDIUMscipy/stats/tests/data/_mvt.py8 # Defined to facilitate comparison between translation and sourceCOMMENT
1 more matches not shown…
Excessive Try-Catch Wrapping92 hits · 96 pts
SeverityFileLineSnippetContext
LOW.spin/cmds.py1068 except Exception:CODE
LOW.spin/cmds.py1089 except Exception:CODE
LOW.spin/cmds.py1155 except Exception as e:CODE
MEDIUM.spin/cmds.py1060def _count_physical_cores_linux():CODE
MEDIUM.spin/cmds.py1079def _count_physical_cores_win32():CODE
LOWtools/refguide/refguide_check.py246 except Exception:CODE
LOWtools/refguide/refguide_check.py417 except Exception:CODE
LOWtools/building/tempita/_tempita.py313 except Exception as e:CODE
LOWtools/building/tempita/_tempita.py325 except Exception as e:CODE
LOWtools/building/tempita/_tempita.py348 except Exception as e:CODE
LOWbenchmarks/benchmarks/optimize.py598 except Exception:CODE
LOWbenchmarks/benchmarks/common.py432 except Exception:CODE
MEDIUMbenchmarks/benchmarks/common.py257def is_xslow():CODE
LOWbenchmarks/benchmarks/sparse.py289 except Exception:CODE
LOW⚡doc/source/conf.py490 except Exception:STRING
LOW⚡doc/source/conf.py495 except Exception:STRING
LOW⚡doc/source/conf.py502 except Exception:STRING
LOWdoc/source/conf.py475 except Exception:STRING
LOWscipy/conftest.py36except Exception:CODE
LOWscipy/conftest.py80 except Exception:CODE
LOWscipy/conftest.py87 except Exception:CODE
LOWscipy/conftest.py163 except Exception: # observed in gh-14441: (ImportError, AttributeError)CODE
LOWscipy/conftest.py183 except Exception:CODE
LOWscipy/conftest.py245 except Exception as e: # ImportError, or ValueError from a bad rc settingCODE
LOWscipy/conftest.py253 except Exception:CODE
LOW⚡scipy/cluster/hierarchy/tests/test_hierarchy.py75except Exception:CODE
LOWscipy/ndimage/_morphology.py2373 except Exception as e:CODE
LOW⚡scipy/linalg/tests/test_lapack.py2619 except Exception as e:CODE
LOW⚡scipy/linalg/tests/test_lapack.py2634 except Exception as e:CODE
LOWscipy/optimize/_linprog_ip.py109 except Exception:CODE
LOWscipy/optimize/_linprog_ip.py146 except Exception:CODE
LOWscipy/optimize/_minimize.py1118 except Exception as e:CODE
LOWscipy/optimize/_linprog_util.py879 except Exception:CODE
LOWscipy/optimize/_remove_redundancy.py195 except Exception:CODE
LOWscipy/optimize/tests/test_zeros.py95 except Exception:CODE
LOWscipy/optimize/_shgo_lib/_vertex.py455 except Exception:CODE
MEDIUMscipy/optimize/_shgo_lib/_vertex.py234def __getitem__(self, x, nn=None):CODE
LOWscipy/integrate/_quadrature.py1037 except Exception:STRING
LOWscipy/integrate/_quadrature.py1097 except Exception as e:STRING
LOWscipy/integrate/_quadrature.py1107 except Exception as e:STRING
LOWscipy/_lib/tests/test_array_api.py322 except Exception as e:CODE
LOWscipy/_lib/tests/test_array_api.py364 except Exception as e:CODE
LOWscipy/special/_mptestutils.py412 except Exception:CODE
MEDIUMscipy/special/_mptestutils.py409def wrap(*a, **kw):CODE
LOWscipy/special/tests/test_mpmath.py209 except Exception:CODE
LOWscipy/interpolate/_rgi.py300 except Exception as e:CODE
LOWscipy/interpolate/_rgi.py305 except Exception:CODE
LOWscipy/interpolate/_cubic.py1043 except Exception as e:CODE
LOWscipy/interpolate/_rbfinterp_xp.py77 except Exception:CODE
LOWscipy/interpolate/_fitpack_impl.py312 except Exception:CODE
LOWscipy/interpolate/_fitpack_impl.py347 except Exception:CODE
LOWscipy/interpolate/_fitpack_impl.py368 except Exception:CODE
LOWscipy/interpolate/_fitpack_impl.py395 except Exception:CODE
LOWscipy/interpolate/_fitpack_impl.py741 except Exception:CODE
LOWscipy/sparse/_compressed.py88 except Exception as e:CODE
LOWscipy/sparse/_compressed.py108 except Exception as e:CODE
LOWscipy/sparse/_bsr.py108 except Exception as e:CODE
LOWscipy/sparse/_bsr.py126 except Exception as e:CODE
LOWscipy/sparse/_dia.py55 except Exception as e:CODE
LOWscipy/sparse/_dia.py74 except Exception as e:CODE
32 more matches not shown…
Cross-Language Confusion21 hits · 91 pts
SeverityFileLineSnippetContext
HIGHscipy/ndimage/_filters.py2128 behavior in the presence of NaNs is undefined, and memory consumption scales withSTRING
HIGHscipy/optimize/_nnls.py10 Solve ``argmin_x || Ax - b ||_2^2`` for ``x>=0``.STRING
HIGHscipy/interpolate/_ndbspline.py493 ``min_c || W @ (A @ c - y) ||_2``,STRING
HIGHscipy/interpolate/_fitpack_repro.py634 minimize || W^{1/2} (Y - B c) ||^2 + s * c^T @ R @ cSTRING
HIGHscipy/sparse/_data.py542 is undefined, so the index ``0`` is returned for that row/column.CODE
HIGHscipy/sparse/_data.py574 is undefined, so the index ``0`` is returned for that row/column.CODE
HIGHscipy/sparse/csgraph/__init__.py142accomplished over either G[i, j] or G[j, i]. If both edges are not null,CODE
HIGH⚡scipy/stats/_binned_statistic.py664 if np.iscomplexobj(null):CODE
HIGH⚡scipy/stats/_binned_statistic.py666 result.fill(null)CODE
HIGHscipy/stats/_mgc.py235 statistic, under the null, at least as extreme as the observed testCODE
HIGHscipy/stats/_stats_py.py3010 NaN (undefined). Non-positive observations will also produce NaNs in theCODE
HIGHscipy/stats/_stats_py.py6405 # If df is undefined, variances are zero (assumes n1 > 0 & n2 > 0).STRING
HIGHscipy/stats/_resampling.py2068 >>> unique = np.unique(null)CODE
HIGHscipy/stats/_resampling.py2081 >>> incorrect_pvalue = np.count_nonzero(null >= r) / len(null)CODE
HIGHscipy/stats/_resampling.py2089 >>> correct_pvalue = np.count_nonzero(null >= r - 1e-14) / len(null)CODE
HIGHscipy/stats/_mstats_basic.py1742 # If df is undefined, variances are zero.STRING
HIGHscipy/stats/_distribution_infrastructure.py1790 if _isnull(tol):STRING
HIGHscipy/stats/_distribution_infrastructure.py2043 rtol = None if _isnull(self.tol) else self.tolSTRING
HIGHscipy/stats/_distribution_infrastructure.py2051 rtol = None if _isnull(self.tol) else self.tolSTRING
HIGHscipy/stats/_distribution_infrastructure.py2084 xrtol = None if _isnull(self.tol) else self.tolSTRING
HIGH⚡scipy/stats/tests/test_multivariate.py3425 # distribution, so a low p-value represents rejecting the null, i.e.COMMENT
Verbosity Indicators17 hits · 30 pts
SeverityFileLineSnippetContext
LOWscipy/integrate/src/lsoda.c947 // Step 1: Initialize based on jstartCOMMENT
LOWscipy/integrate/src/lsoda.c1005 // Step 4: Handle corrector resultsCOMMENT
LOW⚡…x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c68 // Step 2: Determine the interval of valid decimal representations.COMMENT
LOW⚡…x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c75 // Step 3: Convert to a decimal power base using 64-bit arithmetic.COMMENT
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c154 // Step 4: Find the shortest decimal representation in the interval of valid representations.COMMENT
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c231 // Step 5: Print the decimal representation.COMMENT
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c309 // Step 1: Decode the floating-point number, and unify normalized and subnormal cases.COMMENT
LOW⚡…x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c109 // Step 2: Determine the interval of valid decimal representations.COMMENT
LOW⚡…x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c117 // Step 3: Convert to a decimal power base using 128-bit arithmetic.COMMENT
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c205 // Step 4: Find the shortest decimal representation in the interval of valid representations.COMMENT
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c315 // Step 5: Print the decimal representation.COMMENT
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c455 // Step 1: Decode the floating-point number, and unify normalized and subnormal cases.COMMENT
LOWscipy/_lib/_array_api.py602 The purpose of this function is to be used for input-output device propagation.STRING
LOW⚡scipy/sparse/linalg/_propack/PROPACK/src/common.c267 // Step 4: Store the interval [left_edge, right_edge]COMMENT
LOW⚡scipy/sparse/linalg/_propack/PROPACK/src/common.c272 // Step 5: Move past this interval for the next searchCOMMENT
LOW⚡scipy/sparse/linalg/_propack/PROPACK/src/common.c561 // Step 4: Store the interval [left_edge, right_edge]COMMENT
LOW⚡scipy/sparse/linalg/_propack/PROPACK/src/common.c566 // Step 5: Move past this interval for the next searchCOMMENT
Structural Annotation Overuse16 hits · 30 pts
SeverityFileLineSnippetContext
LOWscipy/integrate/src/lsoda.c947 // Step 1: Initialize based on jstartCOMMENT
LOWscipy/integrate/src/lsoda.c1005 // Step 4: Handle corrector resultsCOMMENT
LOW⚡…x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c68 // Step 2: Determine the interval of valid decimal representations.COMMENT
LOW⚡…x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c75 // Step 3: Convert to a decimal power base using 64-bit arithmetic.COMMENT
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c154 // Step 4: Find the shortest decimal representation in the interval of valid representations.COMMENT
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c231 // Step 5: Print the decimal representation.COMMENT
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c309 // Step 1: Decode the floating-point number, and unify normalized and subnormal cases.COMMENT
LOW⚡…x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c109 // Step 2: Determine the interval of valid decimal representations.COMMENT
LOW⚡…x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c117 // Step 3: Convert to a decimal power base using 128-bit arithmetic.COMMENT
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c205 // Step 4: Find the shortest decimal representation in the interval of valid representations.COMMENT
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c315 // Step 5: Print the decimal representation.COMMENT
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c455 // Step 1: Decode the floating-point number, and unify normalized and subnormal cases.COMMENT
LOW⚡scipy/sparse/linalg/_propack/PROPACK/src/common.c267 // Step 4: Store the interval [left_edge, right_edge]COMMENT
LOW⚡scipy/sparse/linalg/_propack/PROPACK/src/common.c272 // Step 5: Move past this interval for the next searchCOMMENT
LOW⚡scipy/sparse/linalg/_propack/PROPACK/src/common.c561 // Step 4: Store the interval [left_edge, right_edge]COMMENT
LOW⚡scipy/sparse/linalg/_propack/PROPACK/src/common.c566 // Step 5: Move past this interval for the next searchCOMMENT
AI Response Leakage4 hits · 30 pts
SeverityFileLineSnippetContext
HIGHscipy/sparse/linalg/_isolve/minres.py299 # In this version we look at the diagonals of R in theCOMMENT
HIGHscipy/stats/tests/test_stats.py1466 # Simple test - Based on the above ``test_spearmanr_vs_r``COMMENT
HIGHscipy/stats/tests/test_stats.py5934 # whole number. In this example, the paper notes that 1 value isCOMMENT
HIGHscipy/stats/tests/test_hypotests.py449 # ( In this implementation, SF(U) includes PMF(U) )COMMENT
Slop Phrases5 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/codeql.yml53 # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize howCOMMENT
MEDIUMscipy/linalg/tests/test_solvers.py876 # Feel free to adjust this to test fewer dtypes or random selections rather thanCOMMENT
LOWscipy/optimize/_differentialevolution.py1133 # make sure you're using a float arraySTRING
LOWscipy/io/matlab/_mio5_params.py5If you make changes in this file, don't forget to change mio5_utils.pyxSTRING
LOWscipy/special/tests/test_basic.py3314 # make sure to test both float and complex values; a differentCOMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscipy/optimize/tests/test__remove_redundancy.py5# TODO: add tests for:COMMENT