Repository Analysis

scipy/scipy

SciPy library main repository

7.0 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of scipy/scipy, a Python project with 14,816 GitHub stars. SynthScan v2.0 examined 927,950 lines of code across 1866 source files, recording 5810 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 7.0 places this repository in the Low AI signal band.

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

7.0
Adjusted Score
7.0
Raw Score
100%
Time Factor
2026-07-13
Last Push
14.8K
Stars
Python
Language
928.0K
Lines of Code
1.9K
Files
5.8K
Pattern Hits
2026-07-14
Scan Date
0.02
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 42MEDIUM 492LOW 5276

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 5810 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 Identifiers2422 hits · 2261 pts
SeverityFileLineSnippetContext
LOW.spin/cmds.py1077def _count_physical_cores_linux():CODE
LOW.spin/cmds.py1121def _count_physical_cores_darwin():CODE
LOW.spin/cmds.py1131def _count_physical_cores_freebsd():CODE
LOWtools/check_xp_untested.py49 def pytest_collection_modifyitems(self, session, config, items):CODE
LOWtools/check_python_h_first.py66def check_python_h_included_first(name_to_check: str) -> int:CODE
LOWtools/generate_f2pymod.py109def find_and_remove_repl_patterns(astr):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.py60 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.py741 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/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.py374def _backends_kwargs_from_request(request, skip_or_xfail):CODE
LOWscipy/conftest.py459def skip_or_xfail_xp_backends(request: pytest.FixtureRequest,CODE
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3420def _append_singleton_leaf_node(Z, p, n, level, lvs, ivl, leaf_label_func,STRING
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3446def _append_nonsingleton_leaf_node(Z, p, n, level, lvs, ivl, leaf_label_func,STRING
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3464def _append_contraction_marks(Z, iv, i, n, contraction_marks, xp):STRING
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3471def _append_contraction_marks_sub(Z, iv, i, n, contraction_marks, xp):STRING
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3480def _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.py87 def test_linkage_non_finite_elements_in_distance_matrix(self, xp):CODE
LOWscipy/cluster/hierarchy/tests/test_hierarchy.py93 def test_linkage_empty_distance_matrix(self, xp):CODE
LOWscipy/cluster/hierarchy/tests/test_hierarchy.py260 def test_mlab_linkage_conversion_empty(self, xp):CODE
2362 more matches not shown…
Over-Commented Block898 hits · 730 pts
SeverityFileLineSnippetContext
LOWpyproject.toml1# Note that in maintenance branches, all build dependencies shouldCOMMENT
LOWtools/check_test_name.py121 for _node in node.body:COMMENT
LOWtools/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 fiCOMMENT
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
LOW…pyprima/pyprima/pyprima/src/pyprima/cobyla/geometry.py41 assert all(np.max(abs(sim[:, :num_vars]), axis=0) > 0)COMMENT
838 more matches not shown…
Decorative Section Separators238 hits · 672 pts
SeverityFileLineSnippetContext
MEDIUMtools/write_release_and_log.py40# ----------------------------COMMENT
MEDIUMtools/write_release_and_log.py42# ----------------------------COMMENT
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/authors.py174#------------------------------------------------------------------------------STRING
MEDIUMtools/authors.py176#------------------------------------------------------------------------------STRING
MEDIUMtools/authors.py233#------------------------------------------------------------------------------STRING
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.py279# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py281# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py286# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py288# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py317# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py319# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py327# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py329# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py29# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py31# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py199# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py201# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py300# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py302# -----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py344#------------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py346#------------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py391# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py393# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py422#------------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py424#------------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py436# -----------------------------------------------------------------------------STRING
MEDIUMdoc/source/conf.py438# -----------------------------------------------------------------------------STRING
MEDIUM…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py80 # ==================COMMENT
MEDIUM…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py82 # ==================COMMENT
MEDIUM…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py104 # ================COMMENT
MEDIUM…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py106 # ================COMMENT
178 more matches not shown…
Self-Referential Comments213 hits · 608 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.py562 # 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.py1369 # Create a list full of None's to store the node objectsCOMMENT
MEDIUMscipy/cluster/hierarchy/_hierarchy_impl.py1372 # Create the nodes corresponding to the n original objects.COMMENT
MEDIUMscipy/ndimage/interpolation.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/ndimage/morphology.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/ndimage/fourier.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/ndimage/filters.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/ndimage/measurements.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/linalg/decomp_qr.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/linalg/misc.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/linalg/decomp_cholesky.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/linalg/decomp_lu.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/linalg/decomp_svd.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/linalg/_matfuncs_sqrtm.py73 # Define the index range covered by each block.COMMENT
MEDIUMscipy/linalg/matfuncs.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/linalg/basic.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/linalg/decomp.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/linalg/special_matrices.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/linalg/decomp_schur.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/linalg/_special_matrices.py257 # This function is a slightly modified version of theSTRING
MEDIUMscipy/linalg/tests/test_decomp.py3119 # Create an array with boundary offset 4COMMENT
MEDIUMscipy/linalg/tests/test_decomp.py3134 # Create an array with boundary offset 4COMMENT
MEDIUMscipy/linalg/tests/test_decomp.py3147 # Create an array with boundary offset 8COMMENT
MEDIUMscipy/linalg/tests/test_lapack.py1264 # Create the RFP array manually (n is even!)COMMENT
MEDIUMscipy/linalg/tests/test_lapack.py1316 # Create the TP array manuallyCOMMENT
MEDIUMscipy/linalg/tests/test_procrustes.py91 # Create a perturbed input matrix.COMMENT
MEDIUMscipy/optimize/tnc.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/optimize/optimize.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/optimize/linesearch.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/optimize/nonlin.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/optimize/lbfgsb.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/optimize/zeros.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/optimize/_shgo.py768 # Initialize return objectCOMMENT
MEDIUMscipy/optimize/slsqp.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/optimize/minpack.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
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/minpack2.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/optimize/cobyla.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/optimize/moduleTNC.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.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/integrate/quadpack.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/integrate/vode.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/integrate/lsoda.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
MEDIUMscipy/integrate/dop.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.COMMENT
153 more matches not shown…
Unused Imports669 hits · 591 pts
SeverityFileLineSnippetContext
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.py35CODE
LOWscipy/conftest.py77CODE
LOWscipy/conftest.py84CODE
LOWscipy/__init__.py55CODE
LOWscipy/__init__.py47CODE
LOWscipy/__init__.py82CODE
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
LOWscipy/cluster/hierarchy/__init__.py100CODE
609 more matches not shown…
Deep Nesting491 hits · 450 pts
SeverityFileLineSnippetContext
LOW.spin/cmds.py64CODE
LOW.spin/cmds.py188CODE
LOW.spin/cmds.py1140CODE
LOWtools/check_python_h_first.py66CODE
LOWtools/refguide_check.py207CODE
LOWtools/refguide_check.py495CODE
LOWtools/numpydoc_lint.py616CODE
LOWtools/refguide_summaries.py43CODE
LOWtools/check_unicode.py26CODE
LOWtools/check_test_name.py96CODE
LOWtools/generate_f2pymod.py68CODE
LOWtools/generate_f2pymod.py140CODE
LOWtools/generate_f2pymod.py224CODE
LOWbenchmarks/benchmarks/optimize.py543CODE
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.py111CODE
LOWscipy/conftest.py374CODE
LOWscipy/conftest.py596CODE
LOWscipy/cluster/hierarchy/_hierarchy_impl.py2423CODE
LOWscipy/cluster/hierarchy/_hierarchy_impl.py2817CODE
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3480CODE
LOWscipy/cluster/hierarchy/_hierarchy_impl.py1118CODE
LOWscipy/ndimage/_ni_support.py37CODE
LOWscipy/ndimage/_ni_support.py78CODE
LOWscipy/ndimage/_ni_support.py110CODE
LOWscipy/ndimage/_support_alternative_backends.py37CODE
LOWscipy/ndimage/_support_alternative_backends.py38CODE
LOWscipy/ndimage/_support_alternative_backends.py40CODE
LOWscipy/ndimage/_filters.py1928CODE
LOWscipy/ndimage/_morphology.py216CODE
LOWscipy/ndimage/_morphology.py1292CODE
LOWscipy/ndimage/_morphology.py1987CODE
LOWscipy/linalg/_matfuncs_inv_ssq.py311CODE
LOWscipy/linalg/_matfuncs_inv_ssq.py516CODE
431 more matches not shown…
Modern Structural Boilerplate330 hits · 330 pts
SeverityFileLineSnippetContext
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.py55__all__ = ['ClusterNode', 'ClusterWarning', 'DisjointSet',CODE
LOWscipy/cluster/vq/_vq_impl.py14__all__ = ['ClusterError', 'kmeans', 'kmeans2', 'py_vq', 'vq', 'whiten']CODE
LOWscipy/cluster/vq/__init__.py77__all__ = ["ClusterError", "kmeans", "kmeans2", "vq", "whiten"]CODE
LOWscipy/ndimage/interpolation.py8__all__ = [ # noqa: F822CODE
LOWscipy/ndimage/_measurements.py37__all__ = ['label', 'find_objects', 'labeled_comprehension', 'sum', 'mean',CODE
LOWscipy/ndimage/_ni_docstrings.py6__all__ = ['docfiller']CODE
LOWscipy/ndimage/morphology.py8__all__ = [ # noqa: F822CODE
LOWscipy/ndimage/fourier.py8__all__ = [ # noqa: F822CODE
LOWscipy/ndimage/_fourier.py36__all__ = ['fourier_gaussian', 'fourier_uniform', 'fourier_ellipsoid',CODE
LOWscipy/ndimage/_filters.py45__all__ = ['correlate1d', 'convolve1d', 'gaussian_filter1d', 'gaussian_filter',CODE
LOWscipy/ndimage/_morphology.py39__all__ = ['iterate_structure', 'generate_binary_structure', 'binary_erosion',CODE
LOWscipy/ndimage/filters.py8__all__ = [ # noqa: F822CODE
LOWscipy/ndimage/measurements.py8__all__ = [ # noqa: F822CODE
LOWscipy/ndimage/_interpolation.py44__all__ = ['spline_filter1d', 'spline_filter', 'geometric_transform',CODE
LOWscipy/linalg/decomp_qr.py8__all__ = [ # noqa: F822CODE
LOWscipy/linalg/misc.py8__all__ = [ # noqa: F822CODE
LOWscipy/linalg/_sketches.py11__all__ = ['clarkson_woodruff_transform']CODE
LOWscipy/linalg/decomp_cholesky.py8__all__ = [ # noqa: F822CODE
LOWscipy/linalg/_decomp_cholesky.py14__all__ = ['cholesky', 'cho_factor', 'cho_solve', 'cholesky_banded',CODE
LOWscipy/linalg/decomp_lu.py8__all__ = [ # noqa: F822CODE
LOWscipy/linalg/decomp_svd.py8__all__ = [ # noqa: F822CODE
LOWscipy/linalg/_procrustes.py11__all__ = ['orthogonal_procrustes']CODE
LOWscipy/linalg/_matfuncs_sqrtm.py7__all__ = []CODE
LOWscipy/linalg/matfuncs.py8__all__ = [ # noqa: F822CODE
LOWscipy/linalg/_decomp_qr.py15__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__.py229__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.py12__all__ = ['schur', 'rsf2csf']CODE
LOWscipy/linalg/_solvers.py25__all__ = ['solve_sylvester',CODE
LOWscipy/linalg/basic.py8__all__ = [ # noqa: F822CODE
LOWscipy/linalg/_decomp_polar.py6__all__ = ['polar']CODE
LOWscipy/linalg/decomp.py8__all__ = [ # noqa: F822CODE
LOWscipy/linalg/interpolative.py363__all__ = [STRING
LOWscipy/linalg/blas.py233__all__ = ['get_blas_funcs', 'find_best_blas_type']CODE
LOWscipy/linalg/special_matrices.py7__all__ = [ # noqa: F822CODE
LOWscipy/linalg/_decomp_ldl.py12__all__ = ['ldl']CODE
LOWscipy/linalg/_decomp_cossin.py8__all__ = ['cossin']CODE
LOWscipy/linalg/decomp_schur.py8__all__ = [ # noqa: F822CODE
LOWscipy/linalg/_decomp_qz.py10__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.py917__all__ = ['get_lapack_funcs']CODE
LOWscipy/linalg/_special_matrices.py10__all__ = ['toeplitz', 'circulant', 'hankel',CODE
LOWscipy/optimize/tnc.py8__all__ = [ # noqa: F822CODE
LOWscipy/optimize/optimize.py8__all__ = [ # noqa: F822CODE
LOWscipy/optimize/linesearch.py8__all__ = ["line_search"] # noqa: F822CODE
LOWscipy/optimize/nonlin.py8__all__ = [ # noqa: F822CODE
LOWscipy/optimize/_root.py8__all__ = ['root']CODE
LOWscipy/optimize/lbfgsb.py8__all__ = [ # noqa: F822CODE
LOWscipy/optimize/zeros.py8__all__ = [ # noqa: F822CODE
LOWscipy/optimize/_cobyla_py.py20__all__ = ['fmin_cobyla']CODE
LOWscipy/optimize/_shgo.py19__all__ = ['shgo']CODE
270 more matches not shown…
AI Structural Patterns223 hits · 215 pts
SeverityFileLineSnippetContext
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.py3028CODE
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3480CODE
LOWscipy/ndimage/_filters.py206CODE
LOWscipy/ndimage/_filters.py1928CODE
LOWscipy/ndimage/_filters.py2298CODE
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.py312CODE
LOWscipy/linalg/_decomp.py971CODE
LOWscipy/linalg/_generate_pyx.py737CODE
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.py577CODE
LOWscipy/optimize/_optimize.py701CODE
LOWscipy/optimize/_optimize.py1201CODE
LOWscipy/optimize/_optimize.py1345CODE
LOWscipy/optimize/_optimize.py1536CODE
LOWscipy/optimize/_optimize.py1719CODE
LOWscipy/optimize/_optimize.py1881CODE
LOWscipy/optimize/_optimize.py2001CODE
LOWscipy/optimize/_optimize.py2436CODE
LOWscipy/optimize/_optimize.py3271CODE
LOWscipy/optimize/_optimize.py3413CODE
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.py54CODE
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.py650CODE
LOWscipy/optimize/_linesearch.py39CODE
LOWscipy/optimize/_linesearch.py110CODE
LOWscipy/optimize/_linesearch.py204CODE
163 more matches not shown…
Redundant / Tautological Comments99 hits · 146 pts
SeverityFileLineSnippetContext
LOWtools/check_unicode.py42 # Read the file as bytes, and check for any bytes greater than 127.COMMENT
LOWtools/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.py337 # Check if ``uses_xp_capabilities`` mark is present.COMMENT
LOWscipy/linalg/_decomp.py610 # Check if we had a successful exitSTRING
LOWscipy/linalg/_generate_pyx.py99 # Check if scipy's cython_blas exports blas_int (ILP64 support).STRING
LOWscipy/linalg/_generate_pyx.py198 # Check if scipy's cython_lapack exports blas_int (ILP64 support).STRING
LOWscipy/linalg/_solvers.py844 # Check if the data matrices q, r are (sufficiently) hermitianSTRING
LOWscipy/linalg/_solvers.py855 # Check if the generalized case is required with omitted argumentsSTRING
LOWscipy/linalg/tests/test_decomp.py2242 # 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.py51 # Verify if check_grad is able to estimate the derivative of theCOMMENT
LOWscipy/optimize/tests/test_optimize.py75 # Check if the epsilon parameter is being considered.COMMENT
LOWscipy/optimize/tests/test__dual_annealing.py337 # 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
39 more matches not shown…
AI Slop Vocabulary59 hits · 107 pts
SeverityFileLineSnippetContext
LOWpixi.toml565# Note: we need BLAS support in Meson merged before we can simply use `-Dblas=mkl`COMMENT
LOWtools/gh_lists.py83 # just use the first 80 characters, with ellipses.COMMENT
LOWbenchmarks/benchmarks/optimize.py546 # if so, then just return the ret_valueCOMMENT
LOWbenchmarks/benchmarks/common.py316 # Unknown, just return whatever is here.COMMENT
LOW.github/ccache/action.yml24 # 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
MEDIUMscipy/linalg/tests/test_decomp_lu.py190 # Those matrices are more robust to detect problems in permutationCOMMENT
MEDIUMscipy/linalg/src/_matfuncs_expm.c1097 // We utilize the unused powers of Am as scratch memory depending on m value.COMMENT
MEDIUMscipy/linalg/src/_matfuncs_expm.c1312 // We utilize the unused powers of Am as scratch memory depending on m value.COMMENT
MEDIUMscipy/linalg/src/_matfuncs_expm.c1530 // We utilize the unused powers of Am as scratch memory depending on m value.COMMENT
MEDIUMscipy/linalg/src/_matfuncs_expm.c1866 // We utilize the unused powers of Am as scratch memory depending on m value.COMMENT
LOWscipy/optimize/_optimize.py3210 # If this is the case, then we can just return (0, 0)STRING
MEDIUMscipy/optimize/_bracket.py290 # 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.py902 # 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.py200 # set in JAX. One cannot just use xp_promote for the input dtypes becauseCOMMENT
LOWscipy/special/_support_alternative_backends.py207 # 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.py239 https://www.mathworks.com/matlabcentral/fileexchange/13490-adaptive-robust-numerical-differentiationSTRING
LOWscipy/interpolate/_rbfinterp.py474 # If this number is below 1e6 we just use 1e6STRING
LOWscipy/interpolate/_interpolate.py418 # 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
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.py2207 # sufficiently smooth functions, and more robust than relying on anSTRING
MEDIUMscipy/stats/_stats_py.py9626 # To facilitate comparison with [1], we'll use variable names thatSTRING
MEDIUMscipy/stats/_stats_py.py10674 # 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.py470 # Without this check, this function would just return theCOMMENT
LOWscipy/stats/_continuous_distns.py3675 # Without this check, this function would just return theCOMMENT
LOWscipy/stats/_continuous_distns.py6286 # Without this check, this function would just return theSTRING
LOWscipy/stats/_continuous_distns.py8527 # 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.py1115 # cases. That would be a bit more robust, but it would also be quiteSTRING
MEDIUMscipy/stats/_distribution_infrastructure.py1932 # raises a distribution-specific error message to facilitateSTRING
MEDIUMscipy/stats/tests/test_mstats_basic.py1098 # method is robust to outliers: brekdown point of 50%COMMENT
MEDIUMscipy/stats/tests/test_continuous_basic.py143 # 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.py262# 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.py5045 # this try-except wrapper and just call the function.COMMENT
MEDIUMscipy/stats/tests/data/_mvt.py8 # Defined to facilitate comparison between translation and sourceCOMMENT
MEDIUMscipy/stats/tests/data/_mvt.py14 # Defined to facilitate comparison between translation and sourceCOMMENT
Cross-File Repetition19 hits · 95 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 v1.20. that means the default return type will be a sparse arSTRING
HIGHscipy/io/_fast_matrix_market/__init__.py0the default value for `spmatrix` is changing to `false` in v1.20. that means the default return type will be a sparse arSTRING
HIGHscipy/io/_harwell_boeing/hb.py0the default value for `spmatrix` is changing to `false` in v1.20. that means the default return type will be a sparse arSTRING
HIGHscipy/io/matlab/_mio.py0the default value for `spmatrix` is changing to `false` in v1.20. that means the default return type will be a sparse arSTRING
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
Excessive Try-Catch Wrapping88 hits · 90 pts
SeverityFileLineSnippetContext
LOW.spin/cmds.py1085 except Exception:CODE
LOW.spin/cmds.py1106 except Exception:CODE
LOW.spin/cmds.py1172 except Exception as e:CODE
MEDIUM.spin/cmds.py1077def _count_physical_cores_linux():CODE
MEDIUM.spin/cmds.py1096def _count_physical_cores_win32():CODE
LOWtools/refguide_check.py240 except Exception:CODE
LOWtools/refguide_check.py411 except Exception:CODE
LOWbenchmarks/benchmarks/optimize.py581 except Exception:CODE
LOWbenchmarks/benchmarks/sparse.py285 except Exception:CODE
LOWdoc/source/conf.py484 except Exception:STRING
LOWdoc/source/conf.py489 except Exception:STRING
LOWdoc/source/conf.py496 except Exception:STRING
LOWdoc/source/conf.py472 except Exception:STRING
LOWscipy/conftest.py37except Exception:CODE
LOWscipy/conftest.py78 except Exception:CODE
LOWscipy/conftest.py85 except Exception:CODE
LOWscipy/conftest.py134 except Exception: # observed in gh-14441: (ImportError, AttributeError)CODE
LOWscipy/conftest.py154 except Exception:CODE
LOWscipy/cluster/hierarchy/tests/test_hierarchy.py77except Exception:CODE
LOWscipy/ndimage/_morphology.py2373 except Exception as e:CODE
LOWscipy/linalg/tests/test_lapack.py2562 except Exception as e:CODE
LOWscipy/linalg/tests/test_lapack.py2577 except Exception as e:CODE
LOWscipy/optimize/_linprog_ip.py109 except Exception:CODE
LOWscipy/optimize/_linprog_ip.py146 except Exception:CODE
LOWscipy/optimize/_minimize.py1116 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.py1030 except Exception:STRING
LOWscipy/integrate/_quadrature.py1090 except Exception as e:STRING
LOWscipy/integrate/_quadrature.py1100 except Exception as e:STRING
LOWscipy/_lib/tests/test_array_api.py320 except Exception as e:CODE
LOWscipy/_lib/tests/test_array_api.py362 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.py297 except Exception as e:CODE
LOWscipy/interpolate/_rgi.py302 except Exception:CODE
LOWscipy/interpolate/_cubic.py1039 except Exception as e:CODE
LOWscipy/interpolate/_rbfinterp_xp.py73 except Exception:CODE
LOWscipy/interpolate/_fitpack_impl.py310 except Exception:CODE
LOWscipy/interpolate/_fitpack_impl.py345 except Exception:CODE
LOWscipy/interpolate/_fitpack_impl.py366 except Exception:CODE
LOWscipy/interpolate/_fitpack_impl.py393 except Exception:CODE
LOWscipy/interpolate/_fitpack_impl.py739 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.py53 except Exception as e:CODE
LOWscipy/sparse/_dia.py72 except Exception as e:CODE
LOWscipy/sparse/_dok.py46 except Exception as e:CODE
LOWscipy/sparse/linalg/_interface.py452 except Exception as e:CODE
LOWscipy/sparse/linalg/_eigen/lobpcg/lobpcg.py85 except Exception:CODE
LOWscipy/sparse/linalg/_eigen/lobpcg/lobpcg.py112 except Exception as e:CODE
LOWscipy/sparse/linalg/_eigen/lobpcg/lobpcg.py556 except Exception as e:CODE
LOWscipy/sparse/linalg/_eigen/lobpcg/lobpcg.py576 except Exception as e:CODE
LOWscipy/sparse/linalg/_eigen/lobpcg/lobpcg.py592 except Exception as e:CODE
28 more matches not shown…
Cross-Language Confusion19 hits · 86 pts
SeverityFileLineSnippetContext
HIGHscipy/ndimage/_filters.py2118 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/_fitpack_repro.py626 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.py2999 NaN (undefined). Non-positive observations will also produce NaNs in theCODE
HIGHscipy/stats/_stats_py.py6378 # If df is undefined, variances are zero (assumes n1 > 0 & n2 > 0).STRING
HIGHscipy/stats/_resampling.py2066 >>> unique = np.unique(null)CODE
HIGHscipy/stats/_resampling.py2079 >>> incorrect_pvalue = np.count_nonzero(null >= r) / len(null)CODE
HIGHscipy/stats/_resampling.py2087 >>> 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.py1756 if _isnull(tol):STRING
HIGHscipy/stats/_distribution_infrastructure.py2004 rtol = None if _isnull(self.tol) else self.tolSTRING
HIGHscipy/stats/_distribution_infrastructure.py2033 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 Indicators16 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
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.py1462 # Simple test - Based on the above ``test_spearmanr_vs_r``COMMENT
HIGHscipy/stats/tests/test_stats.py5916 # 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.py2967 # 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