Repository Analysis

strukto-ai/mirage

The World's First Unified Virtual Filesystem For AI Agents

29.7 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of strukto-ai/mirage, a TypeScript project with 3,318 GitHub stars. SynthScan v2.0 examined 529,192 lines of code across 5546 source files, recording 11485 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 29.7 places this repository in the Moderate AI signal band.

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

29.7
Adjusted Score
29.7
Raw Score
100%
Time Factor
2026-07-14
Last Push
3.3K
Stars
TypeScript
Language
529.2K
Lines of Code
5.5K
Files
11.5K
Pattern Hits
2026-07-14
Scan Date
0.09
HC Hit Rate

What These Metrics Mean

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

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

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

Severity Breakdown

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

CRITICAL 0HIGH 497MEDIUM 594LOW 10394

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

Hyper-Verbose Identifiers4448 hits · 4958 pts
SeverityFileLineSnippetContext
LOWpython/tests/test_types_fingerprint.py18def test_file_stat_has_fingerprint_field():CODE
LOWpython/tests/test_types_fingerprint.py23def test_file_stat_fingerprint_defaults_none():CODE
LOWpython/tests/test_dry_run_types.py62def test_dry_run_result_serialization():CODE
LOWpython/tests/test_types.py35def test_aggr_none_inputs_is_none():CODE
LOWpython/tests/test_types.py40def test_aggr_keeps_single_safeguard():CODE
LOWpython/tests/test_types.py47def test_aggr_takes_smallest_positive_timeout():CODE
LOWpython/tests/test_types.py55def test_aggr_nonpositive_timeout_is_unbounded():CODE
LOWpython/tests/test_types.py62def test_aggr_takes_smallest_caps():CODE
LOWpython/tests/test_types.py70def test_aggr_error_beats_truncate():CODE
LOWpython/tests/test_types.py77def test_aggr_all_truncate_stays_truncate():CODE
LOWpython/tests/test_types.py84def test_every_field_declares_an_aggr_rule():CODE
LOWpython/tests/test_types.py91def test_pathspec_requires_resource_path():CODE
LOWpython/tests/test_types.py96def test_pathspec_raw_path_kept_when_given():CODE
LOWpython/tests/test_types.py104def test_pathspec_raw_path_defaults_to_virtual():CODE
LOWpython/tests/test_types.py111def test_word_text_passes_strings_through():CODE
LOWpython/tests/test_types.py115def test_word_text_renders_paths_as_typed():CODE
LOWpython/tests/test_types.py123def test_pathspec_dir_trims_resource_path():CODE
LOWpython/tests/test_types.py134def test_pathspec_dir_at_mount_root():CODE
LOWpython/tests/test_types.py141def test_pathspec_from_str_path_defaults_to_root_mounted():CODE
LOWpython/tests/test_types.py147def test_pathspec_from_str_path_explicit_resource_path():CODE
LOWpython/tests/test_types.py152def test_parse_mount_mode_words_and_aliases():CODE
LOWpython/tests/test_types.py160def test_parse_mount_mode_rejects_bit_style_forms():CODE
LOWpython/tests/provision/test_provision_types.py18def test_plan_result_defaults():CODE
LOWpython/tests/provision/test_provision_types.py25def test_plan_result_network_read_range():CODE
LOWpython/tests/provision/test_provision_types.py30def test_plan_result_network_read_exact():CODE
LOWpython/tests/provision/test_provision_types.py41def test_scaled_multiplies_cost():CODE
LOWpython/tests/provision/test_rollup.py35def test_rollup_pipe_unknown_cascades():CODE
LOWpython/tests/provision/test_rollup.py45def test_rollup_list_and_sums():CODE
LOWpython/tests/provision/test_rollup.py54def test_rollup_list_or_uses_range():CODE
LOWpython/tests/context/test_session_context.py44def test_no_session_is_unrestricted():CODE
LOWpython/tests/context/test_session_context.py51def test_unrestricted_session_keeps_mount_mode():CODE
LOWpython/tests/context/test_session_context.py60def test_missing_grant_denies_visibility(bound_session):CODE
LOWpython/tests/context/test_session_context.py65def test_root_mount_is_governed(bound_session):CODE
LOWpython/tests/context/test_session_context.py70def test_grant_narrows_mount_mode(bound_session):CODE
LOWpython/tests/context/test_session_context.py75def test_grant_cannot_widen_mount_mode(bound_session):CODE
LOWpython/tests/context/test_session_context.py80def test_prefix_normalization(bound_session):CODE
LOWpython/tests/context/test_session_context.py86def test_missing_grant_defaults_effective_to_read(bound_session):CODE
LOWpython/tests/core/test_timeutil.py20def test_to_iso_z_converts_utc_offset_to_z():CODE
LOWpython/tests/core/test_timeutil.py25def test_to_iso_z_normalizes_non_utc_to_z():CODE
LOWpython/tests/core/test_timeutil.py31def test_now_iso_uses_z_suffix():CODE
LOWpython/tests/core/test_timeutil.py37def test_epoch_to_iso_whole_second():CODE
LOWpython/tests/core/test_timeutil.py41def test_epoch_to_iso_truncates_sub_second():CODE
LOWpython/tests/core/langfuse/test_scope.py71def test_prompts_version_file():CODE
LOWpython/tests/core/langfuse/test_stat.py84async def test_stat_prompt_version_file(accessor, index):CODE
LOWpython/tests/core/langfuse/test_stat.py116async def test_stat_dataset_runs_dir(accessor, index):CODE
LOWpython/tests/core/langfuse/test_read.py112async def test_read_invalid_path_raises(accessor, index):CODE
LOWpython/tests/core/langfuse/test_readdir.py144async def test_readdir_dataset_contents(accessor, index):CODE
LOWpython/tests/core/langfuse/test_readdir.py155async def test_readdir_dotfile_raises(accessor, index):CODE
LOWpython/tests/core/langfuse/test_readdir.py165async def test_readdir_dotfile_nested_raises(accessor, index):CODE
LOWpython/tests/core/nextcloud/test_write_ops.py29async def test_create_writes_empty_file(make_acc):CODE
LOWpython/tests/core/nextcloud/test_write_ops.py36async def test_mkdir_creates_collection(make_acc):CODE
LOWpython/tests/core/nextcloud/test_write_ops.py43async def test_copy_duplicates_file(make_acc):CODE
LOWpython/tests/core/nextcloud/test_write_ops.py61async def test_rm_r_removes_subtree(make_acc):CODE
LOWpython/tests/core/nextcloud/test_write_ops.py74async def test_truncate_pads_and_shrinks(make_acc):CODE
LOWpython/tests/core/nextcloud/test_du.py8async def test_du_sums_file_sizes_recursive(make_acc):CODE
LOWpython/tests/core/nextcloud/test_du.py19async def test_du_all_returns_per_file_with_total(make_acc):CODE
LOWpython/tests/core/nextcloud/test_du.py31async def test_du_missing_returns_zero(make_acc):CODE
LOWpython/tests/core/nextcloud/test_du.py37async def test_du_of_file_returns_its_own_size(make_acc):CODE
LOWpython/tests/core/nextcloud/test_du.py43async def test_du_all_of_file_is_empty(make_acc):CODE
LOWpython/tests/core/nextcloud/test_find.py8async def test_find_root_returns_sorted_entries(make_acc):CODE
4388 more matches not shown…
Over-Commented Block4858 hits · 4838 pts
SeverityFileLineSnippetContext
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/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_dry_run_types.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/test_filetype_enum.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/test_types.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/provision/test_provision_types.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/provision/__init__.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/provision/test_rollup.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/context/test_session_context.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/__init__.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/test_timeutil.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/langfuse/test_scope.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/langfuse/__init__.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/langfuse/test_stat.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/langfuse/test_read.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/langfuse/test_readdir.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/s3/test_stat_directory.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/s3/test_index_metadata.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/s3/__init__.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/s3/test_readdir_paths.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/s3/test_stat_fingerprint.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/chroma/test_find.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/chroma/test_stat.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/chroma/test_walk.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/chroma/test_glob.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/chroma/test_client.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/chroma/test_path.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/chroma/test_readdir.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/discord/test_streams.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/discord/test_guilds.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/discord/test_members.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/discord/test_entry.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/discord/test_search.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/discord/test_paginate.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/discord/test_scope.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/discord/__init__.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/discord/test_channels.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/discord/test_stat.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/discord/test_read.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/discord/test_client.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/discord/test_readdir_date_layout.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/discord/test_history.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/discord/test_formatters.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/discord/test_readdir.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/github_ci/test_runs_cap.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/github_ci/__init__.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/github_ci/test_stat.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/redis/test_mkdir.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/redis/conftest.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/redis/test_set_attrs.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/redis/test_file_ops.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/redis/test_du.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/redis/__init__.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/redis/test_find.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/redis/test_stat.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/redis/test_glob.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
LOWpython/tests/core/redis/test_create.py1# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========COMMENT
4798 more matches not shown…
Cross-Language Confusion406 hits · 2390 pts
SeverityFileLineSnippetContext
HIGHpython/tests/shell/test_node_kind.py28 NodeKind.LIST: "true && false",CODE
HIGHpython/tests/shell/test_set_e.py27 out = shell.mirage("set -e; false || echo recovered; echo done")CODE
HIGHpython/tests/shell/test_set_e.py32 out = shell.mirage("set -e; false && echo skipped; echo done")CODE
HIGHpython/tests/shell/test_arith.py64 assert evaluate_arith("3 && 4", {})[0] == 1CODE
HIGHpython/tests/shell/test_parse.py72 node = parse("cmd1 && cmd2").named_children[0]CODE
HIGHpython/tests/shell/test_parse.py79 node = parse("cmd1 || cmd2").named_children[0]CODE
HIGHpython/tests/shell/test_parse.py118 """tree-sitter parses 'a || echo x > file' with > on the list.STRING
HIGHpython/tests/shell/test_parse.py124 node = parse("a || echo x > /out.txt").named_children[0]CODE
HIGHpython/tests/shell/test_parse.py132 """tree-sitter hoists > from 'a && echo x > file'."""STRING
HIGHpython/tests/shell/test_parse.py133 node = parse("a && echo x > /out.txt").named_children[0]CODE
HIGHpython/tests/shell/test_parse.py267 node = parse("cmd1 && cmd2 || cmd3").named_children[0]CODE
HIGHpython/tests/shell/test_parse.py267 node = parse("cmd1 && cmd2 || cmd3").named_children[0]CODE
HIGHpython/tests/shell/test_operators.py22 assert shell.mirage("true && echo yes") == shell.native("true && echo yes")CODE
HIGHpython/tests/shell/test_operators.py26 assert shell.mirage("false && echo yes") == shell.native(CODE
HIGHpython/tests/shell/test_operators.py27 "false && echo yes")CODE
HIGHpython/tests/shell/test_operators.py31 assert shell.mirage("true || echo fallback") == shell.native(CODE
HIGHpython/tests/shell/test_operators.py32 "true || echo fallback")CODE
HIGHpython/tests/shell/test_operators.py36 assert shell.mirage("false || echo fallback") == shell.native(CODE
HIGHpython/tests/shell/test_operators.py37 "false || echo fallback")CODE
HIGHpython/tests/shell/test_operators.py41 assert shell.mirage("true && echo a || echo b") == shell.native(CODE
HIGHpython/tests/shell/test_operators.py41 assert shell.mirage("true && echo a || echo b") == shell.native(CODE
HIGHpython/tests/shell/test_operators.py42 "true && echo a || echo b")CODE
HIGHpython/tests/shell/test_operators.py42 "true && echo a || echo b")CODE
HIGHpython/tests/shell/test_operators.py46 assert shell.mirage("false && echo a || echo b") == shell.native(CODE
HIGHpython/tests/shell/test_operators.py46 assert shell.mirage("false && echo a || echo b") == shell.native(CODE
HIGHpython/tests/shell/test_operators.py47 "false && echo a || echo b")CODE
HIGHpython/tests/shell/test_operators.py47 "false && echo a || echo b")CODE
HIGHpython/tests/shell/test_operators.py64 cmd = "true && true && echo all_true"CODE
HIGHpython/tests/shell/test_operators.py69 cmd = "false || false || echo last_resort"CODE
HIGHpython/tests/shell/test_operators.py74 cmd = "echo a; false && echo b; echo c"CODE
HIGHpython/tests/shell/test_operators.py85 m = shell.mirage("grep hello /data/f.txt && echo found")CODE
HIGHpython/tests/shell/test_operators.py86 n = shell.native("grep hello f.txt && echo found")CODE
HIGHpython/tests/shell/test_operators.py92 m = shell.mirage("grep nope /data/f.txt || echo missing")CODE
HIGHpython/tests/shell/test_operators.py93 n = shell.native("grep nope f.txt || echo missing")CODE
HIGHpython/tests/shell/test_barrier.py34 cmd_m = "grep -q hello /data/f.txt && echo yes"CODE
HIGHpython/tests/shell/test_barrier.py35 cmd_n = "grep -q hello f.txt && echo yes"CODE
HIGHpython/tests/shell/test_barrier.py41 cmd_m = "grep -q missing /data/f.txt && echo yes"CODE
HIGHpython/tests/shell/test_barrier.py42 cmd_n = "grep -q missing f.txt && echo yes"CODE
HIGHpython/tests/shell/test_barrier.py48 cmd_m = "grep -q missing /data/f.txt || echo fallback"CODE
HIGHpython/tests/shell/test_barrier.py49 cmd_n = "grep -q missing f.txt || echo fallback"CODE
HIGHpython/tests/shell/test_barrier.py77 cmd = "echo a && echo b"CODE
HIGHpython/tests/shell/test_barrier.py82 cmd = "echo a || echo b"CODE
HIGHpython/tests/shell/test_barrier.py87 assert shell.mirage_exit("false && echo yes") == shell.native_exit(CODE
HIGHpython/tests/shell/test_barrier.py88 "false && echo yes")CODE
HIGHpython/tests/shell/test_barrier.py92 assert shell.mirage_exit("true || echo no") == shell.native_exit(CODE
HIGHpython/tests/shell/test_barrier.py93 "true || echo no")CODE
HIGHpython/tests/shell/test_dev.py25 cmd = "cat /data/nope.txt 2>/dev/null || echo recovered"CODE
HIGHpython/tests/shell/test_dev.py30 cmd = ("if cat /data/nope.txt 2>/dev/null; "CODE
HIGHpython/tests/shell/test_dev.py45 cmd = "if [ -f /dev/null ]; then echo exists; fi"CODE
HIGHpython/tests/shell/test_helpers.py135 left, op, right = get_list_parts(_first("echo a && echo b"))CODE
HIGHpython/tests/shell/test_helpers.py140 left, op, right = get_list_parts(_first("echo a || echo b"))CODE
HIGHpython/tests/shell/test_call_stack.py26 cs.push(["a", "b", "c"])CODE
HIGHpython/tests/shell/test_call_stack.py38 cs.push(["a", "b", "c"])CODE
HIGHpython/tests/shell/test_call_stack.py46 cs.push(["a", "b", "c", "d"])CODE
HIGHpython/tests/shell/test_call_stack.py53 cs.push(["x", "y"])CODE
HIGHpython/tests/shell/test_call_stack.py76 cs.push()CODE
HIGHpython/tests/shell/test_call_stack.py85 cs.push()CODE
HIGHpython/tests/shell/test_call_stack.py87 cs.push()CODE
HIGHpython/tests/shell/test_call_stack.py96 cs.push(["a"], function_name="greet")CODE
HIGHpython/tests/shell/test_call_stack.py105 cs.push([], function_name="f")CODE
346 more matches not shown…
Decorative Section Separators588 hits · 1902 pts
SeverityFileLineSnippetContext
MEDIUMpython/tests/core/discord/test_scope.py62# ── root ──────────────────────────────────────COMMENT
MEDIUMpython/tests/core/discord/test_scope.py78# ── guild ─────────────────────────────────────COMMENT
MEDIUMpython/tests/core/discord/test_scope.py104# ── channel ───────────────────────────────────COMMENT
MEDIUMpython/tests/core/discord/test_scope.py117# ── date / messages / files ────────────────────COMMENT
MEDIUMpython/tests/core/discord/test_scope.py165# ── PathSpec ─────────────────────────────────COMMENT
MEDIUMpython/tests/cache/file/test_io.py165# ── cache invalidation ──────────────────────────────────────────────────COMMENT
MEDIUMpython/tests/cache/file/test_io.py177# ── edge cases ───────────────────────────────────────────────────────────COMMENT
MEDIUMpython/tests/cache/file/test_io.py41# ── cache population via apply_io ────────────────────────────────────────COMMENT
MEDIUMpython/tests/cache/file/test_io.py93# ── backend fingerprint threading ───────────────────────────────────────COMMENT
MEDIUMpython/tests/cache/file/test_io.py195# ── background drain ────────────────────────────────────────────────────COMMENT
MEDIUMpython/tests/cache/file/test_io.py238# ── max_drain_bytes (cancellable cache drain) ───────────────────────────COMMENT
MEDIUMpython/tests/shell/test_quoting_coverage.py60# ── paths with spaces ──────────────────────────────────────COMMENT
MEDIUMpython/tests/shell/test_quoting_coverage.py87# ── paths with special chars ───────────────────────────────COMMENT
MEDIUMpython/tests/shell/test_quoting_coverage.py97# ── unicode in paths ───────────────────────────────────────COMMENT
MEDIUMpython/tests/shell/test_quoting_coverage.py113# ── env vars in paths ──────────────────────────────────────COMMENT
MEDIUMpython/tests/shell/test_quoting_coverage.py139# ── command substitution in args ──────────────────────────COMMENT
MEDIUMpython/tests/shell/test_quoting_coverage.py156# ── escaping ───────────────────────────────────────────────COMMENT
MEDIUMpython/tests/shell/test_quoting_coverage.py181# ── unquoted backslash escapes (POSIX §2.2.1) ──────────────COMMENT
MEDIUMpython/tests/shell/test_quoting_coverage.py219# ── edge cases ─────────────────────────────────────────────COMMENT
MEDIUMpython/tests/shell/test_helpers.py330# ── negated command ──────────────────────────────COMMENT
MEDIUMpython/tests/shell/test_helpers.py340# ── heredoc ──────────────────────────────────────COMMENT
MEDIUMpython/tests/shell/test_helpers.py363# ── expansion nodes ──────────────────────────────COMMENT
MEDIUMpython/tests/shell/test_helpers.py431# ── quotes and escapes ──────────────────────────COMMENT
MEDIUMpython/tests/shell/test_helpers.py490# ── multi-statement bodies ─────────────────────COMMENT
MEDIUMpython/tests/shell/test_helpers.py547# ── redirect target types ──────────────────────COMMENT
MEDIUMpython/tests/shell/test_helpers.py584# ── python command parsing ─────────────────────COMMENT
MEDIUMpython/tests/shell/test_helpers.py352# ── process substitution ─────────────────────────COMMENT
MEDIUMpython/tests/shell/test_helpers.py401# ── edge cases ───────────────────────────────────COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py53# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py55# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py86# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py88# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py122# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py124# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py154# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py156# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py191# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py193# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py242# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py244# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py297# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py299# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py324# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py326# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py335# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py337# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py353# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py355# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py412# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py414# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py270# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/integration/test_shell_patterns.py272# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/workspace/test_provider_integration.py39# ═══════════════════════════════════════════════COMMENT
MEDIUMpython/tests/workspace/test_provider_integration.py41# ═══════════════════════════════════════════════COMMENT
MEDIUMpython/tests/workspace/test_provider_integration.py115# ═══════════════════════════════════════════════COMMENT
MEDIUMpython/tests/workspace/test_provider_integration.py117# ═══════════════════════════════════════════════COMMENT
MEDIUMpython/tests/workspace/test_provider_integration.py196# ═══════════════════════════════════════════════COMMENT
MEDIUMpython/tests/workspace/test_provider_integration.py198# ═══════════════════════════════════════════════COMMENT
MEDIUMpython/tests/workspace/test_mount_root_protection.py63# ════════════════════════════════════════════════════════════════════COMMENT
MEDIUMpython/tests/workspace/test_mount_root_protection.py65# ════════════════════════════════════════════════════════════════════COMMENT
528 more matches not shown…
Unused Imports511 hits · 499 pts
SeverityFileLineSnippetContext
LOWpython/tests/commands/builtin/github/conftest.py18CODE
LOWpython/mirage/__init__.py16CODE
LOWpython/mirage/__init__.py17CODE
LOWpython/mirage/__init__.py18CODE
LOWpython/mirage/__init__.py19CODE
LOWpython/mirage/__init__.py19CODE
LOWpython/mirage/__init__.py20CODE
LOWpython/mirage/__init__.py20CODE
LOWpython/mirage/__init__.py20CODE
LOWpython/mirage/__init__.py21CODE
LOWpython/mirage/__init__.py22CODE
LOWpython/mirage/__init__.py23CODE
LOWpython/mirage/provision/__init__.py15CODE
LOWpython/mirage/provision/__init__.py15CODE
LOWpython/mirage/provision/__init__.py15CODE
LOWpython/mirage/provision/__init__.py15CODE
LOWpython/mirage/provision/__init__.py15CODE
LOWpython/mirage/provision/__init__.py15CODE
LOWpython/mirage/provision/__init__.py15CODE
LOWpython/mirage/context/session_context.py21CODE
LOWpython/mirage/context/__init__.py15CODE
LOWpython/mirage/context/__init__.py15CODE
LOWpython/mirage/context/__init__.py15CODE
LOWpython/mirage/context/__init__.py15CODE
LOWpython/mirage/context/__init__.py15CODE
LOWpython/mirage/core/s3/__init__.py15CODE
LOWpython/mirage/core/s3/__init__.py16CODE
LOWpython/mirage/core/s3/__init__.py17CODE
LOWpython/mirage/core/s3/__init__.py17CODE
LOWpython/mirage/core/s3/__init__.py18CODE
LOWpython/mirage/core/s3/__init__.py19CODE
LOWpython/mirage/core/s3/__init__.py20CODE
LOWpython/mirage/core/s3/__init__.py21CODE
LOWpython/mirage/core/s3/__init__.py22CODE
LOWpython/mirage/core/s3/__init__.py23CODE
LOWpython/mirage/core/s3/__init__.py24CODE
LOWpython/mirage/core/s3/__init__.py25CODE
LOWpython/mirage/core/s3/__init__.py26CODE
LOWpython/mirage/core/s3/__init__.py27CODE
LOWpython/mirage/core/s3/__init__.py27CODE
LOWpython/mirage/core/s3/__init__.py28CODE
LOWpython/mirage/core/s3/__init__.py29CODE
LOWpython/mirage/core/s3/__init__.py30CODE
LOWpython/mirage/core/redis/__init__.py15CODE
LOWpython/mirage/core/redis/__init__.py16CODE
LOWpython/mirage/core/redis/__init__.py17CODE
LOWpython/mirage/core/redis/__init__.py18CODE
LOWpython/mirage/core/redis/__init__.py18CODE
LOWpython/mirage/core/redis/__init__.py19CODE
LOWpython/mirage/core/redis/__init__.py20CODE
LOWpython/mirage/core/redis/__init__.py21CODE
LOWpython/mirage/core/redis/__init__.py22CODE
LOWpython/mirage/core/redis/__init__.py23CODE
LOWpython/mirage/core/redis/__init__.py24CODE
LOWpython/mirage/core/redis/__init__.py25CODE
LOWpython/mirage/core/redis/__init__.py26CODE
LOWpython/mirage/core/redis/__init__.py27CODE
LOWpython/mirage/core/redis/__init__.py28CODE
LOWpython/mirage/core/redis/__init__.py29CODE
LOWpython/mirage/core/redis/__init__.py30CODE
451 more matches not shown…
Cross-Language Confusion (JS/TS)54 hits · 338 pts
SeverityFileLineSnippetContext
HIGH…s/core/src/workspace/executor/python/mirage_fs_shim.ts44 return FalseCODE
HIGH…s/core/src/workspace/executor/python/mirage_fs_shim.ts47 return TrueCODE
HIGH…s/core/src/workspace/executor/python/mirage_fs_shim.ts48 return FalseCODE
HIGH…s/core/src/workspace/executor/python/mirage_fs_shim.ts53 return TrueCODE
HIGH…s/core/src/workspace/executor/python/mirage_fs_shim.ts54 return FalseCODE
HIGH…s/core/src/workspace/executor/python/mirage_fs_shim.ts113 return NoneCODE
HIGH…s/core/src/workspace/executor/python/mirage_fs_shim.ts120 return NoneCODE
HIGH…s/core/src/workspace/executor/python/mirage_fs_shim.ts125 return TrueCODE
HIGH…s/core/src/workspace/executor/python/mirage_fs_shim.ts127 return FalseCODE
HIGH…s/core/src/workspace/executor/python/mirage_fs_shim.ts129 return FalseCODE
HIGH…s/core/src/workspace/executor/python/mirage_fs_shim.ts167 return FalseCODE
HIGH…s/core/src/workspace/executor/python/mirage_fs_shim.ts173 return TrueCODE
HIGH…s/core/src/workspace/executor/python/mirage_fs_shim.ts184 return TrueCODE
HIGH…s/core/src/workspace/executor/python/mirage_fs_shim.ts188 return NoneCODE
HIGH…packages/core/src/workspace/executor/python/wrapper.ts56elif _codeobj is not False:CODE
HIGH…packages/core/src/workspace/executor/python/wrapper.ts69 elif isinstance(_code, bool):CODE
HIGH…packages/core/src/workspace/executor/python/wrapper.ts71 elif isinstance(_code, int):CODE
HIGH…packages/core/src/workspace/executor/python/wrapper.ts124 elif isinstance(_code, bool):CODE
HIGH…packages/core/src/workspace/executor/python/wrapper.ts126 elif isinstance(_code, int):CODE
HIGHinteg/runtime.ts43print('ram:', ram)CODE
HIGHinteg/runtime.ts44print('s3:', s3)CODE
HIGHinteg/runtime.ts45print('argv sum:', int(argv[1]) + int(argv[2]))CODE
HIGHexamples/typescript/s3/s3_write.ts198 print(res.stdout)CODE
HIGHexamples/typescript/redis/redis.ts38 print(res.stdout)CODE
HIGHexamples/typescript/redis/redis.ts91 print(cpOut.stdout)CODE
HIGHexamples/typescript/redis/redis.ts96 print(mvOut.stdout)CODE
HIGHexamples/typescript/redis/redis.ts101 print(rmOut.stdout)CODE
HIGHexamples/typescript/redis/redis.ts110 print(uniqOut.stdout)CODE
HIGHexamples/typescript/pyodide/ram.ts32print(f'hello, {name}!')CODE
HIGHexamples/typescript/pyodide/ram.ts33print(f'args: {sys.argv[1:]}')CODE
HIGHexamples/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
HIGHexamples/typescript/pyodide/script.ts28print(f"count: {len(records)}")CODE
HIGHexamples/typescript/pyodide/script.ts29print(f"keys: {sorted({k for r in records for k in r})}")CODE
HIGHexamples/typescript/pyodide/script.ts31 print(f" - {json.dumps(r)}")CODE
HIGHexamples/typescript/pyodide/vfs.ts84 print('read:', f.read())CODE
HIGHexamples/typescript/pyodide/vfs.ts87print('wrote /ram/out.txt')CODE
HIGHexamples/typescript/pyodide/vfs.ts100print('listdir:', os.listdir('/ram/synth/today'))CODE
HIGHexamples/typescript/pyodide/vfs.ts101print('read:', open('/ram/synth/today/note.md').read())CODE
HIGHexamples/typescript/pyodide/vfs.ts115 print('team:', team.get('name'), team.get('id'))CODE
HIGHexamples/typescript/pyodide/vfs.ts128 print('doc:', data.get('title') or list(data.keys())[:5])CODE
HIGHexamples/typescript/pyodide/vfs.ts139print('entries:', entries)CODE
HIGHexamples/typescript/pyodide/vfs.ts145 print(f'{p}:', data[:60])CODE
HIGHexamples/typescript/pyodide/vfs.ts159print('saved /ram/icon.png')CODE
HIGHexamples/typescript/pyodide/vfs.ts180print(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
HIGHexamples/typescript/ram/ram.ts62 print(cpOut.stdout)CODE
HIGHexamples/typescript/ram/ram.ts67 print(mvOut.stdout)CODE
HIGHexamples/typescript/ram/ram.ts72 print(rmOut.stdout)CODE
HIGHexamples/typescript/ram/ram.ts81 print(uniqOut.stdout)CODE
HIGHexamples/typescript/ram/ram.ts105 print(mvMeta.stdout)CODE
Modern Structural Boilerplate256 hits · 256 pts
SeverityFileLineSnippetContext
LOWpython/tests/workspace/test_find_unknown_predicate.py16async def _setup(ws: Workspace) -> None:CODE
LOWpython/tests/workspace/test_find_action_dispatch.py43async def _setup_html_files(ws: Workspace) -> None:CODE
LOWpython/tests/commands/builtin/github/conftest.py20__all__ = ["github_config", "mock_github_api"]CODE
LOWpython/mirage/__init__.py25__all__ = [CODE
LOWpython/mirage/provision/__init__.py19__all__ = [CODE
LOWpython/mirage/context/__init__.py21__all__ = [CODE
LOWpython/mirage/core/nextcloud/readdir.py13logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/s3/__init__.py32__all__ = [CODE
LOWpython/mirage/core/s3/readdir.py27logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/chroma/__init__.py1__all__ = []CODE
LOWpython/mirage/core/discord/stat.py27logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/discord/readdir.py34logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/github_ci/stat.py24logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/redis/__init__.py34__all__ = [CODE
LOWpython/mirage/core/google/tree_ops.py26logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/linear/__init__.py15__all__ = []CODE
LOWpython/mirage/core/linear/stat.py24logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/gdrive/stat.py26logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/gdrive/readdir.py25logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/databricks_volume/readdir.py27logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/ssh/readdir.py27logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/github/stat.py24logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/github/search.py24logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/history/__init__.py21__all__ = [CODE
LOWpython/mirage/core/sharepoint/_client.py16__all__ = [CODE
LOWpython/mirage/core/gsheets/_client.py22__all__ = [CODE
LOWpython/mirage/core/gsheets/read.py28logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/qdrant/query.py24logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/hf_buckets/readdir.py26logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/disk/__init__.py32__all__ = [CODE
LOWpython/mirage/core/slack/stat.py27logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/slack/readdir.py32logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/slack/readdir.py395__all__ = ["readdir", "is_dir_name", "VIRTUAL_ROOTS", "SlackScope"]CODE
LOWpython/mirage/core/trello/__init__.py15__all__ = []CODE
LOWpython/mirage/core/trello/stat.py24logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/jq/__init__.py21__all__ = [CODE
LOWpython/mirage/core/gdocs/_client.py22__all__ = [CODE
LOWpython/mirage/core/gdocs/read.py27logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/gslides/_client.py22__all__ = [CODE
LOWpython/mirage/core/gslides/read.py28logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/dify/__init__.py1__all__ = []CODE
LOWpython/mirage/core/dify/_client.py10logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/dify/search.py14logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/gmail/stat.py27logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/gmail/search.py131__all__ = [CODE
LOWpython/mirage/core/gmail/readdir.py30logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/gmail/read.py27logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/email/stat.py27logger = logging.getLogger(__name__)CODE
LOWpython/mirage/core/ram/__init__.py33__all__ = [CODE
LOWpython/mirage/cache/__init__.py19__all__ = [CODE
LOWpython/mirage/cache/file/io.py23logger = logging.getLogger(__name__)CODE
LOWpython/mirage/cache/file/__init__.py18__all__ = ["CacheEntry", "FileCacheMixin"]CODE
LOWpython/mirage/cache/index/__init__.py22__all__ = [CODE
LOWpython/mirage/shell/call_stack.py68 def set_positional(self, values: list[str]) -> None:CODE
LOWpython/mirage/shell/call_stack.py71 def set_local(self, name: str, value: str) -> None:CODE
LOWpython/mirage/shell/__init__.py18__all__ = [CODE
LOWpython/mirage/accessor/mongodb.py30logger = logging.getLogger(__name__)CODE
LOWpython/mirage/accessor/__init__.py20__all__ = [CODE
LOWpython/mirage/bridge/__init__.py18__all__ = ["run_async_from_sync", "run_in_thread"]CODE
LOWpython/mirage/workspace/runner.py22logger = logging.getLogger(__name__)CODE
196 more matches not shown…
Deep Nesting150 hits · 150 pts
SeverityFileLineSnippetContext
LOWpython/tests/core/chroma/conftest.py21CODE
LOWpython/tests/integration/test_cross_mount_matrix.py101CODE
LOWpython/tests/integration/test_cross_mount_matrix.py127CODE
LOWpython/tests/integration/test_snapshot_drift_live.py81CODE
LOWpython/tests/commands/native/test_cross_mount.py67CODE
LOWpython/tests/commands/builtin/test_multifile_guard.py89CODE
LOWpython/mirage/core/nextcloud/find.py11CODE
LOWpython/mirage/core/chroma/grep.py100CODE
LOWpython/mirage/core/chroma/search.py54CODE
LOWpython/mirage/core/redis/rename.py23CODE
LOWpython/mirage/core/onedrive/stream.py29CODE
LOWpython/mirage/core/onedrive/read.py35CODE
LOWpython/mirage/core/google/date_glob.py24CODE
LOWpython/mirage/core/linear/read.py31CODE
LOWpython/mirage/core/gdrive/readdir.py45CODE
LOWpython/mirage/core/sharepoint/stream.py16CODE
LOWpython/mirage/core/sharepoint/read.py22CODE
LOWpython/mirage/core/hf_buckets/find.py25CODE
LOWpython/mirage/core/disk/find.py34CODE
LOWpython/mirage/core/slack/scope.py42CODE
LOWpython/mirage/core/dify/tree.py90CODE
LOWpython/mirage/core/dify/tree.py141CODE
LOWpython/mirage/core/dify/search.py119CODE
LOWpython/mirage/core/gmail/messages.py136CODE
LOWpython/mirage/core/gmail/readdir.py70CODE
LOWpython/mirage/core/gmail/readdir.py143CODE
LOWpython/mirage/core/email/_parse.py49CODE
LOWpython/mirage/core/email/_client.py36CODE
LOWpython/mirage/core/email/readdir.py53CODE
LOWpython/mirage/core/ram/rename.py23CODE
LOWpython/mirage/cache/file/io.py64CODE
LOWpython/mirage/shell/helpers.py151CODE
LOWpython/mirage/shell/helpers.py288CODE
LOWpython/mirage/shell/helpers.py330CODE
LOWpython/mirage/workspace/dispatcher.py55CODE
LOWpython/mirage/workspace/workspace.py83CODE
LOWpython/mirage/workspace/provision/command.py81CODE
LOWpython/mirage/workspace/snapshot/manifest.py38CODE
LOWpython/mirage/workspace/snapshot/manifest.py130CODE
LOWpython/mirage/workspace/expand/globs.py99CODE
LOWpython/mirage/workspace/expand/variable.py142CODE
LOWpython/mirage/workspace/expand/redirects.py25CODE
LOWpython/mirage/workspace/expand/parts.py109CODE
LOWpython/mirage/workspace/expand/node.py41CODE
LOWpython/mirage/workspace/executor/command.py74CODE
LOWpython/mirage/workspace/executor/command.py269CODE
LOWpython/mirage/workspace/executor/command.py402CODE
LOW…thon/mirage/workspace/executor/find_action_dispatch.py21CODE
LOWpython/mirage/workspace/executor/redirect.py29CODE
LOWpython/mirage/workspace/executor/control.py144CODE
LOWpython/mirage/workspace/executor/control.py192CODE
LOWpython/mirage/workspace/executor/control.py286CODE
LOWpython/mirage/workspace/executor/control.py313CODE
LOWpython/mirage/workspace/executor/pipes.py29CODE
LOWpython/mirage/workspace/executor/fanout.py185CODE
LOWpython/mirage/workspace/executor/builtins/vars.py108CODE
LOWpython/mirage/workspace/executor/builtins/vars.py231CODE
LOWpython/mirage/workspace/executor/builtins/metadata.py398CODE
LOWpython/mirage/workspace/executor/builtins/shared.py128CODE
LOWpython/mirage/workspace/executor/builtins/text.py36CODE
90 more matches not shown…
Cross-File Repetition25 hits · 125 pts
SeverityFileLineSnippetContext
HIGHpython/mirage/commands/builtin/s3/_provision.py0walk paths, return (path, size) pairs. self-heals via stat fallback. order of resolution per path: 1. index lookup -- frSTRING
HIGHpython/mirage/commands/builtin/onedrive/_provision.py0walk paths, return (path, size) pairs. self-heals via stat fallback. order of resolution per path: 1. index lookup -- frSTRING
HIGHpython/mirage/commands/builtin/sharepoint/_provision.py0walk paths, return (path, size) pairs. self-heals via stat fallback. order of resolution per path: 1. index lookup -- frSTRING
HIGHpython/mirage/commands/builtin/s3/_provision.py0cost estimate for full file reads (cat, wc). sums index-known file sizes. if any path is unknown, marks precision unknowSTRING
HIGHpython/mirage/commands/builtin/onedrive/_provision.py0cost estimate for full file reads (cat, wc). sums index-known file sizes. if any path is unknown, marks precision unknowSTRING
HIGHpython/mirage/commands/builtin/sharepoint/_provision.py0cost estimate for full file reads (cat, wc). sums index-known file sizes. if any path is unknown, marks precision unknowSTRING
HIGHpython/mirage/commands/builtin/generic/zgrep.py0convert the raw flag bag into grepflags, the only string-keyed reads. args: fl (flagview): spec-validated view over the STRING
HIGHpython/mirage/commands/builtin/generic/rg.py0convert the raw flag bag into grepflags, the only string-keyed reads. args: fl (flagview): spec-validated view over the STRING
HIGHpython/mirage/commands/builtin/generic/grep.py0convert the raw flag bag into grepflags, the only string-keyed reads. args: fl (flagview): spec-validated view over the STRING
HIGHpython/mirage/resource/aliyun/prompt.py0\ {prefix} remote seaweedfs bucket (s3-compatible gateway). important: this is a remote mount. prefer targeted reads oveSTRING
HIGHpython/mirage/resource/ceph/prompt.py0\ {prefix} remote seaweedfs bucket (s3-compatible gateway). important: this is a remote mount. prefer targeted reads oveSTRING
HIGHpython/mirage/resource/backblaze/prompt.py0\ {prefix} remote seaweedfs bucket (s3-compatible gateway). important: this is a remote mount. prefer targeted reads oveSTRING
HIGHpython/mirage/resource/digitalocean/prompt.py0\ {prefix} remote seaweedfs bucket (s3-compatible gateway). important: this is a remote mount. prefer targeted reads oveSTRING
HIGHpython/mirage/resource/wasabi/prompt.py0\ {prefix} remote seaweedfs bucket (s3-compatible gateway). important: this is a remote mount. prefer targeted reads oveSTRING
HIGHpython/mirage/resource/minio/prompt.py0\ {prefix} remote seaweedfs bucket (s3-compatible gateway). important: this is a remote mount. prefer targeted reads oveSTRING
HIGHpython/mirage/resource/qingstor/prompt.py0\ {prefix} remote seaweedfs bucket (s3-compatible gateway). important: this is a remote mount. prefer targeted reads oveSTRING
HIGHpython/mirage/resource/scaleway/prompt.py0\ {prefix} remote seaweedfs bucket (s3-compatible gateway). important: this is a remote mount. prefer targeted reads oveSTRING
HIGHpython/mirage/resource/tencent/prompt.py0\ {prefix} remote seaweedfs bucket (s3-compatible gateway). important: this is a remote mount. prefer targeted reads oveSTRING
HIGHpython/mirage/resource/seaweedfs/prompt.py0\ {prefix} remote seaweedfs bucket (s3-compatible gateway). important: this is a remote mount. prefer targeted reads oveSTRING
HIGHpython/mirage/resource/gsheets/sheet_entry.py0sanitize a document title for use in filenames. args: title (str): raw document title. returns: str: sanitized title, maSTRING
HIGHpython/mirage/resource/gdocs/doc_entry.py0sanitize a document title for use in filenames. args: title (str): raw document title. returns: str: sanitized title, maSTRING
HIGHpython/mirage/resource/gslides/slide_entry.py0sanitize a document title for use in filenames. args: title (str): raw document title. returns: str: sanitized title, maSTRING
HIGHpython/mirage/resource/gsheets/sheet_entry.py0build a filename from title, doc id, and modified date. args: title (str): raw document title. doc_id (str): google slidSTRING
HIGHpython/mirage/resource/gdocs/doc_entry.py0build a filename from title, doc id, and modified date. args: title (str): raw document title. doc_id (str): google slidSTRING
HIGHpython/mirage/resource/gslides/slide_entry.py0build a filename from title, doc id, and modified date. args: title (str): raw document title. doc_id (str): google slidSTRING
Excessive Try-Catch Wrapping94 hits · 96 pts
SeverityFileLineSnippetContext
LOWpython/tests/integration/test_snapshot_drift_live.py64 except Exception:CODE
LOWpython/tests/integration/test_snapshot_drift_live.py103 except Exception:CODE
MEDIUMpython/tests/integration/test_snapshot_drift_live.py61def _versioning_enabled() -> bool:CODE
LOWpython/mirage/core/s3/truncate.py31 except Exception as exc:CODE
LOWpython/mirage/core/s3/stream.py61 except Exception as exc:CODE
LOWpython/mirage/core/s3/stream.py110 except Exception as exc:CODE
LOWpython/mirage/core/s3/stat.py109 except Exception as exc:CODE
LOWpython/mirage/core/s3/read.py84 except Exception as exc:CODE
LOWpython/mirage/core/chroma/tree.py34 except Exception as exc:CODE
LOWpython/mirage/core/discord/stat.py48 except Exception as exc:CODE
LOWpython/mirage/core/github_ci/stat.py47 except Exception as exc:CODE
LOWpython/mirage/core/google/tree_ops.py65 except Exception as exc:CODE
LOWpython/mirage/core/linear/stat.py45 except Exception as exc:CODE
LOWpython/mirage/core/gdrive/stream.py60 except Exception:CODE
LOWpython/mirage/core/gdrive/stat.py51 except Exception as exc:CODE
LOWpython/mirage/core/gdrive/readdir.py133 except Exception:CODE
LOWpython/mirage/core/gdrive/read.py58 except Exception:CODE
LOWpython/mirage/core/databricks_volume/write.py49 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/write.py55 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/write.py92 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.py70 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/mkdir.py56 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/stat.py70 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/stat.py106 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/unlink.py50 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/readdir.py55 except Exception as exc:CODE
LOWpython/mirage/core/databricks_volume/read.py103 except Exception as exc:CODE
LOWpython/mirage/core/filetype/hdf5.py37 except Exception:CODE
LOWpython/mirage/core/github/stat.py54 except Exception as exc:CODE
LOWpython/mirage/core/github/search.py84 except Exception as exc:CODE
LOWpython/mirage/core/gsheets/read.py82 except Exception as exc:CODE
LOWpython/mirage/core/slack/stat.py60 except Exception as exc:CODE
LOWpython/mirage/core/trello/stat.py48 except Exception as exc:CODE
LOWpython/mirage/core/gdocs/read.py54 except Exception as exc:CODE
LOWpython/mirage/core/gslides/read.py56 except Exception as exc:CODE
LOWpython/mirage/core/gmail/stat.py67 except Exception as exc:CODE
LOWpython/mirage/core/gmail/readdir.py197 except Exception as e:CODE
LOWpython/mirage/core/gmail/readdir.py242 except Exception as e:CODE
LOWpython/mirage/core/gmail/read.py48 except Exception as exc:CODE
LOWpython/mirage/core/email/stat.py62 except Exception as exc:CODE
LOWpython/mirage/core/email/readdir.py49 except Exception:CODE
LOWpython/mirage/cache/file/io.py132 except Exception:CODE
LOWpython/mirage/shell/job_table.py155 except Exception as exc:CODE
LOWpython/mirage/workspace/runner.py118 except Exception:CODE
LOWpython/mirage/workspace/workspace.py293 except Exception:CODE
LOWpython/mirage/workspace/workspace.py810 except Exception as exc:CODE
LOWpython/mirage/workspace/mount/registry.py320 except Exception:CODE
LOWpython/mirage/workspace/executor/fanout.py301 except Exception:CODE
LOWpython/mirage/workspace/node/program.py79 except Exception as exc:CODE
LOWpython/mirage/io/stream.py103 except Exception as exc:CODE
LOWpython/mirage/agents/openhands/workspace.py191 except Exception as e:CODE
LOWpython/mirage/agents/openhands/workspace.py219 except Exception as e:CODE
LOWpython/mirage/server/registry.py142 except Exception:CODE
LOWpython/mirage/server/routers/workspaces.py56 except Exception:CODE
LOWpython/mirage/commands/builtin/grep_helper.py546 except Exception as exc:CODE
LOWpython/mirage/commands/builtin/grep_helper.py572 except Exception as exc:CODE
LOWpython/mirage/commands/builtin/file_helper.py50 except Exception:CODE
34 more matches not shown…
Docstring Block Structure12 hits · 60 pts
SeverityFileLineSnippetContext
HIGHpython/mirage/config.py74Replace ``${VAR}`` placeholders with values from ``env``. Args: value (Any): scalar, dict, or list to walk.STRING
HIGHpython/mirage/shell/arith.py369Evaluate a bash arithmetic expression. Implements bash's arithmetic grammar over 64-bit wrapping integers: commSTRING
HIGHpython/mirage/workspace/executor/builtins/dirs.py38Resolve a combined ``cd`` path, following symlinks per mode. Logical (``-L``, default) simplifies ``..`` textually STRING
HIGHpython/mirage/workspace/executor/builtins/metadata.py107Resolve touch -t/-d into an ISO timestamp. The -t stamp is the POSIX ``[[CC]YY]MMDDhhmm[.ss]`` form; strptime dSTRING
HIGHpython/mirage/server/daemon_config.py68Read the ``[daemon]`` table from ``home/config.toml``. Args: home (Path): the ``.mirage`` base directory. TSTRING
HIGHpython/mirage/server/registry.py92Wrap ``workspace`` in a runner and register it. Args: workspace (Workspace): freshly-constructed woSTRING
HIGHpython/mirage/server/registry.py114Stop the runner for ``workspace_id`` and drop it. Args: workspace_id (str): id to remove. STRING
HIGHpython/mirage/server/auth/config.py142Resolve daemon auth configuration from environment and config. Per key the environment variable wins over the ``[daSTRING
HIGHpython/mirage/server/auth/jwt.py30Verify a JWT against ``cfg`` and return its claims on success. Performs signature verification, algorithm pinning, STRING
HIGHpython/mirage/utils/path.py107Resolve symlink prefixes in ``path`` until stable. Repeatedly replaces the longest dict key that is a path-boundarySTRING
HIGHpython/mirage/cli/settings.py181Return the ``[daemon]`` table as written in the config file. Args: path (Path | None): config file. DefaultSTRING
HIGHpython/mirage/resource/registry.py168Construct a resource instance by its registry name. Resolves resource and config classes lazily via importlib, so STRING
AI Structural Patterns56 hits · 56 pts
SeverityFileLineSnippetContext
LOWpython/tests/core/databricks_volume/conftest.py161CODE
LOW…s/resource/databricks_volume/test_databricks_volume.py165CODE
LOWpython/mirage/core/nextcloud/find.py11CODE
LOWpython/mirage/core/s3/find.py24CODE
LOWpython/mirage/core/chroma/grep.py11CODE
LOWpython/mirage/core/chroma/find.py12CODE
LOWpython/mirage/core/redis/find.py24CODE
LOWpython/mirage/core/onedrive/find.py47CODE
LOWpython/mirage/core/notion/find.py46CODE
LOWpython/mirage/core/ssh/find.py25CODE
LOWpython/mirage/core/github/find.py23CODE
LOWpython/mirage/core/history/find.py23CODE
LOWpython/mirage/core/sharepoint/find.py37CODE
LOWpython/mirage/core/hf_buckets/find.py25CODE
LOWpython/mirage/core/disk/find.py34CODE
LOWpython/mirage/core/disk/find.py154CODE
LOWpython/mirage/core/dify/find.py12CODE
LOWpython/mirage/core/email/search.py50CODE
LOWpython/mirage/core/ram/find.py24CODE
LOWpython/mirage/workspace/workspace.py83CODE
LOWpython/mirage/workspace/workspace.py683CODE
LOWpython/mirage/commands/builtin/find_helper.py156CODE
LOW…n/mirage/commands/builtin/generic_bind/builders/sed.py80CODE
LOW…mirage/commands/builtin/generic_bind/builders/unzip.py26CODE
LOW…n/mirage/commands/builtin/generic_bind/builders/tar.py26CODE
LOW…n/mirage/commands/builtin/generic_bind/builders/cat.py30CODE
LOW…/mirage/commands/builtin/generic_bind/builders/sort.py28CODE
LOW…on/mirage/commands/builtin/generic_bind/builders/ls.py25CODE
LOW…on/mirage/commands/builtin/generic_bind/builders/cp.py43CODE
LOW…/mirage/commands/builtin/generic_bind/builders/uniq.py28CODE
LOW…/mirage/commands/builtin/generic_bind/builders/diff.py24CODE
LOW…/mirage/commands/builtin/generic_bind/builders/find.py27CODE
LOW…n/mirage/commands/builtin/generic_bind/builders/xxd.py28CODE
LOWpython/mirage/commands/builtin/chroma/find.py52CODE
LOWpython/mirage/commands/builtin/github_ci/find.py47CODE
LOWpython/mirage/commands/builtin/general/curl.py43CODE
LOWpython/mirage/commands/builtin/general/python.py41CODE
LOWpython/mirage/commands/builtin/general/wget.py27CODE
LOWpython/mirage/commands/builtin/github/find.py47CODE
LOWpython/mirage/commands/builtin/history/ls.py33CODE
LOWpython/mirage/commands/builtin/history/find.py33CODE
LOWpython/mirage/commands/builtin/history/history.py29CODE
LOWpython/mirage/commands/builtin/generic/tar.py107CODE
LOWpython/mirage/commands/builtin/generic/sort.py11CODE
LOWpython/mirage/commands/builtin/generic/mv.py26CODE
LOWpython/mirage/commands/builtin/generic/ls.py201CODE
LOWpython/mirage/commands/builtin/generic/cp.py56CODE
LOWpython/mirage/commands/builtin/generic/join.py116CODE
LOWpython/mirage/commands/builtin/generic/uniq.py88CODE
LOWpython/mirage/commands/builtin/generic/diff.py128CODE
LOWpython/mirage/commands/builtin/generic/find.py19CODE
LOWpython/mirage/commands/builtin/generic/find.py115CODE
LOWpython/mirage/commands/builtin/generic/xxd.py109CODE
LOWpython/mirage/commands/builtin/dify/find.py52CODE
LOWpython/mirage/commands/builtin/email/grep.py103CODE
LOWpython/mirage/commands/builtin/email/find.py60CODE
Fake / Example Data16 hits · 16 pts
SeverityFileLineSnippetContext
LOWpython/tests/core/discord/test_read.py52 fake_data = b'{"id":"100","content":"hello"}\n'CODE
LOWpython/tests/core/discord/test_read.py56 return_value=fake_data,CODE
LOWpython/tests/core/discord/test_read.py67 assert result == fake_dataCODE
LOWpython/tests/core/google/test_drive.py38 mgr._access_token = "fake-token"CODE
LOWpython/tests/core/gdrive/test_stat.py40 mgr._access_token = "fake-token"CODE
LOWpython/tests/core/gdrive/test_read.py40 mgr._access_token = "fake-token"CODE
LOWpython/tests/core/gdrive/test_readdir.py40 mgr._access_token = "fake-token"CODE
LOWpython/tests/core/gdrive/test_stream.py40 mgr._access_token = "fake-token"CODE
LOWpython/tests/core/gdocs/test_update.py33 mgr._access_token = "fake-token"CODE
LOWpython/tests/core/gdocs/test_read.py38 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.py35 mgr._access_token = "fake-token"CODE
LOWpython/tests/commands/builtin/gdrive/test_sed.py42 mgr._access_token = "fake-token"CODE
LOWpython/tests/commands/builtin/gdrive/test_read.py40 mgr._access_token = "fake-token"CODE
LOW…thon/tests/commands/builtin/gmail/test_gws_commands.py36 tm._access_token = "fake-token"CODE
Dead Code3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMpython/tests/core/google/test_drive.py195CODE
MEDIUMpython/tests/io/test_sync_bridge.py32CODE
MEDIUMpython/mirage/io/stream.py166CODE
AI Slop Vocabulary1 hit · 4 pts
SeverityFileLineSnippetContext
MEDIUMpython/tests/workspace/test_execute_options.py246# ── agent harness pattern ─────────────────────────────────────────COMMENT
Overly Generic Function Names4 hits · 4 pts
SeverityFileLineSnippetContext
LOWpython/tests/shell/test_parse.py209def test_function():CODE
LOWpython/tests/integration/test_find_pipe_while.py23 "src/utils/helpers.py": b"def helper(): pass\n",CODE
LOWtypescript/packages/core/src/core/langfuse/_client.ts109function 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
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMexamples/python/agents/pydantic_ai/slack_pdf_agent.py80# orchestration needed — unlike the OpenAI Agents SDK, where toolCOMMENT
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.py252 # Read file to populate cache (cat declares cache, wc materializes)COMMENT