Repository Analysis

pydantic/monty

A minimal, secure Python interpreter written in Rust for use by AI

11.0 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of pydantic/monty, a Rust project with 7,879 GitHub stars. SynthScan v2.0 examined 187,168 lines of code across 963 source files, recording 1777 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 11.0 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

11.0
Adjusted Score
11.0
Raw Score
100%
Time Factor
2026-07-11
Last Push
7.9K
Stars
Rust
Language
187.2K
Lines of Code
963
Files
1.8K
Pattern Hits
2026-07-14
Scan Date
0.02
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 20MEDIUM 202LOW 1555

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

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

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block848 hits · 814 pts
SeverityFileLineSnippetContext
LOWCargo.toml81# recently (re)assigned code points.COMMENT
LOWcrates/monty-cpython/tests/stdio_session.rs1//! Drives the CPython child over an in-memory transport that plays the parent:COMMENT
LOWcrates/monty-cpython/tests/pep_723.rs21COMMENT
LOWcrates/monty-cpython/src/session.rs1//! The protocol state machine: turns `pb::ParentRequest`s into `pb::ChildEvent`sCOMMENT
LOWcrates/monty-cpython/src/runner.py1import astCOMMENT
LOWcrates/monty-cpython/src/traceback.rs1//! Rebuilding a Monty traceback from an embedded-CPython exception.COMMENT
LOWcrates/monty-cpython/src/traceback.rs21COMMENT
LOWcrates/monty-cpython/src/transport.rs21};COMMENT
LOWcrates/monty-cpython/src/install.rs1//! Installing third-party Python packages into a session's virtualenv with `uv`.COMMENT
LOWcrates/monty-cpython/src/install.rs41COMMENT
LOWcrates/monty-cpython/src/pep_723.rs1//! Extracting PEP 723 inline script-metadata dependencies from fed code.COMMENT
LOWcrates/monty-cpython/src/pyexec.rs1//! Running fed snippets in embedded CPython, and the namespace the sandbox runsCOMMENT
LOWcrates/monty-cpython/src/pyexec.rs101///COMMENT
LOWcrates/monty-cpython/src/pyexec.rs281/// A proxy for a host **function**, returned by [`SandboxGlobals::__missing__`] whenCOMMENT
LOWcrates/monty-proto/tests/differential.rs1//! Differential tests proving the hand-written `WireObject` codecCOMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs1// @generated by `make generate-proto` from proto/monty/v1/monty.proto — DO NOT EDIT.COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs61 #[prost(message, tag = "14")]COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs81 BuiltinFunction(::prost::alloc::string::String),COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs121#[derive(Clone, PartialEq, ::prost::Message)]COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs161 #[prost(uint32, tag = "2")]COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs181#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs201#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs221#[derive(Clone, PartialEq, ::prost::Message)]COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs241pub struct Function {COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs261pub struct RaisedException {COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs281 #[prost(oneof = "exc_data::Kind", tags = "1, 2")]COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs301 #[prost(string, tag = "1")]COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs321 #[prost(bytes, tag = "2")]COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs361 pub start: ::core::option::Option<CodeLoc>,COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs381pub struct ResourceLimits {COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs401 /// Host-native directory path.COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs421 /// The call returned this value.COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs481/// Configures the REPL session this child will serve until `Reset`, sent onceCOMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs501 /// deployed in lockstep, so a mismatch is a hard, fail-fast error ratherCOMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs541 /// The name resolves to this value.COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs561/// Restores state produced by `Dump`. Valid only from no session. IfCOMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs581#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs601 /// executing bytecode — never while suspended waiting on the parent or idleCOMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs661/// when `method_call` is true — the instance is then the first arg). AnswerCOMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs681/// NOTE: an OsCall re-announced after `Load` carries only `call_id` andCOMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs701/// Suspension: the sandbox read an undefined name — typically probing whetherCOMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs721}COMMENT
LOWcrates/monty-proto/tests/oracle/monty.v1.rs741 #[prost(bytes = "vec", tag = "1")]COMMENT
LOWcrates/monty-proto/src/requirement.rs1//! Validation for Python package requirement strings carried by the protocol.COMMENT
LOWcrates/monty-proto/src/worker.rs1//! The transport-agnostic Monty protocol-child state machine.COMMENT
LOWcrates/monty-proto/src/worker.rs41/// payload]` where tag 0 is a `MontyRepl` (idle session) and tag 1 aCOMMENT
LOWcrates/monty-proto/src/worker.rs61/// transport.COMMENT
LOWcrates/monty-proto/src/worker.rs121COMMENT
LOWcrates/monty-proto/src/worker.rs181enum SessionState {COMMENT
LOWcrates/monty-proto/src/worker.rs201 pending_snippet: Option<String>,COMMENT
LOWcrates/monty-proto/src/worker.rs241/// Drive it by reading framed [`pb::ParentRequest`]s from the host transportCOMMENT
LOWcrates/monty-proto/src/worker.rs301 };COMMENT
LOWcrates/monty-proto/src/worker.rs361 let mut event = fatal_error_event(message);COMMENT
LOWcrates/monty-proto/src/frame.rs1//! Length-prefixed framing for protocol messages over byte streams.COMMENT
LOWcrates/monty-proto/src/frame.rs21COMMENT
LOWcrates/monty-proto/src/frame.rs41/// single per-element value is transient at any moment. The host *peak* isCOMMENT
LOWcrates/monty-proto/src/wire.rs1//! Hand-written [`prost::Message`] implementation for [`MontyObject`].COMMENT
LOWcrates/monty-proto/src/wire.rs101 }COMMENT
LOWcrates/monty-proto/src/wire.rs1221COMMENT
LOWcrates/monty-proto/src/wire.rs1241///COMMENT
788 more matches not shown…
Decorative Section Separators183 hits · 500 pts
SeverityFileLineSnippetContext
MEDIUMcrates/monty/test_cases/args__macro_errors.py20# =====================================================================COMMENT
MEDIUMcrates/monty/test_cases/args__macro_errors.py22# =====================================================================COMMENT
MEDIUMcrates/monty/test_cases/args__macro_errors.py197# =====================================================================COMMENT
MEDIUMcrates/monty/test_cases/args__macro_errors.py199# =====================================================================COMMENT
MEDIUMcrates/monty/test_cases/args__macro_errors.py296# =====================================================================COMMENT
MEDIUMcrates/monty/test_cases/args__macro_errors.py298# =====================================================================COMMENT
MEDIUMcrates/monty/test_cases/args__macro_errors.py354# =====================================================================COMMENT
MEDIUMcrates/monty/test_cases/args__macro_errors.py356# =====================================================================COMMENT
MEDIUMcrates/monty/test_cases/args__macro_errors.py389# =====================================================================COMMENT
MEDIUMcrates/monty/test_cases/args__macro_errors.py391# =====================================================================COMMENT
MEDIUMcrates/monty/test_cases/function__kwargs_unpacking.py71# ============================================================COMMENT
MEDIUMcrates/monty/test_cases/function__kwargs_unpacking.py73# ============================================================COMMENT
MEDIUMcrates/monty/test_cases/function__kwargs_unpacking.py126# ============================================================COMMENT
MEDIUMcrates/monty/test_cases/function__kwargs_unpacking.py128# ============================================================COMMENT
MEDIUMcrates/monty/test_cases/mount_fs__errors.py12# ============================================================================COMMENT
MEDIUMcrates/monty/test_cases/mount_fs__errors.py14# ============================================================================COMMENT
MEDIUMcrates/monty/test_cases/mount_fs__errors.py53# ============================================================================COMMENT
MEDIUMcrates/monty/test_cases/mount_fs__errors.py55# ============================================================================COMMENT
MEDIUMcrates/monty/test_cases/mount_fs__errors.py175# ============================================================================COMMENT
MEDIUMcrates/monty/test_cases/mount_fs__errors.py177# ============================================================================COMMENT
MEDIUMcrates/monty/test_cases/mount_fs__errors.py233# ============================================================================COMMENT
MEDIUMcrates/monty/test_cases/mount_fs__errors.py235# ============================================================================COMMENT
MEDIUMcrates/monty/test_cases/mount_fs__errors.py286# ============================================================================COMMENT
MEDIUMcrates/monty/test_cases/mount_fs__errors.py288# ============================================================================COMMENT
MEDIUMcrates/monty/test_cases/mount_fs__errors.py310# ============================================================================COMMENT
MEDIUMcrates/monty/test_cases/mount_fs__errors.py312# ============================================================================COMMENT
MEDIUMcrates/monty/test_cases/mount_fs__errors.py327# ============================================================================COMMENT
MEDIUMcrates/monty/test_cases/mount_fs__errors.py329# ============================================================================COMMENT
MEDIUMcrates/monty/test_cases/mount_fs__errors.py343# ============================================================================COMMENT
MEDIUMcrates/monty/test_cases/mount_fs__errors.py345# ============================================================================COMMENT
MEDIUMcrates/monty/test_cases/mount_fs__errors.py414# ============================================================================COMMENT
MEDIUMcrates/monty/test_cases/mount_fs__errors.py416# ============================================================================COMMENT
MEDIUM…ates/monty/test_cases/method__args_kwargs_unpacking.py126# ============================================================COMMENT
MEDIUM…ates/monty/test_cases/method__args_kwargs_unpacking.py128# ============================================================COMMENT
MEDIUM…ates/monty/test_cases/method__args_kwargs_unpacking.py223# ============================================================COMMENT
MEDIUM…ates/monty/test_cases/method__args_kwargs_unpacking.py225# ============================================================COMMENT
MEDIUMcrates/monty/test_cases/math__module.py1271# ==========================================================COMMENT
MEDIUMcrates/monty/test_cases/math__module.py1273# ==========================================================COMMENT
MEDIUMcrates/monty-python/tests/test_os_access_raw.py206# =============================================================================COMMENT
MEDIUMcrates/monty-python/tests/test_os_access_raw.py208# =============================================================================COMMENT
MEDIUMcrates/monty-python/tests/test_os_access_raw.py409# =============================================================================STRING
MEDIUMcrates/monty-python/tests/test_os_access_raw.py411# =============================================================================STRING
MEDIUMcrates/monty-python/tests/test_os_access_raw.py461# =============================================================================STRING
MEDIUMcrates/monty-python/tests/test_os_access_raw.py463# =============================================================================STRING
MEDIUMcrates/monty-python/tests/test_os_access_raw.py500# =============================================================================STRING
MEDIUMcrates/monty-python/tests/test_os_access_raw.py502# =============================================================================STRING
MEDIUMcrates/monty-python/tests/test_os_access_raw.py570# =============================================================================STRING
MEDIUMcrates/monty-python/tests/test_os_access_raw.py572# =============================================================================STRING
MEDIUMcrates/monty-python/tests/test_os_access.py81# =============================================================================COMMENT
MEDIUMcrates/monty-python/tests/test_os_access.py83# =============================================================================COMMENT
MEDIUMcrates/monty-python/tests/test_os_access.py238# =============================================================================COMMENT
MEDIUMcrates/monty-python/tests/test_os_access.py240# =============================================================================COMMENT
MEDIUMcrates/monty-python/tests/test_os_access.py303# =============================================================================COMMENT
MEDIUMcrates/monty-python/tests/test_os_access.py305# =============================================================================COMMENT
MEDIUMcrates/monty-python/tests/test_os_access.py360# =============================================================================COMMENT
MEDIUMcrates/monty-python/tests/test_os_access.py362# =============================================================================COMMENT
MEDIUMcrates/monty-python/tests/test_os_access.py389# =============================================================================COMMENT
MEDIUMcrates/monty-python/tests/test_os_access.py391# =============================================================================COMMENT
MEDIUMcrates/monty-python/tests/test_os_access.py633# =============================================================================COMMENT
MEDIUMcrates/monty-python/tests/test_os_access.py635# =============================================================================COMMENT
123 more matches not shown…
Hyper-Verbose Identifiers577 hits · 457 pts
SeverityFileLineSnippetContext
LOWcrates/monty/test_cases/closure__multi_hop_capture.py74def nonlocal_through_pass_through():CODE
LOW…ates/monty/test_cases/global__error_assigned_before.py37def from_import_as_then_global():CODE
LOW…ates/monty/test_cases/global__error_assigned_before.py53def nested_def_read_then_global():CODE
LOWcrates/monty/test_cases/import__local_scope.py41def test_aliased_import_local():CODE
LOWcrates/monty/test_cases/module__dunders.py18def module_name_from_function():CODE
LOWcrates/monty/test_cases/lambda__all.py138def test_inner_lambda_capture():CODE
LOWcrates/monty/test_cases/try_except__all.py151def finally_return_overrides_handler_exc():CODE
LOWcrates/monty/test_cases/try_except__all.py179def finally_return_overrides_else_exc():CODE
LOWcrates/monty/test_cases/try_except__all.py610def _return_from_except_then_bare_raise_in_finally() -> None:CODE
LOWcrates/monty/test_cases/try_except__all.py630def _return_from_doubly_nested_except() -> None:CODE
LOWcrates/monty/test_cases/try_except__all.py653def _returns_from_except_no_finally() -> str:CODE
LOWcrates/monty/test_cases/try_except__all.py720def _callee_raises_and_handles():CODE
LOWcrates/monty/test_cases/try_except__all.py745def _return_through_inner_finally() -> str:CODE
LOWcrates/monty/test_cases/try_except__all.py787def _return_through_two_finallys() -> str:CODE
LOWcrates/monty/test_cases/list__ops.py498def _make_list_unpack_closure():CODE
LOWcrates/monty-python/tests/test_type_check.py136def test_type_check_default_allows_run_with_inputs(pool: Monty):CODE
LOWcrates/monty-python/tests/test_type_check.py145def test_monty_typing_error_is_monty_error_subclass(tc_session: MontySession):CODE
LOWcrates/monty-python/tests/test_type_check.py154def test_monty_typing_error_caught_as_monty_error(tc_session: MontySession):CODE
LOWcrates/monty-python/tests/test_type_check.py160def test_monty_typing_error_repr(tc_session: MontySession):CODE
LOWcrates/monty-python/tests/test_type_check.py343def test_type_check_accumulated_function(tc_session: MontySession):CODE
LOWcrates/monty-python/tests/test_type_check.py420def test_type_check_function_define_then_call(tc_session: MontySession):CODE
LOWcrates/monty-python/tests/test_type_check.py565def test_type_check_stubs_and_accumulated_together(pool: Monty):CODE
LOWcrates/monty-python/tests/test_type_check.py27def test_type_check_no_errors(tc_session: MontySession):CODE
LOWcrates/monty-python/tests/test_type_check.py32def test_type_check_with_errors(tc_session: MontySession):CODE
LOWcrates/monty-python/tests/test_type_check.py64def test_type_check_stubs_not_leaked_to_later_session(pool: Monty):CODE
LOWcrates/monty-python/tests/test_type_check.py195def test_type_check_stubs_with_external_function(pool: Monty):CODE
LOWcrates/monty-python/tests/test_type_check.py543def test_type_check_function_calling_prior_function(tc_session: MontySession):CODE
LOWcrates/monty-python/tests/test_type_check.py636def test_skip_type_check_does_not_accumulate(tc_session: MontySession):CODE
LOWcrates/monty-python/tests/test_type_check.py129def test_type_check_disabled_by_default(pool: Monty):STRING
LOWcrates/monty-python/tests/test_type_check.py337def test_type_check_accumulated(tc_session: MontySession):STRING
LOWcrates/monty-python/tests/test_type_check.py352def test_type_check_accumulated_catches_type_mismatch(tc_session: MontySession):STRING
LOWcrates/monty-python/tests/test_type_check.py412def test_type_check_multiple_snippets_sequence(tc_session: MontySession):STRING
LOWcrates/monty-python/tests/test_type_check.py429def test_type_check_function_define_then_call_wrong_type(tc_session: MontySession):STRING
LOWcrates/monty-python/tests/test_type_check.py556def test_type_check_variable_used_across_many_snippets(tc_session: MontySession):STRING
LOWcrates/monty-python/tests/test_type_check.py50def test_type_check_no_cross_session_state_leak(pool: Monty):STRING
LOWcrates/monty-python/tests/test_type_check.py82def test_type_check_function_return_type(tc_session: MontySession):STRING
LOWcrates/monty-python/tests/test_type_check.py103def test_type_check_undefined_variable(tc_session: MontySession):STRING
LOWcrates/monty-python/tests/test_type_check.py118def test_type_check_valid_function(tc_session: MontySession):STRING
LOWcrates/monty-python/tests/test_type_check.py178def test_monty_typing_error_display_matches_str(tc_session: MontySession):STRING
LOWcrates/monty-python/tests/test_type_check.py209def test_type_check_stubs_wrong_arg_type(pool: Monty):STRING
LOWcrates/monty-python/tests/test_type_check.py236def test_type_check_stubs_invalid(pool: Monty):STRING
LOWcrates/monty-python/tests/test_type_check.py255def test_type_check_stubs_without_trailing_newline(pool: Monty):STRING
LOWcrates/monty-python/tests/test_type_check.py370def test_type_check_line_numbers(tc_session: MontySession):STRING
LOWcrates/monty-python/tests/test_type_check.py390def test_type_check_line_numbers_multiline(tc_session: MontySession):STRING
LOWcrates/monty-python/tests/test_type_check.py455def test_type_check_function_return_type_used(tc_session: MontySession):STRING
LOWcrates/monty-python/tests/test_type_check.py479def test_type_check_redefine_function(tc_session: MontySession):STRING
LOWcrates/monty-python/tests/test_type_check.py495def test_type_check_redefine_function_then_call_later(tc_session: MontySession):STRING
LOWcrates/monty-python/tests/test_type_check.py533def test_type_check_redefine_variable_type(tc_session: MontySession):STRING
LOWcrates/monty-python/tests/test_type_check.py587def test_type_check_multiple_functions_interacting(tc_session: MontySession):STRING
LOWcrates/monty-python/tests/test_type_check.py604def test_type_check_script_name(pool: Monty):STRING
LOWcrates/monty-python/tests/test_type_check.py654def test_type_check_runtime_error_does_not_pollute_state(tc_session: MontySession):STRING
LOWcrates/monty-python/tests/test_external_async.py18async def test_async_external_function_raises_surfaces_as_monty_runtime_error():CODE
LOWcrates/monty-python/tests/test_external_async.py33async def test_async_external_function_return_lone_surrogate_catchable_inside_monty():CODE
LOWcrates/monty-python/tests/test_external_async.py51async def test_async_external_function_return_unconvertible_catchable_inside_monty():STRING
LOWcrates/monty-python/tests/test_external_async.py69async def test_async_external_lookup_name_conversion_error_discards_session():STRING
LOWcrates/monty-python/tests/test_os_access_raw.py211def test_abstract_filesystem_exists(monty_run: RunMonty):CODE
LOWcrates/monty-python/tests/test_os_access_raw.py221def test_abstract_filesystem_exists_missing(monty_run: RunMonty):CODE
LOWcrates/monty-python/tests/test_os_access_raw.py230def test_abstract_os_date_today(monty_run: RunMonty):CODE
LOWcrates/monty-python/tests/test_os_access_raw.py239def test_abstract_os_datetime_now_with_timezone(monty_run: RunMonty):CODE
LOWcrates/monty-python/tests/test_os_access_raw.py343def test_abstract_filesystem_read_text_missing(monty_run: RunMonty):CODE
517 more matches not shown…
Unused Imports66 hits · 62 pts
SeverityFileLineSnippetContext
LOWcrates/monty/test_cases/import__star_error.py2CODE
LOWcrates/monty/test_cases/mount_fs__ops.py3CODE
LOW…ates/monty/test_cases/global__error_assigned_before.py20CODE
LOW…ates/monty/test_cases/global__error_assigned_before.py26CODE
LOW…ates/monty/test_cases/global__error_assigned_before.py32CODE
LOW…ates/monty/test_cases/global__error_assigned_before.py38CODE
LOW…tes/monty/test_cases/import__error_module_not_found.py1CODE
LOW…onty/test_cases/import__runtime_error_when_executed.py6CODE
LOWcrates/monty/test_cases/import__error_cannot_import.py1CODE
LOW…s/monty/test_cases/import__relative_no_module_error.py1CODE
LOWcrates/monty/test_cases/import__type_checking_guard.py7CODE
LOWcrates/monty/test_cases/import__type_checking_guard.py8CODE
LOWcrates/monty/test_cases/import__type_checking_guard.py17CODE
LOWcrates/monty/test_cases/import__type_checking_guard.py27CODE
LOWcrates/monty/test_cases/import__type_checking_guard.py35CODE
LOWcrates/monty/test_cases/import__relative_error.py1CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py1CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py8CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py8CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py8CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py8CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py8CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py8CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py8CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py8CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py8CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py8CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py8CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py8CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py8CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py8CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py8CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py8CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py35CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py35CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py35CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py35CODE
LOWcrates/monty-python/python/pydantic_monty/__init__.py35CODE
LOWcrates/monty-python/python/pydantic_monty/os_access.py1CODE
LOWcrates/monty-python/python/pydantic_monty/_binary.py8CODE
LOWcrates/monty-python/tests/test_type_check.py7CODE
LOWcrates/monty-python/tests/test_basic.py1CODE
LOWcrates/monty-python/tests/conftest.py3CODE
LOWcrates/monty-python/tests/test_inputs.py1CODE
LOWcrates/monty-python/tests/test_os_calls.py8CODE
LOWcrates/monty-python/tests/test_print.py3CODE
LOWcrates/monty-python/tests/test_threading.py4CODE
LOWcrates/monty-python/tests/test_async.py7CODE
LOWcrates/monty-python/tests/test_websocket.py11CODE
LOWcrates/monty-python/tests/test_install_dependencies.py9CODE
LOWcrates/monty-python/tests/test_exceptions.py3CODE
LOWcrates/monty-python/tests/test_repl.py3CODE
LOWcrates/monty-python/tests/test_feed_start.py3CODE
LOWcrates/monty-python/tests/test_limits.py3CODE
LOWcrates/monty-python/tests/test_re.py1CODE
LOWcrates/monty-python/tests/test_pool.py3CODE
LOWcrates/monty-python/tests/test_types.py1CODE
LOWexamples/web_scraper/example_code.py1CODE
LOWexamples/web_scraper/browser.py1CODE
LOWexamples/web_scraper/sub_agent.py1CODE
6 more matches not shown…
Docstring Block Structure8 hits · 40 pts
SeverityFileLineSnippetContext
HIGHcrates/monty-python/python/pydantic_monty/os_access.py300Read the contents of a file as text. Args: path: The path to the file, either as a `PurePosixPath` STRING
HIGHcrates/monty-python/python/pydantic_monty/os_access.py320Read the contents of a file as bytes. Args: path: The path to the file, either as a `PurePosixPath`STRING
HIGHcrates/monty-python/python/pydantic_monty/os_access.py340Write text data to a file. Args: path: The path to the file, either as a `PurePosixPath` (from STRING
HIGHcrates/monty-python/python/pydantic_monty/os_access.py361Write binary data to a file. Args: path: The path to the file, either as a `PurePosixPath` (from STRING
HIGHcrates/monty-python/python/pydantic_monty/os_access.py440List the contents of a directory. Args: path: The path to the directory. Returns: STRING
HIGHcrates/monty-python/python/pydantic_monty/os_access.py456Get file status information. Use file_stat(), dir_stat(), or symlink_stat() helpers to create the return value.STRING
HIGHcrates/monty-python/tests/test_os_access_compat.py43Run Python code and return the result. The code can use Path('relative/path') and it will be resolved to the STRING
HIGHexamples/sql_playground/external_functions.py24Execute SQL query on a CSV file using DuckDB. Args: filepath: Path to the CSV file in the virtual fSTRING
Cross-Language Confusion (JS/TS)6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHcrates/monty-js/__test__/print.spec.ts90 print("Count", i)CODE
HIGHcrates/monty-js/__test__/print.spec.ts127 print(f"Hello, {name}!")CODE
HIGHcrates/monty-js/__test__/print.spec.ts141 print("Inside inner function")CODE
HIGHcrates/monty-js/__test__/print.spec.ts155 print(f"Count: {i}")CODE
HIGHcrates/monty-js/__test__/print.spec.ts169print("hello")CODE
HIGHcrates/monty-js/__test__/print.spec.ts170print(func())CODE
Excessive Try-Catch Wrapping19 hits · 27 pts
SeverityFileLineSnippetContext
LOWcrates/monty-cpython/src/runner.py118 except Exception:CODE
LOWcrates/monty/test_cases/try_except__all.py104except Exception:CODE
LOWcrates/monty/test_cases/try_except__all.py449 except Exception:CODE
LOWcrates/monty/test_cases/try_except__all.py460 except Exception:CODE
LOWcrates/monty/test_cases/try_except__all.py470except Exception:CODE
MEDIUMcrates/monty/test_cases/try_except__all.py118def try_return_finally():CODE
LOWcrates/monty-python/exercise.py43 except Exception as e:CODE
LOWcrates/monty-python/tests/test_async.py525except Exception as e:STRING
LOWcrates/monty-python/tests/test_re.py88except Exception as e:CODE
LOWscripts/complete_tests.py61 except Exception as e:CODE
LOWscripts/bench_json.py89 except Exception as e:STRING
MEDIUMscripts/run_traceback.py192 print(f'Error: File not found: {file_path}', file=sys.stderr)CODE
MEDIUMscripts/codecov_diff.py201 print(f'Error: {repository.get("message", "Repository not found")}', file=sys.stderr)CODE
MEDIUMscripts/codecov_diff.py206 print('Error: Pull request not found', file=sys.stderr)CODE
MEDIUMscripts/codecov_diff.py310 print(f'Error: Could not fetch coverage for {org}/{repo} PR #{pr_number}')CODE
MEDIUMscripts/codecov_diff.py398 print('Error: Could not detect repository. Use --org and --repo.', file=sys.stderr)CODE
MEDIUMscripts/codecov_diff.py405 print('Error: Could not detect PR number. Provide PR number as argument.', file=sys.stderr)CODE
LOWscripts/run_nasty_code.py75 except Exception as exc:CODE
MEDIUMscripts/check_imports.py109 print('Error: Found local `use` statements inside function bodies:', file=sys.stderr)CODE
Cross-Language Confusion3 hits · 21 pts
SeverityFileLineSnippetContext
HIGHcrates/monty/test_cases/json__module.py11assert json.loads('{"a": 1, "b": [true, null]}') == {CODE
HIGHcrates/monty/test_cases/json__module.py17assert json.loads(b'{"a":[1,true,null]}') == {'a': [1, True, None]}, 'loads bytes object input'CODE
HIGHcrates/monty-python/tests/test_feed_start.py414 # no entry for `missing` in the (empty) lookup — the name stays undefined,COMMENT
AI Slop Vocabulary6 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMcrates/monty/test_cases/class__name_error.py6# line, which Monty does not implement; the traceback harness strips thatCOMMENT
MEDIUM…ates/monty/test_cases/global__error_assigned_before.py9# the harness verifies through the `# Raise=` comment.COMMENT
MEDIUMcrates/monty/test_cases/async__ext_call.py91# CPython the test harness now returns an already-resolved `asyncio.Future`,COMMENT
MEDIUMcrates/monty/src/value.rs2436/// Wraps a `StaticStrings` variant to leverage its string conversion capabilities.COMMENT
MEDIUMcrates/monty-python/Cargo.toml38# Forwards `monty`'s `test-hooks` feature for test harness builds.COMMENT
LOWscripts/test_fixtures.py307 # For virtual paths, just return as-is (already absolute)COMMENT
Verbosity Indicators10 hits · 16 pts
SeverityFileLineSnippetContext
LOWcrates/monty/tests/fs_security.rs1090 // Step 1: Rename the symlink within the mount.COMMENT
LOWcrates/monty-python/tests/test_async.py867 # Step 1: LLM explores what's availableCOMMENT
LOWcrates/monty-python/tests/test_async.py871 # Step 2: LLM filters by categoryCOMMENT
LOWcrates/monty-python/tests/test_async.py877 # Step 3: LLM computes statsCOMMENT
LOWcrates/monty-python/tests/test_async.py888 # Step 4: LLM also checks electronicsCOMMENT
LOWcrates/monty-python/tests/test_async.py894 # Step 5: LLM builds final summary from accumulated stateCOMMENT
LOWexamples/sql_playground/sandbox_code.py15 # Step 1: Query top 10 customers by total purchasesCOMMENT
LOWexamples/sql_playground/sandbox_code.py27 # Step 2: Get their Twitter handles from the survey dataSTRING
LOWexamples/sql_playground/sandbox_code.py41 # Step 3: Load all tweetsSTRING
LOWexamples/sql_playground/sandbox_code.py47 # Step 4: For each customer, find their tweets and analyze sentimentSTRING
Structural Annotation Overuse10 hits · 16 pts
SeverityFileLineSnippetContext
LOWcrates/monty/tests/fs_security.rs1090 // Step 1: Rename the symlink within the mount.COMMENT
LOWcrates/monty-python/tests/test_async.py867 # Step 1: LLM explores what's availableCOMMENT
LOWcrates/monty-python/tests/test_async.py871 # Step 2: LLM filters by categoryCOMMENT
LOWcrates/monty-python/tests/test_async.py877 # Step 3: LLM computes statsCOMMENT
LOWcrates/monty-python/tests/test_async.py888 # Step 4: LLM also checks electronicsCOMMENT
LOWcrates/monty-python/tests/test_async.py894 # Step 5: LLM builds final summary from accumulated stateCOMMENT
LOWexamples/sql_playground/sandbox_code.py15 # Step 1: Query top 10 customers by total purchasesCOMMENT
LOWexamples/sql_playground/sandbox_code.py27 # Step 2: Get their Twitter handles from the survey dataSTRING
LOWexamples/sql_playground/sandbox_code.py41 # Step 3: Load all tweetsSTRING
LOWexamples/sql_playground/sandbox_code.py47 # Step 4: For each customer, find their tweets and analyze sentimentSTRING
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHcrates/monty-python/tests/test_external_async.py0try: get_str() result = 'no error' except valueerror: result = 'caught' resultSTRING
HIGHcrates/monty-python/tests/test_async.py0try: get_str() result = 'no error' except valueerror: result = 'caught' resultSTRING
HIGHcrates/monty-python/tests/test_external.py0try: get_str() result = 'no error' except valueerror: result = 'caught' resultSTRING
Self-Referential Comments6 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMcrates/monty/test_cases/args__macro_errors.py3# This file is the source of truth for every error path the macro (andCOMMENT
MEDIUMcrates/monty-type-checking/tests/bad_types.py1# This file contains intentional type errors to test the type checker.COMMENT
MEDIUMcrates/monty-python/tests/test_type_check.py572 # Define a helper that references the stub function — type checking passesSTRING
MEDIUMcrates/monty-python/tests/test_os_access_compat.py167 # Create a mock os module with our environCOMMENT
MEDIUMcrates/monty-typeshed/update.py263 # Create a new If node with filtered contentsSTRING
MEDIUMexamples/web_scraper/example_code.py42 # Create a dictionary for this modelCOMMENT
Deep Nesting13 hits · 13 pts
SeverityFileLineSnippetContext
LOW…s/monty/test_cases/loop__break_nested_except_clears.py21CODE
LOW…onty/test_cases/loop__continue_nested_except_clears.py23CODE
LOWcrates/monty/test_cases/try_except__all.py787CODE
LOWcrates/monty-python/exercise.py20CODE
LOWcrates/monty-python/python/pydantic_monty/os_access.py855CODE
LOWcrates/monty-python/python/pydantic_monty/os_access.py972CODE
LOWcrates/monty-typeshed/update.py211CODE
LOWscripts/complete_tests.py19CODE
LOWscripts/bench_json.py68CODE
LOWscripts/run_traceback.py22CODE
LOWscripts/codecov_diff.py236CODE
LOWscripts/codecov_diff.py304CODE
LOWscripts/check_imports.py123CODE
Redundant / Tautological Comments10 hits · 13 pts
SeverityFileLineSnippetContext
LOWcrates/monty/src/builtins/hasattr.rs26/// hasattr(obj, 'x') # Check if obj.x existsCOMMENT
LOWcrates/monty-python/example.py28 # Print output is forwarded to Python stdoutCOMMENT
LOWcrates/monty-python/tests/test_os_access_raw.py105 # Check if directory is emptyCOMMENT
LOWcrates/monty-typeshed/update.py176 # Check if already at the right commitSTRING
LOWexamples/web_scraper/example_code.py53# Print the resultsCOMMENT
LOWexamples/expense_analysis/main.py61 # Check if they exceeded standard budgetSTRING
LOWexamples/expense_analysis/main.py71 # Check if they exceeded their actual budget (standard or custom)STRING
LOWexamples/sql_playground/main.py23# Read file contentsCOMMENT
LOWscripts/test_fixtures.py353 # Check if parent existsCOMMENT
LOWscripts/test_fixtures.py475# Check if already patched (happens when module is re-executed in same interpreter)COMMENT
AI Structural Patterns3 hits · 3 pts
SeverityFileLineSnippetContext
LOW…tes/monty/test_cases/refcount__gather_nested_cancel.py14CODE
LOWcrates/monty-python/tests/conftest.py23CODE
LOWcrates/monty-python/tests/conftest.py60CODE
Modern Structural Boilerplate4 hits · 2 pts
SeverityFileLineSnippetContext
LOWcrates/monty-python/python/pydantic_monty/os_access.py1128 def _update_paths_recursive(self, tree: Tree, old_prefix: PurePosixPath, new_prefix: PurePosixPath) -> None:CODE
LOWcrates/monty-python/tests/test_os_access_compat.py69 def set_environ(self, environ: dict[str, str]) -> None:CODE
LOWcrates/monty-python/tests/test_os_access_compat.py92 def set_environ(self, environ: dict[str, str]) -> None:CODE
LOWcrates/monty-python/tests/test_os_access_compat.py147 def set_environ(self, environ: dict[str, str]) -> None:CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpyproject.toml47# make sure to use relative durations:COMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWcrates/monty/test_cases/async__ext_call.py96async def helper(future):CODE