AI Slop Code RIsk Monitor

strukto-ai/mirage

The World's First Virtual Terminal for AI Agents

19.0 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for strukto-ai/mirage, a TypeScript project with 3,682 GitHub stars. SynthScan examined 1,831,737 lines of code across 10063 source files, recording 26997 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 19.0 (Elevated 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.

19.0
Adjusted Signal
19.0
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
3.7K
Stars
TypeScript
Language
1.8M
Lines of Code
10.1K
Files
27.0K
Pattern Hits
2026-10-12
Scan Date
0.12
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 49.2/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 17.2/100 · LOW

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

Agent Over-Engineering Ratio 40.0/100 · MEDIUM

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

PR Review Velocity Impact 60.8/100 · HIGH

Which changes need focused human review? 26997 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 1225MEDIUM 586LOW 25186

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 26997 distinct pattern matches across 21 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 Identifiers14831 hits · 15574 pts
SeverityFileLineSnippetContext
LOWpython/tests/test_types_fingerprint.py18def test_file_stat_has_fingerprint_field():CODE
LOWpython/tests/test_types_fingerprint.py28def test_file_stat_fingerprint_defaults_none():CODE
LOWpython/tests/test_lua_parity.py28def test_every_lua_script_exists_in_both_languages():CODE
LOWpython/tests/test_lua_parity.py40def test_lua_basenames_are_unique_within_each_tree():CODE
LOWpython/tests/test_lua_parity.py52def test_each_lua_pair_is_byte_identical():CODE
LOWpython/tests/test_filestat_split.py10def test_content_is_rejected_on_a_non_file_kind(kind):CODE
LOWpython/tests/test_tests_mirror_sources.py80def test_tests_declare_no_packages():CODE
LOWpython/tests/test_tests_mirror_sources.py98def test_every_test_directory_mirrors_a_source_package():CODE
LOWpython/tests/test_tests_mirror_sources.py112def test_no_stale_directory_exemption():CODE
LOWpython/tests/test_tests_mirror_sources.py125def test_module_mirror_coverage_holds_the_baseline():CODE
LOWpython/tests/test_nested_functions_are_closures.py90def test_nested_functions_capture_enclosing_state():CODE
LOW⚡python/tests/test_path_prefix_boundary.py61def test_mount_prefix_round_trips(mount, child):CODE
LOW⚡python/tests/test_path_prefix_boundary.py69def test_a_child_is_under_its_mount(mount, child):CODE
LOW⚡python/tests/test_path_prefix_boundary.py76def test_a_lookalike_sibling_is_not_under_the_mount(mount, child):CODE
LOW⚡python/tests/test_path_prefix_boundary.py84def test_event_helpers_lift_onto_the_mount(mount, child):CODE
LOWpython/tests/test_path_prefix_boundary.py112def test_evictions_that_drop_a_listing_reach_the_real_key(mount, child, kind):CODE
LOWpython/tests/test_path_prefix_boundary.py133def test_a_write_drops_the_parent_listing_at_the_real_key(mount, child):CODE
LOWpython/tests/test_path_prefix_boundary.py148def test_a_subtree_eviction_reaches_nested_listings(mount, child):CODE
LOWpython/tests/test_path_prefix_boundary.py160def test_the_watcher_frames_a_lookalike_child_correctly(mount, child):CODE
LOWpython/tests/test_commit_sha_parity.py56def test_python_and_typescript_commit_sha_give_the_same_answer(sample):CODE
LOWpython/tests/test_init.py39def test_authoring_surface_is_stable():CODE
LOW⚡python/tests/test_types.py50def test_aggr_none_inputs_is_none():CODE
LOW⚡python/tests/test_types.py55def test_aggr_keeps_single_limit():CODE
LOW⚡python/tests/test_types.py62def test_aggr_takes_smallest_positive_timeout():CODE
LOW⚡python/tests/test_types.py70def test_aggr_nonpositive_timeout_is_unbounded():CODE
LOW⚡python/tests/test_types.py77def test_aggr_takes_smallest_caps():CODE
LOW⚡python/tests/test_types.py85def test_aggr_error_beats_truncate():CODE
LOW⚡python/tests/test_types.py92def test_aggr_all_truncate_stays_truncate():CODE
LOW⚡python/tests/test_types.py99def test_every_field_declares_an_aggr_rule():CODE
LOW⚡python/tests/test_types.py106def test_pathspec_requires_vfs_path():CODE
LOW⚡python/tests/test_types.py111def test_pathspec_raw_path_kept_when_given():CODE
LOW⚡python/tests/test_types.py121def test_pathspec_raw_path_defaults_to_virtual():CODE
LOW⚡python/tests/test_types.py126def test_word_text_passes_strings_through():CODE
LOW⚡python/tests/test_types.py130def test_word_text_renders_paths_as_typed():CODE
LOW⚡python/tests/test_types.py140def test_pathspec_dir_trims_vfs_path():CODE
LOW⚡python/tests/test_types.py223def test_pathspec_from_str_path_defaults_to_root_mounted():CODE
LOW⚡python/tests/test_types.py229def test_pathspec_from_str_path_explicit_vfs_path():CODE
LOW⚡python/tests/test_types.py234def test_parse_mount_mode_words_and_aliases():CODE
LOW⚡python/tests/test_types.py242def test_parse_mount_mode_rejects_bit_style_forms():CODE
LOWpython/tests/test_types.py153def test_pathspec_dir_at_mount_root():CODE
LOWpython/tests/test_types.py202def test_pathspec_from_str_path_resolves_user_spelling(CODE
LOWpython/tests/test_types.py254def test_read_spec_defaults_to_bounded_at_the_index_ttl():CODE
LOWpython/tests/test_types.py260def test_read_spec_carries_a_bound_under_fresh_too():CODE
LOWpython/tests/test_types.py271def test_cache_facts_is_frozen():CODE
LOWpython/tests/test_types.py301def test_derived_paths_preserve_or_reset_the_base_walk(CODE
LOWpython/tests/test_types.py313def test_parent_retains_spelled_ancestors():CODE
LOWpython/tests/vfs/test_ram_stats.py46def test_callback_receives_events():CODE
LOWpython/tests/vfs/test_ram_stats.py54def test_write_callback_receives_events():CODE
LOW⚡python/tests/vfs/test_registry.py92def test_unknown_vfs_raises_keyerror():CODE
LOW⚡python/tests/vfs/test_registry.py97def test_registry_module_import_is_free_of_vfs_deps():CODE
LOW⚡python/tests/vfs/test_registry.py106def test_build_hf_buckets_vfs():CODE
LOW⚡python/tests/vfs/test_registry.py160def test_register_vfs_class_and_config(clean_registry):CODE
LOW⚡python/tests/vfs/test_registry.py167def test_register_vfs_kwargs_config(clean_registry):CODE
LOW⚡python/tests/vfs/test_registry.py174def test_register_vfs_config_cls_attribute(clean_registry):CODE
LOW⚡python/tests/vfs/test_registry.py180def test_register_vfs_rejects_builtin_shadow(clean_registry):CODE
LOW⚡python/tests/vfs/test_registry.py185def test_register_vfs_spec_string(clean_registry):CODE
LOW⚡python/tests/vfs/test_registry.py191def test_colon_reference_builds_without_a_registry(clean_registry):CODE
LOW⚡python/tests/vfs/test_registry.py201def test_colon_reference_uses_the_config_cls_attribute(clean_registry):CODE
LOW⚡python/tests/vfs/test_registry.py208def test_colon_reference_does_not_shadow_a_builtin_name(clean_registry):CODE
LOW⚡python/tests/vfs/test_registry.py213def test_colon_reference_to_a_missing_attribute_raises(clean_registry):CODE
14771 more matches not shown…
Over-Commented Block8055 hits · 7971 pts
SeverityFileLineSnippetContext
LOWruff.toml1# The repository's width since before Ruff formatted it. Ruff's default of 88COMMENT
LOWlicenses/license_template_py.txt1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWlicenses/license_template_ts.txt1// ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWlicenses/update_license.js1// ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/pyproject.toml261# pre-commit hook: the tool still misreports ~200 live symbols here (seeCOMMENT
LOWpython/pyproject.toml321ignore_missing_imports = trueCOMMENT
LOWpython/tests/test_types_fingerprint.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/conftest.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/test_lua_parity.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/test_tests_mirror_sources.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/test_tests_mirror_sources.py41 "end-to-end suites that span the package, so no one source dir owns "COMMENT
LOWpython/tests/test_nested_functions_are_closures.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/test_commit_sha_parity.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/test_init.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/test_types.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/test_ram_stats.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/test_registry.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/test_state_round_trip.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/test_no_blocking_http.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/test_loader.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/test_plugins.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/test_inventory.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/test_command_args.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/test_s3_alias.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/test_ram_store.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/test_listing_version.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/test_freshness.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/test_secrets.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/test_backend_name.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/test_read_range_roster.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/test_read_revalidatable.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/test_base.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/test_call.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/test_testing.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/langfuse/test_find.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/s3/test_s3_stat_dir.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/s3/test_s3_stream.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/s3/test_s3_grep_stream.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/s3/test_s3_stats.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/s3/test_s3.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/discord/test_discord.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/discord/test_functions.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/aliyun/test_aliyun.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/bin/test_bin.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/redis/test_cat.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/redis/test_tail.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/redis/test_ls.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/redis/test_redis_provider.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/redis/test_head.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/redis/test_functions.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/redis/test_glob.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/redis/test_redis_store.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/hf_models/test_hf_models.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/ceph/test_ceph.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/backblaze/test_backblaze.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/onedrive/test_read_fresh.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/hf_spaces/test_hf_spaces.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/digitalocean/test_digitalocean.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/linear/test_prompt.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/vfs/linear/test_linear.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
7995 more matches not shown…
Cross-Language Confusion917 hits · 5636 pts
SeverityFileLineSnippetContext
HIGHpython/tests/vfs/onedrive/test_read_fresh.py34CP = "cp /m/a.txt /r/x && cat /r/x"CODE
HIGH⚡python/tests/vfs/github/test_listing_ttl.py247 ("/gh", "cd /gh && find . -name c.txt", "./docs/c.txt"),CODE
HIGH⚡python/tests/vfs/github/test_listing_ttl.py249 ("/gh", "cd /gh && du -a", "./docs/c.txt"),CODE
HIGH⚡python/tests/vfs/github/test_listing_ttl.py254 ("/gh", "cd /gh/docs && du -a", "./c.txt"),CODE
HIGHpython/tests/vfs/sharepoint/test_read_fresh.py68 pytest.param(True, "cp {v} /r/x && cat /r/x", id="scoped-bytes"),CODE
HIGH⚡python/tests/vfs/disk/test_local.py100 await ws.shell("echo hi > /data/f.txt && chmod 640 /data/f.txt")CODE
HIGHpython/tests/vfs/dev/test_dev.py48 'consume() { ls /dev/fd >/dev/null; hold; cat "$1"; }; 'CODE
HIGH⚡python/tests/core/render/test_json.py53 '"meta":{"n":1,"ok":true,"none":null},"empty":{}}'CODE
HIGHpython/tests/core/render/test_json.py99 value_text({"a": 1.0, "b": [True, None]}) == '{"a":1,"b":[true,null]}'CODE
HIGHpython/tests/core/jq/test_parse.py682 '{"a":1,"b":[1,2,{"c":null}]}',CODE
HIGHpython/tests/core/jq/test_eval.py206 ("error(null)", JqRun([], JqError("null", False))),CODE
HIGHpython/tests/core/jq/test_eval.py289 ("error(null)", True),CODE
HIGH⚡python/tests/shell/test_quoting_coverage.py515 ('x=abc; [[ $x == "a*"* ]] && echo hit || echo miss', b"miss\n"),CODE
HIGH⚡python/tests/shell/test_quoting_coverage.py516 ("x='a*c'; [[ $x == \"a*\"* ]] && echo hit || echo miss", b"hit\n"),CODE
HIGH⚡python/tests/shell/test_quoting_coverage.py517 ('x=aXb; [[ $x == "a"*"b" ]] && echo hit || echo miss', b"hit\n"),CODE
HIGH⚡python/tests/shell/test_quoting_coverage.py518 ('x=ab; [[ $x == "a*" ]] && echo hit || echo miss', b"miss\n"),CODE
HIGH⚡python/tests/shell/test_quoting_coverage.py519 ("x=ab; [[ $x == a* ]] && echo hit || echo miss", b"hit\n"),CODE
HIGH⚡python/tests/shell/test_quoting_coverage.py520 ('x=ab; [[ $x != "a*" ]] && echo hit || echo miss', b"hit\n"),CODE
HIGH⚡python/tests/shell/test_quoting_coverage.py522 "x=$'a\\tb'; [[ $x == $'a\\tb' ]] && echo hit || echo miss",CODE
HIGH⚡python/tests/shell/test_quoting_coverage.py525 ("[[ abc < abd ]] && echo hit || echo miss", b"hit\n"),CODE
HIGHpython/tests/shell/test_node_kind.py29 NodeKind.LIST: "true && false",CODE
HIGH⚡python/tests/shell/test_set_e.py27 out = shell.mirage("set -e; false || echo recovered; echo done")CODE
HIGH⚡python/tests/shell/test_set_e.py32 out = shell.mirage("set -e; false && echo skipped; echo done")CODE
HIGH⚡python/tests/shell/test_set_e.py66 out = shell.mirage("set -e; true && false; echo unreached")CODE
HIGH⚡python/tests/shell/test_set_e.py71 out = shell.mirage("set -e; false || false; echo unreached")CODE
HIGH⚡python/tests/shell/test_arith.py64 assert evaluate_arith("3 && 4", {}).value == 1CODE
HIGH⚡python/tests/shell/test_arith.py141 ("0 && 1/0", 0),CODE
HIGH⚡python/tests/shell/test_arith.py154 result = evaluate_arith("0 && (x-=1), 1 || x++, 1 ? 2 : x++", {"x": "1"})CODE
HIGH⚡python/tests/shell/test_arith.py390 assert evaluate_arith("1 || v", {}, nounset=True).value == 1CODE
HIGH⚡python/tests/shell/test_arith.py391 assert evaluate_arith("0 && v", {}, nounset=True).value == 0CODE
HIGH⚡python/tests/shell/test_operators.py23 assert shell.mirage("true && echo yes") == shell.native("true && echo yes")CODE
HIGH⚡python/tests/shell/test_operators.py27 assert shell.mirage("false && echo yes") == shell.native(CODE
HIGH⚡python/tests/shell/test_operators.py28 "false && echo yes"CODE
HIGH⚡python/tests/shell/test_operators.py33 assert shell.mirage("true || echo fallback") == shell.native(CODE
HIGH⚡python/tests/shell/test_operators.py34 "true || echo fallback"CODE
HIGH⚡python/tests/shell/test_operators.py39 assert shell.mirage("false || echo fallback") == shell.native(CODE
HIGH⚡python/tests/shell/test_operators.py40 "false || echo fallback"CODE
HIGH⚡python/tests/shell/test_operators.py45 assert shell.mirage("true && echo a || echo b") == shell.native(CODE
HIGH⚡python/tests/shell/test_operators.py45 assert shell.mirage("true && echo a || echo b") == shell.native(CODE
HIGH⚡python/tests/shell/test_operators.py46 "true && echo a || echo b"CODE
HIGH⚡python/tests/shell/test_operators.py46 "true && echo a || echo b"CODE
HIGH⚡python/tests/shell/test_operators.py51 assert shell.mirage("false && echo a || echo b") == shell.native(CODE
HIGH⚡python/tests/shell/test_operators.py51 assert shell.mirage("false && echo a || echo b") == shell.native(CODE
HIGH⚡python/tests/shell/test_operators.py52 "false && echo a || echo b"CODE
HIGH⚡python/tests/shell/test_operators.py52 "false && echo a || echo b"CODE
HIGH⚡python/tests/shell/test_operators.py71 cmd = "true && true && echo all_true"CODE
HIGH⚡python/tests/shell/test_operators.py76 cmd = "false || false || echo last_resort"CODE
HIGH⚡python/tests/shell/test_operators.py81 cmd = "echo a; false && echo b; echo c"CODE
HIGH⚡python/tests/shell/test_operators.py92 m = shell.mirage("grep hello /data/f.txt && echo found")CODE
HIGH⚡python/tests/shell/test_operators.py93 n = shell.native("grep hello f.txt && echo found")CODE
HIGH⚡python/tests/shell/test_operators.py99 m = shell.mirage("grep nope /data/f.txt || echo missing")CODE
HIGH⚡python/tests/shell/test_operators.py100 n = shell.native("grep nope f.txt || echo missing")CODE
HIGH⚡python/tests/shell/test_barrier.py34 cmd_m = "grep -q hello /data/f.txt && echo yes"CODE
HIGH⚡python/tests/shell/test_barrier.py35 cmd_n = "grep -q hello f.txt && echo yes"CODE
HIGH⚡python/tests/shell/test_barrier.py41 cmd_m = "grep -q missing /data/f.txt && echo yes"CODE
HIGH⚡python/tests/shell/test_barrier.py42 cmd_n = "grep -q missing f.txt && echo yes"CODE
HIGH⚡python/tests/shell/test_barrier.py48 cmd_m = "grep -q missing /data/f.txt || echo fallback"CODE
HIGH⚡python/tests/shell/test_barrier.py49 cmd_n = "grep -q missing f.txt || echo fallback"CODE
HIGH⚡python/tests/shell/test_barrier.py78 cmd = "echo a && echo b"CODE
HIGH⚡python/tests/shell/test_barrier.py83 cmd = "echo a || echo b"CODE
857 more matches not shown…
Decorative Section Separators562 hits · 1777 pts
SeverityFileLineSnippetContext
MEDIUMpython/tests/vfs/test_state_round_trip.py27# ── RAM ────────────────────────────────────────────────────────────────COMMENT
MEDIUMpython/tests/vfs/test_state_round_trip.py54# ── Disk ───────────────────────────────────────────────────────────────COMMENT
MEDIUMpython/tests/vfs/test_state_round_trip.py89# ── Redis ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpython/tests/vfs/test_state_round_trip.py129# ── S3 ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMpython/tests/vfs/test_state_round_trip.py177# ── all remote/token VFS: cred redaction matrix ──────────────────COMMENT
MEDIUMpython/tests/vfs/test_state_round_trip.py429# ── database-backed VFS, built through the registry ──────────────COMMENT
MEDIUM⚡python/tests/core/object_store/test_copy.py87# ── the retraction record snapshot capture reads ─────────────────────────COMMENT
MEDIUM⚡python/tests/core/object_store/test_rename.py99# ── the retraction records snapshot capture reads ────────────────────────COMMENT
MEDIUMpython/tests/core/object_store/test_write.py242# ── the backend token the put answered reaches the op record ─────────────COMMENT
MEDIUMpython/tests/core/object_store/test_remove.py163# ── the retraction records snapshot capture reads ────────────────────────COMMENT
MEDIUM⚡python/tests/shell/test_quoting_coverage.py62# ── paths with spaces ──────────────────────────────────────COMMENT
MEDIUM⚡python/tests/shell/test_quoting_coverage.py89# ── paths with special chars ───────────────────────────────COMMENT
MEDIUM⚡python/tests/shell/test_quoting_coverage.py99# ── unicode in paths ───────────────────────────────────────COMMENT
MEDIUM⚡python/tests/shell/test_quoting_coverage.py116# ── env vars in paths ──────────────────────────────────────COMMENT
MEDIUM⚡python/tests/shell/test_quoting_coverage.py142# ── command substitution in args ──────────────────────────COMMENT
MEDIUM⚡python/tests/shell/test_quoting_coverage.py159# ── escaping ───────────────────────────────────────────────COMMENT
MEDIUM⚡python/tests/shell/test_quoting_coverage.py184# ── unquoted backslash escapes (POSIX §2.2.1) ──────────────COMMENT
MEDIUM⚡python/tests/shell/test_quoting_coverage.py222# ── edge cases ─────────────────────────────────────────────COMMENT
MEDIUM⚡python/tests/shell/test_quoting_coverage.py683# ── quoted globs stay literal ──────────────────────────────COMMENT
MEDIUM⚡python/tests/shell/test_quoting_coverage.py768# ── quoting is per character, not per word ─────────────────COMMENT
MEDIUMpython/tests/shell/test_quoting_coverage.py262# ── whitespace between expansions inside double quotes ─────COMMENT
MEDIUMpython/tests/shell/test_quoting_coverage.py300# ── adjacent backtick substitutions ────────────────────────COMMENT
MEDIUMpython/tests/shell/test_quoting_coverage.py337# ── ANSI-C quoting $'...' and locale quoting $"..." ────────COMMENT
MEDIUMpython/tests/shell/test_quoting_coverage.py555# ── a bare $ is a literal word ─────────────────────────────COMMENT
MEDIUMpython/tests/shell/test_quoting_coverage.py576# ── a quoted "$@" splices into the word around it ──────────COMMENT
MEDIUMpython/tests/shell/test_quoting_coverage.py649# ── literal backslashes survive classification ─────────────COMMENT
MEDIUM⚡python/tests/shell/test_helpers.py457# ── expansion nodes ──────────────────────────────COMMENT
MEDIUM⚡python/tests/shell/test_helpers.py525# ── quotes and escapes ──────────────────────────COMMENT
MEDIUM⚡python/tests/shell/test_helpers.py584# ── multi-statement bodies ─────────────────────COMMENT
MEDIUM⚡python/tests/shell/test_helpers.py647# ── redirect target types ──────────────────────COMMENT
MEDIUM⚡python/tests/shell/test_helpers.py1063# ── heredoc operator-line tail ───────────────────COMMENT
MEDIUMpython/tests/shell/test_helpers.py417# ── negated command ──────────────────────────────COMMENT
MEDIUMpython/tests/shell/test_helpers.py427# ── heredoc ──────────────────────────────────────COMMENT
MEDIUMpython/tests/shell/test_helpers.py439# ── process substitution ─────────────────────────COMMENT
MEDIUMpython/tests/shell/test_helpers.py495# ── edge cases ───────────────────────────────────COMMENT
MEDIUMpython/tests/shell/test_helpers.py787# ── python command parsing ─────────────────────COMMENT
MEDIUM⚡python/tests/shell/parse/test_parse.py279# ── heredoc operator lines the grammar cannot hold ───────────────────────COMMENT
MEDIUM⚡python/tests/shell/parse/heredoc/test_body.py180# ── nested order: the layout the parser's source keeps ─────────────────COMMENT
MEDIUMpython/tests/workspace/test_provider_integration.py39# ═══════════════════════════════════════════════COMMENT
MEDIUMpython/tests/workspace/test_provider_integration.py41# ═══════════════════════════════════════════════COMMENT
MEDIUMpython/tests/workspace/test_provider_integration.py117# ═══════════════════════════════════════════════COMMENT
MEDIUMpython/tests/workspace/test_provider_integration.py119# ═══════════════════════════════════════════════COMMENT
MEDIUMpython/tests/workspace/test_provider_integration.py200# ═══════════════════════════════════════════════COMMENT
MEDIUMpython/tests/workspace/test_provider_integration.py202# ═══════════════════════════════════════════════COMMENT
MEDIUM⚡python/tests/workspace/test_mount_root_protection.py68# ════════════════════════════════════════════════════════════════════COMMENT
MEDIUM⚡python/tests/workspace/test_mount_root_protection.py70# ════════════════════════════════════════════════════════════════════COMMENT
MEDIUM⚡python/tests/workspace/test_mount_root_protection.py72# ── rm ─────────────────────────────────────────────COMMENT
MEDIUM⚡python/tests/workspace/test_mount_root_protection.py152# ── mv ─────────────────────────────────────────────COMMENT
MEDIUM⚡python/tests/workspace/test_mount_root_protection.py177# ── mkdir ──────────────────────────────────────────COMMENT
MEDIUM⚡python/tests/workspace/test_mount_root_protection.py211# ── touch ─────────────────────────────────────────COMMENT
MEDIUM⚡python/tests/workspace/test_mount_root_protection.py233# ── ln ────────────────────────────────────────────COMMENT
MEDIUM⚡python/tests/workspace/test_mount_root_protection.py273# ── nested mount as a target ──────────────────────COMMENT
MEDIUM⚡python/tests/workspace/test_mount_root_protection.py306# ════════════════════════════════════════════════════════════════════COMMENT
MEDIUM⚡python/tests/workspace/test_mount_root_protection.py308# ════════════════════════════════════════════════════════════════════COMMENT
MEDIUM⚡python/tests/workspace/test_mount_root_protection.py465# ════════════════════════════════════════════════════════════════════COMMENT
MEDIUM⚡python/tests/workspace/test_mount_root_protection.py469# ════════════════════════════════════════════════════════════════════COMMENT
MEDIUMpython/tests/workspace/test_mount_root_protection.py39# ── fixtures ──────────────────────────────────────COMMENT
MEDIUMpython/tests/workspace/test_mount_root_protection.py449# ── ls / unchanged ────────────────────────────────COMMENT
MEDIUMpython/tests/workspace/test_symlinks.py901# ── POSIX pathname resolution ────────────────────────────────────────COMMENT
MEDIUMpython/tests/workspace/test_symlinks.py1439# ── ln: GNU operand grammar, backups, and the hard-link tier ──────COMMENT
502 more matches not shown…
Unused Imports1083 hits · 950 pts
SeverityFileLineSnippetContext
LOWpython/tests/vfs/gcal/test_gcal.py24CODE
LOWpython/tests/vfs/airtable/conftest.py15CODE
LOWpython/tests/core/gcal/conftest.py19CODE
LOWpython/tests/core/airtable/conftest.py15CODE
LOWpython/tests/core/hf_buckets/conftest.py21CODE
LOWpython/tests/core/hf_buckets/conftest.py21CODE
LOWpython/tests/core/hf_buckets/conftest.py21CODE
LOWpython/tests/core/hf_buckets/conftest.py21CODE
LOWpython/tests/commands/cli/builtin/airtable/conftest.py26CODE
LOWpython/tests/commands/builtin/airtable/conftest.py15CODE
LOWpython/tests/commands/builtin/github/conftest.py19CODE
LOWpython/mirage/__init__.py18CODE
LOWpython/mirage/__init__.py26CODE
LOWpython/mirage/__init__.py27CODE
LOWpython/mirage/__init__.py27CODE
LOWpython/mirage/__init__.py27CODE
LOWpython/mirage/__init__.py28CODE
LOWpython/mirage/__init__.py29CODE
LOWpython/mirage/__init__.py29CODE
LOWpython/mirage/__init__.py29CODE
LOWpython/mirage/__init__.py29CODE
LOWpython/mirage/__init__.py29CODE
LOWpython/mirage/__init__.py36CODE
LOWpython/mirage/__init__.py37CODE
LOWpython/mirage/__init__.py38CODE
LOWpython/mirage/__init__.py38CODE
LOWpython/mirage/__init__.py38CODE
LOWpython/mirage/__init__.py38CODE
LOWpython/mirage/__init__.py44CODE
LOWpython/mirage/__init__.py45CODE
LOWpython/mirage/__init__.py46CODE
LOWpython/mirage/__init__.py47CODE
LOWpython/mirage/__init__.py47CODE
LOWpython/mirage/__init__.py47CODE
LOWpython/mirage/__init__.py47CODE
LOWpython/mirage/__init__.py47CODE
LOWpython/mirage/__init__.py47CODE
LOWpython/mirage/__init__.py47CODE
LOWpython/mirage/__init__.py47CODE
LOWpython/mirage/__init__.py47CODE
LOWpython/mirage/__init__.py47CODE
LOWpython/mirage/__init__.py47CODE
LOWpython/mirage/__init__.py47CODE
LOWpython/mirage/__init__.py47CODE
LOWpython/mirage/__init__.py47CODE
LOWpython/mirage/__init__.py47CODE
LOWpython/mirage/__init__.py47CODE
LOWpython/mirage/__init__.py47CODE
LOWpython/mirage/__init__.py47CODE
LOWpython/mirage/__init__.py47CODE
LOWpython/mirage/__init__.py68CODE
LOWpython/mirage/__init__.py69CODE
LOWpython/mirage/__init__.py70CODE
LOWpython/mirage/__init__.py70CODE
LOWpython/mirage/__init__.py71CODE
LOWpython/mirage/__init__.py72CODE
LOWpython/mirage/__init__.py73CODE
LOWpython/mirage/__init__.py74CODE
LOWpython/mirage/__init__.py75CODE
LOWpython/mirage/__init__.py75CODE
1023 more matches not shown…
Docstring Block Structure128 hits · 640 pts
SeverityFileLineSnippetContext
HIGHpython/mirage/config.py125Replace ``${VAR}`` placeholders with values from ``env``. Args: value (Any): scalar, dict, or list to walk.STRING
HIGHpython/mirage/config.py994A config with every mount and CLI pointer replaced by its secret. The async half of the YAML loader, and the reasonSTRING
HIGHpython/mirage/vfs/registry.py361Construct a VFS instance by its registry name. Resolves VFS and config classes lazily via importlib, so importiSTRING
HIGHpython/mirage/vfs/gcal/event_entry.py101Recover (event_id, day) from an event filename. Splitting on the first ``__`` is safe because a Google event id is STRING
HIGHpython/mirage/core/langfuse/client.py28Await a Langfuse fetch, translating a 404 into ENOENT. Every other status stays an ApiError: only "this resource doSTRING
HIGHpython/mirage/core/object_store/write.py53Put one object, translating a missing container to ENOENT. The driver primitives speak keys, so a store error for aSTRING
HIGHpython/mirage/core/jaeger/client.py104Call the Jaeger query API and return the decoded body. Args: accessor (JaegerAccessor): jaeger accessor. STRING
HIGHpython/mirage/core/jaeger/client.py198Fetch one trace by id. Args: accessor (JaegerAccessor): jaeger accessor. trace_id (str): 16 or 32 hSTRING
HIGHpython/mirage/core/notion/client.py217Refuse a list response Notion marked incomplete. Args: page (dict[str, Any]): one list response. ReturSTRING
HIGHpython/mirage/core/notion/pages.py105Query one page of rows, cursor envelope intact. ``ntn datasources query`` is explicitly one page at a time: it STRING
HIGHpython/mirage/core/github/placeholder.py25One placeholder's expansion from the install. Args: name (str): the placeholder word, without braces. STRING
HIGHpython/mirage/core/github/placeholder.py48Expand gh's repository placeholders in an endpoint or field value. Real gh fills `{owner}`, `{repo}` and `{branch}`STRING
HIGHpython/mirage/core/github/tree.py155Fetch one directory's tree (non-recursive), and whether GitHub cut it. Args: config (GitHubConfig): token aSTRING
HIGHpython/mirage/core/github/tree.py209Fetch a single directory's whole tree (non-recursive). Used as fallback when the recursive tree was truncated, wherSTRING
HIGHpython/mirage/core/github/client.py153One arbitrary API call, the shape `gh api` needs. A GET carries its fields in the query string and every other methSTRING
HIGHpython/mirage/core/github/stat.py58Stat one path in the repository. Args: accessor (GitHubAccessor): backend handle. path_spec (PathSpSTRING
HIGHpython/mirage/core/github/repo.py176Split gh's repository argument. A URL (``https://HOST/OWNER/REPO``, ``git@HOST:OWNER/REPO.git``) or ``[HOST/]OWSTRING
HIGHpython/mirage/core/github/read.py52Read a file's blob and record the sha it was fetched by. The sha comes from the mount's listing, filling it if a veSTRING
HIGHpython/mirage/core/hf_buckets/hub.py66The paths-info row of one bucket file, in one request. paths-info answers a missing path, a directory and a leadingSTRING
HIGHpython/mirage/core/hf_hub/tree.py171The listing row for one mount-relative path, in one request. The row is folded by ``collect``, the same as a tree pSTRING
HIGHpython/mirage/core/hf_hub/tree.py273Follow the cursor from one page to the last, folding as it goes. Args: accessor (HfHubAccessor): the mount'STRING
HIGHpython/mirage/core/hf_hub/tree.py322Every path under the mount's subtree, in one paged walk. ``recursive=true`` returns the whole subtree. Size, oid anSTRING
HIGHpython/mirage/core/hf_hub/client.py476Stream file content without holding it whole in memory. Not routed through ``api_request``: that reads the body to STRING
HIGHpython/mirage/core/hf_hub/commit.py222Apply one commit to the repository. Every addition is checked against the preupload endpoint first, and a file STRING
HIGHpython/mirage/core/hf_hub/stat.py82Stat one path in the repository. Args: accessor (HfHubAccessor): backend handle. path_spec (PathSpeSTRING
HIGHpython/mirage/core/hf_hub/readdir.py36List one directory of the repository. Args: accessor (HfHubAccessor): backend handle. path_spec (PaSTRING
HIGHpython/mirage/core/hf_hub/read.py32The tree row for a path, or the error that says why there is none. Shared by every content read so a file, a directSTRING
HIGHpython/mirage/core/email/client.py33Spell a value as an RFC 3501 quoted string. The two quoted-specials, ``"`` and ``\\``, are escaped with a backsSTRING
HIGHpython/mirage/cache/context.py374The conditions a move carries: the copy onto ``dst``, the source pin. Both versions come from one store lookup. STRING
HIGHpython/mirage/shell/arith.py747Evaluate a bash arithmetic expression. bash's grammar over 64-bit wrapping integers, read and evaluated in one STRING
HIGHpython/mirage/secrets/env.py23Read the host process environment as one secret. Args: config (EnvConfig): carries nothing; the process envSTRING
HIGHpython/mirage/secrets/aws.py83Fetch one secret from AWS Secrets Manager. Args: config (AWSSMConfig): auth settings for the aioboto3 sessiSTRING
HIGHpython/mirage/secrets/onepassword.py37Split a 1Password secret reference into vault, item and field. Both of 1Password's own ref shapes are accepted, andSTRING
HIGHpython/mirage/secrets/onepassword.py168Fetch one secret from 1Password. A field reference is one ``resolve`` call and returns that field alone, keyed STRING
HIGHpython/mirage/secrets/sources.py286A raw mount or CLI config with every pointer read from its source. The same `config_value` a source's own config goSTRING
HIGHpython/mirage/secrets/dotenv.py26Read one dotenv file as one secret. A key declared without a value (a bare ``NAME`` line) parses as None and isSTRING
HIGHpython/mirage/workspace/runner.py84Run ``coro`` on the workspace loop and await the result. Safe to call from any other event loop. The current loSTRING
HIGHpython/mirage/workspace/snapshot/api.py64Write all of the bytes to the target and count them. A target that takes fewer bytes than offered is written agSTRING
HIGHpython/mirage/workspace/tools/tool_operations.py540Run one tool by name with its JSON input. The one entry every entry point shares: MCP, the HTTP routes, the CLISTRING
HIGHpython/mirage/workspace/tools/file_version.py158Read a file the agent is about to rewrite. Args: path (str): Virtual path. Returns: STRING
HIGHpython/mirage/workspace/workspace/workspace.py847Add a VFS to a running workspace, mirroring TS ``addMount``. The runtime entry point runs the same read-policy STRING
HIGHpython/mirage/workspace/mount/read_policy.py22Coerce a declared read-policy name into a ReadPolicy. Missing means bounded, everywhere: an absent ``read:`` in YAMSTRING
HIGHpython/mirage/workspace/mount/read_policy.py61Coerce a declared bound to a whole number of seconds. Every loader that reads a bound off a document runs this, so STRING
HIGHpython/mirage/workspace/mount/read_policy.py98Coerce a declared read policy and bound into a ReadSpec. Coercion only: an unknown name is refused here, but whetheSTRING
HIGH…thon/mirage/workspace/executor/builtins/unset/unset.py76Clear one array element, or a scalar addressed as ``base[0]``. Clearing an element keeps the indices of the elementSTRING
HIGH…on/mirage/workspace/executor/builtins/declare/local.py229Declare one ``NAME``, ``NAME=value`` or ``NAME+=value`` operand and mark it. A ``-n`` declaration writes the reSTRING
HIGH…on/mirage/workspace/executor/builtins/declare/local.py364Aim a ``declare -n NAME=VALUE`` (or ``NAME+=VALUE``) reference once the name may take one. The reference is whaSTRING
HIGH…on/mirage/workspace/executor/builtins/declare/local.py433Start a new bare ``local NAME`` unset, as bash 5.2 does. Only a name the frame did not shadow yet: a second ``localSTRING
HIGH…/mirage/workspace/executor/builtins/declare/declare.py378Store a declaration's array literals through the session view, the first of bash's two passes over a declaration. STRING
HIGH…/mirage/workspace/executor/builtins/declare/declare.py1127Assign and mark one ``export`` / ``readonly`` word. A value of the other array kind is refused and the name is stilSTRING
HIGHpython/mirage/workspace/executor/builtins/dirs/dirs.py121Resolve a combined ``cd`` path, following symlinks per mode. Logical (``-L``, default) simplifies ``..`` textually STRING
HIGH…irage/workspace/executor/builtins/metadata/metadata.py101Resolve touch -t/-d into an ISO timestamp. The -t stamp is the POSIX ``[[CC]YY]MMDDhhmm[.ss]`` form; strptime dSTRING
HIGHpython/mirage/workspace/session/elements.py111Assign one element (or a bare name resolved as element 0). The element mechanics are computed on a copy and the lanSTRING
HIGHpython/mirage/fuse/backend.py31Coerce a user-supplied backend name into a MountBackend. Missing means VFS, everywhere: an absent ``backend`` in YASTRING
HIGHpython/mirage/runtime/files.py524The target of the symlink at `path`. Args: path (str): guest-absolute path of the link. ReSTRING
HIGHpython/mirage/runtime/open.py46Apply an open's effect, before any byte moves. One rule for every open, however it is spelled (a mode string, pSTRING
HIGHpython/mirage/runtime/script.py71Build the engine a config script runs on: the one the config named, and the config always names one. There is nSTRING
HIGHpython/mirage/server/multipart.py101A multipart body's part events, as the body arrives. A part begins once its headers end, before any of its data, anSTRING
HIGHpython/mirage/server/daemon_config.py80Read the ``[daemon]`` table from ``home/config.toml``. Args: home (Path): the ``.mirage`` base directory. TSTRING
HIGHpython/mirage/server/registry.py272Wrap ``workspace`` in a runner and register it. Args: workspace (Workspace): freshly-constructed woSTRING
68 more matches not shown…
Deep Nesting495 hits · 490 pts
SeverityFileLineSnippetContext
LOWpython/tests/vfs/test_read_revalidatable.py720CODE
LOWpython/tests/vfs/onedrive/test_read_fresh.py135CODE
LOWpython/tests/vfs/github/test_listing_ttl.py539CODE
LOWpython/tests/core/nextcloud/conftest.py141CODE
LOWpython/tests/core/box/test_stat.py150CODE
LOWpython/tests/core/onedrive/test_stat.py196CODE
LOWpython/tests/core/google/test_entry.py66CODE
LOWpython/tests/core/google/test_entry.py164CODE
LOWpython/tests/core/linear/test_queries.py18CODE
LOWpython/tests/core/github/test_stat.py172CODE
LOWpython/tests/core/github/test_readdir.py198CODE
LOWpython/tests/core/sharepoint/test_stat.py244CODE
LOWpython/tests/core/dropbox/test_stat.py390CODE
LOWpython/tests/core/dropbox/test_rename.py76CODE
LOWpython/tests/core/dropbox/test_rename.py107CODE
LOWpython/tests/core/dropbox/test_rename.py181CODE
LOWpython/tests/core/dropbox/test_rmdir.py37CODE
LOWpython/tests/core/jq/test_parse.py699CODE
LOWpython/tests/core/hf_hub/test_lookup.py113CODE
LOWpython/tests/core/gmail/conftest.py219CODE
LOWpython/tests/cache/index/test_view.py58CODE
LOWpython/tests/cache/index/test_view.py90CODE
LOWpython/tests/cache/index/test_warm.py199CODE
LOWpython/tests/shell/parse/test_assignment.py14CODE
LOWpython/tests/workspace/test_reconcile.py325CODE
LOWpython/tests/workspace/test_ungated_attr_writes.py65CODE
LOWpython/tests/workspace/snapshot/test_state.py77CODE
LOWpython/tests/workspace/dispatcher/test_dispatcher.py604CODE
LOWpython/tests/workspace/dispatcher/test_dispatcher.py1333CODE
LOWpython/tests/workspace/executor/test_redirect.py484CODE
LOWpython/tests/cli/test_login.py71CODE
LOWpython/tests/cli/test_login.py87CODE
LOWpython/tests/commands/test_client_calls_pass_session.py21CODE
LOWpython/tests/commands/test_client_calls_pass_session.py40CODE
LOWpython/tests/commands/test_no_object_annotations.py68CODE
LOWpython/tests/commands/test_no_dead_flag_params.py34CODE
LOWpython/tests/commands/native/test_cross_mount.py71CODE
LOWpython/tests/commands/cli/builtin/git/conftest.py89CODE
LOWpython/tests/commands/builtin/test_multifile_guard.py114CODE
LOWpython/tests/commands/builtin/test_grep_prefilter.py102CODE
LOWpython/tests/commands/builtin/general/test_date.py78CODE
LOW…ts/commands/builtin/generic/archive/test_zip_update.py130CODE
LOWpython/tests/e2e/test_cross_mount_matrix.py61CODE
LOWpython/tests/e2e/test_snapshot_drift_live.py101CODE
LOWpython/tests/e2e/mounts.py82CODE
LOWpython/mirage/config.py485CODE
LOWpython/mirage/vfs/secrets.py59CODE
LOWpython/mirage/vfs/disk/disk.py278CODE
LOWpython/mirage/core/nextcloud/search/query.py69CODE
LOWpython/mirage/core/nextcloud/search/query.py98CODE
LOWpython/mirage/core/s3/driver.py571CODE
LOWpython/mirage/core/box/mkdir.py42CODE
LOWpython/mirage/core/object_store/rename.py40CODE
LOWpython/mirage/core/object_store/rename.py64CODE
LOWpython/mirage/core/object_store/find.py63CODE
LOWpython/mirage/core/object_store/find.py70CODE
LOWpython/mirage/core/object_store/readdir.py177CODE
LOWpython/mirage/core/hierarchy/codec.py83CODE
LOWpython/mirage/core/awk/builtins.py395CODE
LOWpython/mirage/core/awk/parser.py399CODE
435 more matches not shown…
Modern Structural Boilerplate460 hits · 462 pts
SeverityFileLineSnippetContext
LOWpython/tests/vfs/gcal/test_gcal.py26__all__ = ["gcal_api"]CODE
LOWpython/tests/vfs/airtable/conftest.py17__all__ = ["airtable_api"]CODE
LOWpython/tests/core/gcal/conftest.py21__all__ = ["gcal_api"]CODE
LOWpython/tests/core/airtable/conftest.py17__all__ = ["airtable_api"]CODE
LOWpython/tests/core/hf_buckets/conftest.py30__all__ = [CODE
LOWpython/tests/workspace/test_find_unknown_predicate.py16async def _setup(ws: Workspace) -> None:CODE
LOW⚡…/tests/workspace/executor/test_find_action_dispatch.py52async def _setup_html_files(ws: Workspace) -> None:CODE
LOWpython/tests/commands/cli/builtin/airtable/conftest.py28__all__ = ["airtable_api", "airtable_ws"]CODE
LOWpython/tests/commands/builtin/airtable/conftest.py17__all__ = ["airtable_api"]CODE
LOWpython/tests/commands/builtin/github/conftest.py21__all__ = ["github_config", "mock_github_api"]CODE
LOWpython/tests/e2e/gdrive_mock.py173 def set_modified(self, path: str, stamp: str) -> None:CODE
LOWpython/mirage/__init__.py265__all__ = [CODE
LOWpython/mirage/vfs/registry.py28logger = logging.getLogger(__name__)CODE
LOWpython/mirage/vfs/__init__.py34__all__ = [CODE
LOWpython/mirage/vfs/langfuse/__init__.py22__all__ = ["LangfuseConfig", "LangfuseVFS"]CODE
LOWpython/mirage/vfs/nextcloud/__init__.py22__all__ = ["NextcloudConfig", "NextcloudVFS"]CODE
LOWpython/mirage/vfs/s3/__init__.py22__all__ = ["S3Config", "S3VFS"]CODE
LOWpython/mirage/vfs/chroma/__init__.py8__all__ = ["ChromaConfig", "ChromaVFS"]CODE
LOWpython/mirage/vfs/box/__init__.py22__all__ = ["BoxConfig", "BoxVFS"]CODE
LOWpython/mirage/vfs/discord/__init__.py22__all__ = ["DiscordConfig", "DiscordVFS"]CODE
LOWpython/mirage/vfs/aliyun/__init__.py18__all__ = ["AliyunConfig", "AliyunVFS"]CODE
LOWpython/mirage/vfs/bin/__init__.py17__all__ = ["BinViewVFS"]CODE
LOWpython/mirage/vfs/redis/store.py144 async def set_file(self, path: str, data: bytes) -> None:CODE
LOWpython/mirage/vfs/redis/store.py210 async def set_modified(self, path: str, ts: str) -> None:CODE
LOWpython/mirage/vfs/redis/store.py228 async def set_attrs(self, path: str, fields: dict[str, str]) -> None:CODE
LOWpython/mirage/vfs/redis/__init__.py21__all__ = ["RedisVFS", "RedisStore"]CODE
LOWpython/mirage/vfs/hf_models/__init__.py22__all__ = ["HfModelsConfig", "HfModelsVFS"]CODE
LOWpython/mirage/vfs/ceph/__init__.py18__all__ = ["CephConfig", "CephVFS"]CODE
LOWpython/mirage/vfs/backblaze/__init__.py18__all__ = ["BackblazeConfig", "BackblazeVFS"]CODE
LOWpython/mirage/vfs/jaeger/__init__.py22__all__ = ["JaegerConfig", "JaegerVFS"]CODE
LOWpython/mirage/vfs/onedrive/__init__.py18__all__ = ["OneDriveVFS", "OneDriveConfig"]CODE
LOWpython/mirage/vfs/hf_spaces/__init__.py22__all__ = ["HfSpacesConfig", "HfSpacesVFS"]CODE
LOWpython/mirage/vfs/digitalocean/__init__.py18__all__ = ["DigitalOceanConfig", "DigitalOceanVFS"]CODE
LOWpython/mirage/vfs/linear/__init__.py22__all__ = ["LinearConfig", "LinearVFS"]CODE
LOWpython/mirage/vfs/gcal/__init__.py23__all__ = ["GCalConfig", "make_event_filename", "GCalVFS"]CODE
LOWpython/mirage/vfs/wasabi/__init__.py18__all__ = ["WasabiConfig", "WasabiVFS"]CODE
LOWpython/mirage/vfs/oci/__init__.py18__all__ = ["OCIConfig", "OCIVFS"]CODE
LOWpython/mirage/vfs/gdrive/__init__.py22__all__ = ["GoogleDriveConfig", "GoogleDriveVFS"]CODE
LOWpython/mirage/vfs/minio/__init__.py18__all__ = ["MinIOConfig", "MinIOVFS"]CODE
LOWpython/mirage/vfs/databricks_volume/__init__.py24__all__ = ["DatabricksVolumeConfig", "DatabricksVolumeVFS"]CODE
LOWpython/mirage/vfs/mongodb/__init__.py22__all__ = ["MongoDBConfig", "MongoDBVFS"]CODE
LOWpython/mirage/vfs/notion/__init__.py22__all__ = ["NotionConfig", "NotionVFS"]CODE
LOWpython/mirage/vfs/supabase/__init__.py18__all__ = ["SupabaseConfig", "SupabaseVFS"]CODE
LOWpython/mirage/vfs/airtable/__init__.py22__all__ = ["AirtableConfig", "AirtableVFS"]CODE
LOWpython/mirage/vfs/qingstor/__init__.py18__all__ = ["QingStorConfig", "QingStorVFS"]CODE
LOWpython/mirage/vfs/postgres/__init__.py22__all__ = ["PostgresConfig", "PostgresVFS"]CODE
LOWpython/mirage/vfs/hf_datasets/__init__.py22__all__ = ["HfDatasetsConfig", "HfDatasetsVFS"]CODE
LOWpython/mirage/vfs/ssh/__init__.py22__all__ = ["SSHConfig", "SSHVFS"]CODE
LOWpython/mirage/vfs/github/__init__.py19__all__ = ["GitHubConfig", "GitHubVFS", "TreeEntry"]CODE
LOWpython/mirage/vfs/gridfs/__init__.py22__all__ = ["GridFSConfig", "GridFSVFS"]CODE
LOWpython/mirage/vfs/history/__init__.py17__all__ = ["HISTORY_PREFIX", "HistoryViewVFS"]CODE
LOWpython/mirage/vfs/sharepoint/__init__.py4__all__ = ["SharePointVFS", "SharePointConfig"]CODE
LOWpython/mirage/vfs/gsheets/__init__.py23__all__ = ["GSheetsConfig", "SheetEntry", "GSheetsVFS"]CODE
LOWpython/mirage/vfs/scaleway/__init__.py18__all__ = ["ScalewayConfig", "ScalewayVFS"]CODE
LOWpython/mirage/vfs/qdrant/__init__.py22__all__ = ["QdrantConfig", "QdrantVFS"]CODE
LOWpython/mirage/vfs/hf_buckets/__init__.py22__all__ = ["HfBucketsConfig", "HfBucketsVFS"]CODE
LOWpython/mirage/vfs/dropbox/__init__.py22__all__ = ["DropboxConfig", "DropboxVFS"]CODE
LOWpython/mirage/vfs/disk/__init__.py17__all__ = ["DiskVFS"]CODE
LOWpython/mirage/vfs/dev/store.py69 def set_input(self, path: str, allocation: int, data: bytes) -> None:CODE
LOWpython/mirage/vfs/dev/__init__.py17__all__ = ["DevVFS"]CODE
400 more matches not shown…
Cross-File Repetition84 hits · 420 pts
SeverityFileLineSnippetContext
HIGHpython/tests/core/onedrive/test_rename.py0which invalidation each end of a rename took, in call order.STRING
HIGHpython/tests/core/sharepoint/test_rename.py0which invalidation each end of a rename took, in call order.STRING
HIGHpython/tests/core/dropbox/test_rename.py0which invalidation each end of a rename took, in call order.STRING
HIGHpython/tests/core/gsheets/test_readdir.py0drive reporting a corpus it skipped means the listing is short. caching it would pin the short listing until it expires,STRING
HIGHpython/tests/core/gdocs/test_readdir.py0drive reporting a corpus it skipped means the listing is short. caching it would pin the short listing until it expires,STRING
HIGHpython/tests/core/gslides/test_readdir.py0drive reporting a corpus it skipped means the listing is short. caching it would pin the short listing until it expires,STRING
HIGHpython/tests/workspace/test_state_entry_points.py0ram vfs with no native setattr, standing in for an api backend that has no attribute slot.STRING
HIGH…/workspace/executor/builtins/metadata/test_metadata.py0ram vfs with no native setattr, standing in for an api backend that has no attribute slot.STRING
HIGH…sts/workspace/executor/builtins/metadata/test_chgrp.py0ram vfs with no native setattr, standing in for an api backend that has no attribute slot.STRING
HIGHpython/tests/workspace/mount/test_mount.py0yields its bytes once, then waits until it is closed, once.STRING
HIGHpython/tests/workspace/executor/command/test_cli.py0yields its bytes once, then waits until it is closed, once.STRING
HIGH…mands/builtin/generic/crossmount/stream/test_stream.py0yields its bytes once, then waits until it is closed, once.STRING
HIGHpython/tests/workspace/session/test_redis.py0read-modify-cas one counter, retrying until each round lands.STRING
HIGHpython/tests/workspace/session/test_disk.py0read-modify-cas one counter, retrying until each round lands.STRING
HIGHpython/tests/workspace/session/test_s3.py0read-modify-cas one counter, retrying until each round lands.STRING
HIGHpython/tests/runtime/sandbox/ssh/test_sdk.py0every name comes from the sdk, or every name is none; never a mix.STRING
HIGHpython/tests/runtime/sandbox/daytona/test_sdk.py0every name comes from the sdk, or every name is none; never a mix.STRING
HIGHpython/tests/runtime/sandbox/e2b/test_sdk.py0every name comes from the sdk, or every name is none; never a mix.STRING
HIGHpython/tests/runtime/sandbox/ssh/test_sdk.py0ci installs every extra, so this is the only run of the except arm.STRING
HIGHpython/tests/runtime/sandbox/daytona/test_sdk.py0ci installs every extra, so this is the only run of the except arm.STRING
HIGHpython/tests/runtime/sandbox/e2b/test_sdk.py0ci installs every extra, so this is the only run of the except arm.STRING
HIGHpython/tests/commands/cli/builtin/git/test_changes.py0a repository holding each blob, and their ids in the same order. args: contents (bytes): blob contents to store.STRING
HIGHpython/tests/commands/cli/builtin/git/test_summary.py0a repository holding each blob, and their ids in the same order. args: contents (bytes): blob contents to store.STRING
HIGH…hon/tests/commands/cli/builtin/git/test_diff_output.py0a repository holding each blob, and their ids in the same order. args: contents (bytes): blob contents to store.STRING
HIGHpython/tests/commands/cli/builtin/git/test_rm.py0run one git line against the mounted repository. args: git_ws (workspace): workspace with the repository and cli. line (STRING
HIGHpython/tests/commands/cli/builtin/git/test_mv.py0run one git line against the mounted repository. args: git_ws (workspace): workspace with the repository and cli. line (STRING
HIGHpython/tests/commands/cli/builtin/git/test_tag.py0run one git line against the mounted repository. args: git_ws (workspace): workspace with the repository and cli. line (STRING
HIGHpython/tests/commands/cli/builtin/git/test_restore.py0run one git line against the mounted repository. args: git_ws (workspace): workspace with the repository and cli. line (STRING
HIGHpython/tests/commands/cli/builtin/git/test_reset.py0run one git line against the mounted repository. args: git_ws (workspace): workspace with the repository and cli. line (STRING
HIGHpython/tests/commands/cli/builtin/git/test_commit.py0run one git line against the mounted repository. args: git_ws (workspace): workspace with the repository and cli. line (STRING
HIGHpython/tests/commands/cli/builtin/git/test_branch.py0run one git line against the mounted repository. args: git_ws (workspace): workspace with the repository and cli. line (STRING
HIGHpython/tests/commands/cli/builtin/git/test_checkout.py0run one git line against the mounted repository. args: git_ws (workspace): workspace with the repository and cli. line (STRING
HIGHpython/tests/commands/cli/builtin/git/test_switch.py0run one git line against the mounted repository. args: git_ws (workspace): workspace with the repository and cli. line (STRING
HIGHpython/tests/commands/cli/builtin/git/test_add.py0run one git line against the mounted repository. args: git_ws (workspace): workspace with the repository and cli. line (STRING
HIGHpython/tests/commands/cli/builtin/git/test_status.py0run one git line against the mounted repository. args: git_ws (workspace): workspace with the repository and cli. line (STRING
HIGHpython/mirage/vfs/box/box.py0drain the token manager's connection pool with the vfs.STRING
HIGHpython/mirage/vfs/gcal/gcal.py0drain the token manager's connection pool with the vfs.STRING
HIGHpython/mirage/vfs/gdrive/gdrive.py0drain the token manager's connection pool with the vfs.STRING
HIGHpython/mirage/vfs/gsheets/gsheets.py0drain the token manager's connection pool with the vfs.STRING
HIGHpython/mirage/vfs/dropbox/dropbox.py0drain the token manager's connection pool with the vfs.STRING
HIGHpython/mirage/vfs/gdocs/gdocs.py0drain the token manager's connection pool with the vfs.STRING
HIGHpython/mirage/vfs/gslides/gslides.py0drain the token manager's connection pool with the vfs.STRING
HIGHpython/mirage/vfs/gmail/gmail.py0drain the token manager's connection pool with the vfs.STRING
HIGHpython/mirage/vfs/aliyun/prompt.py0\ {prefix} remote scaleway object storage bucket (s3-compatible). important: this is a remote mount. prefer targeted reaSTRING
HIGHpython/mirage/vfs/ceph/prompt.py0\ {prefix} remote scaleway object storage bucket (s3-compatible). important: this is a remote mount. prefer targeted reaSTRING
HIGHpython/mirage/vfs/backblaze/prompt.py0\ {prefix} remote scaleway object storage bucket (s3-compatible). important: this is a remote mount. prefer targeted reaSTRING
HIGHpython/mirage/vfs/digitalocean/prompt.py0\ {prefix} remote scaleway object storage bucket (s3-compatible). important: this is a remote mount. prefer targeted reaSTRING
HIGHpython/mirage/vfs/wasabi/prompt.py0\ {prefix} remote scaleway object storage bucket (s3-compatible). important: this is a remote mount. prefer targeted reaSTRING
HIGHpython/mirage/vfs/minio/prompt.py0\ {prefix} remote scaleway object storage bucket (s3-compatible). important: this is a remote mount. prefer targeted reaSTRING
HIGHpython/mirage/vfs/qingstor/prompt.py0\ {prefix} remote scaleway object storage bucket (s3-compatible). important: this is a remote mount. prefer targeted reaSTRING
HIGHpython/mirage/vfs/scaleway/prompt.py0\ {prefix} remote scaleway object storage bucket (s3-compatible). important: this is a remote mount. prefer targeted reaSTRING
HIGHpython/mirage/vfs/tencent/prompt.py0\ {prefix} remote scaleway object storage bucket (s3-compatible). important: this is a remote mount. prefer targeted reaSTRING
HIGHpython/mirage/vfs/gsheets/gsheets.py0render a presentation as the json its ``.gslide.json`` file holds. args: path (pathspec): the file. index (indexcachestoSTRING
HIGHpython/mirage/vfs/gdocs/gdocs.py0render a presentation as the json its ``.gslide.json`` file holds. args: path (pathspec): the file. index (indexcachestoSTRING
HIGHpython/mirage/vfs/gslides/gslides.py0render a presentation as the json its ``.gslide.json`` file holds. args: path (pathspec): the file. index (indexcachestoSTRING
HIGHpython/mirage/core/opendal/watch.py0yield every entry under ``root``. args: root (pathspec): watch root (mount-virtual path).STRING
HIGHpython/mirage/core/s3/watch.py0yield every entry under ``root``. args: root (pathspec): watch root (mount-virtual path).STRING
HIGHpython/mirage/core/ssh/watch.py0yield every entry under ``root``. args: root (pathspec): watch root (mount-virtual path).STRING
HIGHpython/mirage/core/gridfs/watch.py0yield every entry under ``root``. args: root (pathspec): watch root (mount-virtual path).STRING
HIGHpython/mirage/core/dropbox/watch.py0yield every entry under ``root``. args: root (pathspec): watch root (mount-virtual path).STRING
24 more matches not shown…
Cross-Language Confusion (JS/TS)53 hits · 300 pts
SeverityFileLineSnippetContext
HIGH…/packages/core/src/workspace/scripted_profiles.test.ts30 return NoneCODE
HIGH…/packages/core/src/workspace/scripted_profiles.test.ts44 return NoneCODE
HIGH…/packages/core/src/workspace/scripted_profiles.test.ts299 return NoneCODE
HIGH…/packages/core/src/workspace/scripted_profiles.test.ts374 return NoneCODE
HIGH…ipt/packages/core/src/workspace/workspace/fill.test.ts1866 return NoneCODE
HIGH…ipt/packages/core/src/workspace/workspace/fill.test.ts1871 return NoneCODE
HIGH…pt/packages/core/src/workspace/workspace/spawn.test.ts111print(subprocess.run(['printf', '%s', '$(literal)'], capture_output=True, text=True).stdout)`CODE
HIGH…pt/packages/core/src/workspace/workspace/spawn.test.ts191print('ok')`CODE
HIGH…pt/packages/core/src/workspace/workspace/spawn.test.ts267print('done')`CODE
HIGH…pt/packages/core/src/workspace/workspace/spawn.test.ts290 print('denied', error.errno == errno.EAGAIN)CODE
HIGH…ages/core/src/runtime/python/pyodide/execution.test.ts408print('main identity works')CODE
HIGH…ages/core/src/runtime/python/pyodide/execution.test.ts551print(sys.flags.optimize, __debug__, sys.flags.safe_path, '' in sys.path)CODE
HIGH…ages/core/src/runtime/python/pyodide/execution.test.ts599print(optimize_helper.debug)`,CODE
HIGH…ages/core/src/runtime/python/pyodide/jsglobals.test.ts33print(",".join(flags))CODE
HIGHtypescript/packages/core/src/policy/script.test.ts69 return NoneCODE
HIGHtypescript/packages/core/src/policy/script.test.ts462 return NoneCODE
HIGHinteg/hosting/mounts.ts28print(identity + ':' + argv[1] + ':ram,s3,redis,slack')CODE
HIGHinteg/wandb/schema.ts120 print(parse(pyQueries[name]!)),CODE
HIGHinteg/wandb/schema.ts121 print(parse(query)),CODE
HIGHexamples/typescript/s3/s3_write.ts198 print(res.stdout)CODE
HIGHexamples/typescript/redis/redis.ts30 print(res.stdout)CODE
HIGH⚡examples/typescript/redis/redis.ts82 print(cpOut.stdout)CODE
HIGH⚡examples/typescript/redis/redis.ts87 print(mvOut.stdout)CODE
HIGH⚡examples/typescript/redis/redis.ts92 print(rmOut.stdout)CODE
HIGH⚡examples/typescript/redis/redis.ts101 print(uniqOut.stdout)CODE
HIGHexamples/typescript/permissions/policy.ts61 return NoneCODE
HIGHexamples/typescript/permissions/policy.ts67 return NoneCODE
HIGH⚡examples/typescript/pyodide/ram.ts32print(f'hello, {name}!')CODE
HIGH⚡examples/typescript/pyodide/ram.ts33print(f'args: {sys.argv[1:]}')CODE
HIGH⚡examples/typescript/pyodide/ram.ts34print(f'sum(1..10): {sum(range(1, 11))}')CODE
HIGHexamples/typescript/pyodide/ram.ts74 print(f'{user}: {n}')CODE
HIGHexamples/typescript/pyodide/ram.ts87print('script was replaced!')CODE
HIGH⚡examples/typescript/pyodide/script.ts28print(f"count: {len(records)}")CODE
HIGH⚡examples/typescript/pyodide/script.ts29print(f"keys: {sorted({k for r in records for k in r})}")CODE
HIGH⚡examples/typescript/pyodide/script.ts31 print(f" - {json.dumps(r)}")CODE
HIGHexamples/typescript/pyodide/vfs.ts85 print('read:', f.read())CODE
HIGHexamples/typescript/pyodide/vfs.ts88print('wrote /ram/out.txt')CODE
HIGHexamples/typescript/pyodide/vfs.ts101print('listdir:', os.listdir('/ram/synth/today'))CODE
HIGHexamples/typescript/pyodide/vfs.ts102print('read:', open('/ram/synth/today/note.md').read())CODE
HIGHexamples/typescript/pyodide/vfs.ts116 print('team:', team.get('name'), team.get('id'))CODE
HIGHexamples/typescript/pyodide/vfs.ts129 print('doc:', data.get('title') or list(data.keys())[:5])CODE
HIGHexamples/typescript/pyodide/vfs.ts140print('entries:', entries)CODE
HIGHexamples/typescript/pyodide/vfs.ts146 print(f'{p}:', data[:60])CODE
HIGHexamples/typescript/pyodide/vfs.ts160print('saved /ram/icon.png')CODE
HIGHexamples/typescript/pyodide/vfs.ts181print(f'wrote {len(out)} teams to /ram/summary.json')CODE
HIGHexamples/typescript/pyodide/basic.ts26 print(res.stdout)CODE
HIGHexamples/typescript/pyodide/basic.ts56 print(stdinRes.stdout)CODE
HIGHexamples/typescript/ram/ram.ts29 print(res.stdout)CODE
HIGH⚡examples/typescript/ram/ram.ts62 print(cpOut.stdout)CODE
HIGH⚡examples/typescript/ram/ram.ts67 print(mvOut.stdout)CODE
HIGH⚡examples/typescript/ram/ram.ts72 print(rmOut.stdout)CODE
HIGH⚡examples/typescript/ram/ram.ts81 print(uniqOut.stdout)CODE
HIGHexamples/typescript/ram/ram.ts105 print(mvMeta.stdout)CODE
Empty Error Handlers43 hits · 215 pts
SeverityFileLineSnippetContext
HIGHpython/tests/core/awk/test_interp.py77except ExitProgram:CODE
HIGHpython/tests/utils/test_abort.py149except asyncio.CancelledError:CODE
HIGHpython/tests/commands/native/conftest.py323except (FileExistsError, ValueError):CODE
HIGHpython/tests/commands/native/test_cross_mount.py82except (FileExistsError, ValueError):CODE
HIGHpython/tests/e2e/conftest.py252except (FileExistsError, ValueError):CODE
HIGHpython/tests/e2e/test_snapshot_drift_live.py123except Exception:CODE
HIGHpython/mirage/core/awk/interp.py1156except ContinueLoop:CODE
HIGHpython/mirage/core/awk/interp.py1169except ContinueLoop:CODE
HIGHpython/mirage/core/jq/parse.py152except UnicodeDecodeError:CODE
HIGHpython/mirage/core/email/client.py371except (ValueError, IndexError):CODE
HIGHpython/mirage/core/email/client.py212except (ValueError, IndexError):CODE
HIGHpython/mirage/workspace/documentation/documents.py171except FileNotFoundError:CODE
HIGHpython/mirage/workspace/record/disk.py71except FileNotFoundError:CODE
HIGHpython/mirage/workspace/record/disk.py213except FileNotFoundError:CODE
HIGHpython/mirage/workspace/workspace/explainer.py429except Explained:CODE
HIGHpython/mirage/workspace/executor/builtins/links/ln.py685except CycleError:CODE
HIGHpython/mirage/workspace/executor/builtins/links/ln.py802except (FileNotFoundError, NotADirectoryError):CODE
HIGHpython/mirage/runtime/python/host/fs.py1032except OSError:CODE
HIGHpython/mirage/agents/langchain/backend.py233except (FileNotFoundError, NotADirectoryError, ValueError):CODE
HIGHpython/mirage/agents/langchain/backend.py239except (FileExistsError, ValueError):CODE
HIGHpython/mirage/agents/langchain/backend.py369except (FileExistsError, ValueError):CODE
HIGHpython/mirage/cli/daemon.py146except ProcessLookupError:CODE
HIGHpython/mirage/cli/daemon.py174except httpx.RequestError:CODE
HIGHpython/mirage/cli/daemon.py188except ProcessLookupError:CODE
HIGHpython/mirage/commands/cli/builtin/hf/download.py254except MISS_ERRORS:CODE
HIGHpython/mirage/commands/builtin/generic/patch.py664except FileNotFoundError:CODE
HIGHpython/mirage/commands/builtin/generic/tee.py92except FileNotFoundError:CODE
HIGHpython/mirage/commands/builtin/generic/cp.py672except (FileNotFoundError, ValueError):CODE
HIGHpython/mirage/commands/builtin/generic/cp.py734except (FileNotFoundError, ValueError):CODE
HIGH…ckages/core/src/runtime/python/pyodide/py/execution.py352except BrokenPipeError:CODE
HIGHinteg/access/adapters.py1670except httpx.TimeoutException:CODE
HIGHinteg/access/adapters.py2010except TimeoutError:CODE
HIGHinteg/watch/run.py368except (asyncio.CancelledError, StopAsyncIteration):CODE
HIGHinteg/wandb/sdk.py106except (ValueError, wandb.errors.CommError):CODE
HIGHexamples/python/s3/s3_fuse.py95except EOFError:CODE
HIGHexamples/python/s3/s3.py712except Exception:CODE
HIGHexamples/python/hf_models/hf_models_fuse.py55except EOFError:CODE
HIGHexamples/python/hf_spaces/hf_spaces_fuse.py58except EOFError:CODE
HIGHexamples/python/cross/cross_fuse.py169except EOFError:CODE
HIGHexamples/python/hf_datasets/hf_datasets_fuse.py59except EOFError:CODE
HIGHexamples/python/hf_buckets/hf_buckets_fuse.py76except EOFError:CODE
HIGHexamples/python/seaweedfs/seaweedfs_fuse.py91except EOFError:CODE
HIGHscripts/check_cli_cold_start.py389except UnresolvedImport:CODE
Excessive Try-Catch Wrapping163 hits · 168 pts
SeverityFileLineSnippetContext
LOW⚡python/tests/workspace/test_path_axis.py330 except Exception as exc:CODE
LOWpython/tests/runtime/wasm/test_slab.py49 except Exception as exc:CODE
LOWpython/tests/e2e/test_snapshot_drift_live.py84 except Exception:CODE
LOWpython/tests/e2e/test_snapshot_drift_live.py123 except Exception:CODE
MEDIUMpython/tests/e2e/test_snapshot_drift_live.py81def _versioning_enabled() -> bool:CODE
LOWpython/mirage/core/s3/stream.py66 except Exception as exc:CODE
LOWpython/mirage/core/s3/driver.py156 except Exception as exc:CODE
LOWpython/mirage/core/s3/driver.py240 except Exception as exc:CODE
LOWpython/mirage/core/s3/driver.py282 except Exception as exc:CODE
LOWpython/mirage/core/s3/driver.py300 except Exception as exc:CODE
LOWpython/mirage/core/s3/driver.py306 except Exception:CODE
LOWpython/mirage/core/s3/driver.py359 except Exception:CODE
LOWpython/mirage/core/s3/driver.py399 except Exception as exc:CODE
LOWpython/mirage/core/s3/driver.py566 except Exception as exc:CODE
LOWpython/mirage/core/s3/driver.py596 except Exception as exc:CODE
LOWpython/mirage/core/s3/driver.py628 except Exception as exc:CODE
LOWpython/mirage/core/s3/driver.py672 except Exception as exc:CODE
LOWpython/mirage/core/s3/read.py105 except Exception as exc:CODE
LOWpython/mirage/core/chroma/tree.py32 except Exception as exc:CODE
LOWpython/mirage/core/object_store/write.py90 except Exception as exc:CODE
LOWpython/mirage/core/gdrive/resolve.py193 except Exception:CODE
LOWpython/mirage/core/gdrive/readdir.py155 except Exception:CODE
LOW⚡python/mirage/core/databricks_volume/write.py40 except Exception as exc:CODE
LOW⚡python/mirage/core/databricks_volume/write.py46 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/write.py88 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/rmdir.py55 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/rmdir.py63 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/rm.py88 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/stream.py69 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/mkdir.py55 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/stat.py63 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/stat.py105 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/unlink.py47 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/readdir.py47 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/readdir.py81 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/read.py99 except Exception as exc:CODE
LOWpython/mirage/core/github/search.py148 except Exception as exc:CODE
LOWpython/mirage/core/generic/find.py294 except Exception as exc:CODE
LOWpython/mirage/cache/context.py185 except Exception as exc:CODE
LOWpython/mirage/cache/manager.py520 except Exception:CODE
LOWpython/mirage/cache/manager.py702 except Exception:CODE
LOWpython/mirage/cache/file/io.py131 except Exception:CODE
LOWpython/mirage/cache/file/io.py135 except Exception:CODE
LOWpython/mirage/cache/file/io.py193 except Exception:CODE
LOWpython/mirage/shell/job_table/table.py108 except Exception as exc:CODE
LOWpython/mirage/shell/job_table/table.py276 except Exception:CODE
LOWpython/mirage/accessor/pool.py166 except Exception as exc:CODE
LOWpython/mirage/accessor/pool.py196 except Exception as exc:CODE
LOWpython/mirage/secrets/sources.py70 except Exception as exc:CODE
LOWpython/mirage/secrets/sources.py154 except Exception as exc:CODE
LOWpython/mirage/workspace/runner.py129 except Exception:CODE
LOWpython/mirage/workspace/runner.py161 except Exception as exc:CODE
LOWpython/mirage/workspace/shell_execution.py185 except Exception:CODE
LOWpython/mirage/workspace/reconcile.py181 except Exception as exc:CODE
LOWpython/mirage/workspace/reconcile.py296 except Exception as exc:CODE
LOWpython/mirage/workspace/reconcile.py344 except Exception as exc:CODE
LOWpython/mirage/workspace/record/s3.py68 except Exception as exc:CODE
LOWpython/mirage/workspace/record/s3.py108 except Exception as exc:CODE
LOWpython/mirage/workspace/workspace/fill.py757 except Exception as exc:CODE
LOWpython/mirage/workspace/workspace/kernel_mounts.py77 except Exception:CODE
103 more matches not shown…
AI Structural Patterns74 hits · 74 pts
SeverityFileLineSnippetContext
LOW…/tests/vfs/databricks_volume/test_databricks_volume.py175CODE
LOWpython/tests/core/gdrive/conftest.py96CODE
LOWpython/tests/core/databricks_volume/conftest.py164CODE
LOWpython/tests/e2e/gdrive_mock.py386CODE
LOWpython/mirage/vfs/base.py192CODE
LOWpython/mirage/core/nextcloud/find.py342CODE
LOWpython/mirage/core/object_store/find.py41CODE
LOWpython/mirage/core/object_store/find.py70CODE
LOWpython/mirage/core/redis/find.py31CODE
LOWpython/mirage/core/onedrive/find.py34CODE
LOWpython/mirage/core/google/drive.py73CODE
LOWpython/mirage/core/gdrive/find.py31CODE
LOWpython/mirage/core/notion/find.py26CODE
LOWpython/mirage/core/msgraph/client.py156CODE
LOWpython/mirage/core/msgraph/drive.py616CODE
LOWpython/mirage/core/ssh/find.py34CODE
LOWpython/mirage/core/github/find.py29CODE
LOWpython/mirage/core/history/find.py28CODE
LOWpython/mirage/core/sharepoint/find.py194CODE
LOWpython/mirage/core/api/client.py448CODE
LOWpython/mirage/core/disk/find.py51CODE
LOWpython/mirage/core/disk/find.py192CODE
LOWpython/mirage/core/generic/find.py188CODE
LOWpython/mirage/core/email/search.py119CODE
LOWpython/mirage/core/ram/find.py31CODE
LOWpython/mirage/workspace/workspace/workspace.py239CODE
LOWpython/mirage/workspace/workspace/workspace.py2311CODE
LOWpython/mirage/workspace/workspace/workspace.py2333CODE
LOWpython/mirage/workspace/workspace/workspace.py2355CODE
LOWpython/mirage/workspace/workspace/workspace.py2376CODE
LOWpython/mirage/workspace/workspace/workspace.py2529CODE
LOWpython/mirage/workspace/workspace/workspace.py2701CODE
LOWpython/mirage/workspace/workspace/workspace.py2730CODE
LOW…thon/mirage/workspace/executor/find_action_dispatch.py453CODE
LOWpython/mirage/workspace/executor/redirect.py281CODE
LOWpython/mirage/workspace/executor/pipes.py402CODE
LOWpython/mirage/workspace/executor/command/command.py208CODE
LOWpython/mirage/workspace/node/execute_node.py1007CODE
LOWpython/mirage/workspace/node/execute_node.py1191CODE
LOWpython/mirage/workspace/node/explain.py360CODE
LOWpython/mirage/workspace/node/command_dispatch.py512CODE
LOWpython/mirage/io/types.py206CODE
LOWpython/mirage/server/app.py166CODE
LOWpython/mirage/cli/tools.py143CODE
LOWpython/mirage/cli/shell.py36CODE
LOWpython/mirage/commands/spec/types.py141CODE
LOWpython/mirage/commands/builtin/generic/gunzip.py15CODE
LOWpython/mirage/commands/builtin/generic/tree.py245CODE
LOWpython/mirage/commands/builtin/generic/gzip.py53CODE
LOWpython/mirage/commands/builtin/generic/fmt.py434CODE
LOWpython/mirage/commands/builtin/generic/csplit.py123CODE
LOWpython/mirage/commands/builtin/generic/checksum.py432CODE
LOWpython/mirage/commands/builtin/generic/decompress.py279CODE
LOWpython/mirage/commands/builtin/generic/comm.py78CODE
LOWpython/mirage/commands/builtin/generic/mktemp.py110CODE
LOWpython/mirage/commands/builtin/generic/shuf.py421CODE
LOWpython/mirage/commands/builtin/generic/sed.py219CODE
LOWpython/mirage/commands/builtin/generic/unzip.py518CODE
LOWpython/mirage/commands/builtin/generic/sort.py347CODE
LOWpython/mirage/commands/builtin/generic/ls.py1185CODE
14 more matches not shown…
AI Slop Vocabulary13 hits · 44 pts
SeverityFileLineSnippetContext
MEDIUMpython/tests/vfs/test_listing_version.py208# A declarer gets a harness proving that its check and its fill agree, soCOMMENT
MEDIUM⚡python/tests/vfs/test_read_revalidatable.py1189 # The write rows run each family's own harness through _fake, so aCOMMENT
MEDIUM⚡python/tests/vfs/test_read_revalidatable.py1190 # writable family is covered exactly when it has a harness; theCOMMENT
MEDIUMpython/tests/vfs/test_read_revalidatable.py256# places it. The index is the mount's, so a harness built before theCOMMENT
MEDIUM⚡python/tests/workspace/test_execute_options.py262# ── agent harness pattern ─────────────────────────────────────────COMMENT
MEDIUM⚡python/tests/commands/cli/builtin/ntn/test_api.py231 # The conformance harness closes stdin and every other line wouldCOMMENT
MEDIUMpython/tests/commands/cli/builtin/ntn/test_serde.py25# harness.COMMENT
MEDIUMpython/tests/commands/builtin/test_expand_unexpand.py176# differential harness ran 1548 more combinations of these lists againstCOMMENT
LOW⚡python/tests/commands/builtin/test_bc.py1361 # then the 16 in the base it just set.COMMENT
MEDIUMpython/mirage/runtime/js/quickjs/runtime.py54# The one-shot eval harness: inputs bind as globals, the source runsCOMMENT
MEDIUMinteg/metadata.py18# scenarios the declarative harness cannot express: it can run commands andCOMMENT
MEDIUMinteg/metadata.py21# and namespace support in the harness, not another case file.COMMENT
MEDIUMexamples/python/runtimes/docker/docker_eval.py27# harness to its stock `python3 -`: the value comes back as JSONCOMMENT
Fake / Example Data18 hits · 18 pts
SeverityFileLineSnippetContext
LOWpython/tests/core/google/test_drive.py44 mgr._access_token = "fake-token"CODE
LOWpython/tests/core/gdrive/conftest.py261 manager._access_token = "fake-token"CODE
LOWpython/tests/core/gdrive/conftest.py274 manager._access_token = "fake-token"CODE
LOWpython/tests/core/gdrive/test_stat.py41 mgr._access_token = "fake-token"CODE
LOWpython/tests/core/gdrive/test_read.py59 mgr._access_token = "fake-token"CODE
LOWpython/tests/core/gdrive/test_readdir.py44 mgr._access_token = "fake-token"CODE
LOWpython/tests/core/gdocs/test_write.py32 mgr._access_token = "fake-token"CODE
LOWpython/tests/core/gdocs/test_read.py40 mgr._access_token = "fake-token"CODE
LOWpython/tests/core/gmail/test_send.py33 mgr._access_token = "fake-token"CODE
LOWpython/tests/core/gmail/test_labels.py32 mgr._access_token = "fake-token"CODE
LOWpython/tests/core/gmail/test_messages.py40 mgr._access_token = "fake-token"CODE
LOWpython/mirage/core/slack/search.py249 "placeholder",CODE
LOWtypescript/packages/core/src/core/slack/search.ts235 'placeholder',CODE
LOW…ipt/packages/core/src/workspace/workspace/fill.test.ts195 registerSecrets('fake-key', FakeConfig, fetch)CODE
LOW…ipt/packages/core/src/workspace/workspace/fill.test.ts196 const ws = await makeWs({ API: { from: 'fake-key', ref: 'r' } })CODE
LOWtypescript/packages/browser/src/test-utils.ts481 const token = options.token ?? 'fake-token'CODE
LOW…/packages/node/src/runtime/sandbox/ssh/runtime.test.ts138 await writeFile(keyPath, 'fake-key')CODE
LOW…/packages/node/src/runtime/sandbox/ssh/runtime.test.ts147 privateKey: Buffer.from('fake-key'),CODE
Dead Code6 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMpython/tests/core/hf_hub/test_stream.py131CODE
MEDIUMpython/tests/commands/builtin/utils/test_operands.py120CODE
MEDIUMpython/tests/commands/builtin/generic/test_rg.py237CODE
MEDIUMpython/tests/commands/builtin/generic/test_cut.py43CODE
MEDIUMpython/tests/commands/builtin/generic/test_checksum.py122CODE
MEDIUMpython/mirage/shell/descriptors.py78CODE
Overly Generic Function Names8 hits · 9 pts
SeverityFileLineSnippetContext
LOWpython/tests/vfs/test_call.py89 async def helper(self, path: PathSpec) -> None:CODE
LOW⚡python/tests/commands/cli/builtin/git/test_combined.py83 lines[4] = "function handleRequest(request, response) {\n"CODE
LOW⚡python/tests/commands/cli/builtin/git/test_combined.py88 "@@@ -12,7 -12,7 +12,7 @@@ function handleRequest(request, respons\n"CODE
LOWpython/tests/e2e/test_find_pipe_while.py23 "src/utils/helpers.py": b"def helper(): pass\n",CODE
LOWtypescript/packages/core/src/core/langfuse/client.ts120function getData(body: unknown): Record<string, unknown>[] {CODE
LOW…core/src/workspace/integration_find_pipe_while.test.ts22 'src/utils/helpers.py': 'def helper(): pass\n',CODE
LOW…ges/core/src/commands/cli/builtin/git/combined.test.ts82 lines[4] = 'function handleRequest(request, response) {\n'CODE
LOW…ges/core/src/commands/cli/builtin/git/combined.test.ts90 '@@@ -12,7 -12,7 +12,7 @@@ function handleRequest(request, respons\n',CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMexamples/python/runtimes/daytona/create_sandbox.py15# Create a sandbox from the mirage-fuse snapshot, provision theCOMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/test_integ.yml68 # and runtime; workspace/abort owns only line orchestration.COMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtypescript/scripts/load-env.sh7# Usage:COMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWexamples/python/s3/s3.py185 # Read file to populate cache (cat declares cache, wc materializes)COMMENT