Repository Analysis

oobabooga/textgen

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

16.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of oobabooga/textgen, a Python project with 47,446 GitHub stars. SynthScan v2.0 examined 51,636 lines of code across 230 source files, recording 555 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 16.3 places this repository in the Moderate 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).

16.3
Adjusted Score
16.3
Raw Score
100%
Time Factor
2026-06-02
Last Push
47.4K
Stars
Python
Language
51.6K
Lines of Code
230
Files
555
Pattern Hits
2026-07-14
Scan Date
0.21
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 0HIGH 48MEDIUM 44LOW 463

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

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

Cross-File 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
LOWdownload-model.py205 def initialize_progress_bar_slots(self, num_threads):CODE
LOWdownload-model.py208 def get_progress_bar_position(self):CODE
LOWdownload-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
LOWextensions/perplexity_colors/script.py449 def update_color_by_ppl_check(x):STRING
LOWextensions/perplexity_colors/script.py452 def update_color_by_prob_check(x):STRING
LOWextensions/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
LOWextensions/superboogav2/script.py50def _feed_data_into_collector(corpus):CODE
LOWextensions/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
LOWmodules/image_utils.py96def convert_image_attachments_to_pil(image_attachments: List[dict]) -> List[Image.Image]:CODE
LOWmodules/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
LOWextensions/superboogav2/script.py65 except Exception:CODE
LOWextensions/superboogav2/script.py72 except Exception:CODE
LOWextensions/superboogav2/script.py82 except Exception:CODE
LOWextensions/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
LOWmodules/exllamav3.py560 except Exception as e:CODE
LOWmodules/exllamav3.py566 except Exception as e:CODE
LOWmodules/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
LOWmodules/image_utils.py86 except Exception as e:CODE
LOWmodules/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…
Deep Nesting111 hits · 102 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
LOWextensions/superboogav2/data_preprocessor.py41 # Check if token is a wordCOMMENT
LOWextensions/superboogav2/data_preprocessor.py43 # Check if token is not an abbreviation or constantCOMMENT
LOWextensions/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
HIGHone_click.py327 "git init -b main && git remote add origin https://github.com/oobabooga/textgen && "CODE
HIGHone_click.py328 "git fetch && git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main && "CODE
HIGHone_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
LOWmodules/html_generator.py30 # Step 1: Remove commentsCOMMENT
LOWmodules/html_generator.py33 # Step 2: Remove leading and trailing whitespaceCOMMENT
LOWmodules/html_generator.py36 # Step 3: Remove spaces after specific characters ({ : ; ,})COMMENT
LOWmodules/html_generator.py39 # Step 4: Remove spaces before `{`COMMENT
LOWmodules/html_generator.py42 # Step 5: Remove empty linesCOMMENT
LOWmodules/html_generator.py45 # Step 6: Collapse all lines into oneCOMMENT
Structural Annotation Overuse6 hits · 14 pts
SeverityFileLineSnippetContext
LOWmodules/html_generator.py30 # Step 1: Remove commentsCOMMENT
LOWmodules/html_generator.py33 # Step 2: Remove leading and trailing whitespaceCOMMENT
LOWmodules/html_generator.py36 # Step 3: Remove spaces after specific characters ({ : ; ,})COMMENT
LOWmodules/html_generator.py39 # Step 4: Remove spaces before `{`COMMENT
LOWmodules/html_generator.py42 # Step 5: Remove empty linesCOMMENT
LOWmodules/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