Open-source desktop app for local LLMs. Text, vision, tool-calling, OpenAI/Anthropic-compatible API. 100% private.
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/07 - Extensions.md | 0 | manipulates the probabilities for the next token before it gets sampled. used in the logits_processor_modifier function | STRING |
| HIGH | extensions/example/script.py | 0 | manipulates the probabilities for the next token before it gets sampled. used in the logits_processor_modifier function | STRING |
| HIGH | extensions/long_replies/script.py | 0 | manipulates the probabilities for the next token before it gets sampled. used in the logits_processor_modifier function | STRING |
| HIGH | docs/07 - Extensions.md | 0 | modifies the state variable, which is a dictionary containing the input values in the ui like sliders and checkboxes. | STRING |
| HIGH | extensions/example/script.py | 0 | modifies the state variable, which is a dictionary containing the input values in the ui like sliders and checkboxes. | STRING |
| HIGH | extensions/long_replies/script.py | 0 | modifies the state variable, which is a dictionary containing the input values in the ui like sliders and checkboxes. | STRING |
| HIGH | docs/07 - Extensions.md | 0 | modifies the user input string in chat mode (visible_text). you can also modify the internal representation of the user | STRING |
| HIGH | extensions/example/script.py | 0 | modifies the user input string in chat mode (visible_text). you can also modify the internal representation of the user | STRING |
| HIGH | extensions/long_replies/script.py | 0 | modifies the user input string in chat mode (visible_text). you can also modify the internal representation of the user | STRING |
| HIGH | docs/07 - Extensions.md | 0 | in default/notebook modes, modifies the whole prompt. in chat mode, it is the same as chat_input_modifier but only appli | STRING |
| HIGH | extensions/example/script.py | 0 | in default/notebook modes, modifies the whole prompt. in chat mode, it is the same as chat_input_modifier but only appli | STRING |
| HIGH | extensions/long_replies/script.py | 0 | in default/notebook modes, modifies the whole prompt. in chat mode, it is the same as chat_input_modifier but only appli | STRING |
| HIGH | docs/07 - Extensions.md | 0 | modifies the prefix for the next bot reply in chat mode. by default, the prefix will be something like "bot name:". | STRING |
| HIGH | extensions/example/script.py | 0 | modifies the prefix for the next bot reply in chat mode. by default, the prefix will be something like "bot name:". | STRING |
| HIGH | extensions/long_replies/script.py | 0 | modifies the prefix for the next bot reply in chat mode. by default, the prefix will be something like "bot name:". | STRING |
| HIGH | docs/07 - Extensions.md | 0 | adds logits processors to the list, allowing you to access and modify the next token probabilities. only used by loaders | STRING |
| HIGH | extensions/example/script.py | 0 | adds logits processors to the list, allowing you to access and modify the next token probabilities. only used by loaders | STRING |
| HIGH | extensions/long_replies/script.py | 0 | adds logits processors to the list, allowing you to access and modify the next token probabilities. only used by loaders | STRING |
| HIGH | docs/07 - Extensions.md | 0 | modifies the llm output before it gets presented. in chat mode, the modified version goes into history['visible'], and t | STRING |
| HIGH | extensions/example/script.py | 0 | modifies the llm output before it gets presented. in chat mode, the modified version goes into history['visible'], and t | STRING |
| HIGH | extensions/long_replies/script.py | 0 | modifies the llm output before it gets presented. in chat mode, the modified version goes into history['visible'], and t | STRING |
| HIGH | docs/07 - Extensions.md | 0 | replaces the function that generates the prompt from the chat history. only used in chat mode. | STRING |
| HIGH | extensions/example/script.py | 0 | replaces the function that generates the prompt from the chat history. only used in chat mode. | STRING |
| HIGH | extensions/long_replies/script.py | 0 | replaces the function that generates the prompt from the chat history. only used in chat mode. | STRING |
| HIGH | docs/07 - Extensions.md | 0 | returns a css string that gets appended to the css for the webui. | STRING |
| HIGH | extensions/example/script.py | 0 | returns a css string that gets appended to the css for the webui. | STRING |
| HIGH | extensions/long_replies/script.py | 0 | returns a css string that gets appended to the css for the webui. | STRING |
| HIGH | docs/07 - Extensions.md | 0 | returns a javascript string that gets appended to the javascript for the webui. | STRING |
| HIGH | extensions/example/script.py | 0 | returns a javascript string that gets appended to the javascript for the webui. | STRING |
| HIGH | extensions/long_replies/script.py | 0 | returns a javascript string that gets appended to the javascript for the webui. | STRING |
| HIGH | docs/07 - Extensions.md | 0 | gets executed only once, when the extension is imported. | STRING |
| HIGH | extensions/example/script.py | 0 | gets executed only once, when the extension is imported. | STRING |
| HIGH | extensions/long_replies/script.py | 0 | gets executed only once, when the extension is imported. | STRING |
| HIGH | docs/07 - Extensions.md | 0 | gets executed when the ui is drawn. custom gradio elements and their corresponding event handlers should be defined here | STRING |
| HIGH | extensions/example/script.py | 0 | gets executed when the ui is drawn. custom gradio elements and their corresponding event handlers should be defined here | STRING |
| HIGH | extensions/long_replies/script.py | 0 | gets executed when the ui is drawn. custom gradio elements and their corresponding event handlers should be defined here | STRING |
| HIGH | extensions/sd_api_pictures/script.py | 0 | this function is applied to your text inputs before they are fed into the model. | STRING |
| HIGH | extensions/character_bias/script.py | 0 | this function is applied to your text inputs before they are fed into the model. | STRING |
| HIGH | extensions/google_translate/script.py | 0 | this function is applied to your text inputs before they are fed into the model. | STRING |
| HIGH | extensions/sd_api_pictures/script.py | 0 | this function is only applied in chat mode. it modifies the prefix text for the bot and can be used to bias its behavior | STRING |
| HIGH | extensions/character_bias/script.py | 0 | this function is only applied in chat mode. it modifies the prefix text for the bot and can be used to bias its behavior | STRING |
| HIGH | extensions/google_translate/script.py | 0 | this function is only applied in chat mode. it modifies the prefix text for the bot and can be used to bias its behavior | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | download-model.py | 59 | def sanitize_model_and_branch_names(self, model, branch): | CODE |
| LOW | download-model.py | 79 | def get_download_links_from_huggingface(self, model, branch, text_only=False, specific_file=None, exclude_pattern=No | CODE |
| LOW⚡ | download-model.py | 205 | def initialize_progress_bar_slots(self, num_threads): | CODE |
| LOW⚡ | download-model.py | 208 | def get_progress_bar_position(self): | CODE |
| LOW⚡ | download-model.py | 217 | def release_progress_bar_position(self, slot): | CODE |
| LOW | one_click.py | 111 | def get_pytorch_install_command(gpu_choice): | CODE |
| LOW | one_click.py | 129 | def get_pytorch_update_command(gpu_choice): | CODE |
| LOW | one_click.py | 237 | def generate_alphabetic_sequence(index): | CODE |
| LOW | one_click.py | 265 | def update_pytorch_and_python(): | CODE |
| LOW | one_click.py | 272 | def clean_outdated_pytorch_cuda_dependencies(): | CODE |
| LOW | one_click.py | 476 | def install_extensions_requirements(): | CODE |
| LOW | js/main.js | 58 | function isFocusedOnEditableTextbox(event) { | CODE |
| LOW | js/main.js | 694 | function handleIndividualSidebarClose(event) { | CODE |
| LOW | js/main.js | 799 | function navigateLastAssistantMessage(direction) { | CODE |
| LOW | js/morphdom/morphdom-umd.min.js | 1 | (function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?module.exports=factory():typeof define= | CODE |
| LOW | docs/07 - Extensions.md | 54 | | `def custom_generate_chat_prompt(...)` | Overrides the prompt generator in chat mode. | | CODE |
| LOW | docs/07 - Extensions.md | 195 | def logits_processor_modifier(processor_list, input_ids): | CODE |
| LOW | docs/07 - Extensions.md | 213 | def custom_generate_chat_prompt(user_input, state, **kwargs): | CODE |
| LOW | extensions/example/script.py | 86 | def logits_processor_modifier(processor_list, input_ids): | CODE |
| LOW | extensions/example/script.py | 104 | def custom_generate_chat_prompt(user_input, state, **kwargs): | CODE |
| LOW | extensions/silero_tts/tts_preprocessor.py | 162 | def replace_lowercase_abbreviations(string): | CODE |
| LOW | extensions/perplexity_colors/script.py | 92 | def logits_processor_modifier(logits_processor_list, input_ids): | CODE |
| LOW | extensions/perplexity_colors/script.py | 234 | def probability_perplexity_color_scale(prob, max_prob, ppl): | CODE |
| LOW | extensions/perplexity_colors/script.py | 436 | def convert_to_markdown_wrapped(string, use_cache=True): | STRING |
| LOW⚡ | extensions/perplexity_colors/script.py | 449 | def update_color_by_ppl_check(x): | STRING |
| LOW⚡ | extensions/perplexity_colors/script.py | 452 | def update_color_by_prob_check(x): | STRING |
| LOW⚡ | extensions/perplexity_colors/script.py | 455 | def update_prob_dropdown_check(x): | STRING |
| LOW | extensions/superboogav2/chat_handler.py | 102 | def custom_generate_chat_prompt_internal(user_input: str, state: dict, collector: ChromaCollector, **kwargs): | CODE |
| LOW | extensions/superboogav2/data_processor.py | 17 | def preprocess_text_no_summary(text) -> str: | CODE |
| LOW | extensions/superboogav2/data_processor.py | 56 | def _create_chunks_with_context(corpus, chunk_len, context_left, context_right): | CODE |
| LOW | extensions/superboogav2/data_processor.py | 142 | def process_and_add_to_collector(corpus: str, collector: ChromaCollector, clear_collector_before_adding: bool, metadata: | CODE |
| LOW | extensions/superboogav2/chromadb.py | 142 | def _split_texts_by_cache_hit(self, texts: list[str], new_ids: list[str], metadatas: list[dict]): | CODE |
| LOW | extensions/superboogav2/chromadb.py | 173 | def _find_min_max_start_index(self): | CODE |
| LOW | extensions/superboogav2/chromadb.py | 187 | def _apply_sigmoid_time_weighing(self, infos: list[Info], document_len: int, time_steepness: float, time_power: floa | CODE |
| LOW | extensions/superboogav2/chromadb.py | 205 | def _filter_outliers_by_median_distance(self, infos: list[Info], significant_level: float): | CODE |
| LOW | extensions/superboogav2/chromadb.py | 242 | def _get_documents_ids_distances(self, search_strings: list[str], n_results: int): | CODE |
| LOW | extensions/superboogav2/chromadb.py | 289 | def _get_documents_up_to_token_count(self, documents: list[str], max_token_count: int): | CODE |
| LOW | extensions/superboogav2/parameters.py | 83 | def get_num_conversion_strategy() -> str: | CODE |
| LOW | extensions/superboogav2/parameters.py | 95 | def should_remove_punctuation() -> bool: | CODE |
| LOW | extensions/superboogav2/parameters.py | 103 | def should_remove_specific_pos() -> bool: | CODE |
| LOW | extensions/superboogav2/parameters.py | 123 | def set_num_conversion_strategy(value: str): | CODE |
| LOW⚡ | extensions/superboogav2/script.py | 50 | def _feed_data_into_collector(corpus): | CODE |
| LOW⚡ | extensions/superboogav2/script.py | 56 | def _feed_file_into_collector(files): | CODE |
| LOW | extensions/superboogav2/script.py | 195 | def _get_optimizable_settings() -> list: | CODE |
| LOW | extensions/superboogav2/script.py | 288 | def custom_generate_chat_prompt(user_input, state, **kwargs): | CODE |
| LOW | extensions/superbooga/chromadb.py | 31 | def get_documents_ids_distances(self, search_strings: list[str], n_results: int): | CODE |
| LOW | extensions/superbooga/chromadb.py | 58 | def apply_time_weight_to_distances(self, ids: list[int], distances: list[float], time_weight: float = 1.0) -> list[f | CODE |
| LOW | extensions/superbooga/script.py | 96 | def custom_generate_chat_prompt(user_input, state, **kwargs): | CODE |
| LOW | extensions/long_replies/script.py | 88 | def logits_processor_modifier(processor_list, input_ids): | CODE |
| LOW | extensions/long_replies/script.py | 106 | def custom_generate_chat_prompt(user_input, state, **kwargs): | CODE |
| LOW | modules/llama_cpp_server.py | 157 | def _process_images_for_generation(self, state: dict) -> List[Any]: | CODE |
| LOW | modules/llama_cpp_server.py | 329 | def get_prompt_logprob_entries(self, token_ids, n_probs=5, prompt=""): | CODE |
| LOW | modules/llama_cpp_server.py | 634 | def filter_stderr_with_progress(process_stderr): | CODE |
| LOW | modules/exllamav3_hf.py | 117 | def prepare_inputs_for_generation(self, input_ids, **kwargs): | CODE |
| LOW | modules/exllamav3.py | 256 | def _process_images_for_generation(self, prompt: str, state: dict) -> Tuple[str, List[Any]]: | CODE |
| LOW⚡ | modules/image_utils.py | 96 | def convert_image_attachments_to_pil(image_attachments: List[dict]) -> List[Image.Image]: | CODE |
| LOW⚡ | modules/image_utils.py | 111 | def convert_openai_messages_to_images(messages: List[dict]) -> List[Image.Image]: | CODE |
| LOW | modules/ui_chat.py | 153 | def create_character_settings_ui(): | CODE |
| LOW | modules/models.py | 15 | def load_model_if_idle_unloaded(): | CODE |
| LOW | modules/presets.py | 107 | def neutralize_samplers_for_ui(state): | CODE |
| 117 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | download-model.py | 308 | print(f"Error downloading {filename}: {e}.") | CODE |
| MEDIUM | download-model.py | 404 | print("Error: Please specify the model you'd like to download (e.g. 'python download-model.py facebook/opt-1.3b' | CODE |
| MEDIUM | download-model.py | 432 | print(f"Error: {err_branch}") | CODE |
| LOW | server.py | 43 | except Exception: | CODE |
| LOW | one_click.py | 69 | except Exception: | CODE |
| LOW | extensions/sd_api_pictures/script.py | 267 | except Exception: | CODE |
| LOW | extensions/sd_api_pictures/script.py | 287 | except Exception: | CODE |
| LOW | extensions/sd_api_pictures/script.py | 301 | except Exception: | CODE |
| LOW | extensions/sd_api_pictures/script.py | 310 | except Exception: | CODE |
| MEDIUM | extensions/sd_api_pictures/script.py | 305 | def get_samplers(): | CODE |
| LOW | extensions/superboogav2/api.py | 138 | except Exception as e: | CODE |
| LOW | extensions/superboogav2/api.py | 152 | except Exception as e: | CODE |
| MEDIUM | extensions/superboogav2/api.py | 88 | def do_POST(self): | CODE |
| MEDIUM | extensions/superboogav2/api.py | 141 | def do_DELETE(self): | CODE |
| LOW | extensions/superboogav2/download_urls.py | 36 | except Exception: | CODE |
| MEDIUM | extensions/superboogav2/script.py | 61 | def read_binary_file(file_path): | CODE |
| MEDIUM | extensions/superboogav2/script.py | 69 | def extract_with_utf8(text): | CODE |
| MEDIUM | extensions/superboogav2/script.py | 75 | def extract_with_fitz(file_content): | CODE |
| MEDIUM | extensions/superboogav2/script.py | 85 | def extract_with_docx(file_path): | CODE |
| MEDIUM | extensions/superboogav2/script.py | 94 | def extract_with_pptx(file_path): | CODE |
| MEDIUM | extensions/superboogav2/script.py | 134 | def extract_with_pandas(file_path): | CODE |
| LOW⚡ | extensions/superboogav2/script.py | 65 | except Exception: | CODE |
| LOW⚡ | extensions/superboogav2/script.py | 72 | except Exception: | CODE |
| LOW⚡ | extensions/superboogav2/script.py | 82 | except Exception: | CODE |
| LOW⚡ | extensions/superboogav2/script.py | 91 | except Exception: | CODE |
| LOW | extensions/superboogav2/script.py | 102 | except Exception: | CODE |
| LOW | extensions/superboogav2/script.py | 130 | except Exception as e: | CODE |
| LOW | extensions/superboogav2/script.py | 140 | except Exception: | CODE |
| LOW | extensions/superboogav2/script.py | 284 | except Exception as e: | CODE |
| LOW | extensions/superbooga/download_urls.py | 32 | except Exception: | CODE |
| LOW | user_data/tools/calculate.py | 51 | except Exception as e: | CODE |
| LOW | modules/llama_cpp_server.py | 598 | except Exception: | CODE |
| LOW | modules/llama_cpp_server.py | 688 | except Exception: | CODE |
| LOW | modules/llama_cpp_server.py | 696 | except Exception: | CODE |
| LOW | modules/exllamav3_hf.py | 22 | except Exception: | CODE |
| LOW | modules/exllamav3.py | 35 | except Exception: | CODE |
| LOW | modules/exllamav3.py | 81 | except Exception: | CODE |
| LOW | modules/exllamav3.py | 196 | except Exception as e: | CODE |
| LOW | modules/exllamav3.py | 303 | except Exception as e: | CODE |
| LOW⚡ | modules/exllamav3.py | 560 | except Exception as e: | CODE |
| LOW⚡ | modules/exllamav3.py | 566 | except Exception as e: | CODE |
| LOW⚡ | modules/exllamav3.py | 572 | except Exception as e: | CODE |
| LOW | modules/image_models.py | 159 | except Exception as e: | CODE |
| LOW | modules/image_utils.py | 21 | except Exception as e: | CODE |
| LOW | modules/image_utils.py | 44 | except Exception as e: | CODE |
| LOW | modules/image_utils.py | 74 | except Exception as e: | CODE |
| LOW⚡ | modules/image_utils.py | 86 | except Exception as e: | CODE |
| LOW⚡ | modules/image_utils.py | 106 | except Exception as e: | CODE |
| LOW | modules/models.py | 101 | except Exception as e: | CODE |
| LOW | modules/ui.py | 370 | except Exception: | CODE |
| LOW | modules/ui.py | 415 | except Exception as e: | CODE |
| LOW | modules/tool_use.py | 41 | except Exception: | CODE |
| LOW | modules/tool_use.py | 105 | except Exception: | CODE |
| LOW | modules/tool_use.py | 264 | except Exception as e: | CODE |
| LOW | modules/prompts.py | 38 | except Exception: | CODE |
| MEDIUM | modules/prompts.py | 34 | def count_tokens(text): | CODE |
| LOW | modules/extensions.py | 75 | except Exception: | CODE |
| MEDIUM | modules/chat.py | 2062 | def load_history_json(file, history): | CODE |
| LOW | modules/chat.py | 785 | except Exception as e: | CODE |
| LOW | modules/chat.py | 1003 | except Exception as e: | CODE |
| 66 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | download-model.py | 79 | CODE | |
| LOW | download-model.py | 221 | CODE | |
| LOW | one_click.py | 111 | CODE | |
| LOW | one_click.py | 129 | CODE | |
| LOW | one_click.py | 147 | CODE | |
| LOW | one_click.py | 323 | CODE | |
| LOW | extensions/sd_api_pictures/script.py | 46 | CODE | |
| LOW | extensions/sd_api_pictures/script.py | 316 | CODE | |
| LOW | extensions/gallery/script.py | 72 | CODE | |
| LOW | extensions/perplexity_colors/script.py | 108 | CODE | |
| LOW | extensions/superboogav2/optimize.py | 40 | CODE | |
| LOW | extensions/superboogav2/chat_handler.py | 102 | CODE | |
| LOW | extensions/superboogav2/data_processor.py | 17 | CODE | |
| LOW | extensions/superboogav2/data_processor.py | 142 | CODE | |
| LOW | extensions/superboogav2/benchmark.py | 19 | CODE | |
| LOW | extensions/superboogav2/chromadb.py | 27 | CODE | |
| LOW | extensions/superboogav2/api.py | 88 | CODE | |
| LOW | extensions/superboogav2/script.py | 56 | CODE | |
| LOW | extensions/superboogav2/script.py | 228 | CODE | |
| LOW | extensions/superboogav2/script.py | 296 | CODE | |
| LOW | extensions/superboogav2/script.py | 105 | CODE | |
| LOW | extensions/superbooga/script.py | 96 | CODE | |
| LOW | modules/llama_cpp_server.py | 634 | CODE | |
| LOW | modules/llama_cpp_server.py | 700 | CODE | |
| LOW | modules/llama_cpp_server.py | 73 | CODE | |
| LOW | modules/llama_cpp_server.py | 178 | CODE | |
| LOW | modules/llama_cpp_server.py | 415 | CODE | |
| LOW | modules/exllamav3_hf.py | 124 | CODE | |
| LOW | modules/exllamav3.py | 72 | CODE | |
| LOW | modules/exllamav3.py | 307 | CODE | |
| LOW | modules/image_models.py | 80 | CODE | |
| LOW | modules/image_utils.py | 49 | CODE | |
| LOW | modules/image_utils.py | 96 | CODE | |
| LOW | modules/ui_chat.py | 17 | CODE | |
| LOW | modules/ui_chat.py | 153 | CODE | |
| LOW | modules/ui_chat.py | 212 | CODE | |
| LOW | modules/models.py | 163 | CODE | |
| LOW | modules/ui.py | 317 | CODE | |
| LOW | modules/ui_default.py | 19 | CODE | |
| LOW | modules/html_generator.py | 242 | CODE | |
| LOW | modules/html_generator.py | 529 | CODE | |
| LOW | modules/html_generator.py | 262 | CODE | |
| LOW | modules/sane_markdown_lists.py | 201 | CODE | |
| LOW | modules/sane_markdown_lists.py | 245 | CODE | |
| LOW | modules/sane_markdown_lists.py | 277 | CODE | |
| LOW | modules/shared.py | 432 | CODE | |
| LOW | modules/ui_parameters.py | 9 | CODE | |
| LOW | modules/extensions.py | 27 | CODE | |
| LOW | modules/extensions.py | 87 | CODE | |
| LOW | modules/chat.py | 193 | CODE | |
| LOW | modules/chat.py | 236 | CODE | |
| LOW | modules/chat.py | 282 | CODE | |
| LOW | modules/chat.py | 333 | CODE | |
| LOW | modules/chat.py | 351 | CODE | |
| LOW | modules/chat.py | 827 | CODE | |
| LOW | modules/chat.py | 928 | CODE | |
| LOW | modules/chat.py | 1024 | CODE | |
| LOW | modules/chat.py | 1071 | CODE | |
| LOW | modules/chat.py | 1108 | CODE | |
| LOW | modules/chat.py | 1403 | CODE | |
| 51 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | one_click.py | 204 | # Set executable to None for Windows, bash for everything else | COMMENT |
| LOW | one_click.py | 539 | # Check if a model has been downloaded yet | COMMENT |
| LOW | extensions/superboogav2/optimize.py | 58 | # Check if the parameter is for optimization. | COMMENT |
| LOW | extensions/superboogav2/chat_handler.py | 117 | # Check if the strategy is to modify the last message. If so, prepend or append to the user query. | COMMENT |
| LOW | extensions/superboogav2/benchmark.py | 36 | # Check if the file exists | COMMENT |
| LOW | extensions/superboogav2/benchmark.py | 38 | # Open the file and read its content | COMMENT |
| LOW | extensions/superboogav2/chromadb.py | 69 | # Check if s1 and s2 are adjacent or overlapping | COMMENT |
| LOW⚡ | extensions/superboogav2/data_preprocessor.py | 41 | # Check if token is a word | COMMENT |
| LOW⚡ | extensions/superboogav2/data_preprocessor.py | 43 | # Check if token is not an abbreviation or constant | COMMENT |
| LOW⚡ | extensions/superboogav2/data_preprocessor.py | 53 | # Check if token is a number of length `min_len` or more | COMMENT |
| LOW | extensions/superboogav2/data_preprocessor.py | 65 | # Check if token is a number of length `min_len` or more | COMMENT |
| LOW | extensions/superboogav2/data_preprocessor.py | 80 | # Check if token is a number of length `min_len` or more | COMMENT |
| LOW | extensions/superboogav2/data_preprocessor.py | 121 | # Check if token is a word | COMMENT |
| LOW | modules/llama_cpp_server.py | 251 | # Check if the line starts with "data: " and remove it | COMMENT |
| LOW | modules/llama_cpp_server.py | 589 | # Check if process is still alive | COMMENT |
| LOW | modules/html_generator.py | 227 | # Check if thinking is complete or still in progress | STRING |
| LOW | modules/sane_markdown_lists.py | 176 | # Check if a custom start integer is set | COMMENT |
| LOW | modules/sane_markdown_lists.py | 181 | # Loop through items in block, recursively parsing each with the | COMMENT |
| LOW | modules/sane_markdown_lists.py | 304 | # Check if paragraph contains a list | COMMENT |
| LOW | modules/chat.py | 548 | # Check if we have attachments | COMMENT |
| LOW | modules/chat.py | 1204 | # Check if the current row has version metadata to sync during streaming | COMMENT |
| LOW | modules/training.py | 239 | # Check if the file already exists in the subfolder | COMMENT |
| LOW | modules/ui_image_generation.py | 221 | # Check if we need to refresh cache | COMMENT |
| LOW | modules/ui_image_generation.py | 699 | # Check if LLM is loaded | COMMENT |
| LOW | modules/grammar/grammar_utils.py | 536 | if not stacks: # Check if stacks is empty | CODE |
| LOW | modules/api/completions.py | 634 | # Check if usage should be included in streaming chunks per OpenAI spec | COMMENT |
| LOW | modules/api/completions.py | 983 | # Check if usage should be included in streaming chunks per OpenAI spec | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | one_click.py | 13 | # Define the required versions | COMMENT |
| MEDIUM | extensions/superboogav2/optimize.py | 64 | # Create a hashable representation of the parameters | COMMENT |
| MEDIUM | extensions/superboogav2/chromadb.py | 133 | # Create a dictionary that maps each ID to its context and starting index | COMMENT |
| MEDIUM | extensions/superboogav2/utils.py | 8 | # Create the context using the prefix + data_separator + postfix from parameters. | COMMENT |
| MEDIUM | modules/ui_default.py | 161 | # Create the new prompt file | COMMENT |
| MEDIUM | modules/html_generator.py | 87 | # Define a list of quote pairs (opening and closing), using HTML entities | COMMENT |
| MEDIUM | modules/html_generator.py | 100 | # Create a regex pattern that matches any of the quote pairs, including newlines | COMMENT |
| MEDIUM | modules/sane_markdown_lists.py | 311 | # Create a regular paragraph | COMMENT |
| MEDIUM | modules/shared.py | 241 | # Create a mapping of all argument aliases to their canonical names | COMMENT |
| MEDIUM | modules/extensions.py | 216 | # Creating the extension ui elements | COMMENT |
| MEDIUM | modules/chat.py | 2454 | # Create a default user if none exist | COMMENT |
| MEDIUM | modules/ui_notebook.py | 196 | # Create the new prompt file | COMMENT |
| MEDIUM | modules/training.py | 235 | # Create the new subfolder | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | one_click.py | 327 | "git init -b main && git remote add origin https://github.com/oobabooga/textgen && " | CODE |
| HIGH⚡ | one_click.py | 328 | "git fetch && git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main && " | CODE |
| HIGH⚡ | one_click.py | 329 | "git reset --hard origin/main && git branch --set-upstream-to=origin/main", | CODE |
| HIGH | extensions/perplexity_colors/script.py | 353 | if (name != null && name.includes("opt_")) { | CODE |
| HIGH | extensions/perplexity_colors/script.py | 371 | if (msg_part_name != null) { | CODE |
| HIGH | extensions/perplexity_colors/script.py | 374 | if (current_token_index == token_index && current_message_pos == msg_pos) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | extensions/example/script.py | 10 | CODE | |
| LOW | extensions/example/script.py | 11 | CODE | |
| LOW | extensions/example/script.py | 14 | CODE | |
| LOW | extensions/example/script.py | 15 | CODE | |
| LOW | extensions/example/script.py | 15 | CODE | |
| LOW | extensions/example/script.py | 15 | CODE | |
| LOW | extensions/perplexity_colors/script.py | 1 | CODE | |
| LOW | extensions/perplexity_colors/script.py | 5 | CODE | |
| LOW | extensions/long_replies/script.py | 1 | CODE | |
| LOW | extensions/long_replies/script.py | 3 | CODE | |
| LOW | extensions/long_replies/script.py | 3 | CODE | |
| LOW | modules/exllamav3_hf.py | 21 | CODE | |
| LOW | modules/exllamav3.py | 34 | CODE | |
| LOW | modules/ui_chat.py | 3 | CODE | |
| LOW | modules/presets.py | 3 | CODE | |
| LOW | modules/ui_default.py | 1 | CODE | |
| LOW | modules/sane_markdown_lists.py | 19 | CODE | |
| LOW | modules/prompts.py | 1 | CODE | |
| LOW | modules/ui_parameters.py | 1 | CODE | |
| LOW | modules/ui_notebook.py | 3 | CODE | |
| LOW | modules/evaluate.py | 2 | CODE | |
| LOW | modules/tensorrt_llm.py | 7 | CODE | |
| LOW | modules/training.py | 10 | CODE | |
| LOW | modules/api/anthropic.py | 4 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | modules/html_generator.py | 30 | # Step 1: Remove comments | COMMENT |
| LOW⚡ | modules/html_generator.py | 33 | # Step 2: Remove leading and trailing whitespace | COMMENT |
| LOW⚡ | modules/html_generator.py | 36 | # Step 3: Remove spaces after specific characters ({ : ; ,}) | COMMENT |
| LOW⚡ | modules/html_generator.py | 39 | # Step 4: Remove spaces before `{` | COMMENT |
| LOW⚡ | modules/html_generator.py | 42 | # Step 5: Remove empty lines | COMMENT |
| LOW⚡ | modules/html_generator.py | 45 | # Step 6: Collapse all lines into one | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | modules/html_generator.py | 30 | # Step 1: Remove comments | COMMENT |
| LOW⚡ | modules/html_generator.py | 33 | # Step 2: Remove leading and trailing whitespace | COMMENT |
| LOW⚡ | modules/html_generator.py | 36 | # Step 3: Remove spaces after specific characters ({ : ; ,}) | COMMENT |
| LOW⚡ | modules/html_generator.py | 39 | # Step 4: Remove spaces before `{` | COMMENT |
| LOW⚡ | modules/html_generator.py | 42 | # Step 5: Remove empty lines | COMMENT |
| LOW⚡ | modules/html_generator.py | 45 | # Step 6: Collapse all lines into one | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | extensions/example/script.py | 110 | CODE | |
| LOW | extensions/silero_tts/tts_preprocessor.py | 97 | CODE | |
| LOW | extensions/silero_tts/tts_preprocessor.py | 136 | CODE | |
| LOW | extensions/silero_tts/tts_preprocessor.py | 143 | CODE | |
| LOW | extensions/long_replies/script.py | 112 | CODE | |
| LOW | modules/models_settings.py | 548 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | extensions/superboogav2/chat_handler.py | 87 | # TODO: This is an extremely naive solution. A more robust implementation must be made. | COMMENT |
| MEDIUM | modules/html_generator.py | 312 | # Manual line iteration for robust structure parsing | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | extensions/ngrok/script.py | 1 | # Adds ngrok ingress, to use add `--extension ngrok` to the command line options | COMMENT |
| LOW | user_data/CMD_FLAGS.txt | 1 | # Add persistent flags here to use every time you launch the web UI. | COMMENT |
| LOW | modules/sampler_hijack.py | 81 | normalized_entropy = entropy / max_entropy | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | modules/sane_markdown_lists.py | 2 | # ======================================= | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | modules/api/cache_embedding_model.py | 2 | # preload the embedding model, useful for Docker images to prevent re-download on config change | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | js/highlightjs/highlight.min.js | 317 | }),re=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code", | CODE |
| LOW | extensions/gallery/script.py | 80 | image_html = "<div class='placeholder'></div>" | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | modules/shared.py | 404 | logger.warning("You are potentially exposing the web UI to the entire internet without any access password.\ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | modules/grammar/grammar_utils.py | 22 | logger = logging.getLogger(__name__) | CODE |