Repository Analysis

vladmandic/sdnext

SD.Next: All-in-one WebUI for AI generative image and video creation, captioning and processing

8.3 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of vladmandic/sdnext, a Python project with 7,324 GitHub stars. SynthScan v2.0 examined 994,596 lines of code across 1441 source files, recording 5280 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 8.3 places this repository in the Low AI signal band.

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

8.3
Adjusted Score
8.3
Raw Score
100%
Time Factor
2026-08-28
Last Push
7.3K
Stars
Python
Language
994.6K
Lines of Code
1.4K
Files
5.3K
Pattern Hits
2026-08-29
Scan Date
0.32
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 2HIGH 457MEDIUM 660LOW 4161

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

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

Cross-File Repetition391 hits · 1955 pts
SeverityFileLineSnippetContext
HIGHtest/test-chroma-native-adapters.py0empty container module - we attach children dynamically.STRING
HIGHtest/test-zimage-native-adapters.py0empty container module - we attach children dynamically.STRING
HIGHtest/test-ernie-native-adapters.py0empty container module - we attach children dynamically.STRING
HIGHtest/test-chroma-native-adapters.py0context manager: writes a state dict to a temp safetensors file.STRING
HIGHtest/test-krea2-native-adapters.py0context manager: writes a state dict to a temp safetensors file.STRING
HIGHtest/test-ernie-native-adapters.py0context manager: writes a state dict to a temp safetensors file.STRING
HIGHtest/test-chroma-native-adapters.py0each family's markers reject other families' files.STRING
HIGHtest/test-zimage-native-adapters.py0each family's markers reject other families' files.STRING
HIGHtest/test-ernie-native-adapters.py0each family's markers reject other families' files.STRING
HIGHpipelines/krea2/pipeline_krea2_inpaint.py0set custom sigma schedule, return first sigma after scheduler shift.STRING
HIGHpipelines/anima/anima_image.py0set custom sigma schedule, return first sigma after scheduler shift.STRING
HIGHpipelines/ernie/ernie_image.py0set custom sigma schedule, return first sigma after scheduler shift.STRING
HIGHpipelines/bria/transformer_block.py0the transformer model introduced in flux with yarn support. reference: https://blackforestlabs.ai/announcing-black-foresSTRING
HIGHpipelines/step1x/transformer_step1x_edit.py0the transformer model introduced in flux with yarn support. reference: https://blackforestlabs.ai/announcing-black-foresSTRING
HIGHpipelines/ultraflux/transformer_flux.py0the transformer model introduced in flux with yarn support. reference: https://blackforestlabs.ai/announcing-black-foresSTRING
HIGHpipelines/bria/transformer_block.py0returns: `dict` of attention processors: a dictionary containing all attention processors used in the model with indexedSTRING
HIGHpipelines/meissonic/transformer.py0returns: `dict` of attention processors: a dictionary containing all attention processors used in the model with indexedSTRING
HIGHpipelines/ultraflux/autoencoder_kl.py0returns: `dict` of attention processors: a dictionary containing all attention processors used in the model with indexedSTRING
HIGHscripts/consistory/consistory_unet_sdxl.py0returns: `dict` of attention processors: a dictionary containing all attention processors used in the model with indexedSTRING
HIGHscripts/instantir/aggregator.py0returns: `dict` of attention processors: a dictionary containing all attention processors used in the model with indexedSTRING
HIGHscripts/pixelsmith/autoencoder_kl.py0returns: `dict` of attention processors: a dictionary containing all attention processors used in the model with indexedSTRING
HIGHmodules/taesd/hybrid_small.py0returns: `dict` of attention processors: a dictionary containing all attention processors used in the model with indexedSTRING
HIGHmodules/control/units/xs_model.py0returns: `dict` of attention processors: a dictionary containing all attention processors used in the model with indexedSTRING
HIGHpipelines/bria/transformer_block.py0sets the attention processor to use to compute attention. parameters: processor (`dict` of `attentionprocessor` or only STRING
HIGHpipelines/meissonic/transformer.py0sets the attention processor to use to compute attention. parameters: processor (`dict` of `attentionprocessor` or only STRING
HIGHpipelines/ultraflux/autoencoder_kl.py0sets the attention processor to use to compute attention. parameters: processor (`dict` of `attentionprocessor` or only STRING
HIGHscripts/consistory/consistory_unet_sdxl.py0sets the attention processor to use to compute attention. parameters: processor (`dict` of `attentionprocessor` or only STRING
HIGHscripts/instantir/aggregator.py0sets the attention processor to use to compute attention. parameters: processor (`dict` of `attentionprocessor` or only STRING
HIGHscripts/pixelsmith/autoencoder_kl.py0sets the attention processor to use to compute attention. parameters: processor (`dict` of `attentionprocessor` or only STRING
HIGHmodules/taesd/hybrid_small.py0sets the attention processor to use to compute attention. parameters: processor (`dict` of `attentionprocessor` or only STRING
HIGHmodules/control/units/xs_model.py0sets the attention processor to use to compute attention. parameters: processor (`dict` of `attentionprocessor` or only STRING
HIGHpipelines/bria/transformer_block.py0enables fused qkv projections. for self-attention modules, all projection matrices (i.e., query, key, value) are fused. STRING
HIGHpipelines/meissonic/transformer.py0enables fused qkv projections. for self-attention modules, all projection matrices (i.e., query, key, value) are fused. STRING
HIGHpipelines/ultraflux/autoencoder_kl.py0enables fused qkv projections. for self-attention modules, all projection matrices (i.e., query, key, value) are fused. STRING
HIGHscripts/pixelsmith/autoencoder_kl.py0enables fused qkv projections. for self-attention modules, all projection matrices (i.e., query, key, value) are fused. STRING
HIGHmodules/taesd/hybrid_small.py0enables fused qkv projections. for self-attention modules, all projection matrices (i.e., query, key, value) are fused. STRING
HIGHpipelines/bria/transformer_block.py0disables the fused qkv projection if enabled. <tip warning={true}> this api is 🧪 experimental. </tip>STRING
HIGHpipelines/meissonic/transformer.py0disables the fused qkv projection if enabled. <tip warning={true}> this api is 🧪 experimental. </tip>STRING
HIGHpipelines/ultraflux/autoencoder_kl.py0disables the fused qkv projection if enabled. <tip warning={true}> this api is 🧪 experimental. </tip>STRING
HIGHscripts/pixelsmith/autoencoder_kl.py0disables the fused qkv projection if enabled. <tip warning={true}> this api is 🧪 experimental. </tip>STRING
HIGHmodules/taesd/hybrid_small.py0disables the fused qkv projection if enabled. <tip warning={true}> this api is 🧪 experimental. </tip>STRING
HIGHpipelines/bria/transformer_block.py0the [`sd3transformer2dmodel`] forward method. args: hidden_states (`torch.floattensor` of shape `(batch size, channel, hSTRING
HIGHpipelines/xomni/modeling_siglip_flux.py0the [`sd3transformer2dmodel`] forward method. args: hidden_states (`torch.floattensor` of shape `(batch size, channel, hSTRING
HIGHpipelines/ultraflux/transformer_flux.py0the [`sd3transformer2dmodel`] forward method. args: hidden_states (`torch.floattensor` of shape `(batch size, channel, hSTRING
HIGHpipelines/bria/transformer_bria.py0the [`sd3transformer2dmodel`] forward method. args: hidden_states (`torch.floattensor` of shape `(batch size, channel, hSTRING
HIGHpipelines/meissonic/transformer.py0the [`sd3transformer2dmodel`] forward method. args: hidden_states (`torch.floattensor` of shape `(batch size, channel, hSTRING
HIGHmodules/teacache/teacache_flux.py0the [`sd3transformer2dmodel`] forward method. args: hidden_states (`torch.floattensor` of shape `(batch size, channel, hSTRING
HIGHpipelines/step1x/transformer_step1x_edit.py0the [`sd3transformer2dmodel`] forward method. args: hidden_states (`torch.floattensor` of shape `(batch size, channel, hSTRING
HIGHmodules/teacache/teacache_chroma.py0the [`sd3transformer2dmodel`] forward method. args: hidden_states (`torch.floattensor` of shape `(batch size, channel, hSTRING
HIGHmodules/ras/ras_forward.py0the [`sd3transformer2dmodel`] forward method. args: hidden_states (`torch.floattensor` of shape `(batch size, channel, hSTRING
HIGHpipelines/bria/bria_pipeline.py0function invoked when calling the pipeline for generation. args: prompt (`str` or `list[str]`, *optional*): the prompt oSTRING
HIGHpipelines/xomni/modeling_siglip_flux.py0function invoked when calling the pipeline for generation. args: prompt (`str` or `list[str]`, *optional*): the prompt oSTRING
HIGHmodules/cfgzero/flux_pipeline.py0function invoked when calling the pipeline for generation. args: prompt (`str` or `list[str]`, *optional*): the prompt oSTRING
HIGHpipelines/hidream/hidream_e1.py0function invoked when calling the pipeline for generation. args: prompt (`str` or `list[str]`, *optional*): the prompt oSTRING
HIGHpipelines/ultraflux/pipeline_flux.py0function invoked when calling the pipeline for generation. args: prompt (`str` or `list[str]`, *optional*): the prompt oSTRING
HIGHpipelines/mageflow/pipeline_output.py0output class for flitepipeline pipeline. args: images (`list[pil.image.image]` or `np.ndarray`) list of denoised pil imaSTRING
HIGHpipelines/step1x/pipeline_output.py0output class for flitepipeline pipeline. args: images (`list[pil.image.image]` or `np.ndarray`) list of denoised pil imaSTRING
HIGHpipelines/f_lite/pipeline.py0output class for flitepipeline pipeline. args: images (`list[pil.image.image]` or `np.ndarray`) list of denoised pil imaSTRING
HIGHpipelines/mageflow/pipeline_mage_flow.py0calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. handles custom tSTRING
HIGHpipelines/omnigen2/pipeline_omnigen2.py0calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. handles custom tSTRING
331 more matches not shown…
Decorative Section Separators543 hits · 1766 pts
SeverityFileLineSnippetContext
MEDIUMwebui.sh2# -------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMwebui.sh4# -------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMtest/test-grading.py72# ============================================================COMMENT
MEDIUMtest/test-grading.py74# ============================================================COMMENT
MEDIUMtest/test-grading.py168# ============================================================COMMENT
MEDIUMtest/test-grading.py170# ============================================================COMMENT
MEDIUMtest/test-grading.py313# ============================================================COMMENT
MEDIUMtest/test-grading.py315# ============================================================COMMENT
MEDIUMtest/test-grading.py394# ============================================================COMMENT
MEDIUMtest/test-grading.py396# ============================================================COMMENT
MEDIUMtest/test-grading.py561# ============================================================COMMENT
MEDIUMtest/test-grading.py563# ============================================================COMMENT
MEDIUMtest/test-video-registry.py131# ============================================================COMMENT
MEDIUMtest/test-video-registry.py133# ============================================================COMMENT
MEDIUMtest/test-video-registry.py182# ============================================================COMMENT
MEDIUMtest/test-video-registry.py184# ============================================================COMMENT
MEDIUMtest/test-script-args.py109# ============================================================COMMENT
MEDIUMtest/test-script-args.py111# ============================================================COMMENT
MEDIUMtest/test-script-args.py159# ============================================================COMMENT
MEDIUMtest/test-script-args.py161# ============================================================COMMENT
MEDIUMtest/test-script-args.py201# ============================================================COMMENT
MEDIUMtest/test-script-args.py203# ============================================================COMMENT
MEDIUMtest/test-flux2-native-adapters.py106# ============================================================COMMENT
MEDIUMtest/test-flux2-native-adapters.py108# ============================================================COMMENT
MEDIUMtest/test-flux2-native-adapters.py653# ============================================================COMMENT
MEDIUMtest/test-flux2-native-adapters.py655# ============================================================COMMENT
MEDIUMtest/test-flux2-native-adapters.py1515# ============================================================COMMENT
MEDIUMtest/test-flux2-native-adapters.py1517# ============================================================COMMENT
MEDIUMtest/test-flux2-native-adapters.py64# ============================================================COMMENT
MEDIUMtest/test-flux2-native-adapters.py66# ============================================================COMMENT
MEDIUMtest/test-flux2-native-adapters.py228# ============================================================COMMENT
MEDIUMtest/test-flux2-native-adapters.py230# ============================================================COMMENT
MEDIUMtest/test-flux2-native-adapters.py591# ============================================================COMMENT
MEDIUMtest/test-flux2-native-adapters.py593# ============================================================COMMENT
MEDIUMtest/test-flux2-native-adapters.py834# ============================================================COMMENT
MEDIUMtest/test-flux2-native-adapters.py836# ============================================================COMMENT
MEDIUMtest/test-flux2-native-adapters.py1374# ============================================================COMMENT
MEDIUMtest/test-flux2-native-adapters.py1376# ============================================================COMMENT
MEDIUMtest/test-flux2-native-adapters.py1576# ============================================================COMMENT
MEDIUMtest/test-flux2-native-adapters.py1578# ============================================================COMMENT
MEDIUMtest/test-chroma-native-adapters.py127# ============================================================COMMENT
MEDIUMtest/test-chroma-native-adapters.py129# ============================================================COMMENT
MEDIUMtest/test-chroma-native-adapters.py295# ============================================================COMMENT
MEDIUMtest/test-chroma-native-adapters.py297# ============================================================COMMENT
MEDIUMtest/test-chroma-native-adapters.py523# ============================================================COMMENT
MEDIUMtest/test-chroma-native-adapters.py525# ============================================================COMMENT
MEDIUMtest/test-chroma-native-adapters.py567# ============================================================COMMENT
MEDIUMtest/test-chroma-native-adapters.py569# ============================================================COMMENT
MEDIUMtest/test-chroma-native-adapters.py998# ============================================================COMMENT
MEDIUMtest/test-chroma-native-adapters.py1000# ============================================================COMMENT
MEDIUMtest/test-chroma-native-adapters.py1066# ============================================================COMMENT
MEDIUMtest/test-chroma-native-adapters.py1068# ============================================================COMMENT
MEDIUMtest/test-chroma-native-adapters.py85# ============================================================COMMENT
MEDIUMtest/test-chroma-native-adapters.py87# ============================================================COMMENT
MEDIUMtest/test-chroma-native-adapters.py697# ============================================================COMMENT
MEDIUMtest/test-chroma-native-adapters.py699# ============================================================COMMENT
MEDIUMtest/test-anima-native-adapters.py130# ============================================================COMMENT
MEDIUMtest/test-anima-native-adapters.py132# ============================================================COMMENT
MEDIUMtest/test-anima-native-adapters.py357# ============================================================COMMENT
MEDIUMtest/test-anima-native-adapters.py359# ============================================================COMMENT
483 more matches not shown…
Excessive Try-Catch Wrapping1220 hits · 1285 pts
SeverityFileLineSnippetContext
LOWwebui.py117 except Exception as e:CODE
LOWwebui.py178 except Exception:CODE
LOWwebui.py276 except Exception:CODE
LOWwebui.py286 except Exception:CODE
LOWwebui.py308 except Exception:CODE
MEDIUMinstaller.py141def package_version(package):CODE
MEDIUMinstaller.py148def package_spec(package):CODE
MEDIUMinstaller.py161def package_commit(spec):CODE
MEDIUMinstaller.py475def get_platform():CODE
MEDIUMinstaller.py1588def try_relpath(p):CODE
MEDIUMinstaller.py1781def update_state():CODE
LOWinstaller.py144 except Exception:CODE
LOWinstaller.py151 except Exception:CODE
LOWinstaller.py154 except Exception:CODE
LOWinstaller.py157 except Exception:CODE
LOWinstaller.py165 except Exception:CODE
LOWinstaller.py1046 except Exception as e:CODE
LOWinstaller.py1054 except Exception as e:CODE
LOWinstaller.py1061 except Exception as e:CODE
LOWinstaller.py91except Exception:CODE
LOWinstaller.py206 except Exception as e:CODE
LOWinstaller.py290 except Exception:CODE
LOWinstaller.py402 except Exception:CODE
LOWinstaller.py428 except Exception:CODE
LOWinstaller.py495 except Exception as e:CODE
LOWinstaller.py677 except Exception as e:CODE
LOWinstaller.py728 except Exception as e:CODE
LOWinstaller.py733 except Exception as e:CODE
LOWinstaller.py841 except Exception as e:CODE
LOWinstaller.py977 except Exception:CODE
LOWinstaller.py983 except Exception:CODE
LOWinstaller.py1004 except Exception as e:CODE
LOWinstaller.py1023 except Exception as e:CODE
LOWinstaller.py1094 except Exception:CODE
LOWinstaller.py1123 except Exception as e:CODE
LOWinstaller.py1188 except Exception:CODE
LOWinstaller.py1203 except Exception as e:CODE
LOWinstaller.py1243 except Exception:CODE
LOWinstaller.py1478 except Exception:CODE
LOWinstaller.py1485 except Exception as e:CODE
LOWinstaller.py1504 except Exception as e:CODE
LOWinstaller.py1513 except Exception as e:CODE
LOWinstaller.py1525 except Exception as e:CODE
LOWinstaller.py1555 except Exception as e:CODE
LOWinstaller.py1582 except Exception as e:CODE
LOWinstaller.py1614 except Exception as e:CODE
LOWinstaller.py1664 except Exception as e:CODE
LOWinstaller.py1695 except Exception:CODE
LOWinstaller.py1706 except Exception as e:CODE
LOWinstaller.py1717 except Exception:CODE
LOWinstaller.py1739 except Exception:CODE
LOWinstaller.py1756 except Exception:CODE
LOWinstaller.py1763 except Exception:CODE
LOWinstaller.py1777 except Exception:CODE
LOWinstaller.py1789 except Exception as e:CODE
LOWinstaller.py1852 except Exception:CODE
LOWinstaller.py1889 except Exception as e:CODE
LOWinstaller.py1898 except Exception as e:CODE
LOWlaunch.py34except Exception:CODE
LOWlaunch.py87 except Exception:CODE
1160 more matches not shown…
Hyper-Verbose Identifiers993 hits · 819 pts
SeverityFileLineSnippetContext
LOWui/extraNetworks.ts141async function filterExtraNetworksForTab(searchTerm) {CODE
LOWui/extraNetworks.ts249function tryToRemoveExtraNetworkFromPrompt(textarea, text) {CODE
LOWui/extraNetworks.ts354function extraNetworksSearchButton(event) {CODE
LOWui/extraNetworks.ts367function extraNetworksFilterVersion(event) {CODE
LOWui/editAttention.ts15 function selectCurrentParenthesisBlock(OPEN: string, CLOSE: string): boolean {CODE
LOWui/contextMenus.ts76 async function addContextMenuEventListener(): Promise<void> {CODE
LOWui/gallery.ts108function updateGallerySelectionClasses(files = gallerySelection.files, index = gallerySelection.index) {CODE
LOWui/gallery.ts147function setGallerySelectionByElement(element, options) {CODE
LOWui/script.ts131function scheduleAfterUiUpdateCallbacks() {CODE
LOWui/ui.ts674function consumeDesiredCheckpointName(v) {CODE
LOWui/ui.ts720function currentImageResolutioncontrol(_a, _b, scaleBy) {CODE
LOWui/js/iframeResizer.js89 function setupRequestAnimationFrame() {CODE
LOWtest/test-krea2-transformer.py116def load_materialize_zero_init():CODE
LOWtest/test-krea2-transformer.py155def run_dense_prompt_compaction_test():CODE
LOWtest/test-krea2-transformer.py185def run_attention_mask_none_forward_test(port):CODE
LOWtest/test-krea2-transformer.py255def run_comfy_quant_real_file():CODE
LOWtest/test-grading.py76def test_grading_params_defaults():CODE
LOWtest/test-grading.py114def test_grading_float_coercion():CODE
LOWtest/test-grading.py230def test_apply_shadows_midtones_highlights():CODE
LOWtest/test-grading.py248def test_grade_image_pipeline():CODE
LOWtest/test-grading.py287def test_grade_image_edge_cases():CODE
LOWtest/test-grading.py433def test_correction_early_clamp():CODE
LOWtest/test-grading.py446def test_correction_mid_color():CODE
LOWtest/test-grading.py462def test_correction_late_brightness():CODE
LOWtest/test-grading.py500def test_correction_multichannel():CODE
LOWtest/test-grading.py520def test_correction_shape_preservation():CODE
LOWtest/test-grading.py537def test_correction_step_ranges():CODE
LOWtest/test-video-registry.py135def test_registry_is_populated():CODE
LOWtest/test-video-registry.py140def test_sentinels_name_no_model():CODE
LOWtest/test-video-registry.py146def test_accessors_exclude_sentinels():CODE
LOWtest/test-video-registry.py155def test_find_rejects_sentinels():CODE
LOWtest/test-video-registry.py160def test_find_is_case_insensitive():CODE
LOWtest/test-video-registry.py167def test_find_rejects_unknown_names():CODE
LOWtest/test-video-registry.py174def test_rows_are_unique_within_an_engine():CODE
LOWtest/test-video-registry.py186def test_every_row_classifies():CODE
LOWtest/test-video-registry.py192def test_mode_matches_the_ladder_it_replaced():CODE
LOWtest/test-video-registry.py240def test_mode_resolves_from_a_class_object():CODE
LOWtest/test-video-registry.py248def test_mode_resolves_a_custom_pipeline():CODE
LOWtest/test-video-registry.py253def test_missing_row_is_unknown():CODE
LOWtest/test-video-registry.py258def test_class_table_has_no_stale_entries():CODE
LOWtest/test-video-registry.py203def test_the_ladder_blind_spot_is_the_condition_rows():CODE
LOWtest/test-video-registry.py210def test_named_modes_win_over_the_pipeline_class():CODE
LOWtest/test-video-registry.py226def test_workflow_rows_report_workflow():CODE
LOWtest/test-ltx-core.py127def test_core_takes_only_model_positionally():CODE
LOWtest/test-ltx-core.py134def test_core_parameter_names():CODE
LOWtest/test-ltx-core.py141def test_core_returns_video_result():CODE
LOWtest/test-ltx-core.py147def test_adapter_signature_is_frozen():CODE
LOWtest/test-ltx-core.py154def test_adapter_still_absorbs_extra_arguments():CODE
LOWtest/test-ltx-core.py162def test_adapter_is_a_generator():CODE
LOWtest/test-ltx-core.py184def test_empty_model_rejected_before_load():CODE
LOWtest/test-ltx-core.py191def test_separator_rejected_before_load():CODE
LOWtest/test-ltx-core.py198def test_missing_av_rejected_before_load():CODE
LOWtest/test-ltx-core.py268def test_adapter_yields_the_video_path_on_success():CODE
LOWtest/test-ltx-core.py287def test_adapter_renames_into_the_core():CODE
LOWtest/test-ltx-core.py309def test_adapter_reports_a_typed_failure_as_text():CODE
LOWtest/test-ltx-core.py325def test_open_condition_does_not_read_paths():CODE
LOWtest/test-ltx-core.py338def test_open_condition_passes_images_through():CODE
LOWtest/test-ltx-core.py346def test_pixel_size_over_both_frame_shapes():CODE
LOWtest/test-ltx-core.py355def test_pixel_size_falls_back_when_nothing_decoded():CODE
LOWtest/test-ltx-core.py362def test_phase_ends_its_job_when_the_body_raises():CODE
933 more matches not shown…
Deep Nesting855 hits · 802 pts
SeverityFileLineSnippetContext
LOWwebui.py363CODE
LOWinstaller.py170CODE
LOWinstaller.py226CODE
LOWinstaller.py274CODE
LOWinstaller.py358CODE
LOWinstaller.py500CODE
LOWinstaller.py667CODE
LOWinstaller.py860CODE
LOWinstaller.py908CODE
LOWinstaller.py1140CODE
LOWinstaller.py1348CODE
LOWinstaller.py1444CODE
LOWinstaller.py1473CODE
LOWinstaller.py1533CODE
LOWinstaller.py1560CODE
LOWinstaller.py1587CODE
LOWinstaller.py1620CODE
LOWinstaller.py1723CODE
LOWinstaller.py1880CODE
LOWlaunch.py166CODE
LOWtest/test-schedulers.py33CODE
LOWtest/test-schedulers.py152CODE
LOWtest/test-tagger.py489CODE
LOWtest/test-compile.py45CODE
LOWtest/test-compile.py68CODE
LOWtest/test-compile.py115CODE
LOWtest/test-compile.py149CODE
LOWtest/benchmark_attention.py58CODE
LOWtest/test-caption-api.py214CODE
LOWtest/test-caption-api.py277CODE
LOWtest/test-caption-api.py289CODE
LOWtest/test-caption-api.py326CODE
LOWtest/test-caption-api.py339CODE
LOWtest/test-caption-api.py553CODE
LOWtest/test-caption-api.py785CODE
LOWtest/test-caption-api.py849CODE
LOWtest/test-caption-api.py1122CODE
LOWtest/test-caption-api.py1360CODE
LOWtest/test-caption-api.py1744CODE
LOWtest/test-caption-api.py1825CODE
LOWtest/test-caption-api.py1894CODE
LOWtest/test-caption-api.py2504CODE
LOWtest/test-caption-api.py2630CODE
LOWtest/test-offload-roles.py542CODE
LOWtest/test-video-references.py165CODE
LOWtest/test-reference.py79CODE
LOWpipelines/model_hidream.py94CODE
LOWpipelines/generic_text_encoder.py14CODE
LOWpipelines/generic_text_encoder.py83CODE
LOWpipelines/model_google.py73CODE
LOWpipelines/generic_test.py8CODE
LOWpipelines/native_transformer.py695CODE
LOWpipelines/native_transformer.py793CODE
LOWpipelines/model_flux.py9CODE
LOWpipelines/model_wanai.py26CODE
LOWpipelines/generic_transformer.py12CODE
LOWpipelines/model_qwen.py7CODE
LOWpipelines/krea2/pipeline_krea2.py155CODE
LOWpipelines/krea2/pipeline_krea2_inpaint.py28CODE
LOWpipelines/segmoe/segmoe_model.py144CODE
795 more matches not shown…
Unused Imports444 hits · 416 pts
SeverityFileLineSnippetContext
LOWinstaller.py1946CODE
LOWtest/test-chroma-native-adapters.py77CODE
LOWtest/test-chroma-native-adapters.py78CODE
LOWtest/test-chroma-native-adapters.py81CODE
LOWtest/test-anima-native-adapters.py80CODE
LOWtest/test-anima-native-adapters.py84CODE
LOWtest/test-video-references.py58CODE
LOWtest/test-video-references.py193CODE
LOWtest/test-krea2-native-adapters.py65CODE
LOWtest/test-zimage-native-adapters.py64CODE
LOWtest/test-zimage-native-adapters.py68CODE
LOWtest/test-ernie-native-adapters.py66CODE
LOWtest/test-ernie-native-adapters.py70CODE
LOWpipelines/model_nextstep.py2CODE
LOWpipelines/model_nextstep.py2CODE
LOWpipelines/model_nextstep.py2CODE
LOWpipelines/model_nextstep.py4CODE
LOWpipelines/generic.py1CODE
LOWpipelines/generic.py2CODE
LOWpipelines/generic.py3CODE
LOWpipelines/generic.py4CODE
LOWpipelines/generic.py4CODE
LOWpipelines/generic.py5CODE
LOWpipelines/generic_test.py4CODE
LOWpipelines/segmoe/segmoe_model.py3CODE
LOWpipelines/segmoe/segmoe_model.py3CODE
LOWpipelines/qwen/__init__.py15CODE
LOWpipelines/qwen/__init__.py16CODE
LOWpipelines/sefi/__init__.py3CODE
LOWpipelines/zetachroma/__init__.py1CODE
LOWpipelines/zetachroma/__init__.py1CODE
LOWpipelines/zetachroma/__init__.py1CODE
LOWpipelines/zetachroma/__init__.py1CODE
LOWpipelines/zetachroma/__init__.py1CODE
LOWpipelines/zetachroma/__init__.py8CODE
LOWpipelines/zetachroma/__init__.py8CODE
LOWpipelines/lens/reasoner.py17CODE
LOWpipelines/lens/__init__.py6CODE
LOWpipelines/lens/__init__.py8CODE
LOWpipelines/lens/__init__.py9CODE
LOWpipelines/lens/__init__.py9CODE
LOWpipelines/lens/text_encoder.py15CODE
LOWpipelines/lens/pipeline_image.py8CODE
LOWpipelines/lens/transformer.py7CODE
LOWpipelines/lens/pipeline.py9CODE
LOWpipelines/lens/resolution.py8CODE
LOWpipelines/omnigen2/__init__.py1CODE
LOWpipelines/omnigen2/__init__.py2CODE
LOWpipelines/omnigen2/__init__.py3CODE
LOWpipelines/omnigen2/pipeline_omnigen2.py43CODE
LOWpipelines/omnigen2/models/attention_processor.py19CODE
LOWpipelines/omnigen2/models/attention_processor.py21CODE
LOWpipelines/omnigen2/models/attention_processor.py21CODE
LOWpipelines/omnigen2/models/attention_processor.py21CODE
LOWpipelines/omnigen2/models/attention_processor.py25CODE
LOWpipelines/omnigen2/models/embeddings.py14CODE
LOWpipelines/omnigen2/models/embeddings.py14CODE
LOWpipelines/omnigen2/models/embeddings.py17CODE
LOWpipelines/omnigen2/models/transformers/__init__.py1CODE
LOWpipelines/omnigen2/models/transformers/block_lumina2.py16CODE
384 more matches not shown…
AI Structural Patterns426 hits · 415 pts
SeverityFileLineSnippetContext
LOWpipelines/generic_text_encoder.py83CODE
LOWpipelines/model_hyimage.py87CODE
LOWpipelines/native_transformer.py222CODE
LOWpipelines/model_stablecascade.py183CODE
LOWpipelines/generic_transformer.py12CODE
LOWpipelines/model_xomni.py53CODE
LOWpipelines/krea2/pipeline_krea2.py155CODE
LOWpipelines/krea2/pipeline_krea2_inpaint.py56CODE
LOWpipelines/krea2/transformer_krea2.py254CODE
LOWpipelines/bria/transformer_block.py234CODE
LOWpipelines/bria/transformer_block.py391CODE
LOWpipelines/bria/transformer_bria.py76CODE
LOWpipelines/bria/transformer_bria.py142CODE
LOWpipelines/bria/bria_pipeline.py112CODE
LOWpipelines/bria/bria_pipeline.py238CODE
LOWpipelines/anima/anima_image.py40CODE
LOWpipelines/anima/anima_image.py85CODE
LOWpipelines/anima/modeling_llm_adapter.py146CODE
LOWpipelines/anima/pipeline.py132CODE
LOWpipelines/anima/pipeline.py217CODE
LOWpipelines/ideogram/ideogram4.py510CODE
LOWpipelines/ideogram/patch_qwen.py9CODE
LOWpipelines/sefi/pipeline_sefi.py109CODE
LOWpipelines/sefi/pipeline_sefi.py447CODE
LOWpipelines/sefi/transformer_sefi.py117CODE
LOWpipelines/zetachroma/model.py688CODE
LOWpipelines/zetachroma/model.py304CODE
LOWpipelines/zetachroma/pipeline.py59CODE
LOWpipelines/zetachroma/pipeline.py222CODE
LOWpipelines/lens/pipeline_image.py110CODE
LOWpipelines/lens/pipeline_image.py180CODE
LOWpipelines/lens/transformer.py386CODE
LOWpipelines/lens/pipeline.py210CODE
LOWpipelines/lens/pipeline.py435CODE
LOWpipelines/mageflow/pipeline_mage_flow.py392CODE
LOWpipelines/mageflow/autoencoder_mage_vae.py424CODE
LOWpipelines/mageflow/autoencoder_mage_vae.py510CODE
LOWpipelines/mageflow/autoencoder_mage_vae.py635CODE
LOWpipelines/mageflow/transformer_mage_flow.py307CODE
LOWpipelines/mageflow/transformer_mage_flow.py517CODE
LOWpipelines/omnigen2/image_processor.py48CODE
LOWpipelines/omnigen2/pipeline_omnigen2.py337CODE
LOWpipelines/omnigen2/pipeline_omnigen2.py452CODE
LOW…s/omnigen2/models/transformers/transformer_omnigen2.py206CODE
LOWpipelines/step1x/transformer_step1x_edit.py159CODE
LOWpipelines/step1x/transformer_step1x_edit.py408CODE
LOWpipelines/step1x/transformer_step1x_edit.py944CODE
LOWpipelines/step1x/transformer_step1x_edit.py1010CODE
LOWpipelines/step1x/pipeline_step1x_edit.py567CODE
LOWpipelines/step1x/pipeline_step1x_edit.py704CODE
LOWpipelines/xomni/modeling_vit.py193CODE
LOWpipelines/xomni/modeling_vit.py251CODE
LOWpipelines/xomni/modeling_xomni.py246CODE
LOWpipelines/xomni/modeling_siglip_flux.py237CODE
LOWpipelines/xomni/modeling_siglip_flux.py29CODE
LOWpipelines/xomni/modeling_siglip_flux.py66CODE
LOWpipelines/xomni/modeling_siglip_flux.py502CODE
LOWpipelines/wan/wan_image.py11CODE
LOWpipelines/meissonic/pipeline_inpaint.py88CODE
LOWpipelines/meissonic/pipeline_img2img.py83CODE
366 more matches not shown…
Docstring Block Structure46 hits · 230 pts
SeverityFileLineSnippetContext
HIGHpipelines/bria/bria_pipeline.py261 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHpipelines/ideogram/ideogram4.py531 Run text-to-image generation. Args: prompt (`str` or `list[str]`): Prompt(STRING
HIGHpipelines/sefi/pipeline_sefi.py467 Generates images from text prompts with SeFi-Image. Args: prompt (`str` or `list[str]`, *oSTRING
HIGHpipelines/mageflow/pipeline_mage_flow.py415 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `list[stSTRING
HIGHpipelines/omnigen2/pipeline_omnigen2.py265 Get prompt embeddings from the Qwen2 text encoder. Args: prompt: The prompt or list of proSTRING
HIGHpipelines/step1x/pipeline_step1x_edit.py734 Function invoked when calling the pipeline for generation. Args: image (`torch.Tensor`, `PSTRING
HIGHpipelines/xomni/modeling_siglip_flux.py534 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHpipelines/meissonic/pipeline_inpaint.py112 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGHpipelines/meissonic/pipeline_img2img.py106 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGHpipelines/meissonic/pipeline.py112 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGHpipelines/hidream/hidream_e1.py795 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHpipelines/ultraflux/pipeline_flux.py518 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHpipelines/vibe/vibe_sana_editing.py464Execute the forward pass of the VIBE Sana Editing Model. Args: hidden_states (torch.Tensor): Noisy STRING
HIGHpipelines/flex2/__init__.py88 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHpipelines/boogu/pipeline_boogu.py570 Get interleaved instruction embeddings from VLM (self.mllm), aligned with training: - Build VLM inputs STRING
HIGHpipelines/boogu/pipeline_boogu_turbo.py519 Get interleaved instruction embeddings from VLM (self.mllm), aligned with training: - Build VLM inputs STRING
HIGHscripts/differential_diffusion.py680 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHscripts/differential_diffusion.py1664 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHscripts/demofusion.py540 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHscripts/softfill.py971 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHscripts/infiniteyou/pipeline_flux_infusenet.py152 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHscripts/consistory/consistory_pipeline.py96 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHscripts/freescale/freescale_pipeline_img2img.py712 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHscripts/freescale/freescale_pipeline.py684 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHscripts/instantir/sdxl_instantir.py1114 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGHscripts/mod/__init__.py811 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHscripts/pixelsmith/pixelsmith_pipeline.py1134 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHmodules/errorlimiter.py51Limiter for aborting execution after being triggered a specified number of times (default 5). >>> with limit_errorsSTRING
HIGHmodules/cfgzero/cogview4_pipeline.py449 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHmodules/cfgzero/hunyuan_t2v_pipeline.py517 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGHmodules/cfgzero/flux_pipeline.py671 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHmodules/cfgzero/wan_t2v_pipeline.py401 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGHmodules/cfgzero/sd3_pipeline.py825 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHmodules/face/instantid_model.py584 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGHmodules/apg/pipeline_stable_cascade_prior_apg.py391 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHmodules/apg/pipeline_stable_diffision_xl_apg.py832 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHmodules/apg/pipeline_stable_diffusion_apg.py778 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGHmodules/control/proc/openpose/util.py202 Detect hands in the input body pose keypoints and calculate the bounding box for each hand. Args: bodySTRING
HIGHmodules/control/proc/openpose/util.py300 Detect the face in the input body pose keypoints and calculate the bounding box for the face. Args: boSTRING
HIGHmodules/control/units/xs_pipe.py709 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGHmodules/control/units/xs_pipe.py1645 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optSTRING
HIGHmodules/pag/pipe_sdxl.py1122 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHmodules/pag/pipe_sd.py1088 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`, *optiSTRING
HIGHmodules/schedulers/scheduler_vdm.py33 Calculates the logarithm of the signal-to-noise ratio (SNR) for given time steps `t` under a specified beta schSTRING
HIGHmodules/schedulers/scheduler_vdm.py157 Computes the logarithm of the signal-to-noise ratio for given timesteps using the configured beta schedule. STRING
HIGHmodules/schedulers/scheduler_vdm.py177 Generates timesteps in the range [0, 1] for the continuous formulation. Args: num_steps (iSTRING
Over-Commented Block190 hits · 189 pts
SeverityFileLineSnippetContext
LOWui/css/amethyst-nightfall.css81.progressDiv { border-radius: var(--radius-sm) !important; position: fixed; top: 44px; right: 26px; max-width: 262px; heCOMMENT
LOWui/css/timeless-beige.css101/* gradio elements overrides */COMMENT
LOWui/css/emerald-paradise.css101/* gradio elements overrides */COMMENT
LOWui/css/light-teal.css101/* gradio elements overrides */COMMENT
LOWui/css/invoked.css101/* gradio elements overrides */COMMENT
LOWui/css/black-orange.css101.performance { color: #888; }COMMENT
LOWui/css/black-teal.css141.image-buttons > button { max-width: 160px; }COMMENT
LOWui/css/midnight-barbie.css101#save-animation { border-radius: var(--radius-sm) !important; margin-bottom: 16px; background-color: #111111; }COMMENT
LOWui/css/orchid-dreams.css101/* gradio elements overrides */COMMENT
LOWui/css/black-gray.css101#system_row > button, #settings_row > button, #config_row > button { max-width: 10em; }COMMENT
LOWui/js/sha256.ts1// @ts-nocheckCOMMENT
LOWpipelines/bria/transformer_block.py1# Copyright 2025 Black Forest Labs, The HuggingFace Team and The InstantX Team. All rights reserved.COMMENT
LOWpipelines/ideogram/ideogram4.py1# Copyright 2026 Ideogram AI and The HuggingFace Team. All rights reserved.COMMENT
LOWpipelines/sefi/pipeline_sefi.py1# Copyright 2026 SeFi-Image Authors and The HuggingFace Team. All rights reserved.COMMENT
LOWpipelines/sefi/transformer_sefi.py1# Copyright 2026 SeFi-Image Authors and The HuggingFace Team. All rights reserved.COMMENT
LOWpipelines/sefi/convert_sefi_to_diffusers.py1#!/usr/bin/env pythonCOMMENT
LOWpipelines/mageflow/pipeline_mage_flow.py1# Copyright 2025 Microsoft and The HuggingFace Team. All rights reserved.COMMENT
LOWpipelines/mageflow/autoencoder_mage_vae.py1# Copyright 2025 The HuggingFace Team. All rights reserved.COMMENT
LOWpipelines/mageflow/transformer_mage_flow.py1# Copyright 2025 The Mage Team and The HuggingFace Team. All rights reserved.COMMENT
LOWpipelines/omnigen2/image_processor.py1# Copyright 2024 The HuggingFace Team. All rights reserved.COMMENT
LOWpipelines/omnigen2/models/embeddings.py1# Copyright 2024 The HuggingFace Team. All rights reserved.COMMENT
LOWpipelines/omnigen2/models/transformers/block_lumina2.py1COMMENT
LOWpipelines/step1x/pipeline_step1x_edit.py1# Copyright 2025 Step1X-Edit Team and The HuggingFace Team. All rights reserved.COMMENT
LOWpipelines/meissonic/pipeline_inpaint.py1# Copyright 2024 The HuggingFace Team and The MeissonFlow Team. All rights reserved.COMMENT
LOWpipelines/meissonic/pipeline_img2img.py1# Copyright 2024 The HuggingFace Team and The MeissonFlow Team. All rights reserved.COMMENT
LOWpipelines/meissonic/transformer.py1# Copyright 2024 Black Forest Labs, The HuggingFace Team, The InstantX Team and The MeissonFlow Team. All rights reserveCOMMENT
LOWpipelines/meissonic/pipeline.py1# Copyright 2024 The HuggingFace Team and The MeissonFlow Team. All rights reserved.COMMENT
LOWpipelines/meissonic/scheduler.py1# Copyright 2024 The HuggingFace Team and The MeissonFlow Team. All rights reserved.COMMENT
LOWpipelines/hidream/scheduler_flashfloweuler.py1# Copyright 2024 Stability AI, Katherine Crowson and The HuggingFace Team. All rights reserved.COMMENT
LOWpipelines/lumina_dimmo/lumina_dimoo.py1# Licensed under the Apache License, Version 2.0 (the "License");COMMENT
LOWpipelines/ultraflux/transformer_flux.py1# Copyright 2025 Black Forest Labs, The HuggingFace Team and The InstantX Team. All rights reserved.COMMENT
LOWpipelines/boogu/image_processor.py1# Copyright (C) 2026 Boogu Team.COMMENT
LOW…/scheduling_flow_match_euler_discrete_time_shifting.py1# Copyright (C) 2026 Boogu Team.COMMENT
LOWcli/sdnq-attention-benchmark.py1861 live.update(panel)COMMENT
LOWcli/search-docs.py141 # log.info('Top result:')COMMENT
LOWscripts/i2i_folder.py81 # with gr.Row():COMMENT
LOWscripts/i2i_folder.py101 # value=_upscaler_choices[0],COMMENT
LOWscripts/i2i_folder.py221 img = img.convert('RGB')COMMENT
LOWscripts/example.py41# is pipeline ok to run in pure latent mode without implicit conversionsCOMMENT
LOWscripts/infiniteyou/pipeline_flux_infusenet.py1# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates.COMMENT
LOWscripts/consistory/attention_processor.py1# Copyright 2023 The HuggingFace Team. All rights reserved.COMMENT
LOWscripts/consistory/consistory_unet_sdxl.py1# Copyright 2023 The HuggingFace Team. All rights reserved.COMMENT
LOWscripts/consistory/consistory_unet_sdxl.py881 # upsample size should be forwarded when sample is not a multiple of `default_overall_up_factor`COMMENT
LOWscripts/consistory/consistory_pipeline.py1# Copyright 2023 The HuggingFace Team. All rights reserved.COMMENT
LOWscripts/consistory/utils/ptp_utils.py1# Copyright 2022 Google LLCCOMMENT
LOWscripts/consistory/utils/ptp_utils.py21# in the Software without restriction, including without limitation the rightsCOMMENT
LOWscripts/consistory/utils/ptp_utils.py41# You may obtain a copy of the License atCOMMENT
LOWscripts/consistory/utils/ptp_utils.py141COMMENT
LOWscripts/pulid/eva_clip/transform.py41COMMENT
LOWscripts/freescale/freescale_pipeline_img2img.py1061 # "up_blocks.0.resnets.0.conv1",COMMENT
LOWscripts/freescale/freescale_pipeline.py1001 # "down_blocks.1.resnets.0.conv2",COMMENT
LOWscripts/rocm/rocm_mgr.py21# Not an environment variable - always skipped during env application but preserved in theCOMMENT
LOWscripts/rocm/rocm_mgr.py41}COMMENT
LOWscripts/instantir/lcm_single_step_scheduler.py1# Copyright 2023 Stanford University Team and The HuggingFace Team. All rights reserved.COMMENT
LOWscripts/instantir/sdxl_instantir.py1# Copyright 2024 The InstantX Team. All rights reserved.COMMENT
LOWscripts/style_aligned/inversion.py1# Copyright 2023 Google LLCCOMMENT
LOWscripts/style_aligned/sa_handler.py1# Copyright 2023 Google LLCCOMMENT
LOWscripts/mod/__init__.py1# Copyright 2025 The HuggingFace Team. All rights reserved.COMMENT
LOWscripts/pixelsmith/vae.py1# Copyright 2023 The HuggingFace Team. All rights reserved.COMMENT
LOWmodules/sub_quadratic_attention.py1# original source:COMMENT
130 more matches not shown…
Cross-Language Confusion19 hits · 110 pts
SeverityFileLineSnippetContext
HIGHinstaller.py182 return True # check for not equal always return trueCODE
HIGHpipelines/vibe/vibe_sana_editing.py433 - `hid_null` (torch.Tensor): Editing embeddings for the unconditional (null) branch.STRING
HIGHmodules/civitai/models_civitai.py86 # /model-versions/{id} serializes availability as null, which failedCOMMENT
HIGHmodules/civitai/models_civitai.py100 # Deleted/anonymous creators serialize username as null, which failedCOMMENT
HIGHmodules/video_models/video_save.py368 stream.output_queue.push(('progress', (None, 'Saving video...')))CODE
HIGHmodules/video_models/video_save.py405 stream.output_queue.push(('progress', (None, f'Video {os.path.basename(output_video)} | Codec {mp4_codecCODE
HIGHmodules/video_models/video_save.py406 stream.output_queue.push(('file', output_video))CODE
HIGHmodules/video_models/video_save.py409 stream.output_queue.push(('progress', (None, '')))CODE
HIGHmodules/framepack/framepack_worker.py56 stream.output_queue.push(('end', None))CODE
HIGHmodules/framepack/framepack_worker.py96 stream.output_queue.push(('progress', (None, 'Text encoding...')))CODE
HIGHmodules/framepack/framepack_worker.py118 stream.output_queue.push(('progress', (None, 'VAE encoding...')))CODE
HIGHmodules/framepack/framepack_worker.py144 stream.output_queue.push(('progress', (None, 'Vision encoding...')))CODE
HIGHmodules/framepack/framepack_worker.py167 stream.output_queue.push(('progress', (None, 'Interrupted...')))CODE
HIGHmodules/framepack/framepack_worker.py168 stream.output_queue.push(('end', None))CODE
HIGHmodules/framepack/framepack_worker.py188 stream.output_queue.push(('progress', (preview, desc)))CODE
HIGHmodules/framepack/framepack_worker.py201 stream.output_queue.push(('progress', (None, desc)))CODE
HIGHmodules/framepack/framepack_worker.py214 stream.output_queue.push(('progress', (None, 'Start sampling...')))CODE
HIGHmodules/framepack/framepack_worker.py238 stream.output_queue.push(('end', None))CODE
HIGHmodules/framepack/framepack_worker.py385 stream.output_queue.push(('end', None))CODE
Redundant / Tautological Comments45 hits · 55 pts
SeverityFileLineSnippetContext
LOWtest/test-schedulers.py127 diffs = np.diff(sigmas) # Check if potentially monotonic decreasing (standard) OR increasing (some flow/CODE
LOWtest/test-tagger.py687 # Check if the exact tag was removed by parsing the filtered listCOMMENT
LOWtest/test-tagger.py595 # Check if underscores are converted to spacesCOMMENT
LOWtest/test-caption-api.py856 # Check if we have OpenCLIP modelsCOMMENT
LOWtest/test-caption-api.py940 # Check if we have OpenCLIP modelsCOMMENT
LOWtest/test-caption-api.py1986 # Check if we have OpenCLIP models (needed for caption endpoint)COMMENT
LOWtest/test-caption-api.py2379 # Check if the tag was removedCOMMENT
LOWtest/test-caption-api.py2751 # Check if we have OpenCLIP modelsCOMMENT
LOWtest/test-caption-api.py244 # Check if answer is just an error keyword or starts with oneCOMMENT
LOWtest/test-caption-api.py258 # Check if it's just punctuationCOMMENT
LOWtest/test-caption-api.py564 # Check if we have OpenCLIP modelsCOMMENT
LOWtest/test-caption-api.py619 # Check if we have OpenCLIP modelsCOMMENT
LOWtest/test-caption-api.py725 # Check if we have OpenCLIP modelsCOMMENT
LOWtest/test-caption-api.py796 # Check if we have OpenCLIP modelsCOMMENT
LOWtest/test-caption-api.py1232 # Check if answer contains detection results (bounding boxes)COMMENT
LOWtest/test-caption-api.py2009 # Check if it's a model not found error vs other errorCOMMENT
LOWtest/test-caption-api.py2269 # Check if underscores are converted to spacesCOMMENT
LOWtest/test-caption-api.py3338 # Check if any tests failed (excluding skipped)COMMENT
LOWpipelines/f_lite/pipeline.py221 # Check if guidance is neededCOMMENT
LOWscripts/prompt_enhance_ext.py327 prompt = prompt or (self.prompt.value if self.prompt else "") # Check if self.prompt is NoneCODE
LOWscripts/prompt_enhance_ext.py368 # Check if vision was requested but no image is availableCOMMENT
LOWscripts/nudenet_ext.py84 if len(nudes.censored) > 0: # Check if there are any censored areasCODE
LOW…edders/latents_concat/latents_concat_embedder_model.py34 # Check if image are of the same sizeCOMMENT
LOWscripts/instantir/ip_adapter/ip_adapter.py131 # Verify if the weights have changedCOMMENT
LOWscripts/instantir/ip_adapter/ip_adapter.py169 # Check if 'latents' exists in both the saved state_dict and the current model's state_dictCOMMENT
LOWscripts/instantir/ip_adapter/ip_adapter.py172 # Check if the shapes are mismatchedCOMMENT
LOWscripts/instantir/ip_adapter/ip_adapter.py191 # Verify if the weights loaded to unetCOMMENT
LOWscripts/instantir/ip_adapter/ip_adapter.py201 # Verify if the weights have changedCOMMENT
LOWmodules/prompt_parser_xhinker.py1330 # Check if padding is neededCOMMENT
LOWmodules/generation_parameters_copypaste.py181 # Check if param should be skippedCOMMENT
LOWmodules/civitai/download_civitai.py108 # Check if in queue (not yet started)COMMENT
LOWmodules/civitai/download_civitai.py117 # Check if activeCOMMENT
LOWmodules/civitai/download_civitai.py172 # Check if already existsCOMMENT
LOWmodules/intel/openvino/__init__.py441 # Check if the model was fully supported and already cachedCOMMENT
LOWmodules/intel/openvino/__init__.py506 # Check if the model is fully supported.COMMENT
LOWmodules/caption/vqa.py117 # Check if it's a Florence-specific friendly name (base or PromptGen)COMMENT
LOWmodules/caption/vqa.py120 # Check if it's an internal Florence-2 task token (for backwards compatibility)COMMENT
LOWmodules/caption/vqa.py1501 # Check if this is a mode that requires user input (Point/Detect)COMMENT
LOWmodules/postprocess/aurasr_arch.py758 # Check if model_id is a local fileCOMMENT
LOWmodules/seedvr/src/optimization/performance.py61 # Check if all 4D videos have the same shape for maximum optimizationCOMMENT
LOWmodules/control/proc/leres/leres/depthmap.py233 # Check if patching is beneficial by comparing the gradient density of the patch toCOMMENT
LOWmodules/control/proc/leres/leres/depthmap.py249 # Check if we are still within the imageCOMMENT
LOWmodules/control/proc/leres/leres/depthmap.py426 # Check if Local boosting is beneficial.COMMENT
LOWmodules/control/proc/segment_anything/utils/amg.py240 # Check if boxes has a channel dimensionCOMMENT
LOWmodules/control/proc/segment_anything/utils/amg.py249 # Check if points has a channel dimensionCOMMENT
Modern Structural Boilerplate56 hits · 54 pts
SeverityFileLineSnippetContext
LOWpipelines/generic.py8__all__ = [CODE
LOWpipelines/zetachroma/__init__.py11__all__ = [CODE
LOWpipelines/zetachroma/pipeline.py18logger = logging.getLogger(__name__)CODE
LOWpipelines/lens/__init__.py44__all__ = [CODE
LOWpipelines/lens/text_encoder.py30 def set_selected_layers(self, layer_indices: Sequence[int]) -> None:CODE
LOWpipelines/omnigen2/models/transformers/__init__.py3__all__ = ["OmniGen2Transformer2DModel"]CODE
LOWpipelines/step1x/__init__.py10__all__ = [CODE
LOWpipelines/xomni/modeling_vit.py417 def set_grad_checkpointing(self, enable: bool = True) -> None:CODE
LOWpipelines/hidream/hidream_o1_utils.py351__all__ = [CODE
LOWpipelines/f_lite/__init__.py9__all__ = ["APGConfig", "DiT", "FLITE_SPEC", "FLitePipeline", "FLitePipelineOutput"]CODE
LOWpipelines/f_lite/pipeline.py18logger = logging.getLogger(__name__)CODE
LOWpipelines/vibe/__init__.py11__all__ = ["VIBE_SPEC", "VIBESanaEditingModel", "VIBESanaEditingPipeline", "VIBESanaImagePipeline"]CODE
LOWscripts/daam/heatmap.py17__all__ = ['GlobalHeatMap', 'RawHeatMapCollection', 'WordHeatMap', 'ParsedHeatMap', 'SyntacticHeatMapPair']CODE
LOWscripts/daam/trace.py21__all__ = ['trace', 'DiffusionHeatMapHooker', 'GlobalHeatMap']CODE
LOWscripts/daam/hook.py10__all__ = ['ObjectHooker', 'ModuleLocator', 'AggregateHooker', 'UNetCrossAttentionLocator']CODE
LOWscripts/daam/experiment.py15__all__ = ['GenerationExperiment', 'COCO80_LABELS', 'COCOSTUFF27_LABELS', 'COCO80_INDICES', 'build_word_list_coco80']CODE
LOWscripts/daam/utils.py15__all__ = ['set_seed', 'compute_token_merge_indices', 'plot_mask_heat_map', 'cached_nlp', 'cache_dir', 'auto_device', 'aCODE
LOWscripts/daam/evaluate.py10__all__ = ['compute_iou', 'MeanEvaluator', 'load_mask', 'compute_ioa']CODE
LOWscripts/lbm/__init__.py6__all__ = ["evaluate", "get_model", "extract_object", "resize_and_center_crop"]CODE
LOWscripts/lbm/inference.py10logger = logging.getLogger(__name__)CODE
LOWscripts/lbm/unets/__init__.py12__all__ = [CODE
LOWscripts/lbm/lbm/__init__.py5__all__ = ["LBMModel", "LBMConfig"]CODE
LOWscripts/lbm/embedders/__init__.py5__all__ = ["LatentsConcatEmbedder", "LatentsConcatEmbedderConfig", "ConditionerWrapper"]CODE
LOWscripts/lbm/embedders/latents_concat/__init__.py5__all__ = ["LatentsConcatEmbedder", "LatentsConcatEmbedderConfig"]CODE
LOWscripts/lbm/embedders/base/__init__.py5__all__ = ["BaseConditioner", "BaseConditionerConfig"]CODE
LOWscripts/lbm/base/__init__.py5__all__ = ["BaseModel", "ModelConfig"]CODE
LOWscripts/lbm/vae/__init__.py5__all__ = ["AutoencoderKLDiffusers", "AutoencoderKLDiffusersConfig"]CODE
LOWscripts/pulid/eva_clip/openai.py15__all__ = ["list_openai_models", "load_openai_model"]CODE
LOWscripts/instantir/aggregator.py657 def set_attention_slice(self, slice_size: Union[str, int, List[int]]) -> None:STRING
LOWscripts/instantir/aggregator.py754 def _set_gradient_checkpointing(self, module, value: bool = False) -> None:STRING
LOWmodules/images.py8__all__ = [CODE
LOWmodules/sharpfin/transforms.py35__all__ = ["ResizeKernel", "SharpenKernel", "QuantHandling"]CODE
LOWmodules/res4lyf/pec_scheduler.py97 def set_begin_index(self, begin_index: int = 0) -> None:CODE
LOWmodules/res4lyf/abnorsett_scheduler.py97 def set_begin_index(self, begin_index: int = 0) -> None:CODE
LOWmodules/res4lyf/res_multistep_scheduler.py112 def set_begin_index(self, begin_index: int = 0) -> None:CODE
LOWmodules/res4lyf/res_singlestep_sde_scheduler.py90 def set_begin_index(self, begin_index: int = 0) -> None:CODE
LOWmodules/res4lyf/riemannian_flow_scheduler.py95 def set_begin_index(self, begin_index: int = 0) -> None:CODE
LOWmodules/res4lyf/res_singlestep_scheduler.py88 def set_begin_index(self, begin_index: int = 0) -> None:CODE
LOWmodules/res4lyf/etdrk_scheduler.py97 def set_begin_index(self, begin_index: int = 0) -> None:CODE
LOWmodules/res4lyf/bong_tangent_scheduler.py96 def set_begin_index(self, begin_index: int = 0) -> None:CODE
LOWmodules/res4lyf/__init__.py91__all__ = [CODE
LOWmodules/res4lyf/lawson_scheduler.py95 def set_begin_index(self, begin_index: int = 0) -> None:CODE
LOWmodules/res4lyf/langevin_dynamics_scheduler.py96 def set_begin_index(self, begin_index: int = 0) -> None:CODE
LOWmodules/res4lyf/res_multistep_sde_scheduler.py102 def set_begin_index(self, begin_index: int = 0) -> None:CODE
LOWmodules/res4lyf/common_sigma_scheduler.py99 def set_begin_index(self, begin_index: int = 0) -> None:CODE
LOWmodules/res4lyf/simple_exponential_scheduler.py95 def set_begin_index(self, begin_index: int = 0) -> None:CODE
LOWmodules/res4lyf/res_unified_scheduler.py84 def set_begin_index(self, begin_index: int = 0) -> None:CODE
LOWmodules/video_models/video_vae.py10def set_vae_params(p, slicing:bool=True, tiling:bool=True, framewise:bool=True) -> None:CODE
LOWmodules/merging/merge_methods.py6__all__ = [CODE
LOWmodules/seedvr/src/core/__init__.py29__all__ = [STRING
LOWmodules/seedvr/src/common/distributed/advanced.py27logger = logging.getLogger(__name__)CODE
LOWmodules/seedvr/src/common/distributed/__init__.py28__all__ = [CODE
LOW…dules/seedvr/src/common/distributed/meta_init_utils.py19__all__ = ["meta_non_persistent_buffer_init_fn"]CODE
LOWmodules/seedvr/src/common/diffusion/__init__.py33__all__ = [CODE
LOWmodules/control/proc/leres/leres/Resnext_torch.py10__all__ = ['resnext101_32x8d']CODE
LOWmodules/control/proc/leres/leres/Resnet.py4__all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101',CODE
Self-Referential Comments21 hits · 54 pts
SeverityFileLineSnippetContext
MEDIUM…/scheduling_flow_match_euler_discrete_time_shifting.py3# This file is adapted by Boogu Team from prior open-source scheduler work.COMMENT
MEDIUMscripts/prompt_enhance_ext.py374 # Create a copy to avoid modifying the original image used by img2imgCOMMENT
MEDIUMscripts/lbm/embedders/base/base_conditioner.py29 # Create the conditioner configSTRING
MEDIUMscripts/lbm/embedders/base/base_conditioner.py35 # Create the conditionerSTRING
MEDIUMscripts/infiniteyou/pipeline_infu_flux.py132 # Create a new image with white backgroundCOMMENT
MEDIUMmodules/civitai/metadata_civitai.py140 # Create a new dict for each append to avoid mutation bugsSTRING
MEDIUMmodules/intel/openvino/__init__.py435 # Create a hash to be used for cachingCOMMENT
MEDIUMmodules/caption/joytag.py437 # The below method is a nice trick to generate a batch of random permutations.COMMENT
MEDIUMmodules/caption/vqa_detection.py308 # Create a copy to avoid modifying originalCOMMENT
MEDIUMmodules/ben2/ben2_model.py1137# Define the image transformationCOMMENT
MEDIUMmodules/sharpfin/functional.py162 # Create a grid of relative distances between each point on this axis.COMMENT
MEDIUMmodules/ras/ras_scheduler.py1# This file is a modified version of the original file from the HuggingFace/diffusers library.COMMENT
MEDIUMmodules/rembg/ben2_model.py1129# Define the image transformationCOMMENT
MEDIUMmodules/postprocess/aurasr_arch.py729 # Create an empty tensor to hold the merged imageCOMMENT
MEDIUMmodules/merging/merge_methods.py22EPSILON = 1e-10 # Define a small constant EPSILON to prevent division by zeroCODE
MEDIUMmodules/seedvr/src/models/dit/attention.py28 # Create an empty tensor to store the output.COMMENT
MEDIUMmodules/seedvr/src/models/dit_v2/attention.py28 # Create an empty tensor to store the output.COMMENT
MEDIUM…proc/zoe/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py126 # Create a map (ModuleDict) of 'name' -> seed_bin_regressorCOMMENT
MEDIUM…proc/zoe/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py139 # Create a map (ModuleDict) of 'name' -> attractors (ModuleList)COMMENT
MEDIUMmodules/control/proc/leres/pix2pix/models/base_model.py13 """This class is an abstract base class (ABC) for models.STRING
MEDIUMmodules/schedulers/scheduler_dpm_flowmatch.py519 # Create a noise sampler if it hasn't been created yetCOMMENT
AI Slop Vocabulary15 hits · 33 pts
SeverityFileLineSnippetContext
MEDIUMpipelines/hidream/hidream_o1_utils.py181 z = (z - center) / torch.clamp(half_range * headroom, min=0.35) # Balanced robust remap: moderate compressioCODE
LOWpipelines/ultraflux/vae.py772 inds[inds >= self.used.shape[0]] = 0 # simply set to zeroCODE
MEDIUMcli/sdnq-attention-benchmark.py694 # standard error of a median: 1.2533 * sigma / sqrt(n), robust sigma from IQR / 1.349COMMENT
LOWscripts/ultimate-upscale.py44 # Its just return, don't need elifCOMMENT
MEDIUMscripts/pulid/eva_clip/tokenizer.py197 # adding lower (for case-sensitive tokenizers) will make it more robust but less sensitive to nuanceCOMMENT
LOWscripts/pixelsmith/vae.py709 inds[inds >= self.used.shape[0]] = 0 # simply set to zeroCODE
LOWmodules/processing_helpers.py536 return args[0] # just return image to skip re-processing itCODE
LOWmodules/caption/waifudiffusion.py351 # For now, just return the static listCOMMENT
LOWmodules/caption/vqa.py1316 # When keep_thinking is False, just use the answer (reasoning is discarded)COMMENT
MEDIUMmodules/res4lyf/rungekutta_44s_scheduler.py160 # Use argmin for robust float matchingCOMMENT
MEDIUMmodules/res4lyf/scheduler_utils.py114 # Normalize inputs to numpy arrays for a robust, device-agnostic argminCOMMENT
MEDIUMmodules/lora/lora_convert.py254 # not utilize it yet.COMMENT
LOWmodules/lora/extra_networks_lora.py18 if len(steps[0]) == 1: # If we just got a single number, just return itCODE
MEDIUMmodules/control/proc/leres/leres/depthmap.py540 # We use a simple Gaussian mask to blend the merged patch region with the base estimate to ensure seamlessCOMMENT
MEDIUMmodules/schedulers/perflow/scheduler_perflow.py39 # robust to numerical error; e.g, (0.6+1/10000) belongs to [0.6, 0.3)COMMENT
Hallucination Indicators2 hits · 15 pts
SeverityFileLineSnippetContext
CRITICALpipelines/sefi/pipeline_sefi.py315 self.text_encoder.model.language_model.rotary_emb.to(device=device, dtype=text_encoder_dtype)STRING
CRITICALmodules/control/proc/segment_anything/utils/onnx.py72 ) * self.model.prompt_encoder.no_mask_embed.weight.reshape(1, -1, 1, 1)CODE
Verbosity Indicators4 hits · 8 pts
SeverityFileLineSnippetContext
LOWpipelines/boogu/transformer_boogu.py1071 # Step 1: modulation for both streams.COMMENT
LOWpipelines/boogu/transformer_boogu.py1084 # Step 2: joint attention on [instruct + img]. The module dispatches to its double-stream processor.COMMENT
LOWpipelines/boogu/transformer_boogu.py1101 # Step 3: image self-attention.COMMENT
LOWpipelines/boogu/transformer_boogu.py1109 # Step 4: residual updates.COMMENT
Structural Annotation Overuse4 hits · 8 pts
SeverityFileLineSnippetContext
LOWpipelines/boogu/transformer_boogu.py1071 # Step 1: modulation for both streams.COMMENT
LOWpipelines/boogu/transformer_boogu.py1084 # Step 2: joint attention on [instruct + img]. The module dispatches to its double-stream processor.COMMENT
LOWpipelines/boogu/transformer_boogu.py1101 # Step 3: image self-attention.COMMENT
LOWpipelines/boogu/transformer_boogu.py1109 # Step 4: residual updates.COMMENT
Fake / Example Data5 hits · 4 pts
SeverityFileLineSnippetContext
LOWmodules/api/models.py38 dummy_value = NoneCODE
LOWmodules/control/proc/leres/pix2pix/models/networks.py292def cal_gradient_penalty(netD, real_data, fake_data, device, type='mixed', constant=1.0, lambda_gp=10.0):CODE
LOWmodules/control/proc/leres/pix2pix/models/networks.py298 fake_data (tensor array) -- generated images from the generatorSTRING
LOWmodules/control/proc/leres/pix2pix/models/networks.py310 interpolatesv = fake_dataCODE
LOWmodules/control/proc/leres/pix2pix/models/networks.py314 interpolatesv = alpha * real_data + ((1 - alpha) * fake_data)CODE
AI Response Leakage1 hit · 2 pts
SeverityFileLineSnippetContext
HIGHmodules/errorlimiter.py57 >>> elimit() # In this example, raises ErrorLimiterAbort on the 5th callSTRING