Repository Analysis

scipy/scipy

SciPy library main repository

6.4 Low AI signal View on GitHub
6.4
Adjusted Score
6.4
Raw Score
100%
Time Factor
2026-05-30
Last Push
14,724
Stars
Python
Language
928,366
Lines of Code
1884
Files
5215
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 72MEDIUM 496LOW 4647

Pattern Findings

5215 matches across 13 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers2346 hits · 2181 pts
SeverityFileLineSnippet
LOW.spin/cmds.py1075def _count_physical_cores_linux():
LOW.spin/cmds.py1119def _count_physical_cores_darwin():
LOW.spin/cmds.py1129def _count_physical_cores_freebsd():
LOWtools/check_xp_untested.py49 def pytest_collection_modifyitems(self, session, config, items):
LOWtools/check_python_h_first.py66def check_python_h_included_first(name_to_check: str) -> int:
LOWtools/generate_requirements.py18def generate_requirement_file(name, req_list, *, extra_list=None):
LOWtools/generate_f2pymod.py109def find_and_remove_repl_patterns(astr):
LOWbenchmarks/process_global_benchmarks.py5def process_global_benchmarks(f):
LOWbenchmarks/benchmarks/optimize.py210 def run_differentialevolution(self):
LOWbenchmarks/benchmarks/cluster_hierarchy_disjoint_set.py37 def time_merge_already_merged(self, n):
LOWbenchmarks/benchmarks/ndimage_interpolation.py53 def time_geometric_transform_mapping(self, shape, order, mode):
LOWbenchmarks/benchmarks/sparse_csgraph.py60 def time_strongly_connected_components(self, kind):
LOWbenchmarks/benchmarks/spatial.py181 def time_query_ball_point_nosort(self, mnr, p, probe_radius, boxsize, leafsize):
LOWbenchmarks/benchmarks/spatial.py225 def time_sparse_distance_matrix(self, mn1n2, p, probe_radius,
LOWbenchmarks/benchmarks/spatial.py275 def time_count_neighbors_deep(self, mn1n2, Nr):
LOWbenchmarks/benchmarks/spatial.py282 def time_count_neighbors_shallow(self, mn1n2, Nr):
LOWbenchmarks/benchmarks/spatial.py289def generate_spherical_points(num_points):
LOWbenchmarks/benchmarks/spatial.py315 def time_spherical_voronoi_calculation(self, num_points):
LOWbenchmarks/benchmarks/spatial.py330 def time_spherical_polygon_vertex_sorting(self, num_points):
LOWbenchmarks/benchmarks/spatial.py352 def time_spherical_polygon_area_calculation(self, num_points, ndim):
LOWbenchmarks/benchmarks/stats.py184 def track_truncnorm_stats_error(self, case, moment):
LOWbenchmarks/benchmarks/stats.py295 def track_distribution_ppf_roundtrip(self, dist_name):
LOWbenchmarks/benchmarks/stats.py306 def track_distribution_ppf_roundtrip_extrema(self, dist_name):
LOWbenchmarks/benchmarks/stats.py316 def track_distribution_isf_roundtrip(self, dist_name):
LOWbenchmarks/benchmarks/stats.py327 def track_distribution_isf_roundtrip_extrema(self, dist_name):
LOWbenchmarks/benchmarks/stats.py457 def time_gaussian_kde_evaluate(self, length):
LOWbenchmarks/benchmarks/stats.py529 def time_binned_statistic_dd_reuse_bin(self, statistic):
LOWbenchmarks/benchmarks/stats.py739 def time_wasserstein_distance(self, n_size):
LOWbenchmarks/benchmarks/interpolate.py272 def time_smooth_bivariate_spline(self, n_samples):
LOWbenchmarks/benchmarks/interpolate.py275 def time_lsq_bivariate_spline(self, n_samples):
LOWbenchmarks/benchmarks/interpolate.py309 def time_rect_bivariate_spline(self, size, s):
LOWbenchmarks/benchmarks/interpolate.py375 def time_rgi_setup_interpolator(self, ndim, max_coord_size,
LOWbenchmarks/benchmarks/interpolate.py416 def time_rgi_setup_interpolator(self, ndim, n_samples, method):
LOWbenchmarks/benchmarks/interpolate.py456 def time_rgi_setup_interpolator(self, ndim, n_samples):
LOWbenchmarks/benchmarks/interpolate.py537 def time_rgi_setup_interpolator(self, ndim, max_coord_size,
LOWbenchmarks/benchmarks/sparse_csgraph_matching.py27 def time_maximum_bipartite_matching(self, n, density):
LOWbenchmarks/benchmarks/fft_basic.py123 def time_next_fast_len_cached(self, size):
LOW…hmarks/benchmarks/tests/test_go_benchmark_functions.py51 def test_bounds_access_subscriptable(self):
LOWdoc/source/array_api_capabilities_table.py34def _get_flat_table_and_backends(
LOWdoc/source/array_api_capabilities_table.py101 def _get_generated_doc_link_for_function(self, module, func):
LOW…bprojects/pyprima/pyprima/pyprima/tests/test_bounds.py4def test_eliminate_fixed_bounds():
LOW…jects/pyprima/pyprima/pyprima/tests/test_end_to_end.py10def test_end_to_end_no_constraints():
LOW…jects/pyprima/pyprima/pyprima/tests/test_end_to_end.py21def test_end_to_end_linear_constraints(minimize_with_debugging):
LOW…jects/pyprima/pyprima/pyprima/tests/test_end_to_end.py30def test_end_to_end_nonlinear_constraint():
LOW…ts/pyprima/pyprima/pyprima/tests/test_miscellaneous.py21def test_callback_no_terminate():
LOW…ts/pyprima/pyprima/pyprima/tests/test_miscellaneous.py31def test_rhoend_without_rhobeg():
LOW…ts/pyprima/pyprima/pyprima/tests/test_miscellaneous.py36def test_rhobeg_without_rhoend():
LOW…ts/pyprima/pyprima/pyprima/tests/test_miscellaneous.py62def test_minimize_constraint_violation():
LOW…a/pyprima/src/pyprima/common/_nonlinear_constraints.py3def transform_constraint_function(nlc):
LOW…rima/pyprima/src/pyprima/common/_linear_constraints.py5def combine_multiple_linear_constraints(constraints):
LOWscipy/conftest.py360def _backends_kwargs_from_request(request, skip_or_xfail):
LOWscipy/conftest.py445def skip_or_xfail_xp_backends(request: pytest.FixtureRequest,
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3417def _append_singleton_leaf_node(Z, p, n, level, lvs, ivl, leaf_label_func,
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3443def _append_nonsingleton_leaf_node(Z, p, n, level, lvs, ivl, leaf_label_func,
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3461def _append_contraction_marks(Z, iv, i, n, contraction_marks, xp):
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3468def _append_contraction_marks_sub(Z, iv, i, n, contraction_marks, xp):
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3477def _dendrogram_calculate_info(Z, p, truncate_mode,
LOWscipy/cluster/hierarchy/tests/test_disjoint_set.py98def test_linear_union_sequence(n, direction):
LOWscipy/cluster/hierarchy/tests/test_hierarchy.py87 def test_linkage_non_finite_elements_in_distance_matrix(self, xp):
LOWscipy/cluster/hierarchy/tests/test_hierarchy.py93 def test_linkage_empty_distance_matrix(self, xp):
2286 more matches not shown…
Over-Commented Block914 hits · 743 pts
SeverityFileLineSnippet
LOWpyproject.toml1# Note that in maintenance branches, all build dependencies should
LOWtools/check_test_name.py121 for _node in node.body:
LOWtools/ninjatracing.py1# Copyright 2018 Nico Weber
LOWbenchmarks/asv.conf.json21 // "install_command": ["in-dir={env_dir} python -mpip install {wheel_file}"],
LOWbenchmarks/asv.conf.json61 // If missing or the empty string, the tool will be automatically
LOWbenchmarks/benchmarks/test_functions.py201#basinhopping
LOW…hmarks/benchmarks/go_benchmark_functions/go_funcs_S.py261# is a multimodal minimization problem defined as follows:
LOW.github/workflows/wheels.yml101 # build is run in a tmp dir (?)
LOW.github/workflows/wheels.yml121 # x86_64 is only available on the macos-15-intel image.
LOW.github/workflows/codeql.yml1# For most projects, this workflow file will not need changing; you simply need
LOW.github/workflows/codeql.yml61 # Add any setup steps before running the `github/codeql-action/init` action.
LOW.github/workflows/gpu-ci.yml1name: GPU jobs
LOW.github/workflows/linux_blas.yml1name: BLAS tests (Linux)
LOWsubprojects/qhull_r/libqhull_r/user_r.h141 returns False. Use (a > REALmax/2) instead of (a == REALmax).
LOWsubprojects/qhull_r/libqhull_r/user_r.h221 Note: may fail if more than 1 hour elapsed time
LOWsubprojects/qhull_r/libqhull_r/user_r.h281 number generator [CACM 31:1195 '88]. It is included with Qhull.
LOWsubprojects/qhull_r/libqhull_r/user_r.h301
LOWsubprojects/qhull_r/libqhull_r/rboxlib_r.c21#include <setjmp.h>
LOWsubprojects/qhull_r/libqhull_r/stat_r.h441#define wadd_(id, val) {MAYdebugx; qh->qhstat.stats[id].r += (val);}
LOWsubprojects/qhull_r/libqhull_r/qhull_ra.h21 full parens around (x?y:z)
LOWsubprojects/qhull_r/libqhull_r/qhull_ra.h41#include <math.h>
LOWsubprojects/qhull_r/libqhull_r/qhull_ra.h81#define trace1(args) {if (qh->IStracing >= 1) qh_fprintf args;}
LOWsubprojects/qhull_r/libqhull_r/qset_r.c21#include "libqhull_r.h" /* for qhT and QHULL_CRTDBG */
LOWsubprojects/qhull_r/libqhull_r/libqhull_r.h101 >--------------------------------</a><a name="boolT">-</a>
LOWsubprojects/qhull_r/libqhull_r/libqhull_r.h181*/
LOWsubprojects/duccfft/ducc0/infra/threading.h61// Mutex, UniqueLock, LockGuard, CondVar, set_active_pool(),
LOWsubprojects/duccfft/ducc0/infra/threading.h81#include <optional>
LOWsubprojects/duccfft/ducc0/infra/useful_macros.h61#define DUCC0_PREFETCH_W(addr) __builtin_prefetch(addr,1);
LOWsubprojects/duccfft/ducc0/infra/simd.h121using detail_simd::simd_exists;
LOWsubprojects/duccfft/ducc0/infra/simd.h141#elif defined(__GNUC__)
LOWsubprojects/duccfft/ducc0/infra/simd.h161#if defined(__ARM_FEATURE_SVE) && defined(__ARM_FEATURE_SVE_BITS)
LOWsubprojects/duccfft/ducc0/fft/fftnd_impl.h61#include <numeric>
LOWsubprojects/duccfft/ducc0/fft/fft1d_impl.h61
LOWsubprojects/duccfft/ducc0/bindings/pybind_utils.h41 * You should have received a copy of the GNU General Public License
LOWsubprojects/duccfft/ducc0/bindings/pybind_utils.h61#include <nanobind/stl/variant.h>
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/update.py161 # the "pole position" in his comments. CONMAT, CVAL, FVAL, and SIMI are updated accordingly.
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/update.py221 if 0 <= jopt < num_vars:
LOW…prima/pyprima/pyprima/src/pyprima/cobyla/initialize.py41 assert num_constraints >= 0, f'M >= 0 {srname}'
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobyla.py341 if xu is not None:
LOW…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py241 # Powell did, we should use the UNUPDATED version, namely ZDASAV.
LOW…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py341 sqrtd = max(np.sqrt(ss*dd + sd*sd), abs(sd), np.sqrt(ss * dd))
LOW…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py361 # !if (dd <= 0) then
LOW…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py461 #====================#
LOW…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py481 # delta = delta_in
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py41 # Local variables
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py81
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py121 # Postconditions
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py141 # We must initialize shortd, ratio, and jdrop_tr because these get defined on
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py161 gamma3 = np.maximum(1, np.minimum(0.75 * gamma2, 1.5))
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py181 # Increase the penalty parameter CPEN, if needed, so that
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py201
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py221 d = trstlp(A, -conmat[:, num_vars], delta, g)
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py301 # N.B.:
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py321 # hence a bad model) rather than an improperly large DELTA, and it might
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 at
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py381 # especially for linearly constrained problems due to the factor TENTH (= ETA1).
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 set
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py421 # distinction makes no practical difference for CUTEst problems with at most 100 variables
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,
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py601 assert np.size(simi, 0) == num_vars and np.size(simi, 1) == num_vars
854 more matches not shown…
Decorative Section Separators239 hits · 666 pts
SeverityFileLineSnippet
MEDIUMtools/write_release_and_log.py40# ----------------------------
MEDIUMtools/write_release_and_log.py42# ----------------------------
MEDIUMtools/generate_cython_abi_tests.py26# ---------------------------------------------------------------------------
MEDIUMtools/generate_cython_abi_tests.py28# ---------------------------------------------------------------------------
MEDIUMtools/generate_cython_abi_tests.py54# ---------------------------------------------------------------------------
MEDIUMtools/generate_cython_abi_tests.py56# ---------------------------------------------------------------------------
MEDIUMtools/generate_cython_abi_tests.py82# ---------------------------------------------------------------------------
MEDIUMtools/generate_cython_abi_tests.py84# ---------------------------------------------------------------------------
MEDIUMtools/generate_cython_abi_tests.py120# ---------------------------------------------------------------------------
MEDIUMtools/generate_cython_abi_tests.py126# ---------------------------------------------------------------------------
MEDIUMtools/generate_cython_abi_tests.py158# ---------------------------------------------------------------------------
MEDIUMtools/generate_cython_abi_tests.py160# ---------------------------------------------------------------------------
MEDIUMtools/generate_cython_abi_tests.py233# ---------------------------------------------------------------------------
MEDIUMtools/generate_cython_abi_tests.py235# ---------------------------------------------------------------------------
MEDIUMtools/authors.py174#------------------------------------------------------------------------------
MEDIUMtools/authors.py176#------------------------------------------------------------------------------
MEDIUMtools/authors.py233#------------------------------------------------------------------------------
MEDIUM…nchmarks/go_benchmark_functions/go_funcs_univariate.py6#-----------------------------------------------------------------------
MEDIUM…nchmarks/go_benchmark_functions/go_funcs_univariate.py8#-----------------------------------------------------------------------
MEDIUM.github/workflows/linux_intel_oneAPI.yml12 # ┌───────────── minute (0 - 59)
MEDIUM.github/workflows/linux_intel_oneAPI.yml13 # │ ┌───────────── hour (0 - 23)
MEDIUM.github/workflows/linux_intel_oneAPI.yml14 # │ │ ┌───────────── day of the month (1 - 31)
MEDIUM.github/workflows/linux_intel_oneAPI.yml15 # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
MEDIUM.github/workflows/linux_intel_oneAPI.yml16 # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
MEDIUM.github/workflows/wheels.yml108 # -------------------------
MEDIUM.github/workflows/windows_intel_oneAPI.yml13 # ┌───────────── minute (0 - 59)
MEDIUM.github/workflows/windows_intel_oneAPI.yml14 # │ ┌───────────── hour (0 - 23)
MEDIUM.github/workflows/windows_intel_oneAPI.yml15 # │ │ ┌───────────── day of the month (1 - 31)
MEDIUM.github/workflows/windows_intel_oneAPI.yml16 # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
MEDIUM.github/workflows/windows_intel_oneAPI.yml17 # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
MEDIUM.github/workflows/array_api.yml12 # ┌───────────── minute (0 - 59)
MEDIUM.github/workflows/array_api.yml13 # │ ┌───────────── hour (0 - 23)
MEDIUM.github/workflows/array_api.yml14 # │ │ ┌───────────── day of the month (1 - 31)
MEDIUM.github/workflows/array_api.yml15 # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
MEDIUM.github/workflows/array_api.yml16 # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
MEDIUMdoc/source/conf.py279# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py281# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py286# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py288# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py317# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py319# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py327# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py329# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py29# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py31# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py199# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py201# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py300# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py302# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py344#------------------------------------------------------------------------------
MEDIUMdoc/source/conf.py346#------------------------------------------------------------------------------
MEDIUMdoc/source/conf.py391# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py393# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py422#------------------------------------------------------------------------------
MEDIUMdoc/source/conf.py424#------------------------------------------------------------------------------
MEDIUMdoc/source/conf.py436# -----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py438# -----------------------------------------------------------------------------
MEDIUM…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py80 # ==================
MEDIUM…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py82 # ==================
MEDIUM…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py104 # ================
179 more matches not shown…
Self-Referential Comments216 hits · 617 pts
SeverityFileLineSnippet
MEDIUM…hmarks/benchmarks/go_benchmark_functions/go_funcs_S.py260# This class defines the Schmidt-Vetters global optimization problem. This
MEDIUM.github/label-filename.yml1# This file contains globs for automatically adding labels based on changed files,
MEDIUM.github/label-title-on-close.yml1# This file contains regexes for automatically adding labels to PRs which have been merged.
MEDIUM.github/label-title.yml1# This file contains regexes for automatically adding labels based on issue/PR titles,
MEDIUM.github/workflows/linux_blas.yml3# This file is meant for testing LP64/ILP64 BLAS/LAPACK flavors and build
MEDIUMdoc/source/conf.py562 # Create the admonition node, to be populated by `nested_parse`
MEDIUM…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobyla.py520 # Define the indices of the nontrivial bound constraints.
MEDIUM…pyprima/pyprima/pyprima/src/pyprima/cobyla/geometry.py51 # The following code is Powell's scheme for defining JDROP.
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.
MEDIUMscipy/cluster/hierarchy/_hierarchy_impl.py1366 # Create a list full of None's to store the node objects
MEDIUMscipy/cluster/hierarchy/_hierarchy_impl.py1369 # Create the nodes corresponding to the n original objects.
MEDIUMscipy/ndimage/interpolation.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/ndimage/morphology.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/ndimage/fourier.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/ndimage/filters.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/ndimage/measurements.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/linalg/decomp_qr.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/linalg/misc.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/linalg/decomp_cholesky.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/linalg/decomp_lu.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/linalg/decomp_svd.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/linalg/_matfuncs_sqrtm.py73 # Define the index range covered by each block.
MEDIUMscipy/linalg/matfuncs.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/linalg/basic.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/linalg/decomp.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/linalg/special_matrices.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/linalg/decomp_schur.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/linalg/_special_matrices.py254 # This function is a slightly modified version of the
MEDIUMscipy/linalg/tests/test_decomp.py3119 # Create an array with boundary offset 4
MEDIUMscipy/linalg/tests/test_decomp.py3134 # Create an array with boundary offset 4
MEDIUMscipy/linalg/tests/test_decomp.py3147 # Create an array with boundary offset 8
MEDIUMscipy/linalg/tests/test_lapack.py1264 # Create the RFP array manually (n is even!)
MEDIUMscipy/linalg/tests/test_lapack.py1316 # Create the TP array manually
MEDIUMscipy/linalg/tests/test_procrustes.py91 # Create a perturbed input matrix.
MEDIUMscipy/optimize/tnc.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/optimize/optimize.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/optimize/linesearch.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/optimize/nonlin.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/optimize/lbfgsb.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/optimize/zeros.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/optimize/_shgo.py768 # Initialize return object
MEDIUMscipy/optimize/slsqp.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/optimize/minpack.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/optimize/_basinhopping.py43 """This class implements the core of the basinhopping algorithm.
MEDIUMscipy/optimize/_slsqp_py.py573# The following functions modify their first input argument in-place.
MEDIUMscipy/optimize/minpack2.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/optimize/cobyla.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/optimize/moduleTNC.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/optimize/_differentialevolution.py540 """This class implements the differential evolution solver
MEDIUMscipy/optimize/_differentialevolution.py1054 # Create an array for population of candidate solutions.
MEDIUMscipy/optimize/_differentialevolution.py1087 # Create an array for population of candidate solutions.
MEDIUMscipy/optimize/_dcsrch.py342 # Initialize local variables.
MEDIUMscipy/optimize/_dcsrch.py402 # Define the modified function and derivative values.
MEDIUMscipy/optimize/tests/test_nnls.py89 # The following code sets up a system of equations such that
MEDIUMscipy/optimize/tests/test_nnls.py147 # The following code sets up a system of equations such that
MEDIUMscipy/optimize/_shgo_lib/_complex.py1098 # Create the vertex origin
MEDIUMscipy/integrate/quadpack.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/integrate/vode.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/integrate/lsoda.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
MEDIUMscipy/integrate/dop.py1# This file is not meant for public use and will be removed in SciPy v2.0.0.
156 more matches not shown…
Unused Imports669 hits · 596 pts
SeverityFileLineSnippet
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py44
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py45
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py46
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py47
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py48
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py49
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py50
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py51
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py52
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py53
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py54
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py55
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py56
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py57
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py58
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py59
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py60
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py61
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py62
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py63
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py64
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py65
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py66
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py67
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py68
LOW…nchmarks/benchmarks/go_benchmark_functions/__init__.py69
LOW…arks/benchmarks/go_benchmark_functions/go_benchmark.py4
LOWdoc/source/tutorial/conftest.py1
LOW…ojects/pyprima/pyprima/pyprima/src/pyprima/__init__.py2
LOWscipy/conftest.py35
LOWscipy/conftest.py74
LOWscipy/conftest.py81
LOWscipy/__init__.py55
LOWscipy/__init__.py47
LOWscipy/__init__.py82
LOWscipy/_distributor_init.py16
LOWscipy/cluster/__init__.py27
LOWscipy/cluster/__init__.py27
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
LOWscipy/cluster/hierarchy/__init__.py100
609 more matches not shown…
Deep Nesting492 hits · 455 pts
SeverityFileLineSnippet
LOW.spin/cmds.py64
LOW.spin/cmds.py188
LOW.spin/cmds.py1138
LOWtools/check_python_h_first.py66
LOWtools/refguide_check.py207
LOWtools/refguide_check.py495
LOWtools/numpydoc_lint.py614
LOWtools/refguide_summaries.py43
LOWtools/check_unicode.py26
LOWtools/check_test_name.py96
LOWtools/generate_f2pymod.py68
LOWtools/generate_f2pymod.py140
LOWtools/generate_f2pymod.py224
LOWbenchmarks/benchmarks/optimize.py543
LOWbenchmarks/benchmarks/lsq_problems.py466
LOWbenchmarks/benchmarks/linalg.py112
LOWbenchmarks/benchmarks/common.py80
LOWbenchmarks/benchmarks/common.py230
LOWbenchmarks/benchmarks/stats.py220
LOWbenchmarks/benchmarks/stats.py387
LOWbenchmarks/benchmarks/sparse.py102
LOWbenchmarks/benchmarks/fft_basic.py245
LOWbenchmarks/benchmarks/fft_basic.py284
LOW…hmarks/benchmarks/go_benchmark_functions/go_funcs_D.py242
LOWbenchmarks/benchmarks/cutest/dfovec.py6
LOWbenchmarks/benchmarks/cutest/calfun.py16
LOWbenchmarks/benchmarks/cutest/dfoxs.py6
LOWdoc/source/array_api_capabilities_table.py110
LOW…ojects/pyprima/pyprima/pyprima/src/pyprima/__init__.py24
LOW…ojects/pyprima/pyprima/pyprima/src/pyprima/__init__.py37
LOW…ojects/pyprima/pyprima/pyprima/src/pyprima/__init__.py79
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobyla.py487
LOW…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py116
LOW…ts/pyprima/pyprima/pyprima/src/pyprima/common/ratio.py14
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py27
LOW…s/pyprima/pyprima/pyprima/src/pyprima/common/linalg.py59
LOW…s/pyprima/pyprima/pyprima/src/pyprima/common/linalg.py106
LOW…s/pyprima/pyprima/pyprima/src/pyprima/common/linalg.py198
LOW…s/pyprima/pyprima/pyprima/src/pyprima/common/linalg.py234
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/preproc.py20
LOW…pyprima/pyprima/pyprima/src/pyprima/common/_project.py17
LOWscipy/conftest.py107
LOWscipy/conftest.py360
LOWscipy/conftest.py582
LOWscipy/cluster/hierarchy/_hierarchy_impl.py2420
LOWscipy/cluster/hierarchy/_hierarchy_impl.py2814
LOWscipy/cluster/hierarchy/_hierarchy_impl.py3477
LOWscipy/cluster/hierarchy/_hierarchy_impl.py1115
LOWscipy/ndimage/_ni_support.py37
LOWscipy/ndimage/_ni_support.py78
LOWscipy/ndimage/_ni_support.py110
LOWscipy/ndimage/_support_alternative_backends.py37
LOWscipy/ndimage/_support_alternative_backends.py38
LOWscipy/ndimage/_support_alternative_backends.py40
LOWscipy/ndimage/_filters.py1928
LOWscipy/ndimage/_morphology.py216
LOWscipy/ndimage/_morphology.py1292
LOWscipy/ndimage/_morphology.py1987
LOWscipy/linalg/_matfuncs_inv_ssq.py311
LOWscipy/linalg/_matfuncs_inv_ssq.py516
432 more matches not shown…
Cross-File Repetition53 hits · 265 pts
SeverityFileLineSnippet
HIGHscipy/linalg/tests/test_cython_abi.py0return {name: signature} for every entry in module.__pyx_capi__.
HIGHscipy/optimize/tests/test_cython_abi.py0return {name: signature} for every entry in module.__pyx_capi__.
HIGHscipy/special/tests/test_cython_abi.py0return {name: signature} for every entry in module.__pyx_capi__.
HIGHscipy/linalg/tests/test_solvers.py0checks if x = a'xa-(a'xb)(r+b'xb)^-1(b'xa)+q) is true
HIGHscipy/linalg/tests/test_solvers.py0checks if x = a'xa-(a'xb)(r+b'xb)^-1(b'xa)+q) is true
HIGHscipy/linalg/tests/test_solvers.py0checks if x = a'xa-(a'xb)(r+b'xb)^-1(b'xa)+q) is true
HIGHscipy/optimize/_root.py0wrapped `func` to track the number of times the function has been called.
HIGHscipy/optimize/_root.py0wrapped `func` to track the number of times the function has been called.
HIGHscipy/optimize/_minpack_py.py0wrapped `func` to track the number of times the function has been called.
HIGHscipy/optimize/_root_scalar.py0options ------- args : tuple, optional extra arguments passed to the objective function. bracket: a sequence of 2 floats
HIGHscipy/optimize/_root_scalar.py0options ------- args : tuple, optional extra arguments passed to the objective function. bracket: a sequence of 2 floats
HIGHscipy/optimize/_root_scalar.py0options ------- args : tuple, optional extra arguments passed to the objective function. bracket: a sequence of 2 floats
HIGHscipy/optimize/_root_scalar.py0options ------- args : tuple, optional extra arguments passed to the objective function. bracket: a sequence of 2 floats
HIGHscipy/optimize/tests/test_minimize_constrained.py0problem 15.4 from nocedal and wright the following optimization problem: minimize 2*(x[0]**2 + x[1]**2 - 1) - x[0] subje
HIGHscipy/optimize/tests/test_minimize_constrained.py0problem 15.4 from nocedal and wright the following optimization problem: minimize 2*(x[0]**2 + x[1]**2 - 1) - x[0] subje
HIGHscipy/optimize/tests/test_minimize_constrained.py0problem 15.4 from nocedal and wright the following optimization problem: minimize 2*(x[0]**2 + x[1]**2 - 1) - x[0] subje
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 ar
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 ar
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 ar
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 ar
HIGHscipy/_lib/_array_api.py0backwards compatible replacement. in new code, use xp_assert_close instead.
HIGHscipy/_lib/_array_api.py0backwards compatible replacement. in new code, use xp_assert_close instead.
HIGHscipy/_lib/_array_api_no_0d.py0backwards compatible replacement. in new code, use xp_assert_close instead.
HIGHscipy/_lib/_array_api_no_0d.py0backwards compatible replacement. in new code, use xp_assert_close instead.
HIGHscipy/interpolate/_interpolate.py0construct the piecewise polynomial without making checks. takes the same parameters as the constructor. input arguments
HIGHscipy/interpolate/_interpolate.py0construct the piecewise polynomial without making checks. takes the same parameters as the constructor. input arguments
HIGHscipy/interpolate/_interpolate.py0construct the piecewise polynomial without making checks. takes the same parameters as the constructor. input arguments
HIGHscipy/sparse/linalg/tests/test_special_sparse_arrays.py0test the dot-product for type preservation and consistency.
HIGHscipy/sparse/linalg/tests/test_special_sparse_arrays.py0test the dot-product for type preservation and consistency.
HIGHscipy/sparse/linalg/tests/test_special_sparse_arrays.py0test the dot-product for type preservation and consistency.
HIGHscipy/signal/_ltisys.py0initialize the `lti` baseclass. the heavy lifting is done by the subclasses.
HIGHscipy/signal/_ltisys.py0initialize the `lti` baseclass. the heavy lifting is done by the subclasses.
HIGHscipy/signal/_ltisys.py0initialize the `lti` baseclass. the heavy lifting is done by the subclasses.
HIGHscipy/stats/_multivariate.py0check whether x lies in the support of the distribution.
HIGHscipy/stats/_covariance.py0check whether x lies in the support of the distribution.
HIGHscipy/stats/_covariance.py0check whether x lies in the support of the distribution.
HIGHscipy/stats/_multivariate.py0\ see class definition for a detailed description of parameters.
HIGHscipy/stats/_multivariate.py0\ see class definition for a detailed description of parameters.
HIGHscipy/stats/_multivariate.py0\ see class definition for a detailed description of parameters.
HIGHscipy/stats/_multivariate.py0\ see class definition for a detailed description of parameters.
HIGHscipy/stats/_multivariate.py0\ see class definition for a detailed description of parameters.
HIGHscipy/stats/_multivariate.py0\ see class definition for a detailed description of parameters.
HIGHscipy/stats/_multivariate.py0\ see class definition for a detailed description of parameters.
HIGHscipy/stats/_multivariate.py0\ see class definition for a detailed description of parameters.
HIGHscipy/stats/_multivariate.py0\ see class definition for a detailed description of parameters.
HIGHscipy/stats/_multivariate.py0\ see class definition for a detailed description of parameters.
HIGHscipy/stats/_multivariate.py0adjust quantiles array so that last axis labels the components of each data point.
HIGHscipy/stats/_multivariate.py0adjust quantiles array so that last axis labels the components of each data point.
HIGHscipy/stats/_multivariate.py0adjust quantiles array so that last axis labels the components of each data point.
HIGHscipy/stats/_multivariate.py0dimension n must be specified; it cannot be inferred.
HIGHscipy/stats/_multivariate.py0dimension n must be specified; it cannot be inferred.
HIGHscipy/stats/_multivariate.py0dimension n must be specified; it cannot be inferred.
HIGHscipy/stats/_multivariate.py0dimension n must be specified; it cannot be inferred.
Redundant / Tautological Comments99 hits · 146 pts
SeverityFileLineSnippet
LOWtools/check_unicode.py42 # Read the file as bytes, and check for any bytes greater than 127.
LOWtools/ninjatracing.py103 # Check if any event duration is greater than the duration from ninja.
LOW…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py290 # Set sdirn to the direction of the next change to the current vector of variables
LOW…rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py322 # Set sdirn to the direction of the next change to the current vector of variables.
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 corresponding
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 to
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py330 delta = rho # Set delta to rho when it is close to or below.
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 there
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py77 elif iprint > 0: # Print the message to the standard out.
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py79 else: # Print the message to a file named FNAME.
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py118 # Print the message.
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py140 elif iprint > 0: # Print the message to the standard out.
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py142 else: # Print the message to a file named FNAME.
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py184 # Print the message.
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py210 elif iprint > 0: # Print the message to the standard out.
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py212 else: # Print the message to a file named FNAME.
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py215 # Print the message.
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py241 elif iprint > 0: # Print the message to the standard out.
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py243 else: # Print the message to a file named FNAME.
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/message.py281 # Print the message.
LOWscipy/conftest.py323 # Check if ``uses_xp_capabilities`` mark is present.
LOWscipy/linalg/_decomp.py610 # Check if we had a successful exit
LOWscipy/linalg/_generate_pyx.py99 # Check if scipy's cython_blas exports blas_int (ILP64 support).
LOWscipy/linalg/_generate_pyx.py198 # Check if scipy's cython_lapack exports blas_int (ILP64 support).
LOWscipy/linalg/_solvers.py844 # Check if the data matrices q, r are (sufficiently) hermitian
LOWscipy/linalg/_solvers.py855 # Check if the generalized case is required with omitted arguments
LOWscipy/linalg/tests/test_decomp.py2242 # Check if the result is actually correct & check overwrite behavior
LOWscipy/optimize/_shgo.py539 # Check if bounds are correctly specified
LOWscipy/optimize/_linprog_simplex.py368 # Check if any artificial variables are still in the basis.
LOWscipy/optimize/_hessian_update_strategy.py404 # Check if curvature condition is violated
LOWscipy/optimize/_dual_annealing.py439 # Check if is valid value
LOWscipy/optimize/_trustregion_exact.py327 # Check if factorization succeeded
LOWscipy/optimize/_trustregion_exact.py383 # Check if the factorization have succeeded
LOWscipy/optimize/tests/test_optimize.py51 # Verify if check_grad is able to estimate the derivative of the
LOWscipy/optimize/tests/test_optimize.py75 # Check if the epsilon parameter is being considered.
LOWscipy/optimize/tests/test__dual_annealing.py337 # Check if update is accepted.
LOWscipy/optimize/tests/test_trustregion_exact.py92 # Check if the leading submatrix is singular.
LOWscipy/optimize/tests/test_trustregion_exact.py95 # Check if `v` fulfil the specified properties
LOWscipy/optimize/tests/test_trustregion_exact.py119 # Check if the leading submatrix is singular.
LOWscipy/optimize/tests/test_trustregion_exact.py122 # Check if `v` fulfil the specified properties
LOWscipy/optimize/tests/test_trustregion_exact.py144 # Check if the leading submatrix is singular
LOWscipy/optimize/tests/test_trustregion_exact.py147 # Check if `v` fulfil the specified properties
LOWscipy/optimize/tests/test_trustregion_exact.py356 # Check if it respect k_trf
LOWscipy/optimize/tests/test_trustregion_exact.py363 # Check if it respect k_opt
LOWscipy/optimize/_shgo_lib/_complex.py448 # Check if generator already exists
LOWscipy/optimize/_shgo_lib/_complex.py1116 # Check if connected, else s_i is not a simplex
LOWscipy/optimize/_lsq/common.py120 # Check if J has full rank and try Gauss-Newton step.
LOWscipy/optimize/_lsq/trf.py167 # Check if reflection step is available.
LOWscipy/optimize/_trustregion_constr/qp_subproblem.py217 # Check if intersection is feasible
LOWscipy/optimize/_trustregion_constr/qp_subproblem.py592 # Check if ``x`` is inside the box and start counter if it is not.
LOWscipy/optimize/_trustregion_constr/projections.py47 # Check if norms are zero
LOWscipy/integrate/tests/test_integrate.py276 # Check if solout works even if it is set after the initial value.
LOWscipy/io/_netcdf.py605 # Read file headers and set data.
LOWscipy/io/_idl.py798 # Check if the end of the file has been reached
LOWscipy/io/_idl.py826 # Set f to be the decompressed file, and skip the first four bytes
LOWscipy/io/_idl.py841 # Close the file
LOWscipy/io/tests/test_netcdf.py135 # Read file from fileobj, with mmap
LOWscipy/io/tests/test_netcdf.py438 # Open the file in append mode and add data
LOWscipy/io/tests/test_netcdf.py444 # Read the file and check that append worked
LOWscipy/io/tests/test_netcdf.py452 # Read the file and check that 'data' was not saved as user defined
39 more matches not shown…
AI Slop Vocabulary59 hits · 107 pts
SeverityFileLineSnippet
LOWpixi.toml473# Note: we need BLAS support in Meson merged before we can simply use `-Dblas=mkl`
LOWtools/gh_lists.py83 # just use the first 80 characters, with ellipses.
LOWbenchmarks/benchmarks/optimize.py546 # if so, then just return the ret_value
LOWbenchmarks/benchmarks/common.py316 # Unknown, just return whatever is here.
LOW.github/ccache/action.yml24 # Note: we can't simply use restore followed by save because composite actions
MEDIUM…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/update.py138 # Essentially jopt = np.argmin(phi). However, we keep jopt = num_vars unless there
LOW…s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobyla.py454 # In MATLAB/Python/Julia/R implementation, we should simply set MAXHIST = MAXFUN and initialize
LOW…/pyprima/pyprima/pyprima/src/pyprima/common/preproc.py101 # We cannot simply set MAXFILT = MIN(MAXFILT, MAXHISTMEM/...), as they may not have
MEDIUMscipy/linalg/tests/test_decomp_lu.py190 # Those matrices are more robust to detect problems in permutation
MEDIUMscipy/linalg/src/_matfuncs_expm.c1097 // We utilize the unused powers of Am as scratch memory depending on m value.
MEDIUMscipy/linalg/src/_matfuncs_expm.c1312 // We utilize the unused powers of Am as scratch memory depending on m value.
MEDIUMscipy/linalg/src/_matfuncs_expm.c1530 // We utilize the unused powers of Am as scratch memory depending on m value.
MEDIUMscipy/linalg/src/_matfuncs_expm.c1866 // We utilize the unused powers of Am as scratch memory depending on m value.
LOWscipy/optimize/_optimize.py3210 # If this is the case, then we can just return (0, 0)
MEDIUMscipy/optimize/_bracket.py290 # To facilitate this, `work.active` contains a unit integer index of
LOWscipy/optimize/_lsq/least_squares.py70 # lmdif and just use lmder.
LOWscipy/optimize/_lsq/dogbox.py135 # the bounds, and just return it constrained version if not. But in a
MEDIUMscipy/optimize/_lsq/common.py721 """Scale Jacobian and residuals for a robust loss function.
LOWscipy/optimize/_trustregion_constr/tr_interior_point.py88 # and just set both equality and inequality
MEDIUMscipy/optimize/src/nnls.c27 // Essentially a permuted gemv operation via BLAS ddot, in NumPy notation;
LOWscipy/integrate/_quadrature.py129 # Cannot just use the broadcasted arrays that are returned
MEDIUMscipy/integrate/_lebedev.py52 # combined with radial quadratures to provide robust cubature formulae. For
LOWscipy/_lib/_util.py900 # whenever mdhaber/marray#89 is resolved, could just return `res`
LOWscipy/special/_mptestutils.py53 # Outside of linspace range; just return a logspace.
LOWscipy/special/_mptestutils.py56 # Outside of logspace range; just return a linspace
LOWscipy/special/_support_alternative_backends.py200 # set in JAX. One cannot just use xp_promote for the input dtypes because
LOWscipy/special/_support_alternative_backends.py207 # JAX uses NumPy dtypes so we can just pass these directly to
LOWscipy/special/tests/test_ufunc_signatures.py104 # since we only care about dtypes and not values here, just use an appropriately
MEDIUMscipy/differentiate/_differentiate.py239 https://www.mathworks.com/matlabcentral/fileexchange/13490-adaptive-robust-numerical-differentiation
LOWscipy/interpolate/_rbfinterp.py474 # If this number is below 1e6 we just use 1e6
LOWscipy/interpolate/_interpolate.py418 # For slinear or zero order spline, we just pass nans through.
LOWscipy/sparse/_coo.py141 # index overflow. This is why we can't simply call
MEDIUMscipy/sparse/linalg/_svdp.py242 # work arrays to utilize BLAS level 3 operations. In almost all relevant
LOWscipy/sparse/linalg/_eigen/arpack/arpack.py19# may use eigsh(), but eigsh() will simply call eigs()
MEDIUMscipy/sparse/linalg/_eigen/tests/test_svds.py859 # I can't see a robust relationship between `ncv` and relevant outputs
MEDIUMscipy/sparse/linalg/tests/test_propack.py35# It is not very robust to arbitrary seeding since partial reorthogonalization
MEDIUMscipy/sparse/tests/test_base.py946 # comprehensive test
LOWscipy/signal/_ltisys.py2217 # Zero input: just use matrix exponential
MEDIUMscipy/signal/tests/_scipy_spectral_test_shim.py1"""Helpers to utilize existing stft / istft tests for testing `ShortTimeFFT`.
MEDIUMscipy/signal/windows/_windows.py2207 # sufficiently smooth functions, and more robust than relying on an
MEDIUMscipy/stats/_stats_py.py9624 # To facilitate comparison with [1], we'll use variable names that
MEDIUMscipy/stats/_stats_py.py10663 # Writen to match [1] Equation 27 closely to facilitate review.
MEDIUMscipy/stats/_qmvnt.py244# included in this file to facilitate the resolution of gh-8367, gh-16142, and
MEDIUMscipy/stats/_discrete_distns.py1549 # Thus, we can leverage the following:
LOWscipy/stats/_continuous_distns.py470 # Without this check, this function would just return the
LOWscipy/stats/_continuous_distns.py3663 # Without this check, this function would just return the
LOWscipy/stats/_continuous_distns.py6250 # Without this check, this function would just return the
LOWscipy/stats/_continuous_distns.py8465 # to handle inside pearson3._pdf) or negative. So just return True
LOWscipy/stats/_distribution_infrastructure.py101# mind NaNs; they just return NaN. The behavior "If x_i is NaN, the result
MEDIUMscipy/stats/_distribution_infrastructure.py1115 # cases. That would be a bit more robust, but it would also be quite
MEDIUMscipy/stats/_distribution_infrastructure.py1932 # raises a distribution-specific error message to facilitate
MEDIUMscipy/stats/tests/test_mstats_basic.py1098 # method is robust to outliers: brekdown point of 50%
MEDIUMscipy/stats/tests/test_continuous_basic.py139 # TODO: multiple checks in this function are not robust, tweaking the
MEDIUMscipy/stats/tests/test_hypotests.py2004 # because games_howell leverage _tukey_hsd_iv()
LOWscipy/stats/tests/test_axis_nan_policy.py262# For some functions, nan_policy='propagate' should not just return NaNs
MEDIUMscipy/stats/tests/test_correlation.py394 # method is robust to outliers: breakdown point of 50%
LOWscipy/stats/tests/test_distributions.py5026 # this try-except wrapper and just call the function.
MEDIUMscipy/stats/tests/data/_mvt.py8 # Defined to facilitate comparison between translation and source
MEDIUMscipy/stats/tests/data/_mvt.py14 # Defined to facilitate comparison between translation and source
Excessive Try-Catch Wrapping88 hits · 90 pts
SeverityFileLineSnippet
LOW.spin/cmds.py1083 except Exception:
LOW.spin/cmds.py1104 except Exception:
LOW.spin/cmds.py1170 except Exception as e:
MEDIUM.spin/cmds.py1075def _count_physical_cores_linux():
MEDIUM.spin/cmds.py1094def _count_physical_cores_win32():
LOWtools/refguide_check.py240 except Exception:
LOWtools/refguide_check.py411 except Exception:
LOWbenchmarks/benchmarks/optimize.py581 except Exception:
LOWbenchmarks/benchmarks/sparse.py285 except Exception:
LOWdoc/source/conf.py484 except Exception:
LOWdoc/source/conf.py489 except Exception:
LOWdoc/source/conf.py496 except Exception:
LOWdoc/source/conf.py472 except Exception:
LOWscipy/conftest.py37except Exception:
LOWscipy/conftest.py75 except Exception:
LOWscipy/conftest.py82 except Exception:
LOWscipy/conftest.py130 except Exception: # observed in gh-14441: (ImportError, AttributeError)
LOWscipy/conftest.py150 except Exception:
LOWscipy/cluster/hierarchy/tests/test_hierarchy.py77except Exception:
LOWscipy/ndimage/_morphology.py2373 except Exception as e:
LOWscipy/linalg/tests/test_lapack.py2562 except Exception as e:
LOWscipy/linalg/tests/test_lapack.py2577 except Exception as e:
LOWscipy/optimize/_linprog_ip.py109 except Exception:
LOWscipy/optimize/_linprog_ip.py142 except Exception:
LOWscipy/optimize/_minimize.py1116 except Exception as e:
LOWscipy/optimize/_linprog_util.py879 except Exception:
LOWscipy/optimize/_remove_redundancy.py195 except Exception:
LOWscipy/optimize/tests/test_zeros.py95 except Exception:
LOWscipy/optimize/_shgo_lib/_vertex.py455 except Exception:
MEDIUMscipy/optimize/_shgo_lib/_vertex.py234def __getitem__(self, x, nn=None):
LOWscipy/integrate/_quadrature.py1038 except Exception:
LOWscipy/integrate/_quadrature.py1098 except Exception as e:
LOWscipy/integrate/_quadrature.py1108 except Exception as e:
LOWscipy/_lib/tests/test_array_api.py322 except Exception as e:
LOWscipy/_lib/tests/test_array_api.py364 except Exception as e:
LOWscipy/special/_mptestutils.py412 except Exception:
MEDIUMscipy/special/_mptestutils.py409def wrap(*a, **kw):
LOWscipy/special/tests/test_mpmath.py209 except Exception:
LOWscipy/interpolate/_rgi.py297 except Exception as e:
LOWscipy/interpolate/_rgi.py302 except Exception:
LOWscipy/interpolate/_cubic.py1018 except Exception as e:
LOWscipy/interpolate/_rbfinterp_xp.py73 except Exception:
LOWscipy/interpolate/_fitpack_impl.py310 except Exception:
LOWscipy/interpolate/_fitpack_impl.py345 except Exception:
LOWscipy/interpolate/_fitpack_impl.py366 except Exception:
LOWscipy/interpolate/_fitpack_impl.py393 except Exception:
LOWscipy/interpolate/_fitpack_impl.py739 except Exception:
LOWscipy/sparse/_compressed.py87 except Exception as e:
LOWscipy/sparse/_compressed.py107 except Exception as e:
LOWscipy/sparse/_bsr.py108 except Exception as e:
LOWscipy/sparse/_bsr.py126 except Exception as e:
LOWscipy/sparse/_dia.py53 except Exception as e:
LOWscipy/sparse/_dia.py71 except Exception as e:
LOWscipy/sparse/_dok.py46 except Exception as e:
LOWscipy/sparse/linalg/_interface.py452 except Exception as e:
LOWscipy/sparse/linalg/_eigen/lobpcg/lobpcg.py85 except Exception:
LOWscipy/sparse/linalg/_eigen/lobpcg/lobpcg.py112 except Exception as e:
LOWscipy/sparse/linalg/_eigen/lobpcg/lobpcg.py556 except Exception as e:
LOWscipy/sparse/linalg/_eigen/lobpcg/lobpcg.py576 except Exception as e:
LOWscipy/sparse/linalg/_eigen/lobpcg/lobpcg.py592 except Exception as e:
28 more matches not shown…
Cross-Language Confusion19 hits · 86 pts
SeverityFileLineSnippet
HIGHscipy/ndimage/_filters.py2118 behavior in the presence of NaNs is undefined, and memory consumption scales with
HIGHscipy/optimize/_nnls.py10 Solve ``argmin_x || Ax - b ||_2^2`` for ``x>=0``.
HIGHscipy/interpolate/_fitpack_repro.py623 minimize || W^{1/2} (Y - B c) ||^2 + s * c^T @ R @ c
HIGHscipy/sparse/_data.py542 is undefined, so the index ``0`` is returned for that row/column.
HIGHscipy/sparse/_data.py574 is undefined, so the index ``0`` is returned for that row/column.
HIGHscipy/sparse/csgraph/__init__.py142accomplished over either G[i, j] or G[j, i]. If both edges are not null,
HIGHscipy/stats/_binned_statistic.py664 if np.iscomplexobj(null):
HIGHscipy/stats/_binned_statistic.py666 result.fill(null)
HIGHscipy/stats/_mgc.py235 statistic, under the null, at least as extreme as the observed test
HIGHscipy/stats/_stats_py.py2999 NaN (undefined). Non-positive observations will also produce NaNs in the
HIGHscipy/stats/_stats_py.py6376 # If df is undefined, variances are zero (assumes n1 > 0 & n2 > 0).
HIGHscipy/stats/_resampling.py2066 >>> unique = np.unique(null)
HIGHscipy/stats/_resampling.py2079 >>> incorrect_pvalue = np.count_nonzero(null >= r) / len(null)
HIGHscipy/stats/_resampling.py2087 >>> correct_pvalue = np.count_nonzero(null >= r - 1e-14) / len(null)
HIGHscipy/stats/_mstats_basic.py1739 # If df is undefined, variances are zero.
HIGHscipy/stats/_distribution_infrastructure.py1756 if _isnull(tol):
HIGHscipy/stats/_distribution_infrastructure.py2004 rtol = None if _isnull(self.tol) else self.tol
HIGHscipy/stats/_distribution_infrastructure.py2033 xrtol = None if _isnull(self.tol) else self.tol
HIGHscipy/stats/tests/test_multivariate.py3415 # distribution, so a low p-value represents rejecting the null, i.e.
Verbosity Indicators16 hits · 24 pts
SeverityFileLineSnippet
LOWscipy/integrate/src/lsoda.c947 // Step 1: Initialize based on jstart
LOWscipy/integrate/src/lsoda.c1005 // Step 4: Handle corrector results
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c68 // Step 2: Determine the interval of valid decimal representations.
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c75 // Step 3: Convert to a decimal power base using 64-bit arithmetic.
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c154 // Step 4: Find the shortest decimal representation in the interval of valid representations.
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c231 // Step 5: Print the decimal representation.
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c309 // Step 1: Decode the floating-point number, and unify normalized and subnormal cases.
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c109 // Step 2: Determine the interval of valid decimal representations.
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c117 // Step 3: Convert to a decimal power base using 128-bit arithmetic.
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c205 // Step 4: Find the shortest decimal representation in the interval of valid representations.
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c315 // Step 5: Print the decimal representation.
LOW…x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c455 // Step 1: Decode the floating-point number, and unify normalized and subnormal cases.
LOWscipy/sparse/linalg/_propack/PROPACK/src/common.c267 // Step 4: Store the interval [left_edge, right_edge]
LOWscipy/sparse/linalg/_propack/PROPACK/src/common.c272 // Step 5: Move past this interval for the next search
LOWscipy/sparse/linalg/_propack/PROPACK/src/common.c561 // Step 4: Store the interval [left_edge, right_edge]
LOWscipy/sparse/linalg/_propack/PROPACK/src/common.c566 // Step 5: Move past this interval for the next search
Slop Phrases5 hits · 8 pts
SeverityFileLineSnippet
MEDIUM.github/workflows/codeql.yml53 # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
MEDIUMscipy/linalg/tests/test_solvers.py837 # Feel free to adjust this to test fewer dtypes or random selections rather than
LOWscipy/optimize/_differentialevolution.py1132 # make sure you're using a float array
LOWscipy/io/matlab/_mio5_params.py5If you make changes in this file, don't forget to change mio5_utils.pyx
LOWscipy/special/tests/test_basic.py3006 # make sure to test both float and complex values; a different