Bayesian Modeling and Probabilistic Programming in Python
This report presents the forensic synthetic code analysis of pymc-devs/pymc, a Python project with 9,674 GitHub stars. SynthScan v2.0 examined 111,146 lines of code across 326 source files, recording 1788 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 15.7 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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.
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.
The scanner identified 1788 distinct pattern matches across 15 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/pytensorf.py | 137 | def dataframe_to_tensor_variable(df: pd.DataFrame, *args, **kwargs) -> TensorVariable: | CODE |
| LOW | pymc/pytensorf.py | 702 | def collect_default_updates_inner_fgraph(node: Apply) -> dict[Variable, Variable]: | CODE |
| LOW | pymc/pytensorf.py | 882 | def resolve_backend_compile_kwargs(backend: str | None, compile_kwargs: dict | None) -> dict: | CODE |
| LOW | pymc/_version.py | 198 | def git_versions_from_keywords( | CODE |
| LOW | pymc/util.py | 370 | def check_dist_not_registered(dist, model=None): | CODE |
| LOW | pymc/util.py | 431 | def _get_unique_seeds_per_chain(integers_fn): | CODE |
| LOW | pymc/util.py | 462 | def get_value_vars_from_user_vars(vars: Variable | Sequence[Variable], model) -> list[Variable]: | CODE |
| LOW | pymc/util.py | 523 | def random_generator_from_state(state: RandomGeneratorState) -> np.random.Generator: | CODE |
| LOW | pymc/initial_point.py | 71 | def make_initial_point_fns_per_chain( | CODE |
| LOW | pymc/initial_point.py | 206 | def non_support_point_ancestors(value): | CODE |
| LOW | pymc/initial_point.py | 220 | def make_initial_point_expression( | CODE |
| LOW | pymc/model_graph.py | 58 | def create_plate_label_without_dim_length( | CODE |
| LOW | pymc/model_graph.py | 67 | def create_plate_label_with_dim_length( | CODE |
| LOW | pymc/model_graph.py | 777 | def _create_mermaid_node_name(name: str) -> str: | CODE |
| LOW | pymc/testing.py | 259 | def create_dist_from_paramdomains( | CODE |
| LOW | pymc/testing.py | 283 | def find_invalid_scalar_params( | CODE |
| LOW | pymc/testing.py | 359 | def scipy_logp_with_scipy_args(**args): | CODE |
| LOW | pymc/testing.py | 754 | def check_selfconsistency_discrete_logcdf( | CODE |
| LOW | pymc/testing.py | 791 | def check_selfconsistency_icdf( | CODE |
| LOW | pymc/testing.py | 837 | def assert_support_point_is_expected(model, expected, check_finite_logp=True): | CODE |
| LOW | pymc/testing.py | 911 | def partially_deterministic_continuous_random_tester( | CODE |
| LOW⚡ | pymc/testing.py | 1107 | def check_pymc_draws_match_reference(self): | CODE |
| LOW⚡ | pymc/testing.py | 1114 | def check_pymc_draws_match_reference_not_numba(self): | CODE |
| LOW⚡ | pymc/testing.py | 1123 | def check_pymc_params_match_rv_op(self): | CODE |
| LOW | pymc/testing.py | 1183 | def seeded_scipy_distribution_builder(dist_name: str) -> Callable: | CODE |
| LOW | pymc/testing.py | 1187 | def seeded_numpy_distribution_builder(dist_name: str) -> Callable: | CODE |
| LOW | pymc/testing.py | 1301 | def mock_sample_setup_and_teardown(): | CODE |
| LOW | pymc/testing.py | 1358 | def equal_computations_up_to_root( | CODE |
| LOW | pymc/printing.py | 210 | def str_for_potential_or_deterministic( | CODE |
| LOW | pymc/printing.py | 365 | def _register_ipython_pretty_printers(): | CODE |
| LOW | pymc/backends/arviz.py | 96 | def dict_to_dataset_drop_incompatible_coords( | CODE |
| LOW | pymc/backends/arviz.py | 219 | def coords_and_dims_for_inferencedata(model: Model) -> tuple[dict[str, Any], dict[str, Any]]: | CODE |
| LOW | pymc/backends/arviz.py | 471 | def posterior_predictive_to_xarray(self): | CODE |
| LOW | pymc/backends/arviz.py | 689 | def predictions_to_inference_data( | CODE |
| LOW | pymc/backends/arviz.py | 795 | def apply_function_over_dataset( | CODE |
| LOW | pymc/backends/mcbackend.py | 63 | def get_variables_and_point_fn( | CODE |
| LOW | pymc/backends/mcbackend.py | 217 | def make_runmeta_and_point_fn( | CODE |
| LOW | pymc/backends/zarr.py | 261 | def get_initial_fill_value_and_codec( | CODE |
| LOW | pymc/backends/zarr.py | 604 | def init_sampling_state_group(self, tune: int, chains: int): | CODE |
| LOW | pymc/sampling/jax.py | 87 | def _replace_shared_variables(graph: list[TensorVariable]) -> list[TensorVariable]: | CODE |
| LOW | pymc/sampling/jax.py | 186 | def _get_batched_jittered_initial_points( | CODE |
| LOW | pymc/sampling/mcmc.py | 99 | def _nutpie_meets_min_version() -> bool: | CODE |
| LOW | pymc/sampling/forward.py | 189 | def _maybe_warn_implicit_freeze( | CODE |
| LOW | pymc/sampling/forward.py | 262 | def compile_forward_sampling_function( | CODE |
| LOW | pymc/sampling/forward.py | 459 | def observed_dependent_deterministics(model: Model, extra_observeds=None): | CODE |
| LOW | pymc/sampling/forward.py | 596 | def sample_posterior_predictive( | CODE |
| LOW | pymc/sampling/forward.py | 615 | def sample_posterior_predictive( | CODE |
| LOW | pymc/sampling/forward.py | 633 | def sample_posterior_predictive( | CODE |
| LOW | pymc/sampling/parallel.py | 88 | def _initialize_multiprocessing_context( | CODE |
| LOW | pymc/logprob/transforms.py | 198 | def measurable_transform_logprob(op: MeasurableTransform, values, *inputs, **kwargs): | CODE |
| LOW | pymc/logprob/transforms.py | 238 | def measurable_transform_logcdf(op: MeasurableTransform, value, *inputs, **kwargs): | CODE |
| LOW | pymc/logprob/transforms.py | 289 | def measurable_transform_icdf(op: MeasurableTransform, value, *inputs, **kwargs): | CODE |
| LOW | pymc/logprob/transforms.py | 334 | def measurable_reciprocal_to_power(fgraph, node): | CODE |
| LOW | pymc/logprob/transforms.py | 344 | def measurable_sqrt_sqr_to_power(fgraph, node): | CODE |
| LOW | pymc/logprob/transforms.py | 359 | def measurable_div_to_product(fgraph, node): | CODE |
| LOW | pymc/logprob/transforms.py | 380 | def measurable_neg_to_product(fgraph, node): | CODE |
| LOW | pymc/logprob/transforms.py | 400 | def measurable_special_log_to_log(fgraph, node): | CODE |
| LOW | pymc/logprob/transforms.py | 420 | def measurable_special_exp_to_exp(fgraph, node): | CODE |
| LOW | pymc/logprob/transforms.py | 435 | def measurable_power_exponent_to_exp(fgraph, node): | CODE |
| LOW | pymc/logprob/transforms.py | 471 | def find_measurable_transforms(fgraph: FunctionGraph, node: Apply) -> list[Variable] | None: | CODE |
| 812 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/func_utils.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/_deprecations.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/pytensorf.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/_version.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/util.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/__init__.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/initial_point.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/blocking.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/exceptions.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/math.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/model_graph.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/vartypes.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/testing.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/data.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/printing.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/progress_bar/__init__.py | 1 | # Copyright 2025 - present The PyMC Developers | COMMENT |
| LOW | pymc/progress_bar/marimo_progress_css.py | 1 | # Copyright 2026 - present The PyMC Developers | COMMENT |
| LOW | pymc/progress_bar/progress.py | 1 | # Copyright 2025 - present The PyMC Developers | COMMENT |
| LOW | pymc/progress_bar/marimo_progress.py | 1 | # Copyright 2025 - present The PyMC Developers | COMMENT |
| LOW | pymc/progress_bar/rich_progress.py | 1 | # Copyright 2025 - present The PyMC Developers | COMMENT |
| LOW | pymc/backends/__init__.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/backends/arviz.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/backends/ndarray.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/backends/mcbackend.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/backends/zarr.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/backends/base.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/backends/report.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/sampling/deterministic.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/sampling/population.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/sampling/__init__.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/sampling/jax.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/sampling/mcmc.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/sampling/forward.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/sampling/parallel.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/abstract.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/abstract.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/arithmetic.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/arithmetic.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/transforms.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/transforms.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/binary.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/mixture.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/mixture.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/transform_value.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/rewriting.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/rewriting.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/checks.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/checks.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/censoring.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/censoring.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/order.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/order.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/__init__.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/__init__.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/switch.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/switch.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/tensor.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/tensor.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/linalg.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| 244 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/__init__.py | 49 | CODE | |
| LOW | pymc/__init__.py | 49 | CODE | |
| LOW | pymc/__init__.py | 49 | CODE | |
| LOW | pymc/__init__.py | 49 | CODE | |
| LOW | pymc/__init__.py | 49 | CODE | |
| LOW | pymc/__init__.py | 49 | CODE | |
| LOW | pymc/__init__.py | 49 | CODE | |
| LOW | pymc/__init__.py | 51 | CODE | |
| LOW | pymc/__init__.py | 52 | CODE | |
| LOW | pymc/__init__.py | 53 | CODE | |
| LOW | pymc/__init__.py | 54 | CODE | |
| LOW | pymc/__init__.py | 55 | CODE | |
| LOW | pymc/__init__.py | 56 | CODE | |
| LOW | pymc/__init__.py | 57 | CODE | |
| LOW | pymc/__init__.py | 57 | CODE | |
| LOW | pymc/__init__.py | 58 | CODE | |
| LOW | pymc/__init__.py | 58 | CODE | |
| LOW | pymc/__init__.py | 58 | CODE | |
| LOW | pymc/__init__.py | 59 | CODE | |
| LOW | pymc/__init__.py | 60 | CODE | |
| LOW | pymc/__init__.py | 61 | CODE | |
| LOW | pymc/__init__.py | 62 | CODE | |
| LOW | pymc/__init__.py | 63 | CODE | |
| LOW | pymc/__init__.py | 64 | CODE | |
| LOW | pymc/__init__.py | 65 | CODE | |
| LOW | pymc/blocking.py | 17 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| 305 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .gitpod.yml | 8 | # Create an empty object for .vscode/settings.json if the file doesn't exist | COMMENT |
| MEDIUM | pymc/pytensorf.py | 940 | # Create an update mapping of RandomVariable's RNG so that it is automatically | COMMENT |
| MEDIUM | pymc/_version.py | 21 | # This file is released into the public domain. | COMMENT |
| MEDIUM | pymc/backends/mcbackend.py | 198 | # Create a NumPyChain for the sliced data | COMMENT |
| MEDIUM⚡ | pymc/backends/zarr.py | 513 | # Create the posterior that includes warmup draws | COMMENT |
| MEDIUM⚡ | pymc/backends/zarr.py | 522 | # Create the unconstrained posterior group that includes warmup draws | COMMENT |
| MEDIUM⚡ | pymc/backends/zarr.py | 532 | # Create the sample stats that include warmup draws | COMMENT |
| MEDIUM | pymc/distributions/multivariate.py | 1394 | # Define a new MvNormal with the given covariance | COMMENT |
| MEDIUM | pymc/distributions/multivariate.py | 1609 | # Define the vector of fixed standard deviations | COMMENT |
| MEDIUM | pymc/distributions/multivariate.py | 1614 | # Define a new MvNormal with the given correlation matrix | COMMENT |
| MEDIUM | pymc/distributions/simulator.py | 275 | # Create a new simulatorRV with identical inputs as the original one | STRING |
| MEDIUM | pymc/distributions/timeseries.py | 524 | # Create an AR of order 3, with a constant term | COMMENT |
| MEDIUM | tests/test_pytensorf.py | 222 | # Create the various inputs to the function | COMMENT |
| MEDIUM | tests/logprob/test_transform_value.py | 42 | # Create a dummy Op that just returns the two inputs | COMMENT |
| MEDIUM | tests/logprob/test_transform_value.py | 559 | # Create an unrolled scan graph as reference | COMMENT |
| MEDIUM | tests/ode/test_ode.py | 32 | # Create an ODe to integrate | COMMENT |
| MEDIUM | tests/ode/test_ode.py | 59 | # Create an ODe to integrate | COMMENT |
| MEDIUM⚡ | tests/model/test_core.py | 636 | # Create the various inputs to the function | COMMENT |
| MEDIUM⚡ | tests/model/test_core.py | 642 | # Create a fake model and fake distribution to be used for the test | COMMENT |
| MEDIUM⚡ | tests/model/test_core.py | 646 | # Create the testval attribute simply for the sake of model testing | COMMENT |
| MEDIUM | tests/variational/test_approximations.py | 53 | # Create a model for test | COMMENT |
| MEDIUM | tests/distributions/test_distribution.py | 243 | # Create a SymbolicRandomVariable type with extended_signature | COMMENT |
| MEDIUM | docs/source/conf.py | 7 | # This file is execfile()d with the current directory set to its | COMMENT |
| MEDIUM | scripts/generate_pip_deps_from_conda.py | 127 | "# This file is auto-generated by scripts/generate_pip_deps_from_conda.py, " | CODE |
| MEDIUM | scripts/publish_release_notes_to_discourse.py | 112 | # Create the topic data | STRING |
| MEDIUM | .github/release.yml | 1 | # This file contains configuration for the automatic generation of release notes in GitHub. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/pytensorf.py | 87 | CODE | |
| LOW | pymc/_version.py | 170 | CODE | |
| LOW | pymc/_version.py | 617 | CODE | |
| LOW | pymc/initial_point.py | 220 | CODE | |
| LOW | pymc/math.py | 490 | CODE | |
| LOW | pymc/model_graph.py | 176 | CODE | |
| LOW | pymc/model_graph.py | 420 | CODE | |
| LOW | pymc/model_graph.py | 781 | CODE | |
| LOW | pymc/model_graph.py | 269 | CODE | |
| LOW | pymc/model_graph.py | 299 | CODE | |
| LOW | pymc/testing.py | 311 | CODE | |
| LOW | pymc/testing.py | 420 | CODE | |
| LOW | pymc/testing.py | 537 | CODE | |
| LOW | pymc/testing.py | 655 | CODE | |
| LOW | pymc/printing.py | 288 | CODE | |
| LOW | pymc/printing.py | 343 | CODE | |
| LOW | pymc/printing.py | 390 | CODE | |
| LOW | pymc/backends/arviz.py | 96 | CODE | |
| LOW | pymc/backends/zarr.py | 711 | CODE | |
| LOW | pymc/sampling/population.py | 416 | CODE | |
| LOW | pymc/sampling/population.py | 154 | CODE | |
| LOW | pymc/sampling/population.py | 243 | CODE | |
| LOW | pymc/sampling/mcmc.py | 256 | CODE | |
| LOW | pymc/sampling/mcmc.py | 605 | CODE | |
| LOW | pymc/sampling/mcmc.py | 1217 | CODE | |
| LOW | pymc/sampling/mcmc.py | 1570 | CODE | |
| LOW | pymc/sampling/mcmc.py | 1679 | CODE | |
| LOW | pymc/sampling/mcmc.py | 1743 | CODE | |
| LOW | pymc/sampling/forward.py | 633 | CODE | |
| LOW | pymc/sampling/parallel.py | 88 | CODE | |
| LOW | pymc/sampling/parallel.py | 249 | CODE | |
| LOW | pymc/logprob/transforms.py | 238 | CODE | |
| LOW | pymc/logprob/transforms.py | 289 | CODE | |
| LOW | pymc/logprob/binary.py | 44 | CODE | |
| LOW | pymc/step_methods/slicer.py | 119 | CODE | |
| LOW | pymc/step_methods/state.py | 30 | CODE | |
| LOW | pymc/step_methods/hmc/quadpotential.py | 539 | CODE | |
| LOW | pymc/gp/cov.py | 236 | CODE | |
| LOW | pymc/gp/cov.py | 264 | CODE | |
| LOW | pymc/model/fgraph.py | 139 | CODE | |
| LOW | pymc/model/fgraph.py | 301 | CODE | |
| LOW | pymc/model/core.py | 1081 | CODE | |
| LOW | pymc/model/core.py | 1216 | CODE | |
| LOW | pymc/model/core.py | 1842 | CODE | |
| LOW | pymc/smc/sampling.py | 42 | CODE | |
| LOW | pymc/smc/sampling.py | 423 | CODE | |
| LOW | pymc/smc/parallel.py | 366 | CODE | |
| LOW | pymc/variational/opvi.py | 716 | CODE | |
| LOW | pymc/variational/minibatch_rv.py | 57 | CODE | |
| LOW | pymc/variational/inference.py | 185 | CODE | |
| LOW | pymc/variational/inference.py | 226 | CODE | |
| LOW | pymc/variational/approximations.py | 244 | CODE | |
| LOW | pymc/distributions/mixture.py | 293 | CODE | |
| LOW | pymc/distributions/custom.py | 452 | CODE | |
| LOW | pymc/distributions/shape_utils.py | 130 | CODE | |
| LOW | pymc/distributions/shape_utils.py | 148 | CODE | |
| LOW | pymc/distributions/distribution.py | 788 | CODE | |
| LOW | pymc/distributions/simulator.py | 146 | CODE | |
| LOW | tests/sampler_fixtures.py | 45 | CODE | |
| LOW | tests/test_printing.py | 68 | CODE | |
| 10 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/func_utils.py | 28 | __all__ = ["find_constrained_prior"] | CODE |
| LOW | pymc/pytensorf.py | 62 | __all__ = [ | CODE |
| LOW | pymc/blocking.py | 31 | __all__ = ["DictToArrayBijection"] | CODE |
| LOW | pymc/exceptions.py | 15 | __all__ = [ | CODE |
| LOW | pymc/math.py | 150 | __all__ = [ | CODE |
| LOW | pymc/vartypes.py | 15 | __all__ = [ | CODE |
| LOW | pymc/data.py | 43 | __all__ = [ | CODE |
| LOW | pymc/printing.py | 40 | __all__ = [ | CODE |
| LOW | pymc/progress_bar/progress.py | 483 | def _set_task_elapsed(self, task_id: int, elapsed_seconds: float) -> None: | CODE |
| LOW | pymc/backends/__init__.py | 124 | __all__ = ["predictions_to_inference_data", "to_inference_data"] | CODE |
| LOW | pymc/backends/base.py | 40 | logger = logging.getLogger(__name__) | CODE |
| LOW | pymc/backends/report.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | pymc/sampling/jax.py | 60 | logger = logging.getLogger(__name__) | CODE |
| LOW | pymc/sampling/mcmc.py | 119 | __all__ = [ | CODE |
| LOW | pymc/sampling/parallel.py | 52 | logger = logging.getLogger(__name__) | CODE |
| LOW | pymc/step_methods/metropolis.py | 57 | __all__ = [ | CODE |
| LOW | pymc/step_methods/arraystep.py | 26 | __all__ = ["ArrayStep", "ArrayStepShared", "metrop_select"] | CODE |
| LOW | pymc/step_methods/slicer.py | 33 | __all__ = ["Slice"] | CODE |
| LOW | pymc/step_methods/hmc/base_hmc.py | 44 | logger = logging.getLogger(__name__) | CODE |
| LOW | pymc/step_methods/hmc/nuts.py | 34 | __all__ = ["NUTS"] | CODE |
| LOW | pymc/step_methods/hmc/quadpotential.py | 42 | __all__ = [ | CODE |
| LOW | pymc/step_methods/hmc/hmc.py | 32 | __all__ = ["HamiltonianMC"] | CODE |
| LOW | pymc/gp/gp.py | 39 | __all__ = ["TP", "Latent", "LatentKron", "Marginal", "MarginalApprox", "MarginalKron"] | CODE |
| LOW | pymc/gp/cov.py | 31 | __all__ = [ | CODE |
| LOW | pymc/gp/mean.py | 17 | __all__ = ["Constant", "Linear", "Zero"] | CODE |
| LOW | pymc/model/core.py | 82 | __all__ = [ | CODE |
| LOW | pymc/smc/sampling.py | 39 | logger = logging.getLogger(__name__) | CODE |
| LOW | pymc/smc/parallel.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | pymc/variational/updates.py | 121 | __all__ = [ | CODE |
| LOW | pymc/variational/opvi.py | 93 | __all__ = ["Approximation", "Group", "ObjectiveFunction", "Operator", "TestFunction"] | STRING |
| LOW | pymc/variational/callbacks.py | 21 | __all__ = ["Callback", "CheckParametersConvergence", "Tracker"] | CODE |
| LOW | pymc/variational/test_functions.py | 20 | __all__ = ["rbf"] | CODE |
| LOW | pymc/variational/inference.py | 32 | logger = logging.getLogger(__name__) | CODE |
| LOW | pymc/variational/inference.py | 34 | __all__ = [ | CODE |
| LOW | pymc/variational/stein.py | 24 | __all__ = ["Stein"] | CODE |
| LOW | pymc/variational/operators.py | 30 | __all__ = ["KL", "KSD"] | CODE |
| LOW | pymc/variational/approximations.py | 37 | __all__ = ["Empirical", "FullRank", "MeanField", "sample_approx"] | CODE |
| LOW | pymc/tuning/scaling.py | 24 | __all__ = ["find_hessian", "guess_scaling", "trace_cov"] | CODE |
| LOW | pymc/tuning/starting.py | 49 | __all__ = ["find_MAP"] | CODE |
| LOW | pymc/tuning/starting.py | 263 | def update_progress_desc(self, neg_value: float, grad: np.float64 = None) -> None: | CODE |
| LOW | pymc/distributions/transforms.py | 34 | __all__ = [ | CODE |
| LOW | pymc/distributions/mixture.py | 45 | __all__ = [ | CODE |
| LOW | pymc/distributions/shape_utils.py | 36 | __all__ = [ | CODE |
| LOW | pymc/distributions/discrete.py | 57 | __all__ = [ | CODE |
| LOW | pymc/distributions/__init__.py | 118 | __all__ = [ | CODE |
| LOW | pymc/distributions/distribution.py | 67 | __all__ = [ | CODE |
| LOW | pymc/distributions/multivariate.py | 89 | __all__ = [ | CODE |
| LOW | pymc/distributions/simulator.py | 29 | __all__ = ["Simulator"] | CODE |
| LOW | pymc/distributions/continuous.py | 99 | __all__ = [ | CODE |
| LOW | pymc/distributions/timeseries.py | 50 | __all__ = [ | CODE |
| LOW | pymc/distributions/moments/__init__.py | 19 | __all__ = ["mean"] | CODE |
| LOW | pymc/distributions/moments/means.py | 86 | __all__ = ["mean"] | CODE |
| LOW | pymc/stats/convergence.py | 33 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/model_graph.py | 658 | CODE | |
| LOW | pymc/backends/arviz.py | 613 | CODE | |
| LOW | pymc/backends/arviz.py | 291 | CODE | |
| LOW | pymc/sampling/jax.py | 495 | CODE | |
| LOW | pymc/sampling/mcmc.py | 539 | CODE | |
| LOW | pymc/sampling/mcmc.py | 572 | CODE | |
| LOW | pymc/sampling/mcmc.py | 605 | CODE | |
| LOW | pymc/sampling/mcmc.py | 1743 | CODE | |
| LOW | pymc/sampling/forward.py | 475 | CODE | |
| LOW | pymc/sampling/forward.py | 486 | CODE | |
| LOW | pymc/sampling/forward.py | 496 | CODE | |
| LOW | pymc/sampling/forward.py | 596 | CODE | |
| LOW | pymc/sampling/forward.py | 615 | CODE | |
| LOW | pymc/sampling/forward.py | 633 | CODE | |
| LOW | pymc/ode/ode.py | 208 | CODE | |
| LOW | pymc/step_methods/metropolis.py | 157 | CODE | |
| LOW | pymc/step_methods/metropolis.py | 455 | CODE | |
| LOW | pymc/step_methods/metropolis.py | 915 | CODE | |
| LOW | pymc/step_methods/metropolis.py | 1084 | CODE | |
| LOW | pymc/step_methods/slicer.py | 81 | CODE | |
| LOW | pymc/step_methods/hmc/base_hmc.py | 82 | CODE | |
| LOW | pymc/step_methods/hmc/quadpotential.py | 216 | CODE | |
| LOW | pymc/dims/distributions/transforms.py | 167 | CODE | |
| LOW | pymc/smc/sampling.py | 42 | CODE | |
| LOW | pymc/variational/opvi.py | 189 | CODE | |
| LOW | pymc/variational/opvi.py | 300 | CODE | |
| LOW | pymc/variational/inference.py | 691 | CODE | |
| LOW | pymc/tuning/starting.py | 52 | CODE | |
| LOW | pymc/distributions/custom.py | 99 | CODE | |
| LOW | pymc/distributions/custom.py | 215 | CODE | |
| LOW | pymc/distributions/custom.py | 707 | CODE | |
| LOW | pymc/distributions/custom.py | 764 | CODE | |
| LOW | pymc/distributions/simulator.py | 146 | CODE | |
| LOW | pymc/distributions/continuous.py | 372 | CODE | |
| LOW | pymc/distributions/continuous.py | 433 | CODE | |
| LOW | pymc/distributions/continuous.py | 889 | CODE | |
| LOW | pymc/distributions/continuous.py | 1803 | CODE | |
| LOW | pymc/distributions/continuous.py | 2916 | CODE | |
| LOW | pymc/stats/log_density.py | 129 | CODE | |
| LOW | tests/sampling/test_parallel.py | 262 | CODE | |
| LOW | tests/logprob/test_transforms.py | 92 | CODE | |
| LOW | tests/step_methods/test_state.py | 63 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/util.py | 312 | except Exception: | CODE |
| LOW | pymc/util.py | 439 | except Exception: | CODE |
| MEDIUM | pymc/math.py | 460 | def perform(self, node, inputs, outputs, params=None): | CODE |
| LOW | pymc/math.py | 467 | except Exception: | STRING |
| LOW | pymc/printing.py | 68 | except Exception: | CODE |
| LOW | pymc/sampling/population.py | 214 | except Exception: | CODE |
| LOW | pymc/sampling/population.py | 238 | except Exception: | CODE |
| LOW | pymc/sampling/population.py | 287 | except Exception: | CODE |
| LOW | pymc/sampling/parallel.py | 196 | except Exception: | CODE |
| LOW | pymc/sampling/parallel.py | 386 | except Exception: | CODE |
| LOW | pymc/sampling/parallel.py | 391 | except Exception: | CODE |
| LOW | pymc/sampling/parallel.py | 453 | except Exception: | CODE |
| MEDIUM | pymc/sampling/parallel.py | 383 | def _send(self, msg, *args): | CODE |
| LOW | pymc/model/core.py | 1900 | except Exception as exc: | STRING |
| LOW | pymc/model/core.py | 1953 | except Exception as exc: | STRING |
| LOW | pymc/model/core.py | 2233 | except Exception as e: | CODE |
| LOW | pymc/smc/parallel.py | 203 | except Exception: | CODE |
| LOW | pymc/smc/parallel.py | 207 | except Exception: | CODE |
| LOW | pymc/smc/parallel.py | 290 | except Exception: | CODE |
| LOW | pymc/variational/callbacks.py | 144 | except Exception: | CODE |
| LOW | pymc/distributions/custom.py | 841 | except Exception: | CODE |
| LOW | pymc/distributions/shape_utils.py | 80 | except Exception: | CODE |
| LOW⚡ | pymc/distributions/simulator.py | 333 | except Exception: | CODE |
| LOW⚡ | pymc/distributions/simulator.py | 358 | except Exception: | CODE |
| LOW⚡ | tests/sampling/test_mcmc_external.py | 437 | except Exception: | CODE |
| LOW | tests/model/test_core.py | 566 | except Exception: | CODE |
| LOW | scripts/publish_release_notes_to_discourse.py | 43 | except Exception as e: | CODE |
| MEDIUM | scripts/publish_release_notes_to_discourse.py | 44 | print("Error fetching categories") | CODE |
| MEDIUM | scripts/publish_release_notes_to_discourse.py | 143 | print(f"Error details: {error_data}") | STRING |
| LOW | scripts/publish_release_notes_to_discourse.py | 144 | except Exception: | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/_version.py | 40 | # each be defined on a line of their own. _version.py will just call | COMMENT |
| MEDIUM | pymc/model/core.py | 301 | """A metaclass in order to apply a model's context during `Model.__init__``.""" | STRING |
| MEDIUM | pymc/model/core.py | 1200 | # to a shared variable. This is allowed, but a little less robust. | COMMENT |
| LOW | pymc/tuning/starting.py | 143 | # TODO: If the mapping is fixed, we can simply create graphs for the | COMMENT |
| LOW | pymc/distributions/mixture.py | 343 | # so we can just pass the inputs of the first component | COMMENT |
| LOW | pymc/distributions/custom.py | 269 | # If it's NoneConst, just use that as the dummy | COMMENT |
| LOW | benchmarks/benchmarks/benchmarks.py | 301 | # If we know one of the parameter values, we can simply pass the value. | COMMENT |
| MEDIUM | .github/workflows/tests.yml | 289 | token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploads | CODE |
| MEDIUM | .github/workflows/tests.yml | 343 | token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploads | CODE |
| MEDIUM | .github/workflows/tests.yml | 390 | token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploads | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | pymc/variational/minibatch_rv.py | 94 | coef = total_size[0] if not NoneConst.equals(total_size[0]) else 1.0 | CODE |
| HIGH | pymc/variational/minibatch_rv.py | 96 | coefs = [t / shape[i] for i, t in enumerate(total_size) if not NoneConst.equals(t)] | CODE |
| HIGH | tests/sampling/test_parallel.py | 287 | assert post1.equals(post2), (post1["x"].mean().item(), post2["x"].mean().item()) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/pytensorf.py | 824 | # Check if any shared output corresponds to the RNG | COMMENT |
| LOW | pymc/testing.py | 1364 | # Check if graphs are equivalent even if root variables have distinct identities | COMMENT |
| LOW | pymc/logprob/transforms.py | 366 | # Check if numerator is 1 | COMMENT |
| LOW | pymc/logprob/linalg.py | 81 | # Check if the static shape already reveals a non-square matrix, | COMMENT |
| LOW | pymc/dims/distributions/core.py | 74 | # Check if we have a transposition instead | COMMENT |
| LOW | pymc/gp/cov.py | 204 | # Check if all input_dim are the same in factor_list | COMMENT |
| LOW⚡ | pymc/distributions/simulator.py | 328 | # Check if callable returns TensorVariable with dummy inputs | COMMENT |
| LOW⚡ | pymc/distributions/simulator.py | 353 | # Check if callable returns TensorVariable with dummy inputs | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | pymc/gp/hsgp_approx.py | 232 | # In this example the data lie between zero and one, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pymc/progress_bar/rich_progress.py | 129 | # Rich yields ~3-5 bulk Segments (e.g. "━━━━━" for completed, "━━━" for | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/model/fgraph.py | 345 | # We make sure to replace them by the first non-model variable | COMMENT |
| LOW | pymc/model/fgraph.py | 345 | # We make sure to replace them by the first non-model variable | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/variational/opvi.py | 1557 | # TODO: add tests for include_transformed case | COMMENT |