Repository Analysis

Comfy-Org/ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.

7.6 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Comfy-Org/ComfyUI, a Python project with 130,429 GitHub stars. SynthScan v2.0 examined 563,902 lines of code across 995 source files, recording 3671 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 7.6 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.6
Adjusted Score
7.6
Raw Score
100%
Time Factor
2026-08-28
Last Push
130.4K
Stars
Python
Language
563.9K
Lines of Code
995
Files
3.7K
Pattern Hits
2026-08-29
Scan Date
0.07
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 10HIGH 59MEDIUM 188LOW 3414

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

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

Hyper-Verbose Identifiers1548 hits · 1632 pts
SeverityFileLineSnippetContext
LOWserver.py69def _remove_sensitive_from_queue(queue: list) -> list:CODE
LOWserver.py74async def send_socket_catch_exception(function, message):CODE
LOWserver.py159def create_origin_only_middleware():CODE
LOWserver.py200def create_block_external_middleware():CODE
LOWserver.py202 async def block_external_middleware(request: web.Request, handler):CODE
LOWcuda_malloc.py114def get_torch_version_noimport():CODE
LOWexecution.py231async def resolve_map_node_over_list_results(results):CODE
LOWexecution.py243async def _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, func, allow_interrupt=False, execution_blCODE
LOWexecution.py1317 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.py35 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
LOWnodes.py2339async def init_external_custom_nodes():CODE
LOWmain.py116def handle_comfyui_manager_unavailable():CODE
LOWmain.py182def execute_prestartup_script():CODE
LOWmain.py318def _collect_output_absolute_paths(history_result: dict) -> list[str]: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.py16def 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
LOWcomfy/hooks.py708def set_hooks_for_conditioning(cond, hooks: HookGroup, append_hooks=True, cache: dict[tuple[HookGroup, HookGroup], HookGCODE
LOWcomfy/hooks.py713def set_timesteps_for_conditioning(cond, timestep_range: tuple[float,float]):CODE
LOWcomfy/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.py185 def inference_memory_requirements(self, dtype):CODE
LOWcomfy/controlnet.py486 def inference_memory_requirements(self, dtype):CODE
LOWcomfy/controlnet.py509def controlnet_load_state_dict(control_model, sd):CODE
LOWcomfy/controlnet.py617def load_controlnet_hunyuandit(controlnet_data, model_options={}):CODE
LOWcomfy/controlnet.py628def load_controlnet_flux_xlabs_mistoline(sd, mistoline=False, model_options={}):CODE
LOWcomfy/controlnet.py637def load_controlnet_flux_instantx(sd, model_options={}):CODE
LOWcomfy/controlnet.py661def load_controlnet_qwen_instantx(sd, model_options={}):CODE
LOWcomfy/controlnet.py728def load_controlnet_state_dict(state_dict, model=None, model_options={}):CODE
LOWcomfy/model_patcher.py114def set_model_options_post_cfg_function(model_options, post_cfg_function, disable_cfg1_optimization=False):CODE
LOWcomfy/model_patcher.py120def set_model_options_pre_cfg_function(model_options, pre_cfg_function, disable_cfg1_optimization=False):CODE
LOWcomfy/model_patcher.py126def create_model_options_clone(orig_model_options: dict):CODE
LOWcomfy/model_patcher.py129def create_hook_patches_clone(orig_hook_patches, copy_tuples=False):CODE
LOWcomfy/model_patcher.py638 def set_model_sampler_cfg_function(self, sampler_cfg_function, disable_cfg1_optimization=False):CODE
LOWcomfy/model_patcher.py646 def set_model_sampler_post_cfg_function(self, post_cfg_function, disable_cfg1_optimization=False):CODE
1488 more matches not shown…
Decorative Section Separators125 hits · 421 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.py935# ==============================================================================COMMENT
MEDIUMcomfy/ops.py937# ==============================================================================COMMENT
MEDIUMcomfy/quant_ops.py110# ==============================================================================COMMENT
MEDIUMcomfy/quant_ops.py112# ==============================================================================COMMENT
MEDIUMcomfy/quant_ops.py221# ==============================================================================COMMENT
MEDIUMcomfy/quant_ops.py223# ==============================================================================COMMENT
MEDIUMcomfy/quant_ops.py284# ==============================================================================COMMENT
MEDIUMcomfy/quant_ops.py286# ==============================================================================COMMENT
MEDIUMcomfy/k_diffusion/deis.py10#----------------------------------------------------------------------------COMMENT
MEDIUMcomfy/k_diffusion/deis.py20#----------------------------------------------------------------------------COMMENT
MEDIUMcomfy/k_diffusion/deis.py30#----------------------------------------------------------------------------COMMENT
MEDIUMcomfy/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.py1041 # ------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lumina/model.py1044 # ------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lightricks/vocoders/vocoder.py17# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lightricks/vocoders/vocoder.py20# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lightricks/vocoders/vocoder.py174# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lightricks/vocoders/vocoder.py176# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lightricks/vocoders/vocoder.py229# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lightricks/vocoders/vocoder.py231# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lightricks/vocoders/vocoder.py313# ---------------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lightricks/vocoders/vocoder.py315# ---------------------------------------------------------------------------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
MEDIUMcomfy/ldm/depth_anything_3/ray_pose.py36# -----------------------------------------------------------------------------COMMENT
MEDIUMcomfy/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
65 more matches not shown…
Deep Nesting441 hits · 409 pts
SeverityFileLineSnippetContext
LOWserver.py133CODE
LOWserver.py216CODE
LOWserver.py270CODE
LOWserver.py397CODE
LOWserver.py471CODE
LOWserver.py517CODE
LOWserver.py1073CODE
LOWserver.py474CODE
LOWcuda_malloc.py54CODE
LOWexecution.py159CODE
LOWexecution.py243CODE
LOWexecution.py322CODE
LOWexecution.py351CODE
LOWexecution.py438CODE
LOWexecution.py846CODE
LOWexecution.py1128CODE
LOWexecution.py257CODE
LOWexecution.py714CODE
LOWexecution.py730CODE
LOWexecution.py1351CODE
LOWexecution.py1364CODE
LOWlatent_preview.py78CODE
LOWnode_helpers.py9CODE
LOWnodes.py2243CODE
LOWnodes.py2339CODE
LOWnodes.py643CODE
LOWnodes.py775CODE
LOWnodes.py796CODE
LOWnodes.py1692CODE
LOWnodes.py2021CODE
LOWmain.py182CODE
LOWmain.py318CODE
LOWmain.py350CODE
LOWmain.py494CODE
LOWcomfy/conds.py7CODE
LOWcomfy/context_windows.py113CODE
LOWcomfy/context_windows.py475CODE
LOWcomfy/context_windows.py572CODE
LOWcomfy/clip_vision.py113CODE
LOWcomfy/memory_management.py18CODE
LOWcomfy/model_prefetch.py62CODE
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.py728CODE
LOWcomfy/controlnet.py961CODE
LOWcomfy/controlnet.py190CODE
LOWcomfy/controlnet.py253CODE
LOWcomfy/model_patcher.py129CODE
LOWcomfy/model_patcher.py555CODE
LOWcomfy/model_patcher.py772CODE
LOWcomfy/model_patcher.py793CODE
LOWcomfy/model_patcher.py817CODE
381 more matches not shown…
AI Structural Patterns405 hits · 370 pts
SeverityFileLineSnippetContext
LOWexecution.py155CODE
LOWnodes.py691CODE
LOWcomfy/context_windows.py342CODE
LOWcomfy/sd1_clip.py88CODE
LOWcomfy/sd1_clip.py487CODE
LOWcomfy/sd1_clip.py744CODE
LOWcomfy/sd1_clip.py749CODE
LOWcomfy/controlnet.py236CODE
LOWcomfy/controlnet.py484CODE
LOWcomfy/controlnet.py390CODE
LOWcomfy/supported_models.py339CODE
LOWcomfy/supported_models.py360CODE
LOWcomfy/supported_models.py377CODE
LOWcomfy/supported_models.py405CODE
LOWcomfy/supported_models.py436CODE
LOWcomfy/supported_models.py479CODE
LOWcomfy/supported_models.py502CODE
LOWcomfy/supported_models.py567CODE
LOWcomfy/supported_models.py656CODE
LOWcomfy/supported_models.py717CODE
LOWcomfy/supported_models.py764CODE
LOWcomfy/supported_models.py793CODE
LOWcomfy/supported_models.py818CODE
LOWcomfy/supported_models.py906CODE
LOWcomfy/supported_models.py938CODE
LOWcomfy/supported_models.py958CODE
LOWcomfy/supported_models.py1009CODE
LOWcomfy/supported_models.py1046CODE
LOWcomfy/supported_models.py1056CODE
LOWcomfy/supported_models.py1082CODE
LOWcomfy/supported_models.py1097CODE
LOWcomfy/supported_models.py1124CODE
LOWcomfy/supported_models.py1150CODE
LOWcomfy/supported_models.py1171CODE
LOWcomfy/supported_models.py1195CODE
LOWcomfy/supported_models.py1334CODE
LOWcomfy/supported_models.py1369CODE
LOWcomfy/supported_models.py1380CODE
LOWcomfy/supported_models.py1391CODE
LOWcomfy/supported_models.py1402CODE
LOWcomfy/supported_models.py1416CODE
LOWcomfy/supported_models.py1426CODE
LOWcomfy/supported_models.py1439CODE
LOWcomfy/supported_models.py1452CODE
LOWcomfy/supported_models.py1466CODE
LOWcomfy/supported_models.py1479CODE
LOWcomfy/supported_models.py1514CODE
LOWcomfy/supported_models.py1524CODE
LOWcomfy/supported_models.py1535CODE
LOWcomfy/supported_models.py1550CODE
LOWcomfy/supported_models.py1602CODE
LOWcomfy/supported_models.py1616CODE
LOWcomfy/supported_models.py1674CODE
LOWcomfy/supported_models.py1752CODE
LOWcomfy/supported_models.py1788CODE
LOWcomfy/supported_models.py1829CODE
LOWcomfy/supported_models.py1861CODE
LOWcomfy/supported_models.py1882CODE
LOWcomfy/supported_models.py1920CODE
LOWcomfy/supported_models.py1949CODE
345 more matches not shown…
Over-Commented Block455 hits · 250 pts
SeverityFileLineSnippetContext
LOWserver.py621 or 'application/octet-stream'COMMENT
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 if len(self.cached_patcher_init) > 2: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
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt13981##俚COMMENT
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt14001##個COMMENT
395 more matches not shown…
Unused Imports283 hits · 232 pts
SeverityFileLineSnippetContext
LOWcomfy/context_windows.py1CODE
LOWcomfy/hooks.py1CODE
LOWcomfy/controlnet.py18CODE
LOWcomfy/model_patcher.py19CODE
LOWcomfy/model_base.py92CODE
LOWcomfy/sampler_helpers.py1CODE
LOWcomfy/multigpu.py1CODE
LOWcomfy/quant_ops.py24CODE
LOWcomfy/quant_ops.py24CODE
LOWcomfy/quant_ops.py24CODE
LOWcomfy/quant_ops.py24CODE
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/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.py23CODE
LOWapp/assets/database/models.py1CODE
LOWapp/assets/database/queries/__init__.py1CODE
LOWapp/assets/database/queries/__init__.py1CODE
LOWapp/assets/database/queries/__init__.py1CODE
LOWapp/assets/database/queries/__init__.py1CODE
LOWapp/assets/database/queries/__init__.py1CODE
LOWapp/assets/database/queries/__init__.py1CODE
LOWapp/assets/database/queries/__init__.py1CODE
LOWapp/assets/database/queries/__init__.py1CODE
LOWapp/assets/database/queries/__init__.py11CODE
LOWapp/assets/database/queries/__init__.py11CODE
LOWapp/assets/database/queries/__init__.py11CODE
LOWapp/assets/database/queries/__init__.py11CODE
LOWapp/assets/database/queries/__init__.py11CODE
LOWapp/assets/database/queries/__init__.py11CODE
LOWapp/assets/database/queries/__init__.py11CODE
LOWapp/assets/database/queries/__init__.py11CODE
LOWapp/assets/database/queries/__init__.py11CODE
LOWapp/assets/database/queries/__init__.py11CODE
LOWapp/assets/database/queries/__init__.py11CODE
LOWapp/assets/database/queries/__init__.py11CODE
LOWapp/assets/database/queries/__init__.py11CODE
LOWapp/assets/database/queries/__init__.py11CODE
LOWapp/assets/database/queries/__init__.py11CODE
LOWapp/assets/database/queries/__init__.py11CODE
LOWapp/assets/database/queries/__init__.py11CODE
LOWapp/assets/database/queries/__init__.py11CODE
223 more matches not shown…
Excessive Try-Catch Wrapping183 hits · 188 pts
SeverityFileLineSnippetContext
MEDIUMserver.py1161def post_interrupt(request):CODE
LOWserver.py322 except Exception as e:CODE
LOWserver.py457 except Exception:CODE
LOWserver.py808 except Exception:CODE
LOWserver.py1254 except Exception as exc:CODE
LOWserver.py1463 except Exception:CODE
LOWexecution.py96 except Exception as e:CODE
LOWexecution.py461 except Exception as ex:CODE
LOWexecution.py628 except Exception as ex:CODE
LOWexecution.py724 except Exception as e:CODE
LOWexecution.py962 except Exception as ex:CODE
LOWexecution.py1004 except Exception as ex:CODE
LOWexecution.py1187 except Exception as ex:CODE
LOWnodes.py2283 except Exception as e:CODE
LOWnodes.py2328 except Exception as e:CODE
LOWnodes.py2334 except Exception as e:CODE
LOWmain.py193 except Exception as e:CODE
LOWmain.py501 except Exception as e:CODE
MEDIUMmain.py494def setup_database():CODE
LOWcomfy/conds.py21 except Exception:CODE
LOWcomfy/sd1_clip.py458 except Exception:CODE
LOWcomfy/model_patcher.py2151 except Exception as e:CODE
LOWcomfy/model_patcher.py1278 except Exception as e:CODE
LOWcomfy/deploy_environment.py31 except Exception as e:CODE
LOWcomfy/ops.py905 except Exception as e:CODE
LOWcomfy/model_detection.py609 except Exception:CODE
LOWcomfy/utils.py178 except Exception as e:CODE
LOWcomfy/sd.py1252 except Exception as e:CODE
LOWcomfy/sd.py1389 except Exception as e:CODE
LOWcomfy/multigpu.py41 except Exception as e:CODE
LOWcomfy/multigpu.py59 except Exception as e:CODE
LOWcomfy/quant_ops.py15 except Exception:CODE
LOWcomfy/samplers.py534 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.py437 except Exception as e:CODE
LOWcomfy/ldm/modules/attention.py676 except Exception as e:CODE
LOWcomfy/ldm/modules/attention.py763 except Exception as e:CODE
LOWcomfy/ldm/modules/attention.py838 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
LOWapp/frontend_management.py55 except Exception:CODE
LOWapp/frontend_management.py219 except Exception:CODE
LOWapp/frontend_management.py275 except Exception as exc:STRING
LOWapp/frontend_management.py286 except Exception as exc:STRING
LOWapp/frontend_management.py430 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/database/db.py220 except Exception as e:CODE
LOWapp/assets/scanner.py228 except Exception as e:CODE
LOWapp/assets/scanner.py235 except Exception as e:CODE
LOWapp/assets/scanner.py268 except Exception as e:CODE
123 more matches not shown…
Cross-Language Confusion20 hits · 148 pts
SeverityFileLineSnippetContext
HIGHcomfy_api_nodes/nodes_tripo.py801 $face := (widgets.face_limit != null) ? widgets.face_limit : -1;CODE
HIGHcomfy_api_nodes/nodes_tripo.py802 $texSize := (widgets.texture_size != null) ? widgets.texture_size : 4096;CODE
HIGHcomfy_api_nodes/nodes_tripo.py803 $flatThresh := (widgets.flatten_bottom_threshold != null) ? widgets.flatten_bottom_threshold : 0;CODE
HIGHcomfy_api_nodes/nodes_tripo.py804 $scale := (widgets.scale_factor != null) ? widgets.scale_factor : 1;CODE
HIGHcomfy_api_nodes/nodes_pixverse.py516 $table := $type($model) = "string" ? $lookup($prices, $lowercase($model)) : undefined;CODE
HIGHcomfy_api_nodes/nodes_pixverse.py519 ? $lookup($table, $lowercase($quality)) : undefined;CODE
HIGHcomfy_api_nodes/nodes_pixverse.py521 $pps := $type($row) = "object" ? $lookup($row, $audio) : undefined;CODE
HIGHcomfy_api_nodes/nodes_pixverse.py523 $duration := $type($durationRaw) in ["string", "number"] ? $number($durationRaw) : undefined;CODE
HIGHcomfy_api_nodes/nodes_pixverse.py548 $table := $type($model) = "string" ? $lookup($rates, $lowercase($model)) : undefined;CODE
HIGHcomfy_api_nodes/nodes_pixverse.py551 ? $lookup($table, $lowercase($quality)) : undefined;CODE
HIGHcomfy_api_nodes/nodes_pixverse.py553 $pps := $type($row) = "object" ? $lookup($row, $audio) : undefined;CODE
HIGHcomfy_api_nodes/nodes_pixverse.py556 $duration := $type($durationRaw) in ["string", "number"] ? $number($durationRaw) : undefined;CODE
HIGHcomfy_api_nodes/nodes_pixverse.py560 : ($type($duration) = "number" ? {"type":"usd","usd": $pps * $duration} : undefined))CODE
HIGHcomfy_api_nodes/nodes_ltxv.py114 $table := $type($model) = "string" ? $lookup($prices, $model) : undefined;CODE
HIGHcomfy_api_nodes/nodes_ltxv.py116 $pps := $type($table) = "object" and $type($res) = "string" ? $lookup($table, $res) : undefined;CODE
HIGHcomfy_api_nodes/nodes_ltxv.py118 $dur := $type($durRaw) in ["string", "number"] ? $number($durRaw) : undefined;CODE
HIGHcomfy_api_nodes/nodes_ltxv.py132 $rate := $type($model) = "string" ? $lookup($rates, $model) : undefined;CODE
HIGHtests-unit/assets_test/test_assets_missing_sync.py343 # one hashed AssetInfo (asset_hash == h) + one seed AssetInfo (asset_hash == null)COMMENT
HIGHtests-unit/assets_test/test_metadata_filters.py136 # a1: key missing; a2: explicit null; a3: concrete valueCOMMENT
HIGHtests-unit/assets_test/test_metadata_filters.py318 # Filtering by unknown key with None should return both (missing key OR null)COMMENT
Self-Referential Comments46 hits · 146 pts
SeverityFileLineSnippetContext
MEDIUMcomfyui_version.py1# This file is automatically generated by the build process when version isCOMMENT
MEDIUMcomfy/lora.py401 # 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.py89 # Create a new tqdm progress barCOMMENT
MEDIUMtests/execution/test_async_nodes.py202 # Create an async node that will errorCOMMENT
MEDIUMtests/execution/test_async_nodes.py142 # Create a test node with async validationCOMMENT
MEDIUMtests/execution/test_async_nodes.py186 # Create a node with async check_lazy_statusCOMMENT
MEDIUMtests/execution/test_progress_isolation.py212 # Create a simple workflowCOMMENT
MEDIUMtests/execution/test_execution.py723 # Create a processing chain with an OUTPUT_NODE that has socket outputsCOMMENT
MEDIUMtests/execution/test_execution.py732 # Create the final outputCOMMENT
MEDIUMtests/execution/test_execution.py451 # Creating the nodes in this specific order previously caused a bugCOMMENT
MEDIUMtests/execution/test_execution.py618 # Create a TestParallelSleep node that expands into multiple TestSleep nodesCOMMENT
MEDIUMtests/execution/test_execution.py784 # 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.py365 # Create a basic image generation workflow using the input model, clip and vaeCOMMENT
MEDIUM…execution/testing_nodes/testing-pack/specific_tests.py447 # 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
MEDIUMcomfy_api/internal/async_to_sync.py246 # Create a sync version of this attributeCOMMENT
MEDIUMcomfy_api/internal/async_to_sync.py268 # Create an instance of the inner classCOMMENT
MEDIUMcomfy_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__.py154# Create a synchronous version of the APICOMMENT
MEDIUMcomfy_api/latest/_input_impl/video_types.py1014 # Create a video streamCOMMENT
MEDIUMcomfy_api/latest/_input_impl/video_types.py1024 # 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/assets_test/test_assets_missing_sync.py22 # Create a file directly under input/unit-tests/<case>. Backend tags onlyCOMMENT
MEDIUMtests-unit/assets_test/test_assets_missing_sync.py189 # Create a second on-disk copy under the same root but different subfolderCOMMENT
MEDIUMtests-unit/assets_test/test_tags_api.py50 # Create a short-lived asset under input with a unique custom tagCOMMENT
MEDIUMtests-unit/assets_test/test_crud.py90 # Create a second reference to the same asset via from-hashCOMMENT
MEDIUMtests-unit/assets_test/services/test_ingest.py170 # Create a preview asset and referenceCOMMENT
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.py620 self.first_stage_model = comfy.ldm.lightricks.vae.na_diffusion_decoder.CausalDiffusionVAE(config=vae_conCODE
CRITICALcomfy/sd.py727 self.first_stage_model = comfy.ldm.genmo.vae.model.VideoVAE()CODE
CRITICALcomfy/sd.py749 self.first_stage_model = comfy.ldm.lightricks.vae.causal_video_autoencoder.VideoVAE(version=version, conCODE
CRITICALcomfy/sd.py871 self.first_stage_model = comfy.ldm.ace.vae.music_dcae_pipeline.MusicDCAE(source_sample_rate=44100)CODE
CRITICALcomfy/sd.py902 self.first_stage_model = comfy.ldm.mmaudio.vae.autoencoder.AudioAutoencoder(mode=mode)CODE
CRITICALcomfy/sd.py951 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.py224 self.img_in = comfy.ldm.modules.diffusionmodules.mmdit.PatchEmbed(None, self.patch_size, self.in_channels, self.CODE
CRITICALtests-unit/comfy_quant/test_mixed_precision.py116 self.assertEqual(model.layer1.weight._params.scale.item(), 2.0)CODE
CRITICALtests-unit/comfy_quant/test_mixed_precision.py117 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.py2222 Returns the module name based on the given module path. Examples: get_module_name("C:/Users/username/CoSTRING
HIGHcomfy/ldm/cosmos/predict2.py782 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.py335 Args: value (str): The version string to parse. Returns: tuple[str, str]: A tuSTRING
HIGHapp/frontend_management.py356 Initializes the frontend for the specified version. Args: version_string (str): The versioSTRING
HIGHapp/assets/api/upload.py28 Parse a multipart/form-data upload request. Args: request: The aiohttp request check_hash_exisSTRING
HIGHcomfy_api_nodes/nodes_openai.py62Validates 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.py277 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 Boilerplate41 hits · 44 pts
SeverityFileLineSnippetContext
LOWfolder_paths.py122def set_output_directory(output_dir: str) -> None:CODE
LOWfolder_paths.py126def set_temp_directory(temp_dir: str) -> None:CODE
LOWfolder_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
LOWcomfy/quant_ops.py288__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.py839 def set_resolution(self, resolution: int) -> None:CODE
LOWcomfy/ldm/lightricks/model.py21logger = 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/assets/database/queries/__init__.py73__all__ = [CODE
LOWapp/assets/services/image_dimensions.py12logger = logging.getLogger(__name__)CODE
LOWapp/assets/services/__init__.py54__all__ = [CODE
LOWcomfy_api_nodes/nodes_sonilo.py26logger = logging.getLogger(__name__)CODE
LOWcomfy_api_nodes/nodes_bytedance.py130logger = logging.getLogger(__name__)CODE
LOWcomfy_api_nodes/util/request_logger.py11logger = logging.getLogger(__name__)CODE
LOWcomfy_api_nodes/util/__init__.py64__all__ = [CODE
LOWcomfy_extras/nodes_glsl.py16logger = logging.getLogger(__name__)CODE
LOWcomfy_extras/nodes_images.py1534def _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.py477__all__ = [CODE
LOWcomfy_api/latest/_io.py2385__all__ = [CODE
LOWcomfy_api/latest/__init__.py165__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
Redundant / Tautological Comments29 hits · 36 pts
SeverityFileLineSnippetContext
LOWserver.py301 # Check if first message is feature flagsCOMMENT
LOWserver.py1167 # Check if a specific prompt_id was provided for targeted interruptionCOMMENT
LOWserver.py1172 # 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.py216 # 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.py189 # Check if we need to upgradeCOMMENT
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.py298 # Check if both image and mask are provided for editing modeSTRING
LOWcomfy_extras/nodes_wan.py510 # 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
LOWcomfy_api/internal/async_to_sync.py241 # Check if this attribute needs a sync wrapperCOMMENT
LOWcomfy_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
LOWtests-unit/utils/extra_config_test.py107 # Check if add_model_folder_path was called with the correct argumentsSTRING
LOWtests-unit/utils/extra_config_test.py113 # Check if yaml.safe_load was calledSTRING
LOWtests-unit/utils/extra_config_test.py116 # Check if open was called with the correct file pathSTRING
AI Slop Vocabulary17 hits · 33 pts
SeverityFileLineSnippetContext
LOWexecution.py275 # if is just a class, then assign no state, just create cloneCOMMENT
MEDIUM.spectral.yaml70 # Custom rules: best practicesCOMMENT
MEDIUMnodes.py434 #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.py1257 #So we just set a flag for tiler fallback so that tensor gc can happen once theCOMMENT
LOWcomfy/sd.py1394 #So we just set a flag for tiler fallback so that tensor gc can happen once theCOMMENT
LOWcomfy/ldm/modules/diffusionmodules/mmdit.py852 # 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.py1430 # radius defaults to cylinder radius for a seamless silhouette).COMMENT
LOWcomfy_extras/nodes_video.py315 # 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
LOWcomfy/ldm/lightricks/vae/causal_audio_autoencoder.py708 # Step 1: Crop first to avoid exceeding target dimensionsCOMMENT
LOWcomfy/ldm/lightricks/vae/causal_audio_autoencoder.py713 # Step 2: Calculate padding needed for time and frequency dimensionsCOMMENT
LOWcomfy/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
LOWcomfy_extras/mesh3d/postprocess/remesh.py975 # Step 1: sparse narrow-band voxel grid (coarse-to-fine)COMMENT
LOWcomfy_extras/mesh3d/postprocess/remesh.py985 # Step 2: collect unique corner positions of all active voxelsCOMMENT
LOWcomfy_extras/mesh3d/postprocess/remesh.py1004 # Step 3: distance field at every unique corner.COMMENT
LOWcomfy_extras/mesh3d/postprocess/remesh.py1065 # Step 6: project_back and / or color sampling share one closest-point queryCOMMENT
LOWcomfy_api/internal/async_to_sync.py294 # we need to check if it needs a sync wrapperCOMMENT
Structural Annotation Overuse8 hits · 16 pts
SeverityFileLineSnippetContext
LOWcomfy/ldm/lightricks/vae/causal_audio_autoencoder.py708 # Step 1: Crop first to avoid exceeding target dimensionsCOMMENT
LOWcomfy/ldm/lightricks/vae/causal_audio_autoencoder.py713 # Step 2: Calculate padding needed for time and frequency dimensionsCOMMENT
LOWcomfy/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
LOWcomfy_extras/mesh3d/postprocess/remesh.py975 # Step 1: sparse narrow-band voxel grid (coarse-to-fine)COMMENT
LOWcomfy_extras/mesh3d/postprocess/remesh.py985 # Step 2: collect unique corner positions of all active voxelsCOMMENT
LOWcomfy_extras/mesh3d/postprocess/remesh.py1004 # Step 3: distance field at every unique corner.COMMENT
LOWcomfy_extras/mesh3d/postprocess/remesh.py1065 # 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.py37async def execute_task(CODE