Repository Analysis

pymc-devs/pymc

Bayesian Modeling and Probabilistic Programming in Python

15.7 Moderate AI signal View on GitHub

Analysis Overview

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).

15.7
Adjusted Score
15.7
Raw Score
100%
Time Factor
2026-07-14
Last Push
9.7K
Stars
Python
Language
111.1K
Lines of Code
326
Files
1.8K
Pattern Hits
2026-07-14
Scan Date
0.01
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

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.

No multi-scan history yet — run the scanner again to build trend data.

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 4MEDIUM 36LOW 1748

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 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.

Hyper-Verbose Identifiers872 hits · 826 pts
SeverityFileLineSnippetContext
LOWpymc/pytensorf.py137def dataframe_to_tensor_variable(df: pd.DataFrame, *args, **kwargs) -> TensorVariable:CODE
LOWpymc/pytensorf.py702def collect_default_updates_inner_fgraph(node: Apply) -> dict[Variable, Variable]:CODE
LOWpymc/pytensorf.py882def resolve_backend_compile_kwargs(backend: str | None, compile_kwargs: dict | None) -> dict:CODE
LOWpymc/_version.py198def git_versions_from_keywords(CODE
LOWpymc/util.py370def check_dist_not_registered(dist, model=None):CODE
LOWpymc/util.py431 def _get_unique_seeds_per_chain(integers_fn):CODE
LOWpymc/util.py462def get_value_vars_from_user_vars(vars: Variable | Sequence[Variable], model) -> list[Variable]:CODE
LOWpymc/util.py523def random_generator_from_state(state: RandomGeneratorState) -> np.random.Generator:CODE
LOWpymc/initial_point.py71def make_initial_point_fns_per_chain(CODE
LOWpymc/initial_point.py206def non_support_point_ancestors(value):CODE
LOWpymc/initial_point.py220def 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
LOWpymc/testing.py1107 def check_pymc_draws_match_reference(self):CODE
LOWpymc/testing.py1114 def check_pymc_draws_match_reference_not_numba(self):CODE
LOWpymc/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: Model) -> 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.py99def _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.py459def observed_dependent_deterministics(model: Model, extra_observeds=None):CODE
LOWpymc/sampling/forward.py596def sample_posterior_predictive(CODE
LOWpymc/sampling/forward.py615def sample_posterior_predictive(CODE
LOWpymc/sampling/forward.py633def sample_posterior_predictive(CODE
LOWpymc/sampling/parallel.py88def _initialize_multiprocessing_context(CODE
LOWpymc/logprob/transforms.py198def measurable_transform_logprob(op: MeasurableTransform, values, *inputs, **kwargs):CODE
LOWpymc/logprob/transforms.py238def measurable_transform_logcdf(op: MeasurableTransform, value, *inputs, **kwargs):CODE
LOWpymc/logprob/transforms.py289def measurable_transform_icdf(op: MeasurableTransform, value, *inputs, **kwargs):CODE
LOWpymc/logprob/transforms.py334def measurable_reciprocal_to_power(fgraph, node):CODE
LOWpymc/logprob/transforms.py344def measurable_sqrt_sqr_to_power(fgraph, node):CODE
LOWpymc/logprob/transforms.py359def measurable_div_to_product(fgraph, node):CODE
LOWpymc/logprob/transforms.py380def measurable_neg_to_product(fgraph, node):CODE
LOWpymc/logprob/transforms.py400def measurable_special_log_to_log(fgraph, node):CODE
LOWpymc/logprob/transforms.py420def measurable_special_exp_to_exp(fgraph, node):CODE
LOWpymc/logprob/transforms.py435def measurable_power_exponent_to_exp(fgraph, node):CODE
LOWpymc/logprob/transforms.py471def find_measurable_transforms(fgraph: FunctionGraph, node: Apply) -> list[Variable] | None:CODE
812 more matches not shown…
Over-Commented Block304 hits · 298 pts
SeverityFileLineSnippetContext
LOWsetup.py1# Copyright 2024 - 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/_version.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
LOWpymc/util.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
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/linalg.py1# Copyright 2024 - present The PyMC DevelopersCOMMENT
244 more matches not shown…
Unused Imports365 hits · 279 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
305 more matches not shown…
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.py940 # Create an update mapping of RandomVariable's RNG so that it is automaticallyCOMMENT
MEDIUMpymc/_version.py21# This file is released into the public domain.COMMENT
MEDIUMpymc/backends/mcbackend.py198 # Create a NumPyChain for the sliced dataCOMMENT
MEDIUMpymc/backends/zarr.py513 # Create the posterior that includes warmup drawsCOMMENT
MEDIUMpymc/backends/zarr.py522 # Create the unconstrained posterior group that includes warmup drawsCOMMENT
MEDIUMpymc/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.py524 # Create an AR of order 3, with a constant termCOMMENT
MEDIUMtests/test_pytensorf.py222 # 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
MEDIUMtests/model/test_core.py636 # Create the various inputs to the functionCOMMENT
MEDIUMtests/model/test_core.py642 # Create a fake model and fake distribution to be used for the testCOMMENT
MEDIUMtests/model/test_core.py646 # 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 Nesting70 hits · 68 pts
SeverityFileLineSnippetContext
LOWpymc/pytensorf.py87CODE
LOWpymc/_version.py170CODE
LOWpymc/_version.py617CODE
LOWpymc/initial_point.py220CODE
LOWpymc/math.py490CODE
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.py416CODE
LOWpymc/sampling/population.py154CODE
LOWpymc/sampling/population.py243CODE
LOWpymc/sampling/mcmc.py256CODE
LOWpymc/sampling/mcmc.py605CODE
LOWpymc/sampling/mcmc.py1217CODE
LOWpymc/sampling/mcmc.py1570CODE
LOWpymc/sampling/mcmc.py1679CODE
LOWpymc/sampling/mcmc.py1743CODE
LOWpymc/sampling/forward.py633CODE
LOWpymc/sampling/parallel.py88CODE
LOWpymc/sampling/parallel.py249CODE
LOWpymc/logprob/transforms.py238CODE
LOWpymc/logprob/transforms.py289CODE
LOWpymc/logprob/binary.py44CODE
LOWpymc/step_methods/slicer.py119CODE
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.py1081CODE
LOWpymc/model/core.py1216CODE
LOWpymc/model/core.py1842CODE
LOWpymc/smc/sampling.py42CODE
LOWpymc/smc/sampling.py423CODE
LOWpymc/smc/parallel.py366CODE
LOWpymc/variational/opvi.py716CODE
LOWpymc/variational/minibatch_rv.py57CODE
LOWpymc/variational/inference.py185CODE
LOWpymc/variational/inference.py226CODE
LOWpymc/variational/approximations.py244CODE
LOWpymc/distributions/mixture.py293CODE
LOWpymc/distributions/custom.py452CODE
LOWpymc/distributions/shape_utils.py130CODE
LOWpymc/distributions/shape_utils.py148CODE
LOWpymc/distributions/distribution.py788CODE
LOWpymc/distributions/simulator.py146CODE
LOWtests/sampler_fixtures.py45CODE
LOWtests/test_printing.py68CODE
10 more matches not shown…
Modern Structural Boilerplate53 hits · 52 pts
SeverityFileLineSnippetContext
LOWpymc/func_utils.py28__all__ = ["find_constrained_prior"]CODE
LOWpymc/pytensorf.py62__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.py40logger = logging.getLogger(__name__)CODE
LOWpymc/backends/report.py21logger = logging.getLogger(__name__)CODE
LOWpymc/sampling/jax.py60logger = logging.getLogger(__name__)CODE
LOWpymc/sampling/mcmc.py119__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.py82__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.py93__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.py49__all__ = ["find_MAP"]CODE
LOWpymc/tuning/starting.py263 def update_progress_desc(self, neg_value: float, grad: np.float64 = None) -> None:CODE
LOWpymc/distributions/transforms.py34__all__ = [CODE
LOWpymc/distributions/mixture.py45__all__ = [CODE
LOWpymc/distributions/shape_utils.py36__all__ = [CODE
LOWpymc/distributions/discrete.py57__all__ = [CODE
LOWpymc/distributions/__init__.py118__all__ = [CODE
LOWpymc/distributions/distribution.py67__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 Patterns42 hits · 42 pts
SeverityFileLineSnippetContext
LOWpymc/model_graph.py658CODE
LOWpymc/backends/arviz.py613CODE
LOWpymc/backends/arviz.py291CODE
LOWpymc/sampling/jax.py495CODE
LOWpymc/sampling/mcmc.py539CODE
LOWpymc/sampling/mcmc.py572CODE
LOWpymc/sampling/mcmc.py605CODE
LOWpymc/sampling/mcmc.py1743CODE
LOWpymc/sampling/forward.py475CODE
LOWpymc/sampling/forward.py486CODE
LOWpymc/sampling/forward.py496CODE
LOWpymc/sampling/forward.py596CODE
LOWpymc/sampling/forward.py615CODE
LOWpymc/sampling/forward.py633CODE
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.py81CODE
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.py189CODE
LOWpymc/variational/opvi.py300CODE
LOWpymc/variational/inference.py691CODE
LOWpymc/tuning/starting.py52CODE
LOWpymc/distributions/custom.py99CODE
LOWpymc/distributions/custom.py215CODE
LOWpymc/distributions/custom.py707CODE
LOWpymc/distributions/custom.py764CODE
LOWpymc/distributions/simulator.py146CODE
LOWpymc/distributions/continuous.py372CODE
LOWpymc/distributions/continuous.py433CODE
LOWpymc/distributions/continuous.py889CODE
LOWpymc/distributions/continuous.py1803CODE
LOWpymc/distributions/continuous.py2916CODE
LOWpymc/stats/log_density.py129CODE
LOWtests/sampling/test_parallel.py262CODE
LOWtests/logprob/test_transforms.py92CODE
LOWtests/step_methods/test_state.py63CODE
Excessive Try-Catch Wrapping30 hits · 32 pts
SeverityFileLineSnippetContext
LOWpymc/util.py312 except Exception:CODE
LOWpymc/util.py439 except Exception:CODE
MEDIUMpymc/math.py460def perform(self, node, inputs, outputs, params=None):CODE
LOWpymc/math.py467 except Exception:STRING
LOWpymc/printing.py68 except Exception:CODE
LOWpymc/sampling/population.py214 except Exception:CODE
LOWpymc/sampling/population.py238 except Exception:CODE
LOWpymc/sampling/population.py287 except Exception:CODE
LOWpymc/sampling/parallel.py196 except Exception:CODE
LOWpymc/sampling/parallel.py386 except Exception:CODE
LOWpymc/sampling/parallel.py391 except Exception:CODE
LOWpymc/sampling/parallel.py453 except Exception:CODE
MEDIUMpymc/sampling/parallel.py383def _send(self, msg, *args):CODE
LOWpymc/model/core.py1900 except Exception as exc:STRING
LOWpymc/model/core.py1953 except Exception as exc:STRING
LOWpymc/model/core.py2233 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.py841 except Exception:CODE
LOWpymc/distributions/shape_utils.py80 except Exception:CODE
LOWpymc/distributions/simulator.py333 except Exception:CODE
LOWpymc/distributions/simulator.py358 except Exception:CODE
LOWtests/sampling/test_mcmc_external.py437 except Exception:CODE
LOWtests/model/test_core.py566 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 Vocabulary10 hits · 18 pts
SeverityFileLineSnippetContext
LOWpymc/_version.py40 # each be defined on a line of their own. _version.py will just callCOMMENT
MEDIUMpymc/model/core.py301 """A metaclass in order to apply a model's context during `Model.__init__``."""STRING
MEDIUMpymc/model/core.py1200 # to a shared variable. This is allowed, but a little less robust.COMMENT
LOWpymc/tuning/starting.py143 # TODO: If the mapping is fixed, we can simply create graphs for theCOMMENT
LOWpymc/distributions/mixture.py343 # so we can just pass the inputs of the first componentCOMMENT
LOWpymc/distributions/custom.py269 # 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.yml289 token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploadsCODE
MEDIUM.github/workflows/tests.yml343 token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploadsCODE
MEDIUM.github/workflows/tests.yml390 token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploadsCODE
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
Redundant / Tautological Comments8 hits · 14 pts
SeverityFileLineSnippetContext
LOWpymc/pytensorf.py824 # 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.py366 # Check if numerator is 1COMMENT
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
LOWpymc/distributions/simulator.py328 # Check if callable returns TensorVariable with dummy inputsCOMMENT
LOWpymc/distributions/simulator.py353 # Check if callable returns TensorVariable with dummy inputsCOMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHpymc/gp/hsgp_approx.py232 # 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.py1557 # TODO: add tests for include_transformed caseCOMMENT