5215 matches across 13 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .spin/cmds.py | 1075 | def _count_physical_cores_linux(): |
| LOW | .spin/cmds.py | 1119 | def _count_physical_cores_darwin(): |
| LOW | .spin/cmds.py | 1129 | def _count_physical_cores_freebsd(): |
| LOW | tools/check_xp_untested.py | 49 | def pytest_collection_modifyitems(self, session, config, items): |
| LOW | tools/check_python_h_first.py | 66 | def check_python_h_included_first(name_to_check: str) -> int: |
| LOW | tools/generate_requirements.py | 18 | def generate_requirement_file(name, req_list, *, extra_list=None): |
| LOW | tools/generate_f2pymod.py | 109 | def find_and_remove_repl_patterns(astr): |
| LOW | benchmarks/process_global_benchmarks.py | 5 | def process_global_benchmarks(f): |
| LOW | benchmarks/benchmarks/optimize.py | 210 | def run_differentialevolution(self): |
| LOW | benchmarks/benchmarks/cluster_hierarchy_disjoint_set.py | 37 | def time_merge_already_merged(self, n): |
| LOW | benchmarks/benchmarks/ndimage_interpolation.py | 53 | def time_geometric_transform_mapping(self, shape, order, mode): |
| LOW | benchmarks/benchmarks/sparse_csgraph.py | 60 | def time_strongly_connected_components(self, kind): |
| LOW | benchmarks/benchmarks/spatial.py | 181 | def time_query_ball_point_nosort(self, mnr, p, probe_radius, boxsize, leafsize): |
| LOW | benchmarks/benchmarks/spatial.py | 225 | def time_sparse_distance_matrix(self, mn1n2, p, probe_radius, |
| LOW | benchmarks/benchmarks/spatial.py | 275 | def time_count_neighbors_deep(self, mn1n2, Nr): |
| LOW | benchmarks/benchmarks/spatial.py | 282 | def time_count_neighbors_shallow(self, mn1n2, Nr): |
| LOW | benchmarks/benchmarks/spatial.py | 289 | def generate_spherical_points(num_points): |
| LOW | benchmarks/benchmarks/spatial.py | 315 | def time_spherical_voronoi_calculation(self, num_points): |
| LOW | benchmarks/benchmarks/spatial.py | 330 | def time_spherical_polygon_vertex_sorting(self, num_points): |
| LOW | benchmarks/benchmarks/spatial.py | 352 | def time_spherical_polygon_area_calculation(self, num_points, ndim): |
| LOW | benchmarks/benchmarks/stats.py | 184 | def track_truncnorm_stats_error(self, case, moment): |
| LOW | benchmarks/benchmarks/stats.py | 295 | def track_distribution_ppf_roundtrip(self, dist_name): |
| LOW | benchmarks/benchmarks/stats.py | 306 | def track_distribution_ppf_roundtrip_extrema(self, dist_name): |
| LOW | benchmarks/benchmarks/stats.py | 316 | def track_distribution_isf_roundtrip(self, dist_name): |
| LOW | benchmarks/benchmarks/stats.py | 327 | def track_distribution_isf_roundtrip_extrema(self, dist_name): |
| LOW | benchmarks/benchmarks/stats.py | 457 | def time_gaussian_kde_evaluate(self, length): |
| LOW | benchmarks/benchmarks/stats.py | 529 | def time_binned_statistic_dd_reuse_bin(self, statistic): |
| LOW | benchmarks/benchmarks/stats.py | 739 | def time_wasserstein_distance(self, n_size): |
| LOW | benchmarks/benchmarks/interpolate.py | 272 | def time_smooth_bivariate_spline(self, n_samples): |
| LOW | benchmarks/benchmarks/interpolate.py | 275 | def time_lsq_bivariate_spline(self, n_samples): |
| LOW | benchmarks/benchmarks/interpolate.py | 309 | def time_rect_bivariate_spline(self, size, s): |
| LOW | benchmarks/benchmarks/interpolate.py | 375 | def time_rgi_setup_interpolator(self, ndim, max_coord_size, |
| LOW | benchmarks/benchmarks/interpolate.py | 416 | def time_rgi_setup_interpolator(self, ndim, n_samples, method): |
| LOW | benchmarks/benchmarks/interpolate.py | 456 | def time_rgi_setup_interpolator(self, ndim, n_samples): |
| LOW | benchmarks/benchmarks/interpolate.py | 537 | def time_rgi_setup_interpolator(self, ndim, max_coord_size, |
| LOW | benchmarks/benchmarks/sparse_csgraph_matching.py | 27 | def time_maximum_bipartite_matching(self, n, density): |
| LOW | benchmarks/benchmarks/fft_basic.py | 123 | def time_next_fast_len_cached(self, size): |
| LOW | …hmarks/benchmarks/tests/test_go_benchmark_functions.py | 51 | def test_bounds_access_subscriptable(self): |
| LOW | doc/source/array_api_capabilities_table.py | 34 | def _get_flat_table_and_backends( |
| LOW | doc/source/array_api_capabilities_table.py | 101 | def _get_generated_doc_link_for_function(self, module, func): |
| LOW | …bprojects/pyprima/pyprima/pyprima/tests/test_bounds.py | 4 | def test_eliminate_fixed_bounds(): |
| LOW | …jects/pyprima/pyprima/pyprima/tests/test_end_to_end.py | 10 | def test_end_to_end_no_constraints(): |
| LOW | …jects/pyprima/pyprima/pyprima/tests/test_end_to_end.py | 21 | def test_end_to_end_linear_constraints(minimize_with_debugging): |
| LOW | …jects/pyprima/pyprima/pyprima/tests/test_end_to_end.py | 30 | def test_end_to_end_nonlinear_constraint(): |
| LOW | …ts/pyprima/pyprima/pyprima/tests/test_miscellaneous.py | 21 | def test_callback_no_terminate(): |
| LOW | …ts/pyprima/pyprima/pyprima/tests/test_miscellaneous.py | 31 | def test_rhoend_without_rhobeg(): |
| LOW | …ts/pyprima/pyprima/pyprima/tests/test_miscellaneous.py | 36 | def test_rhobeg_without_rhoend(): |
| LOW | …ts/pyprima/pyprima/pyprima/tests/test_miscellaneous.py | 62 | def test_minimize_constraint_violation(): |
| LOW | …a/pyprima/src/pyprima/common/_nonlinear_constraints.py | 3 | def transform_constraint_function(nlc): |
| LOW | …rima/pyprima/src/pyprima/common/_linear_constraints.py | 5 | def combine_multiple_linear_constraints(constraints): |
| LOW | scipy/conftest.py | 360 | def _backends_kwargs_from_request(request, skip_or_xfail): |
| LOW | scipy/conftest.py | 445 | def skip_or_xfail_xp_backends(request: pytest.FixtureRequest, |
| LOW | scipy/cluster/hierarchy/_hierarchy_impl.py | 3417 | def _append_singleton_leaf_node(Z, p, n, level, lvs, ivl, leaf_label_func, |
| LOW | scipy/cluster/hierarchy/_hierarchy_impl.py | 3443 | def _append_nonsingleton_leaf_node(Z, p, n, level, lvs, ivl, leaf_label_func, |
| LOW | scipy/cluster/hierarchy/_hierarchy_impl.py | 3461 | def _append_contraction_marks(Z, iv, i, n, contraction_marks, xp): |
| LOW | scipy/cluster/hierarchy/_hierarchy_impl.py | 3468 | def _append_contraction_marks_sub(Z, iv, i, n, contraction_marks, xp): |
| LOW | scipy/cluster/hierarchy/_hierarchy_impl.py | 3477 | def _dendrogram_calculate_info(Z, p, truncate_mode, |
| LOW | scipy/cluster/hierarchy/tests/test_disjoint_set.py | 98 | def test_linear_union_sequence(n, direction): |
| LOW | scipy/cluster/hierarchy/tests/test_hierarchy.py | 87 | def test_linkage_non_finite_elements_in_distance_matrix(self, xp): |
| LOW | scipy/cluster/hierarchy/tests/test_hierarchy.py | 93 | def test_linkage_empty_distance_matrix(self, xp): |
| 2286 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pyproject.toml | 1 | # Note that in maintenance branches, all build dependencies should |
| LOW | tools/check_test_name.py | 121 | for _node in node.body: |
| LOW | tools/ninjatracing.py | 1 | # Copyright 2018 Nico Weber |
| LOW | benchmarks/asv.conf.json | 21 | // "install_command": ["in-dir={env_dir} python -mpip install {wheel_file}"], |
| LOW | benchmarks/asv.conf.json | 61 | // If missing or the empty string, the tool will be automatically |
| LOW | benchmarks/benchmarks/test_functions.py | 201 | #basinhopping |
| LOW | …hmarks/benchmarks/go_benchmark_functions/go_funcs_S.py | 261 | # is a multimodal minimization problem defined as follows: |
| LOW | .github/workflows/wheels.yml | 101 | # build is run in a tmp dir (?) |
| LOW | .github/workflows/wheels.yml | 121 | # x86_64 is only available on the macos-15-intel image. |
| LOW | .github/workflows/codeql.yml | 1 | # For most projects, this workflow file will not need changing; you simply need |
| LOW | .github/workflows/codeql.yml | 61 | # Add any setup steps before running the `github/codeql-action/init` action. |
| LOW | .github/workflows/gpu-ci.yml | 1 | name: GPU jobs |
| LOW | .github/workflows/linux_blas.yml | 1 | name: BLAS tests (Linux) |
| LOW | subprojects/qhull_r/libqhull_r/user_r.h | 141 | returns False. Use (a > REALmax/2) instead of (a == REALmax). |
| LOW | subprojects/qhull_r/libqhull_r/user_r.h | 221 | Note: may fail if more than 1 hour elapsed time |
| LOW | subprojects/qhull_r/libqhull_r/user_r.h | 281 | number generator [CACM 31:1195 '88]. It is included with Qhull. |
| LOW | subprojects/qhull_r/libqhull_r/user_r.h | 301 | |
| LOW | subprojects/qhull_r/libqhull_r/rboxlib_r.c | 21 | #include <setjmp.h> |
| LOW | subprojects/qhull_r/libqhull_r/stat_r.h | 441 | #define wadd_(id, val) {MAYdebugx; qh->qhstat.stats[id].r += (val);} |
| LOW | subprojects/qhull_r/libqhull_r/qhull_ra.h | 21 | full parens around (x?y:z) |
| LOW | subprojects/qhull_r/libqhull_r/qhull_ra.h | 41 | #include <math.h> |
| LOW | subprojects/qhull_r/libqhull_r/qhull_ra.h | 81 | #define trace1(args) {if (qh->IStracing >= 1) qh_fprintf args;} |
| LOW | subprojects/qhull_r/libqhull_r/qset_r.c | 21 | #include "libqhull_r.h" /* for qhT and QHULL_CRTDBG */ |
| LOW | subprojects/qhull_r/libqhull_r/libqhull_r.h | 101 | >--------------------------------</a><a name="boolT">-</a> |
| LOW | subprojects/qhull_r/libqhull_r/libqhull_r.h | 181 | */ |
| LOW | subprojects/duccfft/ducc0/infra/threading.h | 61 | // Mutex, UniqueLock, LockGuard, CondVar, set_active_pool(), |
| LOW | subprojects/duccfft/ducc0/infra/threading.h | 81 | #include <optional> |
| LOW | subprojects/duccfft/ducc0/infra/useful_macros.h | 61 | #define DUCC0_PREFETCH_W(addr) __builtin_prefetch(addr,1); |
| LOW | subprojects/duccfft/ducc0/infra/simd.h | 121 | using detail_simd::simd_exists; |
| LOW | subprojects/duccfft/ducc0/infra/simd.h | 141 | #elif defined(__GNUC__) |
| LOW | subprojects/duccfft/ducc0/infra/simd.h | 161 | #if defined(__ARM_FEATURE_SVE) && defined(__ARM_FEATURE_SVE_BITS) |
| LOW | subprojects/duccfft/ducc0/fft/fftnd_impl.h | 61 | #include <numeric> |
| LOW | subprojects/duccfft/ducc0/fft/fft1d_impl.h | 61 | |
| LOW | subprojects/duccfft/ducc0/bindings/pybind_utils.h | 41 | * You should have received a copy of the GNU General Public License |
| LOW | subprojects/duccfft/ducc0/bindings/pybind_utils.h | 61 | #include <nanobind/stl/variant.h> |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/update.py | 161 | # the "pole position" in his comments. CONMAT, CVAL, FVAL, and SIMI are updated accordingly. |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/update.py | 221 | if 0 <= jopt < num_vars: |
| LOW | …prima/pyprima/pyprima/src/pyprima/cobyla/initialize.py | 41 | assert num_constraints >= 0, f'M >= 0 {srname}' |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobyla.py | 341 | if xu is not None: |
| LOW | …rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py | 241 | # Powell did, we should use the UNUPDATED version, namely ZDASAV. |
| LOW | …rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py | 341 | sqrtd = max(np.sqrt(ss*dd + sd*sd), abs(sd), np.sqrt(ss * dd)) |
| LOW | …rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py | 361 | # !if (dd <= 0) then |
| LOW | …rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py | 461 | #====================# |
| LOW | …rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py | 481 | # delta = delta_in |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py | 41 | # Local variables |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py | 81 | |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py | 121 | # Postconditions |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py | 141 | # We must initialize shortd, ratio, and jdrop_tr because these get defined on |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py | 161 | gamma3 = np.maximum(1, np.minimum(0.75 * gamma2, 1.5)) |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py | 181 | # Increase the penalty parameter CPEN, if needed, so that |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py | 201 | |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py | 221 | d = trstlp(A, -conmat[:, num_vars], delta, g) |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py | 301 | # N.B.: |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py | 321 | # hence a bad model) rather than an improperly large DELTA, and it might |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py | 361 | # 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.py | 381 | # especially for linearly constrained problems due to the factor TENTH (= ETA1). |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py | 401 | # 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.py | 421 | # distinction makes no practical difference for CUTEst problems with at most 100 variables |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py | 441 | # 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.py | 601 | assert np.size(simi, 0) == num_vars and np.size(simi, 1) == num_vars |
| 854 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tools/write_release_and_log.py | 40 | # ---------------------------- |
| MEDIUM | tools/write_release_and_log.py | 42 | # ---------------------------- |
| MEDIUM | tools/generate_cython_abi_tests.py | 26 | # --------------------------------------------------------------------------- |
| MEDIUM | tools/generate_cython_abi_tests.py | 28 | # --------------------------------------------------------------------------- |
| MEDIUM | tools/generate_cython_abi_tests.py | 54 | # --------------------------------------------------------------------------- |
| MEDIUM | tools/generate_cython_abi_tests.py | 56 | # --------------------------------------------------------------------------- |
| MEDIUM | tools/generate_cython_abi_tests.py | 82 | # --------------------------------------------------------------------------- |
| MEDIUM | tools/generate_cython_abi_tests.py | 84 | # --------------------------------------------------------------------------- |
| MEDIUM | tools/generate_cython_abi_tests.py | 120 | # --------------------------------------------------------------------------- |
| MEDIUM | tools/generate_cython_abi_tests.py | 126 | # --------------------------------------------------------------------------- |
| MEDIUM | tools/generate_cython_abi_tests.py | 158 | # --------------------------------------------------------------------------- |
| MEDIUM | tools/generate_cython_abi_tests.py | 160 | # --------------------------------------------------------------------------- |
| MEDIUM | tools/generate_cython_abi_tests.py | 233 | # --------------------------------------------------------------------------- |
| MEDIUM | tools/generate_cython_abi_tests.py | 235 | # --------------------------------------------------------------------------- |
| MEDIUM | tools/authors.py | 174 | #------------------------------------------------------------------------------ |
| MEDIUM | tools/authors.py | 176 | #------------------------------------------------------------------------------ |
| MEDIUM | tools/authors.py | 233 | #------------------------------------------------------------------------------ |
| MEDIUM | …nchmarks/go_benchmark_functions/go_funcs_univariate.py | 6 | #----------------------------------------------------------------------- |
| MEDIUM | …nchmarks/go_benchmark_functions/go_funcs_univariate.py | 8 | #----------------------------------------------------------------------- |
| MEDIUM | .github/workflows/linux_intel_oneAPI.yml | 12 | # ┌───────────── minute (0 - 59) |
| MEDIUM | .github/workflows/linux_intel_oneAPI.yml | 13 | # │ ┌───────────── hour (0 - 23) |
| MEDIUM | .github/workflows/linux_intel_oneAPI.yml | 14 | # │ │ ┌───────────── day of the month (1 - 31) |
| MEDIUM | .github/workflows/linux_intel_oneAPI.yml | 15 | # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) |
| MEDIUM | .github/workflows/linux_intel_oneAPI.yml | 16 | # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) |
| MEDIUM | .github/workflows/wheels.yml | 108 | # ------------------------- |
| MEDIUM | .github/workflows/windows_intel_oneAPI.yml | 13 | # ┌───────────── minute (0 - 59) |
| MEDIUM | .github/workflows/windows_intel_oneAPI.yml | 14 | # │ ┌───────────── hour (0 - 23) |
| MEDIUM | .github/workflows/windows_intel_oneAPI.yml | 15 | # │ │ ┌───────────── day of the month (1 - 31) |
| MEDIUM | .github/workflows/windows_intel_oneAPI.yml | 16 | # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) |
| MEDIUM | .github/workflows/windows_intel_oneAPI.yml | 17 | # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) |
| MEDIUM | .github/workflows/array_api.yml | 12 | # ┌───────────── minute (0 - 59) |
| MEDIUM | .github/workflows/array_api.yml | 13 | # │ ┌───────────── hour (0 - 23) |
| MEDIUM | .github/workflows/array_api.yml | 14 | # │ │ ┌───────────── day of the month (1 - 31) |
| MEDIUM | .github/workflows/array_api.yml | 15 | # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) |
| MEDIUM | .github/workflows/array_api.yml | 16 | # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) |
| MEDIUM | doc/source/conf.py | 279 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 281 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 286 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 288 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 317 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 319 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 327 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 329 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 29 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 31 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 199 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 201 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 300 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 302 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 344 | #------------------------------------------------------------------------------ |
| MEDIUM | doc/source/conf.py | 346 | #------------------------------------------------------------------------------ |
| MEDIUM | doc/source/conf.py | 391 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 393 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 422 | #------------------------------------------------------------------------------ |
| MEDIUM | doc/source/conf.py | 424 | #------------------------------------------------------------------------------ |
| MEDIUM | doc/source/conf.py | 436 | # ----------------------------------------------------------------------------- |
| MEDIUM | doc/source/conf.py | 438 | # ----------------------------------------------------------------------------- |
| MEDIUM | …rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py | 80 | # ================== |
| MEDIUM | …rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py | 82 | # ================== |
| MEDIUM | …rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py | 104 | # ================ |
| 179 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …hmarks/benchmarks/go_benchmark_functions/go_funcs_S.py | 260 | # This class defines the Schmidt-Vetters global optimization problem. This |
| MEDIUM | .github/label-filename.yml | 1 | # This file contains globs for automatically adding labels based on changed files, |
| MEDIUM | .github/label-title-on-close.yml | 1 | # This file contains regexes for automatically adding labels to PRs which have been merged. |
| MEDIUM | .github/label-title.yml | 1 | # This file contains regexes for automatically adding labels based on issue/PR titles, |
| MEDIUM | .github/workflows/linux_blas.yml | 3 | # This file is meant for testing LP64/ILP64 BLAS/LAPACK flavors and build |
| MEDIUM | doc/source/conf.py | 562 | # Create the admonition node, to be populated by `nested_parse` |
| MEDIUM | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobyla.py | 520 | # Define the indices of the nontrivial bound constraints. |
| MEDIUM | …pyprima/pyprima/pyprima/src/pyprima/cobyla/geometry.py | 51 | # The following code is Powell's scheme for defining JDROP. |
| MEDIUM | …ts/pyprima/pyprima/pyprima/src/pyprima/common/infos.py | 26 | # The following codes are used by ERROR STOP as stop-codes, which should be default integers. |
| MEDIUM | scipy/cluster/hierarchy/_hierarchy_impl.py | 1366 | # Create a list full of None's to store the node objects |
| MEDIUM | scipy/cluster/hierarchy/_hierarchy_impl.py | 1369 | # Create the nodes corresponding to the n original objects. |
| MEDIUM | scipy/ndimage/interpolation.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/ndimage/morphology.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/ndimage/fourier.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/ndimage/filters.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/ndimage/measurements.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/linalg/decomp_qr.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/linalg/misc.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/linalg/decomp_cholesky.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/linalg/decomp_lu.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/linalg/decomp_svd.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/linalg/_matfuncs_sqrtm.py | 73 | # Define the index range covered by each block. |
| MEDIUM | scipy/linalg/matfuncs.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/linalg/basic.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/linalg/decomp.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/linalg/special_matrices.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/linalg/decomp_schur.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/linalg/_special_matrices.py | 254 | # This function is a slightly modified version of the |
| MEDIUM | scipy/linalg/tests/test_decomp.py | 3119 | # Create an array with boundary offset 4 |
| MEDIUM | scipy/linalg/tests/test_decomp.py | 3134 | # Create an array with boundary offset 4 |
| MEDIUM | scipy/linalg/tests/test_decomp.py | 3147 | # Create an array with boundary offset 8 |
| MEDIUM | scipy/linalg/tests/test_lapack.py | 1264 | # Create the RFP array manually (n is even!) |
| MEDIUM | scipy/linalg/tests/test_lapack.py | 1316 | # Create the TP array manually |
| MEDIUM | scipy/linalg/tests/test_procrustes.py | 91 | # Create a perturbed input matrix. |
| MEDIUM | scipy/optimize/tnc.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/optimize/optimize.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/optimize/linesearch.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/optimize/nonlin.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/optimize/lbfgsb.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/optimize/zeros.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/optimize/_shgo.py | 768 | # Initialize return object |
| MEDIUM | scipy/optimize/slsqp.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/optimize/minpack.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/optimize/_basinhopping.py | 43 | """This class implements the core of the basinhopping algorithm. |
| MEDIUM | scipy/optimize/_slsqp_py.py | 573 | # The following functions modify their first input argument in-place. |
| MEDIUM | scipy/optimize/minpack2.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/optimize/cobyla.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/optimize/moduleTNC.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/optimize/_differentialevolution.py | 540 | """This class implements the differential evolution solver |
| MEDIUM | scipy/optimize/_differentialevolution.py | 1054 | # Create an array for population of candidate solutions. |
| MEDIUM | scipy/optimize/_differentialevolution.py | 1087 | # Create an array for population of candidate solutions. |
| MEDIUM | scipy/optimize/_dcsrch.py | 342 | # Initialize local variables. |
| MEDIUM | scipy/optimize/_dcsrch.py | 402 | # Define the modified function and derivative values. |
| MEDIUM | scipy/optimize/tests/test_nnls.py | 89 | # The following code sets up a system of equations such that |
| MEDIUM | scipy/optimize/tests/test_nnls.py | 147 | # The following code sets up a system of equations such that |
| MEDIUM | scipy/optimize/_shgo_lib/_complex.py | 1098 | # Create the vertex origin |
| MEDIUM | scipy/integrate/quadpack.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/integrate/vode.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/integrate/lsoda.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| MEDIUM | scipy/integrate/dop.py | 1 | # This file is not meant for public use and will be removed in SciPy v2.0.0. |
| 156 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 44 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 45 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 46 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 47 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 48 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 49 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 50 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 51 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 52 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 53 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 54 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 55 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 56 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 57 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 58 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 59 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 60 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 61 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 62 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 63 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 64 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 65 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 66 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 67 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 68 | |
| LOW | …nchmarks/benchmarks/go_benchmark_functions/__init__.py | 69 | |
| LOW | …arks/benchmarks/go_benchmark_functions/go_benchmark.py | 4 | |
| LOW | doc/source/tutorial/conftest.py | 1 | |
| LOW | …ojects/pyprima/pyprima/pyprima/src/pyprima/__init__.py | 2 | |
| LOW | scipy/conftest.py | 35 | |
| LOW | scipy/conftest.py | 74 | |
| LOW | scipy/conftest.py | 81 | |
| LOW | scipy/__init__.py | 55 | |
| LOW | scipy/__init__.py | 47 | |
| LOW | scipy/__init__.py | 82 | |
| LOW | scipy/_distributor_init.py | 16 | |
| LOW | scipy/cluster/__init__.py | 27 | |
| LOW | scipy/cluster/__init__.py | 27 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| LOW | scipy/cluster/hierarchy/__init__.py | 100 | |
| 609 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .spin/cmds.py | 64 | |
| LOW | .spin/cmds.py | 188 | |
| LOW | .spin/cmds.py | 1138 | |
| LOW | tools/check_python_h_first.py | 66 | |
| LOW | tools/refguide_check.py | 207 | |
| LOW | tools/refguide_check.py | 495 | |
| LOW | tools/numpydoc_lint.py | 614 | |
| LOW | tools/refguide_summaries.py | 43 | |
| LOW | tools/check_unicode.py | 26 | |
| LOW | tools/check_test_name.py | 96 | |
| LOW | tools/generate_f2pymod.py | 68 | |
| LOW | tools/generate_f2pymod.py | 140 | |
| LOW | tools/generate_f2pymod.py | 224 | |
| LOW | benchmarks/benchmarks/optimize.py | 543 | |
| LOW | benchmarks/benchmarks/lsq_problems.py | 466 | |
| LOW | benchmarks/benchmarks/linalg.py | 112 | |
| LOW | benchmarks/benchmarks/common.py | 80 | |
| LOW | benchmarks/benchmarks/common.py | 230 | |
| LOW | benchmarks/benchmarks/stats.py | 220 | |
| LOW | benchmarks/benchmarks/stats.py | 387 | |
| LOW | benchmarks/benchmarks/sparse.py | 102 | |
| LOW | benchmarks/benchmarks/fft_basic.py | 245 | |
| LOW | benchmarks/benchmarks/fft_basic.py | 284 | |
| LOW | …hmarks/benchmarks/go_benchmark_functions/go_funcs_D.py | 242 | |
| LOW | benchmarks/benchmarks/cutest/dfovec.py | 6 | |
| LOW | benchmarks/benchmarks/cutest/calfun.py | 16 | |
| LOW | benchmarks/benchmarks/cutest/dfoxs.py | 6 | |
| LOW | doc/source/array_api_capabilities_table.py | 110 | |
| LOW | …ojects/pyprima/pyprima/pyprima/src/pyprima/__init__.py | 24 | |
| LOW | …ojects/pyprima/pyprima/pyprima/src/pyprima/__init__.py | 37 | |
| LOW | …ojects/pyprima/pyprima/pyprima/src/pyprima/__init__.py | 79 | |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobyla.py | 487 | |
| LOW | …rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py | 116 | |
| LOW | …ts/pyprima/pyprima/pyprima/src/pyprima/common/ratio.py | 14 | |
| LOW | …/pyprima/pyprima/pyprima/src/pyprima/common/message.py | 27 | |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/common/linalg.py | 59 | |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/common/linalg.py | 106 | |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/common/linalg.py | 198 | |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/common/linalg.py | 234 | |
| LOW | …/pyprima/pyprima/pyprima/src/pyprima/common/preproc.py | 20 | |
| LOW | …pyprima/pyprima/pyprima/src/pyprima/common/_project.py | 17 | |
| LOW | scipy/conftest.py | 107 | |
| LOW | scipy/conftest.py | 360 | |
| LOW | scipy/conftest.py | 582 | |
| LOW | scipy/cluster/hierarchy/_hierarchy_impl.py | 2420 | |
| LOW | scipy/cluster/hierarchy/_hierarchy_impl.py | 2814 | |
| LOW | scipy/cluster/hierarchy/_hierarchy_impl.py | 3477 | |
| LOW | scipy/cluster/hierarchy/_hierarchy_impl.py | 1115 | |
| LOW | scipy/ndimage/_ni_support.py | 37 | |
| LOW | scipy/ndimage/_ni_support.py | 78 | |
| LOW | scipy/ndimage/_ni_support.py | 110 | |
| LOW | scipy/ndimage/_support_alternative_backends.py | 37 | |
| LOW | scipy/ndimage/_support_alternative_backends.py | 38 | |
| LOW | scipy/ndimage/_support_alternative_backends.py | 40 | |
| LOW | scipy/ndimage/_filters.py | 1928 | |
| LOW | scipy/ndimage/_morphology.py | 216 | |
| LOW | scipy/ndimage/_morphology.py | 1292 | |
| LOW | scipy/ndimage/_morphology.py | 1987 | |
| LOW | scipy/linalg/_matfuncs_inv_ssq.py | 311 | |
| LOW | scipy/linalg/_matfuncs_inv_ssq.py | 516 | |
| 432 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | scipy/linalg/tests/test_cython_abi.py | 0 | return {name: signature} for every entry in module.__pyx_capi__. |
| HIGH | scipy/optimize/tests/test_cython_abi.py | 0 | return {name: signature} for every entry in module.__pyx_capi__. |
| HIGH | scipy/special/tests/test_cython_abi.py | 0 | return {name: signature} for every entry in module.__pyx_capi__. |
| HIGH | scipy/linalg/tests/test_solvers.py | 0 | checks if x = a'xa-(a'xb)(r+b'xb)^-1(b'xa)+q) is true |
| HIGH | scipy/linalg/tests/test_solvers.py | 0 | checks if x = a'xa-(a'xb)(r+b'xb)^-1(b'xa)+q) is true |
| HIGH | scipy/linalg/tests/test_solvers.py | 0 | checks if x = a'xa-(a'xb)(r+b'xb)^-1(b'xa)+q) is true |
| HIGH | scipy/optimize/_root.py | 0 | wrapped `func` to track the number of times the function has been called. |
| HIGH | scipy/optimize/_root.py | 0 | wrapped `func` to track the number of times the function has been called. |
| HIGH | scipy/optimize/_minpack_py.py | 0 | wrapped `func` to track the number of times the function has been called. |
| HIGH | scipy/optimize/_root_scalar.py | 0 | options ------- args : tuple, optional extra arguments passed to the objective function. bracket: a sequence of 2 floats |
| HIGH | scipy/optimize/_root_scalar.py | 0 | options ------- args : tuple, optional extra arguments passed to the objective function. bracket: a sequence of 2 floats |
| HIGH | scipy/optimize/_root_scalar.py | 0 | options ------- args : tuple, optional extra arguments passed to the objective function. bracket: a sequence of 2 floats |
| HIGH | scipy/optimize/_root_scalar.py | 0 | options ------- args : tuple, optional extra arguments passed to the objective function. bracket: a sequence of 2 floats |
| HIGH | scipy/optimize/tests/test_minimize_constrained.py | 0 | problem 15.4 from nocedal and wright the following optimization problem: minimize 2*(x[0]**2 + x[1]**2 - 1) - x[0] subje |
| HIGH | scipy/optimize/tests/test_minimize_constrained.py | 0 | problem 15.4 from nocedal and wright the following optimization problem: minimize 2*(x[0]**2 + x[1]**2 - 1) - x[0] subje |
| HIGH | scipy/optimize/tests/test_minimize_constrained.py | 0 | problem 15.4 from nocedal and wright the following optimization problem: minimize 2*(x[0]**2 + x[1]**2 - 1) - x[0] subje |
| HIGH | scipy/io/_mmio.py | 0 | the default value for `spmatrix` is changing to `false` in v1.20. that means the default return type will be a sparse ar |
| HIGH | scipy/io/_fast_matrix_market/__init__.py | 0 | the default value for `spmatrix` is changing to `false` in v1.20. that means the default return type will be a sparse ar |
| HIGH | scipy/io/_harwell_boeing/hb.py | 0 | the default value for `spmatrix` is changing to `false` in v1.20. that means the default return type will be a sparse ar |
| HIGH | scipy/io/matlab/_mio.py | 0 | the default value for `spmatrix` is changing to `false` in v1.20. that means the default return type will be a sparse ar |
| HIGH | scipy/_lib/_array_api.py | 0 | backwards compatible replacement. in new code, use xp_assert_close instead. |
| HIGH | scipy/_lib/_array_api.py | 0 | backwards compatible replacement. in new code, use xp_assert_close instead. |
| HIGH | scipy/_lib/_array_api_no_0d.py | 0 | backwards compatible replacement. in new code, use xp_assert_close instead. |
| HIGH | scipy/_lib/_array_api_no_0d.py | 0 | backwards compatible replacement. in new code, use xp_assert_close instead. |
| HIGH | scipy/interpolate/_interpolate.py | 0 | construct the piecewise polynomial without making checks. takes the same parameters as the constructor. input arguments |
| HIGH | scipy/interpolate/_interpolate.py | 0 | construct the piecewise polynomial without making checks. takes the same parameters as the constructor. input arguments |
| HIGH | scipy/interpolate/_interpolate.py | 0 | construct the piecewise polynomial without making checks. takes the same parameters as the constructor. input arguments |
| HIGH | scipy/sparse/linalg/tests/test_special_sparse_arrays.py | 0 | test the dot-product for type preservation and consistency. |
| HIGH | scipy/sparse/linalg/tests/test_special_sparse_arrays.py | 0 | test the dot-product for type preservation and consistency. |
| HIGH | scipy/sparse/linalg/tests/test_special_sparse_arrays.py | 0 | test the dot-product for type preservation and consistency. |
| HIGH | scipy/signal/_ltisys.py | 0 | initialize the `lti` baseclass. the heavy lifting is done by the subclasses. |
| HIGH | scipy/signal/_ltisys.py | 0 | initialize the `lti` baseclass. the heavy lifting is done by the subclasses. |
| HIGH | scipy/signal/_ltisys.py | 0 | initialize the `lti` baseclass. the heavy lifting is done by the subclasses. |
| HIGH | scipy/stats/_multivariate.py | 0 | check whether x lies in the support of the distribution. |
| HIGH | scipy/stats/_covariance.py | 0 | check whether x lies in the support of the distribution. |
| HIGH | scipy/stats/_covariance.py | 0 | check whether x lies in the support of the distribution. |
| HIGH | scipy/stats/_multivariate.py | 0 | \ see class definition for a detailed description of parameters. |
| HIGH | scipy/stats/_multivariate.py | 0 | \ see class definition for a detailed description of parameters. |
| HIGH | scipy/stats/_multivariate.py | 0 | \ see class definition for a detailed description of parameters. |
| HIGH | scipy/stats/_multivariate.py | 0 | \ see class definition for a detailed description of parameters. |
| HIGH | scipy/stats/_multivariate.py | 0 | \ see class definition for a detailed description of parameters. |
| HIGH | scipy/stats/_multivariate.py | 0 | \ see class definition for a detailed description of parameters. |
| HIGH | scipy/stats/_multivariate.py | 0 | \ see class definition for a detailed description of parameters. |
| HIGH | scipy/stats/_multivariate.py | 0 | \ see class definition for a detailed description of parameters. |
| HIGH | scipy/stats/_multivariate.py | 0 | \ see class definition for a detailed description of parameters. |
| HIGH | scipy/stats/_multivariate.py | 0 | \ see class definition for a detailed description of parameters. |
| HIGH | scipy/stats/_multivariate.py | 0 | adjust quantiles array so that last axis labels the components of each data point. |
| HIGH | scipy/stats/_multivariate.py | 0 | adjust quantiles array so that last axis labels the components of each data point. |
| HIGH | scipy/stats/_multivariate.py | 0 | adjust quantiles array so that last axis labels the components of each data point. |
| HIGH | scipy/stats/_multivariate.py | 0 | dimension n must be specified; it cannot be inferred. |
| HIGH | scipy/stats/_multivariate.py | 0 | dimension n must be specified; it cannot be inferred. |
| HIGH | scipy/stats/_multivariate.py | 0 | dimension n must be specified; it cannot be inferred. |
| HIGH | scipy/stats/_multivariate.py | 0 | dimension n must be specified; it cannot be inferred. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/check_unicode.py | 42 | # Read the file as bytes, and check for any bytes greater than 127. |
| LOW | tools/ninjatracing.py | 103 | # Check if any event duration is greater than the duration from ninja. |
| LOW | …rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py | 290 | # Set sdirn to the direction of the next change to the current vector of variables |
| LOW | …rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py | 322 | # Set sdirn to the direction of the next change to the current vector of variables. |
| LOW | …rima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py | 377 | # 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.py | 388 | # 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.py | 330 | delta = rho # Set delta to rho when it is close to or below. |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobylb.py | 335 | # 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.py | 77 | elif iprint > 0: # Print the message to the standard out. |
| LOW | …/pyprima/pyprima/pyprima/src/pyprima/common/message.py | 79 | else: # Print the message to a file named FNAME. |
| LOW | …/pyprima/pyprima/pyprima/src/pyprima/common/message.py | 118 | # Print the message. |
| LOW | …/pyprima/pyprima/pyprima/src/pyprima/common/message.py | 140 | elif iprint > 0: # Print the message to the standard out. |
| LOW | …/pyprima/pyprima/pyprima/src/pyprima/common/message.py | 142 | else: # Print the message to a file named FNAME. |
| LOW | …/pyprima/pyprima/pyprima/src/pyprima/common/message.py | 184 | # Print the message. |
| LOW | …/pyprima/pyprima/pyprima/src/pyprima/common/message.py | 210 | elif iprint > 0: # Print the message to the standard out. |
| LOW | …/pyprima/pyprima/pyprima/src/pyprima/common/message.py | 212 | else: # Print the message to a file named FNAME. |
| LOW | …/pyprima/pyprima/pyprima/src/pyprima/common/message.py | 215 | # Print the message. |
| LOW | …/pyprima/pyprima/pyprima/src/pyprima/common/message.py | 241 | elif iprint > 0: # Print the message to the standard out. |
| LOW | …/pyprima/pyprima/pyprima/src/pyprima/common/message.py | 243 | else: # Print the message to a file named FNAME. |
| LOW | …/pyprima/pyprima/pyprima/src/pyprima/common/message.py | 281 | # Print the message. |
| LOW | scipy/conftest.py | 323 | # Check if ``uses_xp_capabilities`` mark is present. |
| LOW | scipy/linalg/_decomp.py | 610 | # Check if we had a successful exit |
| LOW | scipy/linalg/_generate_pyx.py | 99 | # Check if scipy's cython_blas exports blas_int (ILP64 support). |
| LOW | scipy/linalg/_generate_pyx.py | 198 | # Check if scipy's cython_lapack exports blas_int (ILP64 support). |
| LOW | scipy/linalg/_solvers.py | 844 | # Check if the data matrices q, r are (sufficiently) hermitian |
| LOW | scipy/linalg/_solvers.py | 855 | # Check if the generalized case is required with omitted arguments |
| LOW | scipy/linalg/tests/test_decomp.py | 2242 | # Check if the result is actually correct & check overwrite behavior |
| LOW | scipy/optimize/_shgo.py | 539 | # Check if bounds are correctly specified |
| LOW | scipy/optimize/_linprog_simplex.py | 368 | # Check if any artificial variables are still in the basis. |
| LOW | scipy/optimize/_hessian_update_strategy.py | 404 | # Check if curvature condition is violated |
| LOW | scipy/optimize/_dual_annealing.py | 439 | # Check if is valid value |
| LOW | scipy/optimize/_trustregion_exact.py | 327 | # Check if factorization succeeded |
| LOW | scipy/optimize/_trustregion_exact.py | 383 | # Check if the factorization have succeeded |
| LOW | scipy/optimize/tests/test_optimize.py | 51 | # Verify if check_grad is able to estimate the derivative of the |
| LOW | scipy/optimize/tests/test_optimize.py | 75 | # Check if the epsilon parameter is being considered. |
| LOW | scipy/optimize/tests/test__dual_annealing.py | 337 | # Check if update is accepted. |
| LOW | scipy/optimize/tests/test_trustregion_exact.py | 92 | # Check if the leading submatrix is singular. |
| LOW | scipy/optimize/tests/test_trustregion_exact.py | 95 | # Check if `v` fulfil the specified properties |
| LOW | scipy/optimize/tests/test_trustregion_exact.py | 119 | # Check if the leading submatrix is singular. |
| LOW | scipy/optimize/tests/test_trustregion_exact.py | 122 | # Check if `v` fulfil the specified properties |
| LOW | scipy/optimize/tests/test_trustregion_exact.py | 144 | # Check if the leading submatrix is singular |
| LOW | scipy/optimize/tests/test_trustregion_exact.py | 147 | # Check if `v` fulfil the specified properties |
| LOW | scipy/optimize/tests/test_trustregion_exact.py | 356 | # Check if it respect k_trf |
| LOW | scipy/optimize/tests/test_trustregion_exact.py | 363 | # Check if it respect k_opt |
| LOW | scipy/optimize/_shgo_lib/_complex.py | 448 | # Check if generator already exists |
| LOW | scipy/optimize/_shgo_lib/_complex.py | 1116 | # Check if connected, else s_i is not a simplex |
| LOW | scipy/optimize/_lsq/common.py | 120 | # Check if J has full rank and try Gauss-Newton step. |
| LOW | scipy/optimize/_lsq/trf.py | 167 | # Check if reflection step is available. |
| LOW | scipy/optimize/_trustregion_constr/qp_subproblem.py | 217 | # Check if intersection is feasible |
| LOW | scipy/optimize/_trustregion_constr/qp_subproblem.py | 592 | # Check if ``x`` is inside the box and start counter if it is not. |
| LOW | scipy/optimize/_trustregion_constr/projections.py | 47 | # Check if norms are zero |
| LOW | scipy/integrate/tests/test_integrate.py | 276 | # Check if solout works even if it is set after the initial value. |
| LOW | scipy/io/_netcdf.py | 605 | # Read file headers and set data. |
| LOW | scipy/io/_idl.py | 798 | # Check if the end of the file has been reached |
| LOW | scipy/io/_idl.py | 826 | # Set f to be the decompressed file, and skip the first four bytes |
| LOW | scipy/io/_idl.py | 841 | # Close the file |
| LOW | scipy/io/tests/test_netcdf.py | 135 | # Read file from fileobj, with mmap |
| LOW | scipy/io/tests/test_netcdf.py | 438 | # Open the file in append mode and add data |
| LOW | scipy/io/tests/test_netcdf.py | 444 | # Read the file and check that append worked |
| LOW | scipy/io/tests/test_netcdf.py | 452 | # Read the file and check that 'data' was not saved as user defined |
| 39 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pixi.toml | 473 | # Note: we need BLAS support in Meson merged before we can simply use `-Dblas=mkl` |
| LOW | tools/gh_lists.py | 83 | # just use the first 80 characters, with ellipses. |
| LOW | benchmarks/benchmarks/optimize.py | 546 | # if so, then just return the ret_value |
| LOW | benchmarks/benchmarks/common.py | 316 | # Unknown, just return whatever is here. |
| LOW | .github/ccache/action.yml | 24 | # Note: we can't simply use restore followed by save because composite actions |
| MEDIUM | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/update.py | 138 | # Essentially jopt = np.argmin(phi). However, we keep jopt = num_vars unless there |
| LOW | …s/pyprima/pyprima/pyprima/src/pyprima/cobyla/cobyla.py | 454 | # In MATLAB/Python/Julia/R implementation, we should simply set MAXHIST = MAXFUN and initialize |
| LOW | …/pyprima/pyprima/pyprima/src/pyprima/common/preproc.py | 101 | # We cannot simply set MAXFILT = MIN(MAXFILT, MAXHISTMEM/...), as they may not have |
| MEDIUM | scipy/linalg/tests/test_decomp_lu.py | 190 | # Those matrices are more robust to detect problems in permutation |
| MEDIUM | scipy/linalg/src/_matfuncs_expm.c | 1097 | // We utilize the unused powers of Am as scratch memory depending on m value. |
| MEDIUM | scipy/linalg/src/_matfuncs_expm.c | 1312 | // We utilize the unused powers of Am as scratch memory depending on m value. |
| MEDIUM | scipy/linalg/src/_matfuncs_expm.c | 1530 | // We utilize the unused powers of Am as scratch memory depending on m value. |
| MEDIUM | scipy/linalg/src/_matfuncs_expm.c | 1866 | // We utilize the unused powers of Am as scratch memory depending on m value. |
| LOW | scipy/optimize/_optimize.py | 3210 | # If this is the case, then we can just return (0, 0) |
| MEDIUM | scipy/optimize/_bracket.py | 290 | # To facilitate this, `work.active` contains a unit integer index of |
| LOW | scipy/optimize/_lsq/least_squares.py | 70 | # lmdif and just use lmder. |
| LOW | scipy/optimize/_lsq/dogbox.py | 135 | # the bounds, and just return it constrained version if not. But in a |
| MEDIUM | scipy/optimize/_lsq/common.py | 721 | """Scale Jacobian and residuals for a robust loss function. |
| LOW | scipy/optimize/_trustregion_constr/tr_interior_point.py | 88 | # and just set both equality and inequality |
| MEDIUM | scipy/optimize/src/nnls.c | 27 | // Essentially a permuted gemv operation via BLAS ddot, in NumPy notation; |
| LOW | scipy/integrate/_quadrature.py | 129 | # Cannot just use the broadcasted arrays that are returned |
| MEDIUM | scipy/integrate/_lebedev.py | 52 | # combined with radial quadratures to provide robust cubature formulae. For |
| LOW | scipy/_lib/_util.py | 900 | # whenever mdhaber/marray#89 is resolved, could just return `res` |
| LOW | scipy/special/_mptestutils.py | 53 | # Outside of linspace range; just return a logspace. |
| LOW | scipy/special/_mptestutils.py | 56 | # Outside of logspace range; just return a linspace |
| LOW | scipy/special/_support_alternative_backends.py | 200 | # set in JAX. One cannot just use xp_promote for the input dtypes because |
| LOW | scipy/special/_support_alternative_backends.py | 207 | # JAX uses NumPy dtypes so we can just pass these directly to |
| LOW | scipy/special/tests/test_ufunc_signatures.py | 104 | # since we only care about dtypes and not values here, just use an appropriately |
| MEDIUM | scipy/differentiate/_differentiate.py | 239 | https://www.mathworks.com/matlabcentral/fileexchange/13490-adaptive-robust-numerical-differentiation |
| LOW | scipy/interpolate/_rbfinterp.py | 474 | # If this number is below 1e6 we just use 1e6 |
| LOW | scipy/interpolate/_interpolate.py | 418 | # For slinear or zero order spline, we just pass nans through. |
| LOW | scipy/sparse/_coo.py | 141 | # index overflow. This is why we can't simply call |
| MEDIUM | scipy/sparse/linalg/_svdp.py | 242 | # work arrays to utilize BLAS level 3 operations. In almost all relevant |
| LOW | scipy/sparse/linalg/_eigen/arpack/arpack.py | 19 | # may use eigsh(), but eigsh() will simply call eigs() |
| MEDIUM | scipy/sparse/linalg/_eigen/tests/test_svds.py | 859 | # I can't see a robust relationship between `ncv` and relevant outputs |
| MEDIUM | scipy/sparse/linalg/tests/test_propack.py | 35 | # It is not very robust to arbitrary seeding since partial reorthogonalization |
| MEDIUM | scipy/sparse/tests/test_base.py | 946 | # comprehensive test |
| LOW | scipy/signal/_ltisys.py | 2217 | # Zero input: just use matrix exponential |
| MEDIUM | scipy/signal/tests/_scipy_spectral_test_shim.py | 1 | """Helpers to utilize existing stft / istft tests for testing `ShortTimeFFT`. |
| MEDIUM | scipy/signal/windows/_windows.py | 2207 | # sufficiently smooth functions, and more robust than relying on an |
| MEDIUM | scipy/stats/_stats_py.py | 9624 | # To facilitate comparison with [1], we'll use variable names that |
| MEDIUM | scipy/stats/_stats_py.py | 10663 | # Writen to match [1] Equation 27 closely to facilitate review. |
| MEDIUM | scipy/stats/_qmvnt.py | 244 | # included in this file to facilitate the resolution of gh-8367, gh-16142, and |
| MEDIUM | scipy/stats/_discrete_distns.py | 1549 | # Thus, we can leverage the following: |
| LOW | scipy/stats/_continuous_distns.py | 470 | # Without this check, this function would just return the |
| LOW | scipy/stats/_continuous_distns.py | 3663 | # Without this check, this function would just return the |
| LOW | scipy/stats/_continuous_distns.py | 6250 | # Without this check, this function would just return the |
| LOW | scipy/stats/_continuous_distns.py | 8465 | # to handle inside pearson3._pdf) or negative. So just return True |
| LOW | scipy/stats/_distribution_infrastructure.py | 101 | # mind NaNs; they just return NaN. The behavior "If x_i is NaN, the result |
| MEDIUM | scipy/stats/_distribution_infrastructure.py | 1115 | # cases. That would be a bit more robust, but it would also be quite |
| MEDIUM | scipy/stats/_distribution_infrastructure.py | 1932 | # raises a distribution-specific error message to facilitate |
| MEDIUM | scipy/stats/tests/test_mstats_basic.py | 1098 | # method is robust to outliers: brekdown point of 50% |
| MEDIUM | scipy/stats/tests/test_continuous_basic.py | 139 | # TODO: multiple checks in this function are not robust, tweaking the |
| MEDIUM | scipy/stats/tests/test_hypotests.py | 2004 | # because games_howell leverage _tukey_hsd_iv() |
| LOW | scipy/stats/tests/test_axis_nan_policy.py | 262 | # For some functions, nan_policy='propagate' should not just return NaNs |
| MEDIUM | scipy/stats/tests/test_correlation.py | 394 | # method is robust to outliers: breakdown point of 50% |
| LOW | scipy/stats/tests/test_distributions.py | 5026 | # this try-except wrapper and just call the function. |
| MEDIUM | scipy/stats/tests/data/_mvt.py | 8 | # Defined to facilitate comparison between translation and source |
| MEDIUM | scipy/stats/tests/data/_mvt.py | 14 | # Defined to facilitate comparison between translation and source |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .spin/cmds.py | 1083 | except Exception: |
| LOW | .spin/cmds.py | 1104 | except Exception: |
| LOW | .spin/cmds.py | 1170 | except Exception as e: |
| MEDIUM | .spin/cmds.py | 1075 | def _count_physical_cores_linux(): |
| MEDIUM | .spin/cmds.py | 1094 | def _count_physical_cores_win32(): |
| LOW | tools/refguide_check.py | 240 | except Exception: |
| LOW | tools/refguide_check.py | 411 | except Exception: |
| LOW | benchmarks/benchmarks/optimize.py | 581 | except Exception: |
| LOW | benchmarks/benchmarks/sparse.py | 285 | except Exception: |
| LOW | doc/source/conf.py | 484 | except Exception: |
| LOW | doc/source/conf.py | 489 | except Exception: |
| LOW | doc/source/conf.py | 496 | except Exception: |
| LOW | doc/source/conf.py | 472 | except Exception: |
| LOW | scipy/conftest.py | 37 | except Exception: |
| LOW | scipy/conftest.py | 75 | except Exception: |
| LOW | scipy/conftest.py | 82 | except Exception: |
| LOW | scipy/conftest.py | 130 | except Exception: # observed in gh-14441: (ImportError, AttributeError) |
| LOW | scipy/conftest.py | 150 | except Exception: |
| LOW | scipy/cluster/hierarchy/tests/test_hierarchy.py | 77 | except Exception: |
| LOW | scipy/ndimage/_morphology.py | 2373 | except Exception as e: |
| LOW | scipy/linalg/tests/test_lapack.py | 2562 | except Exception as e: |
| LOW | scipy/linalg/tests/test_lapack.py | 2577 | except Exception as e: |
| LOW | scipy/optimize/_linprog_ip.py | 109 | except Exception: |
| LOW | scipy/optimize/_linprog_ip.py | 142 | except Exception: |
| LOW | scipy/optimize/_minimize.py | 1116 | except Exception as e: |
| LOW | scipy/optimize/_linprog_util.py | 879 | except Exception: |
| LOW | scipy/optimize/_remove_redundancy.py | 195 | except Exception: |
| LOW | scipy/optimize/tests/test_zeros.py | 95 | except Exception: |
| LOW | scipy/optimize/_shgo_lib/_vertex.py | 455 | except Exception: |
| MEDIUM | scipy/optimize/_shgo_lib/_vertex.py | 234 | def __getitem__(self, x, nn=None): |
| LOW | scipy/integrate/_quadrature.py | 1038 | except Exception: |
| LOW | scipy/integrate/_quadrature.py | 1098 | except Exception as e: |
| LOW | scipy/integrate/_quadrature.py | 1108 | except Exception as e: |
| LOW | scipy/_lib/tests/test_array_api.py | 322 | except Exception as e: |
| LOW | scipy/_lib/tests/test_array_api.py | 364 | except Exception as e: |
| LOW | scipy/special/_mptestutils.py | 412 | except Exception: |
| MEDIUM | scipy/special/_mptestutils.py | 409 | def wrap(*a, **kw): |
| LOW | scipy/special/tests/test_mpmath.py | 209 | except Exception: |
| LOW | scipy/interpolate/_rgi.py | 297 | except Exception as e: |
| LOW | scipy/interpolate/_rgi.py | 302 | except Exception: |
| LOW | scipy/interpolate/_cubic.py | 1018 | except Exception as e: |
| LOW | scipy/interpolate/_rbfinterp_xp.py | 73 | except Exception: |
| LOW | scipy/interpolate/_fitpack_impl.py | 310 | except Exception: |
| LOW | scipy/interpolate/_fitpack_impl.py | 345 | except Exception: |
| LOW | scipy/interpolate/_fitpack_impl.py | 366 | except Exception: |
| LOW | scipy/interpolate/_fitpack_impl.py | 393 | except Exception: |
| LOW | scipy/interpolate/_fitpack_impl.py | 739 | except Exception: |
| LOW | scipy/sparse/_compressed.py | 87 | except Exception as e: |
| LOW | scipy/sparse/_compressed.py | 107 | except Exception as e: |
| LOW | scipy/sparse/_bsr.py | 108 | except Exception as e: |
| LOW | scipy/sparse/_bsr.py | 126 | except Exception as e: |
| LOW | scipy/sparse/_dia.py | 53 | except Exception as e: |
| LOW | scipy/sparse/_dia.py | 71 | except Exception as e: |
| LOW | scipy/sparse/_dok.py | 46 | except Exception as e: |
| LOW | scipy/sparse/linalg/_interface.py | 452 | except Exception as e: |
| LOW | scipy/sparse/linalg/_eigen/lobpcg/lobpcg.py | 85 | except Exception: |
| LOW | scipy/sparse/linalg/_eigen/lobpcg/lobpcg.py | 112 | except Exception as e: |
| LOW | scipy/sparse/linalg/_eigen/lobpcg/lobpcg.py | 556 | except Exception as e: |
| LOW | scipy/sparse/linalg/_eigen/lobpcg/lobpcg.py | 576 | except Exception as e: |
| LOW | scipy/sparse/linalg/_eigen/lobpcg/lobpcg.py | 592 | except Exception as e: |
| 28 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | scipy/ndimage/_filters.py | 2118 | behavior in the presence of NaNs is undefined, and memory consumption scales with |
| HIGH | scipy/optimize/_nnls.py | 10 | Solve ``argmin_x || Ax - b ||_2^2`` for ``x>=0``. |
| HIGH | scipy/interpolate/_fitpack_repro.py | 623 | minimize || W^{1/2} (Y - B c) ||^2 + s * c^T @ R @ c |
| HIGH | scipy/sparse/_data.py | 542 | is undefined, so the index ``0`` is returned for that row/column. |
| HIGH | scipy/sparse/_data.py | 574 | is undefined, so the index ``0`` is returned for that row/column. |
| HIGH | scipy/sparse/csgraph/__init__.py | 142 | accomplished over either G[i, j] or G[j, i]. If both edges are not null, |
| HIGH | scipy/stats/_binned_statistic.py | 664 | if np.iscomplexobj(null): |
| HIGH | scipy/stats/_binned_statistic.py | 666 | result.fill(null) |
| HIGH | scipy/stats/_mgc.py | 235 | statistic, under the null, at least as extreme as the observed test |
| HIGH | scipy/stats/_stats_py.py | 2999 | NaN (undefined). Non-positive observations will also produce NaNs in the |
| HIGH | scipy/stats/_stats_py.py | 6376 | # If df is undefined, variances are zero (assumes n1 > 0 & n2 > 0). |
| HIGH | scipy/stats/_resampling.py | 2066 | >>> unique = np.unique(null) |
| HIGH | scipy/stats/_resampling.py | 2079 | >>> incorrect_pvalue = np.count_nonzero(null >= r) / len(null) |
| HIGH | scipy/stats/_resampling.py | 2087 | >>> correct_pvalue = np.count_nonzero(null >= r - 1e-14) / len(null) |
| HIGH | scipy/stats/_mstats_basic.py | 1739 | # If df is undefined, variances are zero. |
| HIGH | scipy/stats/_distribution_infrastructure.py | 1756 | if _isnull(tol): |
| HIGH | scipy/stats/_distribution_infrastructure.py | 2004 | rtol = None if _isnull(self.tol) else self.tol |
| HIGH | scipy/stats/_distribution_infrastructure.py | 2033 | xrtol = None if _isnull(self.tol) else self.tol |
| HIGH | scipy/stats/tests/test_multivariate.py | 3415 | # distribution, so a low p-value represents rejecting the null, i.e. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scipy/integrate/src/lsoda.c | 947 | // Step 1: Initialize based on jstart |
| LOW | scipy/integrate/src/lsoda.c | 1005 | // Step 4: Handle corrector results |
| LOW | …x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c | 68 | // Step 2: Determine the interval of valid decimal representations. |
| LOW | …x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c | 75 | // Step 3: Convert to a decimal power base using 64-bit arithmetic. |
| LOW | …x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c | 154 | // Step 4: Find the shortest decimal representation in the interval of valid representations. |
| LOW | …x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c | 231 | // Step 5: Print the decimal representation. |
| LOW | …x_market/fast_matrix_market/dependencies/ryu/ryu/f2s.c | 309 | // Step 1: Decode the floating-point number, and unify normalized and subnormal cases. |
| LOW | …x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c | 109 | // Step 2: Determine the interval of valid decimal representations. |
| LOW | …x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c | 117 | // Step 3: Convert to a decimal power base using 128-bit arithmetic. |
| LOW | …x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c | 205 | // Step 4: Find the shortest decimal representation in the interval of valid representations. |
| LOW | …x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c | 315 | // Step 5: Print the decimal representation. |
| LOW | …x_market/fast_matrix_market/dependencies/ryu/ryu/d2s.c | 455 | // Step 1: Decode the floating-point number, and unify normalized and subnormal cases. |
| LOW | scipy/sparse/linalg/_propack/PROPACK/src/common.c | 267 | // Step 4: Store the interval [left_edge, right_edge] |
| LOW | scipy/sparse/linalg/_propack/PROPACK/src/common.c | 272 | // Step 5: Move past this interval for the next search |
| LOW | scipy/sparse/linalg/_propack/PROPACK/src/common.c | 561 | // Step 4: Store the interval [left_edge, right_edge] |
| LOW | scipy/sparse/linalg/_propack/PROPACK/src/common.c | 566 | // Step 5: Move past this interval for the next search |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | .github/workflows/codeql.yml | 53 | # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how |
| MEDIUM | scipy/linalg/tests/test_solvers.py | 837 | # Feel free to adjust this to test fewer dtypes or random selections rather than |
| LOW | scipy/optimize/_differentialevolution.py | 1132 | # make sure you're using a float array |
| LOW | scipy/io/matlab/_mio5_params.py | 5 | If you make changes in this file, don't forget to change mio5_utils.pyx |
| LOW | scipy/special/tests/test_basic.py | 3006 | # make sure to test both float and complex values; a different |