AI Slop Code RIsk Monitor

pymc-devs/pymc

Bayesian Modeling and Probabilistic Programming in Python

17.5 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for pymc-devs/pymc, a Python project with 9,801 GitHub stars. SynthScan examined 116,136 lines of code across 327 source files, recording 1935 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 17.5 (Elevated pattern signal); it is not an authorship estimate.

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

17.5
Adjusted Signal
17.5
Raw Pattern Score
100%
Time Factor
2026-10-08
Last Push
9.8K
Stars
Python
Language
116.1K
Lines of Code
327
Files
1.9K
Pattern Hits
2026-10-12
Scan Date
0.13
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 46.4/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 12.0/100 · LOW

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

Agent Over-Engineering Ratio 41.2/100 · MEDIUM

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

PR Review Velocity Impact 61.7/100 · HIGH

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 0HIGH 44MEDIUM 36LOW 1855

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers969 hits · 908 pts
SeverityFileLineSnippetContext
LOWpymc/pytensorf.py139def dataframe_to_tensor_variable(df: pd.DataFrame, *args, **kwargs) -> TensorVariable:CODE
LOWpymc/pytensorf.py712def collect_default_updates_inner_fgraph(node: Apply) -> dict[Variable, Variable]:CODE
LOWpymc/pytensorf.py892def resolve_backend_compile_kwargs(backend: str | None, compile_kwargs: dict | None) -> dict:CODE
LOWpymc/_version.py184def git_versions_from_keywords(CODE
LOWpymc/util.py401def check_dist_not_registered(dist, model=None):CODE
LOWpymc/util.py462 def _get_unique_seeds_per_chain(integers_fn):CODE
LOWpymc/util.py493def get_value_vars_from_user_vars(vars: Variable | Sequence[Variable], model) -> list[Variable]:CODE
LOWpymc/util.py554def random_generator_from_state(state: RandomGeneratorState) -> np.random.Generator:CODE
LOWpymc/initial_point.py71def make_initial_point_fns_per_chain(CODE
LOWpymc/initial_point.py204def non_support_point_ancestors(value):CODE
LOWpymc/initial_point.py218def make_initial_point_expression(CODE
LOWpymc/model_graph.py58def create_plate_label_without_dim_length(CODE
LOWpymc/model_graph.py67def create_plate_label_with_dim_length(CODE
LOWpymc/model_graph.py777def _create_mermaid_node_name(name: str) -> str:CODE
LOWpymc/testing.py259def create_dist_from_paramdomains(CODE
LOWpymc/testing.py283def find_invalid_scalar_params(CODE
LOWpymc/testing.py359 def scipy_logp_with_scipy_args(**args):CODE
LOWpymc/testing.py754def check_selfconsistency_discrete_logcdf(CODE
LOWpymc/testing.py791def check_selfconsistency_icdf(CODE
LOWpymc/testing.py837def assert_support_point_is_expected(model, expected, check_finite_logp=True):CODE
LOWpymc/testing.py911def partially_deterministic_continuous_random_tester(CODE
LOW⚡pymc/testing.py1107 def check_pymc_draws_match_reference(self):CODE
LOW⚡pymc/testing.py1114 def check_pymc_draws_match_reference_not_numba(self):CODE
LOW⚡pymc/testing.py1123 def check_pymc_params_match_rv_op(self):CODE
LOWpymc/testing.py1183def seeded_scipy_distribution_builder(dist_name: str) -> Callable:CODE
LOWpymc/testing.py1187def seeded_numpy_distribution_builder(dist_name: str) -> Callable:CODE
LOWpymc/testing.py1301def mock_sample_setup_and_teardown():CODE
LOWpymc/testing.py1358def equal_computations_up_to_root(CODE
LOWpymc/printing.py210def str_for_potential_or_deterministic(CODE
LOWpymc/printing.py365def _register_ipython_pretty_printers():CODE
LOWpymc/backends/arviz.py96def dict_to_dataset_drop_incompatible_coords(CODE
LOWpymc/backends/arviz.py219def coords_and_dims_for_inferencedata(model: BaseModel) -> tuple[dict[str, Any], dict[str, Any]]:CODE
LOWpymc/backends/arviz.py471 def posterior_predictive_to_xarray(self):CODE
LOWpymc/backends/arviz.py689def predictions_to_inference_data(CODE
LOWpymc/backends/arviz.py795def apply_function_over_dataset(CODE
LOWpymc/backends/mcbackend.py63def get_variables_and_point_fn(CODE
LOWpymc/backends/mcbackend.py217def make_runmeta_and_point_fn(CODE
LOWpymc/backends/zarr.py261def get_initial_fill_value_and_codec(CODE
LOWpymc/backends/zarr.py604 def init_sampling_state_group(self, tune: int, chains: int):CODE
LOWpymc/sampling/jax.py87def _replace_shared_variables(graph: list[TensorVariable]) -> list[TensorVariable]:CODE
LOWpymc/sampling/jax.py186def _get_batched_jittered_initial_points(CODE
LOWpymc/sampling/mcmc.py100def _nutpie_meets_min_version() -> bool:CODE
LOWpymc/sampling/forward.py189def _maybe_warn_implicit_freeze(CODE
LOWpymc/sampling/forward.py262def compile_forward_sampling_function(CODE
LOWpymc/sampling/forward.py469def observed_dependent_deterministics(model: BaseModel, extra_observeds=None):CODE
LOWpymc/sampling/forward.py607def sample_posterior_predictive(CODE
LOWpymc/sampling/forward.py626def sample_posterior_predictive(CODE
LOWpymc/sampling/forward.py644def sample_posterior_predictive(CODE
LOWpymc/sampling/parallel.py88def _initialize_multiprocessing_context(CODE
LOWpymc/logprob/transforms.py215def measurable_transform_logprob(op: MeasurableTransform, values, *inputs, **kwargs):CODE
LOWpymc/logprob/transforms.py269def measurable_transform_logcdf(op: MeasurableTransform, value, *inputs):CODE
LOWpymc/logprob/transforms.py320def measurable_transform_icdf(op: MeasurableTransform, value, *inputs):CODE
LOWpymc/logprob/transforms.py365def measurable_reciprocal_to_power(fgraph, node):CODE
LOWpymc/logprob/transforms.py375def measurable_sqrt_sqr_to_power(fgraph, node):CODE
LOWpymc/logprob/transforms.py390def measurable_div_to_product(fgraph, node):CODE
LOWpymc/logprob/transforms.py411def measurable_neg_to_product(fgraph, node):CODE
LOWpymc/logprob/transforms.py431def measurable_special_log_to_log(fgraph, node):CODE
LOWpymc/logprob/transforms.py451def measurable_special_exp_to_exp(fgraph, node):CODE
LOWpymc/logprob/transforms.py466def measurable_power_exponent_to_exp(fgraph, node):CODE
LOWpymc/logprob/transforms.py507def find_measurable_transforms(fgraph: FunctionGraph, node: Apply) -> list[Variable] | None:CODE
909 more matches not shown…
Over-Commented Block308 hits · 301 pts
SeverityFileLineSnippetContext
LOWsetup.py1# Copyright 2026 - present The PyMC DevelopersCOMMENT
LOWpymc/func_utils.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/_deprecations.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/pytensorf.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/util.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/util.py601 # If seed is a numpy.random.Generator or numpy.random.BitGenerator,COMMENT
LOWpymc/__init__.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/initial_point.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/blocking.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/exceptions.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/math.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/model_graph.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/vartypes.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/testing.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/data.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/printing.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/progress_bar/__init__.py1# Copyright 2025 - present The PyMC DevelopersCOMMENT
LOWpymc/progress_bar/marimo_progress_css.py1# Copyright 2026 - present The PyMC DevelopersCOMMENT
LOWpymc/progress_bar/progress.py1# Copyright 2025 - present The PyMC DevelopersCOMMENT
LOWpymc/progress_bar/marimo_progress.py1# Copyright 2025 - present The PyMC DevelopersCOMMENT
LOWpymc/progress_bar/rich_progress.py1# Copyright 2025 - present The PyMC DevelopersCOMMENT
LOWpymc/backends/__init__.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/backends/arviz.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/backends/ndarray.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/backends/mcbackend.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/backends/zarr.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/backends/base.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/backends/report.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/sampling/deterministic.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/sampling/population.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/sampling/__init__.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/sampling/jax.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/sampling/mcmc.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/sampling/forward.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/sampling/parallel.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/logprob/abstract.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/logprob/abstract.py21# in the Software without restriction, including without limitation the rightsCOMMENT
LOWpymc/logprob/arithmetic.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/logprob/arithmetic.py21# in the Software without restriction, including without limitation the rightsCOMMENT
LOWpymc/logprob/transforms.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/logprob/transforms.py21# in the Software without restriction, including without limitation the rightsCOMMENT
LOWpymc/logprob/binary.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/logprob/mixture.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/logprob/mixture.py21# in the Software without restriction, including without limitation the rightsCOMMENT
LOWpymc/logprob/transform_value.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/logprob/rewriting.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/logprob/rewriting.py21# in the Software without restriction, including without limitation the rightsCOMMENT
LOWpymc/logprob/checks.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/logprob/checks.py21# in the Software without restriction, including without limitation the rightsCOMMENT
LOWpymc/logprob/censoring.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/logprob/censoring.py21# in the Software without restriction, including without limitation the rightsCOMMENT
LOWpymc/logprob/order.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/logprob/order.py21# in the Software without restriction, including without limitation the rightsCOMMENT
LOWpymc/logprob/__init__.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/logprob/__init__.py21# in the Software without restriction, including without limitation the rightsCOMMENT
LOWpymc/logprob/switch.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/logprob/switch.py21# in the Software without restriction, including without limitation the rightsCOMMENT
LOWpymc/logprob/tensor.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/logprob/tensor.py21# in the Software without restriction, including without limitation the rightsCOMMENT
LOWpymc/logprob/tensor.py501 # collapses the support onto two points instead of partitioning it.COMMENT
248 more matches not shown…
Unused Imports369 hits · 282 pts
SeverityFileLineSnippetContext
LOWpymc/__init__.py49CODE
LOWpymc/__init__.py49CODE
LOWpymc/__init__.py49CODE
LOWpymc/__init__.py49CODE
LOWpymc/__init__.py49CODE
LOWpymc/__init__.py49CODE
LOWpymc/__init__.py49CODE
LOWpymc/__init__.py51CODE
LOWpymc/__init__.py52CODE
LOWpymc/__init__.py53CODE
LOWpymc/__init__.py54CODE
LOWpymc/__init__.py55CODE
LOWpymc/__init__.py56CODE
LOWpymc/__init__.py57CODE
LOWpymc/__init__.py57CODE
LOWpymc/__init__.py58CODE
LOWpymc/__init__.py58CODE
LOWpymc/__init__.py58CODE
LOWpymc/__init__.py59CODE
LOWpymc/__init__.py60CODE
LOWpymc/__init__.py61CODE
LOWpymc/__init__.py62CODE
LOWpymc/__init__.py63CODE
LOWpymc/__init__.py64CODE
LOWpymc/__init__.py65CODE
LOWpymc/blocking.py17CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
LOWpymc/math.py25CODE
309 more matches not shown…
Empty Error Handlers40 hits · 200 pts
SeverityFileLineSnippetContext
HIGHpymc/_version.py178except OSError:CODE
HIGHpymc/_version.py652except NotThisMethod:CODE
HIGHpymc/_version.py671except NotThisMethod:CODE
HIGHpymc/_version.py677except NotThisMethod:CODE
HIGHpymc/util.py315except TypeError:CODE
HIGHpymc/util.py407except (TypeError, BlockModelAccessError):CODE
HIGHpymc/printing.py378except AttributeError:CODE
HIGHpymc/backends/__init__.py191except ImportError:CODE
HIGHpymc/backends/zarr.py579except KeyError:CODE
HIGHpymc/backends/zarr.py774except KeyError:CODE
HIGHpymc/backends/base.py409except (ValueError, TypeError): # Passed variable or variable name.CODE
HIGHpymc/backends/base.py302except ValueError:CODE
HIGHpymc/sampling/mcmc.py1500except KeyboardInterrupt:CODE
HIGHpymc/sampling/mcmc.py1689except KeyboardInterrupt:CODE
HIGHpymc/sampling/forward.py1295except KeyboardInterrupt:CODE
HIGHpymc/sampling/parallel.py213except KeyboardInterrupt:CODE
HIGHpymc/sampling/parallel.py454except Exception:CODE
HIGHpymc/sampling/parallel.py392except Exception:CODE
HIGHpymc/logprob/transforms.py403except NotScalarConstantError:CODE
HIGHpymc/step_methods/metropolis.py531except MissingInputError:CODE
HIGHpymc/step_methods/metropolis.py664except MissingInputError:CODE
HIGHpymc/step_methods/metropolis.py841except MissingInputError:CODE
HIGHpymc/smc/parallel.py92except KeyboardInterrupt:CODE
HIGHpymc/smc/parallel.py290except Exception:CODE
HIGHpymc/smc/parallel.py207except Exception:CODE
HIGHpymc/variational/inference.py102except KeyboardInterrupt:CODE
HIGHpymc/variational/inference.py220except IndexError:CODE
HIGHpymc/variational/inference.py276except IndexError:CODE
HIGHpymc/distributions/simulator.py333except Exception:CODE
HIGHpymc/distributions/simulator.py358except Exception:CODE
HIGHpymc/distributions/continuous.py188except NotScalarConstantError:CODE
HIGHpymc/distributions/continuous.py196except NotScalarConstantError:CODE
HIGHpymc/distributions/truncated.py83except NotImplementedError:CODE
HIGHpymc/distributions/truncated.py135except NotImplementedError:CODE
HIGHtests/sampling/test_mcmc_external.py459except Exception:CODE
HIGHtests/variational/test_inference.py294except opvi.NotImplementedInference:CODE
HIGHtests/variational/test_inference.py301except opvi.NotImplementedInference:CODE
HIGHtests/distributions/test_multivariate.py143except AttributeError:CODE
HIGHtests/distributions/test_multivariate.py147except AttributeError:CODE
HIGHtests/distributions/test_multivariate.py325except ValueError:CODE
Self-Referential Comments26 hits · 82 pts
SeverityFileLineSnippetContext
MEDIUM.gitpod.yml8 # Create an empty object for .vscode/settings.json if the file doesn't existCOMMENT
MEDIUMpymc/pytensorf.py977 # Create an update mapping of RandomVariable's RNG so that it is automaticallyCOMMENT
MEDIUMpymc/_version.py7# This file is released into the public domain.COMMENT
MEDIUMpymc/backends/mcbackend.py198 # Create a NumPyChain for the sliced dataCOMMENT
MEDIUM⚡pymc/backends/zarr.py513 # Create the posterior that includes warmup drawsCOMMENT
MEDIUM⚡pymc/backends/zarr.py522 # Create the unconstrained posterior group that includes warmup drawsCOMMENT
MEDIUM⚡pymc/backends/zarr.py532 # Create the sample stats that include warmup drawsCOMMENT
MEDIUMpymc/distributions/multivariate.py1394 # Define a new MvNormal with the given covarianceCOMMENT
MEDIUMpymc/distributions/multivariate.py1609 # Define the vector of fixed standard deviationsCOMMENT
MEDIUMpymc/distributions/multivariate.py1614 # Define a new MvNormal with the given correlation matrixCOMMENT
MEDIUMpymc/distributions/simulator.py275 # Create a new simulatorRV with identical inputs as the original oneSTRING
MEDIUMpymc/distributions/timeseries.py560 # Create an AR of order 3, with a constant termCOMMENT
MEDIUMtests/test_pytensorf.py223 # Create the various inputs to the functionCOMMENT
MEDIUMtests/logprob/test_transform_value.py42 # Create a dummy Op that just returns the two inputsCOMMENT
MEDIUMtests/logprob/test_transform_value.py559 # Create an unrolled scan graph as referenceCOMMENT
MEDIUMtests/ode/test_ode.py32 # Create an ODe to integrateCOMMENT
MEDIUMtests/ode/test_ode.py59 # Create an ODe to integrateCOMMENT
MEDIUM⚡tests/model/test_core.py640 # Create the various inputs to the functionCOMMENT
MEDIUM⚡tests/model/test_core.py646 # Create a fake model and fake distribution to be used for the testCOMMENT
MEDIUM⚡tests/model/test_core.py650 # Create the testval attribute simply for the sake of model testingCOMMENT
MEDIUMtests/variational/test_approximations.py53 # Create a model for testCOMMENT
MEDIUMtests/distributions/test_distribution.py243 # Create a SymbolicRandomVariable type with extended_signatureCOMMENT
MEDIUMdocs/source/conf.py7# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMscripts/generate_pip_deps_from_conda.py127 "# This file is auto-generated by scripts/generate_pip_deps_from_conda.py, "CODE
MEDIUMscripts/publish_release_notes_to_discourse.py112 # Create the topic dataSTRING
MEDIUM.github/release.yml1# This file contains configuration for the automatic generation of release notes in GitHub.COMMENT
Deep Nesting72 hits · 70 pts
SeverityFileLineSnippetContext
LOWpymc/pytensorf.py89CODE
LOWpymc/_version.py156CODE
LOWpymc/_version.py603CODE
LOWpymc/initial_point.py218CODE
LOWpymc/math.py457CODE
LOWpymc/model_graph.py176CODE
LOWpymc/model_graph.py420CODE
LOWpymc/model_graph.py781CODE
LOWpymc/model_graph.py269CODE
LOWpymc/model_graph.py299CODE
LOWpymc/testing.py311CODE
LOWpymc/testing.py420CODE
LOWpymc/testing.py537CODE
LOWpymc/testing.py655CODE
LOWpymc/printing.py288CODE
LOWpymc/printing.py343CODE
LOWpymc/printing.py390CODE
LOWpymc/backends/arviz.py96CODE
LOWpymc/backends/zarr.py711CODE
LOWpymc/sampling/population.py393CODE
LOWpymc/sampling/population.py227CODE
LOWpymc/sampling/mcmc.py257CODE
LOWpymc/sampling/mcmc.py621CODE
LOWpymc/sampling/mcmc.py1233CODE
LOWpymc/sampling/mcmc.py1587CODE
LOWpymc/sampling/mcmc.py1696CODE
LOWpymc/sampling/mcmc.py1760CODE
LOWpymc/sampling/forward.py644CODE
LOWpymc/sampling/parallel.py88CODE
LOWpymc/sampling/parallel.py249CODE
LOWpymc/logprob/transforms.py269CODE
LOWpymc/logprob/transforms.py320CODE
LOWpymc/logprob/binary.py44CODE
LOWpymc/logprob/censoring.py344CODE
LOWpymc/logprob/order.py256CODE
LOWpymc/step_methods/slicer.py127CODE
LOWpymc/step_methods/state.py30CODE
LOWpymc/step_methods/hmc/quadpotential.py539CODE
LOWpymc/gp/cov.py236CODE
LOWpymc/gp/cov.py264CODE
LOWpymc/model/fgraph.py139CODE
LOWpymc/model/fgraph.py301CODE
LOWpymc/model/core.py982CODE
LOWpymc/model/core.py1434CODE
LOWpymc/model/core.py1940CODE
LOWpymc/smc/sampling.py42CODE
LOWpymc/smc/sampling.py423CODE
LOWpymc/smc/parallel.py366CODE
LOWpymc/variational/opvi.py734CODE
LOWpymc/variational/minibatch_rv.py57CODE
LOWpymc/variational/inference.py189CODE
LOWpymc/variational/inference.py230CODE
LOWpymc/variational/approximations.py244CODE
LOWpymc/distributions/mixture.py293CODE
LOWpymc/distributions/custom.py453CODE
LOWpymc/distributions/shape_utils.py129CODE
LOWpymc/distributions/shape_utils.py147CODE
LOWpymc/distributions/distribution.py789CODE
LOWpymc/distributions/simulator.py146CODE
LOWtests/sampler_fixtures.py45CODE
12 more matches not shown…
Modern Structural Boilerplate52 hits · 51 pts
SeverityFileLineSnippetContext
LOWpymc/func_utils.py28__all__ = ["find_constrained_prior"]CODE
LOWpymc/pytensorf.py64__all__ = [CODE
LOWpymc/blocking.py31__all__ = ["DictToArrayBijection"]CODE
LOWpymc/exceptions.py15__all__ = [CODE
LOWpymc/math.py150__all__ = [CODE
LOWpymc/vartypes.py15__all__ = [CODE
LOWpymc/data.py43__all__ = [CODE
LOWpymc/printing.py40__all__ = [CODE
LOWpymc/progress_bar/progress.py483 def _set_task_elapsed(self, task_id: int, elapsed_seconds: float) -> None:CODE
LOWpymc/backends/__init__.py124__all__ = ["predictions_to_inference_data", "to_inference_data"]CODE
LOWpymc/backends/base.py39logger = logging.getLogger(__name__)CODE
LOWpymc/backends/report.py21logger = logging.getLogger(__name__)CODE
LOWpymc/sampling/jax.py60logger = logging.getLogger(__name__)CODE
LOWpymc/sampling/mcmc.py120__all__ = [CODE
LOWpymc/sampling/parallel.py52logger = logging.getLogger(__name__)CODE
LOWpymc/step_methods/metropolis.py57__all__ = [CODE
LOWpymc/step_methods/arraystep.py26__all__ = ["ArrayStep", "ArrayStepShared", "metrop_select"]CODE
LOWpymc/step_methods/slicer.py33__all__ = ["Slice"]CODE
LOWpymc/step_methods/hmc/base_hmc.py44logger = logging.getLogger(__name__)CODE
LOWpymc/step_methods/hmc/nuts.py34__all__ = ["NUTS"]CODE
LOWpymc/step_methods/hmc/quadpotential.py42__all__ = [CODE
LOWpymc/step_methods/hmc/hmc.py32__all__ = ["HamiltonianMC"]CODE
LOWpymc/gp/gp.py39__all__ = ["TP", "Latent", "LatentKron", "Marginal", "MarginalApprox", "MarginalKron"]CODE
LOWpymc/gp/cov.py31__all__ = [CODE
LOWpymc/gp/mean.py17__all__ = ["Constant", "Linear", "Zero"]CODE
LOWpymc/model/core.py89__all__ = [CODE
LOWpymc/smc/sampling.py39logger = logging.getLogger(__name__)CODE
LOWpymc/smc/parallel.py33logger = logging.getLogger(__name__)CODE
LOWpymc/variational/updates.py121__all__ = [CODE
LOWpymc/variational/opvi.py94__all__ = ["Approximation", "Group", "ObjectiveFunction", "Operator", "TestFunction"]STRING
LOWpymc/variational/callbacks.py21__all__ = ["Callback", "CheckParametersConvergence", "Tracker"]CODE
LOWpymc/variational/test_functions.py20__all__ = ["rbf"]CODE
LOWpymc/variational/inference.py32logger = logging.getLogger(__name__)CODE
LOWpymc/variational/inference.py34__all__ = [CODE
LOWpymc/variational/stein.py24__all__ = ["Stein"]CODE
LOWpymc/variational/operators.py30__all__ = ["KL", "KSD"]CODE
LOWpymc/variational/approximations.py37__all__ = ["Empirical", "FullRank", "MeanField", "sample_approx"]CODE
LOWpymc/tuning/scaling.py24__all__ = ["find_hessian", "guess_scaling", "trace_cov"]CODE
LOWpymc/tuning/starting.py61__all__ = ["find_MAP"]CODE
LOWpymc/distributions/transforms.py36__all__ = [CODE
LOWpymc/distributions/mixture.py45__all__ = [CODE
LOWpymc/distributions/shape_utils.py35__all__ = [CODE
LOWpymc/distributions/discrete.py57__all__ = [CODE
LOWpymc/distributions/__init__.py118__all__ = [CODE
LOWpymc/distributions/distribution.py66__all__ = [CODE
LOWpymc/distributions/multivariate.py89__all__ = [CODE
LOWpymc/distributions/simulator.py29__all__ = ["Simulator"]CODE
LOWpymc/distributions/continuous.py99__all__ = [CODE
LOWpymc/distributions/timeseries.py50__all__ = [CODE
LOWpymc/distributions/moments/__init__.py19__all__ = ["mean"]CODE
LOWpymc/distributions/moments/means.py86__all__ = ["mean"]CODE
LOWpymc/stats/convergence.py33logger = logging.getLogger(__name__)CODE
AI Structural Patterns43 hits · 42 pts
SeverityFileLineSnippetContext
LOWpymc/model_graph.py658CODE
LOWpymc/backends/arviz.py613CODE
LOWpymc/backends/arviz.py291CODE
LOWpymc/sampling/deterministic.py53CODE
LOWpymc/sampling/jax.py495CODE
LOWpymc/sampling/mcmc.py555CODE
LOWpymc/sampling/mcmc.py588CODE
LOWpymc/sampling/mcmc.py621CODE
LOWpymc/sampling/mcmc.py1760CODE
LOWpymc/sampling/forward.py485CODE
LOWpymc/sampling/forward.py496CODE
LOWpymc/sampling/forward.py506CODE
LOWpymc/sampling/forward.py607CODE
LOWpymc/sampling/forward.py626CODE
LOWpymc/sampling/forward.py644CODE
LOWpymc/ode/ode.py208CODE
LOWpymc/step_methods/metropolis.py157CODE
LOWpymc/step_methods/metropolis.py455CODE
LOWpymc/step_methods/metropolis.py915CODE
LOWpymc/step_methods/metropolis.py1084CODE
LOWpymc/step_methods/slicer.py87CODE
LOWpymc/step_methods/hmc/base_hmc.py82CODE
LOWpymc/step_methods/hmc/quadpotential.py216CODE
LOWpymc/dims/distributions/transforms.py167CODE
LOWpymc/smc/sampling.py42CODE
LOWpymc/variational/opvi.py207CODE
LOWpymc/variational/opvi.py318CODE
LOWpymc/variational/inference.py695CODE
LOWpymc/tuning/starting.py177CODE
LOWpymc/distributions/custom.py98CODE
LOWpymc/distributions/custom.py214CODE
LOWpymc/distributions/custom.py708CODE
LOWpymc/distributions/custom.py765CODE
LOWpymc/distributions/simulator.py146CODE
LOWpymc/distributions/continuous.py372CODE
LOWpymc/distributions/continuous.py433CODE
LOWpymc/distributions/continuous.py935CODE
LOWpymc/distributions/continuous.py1849CODE
LOWpymc/distributions/continuous.py2962CODE
LOWpymc/stats/log_density.py129CODE
LOWtests/sampling/test_parallel.py262CODE
LOWtests/logprob/test_transforms.py97CODE
LOWtests/step_methods/test_state.py63CODE
Excessive Try-Catch Wrapping28 hits · 30 pts
SeverityFileLineSnippetContext
LOWpymc/util.py320 except Exception:CODE
LOWpymc/util.py470 except Exception:CODE
LOWpymc/printing.py68 except Exception:CODE
LOWpymc/sampling/population.py198 except Exception:CODE
LOWpymc/sampling/population.py222 except Exception:CODE
LOWpymc/sampling/population.py266 except Exception:CODE
LOWpymc/sampling/parallel.py196 except Exception:CODE
LOWpymc/sampling/parallel.py387 except Exception:CODE
LOWpymc/sampling/parallel.py392 except Exception:CODE
LOWpymc/sampling/parallel.py454 except Exception:CODE
MEDIUMpymc/sampling/parallel.py384def _send(self, msg, *args):CODE
LOWpymc/model/core.py1492 except Exception as exc:STRING
LOWpymc/model/core.py1545 except Exception as exc:STRING
LOWpymc/model/core.py2497 except Exception as e:CODE
LOWpymc/smc/parallel.py203 except Exception:CODE
LOWpymc/smc/parallel.py207 except Exception:CODE
LOWpymc/smc/parallel.py290 except Exception:CODE
LOWpymc/variational/callbacks.py144 except Exception:CODE
LOWpymc/distributions/custom.py844 except Exception:CODE
LOWpymc/distributions/shape_utils.py79 except Exception:CODE
LOW⚡pymc/distributions/simulator.py333 except Exception:CODE
LOW⚡pymc/distributions/simulator.py358 except Exception:CODE
LOW⚡tests/sampling/test_mcmc_external.py459 except Exception:CODE
LOWtests/model/test_core.py570 except Exception:CODE
LOWscripts/publish_release_notes_to_discourse.py43 except Exception as e:CODE
MEDIUMscripts/publish_release_notes_to_discourse.py44 print("Error fetching categories")CODE
MEDIUMscripts/publish_release_notes_to_discourse.py143 print(f"Error details: {error_data}")STRING
LOWscripts/publish_release_notes_to_discourse.py144 except Exception:STRING
AI Slop Vocabulary11 hits · 20 pts
SeverityFileLineSnippetContext
LOWpymc/_version.py26 # each be defined on a line of their own. _version.py will just callCOMMENT
LOWpymc/logprob/order.py244 # WeibullBetaRV is a SymbolicRandomVariable, we can't simply pass arguments of a different typeSTRING
MEDIUMpymc/logprob/order.py324 # Make probs explicit to facilitate logic belowCOMMENT
MEDIUMpymc/model/core.py337 """A metaclass in order to apply a model's context during `Model.__init__``."""STRING
MEDIUMpymc/model/core.py1106 # to a shared variable. This is allowed, but a little less robust.COMMENT
LOWpymc/distributions/mixture.py343 # so we can just pass the inputs of the first componentCOMMENT
LOWpymc/distributions/custom.py270 # If it's NoneConst, just use that as the dummyCOMMENT
LOWbenchmarks/benchmarks/benchmarks.py301 # If we know one of the parameter values, we can simply pass the value.COMMENT
MEDIUM.github/workflows/tests.yml298 token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploadsCODE
MEDIUM.github/workflows/tests.yml355 token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploadsCODE
MEDIUM.github/workflows/tests.yml405 token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploadsCODE
Redundant / Tautological Comments9 hits · 15 pts
SeverityFileLineSnippetContext
LOWpymc/pytensorf.py834 # Check if any shared output corresponds to the RNGCOMMENT
LOWpymc/testing.py1364 # Check if graphs are equivalent even if root variables have distinct identitiesCOMMENT
LOWpymc/logprob/transforms.py397 # Check if numerator is 1COMMENT
LOWpymc/logprob/order.py292 # Check if we have an ArgminCOMMENT
LOWpymc/logprob/linalg.py81 # Check if the static shape already reveals a non-square matrix,COMMENT
LOWpymc/dims/distributions/core.py74 # Check if we have a transposition insteadCOMMENT
LOWpymc/gp/cov.py204 # Check if all input_dim are the same in factor_listCOMMENT
LOW⚡pymc/distributions/simulator.py328 # Check if callable returns TensorVariable with dummy inputsCOMMENT
LOW⚡pymc/distributions/simulator.py353 # Check if callable returns TensorVariable with dummy inputsCOMMENT
Cross-Language Confusion3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHpymc/variational/minibatch_rv.py94 coef = total_size[0] if not NoneConst.equals(total_size[0]) else 1.0CODE
HIGHpymc/variational/minibatch_rv.py96 coefs = [t / shape[i] for i, t in enumerate(total_size) if not NoneConst.equals(t)]CODE
HIGHtests/sampling/test_parallel.py287 assert post1.equals(post2), (post1["x"].mean().item(), post2["x"].mean().item())CODE
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHpymc/gp/hsgp_approx.py371 # In this example the data lie between zero and one,COMMENT
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpymc/progress_bar/rich_progress.py129 # Rich yields ~3-5 bulk Segments (e.g. "━━━━━" for completed, "━━━" forCOMMENT
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
LOWpymc/model/fgraph.py345 # We make sure to replace them by the first non-model variableCOMMENT
LOWpymc/model/fgraph.py345 # We make sure to replace them by the first non-model variableCOMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpymc/variational/opvi.py1614 # TODO: add tests for include_transformed caseCOMMENT