AI Slop Code Risk Monitor

meta/pyrefly

SlopCodeMonitor badge for meta/pyrefly Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
6.8 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for meta/pyrefly. SynthScan examined 740,271 lines of code across 1996 source files, recording 3513 pattern matches distributed across 25 syntactic categories. The legacy adjusted pattern signal is 6.8 (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.

6.8
Adjusted Signal
6.8
Raw Pattern Score
100%
Time Factor
—
Last Push
—
Stars
—
Language
740.3K
Lines of Code
2.0K
Files
3.5K
Pattern Hits
2026-10-31
Scan Date
0.12
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 14.1/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 4.1/100 · LOW

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

Agent Over-Engineering Ratio 20.7/100 · LOW

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

PR Review Velocity Impact 30.9/100 · MEDIUM

Which changes need focused human review? 3513 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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

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

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 2HIGH 236MEDIUM 379LOW 2896

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 3513 distinct pattern matches across 25 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 Identifiers1184 hits · 1209 pts
SeverityFileLineSnippetContext
LOWpyrefly/lib/test/generic_callable_degeneracy.rs77def preserve_argument_inference(CODE
LOWpyrefly/lib/test/typing_self.rs270def person_create_with_name_trampoline(cls, *args, **kwargs):CODE
LOWpyrefly/lib/test/typing_self.rs277def person_create_with_name_orig(cls, name: str) -> Self: # E: `Self` must appear within a classCODE
LOWpyrefly/lib/test/yields.rs205async def async_coroutine_of_async_generator() -> AsyncGenerator[int, None]:CODE
LOWpyrefly/lib/test/yields.rs600def generator_with_only_yield_from() -> Iterator[int]:CODE
LOWpyrefly/lib/test/returns.rs866def uninitialized_local_logic(value: int | str | float) -> str:CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs2470def contradictory_source_true() -> Tensor[[contradictory_source_or(None, Int[3], Int[7], True)]]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs2471def contradictory_source_false() -> Tensor[[contradictory_source_or(None, Int[3], Int[7], False)]]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs2472def contradictory_branch_none() -> Tensor[[contradictory_branch(None, Int[7])]]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs2476def conditional_literal_local_true() -> Tensor[conditional_literal_local_tuple(True)]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs2477def conditional_literal_local_false() -> Tensor[conditional_literal_local_tuple(False)]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs3866def defaulted_helper_mismatch(n: Int, k: int) -> Int:CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs3875def inconsistent_helper_branches(n: Int, k: int, first: bool) -> Int:CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs3882def conflicting_branch_return_dimension_first(CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs4220def optional_literal_comparison() -> Tensor[[optional_lt_literal(Int[2], Int[7], Int[8])]]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs4221def reversed_optional_literal_comparison() -> Tensor[[literal_lt_optional(Int[2], Int[7], Int[8])]]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs4222def optional_parameter_comparison() -> Tensor[[optional_lt_parameter(Int[2], Int[3], Int[7], Int[8])]]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs4557def subtract_overflow_reversed() -> Tensor[[flag_subtract(9223372036854775807, -1)]]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs4559def multiply_overflow_reversed() -> Tensor[[flag_multiply(2, 9223372036854775807)]]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs4561def modulo_min_by_negative_one() -> Tensor[[flag_modulo(-9223372036854775808, -1)]]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs6060def bare_concrete_tuple_splat(CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs6070def bare_concrete_inttuple_splat(CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs6075def bare_splat_matches_elements_spelling(CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs9791def einsum_implicit_kernel_ir() -> int:CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs9796def einsum_malformed_kernel_ir() -> int:CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs9801def einsum_repeated_output_kernel_ir() -> int:CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs9806def einsum_ellipsis_masked_kernel_ir() -> int:CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs9811def einsum_ellipsis_kernel_ir() -> int:CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs9944def einsum_implicit_kernel_fn() -> int: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs9947def einsum_malformed_kernel_fn() -> int: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs9950def einsum_repeated_output_kernel_fn() -> int: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs9953def einsum_ellipsis_masked_kernel_fn() -> int: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs9956def einsum_ellipsis_kernel_fn() -> int: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs11322def check_overflow_floor_divide(x: Tensor[[2, 3]]) -> Tensor[overflow_floor_divide(IntTuple[2, 3])]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs11323def check_overflow_negative_literal(x: Tensor[[2, 3]]) -> Tensor[overflow_negative_literal(IntTuple[2, 3])]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs11326def check_invalid_right_operand(x: Tensor[[2, 3]]) -> Tensor[invalid_right_operand_after_overflow(IntTuple[2, 3])]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs11327def check_unknown_modulo_zero(x: Tensor[[2, 3]]) -> Tensor[unknown_modulo_zero(IntTuple[2, 3], int)]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs11333def check_unknown_before_invalid(x: Tensor[[2, 3]]) -> Tensor[unknown_before_invalid(IntTuple[2, 3], int)]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs11334def check_known_before_invalid(x: Tensor[[2, 3]]) -> Tensor[known_before_invalid(IntTuple[2, 3])]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs11335def check_invalid_before_unknown(x: Tensor[[2, 3]]) -> Tensor[invalid_before_unknown(IntTuple[2, 3], int)]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs11336def check_false_before_invalid(x: Tensor[[2, 3]]) -> Tensor[false_before_invalid(IntTuple[2, 3], IntTuple[1])]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs13087def narrowed_optional_to_required(shape: IntTuple, mode: str | None) -> IntTuple:CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs13093def narrowed_value_to_optional(shape: IntTuple, mode: str | None) -> IntTuple:CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs13099def inferred_optional_to_required(CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs13131def apply_narrowed_flag_arithmetic() -> Tensor[[narrowed_flag_arithmetic_to_int_helper(2, Int[7])]]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs13136def apply_narrowed_optional_to_required() -> Tensor[narrowed_optional_to_required(IntTuple[2, 3], "keep")]: ...CODE
LOW⚡pyrefly/lib/test/shape_dsl.rs13137def apply_narrowed_value_to_optional() -> Tensor[narrowed_value_to_optional(IntTuple[2, 3], "keep")]: ...CODE
LOWpyrefly/lib/test/shape_dsl.rs786def second_string_is_not_a_docstring(x: Int) -> Int:CODE
LOWpyrefly/lib/test/shape_dsl.rs792def nested_string_is_not_a_docstring(x: Int) -> Int:CODE
LOWpyrefly/lib/test/shape_dsl.rs1397def gradual_claim_must_be_true(x: Array[[2, 3], int]) -> None:CODE
LOWpyrefly/lib/test/shape_dsl.rs1459def explicit_class_non_shape_arg(bad: Box[list[int]]) -> None: # E: Tensor shape dimensions must be integer literals, sCODE
LOWpyrefly/lib/test/shape_dsl.rs1647def nested_concrete_tuple_carrier(CODE
LOWpyrefly/lib/test/shape_dsl.rs1652def nested_unbounded_tuple_carrier(CODE
LOWpyrefly/lib/test/shape_dsl.rs1699def shapeful_unbounded_middle(CODE
LOWpyrefly/lib/test/shape_dsl.rs2091def check_accumulated_upper_bound(CODE
LOWpyrefly/lib/test/shape_dsl.rs2434def conditional_literal_local_tuple(choose: bool) -> IntTuple:CODE
LOWpyrefly/lib/test/shape_dsl.rs2439def arithmetic_literal_local_tuple(_unused: Int) -> IntTuple:CODE
LOWpyrefly/lib/test/shape_dsl.rs2663def branch_narrowing_does_not_leak(CODE
LOWpyrefly/lib/test/shape_dsl.rs2834def deferred_to_int_or_optional(CODE
LOWpyrefly/lib/test/shape_dsl.rs2870def deferred_flag_to_wider_flag(CODE
1124 more matches not shown…
Decorative Section Separators330 hits · 998 pts
SeverityFileLineSnippetContext
MEDIUMpyrefly/lib/test/shape_dsl.rs10316 // ── Recursion-safety tests ────────────────────────────────────────────────────COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py36# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py38# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py112# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py114# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py135# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py137# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py282# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py284# ============================================================================COMMENT
MEDIUM⚡tensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py557# ============================================================================COMMENT
MEDIUM⚡tensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py559# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/bert.py41# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/bert.py43# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/bert.py135# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/bert.py137# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/bert.py230# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/bert.py232# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/bert.py307# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/bert.py309# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/bert.py344# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/bert.py346# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/bert.py393# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/bert.py395# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/bert.py469# ============================================================================COMMENT
MEDIUMtensor-shapes/jax-pyrefly-stubs/examples/bert.py471# ============================================================================COMMENT
MEDIUM…sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py38# ============================================================================COMMENT
MEDIUM…sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py40# ============================================================================COMMENT
MEDIUM…sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py107# ============================================================================COMMENT
MEDIUM…sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py109# ============================================================================COMMENT
MEDIUM…sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py226# ============================================================================COMMENT
MEDIUM…sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py228# ============================================================================COMMENT
MEDIUM…sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py278# ============================================================================COMMENT
MEDIUM…sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py280# ============================================================================COMMENT
MEDIUM…sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py340# ============================================================================COMMENT
MEDIUM…sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py342# ============================================================================COMMENT
MEDIUM…apes/pyrefly-torch-stubs/examples/learning_to_paint.py37# ============================================================================COMMENT
MEDIUM…apes/pyrefly-torch-stubs/examples/learning_to_paint.py39# ============================================================================COMMENT
MEDIUM…apes/pyrefly-torch-stubs/examples/learning_to_paint.py127# ============================================================================COMMENT
MEDIUM…apes/pyrefly-torch-stubs/examples/learning_to_paint.py129# ============================================================================COMMENT
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/drq.py56# ============================================================================COMMENT
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/drq.py58# ============================================================================COMMENT
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/drq.py112# ============================================================================COMMENT
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/drq.py114# ============================================================================COMMENT
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/drq.py184# ============================================================================COMMENT
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/drq.py186# ============================================================================COMMENT
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/drq.py242# ============================================================================COMMENT
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/drq.py244# ============================================================================COMMENT
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/drq.py304# ============================================================================COMMENT
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/drq.py306# ============================================================================COMMENT
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/drq.py518# ============================================================================COMMENT
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/drq.py520# ============================================================================COMMENT
MEDIUM…nsor-shapes/pyrefly-torch-stubs/examples/squeezenet.py136# ----------------------------------------------------------------------------COMMENT
MEDIUM…nsor-shapes/pyrefly-torch-stubs/examples/squeezenet.py138# ----------------------------------------------------------------------------COMMENT
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/tacotron2.py55# ============================================================================COMMENT
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/tacotron2.py57# ============================================================================COMMENT
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/tacotron2.py77# ============================================================================COMMENT
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/tacotron2.py79# ============================================================================COMMENT
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/tacotron2.py122# ============================================================================COMMENT
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/tacotron2.py124# ============================================================================COMMENT
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/tacotron2.py179# ============================================================================COMMENT
270 more matches not shown…
Empty Error Handlers155 hits · 775 pts
SeverityFileLineSnippetContext
HIGHpyrefly/lib/test/attrs/third-party/attr/validators.py651except self.exc_types:CODE
HIGHpyrefly/lib/test/attrs/third-party/attr/_make.py984except ValueError: # noqa: PERF203CODE
HIGH…refly/lib/test/pydantic/third-party/pydantic/fields.py626except KeyError:CODE
HIGHpyrefly/lib/test/pydantic/third-party/pydantic/types.py2121except ValueError:CODE
HIGHpyrefly/lib/test/pydantic/third-party/pydantic/main.py1003except PydanticUndefinedAnnotation:CODE
HIGH…/third-party/pydantic/_internal/_model_construction.py611except (NameError, TypeError):CODE
HIGH…hapes/jax-pyrefly-stubs/test/test_searching_sorting.py37except ValueError:CODE
HIGH…hapes/jax-pyrefly-stubs/test/test_searching_sorting.py64except ValueError:CODE
HIGH…hapes/jax-pyrefly-stubs/test/test_searching_sorting.py89except ValueError:CODE
HIGH…hapes/jax-pyrefly-stubs/test/test_searching_sorting.py140except ValueError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_linalg.py81except (TypeError, ValueError):CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_linalg.py132except TypeError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_linalg.py198except TypeError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_linalg.py261except ValueError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_linalg.py356except ValueError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_linalg.py365except ValueError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_linalg.py373except ValueError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_linalg.py412except ValueError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_linalg.py422except ValueError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_linalg.py430except ValueError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_linalg.py438except TypeError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_linalg.py487except TypeError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_linalg.py495except (TypeError, ValueError):CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_linalg.py503except TypeError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_reductions.py153except ValueError:CODE
HIGH…nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py23except ValueError:CODE
HIGH…nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py33except ValueError:CODE
HIGH…nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py75except ValueError:CODE
HIGH…nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py83except ValueError:CODE
HIGH…nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py92except ValueError:CODE
HIGH…nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py101except ValueError:CODE
HIGH…nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py195except ValueError:CODE
HIGH…nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py204except ValueError:CODE
HIGH…nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py213except ValueError:CODE
HIGH…nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py222except ValueError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_lax.py159except TypeError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_lax.py175except TypeError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_lax.py297except ValueError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_lax.py305except ValueError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_lax.py313except ValueError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_lax.py321except (TypeError, ValueError):CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_lax.py448except ValueError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_lax.py453except ValueError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_reshape.py84except TypeError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_reshape.py97except TypeError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_reshape.py110except TypeError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_reshape.py118except TypeError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_reshape.py131except TypeError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_reshape.py139except TypeError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_reshape.py158except ZeroDivisionError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_reshape.py166except ZeroDivisionError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_creation.py174except ValueError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_creation.py207except ValueError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_creation.py215except ValueError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_indexing.py85except IndexError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_indexing.py139except IndexError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_indexing.py148except (IndexError, TypeError):CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_indexing.py155except IndexError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_indexing.py192except ValueError:CODE
HIGHtensor-shapes/jax-pyrefly-stubs/test/test_indexing.py218except ValueError:CODE
95 more matches not shown…
Over-Commented Block598 hits · 581 pts
SeverityFileLineSnippetContext
LOWpyrefly/bin/main.rs41COMMENT
LOWpyrefly/bin/main.rs61/// that each binary generates completions for its own argument tree under itsCOMMENT
LOWpyrefly/lib/lib.rs1/*COMMENT
LOWpyrefly/lib/embed.rs1/*COMMENT
LOWpyrefly/lib/test/yields.rs181"#,COMMENT
LOWpyrefly/lib/test/contextual.rs961COMMENT
LOWpyrefly/lib/test/natural.rs1/*COMMENT
LOWpyrefly/lib/test/python_env.rs121/// (mirrors `pyrefly_config::environment::venv`'s private candidate list;COMMENT
LOWpyrefly/lib/test/perf.rs141);COMMENT
LOWpyrefly/lib/test/perf.rs241// 1. Check `A <: P1 | P2` — union tries `A <: P1`.COMMENT
LOWpyrefly/lib/test/flow_branching.rs4361);COMMENT
LOWpyrefly/lib/test/incremental.rs1501 i.check(&["main"], &["foo", "bar", "baz", "main"]);COMMENT
LOWpyrefly/lib/test/incremental.rs2381 );COMMENT
LOWpyrefly/lib/test/incremental.rs2561/// When module A re-exports module B's exports (via `from B import *`),COMMENT
LOWpyrefly/lib/test/state.rs221 transactionCOMMENT
LOWpyrefly/lib/test/state.rs1441/// Scenario:COMMENT
LOWpyrefly/lib/test/class_subtyping.rs241 r#"COMMENT
LOWpyrefly/lib/test/attrs/third-party/attr/_compat.py81# This is needed because there is no other (thread-safe) way to pass infoCOMMENT
LOWpyrefly/lib/test/tsp/tsp_interaction/explicit_config.rs21///COMMENT
LOW…refly/lib/test/tsp/tsp_interaction/get_type_queries.rs1461// identifier even when that identifier appears in a call position. The LSPCOMMENT
LOW…refly/lib/test/tsp/tsp_interaction/get_type_queries.rs1601 assert_eq!(COMMENT
LOW…refly/lib/test/tsp/tsp_interaction/get_type_queries.rs1861// ---- Container element / dict value contexts -------------------------COMMENT
LOWpyrefly/lib/test/lsp/code_actions.rs681## Before:COMMENT
LOWpyrefly/lib/test/lsp/code_actions.rs701# ^COMMENT
LOWpyrefly/lib/test/lsp/code_actions.rs761# Title: Insert import: `from io import BytesIO`COMMENT
LOWpyrefly/lib/test/lsp/code_actions.rs781## Before:COMMENT
LOWpyrefly/lib/test/lsp/code_actions.rs1281COMMENT
LOWpyrefly/lib/test/lsp/code_actions.rs1301my_exportCOMMENT
LOWpyrefly/lib/test/lsp/code_actions.rs1321COMMENT
LOWpyrefly/lib/test/lsp/code_actions.rs3661my_func()COMMENT
LOWpyrefly/lib/test/lsp/write_target_type.rs1/*COMMENT
LOW…ly/lib/test/lsp/lsp_interaction/open_file_benchmark.rs1/*COMMENT
LOWpyrefly/lib/test/lsp/lsp_interaction/configuration.rs861// A config with `skip-interpreter-query = true` opts out of interpreter queriesCOMMENT
LOWpyrefly/lib/test/lsp/lsp_interaction/configuration.rs1421/// map onto the new model as:COMMENT
LOW…/lib/test/lsp/lsp_interaction/workspace_diagnostics.rs161 return Some(Ok(()));COMMENT
LOWpyrefly/lib/test/lsp/lsp_interaction/definition.rs581 // `a.b.c.D` -> `a` (line 7, char 0)COMMENT
LOW…b/test/lsp/lsp_interaction/test_files/syntax_errors.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…p/lsp_interaction/test_files/no_config_syntax_error.py1# @nolintCOMMENT
LOW…/lsp_interaction/test_files/unused_ignore_no_config.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…lib/test/lsp/lsp_interaction/test_files/type_errors.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…b/test/lsp/lsp_interaction/test_files/text_document.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWpyrefly/lib/test/lsp/lsp_interaction/test_files/utf.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…interaction/test_files/unused_type_ignore_no_config.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…es/diagnostics_file_in_excludes/type_errors_exclude.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…es/diagnostics_file_in_excludes/type_errors_include.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…on/test_files/imports_builtins/site-packages/typing.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…_party/lib/python3.12/site-packages/third_party_lib.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…n/test_files/safe_delete_file_relative/pkg/__init__.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…on/test_files/package_from_import_noop/pkg/__init__.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…nteraction/test_files/baseline_new_errors/new_error.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…nteraction/test_files/baseline_new_errors/clean_fix.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…eraction/test_files/baseline_unused_type_ignore/bad.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…eraction/test_files/deep_submodule_chain/a/__init__.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…action/test_files/deep_submodule_chain/a/b/__init__.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…erpreter/lib/python3.12/site-packages/custom_module.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…es/safe_delete_file_attribute_import/package/target.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…iles/filtering_stdlib_errors_with_default/pyrefly.toml1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…_errors_with_default/usr/lib/python3.12/stdlib_file.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…action/test_files/baseline_unused_ignore_prune/keep.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…n/test_files/baseline_unused_ignore_prune/clean_fix.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
538 more matches not shown…
Unused Imports761 hits · 545 pts
SeverityFileLineSnippetContext
LOWtest.py12CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/setters.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/validators.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py25CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py26CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py26CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py26CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py28CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py28CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py28CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py28CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py28CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/exceptions.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/converters.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attrs/filters.py3CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py10CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py10CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py10CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py10CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py10CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py11CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py12CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py12CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py13CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py13CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py13CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py13CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py13CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py14CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py14CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py14CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py14CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py14CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py14CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py14CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py14CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py28CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py28CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py28CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py28CODE
LOWpyrefly/lib/test/attrs/third-party/attr/exceptions.py3CODE
701 more matches not shown…
Cross-File Repetition55 hits · 275 pts
SeverityFileLineSnippetContext
HIGHtensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py0layernorm but with an optional bias. generic over normalized dimension size.STRING
HIGH…stubs/examples/runtime/nanogpt_sym_int_var_runnable.py0layernorm but with an optional bias. generic over normalized dimension size.STRING
HIGH…h-stubs/examples/runtime/nanogpt_future_annotations.py0layernorm but with an optional bias. generic over normalized dimension size.STRING
HIGH…xamples/runtime/nanogpt_future_annotations_runnable.py0layernorm but with an optional bias. generic over normalized dimension size.STRING
HIGH…ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py0layernorm but with an optional bias. generic over normalized dimension size.STRING
HIGHtensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py0configuration for gpt model, generic over key dimensionsSTRING
HIGH…stubs/examples/runtime/nanogpt_sym_int_var_runnable.py0configuration for gpt model, generic over key dimensionsSTRING
HIGH…h-stubs/examples/runtime/nanogpt_future_annotations.py0configuration for gpt model, generic over key dimensionsSTRING
HIGH…xamples/runtime/nanogpt_future_annotations_runnable.py0configuration for gpt model, generic over key dimensionsSTRING
HIGH…ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py0configuration for gpt model, generic over key dimensionsSTRING
HIGHtensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py0multi-head causal self-attention. generic over embedding dim, num heads, and block size.STRING
HIGH…stubs/examples/runtime/nanogpt_sym_int_var_runnable.py0multi-head causal self-attention. generic over embedding dim, num heads, and block size.STRING
HIGH…h-stubs/examples/runtime/nanogpt_future_annotations.py0multi-head causal self-attention. generic over embedding dim, num heads, and block size.STRING
HIGH…xamples/runtime/nanogpt_future_annotations_runnable.py0multi-head causal self-attention. generic over embedding dim, num heads, and block size.STRING
HIGH…ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py0multi-head causal self-attention. generic over embedding dim, num heads, and block size.STRING
HIGHtensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py0multi-layer perceptron. generic over embedding dimension.STRING
HIGH…stubs/examples/runtime/nanogpt_sym_int_var_runnable.py0multi-layer perceptron. generic over embedding dimension.STRING
HIGH…h-stubs/examples/runtime/nanogpt_future_annotations.py0multi-layer perceptron. generic over embedding dimension.STRING
HIGH…xamples/runtime/nanogpt_future_annotations_runnable.py0multi-layer perceptron. generic over embedding dimension.STRING
HIGH…ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py0multi-layer perceptron. generic over embedding dimension.STRING
HIGHtensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py0transformer block with self-attention and mlp. generic over embedding dim, num heads, and block size.STRING
HIGH…stubs/examples/runtime/nanogpt_sym_int_var_runnable.py0transformer block with self-attention and mlp. generic over embedding dim, num heads, and block size.STRING
HIGH…h-stubs/examples/runtime/nanogpt_future_annotations.py0transformer block with self-attention and mlp. generic over embedding dim, num heads, and block size.STRING
HIGH…xamples/runtime/nanogpt_future_annotations_runnable.py0transformer block with self-attention and mlp. generic over embedding dim, num heads, and block size.STRING
HIGH…ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py0transformer block with self-attention and mlp. generic over embedding dim, num heads, and block size.STRING
HIGHtensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py0typeddict for gptconfig constructor arguments, generic over key dimensionsSTRING
HIGH…stubs/examples/runtime/nanogpt_sym_int_var_runnable.py0typeddict for gptconfig constructor arguments, generic over key dimensionsSTRING
HIGH…h-stubs/examples/runtime/nanogpt_future_annotations.py0typeddict for gptconfig constructor arguments, generic over key dimensionsSTRING
HIGH…xamples/runtime/nanogpt_future_annotations_runnable.py0typeddict for gptconfig constructor arguments, generic over key dimensionsSTRING
HIGH…ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py0typeddict for gptconfig constructor arguments, generic over key dimensionsSTRING
HIGHtensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py0typeddict defining the structure of gpt transformer modules. generic over key dimensions.STRING
HIGH…stubs/examples/runtime/nanogpt_sym_int_var_runnable.py0typeddict defining the structure of gpt transformer modules. generic over key dimensions.STRING
HIGH…h-stubs/examples/runtime/nanogpt_future_annotations.py0typeddict defining the structure of gpt transformer modules. generic over key dimensions.STRING
HIGH…xamples/runtime/nanogpt_future_annotations_runnable.py0typeddict defining the structure of gpt transformer modules. generic over key dimensions.STRING
HIGH…ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py0typeddict defining the structure of gpt transformer modules. generic over key dimensions.STRING
HIGHtensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py0gpt language model. generic over vocabulary size, block size, embedding dim, num heads, and num layers.STRING
HIGH…stubs/examples/runtime/nanogpt_sym_int_var_runnable.py0gpt language model. generic over vocabulary size, block size, embedding dim, num heads, and num layers.STRING
HIGH…h-stubs/examples/runtime/nanogpt_future_annotations.py0gpt language model. generic over vocabulary size, block size, embedding dim, num heads, and num layers.STRING
HIGH…xamples/runtime/nanogpt_future_annotations_runnable.py0gpt language model. generic over vocabulary size, block size, embedding dim, num heads, and num layers.STRING
HIGH…ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py0gpt language model. generic over vocabulary size, block size, embedding dim, num heads, and num layers.STRING
HIGHtensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py0return the number of parameters in the model. for non-embedding count (default), the position embeddings get subtracted.STRING
HIGH…stubs/examples/runtime/nanogpt_sym_int_var_runnable.py0return the number of parameters in the model. for non-embedding count (default), the position embeddings get subtracted.STRING
HIGH…h-stubs/examples/runtime/nanogpt_future_annotations.py0return the number of parameters in the model. for non-embedding count (default), the position embeddings get subtracted.STRING
HIGH…xamples/runtime/nanogpt_future_annotations_runnable.py0return the number of parameters in the model. for non-embedding count (default), the position embeddings get subtracted.STRING
HIGH…ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py0return the number of parameters in the model. for non-embedding count (default), the position embeddings get subtracted.STRING
HIGHtensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py0estimate model flops utilization (mfu) in units of a100 bfloat16 peak flopsSTRING
HIGH…stubs/examples/runtime/nanogpt_sym_int_var_runnable.py0estimate model flops utilization (mfu) in units of a100 bfloat16 peak flopsSTRING
HIGH…h-stubs/examples/runtime/nanogpt_future_annotations.py0estimate model flops utilization (mfu) in units of a100 bfloat16 peak flopsSTRING
HIGH…xamples/runtime/nanogpt_future_annotations_runnable.py0estimate model flops utilization (mfu) in units of a100 bfloat16 peak flopsSTRING
HIGH…ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py0estimate model flops utilization (mfu) in units of a100 bfloat16 peak flopsSTRING
HIGHtensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py0take a conditioning sequence of indices idx (longtensor of shape (b,t)) and complete the sequence max_new_tokens times, STRING
HIGH…stubs/examples/runtime/nanogpt_sym_int_var_runnable.py0take a conditioning sequence of indices idx (longtensor of shape (b,t)) and complete the sequence max_new_tokens times, STRING
HIGH…h-stubs/examples/runtime/nanogpt_future_annotations.py0take a conditioning sequence of indices idx (longtensor of shape (b,t)) and complete the sequence max_new_tokens times, STRING
HIGH…xamples/runtime/nanogpt_future_annotations_runnable.py0take a conditioning sequence of indices idx (longtensor of shape (b,t)) and complete the sequence max_new_tokens times, STRING
HIGH…ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py0take a conditioning sequence of indices idx (longtensor of shape (b,t)) and complete the sequence max_new_tokens times, STRING
Docstring Block Structure22 hits · 110 pts
SeverityFileLineSnippetContext
HIGHpyrefly/lib/test/attrs/third-party/attr/_make.py580 Create a new instance, based on the first positional argument with *changes* applied. .. tip:: On STRING
HIGHpyrefly/lib/test/attrs/third-party/attr/_make.py1886 Return the tuple of *attrs* attributes for a class. The tuple also allows accessing the fields by their names STRING
HIGHpyrefly/lib/test/attrs/third-party/attr/_make.py1932 Return an ordered dictionary of *attrs* attributes for a class, whose keys are the attribute names. Args: STRING
HIGHpyrefly/lib/test/attrs/third-party/attr/_next_gen.py652 Inspect the class and return its effective build parameters. Warning: This feature is currently **expeSTRING
HIGHpyrefly/lib/test/attrs/third-party/attr/_funcs.py36 Return the *attrs* attribute values of *inst* as a dict. Optionally recurse into other *attrs*-decorated classSTRING
HIGHpyrefly/lib/test/attrs/third-party/attr/_funcs.py239 Return the *attrs* attribute values of *inst* as a tuple. Optionally recurse into other *attrs*-decorated clasSTRING
HIGHpyrefly/lib/test/attrs/third-party/attr/_funcs.py355 Check whether *cls* is a class with *attrs* attributes. Args: cls (type): Class to introspect. RaSTRING
HIGHpyrefly/lib/test/attrs/third-party/attr/_funcs.py383 Copy *inst* and apply *changes*. This is different from `evolve` that applies the changes to the arguments STRING
HIGHpyrefly/lib/test/attrs/third-party/attr/_funcs.py428 Resolve any strings and forward annotations in type annotations. This is only required if you need concrete tySTRING
HIGH…refly/lib/test/pydantic/third-party/pydantic/fields.py298Create a new `FieldInfo` object with the `Field` function. Args: default: The default value for theSTRING
HIGH…refly/lib/test/pydantic/third-party/pydantic/fields.py643Return a new `FieldInfo` instance from a `dataclasses.Field` instance. Args: dc_field: The `dataclaSTRING
HIGH…refly/lib/test/pydantic/third-party/pydantic/fields.py1200!!! abstract "Usage Documentation" [Fields](../concepts/fields.md) Create a field for objects that can be cSTRING
HIGH…refly/lib/test/pydantic/third-party/pydantic/fields.py1492!!! abstract "Usage Documentation" [Private Model Attributes](../concepts/models.md#private-model-attributes) STRING
HIGH…refly/lib/test/pydantic/third-party/pydantic/fields.py1669!!! abstract "Usage Documentation" [The `computed_field` decorator](../concepts/fields.md#the-computed_field-decSTRING
HIGH…y/lib/test/pydantic/third-party/pydantic/root_model.py87Create a new model using the provided root object and update fields set. Args: root: The root objecSTRING
HIGH…/lib/test/pydantic/third-party/pydantic/dataclasses.py113!!! abstract "Usage Documentation" [`dataclasses`](../concepts/dataclasses.md) A decorator used to create aSTRING
HIGHpyrefly/lib/test/pydantic/third-party/pydantic/main.py608Compute the class name for parametrizations of generic classes. This method can be overridden to achieve a custSTRING
HIGHpyrefly/lib/test/pydantic/third-party/pydantic/main.py730Validate a pydantic model instance. Args: obj: The object to validate. strict: Whether STRING
HIGHpyrefly/lib/test/pydantic/third-party/pydantic/main.py774!!! abstract "Usage Documentation" [JSON Parsing](../concepts/json.md#json-parsing) Validate the giSTRING
HIGHpyrefly/lib/test/pydantic/third-party/pydantic/main.py1891!!! abstract "Usage Documentation" [Dynamic Model Creation](../concepts/models.md#dynamic-model-creation) DSTRING
HIGH…/third-party/pydantic/_internal/_model_construction.py481Iterate over the namespace and: * gather private attributes * check for items which look like fields but are notSTRING
HIGH…/third-party/pydantic/_internal/_model_construction.py705Finish building a model class. This logic must be called after class has been created since validation functions muSTRING
Excessive Try-Catch Wrapping93 hits · 104 pts
SeverityFileLineSnippetContext
LOWpyrefly/lib/test/imports.rs528except Exception:CODE
LOWpyrefly/lib/test/imports.rs567except Exception:CODE
LOWpyrefly/lib/test/imports.rs595except Exception:CODE
LOWpyrefly/lib/test/returns.rs162 except Exception:CODE
LOWpyrefly/lib/test/paramspec.rs488 except Exception:CODE
LOWpyrefly/lib/test/attributes.rs4208 except Exception:CODE
LOWpyrefly/lib/test/scope.rs952 except Exception:CODE
LOWpyrefly/lib/test/scope.rs1217 except Exception as e1:CODE
LOWpyrefly/lib/test/scope.rs1225 except Exception as e2:CODE
LOW⚡pyrefly/lib/test/scope.rs1237 except Exception:CODE
LOW⚡pyrefly/lib/test/scope.rs1247 except Exception:CODE
LOWpyrefly/lib/test/scope.rs1263 except Exception:CODE
LOWpyrefly/lib/test/scope.rs1275 except Exception:CODE
MEDIUMpyrefly/lib/test/scope.rs1214def try_except():CODE
MEDIUMpyrefly/lib/test/scope.rs1222def try_except_finally():CODE
MEDIUMpyrefly/lib/test/scope.rs1232def try_except_twice():CODE
MEDIUMpyrefly/lib/test/scope.rs1242def try_except_multiple_finally():CODE
MEDIUMpyrefly/lib/test/scope.rs1258def try_except_else():CODE
MEDIUMpyrefly/lib/test/scope.rs1270def try_except_else_finally():CODE
MEDIUMpyrefly/lib/test/flow_branching.rs1304def as_sibling() -> None:CODE
LOWpyrefly/lib/test/flow_branching.rs1017except Exception as e2:CODE
LOWpyrefly/lib/test/flow_branching.rs1136except Exception: # E: This `except` clause is unreachable, because an earlier clause already catches `BaseException`CODE
LOWpyrefly/lib/test/flow_branching.rs1146except Exception:CODE
LOWpyrefly/lib/test/flow_branching.rs1166except Exception:CODE
LOWpyrefly/lib/test/flow_branching.rs1196except Exception:CODE
LOWpyrefly/lib/test/flow_branching.rs1283 except Exception:CODE
LOWpyrefly/lib/test/flow_branching.rs3796 except Exception:CODE
LOWpyrefly/lib/test/flow_branching.rs3813 except Exception as exc:CODE
LOWpyrefly/lib/test/flow_branching.rs3818 except Exception:CODE
LOWpyrefly/lib/test/calls.rs596 except Exception as e:CODE
LOWpyrefly/lib/test/attrs/third-party/attr/validators.py713 except Exception: # noqa: BLE001, PERF203, S112STRING
LOWpyrefly/lib/test/lsp/folding_ranges.rs266except Exception:CODE
LOWpyrefly/lib/test/lsp/folding_ranges.rs357 except Exception:CODE
LOWpyrefly/lib/test/lsp/semantic_tokens.rs1513except Exception as e:CODE
LOWpyrefly/lib/test/lsp/semantic_tokens.rs2054except Exception as e:CODE
LOWpyrefly/lib/test/lsp/local_find_refs.rs472except Exception:CODE
LOWpyrefly/lib/test/lsp/definition.rs874 except Exception as e:CODE
LOWpyrefly/lib/test/lsp/document_symbols.rs2039 except Exception:CODE
LOW…iles/tests_requiring_config/with_synthetic_bindings.py10except Exception:CODE
LOWpyrefly/lib/report/glean.rs144except Exception as ex:CODE
LOW…ates/tsp_types/protocol_generator/generate_protocol.py240 except Exception as e:CODE
LOW…ates/tsp_types/protocol_generator/generate_protocol.py965 except Exception as e:CODE
LOWcrates/pyrefly_bundled/update.py67 except Exception as e:CODE
MEDIUMtest/sarif/validate_sarif.py45 print("Error: Required packages not installed.")CODE
MEDIUMschemas/validate_schemas.py30 print("Error: Required packages not installed.")CODE
LOWscripts/github_utils.py242 except Exception as e:CODE
LOWscripts/github_utils.py351 except Exception as e:CODE
LOWscripts/github_utils.py540 except Exception as e:CODE
LOWscripts/github_utils.py602 except Exception as e:CODE
MEDIUMscripts/github_utils.py731 print("Error: Repository must be in format owner/repo", file=sys.stderr)STRING
LOWscripts/github_utils.py776 except Exception as e:STRING
LOWscripts/github_utils.py920 except Exception as e:STRING
LOWscripts/compare_typecheckers.py802 except Exception as e:CODE
MEDIUMscripts/generate_release_notes.py653 print(f"Error: Unknown provider '{provider}'.", file=sys.stderr)CODE
MEDIUMscripts/generate_release_notes.py667 print(f"Error: Template file not found: {template_path}", file=sys.stderr)CODE
MEDIUMscripts/generate_release_notes.py673 print(f"Error: Prompt file not found: {prompt_path}", file=sys.stderr)CODE
MEDIUMscripts/generate_release_notes.py811 print("Error: Repository must be in 'owner/repo' format.", file=sys.stderr)CODE
LOWscripts/generate_release_notes.py113 except Exception:CODE
LOWscripts/generate_release_notes.py135 except Exception as e:CODE
LOWscripts/generate_release_notes.py850 except Exception as e:CODE
33 more matches not shown…
Structural Annotation Overuse50 hits · 82 pts
SeverityFileLineSnippetContext
LOWpyrefly/lib/test/lsp/lsp_interaction/notebook_sync.rs297 // Step 1: Delete cell 2COMMENT
LOWpyrefly/lib/test/lsp/lsp_interaction/notebook_sync.rs317 // Step 2: Insert cell 2 at position 0COMMENT
LOWpyrefly/lib/report/pysa/module_index.rs142 // Step 1: Build short_identifier_to_function_ref and short_identifier_to_setter_refCOMMENT
LOWpyrefly/lib/report/pysa/module_index.rs181 // Step 2: Build func_def_to_function_ref by iterating allCOMMENT
LOWpyrefly/lib/report/pysa/module_index.rs197 // Step 3: Build class field mappings.COMMENT
LOWpyrefly/lib/alt/overload.rs334 // Step 1: eliminate overloads that accept an incompatible number of arguments.COMMENT
LOWpyrefly/lib/alt/overload.rs368 // Step 2: evaluate each overload as a regular (non-overloaded) call.COMMENT
LOWpyrefly/lib/alt/overload.rs383 // Step 3: argument type expansion. When the mypy-compatibility flag is on, we alsoCOMMENT
LOWpyrefly/lib/alt/overload.rs920 // Step 4: if any arguments supply an unknown number of args and at least oneCOMMENT
LOWpyrefly/lib/alt/overload.rs954 // Step 5: for each overload, check whether it's the case that all possibleCOMMENT
LOWpyrefly/lib/alt/overload.rs1099 // Step 6: does there exist a return type that is consistent with all materializations ofCOMMENT
LOW⚡pyrefly/lib/alt/solve.rs1779 // Step 1: Expand non-recursive UntypedAlias(Ref(...)) nodes byCOMMENT
LOW⚡pyrefly/lib/alt/solve.rs1789 // Step 2: Check for cyclic self-references after expansion.COMMENT
LOW⚡pyrefly/lib/alt/solve.rs2535 // Step 1: Compute raw TypeInfo (Vars unpinned)COMMENT
LOW⚡pyrefly/lib/alt/solve.rs2538 // Step 2: Check whether the type actually contains partial types thatCOMMENT
LOW⚡pyrefly/lib/alt/solve.rs2557 // Step 3: Store partial answer that the first-use solve will read and potentially pin.COMMENT
LOW⚡pyrefly/lib/alt/solve.rs2560 // Step 4: Evaluate the first-use; throw away both the result and errors, this isCOMMENT
LOW⚡pyrefly/lib/alt/solve.rs2570 // Step 5: Remove the partial answer, we've finished with it, and proceed toCOMMENT
LOWpyrefly/lib/alt/solve.rs1802 // Step 3: Extract type parameters from the (now expanded) body.COMMENT
LOW…s/skills/add-shape-types-to-torch-model/style_guide.md113### Step 1: Identify the degrees of freedomCOMMENT
LOW…s/skills/add-shape-types-to-torch-model/style_guide.md136### Step 2: Type the constructorCOMMENT
LOW…s/skills/add-shape-types-to-torch-model/style_guide.md150### Step 3: Type the forward signatureCOMMENT
LOW…-shapes/skills/add-shape-types-to-torch-model/SKILL.md301## Step 1: Inventory parametersCOMMENT
LOW…-shapes/skills/add-shape-types-to-torch-model/SKILL.md388## Step 2: Type the constructorCOMMENT
LOW…-shapes/skills/add-shape-types-to-torch-model/SKILL.md496## Step 3: Probe the forwardCOMMENT
LOW…-shapes/skills/add-shape-types-to-torch-model/SKILL.md532## Step 4: Diagnose and contain tracking boundariesCOMMENT
LOW…-shapes/skills/add-shape-types-to-torch-model/SKILL.md634## Step 5: Write forward and assert_typeCOMMENT
LOW…-shapes/skills/add-shape-types-to-torch-model/SKILL.md710## Step 6: Post-module checkCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs684 // Step 2: Flatten to list of termsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs690 // Step 3: Combine like terms by extracting coefficientsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs700 // Step 4: Rebuild terms, filtering out zero coefficientsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs722 // Step 5: Sort terms by canonical orderCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs725 // Step 6: Build resultCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs819 // Step 1: Recursively canonicalize operandsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs823 // Step 2: Flatten to list of factorsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs828 // Step 3: Check for zeroCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs836 // Step 4: Separate literals from non-literalsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs936 // Step 6: Sort factors by canonical orderCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs939 // Step 7: Add literal coefficient if not 1COMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs946 // Step 8: Build resultCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs972 // Step 1: Canonicalize operandsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs976 // Step 2: Check if numerator is a division - if so, flatten only when theCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs1142 // Step 1: Separate literals from non-literalsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs1146 // Step 2: Apply GCD to literalsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs1156 // Step 3: Find and remove structurally equal non-literal factorsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs1169 // Step 4: Rebuild numeratorCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs1175 // Step 5: Rebuild denominatorCOMMENT
LOWcrates/pyrefly_types/src/dimension.rs673 // Step 1: Recursively canonicalize operandsCOMMENT
LOWcrates/pyrefly_types/src/dimension.rs896 // Step 5: Distributive law — coeff * (a + b) → coeff*a + coeff*bCOMMENT
LOWcrates/pyrefly_types/src/dimension.rs987 // Step 4: Apply simplificationsCOMMENT
Verbosity Indicators43 hits · 72 pts
SeverityFileLineSnippetContext
LOWpyrefly/lib/test/lsp/lsp_interaction/notebook_sync.rs297 // Step 1: Delete cell 2COMMENT
LOWpyrefly/lib/test/lsp/lsp_interaction/notebook_sync.rs317 // Step 2: Insert cell 2 at position 0COMMENT
LOWpyrefly/lib/report/pysa/module_index.rs142 // Step 1: Build short_identifier_to_function_ref and short_identifier_to_setter_refCOMMENT
LOWpyrefly/lib/report/pysa/module_index.rs181 // Step 2: Build func_def_to_function_ref by iterating allCOMMENT
LOWpyrefly/lib/report/pysa/module_index.rs197 // Step 3: Build class field mappings.COMMENT
LOWpyrefly/lib/alt/attr.rs2458 // `module_name` could refer to a package, in which case we need to check ifCOMMENT
LOWpyrefly/lib/alt/overload.rs334 // Step 1: eliminate overloads that accept an incompatible number of arguments.COMMENT
LOWpyrefly/lib/alt/overload.rs368 // Step 2: evaluate each overload as a regular (non-overloaded) call.COMMENT
LOWpyrefly/lib/alt/overload.rs383 // Step 3: argument type expansion. When the mypy-compatibility flag is on, we alsoCOMMENT
LOWpyrefly/lib/alt/overload.rs920 // Step 4: if any arguments supply an unknown number of args and at least oneCOMMENT
LOWpyrefly/lib/alt/overload.rs954 // Step 5: for each overload, check whether it's the case that all possibleCOMMENT
LOWpyrefly/lib/alt/overload.rs1099 // Step 6: does there exist a return type that is consistent with all materializations ofCOMMENT
LOW⚡pyrefly/lib/alt/solve.rs1779 // Step 1: Expand non-recursive UntypedAlias(Ref(...)) nodes byCOMMENT
LOW⚡pyrefly/lib/alt/solve.rs1789 // Step 2: Check for cyclic self-references after expansion.COMMENT
LOW⚡pyrefly/lib/alt/solve.rs2535 // Step 1: Compute raw TypeInfo (Vars unpinned)COMMENT
LOW⚡pyrefly/lib/alt/solve.rs2538 // Step 2: Check whether the type actually contains partial types thatCOMMENT
LOW⚡pyrefly/lib/alt/solve.rs2557 // Step 3: Store partial answer that the first-use solve will read and potentially pin.COMMENT
LOW⚡pyrefly/lib/alt/solve.rs2560 // Step 4: Evaluate the first-use; throw away both the result and errors, this isCOMMENT
LOW⚡pyrefly/lib/alt/solve.rs2570 // Step 5: Remove the partial answer, we've finished with it, and proceed toCOMMENT
LOWpyrefly/lib/alt/solve.rs1802 // Step 3: Extract type parameters from the (now expanded) body.COMMENT
LOWpyrefly/lib/alt/special_calls.rs621 // We need to check if there is any field with unassignable types, since the `isinstance` check COMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs684 // Step 2: Flatten to list of termsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs690 // Step 3: Combine like terms by extracting coefficientsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs700 // Step 4: Rebuild terms, filtering out zero coefficientsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs722 // Step 5: Sort terms by canonical orderCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs725 // Step 6: Build resultCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs819 // Step 1: Recursively canonicalize operandsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs823 // Step 2: Flatten to list of factorsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs828 // Step 3: Check for zeroCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs836 // Step 4: Separate literals from non-literalsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs936 // Step 6: Sort factors by canonical orderCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs939 // Step 7: Add literal coefficient if not 1COMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs946 // Step 8: Build resultCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs972 // Step 1: Canonicalize operandsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs976 // Step 2: Check if numerator is a division - if so, flatten only when theCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs1142 // Step 1: Separate literals from non-literalsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs1146 // Step 2: Apply GCD to literalsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs1156 // Step 3: Find and remove structurally equal non-literal factorsCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs1169 // Step 4: Rebuild numeratorCOMMENT
LOW⚡crates/pyrefly_types/src/dimension.rs1175 // Step 5: Rebuild denominatorCOMMENT
LOWcrates/pyrefly_types/src/dimension.rs673 // Step 1: Recursively canonicalize operandsCOMMENT
LOWcrates/pyrefly_types/src/dimension.rs896 // Step 5: Distributive law — coeff * (a + b) → coeff*a + coeff*bCOMMENT
LOWcrates/pyrefly_types/src/dimension.rs987 // Step 4: Apply simplificationsCOMMENT
Deep Nesting64 hits · 52 pts
SeverityFileLineSnippetContext
LOWpyrefly/lib/test/attrs/third-party/attr/_make.py379CODE
LOWpyrefly/lib/test/attrs/third-party/attr/_make.py1319CODE
LOWpyrefly/lib/test/attrs/third-party/attr/_make.py2143CODE
LOWpyrefly/lib/test/attrs/third-party/attr/_make.py666CODE
LOWpyrefly/lib/test/attrs/third-party/attr/_make.py813CODE
LOWpyrefly/lib/test/attrs/third-party/attr/_make.py849CODE
LOWpyrefly/lib/test/attrs/third-party/attr/_make.py1435CODE
LOWpyrefly/lib/test/attrs/third-party/attr/_funcs.py28CODE
LOWpyrefly/lib/test/attrs/third-party/attr/_funcs.py154CODE
LOWpyrefly/lib/test/attrs/third-party/attr/_funcs.py232CODE
LOW…refly/lib/test/pydantic/third-party/pydantic/fields.py490CODE
LOW…refly/lib/test/pydantic/third-party/pydantic/fields.py574CODE
LOW…refly/lib/test/pydantic/third-party/pydantic/fields.py738CODE
LOW…refly/lib/test/pydantic/third-party/pydantic/fields.py843CODE
LOWpyrefly/lib/test/pydantic/third-party/pydantic/types.py1017CODE
LOWpyrefly/lib/test/pydantic/third-party/pydantic/main.py335CODE
LOWpyrefly/lib/test/pydantic/third-party/pydantic/main.py424CODE
LOWpyrefly/lib/test/pydantic/third-party/pydantic/main.py1514CODE
LOWpyrefly/lib/test/pydantic/third-party/pydantic/main.py1134CODE
LOW…/third-party/pydantic/_internal/_model_construction.py474CODE
LOW…/third-party/pydantic/_internal/_model_construction.py108CODE
LOWtensor-shapes/stub_coverage.py156CODE
LOWtensor-shapes/stub_coverage.py191CODE
LOWtensor-shapes/stub_coverage.py218CODE
LOWtensor-shapes/stub_coverage.py285CODE
LOWtensor-shapes/stub_coverage.py339CODE
LOWtensor-shapes/test_stub_coverage.py34CODE
LOWtensor-shapes/test_stub_coverage.py265CODE
LOWtensor-shapes/test_stub_coverage.py306CODE
LOWtensor-shapes/test_stub_coverage.py347CODE
LOWtensor-shapes/test_stub_coverage.py468CODE
LOW…refly-shape-extensions/shape_extensions/torchscript.py47CODE
LOW…refly-shape-extensions/shape_extensions/torchscript.py69CODE
LOW…refly-shape-extensions/shape_extensions/torchscript.py87CODE
LOW…ates/tsp_types/protocol_generator/generate_protocol.py62CODE
LOW…ates/tsp_types/protocol_generator/generate_protocol.py299CODE
LOW…ates/tsp_types/protocol_generator/generate_protocol.py403CODE
LOW…ates/tsp_types/protocol_generator/generate_protocol.py547CODE
LOW…ates/tsp_types/protocol_generator/generate_protocol.py726CODE
LOWscripts/github_utils.py87CODE
LOWscripts/github_utils.py562CODE
LOWscripts/github_utils.py784CODE
LOWscripts/github_utils.py356CODE
LOWscripts/compare_typecheckers.py214CODE
LOWscripts/compare_typecheckers.py495CODE
LOWscripts/generate_release_notes.py460CODE
LOWscripts/benchmark/lsp_memory_benchmark.py101CODE
LOWscripts/benchmark/lsp_memory_benchmark.py793CODE
LOWscripts/benchmark/lsp_memory_benchmark.py252CODE
LOWscripts/benchmark/typecheck_benchmark.py303CODE
LOWscripts/benchmark/typecheck_benchmark.py526CODE
LOWscripts/benchmark/typecheck_benchmark.py837CODE
LOWscripts/benchmark/lsp_benchmark.py189CODE
LOWscripts/benchmark/lsp_benchmark.py384CODE
LOWscripts/benchmark/lsp_benchmark.py1024CODE
LOWscripts/benchmark/lsp_benchmark.py1055CODE
LOWscripts/benchmark/lsp_benchmark.py1405CODE
LOWscripts/benchmark/lsp_benchmark.py523CODE
LOWscripts/benchmark/lsp_benchmark.py701CODE
LOWconformance/conformance_output.py130CODE
4 more matches not shown…
Fake / Example Data38 hits · 42 pts
SeverityFileLineSnippetContext
LOWpyrefly/lib/test/abstract_methods.rs461 """placeholder"""STRING
LOW⚡pyrefly/lib/test/literal.rs513Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs513Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs514Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs514Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs515Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs515Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs516Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs516Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs517Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs517Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs518Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs518Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs519Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs519Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs520Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs520Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs521Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs521Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs522Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs522Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs523Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs523Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs524Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs524Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs525Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs525Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs526Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs526Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs527Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW⚡pyrefly/lib/test/literal.rs527Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOW…refly/lib/test/pydantic/third-party/pydantic/config.py78 user = User(name='John Doe', age=20) # (2)!STRING
LOW…refly/lib/test/pydantic/third-party/pydantic/config.py80 #> name='John Doe'STRING
LOW…refly/lib/test/pydantic/third-party/pydantic/config.py260 user = User(name='John Doe') # (1)!STRING
LOW…refly/lib/test/pydantic/third-party/pydantic/config.py262 #> name='John Doe'STRING
LOW…refly/lib/test/pydantic/third-party/pydantic/config.py279 user = User(name='John Doe') # (2)!STRING
LOW…refly/lib/test/pydantic/third-party/pydantic/config.py281 #> name='John Doe'STRING
LOWcrates/pyrefly_types/src/types.rs1728 /// Collect "placeholder" vars - vars that are placeholders for a not-yet-solved type, likeCOMMENT
AI Structural Patterns38 hits · 36 pts
SeverityFileLineSnippetContext
LOWpyrefly/lib/test/attrs/third-party/attr/_make.py106CODE
LOWpyrefly/lib/test/attrs/third-party/attr/_make.py1319CODE
LOWpyrefly/lib/test/attrs/third-party/attr/_make.py2483CODE
LOWpyrefly/lib/test/attrs/third-party/attr/_next_gen.py23CODE
LOWpyrefly/lib/test/attrs/third-party/attr/_next_gen.py437CODE
LOW…p_interaction/test_files/call_hierarchy_test/caller.py15CODE
LOW…refly/lib/test/pydantic/third-party/pydantic/fields.py927CODE
LOW…refly/lib/test/pydantic/third-party/pydantic/fields.py966CODE
LOW…refly/lib/test/pydantic/third-party/pydantic/fields.py1005CODE
LOW…refly/lib/test/pydantic/third-party/pydantic/fields.py1044CODE
LOW…refly/lib/test/pydantic/third-party/pydantic/fields.py1083CODE
LOW…refly/lib/test/pydantic/third-party/pydantic/fields.py1122CODE
LOW…refly/lib/test/pydantic/third-party/pydantic/fields.py1159CODE
LOW…refly/lib/test/pydantic/third-party/pydantic/fields.py1639CODE
LOW…refly/lib/test/pydantic/third-party/pydantic/fields.py1654CODE
LOWpyrefly/lib/test/pydantic/third-party/pydantic/types.py1041CODE
LOW…y/lib/test/pydantic/third-party/pydantic/root_model.py137CODE
LOW…/lib/test/pydantic/third-party/pydantic/dataclasses.py99CODE
LOW…/lib/test/pydantic/third-party/pydantic/dataclasses.py33CODE
LOW…/lib/test/pydantic/third-party/pydantic/dataclasses.py50CODE
LOW…/lib/test/pydantic/third-party/pydantic/dataclasses.py69CODE
LOW…/lib/test/pydantic/third-party/pydantic/dataclasses.py84CODE
LOWpyrefly/lib/test/pydantic/third-party/pydantic/main.py460CODE
LOWpyrefly/lib/test/pydantic/third-party/pydantic/main.py518CODE
LOWpyrefly/lib/test/pydantic/third-party/pydantic/main.py1458CODE
LOW…sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py223CODE
LOWtensor-shapes/pyrefly-torch-stubs/examples/densenet.py82CODE
LOWtensor-shapes/pyrefly-torch-stubs/examples/stargan.py148CODE
LOWtensor-shapes/pyrefly-torch-stubs/examples/resnet.py54CODE
LOWtensor-shapes/pyrefly-torch-stubs/examples/resnet.py86CODE
LOWtensor-shapes/pyrefly-torch-stubs/examples/apg.py199CODE
LOWtensor-shapes/pyrefly-torch-stubs/examples/apg.py293CODE
LOWtensor-shapes/pyrefly-torch-stubs/examples/gptfast.py584CODE
LOW…stubs/examples/runtime/gptfast_sym_int_var_runnable.py535CODE
LOW…ly-torch-stubs/examples/runtime/gptfast_sym_int_var.py591CODE
LOW…xamples/runtime/gptfast_future_annotations_runnable.py545CODE
LOW…h-stubs/examples/runtime/gptfast_future_annotations.py587CODE
LOWscripts/benchmark/typecheck_benchmark.py718CODE
AI Slop Vocabulary12 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUMpyrefly/lib/test/attrs/attributes.rs289// Checked via construction (not the inferred param type) to stay robust to the separateCOMMENT
LOWpyrefly/lib/test/pydantic/third-party/pydantic/types.py1745 # hence we just use `secret_display`COMMENT
LOWpyrefly/lib/test/pydantic/third-party/pydantic/main.py1288 # early if there are no keys to ignore (we would just return False later on anyway)COMMENT
MEDIUMpyrefly/lib/solver/subset.rs3036 // Pyrefly incremental more robust.COMMENT
MEDIUMpyrefly/lib/state/lsp.rs520 /// downstream logic can utilize the info.COMMENT
MEDIUMpyrefly/lib/alt/answers_solver.rs1562 /// (cycle_start), making it a robust anchor.COMMENT
MEDIUMpyrefly/lib/alt/answers_solver.rs1611 // (cycle_start), making it a more robust anchor.COMMENT
MEDIUMpyrefly/lib/alt/class/dataclass.rs537 // left to the stub, avoiding false positives and staying robust to new `Type` variants.COMMENT
LOW⚡…pes/pyrefly-torch-stubs/examples/speech_transformer.py365# so we skip adding it and just pass through. The original adds it to src_seq.COMMENT
MEDIUMcrates/pyrefly_lsp_test/src/object_model.rs1389 #[expect(clippy::new_without_default, reason = "test harness constructor")]COMMENT
MEDIUMcrates/pyrefly_lsp_test/src/object_model.rs1459 #[expect(clippy::new_without_default, reason = "test harness constructor")]COMMENT
MEDIUMconformance/third_party/generics_variance.py10# > To facilitate the declaration of container types where covariant orCOMMENT
Modern Structural Boilerplate30 hits · 26 pts
SeverityFileLineSnippetContext
LOWpyrefly/lib/test/attrs/third-party/attrs/__init__.py31__all__ = [CODE
LOWpyrefly/lib/test/attrs/third-party/attr/validators.py19__all__ = [CODE
LOWpyrefly/lib/test/attrs/third-party/attr/__init__.py43__all__ = [CODE
LOWpyrefly/lib/test/attrs/third-party/attr/converters.py13__all__ = [CODE
LOWpyrefly/lib/test/attrs/third-party/attr/_config.py3__all__ = ["get_run_validators", "set_run_validators"]CODE
LOW…ction/test_files/prefer_pyi_when_missing_in_py/main.py8__all__ = ["bar"]CODE
LOW…p_interaction/test_files/unused_import_all/__init__.py8__all__ = ["Foo", "Baz"]CODE
LOW…rt_outside_search_path/site_packages/mypkg/__init__.py8__all__ = ["MyClass"]CODE
LOW…ng_config/workspace_symbol_prefer_non_init/__init__.py12__all__ = [CODE
LOW…equiring_config/workspace_symbol_multibyte/__init__.py12__all__ = ["workspace_symbol_multibyte_repro"]CODE
LOW…action/test_files/dunder_all_submodule/pkg/__init__.py6__all__ = ["sub"]CODE
LOW…est/pydantic/third-party/pydantic_settings/__init__.py7__all__ = ["BaseSettings"]CODE
LOW…refly/lib/test/pydantic/third-party/pydantic/fields.py1569 def _update_from_config(self, config_wrapper: ConfigWrapper, name: str) -> None:CODE
LOWpyrefly/lib/test/pydantic/third-party/pydantic/main.py1777 def update_forward_refs(cls, **localns: Any) -> None: # noqa: D102CODE
LOW…/third-party/pydantic/_internal/_model_construction.py627def set_default_hash_func(cls: type[BaseModel], bases: tuple[type[Any], ...]) -> None:CODE
LOW…/third-party/pydantic/_internal/_model_construction.py818def set_deprecated_descriptors(cls: type[BaseModel]) -> None:CODE
LOWpyrefly/lib/test/stubgen/dunder_all/input.py8__all__ = ["public_func", "PublicClass", "PUBLIC_VAR", "Vector"]CODE
LOWpyrefly/lib/test/stubgen/dunder_all_reexport/input.py8__all__ = ["op"]CODE
LOW⚡tensor-shapes/test_stub_coverage.py147__all__ = []STRING
LOW⚡tensor-shapes/test_stub_coverage.py179__all__ = ["Previous"]STRING
LOW⚡tensor-shapes/test_stub_coverage.py180__all__ = ["Current"]STRING
LOW⚡tensor-shapes/test_stub_coverage.py219__all__ = ["Hidden"]STRING
LOWtensor-shapes/test_stub_coverage.py84__all__ = ["Exported"]STRING
LOWtensor-shapes/test_stub_coverage.py122__all__ = ["Alias"]STRING
LOW…/pyrefly-shape-extensions/shape_extensions/__init__.py39__all__ = [CODE
LOW…refly-shape-extensions/shape_extensions/torchscript.py33__all__ = [*_shape_extensions_all, "remove_shape_types_from_torch_sources"]CODE
LOWtensor-shapes/pyrefly-torch-stubs/examples/bert.py284 def set_mask(self, mask: Tensor) -> None:CODE
LOWconformance/conformance_output.py48def update_file(file_path: str, content: str) -> None:CODE
LOWconformance/third_party/typeddicts_readonly_update.py33def update_a(a: A, b: B) -> None:CODE
LOWconformance/third_party/generics_variance_inference.py145 def set_value(self, value: T) -> None:CODE
Self-Referential Comments9 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUM…test/lsp/lsp_interaction/test_files/error_docs_test.py7# This file contains various error types to test that documentation links are properly includedCOMMENT
MEDIUMpyrefly/lib/test/pydantic/third-party/pydantic/types.py984 # Create an instanceSTRING
MEDIUM…y/lib/test/pydantic/third-party/pydantic/root_model.py152 """This method is included just to get a more accurate return type for type checkers.STRING
MEDIUM…/third-party/pydantic/_internal/_model_construction.py443 """This function is meant to behave like a BaseModel method to initialise private attributes.STRING
MEDIUMtensor-shapes/pyrefly-torch-stubs/examples/dlrm.py372 # Create a standard EmbeddingBag and prepare for quantizationCOMMENT
MEDIUM…ates/tsp_types/protocol_generator/generate_protocol.py508 # Create an alias for the result type that matches the response nameCOMMENT
MEDIUMschemas/test-pyrefly.toml2# This file contains examples of all configuration optionsCOMMENT
MEDIUMscripts/benchmark/lsp_benchmark.py846 # Create a small probe fileCOMMENT
MEDIUM.github/workflows/publish_github_release.yml7# Creating the release will in turn trigger publish_upload_binaries.ymlCOMMENT
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALpyrefly/lib/state/state.rs3298 if self.transaction.data.state.run_count.load(Ordering::SeqCst) <= 1 {CODE
CRITICAL.github/workflows/automation_pr_state.yml459 && context.payload.comment.user.login.toLowerCase() === authorCODE
Modern AI Meta-Vocabulary5 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMrelease_notes/release-notes-v1.0.0.md103- **Pyrefly \+ AI agents** — Pyrefly's speed makes it a natural verification step in agentic workflows. See our guide onCODE
MEDIUMwebsite/blog/2026-05-12-v1.0.md143We have already published a guide on [adding Pyrefly to your agentic loop](https://pyrefly.org/blog/pyrefly-agentic-loopCODE
MEDIUM⚡scripts/generate_release_notes.py218# gpt-4o has a 128k-token context window and `call_openai` reserves 16384 for output.COMMENT
MEDIUM⚡scripts/benchmark/typecheck_benchmark.py714# Main benchmark orchestrationCOMMENT
MEDIUM⚡scripts/benchmark/lsp_benchmark.py950# Multi-package orchestration helpersCOMMENT
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHconformance/third_party/directives_version_platform.py66 this_raises = val10 # E?: `val10` is undefined, but support for `os.name` is optionalCODE
HIGHconformance/third_party/directives_version_platform.py75 this_raises = val13 # E?: `val13` is undefined, but support for `os.name` is optionalCODE
Slop Phrases4 hits · 9 pts
SeverityFileLineSnippetContext
LOWpyrefly/lib/test/generic_restrictions.rs1841# The below is a real error that we need to make sure to catch.COMMENT
LOWpyrefly/lib/test/flow_branching.rs928// Regression test to ensure we don't forget to create loop recursionCOMMENT
MEDIUMpyrefly/lib/test/attrs/third-party/attr/_funcs.py496 # Return the class so you can use it as a decorator too.COMMENT
MEDIUMconformance/third_party/generics_type_erasure.py25# > you can use an annotation to force the type of the variable, e.g.:COMMENT
Redundant / Tautological Comments6 hits · 8 pts
SeverityFileLineSnippetContext
LOWpyrefly/lib/test/attrs/third-party/attr/_make.py698 # Check if the pre init method has more arguments than just `self`COMMENT
LOW…s/skills/add-shape-types-to-torch-model/verify_port.sh99 # Check if the line has a comment explaining the root causeCOMMENT
LOW…ates/tsp_types/protocol_generator/generate_protocol.py51 # Check if it's a version string like "0.1.0"COMMENT
LOWwebsite/scripts/audit_and_fix_vulnerabilities.sh20# Check if there are vulnerabilitiesCOMMENT
LOWscripts/github_utils.py53 # Check if username ends with [bot]COMMENT
LOWscripts/benchmark/lsp_benchmark.py1464 # Open the file on each serverCOMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHpyrefly/lib/alt/call.rs3231 // log a name-not-found error, but we also assert/reveal the type as requested.COMMENT
Overly Generic Function Names7 hits · 7 pts
SeverityFileLineSnippetContext
LOW…lsp_interaction/test_files/code_lens/main_and_tests.py9def helper():CODE
LOW…action/test_files/prefixed_with_underscore/_private.py7def my_function():CODE
LOW…p_interaction/test_files/call_hierarchy_test/callee.py7def my_function():CODE
LOW…components/landing-page/PerformanceComparisonChart.tsx128function getData(project: ProjectValue): TypeCheckerData[] {CODE
LOWconformance/third_party/literals_parameterizations.py56def my_function(x: Literal[1 + 2]) -> int: # ECODE
LOWconformance/third_party/literals_literalstring.py23def my_function(literal_string: LiteralString) -> LiteralString:CODE
LOWconformance/third_party/generics_scoping.py67 def do_something(self, x: S) -> S: # OKCODE
Dead Code3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMconformance/third_party/annotations_generators.py140CODE
MEDIUMconformance/third_party/annotations_generators.py145CODE
MEDIUMconformance/third_party/annotations_generators.py190CODE
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHwebsite/src/sandbox/generateSandboxUrl.ts33 'def function(value: object | None = None) -> object:\n if value is None:\n return None\n eCODE