🔥 基于大模型和 RAG 的智能问数系统,对话式数据分析神器。Text-to-SQL Generation via LLMs using RAG.
This report presents the forensic synthetic code analysis of dataease/SQLBot, a JavaScript project with 6,402 GitHub stars. SynthScan v2.0 examined 119,612 lines of code across 654 source files, recording 474 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 4.3 places this repository in the Likely human-written 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 474 distinct pattern matches across 14 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 |
|---|---|---|---|---|
| LOW | backend/common/core/db.py | 17 | except Exception: | CODE |
| LOW | backend/common/core/response_middleware.py | 80 | except Exception as e: | CODE |
| LOW | backend/common/core/sqlbot_cache.py | 52 | except Exception as e: | CODE |
| LOW | backend/common/utils/http_utils.py | 30 | except Exception as e: | CODE |
| LOW | backend/common/utils/utils.py | 263 | except Exception as e: | CODE |
| LOW⚡ | backend/common/audit/schemas/logger_decorator.py | 579 | except Exception as e: | CODE |
| LOW | backend/common/audit/schemas/logger_decorator.py | 118 | except Exception as e: | CODE |
| LOW | backend/common/audit/schemas/logger_decorator.py | 242 | except Exception: | CODE |
| LOW | backend/common/audit/schemas/logger_decorator.py | 301 | except Exception: | CODE |
| LOW | backend/common/audit/schemas/logger_decorator.py | 393 | except Exception: | CODE |
| LOW | backend/common/audit/schemas/logger_decorator.py | 484 | except Exception as e: | CODE |
| LOW | backend/common/audit/schemas/logger_decorator.py | 615 | except Exception as log_error: | CODE |
| LOW | backend/common/audit/schemas/logger_decorator.py | 663 | except Exception as e: | CODE |
| LOW | backend/common/audit/schemas/logger_decorator.py | 709 | except Exception as log_error: | CODE |
| LOW | backend/apps/datasource/embedding/ds_embedding.py | 52 | except Exception: | CODE |
| LOW | backend/apps/datasource/embedding/ds_embedding.py | 89 | except Exception: | CODE |
| LOW | backend/apps/datasource/embedding/table_embedding.py | 38 | except Exception: | CODE |
| LOW | backend/apps/datasource/embedding/table_embedding.py | 76 | except Exception: | CODE |
| LOW | backend/apps/datasource/crud/datasource.py | 485 | except Exception: | CODE |
| LOW | backend/apps/datasource/crud/table.py | 51 | except Exception: | CODE |
| LOW | backend/apps/datasource/crud/table.py | 103 | except Exception: | CODE |
| LOW | backend/apps/datasource/crud/table.py | 158 | except Exception: | CODE |
| MEDIUM | backend/apps/datasource/crud/table.py | 33 | def run_fill_empty_table_and_ds_embedding(session_maker): | CODE |
| LOW | backend/apps/datasource/api/datasource.py | 127 | except Exception as e: | CODE |
| LOW | backend/apps/datasource/api/datasource.py | 146 | except Exception as e: | CODE |
| LOW | backend/apps/datasource/api/datasource.py | 189 | except Exception: | STRING |
| LOW | backend/apps/datasource/api/datasource.py | 235 | except Exception as e: | CODE |
| LOW | backend/apps/datasource/api/datasource.py | 384 | except Exception as e: | CODE |
| LOW | backend/apps/datasource/api/datasource.py | 533 | except Exception as e: | CODE |
| LOW | backend/apps/datasource/api/datasource.py | 588 | except Exception as e: | CODE |
| LOW | backend/apps/datasource/api/datasource.py | 614 | except Exception as e: | CODE |
| MEDIUM | backend/apps/datasource/api/datasource.py | 232 | def inner(): | CODE |
| LOW⚡ | backend/apps/chat/curd/chat.py | 278 | except Exception: | CODE |
| LOW⚡ | backend/apps/chat/curd/chat.py | 290 | except Exception: | CODE |
| LOW⚡ | backend/apps/chat/curd/chat.py | 515 | except Exception: | CODE |
| LOW⚡ | backend/apps/chat/curd/chat.py | 521 | except Exception: | CODE |
| LOW⚡ | backend/apps/chat/curd/chat.py | 526 | except Exception: | CODE |
| LOW⚡ | backend/apps/chat/curd/chat.py | 534 | except Exception: | CODE |
| LOW⚡ | backend/apps/chat/curd/chat.py | 542 | except Exception: | CODE |
| LOW | backend/apps/chat/curd/chat.py | 132 | except Exception: | CODE |
| LOW | backend/apps/chat/curd/chat.py | 183 | except Exception: | CODE |
| LOW | backend/apps/chat/curd/chat.py | 227 | except Exception: | CODE |
| LOW | backend/apps/chat/curd/chat.py | 238 | except Exception: | CODE |
| LOW | backend/apps/chat/curd/chat.py | 264 | except Exception as e: | CODE |
| LOW | backend/apps/chat/curd/chat.py | 301 | except Exception: | CODE |
| LOW | backend/apps/chat/curd/chat.py | 425 | except Exception: | CODE |
| LOW | backend/apps/chat/curd/chat.py | 474 | except Exception: | CODE |
| LOW | backend/apps/chat/curd/chat.py | 608 | except Exception: | CODE |
| LOW | backend/apps/chat/curd/chat.py | 626 | except Exception: | CODE |
| LOW | backend/apps/chat/curd/chat.py | 636 | except Exception: | CODE |
| LOW | backend/apps/chat/curd/chat.py | 659 | except Exception: | CODE |
| LOW | backend/apps/chat/curd/chat.py | 990 | except Exception as e: | CODE |
| MEDIUM | backend/apps/chat/task/llm.py | 247 | def is_running(self, timeout=0.5): | CODE |
| MEDIUM | backend/apps/chat/task/llm.py | 1191 | def pop_chunk(self): | CODE |
| MEDIUM | backend/apps/chat/task/llm.py | 1547 | def run_recommend_questions_task(self): | CODE |
| LOW⚡ | backend/apps/chat/task/llm.py | 1561 | except Exception: | CODE |
| LOW | backend/apps/chat/task/llm.py | 82 | except Exception: | CODE |
| LOW | backend/apps/chat/task/llm.py | 254 | except Exception as e: | CODE |
| LOW | backend/apps/chat/task/llm.py | 746 | except Exception as e: | CODE |
| LOW | backend/apps/chat/task/llm.py | 755 | except Exception as e: | CODE |
| 70 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/src/views/chat/chat-block/ChartBlock.vue | 208 | function setHiddenSidebarBtnZIndex(value: string) { | CODE |
| LOW | frontend/src/views/dashboard/canvas/CanvasCore.vue | 235 | function removeItemFromPositionBox(item: CanvasItem) { | CODE |
| LOW⚡ | tests/test_cwe89_escape_fix.py | 78 | def test_spaces_and_punctuation(self): | CODE |
| LOW⚡ | tests/test_cwe89_escape_fix.py | 83 | def test_single_quote_escaped(self): | CODE |
| LOW⚡ | tests/test_cwe89_escape_fix.py | 89 | def test_double_single_quotes(self): | CODE |
| LOW⚡ | tests/test_cwe89_escape_fix.py | 94 | def test_name_with_apostrophe(self): | CODE |
| LOW⚡ | tests/test_cwe89_escape_fix.py | 104 | def test_combined_quote_and_backslash(self): | CODE |
| LOW⚡ | tests/test_cwe89_escape_fix.py | 116 | def test_stacked_query_injection(self): | CODE |
| LOW⚡ | tests/test_cwe89_escape_fix.py | 122 | def test_numeric_input_coerced_to_string(self): | CODE |
| LOW⚡ | tests/test_cwe89_escape_fix.py | 127 | def test_already_escaped_quotes(self): | CODE |
| LOW⚡ | tests/test_cwe89_escape_fix.py | 132 | def test_backslash_quote_bypass_attempt(self): | CODE |
| LOW⚡ | tests/test_cwe89_escape_fix.py | 154 | def test_injection_via_logic_rejected(self): | CODE |
| LOW⚡ | tests/test_cwe89_escape_fix.py | 164 | def test_empty_string_rejected(self): | CODE |
| LOW⚡ | tests/test_cwe89_escape_fix.py | 171 | def test_case_insensitive_validation(self): | CODE |
| LOW | tests/test_cwe89_escape_fix.py | 213 | def test_nvarchar_in_clause_safe(self): | CODE |
| LOW | tests/test_cwe89_escape_fix.py | 221 | def test_legitimate_comma_in_value(self): | CODE |
| LOW | tests/test_minimax_integration.py | 29 | def test_api_endpoint_reachable(self): | CODE |
| LOW | tests/test_minimax_integration.py | 47 | def test_chat_completions_basic(self): | CODE |
| LOW | tests/test_minimax_integration.py | 71 | def test_temperature_zero_accepted(self): | CODE |
| LOW⚡ | tests/test_supplier_config.py | 28 | def test_minimax_icon_import_exists(self): | CODE |
| LOW⚡ | tests/test_supplier_config.py | 35 | def test_minimax_supplier_entry_exists(self): | CODE |
| LOW⚡ | tests/test_supplier_config.py | 44 | def test_minimax_icon_reference(self): | CODE |
| LOW⚡ | tests/test_supplier_config.py | 54 | def test_minimax_temperature_range(self): | CODE |
| LOW | tests/test_supplier_config.py | 67 | def test_minimax_model_options(self): | CODE |
| LOW | tests/test_supplier_config.py | 84 | def test_minimax_uses_openai_protocol(self): | CODE |
| LOW | tests/test_supplier_config.py | 129 | def test_all_locales_have_same_supplier_keys(self): | CODE |
| LOW⚡ | tests/test_supplier_config.py | 197 | def test_openai_type_in_factory(self): | CODE |
| LOW⚡ | tests/test_supplier_config.py | 201 | def test_factory_supports_register(self): | CODE |
| LOW⚡ | tests/test_supplier_config.py | 205 | def test_factory_creates_openai_llm_for_openai_type(self): | CODE |
| LOW⚡ | tests/test_supplier_config.py | 209 | def test_llm_config_has_api_base_url(self): | CODE |
| LOW⚡ | tests/test_supplier_config.py | 213 | def test_openai_llm_passes_base_url(self): | CODE |
| LOW⚡ | tests/test_supplier_config.py | 221 | def test_readme_zh_mentions_minimax(self): | CODE |
| LOW⚡ | tests/test_supplier_config.py | 228 | def test_readme_en_mentions_minimax(self): | CODE |
| LOW⚡ | backend/main.py | 40 | def init_terminology_embedding_data(): | CODE |
| LOW⚡ | backend/main.py | 44 | def init_data_training_embedding_data(): | CODE |
| LOW⚡ | backend/main.py | 48 | def init_table_and_ds_embedding(): | CODE |
| LOW | backend/main.py | 68 | def custom_generate_unique_id(route: APIRoute) -> str: | CODE |
| LOW | backend/main.py | 100 | def replace_placeholders_in_schema(schema: Dict[str, Any], trans: Dict[str, str]) -> None: | CODE |
| LOW | backend/main.py | 118 | def get_language_from_request(request: Request) -> str: | CODE |
| LOW | backend/main.py | 130 | def generate_openapi_for_lang(lang: str) -> Dict[str, Any]: | CODE |
| LOW | backend/common/core/security_config.py | 132 | def validate_password_strength(password: str, config: SecurityConfig = DEFAULT_SECURITY_CONFIG) -> tuple[bool, str]: | CODE |
| LOW | backend/common/utils/utils.py | 23 | def generate_password_reset_token(email: str) -> str: | CODE |
| LOW | backend/common/utils/utils.py | 36 | def verify_password_reset_token(token: str) -> str | None: | CODE |
| LOW | backend/common/utils/data_format.py | 23 | def normalize_qualified_sql_column_keys(row: dict) -> dict: | CODE |
| LOW⚡ | backend/common/utils/data_format.py | 42 | def normalize_qualified_sql_column_keys_in_object_array(obj_array: list) -> list: | CODE |
| LOW⚡ | backend/common/utils/data_format.py | 51 | def convert_large_numbers_in_object_array(obj_array, int_threshold=1e15, float_threshold=1e10): | CODE |
| LOW⚡ | backend/common/utils/data_format.py | 54 | def format_float_without_scientific(value): | CODE |
| LOW | backend/common/utils/data_format.py | 97 | def convert_object_array_for_pandas(column_list: list, data_list: list): | CODE |
| LOW | backend/common/utils/data_format.py | 112 | def convert_data_fields_for_pandas(chart: dict, fields: list, data: list): | CODE |
| LOW⚡ | backend/common/utils/embedding_threads.py | 16 | def run_save_terminology_embeddings(ids: List[int]): | CODE |
| LOW⚡ | backend/common/utils/embedding_threads.py | 21 | def fill_empty_terminology_embeddings(): | CODE |
| LOW⚡ | backend/common/utils/embedding_threads.py | 26 | def run_save_data_training_embeddings(ids: List[int]): | CODE |
| LOW⚡ | backend/common/utils/embedding_threads.py | 31 | def fill_empty_data_training_embeddings(): | CODE |
| LOW⚡ | backend/common/utils/embedding_threads.py | 36 | def run_save_table_embeddings(ids: List[int]): | CODE |
| LOW⚡ | backend/common/utils/embedding_threads.py | 46 | def fill_empty_table_and_ds_embeddings(): | CODE |
| LOW | backend/common/audit/schemas/logger_decorator.py | 21 | def get_resource_name_by_id_and_module(session, resource_id: Any, module: str) -> List[Dict[str, str]]: | CODE |
| LOW | backend/common/audit/schemas/logger_decorator.py | 168 | def extract_value_from_object(expression: str, obj: Any): | CODE |
| LOW | backend/common/audit/schemas/logger_decorator.py | 305 | def extract_from_function_params( | CODE |
| LOW | backend/common/audit/schemas/log_utils.py | 20 | def build_resource_union_query() -> Select: | CODE |
| LOW | backend/apps/datasource/crud/permission.py | 14 | def get_row_permission_filters(session: SessionDep, current_user: CurrentUser, ds: CoreDatasource, | CODE |
| 52 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_supplier_config.py | 11 | CODE | |
| LOW | backend/common/core/config.py | 12 | CODE | |
| LOW | backend/common/core/models.py | 1 | CODE | |
| LOW | backend/common/core/schemas.py | 5 | CODE | |
| LOW | backend/common/utils/tree_utils.py | 2 | CODE | |
| LOW | backend/common/audit/schemas/logger_decorator.py | 15 | CODE | |
| LOW | backend/alembic/env.py | 7 | CODE | |
| LOW | backend/alembic/versions/032_modify_assistant_ddl.py | 10 | CODE | |
| LOW | backend/alembic/versions/065_user_bind_var.py | 10 | CODE | |
| LOW | backend/alembic/versions/024_modify_chat_record.py | 10 | CODE | |
| LOW | backend/alembic/versions/024_modify_chat_record.py | 11 | CODE | |
| LOW | backend/alembic/versions/029_modify_chat.py | 10 | CODE | |
| LOW | backend/alembic/versions/066_update_assistant_model.py | 11 | CODE | |
| LOW | …ckend/alembic/versions/051_modify_data_training_ddl.py | 10 | CODE | |
| LOW | …ckend/alembic/versions/051_modify_data_training_ddl.py | 11 | CODE | |
| LOW | backend/alembic/versions/009_0_modify_chat.py | 11 | CODE | |
| LOW | backend/alembic/versions/049_user_platform_ddl.py | 10 | CODE | |
| LOW | backend/alembic/versions/054_update_chat_record_dll.py | 10 | CODE | |
| LOW | backend/alembic/versions/054_update_chat_record_dll.py | 11 | CODE | |
| LOW | backend/alembic/versions/052_add_recommended_problem.py | 10 | CODE | |
| LOW | backend/alembic/versions/041_add_terminology_oid.py | 10 | CODE | |
| LOW | backend/alembic/versions/041_add_terminology_oid.py | 11 | CODE | |
| LOW | backend/alembic/versions/033_chat_origin_ddl.py | 10 | CODE | |
| LOW | backend/alembic/versions/033_chat_origin_ddl.py | 11 | CODE | |
| LOW | backend/alembic/versions/014_modify_chat_record.py | 10 | CODE | |
| LOW | backend/alembic/versions/014_modify_chat_record.py | 11 | CODE | |
| LOW | …end/alembic/versions/038_remove_chat_record_cloumns.py | 10 | CODE | |
| LOW | …end/alembic/versions/038_remove_chat_record_cloumns.py | 11 | CODE | |
| LOW | backend/alembic/versions/039_create_terminology.py | 12 | CODE | |
| LOW | backend/alembic/versions/055_add_system_logs.py | 10 | CODE | |
| LOW | backend/alembic/versions/047_table_embedding.py | 10 | CODE | |
| LOW | backend/alembic/versions/047_table_embedding.py | 11 | CODE | |
| LOW | backend/alembic/versions/042_data_training.py | 11 | CODE | |
| LOW | backend/alembic/versions/069_term_custom_prompt.py | 10 | CODE | |
| LOW | backend/alembic/versions/069_term_custom_prompt.py | 11 | CODE | |
| LOW | backend/alembic/versions/011_update_dashboard.py | 10 | CODE | |
| LOW | backend/alembic/versions/011_update_dashboard.py | 11 | CODE | |
| LOW | backend/alembic/versions/045_modify_terminolog.py | 10 | CODE | |
| LOW | backend/alembic/versions/008_modify_field_type.py | 10 | CODE | |
| LOW | backend/alembic/versions/004_add_aimodel_auto.py | 11 | CODE | |
| LOW | backend/alembic/versions/060_platform_token_ddl.py | 11 | CODE | |
| LOW | backend/alembic/versions/022_assistant_ddl.py | 10 | CODE | |
| LOW | backend/alembic/versions/056_api_key_ddl.py | 11 | CODE | |
| LOW | backend/alembic/versions/027_modify_permission.py | 11 | CODE | |
| LOW | backend/alembic/versions/009_1_add_core_dashboard.py | 10 | CODE | |
| LOW | backend/alembic/versions/009_1_add_core_dashboard.py | 11 | CODE | |
| LOW | backend/alembic/versions/036_modify_assistant.py | 10 | CODE | |
| LOW | backend/alembic/versions/059_chat_log_resource.py | 10 | CODE | |
| LOW | backend/alembic/versions/059_chat_log_resource.py | 11 | CODE | |
| LOW | backend/alembic/versions/010_upgrade_user_language.py | 10 | CODE | |
| LOW | backend/alembic/versions/010_upgrade_user_language.py | 11 | CODE | |
| LOW | backend/alembic/versions/018_modify_chat.py | 10 | CODE | |
| LOW | backend/alembic/versions/018_modify_chat.py | 11 | CODE | |
| LOW | backend/alembic/versions/006_add_ds_field.py | 11 | CODE | |
| LOW | backend/alembic/versions/035_sys_arg_ddl.py | 10 | CODE | |
| LOW | backend/alembic/versions/034_field_sort.py | 10 | CODE | |
| LOW | backend/alembic/versions/034_field_sort.py | 11 | CODE | |
| LOW | backend/alembic/versions/057_update_sys_log.py | 10 | CODE | |
| LOW | backend/alembic/versions/057_update_sys_log.py | 11 | CODE | |
| LOW | backend/alembic/versions/063_update_chat_log_dll.py | 10 | CODE | |
| 51 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/common/core/sqlbot_cache.py | 12 | CODE | |
| LOW | backend/common/utils/utils.py | 56 | CODE | |
| LOW | backend/common/utils/utils.py | 89 | CODE | |
| LOW | backend/common/utils/data_format.py | 51 | CODE | |
| LOW | backend/common/utils/data_format.py | 112 | CODE | |
| LOW | backend/common/utils/data_format.py | 146 | CODE | |
| LOW | backend/common/utils/data_format.py | 63 | CODE | |
| LOW | backend/common/audit/schemas/logger_decorator.py | 489 | CODE | |
| LOW | backend/common/audit/schemas/logger_decorator.py | 124 | CODE | |
| LOW | backend/common/audit/schemas/logger_decorator.py | 168 | CODE | |
| LOW | backend/common/audit/schemas/logger_decorator.py | 246 | CODE | |
| LOW | backend/common/audit/schemas/logger_decorator.py | 397 | CODE | |
| LOW | backend/common/audit/schemas/logger_decorator.py | 505 | CODE | |
| LOW | backend/common/audit/schemas/logger_decorator.py | 507 | CODE | |
| LOW | backend/alembic/versions/061_assistant_oid_ddl.py | 21 | CODE | |
| LOW | backend/apps/datasource/embedding/ds_embedding.py | 18 | CODE | |
| LOW | backend/apps/datasource/embedding/table_embedding.py | 43 | CODE | |
| LOW | backend/apps/datasource/crud/row_permission.py | 45 | CODE | |
| LOW | backend/apps/datasource/crud/row_permission.py | 68 | CODE | |
| LOW | backend/apps/datasource/crud/row_permission.py | 247 | CODE | |
| LOW | backend/apps/datasource/crud/permission.py | 14 | CODE | |
| LOW | backend/apps/datasource/crud/permission.py | 49 | CODE | |
| LOW | backend/apps/datasource/crud/datasource.py | 296 | CODE | |
| LOW | backend/apps/datasource/crud/datasource.py | 435 | CODE | |
| LOW | backend/apps/datasource/crud/datasource.py | 508 | CODE | |
| LOW | backend/apps/datasource/crud/table.py | 57 | CODE | |
| LOW | backend/apps/datasource/crud/table.py | 109 | CODE | |
| LOW | backend/apps/datasource/api/datasource.py | 477 | CODE | |
| LOW | backend/apps/chat/curd/chat.py | 146 | CODE | |
| LOW | backend/apps/chat/curd/chat.py | 199 | CODE | |
| LOW | backend/apps/chat/curd/chat.py | 314 | CODE | |
| LOW | backend/apps/chat/curd/chat.py | 554 | CODE | |
| LOW | backend/apps/chat/task/llm.py | 71 | CODE | |
| LOW | backend/apps/chat/task/llm.py | 1757 | CODE | |
| LOW | backend/apps/chat/task/llm.py | 1831 | CODE | |
| LOW | backend/apps/chat/task/llm.py | 117 | CODE | |
| LOW | backend/apps/chat/task/llm.py | 212 | CODE | |
| LOW | backend/apps/chat/task/llm.py | 257 | CODE | |
| LOW | backend/apps/chat/task/llm.py | 633 | CODE | |
| LOW | backend/apps/chat/task/llm.py | 1073 | CODE | |
| LOW | backend/apps/chat/task/llm.py | 1223 | CODE | |
| LOW | backend/apps/chat/task/llm.py | 1575 | CODE | |
| LOW | backend/apps/chat/api/chat.py | 245 | CODE | |
| LOW | backend/apps/chat/api/chat.py | 451 | CODE | |
| LOW | backend/apps/terminology/curd/terminology.py | 379 | CODE | |
| LOW | backend/apps/terminology/curd/terminology.py | 826 | CODE | |
| LOW | backend/apps/data_training/curd/data_training.py | 497 | CODE | |
| LOW | backend/apps/mcp/mcp.py | 167 | CODE | |
| LOW | backend/apps/ai_model/openai/llm.py | 23 | CODE | |
| LOW | backend/apps/system/middleware/auth.py | 33 | CODE | |
| LOW | backend/apps/system/schemas/permission.py | 49 | CODE | |
| LOW | backend/apps/system/schemas/permission.py | 50 | CODE | |
| LOW | backend/apps/system/schemas/permission.py | 52 | CODE | |
| LOW | backend/apps/system/crud/assistant.py | 51 | CODE | |
| LOW | backend/apps/system/crud/assistant.py | 90 | CODE | |
| LOW | backend/apps/system/crud/assistant.py | 255 | CODE | |
| LOW | backend/apps/system/crud/aimodel_manage.py | 9 | CODE | |
| LOW | backend/apps/system/crud/user_excel.py | 175 | CODE | |
| LOW | backend/apps/system/crud/user_excel.py | 323 | CODE | |
| LOW | backend/apps/system/crud/assistant_manage.py | 26 | CODE | |
| 17 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/src/stores/appearance.ts | 161 | }, | COMMENT |
| LOW | frontend/src/stores/appearance.ts | 181 | // document.querySelector('head').appendChild(fontStyleElement) | COMMENT |
| LOW | frontend/src/stores/appearance.ts | 221 | } | COMMENT |
| LOW | frontend/src/stores/appearance.ts | 241 | // name && fileTransName | COMMENT |
| LOW | frontend/src/views/system/prompt/index.vue | 281 | // if (pageForm.value.specific_ds && !value.length) { | COMMENT |
| LOW | frontend/src/views/system/embedded/iframe.vue | 261 | // ElMessageBox.confirm(t('permission.rule_rule_1', { msg: row.name }), { | COMMENT |
| LOW | backend/alembic.ini | 1 | # A generic, single database configuration. | COMMENT |
| LOW | backend/alembic.ini | 21 | # set to 'true' to run the environment during | COMMENT |
| LOW | backend/README.md | 1 | # FastAPI Project - Backend | COMMENT |
| LOW | backend/alembic/env.py | 21 | # from myapp import mymodel | COMMENT |
| LOW | backend/apps/datasource/embedding/__init__.py | 1 | # Author: Junjun | COMMENT |
| LOW | backend/apps/datasource/api/datasource.py | 261 | # | COMMENT |
| LOW | backend/apps/datasource/api/datasource.py | 281 | # create_table(conn, tableName, fields) | COMMENT |
| LOW | backend/apps/datasource/api/datasource.py | 301 | # fields.append({"name": df.columns[i], "type": str(df.dtypes[i]), "relType": ""}) | COMMENT |
| LOW | backend/apps/swagger/__init__.py | 1 | # Author: Junjun | COMMENT |
| LOW | backend/apps/template/filter/__init__.py | 1 | # Author: Junjun | COMMENT |
| LOW | backend/apps/mcp/__init__.py | 1 | # Author: Junjun | COMMENT |
| LOW | backend/apps/ai_model/llm.py | 1 | # todo | COMMENT |
| LOW | backend/apps/db/es_engine.py | 81 | # print(json.dumps(r.json())) | COMMENT |
| LOW | backend/apps/db/db.py | 281 | return True | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_cwe89_escape_fix.py | 54 | # ============================================================ | STRING |
| MEDIUM | tests/test_cwe89_escape_fix.py | 56 | # ============================================================ | STRING |
| MEDIUM⚡ | tests/test_cwe89_escape_fix.py | 141 | # ============================================================ | COMMENT |
| MEDIUM⚡ | tests/test_cwe89_escape_fix.py | 143 | # ============================================================ | COMMENT |
| MEDIUM⚡ | tests/test_cwe89_escape_fix.py | 180 | # ============================================================ | COMMENT |
| MEDIUM⚡ | tests/test_cwe89_escape_fix.py | 182 | # ============================================================ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | frontend/public/tinymce/themes/silver/theme.min.js | 1 | !function(){"use strict";const e=Object.getPrototypeOf,t=(e,t,o)=>{var n;return!!o(e,t.prototype)||(null===(n=e.construc | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | frontend/public/tinymce/tinymce.min.js | 11 | !function(){"use strict";var e=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;retur | CODE |
| LOW | frontend/public/tinymce/themes/silver/theme.min.js | 1 | !function(){"use strict";const e=Object.getPrototypeOf,t=(e,t,o)=>{var n;return!!o(e,t.prototype)||(null===(n=e.construc | CODE |
| LOW | frontend/src/i18n/ko-KR.json | 294 | "placeholder": "질문을 입력하십시오", | CODE |
| LOW | frontend/src/i18n/zh-CN.json | 294 | "placeholder": "请输入您的问题", | CODE |
| LOW | frontend/src/i18n/en.json | 294 | "placeholder": "Please enter your question", | CODE |
| LOW | frontend/src/i18n/zh-TW.json | 294 | "placeholder": "請輸入您的問題", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | frontend/public/tinymce/tinymce.min.js | 11 | !function(){"use strict";var e=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;retur | CODE |
| MEDIUM⚡ | frontend/public/tinymce/tinymce.min.js | 11 | !function(){"use strict";var e=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;retur | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | backend/common/audit/schemas/logger_decorator.py | 570 | # Step 2: If the resource ID is configured to be extracted from the results and has not been extracted b | COMMENT |
| LOW | backend/common/audit/schemas/logger_decorator.py | 528 | # Step 1: Attempt to extract the resource ID from the parameters | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | backend/common/audit/schemas/logger_decorator.py | 570 | # Step 2: If the resource ID is configured to be extracted from the results and has not been extracted b | COMMENT |
| LOW | backend/common/audit/schemas/logger_decorator.py | 528 | # Step 1: Attempt to extract the resource ID from the parameters | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | backend/common/audit/schemas/logger_decorator.py | 327 | # Create a dictionary containing all parameters | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/common/audit/schemas/logger_decorator.py | 81 | CODE | |
| LOW | backend/common/audit/schemas/logger_decorator.py | 397 | CODE | |
| LOW | backend/apps/system/api/user.py | 53 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/apps/chat/task/llm.py | 1223 | def run_task(self, in_chat: bool = True, stream: bool = True, | CODE |