Repository Analysis

vladmandic/sdnext

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

7.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of vladmandic/sdnext, a Python project with 7,165 GitHub stars. SynthScan v2.0 examined 984,628 lines of code across 1439 source files, recording 4871 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 7.5 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).

7.5
Adjusted Score
7.5
Raw Score
100%
Time Factor
2026-07-14
Last Push
7.2K
Stars
Python
Language
984.6K
Lines of Code
1.4K
Files
4.9K
Pattern Hits
2026-07-14
Scan Date
0.31
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 1HIGH 445MEDIUM 522LOW 3903

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 4871 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 Repetition381 hits · 1905 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.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/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/omnigen2/pipeline_omnigen2.py0calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. handles custom tSTRING
HIGHpipelines/step1x/pipeline_step1x_edit.py0calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. handles custom tSTRING
HIGHpipelines/hidream/hidream_e1.py0calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. handles custom tSTRING
HIGHpipelines/ultraflux/pipeline_flux.py0calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. handles custom tSTRING
HIGHpipelines/boogu/pipeline_boogu.py0calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. handles custom tSTRING
HIGHscripts/infiniteyou/pipeline_flux_infusenet.py0calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. handles custom tSTRING
HIGHscripts/mod/__init__.py0calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. handles custom tSTRING
HIGHmodules/cfgzero/cogview4_pipeline.py0calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. handles custom tSTRING
HIGHmodules/cfgzero/hunyuan_t2v_pipeline.py0calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. handles custom tSTRING
HIGHmodules/cfgzero/hidream_pipeline.py0calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. handles custom tSTRING
HIGHmodules/cfgzero/flux_pipeline.py0calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. handles custom tSTRING
321 more matches not shown…
Decorative Section Separators413 hits · 1278 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-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
MEDIUMtest/test-anima-native-adapters.py727# ============================================================COMMENT
MEDIUMtest/test-anima-native-adapters.py729# ============================================================COMMENT
MEDIUMtest/test-anima-native-adapters.py1144# ============================================================COMMENT
MEDIUMtest/test-anima-native-adapters.py1146# ============================================================COMMENT
MEDIUMtest/test-anima-native-adapters.py88# ============================================================COMMENT
MEDIUMtest/test-anima-native-adapters.py90# ============================================================COMMENT
MEDIUMtest/test-anima-native-adapters.py679# ============================================================COMMENT
MEDIUMtest/test-anima-native-adapters.py681# ============================================================COMMENT
MEDIUMtest/test-anima-native-adapters.py866# ============================================================COMMENT
MEDIUMtest/test-anima-native-adapters.py868# ============================================================COMMENT
353 more matches not shown…
Excessive Try-Catch Wrapping1149 hits · 1203 pts
SeverityFileLineSnippetContext
LOWwebui.py108 except Exception as e:CODE
LOWwebui.py162 except Exception:CODE
LOWwebui.py232 except Exception:CODE
LOWwebui.py242 except Exception:CODE
LOWwebui.py264 except Exception:CODE
MEDIUMinstaller.py134def package_version(package):CODE
MEDIUMinstaller.py141def package_spec(package):CODE
MEDIUMinstaller.py154def package_commit(spec):CODE
MEDIUMinstaller.py468def get_platform():CODE
MEDIUMinstaller.py1548def try_relpath(p):CODE
MEDIUMinstaller.py1741def update_state():CODE
LOWinstaller.py137 except Exception:CODE
LOWinstaller.py144 except Exception:CODE
LOWinstaller.py147 except Exception:CODE
LOWinstaller.py150 except Exception:CODE
LOWinstaller.py158 except Exception:CODE
LOWinstaller.py91except Exception:CODE
LOWinstaller.py199 except Exception as e:CODE
LOWinstaller.py283 except Exception:CODE
LOWinstaller.py395 except Exception:CODE
LOWinstaller.py421 except Exception:CODE
LOWinstaller.py488 except Exception as e:CODE
LOWinstaller.py655 except Exception as e:CODE
LOWinstaller.py706 except Exception as e:CODE
LOWinstaller.py711 except Exception as e:CODE
LOWinstaller.py802 except Exception as e:CODE
LOWinstaller.py948 except Exception:CODE
LOWinstaller.py969 except Exception as e:CODE
LOWinstaller.py988 except Exception as e:CODE
LOWinstaller.py1012 except Exception as e:CODE
LOWinstaller.py1027 except Exception as e:CODE
LOWinstaller.py1030 except Exception as e:CODE
LOWinstaller.py1063 except Exception:CODE
LOWinstaller.py1092 except Exception as e:CODE
LOWinstaller.py1157 except Exception:CODE
LOWinstaller.py1172 except Exception as e:CODE
LOWinstaller.py1212 except Exception:CODE
LOWinstaller.py1438 except Exception:CODE
LOWinstaller.py1445 except Exception as e:CODE
LOWinstaller.py1464 except Exception as e:CODE
LOWinstaller.py1473 except Exception as e:CODE
LOWinstaller.py1485 except Exception as e:CODE
LOWinstaller.py1515 except Exception as e:CODE
LOWinstaller.py1542 except Exception as e:CODE
LOWinstaller.py1574 except Exception as e:CODE
LOWinstaller.py1624 except Exception as e:CODE
LOWinstaller.py1655 except Exception:CODE
LOWinstaller.py1666 except Exception as e:CODE
LOWinstaller.py1677 except Exception:CODE
LOWinstaller.py1699 except Exception:CODE
LOWinstaller.py1716 except Exception:CODE
LOWinstaller.py1723 except Exception:CODE
LOWinstaller.py1737 except Exception:CODE
LOWinstaller.py1749 except Exception as e:CODE
LOWinstaller.py1812 except Exception:CODE
LOWinstaller.py1849 except Exception as e:CODE
LOWinstaller.py1858 except Exception as e:CODE
LOWlaunch.py34except Exception:CODE
LOWlaunch.py87 except Exception:CODE
LOWlaunch.py183 except Exception:STRING
1089 more matches not shown…
Deep Nesting833 hits · 782 pts
SeverityFileLineSnippetContext
LOWwebui.py284CODE
LOWinstaller.py163CODE
LOWinstaller.py219CODE
LOWinstaller.py267CODE
LOWinstaller.py351CODE
LOWinstaller.py493CODE
LOWinstaller.py645CODE
LOWinstaller.py821CODE
LOWinstaller.py869CODE
LOWinstaller.py1109CODE
LOWinstaller.py1317CODE
LOWinstaller.py1404CODE
LOWinstaller.py1433CODE
LOWinstaller.py1493CODE
LOWinstaller.py1520CODE
LOWinstaller.py1547CODE
LOWinstaller.py1580CODE
LOWinstaller.py1683CODE
LOWinstaller.py1840CODE
LOWlaunch.py167CODE
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-reference.py79CODE
LOWpipelines/model_hidream.py94CODE
LOWpipelines/generic_text_encoder.py14CODE
LOWpipelines/generic_text_encoder.py76CODE
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.py150CODE
LOWpipelines/segmoe/segmoe_model.py144CODE
LOWpipelines/segmoe/segmoe_model.py874CODE
LOWpipelines/flux/flux2_lora.py199CODE
LOWpipelines/flux/flux2_lora.py228CODE
773 more matches not shown…
Hyper-Verbose Identifiers813 hits · 645 pts
SeverityFileLineSnippetContext
LOWui/extraNetworks.ts141async function filterExtraNetworksForTab(searchTerm) {CODE
LOWui/extraNetworks.ts240function tryToRemoveExtraNetworkFromPrompt(textarea, text) {CODE
LOWui/extraNetworks.ts345function extraNetworksSearchButton(event) {CODE
LOWui/extraNetworks.ts358function 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.ts105function updateGallerySelectionClasses(files = gallerySelection.files, index = gallerySelection.index) {CODE
LOWui/gallery.ts144function setGallerySelectionByElement(element, options) {CODE
LOWui/script.ts130function scheduleAfterUiUpdateCallbacks() {CODE
LOWui/ui.ts660function consumeDesiredCheckpointName(v) {CODE
LOWui/ui.ts706function currentImageResolutioncontrol(_a, _b, scaleBy) {CODE
LOWui/js/iframeResizer.js89 function setupRequestAnimationFrame() {CODE
LOWtest/test-krea2-transformer.py115def load_materialize_zero_init():CODE
LOWtest/test-krea2-transformer.py170def 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-flux2-native-adapters.py660def test_parse_key_all_prefixes():CODE
LOWtest/test-flux2-native-adapters.py909def test_lora_bare_bfl_format():CODE
LOWtest/test-flux2-native-adapters.py916def test_lora_peft_saved_fal_style():CODE
LOWtest/test-flux2-native-adapters.py925def test_lora_peft_saved_dreambooth_style():CODE
LOWtest/test-flux2-native-adapters.py1387def test_lora_calc_updown_shape():CODE
LOWtest/test-flux2-native-adapters.py1396def test_lokr_calc_updown_shape():CODE
LOWtest/test-flux2-native-adapters.py1405def test_lokr_chunk_calc_updown_shape():CODE
LOWtest/test-flux2-native-adapters.py1457def test_glora_calc_updown_shape():CODE
LOWtest/test-flux2-native-adapters.py1466def test_full_calc_updown_shape():CODE
LOWtest/test-flux2-native-adapters.py1476def test_dora_ordering_matches_lycoris():CODE
LOWtest/test-flux2-native-adapters.py1522def test_ex_bias_accumulation_two_norms():CODE
LOWtest/test-flux2-native-adapters.py274def sd_lora_peft_saved_fal_style():CODE
LOWtest/test-flux2-native-adapters.py288def sd_lora_peft_saved_dreambooth_style():CODE
LOWtest/test-flux2-native-adapters.py302def sd_lora_peft_saved_diffusers_style():CODE
LOWtest/test-flux2-native-adapters.py350def sd_lora_aitk_magnitude_dora(w_base):CODE
LOWtest/test-flux2-native-adapters.py410def sd_lokr_simpletuner_lycoris_style():CODE
LOWtest/test-flux2-native-adapters.py435def sd_lokr_bfl_extra_modules():CODE
LOWtest/test-flux2-native-adapters.py682def test_resolve_targets_qkv_chunking():CODE
LOWtest/test-flux2-native-adapters.py710def test_resolve_targets_extra_modules():CODE
LOWtest/test-flux2-native-adapters.py725def test_parse_key_peft_wrapper_unwrap():CODE
LOWtest/test-flux2-native-adapters.py754def test_parse_key_lycoris_prefix():CODE
LOWtest/test-flux2-native-adapters.py778def test_parse_key_bare_diffusers_and_peft_default():CODE
LOWtest/test-flux2-native-adapters.py815def test_marker_disambiguation():CODE
LOWtest/test-flux2-native-adapters.py847def test_lora_kohya_fused_qkv_chunked():CODE
LOWtest/test-flux2-native-adapters.py882def test_lora_onetrainer_diffusers_flat():CODE
LOWtest/test-flux2-native-adapters.py938def test_lora_peft_saved_diffusers_style():CODE
LOWtest/test-flux2-native-adapters.py965def test_lora_dora_fused_qkv_sliced():CODE
LOWtest/test-flux2-native-adapters.py978def test_lokr_dora_fused_qkv_sliced():CODE
LOWtest/test-flux2-native-adapters.py992def test_dora_per_input_fused_skipped():CODE
LOWtest/test-flux2-native-adapters.py999def test_lora_diff_b_fused_qkv_sliced():CODE
LOWtest/test-flux2-native-adapters.py1011def test_legacy_bias_fused_skipped():CODE
LOWtest/test-flux2-native-adapters.py1021def test_lora_aitk_magnitude_dora():CODE
LOWtest/test-flux2-native-adapters.py1046def test_lora_magnitude_fused_qkv_sliced():CODE
LOWtest/test-flux2-native-adapters.py1059def test_lora_peft_magnitude_vector():CODE
LOWtest/test-flux2-native-adapters.py1074def test_lora_sparse_bias_residual():CODE
753 more matches not shown…
AI Structural Patterns435 hits · 426 pts
SeverityFileLineSnippetContext
LOWpipelines/generic_text_encoder.py76CODE
LOWpipelines/model_hyimage.py87CODE
LOWpipelines/native_transformer.py222CODE
LOWpipelines/model_stablecascade.py183CODE
LOWpipelines/generic_transformer.py12CODE
LOWpipelines/model_xomni.py53CODE
LOWpipelines/krea2/pipeline_krea2.py150CODE
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.py42CODE
LOWpipelines/anima/anima_image.py87CODE
LOWpipelines/anima/modeling_llm_adapter.py146CODE
LOWpipelines/anima/pipeline.py132CODE
LOWpipelines/anima/pipeline.py217CODE
LOWpipelines/ideogram/ideogram4.py510CODE
LOWpipelines/ideogram/patch_qwen.py9CODE
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/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
LOWpipelines/meissonic/transformer.py805CODE
LOWpipelines/meissonic/transformer.py1004CODE
LOWpipelines/meissonic/pipeline.py88CODE
LOWpipelines/hidream/hidream_e1.py329CODE
LOWpipelines/hidream/hidream_e1.py557CODE
LOWpipelines/hidream/hidream_e1.py761CODE
LOWpipelines/hidream/scheduler_flowunipc.py73CODE
LOWpipelines/hidream/qwen3_vl_transformers.py826CODE
LOWpipelines/hidream/qwen3_vl_transformers.py1574CODE
LOWpipelines/hidream/qwen3_vl_transformers.py1811CODE
375 more matches not shown…
Unused Imports449 hits · 423 pts
SeverityFileLineSnippetContext
LOWwebui.py21CODE
LOWinstaller.py1906CODE
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-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/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
LOWpipelines/omnigen2/models/transformers/block_lumina2.py20CODE
LOW…s/omnigen2/models/transformers/transformer_omnigen2.py141CODE
LOWpipelines/step1x/__init__.py2CODE
389 more matches not shown…
Docstring Block Structure44 hits · 220 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/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 Block183 hits · 183 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/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/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
LOWmodules/prompt_parser_xhinker.py1## -----------------------------------------------------------------------------COMMENT
LOWmodules/prompt_parser_xhinker.py681COMMENT
LOWmodules/prompt_parser_xhinker.py1201 # add weight method 1:COMMENT
LOWmodules/prompt_parser_xhinker.py1361 pipe.tokenizer_2, prompt2COMMENT
LOWmodules/cfgzero/cogview4_pipeline.py1# Copyright 2024 The CogVideoX team, Tsinghua University & ZhipuAI and The HuggingFace Team.COMMENT
LOWmodules/cfgzero/hunyuan_t2v_pipeline.py1# Copyright 2024 The HunyuanVideo Team and The HuggingFace Team. All rights reserved.COMMENT
LOWmodules/cfgzero/wan_t2v_pipeline.py1# Copyright 2025 The Wan Team and The HuggingFace Team. All rights reserved.COMMENT
123 more matches not shown…
Cross-Language Confusion19 hits · 110 pts
SeverityFileLineSnippetContext
HIGHinstaller.py175 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.py298 stream.output_queue.push(('progress', (None, 'Saving video...')))CODE
HIGHmodules/video_models/video_save.py340 stream.output_queue.push(('progress', (None, f'Video {os.path.basename(output_video)} | Codec {mp4_codecCODE
HIGHmodules/video_models/video_save.py341 stream.output_queue.push(('file', output_video))CODE
HIGHmodules/video_models/video_save.py344 stream.output_queue.push(('progress', (None, '')))CODE
HIGHmodules/framepack/framepack_worker.py55 stream.output_queue.push(('end', None))CODE
HIGHmodules/framepack/framepack_worker.py95 stream.output_queue.push(('progress', (None, 'Text encoding...')))CODE
HIGHmodules/framepack/framepack_worker.py117 stream.output_queue.push(('progress', (None, 'VAE encoding...')))CODE
HIGHmodules/framepack/framepack_worker.py142 stream.output_queue.push(('progress', (None, 'Vision encoding...')))CODE
HIGHmodules/framepack/framepack_worker.py165 stream.output_queue.push(('progress', (None, 'Interrupted...')))CODE
HIGHmodules/framepack/framepack_worker.py166 stream.output_queue.push(('end', None))CODE
HIGHmodules/framepack/framepack_worker.py186 stream.output_queue.push(('progress', (preview, desc)))CODE
HIGHmodules/framepack/framepack_worker.py199 stream.output_queue.push(('progress', (None, desc)))CODE
HIGHmodules/framepack/framepack_worker.py212 stream.output_queue.push(('progress', (None, 'Start sampling...')))CODE
HIGHmodules/framepack/framepack_worker.py236 stream.output_queue.push(('end', None))CODE
HIGHmodules/framepack/framepack_worker.py379 stream.output_queue.push(('end', None))CODE
Modern Structural Boilerplate57 hits · 56 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/sdnq/__init__.py7__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
Redundant / Tautological Comments45 hits · 54 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.py599 prompt = prompt or (self.prompt.value if self.prompt else "") # Check if self.prompt is NoneSTRING
LOWscripts/prompt_enhance.py640 # Check if vision was requested but no image is availableSTRING
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.py113 # Check if it's a Florence-specific friendly name (base or PromptGen)COMMENT
LOWmodules/caption/vqa.py116 # Check if it's an internal Florence-2 task token (for backwards compatibility)COMMENT
LOWmodules/caption/vqa.py1481 # 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
Self-Referential Comments21 hits · 52 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.py646 # Create a copy to avoid modifying the original image used by img2imgSTRING
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 Vocabulary14 hits · 30 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
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.py350 # For now, just return the static listCOMMENT
LOWmodules/caption/vqa.py1296 # 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 Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
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