Repository Analysis

cvxpy/cvxpy

A Python-embedded modeling language for convex optimization problems.

22.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of cvxpy/cvxpy, a C++ project with 6,275 GitHub stars. SynthScan v2.0 examined 254,263 lines of code across 889 source files, recording 2596 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 22.3 places this repository in the Moderate AI signal band.

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

22.3
Adjusted Score
22.3
Raw Score
100%
Time Factor
2026-07-13
Last Push
6.3K
Stars
C++
Language
254.3K
Lines of Code
889
Files
2.6K
Pattern Hits
2026-07-14
Scan Date
0.82
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 0HIGH 725MEDIUM 113LOW 1758

Directory Score Breakdown

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

Pattern Findings

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

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

Cross-File Repetition718 hits · 3590 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
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/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_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_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
HIGHcvxpy/tests/nlp_tests/test_matmul.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
HIGH…xpy/tests/nlp_tests/test_scalar_and_matrix_problems.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_solvers.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_problem.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_quasi_newton.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_interfaces.py0copyright 2025, the cvxpy authors licensed under the apache license, version 2.0 (the "license"); you may not use this fSTRING
658 more matches not shown…
Hyper-Verbose Identifiers787 hits · 812 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.py113 def _construct_dual_variables(self, args) -> None:CODE
LOWcvxpy/constraints/nonpos.py200 def _construct_dual_variables(self, args) -> None:CODE
LOWcvxpy/tests/test_zero_sized.py46 def test_zero_sized_parameter(self):CODE
LOWcvxpy/tests/test_zero_sized.py56 def test_zero_sized_constant_from_empty_array(self):CODE
LOWcvxpy/tests/test_zero_sized.py65 def test_no_zero_sized_passthrough(self):CODE
LOWcvxpy/tests/test_zero_sized.py74 def test_zero_sized_constraint_dropped(self):CODE
LOWcvxpy/tests/test_zero_sized.py96 def test_invert_adds_empty_values(self):CODE
LOWcvxpy/tests/test_zero_sized.py110 def test_bounded_variable_domain_preserved(self):CODE
LOWcvxpy/tests/test_zero_sized.py136 def test_solve_with_zero_sized_variable(self):CODE
LOWcvxpy/tests/test_zero_sized.py145 def test_zero_sized_variable_gets_empty_value(self):CODE
LOWcvxpy/tests/test_zero_sized.py154 def test_zero_sized_constraint_dual_variable(self):CODE
LOWcvxpy/tests/test_zero_sized.py163 def test_zero_sized_constraint_dual_shape(self):CODE
LOWcvxpy/tests/test_zero_sized.py173 def test_normal_constraint_dual_with_zero_sized_present(self):CODE
LOWcvxpy/tests/test_zero_sized.py187 def test_broadcast_zero_sized_constraint_dual(self):CODE
LOWcvxpy/tests/test_zero_sized.py195 def test_mixed_problem_zero_constraint(self):CODE
LOWcvxpy/tests/test_zero_sized.py203 def test_zero_sized_constraint_from_broadcast(self):CODE
LOWcvxpy/tests/test_zero_sized.py210 def test_nonlinear_plus_empty_array(self):CODE
LOWcvxpy/tests/test_zero_sized.py260 def test_solve_with_all_false_boolean_constraint(self):CODE
LOWcvxpy/tests/test_zero_sized.py268 def test_sum_of_all_false_boolean_index(self):CODE
LOWcvxpy/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.py218def test_hyperbolic_atoms_metadata_numeric_and_unimplemented_grad(atom, numeric, domain_size):CODE
LOWcvxpy/tests/test_solver_data_validation.py26 def test_nan_in_parameter_raises(self):CODE
LOWcvxpy/tests/test_solver_data_validation.py32 def test_nan_constant_in_objective(self):CODE
LOWcvxpy/tests/test_solver_data_validation.py39 def test_nan_constant_in_constraint(self):CODE
LOWcvxpy/tests/test_solver_data_validation.py46 def test_inf_in_constraint_rhs_allowed(self):CODE
LOWcvxpy/tests/test_solver_data_validation.py54 def test_inf_constant_in_objective(self):CODE
LOWcvxpy/tests/test_expressions.py732 def test_project_boolean_indices(self) -> None:CODE
LOWcvxpy/tests/test_expressions.py740 def test_project_integer_indices(self) -> None:CODE
LOWcvxpy/tests/test_expressions.py748 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
LOWcvxpy/tests/test_expressions.py678 def test_project_multiple_attributes(self) -> None:CODE
727 more matches not shown…
Over-Commented Block418 hits · 388 pts
SeverityFileLineSnippetContext
LOWpyproject.toml161# Writes the resolved version to cvxpy/_version.py at build time so theCOMMENT
LOWcontinuous_integration/install_optional_solvers.sh61#python -c "import julia; julia.install()"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/tests/test_python_backends.py81 # Simple variable linop of shape (2,) - creates a 2x2 identity in the variable columnsCOMMENT
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/lin_ops/backends/coo_backend.py1481 new_n : intCOMMENT
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
358 more matches not shown…
Unused Imports362 hits · 288 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
302 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
MEDIUMcvxpy/tests/test_grad.py34# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_grad.py36# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_grad.py45# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_grad.py47# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_grad.py702# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_grad.py704# =============================================================================COMMENT
MEDIUMcvxpy/tests/test_grad.py712# =============================================================================COMMENT
MEDIUMcvxpy/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
MEDIUMcvxpy/tests/nlp_tests/test_power_flow.py31 # -----------------------------------------------------------------------------------COMMENT
MEDIUMcvxpy/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.py1716 # =========================================================================COMMENT
MEDIUMcvxpy/lin_ops/backends/coo_backend.py1718 # =========================================================================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
MEDIUMcvxpy/reductions/cone2cone/soc_dim3.py252# =============================================================================COMMENT
MEDIUMcvxpy/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 Nesting112 hits · 110 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.py67CODE
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.py109CODE
LOWcvxpy/tests/test_cone2cone.py824CODE
LOWcvxpy/tests/test_atoms.py134CODE
LOWcvxpy/tests/test_quad_form.py129CODE
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.py2866CODE
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.py347CODE
LOWcvxpy/problems/problem.py536CODE
LOWcvxpy/problems/problem.py956CODE
LOWcvxpy/problems/problem.py1381CODE
LOWcvxpy/lin_ops/backends/base.py518CODE
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.py223CODE
LOWcvxpy/expressions/leaf.py377CODE
LOWcvxpy/expressions/leaf.py546CODE
LOWcvxpy/expressions/leaf.py653CODE
LOWcvxpy/expressions/leaf.py834CODE
LOWcvxpy/expressions/leaf.py914CODE
LOWcvxpy/expressions/leaf.py1007CODE
LOWcvxpy/expressions/variable.py96CODE
LOWcvxpy/expressions/variable.py105CODE
LOWcvxpy/expressions/expression.py301CODE
LOWcvxpy/expressions/expression.py329CODE
LOWcvxpy/expressions/expression.py810CODE
52 more matches not shown…
Self-Referential Comments36 hits · 108 pts
SeverityFileLineSnippetContext
MEDIUMcvxpy/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.py689 # Define the SolverTestHelper objectCOMMENT
MEDIUMcvxpy/tests/test_atoms.py2542 # 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.py3270 # Create a parametric tensor with duplicated param_idx entriesCOMMENT
MEDIUMcvxpy/tests/test_complex.py430 # Create a random positive definite Hermitian matrix for all tests.COMMENT
MEDIUMcvxpy/tests/test_conic_solvers.py2100 # 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.py1324 # 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.py338 # 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.py216 # Create a new Knitro solver instanceCOMMENT
MEDIUMcvxpy/reductions/solvers/nlp_solvers/knitro_nlpif.py241 # Define the callback for evaluating objective and constraints (EVALFC)COMMENT
MEDIUMcvxpy/reductions/solvers/nlp_solvers/knitro_nlpif.py273 # Define the callback for evaluating gradients (EVALGA)COMMENT
MEDIUMcvxpy/reductions/solvers/nlp_solvers/knitro_nlpif.py307 # Define the callback for evaluating Hessian (EVALH)COMMENT
MEDIUMcvxpy/reductions/solvers/nlp_solvers/uno_nlpif.py158 # Create the Uno model using unopy constantsCOMMENT
MEDIUMcvxpy/reductions/solvers/conic_solvers/conic_solver.py187 # Create a matrix to reshape constraints, then replicate for eachCOMMENT
MEDIUMcvxpy/reductions/solvers/conic_solvers/nag_conif.py240 # Define the conesCOMMENT
MEDIUMcvxpy/reductions/solvers/conic_solvers/mosek_conif.py531 # This function is only designed to recover dual variablesSTRING
MEDIUMcvxpy/reductions/solvers/conic_solvers/gurobi_conif.py172 # Create a new modelCOMMENT
MEDIUMcvxpy/reductions/solvers/qp_solvers/gurobi_qpif.py163 # 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
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.py633 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.py1403def _cylp_checks_isProvenInfeasible():CODE
MEDIUMcvxpy/tests/test_conic_solvers.py3517def test_cuopt_mi_lp_4(self) -> None:CODE
LOWcvxpy/tests/test_conic_solvers.py954 except Exception:CODE
LOWcvxpy/tests/test_conic_solvers.py1480 except Exception:CODE
LOWcvxpy/tests/test_conic_solvers.py2062 except Exception as e:CODE
LOWcvxpy/tests/test_conic_solvers.py3487 except Exception as e:CODE
LOWcvxpy/tests/test_conic_solvers.py3520 except Exception as e:CODE
LOWcvxpy/expressions/expression.py222 except Exception as e:CODE
LOWcvxpy/reductions/solvers/solver.py120 except Exception as e:CODE
LOWcvxpy/reductions/solvers/nlp_solvers/knitro_nlpif.py290 except Exception as e:CODE
MEDIUMcvxpy/reductions/solvers/nlp_solvers/knitro_nlpif.py291 print(f"Error in callbackEvalGA: {e}")CODE
LOWcvxpy/reductions/solvers/nlp_solvers/knitro_nlpif.py329 except Exception as e:CODE
MEDIUMcvxpy/reductions/solvers/nlp_solvers/knitro_nlpif.py330 print(f"Error in callbackEvalH: {e}")CODE
LOW…xpy/reductions/solvers/conic_solvers/clarabel_conif.py256 except Exception:CODE
LOWcvxpy/reductions/solvers/conic_solvers/cplex_conif.py393 except Exception:CODE
LOWcvxpy/reductions/solvers/conic_solvers/knitro_conif.py429 except Exception:CODE
LOWcvxpy/reductions/solvers/conic_solvers/knitro_conif.py638 except Exception: # Error in the solutionCODE
LOWcvxpy/reductions/solvers/conic_solvers/scip_conif.py340 except Exception as e:CODE
LOWcvxpy/reductions/solvers/conic_solvers/scip_conif.py418 except Exception:CODE
LOWcvxpy/reductions/solvers/conic_solvers/scip_conif.py456 except Exception:CODE
LOWcvxpy/reductions/solvers/conic_solvers/gurobi_conif.py294 except Exception:CODE
LOWcvxpy/reductions/solvers/conic_solvers/cuopt_conif.py52except Exception:CODE
LOWcvxpy/reductions/solvers/conic_solvers/cuopt_conif.py103 except Exception:CODE
LOWcvxpy/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.py390 except Exception:CODE
LOWcvxpy/reductions/solvers/qp_solvers/osqp_qpif.py152 except Exception as e:CODE
LOWcvxpy/reductions/solvers/qp_solvers/cplex_qpif.py194 except Exception: # Error in the solutionCODE
LOWcvxpy/reductions/solvers/qp_solvers/gurobi_qpif.py233 except Exception: # Error in the solutionCODE
LOWcvxpy/reductions/solvers/qp_solvers/knitro_qpif.py250 except Exception: # Error in the Knitro.CODE
LOWcvxpy/reductions/solvers/qp_solvers/knitro_qpif.py352 except Exception: # Error in the solutionCODE
LOWcvxpy/reductions/solvers/qp_solvers/copt_qpif.py213 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.py1345 # -- Concomitant M-estimation: robust location + scale on contaminated data --COMMENT
MEDIUMcvxpy/tests/test_atoms.py1368 # Sanity: robust mu is close to the true mean (5.0) despite three big outliersCOMMENT
MEDIUMcvxpy/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.py170 # 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.py523 # Check if bounds attribute is compatible with linear objectiveCOMMENT
LOWcvxpy/tests/test_constraints.py536 # Check if bounds attribute is compatible with quadratic objectiveCOMMENT
LOWcvxpy/tests/test_constraints.py552 # 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.py671 # Check if any unknown options were passedSTRING
LOWcvxpy/reductions/solvers/conic_solvers/scipy_conif.py118 # 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.py249def 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.py97 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__.py32__all__ = [CODE
LOW…eductions/solvers/nlp_solvers/diff_engine/c_problem.py58 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.py352 # TODO: implement meCOMMENT
LOWcvxpy/constraints/exponential.py396 # TODO: implement me.COMMENT
LOWcvxpy/transforms/suppfunc.py72 # TODO: implementCOMMENT
LOWcvxpy/reductions/complex2real/complex2real.py351 # 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.py30# 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.py956CODE
LOWcvxpy/expressions/leaf.py100CODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWcvxpy/reductions/solvers/conic_solvers/pdcs_conif.py153 solver_opts.setdefault("julia_env", "placeholder")CODE
LOWcvxpy/reductions/solvers/conic_solvers/pdcs_conif.py164 if solver_opts["julia_env"] != "placeholder":CODE
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMdoc/sphinxext/docscrape_sphinx.py46CODE