AI Slop Code RIsk Monitor

Comfy-Org/ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

8.4 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for Comfy-Org/ComfyUI, a Python project with 136,779 GitHub stars. SynthScan examined 674,217 lines of code across 1207 source files, recording 4707 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 8.4 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

8.4
Adjusted Signal
8.4
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
136.8K
Stars
Python
Language
674.2K
Lines of Code
1.2K
Files
4.7K
Pattern Hits
2026-10-12
Scan Date
0.12
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 25.7/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 3939 finding(s).

Hallucinated Dependency & Supply Chain Risk 3.7/100 · LOW

Are imports declared and package/API names verified? 296 finding(s).

Agent Over-Engineering Ratio 26.2/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 3336 finding(s).

PR Review Velocity Impact 35.0/100 · MEDIUM

Which changes need focused human review? 4707 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 10HIGH 130MEDIUM 182LOW 4385

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 4707 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers2450 hits · 2590 pts
SeverityFileLineSnippetContext
LOWserver.py91def workflow_metadata_from_prompt(extra_data: dict) -> Optional[dict]:CODE
LOWserver.py109def _remove_sensitive_from_queue(queue: list) -> list:CODE
LOWserver.py114async def send_socket_catch_exception(function, message):CODE
LOWserver.py199def create_origin_only_middleware():CODE
LOWserver.py240def create_block_external_middleware():CODE
LOWserver.py242 async def block_external_middleware(request: web.Request, handler):CODE
LOWcuda_malloc.py114def get_torch_version_noimport():CODE
LOWexecution.py240async def resolve_map_node_over_list_results(results):CODE
LOWexecution.py252async def _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, func, allow_interrupt=False, execution_blCODE
LOWexecution.py1370 def get_current_queue_volatile(self):CODE
LOWfolder_paths.py160def get_system_user_directory(name: str = "system") -> str:CODE
LOWfolder_paths.py191def get_public_user_directory(user_id: str) -> str | None:CODE
LOWfolder_paths.py229def filter_files_content_types(files: list[str], content_types: List[Literal["image", "video", "audio", "model"]]) -> liCODE
LOWfolder_paths.py289def is_dangerous_content_type(content_type: str | None) -> bool:CODE
LOWfolder_paths.py360def exists_annotated_filepath(name) -> bool:CODE
LOWlatent_preview.py36 def decode_latent_to_preview_image(self, preview_format, x0):CODE
LOWnode_helpers.py25def conditioning_set_values_with_timestep_range(conditioning, values={}, start_percent=0.0, end_percent=1.0):CODE
LOW⚡nodes.py2354async def init_external_custom_nodes():CODE
LOWmain.py126def handle_comfyui_manager_unavailable():CODE
LOWmain.py182def execute_prestartup_script():CODE
LOWcomfy/model_sampling.py5def rescale_zero_terminal_snr_sigmas(sigmas):CODE
LOWcomfy/context_windows.py711 def combine_context_window_results(self, x_in: torch.Tensor, sub_conds_out, sub_conds, window: IndexListContextWindoCODE
LOWcomfy/context_windows.py741def _prepare_sampling_wrapper(executor, model, noise_shape: torch.Tensor, conds, *args, **kwargs):CODE
LOWcomfy/context_windows.py759def create_prepare_sampling_wrapper(model: ModelPatcher):CODE
LOWcomfy/context_windows.py782def create_sampler_sample_wrapper(model: ModelPatcher):CODE
LOWcomfy/context_windows.py816def create_windows_uniform_looped(num_frames: int, handler: IndexListContextHandler, model_options: dict[str]):CODE
LOWcomfy/context_windows.py835def create_windows_uniform_standard(num_frames: int, handler: IndexListContextHandler, model_options: dict[str]):CODE
LOWcomfy/context_windows.py883def create_windows_static_standard(num_frames: int, handler: IndexListContextHandler, model_options: dict[str]):CODE
LOWcomfy/context_windows.py927def get_matching_context_schedule(context_schedule: str) -> ContextSchedule:CODE
LOWcomfy/context_windows.py954def create_weights_overlap_linear(length: int, full_length: int, idxs: list[int], context_overlap: int, **kwargs):CODE
LOWcomfy/memory_management.py18def read_tensor_file_slice_into(tensor, destination, stream=None, destination2=None):CODE
LOWcomfy/memory_management.py178def set_ram_cache_release_state(callback, headroom):CODE
LOWcomfy/model_prefetch.py123def cleanup_prefetched_modules(module, comfy_modules):CODE
LOWcomfy/hooks.py350 def get_hooks_for_clip_schedule(self):CODE
LOWcomfy/hooks.py434 def get_effective_guarantee_steps(self, max_sigma: torch.Tensor):CODE
LOWcomfy/hooks.py591def create_transformer_options_from_hooks(model: ModelPatcher, hooks: HookGroup, transformer_options: dict[str]=None):CODE
LOWcomfy/hooks.py609def create_hook_model_as_lora(weights_model, weights_clip, strength_model: float, strength_clip: float):CODE
LOWcomfy/hooks.py628def get_patch_weights_from_model(model: ModelPatcher, discard_model_sampling=True):CODE
LOWcomfy/hooks.py640def load_hook_lora_for_models(model: ModelPatcher, clip: CLIP, lora: dict[str, torch.Tensor],CODE
LOWcomfy/hooks.py672def _combine_hooks_from_values(c_dict: dict[str, HookGroup], values: dict[str, HookGroup], cache: dict[tuple[HookGroup, CODE
LOWcomfy/hooks.py692def conditioning_set_values_with_hooks(conditioning, values={}, append_hooks=True,CODE
LOW⚡comfy/hooks.py708def set_hooks_for_conditioning(cond, hooks: HookGroup, append_hooks=True, cache: dict[tuple[HookGroup, HookGroup], HookGCODE
LOW⚡comfy/hooks.py713def set_timesteps_for_conditioning(cond, timestep_range: tuple[float,float]):CODE
LOW⚡comfy/hooks.py719def set_mask_for_conditioning(cond, mask: torch.Tensor, set_cond_area: str, strength: float):CODE
LOWcomfy/hooks.py758def set_conds_props_and_combine(conds: list, new_conds: list, strength: float=1.0, set_cond_area: str="default",CODE
LOWcomfy/hooks.py773def set_default_conds_and_combine(conds: list, new_conds: list,CODE
LOWcomfy/controlnet.py186 def inference_memory_requirements(self, dtype):CODE
LOWcomfy/controlnet.py487 def inference_memory_requirements(self, dtype):CODE
LOWcomfy/controlnet.py510def controlnet_load_state_dict(control_model, sd):CODE
LOWcomfy/controlnet.py618def load_controlnet_hunyuandit(controlnet_data, model_options={}):CODE
LOWcomfy/controlnet.py629def load_controlnet_flux_xlabs_mistoline(sd, mistoline=False, model_options={}):CODE
LOWcomfy/controlnet.py638def load_controlnet_flux_instantx(sd, model_options={}):CODE
LOWcomfy/controlnet.py662def load_controlnet_qwen_instantx(sd, model_options={}):CODE
LOWcomfy/controlnet.py730def load_controlnet_state_dict(state_dict, model=None, model_options={}):CODE
LOW⚡comfy/model_patcher.py115def set_model_options_post_cfg_function(model_options, post_cfg_function, disable_cfg1_optimization=False):CODE
LOW⚡comfy/model_patcher.py121def set_model_options_pre_cfg_function(model_options, pre_cfg_function, disable_cfg1_optimization=False):CODE
LOW⚡comfy/model_patcher.py127def create_model_options_clone(orig_model_options: dict):CODE
LOW⚡comfy/model_patcher.py130def create_hook_patches_clone(orig_hook_patches, copy_tuples=False):CODE
LOW⚡comfy/model_patcher.py640 def set_model_sampler_cfg_function(self, sampler_cfg_function, disable_cfg1_optimization=False):CODE
LOW⚡comfy/model_patcher.py648 def set_model_sampler_post_cfg_function(self, post_cfg_function, disable_cfg1_optimization=False):CODE
2390 more matches not shown…
Deep Nesting482 hits · 436 pts
SeverityFileLineSnippetContext
LOWserver.py173CODE
LOWserver.py256CODE
LOWserver.py331CODE
LOWserver.py458CODE
LOWserver.py532CODE
LOWserver.py578CODE
LOWserver.py1139CODE
LOWserver.py535CODE
LOWcuda_malloc.py54CODE
LOWexecution.py164CODE
LOWexecution.py252CODE
LOWexecution.py331CODE
LOWexecution.py360CODE
LOWexecution.py439CODE
LOWexecution.py848CODE
LOWexecution.py1146CODE
LOWexecution.py266CODE
LOWexecution.py716CODE
LOWexecution.py732CODE
LOWexecution.py1404CODE
LOWexecution.py1417CODE
LOWlatent_preview.py88CODE
LOWnode_helpers.py9CODE
LOWnodes.py2255CODE
LOWnodes.py2354CODE
LOWnodes.py648CODE
LOWnodes.py781CODE
LOWnodes.py802CODE
LOWnodes.py1702CODE
LOWnodes.py2033CODE
LOWmain.py182CODE
LOWmain.py333CODE
LOWmain.py513CODE
LOWcomfy/conds.py7CODE
LOWcomfy/context_windows.py113CODE
LOWcomfy/context_windows.py475CODE
LOWcomfy/context_windows.py572CODE
LOWcomfy/clip_vision.py114CODE
LOWcomfy/memory_management.py18CODE
LOWcomfy/model_prefetch.py174CODE
LOWcomfy/hooks.py350CODE
LOWcomfy/hooks.py505CODE
LOWcomfy/hooks.py549CODE
LOWcomfy/sd1_clip.py320CODE
LOWcomfy/sd1_clip.py348CODE
LOWcomfy/sd1_clip.py378CODE
LOWcomfy/sd1_clip.py415CODE
LOWcomfy/sd1_clip.py28CODE
LOWcomfy/sd1_clip.py172CODE
LOWcomfy/sd1_clip.py572CODE
LOWcomfy/controlnet.py730CODE
LOWcomfy/controlnet.py963CODE
LOWcomfy/controlnet.py191CODE
LOWcomfy/controlnet.py254CODE
LOWcomfy/model_patcher.py130CODE
LOWcomfy/model_patcher.py557CODE
LOWcomfy/model_patcher.py774CODE
LOWcomfy/model_patcher.py795CODE
LOWcomfy/model_patcher.py819CODE
LOWcomfy/model_patcher.py844CODE
422 more matches not shown…
Decorative Section Separators121 hits · 403 pts
SeverityFileLineSnippetContext
MEDIUM⚡.spectral.yaml12 # -----------------------------------------------------------------------COMMENT
MEDIUM⚡.spectral.yaml14 # -----------------------------------------------------------------------COMMENT
MEDIUM⚡.spectral.yaml23 # -----------------------------------------------------------------------COMMENT
MEDIUM⚡.spectral.yaml25 # -----------------------------------------------------------------------COMMENT
MEDIUM.spectral.yaml47 # -----------------------------------------------------------------------COMMENT
MEDIUM.spectral.yaml49 # -----------------------------------------------------------------------COMMENT
MEDIUM⚡.spectral.yaml69 # -----------------------------------------------------------------------COMMENT
MEDIUM⚡.spectral.yaml71 # -----------------------------------------------------------------------COMMENT
MEDIUMcomfy/hooks.py21# -------------------COMMENT
MEDIUMcomfy/ops.py963# ==============================================================================COMMENT
MEDIUMcomfy/ops.py965# ==============================================================================COMMENT
MEDIUMcomfy/quant_ops.py86# ==============================================================================COMMENT
MEDIUMcomfy/quant_ops.py88# ==============================================================================COMMENT
MEDIUMcomfy/quant_ops.py197# ==============================================================================COMMENT
MEDIUMcomfy/quant_ops.py199# ==============================================================================COMMENT
MEDIUM⚡comfy/quant_ops.py268# ==============================================================================COMMENT
MEDIUM⚡comfy/quant_ops.py270# ==============================================================================COMMENT
MEDIUM⚡comfy/k_diffusion/deis.py10#----------------------------------------------------------------------------COMMENT
MEDIUM⚡comfy/k_diffusion/deis.py20#----------------------------------------------------------------------------COMMENT
MEDIUM⚡comfy/k_diffusion/deis.py30#----------------------------------------------------------------------------COMMENT
MEDIUM⚡comfy/k_diffusion/deis.py36#----------------------------------------------------------------------------COMMENT
MEDIUMcomfy/k_diffusion/deis.py52#----------------------------------------------------------------------------COMMENT
MEDIUMcomfy/image_encoders/dino2.py122# -----------------------------------------------------------------------------COMMENT
MEDIUMcomfy/image_encoders/dino2.py124# -----------------------------------------------------------------------------COMMENT
MEDIUMcomfy/image_encoders/dino2.py369 # ------------------------------------------------------------------COMMENT
MEDIUMcomfy/image_encoders/dino2.py371 # ------------------------------------------------------------------COMMENT
MEDIUMcomfy/cldm/cldm.py332 #-----------------------------------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/rt_detr/rtdetr_v4.py24# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/rt_detr/rtdetr_v4.py26# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/rt_detr/rtdetr_v4.py139# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/rt_detr/rtdetr_v4.py141# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/rt_detr/rtdetr_v4.py350# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/rt_detr/rtdetr_v4.py352# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/rt_detr/rtdetr_v4.py456# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/rt_detr/rtdetr_v4.py458# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/rt_detr/rtdetr_v4.py690# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/rt_detr/rtdetr_v4.py692# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lumina/model.py1059 # ------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lumina/model.py1062 # ------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lightricks/vocoders/vocoder.py17# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lightricks/vocoders/vocoder.py20# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lightricks/vocoders/vocoder.py173# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lightricks/vocoders/vocoder.py175# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lightricks/vocoders/vocoder.py228# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lightricks/vocoders/vocoder.py230# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lightricks/vocoders/vocoder.py312# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lightricks/vocoders/vocoder.py314# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/depth_anything_3/dpt.py100# -----------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/depth_anything_3/dpt.py102# -----------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/depth_anything_3/dpt.py163# -----------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/depth_anything_3/dpt.py165# -----------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/depth_anything_3/dpt.py306# -----------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/depth_anything_3/dpt.py308# -----------------------------------------------------------------------------COMMENT
MEDIUM⚡comfy/ldm/depth_anything_3/ray_pose.py36# -----------------------------------------------------------------------------COMMENT
MEDIUM⚡comfy/ldm/depth_anything_3/ray_pose.py38# -----------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/depth_anything_3/ray_pose.py155# -----------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/depth_anything_3/ray_pose.py157# -----------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/depth_anything_3/preprocess.py64# -----------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/depth_anything_3/preprocess.py66# -----------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/depth_anything_3/camera.py13# -----------------------------------------------------------------------COMMENT
61 more matches not shown…
AI Structural Patterns414 hits · 378 pts
SeverityFileLineSnippetContext
LOWexecution.py160CODE
LOWnodes.py696CODE
LOWcomfy/context_windows.py342CODE
LOWcomfy/sd1_clip.py88CODE
LOWcomfy/sd1_clip.py487CODE
LOWcomfy/sd1_clip.py744CODE
LOWcomfy/sd1_clip.py749CODE
LOWcomfy/controlnet.py237CODE
LOWcomfy/controlnet.py485CODE
LOWcomfy/controlnet.py391CODE
LOWcomfy/supported_models.py343CODE
LOWcomfy/supported_models.py364CODE
LOWcomfy/supported_models.py381CODE
LOWcomfy/supported_models.py409CODE
LOWcomfy/supported_models.py440CODE
LOWcomfy/supported_models.py483CODE
LOWcomfy/supported_models.py506CODE
LOWcomfy/supported_models.py571CODE
LOWcomfy/supported_models.py660CODE
LOWcomfy/supported_models.py721CODE
LOWcomfy/supported_models.py768CODE
LOWcomfy/supported_models.py797CODE
LOWcomfy/supported_models.py822CODE
LOWcomfy/supported_models.py910CODE
LOWcomfy/supported_models.py942CODE
LOWcomfy/supported_models.py962CODE
LOWcomfy/supported_models.py1013CODE
LOWcomfy/supported_models.py1050CODE
LOWcomfy/supported_models.py1060CODE
LOWcomfy/supported_models.py1086CODE
LOWcomfy/supported_models.py1101CODE
LOWcomfy/supported_models.py1128CODE
LOWcomfy/supported_models.py1154CODE
LOWcomfy/supported_models.py1175CODE
LOWcomfy/supported_models.py1199CODE
LOWcomfy/supported_models.py1356CODE
LOWcomfy/supported_models.py1391CODE
LOWcomfy/supported_models.py1402CODE
LOWcomfy/supported_models.py1413CODE
LOWcomfy/supported_models.py1424CODE
LOWcomfy/supported_models.py1438CODE
LOWcomfy/supported_models.py1448CODE
LOWcomfy/supported_models.py1461CODE
LOWcomfy/supported_models.py1474CODE
LOWcomfy/supported_models.py1488CODE
LOWcomfy/supported_models.py1501CODE
LOWcomfy/supported_models.py1536CODE
LOWcomfy/supported_models.py1546CODE
LOWcomfy/supported_models.py1557CODE
LOWcomfy/supported_models.py1572CODE
LOWcomfy/supported_models.py1624CODE
LOWcomfy/supported_models.py1638CODE
LOWcomfy/supported_models.py1696CODE
LOWcomfy/supported_models.py1812CODE
LOWcomfy/supported_models.py1848CODE
LOWcomfy/supported_models.py1889CODE
LOWcomfy/supported_models.py1921CODE
LOWcomfy/supported_models.py1942CODE
LOWcomfy/supported_models.py1980CODE
LOWcomfy/supported_models.py2009CODE
354 more matches not shown…
Empty Error Handlers68 hits · 340 pts
SeverityFileLineSnippetContext
HIGHserver.py181except:CODE
HIGHserver.py193except socket.gaierror:CODE
HIGHcuda_malloc.py78except:CODE
HIGHcuda_malloc.py99except:CODE
HIGHcuda_malloc.py86except:CODE
HIGHmain.py654except:CODE
HIGHcomfy/context_windows.py1010except ValueError:CODE
HIGHcomfy/sd1_clip.py361except:CODE
HIGHcomfy/controlnet.py465except:CODE
HIGHcomfy/model_patcher.py227except AttributeError:CODE
HIGHcomfy/model_patcher.py232except AttributeError:CODE
HIGHcomfy/deploy_environment.py29except FileNotFoundError:CODE
HIGHcomfy/ops.py119except:CODE
HIGHcomfy/ops.py943except ImportError:CODE
HIGHcomfy/model_detection.py610except Exception:CODE
HIGHcomfy/model_management.py103except:CODE
HIGHcomfy/model_management.py136except:CODE
HIGHcomfy/model_management.py376except:CODE
HIGHcomfy/model_management.py475except:CODE
HIGHcomfy/model_management.py543except:CODE
HIGHcomfy/model_management.py559except:CODE
HIGHcomfy/model_management.py632except:CODE
HIGHcomfy/model_management.py75except:CODE
HIGHcomfy/model_management.py79except:CODE
HIGHcomfy/model_management.py83except:CODE
HIGHcomfy/model_management.py87except:CODE
HIGHcomfy/model_management.py91except:CODE
HIGHcomfy/model_management.py1659except RuntimeError:CODE
HIGHcomfy/model_management.py412except:CODE
HIGHcomfy/model_management.py421except:CODE
HIGHcomfy/model_management.py1102except: #Old pytorch doesn't have .itemsizeCODE
HIGHcomfy/text_encoders/ace.py73except:CODE
HIGHcomfy/text_encoders/ace_text_cleaners.py351except:CODE
HIGHcomfy/text_encoders/ace_text_cleaners.py377except:CODE
HIGHcomfy/text_encoders/ace_text_cleaners.py381except:CODE
HIGHcomfy/text_encoders/ace_text_cleaners.py385except:CODE
HIGHcomfy/weight_adapter/lora.py208except:CODE
HIGHcomfy/ldm/modules/attention.py44except ImportError:CODE
HIGHcomfy/ldm/modules/attention.py519except:CODE
HIGHcomfy/ldm/sam3/tracker.py1674except RuntimeError:CODE
HIGHapp/asset_export.py528except OSError:CODE
HIGHapp/asset_export.py708except OSError:CODE
HIGHapp/asset_export.py655except OSError:CODE
HIGHapp/assets/seeder.py635except Exception:CODE
HIGHapp/assets/seeder.py667except Exception:CODE
HIGHapp/assets/api/schemas_in.py287except Exception:CODE
HIGHapp/assets/api/upload.py189except OSError:CODE
HIGHapp/assets/services/metadata_extract.py237except json.JSONDecodeError:CODE
HIGHapp/assets/services/metadata_extract.py311except OSError:CODE
HIGH.ci/update_windows/update.py70except:CODE
HIGH.ci/update_windows/update.py162except:CODE
HIGH.ci/update_windows/update.py152except:CODE
HIGH.ci/update_windows/update.py104except:CODE
HIGHtests/execution/test_async_nodes.py251except Exception:CODE
HIGHtests/execution/test_async_nodes.py48except ConnectionRefusedError:CODE
HIGHtests/execution/test_execution.py1117except urllib.error.HTTPError:CODE
HIGHcomfy_api_nodes/nodes_wan.py1899except Exception:CODE
HIGHcomfy_api_nodes/nodes_bytedance.py2950except Exception:CODE
HIGHcomfy_extras/nodes_upscale_model.py18except:CODE
HIGHcomfy_extras/nodes_glsl.py320except Exception:CODE
8 more matches not shown…
Over-Commented Block460 hits · 256 pts
SeverityFileLineSnippetContext
LOWserver.py681 else:COMMENT
LOWserver.py701 # ".."/leading-slash filter above) can't break out of theCOMMENT
LOWalembic.ini1# A generic, single database configuration.COMMENT
LOWalembic.ini21# Any required deps can installed by adding `alembic[tz]` to the pip requirementsCOMMENT
LOWalembic.ini41# The path separator used here should be the separator specified by "version_path_separator" below.COMMENT
LOWalembic.ini61COMMENT
LOWalembic.ini81# hooks = ruffCOMMENT
LOWcomfy/model_patcher.py521 # copy.deepcopy of an already-patched/already-loaded module).COMMENT
LOWcomfy/audio.py1# Audio DSP adapted from TorchAudio (BSD-2-Clause).COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt8161##9COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt8601##2015COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt8821##boCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt91612019COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt9341##46COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt9741##kingCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt9761##マCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt10141ofweekCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt10281vcdCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt11081##aticCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt11361##ackCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt11581328COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt12401##gasCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt12501sylviaCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt12941diaryCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13061##mesCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13121828COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13301##andaCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13321##$COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13341##\COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13361##¼COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13381##αCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13401##χCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13421##хCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13441##يCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13461##ᄇCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13481##ᅯCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13501##‥COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13521##ⅱCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13541##∼COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13561##⑤COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13581##┆COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13601##▇COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13621##☕COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13641##✿COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13661##〓COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13681##ァCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13701##ヨCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13721##ㄤCOMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13741##专COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13761##丫COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13781##乌COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13801##买COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13821##些COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13841##亿COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13861##仙COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13881##伊COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13901##伯COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13921##佗COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13941##佶COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13961##侦COMMENT
400 more matches not shown…
Unused Imports260 hits · 235 pts
SeverityFileLineSnippetContext
LOWserver.py69CODE
LOWexecution.py54CODE
LOWcomfy/context_windows.py1CODE
LOWcomfy/hooks.py1CODE
LOWcomfy/controlnet.py18CODE
LOWcomfy/model_patcher.py19CODE
LOWcomfy/model_base.py97CODE
LOWcomfy/sampler_helpers.py1CODE
LOWcomfy/multigpu.py1CODE
LOWcomfy/quant_ops.py9CODE
LOWcomfy/quant_ops.py9CODE
LOWcomfy/quant_ops.py9CODE
LOWcomfy/quant_ops.py9CODE
LOWcomfy/samplers.py1CODE
LOWcomfy/model_management.py18CODE
LOWcomfy/model_management.py140CODE
LOWcomfy/model_management.py147CODE
LOWcomfy/text_encoders/gpt_oss.py3CODE
LOWcomfy/weight_adapter/__init__.py1CODE
LOWcomfy/weight_adapter/__init__.py8CODE
LOWcomfy/weight_adapter/__init__.py8CODE
LOWcomfy/weight_adapter/__init__.py8CODE
LOWcomfy/audio_encoders/sheetsage2_abc.py3CODE
LOWcomfy/ldm/colormap.py3CODE
LOWcomfy/ldm/ideogram4/model.py7CODE
LOWcomfy/ldm/lens/model.py3CODE
LOWcomfy/ldm/depth_anything_3/dpt.py3CODE
LOWcomfy/ldm/depth_anything_3/reference_view_selector.py3CODE
LOWcomfy/ldm/depth_anything_3/ray_pose.py3CODE
LOWcomfy/ldm/depth_anything_3/preprocess.py3CODE
LOWcomfy/ldm/depth_anything_3/model.py1CODE
LOWcomfy/ldm/depth_anything_3/camera.py3CODE
LOWcomfy/ldm/depth_anything_3/transform.py3CODE
LOWapp/node_replace_manager.py1CODE
LOWapp/subgraph_manager.py1CODE
LOWapp/database/db.py31CODE
LOWapp/database/db.py32CODE
LOWapp/assets/scanner_admission.py9CODE
LOWapp/assets/scanner.py43CODE
LOWapp/assets/scanner.py43CODE
LOWapp/assets/scanner.py43CODE
LOWapp/assets/scanner.py53CODE
LOWapp/assets/scanner.py53CODE
LOWapp/assets/scanner.py53CODE
LOWapp/assets/scanner.py53CODE
LOWapp/assets/mode.py7CODE
LOWapp/assets/scanner_changes.py9CODE
LOWapp/assets/lifecycle.py8CODE
LOWapp/assets/manager.py7CODE
LOWapp/assets/database/models.py9CODE
LOWapp/assets/database/queries/tags.py8CODE
LOWapp/assets/database/queries/records.py9CODE
LOWapp/assets/database/queries/__init__.py9CODE
LOWapp/assets/database/queries/__init__.py9CODE
LOWapp/assets/database/queries/__init__.py9CODE
LOWapp/assets/database/queries/__init__.py9CODE
LOWapp/assets/database/queries/__init__.py9CODE
LOWapp/assets/database/queries/__init__.py9CODE
LOWapp/assets/database/queries/__init__.py9CODE
LOWapp/assets/database/queries/__init__.py9CODE
200 more matches not shown…
Excessive Try-Catch Wrapping212 hits · 219 pts
SeverityFileLineSnippetContext
MEDIUMserver.py1234def post_interrupt(request):CODE
LOWserver.py383 except Exception as e:CODE
LOWserver.py874 except Exception:CODE
LOWserver.py1327 except Exception as exc:CODE
LOWserver.py1552 except Exception:CODE
LOWexecution.py101 except Exception as e:CODE
LOWexecution.py462 except Exception as ex:CODE
LOWexecution.py629 except Exception as ex:CODE
LOWexecution.py726 except Exception as e:CODE
LOWexecution.py974 except Exception as ex:CODE
LOWexecution.py1016 except Exception as ex:CODE
LOWexecution.py1215 except Exception as ex:CODE
LOWnodes.py2296 except Exception as e:CODE
LOW⚡nodes.py2343 except Exception as e:CODE
LOW⚡nodes.py2349 except Exception as e:CODE
LOWmain.py193 except Exception as e:CODE
LOWmain.py439 except Exception:CODE
LOWmain.py497 except Exception as e:CODE
LOWcomfy/conds.py21 except Exception:CODE
LOWcomfy/sd1_clip.py458 except Exception:CODE
LOW⚡comfy/model_patcher.py2178 except Exception as e:CODE
LOWcomfy/model_patcher.py1298 except Exception as e:CODE
LOWcomfy/deploy_environment.py31 except Exception as e:CODE
LOWcomfy/ops.py933 except Exception as e:CODE
LOWcomfy/model_detection.py610 except Exception:CODE
LOWcomfy/utils.py179 except Exception as e:CODE
LOWcomfy/sd.py1305 except Exception as e:CODE
LOWcomfy/sd.py1446 except Exception as e:CODE
LOWcomfy/multigpu.py42 except Exception as e:CODE
LOWcomfy/multigpu.py61 except Exception as e:CODE
LOWcomfy/samplers.py534 except Exception as e:CODE
LOWcomfy/model_management.py525 except Exception as e:CODE
LOWcomfy/text_encoders/ace.py82 except Exception as e:CODE
LOWcomfy/weight_adapter/loha.py294 except Exception as e:CODE
LOWcomfy/weight_adapter/glora.py139 except Exception as e:CODE
LOWcomfy/weight_adapter/lokr.py362 except Exception as e:CODE
LOWcomfy/weight_adapter/oft.py250 except Exception as e:CODE
LOWcomfy/weight_adapter/boft.py130 except Exception as e:CODE
LOWcomfy/weight_adapter/lora.py284 except Exception as e:CODE
LOWcomfy/ldm/hunyuan3d/vae.py324 except Exception:CODE
LOWcomfy/ldm/modules/attention.py483 except Exception as e:CODE
LOWcomfy/ldm/modules/attention.py743 except Exception as e:CODE
LOWcomfy/ldm/modules/attention.py830 except Exception as e:CODE
LOWcomfy/ldm/modules/attention.py905 except Exception as e:CODE
LOWcomfy/ldm/modules/sub_quadratic_attention.py172 except Exception as e:CODE
LOWcomfy/ldm/modules/diffusionmodules/model.py263 except Exception as e:CODE
LOWcomfy/ldm/modules/diffusionmodules/model.py320 except Exception as e:CODE
LOW⚡app/frontend_management.py55 except Exception:CODE
LOW⚡app/frontend_management.py219 except Exception:CODE
LOWapp/frontend_management.py275 except Exception as exc:STRING
LOWapp/frontend_management.py288 except Exception as exc:STRING
LOWapp/frontend_management.py432 except Exception as e:CODE
MEDIUMapp/frontend_management.py232def default_frontend_path(cls) -> str:CODE
LOWapp/user_manager.py244 except Exception as e:CODE
LOWapp/model_manager.py172 except Exception as e:CODE
LOWapp/asset_export.py565 except Exception:CODE
LOWapp/asset_export.py623 except Exception:CODE
LOWapp/asset_export.py651 except Exception as e:CODE
LOWapp/governance.py446 except Exception:CODE
LOWapp/database/db.py217 except Exception as e:CODE
152 more matches not shown…
Cross-Language Confusion23 hits · 162 pts
SeverityFileLineSnippetContext
HIGHcomfy/model_prefetch.py78 graph.push()CODE
HIGHcomfy_api_nodes/nodes_openrouter.py532 ' $table := $type($res) = "string" ? $lookup($outTokens, $res) : null;\n'CODE
HIGHcomfy_api_nodes/nodes_openrouter.py533 ' $sized := ($type($table) = "object" and $type($ar) = "string") ? $lookup($table, $ar) : null;\n'CODE
HIGH⚡comfy_api_nodes/nodes_tripo.py1786 $face := (widgets.face_limit != null) ? widgets.face_limit : -1;CODE
HIGH⚡comfy_api_nodes/nodes_tripo.py1787 $texSize := (widgets.texture_size != null) ? widgets.texture_size : 4096;CODE
HIGH⚡comfy_api_nodes/nodes_tripo.py1788 $scale := (widgets.scale_factor != null) ? widgets.scale_factor : 1;CODE
HIGH⚡comfy_api_nodes/nodes_openai.py628 $quality := ($qualityRaw != null) ? $qualityRaw : "";CODE
HIGH⚡comfy_api_nodes/nodes_openai.py630 $size := ($sizeRaw != null) ? $sizeRaw : "";CODE
HIGH⚡comfy_api_nodes/nodes_openai.py633 $out := ($preset != null) ? [$preset, $preset] : $range;CODE
HIGH⚡comfy_api_nodes/nodes_openai.py636 $refs := ($refsRaw != null) ? $refsRaw : 0;CODE
HIGH⚡comfy_api_nodes/nodes_pixverse.py516 $table := $type($model) = "string" ? $lookup($prices, $lowercase($model)) : undefined;CODE
HIGH⚡comfy_api_nodes/nodes_pixverse.py519 ? $lookup($table, $lowercase($quality)) : undefined;CODE
HIGH⚡comfy_api_nodes/nodes_pixverse.py521 $pps := $type($row) = "object" ? $lookup($row, $audio) : undefined;CODE
HIGH⚡comfy_api_nodes/nodes_pixverse.py523 $duration := $type($durationRaw) in ["string", "number"] ? $number($durationRaw) : undefined;CODE
HIGH⚡comfy_api_nodes/nodes_pixverse.py548 $table := $type($model) = "string" ? $lookup($rates, $lowercase($model)) : undefined;CODE
HIGH⚡comfy_api_nodes/nodes_pixverse.py551 ? $lookup($table, $lowercase($quality)) : undefined;CODE
HIGH⚡comfy_api_nodes/nodes_pixverse.py553 $pps := $type($row) = "object" ? $lookup($row, $audio) : undefined;CODE
HIGH⚡comfy_api_nodes/nodes_pixverse.py556 $duration := $type($durationRaw) in ["string", "number"] ? $number($durationRaw) : undefined;CODE
HIGH⚡comfy_api_nodes/nodes_pixverse.py560 : ($type($duration) = "number" ? {"type":"usd","usd": $pps * $duration} : undefined))CODE
HIGH⚡comfy_api_nodes/nodes_ltxv.py91 $table := $type($model) = "string" ? $lookup($prices, $model) : undefined;CODE
HIGH⚡comfy_api_nodes/nodes_ltxv.py93 $pps := $type($table) = "object" and $type($res) = "string" ? $lookup($table, $res) : undefined;CODE
HIGH⚡comfy_api_nodes/nodes_ltxv.py95 $dur := $type($durRaw) in ["string", "number"] ? $number($durRaw) : undefined;CODE
HIGHcomfy_api_nodes/nodes_ltxv.py109 $rate := $type($model) = "string" ? $lookup($rates, $model) : undefined;CODE
Self-Referential Comments41 hits · 131 pts
SeverityFileLineSnippetContext
MEDIUMcomfyui_version.py1# This file is automatically generated by the build process when version isCOMMENT
MEDIUMcomfy/lora.py424 # Create a new tensor filled with zerosCOMMENT
MEDIUMcomfy/weight_adapter/base.py335 # Create a new tensor filled with zerosCOMMENT
MEDIUMcomfy/ldm/lightricks/vae/dual_conv3d.py46 # Define the size of the channels after the first convolutionCOMMENT
MEDIUMcomfy/ldm/lightricks/vae/dual_conv3d.py197 # Create an instance of the DualConv3d classCOMMENT
MEDIUMcomfy/ldm/chroma_radiance/layers.py68 # Create a 2D meshgrid of coordinates.COMMENT
MEDIUMcomfy/ldm/chroma_radiance/layers.py76 # Create a 1D tensor of frequency values from 0 to max_freqs-1.COMMENT
MEDIUMcomfy_execution/progress.py90 # Create a new tqdm progress barCOMMENT
MEDIUM⚡tests/execution/test_async_nodes.py203 # Create an async node that will errorCOMMENT
MEDIUMtests/execution/test_async_nodes.py143 # Create a test node with async validationCOMMENT
MEDIUMtests/execution/test_async_nodes.py187 # Create a node with async check_lazy_statusCOMMENT
MEDIUMtests/execution/test_progress_isolation.py213 # Create a simple workflowCOMMENT
MEDIUM⚡tests/execution/test_execution.py1022 # Create a processing chain with an OUTPUT_NODE that has socket outputsCOMMENT
MEDIUM⚡tests/execution/test_execution.py1031 # Create the final outputCOMMENT
MEDIUMtests/execution/test_execution.py750 # Creating the nodes in this specific order previously caused a bugCOMMENT
MEDIUMtests/execution/test_execution.py917 # Create a TestParallelSleep node that expands into multiple TestSleep nodesCOMMENT
MEDIUMtests/execution/test_execution.py1083 # Create a chain of OUTPUT_NODEsCOMMENT
MEDIUM…execution/testing_nodes/testing-pack/specific_tests.py300 # Create the cyleCOMMENT
MEDIUM…execution/testing_nodes/testing-pack/specific_tests.py396 # Create a basic image generation workflow using the input model, clip and vaeCOMMENT
MEDIUM…execution/testing_nodes/testing-pack/specific_tests.py478 # Create a graph dynamically with three TestSleep nodesCOMMENT
MEDIUMcomfy_api_nodes/util/request_logger.py142 # Create a local temp dir for testing if neededCOMMENT
MEDIUMcomfy_extras/nodes_save_3d.py479 # Create the GLB header (a 4-byte ASCII magic identifier glTF)COMMENT
MEDIUMcomfy_extras/nodes_wanmove.py200 # Create a single RGBA overlay for all tracks in this frameCOMMENT
MEDIUMcomfy_api/v0_0_2/__init__.py31# Create a synchronous version of the APICOMMENT
MEDIUM⚡comfy_api/internal/async_to_sync.py246 # Create a sync version of this attributeCOMMENT
MEDIUM⚡comfy_api/internal/async_to_sync.py268 # Create an instance of the inner classCOMMENT
MEDIUM⚡comfy_api/internal/async_to_sync.py301 # Create a sync version of this nested classCOMMENT
MEDIUMcomfy_api/internal/async_to_sync.py150 # Create the coroutine within the contextCOMMENT
MEDIUMcomfy_api/internal/async_to_sync.py210 # Create a proper class with docstrings and proper base classesCOMMENT
MEDIUMcomfy_api/internal/async_to_sync.py368 # Create the classCOMMENT
MEDIUMcomfy_api/internal/async_to_sync.py815 # Create a type tracker for this stub generationCOMMENT
MEDIUMcomfy_api/latest/__init__.py155# Create a synchronous version of the APICOMMENT
MEDIUMcomfy_api/latest/_input_impl/video_types.py1145 # Create a video streamCOMMENT
MEDIUMcomfy_api/latest/_input_impl/video_types.py1155 # Create an audio streamCOMMENT
MEDIUMcomfy_api/v0_0_1/__init__.py28# Create a synchronous version of the APICOMMENT
MEDIUM.github/workflows/update-version.yml46 f.write("# This file is automatically generated by the build process when version is\n")CODE
MEDIUMtests-unit/server/utils/file_operations_test.py7 # Create a temporary directory structureCOMMENT
MEDIUM…s-unit/prompt_server_test/system_user_endpoint_test.py115 # Create a file in System User directoryCOMMENT
MEDIUMtests-unit/prompt_server_test/user_manager_test.py280 # Create a directory with a space in its name and a file insideCOMMENT
MEDIUMtests-unit/folder_paths_test/misc_test.py9 # Create a nested folder structureCOMMENT
MEDIUMtests-unit/folder_paths_test/misc_test.py20 # Create the foldersCOMMENT
Hallucination Indicators10 hits · 110 pts
SeverityFileLineSnippetContext
CRITICALcomfy/sd.py633 self.first_stage_model = comfy.ldm.lightricks.vae.na_diffusion_decoder.CausalDiffusionVAE(config=vae_conCODE
CRITICALcomfy/sd.py748 self.first_stage_model = comfy.ldm.genmo.vae.model.VideoVAE()CODE
CRITICALcomfy/sd.py770 self.first_stage_model = comfy.ldm.lightricks.vae.causal_video_autoencoder.VideoVAE(version=version, conCODE
CRITICALcomfy/sd.py905 self.first_stage_model = comfy.ldm.ace.vae.music_dcae_pipeline.MusicDCAE(source_sample_rate=44100)CODE
CRITICALcomfy/sd.py936 self.first_stage_model = comfy.ldm.mmaudio.vae.autoencoder.AudioAutoencoder(mode=mode)CODE
CRITICALcomfy/sd.py985 self.first_stage_model = comfy.ldm.lightricks.vae.audio_vae.AudioVAE(metadata=metadata)CODE
CRITICALcomfy/cldm/mmdit.py24 self.pos_embed_input = comfy.ldm.modules.diffusionmodules.mmdit.PatchEmbed(CODE
CRITICALcomfy/ldm/hunyuan_video/model.py227 self.img_in = comfy.ldm.modules.diffusionmodules.mmdit.PatchEmbed(None, self.patch_size, self.in_channels, self.CODE
CRITICAL⚡tests-unit/comfy_quant/test_mixed_precision.py118 self.assertEqual(model.layer1.weight._params.scale.item(), 2.0)CODE
CRITICAL⚡tests-unit/comfy_quant/test_mixed_precision.py119 self.assertEqual(model.layer3.weight._params.scale.item(), 1.5)CODE
Cross-File Repetition21 hits · 105 pts
SeverityFileLineSnippetContext
HIGHcomfy/controlnet.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it andSTRING
HIGHcomfy/model_patcher.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it andSTRING
HIGHcomfy/supported_models_base.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it andSTRING
HIGHcomfy/model_base.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it andSTRING
HIGHcomfy/utils.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it andSTRING
HIGHcomfy/lora.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it andSTRING
HIGHcomfy/model_management.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it andSTRING
HIGHcomfy/ops.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it andSTRING
HIGHcomfy/ldm/cascade/controlnet.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it andSTRING
HIGHcomfy/ldm/cascade/stage_a.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it andSTRING
HIGHcomfy/ldm/cascade/common.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it andSTRING
HIGHcomfy/ldm/cascade/stage_c.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it andSTRING
HIGHcomfy/ldm/cascade/stage_b.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it andSTRING
HIGHcomfy/ldm/cascade/stage_c_coder.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it andSTRING
HIGHcomfy_extras/nodes_stable_cascade.py0this file is part of comfyui. copyright (c) 2024 stability ai this program is free software: you can redistribute it andSTRING
HIGHscript_examples/basic_api_example.py0{ "3": { "class_type": "ksampler", "inputs": { "cfg": 8, "denoise": 1, "latent_image": [ "5", 0 ], "model": [ "4", 0 ], STRING
HIGHscript_examples/websockets_api_example.py0{ "3": { "class_type": "ksampler", "inputs": { "cfg": 8, "denoise": 1, "latent_image": [ "5", 0 ], "model": [ "4", 0 ], STRING
HIGHscript_examples/websockets_api_example_ws_images.py0{ "3": { "class_type": "ksampler", "inputs": { "cfg": 8, "denoise": 1, "latent_image": [ "5", 0 ], "model": [ "4", 0 ], STRING
HIGHcomfy_extras/nodes_optimalsteps.py0performs log-linear interpolation of a given array of decreasing numbers.STRING
HIGHcomfy_extras/nodes_gits.py0performs log-linear interpolation of a given array of decreasing numbers.STRING
HIGHcomfy_extras/nodes_align_your_steps.py0performs log-linear interpolation of a given array of decreasing numbers.STRING
Docstring Block Structure18 hits · 90 pts
SeverityFileLineSnippetContext
HIGHfolder_paths.py161 Get the path to a System User directory. System User directories (prefixed with '__') are only accessible via STRING
HIGHnodes.py2234 Returns the module name based on the given module path. Examples: get_module_name("C:/Users/username/CoSTRING
HIGHcomfy/ldm/cosmos/predict2.py788 Prepares an embedded sequence tensor by applying positional embeddings and handling padding masks. ArgSTRING
HIGHcomfy/ldm/cosmos/model.py258 Prepares an embedded sequence tensor by applying positional embeddings and handling padding masks. ArgSTRING
HIGHcomfy/ldm/lightricks/vae/causal_audio_autoencoder.py23 Convert a string, enum instance, or None to the appropriate enum member. Args: value: Can STRING
HIGHcomfy/ldm/hydit/attn_layers.py8 Reshape frequency tensor for broadcasting it with another tensor. This function reshapes the frequency tensor STRING
HIGHcomfy/ldm/ace/lyric_encoder.py454Create mask for subsequent steps (size, size). This mask is used only in decoder which works in an auto-regressive STRING
HIGHcomfy/ldm/ace/lyric_encoder.py492Create mask for subsequent steps (size, size) with chunk size, this is for streaming encoder Args: sSTRING
HIGHcomfy/ldm/ace/lyric_encoder.py890Make mask tensor containing indices of padded part. See description of make_non_pad_mask. Args: lengthSTRING
HIGHapp/frontend_management.py337 Args: value (str): The version string to parse. Returns: tuple[str, str]: A tuSTRING
HIGHapp/frontend_management.py358 Initializes the frontend for the specified version. Args: version_string (str): The versioSTRING
HIGHapp/assets/api/upload.py34 Parse a multipart/form-data upload request. Args: request: The aiohttp request check_hash_exisSTRING
HIGHcomfy_api_nodes/nodes_openai.py94Validates and casts a response to a torch.Tensor. Args: response: The response to validate and cast. STRING
HIGHcomfy_api_nodes/util/conversions.py20Converts image data from BytesIO to a torch.Tensor. Args: image_bytesio: BytesIO object containing the imagSTRING
HIGHcomfy_api_nodes/util/conversions.py295 Prepares audio waveform for av library by converting to a contiguous numpy array. Args: waveform: a teSTRING
HIGHcomfy_extras/nodes_train.py649Validate conditioning count matches image count, expand if needed. Args: positive: Conditioning list STRING
HIGHcomfy_extras/nodes_train.py868Create optimizer based on name. Args: optimizer_name: Name of optimizer ("Adam", "AdamW", "SGD", "RMSprop")STRING
HIGHcomfy_config/config_parser.py51 Extract configuration from a custom node directory's pyproject.toml file or a Python file. This function reads and parSTRING
Modern Structural Boilerplate50 hits · 53 pts
SeverityFileLineSnippetContext
LOW⚡folder_paths.py122def set_output_directory(output_dir: str) -> None:CODE
LOW⚡folder_paths.py126def set_temp_directory(temp_dir: str) -> None:CODE
LOW⚡folder_paths.py130def set_input_directory(input_dir: str) -> None:CODE
LOWfolder_paths.py149def set_user_directory(user_dir: str) -> None:CODE
LOWcomfy/deploy_environment.py5logger = logging.getLogger(__name__)CODE
LOW⚡comfy/quant_ops.py272__all__ = [CODE
LOWcomfy/text_encoders/longcat_image.py8logger = logging.getLogger(__name__)CODE
LOWcomfy/weight_adapter/__init__.py34__all__ = [CODE
LOWcomfy/comfy_types/__init__.py36__all__ = [CODE
LOWcomfy/ldm/trellis2/vae.py857 def set_resolution(self, resolution: int) -> None:CODE
LOWcomfy/ldm/lightricks/model.py22logger = logging.getLogger(__name__)CODE
LOWcomfy/ldm/sam3d_body/model/model.py182 def _set_active_branch(self, kind: str) -> None:CODE
LOWblueprints/.glsl/update_blueprints.py23logger = logging.getLogger(__name__)CODE
LOWapp/governance.py87def set_custom_node_policy(mode: str | None, denied_packs: frozenset[str], allowed_packs: dict[str, str]) -> None:CODE
LOWapp/assets/scanner.py81__all__ = [CODE
LOWapp/assets/seeder.py208 def set_event_sink(self, sink: Callable[[str, dict[str, Any]], None] | None) -> None:CODE
LOWapp/assets/manager.py72 def set_event_sink(self, sink: Callable[[str, dict[str, Any]], None] | None) -> None: ...CODE
LOWapp/assets/manager.py142 def set_event_sink(self, sink: Callable[[str, dict[str, Any]], None] | None) -> None:CODE
LOWapp/assets/manager.py224 def set_event_sink(self, sink: Callable[[str, dict[str, Any]], None] | None) -> None:CODE
LOWapp/assets/database/queries/__init__.py25__all__ = [CODE
LOWapp/assets/services/ingest.py356def _settle_destination_before_write(session: Session, dest_abs: str) -> None:CODE
LOWapp/assets/services/image_dimensions.py12logger = logging.getLogger(__name__)CODE
LOWapp/assets/services/__init__.py27__all__ = [CODE
LOWapp/assets/services/video_metadata.py12logger = logging.getLogger(__name__)CODE
LOWcomfy_api_nodes/nodes_sonilo.py26logger = logging.getLogger(__name__)CODE
LOW⚡comfy_api_nodes/nodes_bytedance.py132logger = logging.getLogger(__name__)CODE
LOW⚡comfy_api_nodes/util/request_logger.py11logger = logging.getLogger(__name__)CODE
LOWcomfy_api_nodes/util/__init__.py65__all__ = [CODE
LOWcomfy_extras/nodes_glsl.py16logger = logging.getLogger(__name__)CODE
LOWcomfy_extras/nodes_images.py1710def _set_avif_color_properties(target, colorspace: str) -> None:CODE
LOWcomfy_extras/mesh3d/fileio/gltf_read.py410__all__ = ["load_gltf", "extract_material", "parse_container", "read_accessor", "to_float"]CODE
LOWcomfy_api/util.py4__all__ = [CODE
LOWcomfy_api/v0_0_2/__init__.py38__all__ = [CODE
LOWcomfy_api/util/__init__.py4__all__ = [CODE
LOWcomfy_api/util/video_types.py8__all__ = [CODE
LOWcomfy_api/input/__init__.py15__all__ = [CODE
LOWcomfy_api/input/basic_types.py9__all__ = [CODE
LOWcomfy_api/input/video_types.py4__all__ = [CODE
LOWcomfy_api/latest/_ui.py483__all__ = [CODE
LOWcomfy_api/latest/_io.py2614__all__ = [CODE
LOWcomfy_api/latest/__init__.py166__all__ = [CODE
LOWcomfy_api/latest/_util/__init__.py5__all__ = [CODE
LOWcomfy_api/latest/_input/range_types.py7logger = logging.getLogger(__name__)CODE
LOWcomfy_api/latest/_input/__init__.py6__all__ = [CODE
LOWcomfy_api/latest/_input/curve_types.py8logger = logging.getLogger(__name__)CODE
LOWcomfy_api/latest/_input_impl/__init__.py3__all__ = [CODE
LOWcomfy_api/v0_0_1/__init__.py36__all__ = [CODE
LOWcomfy_api/input_impl/__init__.py4__all__ = [CODE
LOWcomfy_api/torch_helpers/__init__.py3__all__ = [CODE
LOWtests-unit/execution_test/test_inmemory_assets.py117 def set_event_sink(self, sink: EventSink) -> None:CODE
Redundant / Tautological Comments31 hits · 39 pts
SeverityFileLineSnippetContext
LOWserver.py362 # Check if first message is feature flagsCOMMENT
LOWserver.py1240 # Check if a specific prompt_id was provided for targeted interruptionCOMMENT
LOWserver.py1245 # Check if the prompt_id matches any currently running promptCOMMENT
LOWcomfy/text_encoders/anima.py26 out["qwen3_06b"] = [[(k[0], 1.0, k[2]) if return_word_ids else (k[0], 1.0) for k in inner_list] for inner_list iCODE
LOWcomfy/weight_adapter/bypass.py159 # Check if adapter has custom bypass_forward (e.g., GLoRA)COMMENT
LOWcomfy/weight_adapter/bypass.py162 # Check if it's overridden (not the base class default)COMMENT
LOWcomfy/weight_adapter/bypass.py218 # Check if adapter is an nn.Module (WeightAdapterTrainBase)COMMENT
LOWapp/user_manager.py89 # Check if filename is url encodedCOMMENT
LOWapp/user_manager.py270 # Check if it's the base user directory that's missing (new user case)COMMENT
LOWapp/database/db.py303 # Check if we need to upgradeCOMMENT
LOWapp/assets/services/ingest.py420 # Read the file before the claim below opens the write transaction.COMMENT
LOWapp/assets/services/ingest.py641 # Read the file before the claim below opens the write transaction.COMMENT
LOW…ecution/testing_nodes/testing-pack/async_test_nodes.py235 # Check if resource is already in useCOMMENT
LOWcomfy_api_nodes/nodes_topaz.py709 # Check if width exceeds standard bounds (for ultra-wide e.g., 21:9 ARs)STRING
LOWcomfy_api_nodes/nodes_topaz.py717 # Check if height exceeds standard boundsSTRING
LOWcomfy_api_nodes/nodes_topaz.py1028 # Check if width exceeds standard bounds (for ultra-wide e.g., 21:9 ARs)STRING
LOWcomfy_api_nodes/nodes_topaz.py1036 # Check if height exceeds standard boundsSTRING
LOWcomfy_api_nodes/nodes_hitpaw.py140 # Check if we can downscale input by at most 2x to fitSTRING
LOWcomfy_api_nodes/nodes_ideogram.py354 # Check if both image and mask are provided for editing modeSTRING
LOWcomfy_extras/nodes_wan.py514 # Check if we have a single track (dict with x,y) or a list of tracksCOMMENT
LOWcomfy_api/generate_api_stubs.py25 # Check if module has ComfyAPISync (the sync wrapper)COMMENT
LOWcomfy_api/internal/__init__.py142 # Check if the original method is asyncCOMMENT
LOW⚡comfy_api/internal/async_to_sync.py241 # Check if this attribute needs a sync wrapperCOMMENT
LOW⚡comfy_api/internal/async_to_sync.py263 # Check if the type is defined as an inner classCOMMENT
LOWcomfy_api/internal/async_to_sync.py582 # Check if module has __all__ definedCOMMENT
LOWcomfy_api/internal/async_to_sync.py590 # Check if this type was actually used in annotationsCOMMENT
LOWcomfy_api/internal/async_to_sync.py946 # Check if there's a mapping from annotationCOMMENT
LOW.github/workflows/check-line-endings.yml27 # Check if the file exists and is a text fileCOMMENT
LOW⚡tests-unit/utils/extra_config_test.py107 # Check if add_model_folder_path was called with the correct argumentsSTRING
LOW⚡tests-unit/utils/extra_config_test.py113 # Check if yaml.safe_load was calledSTRING
LOW⚡tests-unit/utils/extra_config_test.py116 # Check if open was called with the correct file pathSTRING
AI Slop Vocabulary17 hits · 33 pts
SeverityFileLineSnippetContext
LOWexecution.py284 # if is just a class, then assign no state, just create cloneCOMMENT
MEDIUM⚡.spectral.yaml70 # Custom rules: best practicesCOMMENT
MEDIUMnodes.py439 #grow mask by a few pixels to keep things seamless in latent spaceCOMMENT
LOWcomfy/hooks.py414 # if only 1 hook, just return itself without cloningCOMMENT
LOWcomfy/sd.py1310 #So we just set a flag for tiler fallback so that tensor gc can happen once theCOMMENT
LOWcomfy/sd.py1451 #So we just set a flag for tiler fallback so that tensor gc can happen once theCOMMENT
LOWcomfy/ldm/modules/diffusionmodules/mmdit.py863 # just use a buffer alreadyCOMMENT
MEDIUMcomfy/ldm/sam3/tracker.py73 """Max of IoU and IoM (intersection over minimum area). More robust to size differences."""STRING
LOWcomfy/ldm/ace/lyric_encoder.py113 # It's better we just return None if no cache is required,COMMENT
LOWcomfy/ldm/chroma_radiance/model.py339 # If x0 variant → v-pred, just return this insteadCOMMENT
LOWapp/node_replace_manager.py82 # just use the first replacementCOMMENT
MEDIUMcomfy_extras/nodes_sam3d_body.py1432 # radius defaults to cylinder radius for a seamless silhouette).COMMENT
LOWcomfy_extras/nodes_video.py372 # Instead of hashing the file, we can just use the modification time to avoidCOMMENT
MEDIUMcomfy_extras/mesh3d/uv_unwrap/parameterize.py345 # median positive diagonal (see GPU branch): robust to degenerate-face weightsCOMMENT
MEDIUMcomfy_extras/mesh3d/postprocess/qem_decimate.py1277 # threshold scaled by mesh_scale² so the 1e-8 start is scale-robustCOMMENT
LOWcomfy_api/internal/async_to_sync.py900 # If we can't get the signature, just add a simple stubCOMMENT
LOWtests-unit/utils/extra_config_test.py238 return path # For absolute base, we just return path directlySTRING
Modern AI Meta-Vocabulary6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMcomfy/context_windows.py594 # accumulate results from each context windowCOMMENT
MEDIUMcomfy/context_windows.py653 # allow processing to end between context window executions for faster CancelCOMMENT
MEDIUMcomfy/context_windows.py715 # bias is the influence of a specific index in relation to the whole context windowCOMMENT
MEDIUMcomfy/context_windows.py742 # Scale noise_shape to a single context window so VRAM estimation budgets per-window.COMMENT
MEDIUMcomfy/context_windows.py944 # weight is based on the distance away from the edge of the context window;COMMENT
MEDIUMcomfy_extras/nodes_context_windows.py58 # make memory usage calculation only take into account the context window latentsCOMMENT
Verbosity Indicators9 hits · 18 pts
SeverityFileLineSnippetContext
LOW⚡comfy/ldm/lightricks/vae/causal_audio_autoencoder.py708 # Step 1: Crop first to avoid exceeding target dimensionsCOMMENT
LOW⚡comfy/ldm/lightricks/vae/causal_audio_autoencoder.py713 # Step 2: Calculate padding needed for time and frequency dimensionsCOMMENT
LOW⚡comfy/ldm/lightricks/vae/causal_audio_autoencoder.py717 # Step 3: Apply padding if neededCOMMENT
LOWcomfy/ldm/lightricks/vae/causal_audio_autoencoder.py729 # Step 4: Final safety crop to ensure exact target shapeCOMMENT
LOW⚡comfy_extras/mesh3d/postprocess/remesh.py984 # Step 1: sparse narrow-band voxel grid (coarse-to-fine)COMMENT
LOW⚡comfy_extras/mesh3d/postprocess/remesh.py994 # Step 2: collect unique corner positions of all active voxelsCOMMENT
LOWcomfy_extras/mesh3d/postprocess/remesh.py1014 # Step 3: distance field at every unique corner.COMMENT
LOWcomfy_extras/mesh3d/postprocess/remesh.py1076 # Step 6: project_back and / or color sampling share one closest-point queryCOMMENT
LOW⚡comfy_api/internal/async_to_sync.py294 # we need to check if it needs a sync wrapperCOMMENT
Structural Annotation Overuse8 hits · 16 pts
SeverityFileLineSnippetContext
LOW⚡comfy/ldm/lightricks/vae/causal_audio_autoencoder.py708 # Step 1: Crop first to avoid exceeding target dimensionsCOMMENT
LOW⚡comfy/ldm/lightricks/vae/causal_audio_autoencoder.py713 # Step 2: Calculate padding needed for time and frequency dimensionsCOMMENT
LOW⚡comfy/ldm/lightricks/vae/causal_audio_autoencoder.py717 # Step 3: Apply padding if neededCOMMENT
LOWcomfy/ldm/lightricks/vae/causal_audio_autoencoder.py729 # Step 4: Final safety crop to ensure exact target shapeCOMMENT
LOW⚡comfy_extras/mesh3d/postprocess/remesh.py984 # Step 1: sparse narrow-band voxel grid (coarse-to-fine)COMMENT
LOW⚡comfy_extras/mesh3d/postprocess/remesh.py994 # Step 2: collect unique corner positions of all active voxelsCOMMENT
LOWcomfy_extras/mesh3d/postprocess/remesh.py1014 # Step 3: distance field at every unique corner.COMMENT
LOWcomfy_extras/mesh3d/postprocess/remesh.py1076 # Step 6: project_back and / or color sampling share one closest-point queryCOMMENT
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMscript_examples/basic_api_example.py101 # If the workflow contains API nodes, you can add a Comfy API key to the `extra_data`` field of the payload.STRING
MEDIUMscript_examples/websockets_api_example.py42 # If you want to be able to decode the binary stream for latent previews, here is how you can do it:COMMENT
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOWcomfy_api/latest/_io.py340 "placeholder": self.placeholder,CODE
LOWcomfy_api/latest/_io.py415 "placeholder": self.placeholder,CODE
LOW…s-unit/comfy_api_test/multicombo_serialization_test.py31 "placeholder": "Select providers",CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWcomfy_api_nodes/nodes_vidu.py41async def execute_task(CODE