AI Slop Code RIsk Monitor

arogozhnikov/einops

Flexible and powerful tensor operations for readable and reliable code (for pytorch, jax, TF and others)

11.1 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for arogozhnikov/einops, a Python project with 9,617 GitHub stars. SynthScan examined 10,195 lines of code across 55 source files, recording 93 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 11.1 (Moderate 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.

11.1
Adjusted Signal
11.1
Raw Pattern Score
100%
Time Factor
2026-08-26
Last Push
9.6K
Stars
Python
Language
10.2K
Lines of Code
55
Files
93
Pattern Hits
2026-10-12
Scan Date
0.09
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 35.7/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 4.3/100 · LOW

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

Agent Over-Engineering Ratio 28.4/100 · MEDIUM

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

PR Review Velocity Impact 43.9/100 · MEDIUM

Which changes need focused human review? 93 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 5MEDIUM 0LOW 88

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 93 distinct pattern matches across 9 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 Identifiers53 hits · 53 pts
SeverityFileLineSnippetContext
LOWdocs/utils/__init__.py7def display_np_arrays_as_images():CODE
LOWeinops/einops.py167def _reconstruct_from_shape_uncached(CODE
LOWeinops/einops.py307def _prepare_transformation_recipe(CODE
LOWeinops/einops.py469def _prepare_recipes_for_all_dims(CODE
LOWeinops/einops.py795def _validate_einsum_axis_name(axis_name):CODE
LOWeinops/einops.py812def _compactify_pattern_for_einsum(pattern: str) -> str:CODE
LOWeinops/parsing.py127 def check_axis_name_return_reason(name: str, allow_underscore: bool = False) -> tuple[bool, str]:CODE
LOWeinops/_torch_specific.py52 def stack_on_zeroth_dimension(tensors: list[torch.Tensor]):CODE
LOWeinops/_torch_specific.py81def apply_for_scriptable_torch(CODE
LOWeinops/_torch_specific.py106def allow_ops_in_compiled_graph():CODE
LOWeinops/_backends.py104 def stack_on_zeroth_dimension(self, tensors: list):CODE
LOWeinops/_backends.py180 def stack_on_zeroth_dimension(self, tensors: list):CODE
LOWeinops/_backends.py263 def stack_on_zeroth_dimension(self, tensors: list):CODE
LOWeinops/_backends.py314 def stack_on_zeroth_dimension(self, tensors: list):CODE
LOWeinops/_backends.py397 def stack_on_zeroth_dimension(self, tensors: list):CODE
LOWeinops/_backends.py457 def stack_on_zeroth_dimension(self, tensors: list):CODE
LOWeinops/_backends.py517 def stack_on_zeroth_dimension(self, tensors: list):CODE
LOWeinops/_backends.py587 def stack_on_zeroth_dimension(self, tensors: list):CODE
LOWeinops/_backends.py651 def stack_on_zeroth_dimension(self, tensors: list):CODE
LOWeinops/_backends.py708 def stack_on_zeroth_dimension(self, tensors: list):CODE
LOWeinops/_backends.py750 def stack_on_zeroth_dimension(self, tensors: list):CODE
LOWeinops/tests/test_parsing.py31def test_elementary_axis_name():CODE
LOWeinops/tests/test_layers.py37def test_rearrange_imperative():CODE
LOWeinops/tests/test_layers.py230def test_torch_layers_scripting():CODE
LOWeinops/tests/test_layers.py381def test_einmix_decomposition():CODE
LOWeinops/tests/test_layers.py471def test_einmix_ellipsis_equivalence():CODE
LOWeinops/tests/__init__.py23def find_names_of_all_frameworks() -> list[str]:CODE
LOWeinops/tests/test_array_api.py42def test_reductions_any_all_for_array_api():CODE
LOWeinops/tests/test_packing.py20def unpack_and_pack_against_numpy(x, ps, pattern: str):CODE
LOWeinops/tests/test_packing.py138def test_pack_unpack_with_numpy():CODE
LOWeinops/tests/test_packing.py201def test_pack_unpack_against_numpy():CODE
LOWeinops/tests/test_packing.py265def test_pack_unpack_array_api():CODE
LOWeinops/tests/test_ops.py44def test_collapsed_ellipsis_errors_out():CODE
LOWeinops/tests/test_ops.py100def test_ellipsis_ops_imperative():CODE
LOWeinops/tests/test_ops.py117def test_rearrange_consistency_numpy():CODE
LOWeinops/tests/test_ops.py155def test_rearrange_permutations_numpy():CODE
LOWeinops/tests/test_ops.py183def test_reduction_imperatives():CODE
LOWeinops/tests/test_ops.py272def test_reduction_stress_imperatives():CODE
LOWeinops/tests/test_ops.py304def test_reduction_with_callable_imperatives():CODE
LOWeinops/tests/test_ops.py355def test_enumerating_directions():CODE
LOWeinops/tests/test_ops.py370def test_concatenations_and_stacking():CODE
LOWeinops/tests/test_ops.py389def test_gradients_imperatives():CODE
LOWeinops/tests/test_ops.py549def test_torch_compile_with_dynamic_shape():CODE
LOWeinops/tests/test_ops.py582def test_reduction_imperatives_booleans():CODE
LOWeinops/tests/test_other.py56def test_optimize_transformations_numpy():CODE
LOWeinops/tests/test_other.py93def test_parse_shape_imperative():CODE
LOWeinops/tests/test_other.py154def test_parse_with_anonymous_axes():CODE
LOWeinops/tests/test_other.py194def test_parse_shape_symbolic(backend):CODE
LOWeinops/tests/test_other.py222def test_parse_shape_symbolic_ellipsis(backend):CODE
LOWeinops/tests/test_other.py258def test_torch_compile_for_functions():CODE
LOWeinops/tests/test_other.py309def test_torch_compile_for_layers():CODE
LOWeinops/tests/test_examples.py153def tensor_train_example_numpy():CODE
LOWeinops/tests/test_examples.py194def test_pytorch_yolo_fragment():CODE
Deep Nesting20 hits · 20 pts
SeverityFileLineSnippetContext
LOWeinops/einops.py61CODE
LOWeinops/einops.py307CODE
LOWeinops/einops.py692CODE
LOWeinops/einops.py812CODE
LOWeinops/parsing.py35CODE
LOWeinops/parsing.py55CODE
LOWeinops/_torch_specific.py27CODE
LOWeinops/_backends.py22CODE
LOWeinops/_backends.py243CODE
LOWeinops/_backends.py502CODE
LOWeinops/layers/_einmix.py95CODE
LOWeinops/tests/test_layers.py37CODE
LOWeinops/tests/test_layers.py110CODE
LOWeinops/tests/test_layers.py151CODE
LOWeinops/tests/test_layers.py471CODE
LOWeinops/tests/test_einsum.py199CODE
LOWeinops/tests/test_einsum.py234CODE
LOWeinops/tests/test_ops.py100CODE
LOWeinops/tests/test_ops.py219CODE
LOWeinops/tests/test_ops.py272CODE
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHeinops/einops.py485 einops.reduce combines rearrangement and reduction using reader-friendly notation. Some examples: ```pythSTRING
HIGHeinops/einops.py570 einops.rearrange is a reader-friendly smart element reordering for multidimensional tensors. This operation incSTRING
HIGHeinops/einops.py882 einops.einsum calls einsum operations with einops-style named axes indexing, computing tensor products with an STRING
Empty Error Handlers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHeinops/tests/test_layers.py48except BaseException:CODE
HIGHeinops/tests/test_layers.py123except BaseException:CODE
Unused Imports9 hits · 9 pts
SeverityFileLineSnippetContext
LOWeinops/__init__.py19CODE
LOWeinops/__init__.py19CODE
LOWeinops/__init__.py19CODE
LOWeinops/__init__.py19CODE
LOWeinops/__init__.py19CODE
LOWeinops/__init__.py19CODE
LOWeinops/__init__.py20CODE
LOWeinops/__init__.py20CODE
LOWeinops/_backends.py225CODE
Excessive Try-Catch Wrapping3 hits · 3 pts
SeverityFileLineSnippetContext
LOWeinops/array_api.py156 except Exception as e:CODE
LOWeinops/packing.py184 except Exception as e:CODE
LOWeinops/tests/test_other.py50 except Exception as e:CODE
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippetContext
LOW.github/workflows/deploy_docs.yml21 with:COMMENT
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWeinops/__init__.py17__all__ = ["EinopsError", "asnumpy", "einsum", "pack", "parse_shape", "rearrange", "reduce", "repeat", "unpack"]CODE
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWeinops/tests/test_examples.py250CODE