Repository Analysis

streamlit/streamlit

Streamlit — A faster way to build and share data apps.

21.3 Moderate AI signal View on GitHub
21.3
Adjusted Score
21.3
Raw Score
100%
Time Factor
2026-05-30
Last Push
44,764
Stars
Python
Language
546,739
Lines of Code
2260
Files
9327
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 1HIGH 302MEDIUM 621LOW 8403

Pattern Findings

9327 matches across 19 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers6065 hits · 5762 pts
SeverityFileLineSnippet
LOWfrontend/app/src/App.test.tsx416function getMockConnectionManagerProp(
LOWfrontend/app/src/App.test.tsx4438 function prepareHostCommunicationManager(
LOWfrontend/app/src/util/hostConfigHelpers.ts82export function reconcileHostConfigValues(
LOWfrontend/app/src/components/Navigation/TopNav.test.tsx51function getNavigationContextOutput(
LOWfrontend/app/src/components/Navigation/utils.ts79export function processNavigationStructure(
LOW…tend/app/src/components/Navigation/SidebarNav.test.tsx148function getSidebarConfigContextOutput(
LOW…tend/app/src/components/Navigation/SidebarNav.test.tsx161function getNavigationContextOutput(
LOWfrontend/app/src/components/AppView/AppView.test.tsx51function getSidebarConfigContextOutput(
LOWfrontend/app/src/components/AppView/AppView.test.tsx64function getNavigationContextOutput(
LOWfrontend/connection/src/ConnectionManager.test.ts92 function getMockWebsocketConnection(): WebsocketConnection {
LOWfrontend/connection/src/StaticConnection.tsx100export async function dispatchAppForwardMessages(
LOWfrontend/connection/src/StaticConnection.tsx125export async function establishStaticConnection(
LOWfrontend/connection/src/WebsocketConnection.test.tsx95function setupFetchMockWithFailures(
LOWfrontend/connection/src/utils.ts39export function isHostConfigBypassEnabled(): boolean {
LOWfrontend/connection/src/ForwardMessageCache.test.ts51function createForwardMsgWithFragment(
LOWfrontend/lib/src/util/utils.test.ts1327 function makeIframeWithEmbeddingClass(
LOWfrontend/lib/src/util/formatNumber.ts48function formatIntlNumberWithLocales(
LOWfrontend/lib/src/util/utils.ts199export function isLightThemeInQueryParams(): boolean {
LOWfrontend/lib/src/util/utils.ts471export function labelVisibilityProtoValueToEnum(
LOWfrontend/lib/src/util/utils.ts493export function chatInputAcceptFileProtoValueToEnum(
LOWfrontend/lib/src/util/utils.ts514function findAnIFrameWithClassName(
LOWfrontend/lib/src/util/utils.ts609export function extractPageNameFromPathName(
LOWfrontend/lib/src/dataframes/arrowFormatUtils.ts181function convertTimestampToSeconds(
LOWfrontend/lib/src/dataframes/arrowParseUtils.ts229function parsePandasIndexColumnTypes(
LOWfrontend/lib/src/dataframes/arrowParseUtils.ts324function parseCategoricalOptionsForColumns(
LOWfrontend/lib/src/components/core/Block/utils.ts196export function checkFlexContainerBackwardsCompatibile(
LOWfrontend/lib/src/components/core/Block/utils.ts209export function shouldActivateScrollToBottom(blockNode: BlockNode): boolean {
LOWfrontend/lib/src/components/core/Block/utils.ts227export function getBorderBackwardsCompatible(blockProto: BlockProto): boolean {
LOWfrontend/lib/src/components/core/Block/Block.test.tsx40function makeHorizontalBlockWithColumns(numColumns: number): BlockNode {
LOWfrontend/lib/src/components/core/Block/Block.test.tsx69function makeVerticalBlockComponent(node: BlockNode): ReactElement {
LOW…ents/shared/Tooltip/useTooltipMeasurementSideEffect.ts38export function useTooltipMeasurementSideEffect(
LOWfrontend/lib/src/components/shared/Icon/DynamicIcon.tsx80export function extractLeadingMaterialIcon(
LOW…mponents/shared/StreamlitMarkdown/styled-components.ts102function getMarkdownHeadingDefinitions(
LOW…ponents/shared/StreamlitMarkdown/StreamlitMarkdown.tsx209function rehypeSetCodeInlineProperty() {
LOW…ponents/shared/StreamlitMarkdown/StreamlitMarkdown.tsx700function createRemarkColoringAndSmall(
LOW…ponents/shared/StreamlitMarkdown/StreamlitMarkdown.tsx819function createRemarkUnsupportedDirectivesCleanup(): () => (
LOW…ponents/shared/StreamlitMarkdown/StreamlitMarkdown.tsx843function createRemarkMaterialIcons(theme: EmotionTheme) {
LOW…ponents/shared/StreamlitMarkdown/StreamlitMarkdown.tsx895function createRemarkStreamlitLogo() {
LOW…ponents/shared/StreamlitMarkdown/StreamlitMarkdown.tsx923function createRemarkTypographicalSymbols() {
LOW…nts/elements/DeckGlJsonChart/patchLumaCanvasContext.ts61 function patchedGetMaxDrawingBufferSize(): [number, number] {
LOW…ib/src/components/elements/PlotlyChart/CustomTheme.tsx39export function applyStreamlitThemeTemplateLayout(
LOW…ents/elements/CodeBlock/StreamlitSyntaxHighlighter.tsx44function StreamlitSyntaxHighlighter({
LOW…lib/src/components/elements/Markdown/Markdown.test.tsx426 function getElementNodeRendererProps(
LOW…ontend/lib/src/components/elements/Html/HtmlWithJs.tsx53function sanitizeHtmlStringAllowingScripts(html: string): string {
LOWfrontend/lib/src/components/elements/Dialog/Dialog.tsx39function mapDialogWidthToModalSize(
LOW…c/components/widgets/DataFrame/hooks/useWidgetState.ts64function parseSelectionStateToGridSelection(
LOW…/lib/src/components/widgets/DataFrame/columns/utils.ts692export function getLinkDisplayValueFromRegex(
LOW…lib/src/components/widgets/ButtonGroup/ButtonGroup.tsx267function getButtonGroupOverridesStyle(
LOW…/components/widgets/CustomComponent/componentUtils.tsx94export function createIframeMessageHandler(
LOW…nents/widgets/BaseWidget/WidgetLabelHelpIconInline.tsx45export function WidgetLabelHelpIconInline({
LOWfrontend/lib/src/theme/getColors.ts268function defaultDivergingColorsArray(genericColors: GenericColors): string[] {
LOWfrontend/lib/src/theme/getColors.ts283function defaultSequentialColorsArray(genericColors: GenericColors): string[] {
LOWfrontend/lib/src/theme/getColors.ts289function defaultCategoricalColorsArray(
LOWfrontend/lib/src/theme/getColors.ts417export function resolveNamedBackgroundColor(
LOWfrontend/lib/src/hooks/useRegisterShortcut.ts144export function isKeyboardEventFromEditableTarget(
LOWfrontend/lib/src/hooks/useRegisterShortcut.ts156export function ensureHotkeysFilterConfigured(): void {
LOWfrontend/lib/src/hooks/useRegisterShortcut.ts237function shouldBlockShortcutInInput(
LOWfrontend/lib/src/hooks/useRegisterShortcut.ts280function toHotkeysSequenceFromTokens(tokens: string[]): string {
LOWe2e_playwright/st_context_test.py48def test_rerun_preserves_context(app: Page):
LOWe2e_playwright/st_chat_input_test.py354def test_max_characters_enforced(
6005 more matches not shown…
Decorative Section Separators427 hits · 1446 pts
SeverityFileLineSnippet
MEDIUMpyproject.toml15# =============================================================================
MEDIUMpyproject.toml17# =============================================================================
MEDIUMpyproject.toml24# =============================================================================
MEDIUMpyproject.toml50# =============================================================================
MEDIUMpyproject.toml52# =============================================================================
MEDIUMpyproject.toml158# =============================================================================
MEDIUMpyproject.toml160# =============================================================================
MEDIUMpyproject.toml341# =============================================================================
MEDIUMpyproject.toml343# =============================================================================
MEDIUMpyproject.toml428# =============================================================================
MEDIUMpyproject.toml430# =============================================================================
MEDIUM…d/lib/src/components/shared/UploadedFile/utils.test.ts39// ── getFileTypeIcon ─────────────────────────────────────────────────
MEDIUM…d/lib/src/components/shared/UploadedFile/utils.test.ts171// ── getFileExtension ────────────────────────────────────────────────
MEDIUM…d/lib/src/components/shared/UploadedFile/utils.test.ts204// ── isImageFile ─────────────────────────────────────────────────────
MEDIUM…d/lib/src/components/shared/UploadedFile/utils.test.ts224// ── truncateFilename ────────────────────────────────────────────────
MEDIUM…d/lib/src/components/shared/UploadedFile/utils.test.ts389// ── useImagePreview ─────────────────────────────────────────────────
MEDIUM…ontend/lib/src/components/shared/UploadedFile/utils.ts32// ── File extension helpers ──────────────────────────────────────────
MEDIUM…ontend/lib/src/components/shared/UploadedFile/utils.ts131// ── Filename truncation ─────────────────────────────────────────────
MEDIUM…ontend/lib/src/components/shared/UploadedFile/utils.ts180// ── Image preview hook ──────────────────────────────────────────────
MEDIUMe2e_playwright/st_expander.py120# ============================================================================
MEDIUMe2e_playwright/st_expander.py122# ============================================================================
MEDIUMe2e_playwright/st_expander.py213# ============================================================================
MEDIUMe2e_playwright/st_expander.py226# ============================================================================
MEDIUMe2e_playwright/st_expander.py247# ============================================================================
MEDIUMe2e_playwright/st_expander.py268# ============================================================================
MEDIUMe2e_playwright/st_expander.py270# ============================================================================
MEDIUMe2e_playwright/st_expander.py281# ============================================================================
MEDIUMe2e_playwright/st_expander.py284# ============================================================================
MEDIUMe2e_playwright/web_server_test.py49# =============================================================================
MEDIUMe2e_playwright/web_server_test.py51# =============================================================================
MEDIUMe2e_playwright/web_server_test.py102# =============================================================================
MEDIUMe2e_playwright/web_server_test.py104# =============================================================================
MEDIUMe2e_playwright/web_server_test.py277# =============================================================================
MEDIUMe2e_playwright/web_server_test.py279# =============================================================================
MEDIUMe2e_playwright/web_server_test.py306# =============================================================================
MEDIUMe2e_playwright/web_server_test.py308# =============================================================================
MEDIUMe2e_playwright/web_server_test.py325# =============================================================================
MEDIUMe2e_playwright/web_server_test.py327# =============================================================================
MEDIUMe2e_playwright/web_server_test.py425# =============================================================================
MEDIUMe2e_playwright/web_server_test.py427# =============================================================================
MEDIUMe2e_playwright/web_server_test.py523# =============================================================================
MEDIUMe2e_playwright/web_server_test.py525# =============================================================================
MEDIUMe2e_playwright/web_server_test.py563# =============================================================================
MEDIUMe2e_playwright/web_server_test.py565# =============================================================================
MEDIUMe2e_playwright/web_server_test.py625# =============================================================================
MEDIUMe2e_playwright/web_server_test.py627# =============================================================================
MEDIUMe2e_playwright/web_server_test.py491# =============================================================================
MEDIUMe2e_playwright/web_server_test.py493# =============================================================================
MEDIUMe2e_playwright/st_popover.py100# ============================================================================
MEDIUMe2e_playwright/st_popover.py102# ============================================================================
MEDIUMe2e_playwright/st_popover.py137# ============================================================================
MEDIUMe2e_playwright/st_popover.py139# ============================================================================
MEDIUMe2e_playwright/st_popover.py150# ============================================================================
MEDIUMe2e_playwright/st_popover.py152# ============================================================================
MEDIUMe2e_playwright/st_popover.py173# ============================================================================
MEDIUMe2e_playwright/st_popover.py175# ============================================================================
MEDIUMe2e_playwright/st_popover.py244# ============================================================================
MEDIUMe2e_playwright/st_popover.py247# ============================================================================
MEDIUMe2e_playwright/st_fragment_parallel_test.py24# =============================================================================
MEDIUMe2e_playwright/st_fragment_parallel_test.py26# =============================================================================
367 more matches not shown…
Cross-File Repetition274 hits · 1370 pts
SeverityFileLineSnippet
HIGHe2e_playwright/st_feedback_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_slider_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_dataframe_selections_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_select_slider_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_checkbox_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_multiselect_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_camera_input_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_link_button_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_radio_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_date_input_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_plotly_chart_select_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_color_picker_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_number_input_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_segmented_control_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_selectbox_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_text_input_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_toggle_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_components_v1_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_altair_chart_basic_select_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_dataframe_interactions_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_pills_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_download_button_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_file_uploader_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_time_input_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_text_area_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_button_test.py0test that the element can have a custom css class via the key argument.
HIGHe2e_playwright/st_datetime_input_test.py0test that an invalid url value reverts to the default.
HIGHe2e_playwright/st_date_input_test.py0test that an invalid url value reverts to the default.
HIGHe2e_playwright/st_time_input_test.py0test that an invalid url value reverts to the default.
HIGHe2e_playwright/st_checkbox_test.py0test that invalid url values are cleared and widget uses default.
HIGHe2e_playwright/st_radio_test.py0test that invalid url values are cleared and widget uses default.
HIGHe2e_playwright/st_color_picker_test.py0test that invalid url values are cleared and widget uses default.
HIGHe2e_playwright/st_number_input_test.py0test that invalid url values are cleared and widget uses default.
HIGHe2e_playwright/st_selectbox_test.py0test that invalid url values are cleared and widget uses default.
HIGHe2e_playwright/st_toggle_test.py0test that invalid url values are cleared and widget uses default.
HIGHe2e_playwright/st_date_input_test.py0test that it correctly calls the callback on change.
HIGHe2e_playwright/st_selectbox_test.py0test that it correctly calls the callback on change.
HIGHe2e_playwright/st_text_input_test.py0test that it correctly calls the callback on change.
HIGHe2e_playwright/st_time_input_test.py0test that it correctly calls the callback on change.
HIGHe2e_playwright/st_text_area_test.py0test that it correctly calls the callback on change.
HIGHe2e_playwright/multipage_apps/mpa_basics_test.py0test that we can switch between pages by clicking on sidebar links.
HIGHe2e_playwright/multipage_apps_v2/mpa_v2_title_test.py0test that we can switch between pages by clicking on sidebar links.
HIGHe2e_playwright/multipage_apps_v2/mpa_v2_basics_test.py0test that we can switch between pages by clicking on sidebar links.
HIGHe2e_playwright/multipage_apps_v2/mpa_v2_basics_test.py0test that we can switch between pages by clicking on sidebar links.
HIGHe2e_playwright/theming/size_and_weight_test_app.py0<style> .stmainblockcontainer { padding-top: 4rem; } </style>
HIGHe2e_playwright/theming/theme_chart_colors_app.py0<style> .stmainblockcontainer { padding-top: 4rem; } </style>
HIGHe2e_playwright/theming/custom_text_colors.py0<style> .stmainblockcontainer { padding-top: 4rem; } </style>
HIGHe2e_playwright/theming/custom_main_colors.py0<style> .stmainblockcontainer { padding-top: 4rem; } </style>
HIGHe2e_playwright/theming/custom_background_colors.py0<style> .stmainblockcontainer { padding-top: 4rem; } </style>
HIGHlib/streamlit/runtime/state/session_state.py0return a list of serialized widget values for each widget with a value.
HIGHlib/streamlit/runtime/state/session_state.py0return a list of serialized widget values for each widget with a value.
HIGHlib/streamlit/runtime/state/safe_session_state.py0return a list of serialized widget values for each widget with a value.
HIGHlib/streamlit/testing/v1/element_tree.py0protobuf message representing the state of the widget, including any interactions that have happened. should be the same
HIGHlib/streamlit/testing/v1/element_tree.py0protobuf message representing the state of the widget, including any interactions that have happened. should be the same
HIGHlib/streamlit/testing/v1/element_tree.py0protobuf message representing the state of the widget, including any interactions that have happened. should be the same
HIGHlib/streamlit/testing/v1/element_tree.py0protobuf message representing the state of the widget, including any interactions that have happened. should be the same
HIGHlib/streamlit/testing/v1/element_tree.py0protobuf message representing the state of the widget, including any interactions that have happened. should be the same
HIGHlib/streamlit/testing/v1/element_tree.py0protobuf message representing the state of the widget, including any interactions that have happened. should be the same
HIGHlib/streamlit/testing/v1/element_tree.py0the widget's formatting function for displaying options. (callable)
HIGHlib/streamlit/testing/v1/element_tree.py0the widget's formatting function for displaying options. (callable)
214 more matches not shown…
Over-Commented Block1189 hits · 1139 pts
SeverityFileLineSnippet
LOW.pre-commit-config.yaml1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWpyproject.toml1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWfrontend/.yarnrc.yml1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWfrontend/vitest.setup.ts21
LOWfrontend/vitest.setup.ts41// get StreamlitConfig() {
LOWfrontend/app/performance/apps/crud_app.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWfrontend/app/performance/apps/blank_app.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWfrontend/app/performance/apps/__init__.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWfrontend/app/performance/apps/dashboard_app.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOW…ontend/app/performance/apps/multipage/multipage_app.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOW…app/performance/apps/multipage/pages/2_Mapping_Demo.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOW…pp/performance/apps/multipage/pages/3_Plotting_Demo.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOW…p/performance/apps/multipage/pages/1_Animation_Demo.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWfrontend/app/src/App.tsx501 // for the first render.
LOWfrontend/app/src/App.tsx721 })
LOWfrontend/connection/src/WebsocketConnection.tsx521 )
LOWfrontend/utils/src/types/index.ts41 BACKEND_BASE_URL?: string
LOWfrontend/lib/src/util/IFrameUtil.ts41 // Lets the sandboxed document open new windows without those windows inheriting the sandboxing. For example, this can
LOW…ponents/shared/StreamlitMarkdown/StreamlitMarkdown.tsx381 )
LOW…b/src/components/elements/Popover/styled-components.ts21}>(({ theme, $hideChevron }) => ({
LOW…nts/elements/ArrowVegaLiteChart/ArrowVegaLiteChart.tsx181 const useStretchHeight = shouldHeightStretch(heightConfig)
LOW…nts/elements/ArrowVegaLiteChart/ArrowVegaLiteChart.tsx241 ])
LOW…ib/src/components/widgets/DataFrame/arrowUtils.test.ts121 #T_f116e_row0_col2 { color: red; opacity: 20% }
LOW…/src/components/widgets/DataFrame/menus/ColumnMenu.tsx41 // The top position of the menu
LOW…widgets/BidiComponent/BidiComponentContextProvider.tsx81 }
LOW…c/components/widgets/BidiComponent/utils/theme.test.ts241 const result = objectToCssCustomProperties(createTheme(), "--custom")
LOW…c/components/widgets/BidiComponent/utils/theme.test.ts261 // 2) Either map it in `extractComponentsV2Theme` or add it to
LOWfrontend/lib/src/components/widgets/Slider/Slider.tsx681 : thumb2ValueRect.width
LOWfrontend/lib/src/components/widgets/Slider/Slider.tsx701 //
LOWfrontend/lib/src/components/widgets/Slider/Slider.tsx741 //
LOW…mponents/widgets/CustomComponent/ComponentInstance.tsx421
LOW…/components/widgets/CustomComponent/componentUtils.tsx201 // any further non-JSON datatypes we add support for down the road will
LOW…nd/lib/src/components/widgets/CustomComponent/enums.ts21 // Data: { apiVersion: number }
LOWfrontend/lib/src/theme/globalStyles.ts81 // focus outline. In general, this would mean that the outline is only applied if the
LOWe2e_playwright/st_components_v1_import_via_st_test.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_write_images.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_context_test.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_chat_input_test.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_layouts_container_various_elements.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/fast_rerun_safety_test.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_query_params_test.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_menu_button.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_tabs_test.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_session_state.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_feedback_test.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_pagination_test.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_container.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_expander_state_test.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_session_state_test.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_menu_button_test.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/app_hotkeys.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_line_chart.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_pydeck_chart_select.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_map_ensure_no_stale_maps.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_layouts_container_directions.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/auth.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_dataframe_index_types.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_layouts_container_gap_size_test.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/fast_rerun_safety.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
LOWe2e_playwright/st_fragment_chat_response_test.py1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
1129 more matches not shown…
Unused Imports658 hits · 622 pts
SeverityFileLineSnippet
LOWfrontend/app/performance/apps/crud_app.py15
LOWfrontend/app/performance/apps/blank_app.py16
LOWe2e_playwright/st_chat_input_test.py15
LOWe2e_playwright/st_layouts_container_various_elements.py15
LOWe2e_playwright/st_feedback_test.py15
LOWe2e_playwright/st_pagination_test.py15
LOWe2e_playwright/st_pydeck_chart_select.py14
LOWe2e_playwright/auth.py15
LOWe2e_playwright/asgi_app_test.py21
LOWe2e_playwright/st_pyplot.py25
LOWe2e_playwright/conftest.py20
LOWe2e_playwright/auth_test.py15
LOWe2e_playwright/st_app_advanced.py20
LOWe2e_playwright/st_main_layout_test.py15
LOWe2e_playwright/st_navigation_external_links_test.py21
LOWe2e_playwright/appnode_hierarchy.py27
LOWe2e_playwright/st_dataframe_styler_support.py15
LOWe2e_playwright/st_pydeck_chart_select_test.py16
LOWe2e_playwright/st_datetime_input_test.py15
LOWe2e_playwright/mega_tester_app.py15
LOWe2e_playwright/st_navigation_expanded_test.py17
LOWe2e_playwright/st_app_advanced_script.py21
LOWe2e_playwright/st_app_advanced_test.py21
LOWe2e_playwright/st_pydeck_chart.py16
LOWe2e_playwright/web_server_test.py30
LOWe2e_playwright/st_multiselect_test.py15
LOWe2e_playwright/st_fragments_nested_test.py15
LOWe2e_playwright/markdown_features_test.py15
LOWe2e_playwright/basic_app_test.py14
LOWe2e_playwright/st_map.py15
LOWe2e_playwright/st_map.py23
LOWe2e_playwright/st_layouts_container_gap_size.py15
LOWe2e_playwright/st_layouts_container_gap_size.py22
LOWe2e_playwright/websocket_reconnects_test.py15
LOWe2e_playwright/st_navigation_test.py15
LOWe2e_playwright/forward_msg_cache_test.py14
LOWe2e_playwright/st_audio_input_test.py15
LOWe2e_playwright/st_table.py15
LOWe2e_playwright/st_selectbox_test.py14
LOWe2e_playwright/st_space.py15
LOWe2e_playwright/st_space.py22
LOWe2e_playwright/st_layouts_container_alignment.py15
LOWe2e_playwright/hostframe_app_test.py15
LOWe2e_playwright/mega_tester_app_test.py15
LOWe2e_playwright/st_dataframe_config.py15
LOWe2e_playwright/st_dataframe_interactions_test.py15
LOWe2e_playwright/st_image.py15
LOWe2e_playwright/iframe_resizer_test.py15
LOWe2e_playwright/st_multiselect.py15
LOWe2e_playwright/st_fragment_parallel_test.py17
LOWe2e_playwright/st_columns.py15
LOWe2e_playwright/st_columns.py25
LOWe2e_playwright/appnode_hierarchy_test.py15
LOWe2e_playwright/st_fragment_multiple_fragments_test.py15
LOWe2e_playwright/st_time_input_test.py15
LOWe2e_playwright/host_config_bypass_test.py22
LOWe2e_playwright/custom_components/pdf_component.py22
LOWe2e_playwright/custom_components/popular_components.py39
LOWe2e_playwright/shared/pydeck_utils.py15
LOWe2e_playwright/shared/theme_utils.py17
598 more matches not shown…
Self-Referential Comments142 hits · 453 pts
SeverityFileLineSnippet
MEDIUMpyproject.toml18# This file defines:
MEDIUMe2e_playwright/st_pyplot.py99# Create a simple figure for width testing
MEDIUMe2e_playwright/st_help.py96# Create a class with very long documentation to demonstrate width differences
MEDIUMe2e_playwright/basic_app_test.py42 # Define an acceptable threshold for total size of web assets loaded on the
MEDIUMe2e_playwright/basic_app_test.py94 # Define an acceptable threshold for total websocket message size (in bytes)
MEDIUMe2e_playwright/forward_msg_cache.py79 # Create a large dataframe
MEDIUMe2e_playwright/web_server.py35# Create a simple 1x1 red pixel PNG for testing.
MEDIUMe2e_playwright/forward_msg_cache_test.py78 # Define an acceptable threshold for total websocket message size (in MB)
MEDIUMe2e_playwright/st_table.py308# Create a larger dataset for scrolling tests
MEDIUMe2e_playwright/asgi_app.py19# Create the ASGI app pointing to the mega_tester_app.py script
MEDIUMe2e_playwright/st_plotly_chart_dimensions.py24# Create a simple chart for width testing
MEDIUMe2e_playwright/st_plotly_chart_dimensions.py51# Create a simple chart for height testing
MEDIUMe2e_playwright/st_altair_chart.py148# Create a scatter plot with marginal histograms using the pattern: top_hist & (points | right_hist)
MEDIUMe2e_playwright/st_file_uploader_test.py59 # Create a nested structure so the uploaded directory preserves relative paths
MEDIUMe2e_playwright/st_file_uploader_test.py69 # Create the directory
MEDIUMe2e_playwright/st_file_uploader_test.py416 # Create a temporary directory with test files
MEDIUMe2e_playwright/multipage_apps_v2/mpa_v2_top_nav.py115 # Create a single section with 3 pages
MEDIUMscripts/create_release.py54 # Create the release with the generated release notes
MEDIUMscripts/update_material_icon_font_and_names.py71# Create a set to store unique names
MEDIUM.github/workflows/release-tag-and-pr-creation.yml137 # Create the tag explicitly on the verified commit
MEDIUM.github/actions/make_init/action.yml47 # Create the cache directory if it does not exist.
MEDIUMlib/streamlit/config.py1257# Create a section for each custom theme element
MEDIUMlib/streamlit/type_util.py484 # Create a new event loop.
MEDIUMlib/streamlit/config_util.py536 # Create a filtered copy of the theme content
MEDIUMlib/streamlit/config_util.py551 # Create the section in our filtered theme and validate it
MEDIUMlib/streamlit/web/bootstrap.py381 # Create the server. It won't start running yet.
MEDIUMlib/streamlit/web/bootstrap.py402 # Define a main function to handle the event loop logic
MEDIUMlib/streamlit/web/server/starlette/starlette_app.py244 # Create the Starlette application with lifespan handler
MEDIUMlib/streamlit/web/server/starlette/starlette_app.py662 # Create the runtime if not already created
MEDIUMlib/streamlit/runtime/secrets.py477 # Create a mutable copy of current secrets
MEDIUMlib/streamlit/runtime/state/widgets.py159 # Create the widget's updated metadata, and register it with session_state.
MEDIUMlib/streamlit/runtime/caching/cache_data_api.py233 # Create a new cache object and put it in our dict
MEDIUMlib/streamlit/runtime/caching/cache_utils.py504 # Create the hash from each arg value, except for those args whose name
MEDIUMlib/streamlit/runtime/caching/cache_resource_api.py152 # Create a new cache object and put it in our dict
MEDIUMlib/streamlit/runtime/caching/cache_resource_api.py499 ... # Create a database session object that points to the URL.
MEDIUMlib/streamlit/runtime/caching/cache_resource_api.py523 ... # Create a database session object that points to the URL.
MEDIUMlib/streamlit/runtime/caching/cache_resource_api.py536 ... # Create a database connection object that points to the URL.
MEDIUMlib/streamlit/runtime/caching/cache_resource_api.py556 ... # Create a database connection object that points to the URL.
MEDIUMlib/streamlit/components/v2/bidi_component/main.py339 # Create an empty state with the default value and return it
MEDIUMlib/streamlit/elements/graphviz_chart.py114 >>> # Create a graphlib graph object
MEDIUMlib/streamlit/elements/lib/built_in_chart_utils.py181 # Create a Chart with x and y encodings.
MEDIUMlib/streamlit/elements/lib/built_in_chart_utils.py271 # Create a selection that chooses the nearest point & selects based on x-value.
MEDIUMlib/streamlit/elements/lib/options_selector_utils.py433 # Create a set of formatted options for O(1) lookup.
MEDIUMlib/tests/delta_generator_test_case.py60 # Create a new ScriptRunContext to use for the test.
MEDIUMlib/tests/delta_generator_test_case.py76 # Create a MemoryMediaFileStorage instance, and the MediaFileManager
MEDIUMlib/tests/streamlit/streamlit_test.py198 # Define an acceptable threshold for import time (in microseconds).
MEDIUMlib/tests/streamlit/write_test.py502 # Create a mock for ChatCompletionChunk
MEDIUMlib/tests/streamlit/config_util_test.py1075 # Create a theme file larger than 1MB
MEDIUMlib/tests/streamlit/components_test.py496 # Create a component instance without a key and some custom data
MEDIUMlib/tests/streamlit/components_test.py503 # Create a second component instance with different custom data
MEDIUMlib/tests/streamlit/components_test.py467 # Create a component instance with a key and some custom data
MEDIUMlib/tests/streamlit/components_test.py479 # Create a second component instance with the same key, and different custom data
MEDIUMlib/tests/streamlit/components_test.py705 # Create a test DataFrame
MEDIUMlib/tests/streamlit/components_test.py726 # Create an empty DataFrame
MEDIUMlib/tests/streamlit/config_test.py183 # Create the config option.
MEDIUMlib/tests/streamlit/config_test.py219 # Create the config option.
MEDIUMlib/tests/streamlit/config_test.py474 # Create a dummy default option.
MEDIUMlib/tests/streamlit/config_test.py547 # Create a dummy default option
MEDIUMlib/tests/streamlit/config_test.py583 # Create a dummy default option.
MEDIUMlib/tests/streamlit/config_test.py611 # Create a dummy default option.
82 more matches not shown…
Excessive Try-Catch Wrapping201 hits · 223 pts
SeverityFileLineSnippet
LOWe2e_playwright/conftest.py410 except Exception:
LOWe2e_playwright/conftest.py1169 except Exception as exc:
LOWe2e_playwright/conftest.py1185 except Exception:
LOWe2e_playwright/st_markdown.py180 except Exception:
LOWe2e_playwright/st_status.py59except Exception:
LOWe2e_playwright/mega_tester_app.py1122 except Exception as ex:
LOWe2e_playwright/mega_tester_app.py1135 except Exception as ex:
LOWe2e_playwright/basic_app_test.py61 except Exception as ex:
MEDIUMe2e_playwright/basic_app_test.py62 print(f"Error calculating size of web assets: {ex}")
LOWe2e_playwright/st_audio_input_test.py48 except Exception:
LOWe2e_playwright/st_rerun.py45 except Exception as e:
MEDIUMe2e_playwright/st_rerun.py41def fragment_with_rerun_in_try_block():
LOWe2e_playwright/shared/performance.py98 except Exception:
LOWe2e_playwright/shared/performance.py190 except Exception:
LOWe2e_playwright/shared/performance.py197 except Exception:
LOWe2e_playwright/shared/performance.py203 except Exception:
LOWe2e_playwright/shared/dataframe_utils.py490 except Exception as e:
LOWe2e_playwright/load_testing/worker.py171 except Exception as e:
LOWe2e_playwright/load_testing/test_load.py137 except Exception as e:
LOWspecs/2026-03-05-parallel-fragments/tech-spec.md306 except Exception as e:
LOW.claude/hooks/pre_bash_redirect.py71 except Exception as e:
MEDIUM.claude/hooks/pre_bash_redirect.py68def main() -> None:
LOWscripts/update_e2e_snapshots.py290 except Exception as e:
MEDIUMscripts/update_e2e_snapshots.py291 print(f"Error: {e}")
MEDIUMscripts/snapshot_cleanup.py163 print(f"Error finding test files: {e}")
LOWscripts/snapshot_cleanup.py212 except Exception as e:
MEDIUMscripts/snapshot_cleanup.py213 print(f"Error processing {test_file}: {e}")
LOWscripts/snapshot_cleanup.py231 except Exception as e:
MEDIUMscripts/snapshot_cleanup.py232 print(f"Error searching for {snapshot_name}: {e}")
LOWscripts/snapshot_cleanup.py430 except Exception as e:
LOWscripts/check_license_headers.py106 except Exception:
MEDIUMscripts/sync_vscode_devcontainer.py87 print(f"Error: File not found: {file_path}")
MEDIUMscripts/sync_vscode_devcontainer.py90 print(f"Error: Invalid JSON in {file_path}: {e}")
LOWscripts/sync_vscode_devcontainer.py113 except Exception as e:
MEDIUMscripts/sync_vscode_devcontainer.py114 print(f"Error: Failed to save {file_path}: {e}")
LOWscripts/sync_vscode_devcontainer.py214 except Exception as e:
LOWscripts/sync_vscode_devcontainer.py254 except Exception as e:
MEDIUMscripts/sync_vscode_devcontainer.py273 print("Error: 'recommendations' key not found in .vscode/extensions.json")
LOWscripts/pypi_nightly_create_tag.py51 except Exception as e:
MEDIUMscripts/changelog_fetch_prs.py61 print(f"Error running git log: {result.stderr}", file=sys.stderr)
MEDIUMscripts/changelog_fetch_prs.py183 print("Error: failed to fetch PR metadata from GitHub API.", file=sys.stderr)
LOWscripts/log_agent_metrics.py47 except Exception:
LOWscripts/log_agent_metrics.py60 except Exception:
MEDIUMscripts/changelog_categorize_prs.py192 print(f"Error: input file '{args.input}' not found", file=sys.stderr)
MEDIUMscripts/sync_ruff_version.py57 print(f"Error: File not found: {pyproject_path}")
MEDIUMscripts/sync_ruff_version.py76 print(f"Error: File not found: {pre_commit_config_path}")
MEDIUMscripts/sync_ruff_version.py101 print(f"Error updating .pre-commit-config.yaml: {e}")
MEDIUMscripts/sync_ruff_version.py122 print("Error: Could not find ruff version in pyproject.toml")
MEDIUMscripts/sync_ruff_version.py126 print("Error: Could not find ruff version in .pre-commit-config.yaml")
MEDIUMscripts/sync_ruff_version.py157 print("Error: Could not find ruff version in pyproject.toml")
MEDIUMscripts/sync_ruff_version.py163 print("Error: Could not find ruff version in .pre-commit-config.yaml")
MEDIUMscripts/fetch_flaky_tests.py49 print(f"Error running gh command: {' '.join(args)}", file=sys.stderr)
LOWlib/streamlit/config.py376 except Exception: # noqa: S110
LOWlib/streamlit/config.py539 except Exception:
LOWlib/streamlit/config.py2607 except Exception:
LOWlib/streamlit/config.py2710 except Exception: # noqa: S110
LOWlib/streamlit/config.py2715 except Exception: # noqa: S110
LOWlib/streamlit/dataframe_util.py1053 except Exception:
LOWlib/streamlit/dataframe_util.py1064 except Exception:
LOWlib/streamlit/dataframe_util.py1084 except Exception:
141 more matches not shown…
Cross-Language Confusion27 hits · 162 pts
SeverityFileLineSnippet
HIGHe2e_playwright/st_sidebar_flicker_test.py57 if (this.dataset && this.dataset.testid === 'stSidebar' && name === 'aria-expanded') {
HIGHe2e_playwright/st_sidebar_flicker_test.py58 window.__sidebarStates.push({
HIGHe2e_playwright/st_sidebar_flicker_test.py74 if (!lastState || lastState.ariaExpanded !== ariaExpanded) {
HIGHe2e_playwright/st_sidebar_flicker_test.py75 window.__sidebarStates.push({
HIGHe2e_playwright/st_audio_input_test.py573 window.blobTracking.created.push(url);
HIGHe2e_playwright/st_audio_input_test.py579 window.blobTracking.revoked.push(url);
HIGHe2e_playwright/st_video_test.py55 video_element.evaluate("el => el.readyState >= 3 || el.duration > 0")
HIGHe2e_playwright/shared/app_utils.py1185 if (!mutationList || mutationList.length === 0) {
HIGHe2e_playwright/shared/app_utils.py1195 window.streamlitPlaywrightDebugConnectionStatuses.push(state);
HIGHe2e_playwright/shared/app_utils.py1255 if (!mutationList || mutationList.length === 0) {
HIGHe2e_playwright/shared/app_utils.py1320 return images.every(img => img.complete && img.naturalHeight !== 0);
HIGHlib/streamlit/runtime/session_manager.py231 When active session-related methods are left undefined, their default
HIGHlib/streamlit/runtime/caching/hashing.py322 hash_stacks.current.push(obj)
HIGHlib/streamlit/elements/lib/built_in_chart_utils.py1162 return "quantitative" # Pick anything. If undefined, Vega-Lite may hide the axis.
HIGHlib/tests/streamlit/dataframe_util_test.py695 # if snowflake.snowpark.dataframe.DataFrame def is_snowpark_data_object should return true
HIGHlib/tests/streamlit/components_test.py541 assert df.equals(return_value), "df != return_value"
HIGHlib/tests/streamlit/config_test.py861 '{"key": null}',
HIGHlib/tests/streamlit/runtime/caching/hashing_test.py894 stack.push(BadStr())
HIGHlib/tests/streamlit/testing/element_tree_test.py173 assert d.value.equals(
HIGHlib/tests/streamlit/testing/element_tree_test.py849 assert at.table[0].value.equals(df)
HIGHlib/tests/streamlit/elements/vega_charts_test.py3250 '{"data": {"name": "e49f4eae50f240b9cf1895776f847b5d"}, "mark": {"type": "point"}, "encoding": {"color":
HIGHlib/tests/streamlit/elements/vega_charts_test.py3254 '{"data": {"name": "438d17320890cc476723f9301ba57f91"}, "mark": {"type": "bar"}, "encoding": {"fillOpaci
HIGHlib/tests/streamlit/elements/vega_charts_test.py3258 '{"data": {"name": "438d17320890cc476723f9301ba57f91"}, "mark": {"type": "bar"}, "encoding": {"fillOpaci
HIGHlib/tests/streamlit/elements/vega_charts_test.py3373 '{"vconcat": [{"hconcat": [{"mark": {"type": "point"}, "encoding": {"color": {"field": "species", "type"
HIGHlib/tests/streamlit/elements/vega_charts_test.py3374 '{"vconcat": [{"hconcat": [{"mark": {"type": "point"}, "encoding": {"color": {"field": "species", "type"
HIGHlib/tests/streamlit/elements/text_area_test.py80 # If a proto property is null, it is not determined by
HIGHlib/tests/streamlit/elements/text_input_test.py78 # If a proto property is null, it is not determined by
Redundant / Tautological Comments105 hits · 160 pts
SeverityFileLineSnippet
LOWe2e_playwright/st_data_editor_config_test.py137 # Check if that the value was submitted
LOWe2e_playwright/st_data_editor_config_test.py167 # Check if that the value was submitted
LOWe2e_playwright/conftest.py1364 # Check if reruns are enabled for this test run
LOWe2e_playwright/conftest.py1574 # Add error to the list of test failures:
LOWe2e_playwright/st_heading_test.py342 # Check if the page is still scrolled to the top
LOWe2e_playwright/st_datetime_input_test.py282 # Set value to 2028/01/01 which is valid in initial bounds (2010-2030)
LOWe2e_playwright/st_date_input_test.py352 # Set date to 1960/01/01, which is outside of the allowed min date
LOWe2e_playwright/st_date_input_test.py511 # Set value to 2028/01/01 which is valid in initial bounds (2010-2030)
LOWe2e_playwright/st_plotly_chart_select_test.py142 # Check if the callback was triggered
LOWe2e_playwright/st_selectbox_test.py224 # Check if value is still initial value:
LOWe2e_playwright/st_altair_chart_multiview_select.py62# Check if any selection parameter has actual data (non-empty dict/list)
LOWe2e_playwright/st_altair_chart_multiview_select.py93# Check if any selection parameter has actual data (non-empty dict/list)
LOWe2e_playwright/st_altair_chart_multiview_select.py124# Check if any selection parameter has actual data (non-empty dict/list)
LOWe2e_playwright/st_altair_chart_multiview_select.py159# Check if any selection parameter has actual data (non-empty dict/list)
LOWe2e_playwright/st_dataframe_interactions_test.py541 # Check if that the value was submitted
LOWe2e_playwright/st_dataframe_interactions_test.py622 # Check if that the value was submitted
LOWe2e_playwright/st_dataframe_interactions_test.py596 # Check if that the value was submitted
LOWe2e_playwright/st_dataframe_stable_rendering_test.py43 # Set use_container_width to False:
LOWe2e_playwright/st_status_test.py50 # Check if it has a spinner icon:
LOWe2e_playwright/st_time_input_test.py207 # Check if popover is visible:
LOWe2e_playwright/st_time_input_test.py213 # Check if value is still initial value:
LOWe2e_playwright/shared/animation_utils.py58 # Check if the bounding box is entirely outside the viewport
LOWe2e_playwright/shared/dataframe_utils.py410 # Check if dimensions or position changed
LOW.claude/hooks/pre_bash_redirect.py88 # Check if this is a pytest command targeting e2e_playwright
LOW.claude/hooks/pre_bash_redirect.py97 # Check if command starts with a tool/command that requires `uv run`
LOW.claude/hooks/post_edit_autofix.sh31# Check if file exists (might have been deleted)
LOW.claude/hooks/stop_check.sh27# Check if stop hook already triggered a continuation to prevent infinite loops
LOWscripts/ensure_relative_imports.sh25 # Check if the file has a .ts or .js extension
LOWscripts/ensure_relative_imports.sh27 # Check if the search string does not exist in the file
LOWscripts/snapshot_cleanup.py313 # Check if this snapshot is used
LOWscripts/snapshot_cleanup.py341 # Check if this snapshot is in the disallow list
LOWscripts/pypi_nightly_create_tag.py76 # Verify if version is PEP440 compliant.
LOW.github/workflows/pr-preview.yml665 # Set output to indicate package was built
LOW.github/workflows/playwright-changed-files.yml106 # Check if file is in e2e_playwright directory (including subdirectories)
LOW.github/workflows/playwright-changed-files.yml113 # Check if file still exists (not deleted)
LOW.github/workflows/playwright-changed-files.yml129 # Check if the corresponding test file exists
LOW.github/workflows/playwright-changed-files.yml140 # Check if we've already added this test
LOW.github/workflows/update-emojis-material-icons.yml68 # Check if any files were modified (indicating updates were made)
LOW.github/actions/make_init/action.yml106 # Check if the cached venv has valid symlinks
LOWlib/streamlit/config.py850 # Check if we are running in Linux and DISPLAY is unset
LOWlib/streamlit/auth_util.py459 # Check if cookie needs to be split
LOWlib/streamlit/source_util.py52 # Open file respecting PEP263 encoding. If no encoding header is
LOWlib/streamlit/config_util.py625 # Check if it's a URL using the url_util helper (only allow http/https schemes by default)
LOWlib/streamlit/config_util.py781 # Check if it's a file path or URL (not just "light" or "dark")
LOWlib/streamlit/watcher/local_sources_watcher.py131 # Check if this is a file in a watched directory
LOWlib/streamlit/web/bootstrap.py409 # Check if we're already in an event loop
LOWlib/streamlit/web/skills.py110 # Check if cwd or a project ancestor already has agent directories.
LOWlib/streamlit/web/skills.py258 # Check if it's a Streamlit-owned symlink we can replace
LOWlib/streamlit/web/skills.py717 # Check if running interactively
LOWlib/streamlit/web/cli.py307 # Check if the script contains an ASGI app instance (st.App, FastAPI, Starlette).
LOW…server/starlette/starlette_path_security_middleware.py168 # Check if the path contains unsafe patterns
LOWlib/streamlit/web/server/starlette/starlette_app.py538 # Check if CLI set the main script path (streamlit run)
LOWlib/streamlit/web/server/starlette/starlette_app.py648 # Check if the runtime was actually started by the parent framework.
LOWlib/streamlit/runtime/credentials.py216 # Write the file
LOWlib/streamlit/runtime/state/session_state.py1167 # Check if URL value is empty (e.g., ?foo= with no value)
LOWlib/streamlit/runtime/state/query_params.py422 # Check if any bound params exist
LOW…amlit/runtime/scriptrunner_utils/script_run_context.py264 # Check if this is a same-page rerun BEFORE updating page_script_hash
LOW…ts/templates/apps/dashboard-companies/streamlit_app.py406 # Check if the clicked cell is in the company_name column
LOWlib/streamlit/navigation/page.py288 # Check if page is an external URL
LOWlib/streamlit/components/v2/component_registry.py348 # Check if the existing definition is different and NOT a placeholder.
45 more matches not shown…
Deep Nesting111 hits · 102 pts
SeverityFileLineSnippet
LOWe2e_playwright/conftest.py1303
LOWe2e_playwright/st_sidebar_flicker_test.py93
LOWe2e_playwright/custom_components/popular_components.py109
LOWe2e_playwright/shared/performance.py105
LOWe2e_playwright/shared/stats_reporter.py500
LOWscripts/snapshot_cleanup.py141
LOWscripts/snapshot_cleanup.py237
LOWscripts/slack_notifications.py61
LOWscripts/changelog_fetch_prs.py132
LOWscripts/changelog_categorize_prs.py74
LOWscripts/sync_ruff_version.py46
LOWscripts/fetch_flaky_tests.py167
LOWlib/streamlit/config.py2885
LOWlib/streamlit/dataframe_util.py1364
LOWlib/streamlit/logger.py32
LOWlib/streamlit/config_util.py91
LOWlib/streamlit/config_util.py336
LOWlib/streamlit/config_util.py367
LOWlib/streamlit/config_util.py441
LOWlib/streamlit/config_util.py510
LOWlib/streamlit/config_util.py744
LOWlib/streamlit/watcher/util.py41
LOWlib/streamlit/watcher/local_sources_watcher.py126
LOWlib/streamlit/watcher/event_based_path_watcher.py400
LOWlib/streamlit/web/bootstrap.py203
LOWlib/streamlit/web/skills.py227
LOWlib/streamlit/web/skills.py287
LOWlib/streamlit/web/server/app_discovery.py123
LOWlib/streamlit/web/server/app_discovery.py263
LOWlib/streamlit/web/server/starlette/starlette_server.py266
LOWlib/streamlit/web/server/starlette/starlette_server.py453
LOWlib/streamlit/web/server/starlette/starlette_routes.py307
LOWlib/streamlit/web/server/starlette/starlette_routes.py329
LOW…/streamlit/web/server/starlette/starlette_websocket.py359
LOW…/streamlit/web/server/starlette/starlette_websocket.py386
LOWlib/streamlit/web/server/starlette/starlette_app.py463
LOWlib/streamlit/runtime/app_session.py1149
LOWlib/streamlit/runtime/app_session.py338
LOWlib/streamlit/runtime/app_session.py599
LOWlib/streamlit/runtime/credentials.py229
LOWlib/streamlit/runtime/metrics_util.py305
LOWlib/streamlit/runtime/runtime.py624
LOWlib/streamlit/runtime/media_file_manager.py137
LOWlib/streamlit/runtime/fragment.py332
LOWlib/streamlit/runtime/fragment.py278
LOWlib/streamlit/runtime/fragment.py359
LOWlib/streamlit/runtime/fragment.py378
LOWlib/streamlit/runtime/secrets.py515
LOWlib/streamlit/runtime/stats.py345
LOWlib/streamlit/runtime/download_data_util.py20
LOWlib/streamlit/runtime/state/session_state.py264
LOWlib/streamlit/runtime/state/session_state.py472
LOWlib/streamlit/runtime/state/session_state.py737
LOWlib/streamlit/runtime/state/session_state.py880
LOWlib/streamlit/runtime/state/session_state.py998
LOWlib/streamlit/runtime/state/session_state.py1148
LOWlib/streamlit/runtime/state/query_params.py856
LOWlib/streamlit/runtime/state/query_params.py723
LOWlib/streamlit/runtime/scriptrunner/magic.py56
LOWlib/streamlit/runtime/scriptrunner/script_runner.py529
51 more matches not shown…
Fake / Example Data72 hits · 81 pts
SeverityFileLineSnippet
LOW…src/components/widgets/DataFrame/columns/utils.test.ts73 const errorCell = getErrorCell("Foo Error", "Lorem Ipsum Dolor")
LOW…src/components/widgets/DataFrame/columns/utils.test.ts79 expect(errorCell.errorDetails).toEqual("Lorem Ipsum Dolor")
LOWe2e_playwright/st_chat_input_test.py361 "Lorem ipsum dolor amet, consectetur adipiscing elit. Mauris tristique est at "
LOWe2e_playwright/st_chat_input_test.py371 "Lorem ipsum dolor amet, consectetur adipiscing elit. Mauris tristique est at "
LOWe2e_playwright/st_chat_input_test.py540 "Lorem ipsum dolor amet, consectetur adipiscing elit. "
LOWe2e_playwright/auth_test.py162 expect_markdown(app, "John Doe")
LOWe2e_playwright/auth_test.py174 text = app.get_by_test_id("stMarkdownContainer").filter(has_text="John Doe")
LOWe2e_playwright/auth_test.py190 expect_markdown(app, "John Doe")
LOWe2e_playwright/mega_tester_app.py81 yield "dolor sit amet"
LOWe2e_playwright/st_expander.py47 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum arcu nisl, tincidunt id "
LOWe2e_playwright/st_expander.py47 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum arcu nisl, tincidunt id "
LOWe2e_playwright/st_expander.py62 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum arcu nisl, tincidunt id "
LOWe2e_playwright/st_expander.py62 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum arcu nisl, tincidunt id "
LOWe2e_playwright/st_altair_chart_title.py25 title="Lorem ipsum dolor sit amet, consectetur adipiscing elit. " * 5,
LOWe2e_playwright/st_altair_chart_title.py25 title="Lorem ipsum dolor sit amet, consectetur adipiscing elit. " * 5,
LOWe2e_playwright/st_text.py25 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore "
LOWe2e_playwright/st_text.py25 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore "
LOWe2e_playwright/forward_msg_cache.py39 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis neque "
LOWe2e_playwright/forward_msg_cache.py39 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis neque "
LOWe2e_playwright/forward_msg_cache.py44 "pharetra et non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing "
LOWe2e_playwright/forward_msg_cache.py44 "pharetra et non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing "
LOWe2e_playwright/st_table.py270 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore.",
LOWe2e_playwright/st_table.py270 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore.",
LOWe2e_playwright/mega_tester_app_test.py379 expect(app.get_by_text("lorem ipsum", exact=False)).to_be_visible()
LOWe2e_playwright/mega_tester_app_test.py380 expect(app.get_by_text("dolor sit amet", exact=False)).to_be_visible()
LOWe2e_playwright/st_write_stream.py27Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
LOWe2e_playwright/st_write_stream.py27Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
LOWe2e_playwright/st_chat_message.py51Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris tristique est
LOWe2e_playwright/st_chat_message.py51Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris tristique est
LOWe2e_playwright/st_chat_message.py69 st.write("Lorem ipsum dolor sit amet")
LOWe2e_playwright/st_chat_message.py69 st.write("Lorem ipsum dolor sit amet")
LOWe2e_playwright/st_columns.py28 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor "
LOWe2e_playwright/st_columns.py28 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor "
LOWe2e_playwright/st_heading.py60lorem_ipsum_text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit"
LOWe2e_playwright/st_heading.py60lorem_ipsum_text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit"
LOWe2e_playwright/shared/oidc_mock_server.py132 "name": "John Doe",
LOW…playwright/load_testing/scenarios/many_messages_app.py28# ~1KB lorem ipsum text block
LOW…playwright/load_testing/scenarios/many_messages_app.py33 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis neque "
LOW…playwright/load_testing/scenarios/many_messages_app.py33 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis neque "
LOW…playwright/load_testing/scenarios/many_messages_app.py38 "pharetra et non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing "
LOW…playwright/load_testing/scenarios/many_messages_app.py38 "pharetra et non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing "
LOW…ts/templates/apps/dashboard-companies/streamlit_app.py48 "Acme Corp",
LOWlib/streamlit/elements/write.py135 >>> Lorem ipsum dolor sit amet, **consectetur adipiscing** elit, sed do eiusmod tempor
LOWlib/streamlit/elements/write.py135 >>> Lorem ipsum dolor sit amet, **consectetur adipiscing** elit, sed do eiusmod tempor
LOWlib/streamlit/elements/layouts.py316 >>> long_text = "Lorem ipsum. " * 1000
LOWlib/streamlit/elements/layouts.py565 >>> left.markdown("Lorem ipsum " * 10)
LOWlib/streamlit/elements/layouts.py566 >>> middle.markdown("Lorem ipsum " * 5)
LOWlib/streamlit/elements/layouts.py567 >>> right.markdown("Lorem ipsum ")
LOWlib/streamlit/elements/widgets/button.py699 >>> message = st.text_area("Message", value="Lorem ipsum.\nStreamlit is cool.")
LOWlib/tests/streamlit/config_util_test.py74 "Lorem ipsum dolor sit amet,\nconsectetur adipiscing elit.",
LOWlib/tests/streamlit/config_util_test.py74 "Lorem ipsum dolor sit amet,\nconsectetur adipiscing elit.",
LOWlib/tests/streamlit/config_util_test.py63 Lorem ipsum dolor sit amet,
LOW…s/streamlit/web/server/starlette/starlette_app_test.py1005 "email": "user@example.com",
LOW…s/streamlit/web/server/starlette/starlette_app_test.py1031 assert runtime.last_user_info.get("email") == "user@example.com"
LOW…s/streamlit/web/server/starlette/starlette_app_test.py1138 "email": "user@example.com",
LOW…amlit/web/server/starlette/starlette_websocket_test.py147 headers.getlist.return_value = ["user@example.com"]
LOW…amlit/web/server/starlette/starlette_websocket_test.py151 assert result == {"email": "user@example.com"}
LOW…amlit/web/server/starlette/starlette_websocket_test.py176 "X-User-Email": ["user@example.com"],
LOW…amlit/web/server/starlette/starlette_websocket_test.py177 "X-User-Name": ["John Doe"],
LOW…amlit/web/server/starlette/starlette_websocket_test.py182 assert result == {"email": "user@example.com", "name": "John Doe"}
12 more matches not shown…
AI Slop Vocabulary34 hits · 62 pts
SeverityFileLineSnippet
MEDIUM…/lib/src/components/core/Block/ElementNodeRenderer.tsx572 // where this default was changed. It is more robust to ensure that the skeleton
MEDIUM…nts/elements/ArrowVegaLiteChart/ArrowVegaLiteChart.tsx220 // We utilize useLayoutEffect to ensure that the view is created
MEDIUMfrontend/lib/src/hooks/useScrollToBottom.ts87 // Essentially we are not suppose to be animating cause a scroll
MEDIUMe2e_playwright/st_markdown.py543# Complex markdown in tooltip - comprehensive test
MEDIUMe2e_playwright/window_config_test.py40 # Inject comprehensive configuration BEFORE the page loads
MEDIUMe2e_playwright/st_audio_input_test.py608 # Use wait_until pattern for async checks as per best practices
LOWlib/streamlit/delta_generator.py581 # If the message was not enqueued, just return self since it's a
MEDIUMlib/streamlit/config.py1136 """Port where users should point their browsers in order to connect to the
LOWlib/streamlit/dataframe_util.py912 # If there is a recursion error, we just return the table as-is
LOWlib/streamlit/dataframe_util.py1123 # of the enum members. For other enums, we just return the enum member.
LOWlib/streamlit/web/server/starlette/starlette_routes.py109 # unit, and help text, so we can just use the first one to construct
LOWlib/streamlit/web/server/starlette/starlette_routes.py139 # unit, and help text, so we can just use the first one to fill in
MEDIUMlib/streamlit/runtime/metrics_util.py251# (harness, project_skills_dir, home_skills_dir, agent_home_dir) - skill dirs
MEDIUMlib/streamlit/runtime/metrics_util.py253# to detect the harness itself independent of Streamlit skills.
MEDIUMlib/streamlit/runtime/metrics_util.py322 # (saves 2 isfile calls per absent harness — common on hosted
LOWlib/streamlit/runtime/fragment.py381 # NOTE: We need to call get_script_run_ctx here again and can't just use the
MEDIUMlib/streamlit/runtime/scriptrunner/script_runner.py129# is designed to leverage our original v1 version of multi-page apps. This
LOWlib/streamlit/runtime/caching/cache_resource_api.py718 # so just use that.
LOW…treamlit/runtime/scriptrunner_utils/script_requests.py225 # new_data contains a new fragment_id_queue, so we just use it.
LOWlib/streamlit/connections/snowflake_connection.py623 # If we're running in SiS-on-warehouses, just call get_active_session() and
LOWlib/streamlit/connections/snowpark_connection.py86 # If we're running in SiS, just call get_active_session(). Otherwise, attempt to
LOWlib/streamlit/elements/write.py415 # we can just call markdown directly and skip the buffer logic.
LOWlib/streamlit/elements/vega_charts.py2391 # Its enough to just use the names here since they are expected
LOWlib/streamlit/elements/vega_charts.py2418 # If its not used with selections activated, just return
LOWlib/streamlit/elements/dialog_decorator.py126# We just call it 'title' here though to make the user-doc more friendly as
LOWlib/streamlit/elements/lib/image_utils.py440 # MediaFileManager. For this, we just add the index to the image's "coordinates".
LOWlib/streamlit/elements/lib/built_in_chart_utils.py544 # We can't just call set(col_names) because sets don't have stable ordering,
MEDIUMlib/streamlit/elements/widgets/data_editor.py1091 # We also utilize the arrow schema to determine the data kinds of every column.
LOWlib/streamlit/elements/widgets/slider.py149 # as it is in the given datetime object, we just set the tzinfo to UTC and
LOWlib/streamlit/elements/widgets/slider.py959 # Empty list, so let's just use the outer bounds
MEDIUMlib/tests/streamlit/config_test.py1842 """Test comprehensive theme inheritance with all option types."""
MEDIUMlib/tests/streamlit/config_test.py1945 # Patch both config and config_util os.path.exists for comprehensive mocking
LOW…lit/components/v2/bidi_component/test_serialization.py133 # Should just return the state as-is
MEDIUMlib/tests/streamlit/elements/checkbox_test.py99 """Test that the checkbox help properly dedents in order to avoid code blocks"""
Slop Phrases5 hits · 12 pts
SeverityFileLineSnippet
MEDIUMe2e_playwright/basic_app_test.py44 # size of web assets low, you can modify this threshold if it's really needed
MEDIUMe2e_playwright/basic_app_test.py96 # size low, you can modify this threshold if it's really needed, justified,
LOWlib/pyproject.toml82 # Let's make sure to remove this "toml" library when we stop supporting Python 3.10.
LOWlib/streamlit/watcher/util.py216 # Don't forget to include a break/return when the thing you're trying to do
MEDIUMlib/streamlit/elements/write.py360 As mentioned earlier, ``st.write()`` also accepts other data formats, such as
Verbosity Indicators7 hits · 10 pts
SeverityFileLineSnippet
LOWe2e_playwright/st_chat_input_test.py1629 # Step 1: Upload a file using the button
LOWe2e_playwright/st_chat_input_test.py1648 # Step 2: Delete the uploaded file
LOWe2e_playwright/st_chat_input_test.py1655 # Step 3: Verify the upload button still works after the upload + delete cycle
LOW…sts/streamlit/watcher/event_based_path_watcher_test.py625 # Step 1: Simulate file being created
LOW…sts/streamlit/watcher/event_based_path_watcher_test.py642 # Step 2: Simulate file being modified
LOW…b/tests/streamlit/watcher/polling_path_watcher_test.py286 # Step 1: Simulate file being created
LOW…b/tests/streamlit/watcher/polling_path_watcher_test.py297 # Step 2: Simulate file being modified
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippet
CRITICALlib/tests/streamlit/elements/number_input_test.py420 self.script_run_ctx.session_state._state._new_widget_state.set_widget_from_proto(
Overly Generic Function Names6 hits · 6 pts
SeverityFileLineSnippet
LOWe2e_playwright/st_code.py114def process_data(data):
LOWlib/tests/streamlit/runtime/metrics_util_test.py308 def test_function(param1: int, param2: str, param3: float = 0.1) -> str:
LOWlib/tests/streamlit/runtime/metrics_util_test.py489 def test_function() -> str:
LOWlib/tests/streamlit/runtime/metrics_util_test.py532 def my_method(self, x: int, y: str) -> None:
LOWlib/tests/streamlit/runtime/fragment_test.py805 def my_function():
LOWlib/tests/streamlit/elements/file_uploader_test.py292 "file2", "project/utils.py", "text/plain", b"def helper(): pass"
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippet
HIGH.claude/skills/addressing-pr-review-comments/SKILL.md177✅ #2 [chore] (general): Updated README as requested
Dead Code1 hit · 2 pts
SeverityFileLineSnippet
MEDIUMlib/tests/streamlit/write_test.py685
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWe2e_playwright/st_code.py123# Example usage