AI Slop Code RIsk Monitor

oobabooga/textgen

Open-source desktop app for local LLMs. Text, vision, tool-calling, OpenAI/Anthropic-compatible API. 100% private.

18.6 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for oobabooga/textgen, a Python project with 47,726 GitHub stars. SynthScan examined 51,623 lines of code across 230 source files, recording 580 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 18.6 (Elevated pattern signal); it is not an authorship estimate.

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

18.6
Adjusted Signal
18.6
Raw Pattern Score
100%
Time Factor
2026-08-17
Last Push
47.7K
Stars
Python
Language
51.6K
Lines of Code
230
Files
580
Pattern Hits
2026-10-12
Scan Date
0.32
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 32.0/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 5.9/100 · LOW

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

Agent Over-Engineering Ratio 48.3/100 · MEDIUM

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

PR Review Velocity Impact 63.2/100 · HIGH

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 0HIGH 73MEDIUM 44LOW 463

Directory Score Breakdown

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

Pattern Findings

The scanner identified 580 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Cross-File Repetition42 hits · 210 pts
SeverityFileLineSnippetContext
HIGHdocs/07 - Extensions.md0manipulates the probabilities for the next token before it gets sampled. used in the logits_processor_modifier function STRING
HIGHextensions/example/script.py0manipulates the probabilities for the next token before it gets sampled. used in the logits_processor_modifier function STRING
HIGHextensions/long_replies/script.py0manipulates the probabilities for the next token before it gets sampled. used in the logits_processor_modifier function STRING
HIGHdocs/07 - Extensions.md0modifies the state variable, which is a dictionary containing the input values in the ui like sliders and checkboxes.STRING
HIGHextensions/example/script.py0modifies the state variable, which is a dictionary containing the input values in the ui like sliders and checkboxes.STRING
HIGHextensions/long_replies/script.py0modifies the state variable, which is a dictionary containing the input values in the ui like sliders and checkboxes.STRING
HIGHdocs/07 - Extensions.md0modifies the user input string in chat mode (visible_text). you can also modify the internal representation of the user STRING
HIGHextensions/example/script.py0modifies the user input string in chat mode (visible_text). you can also modify the internal representation of the user STRING
HIGHextensions/long_replies/script.py0modifies the user input string in chat mode (visible_text). you can also modify the internal representation of the user STRING
HIGHdocs/07 - Extensions.md0in default/notebook modes, modifies the whole prompt. in chat mode, it is the same as chat_input_modifier but only appliSTRING
HIGHextensions/example/script.py0in default/notebook modes, modifies the whole prompt. in chat mode, it is the same as chat_input_modifier but only appliSTRING
HIGHextensions/long_replies/script.py0in default/notebook modes, modifies the whole prompt. in chat mode, it is the same as chat_input_modifier but only appliSTRING
HIGHdocs/07 - Extensions.md0modifies the prefix for the next bot reply in chat mode. by default, the prefix will be something like "bot name:".STRING
HIGHextensions/example/script.py0modifies the prefix for the next bot reply in chat mode. by default, the prefix will be something like "bot name:".STRING
HIGHextensions/long_replies/script.py0modifies the prefix for the next bot reply in chat mode. by default, the prefix will be something like "bot name:".STRING
HIGHdocs/07 - Extensions.md0adds logits processors to the list, allowing you to access and modify the next token probabilities. only used by loadersSTRING
HIGHextensions/example/script.py0adds logits processors to the list, allowing you to access and modify the next token probabilities. only used by loadersSTRING
HIGHextensions/long_replies/script.py0adds logits processors to the list, allowing you to access and modify the next token probabilities. only used by loadersSTRING
HIGHdocs/07 - Extensions.md0modifies the llm output before it gets presented. in chat mode, the modified version goes into history['visible'], and tSTRING
HIGHextensions/example/script.py0modifies the llm output before it gets presented. in chat mode, the modified version goes into history['visible'], and tSTRING
HIGHextensions/long_replies/script.py0modifies the llm output before it gets presented. in chat mode, the modified version goes into history['visible'], and tSTRING
HIGHdocs/07 - Extensions.md0replaces the function that generates the prompt from the chat history. only used in chat mode.STRING
HIGHextensions/example/script.py0replaces the function that generates the prompt from the chat history. only used in chat mode.STRING
HIGHextensions/long_replies/script.py0replaces the function that generates the prompt from the chat history. only used in chat mode.STRING
HIGHdocs/07 - Extensions.md0returns a css string that gets appended to the css for the webui.STRING
HIGHextensions/example/script.py0returns a css string that gets appended to the css for the webui.STRING
HIGHextensions/long_replies/script.py0returns a css string that gets appended to the css for the webui.STRING
HIGHdocs/07 - Extensions.md0returns a javascript string that gets appended to the javascript for the webui.STRING
HIGHextensions/example/script.py0returns a javascript string that gets appended to the javascript for the webui.STRING
HIGHextensions/long_replies/script.py0returns a javascript string that gets appended to the javascript for the webui.STRING
HIGHdocs/07 - Extensions.md0gets executed only once, when the extension is imported.STRING
HIGHextensions/example/script.py0gets executed only once, when the extension is imported.STRING
HIGHextensions/long_replies/script.py0gets executed only once, when the extension is imported.STRING
HIGHdocs/07 - Extensions.md0gets executed when the ui is drawn. custom gradio elements and their corresponding event handlers should be defined hereSTRING
HIGHextensions/example/script.py0gets executed when the ui is drawn. custom gradio elements and their corresponding event handlers should be defined hereSTRING
HIGHextensions/long_replies/script.py0gets executed when the ui is drawn. custom gradio elements and their corresponding event handlers should be defined hereSTRING
HIGHextensions/sd_api_pictures/script.py0this function is applied to your text inputs before they are fed into the model.STRING
HIGHextensions/character_bias/script.py0this function is applied to your text inputs before they are fed into the model.STRING
HIGHextensions/google_translate/script.py0this function is applied to your text inputs before they are fed into the model.STRING
HIGHextensions/sd_api_pictures/script.py0this function is only applied in chat mode. it modifies the prefix text for the bot and can be used to bias its behaviorSTRING
HIGHextensions/character_bias/script.py0this function is only applied in chat mode. it modifies the prefix text for the bot and can be used to bias its behaviorSTRING
HIGHextensions/google_translate/script.py0this function is only applied in chat mode. it modifies the prefix text for the bot and can be used to bias its behaviorSTRING
Hyper-Verbose Identifiers177 hits · 176 pts
SeverityFileLineSnippetContext
LOWdownload-model.py59 def sanitize_model_and_branch_names(self, model, branch):CODE
LOWdownload-model.py79 def get_download_links_from_huggingface(self, model, branch, text_only=False, specific_file=None, exclude_pattern=NoCODE
LOW⚡download-model.py205 def initialize_progress_bar_slots(self, num_threads):CODE
LOW⚡download-model.py208 def get_progress_bar_position(self):CODE
LOW⚡download-model.py217 def release_progress_bar_position(self, slot):CODE
LOWone_click.py111def get_pytorch_install_command(gpu_choice):CODE
LOWone_click.py129def get_pytorch_update_command(gpu_choice):CODE
LOWone_click.py237def generate_alphabetic_sequence(index):CODE
LOWone_click.py265def update_pytorch_and_python():CODE
LOWone_click.py272def clean_outdated_pytorch_cuda_dependencies():CODE
LOWone_click.py476def install_extensions_requirements():CODE
LOWjs/main.js58function isFocusedOnEditableTextbox(event) {CODE
LOWjs/main.js694function handleIndividualSidebarClose(event) {CODE
LOWjs/main.js799function navigateLastAssistantMessage(direction) {CODE
LOWjs/morphdom/morphdom-umd.min.js1(function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?module.exports=factory():typeof define=CODE
LOWdocs/07 - Extensions.md54| `def custom_generate_chat_prompt(...)` | Overrides the prompt generator in chat mode. |CODE
LOWdocs/07 - Extensions.md195def logits_processor_modifier(processor_list, input_ids):CODE
LOWdocs/07 - Extensions.md213def custom_generate_chat_prompt(user_input, state, **kwargs):CODE
LOWextensions/example/script.py86def logits_processor_modifier(processor_list, input_ids):CODE
LOWextensions/example/script.py104def custom_generate_chat_prompt(user_input, state, **kwargs):CODE
LOWextensions/silero_tts/tts_preprocessor.py162def replace_lowercase_abbreviations(string):CODE
LOWextensions/perplexity_colors/script.py92def logits_processor_modifier(logits_processor_list, input_ids):CODE
LOWextensions/perplexity_colors/script.py234def probability_perplexity_color_scale(prob, max_prob, ppl):CODE
LOWextensions/perplexity_colors/script.py436def convert_to_markdown_wrapped(string, use_cache=True):STRING
LOW⚡extensions/perplexity_colors/script.py449 def update_color_by_ppl_check(x):STRING
LOW⚡extensions/perplexity_colors/script.py452 def update_color_by_prob_check(x):STRING
LOW⚡extensions/perplexity_colors/script.py455 def update_prob_dropdown_check(x):STRING
LOWextensions/superboogav2/chat_handler.py102def custom_generate_chat_prompt_internal(user_input: str, state: dict, collector: ChromaCollector, **kwargs):CODE
LOWextensions/superboogav2/data_processor.py17def preprocess_text_no_summary(text) -> str:CODE
LOWextensions/superboogav2/data_processor.py56def _create_chunks_with_context(corpus, chunk_len, context_left, context_right):CODE
LOWextensions/superboogav2/data_processor.py142def process_and_add_to_collector(corpus: str, collector: ChromaCollector, clear_collector_before_adding: bool, metadata:CODE
LOWextensions/superboogav2/chromadb.py142 def _split_texts_by_cache_hit(self, texts: list[str], new_ids: list[str], metadatas: list[dict]):CODE
LOWextensions/superboogav2/chromadb.py173 def _find_min_max_start_index(self):CODE
LOWextensions/superboogav2/chromadb.py187 def _apply_sigmoid_time_weighing(self, infos: list[Info], document_len: int, time_steepness: float, time_power: floaCODE
LOWextensions/superboogav2/chromadb.py205 def _filter_outliers_by_median_distance(self, infos: list[Info], significant_level: float):CODE
LOWextensions/superboogav2/chromadb.py242 def _get_documents_ids_distances(self, search_strings: list[str], n_results: int):CODE
LOWextensions/superboogav2/chromadb.py289 def _get_documents_up_to_token_count(self, documents: list[str], max_token_count: int):CODE
LOWextensions/superboogav2/parameters.py83def get_num_conversion_strategy() -> str:CODE
LOWextensions/superboogav2/parameters.py95def should_remove_punctuation() -> bool:CODE
LOWextensions/superboogav2/parameters.py103def should_remove_specific_pos() -> bool:CODE
LOWextensions/superboogav2/parameters.py123def set_num_conversion_strategy(value: str):CODE
LOW⚡extensions/superboogav2/script.py50def _feed_data_into_collector(corpus):CODE
LOW⚡extensions/superboogav2/script.py56def _feed_file_into_collector(files):CODE
LOWextensions/superboogav2/script.py195def _get_optimizable_settings() -> list:CODE
LOWextensions/superboogav2/script.py288def custom_generate_chat_prompt(user_input, state, **kwargs):CODE
LOWextensions/superbooga/chromadb.py31 def get_documents_ids_distances(self, search_strings: list[str], n_results: int):CODE
LOWextensions/superbooga/chromadb.py58 def apply_time_weight_to_distances(self, ids: list[int], distances: list[float], time_weight: float = 1.0) -> list[fCODE
LOWextensions/superbooga/script.py96def custom_generate_chat_prompt(user_input, state, **kwargs):CODE
LOWextensions/long_replies/script.py88def logits_processor_modifier(processor_list, input_ids):CODE
LOWextensions/long_replies/script.py106def custom_generate_chat_prompt(user_input, state, **kwargs):CODE
LOWmodules/llama_cpp_server.py157 def _process_images_for_generation(self, state: dict) -> List[Any]:CODE
LOWmodules/llama_cpp_server.py329 def get_prompt_logprob_entries(self, token_ids, n_probs=5, prompt=""):CODE
LOWmodules/llama_cpp_server.py634def filter_stderr_with_progress(process_stderr):CODE
LOWmodules/exllamav3_hf.py117 def prepare_inputs_for_generation(self, input_ids, **kwargs):CODE
LOWmodules/exllamav3.py256 def _process_images_for_generation(self, prompt: str, state: dict) -> Tuple[str, List[Any]]:CODE
LOW⚡modules/image_utils.py96def convert_image_attachments_to_pil(image_attachments: List[dict]) -> List[Image.Image]:CODE
LOW⚡modules/image_utils.py111def convert_openai_messages_to_images(messages: List[dict]) -> List[Image.Image]:CODE
LOWmodules/ui_chat.py153def create_character_settings_ui():CODE
LOWmodules/models.py15def load_model_if_idle_unloaded():CODE
LOWmodules/presets.py107def neutralize_samplers_for_ui(state):CODE
117 more matches not shown…
Excessive Try-Catch Wrapping126 hits · 161 pts
SeverityFileLineSnippetContext
MEDIUMdownload-model.py308 print(f"Error downloading {filename}: {e}.")CODE
MEDIUMdownload-model.py404 print("Error: Please specify the model you'd like to download (e.g. 'python download-model.py facebook/opt-1.3b'CODE
MEDIUMdownload-model.py432 print(f"Error: {err_branch}")CODE
LOWserver.py43 except Exception:CODE
LOWone_click.py69 except Exception:CODE
LOWextensions/sd_api_pictures/script.py267 except Exception:CODE
LOWextensions/sd_api_pictures/script.py287 except Exception:CODE
LOWextensions/sd_api_pictures/script.py301 except Exception:CODE
LOWextensions/sd_api_pictures/script.py310 except Exception:CODE
MEDIUMextensions/sd_api_pictures/script.py305def get_samplers():CODE
LOWextensions/superboogav2/api.py138 except Exception as e:CODE
LOWextensions/superboogav2/api.py152 except Exception as e:CODE
MEDIUMextensions/superboogav2/api.py88def do_POST(self):CODE
MEDIUMextensions/superboogav2/api.py141def do_DELETE(self):CODE
LOWextensions/superboogav2/download_urls.py36 except Exception:CODE
MEDIUMextensions/superboogav2/script.py61def read_binary_file(file_path):CODE
MEDIUMextensions/superboogav2/script.py69def extract_with_utf8(text):CODE
MEDIUMextensions/superboogav2/script.py75def extract_with_fitz(file_content):CODE
MEDIUMextensions/superboogav2/script.py85def extract_with_docx(file_path):CODE
MEDIUMextensions/superboogav2/script.py94def extract_with_pptx(file_path):CODE
MEDIUMextensions/superboogav2/script.py134def extract_with_pandas(file_path):CODE
LOW⚡extensions/superboogav2/script.py65 except Exception:CODE
LOW⚡extensions/superboogav2/script.py72 except Exception:CODE
LOW⚡extensions/superboogav2/script.py82 except Exception:CODE
LOW⚡extensions/superboogav2/script.py91 except Exception:CODE
LOWextensions/superboogav2/script.py102 except Exception:CODE
LOWextensions/superboogav2/script.py130 except Exception as e:CODE
LOWextensions/superboogav2/script.py140 except Exception:CODE
LOWextensions/superboogav2/script.py284 except Exception as e:CODE
LOWextensions/superbooga/download_urls.py32 except Exception:CODE
LOWuser_data/tools/calculate.py51 except Exception as e:CODE
LOWmodules/llama_cpp_server.py598 except Exception:CODE
LOWmodules/llama_cpp_server.py688 except Exception:CODE
LOWmodules/llama_cpp_server.py696 except Exception:CODE
LOWmodules/exllamav3_hf.py22except Exception:CODE
LOWmodules/exllamav3.py35except Exception:CODE
LOWmodules/exllamav3.py81 except Exception:CODE
LOWmodules/exllamav3.py196 except Exception as e:CODE
LOWmodules/exllamav3.py303 except Exception as e:CODE
LOW⚡modules/exllamav3.py560 except Exception as e:CODE
LOW⚡modules/exllamav3.py566 except Exception as e:CODE
LOW⚡modules/exllamav3.py572 except Exception as e:CODE
LOWmodules/image_models.py159 except Exception as e:CODE
LOWmodules/image_utils.py21 except Exception as e:CODE
LOWmodules/image_utils.py44 except Exception as e:CODE
LOWmodules/image_utils.py74 except Exception as e:CODE
LOW⚡modules/image_utils.py86 except Exception as e:CODE
LOW⚡modules/image_utils.py106 except Exception as e:CODE
LOWmodules/models.py101 except Exception as e:CODE
LOWmodules/ui.py370 except Exception:CODE
LOWmodules/ui.py415 except Exception as e:CODE
LOWmodules/tool_use.py41 except Exception:CODE
LOWmodules/tool_use.py105 except Exception:CODE
LOWmodules/tool_use.py264 except Exception as e:CODE
LOWmodules/prompts.py38 except Exception:CODE
MEDIUMmodules/prompts.py34def count_tokens(text):CODE
LOWmodules/extensions.py75 except Exception:CODE
MEDIUMmodules/chat.py2062def load_history_json(file, history):CODE
LOWmodules/chat.py785 except Exception as e:CODE
LOWmodules/chat.py1003 except Exception as e:CODE
66 more matches not shown…
Empty Error Handlers25 hits · 125 pts
SeverityFileLineSnippetContext
HIGHserver.py43except Exception:CODE
HIGHextensions/sd_api_pictures/script.py301except Exception:CODE
HIGHextensions/superboogav2/download_urls.py36except Exception:CODE
HIGHextensions/superbooga/download_urls.py32except Exception:CODE
HIGHmodules/llama_cpp_server.py691except (ValueError, IOError):CODE
HIGHmodules/llama_cpp_server.py696except Exception:CODE
HIGHmodules/llama_cpp_server.py598except Exception:CODE
HIGHmodules/ui.py370except Exception:CODE
HIGHmodules/chat.py2009except Exception:CODE
HIGHmodules/chat.py210except (json.JSONDecodeError, ValueError):CODE
HIGHmodules/metadata_gguf.py56except Exception:CODE
HIGHmodules/utils.py374except Exception:CODE
HIGHmodules/callbacks.py38except StopNowException:CODE
HIGHmodules/tool_parsing.py201except json.JSONDecodeError:CODE
HIGHmodules/tool_parsing.py236except json.JSONDecodeError:CODE
HIGHmodules/tool_parsing.py303except json.JSONDecodeError:CODE
HIGHmodules/tool_parsing.py368except json.JSONDecodeError:CODE
HIGHmodules/tool_parsing.py481except (json.JSONDecodeError, ValueError):CODE
HIGHmodules/tool_parsing.py171except json.JSONDecodeError:CODE
HIGHmodules/tool_parsing.py267except (json.JSONDecodeError, ValueError):CODE
HIGHmodules/tool_parsing.py402except (json.JSONDecodeError, ValueError):CODE
HIGHmodules/tool_parsing.py724except json.JSONDecodeError:CODE
HIGHmodules/tool_parsing.py334except (json.JSONDecodeError, ValueError):CODE
HIGHmodules/tool_parsing.py529except (json.JSONDecodeError, ValueError):CODE
HIGHmodules/ui_image_generation.py891except queue.Empty:CODE
Deep Nesting111 hits · 99 pts
SeverityFileLineSnippetContext
LOWdownload-model.py79CODE
LOWdownload-model.py221CODE
LOWone_click.py111CODE
LOWone_click.py129CODE
LOWone_click.py147CODE
LOWone_click.py323CODE
LOWextensions/sd_api_pictures/script.py46CODE
LOWextensions/sd_api_pictures/script.py316CODE
LOWextensions/gallery/script.py72CODE
LOWextensions/perplexity_colors/script.py108CODE
LOWextensions/superboogav2/optimize.py40CODE
LOWextensions/superboogav2/chat_handler.py102CODE
LOWextensions/superboogav2/data_processor.py17CODE
LOWextensions/superboogav2/data_processor.py142CODE
LOWextensions/superboogav2/benchmark.py19CODE
LOWextensions/superboogav2/chromadb.py27CODE
LOWextensions/superboogav2/api.py88CODE
LOWextensions/superboogav2/script.py56CODE
LOWextensions/superboogav2/script.py228CODE
LOWextensions/superboogav2/script.py296CODE
LOWextensions/superboogav2/script.py105CODE
LOWextensions/superbooga/script.py96CODE
LOWmodules/llama_cpp_server.py634CODE
LOWmodules/llama_cpp_server.py700CODE
LOWmodules/llama_cpp_server.py73CODE
LOWmodules/llama_cpp_server.py178CODE
LOWmodules/llama_cpp_server.py415CODE
LOWmodules/exllamav3_hf.py124CODE
LOWmodules/exllamav3.py72CODE
LOWmodules/exllamav3.py307CODE
LOWmodules/image_models.py80CODE
LOWmodules/image_utils.py49CODE
LOWmodules/image_utils.py96CODE
LOWmodules/ui_chat.py17CODE
LOWmodules/ui_chat.py153CODE
LOWmodules/ui_chat.py212CODE
LOWmodules/models.py163CODE
LOWmodules/ui.py317CODE
LOWmodules/ui_default.py19CODE
LOWmodules/html_generator.py242CODE
LOWmodules/html_generator.py529CODE
LOWmodules/html_generator.py262CODE
LOWmodules/sane_markdown_lists.py201CODE
LOWmodules/sane_markdown_lists.py245CODE
LOWmodules/sane_markdown_lists.py277CODE
LOWmodules/shared.py432CODE
LOWmodules/ui_parameters.py9CODE
LOWmodules/extensions.py27CODE
LOWmodules/extensions.py87CODE
LOWmodules/chat.py193CODE
LOWmodules/chat.py236CODE
LOWmodules/chat.py282CODE
LOWmodules/chat.py333CODE
LOWmodules/chat.py351CODE
LOWmodules/chat.py827CODE
LOWmodules/chat.py928CODE
LOWmodules/chat.py1024CODE
LOWmodules/chat.py1071CODE
LOWmodules/chat.py1108CODE
LOWmodules/chat.py1403CODE
51 more matches not shown…
Redundant / Tautological Comments27 hits · 41 pts
SeverityFileLineSnippetContext
LOWone_click.py204 # Set executable to None for Windows, bash for everything elseCOMMENT
LOWone_click.py539 # Check if a model has been downloaded yetCOMMENT
LOWextensions/superboogav2/optimize.py58# Check if the parameter is for optimization.COMMENT
LOWextensions/superboogav2/chat_handler.py117 # Check if the strategy is to modify the last message. If so, prepend or append to the user query.COMMENT
LOWextensions/superboogav2/benchmark.py36 # Check if the file existsCOMMENT
LOWextensions/superboogav2/benchmark.py38 # Open the file and read its contentCOMMENT
LOWextensions/superboogav2/chromadb.py69 # Check if s1 and s2 are adjacent or overlappingCOMMENT
LOW⚡extensions/superboogav2/data_preprocessor.py41 # Check if token is a wordCOMMENT
LOW⚡extensions/superboogav2/data_preprocessor.py43 # Check if token is not an abbreviation or constantCOMMENT
LOW⚡extensions/superboogav2/data_preprocessor.py53 # Check if token is a number of length `min_len` or moreCOMMENT
LOWextensions/superboogav2/data_preprocessor.py65 # Check if token is a number of length `min_len` or moreCOMMENT
LOWextensions/superboogav2/data_preprocessor.py80 # Check if token is a number of length `min_len` or moreCOMMENT
LOWextensions/superboogav2/data_preprocessor.py121 # Check if token is a wordCOMMENT
LOWmodules/llama_cpp_server.py251 # Check if the line starts with "data: " and remove itCOMMENT
LOWmodules/llama_cpp_server.py589 # Check if process is still aliveCOMMENT
LOWmodules/html_generator.py227 # Check if thinking is complete or still in progressSTRING
LOWmodules/sane_markdown_lists.py176 # Check if a custom start integer is setCOMMENT
LOWmodules/sane_markdown_lists.py181 # Loop through items in block, recursively parsing each with theCOMMENT
LOWmodules/sane_markdown_lists.py304 # Check if paragraph contains a listCOMMENT
LOWmodules/chat.py548 # Check if we have attachmentsCOMMENT
LOWmodules/chat.py1204 # Check if the current row has version metadata to sync during streamingCOMMENT
LOWmodules/training.py239 # Check if the file already exists in the subfolderCOMMENT
LOWmodules/ui_image_generation.py221 # Check if we need to refresh cacheCOMMENT
LOWmodules/ui_image_generation.py699 # Check if LLM is loadedCOMMENT
LOWmodules/grammar/grammar_utils.py536 if not stacks: # Check if stacks is emptyCODE
LOWmodules/api/completions.py634 # Check if usage should be included in streaming chunks per OpenAI specCOMMENT
LOWmodules/api/completions.py983 # Check if usage should be included in streaming chunks per OpenAI specCOMMENT
Self-Referential Comments13 hits · 39 pts
SeverityFileLineSnippetContext
MEDIUMone_click.py13# Define the required versionsCOMMENT
MEDIUMextensions/superboogav2/optimize.py64# Create a hashable representation of the parametersCOMMENT
MEDIUMextensions/superboogav2/chromadb.py133 # Create a dictionary that maps each ID to its context and starting indexCOMMENT
MEDIUMextensions/superboogav2/utils.py8# Create the context using the prefix + data_separator + postfix from parameters.COMMENT
MEDIUMmodules/ui_default.py161 # Create the new prompt fileCOMMENT
MEDIUMmodules/html_generator.py87 # Define a list of quote pairs (opening and closing), using HTML entitiesCOMMENT
MEDIUMmodules/html_generator.py100 # Create a regex pattern that matches any of the quote pairs, including newlinesCOMMENT
MEDIUMmodules/sane_markdown_lists.py311 # Create a regular paragraphCOMMENT
MEDIUMmodules/shared.py241# Create a mapping of all argument aliases to their canonical namesCOMMENT
MEDIUMmodules/extensions.py216 # Creating the extension ui elementsCOMMENT
MEDIUMmodules/chat.py2454 # Create a default user if none existCOMMENT
MEDIUMmodules/ui_notebook.py196 # Create the new prompt fileCOMMENT
MEDIUMmodules/training.py235 # Create the new subfolderCOMMENT
Cross-Language Confusion6 hits · 38 pts
SeverityFileLineSnippetContext
HIGH⚡one_click.py327 "git init -b main && git remote add origin https://github.com/oobabooga/textgen && "CODE
HIGH⚡one_click.py328 "git fetch && git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main && "CODE
HIGH⚡one_click.py329 "git reset --hard origin/main && git branch --set-upstream-to=origin/main",CODE
HIGHextensions/perplexity_colors/script.py353 if (name != null && name.includes("opt_")) {CODE
HIGHextensions/perplexity_colors/script.py371 if (msg_part_name != null) {CODE
HIGHextensions/perplexity_colors/script.py374 if (current_token_index == token_index && current_message_pos == msg_pos) {CODE
Unused Imports24 hits · 24 pts
SeverityFileLineSnippetContext
LOWextensions/example/script.py10CODE
LOWextensions/example/script.py11CODE
LOWextensions/example/script.py14CODE
LOWextensions/example/script.py15CODE
LOWextensions/example/script.py15CODE
LOWextensions/example/script.py15CODE
LOWextensions/perplexity_colors/script.py1CODE
LOWextensions/perplexity_colors/script.py5CODE
LOWextensions/long_replies/script.py1CODE
LOWextensions/long_replies/script.py3CODE
LOWextensions/long_replies/script.py3CODE
LOWmodules/exllamav3_hf.py21CODE
LOWmodules/exllamav3.py34CODE
LOWmodules/ui_chat.py3CODE
LOWmodules/presets.py3CODE
LOWmodules/ui_default.py1CODE
LOWmodules/sane_markdown_lists.py19CODE
LOWmodules/prompts.py1CODE
LOWmodules/ui_parameters.py1CODE
LOWmodules/ui_notebook.py3CODE
LOWmodules/evaluate.py2CODE
LOWmodules/tensorrt_llm.py7CODE
LOWmodules/training.py10CODE
LOWmodules/api/anthropic.py4CODE
Verbosity Indicators6 hits · 14 pts
SeverityFileLineSnippetContext
LOW⚡modules/html_generator.py30 # Step 1: Remove commentsCOMMENT
LOW⚡modules/html_generator.py33 # Step 2: Remove leading and trailing whitespaceCOMMENT
LOW⚡modules/html_generator.py36 # Step 3: Remove spaces after specific characters ({ : ; ,})COMMENT
LOW⚡modules/html_generator.py39 # Step 4: Remove spaces before `{`COMMENT
LOW⚡modules/html_generator.py42 # Step 5: Remove empty linesCOMMENT
LOW⚡modules/html_generator.py45 # Step 6: Collapse all lines into oneCOMMENT
Structural Annotation Overuse6 hits · 14 pts
SeverityFileLineSnippetContext
LOW⚡modules/html_generator.py30 # Step 1: Remove commentsCOMMENT
LOW⚡modules/html_generator.py33 # Step 2: Remove leading and trailing whitespaceCOMMENT
LOW⚡modules/html_generator.py36 # Step 3: Remove spaces after specific characters ({ : ; ,})COMMENT
LOW⚡modules/html_generator.py39 # Step 4: Remove spaces before `{`COMMENT
LOW⚡modules/html_generator.py42 # Step 5: Remove empty linesCOMMENT
LOW⚡modules/html_generator.py45 # Step 6: Collapse all lines into oneCOMMENT
AI Structural Patterns6 hits · 6 pts
SeverityFileLineSnippetContext
LOWextensions/example/script.py110CODE
LOWextensions/silero_tts/tts_preprocessor.py97CODE
LOWextensions/silero_tts/tts_preprocessor.py136CODE
LOWextensions/silero_tts/tts_preprocessor.py143CODE
LOWextensions/long_replies/script.py112CODE
LOWmodules/models_settings.py548CODE
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMextensions/superboogav2/chat_handler.py87 # TODO: This is an extremely naive solution. A more robust implementation must be made.COMMENT
MEDIUMmodules/html_generator.py312 # Manual line iteration for robust structure parsingSTRING
Over-Commented Block3 hits · 3 pts
SeverityFileLineSnippetContext
LOWextensions/ngrok/script.py1# Adds ngrok ingress, to use add `--extension ngrok` to the command line optionsCOMMENT
LOWuser_data/CMD_FLAGS.txt1# Add persistent flags here to use every time you launch the web UI.COMMENT
LOWmodules/sampler_hijack.py81 normalized_entropy = entropy / max_entropyCOMMENT
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMmodules/sane_markdown_lists.py2# =======================================COMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMmodules/api/cache_embedding_model.py2# preload the embedding model, useful for Docker images to prevent re-download on config changeCOMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWjs/highlightjs/highlight.min.js317}),re=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code",CODE
LOWextensions/gallery/script.py80 image_html = "<div class='placeholder'></div>"STRING
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
LOWmodules/shared.py404 logger.warning("You are potentially exposing the web UI to the entire internet without any access password.\CODE
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWmodules/grammar/grammar_utils.py22logger = logging.getLogger(__name__)CODE