Repository Analysis

marimo-team/marimo

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

16.7 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of marimo-team/marimo, a Python project with 21,823 GitHub stars. SynthScan v2.0 examined 823,408 lines of code across 4298 source files, recording 11723 pattern matches distributed across 27 syntactic categories. The overall adjusted score of 16.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).

16.7
Adjusted Score
16.7
Raw Score
100%
Time Factor
2026-07-14
Last Push
21.8K
Stars
Python
Language
823.4K
Lines of Code
4.3K
Files
11.7K
Pattern Hits
2026-07-14
Scan Date
0.07
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 4HIGH 291MEDIUM 767LOW 10661

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 11723 distinct pattern matches across 27 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 Identifiers7233 hits · 6407 pts
SeverityFileLineSnippetContext
LOWfrontend/e2e-tests/helper.ts104export async function exportAsHTMLAndTakeScreenshot(page: Page) {CODE
LOWfrontend/src/core/cells/cells.ts1909export function flattenTopLevelNotebookCells(CODE
LOWfrontend/src/core/cells/collapseConsoleOutputs.tsx80function assertStringOutputMessage(CODE
LOWfrontend/src/core/cells/utils.ts15export function notebookQueueOrRunningCount(state: NotebookState) {CODE
LOWfrontend/src/core/cells/scrollCellIntoView.ts16export function focusAndScrollCellIntoView({CODE
LOWfrontend/src/core/cells/scrollCellIntoView.ts107export function focusAndScrollCellOutputIntoView(cellId: CellId) {CODE
LOWfrontend/src/core/cells/session.ts39function mergeSessionAndNotebookCells(CODE
LOWfrontend/src/core/cells/session.ts165function createCellDataFromNotebook(CODE
LOWfrontend/src/core/cells/session.ts185function createCellRuntimeFromSession(CODE
LOWfrontend/src/core/cells/document-changes.ts667export function documentTransactionMiddleware(CODE
LOWfrontend/src/core/codemirror/editor-mount-scheduler.ts32export function createEditorMountScheduler(CODE
LOWfrontend/src/core/codemirror/extensions.ts78export function scrollActiveLineIntoViewExtension() {CODE
LOWfrontend/src/core/codemirror/cm.ts110function resolveCodeMirrorTooltipParent(CODE
LOWfrontend/src/core/codemirror/readonly/extension.ts24function getOrCreateIndicator(): HTMLDivElement {CODE
LOW…ntend/src/core/codemirror/go-to-definition/commands.ts50function findFirstMatchingVariable(CODE
LOW…ntend/src/core/codemirror/go-to-definition/commands.ts162function collectFunctionParameters(CODE
LOW…ntend/src/core/codemirror/go-to-definition/commands.ts216function collectMatchingDeclarations(CODE
LOW…ntend/src/core/codemirror/go-to-definition/commands.ts392function findScopedDefinitionPosition(CODE
LOWfrontend/src/core/codemirror/go-to-definition/utils.ts20function keymapBindingMatchesHotkey(CODE
LOWfrontend/src/core/codemirror/go-to-definition/utils.ts78export function goToDefinitionAtCursorPosition(view: EditorView): boolean {CODE
LOWfrontend/src/core/codemirror/go-to-definition/utils.ts112export function goToDefinitionWithLspFallback(view: EditorView): boolean {CODE
LOWfrontend/src/core/codemirror/cells/extensions.ts355function shouldAutorunMarkdownUpdate({CODE
LOWfrontend/src/core/codemirror/cells/debugger-state.ts75export function createCellBreakpointsAtom(cellId: CellId) {CODE
LOW…odemirror/cells/__tests__/debugger-decorations.test.ts29function createLineHighlighterEditor(CODE
LOW…odemirror/cells/__tests__/debugger-decorations.test.ts39function createBreakpointGutterEditor(CODE
LOWfrontend/src/core/codemirror/copilot/state.ts47export function setGitHubCopilotLoadingVersion(version: number) {CODE
LOWfrontend/src/core/codemirror/copilot/state.ts53export function clearGitHubCopilotLoadingVersion(expectedVersion: number) {CODE
LOWfrontend/src/core/codemirror/markdown/extension.ts17export function enhancedMarkdownExtension(CODE
LOW…ontend/src/core/codemirror/completion/Autocompleter.ts14function constructCompletionInfoNode(CODE
LOW…src/core/codemirror/completion/variable-completions.ts34export function createVariableInfoElement(variable: Variable): HTMLElement {CODE
LOWfrontend/src/core/codemirror/keymaps/keymaps.ts191function vimVisualModeArrowKeyBindings(): KeyBinding[] {CODE
LOWfrontend/src/core/codemirror/language/commands.ts12export function getCurrentLanguageAdapter(CODE
LOWfrontend/src/core/codemirror/language/extension.ts121function updateLanguageAdapterAndCode({CODE
LOWfrontend/src/core/codemirror/language/extension.ts207export function adaptiveLanguageConfiguration(opts: {CODE
LOWfrontend/src/core/codemirror/language/extension.ts237export function getInitialLanguageAdapter(state: EditorView["state"]) {CODE
LOWfrontend/src/core/codemirror/language/extension.ts299export function reconfigureLanguageEffect(CODE
LOWfrontend/src/core/codemirror/language/utils.ts38export function updateEditorCodeFromPython(CODE
LOWfrontend/src/core/codemirror/language/metadata.ts50export function setLanguageMetadataCommand(CODE
LOWfrontend/src/core/codemirror/language/metadata.ts63export function updateLanguageMetadataCommand(CODE
LOW…ntend/src/core/codemirror/language/languages/python.ts434export function customPythonLanguageSupport(): LanguageSupport {CODE
LOW…ror/language/languages/sql/banner-validation-errors.ts32export function clearAllSqlValidationErrors() {CODE
LOW…tend/src/core/codemirror/language/languages/sql/sql.ts318export function updateSQLDialectFromConnection(CODE
LOW…tend/src/core/codemirror/language/languages/sql/sql.ts356function connectionNameToParserDialect(CODE
LOW…demirror/language/languages/sql/completion-sources.tsx45export function customKeywordCompletionSource(): CompletionSource {CODE
LOW…end/src/core/codemirror/lsp/normalize-markdown-math.ts67export function normalizeLspDocumentation(CODE
LOW…end/src/core/codemirror/lsp/normalize-markdown-math.ts198function splitByInlineCodeSegments(text: string): InlineCodeSegment[] {CODE
LOWfrontend/src/core/codemirror/lsp/notebook-lsp.ts93function normalizeTextDocumentation(CODE
LOWfrontend/src/core/codemirror/lsp/notebook-lsp.ts112function normalizeCompletionResponse(CODE
LOWfrontend/src/core/codemirror/lsp/notebook-lsp.ts127function normalizeSignatureHelpResponse(CODE
LOWfrontend/src/core/codemirror/lsp/markdown-renderer.ts36export function createLspMarkdownRenderer(): (markdown: string) => string {CODE
LOWfrontend/src/core/codemirror/rtc/extension.ts222function languageObserverExtension(cellId: CellId) {CODE
LOWfrontend/src/core/codemirror/rtc/extension.ts322function languageListenerExtension(cellId: CellId) {CODE
LOWfrontend/src/core/codemirror/placeholder/extensions.ts10export function smartPlaceholderExtension(text: string): Extension[] {CODE
LOWfrontend/src/core/codemirror/placeholder/extensions.ts55export function clickablePlaceholderExtension(opts: {CODE
LOW…d/src/core/codemirror/reactive-references/extension.ts142function reactiveReferencesExtension(cellId: CellId) {CODE
LOW…nd/src/core/codemirror/reactive-references/analyzer.ts385 function isVariableDeclaredInClassScope(CODE
LOW…nd/src/core/codemirror/reactive-references/analyzer.ts400 function isVariableDeclaredLocally(CODE
LOWfrontend/src/core/documentation/doc-lookup.ts16export async function requestOutputDocumentation(CODE
LOW…ntend/src/core/websocket/useMarimoKernelConnection.tsx189export function useMarimoKernelConnection(opts: {CODE
LOWfrontend/src/core/websocket/useWebSocket.tsx25export function createConnectionTransport(CODE
7173 more matches not shown…
Unused Imports1816 hits · 1706 pts
SeverityFileLineSnippetContext
LOWfrontend/test_retina.py14CODE
LOWtests/conftest.py2CODE
LOWtests/test_tracer.py2CODE
LOWtests/test_tracer.py33CODE
LOWtests/test_tracer.py67CODE
LOWtests/test_tracer.py99CODE
LOWtests/test_loggers.py1CODE
LOWtests/utils.py1CODE
LOWtests/test_api.py1CODE
LOWtests/test_entrypoints.py1CODE
LOWtests/test_project_dependencies.py1CODE
LOWtests/mocks.py1CODE
LOWtests/_utils/test_deep_merge.py2CODE
LOWtests/_utils/test_flatten.py2CODE
LOWtests/_utils/test_file_watcher.py2CODE
LOWtests/_utils/test_inline_script_metadata.py1CODE
LOWtests/_utils/test_memoize.py1CODE
LOWtests/_utils/test_site_packages.py2CODE
LOWtests/_utils/test_marimo_path.py1CODE
LOWtests/_utils/test_hashable.py2CODE
LOWtests/_utils/test_distributor.py1CODE
LOWtests/_utils/test_lifespans.py1CODE
LOWtests/_utils/test_env.py2CODE
LOWtests/_utils/test_asyncio_utils.py1CODE
LOWtests/_utils/test_edit_distance.py2CODE
LOWtests/_utils/test_case.py2CODE
LOWtests/_utils/test_versions.py2CODE
LOWtests/_utils/test_subprocess.py2CODE
LOWtests/_utils/test_xdg.py2CODE
LOWtests/_utils/test_data_uri.py1CODE
LOWtests/_utils/test_parse_dataclass.py2CODE
LOWtests/_utils/test_formatter.py2CODE
LOWtests/_utils/test_format_signature.py2CODE
LOWtests/_utils/test_repr.py1CODE
LOWtests/_utils/test_narwhals_utils.py1CODE
LOWtests/_utils/test_paths.py2CODE
LOWtests/_utils/test_strings.py2CODE
LOWtests/_utils/test_platform.py2CODE
LOWtests/_utils/test_serial_task_runner.py4CODE
LOWtests/_utils/test_health_utils.py1CODE
LOWtests/_utils/test_background_task.py1CODE
LOWtests/_utils/test_dataclass_to_openapi.py1CODE
LOWtests/_utils/test_scripts.py1CODE
LOWtests/_utils/test_uv_tree.py1CODE
LOWtests/_utils/config/test_config_reader.py2CODE
LOWtests/_internal/test_internal_api.py1CODE
LOWtests/_lint/test_log_rules.py2CODE
LOWtests/_lint/test_lint_config_integration.py4CODE
LOWtests/_lint/test_rule_selector.py4CODE
LOWtests/_lint/test_wasm_rules.py4CODE
LOWtests/_lint/utils.py3CODE
LOWtests/_lint/test_reusable_definition_order.py2CODE
LOWtests/_lint/test_validate_graph.py2CODE
LOWtests/_lint/test_files/test_transitive_site_import.py9CODE
LOWtests/_lint/test_files/test_transitive_site_import.py16CODE
LOWtests/_lint/test_files/self_import_conflict.py9CODE
LOWtests/_lint/test_files/module_shadow.py9CODE
LOWtests/_lint/test_files/module_shadow.py16CODE
LOWtests/_lint/test_files/wasm_incompatible.py39CODE
LOWtests/_lint/test_files/wasm_incompatible.py46CODE
1756 more matches not shown…
Self-Referential Comments447 hits · 1361 pts
SeverityFileLineSnippetContext
MEDIUMtests/_utils/test_site_packages.py77 # Create a local Python fileCOMMENT
MEDIUMtests/_utils/test_site_packages.py87 # Create a local package directoryCOMMENT
MEDIUMtests/_utils/test_marimo_path.py55 # Create a temporary fileCOMMENT
MEDIUMtests/_utils/test_marimo_path.py72 # Create a temporary fileCOMMENT
MEDIUMtests/_utils/test_marimo_path.py83 # Create a temporary file with binary contentCOMMENT
MEDIUMtests/_utils/test_async_path.py403 # Create a future that resolves to TrueCOMMENT
MEDIUMtests/_utils/test_parse_dataclass.py744 # Create a deeply nested structureCOMMENT
MEDIUMtests/_utils/test_parse_dataclass.py278 # Create a dataclass that contains the experimental field,COMMENT
MEDIUMtests/_utils/test_parse_dataclass.py548 # Create a simple treeCOMMENT
MEDIUMtests/_utils/test_parse_dataclass.py746 for i in range(100): # Create a chain of 100 nodesCODE
MEDIUMtests/_utils/test_narwhals_utils.py93 # Create a class with __module__ = NoneCOMMENT
MEDIUMtests/_utils/test_paths.py41 # Create a path with .. in absolute pathCOMMENT
MEDIUMtests/_utils/test_paths.py56 # Create a real directoryCOMMENT
MEDIUMtests/_utils/test_paths.py60 # Create a file in the real directoryCOMMENT
MEDIUMtests/_utils/test_paths.py64 # Create a symlink to the real directoryCOMMENT
MEDIUMtests/_lint/test_lint_system.py77 # Create a notebook with violationsCOMMENT
MEDIUMtests/_lint/test_lint_system.py106 # Create a simple notebookCOMMENT
MEDIUMtests/_lint/test_lint_system.py126 # Create a simple notebookCOMMENT
MEDIUMtests/_lint/test_lint_system.py146 # Create a simple notebookCOMMENT
MEDIUMtests/_lint/test_lint_system.py165 # Create a notebook with unparsable cellCOMMENT
MEDIUMtests/_lint/test_async_context_system.py313 # Create a simple notebook (unparsable cells need special setup)COMMENT
MEDIUMtests/_lint/test_ignore_scripts.py9 # Create a temporary non-marimo Python fileCOMMENT
MEDIUMtests/_lint/test_ignore_scripts.py43 # Create a temporary marimo fileCOMMENT
MEDIUMtests/_lint/test_run_check.py24 # Create a non-notebook fileCOMMENT
MEDIUMtests/_lint/test_run_check.py389 # Create a notebook with violations (missing __generated_with)COMMENT
MEDIUMtests/_lint/test_json_formatter.py302 # Create a file that doesn't exist to get empty resultsCOMMENT
MEDIUMtests/_session/test_venv.py38 # Create a mock venv with PythonCOMMENT
MEDIUMtests/_session/test_venv.py80 # Create a mock venv with PythonCOMMENT
MEDIUMtests/_session/test_venv.py93 # Create a script file in tmp_pathCOMMENT
MEDIUMtests/_session/test_resume_strategies.py44 # Create an orphaned sessionCOMMENT
MEDIUMtests/_session/test_resume_strategies.py66 # Create an open sessionCOMMENT
MEDIUMtests/_session/test_resume_strategies.py87 # Create an orphaned session for a different fileCOMMENT
MEDIUMtests/_session/test_resume_strategies.py135 # Create an orphaned sessionCOMMENT
MEDIUMtests/_session/test_resume_strategies.py152 # Create an open sessionCOMMENT
MEDIUMtests/_session/managers/test_ipc.py129 # Create the underlying IPC queue managerCOMMENT
MEDIUMtests/_convert/markdown/test_markdown_from_ir.py276 # Create a notebook with an unparsable cell by directly constructing the IRCOMMENT
MEDIUMtests/_convert/ipynb/test_ipynb_to_ir.py1200 # Create a minimal notebook with pip installCOMMENT
MEDIUMtests/_convert/ipynb/test_ipynb_to_ir.py1221 # Create a notebook without pip installCOMMENT
MEDIUMtests/_convert/ipynb/test_ipynb_to_ir.py1242 # Create a notebook with existing PEP 723 metadataCOMMENT
MEDIUMtests/_convert/ipynb/test_from_ir.py805 # Create a notebook with stream output containing cleaned ANSICOMMENT
MEDIUMtests/_messaging/test_messaging_errors.py25 # Create a cycle error with mock edgesCOMMENT
MEDIUMtests/_messaging/test_print_override.py58 # Create a mock contextCOMMENT
MEDIUMtests/_messaging/test_print_override.py101 # Create a mock context with no execution contextCOMMENT
MEDIUMtests/_messaging/test_print_override.py131 # Create a mock contextCOMMENT
MEDIUMtests/_messaging/test_print_override.py169 # Create a mock contextCOMMENT
MEDIUMtests/_messaging/test_mimetypes.py37 # Create a valid mime bundleCOMMENT
MEDIUMtests/_messaging/test_types.py175 # Create a valid kernel messageCOMMENT
MEDIUMtests/_sql/test_ibis.py796 # Create a test table in the new catalogCOMMENT
MEDIUMtests/_sql/test_ibis.py915 # Create a temp table and a regular tableCOMMENT
MEDIUMtests/_sql/test_ibis.py947 # Create a table with same name in both main and temp catalogsCOMMENT
MEDIUMtests/_sql/test_ibis.py1008 # Create a simple table for testingCOMMENT
MEDIUMtests/_sql/test_sql_parse.py480 # Create a query with many columnsCOMMENT
MEDIUMtests/_sql/test_sql_error_handling.py364 # Create a table to generate "Did you mean?" suggestionsCOMMENT
MEDIUMtests/_sql/test_sql_error_handling.py57 # Create a test table firstCOMMENT
MEDIUMtests/_sql/test_sql_error_handling.py384 # Create a table to generate candidate binding suggestionsCOMMENT
MEDIUMtests/_sql/test_engines.py148 # Create a SQLite engineCOMMENT
MEDIUMtests/_sql/test_engines.py151 # Create a test tableCOMMENT
MEDIUMtests/_sql/test_engines.py207 # Create a SQLite engineCOMMENT
MEDIUMtests/_sql/test_engines.py210 # Create a test table with schemaCOMMENT
MEDIUMtests/_sql/test_engines.py250 # Create a test tableCOMMENT
387 more matches not shown…
Decorative Section Separators256 hits · 884 pts
SeverityFileLineSnippetContext
MEDIUMfrontend/islands/generate.py68 # ============================================================================COMMENT
MEDIUMfrontend/islands/generate.py70 # ============================================================================COMMENT
MEDIUMfrontend/islands/generate.py87 # ============================================================================COMMENT
MEDIUMfrontend/islands/generate.py89 # ============================================================================COMMENT
MEDIUMfrontend/islands/generate.py236 # ============================================================================COMMENT
MEDIUMfrontend/islands/generate.py238 # ============================================================================COMMENT
MEDIUMfrontend/islands/generate.py325 # ============================================================================COMMENT
MEDIUMfrontend/islands/generate.py327 # ============================================================================COMMENT
MEDIUMfrontend/islands/generate.py402 # ============================================================================COMMENT
MEDIUMfrontend/islands/generate.py404 # ============================================================================COMMENT
MEDIUMfrontend/islands/generate.py464 # ============================================================================COMMENT
MEDIUMfrontend/islands/generate.py466 # ============================================================================COMMENT
MEDIUMfrontend/islands/generate.py513 # ============================================================================COMMENT
MEDIUMfrontend/islands/generate.py515 # ============================================================================COMMENT
MEDIUMtests/_code_mode/test_cells_view.py388# ------------------------------------------------------------------COMMENT
MEDIUMtests/_code_mode/test_cells_view.py390# ------------------------------------------------------------------COMMENT
MEDIUMtests/_code_mode/test_cells_view.py393# ------------------------------------------------------------------COMMENT
MEDIUMtests/_code_mode/test_cells_view.py395# ------------------------------------------------------------------COMMENT
MEDIUMtests/_code_mode/test_cells_view.py208# ------------------------------------------------------------------COMMENT
MEDIUMtests/_code_mode/test_cells_view.py210# ------------------------------------------------------------------COMMENT
MEDIUMtests/_code_mode/test_cells_view.py229# ------------------------------------------------------------------COMMENT
MEDIUMtests/_code_mode/test_cells_view.py231# ------------------------------------------------------------------COMMENT
MEDIUMtests/_code_mode/test_cells_view.py284# ------------------------------------------------------------------COMMENT
MEDIUMtests/_code_mode/test_cells_view.py286# ------------------------------------------------------------------COMMENT
MEDIUMtests/_code_mode/test_cells_view.py318# ------------------------------------------------------------------COMMENT
MEDIUMtests/_code_mode/test_cells_view.py320# ------------------------------------------------------------------COMMENT
MEDIUMtests/_code_mode/test_cells_view.py350# ------------------------------------------------------------------COMMENT
MEDIUMtests/_code_mode/test_cells_view.py352# ------------------------------------------------------------------COMMENT
MEDIUMtests/_session/test_file_change_handler.py198# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_session/test_file_change_handler.py200# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_session/test_file_change_handler.py239# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_session/test_file_change_handler.py241# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_session/test_file_change_handler.py288# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_session/test_file_change_handler.py290# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_session/test_file_change_handler.py447# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_session/test_file_change_handler.py449# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_session/test_file_change_handler.py545# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_session/test_file_change_handler.py547# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_session/test_file_change_handler.py609# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_session/test_file_change_handler.py611# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_session/test_file_change_handler.py624# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_session/test_file_change_handler.py626# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_session/test_file_change_handler.py171# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_session/test_file_change_handler.py173# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_messaging/test_thread_local_proxy.py19# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_messaging/test_thread_local_proxy.py21# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_messaging/test_thread_local_proxy.py132# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_messaging/test_thread_local_proxy.py134# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_messaging/test_thread_local_proxy.py211# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_messaging/test_thread_local_proxy.py213# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_messaging/test_thread_local_proxy.py347# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_messaging/test_thread_local_proxy.py349# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_messaging/notebook/test_document.py298# ------------------------------------------------------------------COMMENT
MEDIUMtests/_messaging/notebook/test_document.py300# ------------------------------------------------------------------COMMENT
MEDIUMtests/_messaging/notebook/test_document.py363# ------------------------------------------------------------------COMMENT
MEDIUMtests/_messaging/notebook/test_document.py365# ------------------------------------------------------------------COMMENT
MEDIUMtests/_messaging/notebook/test_document.py375# ------------------------------------------------------------------COMMENT
MEDIUMtests/_messaging/notebook/test_document.py377# ------------------------------------------------------------------COMMENT
MEDIUMtests/_messaging/notebook/test_document.py462# ------------------------------------------------------------------COMMENT
MEDIUMtests/_messaging/notebook/test_document.py464# ------------------------------------------------------------------COMMENT
196 more matches not shown…
Excessive Try-Catch Wrapping610 hits · 650 pts
SeverityFileLineSnippetContext
MEDIUM…emirror/reactive-references/__tests__/analyzer.test.ts916def func():CODE
MEDIUM…emirror/reactive-references/__tests__/analyzer.test.ts925def func():CODE
LOW…emirror/reactive-references/__tests__/analyzer.test.ts253 except Exception as e:CODE
LOW…emirror/reactive-references/__tests__/analyzer.test.ts919 except Exception as e: # e is local to except blockCODE
LOW…emirror/reactive-references/__tests__/analyzer.test.ts929 except Exception as e: # e is local to except blockCODE
LOWfrontend/src/core/wasm/worker/worker.ts201 except Exception as e:CODE
LOWfrontend/src/core/wasm/worker/worker.ts221 except Exception as e:CODE
LOWtests/utils.py29 except Exception:CODE
LOWtests/_lint/test_lint_system.py228 except Exception:CODE
LOWtests/_lint/test_lint_system.py252 except Exception as e:CODE
LOWtests/_lint/test_async_context_system.py171 except Exception as e:CODE
MEDIUMtests/_lint/test_async_context_system.py165def get_graph():CODE
LOWtests/_sql/test_ibis.py1048 except Exception as e:CODE
LOWtests/_sql/test_sql_error_handling.py227 except Exception as e:CODE
LOWtests/_sql/test_sql_error_handling.py253 except Exception as e:CODE
LOWtests/_sql/test_sql_error_handling.py411 except Exception as e:CODE
LOWtests/_sql/test_sql_error_handling.py434 except Exception as e:CODE
LOWtests/_ast/test_transformers.py544 except Exception:CODE
MEDIUMtests/_server/test_file_manager.py381def _frontend_save() -> None:CODE
LOWtests/_server/test_file_manager.py385 except Exception as e: # pragma: no cover — should never happenCODE
LOWtests/_server/test_file_manager.py400 except Exception as e: # pragma: no coverCODE
LOWtests/_server/test_scratchpad_integration.py77 except Exception:CODE
LOWtests/_server/test_scratchpad_integration.py90 except Exception:CODE
LOWtests/_server/test_scratchpad_integration.py172 except Exception:CODE
LOWtests/_server/test_scratchpad_integration.py176 except Exception:CODE
MEDIUMtests/_server/test_scratchpad_integration.py74def _tail() -> str:CODE
LOWtests/_server/api/endpoints/test_ws_rtc.py134 except Exception:CODE
LOWtests/_server/export/test_exporter.py257 except Exception:CODE
MEDIUMtests/_plugins/ui/_impl/tables/test_narwhals.py1066 print(f"Error getting summary for column {column}: {e}")CODE
LOWtests/_plugins/ui/_impl/tables/test_narwhals.py1064 except Exception as e:CODE
LOWtests/_plugins/ui/_impl/dataframes/test_print_code.py446 except Exception as code_error:CODE
LOWtests/_plugins/ui/_impl/dataframes/test_print_code.py457 except Exception as real_error:CODE
LOWtests/_plugins/ui/_impl/dataframes/test_print_code.py783 except Exception as code_error:CODE
LOWtests/_plugins/ui/_impl/dataframes/test_print_code.py794 except Exception as real_error:CODE
LOWtests/_plugins/ui/_impl/dataframes/test_print_code.py1007 except Exception:CODE
LOWtests/_plugins/ui/_impl/dataframes/test_dataframe.py549 except Exception as e:CODE
LOWtests/_plugins/stateless/test_mpl.py51 except Exception as e:STRING
LOWtests/_cli/test_cli_export.py89 except Exception:CODE
LOWtests/_cli/test_endpoint.py66 except Exception as e:CODE
LOWtests/_cli/test_endpoint.py144 except Exception:CODE
LOWtests/_cli/test_cli.py131 except Exception as e:CODE
LOWtests/_runtime/test_runtime.py1225 except Exception:STRING
LOWtests/_runtime/test_runtime.py1246 except Exception:STRING
LOWtests/_save/test_cache.py295 except Exception as e:CODE
MEDIUMdocs/scripts/html_to_markdown.py409 print(f"Error: input directory {input_dir} does not exist")CODE
LOWexamples/ai/tools/dataset_analysis.py154 except Exception as e:STRING
LOWexamples/ai/tools/chat_with_tools.py199 except Exception as e:STRING
LOWexamples/ai/chat/bedrock_example.py217 except Exception as e:STRING
LOWexamples/ai/chat/mlx_chat.py78 except Exception as e:STRING
LOWexamples/ai/chat/mlx_chat.py114 except Exception as e:STRING
LOWexamples/frameworks/fastapi-endpoint/main.py56 except Exception as e:CODE
LOWmarimo/_tracer.py161 except Exception:CODE
LOWmarimo/_tracer.py221 except Exception as e:CODE
LOWmarimo/_tracer.py255 except Exception as e:CODE
LOWmarimo/_tracer.py282 except Exception as e:CODE
LOWmarimo/_tracer.py290except Exception as e:CODE
LOWmarimo/_loggers.py169 except Exception as e:CODE
LOWmarimo/_loggers.py185 except Exception as e:CODE
MEDIUMmarimo/_loggers.py181def make_log_directory() -> None:CODE
LOWmarimo/_utils/serial_task_runner.py88 except Exception as err:CODE
550 more matches not shown…
Cross-Language Confusion (JS/TS)82 hits · 458 pts
SeverityFileLineSnippetContext
HIGH…re/codemirror/go-to-definition/__tests__/utils.test.ts88print(a)`;CODE
HIGH…re/codemirror/go-to-definition/__tests__/utils.test.ts92 print(a)`;CODE
HIGH…re/codemirror/go-to-definition/__tests__/utils.test.ts150print(mymodule)`;CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts74 print(my_func)CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts84 print(x)CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts86print(x)`);CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts326 print("hi")CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts329 print(x)CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts331print(x)`);CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts340 print("hi")CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts343 print(x)CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts345 print(x)CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts354print(myVar)`);CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts364 print(myVar)CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts373print('myVar')`);CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts382 print('myVar')CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts41print(myVar)`);CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts51 print(myVar)CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts62print(my_func)`);CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts97 print(x)CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts99 print(x)CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts110 print(a)`;CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts123 print(a)CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts133 print(a)`;CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts145 print(a)CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts259print(my_sin)`;CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts271 print(my_sin)CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts279print(math)`;CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts294print(sin)`;CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts305 print(sin)CODE
HIGH…codemirror/go-to-definition/__tests__/commands.test.ts313print(sin)`;CODE
HIGH…rc/core/codemirror/markdown/__tests__/commands.test.ts673 print('Hello, world!')CODE
HIGH…rc/core/codemirror/markdown/__tests__/commands.test.ts691 print('Hello, world!')CODE
HIGH…c/core/codemirror/language/__tests__/extension.test.ts170 print('Hello')CODE
HIGH…c/core/codemirror/language/__tests__/extension.test.ts171 print('Goodbye')CODE
HIGH…c/core/codemirror/language/__tests__/extension.test.ts179 print('Hello')CODE
HIGH…c/core/codemirror/language/__tests__/extension.test.ts180 print('Goodbye')CODE
HIGH…c/core/codemirror/language/__tests__/extension.test.ts190 print('Hello')CODE
HIGH…c/core/codemirror/language/__tests__/extension.test.ts191 print('Goodbye')CODE
HIGH…src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts1365 print(math.sqrt(4))"CODE
HIGH…rc/core/codemirror/editing/__tests__/debugging.test.ts27 const initialDoc = 'def test():\n print("hello")\n return True';CODE
HIGH…rc/core/codemirror/editing/__tests__/debugging.test.ts45 'def test():\n breakpoint()\n print("hello")\n return True';CODE
HIGH…rc/core/codemirror/editing/__tests__/debugging.test.ts57 'def test():\n if True:\n print("nested")\n return True';CODE
HIGH…rc/core/codemirror/editing/__tests__/debugging.test.ts75 'def test():\n if True:\n breakpoint()\n print("nested")\n return True';CODE
HIGH…emirror/reactive-references/__tests__/analyzer.test.ts744 print(f.read())CODE
HIGH…emirror/reactive-references/__tests__/analyzer.test.ts747 print(i)CODE
HIGH…emirror/reactive-references/__tests__/analyzer.test.ts749print(y)`,CODE
HIGH…emirror/reactive-references/__tests__/analyzer.test.ts757 print(f.read())CODE
HIGH…emirror/reactive-references/__tests__/analyzer.test.ts760 print(i)CODE
HIGH…emirror/reactive-references/__tests__/analyzer.test.ts762 print(y)CODE
HIGH…emirror/reactive-references/__tests__/analyzer.test.ts254 print("Error", logger)CODE
HIGH…emirror/reactive-references/__tests__/analyzer.test.ts267 print(f.read())CODE
HIGH…emirror/reactive-references/__tests__/analyzer.test.ts544 print(mo, x, polars)`,CODE
HIGH…emirror/reactive-references/__tests__/analyzer.test.ts551 print(mo, x, polars)CODE
HIGH…emirror/reactive-references/__tests__/analyzer.test.ts721 print(a.read())`,CODE
HIGH…emirror/reactive-references/__tests__/analyzer.test.ts728 print(a.read())CODE
HIGH…emirror/reactive-references/__tests__/analyzer.test.ts1058 print(a, b)CODE
HIGH…emirror/reactive-references/__tests__/analyzer.test.ts1066 print(a, b)CODE
HIGH…emirror/reactive-references/__tests__/analyzer.test.ts1080 print(a, b)CODE
HIGH…emirror/reactive-references/__tests__/analyzer.test.ts1097 print(a, b)CODE
22 more matches not shown…
Docstring Block Structure85 hits · 425 pts
SeverityFileLineSnippetContext
HIGHtests/_utils/test_docs.py13This is the summary. Args: foo (str): Lorem ipsum bar (int): Dolor sit amet Attributes: STRING
HIGHtests/_utils/test_docs.py59 Stack items vertically, in a column. Combine with `hstack` to build a grid of items. Examples: BuiSTRING
HIGHmarimo/_utils/flatten.py221Flatten a nested structure. Returns the structure flattened and a repacking function. Replacing function expecSTRING
HIGHmarimo/_utils/parse_dataclass.py221Utility to parse a message as JSON, and instantiate into supplied type. Args: message: The message to parseSTRING
HIGHmarimo/_utils/dataclass_to_openapi.py243Convert a dataclass to an OpenAPI schema. Args: cls (Any): The dataclass type or instance to converSTRING
HIGHmarimo/_utils/strings.py99Standardize quotes in type annotations to use double quotes. This handles complex cases like Literal['foo', 'bar'] STRING
HIGHmarimo/_code_mode/_better_inspect.py201A compact, AI-friendly replacement for `help()`. Can be used standalone, or applied automatically via the `@helpablSTRING
HIGHmarimo/_code_mode/_context.py1356Capture a cell's rendered output as a PNG screenshot. Launches a headless Chromium browser (reused across callsSTRING
HIGHmarimo/_session/_venv.py74Get Python path from venv config. Args: venv_config: The venv config dict (from config.get("venv")). STRING
HIGHmarimo/_session/notebook/storage.py19Read content from storage. Args: path: Path to read from Returns: File contentSTRING
HIGHmarimo/_session/notebook/serializer.py134Get the appropriate notebook serializer for a file. Args: path: File path Returns: AppropriateSTRING
HIGHmarimo/_session/notebook/file_manager.py313Rename the notebook file. Args: new_filename: New filename (will be canonicalized) ReturnsSTRING
HIGHmarimo/_session/notebook/file_manager.py419Save the notebook. Args: request: Save request with cell data and options Returns: STRING
HIGHmarimo/_session/notebook/file_manager.py531Copy a notebook file. Args: request: Copy request with source and destination Returns: STRING
HIGHmarimo/_convert/common/dom_traversal.py173Replace attribute values in HTML using a custom function. Args: html: The HTML string to process alSTRING
HIGHmarimo/_convert/common/dom_traversal.py279Replace virtual file URLs with data URIs in HTML. This is a convenience function that uses replace_html_attributes STRING
HIGHmarimo/_convert/common/dom_traversal.py391Inline `public/`-prefixed file references as data URIs. Scans `html` for media tag attributes (e.g. `<img src="publSTRING
HIGHmarimo/_pyodide/pyodide_session.py201Parse a command string for WASM/Pyodide. Args: request: JSON string containing the request Returns: STRING
HIGHmarimo/_ai/text_to_notebook.py29 Generate a notebook from a text prompt. Args: prompt: The text prompt to generate a notebook from. STRING
HIGHmarimo/_ast/cell.py555 Run this cell and return its visual output and definitions. Use this method to run **named cells** andSTRING
HIGHmarimo/_ast/app.py648 Run the marimo app and return its outputs and definitions. Use this method to run marimo apps programmSTRING
HIGHmarimo/_ast/app.py823Embed a notebook into another notebook. The `embed` method lets you embed the output of a notebook intoSTRING
HIGHmarimo/_ast/load.py109Attempts to parse an app- should raise SyntaxError on failure. Args: filename: Path to a marimo notebook fiSTRING
HIGHmarimo/_ast/load.py170Load and return app from a marimo-generated module. Args: filename: Path to a marimo notebook file (.py or STRING
HIGHmarimo/_ast/cell_manager.py331Get the name of a cell by its ID. Args: cell_id: The ID of the cell Returns: sSTRING
HIGHmarimo/_ast/cell_manager.py469Get the cell data for a specific cell ID. Args: cell_id: The ID of the cell to get data for STRING
HIGHmarimo/_entrypoints/registry.py113Get a plugin by name, loading it from entry points if necessary. Args: name: The name of the pluginSTRING
HIGHmarimo/_server/ai/mcp/config.py101Create server definition with automatic transport detection. Args: name: Server name coSTRING
HIGHmarimo/_server/ai/mcp/transport.py116Get the appropriate transport connector for the given transport type. Args: transport_type: The typSTRING
HIGHmarimo/_plugins/ui/_impl/data_explorer.py20Quickly explore a DataFrame with automatically suggested visualizations. Examples: ```python mo.ui.STRING
HIGHmarimo/_plugins/ui/_impl/matrix.py303An interactive matrix/vector editor. A matrix UI element in which each entry is a slider: click and drag horizoSTRING
HIGHmarimo/_plugins/ui/_impl/tabs.py18Display objects in a tabbed view. Examples: Show content in tabs: ```python tab1 = mo.vstacSTRING
HIGHmarimo/_plugins/ui/_impl/data_editor.py124A data editor component for editing tabular data. This component is experimental and intentionally limited in featuSTRING
HIGHmarimo/_plugins/ui/_impl/batch.py152Convert an HTML object with templated text into a UI element. A `batch` is a UI element that wraps other UI elementSTRING
HIGHmarimo/_plugins/ui/_impl/altair_chart.py481Make reactive charts with Altair. Use `mo.ui.altair_chart` to make Altair charts reactive: select chart data wiSTRING
HIGHmarimo/_plugins/ui/_impl/altair_chart.py750Apply the selection to a DataFrame. This method is useful when you have a layered chart and you want to STRING
HIGHmarimo/_plugins/ui/_impl/run_button.py17A button that can be used to trigger computation. When clicked, run_button's value is set to True, and any cells reSTRING
HIGHmarimo/_plugins/ui/_impl/switch.py15A boolean switch. Examples: ```python switch = mo.ui.switch() ``` Attributes: STRING
HIGHmarimo/_plugins/ui/_impl/file_browser.py100File browser for browsing and selecting server-side files. This element supports local files, S3, GCS, and Azure. STRING
HIGHmarimo/_plugins/ui/_impl/from_anywidget.py168Create a UIElement from an AnyWidget. This proxies all the widget's attributes and methods, allowing seamless iSTRING
HIGHmarimo/_plugins/ui/_impl/input.py147A numeric slider over an interval. Example: ```python slider = mo.ui.slider(start=1, stop=10, step=STRING
HIGHmarimo/_plugins/ui/_impl/input.py585A boolean checkbox. Examples: ```python checkbox = mo.ui.checkbox() ``` Attributes: STRING
HIGHmarimo/_plugins/ui/_impl/input.py629A radio group. Examples: ```python radiogroup = mo.ui.radio( options=["a", "b", "c"], vSTRING
HIGHmarimo/_plugins/ui/_impl/input.py710A text input. Examples: ```python text = mo.ui.text(value="Hello, World!") ``` AttribuSTRING
HIGHmarimo/_plugins/ui/_impl/input.py792A text area that is larger than `ui.text`. Examples: ```python text_area = mo.ui.text_area() STRING
HIGHmarimo/_plugins/ui/_impl/input.py855 A code editor. Examples: ```python code_editor = mo.ui.code_editor() ``` AttributSTRING
HIGHmarimo/_plugins/ui/_impl/input.py946A dropdown selector. Examples: ```python dropdown = mo.ui.dropdown( options=["a", "b", STRING
HIGHmarimo/_plugins/ui/_impl/input.py1092A multiselect input. Examples: ```python multiselect = mo.ui.multiselect( options=["a",STRING
HIGHmarimo/_plugins/ui/_impl/input.py1196A button with an optional callback and optional value. Examples: ```python # a button that when cliSTRING
HIGHmarimo/_plugins/ui/_impl/input.py1300A button or drag-and-drop area to upload a file. Once a file is uploaded, the UI element's value is a list of namedSTRING
HIGHmarimo/_plugins/ui/_impl/input.py1468A submittable form linked to a UIElement. Use a `form` to prevent sending UI element values to Python until a buttoSTRING
HIGHmarimo/_plugins/ui/_impl/refresh.py15A refresh button that will auto-refresh its descendants for a given interval. Each option value can either be a numSTRING
HIGHmarimo/_plugins/ui/_impl/from_panel.py264Create a UIElement from a Panel component. This proxies all the widget's attributes and methods, allowing seamless STRING
HIGHmarimo/_plugins/ui/_impl/dates.py32A date picker with an optional start and stop date. Examples: ```python # initialize the date pickeSTRING
HIGHmarimo/_plugins/ui/_impl/dates.py186A datetime picker over an interval. Examples: ```python datetime_picker = mo.ui.datetime( STRING
HIGHmarimo/_plugins/ui/_impl/dates.py344A date range picker over an interval. Examples: ```python date_range = mo.ui.date_range( STRING
HIGHmarimo/_plugins/ui/_impl/table.py349A table component with selectable rows. Get the selected rows with `table.value`. The table data can be supplied asSTRING
HIGHmarimo/_plugins/ui/_impl/table.py1018Download the table data in the specified format. For cell-selection modes ("single-cell"/"multi-cell"), selectiSTRING
HIGHmarimo/_plugins/ui/_impl/dictionary.py20A dictionary of UI elements. Use a dictionary to: - create a set of UI elements at runtime - group togetherSTRING
HIGHmarimo/_plugins/ui/_impl/array.py20An array of UI elements. Use an array to: - create a dynamic number of UI elements at runtime - group togetSTRING
25 more matches not shown…
Cross-File Repetition81 hits · 405 pts
SeverityFileLineSnippetContext
HIGH…end/src/core/codemirror/language/__tests__/sql.test.ts0select name, price, category from products where price < {price_threshold.value} order by price descSTRING
HIGHmarimo/_smoke_tests/sql/sql_alchemy_engine.py0select name, price, category from products where price < {price_threshold.value} order by price descSTRING
HIGHmarimo/_smoke_tests/sql/sqlmodel_engine.py0select name, price, category from products where price < {price_threshold.value} order by price descSTRING
HIGHpackages/smart-cells/src/__tests__/sql-parser.test.ts0select name, price, category from products where price < {price_threshold.value} order by price descSTRING
HIGHtests/_lint/test_lint_system.py0import marimo __generated_with = "0.15.0" app = marimo.app() @app.cell def __(): x = 1 return (x,)STRING
HIGHtests/_session/notebook/test_app_file_manager.py0import marimo __generated_with = "0.15.0" app = marimo.app() @app.cell def __(): x = 1 return (x,)STRING
HIGHtests/_lint/test_run_check.py0import marimo __generated_with = "0.15.0" app = marimo.app() @app.cell def __(): x = 1 return (x,)STRING
HIGHtests/_lint/test_async_context_system.py0import marimo __generated_with = "0.1.0" app = marimo.app() @app.cell def __(): x = 1 return x,STRING
HIGHtests/_session/notebook/test_serializer.py0import marimo __generated_with = "0.1.0" app = marimo.app() @app.cell def __(): x = 1 return x,STRING
HIGHtests/_ast/test_load.py0import marimo __generated_with = "0.1.0" app = marimo.app() @app.cell def __(): x = 1 return x,STRING
HIGHtests/_code_mode/test_context_autosave.py0import marimo app = marimo.app() @app.cell def __(): print("hello, world!") return if __name__ == "__main__": app.run()STRING
HIGHtests/_session/test_file_change_handler.py0import marimo app = marimo.app() @app.cell def __(): print("hello, world!") return if __name__ == "__main__": app.run()STRING
HIGH…sion/extensions/test_notification_listener_autosave.py0import marimo app = marimo.app() @app.cell def __(): print("hello, world!") return if __name__ == "__main__": app.run()STRING
HIGHtests/_server/test_file_manager.py0import marimo app = marimo.app() @app.cell def __(): print("hello, world!") return if __name__ == "__main__": app.run()STRING
HIGHtests/_server/test_file_manager_absolute_path.py0import marimo app = marimo.app() @app.cell def __(): print("hello, world!") return if __name__ == "__main__": app.run()STRING
HIGHtests/_server/api/endpoints/test_home.py0import marimo app = marimo.app() @app.cell def __(): print("hello, world!") return if __name__ == "__main__": app.run()STRING
HIGHtests/_server/export/test_exporter.py0import marimo app = marimo.app() @app.cell def __(): print("hello, world!") return if __name__ == "__main__": app.run()STRING
HIGHtests/_cli/test_cli_export_thumbnail.py0import marimo app = marimo.app() @app.cell def __(): print("hello, world!") return if __name__ == "__main__": app.run()STRING
HIGHtests/_cli/test_cli_export_session.py0import marimo app = marimo.app() @app.cell def __(): print("hello, world!") return if __name__ == "__main__": app.run()STRING
HIGHtests/_cli/test_file_overwrite.py0import marimo app = marimo.app() @app.cell def __(): print("hello, world!") return if __name__ == "__main__": app.run()STRING
HIGHtests/_cli/test_cli_check.py0import marimo app = marimo.app() @app.cell def __(): print("hello, world!") return if __name__ == "__main__": app.run()STRING
HIGHtests/_runtime/test_trace.py0import marimo app = marimo.app() @app.cell def __(): print("hello, world!") return if __name__ == "__main__": app.run()STRING
HIGHtests/_convert/markdown/test_markdown_conversion.py0this is a markdown cell with an execution block in it ```python {.marimo} # too ambiguous to convert ```STRING
HIGHtests/_convert/markdown/snapshots/unsafe-doc.py.txt0this is a markdown cell with an execution block in it ```python {.marimo} # too ambiguous to convert ```STRING
HIGHmarimo/_tutorials/markdown_format.md0this is a markdown cell with an execution block in it ```python {.marimo} # too ambiguous to convert ```STRING
HIGHtests/_ast/test_app.py0import marimo __generated_with = "0.0.1" app = marimo.app(width="full") @app.cell def __(): import marimo as mo return mSTRING
HIGHtests/_server/test_file_manager.py0import marimo __generated_with = "0.0.1" app = marimo.app(width="full") @app.cell def __(): import marimo as mo return mSTRING
HIGHtests/_server/test_asgi.py0import marimo __generated_with = "0.0.1" app = marimo.app(width="full") @app.cell def __(): import marimo as mo return mSTRING
HIGHtests/_server/mocks.py0import marimo __generated_with = "0.0.1" app = marimo.app(width="full") @app.cell def __(): import marimo as mo return mSTRING
HIGHtests/_server/files/test_os_file_system.py0import marimo __generated_with = "0.0.1" app = marimo.app(width="full") @app.cell def __(): import marimo as mo return mSTRING
HIGHdocs/api/inputs/anywidget.md0function render({ model, el }) { let getcount = () => model.get("count"); let button = document.createelement("button");STRING
HIGHmarimo/_smoke_tests/anywidget_compat.py0function render({ model, el }) { let getcount = () => model.get("count"); let button = document.createelement("button");STRING
HIGHmarimo/_smoke_tests/anywidget_examples/esm_rerender.py0function render({ model, el }) { let getcount = () => model.get("count"); let button = document.createelement("button");STRING
HIGHdocs/api/inputs/anywidget.md0button { padding: 5px !important; border-radius: 5px !important; background-color: #f0f0f0 !important; &:hover { backgroSTRING
HIGHmarimo/_smoke_tests/anywidget_compat.py0button { padding: 5px !important; border-radius: 5px !important; background-color: #f0f0f0 !important; &:hover { backgroSTRING
HIGHmarimo/_smoke_tests/anywidget_examples/esm_rerender.py0button { padding: 5px !important; border-radius: 5px !important; background-color: #f0f0f0 !important; &:hover { backgroSTRING
HIGHexamples/third_party/plotly/violin_chart.py0map a mo.ui.plotly selection back to rows in the source dataframe.STRING
HIGHexamples/third_party/plotly/box_chart.py0map a mo.ui.plotly selection back to rows in the source dataframe.STRING
HIGHexamples/third_party/plotly/strip_chart.py0map a mo.ui.plotly selection back to rows in the source dataframe.STRING
HIGHexamples/layouts/sidebar.py0!!! tip "this notebook is best viewed as an app." hit `cmd/ctrl+.` or click the "app view" button in the bottom right.STRING
HIGHexamples/layouts/slides.py0!!! tip "this notebook is best viewed as an app." hit `cmd/ctrl+.` or click the "app view" button in the bottom right.STRING
HIGHexamples/ai/data/model_comparison.py0!!! tip "this notebook is best viewed as an app." hit `cmd/ctrl+.` or click the "app view" button in the bottom right.STRING
HIGHexamples/ai/chat/openai_example.py0access the chatbot's historical messages with [`chatbot.value`](https://docs.marimo.io/api/inputs/chat.html#accessing-chSTRING
HIGHexamples/ai/chat/anthropic_example.py0access the chatbot's historical messages with [`chatbot.value`](https://docs.marimo.io/api/inputs/chat.html#accessing-chSTRING
HIGHexamples/ai/chat/deepseek_example.py0access the chatbot's historical messages with [`chatbot.value`](https://docs.marimo.io/api/inputs/chat.html#accessing-chSTRING
HIGHexamples/ai/chat/gemini.py0access the chatbot's historical messages with [`chatbot.value`](https://docs.marimo.io/api/inputs/chat.html#accessing-chSTRING
HIGHexamples/ai/chat/groq_example.py0access the chatbot's historical messages with [`chatbot.value`](https://docs.marimo.io/api/inputs/chat.html#accessing-chSTRING
HIGHexamples/ai/chat/mlx_chat.py0access the chatbot's historical messages with `chatbot.value`.STRING
HIGHexamples/ai/chat/custom.py0access the chatbot's historical messages with `chatbot.value`.STRING
HIGHexamples/ai/chat/streaming_custom.py0access the chatbot's historical messages with `chatbot.value`.STRING
HIGHexamples/cloud/gcp/google_cloud_storage.py0## **⚙ configuration** this app requires a google cloud platform account and a bucket to access. authenticate with `gcloSTRING
HIGHexamples/cloud/gcp/google_cloud_bigquery.py0## **⚙ configuration** this app requires a google cloud platform account and a bucket to access. authenticate with `gcloSTRING
HIGHexamples/cloud/gcp/google_sheets.py0## **⚙ configuration** this app requires a google cloud platform account and a bucket to access. authenticate with `gcloSTRING
HIGHexamples/sql/connect_to_sqlite.py0next, we **create a sql cell**. create a sql cell in one of two ways: 1. click the {mo.icon("lucide:database")} `sql` buSTRING
HIGHexamples/sql/read_csv.py0next, we **create a sql cell**. create a sql cell in one of two ways: 1. click the {mo.icon("lucide:database")} `sql` buSTRING
HIGHexamples/sql/connect_to_postgres.py0next, we **create a sql cell**. create a sql cell in one of two ways: 1. click the {mo.icon("lucide:database")} `sql` buSTRING
HIGHexamples/sql/parametrizing_sql_queries.py0next, we **create a sql cell**. create a sql cell in one of two ways: 1. click the {mo.icon("lucide:database")} `sql` buSTRING
HIGHexamples/sql/read_json.py0next, we **create a sql cell**. create a sql cell in one of two ways: 1. click the {mo.icon("lucide:database")} `sql` buSTRING
HIGHexamples/sql/read_parquet.py0next, we **create a sql cell**. create a sql cell in one of two ways: 1. click the {mo.icon("lucide:database")} `sql` buSTRING
HIGHexamples/sql/querying_dataframes.py0next, we **create a sql cell**. create a sql cell in one of two ways: 1. click the {mo.icon("lucide:database")} `sql` buSTRING
21 more matches not shown…
Deep Nesting421 hits · 385 pts
SeverityFileLineSnippetContext
LOWfrontend/e2e-tests/py/components.py113CODE
LOWfrontend/e2e-tests/py/components.py114CODE
LOWtests/conftest.py54CODE
LOWtests/conftest.py217CODE
LOWtests/mocks.py166CODE
LOWtests/_utils/test_subprocess.py124CODE
LOWtests/_utils/test_xdg.py220CODE
LOWtests/_utils/test_utils_request.py111CODE
LOWtests/_utils/test_msgspec_basestruct.py82CODE
LOWtests/_sql/test_ibis.py993CODE
LOWtests/_sql/test_adbc.py579CODE
LOWtests/_sql/test_adbc.py601CODE
LOWtests/_sql/test_adbc.py123CODE
LOWtests/_sql/test_adbc.py612CODE
LOWtests/_sql/test_clickhouse.py183CODE
LOWtests/_ipc/test_kernel_communication.py38CODE
LOWtests/_server/api/test_middleware.py333CODE
LOWtests/_server/api/endpoints/test_home.py512CODE
LOWtests/_server/api/endpoints/test_sse.py125CODE
LOWtests/_server/api/endpoints/test_requires_decorator.py36CODE
LOWtests/_server/api/endpoints/test_requires_decorator.py110CODE
LOWtests/_server/api/endpoints/test_ws.py474CODE
LOWtests/_server/api/endpoints/test_ws_rtc.py259CODE
LOWtests/_server/export/test_exporter.py976CODE
LOWtests/_server/export/test_exporter.py1063CODE
LOWtests/_plugins/ui/_impl/test_table.py1512CODE
LOWtests/_plugins/ui/_impl/test_table.py1521CODE
LOWtests/_plugins/ui/_impl/dataframes/test_print_code.py1060CODE
LOWtests/_cli/test_cli_export.py63CODE
LOWtests/_cli/test_endpoint.py39CODE
LOWtests/_cli/test_endpoint.py58CODE
LOWtests/_cli/test_endpoint.py75CODE
LOWtests/_cli/test_cli.py877CODE
LOWtests/_runtime/test_wasm_futures.py47CODE
LOWtests/_runtime/test_wasm_futures.py64CODE
LOWtests/_runtime/test_wasm_futures.py169CODE
LOWtests/_runtime/test_wasm_futures.py199CODE
LOWtests/_runtime/test_wasm_futures.py260CODE
LOWtests/_runtime/test_wasm_futures.py377CODE
LOWtests/_runtime/test_wasm_multiprocessing_queue.py293CODE
LOWtests/_runtime/test_wasm_multiprocessing.py107CODE
LOWtests/_runtime/test_wasm_multiprocessing_pool.py112CODE
LOWtests/_runtime/test_wasm_multiprocessing_pool.py168CODE
LOWtests/_runtime/test_wasm_multiprocessing_pool.py188CODE
LOWtests/_runtime/test_wasm_multiprocessing_pool.py279CODE
LOWtests/_runtime/test_wasm_multiprocessing_pool.py406CODE
LOWtests/_runtime/test_wasm_multiprocessing_pool.py442CODE
LOWtests/_runtime/test_wasm_multiprocessing_pool.py465CODE
LOWtests/_runtime/test_wasm_multiprocessing_pool.py494CODE
LOWtests/_runtime/test_wasm_multiprocessing_pool.py517CODE
LOWtests/_runtime/test_wasm_multiprocessing_pool.py551CODE
LOWtests/_runtime/test_wasm_multiprocessing_pool.py570CODE
LOWtests/_runtime/test_wasm_multiprocessing_pool.py593CODE
LOWtests/_runtime/test_pytest_runtime.py77CODE
LOWtests/_runtime/test_wasm_process_pool_executor.py116CODE
LOWtests/_runtime/test_wasm_process_pool_executor.py152CODE
LOWtests/_runtime/test_wasm_process_pool_executor.py247CODE
LOWtests/_runtime/test_complete.py618CODE
LOWtests/_runtime/test_duckdb_wasm.py1439CODE
LOWtests/_config/test_config_utils.py228CODE
361 more matches not shown…
Cross-Language Confusion39 hits · 220 pts
SeverityFileLineSnippetContext
HIGHtests/_lint/test_files/sql_parsing_errors.py35 MONTH(timestamp) in (null)CODE
HIGHtests/_session/managers/test_kernel.py40 ["bash", "-c", "sleep 60 & echo $!; exec 1>/dev/null; wait"],CODE
HIGHtests/_sql/test_clickhouse.py178 assert result.equals(expected)CODE
HIGHtests/_sql/test_clickhouse.py221 assert result.equals(expected_result)CODE
HIGHtests/_sql/test_clickhouse.py242 assert result.equals(pd.DataFrame({"1": [1]}))CODE
HIGHtests/_server/api/endpoints/test_assets.py719 assert "registration.installing || registration.waiting" in resultCODE
HIGHtests/_server/templates/test_templates.py281 function gtag(){dataLayer.push(arguments);}CODE
HIGHtests/_server/templates/test_templates.py836 function gtag(){dataLayer.push(arguments);}CODE
HIGHtests/_server/templates/test_templates.py1247 function gtag(){dataLayer.push(arguments);}CODE
HIGHtests/_plugins/ui/_impl/test_data_editor.py401 assert df.equals(editor.data)CODE
HIGHtests/_plugins/ui/_impl/test_data_editor.py413 assert df.equals(editor.data)CODE
HIGHtests/_plugins/ui/_impl/tables/test_pandas_table.py2183 json_str == '[{"A":1.0},{"A":2.0},{"A":3.0},{"A":null},{"A":null}]'CODE
HIGHtests/_plugins/ui/_impl/tables/test_polars_table.py1089 json_str == '[{"A":1.0},{"A":2.0},{"A":3.0},{"A":null},{"A":null}]'CODE
HIGHtests/_plugins/core/test_json_encoder.py218 assert encoded == '{"a":1,"b":"hello","items":null,"other_items":null}'CODE
HIGHtests/_plugins/core/test_json_encoder.py228 == '{"a":1,"b":"hello","items":[1,"2",{"mimetype":"text/plain","data":"data"},{"mimetype":"text/html","data":"<bCODE
HIGHtests/_plugins/core/test_json_encoder.py239 == '{"a":1,"b":"hello","items":null,"other_items":{"key":{"mimetype":"text/plain","data":"data"}}}'CODE
HIGHtests/_plugins/core/test_json_encoder.py692 assert encoded == "[null,null,null,1.0,2.0]"CODE
HIGHtests/_plugins/core/test_json_encoder.py697 assert encoded_nested == "[[null],[1,null],[null,3]]"CODE
HIGHtests/_plugins/core/test_json_encoder.py321 encoded = encode_json_str(null)CODE
HIGHtests/_plugins/core/test_json_encoder.py571 assert encoded == '{"__slots__":null}'CODE
HIGHtests/_cli/test_file_overwrite.py160 "execution_count": null,CODE
HIGHtests/_cli/test_file_overwrite.py215 "execution_count": null,CODE
HIGHtests/_cli/test_cli_development.py35 cmd = "marimo development openapi > packages/openapi/api.yaml && make fe-codegen"CODE
HIGHtests/_cli/test_cli_convert.py79 "execution_count": null,CODE
HIGHtests/_cli/test_cli_convert.py132 "execution_count": null,CODE
HIGHtests/_cli/test_cli_convert.py181 "execution_count": null,CODE
HIGHtests/_save/loaders/test_lazy_signing.py854 as JSON null, which corrupts the value and breaks the signature onceSTRING
HIGHexamples/outputs/live_raster.py26 let hostName = null;CODE
HIGHmarimo/_code_mode/screenshot.py368 firstChildTag: el.children[0]?.tagName ?? null,STRING
HIGHmarimo/_code_mode/screenshot.py369 firstChildClass: el.children[0]?.className ?? null,STRING
HIGHmarimo/_code_mode/screenshot.py371 visible: el.offsetParent !== null,STRING
HIGH…o/_smoke_tests/tables/whitespace_sentinel_rendering.py21 Tables should visually distinguish sentinel values (null, empty string,CODE
HIGH…o/_smoke_tests/tables/whitespace_sentinel_rendering.py104 "None (null)",STRING
HIGHmarimo/_smoke_tests/sql/duckdb_interrupt.py47def _(FILE, mo, null):STRING
HIGHmarimo/_server/api/endpoints/assets.py468 const worker = registration.installing || registration.waiting;CODE
HIGHmarimo/_plugins/ui/_impl/tables/table_manager.py133 strict_json: bool = False, # Whether the result should be strictly JSON compliant (eg. nan -> null)CODE
HIGHmarimo/_plugins/ui/_impl/tables/narwhals_table.py242 # NaNs and Infs serialize to null, which isn't distinguishable fromCOMMENT
HIGHmarimo/_runtime/utils/set_ui_element_request_manager.py167 acc.push(cmd)CODE
HIGHmarimo/_config/manager.py475 # the incoming config explicitly sent null) is removed from disk. LetsCOMMENT
Redundant / Tautological Comments121 hits · 174 pts
SeverityFileLineSnippetContext
LOWpyproject.toml366 "SIM115", # Open file without context handlerCODE
LOWtests/_session/state/test_session_view.py152 # Check if the Variables operation was added correctlyCOMMENT
LOWtests/_islands/test_island_generator.py60 # Check if the cell was addedCOMMENT
LOWtests/_islands/test_island_generator.py68 # Check if the app is built successfullyCOMMENT
LOWtests/_islands/test_island_generator.py73 # Check if build() raises an error when called more than onceCOMMENT
LOWtests/_islands/test_island_generator.py96 # Check if render works after build() is calledCOMMENT
LOWtests/_islands/test_island_generator.py321 # Check if stubs were created correctlyCOMMENT
LOWtests/_cli/test_cli_export.py87 # Check if any chromium directory existsCOMMENT
LOWtests/_output/test_rich_help.py151 # Check if MyClass is recognized as implementing RichHelp protocolCOMMENT
LOWtests/_runtime/test_primitives.py107 # Set __wrapped__ to NoneCOMMENT
LOWtests/_data/test_preview_column.py207 # Check if summary contains expected statistics for the alternating patternSTRING
LOWtests/_data/test_preview_column.py259 # Check if summary contains expected statistics for the categorical patternSTRING
LOWtests/_data/test_preview_column.py309 # Check if summary contains expected statistics for the date patternSTRING
LOWtests/_data/test_preview_column.py361 # Check if summary contains expected statistics for the datetime patternSTRING
LOWtests/_data/test_preview_column.py412 # Check if summary contains expected statistics for the time patternSTRING
LOWtests/_data/test_preview_column.py449 # Check if summary contains expected statistics for the boolean patternSTRING
LOWdocs/scripts/patch_vercel_config.py34 # Check if middleware route already existsCOMMENT
LOWexamples/frameworks/fastapi-github/main.py72 # Write file contentCOMMENT
LOWmarimo/_utils/docs.py99 # Check if we're inside a code blockCOMMENT
LOWmarimo/_utils/site_packages.py44 # Check if module is in any site-packages directoryCOMMENT
LOWmarimo/_utils/once.py29 # Check if this is a method call (has self as first argument)COMMENT
LOWmarimo/_utils/strings.py143 # Check if the content contains unescaped double quotesCOMMENT
LOWmarimo/_lint/visitors.py20 # Check if this is a definition (not just a reference)COMMENT
LOWmarimo/_lint/context.py127 # Check if record has lint_rule metadataCOMMENT
LOWmarimo/_lint/linter.py143 # Check if file exists firstCOMMENT
LOWmarimo/_lint/linter.py153 # Check if file is a supported notebook formatCOMMENT
LOWmarimo/_lint/rules/runtime/self_import.py121 # Check if there's a local file/package with the same nameCOMMENT
LOWmarimo/_lint/rules/runtime/branch_expression.py112 # Check if there are any statementsCOMMENT
LOWmarimo/_lint/rules/runtime/branch_expression.py119 # Check if it's a branch statementCOMMENT
LOWmarimo/_lint/rules/runtime/branch_expression.py137 # Check if ANY branch has an output expressionCOMMENT
LOWmarimo/_lint/rules/runtime/branch_expression.py153 # Check if ANY case has an output expressionCOMMENT
LOWmarimo/_lint/rules/runtime/branch_expression.py175 # Check if ANY branch has an output expressionCOMMENT
LOWmarimo/_lint/rules/formatting/parsing.py71 # Check if this line contains a file:line referenceCOMMENT
LOWmarimo/_lint/rules/formatting/markdown_dedent.py93 # Check if the markdown string needs dedentingCOMMENT
LOWmarimo/_lint/rules/formatting/empty_cells.py163 # Check if all statements are pass statementsCOMMENT
LOWmarimo/_code_mode/_context.py1019 # Check if a setup cell already exists (by name or by ID).COMMENT
LOWmarimo/_session/file_change_handler.py216 # Read the file once and run all pre-reload skip checks againstCOMMENT
LOWmarimo/_session/state/session_view.py620 # Check if we can merge with the last outputCOMMENT
LOWmarimo/_convert/script.py46 # Check if any code is async, if so, raise an errorCOMMENT
LOWmarimo/_convert/markdown/to_ir.py543 # Set after to prevent lang being flushed.COMMENT
LOWmarimo/_convert/ipynb/to_ir.py234 # Check if subprocess import is neededCOMMENT
LOWmarimo/_convert/ipynb/to_ir.py520 # Check if this looks like a git URL or VCS URLCOMMENT
LOWmarimo/_convert/ipynb/to_ir.py879 # Check if last token was a commentCOMMENT
LOWmarimo/_messaging/notification_utils.py231 # Check if show_tracebacks is enabledSTRING
LOWmarimo/_messaging/msgspec_encoder.py125 # Check if it's a shapely geometry objectCOMMENT
LOWmarimo/_messaging/msgspec_encoder.py147 # Check if it's a Polars data typeCOMMENT
LOWmarimo/_sql/error_utils.py240 # Check if this is a MarimoSQLException with structured hint dataCOMMENT
LOWmarimo/_sql/engines/pyiceberg.py114 # Check if this is a permission/auth error (e.g., 403 Forbidden)COMMENT
LOWmarimo/_ai/text_to_notebook.py42 # Check if the user has accepted the termsSTRING
LOWmarimo/_ai/text_to_notebook.py75 # Check if the response is validSTRING
LOWmarimo/_ast/scanner.py274 # Check if we can find at least one boundaryCOMMENT
LOWmarimo/_ast/toplevel.py342 # Check if all dependencies are resolvedCOMMENT
LOWmarimo/_ast/sql_visitor.py42 # Check if the call is a method call and the method is namedCOMMENT
LOWmarimo/_ast/sql_visitor.py48 # Check if there are arguments and the first argument is aCOMMENT
LOWmarimo/_ast/sql_visitor.py523 # Check if the table name looks like a URL or has a file extension.COMMENT
LOWmarimo/_ast/pytest.py433 # Check if it is considered a __test__ cell.COMMENT
LOWmarimo/_ast/codegen.py155 # Check if there's trailing content (like comments) after the last statementCOMMENT
LOWmarimo/_server/session_manager.py180 # Check if session already existsCOMMENT
LOWmarimo/_server/lsp.py542 # Check if the LSP binary existsCOMMENT
LOWmarimo/_server/lsp.py988 # Check if any language servers or copilot are enabledCOMMENT
61 more matches not shown…
Fake / Example Data114 hits · 134 pts
SeverityFileLineSnippetContext
LOW…c/core/ai/context/providers/__tests__/variable.test.ts61 value: '"John Doe"',CODE
LOWfrontend/src/utils/__tests__/local-storage.test.ts17 name: "John Doe",CODE
LOWfrontend/src/utils/__tests__/local-storage.test.ts47 storage.set(KEY, { name: "Jane Doe", age: 25 });CODE
LOWfrontend/src/utils/__tests__/local-storage.test.ts48 expect(storage.get(KEY)).toEqual({ name: "Jane Doe", age: 25 });CODE
LOWfrontend/src/utils/__tests__/local-storage.test.ts66 storage.set(KEY, { name: "Jane Doe", age: 25 });CODE
LOWfrontend/src/utils/__tests__/local-storage.test.ts67 expect(storage.get(KEY)).toEqual({ name: "Jane Doe", age: 25 });CODE
LOWfrontend/src/utils/__tests__/local-storage.test.ts75 expect(storage.get(KEY)).toEqual({ name: "Jane Doe", age: 25 });CODE
LOWtests/_utils/test_docs.py16 foo (str): Lorem ipsumCODE
LOWtests/_utils/test_docs.py17 bar (int): Dolor sit ametCODE
LOWtests/_utils/test_docs.py20 baz (str): Lorem ipsumCODE
LOWtests/_utils/test_docs.py21 boo (int): Dolor sit ametCODE
LOWtests/_utils/snapshots/docstring_summary.md13| `foo` | `str` | Lorem ipsum |CODE
LOWtests/_utils/snapshots/docstring_summary.md14| `bar` | `int` | Dolor sit amet |CODE
LOWtests/_utils/snapshots/docstring_summary.md19| `baz` | `str` | Lorem ipsum |CODE
LOWtests/_utils/snapshots/docstring_summary.md20| `boo` | `int` | Dolor sit amet |CODE
LOWtests/_utils/snapshots/docstring_summary.txt13| `foo` | `str` | Lorem ipsum |CODE
LOWtests/_utils/snapshots/docstring_summary.txt14| `bar` | `int` | Dolor sit amet. |CODE
LOWtests/_utils/snapshots/docstring_summary.txt19| `baz` | `str` | Lorem ipsum |CODE
LOWtests/_utils/snapshots/docstring_summary.txt20| `boo` | `int` | Dolor sit amet. |CODE
LOWtests/_convert/common/test_dom_traversal.py244 mock_read.return_value = b"fake_data"CODE
LOWtests/_server/test_asgi.py59 f.write(contents.replace("placeholder", "app1"))STRING
LOWtests/_server/test_asgi.py61 f.write(contents.replace("placeholder", "app2"))STRING
LOWtests/_server/test_scratchpad.py742 auth_token="fake-token",CODE
LOWtests/_server/test_scratchpad.py752 assert cmd.request.meta[SCREENSHOT_AUTH_TOKEN_KEY] == "fake-token"CODE
LOWtests/_server/mocks.py93 auth_token=AuthToken("fake-token"),STRING
LOWtests/_server/mocks.py247 token: str | AuthToken = "fake-token", skew_id: str = "skew-id-1"CODE
LOWtests/_server/api/test_middleware.py121 response = client.get("/api/status", headers=token_header("fake-token"))CODE
LOWtests/_server/api/test_middleware.py128 headers=token_header("fake-token"),CODE
LOWtests/_server/api/test_middleware.py135 headers=token_header("fake-token", "old-skew-id"),CODE
LOWtests/_server/api/test_middleware.py156 headers=token_header("fake-token", "wrong-skew-id"),CODE
LOWtests/_server/api/test_middleware.py613 headers=token_header("fake-token"),CODE
LOWtests/_server/api/test_middleware.py903 headers=token_header("fake-token"),CODE
LOWtests/_server/api/test_middleware.py95 response = client.get("/foo/", headers=token_header("fake-token"))CODE
LOWtests/_server/api/test_middleware.py179 headers=token_header("fake-token", "old-skew-id"),CODE
LOWtests/_server/api/test_middleware.py276 "/?access_token=fake-token", follow_redirects=FalseCODE
LOWtests/_server/api/test_middleware.py297 response = client.get("/", headers=token_header("fake-token"))CODE
LOWtests/_server/api/test_middleware.py630 "/proxy/ws", headers=token_header("fake-token")CODE
LOWtests/_server/api/endpoints/test_editing.py22 **token_header("fake-token"),CODE
LOWtests/_server/api/endpoints/test_editing.py222 auth_token = token_header("fake-token")CODE
LOWtests/_server/api/endpoints/test_editing.py224 f"/ws?session_id={SESSION_ID}&kiosk=true&access_token=fake-token",CODE
LOWtests/_server/api/endpoints/test_home.py28 **token_header("fake-token"),CODE
LOWtests/_server/api/endpoints/test_packages.py438 headers_no_session = token_header("fake-token")CODE
LOWtests/_server/api/endpoints/test_packages.py21 **token_header("fake-token"),CODE
LOWtests/_server/api/endpoints/test_packages.py267 headers_no_session = token_header("fake-token")CODE
LOWtests/_server/api/endpoints/test_cache_endpoints.py15 **token_header("fake-token"),CODE
LOWtests/_server/api/endpoints/test_assets.py126 response = client.get("/?access_token=fake-token", follow_redirects=False)CODE
LOWtests/_server/api/endpoints/test_assets.py141 "/?file=foo.py&access_token=fake-token&view-as=present",CODE
LOWtests/_server/api/endpoints/test_sql_endpoints.py14 **token_header("fake-token"),CODE
LOWtests/_server/api/endpoints/test_documentation.py9 **token_header("fake-token"),CODE
LOWtests/_server/api/endpoints/test_sse.py171 async with _connect(client, "access_token=fake-token") as connection:CODE
LOWtests/_server/api/endpoints/test_sse.py187 headers={"Authorization": "Bearer fake-token"},CODE
LOWtests/_server/api/endpoints/test_sse.py37SSE_QUERY = "session_id=123&access_token=fake-token"CODE
LOWtests/_server/api/endpoints/test_sse.py38OTHER_SSE_QUERY = "session_id=456&access_token=fake-token"CODE
LOWtests/_server/api/endpoints/test_sse.py213 "Unknown fake-token", # unsupported schemeCODE
LOWtests/_server/api/endpoints/test_storage_endpoints.py14 **token_header("fake-token"),CODE
LOWtests/_server/api/endpoints/test_auto_instantiate.py21 **token_header("fake-token"),CODE
LOWtests/_server/api/endpoints/test_auto_instantiate.py27 return f"/ws?session_id={session_id}&access_token=fake-token"CODE
LOWtests/_server/api/endpoints/test_config_endpoints.py19 **token_header("fake-token"),CODE
LOWtests/_server/api/endpoints/test_terminal.py27TERMINAL_WS_URL = "/terminal/ws?access_token=fake-token"CODE
LOWtests/_server/api/endpoints/test_ai.py27 **token_header("fake-token"),CODE
54 more matches not shown…
Over-Commented Block118 hits · 114 pts
SeverityFileLineSnippetContext
LOWpyproject.toml21 "pymdown-extensions>=10.21.2,<11",COMMENT
LOWfrontend/playwright.config.ts161 projects: [COMMENT
LOWfrontend/islands/generate.py1# /// scriptCOMMENT
LOWfrontend/e2e-tests/py/kitchen_sink.py1# /// scriptCOMMENT
LOWfrontend/src/core/cells/__tests__/session.test.ts781 // Should have no output for new cells (z, g) - they get stub session cellsCOMMENT
LOWfrontend/src/core/codemirror/copilot/extension.ts241 const startOffset = range.start.character - userPosition.character;COMMENT
LOWfrontend/src/core/codemirror/language/embedded/latex.ts1/* Copyright 2026 Marimo. All rights reserved. */COMMENT
LOWfrontend/src/core/network/requests-lazy.ts21//COMMENT
LOW…/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx181 // Detaches the model bound by the most recent bindModel call. Shared betweenCOMMENT
LOWfrontend/src/plugins/core/RenderHTML.tsx101 if (!src) {COMMENT
LOWfrontend/src/plugins/core/RenderHTML.tsx201COMMENT
LOWfrontend/src/plugins/layout/TexPlugin.tsx101 };COMMENT
LOWfrontend/src/utils/traceback.ts61 *COMMENT
LOWtests/_convert/markdown/snapshots/sql.md.txt1---COMMENT
LOWtests/_sql/test_sql.py361 import pandas as pdCOMMENT
LOW…odegen_data/test_get_codes_non_marimo_python_script.py1# /// scriptCOMMENT
LOWtests/_ast/codegen_data/test_app_with_only_comments.py1# /// scriptCOMMENT
LOWtests/_server/test_scratchpad_integration.py301# Python emits this in two flavors: ``~~~^~~~`` (call-site, with tildesCOMMENT
LOWtests/_server/test_scratchpad_integration.py321# Python versions don't emit. Strip together with the indent and newline.COMMENT
LOWtests/_plugins/ui/_impl/test_file_browser.py701 # ├── shallow_with_files/COMMENT
LOWtests/_plugins/ui/_impl/test_file_browser.py741 tmp_path: Path,COMMENT
LOWtests/_plugins/ui/_impl/test_file_browser.py901 assert "real_dir" in directory_namesCOMMENT
LOWtests/_plugins/ui/_impl/tables/test_pandas_table.py941 ("E", ("unknown", "complex128")),COMMENT
LOWtests/_cli/snapshots/export/script/script_sandboxed.txt1# Copyright 2026 Marimo. All rights reserved.COMMENT
LOWtests/_output/formatters/test_ai_formatters.py141 # mock_stream = MagicMock()COMMENT
LOWtests/_output/formatters/test_ai_formatters.py161 # formatter = get_formatter(mock_stream)COMMENT
LOWtests/_output/formatters/test_ai_formatters.py181 # choices=[MagicMock(delta=MagicMock(content="there!"))],COMMENT
LOWtests/_runtime/test_runtime_datasets.py61# k.get_sql_connection(DUCKDB_CONN)COMMENT
LOWdocs/guides/wasm.md121**Exclude a package from WebAssembly** (install it locally only):COMMENT
LOWdocs/guides/package_management/inlining_dependencies.md161# "private-package==<version>",COMMENT
LOWdocs/guides/package_management/notebooks_in_projects.md61uv add --script notebooks/notebook.py . --editableCOMMENT
LOWdocs/guides/deploying/deploying_slurm.md81```bashCOMMENT
LOWdocs/guides/deploying/deploying_slurm.md101#SBATCH --gres=gpu:1COMMENT
LOWdocs/guides/deploying/deploying_slurm.md161COMMENT
LOWdocs/guides/deploying/deploying_kubernetes.md81**Python notebooks (.py):**COMMENT
LOWexamples/misc/monotonic_splines.py1# /// scriptCOMMENT
LOWexamples/misc/custom_configuration.py1# /// scriptCOMMENT
LOWexamples/misc/pokemon_stats.py1# /// scriptCOMMENT
LOWexamples/storage/general.py1# /// scriptCOMMENT
LOWexamples/third_party/chroma/multimodal_retrieval.py1# /// scriptCOMMENT
LOW…ird_party/motherduck/embeddings/embeddings_explorer.py1# /// scriptCOMMENT
LOW…rty/motherduck/embeddings/embeddings_explorer_final.py1# /// scriptCOMMENT
LOWexamples/third_party/huggingface/text-to-image.py1# /// scriptCOMMENT
LOW…ird_party/unsloth/llama_3_1_8b_2x_faster_finetuning.py1# /// scriptCOMMENT
LOWexamples/layouts/grid-dashboard.py1# /// scriptCOMMENT
LOWexamples/layouts/columns.py1# /// scriptCOMMENT
LOWexamples/ai/tools/dataset_analysis.py1# /// scriptCOMMENT
LOWexamples/ai/tools/chat_with_tools.py1# /// scriptCOMMENT
LOWexamples/frameworks/flask/main.py1# /// scriptCOMMENT
LOWexamples/frameworks/fastapi-auth/main.py1# /// scriptCOMMENT
LOWexamples/frameworks/fastapi-github/main.py1# /// scriptCOMMENT
LOWexamples/frameworks/fastapi/main.py1# /// scriptCOMMENT
LOWexamples/frameworks/fastapi-endpoint/main.py1# /// scriptCOMMENT
LOWexamples/outputs/audio.py1# /// scriptCOMMENT
LOWexamples/sql/histograms.py1# /// scriptCOMMENT
LOWexamples/sql/connect_to_sqlite.py1# /// scriptCOMMENT
LOWexamples/sql/misc/database_explorer.py1# /// scriptCOMMENT
LOWexamples/sql/misc/sql_cars.py1# /// scriptCOMMENT
LOWmarimo/_loggers.py21# Our loggers contain two handlers:COMMENT
LOWmarimo/_utils/flatten.py41 base_type = listCOMMENT
58 more matches not shown…
Modern Structural Boilerplate112 hits · 113 pts
SeverityFileLineSnippetContext
LOWtests/_sql/test_connection_utils.py341 def update_func() -> None:CODE
LOWtests/_sql/test_connection_utils.py377 def update_func() -> None:CODE
LOWtests/_sql/test_connection_utils.py415 def update_func() -> None:CODE
LOWtests/_sql/test_connection_utils.py452 def update_func() -> None:CODE
LOWtests/_sql/test_connection_utils.py487 def update_func() -> None:CODE
LOWtests/_sql/test_connection_utils.py523 def update_func() -> None:CODE
LOWtests/_server/export/test_pdf_raster.py124 def set_html(self, html: str) -> None:CODE
LOWtests/_server/export/test_pdf_raster.py220 def set_html(self, html: str) -> None:CODE
LOWtests/_plugins/ui/_impl/test_batch.py78 def set_state(self, new_val: bool) -> None:CODE
LOWtests/_plugins/ui/_impl/test_batch.py120 def set_state(self, new_val: bool) -> None:CODE
LOWtests/_runtime/reload/reload_test_utils.py12def update_file(path: pathlib.Path, code: str) -> None:CODE
LOWexamples/running_as_a_script/textual_app.py41 def update_clock(self) -> None:STRING
LOWexamples/frameworks/flask/main.py31logger = logging.getLogger(__name__)CODE
LOWexamples/frameworks/fastapi-auth/main.py41logger = logging.getLogger(__name__)CODE
LOWexamples/frameworks/fastapi-github/main.py24logger = logging.getLogger(__name__)CODE
LOWexamples/frameworks/fastapi/main.py33logger = logging.getLogger(__name__)CODE
LOWexamples/frameworks/fastapi-endpoint/main.py21logger = logging.getLogger(__name__)CODE
LOWmarimo/_tracer.py144def _set_tracer_provider() -> None:CODE
LOWmarimo/_loggers.py89def set_level(level: str | int = logging.WARNING) -> None:CODE
LOWmarimo/__init__.py29__all__ = [ # noqa: RUF022CODE
LOWmarimo/_utils/asyncio_utils.py150__all__ = [CODE
LOWmarimo/_internal/config.py14__all__ = [CODE
LOWmarimo/_internal/ipc.py8__all__ = [CODE
LOWmarimo/_internal/packages.py10__all__ = [CODE
LOWmarimo/_internal/templates.py9__all__ = [CODE
LOWmarimo/_internal/schemas.py6__all__ = [CODE
LOWmarimo/_internal/notifications.py49__all__ = [CODE
LOWmarimo/_internal/converters.py6__all__ = [CODE
LOWmarimo/_internal/ids.py12__all__ = [CODE
LOWmarimo/_internal/commands.py44__all__ = [CODE
LOWmarimo/_internal/server/__init__.py6__all__ = ["requests"]CODE
LOWmarimo/_internal/server/requests.py12__all__ = [CODE
LOWmarimo/_internal/session/__init__.py10__all__ = [CODE
LOWmarimo/_internal/session/extensions.py19__all__ = [CODE
LOWmarimo/_lint/__init__.py150__all__ = [CODE
LOWmarimo/_lint/formatters/__init__.py17__all__ = [CODE
LOWmarimo/_lint/rules/__init__.py18__all__ = [CODE
LOWmarimo/_lint/rules/breaking/__init__.py21__all__ = [CODE
LOWmarimo/_lint/rules/wasm/__init__.py19__all__ = [CODE
LOWmarimo/_lint/rules/runtime/__init__.py17__all__ = [CODE
LOWmarimo/_lint/rules/formatting/__init__.py25__all__ = [CODE
LOWmarimo/_code_mode/__init__.py43__all__ = [CODE
LOWmarimo/_code_mode/_context.py1800 def set_ui_value(self, element: Any, value: Any) -> None:CODE
LOWmarimo/_session/session.py77__all__ = ["Session", "SessionImpl"]CODE
LOWmarimo/_session/__init__.py23__all__ = [CODE
LOWmarimo/_session/managers/__init__.py23__all__ = [CODE
LOWmarimo/_session/extensions/types.py17__all__ = [CODE
LOWmarimo/_session/notebook/__init__.py25__all__ = [CODE
LOWmarimo/_session/app_host/__init__.py14__all__ = [CODE
LOWmarimo/_convert/__init__.py21__all__ = [CODE
LOWmarimo/_convert/markdown/__init__.py20__all__ = [CODE
LOWmarimo/_convert/markdown/flavor/__init__.py137__all__ = [CODE
LOWmarimo/_convert/ipynb/__init__.py18__all__ = [ # noqa: RUF022CODE
LOWmarimo/_convert/common/__init__.py23__all__ = [ # noqa: RUF022CODE
LOWmarimo/_messaging/streams.py304 def _set_fileno(self, fileno: int | None) -> None:CODE
LOWmarimo/_messaging/streams.py378 def _set_fileno(self, fileno: int | None) -> None:CODE
LOWmarimo/_messaging/thread_local_streams.py52 def _set_stream(self, stream: io.TextIOBase) -> None:CODE
LOWmarimo/_messaging/notebook/__init__.py17__all__ = [CODE
LOWmarimo/_ai/__init__.py4__all__ = [CODE
LOWmarimo/_ai/llm/__init__.py12__all__ = ["anthropic", "bedrock", "google", "groq", "openai", "pydantic_ai"]CODE
52 more matches not shown…
AI Slop Vocabulary32 hits · 73 pts
SeverityFileLineSnippetContext
MEDIUM…nd/src/components/editor/chrome/wrapper/app-chrome.tsx74// transition into the loaded terminal is seamless rather than a blank flash.COMMENT
MEDIUMtests/_server/api/endpoints/test_ai.py782 # The harness receives the live session and the assembled system promptCOMMENT
LOWtests/_plugins/ui/_impl/test_table.py681 # For dicts, we do not need to find row_id, we just return the indexCOMMENT
MEDIUMtests/_output/formatters/test_structures.py873 # which ultimately produces HTML; accept either to be robust.COMMENT
LOWtests/_runtime/test_dataflow.py1288 # Should just return normal childrenCOMMENT
LOWtests/_runtime/test_edges.py273 # Should not raise an error, just return empty parentsCOMMENT
LOWdocs/scripts/html_to_markdown.py103 # Doc contents - just pass throughCOMMENT
LOWmarimo/_utils/parse_dataclass.py141 # if its a single Literal of an enum, we can just return the enumCOMMENT
MEDIUMmarimo/_utils/methods.py31 # stays robust and never crashes formatting.COMMENT
LOWmarimo/_utils/cell_matching.py180 # Otherwise just use the next available idCOMMENT
LOWmarimo/_lint/formatters/full.py58 # If we can't read the file, just return headerCOMMENT
MEDIUMmarimo/_convert/markdown/from_ir.py143 # Definitely a code cell, but need to determine if it can beCOMMENT
MEDIUMmarimo/_convert/markdown/from_ir.py159 # Definitely no "cell"; as such, treat as code, as everything inCOMMENT
MEDIUMmarimo/_convert/markdown/to_ir.py19# Markdown is a dependency of marimo, as such we utilize it as much as possibleCOMMENT
LOWmarimo/_convert/ipynb/to_ir.py767 # For regular packages, just use the normalized nameCOMMENT
LOWmarimo/_ast/toplevel.py55# Fancy typing caused an issue, so just set the value explicitly.COMMENT
LOWmarimo/_ast/parse.py304 # just return a blank cell.COMMENT
MEDIUMmarimo/_server/start.py126 """Provided that there is a proxy, utilize the host and port of the proxy.STRING
LOWmarimo/_server/router.py52 # If we already have a response, just return itCOMMENT
LOWmarimo/_server/router.py87 # If we already have a response, just return itCOMMENT
LOWmarimo/_server/files/os_file_system.py445 # If editor is a terminal-based editor, we just call `open`, becauseCOMMENT
LOWmarimo/_plugins/ui/_impl/from_anywidget.py272 # Initial value - just return empty, the widget manages its own stateCOMMENT
LOW…/_plugins/ui/_impl/dataframes/transforms/print_code.py190 # If aggregation_columns is empty after filtering, just return unique grouped columnsCOMMENT
MEDIUMmarimo/_output/formatting.py241 # Catching base exception so we're robust to bugs in librariesCOMMENT
MEDIUMmarimo/_runtime/complete.py540 # TODO robust handling of different node typesCOMMENT
MEDIUMmarimo/_runtime/dataflow/edges.py144 # Technically more nuanced with branching statements, but this isCOMMENT
MEDIUMmarimo/_runtime/runner/hooks_post_execution.py319 # Side effect has to be relatively robust to code changesCOMMENT
MEDIUMmarimo/_save/save.py862# As such, we also leverage the `@overload` decorator to provide the correctCOMMENT
MEDIUMmarimo/_save/hash.py376 # Finally, utilize the unrun block itself, and clean up.COMMENT
MEDIUMmarimo/_save/hash.py730 # so do not utilize content hash in this case.COMMENT
MEDIUMmarimo/_save/hash.py935 # As such, only utilize the top layer.COMMENT
MEDIUMmarimo/_save/loaders/loader.py141 # TODO: Consider more robust verificationCOMMENT
Verbosity Indicators31 hits · 57 pts
SeverityFileLineSnippetContext
LOWfrontend/src/core/ai/context/providers/cell-output.ts63 // If it is HTML, we need to check if it contains a media tagCOMMENT
LOW…ata-frames/utils/__tests__/getEffectiveColumns.test.ts55 // Step 0: originalCOMMENT
LOW…ata-frames/utils/__tests__/getEffectiveColumns.test.ts61 // Step 1: after first transform (renamed 'name' to 'title')COMMENT
LOW…ata-frames/utils/__tests__/getEffectiveColumns.test.ts67 // Step 2: after second transform (selected only id and title)COMMENT
LOW…ata-frames/utils/__tests__/getEffectiveColumns.test.ts112 // Step 0: originalCOMMENT
LOW…ata-frames/utils/__tests__/getEffectiveColumns.test.ts118 // Step 1: after pivot on 'color' with values 'red', 'blue'COMMENT
LOWtests/_session/state/test_session_view.py1545 # Step 1: Add operation of all variablesCOMMENT
LOWtests/_session/state/test_session_view.py1560 # Step 2: Only "some_engine" is in scope => keep table_with_engine + table_noneCOMMENT
LOWtests/_session/state/test_session_view.py1575 # Step 3: No variables => only table with neither engine nor variable_name is keptCOMMENT
LOWtests/_server/api/endpoints/test_ws.py548 # Step 3: Consumer B takes over the same sessionCOMMENT
LOWtests/_server/api/endpoints/test_ws.py555 # Step 4: Fire Consumer A's stale TTL close now that Consumer B isCOMMENT
LOWtests/_server/api/endpoints/test_ws.py522 # Step 1: Consumer A connects → session created. Entered manually (not viaCOMMENT
LOWtests/_server/api/endpoints/test_ws.py533 # Step 2: Consumer A disconnects under the patch so its TTL close isCOMMENT
LOWmarimo/_utils/cell_matching.py92 # Step 1: Subtract row minimaCOMMENT
LOWmarimo/_utils/cell_matching.py98 # Step 2: Subtract column minimaCOMMENT
LOWmarimo/_utils/cell_matching.py104 # Step 3: Find initial assignmentCOMMENT
LOWmarimo/_utils/cell_matching.py119 # Step 4: Improve assignment iterativelyCOMMENT
LOWmarimo/_lint/rule_selector.py51 # Step 1: base set — use only default rules unless explicitly selectedCOMMENT
LOWmarimo/_lint/rule_selector.py59 # Step 2: remove ignoredCOMMENT
LOWmarimo/_lint/rule_selector.py63 # Step 3: instantiate in deterministic orderCOMMENT
LOWmarimo/_code_mode/screenshot.py219 # Step 1: find the cell container in the DOM. The page isCOMMENT
LOWmarimo/_code_mode/screenshot.py249 # Step 2: container exists but may be empty (cell not run, orCOMMENT
LOWmarimo/_code_mode/screenshot.py258 # Step 3: resolve the screenshottable element via prioritisedCOMMENT
LOW…_smoke_tests/anywidget_smoke_tests/uchimata_example.py51 # Step 1: Generate random structure, returns a 2D numpy array:STRING
LOW…_smoke_tests/anywidget_smoke_tests/uchimata_example.py66 # Step 2: Display the structure in an uchimata widgetSTRING
LOWmarimo/_plugins/ui/_impl/altair_chart.py322 # For binned fields, we need to check if this is the last binCOMMENT
LOWmarimo/_cli/cli.py230 # `... | marimo edit`, we need to check if sys.stdin() has data on it in aCOMMENT
LOWpackages/pytest_changed/__init__.py267 # Step 1: Find changed filesCOMMENT
LOWpackages/pytest_changed/__init__.py292 # Step 2: Get dependency graph (dependents direction)COMMENT
LOWpackages/pytest_changed/__init__.py296 # Step 3: Find all affected files (BFS with cycle detection)COMMENT
LOWpackages/pytest_changed/__init__.py301 # Step 4: Filter to test filesCOMMENT
Structural Annotation Overuse30 hits · 56 pts
SeverityFileLineSnippetContext
LOW…ata-frames/utils/__tests__/getEffectiveColumns.test.ts55 // Step 0: originalCOMMENT
LOW…ata-frames/utils/__tests__/getEffectiveColumns.test.ts61 // Step 1: after first transform (renamed 'name' to 'title')COMMENT
LOW…ata-frames/utils/__tests__/getEffectiveColumns.test.ts67 // Step 2: after second transform (selected only id and title)COMMENT
LOW…ata-frames/utils/__tests__/getEffectiveColumns.test.ts112 // Step 0: originalCOMMENT
LOW…ata-frames/utils/__tests__/getEffectiveColumns.test.ts118 // Step 1: after pivot on 'color' with values 'red', 'blue'COMMENT
LOWtests/_session/state/test_session_view.py1545 # Step 1: Add operation of all variablesCOMMENT
LOWtests/_session/state/test_session_view.py1560 # Step 2: Only "some_engine" is in scope => keep table_with_engine + table_noneCOMMENT
LOWtests/_session/state/test_session_view.py1575 # Step 3: No variables => only table with neither engine nor variable_name is keptCOMMENT
LOWtests/_server/api/endpoints/test_ws.py548 # Step 3: Consumer B takes over the same sessionCOMMENT
LOWtests/_server/api/endpoints/test_ws.py555 # Step 4: Fire Consumer A's stale TTL close now that Consumer B isCOMMENT
LOWtests/_server/api/endpoints/test_ws.py522 # Step 1: Consumer A connects → session created. Entered manually (not viaCOMMENT
LOWtests/_server/api/endpoints/test_ws.py533 # Step 2: Consumer A disconnects under the patch so its TTL close isCOMMENT
LOWmarimo/_utils/cell_matching.py92 # Step 1: Subtract row minimaCOMMENT
LOWmarimo/_utils/cell_matching.py98 # Step 2: Subtract column minimaCOMMENT
LOWmarimo/_utils/cell_matching.py104 # Step 3: Find initial assignmentCOMMENT
LOWmarimo/_utils/cell_matching.py119 # Step 4: Improve assignment iterativelyCOMMENT
LOWmarimo/_lint/rule_selector.py51 # Step 1: base set — use only default rules unless explicitly selectedCOMMENT
LOWmarimo/_lint/rule_selector.py59 # Step 2: remove ignoredCOMMENT
LOWmarimo/_lint/rule_selector.py63 # Step 3: instantiate in deterministic orderCOMMENT
LOWmarimo/_code_mode/screenshot.py219 # Step 1: find the cell container in the DOM. The page isCOMMENT
LOWmarimo/_code_mode/screenshot.py249 # Step 2: container exists but may be empty (cell not run, orCOMMENT
LOWmarimo/_code_mode/screenshot.py258 # Step 3: resolve the screenshottable element via prioritisedCOMMENT
LOW…_smoke_tests/anywidget_smoke_tests/uchimata_example.py51 # Step 1: Generate random structure, returns a 2D numpy array:STRING
LOW…_smoke_tests/anywidget_smoke_tests/uchimata_example.py66 # Step 2: Display the structure in an uchimata widgetSTRING
LOWmarimo/_ai/_types.py79# NOTE: The following classes are public API.COMMENT
LOWmarimo/_ast/compiler.py148 # NOTE: This function closely mirrors python's native ast.increment_linenoCOMMENT
LOWpackages/pytest_changed/__init__.py267 # Step 1: Find changed filesCOMMENT
LOWpackages/pytest_changed/__init__.py292 # Step 2: Get dependency graph (dependents direction)COMMENT
LOWpackages/pytest_changed/__init__.py296 # Step 3: Find all affected files (BFS with cycle detection)COMMENT
LOWpackages/pytest_changed/__init__.py301 # Step 4: Filter to test filesCOMMENT
Hallucination Indicators4 hits · 45 pts
SeverityFileLineSnippetContext
CRITICALfrontend/e2e-tests/py/kitchen_sink.py136 progress_bar = mo._plugins.stateless.status._progress.ProgressBar(CODE
CRITICALtests/_server/test_recents.py19 self.config_reader.for_filename.return_value.read_toml.assert_not_called()CODE
CRITICALtests/_server/test_recents.py20 self.config_reader.for_filename.return_value.write_toml.assert_not_called()CODE
CRITICALmarimo/_ast/cell.py662 for k, v in self._app._app._setup._glbls.items()STRING
AI Structural Patterns46 hits · 40 pts
SeverityFileLineSnippetContext
LOWtests/mocks.py130CODE
LOWtests/mocks.py163CODE
LOWtests/_sql/test_sqlalchemy.py865CODE
LOWtests/_ast/test_transformers.py261CODE
LOWtests/_server/export/test_exporter.py2299CODE
LOWtests/_server/export/test_exporter.py2304CODE
LOW…mples/third_party/cvxpy/signals/modules/dataloaders.py89CODE
LOW…mples/third_party/cvxpy/signals/modules/dataloaders.py168CODE
LOWexamples/third_party/cvxpy/signals/modules/problems.py36CODE
LOWmarimo/_utils/subprocess.py29CODE
LOWmarimo/_utils/subprocess.py60CODE
LOWmarimo/_utils/subprocess.py91CODE
LOWmarimo/_utils/subprocess.py122CODE
LOWmarimo/_utils/subprocess.py153CODE
LOWmarimo/_utils/subprocess.py184CODE
LOWmarimo/_utils/subprocess.py214CODE
LOWmarimo/_lint/linter.py66CODE
LOW…ke_tests/altair_examples/timestamp_with_no_timezone.py50CODE
LOWmarimo/_ast/sql_visitor.py104CODE
LOWmarimo/_server/asgi.py354CODE
LOWmarimo/_server/start.py188CODE
LOWmarimo/_server/main.py50CODE
LOWmarimo/_server/templates/api.py69CODE
LOWmarimo/_plugins/ui/_impl/data_explorer.py47CODE
LOWmarimo/_plugins/ui/_impl/matrix.py427CODE
LOWmarimo/_plugins/ui/_impl/file_browser.py201CODE
LOWmarimo/_plugins/ui/_impl/input.py86CODE
LOWmarimo/_plugins/ui/_impl/input.py219CODE
LOWmarimo/_plugins/ui/_impl/input.py426CODE
LOWmarimo/_plugins/ui/_impl/input.py740CODE
LOWmarimo/_plugins/ui/_impl/input.py821CODE
LOWmarimo/_plugins/ui/_impl/input.py892CODE
LOWmarimo/_plugins/ui/_impl/input.py1241CODE
LOWmarimo/_plugins/ui/_impl/input.py1543CODE
LOWmarimo/_plugins/ui/_impl/dates.py221CODE
LOWmarimo/_plugins/ui/_impl/table.py592CODE
LOWmarimo/_plugins/ui/_impl/plotly.py590CODE
LOWmarimo/_plugins/ui/_impl/dataframes/dataframe.py145CODE
LOW…mo/_plugins/ui/_impl/dataframes/transforms/handlers.py146CODE
LOWmarimo/_plugins/ui/_core/ui_element.py357CODE
LOWmarimo/_plugins/stateless/inspect.py38CODE
LOWmarimo/_plugins/stateless/image.py140CODE
LOWmarimo/_plugins/stateless/status/_progress.py324CODE
LOWmarimo/_plugins/stateless/status/_progress.py340CODE
LOWmarimo/_plugins/stateless/status/_progress.py356CODE
LOWmarimo/_plugins/stateless/status/_progress.py371CODE
Overly Generic Function Names32 hits · 25 pts
SeverityFileLineSnippetContext
LOW…odemirror/cells/__tests__/debugger-decorations.test.ts22const CODE = `def my_function():CODE
LOW…demirror/cells/__tests__/traceback-decorations.test.ts53 const code = `def my_function():CODE
LOW…demirror/cells/__tests__/traceback-decorations.test.ts105 const code = `def my_function():CODE
LOW…demirror/cells/__tests__/traceback-decorations.test.ts157 const code = `def my_function():CODE
LOW…demirror/cells/__tests__/traceback-decorations.test.ts206 const code = `def my_function():CODE
LOW…demirror/cells/__tests__/traceback-decorations.test.ts263 const code = `def my_function():CODE
LOW…demirror/cells/__tests__/traceback-decorations.test.ts315 const code = `def my_function():CODE
LOW…demirror/cells/__tests__/traceback-decorations.test.ts355 const code = `def my_function():CODE
LOW…demirror/cells/__tests__/traceback-decorations.test.ts397 const code = `def my_function():CODE
LOW…demirror/cells/__tests__/traceback-decorations.test.ts497 const code = `def my_function():CODE
LOW…demirror/cells/__tests__/traceback-decorations.test.ts567 const code = `def my_function():CODE
LOWtests/_utils/test_methods.py10 def my_method(self) -> str:CODE
LOWtests/_utils/test_methods.py47 def my_method(self) -> str:CODE
LOWtests/_utils/test_decorator.py12 def my_function() -> None:CODE
LOWtests/_utils/test_decorator.py29 def my_function() -> None:CODE
LOWtests/_lint/test_files/self_import_conflict.py16 def my_function():CODE
LOWtests/_ast/test_pytest_scoped.py18def test_function(a, b):CODE
LOWtests/_ast/test_visitor.py293 def helper(extension):STRING
LOWtests/_ast/test_visitor.py314 def helper():STRING
LOWtests/_ast/test_visitor.py338 def helper():STRING
LOWtests/_ast/test_visitor.py358 def helper(extension):STRING
LOWtests/_ast/test_transformers.py259 def test_function(x: int, y: str) -> int:CODE
LOWtests/_ast/test_app.py126 def process_data(CODE
LOWtests/_ast/test_codegen.py1701def my_function():CODE
LOWtests/_ast/test_codegen.py1859def my_function():STRING
LOWtests/_ast/codegen_data/test_function_decorator_call.py13def my_function():CODE
LOWtests/_runtime/test_dataflow.py1363def helper():CODE
LOWtests/_save/test_hash.py1842 def my_function():STRING
LOWtests/_save/test_hash.py1881 def my_function():STRING
LOWtests/_save/test_cache.py2560 def helper(extension: list[str] | None) -> int:STRING
LOWmarimo/_smoke_tests/lsp/ruff_errors.py60 def process_data(data, unused_param):CODE
LOWmarimo/_ast/app.py677 def process_data(pd, batch_size, learning_rate):STRING
Magic Placeholder Names2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHexamples/sql/connect_to_motherduck.py37 motherduck_token="YOUR_TOKEN_HERE" marimo edit {__file__}CODE
HIGHmarimo/_smoke_tests/ws.py14 api_key_input = mo.ui.text(value=env_api_key or "", label="YOUR_API_KEY")CODE
Synthetic Comment Markers2 hits · 5 pts
SeverityFileLineSnippetContext
HIGHtests/_ast/test_parse.py607 # AI-generated code pattern with inconsistent indentationSTRING
HIGHexamples/ai/data/data_labeler.py76 mo.md("### Real or AI generated?").center()STRING
Modern AI Meta-Vocabulary2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMdocs/guides/generate_with_ai/prompts.md25If you want to generate [custom UIs or widgets for marimo](../../api/inputs/anywidget.md?#building-custom-ui-elements) tCODE
MEDIUMmarimo/_ai/_tools/base.py131 # file path should be absolute path for agent-based edit toolsCOMMENT
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/_output/formatters/test_altair.py143# TODO: Add tests for vegafusionCOMMENT
LOWmarimo/_cli/cli.py749 # TODO: consider adding recommended as wellCOMMENT
LOWmarimo/_runtime/dataflow/graph.py330 # TODO: Consider caching on the graph level and updating on register /COMMENT
Dead Code2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMtests/_runtime/script_data/fn_exception.py15CODE
MEDIUMmarimo/_smoke_tests/issues/1851.py12CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMmarimo/_snippets/data/altair-2.py14 Altair provides a variety of aggregation operations in order to build custom histograms. Here is a simple examplCODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWmarimo/_smoke_tests/markdown/codeblocks.py48 # Example usage:COMMENT