Repository Analysis

scipy/scipy

SciPy library main repository

6.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of scipy/scipy, a Python project with 14,962 GitHub stars. SynthScan v2.0 examined 952,277 lines of code across 1787 source files, recording 5647 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 6.5 places this repository in the Low AI signal band.

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

6.5
Adjusted Score
6.5
Raw Score
100%
Time Factor
2026-08-28
Last Push
15.0K
Stars
Python
Language
952.3K
Lines of Code
1.8K
Files
5.6K
Pattern Hits
2026-08-29
Scan Date
0.03
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 0HIGH 53MEDIUM 391LOW 5203

Directory Score Breakdown

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

Pattern Findings

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

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers2505 hits · 2324 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.py209 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
LOWbenchmarks/benchmarks/spatial.py275 def time_count_neighbors_deep(self, mn1n2, Nr):CODE
LOWbenchmarks/benchmarks/spatial.py282 def time_count_neighbors_shallow(self, mn1n2, Nr):CODE
LOWbenchmarks/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.py585def _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.py524def _backends_kwargs_from_request(request, skip_or_xfail):CODE
LOWscipy/conftest.py617def skip_or_xfail_xp_backends(request: pytest.FixtureRequest,CODE
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3425def _append_singleton_leaf_node(Z, p, n, level, lvs, ivl, leaf_label_func,STRING
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3451def _append_nonsingleton_leaf_node(Z, p, n, level, lvs, ivl, leaf_label_func,STRING
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3469def _append_contraction_marks(Z, iv, i, n, contraction_marks, xp):STRING
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3476def _append_contraction_marks_sub(Z, iv, i, n, contraction_marks, xp):STRING
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3485def _dendrogram_calculate_info(Z, p, truncate_mode,STRING
LOWscipy/cluster/hierarchy/tests/test_disjoint_set.py98def test_linear_union_sequence(n, direction):CODE
LOWscipy/cluster/hierarchy/tests/test_hierarchy.py88 def test_linkage_non_finite_elements_in_distance_matrix(self, xp):CODE
LOWscipy/cluster/hierarchy/tests/test_hierarchy.py94 def test_linkage_empty_distance_matrix(self, xp):CODE
2445 more matches not shown…
Over-Commented Block903 hits · 732 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/wheels.yml121 elseCOMMENT
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.h121using detail_simd::simd_exists;COMMENT
LOWsubprojects/duccfft/ducc0/infra/simd.h141#elif defined(__GNUC__)COMMENT
LOWsubprojects/duccfft/ducc0/infra/simd.h161#if defined(__ARM_FEATURE_SVE) && defined(__ARM_FEATURE_SVE_BITS)COMMENT
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
843 more matches not shown…
Decorative Section Separators242 hits · 684 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
MEDIUMdoc/source/conf.py275# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py277# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py282# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py284# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py313# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py315# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py323# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py325# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py31# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py33# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py195# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py197# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py296# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py298# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py340#------------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py342#------------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py387# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py389# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py418#------------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py420#------------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py432# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py434# -----------------------------------------------------------------------------STRING
182 more matches not shown…
Unused Imports593 hits · 537 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
533 more matches not shown…
Deep Nesting489 hits · 449 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.py542CODE
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.py524CODE
LOWscipy/conftest.py766CODE
LOWscipy/cluster/hierarchy/_hierarchy_impl.py2427CODE
LOWscipy/cluster/hierarchy/_hierarchy_impl.py2822CODE
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3485CODE
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
429 more matches not shown…
Self-Referential Comments107 hits · 289 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.py561 # 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.py3503 # Create an array with boundary offset 4COMMENT
MEDIUMscipy/linalg/tests/test_decomp.py3518 # Create an array with boundary offset 4COMMENT
MEDIUMscipy/linalg/tests/test_decomp.py3531 # Create an array with boundary offset 8COMMENT
MEDIUMscipy/linalg/tests/test_lapack.py1259 # Create the RFP array manually (n is even!)COMMENT
MEDIUMscipy/linalg/tests/test_lapack.py1311 # Create the TP array manuallyCOMMENT
MEDIUMscipy/linalg/tests/test_procrustes.py91 # Create a perturbed input matrix.COMMENT
MEDIUMscipy/optimize/_shgo.py768 # Initialize return objectCOMMENT
MEDIUMscipy/optimize/_basinhopping.py43 """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.py540 """This class implements the differential evolution solverSTRING
MEDIUMscipy/optimize/_differentialevolution.py1054 # Create an array for population of candidate solutions.STRING
MEDIUMscipy/optimize/_differentialevolution.py1087 # 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
MEDIUMscipy/special/_generate_pyx.py363# This file is automatically generated by _generate_pyx.py.COMMENT
MEDIUMscipy/special/_generate_pyx.py385# This file is automatically generated by _generate_pyx.py.COMMENT
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.py403 # The below function evaluation will trigger a deprecation warningCOMMENT
MEDIUMscipy/special/tests/test_cdflib.py776 # 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.py537 # Define the array of data consisting of the entries to be added.COMMENT
MEDIUMscipy/sparse/_coo.py1527 # 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
MEDIUMscipy/sparse/csgraph/tests/test_spanning_tree.py11 # Create a graph with two connected components.COMMENT
MEDIUMscipy/sparse/csgraph/tests/test_spanning_tree.py19 # Create the expected spanning tree.COMMENT
MEDIUMscipy/sparse/csgraph/tests/test_spanning_tree.py46 # Create a random graph.COMMENT
47 more matches not shown…
Modern Structural Boilerplate243 hits · 243 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.py14__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.py8__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.py916__all__ = ['get_lapack_funcs']CODE
LOWscipy/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/_shgo.py19__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.py11__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__.py450__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
LOWscipy/optimize/_dual_annealing.py17__all__ = ['dual_annealing']CODE
183 more matches not shown…
AI Structural Patterns224 hits · 216 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.py3033CODE
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3485CODE
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/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.py22CODE
LOWscipy/optimize/_shgo.py489CODE
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.py351CODE
LOWscipy/optimize/_linprog.py178CODE
LOWscipy/optimize/_slsqp_py.py71CODE
LOWscipy/optimize/_slsqp_py.py220CODE
LOWscipy/optimize/_elementwise.py514CODE
LOWscipy/optimize/_elementwise.py704CODE
LOWscipy/optimize/_linesearch.py39CODE
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.py480 # 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.py846 # Check if the data matrices q, r are (sufficiently) hermitianSTRING
LOWscipy/linalg/_solvers.py857 # Check if the generalized case is required with omitted argumentsSTRING
LOWscipy/linalg/tests/test_decomp.py2579 # Check if the result is actually correct & check overwrite behaviorCOMMENT
LOWscipy/optimize/_shgo.py539 # 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.py439 # 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
LOWscipy/optimize/tests/test_trustregion_exact.py92 # Check if the leading submatrix is singular.COMMENT
LOWscipy/optimize/tests/test_trustregion_exact.py95 # Check if `v` fulfil the specified propertiesCOMMENT
LOWscipy/optimize/tests/test_trustregion_exact.py119 # Check if the leading submatrix is singular.COMMENT
LOWscipy/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
LOWscipy/optimize/tests/test_trustregion_exact.py356 # Check if it respect k_trfCOMMENT
LOWscipy/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.py277 # 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
LOWscipy/io/tests/test_netcdf.py438 # Open the file in append mode and add dataCOMMENT
LOWscipy/io/tests/test_netcdf.py444 # Read the file and check that append workedCOMMENT
LOWscipy/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.toml594# 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.py545 # 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.py70 # 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
LOWscipy/_lib/_util.py949 # 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.py262 # set in JAX. One cannot just use xp_promote for the input dtypes becauseCOMMENT
LOWscipy/special/_support_alternative_backends.py270 # 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.py419 # For slinear or zero order spline, we just pass nans through.COMMENT
LOWscipy/sparse/_coo.py142 # 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
LOWscipy/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.py10718 # 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.py1558 # 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.py3690 # Without this check, this function would just return theCOMMENT
LOWscipy/stats/_continuous_distns.py6301 # Without this check, this function would just return theSTRING
LOWscipy/stats/_continuous_distns.py8542 # to handle inside pearson3._pdf) or negative. So just return TrueSTRING
LOWscipy/stats/_distribution_infrastructure.py101# mind NaNs; they just return NaN. The behavior "If x_i is NaN, the resultCOMMENT
MEDIUMscipy/stats/_distribution_infrastructure.py1114 # cases. That would be a bit more robust, but it would also be quiteSTRING
MEDIUMscipy/stats/_distribution_infrastructure.py1931 # raises a distribution-specific error message to facilitateSTRING
LOWscipy/stats/_distribution_infrastructure.py2562 # Can't just call `out = _cdf2_subtraction(self, x, y, **params)` hereSTRING
MEDIUMscipy/stats/tests/test_mstats_basic.py1098 # 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.py2004 # because games_howell leverage _tukey_hsd_iv()STRING
LOWscipy/stats/tests/test_axis_nan_policy.py263# For some functions, nan_policy='propagate' should not just return NaNsCOMMENT
MEDIUMscipy/stats/tests/test_correlation.py394 # method is robust to outliers: breakdown point of 50%COMMENT
LOWscipy/stats/tests/test_distributions.py5061 # 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 Wrapping90 hits · 93 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.py580 except Exception:CODE
LOWbenchmarks/benchmarks/common.py432 except Exception:CODE
MEDIUMbenchmarks/benchmarks/common.py257def is_xslow():CODE
LOWbenchmarks/benchmarks/sparse.py289 except Exception:CODE
LOWdoc/source/conf.py483 except Exception:STRING
LOWdoc/source/conf.py488 except Exception:STRING
LOWdoc/source/conf.py495 except Exception:STRING
LOWdoc/source/conf.py468 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/cluster/hierarchy/tests/test_hierarchy.py78except Exception:CODE
LOWscipy/ndimage/_morphology.py2373 except Exception as e:CODE
LOWscipy/linalg/tests/test_lapack.py2551 except Exception as e:CODE
LOWscipy/linalg/tests/test_lapack.py2566 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.py109 except Exception as e:CODE
LOWscipy/sparse/_bsr.py127 except Exception as e:CODE
LOWscipy/sparse/_dia.py55 except Exception as e:CODE
LOWscipy/sparse/_dia.py74 except Exception as e:CODE
LOWscipy/sparse/_dok.py48 except Exception as e:CODE
LOWscipy/sparse/linalg/_interface.py454 except Exception as e:CODE
30 more matches not shown…
Cross-Language Confusion20 hits · 89 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
HIGHscipy/stats/_binned_statistic.py664 if np.iscomplexobj(null):CODE
HIGHscipy/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.py1739 # If df is undefined, variances are zero.STRING
HIGHscipy/stats/_distribution_infrastructure.py1755 if _isnull(tol):STRING
HIGHscipy/stats/_distribution_infrastructure.py2003 rtol = None if _isnull(self.tol) else self.tolSTRING
HIGHscipy/stats/_distribution_infrastructure.py2032 xrtol = None if _isnull(self.tol) else self.tolSTRING
HIGHscipy/stats/tests/test_multivariate.py3415 # 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.py597 The purpose of this function is to be used for input-output device propagation.STRING
LOWscipy/sparse/linalg/_propack/PROPACK/src/common.c267 // Step 4: Store the interval [left_edge, right_edge]COMMENT
LOWscipy/sparse/linalg/_propack/PROPACK/src/common.c272 // Step 5: Move past this interval for the next searchCOMMENT
LOWscipy/sparse/linalg/_propack/PROPACK/src/common.c561 // Step 4: Store the interval [left_edge, right_edge]COMMENT
LOWscipy/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
LOWscipy/sparse/linalg/_propack/PROPACK/src/common.c267 // Step 4: Store the interval [left_edge, right_edge]COMMENT
LOWscipy/sparse/linalg/_propack/PROPACK/src/common.c272 // Step 5: Move past this interval for the next searchCOMMENT
LOWscipy/sparse/linalg/_propack/PROPACK/src/common.c561 // Step 4: Store the interval [left_edge, right_edge]COMMENT
LOWscipy/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.py1465 # Simple test - Based on the above ``test_spearmanr_vs_r``COMMENT
HIGHscipy/stats/tests/test_stats.py5953 # 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.py837 # Feel free to adjust this to test fewer dtypes or random selections rather thanCOMMENT
LOWscipy/optimize/_differentialevolution.py1132 # 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.py3299 # 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