AI Slop Code RIsk Monitor

cvxpy/cvxpy

A Python-embedded modeling language for convex optimization problems.

22.7 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for cvxpy/cvxpy, a C++ project with 6,361 GitHub stars. SynthScan examined 259,350 lines of code across 901 source files, recording 2754 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 22.7 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

22.7
Adjusted Signal
22.7
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
6.4K
Stars
C++
Language
259.4K
Lines of Code
901
Files
2.8K
Pattern Hits
2026-10-12
Scan Date
0.82
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 27.2/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 5.7/100 · LOW

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

Agent Over-Engineering Ratio 60.8/100 · HIGH

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

PR Review Velocity Impact 72.5/100 · HIGH

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 0HIGH 742MEDIUM 112LOW 1900

Directory Score Breakdown

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

Pattern Findings

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

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

Cross-File Repetition723 hits · 3615 pts
SeverityFileLineSnippetContext
HIGHcopyright.txt0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHCONTRIBUTING.md0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHAGENTS.md0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHCLAUDE.md0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/__init__.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/logic.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/atoms/length.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/atoms/dist_ratio.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/atoms/sign.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/atoms/inv_prod.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/atoms/cumprod.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/atoms/gmatmul.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/atoms/affine/concatenate.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/atoms/affine/einsum.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/atoms/affine/block.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/atoms/affine/broadcast_to.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/atoms/elementwise/ceil.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/atoms/elementwise/logic.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/constraints/nonpos.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_solver_data_validation.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_param_quad_prog.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_extract_direct_cones.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_cone_restructuring.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_diffengine_backend.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_errors.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_dcp2cone_cse.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_copy.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_copt_write.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_gurobi_write.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_matrix_utilities.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_openmp_conflict.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_canon_sign.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_scopes.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_canon_methods.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_solver.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_dqcp.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_param_cone_prog.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_einsum.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_clarabel.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_fuzz_reshape.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_logic.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_problem_form.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/test_quad_dpp.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/nlp_tests/derivative_checker.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/nlp_tests/test_abs.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/nlp_tests/test_affine_atoms.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/nlp_tests/test_huber_sum_largest.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/nlp_tests/test_log_sum_exp.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/nlp_tests/test_entropy_related.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/nlp_tests/test_power_flow.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/nlp_tests/test_hyperbolic.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/nlp_tests/test_best_of.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/nlp_tests/test_initialization.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/nlp_tests/test_nlp_parameters.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/nlp_tests/__init__.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/nlp_tests/test_broadcast.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/nlp_tests/test_dnlp.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/nlp_tests/test_risk_parity.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/nlp_tests/test_sum.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGHcvxpy/tests/nlp_tests/test_Sharpe_ratio.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
663 more matches not shown…
Hyper-Verbose Identifiers919 hits · 935 pts
SeverityFileLineSnippetContext
LOWtools/release_notes.py44def get_previous_release_branch(tag: str) -> str:CODE
LOWcvxpy/atoms/affine/upper_tri.py183def batched_upper_tri_to_full(batch_size: int, n: int) -> sp.csc_array:CODE
LOWcvxpy/constraints/constraint.py129 def _construct_dual_variables(self, args) -> None:CODE
LOWcvxpy/constraints/zero.py118 def _construct_dual_variables(self, args) -> None:CODE
LOWcvxpy/constraints/nonpos.py203 def _construct_dual_variables(self, args) -> None:CODE
LOW⚡cvxpy/tests/test_zero_sized.py46 def test_zero_sized_parameter(self):CODE
LOW⚡cvxpy/tests/test_zero_sized.py56 def test_zero_sized_constant_from_empty_array(self):CODE
LOW⚡cvxpy/tests/test_zero_sized.py65 def test_no_zero_sized_passthrough(self):CODE
LOW⚡cvxpy/tests/test_zero_sized.py74 def test_zero_sized_constraint_dropped(self):CODE
LOW⚡cvxpy/tests/test_zero_sized.py96 def test_invert_adds_empty_values(self):CODE
LOW⚡cvxpy/tests/test_zero_sized.py110 def test_bounded_variable_domain_preserved(self):CODE
LOW⚡cvxpy/tests/test_zero_sized.py136 def test_solve_with_zero_sized_variable(self):CODE
LOW⚡cvxpy/tests/test_zero_sized.py145 def test_zero_sized_variable_gets_empty_value(self):CODE
LOW⚡cvxpy/tests/test_zero_sized.py154 def test_zero_sized_constraint_dual_variable(self):CODE
LOW⚡cvxpy/tests/test_zero_sized.py163 def test_zero_sized_constraint_dual_shape(self):CODE
LOW⚡cvxpy/tests/test_zero_sized.py173 def test_normal_constraint_dual_with_zero_sized_present(self):CODE
LOW⚡cvxpy/tests/test_zero_sized.py187 def test_broadcast_zero_sized_constraint_dual(self):CODE
LOW⚡cvxpy/tests/test_zero_sized.py195 def test_mixed_problem_zero_constraint(self):CODE
LOW⚡cvxpy/tests/test_zero_sized.py203 def test_zero_sized_constraint_from_broadcast(self):CODE
LOW⚡cvxpy/tests/test_zero_sized.py210 def test_nonlinear_plus_empty_array(self):CODE
LOW⚡cvxpy/tests/test_zero_sized.py260 def test_solve_with_all_false_boolean_constraint(self):CODE
LOW⚡cvxpy/tests/test_zero_sized.py268 def test_sum_of_all_false_boolean_index(self):CODE
LOW⚡cvxpy/tests/test_zero_sized.py278 def test_bounded_var_only_in_all_false_boolean_constraint(self):CODE
LOWcvxpy/tests/test_zero_sized.py85 def test_zero_sized_var_replaced_in_objective(self):CODE
LOWcvxpy/tests/test_zero_sized.py223 def test_zero_sized_constraint_from_broadcast_bounded(self):CODE
LOWcvxpy/tests/test_zero_sized.py300 def test_hstack_with_zero_sized(self):CODE
LOWcvxpy/tests/test_zero_sized.py306 def test_vstack_with_zero_sized(self):CODE
LOWcvxpy/tests/test_derivative.py217 def test_entropy_maximization(self) -> None:CODE
LOWcvxpy/tests/test_derivative.py277 def test_forget_requires_grad(self) -> None:CODE
LOWcvxpy/tests/test_derivative.py333 def test_zero_in_problem_data(self) -> None:CODE
LOWcvxpy/tests/test_derivative.py343 def test_sparse_variable_derivative(self) -> None:CODE
LOWcvxpy/tests/test_derivative.py354 def test_batched_symmetric_backward(self) -> None:CODE
LOWcvxpy/tests/test_derivative.py390 def test_backward_real_and_imag(self) -> None:CODE
LOWcvxpy/tests/test_derivative.py414 def test_forward_complex_delta(self) -> None:CODE
LOWcvxpy/tests/test_derivative.py434 def test_backward_hermitian_param(self) -> None:CODE
LOWcvxpy/tests/test_derivative.py454 def test_forward_hermitian_delta(self) -> None:CODE
LOWcvxpy/tests/test_derivative.py472 def test_derivative_complex_variable_imag_param(self) -> None:CODE
LOWcvxpy/tests/test_derivative.py500 def test_derivative_complex_variable_purely_imaginary(self) -> None:CODE
LOWcvxpy/tests/test_derivative.py519 def test_derivative_complex_param_complex_variable(self) -> None:CODE
LOWcvxpy/tests/test_derivative.py585 def test_analytic_param_in_exponent(self) -> None:CODE
LOWcvxpy/tests/test_derivative.py642 def test_param_used_in_exponent_and_elsewhere(self) -> None:CODE
LOWcvxpy/tests/test_derivative.py736 def test_paper_example_one_minus_pos(self) -> None:CODE
LOWcvxpy/tests/test_derivative.py758 def test_paper_example_exp_log(self) -> None:CODE
LOWcvxpy/tests/test_derivative.py857 def test_param_backward_absent_log_param(self) -> None:CODE
LOWcvxpy/tests/test_nonlinear_atoms.py124 def test_difference_kl_div_rel_entr(self) -> None:CODE
LOWcvxpy/tests/test_nonlinear_atoms.py191def test_trig_atoms_metadata_numeric_and_grad(atom, numeric, grad, domain_size):CODE
LOWcvxpy/tests/test_nonlinear_atoms.py209def test_atan_metadata_numeric_and_grad():CODE
LOWcvxpy/tests/test_nonlinear_atoms.py238def test_hyperbolic_atoms_metadata_numeric_and_unimplemented_grad(atom, numeric, domain_size):CODE
LOW⚡cvxpy/tests/test_solver_data_validation.py26 def test_nan_in_parameter_raises(self):CODE
LOW⚡cvxpy/tests/test_solver_data_validation.py32 def test_nan_constant_in_objective(self):CODE
LOW⚡cvxpy/tests/test_solver_data_validation.py39 def test_nan_constant_in_constraint(self):CODE
LOW⚡cvxpy/tests/test_solver_data_validation.py46 def test_inf_in_constraint_rhs_allowed(self):CODE
LOW⚡cvxpy/tests/test_solver_data_validation.py54 def test_inf_constant_in_objective(self):CODE
LOW⚡cvxpy/tests/test_expressions.py766 def test_project_boolean_indices(self) -> None:CODE
LOW⚡cvxpy/tests/test_expressions.py774 def test_project_integer_indices(self) -> None:CODE
LOW⚡cvxpy/tests/test_expressions.py782 def test_project_boolean_coordinate_tuples(self) -> None:CODE
LOWcvxpy/tests/test_expressions.py283 def test_constant_skew_symmetric(self) -> None:CODE
LOWcvxpy/tests/test_expressions.py336 def test_sparse_symmetry_checks_positions(self) -> None:CODE
LOWcvxpy/tests/test_expressions.py378 def test_parameters_successes(self) -> None:CODE
LOWcvxpy/tests/test_expressions.py406 def test_parameter_infinite_values(self) -> None:CODE
859 more matches not shown…
Over-Commented Block419 hits · 390 pts
SeverityFileLineSnippetContext
LOWpyproject.toml161COMMENT
LOWcontinuous_integration/install_optional_solvers.sh61#python -c "import julia; julia.install()"COMMENT
LOWcvxpy/atoms/affine/cumsum.py121 if axis is None:COMMENT
LOWcvxpy/atoms/elementwise/power.py221 """Is the atom concave?COMMENT
LOWcvxpy/atoms/elementwise/power.py241 # must be positive, they can have any sign when appearing as anCOMMENT
LOWcvxpy/tests/test_problem.py441 # def test_consistency(self):COMMENT
LOWcvxpy/tests/test_problem.py461 # p = Problem(obj, constraints)COMMENT
LOWcvxpy/tests/test_problem.py481 # Test removing duplicate constraint objects.COMMENT
LOWcvxpy/lin_ops/lin_op.py41PROMOTE = "promote"COMMENT
LOWcvxpy/lin_ops/lin_op.py61# An index/slice into an expression.COMMENT
LOWcvxpy/lin_ops/lin_op.py81DIAG_MAT = "diag_mat"COMMENT
LOWcvxpy/lin_ops/lin_op.py101CONCATENATE = "concatenate"COMMENT
LOWcvxpy/utilities/linalg.py101 #COMMENT
LOWcvxpy/utilities/coeff_extractor.py121 # the matrix P of each quadratic term by the coefficientsCOMMENT
LOWcvxpy/utilities/coeff_extractor.py161 block_indices = quad_form_atom.block_indicesCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/misc/RealSvd2x2.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/misc/lapacke_mangling.h1#ifndef LAPACK_HEADER_INCLUDEDCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/Reverse.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOW…py/cvxcore/include/Eigen/src/Core/ConditionEstimator.h121 old_lower_bound = lower_bound;COMMENT
LOW…xpy/cvxcore/include/Eigen/src/Core/PermutationMatrix.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/Assign.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOW…xpy/cvxcore/include/Eigen/src/Core/MathFunctionsImpl.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOW…xpy/cvxcore/include/Eigen/src/Core/MathFunctionsImpl.h101 inline RealScalar run(const Scalar& x, const Scalar& y)COMMENT
LOW…xpy/cvxcore/include/Eigen/src/Core/MathFunctionsImpl.h121 //COMMENT
LOW…xpy/cvxcore/include/Eigen/src/Core/MathFunctionsImpl.h141 : x == zero ? std::complex<T>(w, y < zero ? -w : w)COMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/CwiseUnaryOp.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/DiagonalMatrix.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/VectorBlock.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/ReturnByValue.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOW…py/cvxcore/include/Eigen/src/Core/ArithmeticSequence.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/MatrixBase.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/MatrixBase.h121 internal::traits<Derived>::ColsAtCompileTime> BasisReturnType;COMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/Map.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/MathFunctions.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/MathFunctions.h1821}COMMENT
LOW…xpy/cvxcore/include/Eigen/src/Core/SelfCwiseBinaryOp.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/Swap.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOW…xpy/cvxcore/include/Eigen/src/Core/ProductEvaluators.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOW…xpy/cvxcore/include/Eigen/src/Core/ProductEvaluators.h421 // dst {,+,-}= (s1*A)*(B*s2)COMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/MapBase.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/Matrix.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/EigenBase.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOW…xpy/cvxcore/include/Eigen/src/Core/GenericPacketMath.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOW…xpy/cvxcore/include/Eigen/src/Core/GenericPacketMath.h21 * Default implementation for types not supported by the vectorization.COMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/CwiseBinaryOp.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/DenseStorage.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/DiagonalProduct.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/Fuzzy.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/TriangularMatrix.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/IO.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/AssignEvaluator.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/ArrayBase.h81#endif // not EIGEN_PARSED_BY_DOXYGENCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/Block.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/Dot.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/PlainObjectBase.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/GeneralProduct.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/SolveTriangular.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/CoreEvaluators.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/CoreEvaluators.h441// erros pop up again.COMMENT
LOWcvxpy/cvxcore/include/Eigen/src/Core/VectorwiseOp.h1// This file is part of Eigen, a lightweight C++ template libraryCOMMENT
359 more matches not shown…
Unused Imports369 hits · 294 pts
SeverityFileLineSnippetContext
LOWcvxpy/__init__.py22CODE
LOWcvxpy/__init__.py23CODE
LOWcvxpy/__init__.py23CODE
LOWcvxpy/__init__.py23CODE
LOWcvxpy/__init__.py23CODE
LOWcvxpy/__init__.py23CODE
LOWcvxpy/__init__.py23CODE
LOWcvxpy/__init__.py23CODE
LOWcvxpy/__init__.py23CODE
LOWcvxpy/__init__.py23CODE
LOWcvxpy/__init__.py23CODE
LOWcvxpy/__init__.py23CODE
LOWcvxpy/__init__.py23CODE
LOWcvxpy/__init__.py23CODE
LOWcvxpy/__init__.py23CODE
LOWcvxpy/__init__.py23CODE
LOWcvxpy/__init__.py40CODE
LOWcvxpy/__init__.py40CODE
LOWcvxpy/__init__.py40CODE
LOWcvxpy/__init__.py40CODE
LOWcvxpy/__init__.py40CODE
LOWcvxpy/__init__.py40CODE
LOWcvxpy/__init__.py40CODE
LOWcvxpy/__init__.py40CODE
LOWcvxpy/__init__.py50CODE
LOWcvxpy/__init__.py53CODE
LOWcvxpy/__init__.py53CODE
LOWcvxpy/__init__.py53CODE
LOWcvxpy/__init__.py58CODE
LOWcvxpy/__init__.py59CODE
LOWcvxpy/__init__.py60CODE
LOWcvxpy/__init__.py60CODE
LOWcvxpy/__init__.py60CODE
LOWcvxpy/__init__.py65CODE
LOWcvxpy/__init__.py66CODE
LOWcvxpy/__init__.py66CODE
LOWcvxpy/__init__.py66CODE
LOWcvxpy/__init__.py71CODE
LOWcvxpy/__init__.py72CODE
LOWcvxpy/__init__.py73CODE
LOWcvxpy/__init__.py74CODE
LOWcvxpy/__init__.py74CODE
LOWcvxpy/__init__.py74CODE
LOWcvxpy/__init__.py74CODE
LOWcvxpy/__init__.py74CODE
LOWcvxpy/__init__.py74CODE
LOWcvxpy/__init__.py74CODE
LOWcvxpy/__init__.py74CODE
LOWcvxpy/__init__.py74CODE
LOWcvxpy/__init__.py74CODE
LOWcvxpy/__init__.py74CODE
LOWcvxpy/__init__.py74CODE
LOWcvxpy/__init__.py74CODE
LOWcvxpy/__init__.py74CODE
LOWcvxpy/__init__.py74CODE
LOWcvxpy/__init__.py74CODE
LOWcvxpy/__init__.py74CODE
LOWcvxpy/__init__.py74CODE
LOWcvxpy/__init__.py74CODE
LOWcvxpy/__init__.py74CODE
309 more matches not shown…
Decorative Section Separators54 hits · 180 pts
SeverityFileLineSnippetContext
MEDIUMcvxpy/tests/test_soc_dim3.py35# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_soc_dim3.py37# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_soc_dim3.py118# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_soc_dim3.py120# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_soc_dim3.py154# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_soc_dim3.py156# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_soc_dim3.py212# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_soc_dim3.py214# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_soc_dim3.py234# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_soc_dim3.py236# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_fuzz_reshape.py24# ---------------------------------------------------------------------------COMMENT
MEDIUMcvxpy/tests/test_fuzz_reshape.py26# ---------------------------------------------------------------------------COMMENT
MEDIUMcvxpy/tests/test_fuzz_reshape.py87# ---------------------------------------------------------------------------COMMENT
MEDIUMcvxpy/tests/test_fuzz_reshape.py89# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡cvxpy/tests/test_grad.py34# =============================================================================COMMENT
MEDIUM⚡cvxpy/tests/test_grad.py36# =============================================================================COMMENT
MEDIUM⚡cvxpy/tests/test_grad.py45# =============================================================================COMMENT
MEDIUM⚡cvxpy/tests/test_grad.py47# =============================================================================COMMENT
MEDIUM⚡cvxpy/tests/test_grad.py702# =============================================================================COMMENT
MEDIUM⚡cvxpy/tests/test_grad.py704# =============================================================================COMMENT
MEDIUM⚡cvxpy/tests/test_grad.py712# =============================================================================COMMENT
MEDIUM⚡cvxpy/tests/test_grad.py714# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_grad.py360# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_grad.py362# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_grad.py446# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_grad.py448# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_grad.py484# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_grad.py486# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_grad.py671# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_grad.py673# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_grad.py861# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_grad.py863# =============================================================================COMMENT
MEDIUM⚡cvxpy/tests/nlp_tests/test_power_flow.py31 # -----------------------------------------------------------------------------------COMMENT
MEDIUM⚡cvxpy/tests/nlp_tests/test_power_flow.py33 # -----------------------------------------------------------------------------------COMMENT
MEDIUMcvxpy/tests/nlp_tests/test_power_flow.py46 # -----------------------------------------------------------------------------------COMMENT
MEDIUMcvxpy/tests/nlp_tests/test_power_flow.py48 # -----------------------------------------------------------------------------------COMMENT
MEDIUMcvxpy/tests/nlp_tests/test_power_flow.py91 # -----------------------------------------------------------------------------------COMMENT
MEDIUMcvxpy/tests/nlp_tests/test_power_flow.py93 # -----------------------------------------------------------------------------------COMMENT
MEDIUMcvxpy/tests/nlp_tests/test_power_flow.py107 # -----------------------------------------------------------------------------------COMMENT
MEDIUMcvxpy/tests/nlp_tests/test_power_flow.py109 # -----------------------------------------------------------------------------------COMMENT
MEDIUMcvxpy/lin_ops/backends/coo_backend.py1668 # =========================================================================COMMENT
MEDIUMcvxpy/lin_ops/backends/coo_backend.py1670 # =========================================================================COMMENT
MEDIUMcvxpy/reductions/cone2cone/soc_dim3.py67# =============================================================================COMMENT
MEDIUMcvxpy/reductions/cone2cone/soc_dim3.py69# =============================================================================COMMENT
MEDIUMcvxpy/reductions/cone2cone/soc_dim3.py107# =============================================================================COMMENT
MEDIUMcvxpy/reductions/cone2cone/soc_dim3.py109# =============================================================================COMMENT
MEDIUMcvxpy/reductions/cone2cone/soc_dim3.py141# =============================================================================COMMENT
MEDIUMcvxpy/reductions/cone2cone/soc_dim3.py143# =============================================================================COMMENT
MEDIUM⚡cvxpy/reductions/cone2cone/soc_dim3.py252# =============================================================================COMMENT
MEDIUM⚡cvxpy/reductions/cone2cone/soc_dim3.py254# =============================================================================COMMENT
MEDIUMcvxpy/reductions/cone2cone/soc_dim3.py404# =============================================================================COMMENT
MEDIUMcvxpy/reductions/cone2cone/soc_dim3.py406# =============================================================================COMMENT
MEDIUMdoc/sphinxext/numpydoc.py127#------------------------------------------------------------------------------COMMENT
MEDIUMdoc/sphinxext/numpydoc.py129#------------------------------------------------------------------------------COMMENT
Deep Nesting114 hits · 111 pts
SeverityFileLineSnippetContext
LOWtools/release_notes.py81CODE
LOWcvxpy/interface/base_matrix_interface.py116CODE
LOWcvxpy/interface/matrix_utilities.py124CODE
LOWcvxpy/interface/matrix_utilities.py188CODE
LOWcvxpy/atoms/total_variation.py24CODE
LOWcvxpy/atoms/norm.py30CODE
LOWcvxpy/atoms/axis_atom.py75CODE
LOWcvxpy/atoms/prod.py87CODE
LOWcvxpy/atoms/atom.py234CODE
LOWcvxpy/atoms/atom.py251CODE
LOWcvxpy/atoms/atom.py268CODE
LOWcvxpy/atoms/atom.py285CODE
LOWcvxpy/atoms/atom.py312CODE
LOWcvxpy/atoms/atom.py329CODE
LOWcvxpy/atoms/atom.py480CODE
LOWcvxpy/atoms/affine/einsum.py167CODE
LOWcvxpy/atoms/affine/sum.py123CODE
LOWcvxpy/tests/test_expressions.py618CODE
LOWcvxpy/tests/test_expressions.py633CODE
LOWcvxpy/tests/test_cone2cone.py825CODE
LOWcvxpy/tests/test_atoms.py151CODE
LOWcvxpy/tests/test_quad_form.py146CODE
LOWcvxpy/tests/solver_test_helpers.py41CODE
LOWcvxpy/tests/solver_test_helpers.py70CODE
LOWcvxpy/tests/solver_test_helpers.py101CODE
LOWcvxpy/tests/solver_test_helpers.py126CODE
LOWcvxpy/tests/solver_test_helpers.py246CODE
LOWcvxpy/tests/test_problem.py291CODE
LOWcvxpy/tests/test_problem.py339CODE
LOWcvxpy/tests/test_problem.py1524CODE
LOWcvxpy/tests/test_expression_methods.py42CODE
LOWcvxpy/tests/test_interfaces.py122CODE
LOWcvxpy/tests/test_conic_solvers.py2839CODE
LOWcvxpy/tests/test_conic_solvers.py3189CODE
LOWcvxpy/tests/test_grad.py1029CODE
LOWcvxpy/tests/nlp_tests/test_ML_Gaussian_stress.py29CODE
LOWcvxpy/tests/nlp_tests/test_ML_Gaussian_stress.py64CODE
LOWcvxpy/problems/problem_form.py393CODE
LOWcvxpy/problems/problem.py348CODE
LOWcvxpy/problems/problem.py537CODE
LOWcvxpy/problems/problem.py957CODE
LOWcvxpy/problems/problem.py1382CODE
LOWcvxpy/lin_ops/backends/base.py544CODE
LOWcvxpy/utilities/key_utils.py69CODE
LOWcvxpy/utilities/perspective_utils.py28CODE
LOWcvxpy/utilities/einsum_utilities.py174CODE
LOWcvxpy/utilities/einsum_utilities.py354CODE
LOWcvxpy/utilities/einsum_utilities.py469CODE
LOWcvxpy/utilities/coeff_extractor.py79CODE
LOWcvxpy/transforms/linearize.py21CODE
LOWcvxpy/transforms/scalarize.py36CODE
LOWcvxpy/expressions/leaf.py236CODE
LOWcvxpy/expressions/leaf.py390CODE
LOWcvxpy/expressions/leaf.py559CODE
LOWcvxpy/expressions/leaf.py666CODE
LOWcvxpy/expressions/leaf.py847CODE
LOWcvxpy/expressions/leaf.py927CODE
LOWcvxpy/expressions/leaf.py1020CODE
LOWcvxpy/expressions/variable.py96CODE
LOWcvxpy/expressions/variable.py105CODE
54 more matches not shown…
Self-Referential Comments35 hits · 104 pts
SeverityFileLineSnippetContext
MEDIUM⚡cvxpy/tests/test_zero_sized.py104 # Create a mock solution.COMMENT
MEDIUMcvxpy/tests/test_param_quad_prog.py116 # Create a solver instance where bounded variables are disabled.COMMENT
MEDIUMcvxpy/tests/test_param_quad_prog.py131 # Create a solver instance where bounded variables are enabled.COMMENT
MEDIUMcvxpy/tests/test_cone2cone.py690 # Define the SolverTestHelper objectCOMMENT
MEDIUMcvxpy/tests/test_atoms.py2806 # Create a symmetric matrix variable.COMMENT
MEDIUMcvxpy/tests/test_labels.py396 # Create a labeled compound expressionCOMMENT
MEDIUMcvxpy/tests/test_param_cone_prog.py104 # Create a solver instance where bounded variables are disabled.COMMENT
MEDIUMcvxpy/tests/test_param_cone_prog.py119 # Create a solver instance where bounded variables are enabled.COMMENT
MEDIUMcvxpy/tests/test_python_backends.py3323 # Create a parametric tensor with duplicated param_idx entriesCOMMENT
MEDIUMcvxpy/tests/test_complex.py590 # Create a random positive definite Hermitian matrix for all tests.COMMENT
MEDIUMcvxpy/tests/test_conic_solvers.py2272 # Create a custom environment and set some parametersCOMMENT
MEDIUMcvxpy/tests/test_attributes.py139 # Create a sparse variableCOMMENT
MEDIUMcvxpy/tests/test_attributes.py478 # Create a variable with both boolean and integer attributesCOMMENT
MEDIUMcvxpy/tests/nlp_tests/test_initialization.py54 # Create a simple constrained problem (use sum instead of trace for NLP support)COMMENT
MEDIUMcvxpy/tests/nlp_tests/test_dnlp.py35 # Define a simple nonlinear programCOMMENT
MEDIUMcvxpy/tests/nlp_tests/test_nlp_solvers.py189 # Define the variableCOMMENT
MEDIUMcvxpy/tests/nlp_tests/test_nlp_solvers.py210 # Define the variableCOMMENT
MEDIUMcvxpy/tests/nlp_tests/test_quasi_newton.py132 # Create a simple quadratic problem with better scalingCOMMENT
MEDIUMcvxpy/lin_ops/backends/coo_backend.py1325 # Create a sparse CSR matrix from rhs for efficient lookupCOMMENT
MEDIUMcvxpy/utilities/coo_array_compat.py17# This file implements get_coords to paper overCOMMENT
MEDIUMcvxpy/reductions/complex2real/complex2real.py366 # Define the matrixCOMMENT
MEDIUM…py/reductions/dcp2cone/canonicalizers/normNuc_canon.py30 # Create the equivalent problem:COMMENT
MEDIUM…y/reductions/dnlp2smooth/canonicalizers/huber_canon.py17# This file is identical to the dcp2cone version, except that it uses theCOMMENT
MEDIUMcvxpy/reductions/solvers/nlp_solvers/knitro_nlpif.py205 # Create a new Knitro solver instanceCOMMENT
MEDIUMcvxpy/reductions/solvers/nlp_solvers/knitro_nlpif.py230 # Define the callback for evaluating objective and constraints (EVALFC)COMMENT
MEDIUMcvxpy/reductions/solvers/nlp_solvers/knitro_nlpif.py262 # Define the callback for evaluating gradients (EVALGA)COMMENT
MEDIUMcvxpy/reductions/solvers/nlp_solvers/knitro_nlpif.py296 # Define the callback for evaluating Hessian (EVALH)COMMENT
MEDIUMcvxpy/reductions/solvers/nlp_solvers/uno_nlpif.py159 # Create the Uno model using unopy constantsCOMMENT
MEDIUMcvxpy/reductions/solvers/conic_solvers/nag_conif.py238 # Define the conesCOMMENT
MEDIUMcvxpy/reductions/solvers/conic_solvers/mosek_conif.py524 # This function is only designed to recover dual variablesSTRING
MEDIUMcvxpy/reductions/solvers/conic_solvers/gurobi_conif.py173 # Create a new modelCOMMENT
MEDIUMcvxpy/reductions/solvers/qp_solvers/gurobi_qpif.py164 # Create a new modelCOMMENT
MEDIUM…ductions/dgp2dcp/canonicalizers/eye_minus_inv_canon.py18 # This function implements the log-log transformation of these constraintsCOMMENT
MEDIUMdoc/source/conf.py6# This file is execfile()d with the current directory set to its containing dir.COMMENT
MEDIUMdoc/source/conf.py58# The following code replaces the relevant cvxopt modules withCOMMENT
Empty Error Handlers12 hits · 60 pts
SeverityFileLineSnippetContext
HIGHcvxpy/tests/test_mip_vars.py182except Exception:CODE
HIGHcvxpy/tests/test_conic_solvers.py1648except Exception:CODE
HIGHcvxpy/expressions/leaf.py992except (TypeError, ValueError):CODE
HIGHcvxpy/expressions/expression.py1029except KeyError:CODE
HIGHcvxpy/cvxcore/python/__init__.py5except ImportError:CODE
HIGHcvxpy/reductions/solvers/conic_solvers/cplex_conif.py394except Exception:CODE
HIGHcvxpy/reductions/solvers/conic_solvers/cosmo_conif.py172except KeyError:CODE
HIGHcvxpy/reductions/solvers/conic_solvers/scip_conif.py445except Exception:CODE
HIGHcvxpy/reductions/solvers/conic_solvers/scip_conif.py483except Exception:CODE
HIGHcvxpy/reductions/solvers/conic_solvers/gurobi_conif.py270except Exception:CODE
HIGHcvxpy/reductions/solvers/conic_solvers/copt_conif.py389except Exception:CODE
HIGHcvxpy/reductions/solvers/qp_solvers/copt_qpif.py214except Exception:CODE
Excessive Try-Catch Wrapping41 hits · 46 pts
SeverityFileLineSnippetContext
LOWcvxpy/constraints/constraint.py78 except Exception as e:CODE
LOWcvxpy/tests/test_mip_vars.py182 except Exception:CODE
LOWcvxpy/tests/test_constant_atoms.py321 except Exception:CODE
LOWcvxpy/tests/test_qp_solvers.py68 except Exception:CODE
LOWcvxpy/tests/test_qp_solvers.py128 except Exception as exc:CODE
LOWcvxpy/tests/test_qp_solvers.py710 except Exception as e:CODE
MEDIUMcvxpy/tests/test_parametric_bounds.py14def _solver_available(solver_name):CODE
LOWcvxpy/tests/test_parametric_bounds.py18 except Exception:CODE
MEDIUMcvxpy/tests/test_conic_solvers.py1571def _cylp_checks_isProvenInfeasible():CODE
MEDIUMcvxpy/tests/test_conic_solvers.py3851def test_cuopt_mi_lp_4(self) -> None:CODE
LOWcvxpy/tests/test_conic_solvers.py1046 except Exception:CODE
LOWcvxpy/tests/test_conic_solvers.py1648 except Exception:CODE
LOWcvxpy/tests/test_conic_solvers.py2234 except Exception as e:CODE
LOWcvxpy/tests/test_conic_solvers.py3821 except Exception as e:CODE
LOWcvxpy/tests/test_conic_solvers.py3854 except Exception as e:CODE
LOWcvxpy/expressions/expression.py222 except Exception as e:CODE
LOWcvxpy/reductions/solvers/solver.py164 except Exception as e:CODE
LOWcvxpy/reductions/solvers/nlp_solvers/knitro_nlpif.py279 except Exception as e:CODE
MEDIUMcvxpy/reductions/solvers/nlp_solvers/knitro_nlpif.py280 print(f"Error in callbackEvalGA: {e}")CODE
LOWcvxpy/reductions/solvers/nlp_solvers/knitro_nlpif.py318 except Exception as e:CODE
MEDIUMcvxpy/reductions/solvers/nlp_solvers/knitro_nlpif.py319 print(f"Error in callbackEvalH: {e}")CODE
LOW…xpy/reductions/solvers/conic_solvers/clarabel_conif.py257 except Exception:CODE
LOWcvxpy/reductions/solvers/conic_solvers/cplex_conif.py394 except Exception:CODE
LOWcvxpy/reductions/solvers/conic_solvers/knitro_conif.py418 except Exception:CODE
LOWcvxpy/reductions/solvers/conic_solvers/knitro_conif.py627 except Exception: # Error in the solutionCODE
LOWcvxpy/reductions/solvers/conic_solvers/scip_conif.py367 except Exception as e:CODE
LOWcvxpy/reductions/solvers/conic_solvers/scip_conif.py445 except Exception:CODE
LOWcvxpy/reductions/solvers/conic_solvers/scip_conif.py483 except Exception:CODE
LOWcvxpy/reductions/solvers/conic_solvers/gurobi_conif.py270 except Exception:CODE
LOWcvxpy/reductions/solvers/conic_solvers/cuopt_conif.py52except Exception:CODE
LOW⚡cvxpy/reductions/solvers/conic_solvers/cuopt_conif.py103 except Exception:CODE
LOW⚡cvxpy/reductions/solvers/conic_solvers/cuopt_conif.py111 except Exception:CODE
MEDIUMcvxpy/reductions/solvers/conic_solvers/cuopt_conif.py98def _solver_mode(self, m):CODE
MEDIUMcvxpy/reductions/solvers/conic_solvers/cuopt_conif.py106def _solver_method(self, m):CODE
LOWcvxpy/reductions/solvers/conic_solvers/copt_conif.py389 except Exception:CODE
LOWcvxpy/reductions/solvers/qp_solvers/osqp_qpif.py153 except Exception as e:CODE
LOWcvxpy/reductions/solvers/qp_solvers/cplex_qpif.py195 except Exception: # Error in the solutionCODE
LOWcvxpy/reductions/solvers/qp_solvers/gurobi_qpif.py234 except Exception: # Error in the solutionCODE
LOWcvxpy/reductions/solvers/qp_solvers/knitro_qpif.py239 except Exception: # Error in the Knitro.CODE
LOWcvxpy/reductions/solvers/qp_solvers/knitro_qpif.py341 except Exception: # Error in the solutionCODE
LOWcvxpy/reductions/solvers/qp_solvers/copt_qpif.py214 except Exception:CODE
AI Slop Vocabulary17 hits · 43 pts
SeverityFileLineSnippetContext
MEDIUMsetup.py24# a lot more robust than what was previously being used.COMMENT
MEDIUMcvxpy/tests/test_atoms.py1435 # -- Concomitant M-estimation: robust location + scale on contaminated data --COMMENT
MEDIUMcvxpy/tests/test_atoms.py1458 # Sanity: robust mu is close to the true mean (5.0) despite three big outliersCOMMENT
MEDIUM⚡cvxpy/tests/test_grad.py708 """Multiple random seeds for robust testing."""STRING
MEDIUMcvxpy/tests/nlp_tests/test_Sharpe_ratio.py37 # This type of initialization makes ipopt muich more robust.COMMENT
MEDIUM…py/cvxcore/include/Eigen/src/Core/ConditionEstimator.h128 // added to make the algorithm more robust in certain corner cases whereCOMMENT
MEDIUM…y/cvxcore/include/Eigen/src/Core/arch/SSE/PacketMath.h123// to leverage AVX instructions.COMMENT
MEDIUMcvxpy/cvxcore/include/Eigen/src/Core/arch/SSE/Complex.h26// to leverage AVX instructions.COMMENT
MEDIUMcvxpy/cvxcore/include/Eigen/src/Core/arch/SSE/Complex.h194// to leverage AVX instructions.COMMENT
MEDIUM…y/cvxcore/include/Eigen/src/Core/arch/AVX/PacketMath.h56// to leverage AVX512 instructions.COMMENT
MEDIUM…y/cvxcore/include/Eigen/src/Core/arch/AVX/PacketMath.h638// NOTE: leverage _mm256_i32gather_ps and _mm256_i32gather_pd if AVX2 instructions are availableCOMMENT
MEDIUMcvxpy/cvxcore/include/Eigen/src/Geometry/AngleAxis.h200 // let's use the robust Quaternion implementation:COMMENT
LOWcvxpy/reductions/dcp2cone/canonicalizers/huber_canon.py36 # process and just return a power / abs expressions for readability sakeCOMMENT
LOW…reductions/dcp2cone/canonicalizers/quad/huber_canon.py36 # process and just return a power / abs expressions for readability sakeCOMMENT
MEDIUMcvxpy/reductions/solvers/conic_solvers/cvxopt_conif.py259 # Save old data in case need to use robust solver.COMMENT
LOW.github/workflows/build.yml34 # These are intended to just add their extra parameter to existing matrix combinations;COMMENT
LOW.github/workflows/build.yml97 # This is intended to just add the single_action_config parameter to one existing combination;COMMENT
Redundant / Tautological Comments13 hits · 18 pts
SeverityFileLineSnippetContext
LOWcvxpy/tests/test_param_quad_prog.py73 # Check if data matchCOMMENT
LOWcvxpy/tests/test_param_quad_prog.py76 # Check if solutions matchCOMMENT
LOWcvxpy/tests/test_constraints.py552 # Check if bounds attribute is compatible with linear objectiveCOMMENT
LOWcvxpy/tests/test_constraints.py565 # Check if bounds attribute is compatible with quadratic objectiveCOMMENT
LOWcvxpy/tests/test_constraints.py581 # Check if bounds are a list of 2 itemsCOMMENT
LOWcvxpy/lin_ops/lin_utils.py113 # Check if scalar.COMMENT
LOWcvxpy/lin_ops/lin_utils.py118 # Check if sparse.COMMENT
LOWcvxpy/utilities/bounds.py836 # Check if bounds are finite and worth using.COMMENT
LOWcvxpy/utilities/bounds.py843 # Check if bounds only match sign info (avoid redundant constraints)COMMENT
LOWcvxpy/utilities/coeff_extractor.py145 # Check if P depends on parameters (for DPP support).COMMENT
LOWcvxpy/reductions/solvers/conic_solvers/mosek_conif.py664 # Check if any unknown options were passedSTRING
LOWcvxpy/reductions/solvers/conic_solvers/scipy_conif.py116 # Check if the problem is a MIP.COMMENT
LOWcvxpy/reductions/cone2cone/soc_dim3.py128 # Check if it's a list with two elements (split format from save_dual_value)COMMENT
Modern Structural Boilerplate16 hits · 16 pts
SeverityFileLineSnippetContext
LOWcvxpy/settings.py251def set_num_threads(num_threads: int) -> None:CODE
LOWcvxpy/atoms/affine/stack.py107__all__ = ["stack"]CODE
LOWcvxpy/lin_ops/canon_backend.py35__all__ = [CODE
LOWcvxpy/lin_ops/backends/__init__.py78__all__ = [CODE
LOWcvxpy/nlp/__init__.py17__all__ = [CODE
LOWcvxpy/cvxcore/python/cppbackend.py148def set_linC_data(linC, linPy) -> None:CODE
LOWcvxpy/cvxcore/python/cppbackend.py189def set_slice_data(linC, linPy) -> None:CODE
LOWcvxpy/cvxcore/python/cppbackend.py230def set_matrix_data(linC, linPy) -> None:CODE
LOWcvxpy/reductions/cvx_attr2constr.py307 def update_parameters(self, problem) -> None:CODE
LOWcvxpy/reductions/reduction.py72 def update_parameters(self, problem) -> None:CODE
LOWcvxpy/reductions/complex2real/complex2real.py101 def update_parameters(self, problem) -> None:CODE
LOWcvxpy/reductions/solvers/nlp_solvers/nlp_solver.py242 def update_params(self, problem) -> None:CODE
LOW…reductions/solvers/nlp_solvers/diff_engine/__init__.py31__all__ = [CODE
LOW…eductions/solvers/nlp_solvers/diff_engine/c_problem.py74 def update_params(self, theta: np.ndarray) -> None:CODE
LOWcvxpy/reductions/solvers/conic_solvers/cplex_conif.py42def set_parameters(model, solver_opts) -> None:CODE
LOWcvxpy/reductions/dgp2dcp/dgp2dcp.py84 def update_parameters(self, problem) -> None:CODE
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHcvxpy/utilities/key_utils.py28Check if the key is a valid index. Args: key: The key used to index/slice. shape: The shape (rows, STRING
HIGHcvxpy/transforms/scalarize.py43 Combines objectives with penalties within a range between target and limit. For nonnegative priorities, each MSTRING
HIGHcvxpy/reductions/solvers/solver_inverse_data.py32Get a value from inverse_data using dictionary-like syntax. Args: key: The key to retrieve from invSTRING
AI Response Leakage2 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…y/cvxcore/include/Eigen/src/Core/arch/SSE/PacketMath.h547 // In this implementation, we take advantage of the fact that pmin/pmax for SSECOMMENT
HIGH…y/cvxcore/include/Eigen/src/Core/arch/SSE/PacketMath.h556 // In this implementation, we take advantage of the fact that pmin/pmax for SSECOMMENT
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHcvxpy/atoms/pnorm.py259 # Subgrad is 0 when denom is 0 (or undefined).STRING
HIGHcvxpy/tests/test_grad.py140 # Handle None gradient (outside domain or undefined)COMMENT
TODO Padding5 hits · 8 pts
SeverityFileLineSnippetContext
LOWcvxpy/constraints/exponential.py279 # TODO: implement me.COMMENT
LOWcvxpy/constraints/exponential.py358 # TODO: implement meCOMMENT
LOWcvxpy/constraints/exponential.py402 # TODO: implement me.COMMENT
LOWcvxpy/transforms/suppfunc.py168 # TODO: implementCOMMENT
LOWcvxpy/reductions/complex2real/complex2real.py379 # TODO: implement dual variable recoveryCOMMENT
Slop Phrases3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUM…py/cvxcore/include/Eigen/src/Core/util/SymbolicIndex.h19 * Here is a simple example:COMMENT
MEDIUM…re/include/Eigen/src/Core/arch/AltiVec/MatrixProduct.h114 * As mentioned earlier MatrixProduct breaks complex numbers into a real vector and a complex vector so packing hasCOMMENT
LOWcvxpy/reductions/solvers/conic_solvers/conic_solver.py28# make sure to run cvxpy/tests/test_benchmarks.py to ensure that you haveCOMMENT
AI Structural Patterns4 hits · 4 pts
SeverityFileLineSnippetContext
LOWcvxpy/constraints/finite_set.py137CODE
LOWcvxpy/tests/nlp_tests/derivative_checker.py267CODE
LOWcvxpy/problems/problem.py957CODE
LOWcvxpy/expressions/leaf.py100CODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWcvxpy/reductions/solvers/conic_solvers/pdcs_conif.py154 solver_opts.setdefault("julia_env", "placeholder")CODE
LOWcvxpy/reductions/solvers/conic_solvers/pdcs_conif.py165 if solver_opts["julia_env"] != "placeholder":CODE
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMdoc/sphinxext/docscrape_sphinx.py46CODE