Repository Analysis

Comfy-Org/ComfyUI

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

7.4 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Comfy-Org/ComfyUI, a Python project with 120,648 GitHub stars. SynthScan v2.0 examined 512,366 lines of code across 905 source files, recording 3268 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 7.4 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.4
Adjusted Score
7.4
Raw Score
100%
Time Factor
2026-07-14
Last Push
120.6K
Stars
Python
Language
512.4K
Lines of Code
905
Files
3.3K
Pattern Hits
2026-07-14
Scan Date
0.06
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 9HIGH 45MEDIUM 185LOW 3029

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 3268 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 Identifiers1297 hits · 1375 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.py229async def resolve_map_node_over_list_results(results):CODE
LOWexecution.py241async def _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, func, allow_interrupt=False, execution_blCODE
LOWexecution.py1310 def get_current_queue_volatile(self):CODE
LOWfolder_paths.py158def get_system_user_directory(name: str = "system") -> str:CODE
LOWfolder_paths.py189def get_public_user_directory(user_id: str) -> str | None:CODE
LOWfolder_paths.py227def filter_files_content_types(files: list[str], content_types: List[Literal["image", "video", "audio", "model"]]) -> liCODE
LOWfolder_paths.py287def is_dangerous_content_type(content_type: str | None) -> bool:CODE
LOWfolder_paths.py341def 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.py2323async def init_external_custom_nodes():CODE
LOWmain.py97def handle_comfyui_manager_unavailable():CODE
LOWmain.py163def execute_prestartup_script():CODE
LOWmain.py284def _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.py8def cleanup_prefetched_modules(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.py489 def inference_memory_requirements(self, dtype):CODE
LOWcomfy/controlnet.py512def controlnet_load_state_dict(control_model, sd):CODE
LOWcomfy/controlnet.py620def load_controlnet_hunyuandit(controlnet_data, model_options={}):CODE
LOWcomfy/controlnet.py631def load_controlnet_flux_xlabs_mistoline(sd, mistoline=False, model_options={}):CODE
LOWcomfy/controlnet.py640def load_controlnet_flux_instantx(sd, model_options={}):CODE
LOWcomfy/controlnet.py664def load_controlnet_qwen_instantx(sd, model_options={}):CODE
LOWcomfy/controlnet.py731def load_controlnet_state_dict(state_dict, model=None, model_options={}):CODE
LOWcomfy/model_patcher.py66def set_model_options_post_cfg_function(model_options, post_cfg_function, disable_cfg1_optimization=False):CODE
LOWcomfy/model_patcher.py72def set_model_options_pre_cfg_function(model_options, pre_cfg_function, disable_cfg1_optimization=False):CODE
LOWcomfy/model_patcher.py78def create_model_options_clone(orig_model_options: dict):CODE
LOWcomfy/model_patcher.py81def create_hook_patches_clone(orig_hook_patches, copy_tuples=False):CODE
LOWcomfy/model_patcher.py593 def set_model_sampler_cfg_function(self, sampler_cfg_function, disable_cfg1_optimization=False):CODE
LOWcomfy/model_patcher.py601 def set_model_sampler_post_cfg_function(self, post_cfg_function, disable_cfg1_optimization=False):CODE
1237 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.py901# ==============================================================================COMMENT
MEDIUMcomfy/ops.py903# ==============================================================================COMMENT
MEDIUMcomfy/quant_ops.py106# ==============================================================================COMMENT
MEDIUMcomfy/quant_ops.py108# ==============================================================================COMMENT
MEDIUMcomfy/quant_ops.py217# ==============================================================================COMMENT
MEDIUMcomfy/quant_ops.py219# ==============================================================================COMMENT
MEDIUMcomfy/quant_ops.py272# ==============================================================================COMMENT
MEDIUMcomfy/quant_ops.py274# ==============================================================================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.py1026 # ------------------------------------------------------------------COMMENT
MEDIUMcomfy/ldm/lumina/model.py1029 # ------------------------------------------------------------------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 Nesting386 hits · 356 pts
SeverityFileLineSnippetContext
LOWserver.py133CODE
LOWserver.py216CODE
LOWserver.py270CODE
LOWserver.py397CODE
LOWserver.py471CODE
LOWserver.py517CODE
LOWserver.py1063CODE
LOWserver.py474CODE
LOWcuda_malloc.py54CODE
LOWexecution.py157CODE
LOWexecution.py241CODE
LOWexecution.py320CODE
LOWexecution.py349CODE
LOWexecution.py436CODE
LOWexecution.py839CODE
LOWexecution.py1121CODE
LOWexecution.py255CODE
LOWexecution.py711CODE
LOWexecution.py727CODE
LOWexecution.py1344CODE
LOWexecution.py1357CODE
LOWlatent_preview.py78CODE
LOWnode_helpers.py9CODE
LOWnodes.py2227CODE
LOWnodes.py2323CODE
LOWnodes.py636CODE
LOWnodes.py759CODE
LOWnodes.py780CODE
LOWnodes.py1676CODE
LOWnodes.py2005CODE
LOWmain.py163CODE
LOWmain.py284CODE
LOWmain.py316CODE
LOWmain.py460CODE
LOWcomfy/conds.py7CODE
LOWcomfy/context_windows.py113CODE
LOWcomfy/context_windows.py475CODE
LOWcomfy/context_windows.py572CODE
LOWcomfy/clip_vision.py111CODE
LOWcomfy/memory_management.py18CODE
LOWcomfy/model_prefetch.py34CODE
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.py731CODE
LOWcomfy/controlnet.py964CODE
LOWcomfy/controlnet.py190CODE
LOWcomfy/controlnet.py253CODE
LOWcomfy/model_patcher.py81CODE
LOWcomfy/model_patcher.py507CODE
LOWcomfy/model_patcher.py719CODE
LOWcomfy/model_patcher.py740CODE
LOWcomfy/model_patcher.py764CODE
326 more matches not shown…
AI Structural Patterns365 hits · 332 pts
SeverityFileLineSnippetContext
LOWexecution.py153CODE
LOWnodes.py675CODE
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.py487CODE
LOWcomfy/controlnet.py393CODE
LOWcomfy/supported_models.py335CODE
LOWcomfy/supported_models.py356CODE
LOWcomfy/supported_models.py373CODE
LOWcomfy/supported_models.py401CODE
LOWcomfy/supported_models.py432CODE
LOWcomfy/supported_models.py475CODE
LOWcomfy/supported_models.py498CODE
LOWcomfy/supported_models.py563CODE
LOWcomfy/supported_models.py652CODE
LOWcomfy/supported_models.py713CODE
LOWcomfy/supported_models.py760CODE
LOWcomfy/supported_models.py789CODE
LOWcomfy/supported_models.py814CODE
LOWcomfy/supported_models.py902CODE
LOWcomfy/supported_models.py934CODE
LOWcomfy/supported_models.py954CODE
LOWcomfy/supported_models.py977CODE
LOWcomfy/supported_models.py1014CODE
LOWcomfy/supported_models.py1024CODE
LOWcomfy/supported_models.py1050CODE
LOWcomfy/supported_models.py1065CODE
LOWcomfy/supported_models.py1092CODE
LOWcomfy/supported_models.py1118CODE
LOWcomfy/supported_models.py1139CODE
LOWcomfy/supported_models.py1163CODE
LOWcomfy/supported_models.py1302CODE
LOWcomfy/supported_models.py1337CODE
LOWcomfy/supported_models.py1348CODE
LOWcomfy/supported_models.py1359CODE
LOWcomfy/supported_models.py1370CODE
LOWcomfy/supported_models.py1384CODE
LOWcomfy/supported_models.py1394CODE
LOWcomfy/supported_models.py1407CODE
LOWcomfy/supported_models.py1420CODE
LOWcomfy/supported_models.py1433CODE
LOWcomfy/supported_models.py1443CODE
LOWcomfy/supported_models.py1453CODE
LOWcomfy/supported_models.py1464CODE
LOWcomfy/supported_models.py1479CODE
LOWcomfy/supported_models.py1531CODE
LOWcomfy/supported_models.py1545CODE
LOWcomfy/supported_models.py1603CODE
LOWcomfy/supported_models.py1681CODE
LOWcomfy/supported_models.py1717CODE
LOWcomfy/supported_models.py1758CODE
LOWcomfy/supported_models.py1790CODE
LOWcomfy/supported_models.py1811CODE
LOWcomfy/supported_models.py1849CODE
LOWcomfy/supported_models.py1878CODE
LOWcomfy/supported_models.py1907CODE
305 more matches not shown…
Over-Commented Block455 hits · 251 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/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
LOWcomfy/text_encoders/hydit_clip_tokenizer/vocab.txt14021##倭COMMENT
395 more matches not shown…
Unused Imports270 hits · 220 pts
SeverityFileLineSnippetContext
LOWcomfy/context_windows.py1CODE
LOWcomfy/hooks.py1CODE
LOWcomfy/controlnet.py18CODE
LOWcomfy/model_patcher.py19CODE
LOWcomfy/model_base.py85CODE
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.py138CODE
LOWcomfy/model_management.py145CODE
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
210 more matches not shown…
Excessive Try-Catch Wrapping168 hits · 174 pts
SeverityFileLineSnippetContext
MEDIUMserver.py1151def post_interrupt(request):CODE
LOWserver.py322 except Exception as e:CODE
LOWserver.py457 except Exception:CODE
LOWserver.py798 except Exception:CODE
LOWserver.py1244 except Exception as exc:CODE
LOWserver.py1453 except Exception:CODE
LOWexecution.py94 except Exception as e:CODE
LOWexecution.py459 except Exception as ex:CODE
LOWexecution.py626 except Exception as ex:CODE
LOWexecution.py721 except Exception as e:CODE
LOWexecution.py955 except Exception as ex:CODE
LOWexecution.py997 except Exception as ex:CODE
LOWexecution.py1180 except Exception as ex:CODE
LOWnodes.py2267 except Exception as e:CODE
LOWnodes.py2312 except Exception as e:CODE
LOWnodes.py2318 except Exception as e:CODE
LOWmain.py174 except Exception as e:CODE
LOWmain.py467 except Exception as e:CODE
MEDIUMmain.py460def setup_database():CODE
LOWcomfy/conds.py21 except Exception:CODE
LOWcomfy/sd1_clip.py458 except Exception:CODE
LOWcomfy/model_patcher.py2025 except Exception as e:CODE
LOWcomfy/model_patcher.py1225 except Exception as e:CODE
LOWcomfy/deploy_environment.py31 except Exception as e:CODE
LOWcomfy/ops.py867 except Exception as e:CODE
LOWcomfy/model_detection.py551 except Exception:CODE
LOWcomfy/utils.py142 except Exception as e:CODE
LOWcomfy/sd.py1126 except Exception as e:CODE
LOWcomfy/sd.py1221 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.py533 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.py415 except Exception as e:CODE
LOWcomfy/ldm/modules/attention.py597 except Exception as e:CODE
LOWcomfy/ldm/modules/attention.py684 except Exception as e:CODE
LOWcomfy/ldm/modules/attention.py759 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.py172 except Exception as e:CODE
LOWapp/assets/scanner.py209 except Exception as e:CODE
LOWapp/assets/scanner.py216 except Exception as e:CODE
LOWapp/assets/scanner.py249 except Exception as e:CODE
108 more matches not shown…
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.py300 # 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.py552 # Create a video streamCOMMENT
MEDIUMcomfy_api/latest/_input_impl/video_types.py559 # 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
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
Hallucination Indicators9 hits · 100 pts
SeverityFileLineSnippetContext
CRITICALcomfy/sd.py664 self.first_stage_model = comfy.ldm.genmo.vae.model.VideoVAE()CODE
CRITICALcomfy/sd.py686 self.first_stage_model = comfy.ldm.lightricks.vae.causal_video_autoencoder.VideoVAE(version=version, conCODE
CRITICALcomfy/sd.py808 self.first_stage_model = comfy.ldm.ace.vae.music_dcae_pipeline.MusicDCAE(source_sample_rate=44100)CODE
CRITICALcomfy/sd.py839 self.first_stage_model = comfy.ldm.mmaudio.vae.autoencoder.AudioAutoencoder(mode=mode)CODE
CRITICALcomfy/sd.py881 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
Docstring Block Structure17 hits · 85 pts
SeverityFileLineSnippetContext
HIGHfolder_paths.py159 Get the path to a System User directory. System User directories (prefixed with '__') are only accessible via STRING
HIGHnodes.py2206 Returns the module name based on the given module path. Examples: get_module_name("C:/Users/username/CoSTRING
HIGHcomfy/ldm/cosmos/predict2.py752 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.py59Validates 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_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
Cross-Language Confusion7 hits · 52 pts
SeverityFileLineSnippetContext
HIGHcomfy_api_nodes/nodes_tripo.py843 $face := (widgets.face_limit != null) ? widgets.face_limit : -1;CODE
HIGHcomfy_api_nodes/nodes_tripo.py844 $texSize := (widgets.texture_size != null) ? widgets.texture_size : 4096;CODE
HIGHcomfy_api_nodes/nodes_tripo.py845 $flatThresh := (widgets.flatten_bottom_threshold != null) ? widgets.flatten_bottom_threshold : 0;CODE
HIGHcomfy_api_nodes/nodes_tripo.py846 $scale := (widgets.scale_factor != null) ? widgets.scale_factor : 1;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
Modern Structural Boilerplate37 hits · 40 pts
SeverityFileLineSnippetContext
LOWfolder_paths.py120def set_output_directory(output_dir: str) -> None:CODE
LOWfolder_paths.py124def set_temp_directory(temp_dir: str) -> None:CODE
LOWfolder_paths.py128def set_input_directory(input_dir: str) -> None:CODE
LOWfolder_paths.py147def set_user_directory(user_dir: str) -> None:CODE
LOWcomfy/deploy_environment.py5logger = logging.getLogger(__name__)CODE
LOWcomfy/quant_ops.py276__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/lightricks/model.py18logger = logging.getLogger(__name__)CODE
LOWblueprints/.glsl/update_blueprints.py23logger = logging.getLogger(__name__)CODE
LOWapp/assets/database/queries/__init__.py72__all__ = [CODE
LOWapp/assets/services/image_dimensions.py12logger = logging.getLogger(__name__)CODE
LOWapp/assets/services/__init__.py53__all__ = [CODE
LOWcomfy_api_nodes/nodes_sonilo.py26logger = logging.getLogger(__name__)CODE
LOWcomfy_api_nodes/nodes_bytedance.py112logger = logging.getLogger(__name__)CODE
LOWcomfy_api_nodes/util/request_logger.py11logger = logging.getLogger(__name__)CODE
LOWcomfy_api_nodes/util/__init__.py63__all__ = [CODE
LOWcomfy_extras/nodes_glsl.py16logger = logging.getLogger(__name__)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.py473__all__ = [CODE
LOWcomfy_api/latest/_io.py2330__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 Comments30 hits · 40 pts
SeverityFileLineSnippetContext
LOWserver.py301 # Check if first message is feature flagsCOMMENT
LOWserver.py1157 # Check if a specific prompt_id was provided for targeted interruptionCOMMENT
LOWserver.py1162 # 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.py141 # 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.py360 # Check if width exceeds standard bounds (for ultra-wide e.g., 21:9 ARs)COMMENT
LOWcomfy_api_nodes/nodes_topaz.py368 # Check if height exceeds standard boundsCOMMENT
LOWcomfy_api_nodes/nodes_topaz.py680 # Check if width exceeds standard bounds (for ultra-wide e.g., 21:9 ARs)STRING
LOWcomfy_api_nodes/nodes_topaz.py688 # Check if height exceeds standard boundsSTRING
LOWcomfy_api_nodes/nodes_veo2.py240 # Check if video is provided as base64 or URLCOMMENT
LOWcomfy_api_nodes/nodes_hitpaw.py140 # Check if we can downscale input by at most 2x to fitSTRING
LOWcomfy_api_nodes/nodes_ideogram.py297 # Check if both image and mask are provided for editing modeSTRING
LOWcomfy_extras/nodes_wan.py508 # 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 Vocabulary14 hits · 24 pts
SeverityFileLineSnippetContext
LOWexecution.py273 # if is just a class, then assign no state, just create cloneCOMMENT
MEDIUM.spectral.yaml70 # Custom rules: best practicesCOMMENT
MEDIUMnodes.py427 #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.py1131 #So we just set a flag for tiler fallback so that tensor gc can happen once theCOMMENT
LOWcomfy/sd.py1226 #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
LOWcomfy_extras/nodes_video.py222 # Instead of hashing the file, we can just use the modification time to avoidCOMMENT
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 Indicators5 hits · 10 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_api/internal/async_to_sync.py294 # we need to check if it needs a sync wrapperCOMMENT
Structural Annotation Overuse4 hits · 8 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
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