Repository Analysis

sympy/sympy

A computer algebra system written in pure Python

13.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of sympy/sympy, a Python project with 14,768 GitHub stars. SynthScan v2.0 examined 814,008 lines of code across 1650 source files, recording 10728 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 13.9 places this repository in the Low AI signal band.

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

13.9
Adjusted Score
13.9
Raw Score
100%
Time Factor
2026-07-10
Last Push
14.8K
Stars
Python
Language
814.0K
Lines of Code
1.6K
Files
10.7K
Pattern Hits
2026-07-14
Scan Date
0.22
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 369MEDIUM 390LOW 9969

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 10728 distinct pattern matches across 22 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.

Unused Imports5137 hits · 3765 pts
SeverityFileLineSnippetContext
LOWconftest.py3CODE
LOWconftest.py3CODE
LOWconftest.py3CODE
LOWisympy.py316CODE
LOWsympy/conftest.py1CODE
LOWsympy/release.py1CODE
LOWsympy/this.py4CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
LOWsympy/__init__.py56CODE
5077 more matches not shown…
Hyper-Verbose Identifiers2633 hits · 2452 pts
SeverityFileLineSnippetContext
LOWsympy/conftest.py76def pytest_collection_modifyitems(config, items):CODE
LOWsympy/series/tests/test_sequences.py294def test_find_linear_recurrence():CODE
LOWsympy/series/tests/test_limits.py211def test_floor_requires_robust_assumptions():CODE
LOWsympy/series/tests/test_limits.py241def test_ceiling_requires_robust_assumptions():CODE
LOWsympy/series/tests/test_limits.py373def test_bessel_functions_at_infinity():CODE
LOWsympy/series/tests/test_order.py326def test_order_conjugate_transpose():CODE
LOWsympy/series/tests/test_order.py339def test_order_noncommutative():CODE
LOWsympy/series/tests/test_order.py397def test_mixing_order_at_zero_and_infinity():CODE
LOWsympy/series/tests/test_order.py441def test_order_failing_due_to_solveset():CODE
LOWsympy/series/tests/test_order.py459def test_performance_of_adding_order():CODE
LOWsympy/series/tests/test_formal.py81def test_rational_independent():CODE
LOWsympy/series/tests/test_formal.py389def test_fps__logarithmic_singularity():CODE
LOWsympy/series/tests/test_formal.py398def test_fps__logarithmic_singularity_fail():CODE
LOWsympy/series/tests/test_series.py204def test_exp_product_positive_factors():CODE
LOWsympy/series/tests/test_gruntz.py98def test_gruntz_evaluation_slow():CODE
LOWsympy/series/tests/test_gruntz.py129def test_gruntz_eval_special_slow():CODE
LOWsympy/series/tests/test_gruntz.py137def test_grunts_eval_special_slow_sometimes_fail():CODE
LOWsympy/series/tests/test_gruntz.py148def test_gruntz_eval_special_fail():CODE
LOWsympy/series/tests/test_approximants.py30def test_pade_approximants_gcdex():CODE
LOWsympy/series/tests/test_approximants.py65def test_pade_approximant_gcdex():CODE
LOWsympy/crypto/crypto.py2452def lfsr_connection_polynomial(s):STRING
LOWsympy/crypto/tests/test_crypto.py74def test_encipher_substitution():CODE
LOWsympy/crypto/tests/test_crypto.py229def test_mutltiprime_rsa_full_example():CODE
LOWsympy/crypto/tests/test_crypto.py331def test_rsa_multiprime_exhanstive():CODE
LOWsympy/crypto/tests/test_crypto.py352def test_rsa_multipower_exhanstive():CODE
LOWsympy/crypto/tests/test_crypto.py431def test_lfsr_autocorrelation():CODE
LOWsympy/crypto/tests/test_crypto.py439def test_lfsr_connection_polynomial():CODE
LOWsympy/crypto/tests/test_crypto.py506def test_encipher_decipher_gm():CODE
LOWsympy/crypto/tests/test_crypto.py536def test_encipher_decipher_bg():CODE
LOWsympy/core/facts.py96def deduce_alpha_implications(implications):STRING
LOWsympy/core/facts.py136def apply_beta_to_alpha_route(alpha_implications, beta_rules):STRING
LOWsympy/core/add.py24def _could_extract_minus_sign(expr):CODE
LOWsympy/core/add.py628 def _eval_is_rational_function(self, syms):CODE
LOWsympy/core/add.py778 def _eval_is_extended_positive(self):CODE
LOWsympy/core/add.py830 def _eval_is_extended_nonnegative(self):CODE
LOWsympy/core/add.py845 def _eval_is_extended_nonpositive(self):CODE
LOWsympy/core/add.py860 def _eval_is_extended_negative(self):CODE
LOWsympy/core/numbers.py997 def _eval_is_extended_negative(self):CODE
LOWsympy/core/numbers.py1004 def _eval_is_extended_positive(self):CODE
LOWsympy/core/random.py105def test_derivative_numerically(f, z, tol=1.0e-6, a=2, b=-1, c=3, d=1):CODE
LOWsympy/core/mul.py1284 def _eval_is_rational_function(self, syms):CODE
LOWsympy/core/mul.py1306 def _eval_is_zero_infinite_helper(self):CODE
LOWsympy/core/mul.py1594 def _eval_is_extended_positive(self):CODE
LOWsympy/core/mul.py1647 def _eval_is_extended_negative(self):CODE
LOWsympy/core/basic.py156def _get_postprocessors_for_type(arg_type):CODE
LOWsympy/core/basic.py2168 def _exec_constructor_postprocessors(cls, obj):CODE
LOWsympy/core/evalf.py1763def _evalf_with_bounded_error(x: Expr, eps: Expr | None = None,STRING
LOWsympy/core/power.py1318 def _eval_is_rational_function(self, syms):CODE
LOWsympy/core/power.py404 def _eval_is_extended_positive(self):STRING
LOWsympy/core/power.py433 def _eval_is_extended_negative(self):STRING
LOWsympy/core/function.py1930 def _get_zero_with_shape_like(cls, expr):CODE
LOWsympy/core/function.py1934 def _dispatch_eval_derivative_n_times(cls, expr, v, count):CODE
LOWsympy/core/assumptions.py230def _load_pre_generated_assumption_rules() -> FactRules:CODE
LOWsympy/core/assumptions.py238def _generate_assumption_rules():CODE
LOWsympy/core/assumptions.py623def _prepare_class_assumptions(cls):CODE
LOWsympy/core/expr.py912 def _eval_is_extended_positive_negative(self, positive):CODE
LOWsympy/core/expr.py951 def _eval_is_extended_positive(self):CODE
LOWsympy/core/expr.py954 def _eval_is_extended_negative(self):CODE
LOWsympy/core/expr.py4026 def _eval_derivative_matrix_lines(self, x):CODE
LOWsympy/core/expr.py4064 def _eval_is_rational_function(self, syms):CODE
2573 more matches not shown…
Cross-Language Confusion273 hits · 1536 pts
SeverityFileLineSnippetContext
HIGHsympy/core/relational.py393 left, right = [i.equals(j,STRING
HIGHsympy/core/relational.py400 lr, rl = [i.equals(j, failing_expression=failing_expression)STRING
HIGHsympy/core/relational.py417 left = a.lhs.equals(b.lhs,STRING
HIGHsympy/core/relational.py421 right = a.rhs.equals(b.rhs,STRING
HIGHsympy/core/relational.py446 elif dif.equals(0): # XXX this is expensiveSTRING
HIGHsympy/core/evalf.py454 if not re_im.equals(0):CODE
HIGHsympy/core/power.py1819 bz = b.equals(0)CODE
HIGHsympy/core/power.py1829 bz = b.equals(0)CODE
HIGHsympy/core/power.py1835 return e.equals(0)CODE
HIGHsympy/core/power.py46 | | | undefined, but is convenient in some contexts |STRING
HIGHsympy/core/expr.py738 if b is not None and b is not S.NaN and b.equals(a) is False:CODE
HIGHsympy/core/expr.py742 if b is not None and b is not S.NaN and b.equals(a) is False:CODE
HIGHsympy/core/expr.py747 if b.equals(a) is False:CODE
HIGHsympy/core/expr.py374 ok = self.equals(i)CODE
HIGHsympy/core/expr.py814 fac_zero = [fac.equals(0) for fac in factors]CODE
HIGHsympy/core/expr.py3992 if x.equals(0):CODE
HIGHsympy/core/tests/test_assumptions.py1053 assert e.equals(0) is TrueCODE
HIGHsympy/core/tests/test_expr.py1938 assert meter.equals(0) is FalseCODE
HIGHsympy/core/tests/test_expr.py1942 assert eq.equals(0)CODE
HIGHsympy/core/tests/test_expr.py1951 assert diff.equals(0) is None # should be False, but previously this was False due to wrong intermediate resultCODE
HIGHsympy/core/tests/test_expr.py1961 assert eq.equals(0)CODE
HIGHsympy/core/tests/test_expr.py1986 assert z.equals(0)CODE
HIGHsympy/core/tests/test_expr.py2230 assert f1.equals(f2) is NoneCODE
HIGHsympy/core/tests/test_expr.py2298 assert x.equals(y) is FalseCODE
HIGHsympy/core/tests/test_sympify.py557 assert all(set(i.values()) == {null} for i in (CODE
HIGHsympy/polys/rootoftools.py749 elif poly.length() == 2 and poly.TC():CODE
HIGHsympy/polys/polyroots.py1019 if f.length() == 2 and n > 2:CODE
HIGHsympy/polys/polyroots.py1086 if f.length() == 2:CODE
HIGHsympy/polys/polyroots.py1149 elif f.length() == 2:CODE
HIGHsympy/polys/matrices/tests/test_nullspace.py118def _divide_last(null):CODE
HIGHsympy/polys/matrices/tests/test_nullspace.py137def _check_primitive(null, null_ans):CODE
HIGHsympy/polys/matrices/tests/test_nullspace.py139 null = _to_DM(null, null_ans)CODE
HIGHsympy/polys/matrices/tests/test_nullspace.py144def _check_divided(null, null_ans):CODE
HIGHsympy/polys/matrices/tests/test_nullspace.py146 null = _to_DM(null, null_ans)CODE
HIGHsympy/printing/tests/test_c.py200 assert ccode(x & y) == "x && y"CODE
HIGHsympy/printing/tests/test_c.py201 assert ccode(x | y) == "x || y"CODE
HIGHsympy/printing/tests/test_c.py203 assert ccode(x & y & z) == "x && y && z"CODE
HIGHsympy/printing/tests/test_c.py204 assert ccode(x | y | z) == "x || y || z"CODE
HIGHsympy/printing/tests/test_c.py205 assert ccode((x & y) | z) == "z || x && y"CODE
HIGHsympy/printing/tests/test_c.py205 assert ccode((x & y) | z) == "z || x && y"CODE
HIGHsympy/printing/tests/test_c.py206 assert ccode((x | y) & z) == "z && (x || y)"CODE
HIGHsympy/printing/tests/test_c.py208 assert ccode(x ^ y) == '(x || y) && (!x || !y)'CODE
HIGHsympy/printing/tests/test_c.py209 assert ccode((x ^ y) ^ z) == '(x || y || z) && (x || !y || !z) && (y || !x || !z) && (z || !x || !y)'CODE
HIGHsympy/printing/tests/test_c.py211 assert ccode(Equivalent(x, z ^ y, Implies(z, x))) == '(x || (y || !z) && (z || !y)) && (z && !x || (y || z) && (!y |CODE
HIGHsympy/printing/tests/test_glsl.py105 assert glsl_code(x & y) == "x && y"CODE
HIGHsympy/printing/tests/test_glsl.py106 assert glsl_code(x | y) == "x || y"CODE
HIGHsympy/printing/tests/test_glsl.py108 assert glsl_code(x & y & z) == "x && y && z"CODE
HIGHsympy/printing/tests/test_glsl.py109 assert glsl_code(x | y | z) == "x || y || z"CODE
HIGHsympy/printing/tests/test_glsl.py110 assert glsl_code((x & y) | z) == "z || x && y"CODE
HIGHsympy/printing/tests/test_glsl.py110 assert glsl_code((x & y) | z) == "z || x && y"CODE
HIGHsympy/printing/tests/test_glsl.py111 assert glsl_code((x | y) & z) == "z && (x || y)"CODE
HIGHsympy/printing/tests/test_julia.py143 assert julia_code(x & y) == "x && y"CODE
HIGHsympy/printing/tests/test_julia.py144 assert julia_code(x | y) == "x || y"CODE
HIGHsympy/printing/tests/test_julia.py146 assert julia_code(x & y & z) == "x && y && z"CODE
HIGHsympy/printing/tests/test_julia.py147 assert julia_code(x | y | z) == "x || y || z"CODE
HIGHsympy/printing/tests/test_julia.py148 assert julia_code((x & y) | z) == "z || x && y"CODE
HIGHsympy/printing/tests/test_julia.py148 assert julia_code((x & y) | z) == "z || x && y"CODE
HIGHsympy/printing/tests/test_julia.py149 assert julia_code((x | y) & z) == "z && (x || y)"CODE
HIGHsympy/printing/tests/test_rust.py123 assert rust_code(k & m) == "k && m"CODE
HIGHsympy/printing/tests/test_rust.py124 assert rust_code(k | m) == "k || m"CODE
213 more matches not shown…
Deep Nesting1507 hits · 1421 pts
SeverityFileLineSnippetContext
LOWisympy.py175CODE
LOWsympy/series/sequences.py304CODE
LOWsympy/series/sequences.py1119CODE
LOWsympy/series/sequences.py1229CODE
LOWsympy/series/limits.py70CODE
LOWsympy/series/limits.py198CODE
LOWsympy/series/limits.py265CODE
LOWsympy/series/order.py132CODE
LOWsympy/series/order.py376CODE
LOWsympy/series/order.py462CODE
LOWsympy/series/formal.py31CODE
LOWsympy/series/formal.py418CODE
LOWsympy/series/formal.py789CODE
LOWsympy/series/formal.py1059CODE
LOWsympy/series/formal.py1109CODE
LOWsympy/series/gruntz.py249CODE
LOWsympy/series/gruntz.py368CODE
LOWsympy/series/gruntz.py428CODE
LOWsympy/series/gruntz.py541CODE
LOWsympy/series/gruntz.py662CODE
LOWsympy/series/limitseq.py68CODE
LOWsympy/series/limitseq.py162CODE
LOWsympy/series/fourier.py515CODE
LOWsympy/core/facts.py76CODE
LOWsympy/core/facts.py136CODE
LOWsympy/core/facts.py327CODE
LOWsympy/core/add.py212CODE
LOWsympy/core/add.py477CODE
LOWsympy/core/add.py660CODE
LOWsympy/core/add.py673CODE
LOWsympy/core/add.py701CODE
LOWsympy/core/add.py762CODE
LOWsympy/core/add.py778CODE
LOWsympy/core/add.py830CODE
LOWsympy/core/add.py845CODE
LOWsympy/core/add.py860CODE
LOWsympy/core/add.py1019CODE
LOWsympy/core/add.py1183CODE
LOWsympy/core/exprtools.py33CODE
LOWsympy/core/exprtools.py982CODE
LOWsympy/core/exprtools.py1272CODE
LOWsympy/core/exprtools.py1396CODE
LOWsympy/core/exprtools.py291CODE
LOWsympy/core/exprtools.py488CODE
LOWsympy/core/exprtools.py558CODE
LOWsympy/core/exprtools.py720CODE
LOWsympy/core/traversal.py37CODE
LOWsympy/core/sorting.py11CODE
LOWsympy/core/sorting.py203CODE
LOWsympy/core/symbol.py689CODE
LOWsympy/core/symbol.py902CODE
LOWsympy/core/symbol.py965CODE
LOWsympy/core/numbers.py75CODE
LOWsympy/core/numbers.py4300CODE
LOWsympy/core/numbers.py352CODE
LOWsympy/core/numbers.py487CODE
LOWsympy/core/numbers.py498CODE
LOWsympy/core/numbers.py509CODE
LOWsympy/core/numbers.py782CODE
LOWsympy/core/numbers.py921CODE
1447 more matches not shown…
Decorative Section Separators281 hits · 704 pts
SeverityFileLineSnippetContext
MEDIUMsympy/core/power.py286 # ===================================================COMMENT
MEDIUMsympy/core/function.py1446 # -------------------------------------------------------------COMMENT
MEDIUMsympy/ntheory/tests/test_primetest.py174 #-------------COMMENT
MEDIUMsympy/solvers/solvers.py1683 # -----------------------STRING
MEDIUMsympy/solvers/diophantine/diophantine.py1651 # --------------------------STRING
MEDIUMsympy/testing/runtests.py851 # --------------------------------------------------------------------STRING
MEDIUMsympy/sets/fancysets.py841 #---------------------COMMENT
MEDIUMsympy/sets/fancysets.py844 # --------------------COMMENT
MEDIUMsympy/sets/fancysets.py847 #---------------------COMMENT
MEDIUMsympy/sets/fancysets.py850 # --------------------COMMENT
MEDIUMsympy/sets/fancysets.py859 #---------------------COMMENT
MEDIUMsympy/sets/fancysets.py862 # --------------------COMMENT
MEDIUMsympy/sets/handlers/intersection.py168 # -------------------COMMENT
MEDIUMsympy/combinatorics/polyhedron.py834# -----------------------------------------------------------------------COMMENT
MEDIUMsympy/combinatorics/polyhedron.py839# -----------------------------------------------------------------------COMMENT
MEDIUMsympy/combinatorics/fp_groups.py395#==============================================================================COMMENT
MEDIUMsympy/combinatorics/fp_groups.py397#==============================================================================COMMENT
MEDIUMsympy/combinatorics/fp_groups.py956#========================================================================STRING
MEDIUMsympy/combinatorics/fp_groups.py958#========================================================================STRING
MEDIUMsympy/functions/special/polynomials.py41#----------------------------------------------------------------------------COMMENT
MEDIUMsympy/functions/special/polynomials.py439#----------------------------------------------------------------------------STRING
MEDIUMsympy/functions/special/polynomials.py1002#----------------------------------------------------------------------------STRING
MEDIUMsympy/functions/special/polynomials.py1206#----------------------------------------------------------------------------STRING
MEDIUMsympy/functions/special/polynomials.py286#----------------------------------------------------------------------------STRING
MEDIUMsympy/functions/special/polynomials.py769#----------------------------------------------------------------------------STRING
MEDIUMsympy/functions/elementary/piecewise.py402 # -----------------------------------------------------------------------COMMENT
MEDIUMsympy/functions/elementary/piecewise.py546 # -----------------------------------------------------------------COMMENT
MEDIUMsympy/physics/secondquant.py2856 # ============================COMMENT
MEDIUMsympy/physics/quantum/qft.py40#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/qft.py42#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/transforms.py32#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/transforms.py34#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/transforms.py177#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/transforms.py179#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/transforms.py275#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/transforms.py277#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/kind.py76#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/kind.py78#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/qubit.py48#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/qubit.py50#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/qubit.py56 #-------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/qubit.py58 #-------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/qubit.py85 #-------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/qubit.py87 #-------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/qubit.py103 #-------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/qubit.py105 #-------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/qubit.py113 #-------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/qubit.py115 #-------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/qubit.py435#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/qubit.py437#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/qubit.py535#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/qubit.py537#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/cg.py34#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/cg.py36#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/spin.py74#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/spin.py76#-----------------------------------------------------------------------------COMMENT
MEDIUMsympy/physics/quantum/spin.py917#-----------------------------------------------------------------------------STRING
MEDIUMsympy/physics/quantum/spin.py919#-----------------------------------------------------------------------------STRING
MEDIUMsympy/physics/quantum/spin.py1794#-----------------------------------------------------------------------------STRING
MEDIUMsympy/physics/quantum/spin.py1796#-----------------------------------------------------------------------------STRING
221 more matches not shown…
Cross-File Repetition95 hits · 475 pts
SeverityFileLineSnippetContext
HIGHsympy/core/add.py0efficiently extract the coefficient of a summation.STRING
HIGHsympy/core/numbers.py0efficiently extract the coefficient of a summation.STRING
HIGHsympy/core/expr.py0efficiently extract the coefficient of a summation.STRING
HIGHsympy/vector/basisdependent.py0efficiently extract the coefficient of a summation.STRING
HIGHsympy/core/basic.py0the expr_free_symbols property is deprecated. use free_symbols to get the free symbols of an expression.STRING
HIGHsympy/core/function.py0the expr_free_symbols property is deprecated. use free_symbols to get the free symbols of an expression.STRING
HIGHsympy/core/expr.py0the expr_free_symbols property is deprecated. use free_symbols to get the free symbols of an expression.STRING
HIGHsympy/tensor/indexed.py0the expr_free_symbols property is deprecated. use free_symbols to get the free symbols of an expression.STRING
HIGHsympy/polys/series/ringpython.py0convert a power series element into the corresponding element of this ring.STRING
HIGHsympy/polys/series/ringflint.py0convert a power series element into the corresponding element of this ring.STRING
HIGHsympy/polys/series/ring.py0convert a power series element into the corresponding element of this ring.STRING
HIGHsympy/polys/series/base.py0convert a power series element into the corresponding element of this ring.STRING
HIGHsympy/polys/series/ringpython.py0return the coefficients of a power series as a list.STRING
HIGHsympy/polys/series/ringflint.py0return the coefficients of a power series as a list.STRING
HIGHsympy/polys/series/base.py0return the coefficients of a power series as a list.STRING
HIGHsympy/polys/series/ringpython.py0check if two power series have the same representation.STRING
HIGHsympy/polys/series/ringflint.py0check if two power series have the same representation.STRING
HIGHsympy/polys/series/base.py0check if two power series have the same representation.STRING
HIGHsympy/polys/series/ringpython.py0check if a arg is a ground element of the power series ring.STRING
HIGHsympy/polys/series/ringflint.py0check if a arg is a ground element of the power series ring.STRING
HIGHsympy/polys/series/base.py0check if a arg is a ground element of the power series ring.STRING
HIGHsympy/polys/domains/field.py0quotient of ``a`` and ``b``, implies ``__truediv__``.STRING
HIGHsympy/polys/domains/gmpyrationalfield.py0quotient of ``a`` and ``b``, implies ``__truediv__``.STRING
HIGHsympy/polys/domains/rationalfield.py0quotient of ``a`` and ``b``, implies ``__truediv__``.STRING
HIGHsympy/polys/domains/field.py0division of ``a`` and ``b``, implies ``__truediv__``.STRING
HIGHsympy/polys/domains/gmpyrationalfield.py0division of ``a`` and ``b``, implies ``__truediv__``.STRING
HIGHsympy/polys/domains/rationalfield.py0division of ``a`` and ``b``, implies ``__truediv__``.STRING
HIGHsympy/polys/matrices/ddm.py0says whether this matrix is diagonal. true can be returned even if the matrix is not square.STRING
HIGHsympy/polys/matrices/domainmatrix.py0says whether this matrix is diagonal. true can be returned even if the matrix is not square.STRING
HIGHsympy/polys/matrices/sdm.py0says whether this matrix is diagonal. true can be returned even if the matrix is not square.STRING
HIGHsympy/printing/str.py0setting permutation.print_cyclic is deprecated. instead use init_printing(perm_cyclic={perm_cyclic}).STRING
HIGHsympy/printing/repr.py0setting permutation.print_cyclic is deprecated. instead use init_printing(perm_cyclic={perm_cyclic}).STRING
HIGHsympy/printing/latex.py0setting permutation.print_cyclic is deprecated. instead use init_printing(perm_cyclic={perm_cyclic}).STRING
HIGHsympy/printing/pretty/pretty.py0setting permutation.print_cyclic is deprecated. instead use init_printing(perm_cyclic={perm_cyclic}).STRING
HIGHsympy/liealgebras/type_d.py0this is a method just to generate roots with a -1 in the ith position and a 1 in the jth position.STRING
HIGHsympy/liealgebras/type_a.py0this is a method just to generate roots with a -1 in the ith position and a 1 in the jth position.STRING
HIGHsympy/liealgebras/type_b.py0this is a method just to generate roots with a -1 in the ith position and a 1 in the jth position.STRING
HIGHsympy/liealgebras/type_e.py0this is a method just to generate roots with a -1 in the ith position and a 1 in the jth position.STRING
HIGHsympy/liealgebras/type_d.py0the ith simple root for the c series every lie algebra has a unique root system. given a root system q, there is a subseSTRING
HIGHsympy/liealgebras/type_b.py0the ith simple root for the c series every lie algebra has a unique root system. given a root system q, there is a subseSTRING
HIGHsympy/liealgebras/type_c.py0the ith simple root for the c series every lie algebra has a unique root system. given a root system q, there is a subseSTRING
HIGHsympy/liealgebras/type_d.py0generate all the positive roots of a_n this is half of all of the roots of a_n; by multiplying all the positive roots bySTRING
HIGHsympy/liealgebras/type_e.py0generate all the positive roots of a_n this is half of all of the roots of a_n; by multiplying all the positive roots bySTRING
HIGHsympy/liealgebras/type_a.py0generate all the positive roots of a_n this is half of all of the roots of a_n; by multiplying all the positive roots bySTRING
HIGHsympy/liealgebras/type_f.py0generate all the positive roots of a_n this is half of all of the roots of a_n; by multiplying all the positive roots bySTRING
HIGHsympy/liealgebras/type_b.py0generate all the positive roots of a_n this is half of all of the roots of a_n; by multiplying all the positive roots bySTRING
HIGHsympy/liealgebras/type_c.py0generate all the positive roots of a_n this is half of all of the roots of a_n; by multiplying all the positive roots bySTRING
HIGHsympy/liealgebras/type_g.py0generate all the positive roots of a_n this is half of all of the roots of a_n; by multiplying all the positive roots bySTRING
HIGHsympy/liealgebras/type_d.py0the cartan matrix for c_n the cartan matrix matrix for a lie algebra is generated by assigning an ordering to the simpleSTRING
HIGHsympy/liealgebras/type_e.py0the cartan matrix for c_n the cartan matrix matrix for a lie algebra is generated by assigning an ordering to the simpleSTRING
HIGHsympy/liealgebras/type_a.py0the cartan matrix for c_n the cartan matrix matrix for a lie algebra is generated by assigning an ordering to the simpleSTRING
HIGHsympy/liealgebras/type_f.py0the cartan matrix for c_n the cartan matrix matrix for a lie algebra is generated by assigning an ordering to the simpleSTRING
HIGHsympy/liealgebras/type_b.py0the cartan matrix for c_n the cartan matrix matrix for a lie algebra is generated by assigning an ordering to the simpleSTRING
HIGHsympy/liealgebras/type_c.py0the cartan matrix for c_n the cartan matrix matrix for a lie algebra is generated by assigning an ordering to the simpleSTRING
HIGHsympy/liealgebras/type_b.py0dimension of the vector space v underlying the lie algebra examples ======== >>> from sympy.liealgebras.cartan_type impoSTRING
HIGHsympy/liealgebras/type_c.py0dimension of the vector space v underlying the lie algebra examples ======== >>> from sympy.liealgebras.cartan_type impoSTRING
HIGHsympy/liealgebras/type_g.py0dimension of the vector space v underlying the lie algebra examples ======== >>> from sympy.liealgebras.cartan_type impoSTRING
HIGHsympy/integrals/tests/test_rde.py0most of these tests come from the examples in bronstein's book.STRING
HIGHsympy/integrals/tests/test_risch.py0most of these tests come from the examples in bronstein's book.STRING
HIGHsympy/integrals/tests/test_prde.py0most of these tests come from the examples in bronstein's book.STRING
35 more matches not shown…
Over-Commented Block210 hits · 208 pts
SeverityFileLineSnippetContext
LOWasv.conf.actions.json21 // https://github.com/sympy/sympy/issues/26239COMMENT
LOWasv.conf.actions.json41 // The tool to use to create environments. May be "conda",COMMENT
LOWasv.conf.actions.json81COMMENT
LOWsympy/series/residues.py41COMMENT
LOWsympy/core/backend.py81# Expected behaviour of a SymPy mutable/immutable matrix .simplify() method:COMMENT
LOWsympy/core/containers.py121 # XXX: Basic defines count() as something different, so we can'tCOMMENT
LOWsympy/core/cache.py101 # always call function itself and compare it with cached versionCOMMENT
LOWsympy/core/numbers.py881 elif isinstance(num, tuple) and len(num) in (3, 4):COMMENT
LOWsympy/core/mul.py501 # in c_powersCOMMENT
LOWsympy/core/mul.py1301 if any(a.is_zero is not False for a in self.args):COMMENT
LOWsympy/core/mul.py1321 # would be indicated by None.COMMENT
LOWsympy/core/intfunc.py261 # a' = A*a + B*b, b' = C*a + D*bCOMMENT
LOWsympy/core/intfunc.py281 # x'%y" = x' - q*y" < x" - q*y' = x"%y',COMMENT
LOWsympy/core/power.py1461 return Expr.matches(self, expr, repl_dict)COMMENT
LOWsympy/core/function.py561 try:COMMENT
LOWsympy/core/function.py801 args = [a.as_leading_term(x, logx=logx) for a in self.args]COMMENT
LOWsympy/core/assumptions.py581 # though that independent code e.g. called indirectly by the handler orCOMMENT
LOWsympy/core/assumptions.py601 # single-threaded context but in multithreaded code it is possible thatCOMMENT
LOWsympy/core/assumptions.py681# in case someone has been using the ManagedProperties class in downstreamCOMMENT
LOWsympy/core/expr.py841 # we can just consider the cases where the approximation appearsCOMMENT
LOWsympy/core/expr.py3941 shift = -digits_to_decimal + dpsCOMMENT
LOWsympy/core/expr.py3961 # to 15 digits:COMMENT
LOWsympy/core/expr.py3981 # if we declared that we had more than 15 digits of precision.COMMENT
LOWsympy/core/tests/test_singleton.py41 # performance benefit of being able to use 'is' (this only matters in veryCOMMENT
LOWsympy/core/tests/test_relational.py981 # at a lower and higher precision bracket the value of piCOMMENT
LOWsympy/core/tests/test_expr.py2061 assert a.round(10) == Float('3.000000000000000000000000000', '')COMMENT
LOWsympy/polys/euclidtools.py1521COMMENT
LOWsympy/polys/rootoftools.py961 by = mp.mpf(str(interval.by))COMMENT
LOWsympy/polys/puiseux.py1"""COMMENT
LOWsympy/polys/domains/algebraicfield.py621 """Construct the converter to convert back to Expr"""COMMENT
LOWsympy/polys/matrices/dense.py161 # In cases like GF(p), QQ<sqrt(2)>, RR or CC though multiplication isCOMMENT
LOWsympy/polys/matrices/dense.py301 # Given an n x n matrix A and n x 1 matrix b:COMMENT
LOWsympy/polys/matrices/linsolve.py1#COMMENT
LOWsympy/polys/matrices/domainmatrix.py3201COMMENT
LOWsympy/polys/matrices/rref.py1# Algorithms for computing the reduced row echelon form of a matrix.COMMENT
LOWsympy/polys/matrices/rref.py281COMMENT
LOWsympy/polys/matrices/rref.py321 if denom_lcm.bit_length() < 50:COMMENT
LOWsympy/polys/matrices/sdm.py1701 # The algorithm then processes each row Ai one at a time. Previously seenCOMMENT
LOWsympy/polys/matrices/sdm.py1881 # nonzero elements. We will build the RREF matrix starting from an emptyCOMMENT
LOWsympy/polys/matrices/sdm.py1901 # fully reduced rows because we can handle them more efficiently whenCOMMENT
LOWsympy/polys/matrices/sdm.py2181 a = MijCOMMENT
LOWsympy/polys/matrices/_dfm.py1#COMMENT
LOWsympy/polys/matrices/_dfm.py21#COMMENT
LOWsympy/polys/matrices/_dfm.py661 # TODO: Implement similar algorithms for DDM and SDM.COMMENT
LOWsympy/polys/matrices/_dfm.py821COMMENT
LOWsympy/polys/matrices/tests/test_xxm.py1#COMMENT
LOWsympy/polys/matrices/tests/test_linsolve.py81 y:8519/15990 + 1784/7995*I,COMMENT
LOWsympy/polys/matrices/tests/test_rref.py521 (COMMENT
LOWsympy/concrete/summations.py621 try:COMMENT
LOWsympy/concrete/tests/test_products.py21def test_karr_convention():COMMENT
LOWsympy/concrete/tests/test_sums_products.py41from sympy.simplify.simplify import simplifyCOMMENT
LOWsympy/concrete/tests/test_sums_products.py61 # the upper limit being *exclusive*.COMMENT
LOWsympy/ntheory/primetest.py781 #if n < 38010307:COMMENT
LOWsympy/ntheory/generate.py41 >>> sieve._listCOMMENT
LOWsympy/ntheory/generate.py61 #COMMENT
LOWsympy/ntheory/generate.py81 #COMMENT
LOWsympy/ntheory/bbp_pi.py1'''COMMENT
LOWsympy/ntheory/partitions_.py181 """COMMENT
LOWsympy/printing/codeprinter.py241 # (temporary variables?)COMMENT
LOWsympy/printing/rcode.py181 # from sympy.functions.elementary.piecewise import PiecewiseCOMMENT
150 more matches not shown…
Self-Referential Comments80 hits · 206 pts
SeverityFileLineSnippetContext
MEDIUMsympy/__init__.py260# This module is slow to import:COMMENT
MEDIUMsympy/polys/rings.py293 # Create a new ring instance.COMMENT
MEDIUMsympy/polys/domains/mpelements.py2# This module is deprecated and should not be used any more. The actualCOMMENT
MEDIUMsympy/polys/domains/algebraicfield.py676 # Create a function to do the conversion efficiently:COMMENT
MEDIUMsympy/polys/matrices/linsolve.py4# This module defines the _linsolve function which is the internal workhorseCOMMENT
MEDIUMsympy/polys/matrices/domainmatrix.py3082 # Define a new polynomial f with f[i] = -(-1)^n*p[i] for i=0..n-1. ThenSTRING
MEDIUMsympy/concrete/summations.py644 # The following code can grows like 2**n where n is theSTRING
MEDIUMsympy/ntheory/generate.py226 # Create the list such that block[x] iff (a + 2x + 1) is prime.COMMENT
MEDIUMsympy/printing/rcode.py212 # This method is called only for inline if constructsCOMMENT
MEDIUMsympy/printing/llvmjitcode.py233 # Create a wrapped double: PyObject* PyFloat_FromDouble(double v)COMMENT
MEDIUMsympy/printing/llvmjitcode.py241 # Create a tuple: PyObject* PyTuple_Pack(Py_ssize_t n, ...)COMMENT
MEDIUMsympy/printing/tests/test_tensorflow.py76# Creating a custom inverse test.COMMENT
MEDIUMsympy/logic/boolalg.py3199 # Create a list of possible replacementsCOMMENT
MEDIUMsympy/logic/boolalg.py3265 # Create a list of possible replacementsCOMMENT
MEDIUMsympy/logic/algorithms/dpll2.py132 # Create the base levelCOMMENT
MEDIUMsympy/solvers/ode/nonhomogeneous.py86 # Create a dict root: multiplicity or charrootsSTRING
MEDIUMsympy/solvers/ode/nonhomogeneous.py205 # Create a dict root: multiplicity or charrootsSTRING
MEDIUMsympy/codegen/abstract_nodes.py1"""This module provides containers for python objects that are validSTRING
MEDIUMsympy/codegen/ast.py706 # Create a graph where the nodes are assignments and there is a directed edgeCOMMENT
MEDIUMsympy/codegen/tests/test_applications.py1# This file contains tests that exercise multiple AST nodesCOMMENT
MEDIUMsympy/utilities/lambdify.py929 # Create the function definition code and execute itCOMMENT
MEDIUMsympy/utilities/pkgdata.py1# This module is deprecated and will be removed.COMMENT
MEDIUMsympy/utilities/tests/test_codegen_julia.py48 "# This file is part of 'project'\n"CODE
MEDIUMsympy/utilities/tests/test_codegen_julia.py289 "# This file is part of 'project'\n"CODE
MEDIUMsympy/integrals/laplace.py804 # The following code checks all remaining poles. If t1 is a pole atCOMMENT
MEDIUMsympy/integrals/rationaltools.py1"""This module implements tools for integrating rational functions. """STRING
MEDIUMsympy/integrals/tests/test_integrals.py2154 # Define the symbolsCOMMENT
MEDIUMsympy/integrals/tests/test_integrals.py2158 # Define the integral expressionCOMMENT
MEDIUMsympy/integrals/tests/test_integrals.py2175 # Define the symbol and the integral expressionCOMMENT
MEDIUMsympy/plotting/experimental_lambdify.py407 # Create the final ordered tuples of dictionariesCOMMENT
MEDIUMsympy/plotting/pygletplot/plot_mode.py79 # Create the objectCOMMENT
MEDIUMsympy/plotting/backends/matplotlibbackend/matplotlib.py123 # Create the collectionsCOMMENT
MEDIUMsympy/combinatorics/rewritingsystem.py45 # Create a finite state machine as an instance of the StateMachine objectCOMMENT
MEDIUMsympy/functions/special/hyper.py33 # This method is only needed because hyper._eval_as_leading_term falls backCOMMENT
MEDIUMsympy/functions/special/polynomials.py431 # This function is just kept for backwards compatibilitySTRING
MEDIUMsympy/functions/special/polynomials.py994 # This function is just kept for backwards compatibilitySTRING
MEDIUMsympy/functions/special/polynomials.py1101 # This function is just kept for backwards compatibilitySTRING
MEDIUMsympy/functions/special/polynomials.py1198 # This function is just kept for backwards compatibilitySTRING
MEDIUMsympy/functions/special/polynomials.py204 # This function is just kept for backwards compatibilitySTRING
MEDIUMsympy/functions/special/polynomials.py557 # This function is just kept for backwards compatibilitySTRING
MEDIUMsympy/functions/special/polynomials.py683 # This function is just kept for backwards compatibilitySTRING
MEDIUMsympy/functions/special/polynomials.py885 # This function is just kept for backwards compatibilitySTRING
MEDIUMsympy/functions/special/polynomials.py1316 # This function is just kept for backwards compatibilitySTRING
MEDIUMsympy/functions/special/polynomials.py1442 # This function is just kept for backwards compatibilitySTRING
MEDIUMsympy/tensor/array/expressions/array_expressions.py543 # Create an index, target-position-key array:STRING
MEDIUMsympy/tensor/array/expressions/array_expressions.py1795 # Create a collector for the new diagonal indices:STRING
MEDIUMsympy/geometry/curve.py340 """This function is used to rotate a curve along given point ``pt`` at given angle(in radian).STRING
MEDIUMsympy/physics/mechanics/system.py1518 # Create a list of all of the expressions in the equations of motionCOMMENT
MEDIUMsympy/physics/mechanics/system.py1536 # Create a list of all of the expressions in the equations of motionCOMMENT
MEDIUMsympy/physics/mechanics/wrapping_geometry.py646 """This method is implemented as required by WrappingGeometryBase, use WrappingCone.apex instead."""STRING
MEDIUMsympy/physics/mechanics/lagrange.py211 # Creating the qs, qdots and qdoubledotsCOMMENT
MEDIUMsympy/physics/mechanics/lagrange.py254 # Creating the multipliersCOMMENT
MEDIUMsympy/physics/mechanics/tests/test_lagrange.py45 # Creating the disc 'D'; we create the point that represents the massCOMMENT
MEDIUMsympy/physics/mechanics/tests/test_system.py8# This class is going to be tested using a simple pendulum set up in x and yCOMMENT
MEDIUMsympy/physics/mechanics/tests/test_kane.py276 # Defining the constants and knowns of the systemCOMMENT
MEDIUMsympy/physics/control/lti.py853 >>> #Create a Transfer Function with more than one variableCODE
MEDIUMsympy/physics/control/lti.py907 >>> #Create a Transfer Function with variable poles and zerosCODE
MEDIUMsympy/physics/quantum/kind.py42# Create an instance as many situations need this.COMMENT
MEDIUMsympy/physics/quantum/kind.py56# Create an instance as many situations need this.COMMENT
MEDIUMsympy/physics/quantum/kind.py72# Create an instance as many situations need this.COMMENT
20 more matches not shown…
Modern Structural Boilerplate171 hits · 174 pts
SeverityFileLineSnippetContext
LOWsympy/__init__.py267__all__ = [CODE
LOWsympy/series/__init__.py20__all__ = ['Order', 'O', 'limit', 'Limit', 'gruntz', 'series', 'approximants',CODE
LOWsympy/crypto/__init__.py19__all__ = [CODE
LOWsympy/core/backend.py113__all__ = [CODE
LOWsympy/core/sorting.py8__all__ = ['default_sort_key', 'ordered']CODE
LOWsympy/core/__init__.py44__all__ = [CODE
LOWsympy/unify/__init__.py12__all__ = [CODE
LOWsympy/polys/rootoftools.py34__all__ = ['CRootOf']CODE
LOWsympy/polys/__init__.py4__all__ = [CODE
LOWsympy/polys/polyoptions.py5__all__ = ["Options"]CODE
LOWsympy/polys/domainmatrix.py13__all__ = ['DomainMatrix']CODE
LOWsympy/polys/orderings.py7__all__ = ["lex", "grlex", "grevlex", "ilex", "igrlex", "igrevlex"]CODE
LOWsympy/polys/series/__init__.py2__all__ = [CODE
LOWsympy/polys/domains/domain.py1577__all__ = ['Domain']CODE
LOWsympy/polys/domains/__init__.py4__all__ = [CODE
LOWsympy/polys/domains/groundtypes.py84__all__ = [CODE
LOWsympy/polys/numberfields/__init__.py4__all__ = [CODE
LOWsympy/polys/numberfields/exceptions.py53__all__ = [CODE
LOWsympy/polys/agca/__init__.py6__all__ = ['homomorphism']CODE
LOWsympy/polys/matrices/__init__.py14__all__ = [CODE
LOWsympy/polys/matrices/exceptions.py64__all__ = [CODE
LOWsympy/polys/matrices/_dfm.py67__all__ = ['DFM']CODE
LOWsympy/concrete/__init__.py5__all__ = [CODE
LOWsympy/holonomic/__init__.py14__all__ = [STRING
LOWsympy/strategies/__init__.py36__all__ = [CODE
LOWsympy/strategies/branch/__init__.py8__all__ = [CODE
LOWsympy/ntheory/__init__.py31__all__ = [CODE
LOWsympy/discrete/__init__.py16__all__ = [CODE
LOWsympy/printing/__init__.py48__all__ = [CODE
LOWsympy/printing/lambdarepr.py10__all__ = [CODE
LOWsympy/printing/dot.py8__all__ = ['dotprint']CODE
LOWsympy/printing/pretty/__init__.py10__all__ = [CODE
LOWsympy/printing/pretty/pretty_symbology.py35__all__ = ['greek_unicode', 'sub', 'sup', 'xsym', 'vobj', 'hobj', 'pretty_symbol',CODE
LOWsympy/algebras/quaternion.py142 def set_norm(self, norm: SExpr | None) -> None:CODE
LOWsympy/algebras/__init__.py4__all__ = ["Quaternion",]CODE
LOWsympy/logic/__init__.py7__all__ = [CODE
LOWsympy/logic/utilities/__init__.py4__all__ = ['load_file']CODE
LOWsympy/solvers/__init__.py45__all__ = [CODE
LOWsympy/solvers/diophantine/__init__.py4__all__ = [CODE
LOWsympy/solvers/diophantine/diophantine.py40__all__ = ['diophantine', 'classify_diop']CODE
LOWsympy/solvers/ode/__init__.py13__all__ = [CODE
LOWsympy/codegen/__init__.py21__all__ = [CODE
LOWsympy/multipledispatch/__init__.py8__all__ = [CODE
LOWsympy/liealgebras/__init__.py4__all__ = ['CartanType']CODE
LOWsympy/utilities/__init__.py18__all__ = [CODE
LOWsympy/utilities/codegen.py101__all__ = [CODE
LOWsympy/utilities/_compilation/__init__.py20__all__ = [CODE
LOWsympy/testing/__init__.py9__all__ = [CODE
LOWsympy/integrals/__init__.py30__all__ = [CODE
LOWsympy/assumptions/__init__.py14__all__ = [CODE
LOWsympy/assumptions/relation/__init__.py12__all__ = ['BinaryRelation', 'AppliedBinaryRelation']CODE
LOWsympy/assumptions/relation/equality.py22__all__ = ['EqualityPredicate', 'UnequalityPredicate', 'StrictGreaterThanPredicate',CODE
LOWsympy/assumptions/relation/binrel.py12__all__ = ["BinaryRelation", "AppliedBinaryRelation"]CODE
LOWsympy/assumptions/handlers/__init__.py10__all__ = [CODE
LOWsympy/plotting/__init__.py10__all__ = [CODE
LOWsympy/plotting/intervalmath/__init__.py7__all__ = [CODE
LOWsympy/plotting/backends/matplotlibbackend/__init__.py6__all__ = ["MatplotlibBackend", "_matplotlib_list"]CODE
LOWsympy/plotting/backends/textbackend/__init__.py4__all__ = ["TextBackend"]CODE
LOWsympy/sets/__init__.py22__all__ = [CODE
LOWsympy/combinatorics/__init__.py18__all__ = [CODE
111 more matches not shown…
AI Structural Patterns92 hits · 88 pts
SeverityFileLineSnippetContext
LOWsympy/crypto/crypto.py767CODE
LOWsympy/crypto/crypto.py791CODE
LOWsympy/crypto/crypto.py891CODE
LOWsympy/crypto/crypto.py961CODE
LOWsympy/crypto/crypto.py1026CODE
LOWsympy/crypto/crypto.py1126CODE
LOWsympy/crypto/crypto.py1167CODE
LOWsympy/crypto/crypto.py2292CODE
LOWsympy/core/exprtools.py1267CODE
LOWsympy/core/numbers.py210CODE
LOWsympy/core/evalf.py1170CODE
LOWsympy/core/function.py2565CODE
LOWsympy/core/expr.py3673CODE
LOWsympy/polys/ring_series.py1353CODE
LOWsympy/polys/ring_series.py1870CODE
LOWsympy/polys/polyroots.py849CODE
LOWsympy/polys/polyroots.py864CODE
LOWsympy/polys/polyroots.py880CODE
LOWsympy/polys/galoistools.py1014CODE
LOWsympy/polys/domains/algebraicfield.py684CODE
LOWsympy/polys/numberfields/minpoly.py212CODE
LOWsympy/polys/numberfields/minpoly.py529CODE
LOWsympy/concrete/summations.py1640CODE
LOWsympy/concrete/summations.py342CODE
LOWsympy/concrete/products.py422CODE
LOWsympy/ntheory/factor_.py1221CODE
LOWsympy/printing/preview.py154CODE
LOWsympy/printing/str.py765CODE
LOWsympy/printing/mathml.py74CODE
LOWsympy/printing/llvmjitcode.py134CODE
LOWsympy/printing/llvmjitcode.py148CODE
LOWsympy/printing/smtlib.py270CODE
LOWsympy/printing/pretty/pretty.py1014CODE
LOWsympy/logic/boolalg.py1764CODE
LOWsympy/logic/boolalg.py3180CODE
LOWsympy/solvers/solveset.py3765CODE
LOWsympy/solvers/ode/ode.py357CODE
LOWsympy/codegen/algorithms.py17CODE
LOWsympy/utilities/autowrap.py547CODE
LOWsympy/utilities/codegen.py1991CODE
LOWsympy/utilities/_compilation/runners.py71CODE
LOWsympy/testing/runtests.py500CODE
LOWsympy/testing/runtests.py999CODE
LOWsympy/assumptions/sathandlers.py100CODE
LOWsympy/assumptions/wrapper.py56CODE
LOWsympy/plotting/experimental_lambdify.py206CODE
LOWsympy/plotting/pygletplot/plot_axes.py13CODE
LOWsympy/plotting/backends/base_backend.py207CODE
LOWsympy/combinatorics/tensor_can.py892CODE
LOWsympy/combinatorics/permutations.py1329CODE
LOWsympy/combinatorics/perm_groups.py1136CODE
LOWsympy/interactive/session.py342CODE
LOWsympy/interactive/printing.py306CODE
LOWsympy/tensor/tensor.py2627CODE
LOWsympy/geometry/polygon.py2878CODE
LOWsympy/physics/hep/gamma_matrices.py198CODE
LOWsympy/physics/hep/gamma_matrices.py221CODE
LOWsympy/physics/mechanics/system.py1328CODE
LOWsympy/physics/mechanics/kane.py266CODE
LOWsympy/physics/mechanics/joint.py136CODE
32 more matches not shown…
Excessive Try-Catch Wrapping74 hits · 72 pts
SeverityFileLineSnippetContext
LOWsetup.py217 except Exception:CODE
MEDIUMsetup.py231 print("Error deleting %s - %s." % (e.filename, e.strerror))CODE
LOWsympy/printing/pycode.py432 except Exception: # noqa: BLE001CODE
LOWsympy/solvers/ode/tests/test_single.py244 except Exception as e:STRING
LOWsympy/testing/pytest.py192 except Exception as e: # noqa: BLE001CODE
MEDIUMsympy/testing/pytest.py189def wrapper():CODE
LOWsympy/testing/runtests.py1238 except Exception: # noqa: BLE001CODE
LOWsympy/testing/runtests.py1283 except Exception:CODE
LOWsympy/testing/runtests.py1308 except Exception: # noqa: BLE001CODE
MEDIUMsympy/plotting/series.py54def wrapper_func(func, *args):CODE
MEDIUMsympy/plotting/series.py1573def _adaptive_sampling(self):CODE
MEDIUMsympy/plotting/series.py1659def _adaptive_sampling(self):CODE
LOWsympy/plotting/series.py89 except Exception as err: # noqa: BLE001CODE
LOWsympy/plotting/series.py1370 except Exception as err: # noqa: BLE001CODE
LOWsympy/plotting/series.py1582 except Exception as err: # noqa: BLE001CODE
LOWsympy/plotting/series.py1670 except Exception as err: # noqa: BLE001CODE
LOWsympy/plotting/pygletplot/plot_mode.py230 except Exception as e:CODE
LOWsympy/plotting/pygletplot/color_scheme.py120 except Exception:CODE
LOWsympy/plotting/pygletplot/color_scheme.py136 except Exception as ex:CODE
LOWsympy/plotting/pygletplot/color_scheme.py222 except Exception:CODE
LOWsympy/plotting/pygletplot/color_scheme.py228 except Exception:CODE
MEDIUMsympy/plotting/pygletplot/color_scheme.py225def __call__(self, x, y, z, u, v):CODE
LOWsympy/plotting/pygletplot/plot_mode_base.py114 except Exception:CODE
LOWsympy/plotting/pygletplot/plot_mode_base.py347 except Exception as e:CODE
MEDIUMsympy/plotting/pygletplot/plot_mode_base.py336def _set_color(self, v):CODE
LOWsympy/plotting/pygletplot/managed_window.py47 except Exception as e:CODE
LOWsympy/plotting/pygletplot/managed_window.py66 except Exception as e:CODE
LOWsympy/interactive/session.py487 except Exception: # noqa: BLE001CODE
LOWsympy/interactive/printing.py94 except Exception as e:CODE
LOWsympy/interactive/printing.py107 except Exception as e:CODE
LOWsympy/physics/mechanics/tests/test_kane.py464 except Exception as e:CODE
LOWsympy/parsing/sympy_parser.py1089 except Exception as e: # noqa: BLE001CODE
LOWsympy/parsing/latex/_parse_latex_antlr.py20except Exception:CODE
MEDIUMsympy/parsing/autolev/_listener_autolev_antlr.py1598def exitOutputs2(self, ctx):CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py337 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py343 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py353 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py1364 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py1370 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py1374 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py1392 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py249 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py569 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py597 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py618 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py623 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py666 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py915 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py976 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py982 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py1036 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py1179 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py1288 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py1290 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py1470 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py1475 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py1581 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py1587 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py1606 except Exception:CODE
LOWsympy/parsing/autolev/_listener_autolev_antlr.py1667 except Exception:CODE
14 more matches not shown…
Redundant / Tautological Comments64 hits · 60 pts
SeverityFileLineSnippetContext
LOWsympy/core/relational.py366 # Check if first value has negative signSTRING
LOWsympy/core/sympify.py414 #Check if there exists a converter for any of the types in the mroCOMMENT
LOWsympy/polys/rootconditions.py329 # Check if -1 is a root, since the transformation is not defined in this caseCOMMENT
LOWsympy/polys/polyroots.py569 # Check if f20 has linear factors over domain ZCOMMENT
LOWsympy/ntheory/generate.py514 # Check if n is within the sieve rangeSTRING
LOWsympy/ntheory/factor_.py1496 # Check if it exists in the cacheSTRING
LOWsympy/logic/algorithms/dpll2.py202 # Check if unit prop says the theory is unsat right off the batCOMMENT
LOWsympy/logic/algorithms/dpll2.py274 # Check if we've made the theory unsatCOMMENT
LOWsympy/logic/algorithms/dpll2.py413 # Check if no sentinel update existsCOMMENT
LOWsympy/solvers/solvers.py2227 # Check if there are any non-zero solutions at allSTRING
LOWsympy/solvers/solveset.py2858 # Check if 'symbols' is a set and raise an error if it isSTRING
LOWsympy/solvers/diophantine/diophantine.py580 # Check if the coefficients of y and x obtained are integers or notCOMMENT
LOWsympy/solvers/ode/single.py2834 # Check if b3 = 0 (no first derivative term) or a3 = 0 (no second derivative term)STRING
LOWsympy/solvers/ode/single.py2842 # Check if c3 is of the form A*x^k where k has free symbolsSTRING
LOWsympy/solvers/ode/ode.py2598 # Check if second frobenius series solution exists.STRING
LOWsympy/solvers/ode/riccati.py318 # Check if coefficients are not symbols and floatsSTRING
LOWsympy/solvers/ode/riccati.py365 # Check if degree of numerator is same as denominatorSTRING
LOWsympy/solvers/ode/riccati.py722 # Check if there are any constantsSTRING
LOWsympy/testing/runtests.py1108 # Read the file, convert it to a test, and run it.COMMENT
LOWsympy/plotting/series.py2578 # Check if any point in between is validCOMMENT
LOWsympy/combinatorics/rewritingsystem.py400 # Check if the transition to any new state in possible.COMMENT
LOWsympy/functions/special/bsplines.py65 # Check if arg2 condition smaller than arg1,COMMENT
LOWsympy/functions/elementary/integers.py604 # Check if other <= 0STRING
LOWsympy/functions/elementary/integers.py607 # Check if other >= 1STRING
LOWsympy/functions/elementary/integers.py616 # Check if other < 0STRING
LOWsympy/functions/elementary/integers.py620 # Check if other >= 1STRING
LOWsympy/functions/elementary/integers.py628 # Check if other < 0STRING
LOWsympy/functions/elementary/integers.py631 # Check if other >= 1STRING
LOWsympy/functions/elementary/integers.py640 # Check if other <= 0STRING
LOWsympy/functions/elementary/integers.py643 # Check if other >= 1STRING
LOWsympy/functions/elementary/integers.py701 # Check if other < 0STRING
LOWsympy/functions/elementary/integers.py704 # Check if other >= 1STRING
LOWsympy/tensor/tensor.py2230 # Check if variance of indices needs to be fixed:STRING
LOWsympy/tensor/array/ndim_array.py184 # Check if any index is symbolic:COMMENT
LOWsympy/tensor/array/expressions/from_array_to_matrix.py815 # Check if expression is a trace:STRING
LOWsympy/tensor/array/expressions/from_indexed_to_array.py171 # Check if there are KroneckerDelta objects:STRING
LOWsympy/tensor/array/expressions/from_indexed_to_array.py230 # Check if all indices are compatible. Otherwise expand the dimensions:STRING
LOWsympy/tensor/array/expressions/array_expressions.py270 # Check if there are nested ArraySum objects:STRING
LOWsympy/tensor/array/expressions/array_expressions.py290 # Check if there are nested permutation and lift them up:STRING
LOWsympy/tensor/tests/test_tensor.py1046 #Check if contract_metric gets into an infinite loop when given a TensMul whose coeff is an AddCOMMENT
LOWsympy/tensor/tests/test_tensor.py1139 #Check if TensAdd.contract_delta can handle the case when the TensAdd has non-TensExpr args.COMMENT
LOWsympy/physics/mechanics/system.py1056 # Check if all joint coordinates and speeds are presentCOMMENT
LOWsympy/physics/mechanics/tests/test_linearize.py335 # Check if passing a function to linear_solver worksCOMMENT
LOWsympy/physics/mechanics/tests/test_actuator.py747 # Check if DuffingSpring correctly initializes its attributesSTRING
LOWsympy/physics/mechanics/tests/test_actuator.py812 # Check if certain properties of DuffingSpring object are immutable after initializationSTRING
LOWsympy/physics/mechanics/tests/test_actuator.py827 # Check if the actual string representation of DuffingSpring instance matches the expected string for each provided STRING
LOWsympy/physics/mechanics/tests/test_actuator.py855 # Check if the absolute value of the difference is below a thresholdSTRING
LOWsympy/physics/continuum_mechanics/beam.py3062 # Check if any of the evaluated reaction exists in another directionCOMMENT
LOWsympy/physics/continuum_mechanics/tests/test_column.py299 c2.apply_support(10) # Check if order of applying supports mattersCODE
LOWsympy/physics/vector/frame.py72 # Check if the other object is a CoordinateSym of the same frame andCOMMENT
LOWsympy/physics/vector/frame.py556 # Check if the dcm wrt that frame has already been calculatedSTRING
LOWsympy/physics/control/lti.py2612 # Check if the system is a StateSpaceSTRING
LOWsympy/physics/control/tests/test_lti.py3290 # Check if the system is SISO or MIMO.COMMENT
LOWsympy/physics/control/tests/test_lti.py4256 # Check if the system is SISO or MIMO.COMMENT
LOWsympy/physics/quantum/density.py48 # Check if arg is a tupleCOMMENT
LOWsympy/physics/quantum/identitysearch.py91 # Check if it's diagonalCOMMENT
LOWsympy/physics/quantum/identitysearch.py94 # Check if the rows indices and columns indices are the sameCOMMENT
LOWsympy/parsing/mathematica.py684 # Check if the regular expression has already been compiled:COMMENT
LOWsympy/vector/vector.py193 # Check if the other is a del operatorCOMMENT
LOWsympy/categories/diagram_drawing.py2143 # Check if there's space to the left.STRING
4 more matches not shown…
AI Slop Vocabulary33 hits · 52 pts
SeverityFileLineSnippetContext
LOWsympy/core/add.py1168 # so we just use the same sort as is used in Add.flatten. When theCOMMENT
LOWsympy/core/operations.py410 # here, we have a number so we just call to _evalf with prec;COMMENT
LOWsympy/core/expr.py512 # Probably this method should just return self.evalf(2).is_Number.COMMENT
LOWsympy/core/expr.py3722 # now, we just use a special case to make multinomial run before mul,COMMENT
LOWsympy/polys/rings.py2687 # Can just use self.flint_poly.to_dict() in case of python-flintCOMMENT
LOWsympy/polys/matrices/_dfm.py572 # time of writng just use Bareiss for all matrices and domains.COMMENT
LOWsympy/polys/matrices/tests/test_xxm.py854 # XXX: Change the signature to just return the nullspace. PossiblyCOMMENT
MEDIUMsympy/concrete/summations.py1649 # robust than the current implementation of ``residue`` which uses a seriesCOMMENT
MEDIUMsympy/printing/pretty/pretty_symbology.py59 """See if unicode output is available and leverage it if possible"""STRING
MEDIUMsympy/solvers/solvers.py1483 # Poly is generally robust enough to convert anything toCOMMENT
LOWsympy/solvers/solvers.py2265 # If there is a non-trivial solution, just set the free variables toSTRING
LOWsympy/solvers/ode/nonhomogeneous.py197 # Can't just call roots because it doesn't return rootof for unsolveableSTRING
LOWsympy/solvers/ode/tests/test_ode.py95 # Maybe this should just use one of the solutions instead of raising...COMMENT
MEDIUMsympy/utilities/tests/test_misc.py140 # expected; Q.prime is more nuanced in its response forCOMMENT
MEDIUMsympy/testing/runtests.py1964 # in conjunction with the ELLIPSIS flag.STRING
MEDIUMsympy/integrals/intpoly.py976 # TODO : This part is quite hacky. Should be made more robust withCOMMENT
LOWsympy/assumptions/tests/test_sathandlers.py18 # The predicate doesn't matter here, so just passCOMMENT
LOWsympy/plotting/intervalmath/interval_arithmetic.py15# Q: Why use numpy? Why not simply use mpmath's interval arithmetic?COMMENT
MEDIUMsympy/combinatorics/free_groups.py171 """Return a tuple of arguments that must be passed to __new__ in order to support pickling this object."""STRING
LOWsympy/physics/hep/gamma_matrices.py452 # no contractions in `expression`, just return it.STRING
MEDIUMsympy/physics/mechanics/tests/test_kane3.py187 # model to the reference eigen values. Look at the aforementioned paper forCOMMENT
LOWsympy/physics/mechanics/tests/test_kane.py514 # Note that we just use the explicit kinematics for the linear velocitiesCOMMENT
MEDIUMsympy/physics/vector/tests/test_functions.py344 #The use of time_derivative for calculations pertaining to scalarCOMMENT
LOWsympy/physics/quantum/spin.py1074 # we could just use this unless there are cases when this is not trueCOMMENT
LOWsympy/physics/quantum/represent.py241 # vectors are taken. In these cases, we simply return a scalar.COMMENT
LOWsympy/physics/quantum/gate.py224 # If the controls are not met, just returnCOMMENT
LOWsympy/physics/quantum/qapply.py145 if not nc_part: # If we only have a commuting part, just return it.CODE
LOWsympy/physics/quantum/operatorset.py261 # If this fails, just return the classesCOMMENT
LOWsympy/physics/quantum/state.py156 # If height is 1, just return bracketsCOMMENT
LOWsympy/parsing/sympy_parser.py1239 # keywords=[]: If ommited, keywords would have the default value of None, it will just return an AttribuCOMMENT
LOWsympy/simplify/trigsimp.py265 # We just add the extragens to gens and analyse them as beforeCOMMENT
MEDIUMsympy/simplify/hyperexpand.py2121 """ Try to apply ``shifter`` in order to bring some element in ``f``STRING
MEDIUMsympy/matrices/eigen.py307 # the multiplicity correct. This is not robust enough in generalSTRING
TODO Padding14 hits · 24 pts
SeverityFileLineSnippetContext
LOWsympy/polys/domains/domain.py623 # TODO: implement this in from_ methodsCOMMENT
LOWsympy/integrals/prde.py159 # TODO: Add testCOMMENT
LOWsympy/integrals/prde.py823 # TODO: implement thisCOMMENT
LOWsympy/integrals/tests/test_rde.py137 # TODO: Add test for when the degree bound becomes larger after limited_integrateCOMMENT
LOWsympy/integrals/tests/test_rde.py138 # TODO: Add test for db == da - 1 caseCOMMENT
LOWsympy/integrals/tests/test_rde.py141 # TODO: Add testsCOMMENT
LOWsympy/integrals/tests/test_rde.py142 # TODO: Add test for when the degree becomes larger after parametric_log_deriv()COMMENT
LOWsympy/integrals/tests/test_risch.py251 # TODO: Add tests for integrate_hyperexponential() from the bookCOMMENT
LOWsympy/integrals/tests/test_prde.py148 # TODO: Add test for deg(b) <= 0 with b smallCOMMENT
LOWsympy/assumptions/handlers/matrices.py49 # TODO: implement sathandlers system for the matrices.COMMENT
LOWsympy/assumptions/handlers/matrices.py79 # TODO: implement sathandlers system for the matrices.COMMENT
LOWsympy/assumptions/handlers/matrices.py96 # TODO: implement sathandlers system for the matrices.COMMENT
LOWsympy/physics/quantum/tests/test_cartesian.py114 # TODO: Add tests for representationsCOMMENT
LOWsympy/stats/matrix_distributions.py115 ### TODO: Add tests after adding matrix distributions in numpy_rv_mapCOMMENT
Dead Code8 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMsympy/matrices/expressions/tests/test_derivatives.py56CODE
MEDIUMsympy/matrices/expressions/tests/test_derivatives.py57CODE
MEDIUMsympy/matrices/expressions/tests/test_derivatives.py58CODE
MEDIUMsympy/matrices/expressions/tests/test_derivatives.py60CODE
MEDIUMsympy/matrices/expressions/tests/test_derivatives.py61CODE
MEDIUMsympy/matrices/expressions/tests/test_derivatives.py62CODE
MEDIUMsympy/matrices/expressions/tests/test_derivatives.py64CODE
MEDIUMdoc/ext/docscrape_sphinx.py34CODE
Slop Phrases9 hits · 12 pts
SeverityFileLineSnippetContext
LOWsympy/core/mul.py28# "there are still non-commutative objects -- don't forget to process them"COMMENT
LOWsympy/core/mul.py28# "there are still non-commutative objects -- don't forget to process them"COMMENT
LOWsympy/core/mul.py365 # append non-commutative marker, so we don't forget toCOMMENT
LOWsympy/core/mul.py365 # append non-commutative marker, so we don't forget toCOMMENT
LOWsympy/core/basic.py1503 non-Basic iterable. Don't forget to unpackCODE
LOWsympy/solvers/tests/test_inequalities.py472 # make sure to include conditions under which solution is validCOMMENT
MEDIUMsympy/integrals/integrals.py1236 For demonstration purposes, this interval will only be split into 2CODE
LOWsympy/interactive/printing.py140 # If you're adding another type, make sure you add it to printable_typesCOMMENT
LOWsympy/categories/diagram_drawing.py697 # Don't forget to assure the proper ordering of the verticesSTRING
Structural Annotation Overuse14 hits · 10 pts
SeverityFileLineSnippetContext
LOWsympy/core/basic.py2169 # WARNING: This API is experimental.COMMENT
LOWsympy/polys/densetools.py1545 # Step 0: h = x / f mod x**(n-1)STRING
LOWsympy/ntheory/primetest.py739 # Step 2: deterministic Miller-Rabin testing for numbers < 2^64. See:STRING
LOWsympy/ntheory/primetest.py796 # Step 3: BPSW.STRING
LOWsympy/solvers/ode/riccati.py802 # Step 1 : Convert to Normal FormSTRING
LOWsympy/solvers/ode/riccati.py812 # Step 3 : a(x) is 0STRING
LOWsympy/solvers/ode/riccati.py816 # Step 4 : a(x) is a non-zero constantSTRING
LOWsympy/solvers/ode/riccati.py820 # Step 5 : Find poles and valuation at infinitySTRING
LOWsympy/solvers/ode/riccati.py856 # Step 10 : Check if a valid solution exists. If yes, also checkSTRING
LOWsympy/solvers/ode/riccati.py860 # Step 11 : Find polynomial solutions of degree m for the auxiliary equationSTRING
LOWsympy/solvers/ode/riccati.py863 # Step 12 : If valid polynomial solution exists, append solution.STRING
LOWsympy/solvers/ode/riccati.py837 # Step 7 : Iterate over all possible combinations and return solutionsSTRING
LOWsympy/solvers/ode/riccati.py885 # Step 15 : Inverse transform the solutions of the equation in normal formSTRING
LOWsympy/interactive/tests/test_ipython.py22# WARNING: These tests will modify the existing IPython environment. IPythonCOMMENT
Verbosity Indicators15 hits · 10 pts
SeverityFileLineSnippetContext
LOWsympy/polys/densetools.py1545 # Step 0: h = x / f mod x**(n-1)STRING
LOWsympy/ntheory/primetest.py739 # Step 2: deterministic Miller-Rabin testing for numbers < 2^64. See:STRING
LOWsympy/ntheory/primetest.py796 # Step 3: BPSW.STRING
LOWsympy/solvers/ode/systems.py1338 To check if the equations are constant coefficient, we need to check if all the terms inCODE
LOWsympy/solvers/ode/systems.py1341 To check if the equations are homogeneous or not, we need to check if b is a zero matrixCODE
LOWsympy/solvers/ode/riccati.py802 # Step 1 : Convert to Normal FormSTRING
LOWsympy/solvers/ode/riccati.py812 # Step 3 : a(x) is 0STRING
LOWsympy/solvers/ode/riccati.py816 # Step 4 : a(x) is a non-zero constantSTRING
LOWsympy/solvers/ode/riccati.py820 # Step 5 : Find poles and valuation at infinitySTRING
LOWsympy/solvers/ode/riccati.py856 # Step 10 : Check if a valid solution exists. If yes, also checkSTRING
LOWsympy/solvers/ode/riccati.py860 # Step 11 : Find polynomial solutions of degree m for the auxiliary equationSTRING
LOWsympy/solvers/ode/riccati.py863 # Step 12 : If valid polynomial solution exists, append solution.STRING
LOWsympy/solvers/ode/riccati.py837 # Step 7 : Iterate over all possible combinations and return solutionsSTRING
LOWsympy/solvers/ode/riccati.py885 # Step 15 : Inverse transform the solutions of the equation in normal formSTRING
LOWsympy/simplify/hyperexpand.py965 self._poly variable. This variable stores a polynomial. By conventionSTRING
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH.github/PULL_REQUEST_TEMPLATE.md41like it was generated by AI then the PR will be closed. -->CODE
Fake / Example Data13 hits · 4 pts
SeverityFileLineSnippetContext
LOWsympy/tensor/tensor.py3541 dummy_data.sort(key=lambda x: x[3])STRING
LOWsympy/tensor/tensor.py3542 return indices, free, free_names, dummy_dataSTRING
LOWsympy/tensor/tensor.py3545 def _dummy_data_to_dum(dummy_data):STRING
LOWsympy/tensor/tensor.py3546 return [(p2a, p2b) for (i, p1a, p1b, p2a, p2b) in dummy_data]STRING
LOWsympy/tensor/tensor.py3555 indices, free, free_names, dummy_data = TensMul._indices_to_free_dum(args_indices)STRING
LOWsympy/tensor/tensor.py3565 for old_index, pos1cov, pos1contra, pos2cov, pos2contra in dummy_data:STRING
LOWsympy/tensor/tensor.py3585 indices, free, free_names, dummy_data = TensMul._indices_to_free_dum(args_indices)STRING
LOWsympy/tensor/tensor.py3587 dum = TensMul._dummy_data_to_dum(dummy_data)STRING
LOWsympy/tensor/tensor.py3501 dummy_data = []STRING
LOWsympy/tensor/tensor.py3526 dummy_data.append((index, pos1, other_pos1, pos2, other_pos2))STRING
LOWsympy/tensor/tensor.py3528 dummy_data.append((-index, other_pos1, pos1, other_pos2, pos2))STRING
LOWsympy/tensor/tensor.py4197 indices, free, free_names, dummy_data = TensMul._indices_to_free_dum(args_indices)STRING
LOWsympy/tensor/tensor.py4198 dum = TensMul._dummy_data_to_dum(dummy_data)STRING
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsympy/utilities/tests/test_enumerative.py12# first some functions only useful as test scaffolding - these provideCOMMENT
Overly Generic Function Names3 hits · 2 pts
SeverityFileLineSnippetContext
LOWsympy/core/tests/test_eval.py92def test_function():CODE
LOWsympy/parsing/tests/test_c_parser.py940 def test_function():CODE
LOWsympy/parsing/tests/test_fortran_parser.py279 def test_function():STRING