Repository Analysis

iflytek/astron-agent

Enterprise-grade, commercial-friendly agentic workflow platform for building next-generation SuperAgents.

7.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of iflytek/astron-agent, a Java project with 8,616 GitHub stars. SynthScan v2.0 examined 610,098 lines of code across 3372 source files, recording 3179 pattern matches distributed across 25 syntactic categories. The overall adjusted score of 7.5 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

7.5
Adjusted Score
7.5
Raw Score
100%
Time Factor
2026-07-10
Last Push
8.6K
Stars
Java
Language
610.1K
Lines of Code
3.4K
Files
3.2K
Pattern Hits
2026-07-14
Scan Date
0.04
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 55HIGH 94MEDIUM 204LOW 2826

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

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

Hyper-Verbose Identifiers1796 hits · 1802 pts
SeverityFileLineSnippetContext
LOWcore/memory/database/main.py63async def rep_initialize_extensions() -> None:CODE
LOWcore/memory/database/main.py129 async def global_validation_exception_handler(CODE
LOWcore/memory/database/main.py196async def _get_host_ip_from_hostname_command() -> str | None:CODE
LOWcore/memory/database/main.py212def _get_host_ip_from_gethostbyname() -> str | None:CODE
LOWcore/memory/database/main.py224def _get_host_ip_from_getaddrinfo() -> str | None:CODE
LOWcore/memory/database/repository/middleware/manager.py76 def _validate_service_creation(self, service_name: ServiceType) -> None:CODE
LOW…/database/repository/middleware/database/db_manager.py118 async def _create_database_if_not_exists(self) -> None:CODE
LOW…e/repository/middleware/adapters/postgresql_adapter.py187 async def create_database_if_not_exists(self, base_url: str, db_name: str) -> None:CODE
LOW…e/repository/middleware/adapters/postgresql_adapter.py316 def get_alembic_version_table_schema(self) -> Optional[str]:CODE
LOW…e/repository/middleware/adapters/postgresql_adapter.py319 def get_alembic_include_schemas(self) -> bool:CODE
LOW…tabase/repository/middleware/adapters/mysql_adapter.py156 async def create_database_if_not_exists(self, base_url: str, db_name: str) -> None:CODE
LOW…tabase/repository/middleware/adapters/mysql_adapter.py268 def get_alembic_version_table_schema(self) -> Optional[str]:CODE
LOW…tabase/repository/middleware/adapters/mysql_adapter.py272 def get_alembic_include_schemas(self) -> bool:CODE
LOW…tabase/repository/middleware/adapters/mysql_adapter.py285 def _validate_mysql_identifier(self, identifier: str) -> str:CODE
LOW…memory/database/repository/middleware/adapters/base.py40 async def create_database_if_not_exists(self, base_url: str, db_name: str) -> None:CODE
LOW…memory/database/repository/middleware/adapters/base.py88 def get_alembic_version_table_schema(self) -> Optional[str]:CODE
LOW…memory/database/repository/middleware/adapters/base.py92 def get_alembic_include_schemas(self) -> bool:CODE
LOWcore/memory/database/tests/test_exec_dml.py512def test_collect_update_keys_invalid() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py522def test_collect_columns_and_keys() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py532def test_collect_functions_names() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py1167def test_is_datetime_type_timestamp() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py1172def test_is_datetime_type_datetime() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py1177def test_is_datetime_type_varchar() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py1182def test_is_datetime_type_empty_string() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py1187def test_is_datetime_type_none() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py1197def test_convert_value_if_datetime_matching_format() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py1208def test_convert_value_if_datetime_no_mapping() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py1218def test_convert_value_if_datetime_non_datetime_column() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py1233def test_is_boolean_type_boolean() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py1240def test_is_boolean_type_tinyint() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py1246def test_is_boolean_type_non_boolean() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py1253def test_convert_value_if_boolean_true() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py1263def test_convert_value_if_boolean_false() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py1273def test_convert_value_if_boolean_non_boolean_column() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py1286def test_is_numeric_value_int() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py1291def test_is_numeric_value_float() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py1296def test_is_numeric_value_digit_string() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py1301def test_is_numeric_value_non_numeric_string() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py48def test_rewrite_dml_with_uid_and_limit() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py70def test_rewrite_dml_with_datetime_string() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py129async def test_set_search_path_success() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py184async def test_dml_split_rejects_multi_statement_injection() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py214async def test_dml_split_allows_semicolon_inside_string_literal() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py241async def test_exec_dml_sql_success() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py278async def test_exec_dml_sql_with_params() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py331def test_dml_insert_add_params() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py480def test_collect_column_names() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py547def test_validate_comparison_nodes_valid() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py559def test_validate_comparison_nodes_invalid() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py576def test_validate_name_pattern_valid() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py586def test_validate_name_pattern_invalid() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py599async def test_validate_reserved_keywords_valid() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py610async def test_validate_reserved_keywords_invalid() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py623async def test_validate_dml_legality_valid() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py635async def test_validate_dml_legality_invalid_name() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py653async def test_validate_dml_legality_reserved_function() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py673async def test_validate_dml_legality_reserved_keyword_in_insert() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py693async def test_validate_dml_legality_invalid_sql() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py710async def test_validate_and_prepare_dml_success() -> None:CODE
LOWcore/memory/database/tests/test_exec_dml.py753async def test_validate_and_prepare_dml_with_space_id() -> None:CODE
1736 more matches not shown…
Hallucination Indicators55 hits · 540 pts
SeverityFileLineSnippetContext
CRITICALcore/agent/tests/test_base_llm_model.py66 model.llm.chat.completions.create.assert_called_once_with(CODE
CRITICAL…frontend/src/components/workflow/nodes/agent/index.tsx526 old.data.nodeParam.plugin.mcpServerIds.push(tool.toolId);CODE
CRITICAL…frontend/src/components/workflow/nodes/agent/index.tsx528 old.data.nodeParam.plugin.tools.push({CODE
CRITICAL…frontend/src/components/workflow/nodes/agent/index.tsx534 old.data.nodeParam.plugin.knowledge.push({CODE
CRITICAL…frontend/src/components/workflow/nodes/agent/index.tsx558 old.data.nodeParam.plugin.skills.push({CODE
CRITICAL…frontend/src/components/workflow/nodes/agent/index.tsx573 old.data.nodeParam.plugin.toolsList.push({CODE
CRITICAL…frontend/src/components/workflow/nodes/agent/index.tsx583 old.data.nodeParam.plugin.mcpServerIds.filter(CODE
CRITICAL…frontend/src/components/workflow/nodes/agent/index.tsx588 old.data.nodeParam.plugin.tools.filter(CODE
CRITICAL…frontend/src/components/workflow/nodes/agent/index.tsx594 old.data.nodeParam.plugin.knowledge.filter(CODE
CRITICAL…frontend/src/components/workflow/nodes/agent/index.tsx599 old.data.nodeParam.plugin.skills.filter(CODE
CRITICAL…frontend/src/components/workflow/nodes/agent/index.tsx604 old.data.nodeParam.plugin.toolsList.filter(CODE
CRITICAL…src/components/workflow/hooks/use-one-click-update.tsx49 old.data.nodeParam.plugin.toolsList.forEach(item => {CODE
CRITICAL…flytek/astron/console/commons/util/AuthStringUtil.java189 return cn.hutool.core.codec.Base64.encode(rawHmac);CODE
CRITICAL…sole/hub/service/chat/springai/AgentSseBridgeTest.java49 org.junit.jupiter.api.Assertions.assertTrue(bridge.isManagedSearchTrace());CODE
CRITICAL…sole/hub/service/chat/springai/AgentSseBridgeTest.java50 org.junit.jupiter.api.Assertions.assertTrue(bridge.getTraceResult().length() > 0);CODE
CRITICAL…b/service/wechat/impl/WechatThirdpartyServiceImpl.java173 Map<String, String> ticketMsg = com.iflytek.astron.console.hub.util.wechat.WXBizMsgParse.parseTicketMsg(decrCODE
CRITICAL…sole/hub/service/workflow/impl/BotMaasServiceImpl.java247 String uid = com.iflytek.astron.console.commons.util.RequestContextUtil.getUID();CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java1306 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.post(CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java1320 okHttpMock.verify(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.post(CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java1563 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(anyString(), any(Map.class)CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java1598 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(anyString(), any(Map.class)CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java1631 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(anyString(), any(Map.class)CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java1665 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(anyString(), any(Map.class)CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2129 threadMock.when(() -> cn.hutool.core.thread.ThreadUtil.execute(any(Runnable.class)))CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2138 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(anyString(), any(Map.class)CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2175 threadMock.when(() -> cn.hutool.core.thread.ThreadUtil.execute(any(Runnable.class)))CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2215 threadMock.when(() -> cn.hutool.core.thread.ThreadUtil.execute(any(Runnable.class)))CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2223 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(anyString(), any(Map.class)CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2272 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(anyString(), any(Map.class)CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2297 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(anyString(), any(Map.class)CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2317 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(anyString(), any(Map.class)CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2324 okHttpMock.verify(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(anyString(), any(Map.clasCODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2348 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.post(anyString(), any(Map.classCODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2371 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.post(anyString(), any(Map.classCODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2378 okHttpMock.verify(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.post(anyString(), any(Map.claCODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2517 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2521 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2551 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2555 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2586 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2596 okHttpMock.verify(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2843 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(anyString(), any(Map.class)CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2891 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2901 okHttpMock.verify(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2920 okHttpMock.when(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(CODE
CRITICAL…console/toolkit/service/knowledge/RepoServiceTest.java2930 okHttpMock.verify(() -> com.iflytek.astron.console.toolkit.util.OkHttpUtil.get(CODE
CRITICAL…on/console/toolkit/service/model/ModelServiceTest.java389 new com.iflytek.astron.console.commons.entity.user.UserInfo();STRING
CRITICAL…on/console/toolkit/service/model/ModelServiceTest.java534 rsa.when(() -> com.iflytek.astron.console.toolkit.util.idata.RSAUtil.loadPrivateKey(anyString()))STRING
CRITICAL…on/console/toolkit/service/model/ModelServiceTest.java536 rsa.when(() -> com.iflytek.astron.console.toolkit.util.idata.RSAUtil.decryptByPrivateKeyBase64(eq("ENCRYPTEDSTRING
CRITICAL…on/console/toolkit/service/model/ModelServiceTest.java733 com.iflytek.astron.console.toolkit.entity.table.model.ModelCategory cat = new com.iflytek.astron.console.toolkitSTRING
CRITICAL…va/com/iflytek/astron/console/toolkit/util/S3Util.java351 // Deprecated: use com.iflytek.astron.console.commons.util.S3ClientUtil.generatePresignedPutUrl()COMMENT
CRITICAL…/console/toolkit/service/workflow/WorkflowService.java188 @org.springframework.beans.factory.annotation.Value("${mcp-server.file-path}")CODE
CRITICAL…/console/toolkit/service/workflow/WorkflowService.java1615 com.iflytek.astron.console.toolkit.entity.core.workflow.node.Value v = new com.iflytek.astron.console.toCODE
CRITICAL…/console/toolkit/service/workflow/WorkflowService.java1660 com.iflytek.astron.console.toolkit.entity.core.workflow.node.Value v = new com.iflytek.astron.console.toCODE
CRITICAL…tron/console/toolkit/tool/DataPermissionCheckTool.java387 workflow.getFlowId(), org.apache.commons.lang3.StringUtils.abbreviate(ext, 64), e);CODE
Decorative Section Separators140 hits · 524 pts
SeverityFileLineSnippetContext
MEDIUM.pre-commit-config.yaml1# =============================================================================COMMENT
MEDIUM.pre-commit-config.yaml4# =============================================================================COMMENT
MEDIUM.pre-commit-config.yaml18# =============================================================================COMMENT
MEDIUM.pre-commit-config.yaml25 # =============================================================================COMMENT
MEDIUM.pre-commit-config.yaml27 # =============================================================================COMMENT
MEDIUM.pre-commit-config.yaml39 # =============================================================================COMMENT
MEDIUM.pre-commit-config.yaml41 # =============================================================================COMMENT
MEDIUM.pre-commit-config.yaml213 # =============================================================================COMMENT
MEDIUM.pre-commit-config.yaml215 # =============================================================================COMMENT
MEDIUM.pre-commit-config.yaml232 # =============================================================================COMMENT
MEDIUM.pre-commit-config.yaml234 # =============================================================================COMMENT
MEDIUM.pre-commit-config.yaml265 # =============================================================================COMMENT
MEDIUM.pre-commit-config.yaml267 # =============================================================================COMMENT
MEDIUM.pre-commit-config.yaml284 # =============================================================================COMMENT
MEDIUM.pre-commit-config.yaml286 # =============================================================================COMMENT
MEDIUM.pre-commit-config.yaml293 # =============================================================================COMMENT
MEDIUM.pre-commit-config.yaml295 # =============================================================================COMMENT
MEDIUM.pre-commit-config.yaml315# =============================================================================COMMENT
MEDIUM.pre-commit-config.yaml317# =============================================================================COMMENT
MEDIUMdocker/ragflow/entrypoint.sh5# -----------------------------------------------------------------------------COMMENT
MEDIUMdocker/ragflow/entrypoint.sh7# -----------------------------------------------------------------------------COMMENT
MEDIUMdocker/ragflow/entrypoint.sh44# -----------------------------------------------------------------------------COMMENT
MEDIUMdocker/ragflow/entrypoint.sh48# -----------------------------------------------------------------------------COMMENT
MEDIUMdocker/ragflow/entrypoint.sh131# -----------------------------------------------------------------------------COMMENT
MEDIUMdocker/ragflow/entrypoint.sh133# -----------------------------------------------------------------------------COMMENT
MEDIUMdocker/ragflow/entrypoint.sh146# -----------------------------------------------------------------------------COMMENT
MEDIUMdocker/ragflow/entrypoint.sh148# -----------------------------------------------------------------------------COMMENT
MEDIUMdocker/ragflow/entrypoint.sh174# -----------------------------------------------------------------------------COMMENT
MEDIUMdocker/ragflow/entrypoint.sh176# -----------------------------------------------------------------------------COMMENT
MEDIUMdocker/astronAgent/docker-compose.yaml2 # ============================================================================COMMENT
MEDIUMdocker/astronAgent/docker-compose.yaml4 # ============================================================================COMMENT
MEDIUMdocker/astronAgent/docker-compose.yaml160 # ============================================================================COMMENT
MEDIUMdocker/astronAgent/docker-compose.yaml162 # ============================================================================COMMENT
MEDIUMdocker/astronAgent/docker-compose.yaml504 # ============================================================================COMMENT
MEDIUMdocker/astronAgent/docker-compose.yaml506 # ============================================================================COMMENT
MEDIUMdocker/astronAgent/docker-compose.yaml638# ============================================================================COMMENT
MEDIUMdocker/astronAgent/docker-compose.yaml640# ============================================================================COMMENT
MEDIUMdocker/astronAgent/docker-compose.yaml645# ============================================================================COMMENT
MEDIUMdocker/astronAgent/docker-compose.yaml647# ============================================================================COMMENT
MEDIUMdocker/astronAgent/docker-compose-auth.yml43# ============================================================================COMMENT
MEDIUMdocker/astronAgent/docker-compose-auth.yml45# ============================================================================COMMENT
MEDIUMdocker/astronAgent/docker-compose-with-auth-rpa.yaml1# ============================================================================COMMENT
MEDIUMdocker/astronAgent/docker-compose-with-auth-rpa.yaml4# ============================================================================COMMENT
MEDIUMdocker/astronAgent/docker-compose-with-auth-rpa.yaml28# ============================================================================COMMENT
MEDIUMdocker/astronAgent/docker-compose-with-auth-rpa.yaml30# ============================================================================COMMENT
MEDIUMdocker/astronAgent/docker-compose-with-auth.yaml1# ============================================================================COMMENT
MEDIUMdocker/astronAgent/docker-compose-with-auth.yaml3# ============================================================================COMMENT
MEDIUMcore/memory/database/tests/test_exec_dml.py1162# ---------------------------------------------------------------------------COMMENT
MEDIUMcore/memory/database/tests/test_exec_dml.py1164# ---------------------------------------------------------------------------COMMENT
MEDIUMcore/memory/database/tests/test_exec_dml.py1192# ---------------------------------------------------------------------------COMMENT
MEDIUMcore/memory/database/tests/test_exec_dml.py1194# ---------------------------------------------------------------------------COMMENT
MEDIUMcore/memory/database/tests/test_exec_dml.py1228# ---------------------------------------------------------------------------COMMENT
MEDIUMcore/memory/database/tests/test_exec_dml.py1230# ---------------------------------------------------------------------------COMMENT
MEDIUMcore/memory/database/tests/test_exec_dml.py1281# ---------------------------------------------------------------------------COMMENT
MEDIUMcore/memory/database/tests/test_exec_dml.py1283# ---------------------------------------------------------------------------COMMENT
MEDIUMcore/memory/database/tests/test_retry.py12# ---------------------------------------------------------------------------COMMENT
MEDIUMcore/memory/database/tests/test_retry.py14# ---------------------------------------------------------------------------COMMENT
MEDIUMcore/memory/database/tests/test_retry.py48# ---------------------------------------------------------------------------COMMENT
MEDIUMcore/memory/database/tests/test_retry.py50# ---------------------------------------------------------------------------COMMENT
MEDIUMcore/memory/database/tests/test_db_operator.py476# ---------------------------------------------------------------------------COMMENT
80 more matches not shown…
Excessive Try-Catch Wrapping358 hits · 362 pts
SeverityFileLineSnippetContext
LOWcore/memory/database/main.py103 except Exception as e: # pylint: disable=broad-exceptCODE
LOWcore/memory/database/main.py190 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…re/memory/database/repository/middleware/initialize.py20 except Exception as exc:CODE
LOW…/database/repository/middleware/database/db_manager.py154 except Exception as e:CODE
LOW…e/repository/middleware/database/database_migration.py52 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOW…e/repository/middleware/adapters/postgresql_adapter.py285 except Exception as e:CODE
LOW…e/repository/middleware/adapters/postgresql_adapter.py294 except Exception as e:CODE
LOW…e/repository/middleware/adapters/postgresql_adapter.py306 except Exception as restore_error:CODE
LOW…tabase/repository/middleware/adapters/mysql_adapter.py256 except Exception as restore_error:CODE
LOWcore/memory/database/utils/retry.py62 except Exception as e:CODE
LOWcore/memory/database/api/v1/exec_dml.py796 except Exception as parse_error: # pylint: disable=broad-exceptCODE
LOWcore/memory/database/api/v1/exec_dml.py924 except Exception as col_type_error: # pylint: disable=broad-exceptCODE
LOWcore/memory/database/api/v1/exec_dml.py1049 except Exception as unexpected_error: # pylint: disable=broad-exceptCODE
LOWcore/memory/database/api/v1/exec_dml.py1084 except Exception as mapping_error:CODE
LOWcore/memory/database/api/v1/exec_dml.py1102 except Exception as exec_error: # pylint: disable=broad-exceptCODE
LOWcore/memory/database/api/v1/exec_dml.py1135 except Exception as schema_error: # pylint: disable=broad-exceptCODE
LOWcore/memory/database/api/v1/exec_dml.py1167 except Exception as parse_error: # pylint: disable=broad-exceptCODE
LOWcore/memory/database/api/v1/db_operator.py118 except Exception as e: # pylint: disable=broad-exceptCODE
LOWcore/memory/database/api/v1/db_operator.py173 except Exception as e: # pylint: disable=broad-exceptCODE
LOWcore/memory/database/api/v1/db_operator.py240 except Exception as e: # pylint: disable=broad-exceptCODE
LOWcore/memory/database/api/v1/db_operator.py264 except Exception as e: # pylint: disable=broad-exceptCODE
LOWcore/memory/database/api/v1/db_operator.py360 except Exception as e: # pylint: disable=broad-exceptCODE
LOWcore/memory/database/api/v1/exec_ddl.py328 except Exception as parse_error: # pylint: disable=broad-exceptCODE
LOWcore/memory/database/api/v1/exec_ddl.py384 except Exception as error:CODE
LOWcore/memory/database/api/v1/exec_ddl.py404 except Exception as exec_error:CODE
LOWcore/memory/database/api/v1/exec_ddl.py484 except Exception as unexpected_error: # pylint: disable=broad-exceptCODE
LOWcore/memory/database/api/v1/common.py57 except Exception as e: # pylint: disable=broad-exceptCODE
LOWcore/memory/database/api/v1/common.py90 except Exception as db_error:CODE
MEDIUMcore/plugin/rpa/run_tests.py35 print("Error output:")CODE
LOWcore/plugin/rpa/infra/xiaowu/tasks.py85 except Exception as e:CODE
LOWcore/plugin/rpa/infra/xiaowu/tasks.py172 except Exception as e:CODE
LOWcore/plugin/rpa/api/app.py57 except Exception as e:CODE
LOWcore/plugin/rpa/api/v1/execution.py58 except Exception as e:CODE
LOWcore/plugin/rpa/doc/API_EXAMPLES.md106 except Exception as e:CODE
LOWcore/plugin/rpa/doc/API_EXAMPLES.md506 except Exception as e:CODE
LOWcore/plugin/rpa/doc/API_EXAMPLES.md565 except Exception as e:CODE
LOWcore/plugin/rpa/doc/API_EXAMPLES.md665 except Exception as e:CODE
LOWcore/plugin/rpa/doc/API_EXAMPLES.md688 except Exception as e:CODE
LOWcore/plugin/link/infra/kafka_telemetry.py61 except Exception as e:CODE
LOWcore/plugin/link/infra/tool_exector/process.py71 except Exception:CODE
LOWcore/plugin/link/infra/tool_exector/process.py77 except Exception:CODE
LOWcore/plugin/link/infra/tool_exector/process.py82 except Exception:CODE
LOWcore/plugin/link/infra/tool_exector/process.py86 except Exception:CODE
LOWcore/plugin/link/infra/tool_exector/process.py160 except Exception:CODE
LOWcore/plugin/link/infra/tool_exector/process.py209 except Exception as err:CODE
LOWcore/plugin/link/app/start_server.py106 except Exception as e:CODE
LOWcore/plugin/link/tests/conftest.py36except Exception:CODE
LOWcore/plugin/link/tests/conftest.py46except Exception:CODE
LOWcore/plugin/link/tests/test_runner.py41 except Exception as e:CODE
MEDIUMcore/plugin/link/tests/test_runner.py42 print(f"Error running command: {e}")CODE
LOWcore/plugin/link/tests/unit/test_schemas.py190 except Exception:CODE
LOWcore/plugin/link/utils/security/access_interceptor.py177 except Exception:CODE
LOWcore/plugin/link/utils/sid/sid_generator2.py58 except Exception as err:CODE
LOW…e/plugin/link/utils/open_api_schema/response_filter.py49 except Exception:CODE
LOW…e/plugin/link/utils/open_api_schema/schema_validate.py54 except Exception as err:CODE
LOW…e/plugin/link/utils/open_api_schema/schema_validate.py79 except Exception as err:CODE
LOW…e/plugin/link/utils/open_api_schema/schema_validate.py120 except Exception as err:CODE
LOWcore/plugin/link/exceptions/sparklink_exceptions.py105 except Exception as err:CODE
LOWcore/plugin/link/extensions/database_migration.py115 except Exception as stamp_error:CODE
LOWcore/plugin/link/extensions/database_migration.py128 except Exception as e:CODE
298 more matches not shown…
Cross-File Repetition50 hits · 250 pts
SeverityFileLineSnippetContext
HIGHcore/plugin/link/domain/models/utils.py0retrieve an item from the cache. args: key: the key of the item to retrieve. returns: the value associated with the key,STRING
HIGHcore/common/service/cache/base_cache.py0retrieve an item from the cache. args: key: the key of the item to retrieve. returns: the value associated with the key,STRING
HIGHcore/common/service/cache/redis_cache.py0retrieve an item from the cache. args: key: the key of the item to retrieve. returns: the value associated with the key,STRING
HIGHcore/workflow/extensions/middleware/cache/manager.py0retrieve an item from the cache. args: key: the key of the item to retrieve. returns: the value associated with the key,STRING
HIGHcore/workflow/extensions/middleware/cache/base.py0retrieve an item from the cache. args: key: the key of the item to retrieve. returns: the value associated with the key,STRING
HIGHcore/plugin/link/domain/models/utils.py0inserts or updates a value in the cache. if the existing value and the new value are both dictionaries, they are merged.STRING
HIGHcore/common/service/cache/redis_cache.py0inserts or updates a value in the cache. if the existing value and the new value are both dictionaries, they are merged.STRING
HIGHcore/workflow/extensions/middleware/cache/manager.py0inserts or updates a value in the cache. if the existing value and the new value are both dictionaries, they are merged.STRING
HIGHcore/plugin/link/domain/models/utils.py0remove an item from the cache. args: key: the key of the item to remove.STRING
HIGHcore/common/service/cache/base_cache.py0remove an item from the cache. args: key: the key of the item to remove.STRING
HIGHcore/common/service/cache/redis_cache.py0remove an item from the cache. args: key: the key of the item to remove.STRING
HIGHcore/workflow/extensions/middleware/cache/manager.py0remove an item from the cache. args: key: the key of the item to remove.STRING
HIGHcore/workflow/extensions/middleware/cache/base.py0remove an item from the cache. args: key: the key of the item to remove.STRING
HIGHcore/agent/tests/test_workflow_agent.py0automatically inject environment fixes for all tests. - ensure `sid_generator2` is initialized to avoid `span` constructSTRING
HIGHcore/agent/tests/test_workflow_agent_runner.py0automatically inject environment fixes for all tests. - ensure `sid_generator2` is initialized to avoid `span` constructSTRING
HIGHcore/agent/tests/test_workflow_agent_builder.py0automatically inject environment fixes for all tests. - ensure `sid_generator2` is initialized to avoid `span` constructSTRING
HIGHcore/agent/tests/test_knowledge_plugin.py0automatically inject environment fixes for all tests. - ensure `sid_generator2` is initialized to avoid `span` constructSTRING
HIGHcore/agent/tests/test_base_api.py0automatically inject environment fixes for all tests. - ensure `sid_generator2` is initialized to avoid `span` constructSTRING
HIGHcore/agent/tests/test_base_llm_model.py0automatically inject environment fixes for all tests. - ensure `sid_generator2` is initialized to avoid `span` constructSTRING
HIGHcore/agent/tests/test_plugin_base_link_mcp_workflow.py0automatically inject environment fixes for all tests. - ensure `sid_generator2` is initialized to avoid `span` constructSTRING
HIGHcore/agent/tests/test_base_builder.py0automatically inject environment fixes for all tests. - ensure `sid_generator2` is initialized to avoid `span` constructSTRING
HIGHcore/common/service/cache/base_cache.py0add an item to the cache. args: key: the key of the item. value: the value to cache.STRING
HIGHcore/common/service/cache/redis_cache.py0add an item to the cache. args: key: the key of the item. value: the value to cache.STRING
HIGHcore/workflow/extensions/middleware/cache/manager.py0add an item to the cache. args: key: the key of the item. value: the value to cache.STRING
HIGHcore/workflow/extensions/middleware/cache/base.py0add an item to the cache. args: key: the key of the item. value: the value to cache.STRING
HIGHcore/knowledge/service/impl/sparkdesk_strategy.py0execute rag query args: query: query text doc_ids: document id list repo_ids: knowledge base id list top_k: number of reSTRING
HIGHcore/knowledge/service/impl/aiui_strategy.py0execute rag query args: query: query text doc_ids: document id list repo_ids: knowledge base id list top_k: number of reSTRING
HIGHcore/knowledge/service/impl/cbg_strategy.py0execute rag query args: query: query text doc_ids: document id list repo_ids: knowledge base id list top_k: number of reSTRING
HIGHcore/workflow/infra/providers/llm/chat_ai.py0calculate the number of tokens in the given text. :param text: input text to calculate tokens for :return: number of tokSTRING
HIGH…workflow/infra/providers/llm/openai/openai_chat_llm.py0calculate the number of tokens in the given text. :param text: input text to calculate tokens for :return: number of tokSTRING
HIGH…ow/infra/providers/llm/iflytek_spark/spark_chat_llm.py0calculate the number of tokens in the given text. :param text: input text to calculate tokens for :return: number of tokSTRING
HIGHcore/workflow/infra/audit_system/audit_api/base.py0in llm content security scenarios, filter, detect and identify user input text, images, videos, documents, etc., and proSTRING
HIGH…ow/infra/audit_system/audit_api/mock/mock_audit_api.py0in llm content security scenarios, filter, detect and identify user input text, images, videos, documents, etc., and proSTRING
HIGH…infra/audit_system/audit_api/iflytek/ifly_audit_api.py0in llm content security scenarios, filter, detect and identify user input text, images, videos, documents, etc., and proSTRING
HIGHcore/workflow/infra/audit_system/audit_api/base.py0in llm content security scenarios, filter, detect and identify llm output images, videos, audio, etc., and process and rSTRING
HIGH…ow/infra/audit_system/audit_api/mock/mock_audit_api.py0in llm content security scenarios, filter, detect and identify llm output images, videos, audio, etc., and process and rSTRING
HIGH…infra/audit_system/audit_api/iflytek/ifly_audit_api.py0in llm content security scenarios, filter, detect and identify llm output images, videos, audio, etc., and process and rSTRING
HIGHcore/workflow/infra/audit_system/audit_api/base.py0in llm content security scenarios, filter, detect and identify websites, knowledge bases and other data referenced durinSTRING
HIGH…ow/infra/audit_system/audit_api/mock/mock_audit_api.py0in llm content security scenarios, filter, detect and identify websites, knowledge bases and other data referenced durinSTRING
HIGH…infra/audit_system/audit_api/iflytek/ifly_audit_api.py0in llm content security scenarios, filter, detect and identify websites, knowledge bases and other data referenced durinSTRING
HIGHcore/workflow/engine/nodes/plugin_tool/plugin_node.py0get the success execution status. :return: succeeded status for successful operationsSTRING
HIGH…kflow/engine/nodes/knowledge_pro/knowledge_pro_node.py0get the success execution status. :return: succeeded status for successful operationsSTRING
HIGHcore/workflow/engine/nodes/knowledge/knowledge_node.py0get the success execution status. :return: succeeded status for successful operationsSTRING
HIGH…rkflow/engine/nodes/knowledge/knowledge_expert_node.py0get the success execution status. :return: succeeded status for successful operationsSTRING
HIGHcore/workflow/engine/nodes/pgsql/pgsql_node.py0get the success execution status. :return: succeeded status for successful operationsSTRING
HIGHcore/workflow/engine/nodes/plugin_tool/plugin_node.py0get the failure execution status. :return: failed status for failed operationsSTRING
HIGH…kflow/engine/nodes/knowledge_pro/knowledge_pro_node.py0get the failure execution status. :return: failed status for failed operationsSTRING
HIGHcore/workflow/engine/nodes/knowledge/knowledge_node.py0get the failure execution status. :return: failed status for failed operationsSTRING
HIGH…rkflow/engine/nodes/knowledge/knowledge_expert_node.py0get the failure execution status. :return: failed status for failed operationsSTRING
HIGHcore/workflow/engine/nodes/pgsql/pgsql_node.py0get the failure execution status. :return: failed status for failed operationsSTRING
Unused Imports176 hits · 166 pts
SeverityFileLineSnippetContext
LOWcore/memory/database/repository/middleware/manager.py8CODE
LOWcore/memory/database/repository/middleware/manager.py9CODE
LOW…ry/database/repository/middleware/adapters/__init__.py3CODE
LOWcore/memory/database/exceptions/e.py5CODE
LOWcore/memory/database/api/__init__.py8CODE
LOWcore/memory/database/api/v1/__init__.py9CODE
LOWcore/memory/database/api/v1/__init__.py9CODE
LOWcore/memory/database/api/v1/__init__.py9CODE
LOWcore/memory/database/api/v1/__init__.py14CODE
LOWcore/memory/database/api/v1/__init__.py15CODE
LOWcore/memory/database/alembic/env.py23CODE
LOWcore/memory/database/alembic/env.py24CODE
LOWcore/plugin/rpa/tests/unit/test_main.py7CODE
LOWcore/plugin/rpa/tests/unit/test_main.py9CODE
LOWcore/plugin/rpa/tests/unit/test_main.py10CODE
LOWcore/plugin/rpa/tests/unit/test_main.py11CODE
LOWcore/plugin/rpa/tests/unit/test_main.py11CODE
LOWcore/plugin/rpa/tests/unit/test_main.py14CODE
LOWcore/plugin/rpa/tests/unit/test_main.py15CODE
LOWcore/plugin/rpa/tests/unit/utils/urls/test_url_util.py9CODE
LOWcore/plugin/rpa/tests/unit/utils/log/test_logger.py7CODE
LOWcore/plugin/rpa/tests/unit/utils/log/test_logger.py8CODE
LOWcore/plugin/rpa/tests/unit/utils/log/test_logger.py12CODE
LOWcore/plugin/rpa/tests/unit/api/test_app.py7CODE
LOWcore/plugin/rpa/tests/unit/api/test_app.py8CODE
LOWcore/plugin/rpa/tests/unit/api/v1/test_execution.py8CODE
LOWcore/plugin/rpa/tests/unit/api/v1/test_execution.py9CODE
LOW…in/rpa/tests/unit/api/schemas/test_execution_schema.py7CODE
LOW…in/rpa/tests/unit/api/schemas/test_execution_schema.py7CODE
LOW…e/plugin/rpa/tests/unit/service/xiaowu/test_process.py8CODE
LOW…e/plugin/rpa/tests/unit/service/xiaowu/test_process.py9CODE
LOWcore/plugin/rpa/tests/unit/consts/test_const.py7CODE
LOW…e/plugin/rpa/tests/integration/test_api_integration.py9CODE
LOW…e/plugin/rpa/tests/integration/test_api_integration.py14CODE
LOWcore/plugin/link/utils/sid/sid_generator2.py7CODE
LOW…e/plugin/link/utils/open_api_schema/response_filter.py1CODE
LOWcore/plugin/link/alembic/env.py7CODE
LOWcore/plugin/link/domain/models/utils.py25CODE
LOWcore/plugin/link/consts/const.py12CODE
LOWcore/plugin/link/consts/const.py12CODE
LOWcore/plugin/link/consts/const.py12CODE
LOWcore/plugin/link/consts/const.py12CODE
LOWcore/plugin/link/consts/const.py12CODE
LOWcore/plugin/link/consts/const.py12CODE
LOWcore/plugin/link/consts/const.py12CODE
LOWcore/plugin/link/consts/const.py12CODE
LOWcore/plugin/link/consts/const.py12CODE
LOWcore/plugin/link/consts/const.py12CODE
LOWcore/plugin/link/consts/const.py12CODE
LOWcore/plugin/link/consts/const.py12CODE
LOWcore/plugin/link/consts/const.py12CODE
LOWcore/plugin/link/consts/const.py30CODE
LOWcore/plugin/link/consts/const.py30CODE
LOWcore/plugin/link/consts/const.py30CODE
LOWcore/plugin/link/consts/const.py30CODE
LOWcore/plugin/link/consts/const.py30CODE
LOWcore/plugin/link/consts/const.py40CODE
LOWcore/plugin/link/consts/const.py40CODE
LOWcore/plugin/link/consts/const.py40CODE
LOWcore/plugin/link/consts/const.py48CODE
116 more matches not shown…
Docstring Block Structure32 hits · 160 pts
SeverityFileLineSnippetContext
HIGHcore/memory/database/domain/entity/general.py33 Safely parse and execute SQL with automatic parameter binding. Args: session: SQLAlchemy AsyncSession STRING
HIGHcore/plugin/link/infra/tool_exector/http_auth.py135 Parse a URL into its components. Args: requset_url (str): The URL to parse Returns: Url: STRING
HIGHcore/plugin/link/infra/tool_exector/process.py190Execute the HTTP request with proper authentication and validation. Args: span: Tracing span for reSTRING
HIGHcore/plugin/link/domain/models/utils.py319Get a field value from a Redis hash. Args: name: The hash name. key: The field key withSTRING
HIGHcore/plugin/link/domain/models/utils.py342Delete one or more fields from a Redis hash. Args: name: The hash name. *key: Variable STRING
HIGHcore/plugin/link/domain/models/utils.py374Get all field-value pairs from a Redis hash. Args: name: The hash name. Returns: STRING
HIGHcore/knowledge/infra/desk/sparkdesk.py25 Asynchronously execute SparkDesk knowledge base query. Args: query: Query string repo_ids: KnoSTRING
HIGHcore/knowledge/infra/desk/sparkdesk.py52 Asynchronously send request to SparkDesk API (using aiohttp) Args: body: Request body data metSTRING
HIGHcore/knowledge/infra/xinghuo/xinghuo.py27 Upload file to Xinghuo knowledge base. Args: url: File URL or path wiki_split_extends: Wiki spSTRING
HIGHcore/knowledge/infra/xinghuo/xinghuo.py79 Perform chunking processing on documents. Args: file_id: File ID cut_off: Cutoff character lisSTRING
HIGHcore/knowledge/infra/xinghuo/xinghuo.py150 Get document chunk content. Args: file_id: File ID Returns: List of document chunk contenSTRING
HIGHcore/knowledge/infra/xinghuo/xinghuo.py391 Send asynchronous request to Xinghuo knowledge base API. Args: body: Request body data url: ReSTRING
HIGHcore/knowledge/infra/xinghuo/xinghuo.py533 Process form HTTP response Args: resp: HTTP response object url: Request URL span_contSTRING
HIGHcore/knowledge/infra/xinghuo/xinghuo.py606 Send form request to Xinghuo knowledge base API (using native aiohttp). Args: body: Request body data STRING
HIGHcore/knowledge/infra/aiui/aiui.py109 Parse document Args: file_url: File URL resource_type: Resource type **kwargs: Other pSTRING
HIGHcore/knowledge/infra/aiui/aiui.py257 Send request to AIUI service Args: post_body: Request body url: URL method: HTTP methoSTRING
HIGHcore/knowledge/infra/ragflow/ragflow_utils.py464 Wait for document parsing completion Args: dataset_id: Dataset ID doc_id: DocuSTRING
HIGHcore/knowledge/infra/ragflow/ragflow_client.py493 Upload document to the specified dataset. Resolution strategy: - When ``dataset_id`` is non-empty, resolveSTRING
HIGHcore/knowledge/infra/ragflow/ragflow_client.py677 Fetch all chunks for a single document by paginating through the RAGFlow API. Uses the server-reported ``totalSTRING
HIGHcore/knowledge/infra/ragflow/ragflow_client.py959 Handle parsing status and determine if parsing is complete Args: doc_id: Document ID run_statuSTRING
HIGHcore/knowledge/infra/ragflow/ragflow_client.py987 Wait for document parsing completion Args: dataset_id: Dataset ID doc_id: Document ID STRING
HIGHcore/knowledge/utils/verification.py12 Check if parameters are non-empty. Args: *args: List of parameters to check Returns: boolSTRING
HIGHcore/knowledge/api/v1/api.py92 Unified handling of RAG operations, response logging, metric counting, and exception handling. Args: sSTRING
HIGHcore/knowledge/service/rag_strategy_factory.py30 Get the corresponding strategy instance based on ragType. Args: ragType: The RAG type idenSTRING
HIGHcore/knowledge/service/impl/sparkdesk_strategy.py52 Split file into multiple chunks Args: fileUrl: File url length_range: Length rSTRING
HIGHcore/knowledge/service/impl/sparkdesk_strategy.py76 Save chunks to knowledge base Args: doc_id: Document ID group: Group name STRING
HIGHcore/knowledge/service/impl/sparkdesk_strategy.py104 Update chunks Args: doc_id: Document ID group: Group name uid: UseSTRING
HIGHcore/knowledge/service/impl/sparkdesk_strategy.py127 Delete chunks Args: doc_id: Document ID chunk_ids: Chunk ID list *STRING
HIGHcore/knowledge/service/impl/sparkdesk_strategy.py146 Query all chunks of a document Args: doc_id: Document ID **kwargs: Other paramSTRING
HIGHcore/knowledge/service/impl/sparkdesk_strategy.py162 Query document name information Args: doc_id: Document ID **kwargs: Other paraSTRING
HIGHcore/knowledge/service/impl/ragflow_strategy.py920 Delete knowledge chunks using RAGFlow. Args: docId: Document ID chunkIds: ListSTRING
HIGHcore/knowledge/service/impl/cbg_strategy.py302 Delete chunks Args: docId: Document ID chunkIds: Chunk ID list **kSTRING
Deep Nesting168 hits · 158 pts
SeverityFileLineSnippetContext
LOWcore/memory/database/main.py224CODE
LOW…e/repository/middleware/database/database_migration.py26CODE
LOWcore/memory/database/tests/test_exec_dml.py350CODE
LOWcore/memory/database/tests/test_db_operator.py148CODE
LOWcore/memory/database/tests/test_db_operator.py221CODE
LOWcore/memory/database/tests/test_db_operator.py383CODE
LOWcore/memory/database/tests/test_exec_ddl.py123CODE
LOWcore/memory/database/utils/retry.py42CODE
LOWcore/memory/database/utils/retry.py55CODE
LOWcore/memory/database/utils/retry.py57CODE
LOWcore/memory/database/api/v1/exec_dml.py628CODE
LOWcore/memory/database/api/v1/exec_dml.py659CODE
LOWcore/memory/database/api/v1/exec_dml.py1061CODE
LOWcore/memory/database/api/v1/db_operator.py280CODE
LOWcore/memory/database/api/v1/exec_ddl.py44CODE
LOWcore/memory/database/api/v1/exec_ddl.py120CODE
LOWcore/memory/database/api/v1/exec_ddl.py180CODE
LOWcore/plugin/rpa/main.py41CODE
LOWcore/plugin/rpa/infra/xiaowu/tasks.py93CODE
LOWcore/plugin/rpa/tests/test_runner.py289CODE
LOWcore/plugin/rpa/tests/test_runner.py169CODE
LOWcore/plugin/rpa/tests/unit/api/v1/test_health_check.py83CODE
LOWcore/plugin/link/main.py45CODE
LOWcore/plugin/link/infra/kafka_telemetry.py68CODE
LOWcore/plugin/link/infra/tool_crud/process.py148CODE
LOWcore/plugin/link/infra/tool_crud/process.py183CODE
LOWcore/plugin/link/infra/tool_exector/process.py228CODE
LOWcore/plugin/link/infra/tool_exector/process.py251CODE
LOWcore/plugin/link/tests/test_runner.py140CODE
LOWcore/plugin/link/tests/unit/test_domain_models.py249CODE
LOWcore/plugin/link/tests/unit/test_domain_models.py441CODE
LOWcore/plugin/link/tests/unit/test_main.py125CODE
LOWcore/plugin/link/tests/unit/test_main.py148CODE
LOW…e/plugin/link/utils/open_api_schema/schema_validate.py96CODE
LOW…e/plugin/link/utils/open_api_schema/schema_validate.py135CODE
LOWcore/plugin/link/utils/open_api_schema/schema_parser.py59CODE
LOWcore/plugin/link/service/enterprise/extension.py34CODE
LOW…/plugin/link/service/community/tools/mcp/mcp_server.py89CODE
LOW…/plugin/link/service/community/tools/mcp/mcp_server.py160CODE
LOW…/plugin/link/service/community/tools/mcp/mcp_server.py277CODE
LOW…link/service/community/tools/http/management_server.py317CODE
LOW…link/service/community/tools/http/management_server.py387CODE
LOW…/link/service/community/tools/http/execution_server.py230CODE
LOWcore/plugin/link/domain/models/utils.py341CODE
LOWcore/plugin/link/domain/models/utils.py373CODE
LOWcore/plugin/aitools/platform_account_config.py60CODE
LOWcore/plugin/aitools/utils/oss_utils.py15CODE
LOW…aitools/service/ocr_llm/req_ase_ability_ocr_service.py83CODE
LOW…aitools/service/ocr_llm/req_ase_ability_ocr_service.py122CODE
LOW…aitools/service/ocr_llm/req_ase_ability_ocr_service.py195CODE
LOWcore/plugin/aitools/service/ise/ise_client.py50CODE
LOWcore/plugin/aitools/service/ise/ise_client.py89CODE
LOWcore/plugin/aitools/service/ise/ise_client.py390CODE
LOWcore/agent/main.py179CODE
LOWcore/agent/tests/test_workflow_agent_builder.py91CODE
LOWcore/agent/tests/test_workflow_agent_builder.py136CODE
LOWcore/agent/api/v1/base_api.py105CODE
LOWcore/agent/service/runner/workflow_agent_runner.py66CODE
LOWcore/agent/service/runner/workflow_agent_runner.py188CODE
LOWcore/agent/service/plugin/link.py61CODE
108 more matches not shown…
Modern Structural Boilerplate91 hits · 98 pts
SeverityFileLineSnippetContext
LOWcore/memory/database/repository/middleware/base.py26 def set_ready(self) -> None:CODE
LOW…ry/database/repository/middleware/adapters/__init__.py5__all__ = ["get_adapter"]CODE
LOWcore/memory/database/api/__init__.py10__all__ = ["CustomException"]CODE
LOWcore/memory/database/api/v1/__init__.py17__all__ = [CODE
LOWcore/memory/database/domain/entity/schema.py10async def set_search_path_by_schema(session: AsyncSession, schema: str) -> None:CODE
LOWcore/plugin/rpa/utils/log/logger.py27def set_log(log_level: Optional[str] = None, log_path: Optional[str] = None) -> None:CODE
LOWcore/plugin/rpa/api/app.py134 def set_config() -> None:CODE
LOWcore/plugin/rpa/consts/const.py33__all__ = [CODE
LOWcore/plugin/link/infra/tool_crud/process.py91 def update_tools(self, tool_info: List[Dict[str, Any]]) -> None:CODE
LOWcore/plugin/link/consts/const.py95__all__ = [CODE
LOWcore/plugin/aitools/utils/otlp_utils.py16def update_span(response: BaseResponse, span: Optional[SpanLike] = None) -> None:CODE
LOWcore/plugin/aitools/common/clients/adapters.py33 def set_attribute(self, key: str, value: object) -> None:CODE
LOWcore/plugin/aitools/common/clients/adapters.py36 def set_attributes(self, attr: Dict) -> None:CODE
LOWcore/plugin/aitools/common/clients/adapters.py69 def set_attribute(self, key: str, value: object) -> None:CODE
LOWcore/plugin/aitools/common/clients/adapters.py72 def set_attributes(self, attr: Dict) -> None:CODE
LOWcore/plugin/aitools/common/clients/adapters.py109 def set_attribute(self, key: str, value: object) -> None:CODE
LOWcore/plugin/aitools/common/clients/adapters.py113 def set_attributes(self, attr: Dict) -> None:CODE
LOWcore/plugin/aitools/common/clients/adapters.py144 def set_attribute(self, key: str, value: object) -> None:CODE
LOWcore/plugin/aitools/common/clients/adapters.py147 def set_attributes(self, attr: Dict) -> None:CODE
LOWcore/agent/tests/test_app_auth.py35def _setup_test_environment(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWcore/agent/tests/test_workflow_agent.py33def _setup_test_environment() -> None:CODE
LOWcore/agent/tests/test_skill_plugin.py31def _setup_test_environment() -> None:CODE
LOWcore/agent/tests/test_workflow_agent_runner.py30def _setup_test_environment() -> None:CODE
LOWcore/agent/tests/test_workflow_agent_builder.py40def _setup_test_environment() -> None:CODE
LOWcore/agent/tests/test_knowledge_plugin.py29def _setup_test_environment() -> None:CODE
LOWcore/agent/tests/test_base_api.py32def _setup_test_environment() -> None:CODE
LOWcore/agent/tests/test_base_llm_model.py27def _setup_test_environment() -> None:CODE
LOWcore/agent/tests/test_plugin_base_link_mcp_workflow.py31def _setup_test_environment() -> None:CODE
LOWcore/agent/tests/test_base_builder.py37def _setup_test_environment() -> None:CODE
LOWcore/agent/tests/test_runner_base_and_chat_cot.py48def _setup_test_environment(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWcore/common/settings/polaris.py42 def _set_cookie(self, session: requests.Session) -> None:CODE
LOWcore/common/settings/polaris.py57 def set_env(configs_content: str) -> None:CODE
LOWcore/common/health/__init__.py3__all__ = ["create_health_router"]CODE
LOWcore/common/otlp/metrics/meter.py52 def set_label(self, key: str, value: str) -> None:CODE
LOWcore/common/otlp/log_trace/node_log.py102 def set_next_node_id(self, next_id: str) -> None:CODE
LOWcore/common/otlp/log_trace/node_log.py110 def set_first_frame_duration(self) -> None:CODE
LOWcore/common/otlp/log_trace/node_log.py119 def set_node_first_cost_time(self, cost_time: float) -> None:CODE
LOWcore/common/otlp/log_trace/node_log.py127 def set_start(self) -> None:CODE
LOWcore/common/otlp/log_trace/node_log.py135 def set_end(self) -> None:CODE
LOWcore/common/otlp/log_trace/node_trace_log.py68 def set_end(self) -> None:CODE
LOWcore/common/otlp/log_trace/node_trace_log.py81 def set_status(self, code: int, message: str) -> None:CODE
LOWcore/common/otlp/trace/span_instance.py160 def set_status(self, status: Status) -> None:CODE
LOWcore/common/otlp/trace/span_instance.py185 def set_code(self, code: int, node_log: Optional[NodeLog] = None) -> None:CODE
LOWcore/common/otlp/trace/span.py117 def set_status(self, status: Status) -> None:CODE
LOWcore/common/otlp/trace/span.py138 def set_code(self, code: int, node_log: Optional[NodeLog] = None) -> None:CODE
LOWcore/common/service/base.py23 def set_ready(self) -> None:CODE
LOWcore/knowledge/infra/__init__.py10__all__ = [CODE
LOWcore/knowledge/infra/desk/__init__.py10__all__ = [CODE
LOWcore/knowledge/infra/xinghuo/__init__.py23__all__ = [CODE
LOWcore/knowledge/infra/aiui/__init__.py19__all__ = [CODE
LOWcore/knowledge/infra/ragflow/ragflow_utils.py28logger = logging.getLogger(__name__)CODE
LOWcore/knowledge/infra/ragflow/__init__.py26__all__ = [CODE
LOWcore/knowledge/infra/ragflow/ragflow_client.py32logger = logging.getLogger(__name__)CODE
LOW…/knowledge/tests/service/impl/ragflow_strategy_test.py39 def _setup_mock_data(self) -> None:CODE
LOWcore/knowledge/exceptions/__init__.py16__all__ = [CODE
LOWcore/knowledge/service/__init__.py12__all__ = [CODE
LOWcore/knowledge/service/impl/__init__.py12__all__ = [CODE
LOWcore/knowledge/service/impl/ragflow_strategy.py22logger = logging.getLogger(__name__)CODE
LOWcore/knowledge/domain/__init__.py11__all__ = [CODE
LOWcore/knowledge/domain/platform_account_config.py9def set_platform_account_config(config: Dict[str, Any]) -> None:CODE
31 more matches not shown…
Redundant / Tautological Comments57 hits · 89 pts
SeverityFileLineSnippetContext
LOWdocker/ragflow/migration.sh80 # Check if any of our target volumes are used by this containerCOMMENT
LOWdocker/ragflow/migration.sh135 # Check if any containers are using the volumesCOMMENT
LOWdocker/ragflow/migration.sh183 # Check if any containers are using the volumesCOMMENT
LOWdocker/ragflow/migration.sh186 # Check if backup folder existsCOMMENT
LOWdocker/ragflow/migration.sh192 # Check if all backup files existCOMMENT
LOWdocker/ragflow/migration.sh267 # Check if Docker is availableCOMMENT
LOWdocker/ragflow/launch_backend_service.sh12 # Check if .env file existsCOMMENT
LOWcore/memory/database/repository/middleware/getters.py26 # Set search_path to admin schema each time a session is obtainedCOMMENT
LOWcore/memory/database/api/v1/exec_dml.py720 # Check if name is emptyCOMMENT
LOWcore/memory/database/api/v1/exec_ddl.py249 # Check if name is emptyCOMMENT
LOWcore/plugin/rpa/tests/unit/api/v1/test_health_check.py88 # Check if the function has been registered with the routerCOMMENT
LOWcore/plugin/link/infra/tool_exector/process.py320 # Check if blacklisted domains are in URLCOMMENT
LOWcore/plugin/link/infra/tool_exector/process.py423 # Check if IP is blacklistedCOMMENT
LOWcore/plugin/link/tests/unit/test_infra_fixed.py209 # Check if the instance has expected attributesCOMMENT
LOWcore/plugin/link/utils/security/access_interceptor.py30 # Check if any domain in blacklist is present in URLCOMMENT
LOWcore/plugin/link/utils/security/access_interceptor.py142 # Check if IP is blacklistedCOMMENT
LOWcore/plugin/link/utils/security/access_interceptor.py146# Check if it's a loopback addressCOMMENT
LOWcore/plugin/link/utils/security/access_interceptor.py171 # Check if it's a loopback address (IPv4: 127.0.0.0/8, IPv6: ::1/128)COMMENT
LOW…link/service/community/tools/http/management_server.py367 if tool_info: # Check if tool_info is not NoneCODE
LOW…aitools/service/ocr_llm/req_ase_ability_ocr_service.py100 # Check if it is a title rowCOMMENT
LOW…e/plugin/aitools/service/dial_test/dial_test_client.py179 # Print resultsCOMMENT
LOW…/knowledge/tests/service/impl/ragflow_strategy_test.py637 # Check if it's an error returnCOMMENT
LOW…/knowledge/tests/service/impl/ragflow_strategy_test.py759 # Check if save was successfulCOMMENT
LOWcore/knowledge/service/rag_strategy_factory.py47 # Check if the class is abstractCOMMENT
LOWcore/knowledge/service/rag_strategy_factory.py81 # Check if the class is abstractCOMMENT
LOWcore/knowledge/service/impl/ragflow_strategy.py510 # Check if chunk already existsCOMMENT
LOW…flow/infra/providers/llm/iflytek_spark/spark_fc_llm.py114 # Check if it's a quick repair: if the last character of sid is '1', it's a quick repairCOMMENT
LOW…flow/infra/providers/llm/iflytek_spark/spark_fc_llm.py170 # Check if it's a quick repair: if the last character of sid is '1', it's a quick repairCOMMENT
LOWcore/workflow/cache/event_registry.py273 # Check if retries field existsCOMMENT
LOW…rkflow/tests/engine/callbacks/test_callback_handler.py208 # Check if response was put in queueCOMMENT
LOW…rkflow/tests/engine/callbacks/test_callback_handler.py933 # Add node to queueCOMMENT
LOWcore/workflow/extensions/otlp/trace/span.py241 # Check if content exceeds size limitCOMMENT
LOWcore/workflow/extensions/otlp/trace/span.py277 # Check if content exceeds size limitCOMMENT
LOWcore/workflow/extensions/otlp/trace/span.py311 # Check if content exceeds size limitCOMMENT
LOWcore/workflow/extensions/otlp/trace/span.py347 # Check if content exceeds size limitCOMMENT
LOWcore/workflow/extensions/fastapi/middleware/auth.py52 # Check if the path is in the exclude pathsCOMMENT
LOWcore/workflow/service/license_service.py23 # Check if license already exists for this app and groupCOMMENT
LOWcore/workflow/service/auth_service.py64 # Check if workflow is published or not taken off from all platformsCOMMENT
LOWcore/workflow/service/audit_service.py45 # Check if this is an empty end frame that needs auditCOMMENT
LOWcore/workflow/service/audit_service.py186 # Check if this is the final responseCOMMENT
LOWcore/workflow/service/publish_service.py81 # Check if tenant has permission to publish to target platformCOMMENT
LOWcore/workflow/service/publish_service.py91 # Check if tenant has permission for workflow's source platformCOMMENT
LOWcore/workflow/service/publish_service.py258 # Check if a workflow with the same group_id and version already existsCOMMENT
LOWcore/workflow/engine/dsl_engine.py262 # Check if first token has been sentCOMMENT
LOWcore/workflow/engine/dsl_engine.py930 # Check if node needs to be executedCOMMENT
LOWcore/workflow/engine/dsl_engine.py1034 # Check if this is a branch type nodeCOMMENT
LOWcore/workflow/engine/dsl_engine.py1161 # Check if error handling is neededCOMMENT
LOWcore/workflow/engine/dsl_engine.py1359 # Check if node is already being processedCOMMENT
LOWcore/workflow/engine/dsl_engine.py1756 # Check if there are any active chainsCOMMENT
LOWcore/workflow/engine/dsl_engine.py2439 # Check if normal path existsCOMMENT
LOWcore/workflow/engine/callbacks/callback_handler.py582 # Check if queue consumption is completeCOMMENT
LOW…w/engine/nodes/question_answer/question_answer_node.py690 # Return resultCOMMENT
LOWcore/workflow/engine/nodes/llm/spark_llm_node.py215 # Check if this input is defined as multimodal in the DSL protocolCOMMENT
LOWcore/workflow/engine/nodes/plugin_tool/plugin_node.py66 # Check if current key matches the target business input keyCOMMENT
LOWcore/workflow/engine/nodes/agent/agent_node.py560 # Set has_sent_first_token to TrueCOMMENT
LOW.github/workflows/release.yml62 # Check if it's a pre-release version (contains -, alpha, beta, rc, etc.)COMMENT
LOW.github/workflows/ci.yml293 # Check if test script is actually for unit testing (not dev server)COMMENT
Over-Commented Block84 hits · 84 pts
SeverityFileLineSnippetContext
LOW.pre-commit-config.yaml1# =============================================================================COMMENT
LOWdocker/ragflow/docker-compose-macos.yml61 # - ./ragflow-logs:/ragflow/logsCOMMENT
LOWdocker/ragflow/docker-compose.yml1include:COMMENT
LOWdocker/ragflow/docker-compose.yml61 # - ./nginx/ragflow.conf:/etc/nginx/conf.d/ragflow.confCOMMENT
LOWdocker/astronAgent/docker-compose.yaml61 # Elasticsearch Search EngineCOMMENT
LOWdocker/astronAgent/docker-compose.yaml81 # Kibana (Elasticsearch Observability)COMMENT
LOWdocker/astronAgent/docker-compose.yaml101# environment:COMMENT
LOWdocker/astronAgent/docker-compose.yaml141 command: server /data --console-address ":9001"COMMENT
LOWdocker/astronAgent/docker-compose-with-auth.yaml1# ============================================================================COMMENT
LOWcore/memory/database/alembic/alembic.ini1# A generic, single database configuration.COMMENT
LOWcore/memory/database/alembic/alembic.ini21# timezone =COMMENT
LOWcore/memory/database/alembic/alembic.ini41COMMENT
LOWcore/memory/database/alembic/alembic.ini61COMMENT
LOWcore/plugin/link/alembic.ini1# A generic, single database configuration.COMMENT
LOWcore/plugin/link/alembic.ini21# timezone =COMMENT
LOWcore/plugin/link/alembic.ini41COMMENT
LOWcore/plugin/link/alembic.ini61# Database URL will be read from config.env file via env.pyCOMMENT
LOW…re/plugin/link/utils/json_schemas/read_json_schemas.py181 import jsonschemaCOMMENT
LOW…re/plugin/link/utils/json_schemas/read_json_schemas.py201 # "tool_ids": [COMMENT
LOW…re/plugin/link/utils/json_schemas/read_json_schemas.py221 # # {COMMENT
LOW…re/plugin/link/utils/json_schemas/read_json_schemas.py241 # {COMMENT
LOW…re/plugin/link/utils/json_schemas/read_json_schemas.py261 # "input": "xxxxxxxx"COMMENT
LOW…re/plugin/link/utils/json_schemas/read_json_schemas.py301 # "description": "xxxxxx",COMMENT
LOWcore/plugin/aitools/tests/const/test_const.py321 assert os.getenv(SERVICE_NAME_KEY) == "test_service"COMMENT
LOWcore/workflow/alembic/alembic.ini1# A generic, single database configuration.COMMENT
LOWcore/workflow/alembic/alembic.ini21# timezone =COMMENT
LOWcore/workflow/alembic/alembic.ini41COMMENT
LOWcore/workflow/alembic/alembic.ini61COMMENT
LOWcore/workflow/engine/nodes/llm/prompt_ai_personal.py1# System template for AI personality role-playingCOMMENT
LOWmakefiles/parse_localci.sh1#!/usr/bin/env bashCOMMENT
LOWexamples/TEMPLATE/workflow.yml1# Replace this file with your exported Astron Agent workflow DSL.COMMENT
LOW.github/workflows/codeql-security-analysis.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
LOW.github/workflows/codeql-security-analysis.yml61 build-mode: noneCOMMENT
LOW.github/workflows/codeql-security-analysis.yml81 - name: Initialize CodeQLCOMMENT
LOWconsole/frontend/src/types/plugin-store.ts201 type: string;COMMENT
LOWconsole/frontend/src/constants/index.ts101 // iconAct: promptTabActive,COMMENT
LOWconsole/frontend/src/utils/spark-utils.ts421 return output ?? [];COMMENT
LOWconsole/frontend/src/utils/spark-utils.ts441 // setQueryString,COMMENT
LOWconsole/frontend/src/utils/spark-utils.ts461 // getSourceResultArray,COMMENT
LOWconsole/frontend/src/utils/record/recorder-core.js701 // sourceStream:MediaStream ObjectCOMMENT
LOWconsole/frontend/src/utils/record/record.js181 this.transferUploadNumberMax,COMMENT
LOW…e/frontend/src/permissions/config/route-permissions.ts1import {COMMENT
LOW…e/frontend/src/permissions/config/route-permissions.ts21 // module: ModuleType.SPACE,COMMENT
LOW…e/frontend/src/permissions/config/route-permissions.ts41COMMENT
LOW…e/frontend/src/permissions/config/route-permissions.ts61 // path: '/management/evaluation_createTask',COMMENT
LOW…e/frontend/src/permissions/config/route-permissions.ts81 // path: '/management/evaluation/dimensions',COMMENT
LOW…e/frontend/src/permissions/config/route-permissions.ts101 module: ModuleType.SPACE,COMMENT
LOW…e/frontend/src/permissions/config/route-permissions.ts121 // {COMMENT
LOW…/src/components/sidebar/bottom-login/index.module.scss81 flex: 1;COMMENT
LOW…/src/components/sidebar/bottom-login/index.module.scss401 // background: transparent;COMMENT
LOW…src/components/workflow/drawer/chat-debugger/index.tsx461 // getSceneList().then(data => {COMMENT
LOWconsole/frontend/src/components/wx-modal/index.tsx101 // } catch (err) {COMMENT
LOWconsole/frontend/src/components/wx-modal/index.tsx121COMMENT
LOWconsole/frontend/src/components/wx-modal/index.tsx141 // .finally(() => setSpinning(false));COMMENT
LOWconsole/frontend/src/components/wx-modal/index.tsx161 // setBotDetailInfo(res);COMMENT
LOWconsole/frontend/src/components/wx-modal/index.tsx181 // content?: string;COMMENT
LOWconsole/frontend/src/components/wx-modal/index.tsx201 // message.success(t('releaseModal.mcpReleaseSuccess'));COMMENT
LOWconsole/frontend/src/components/wx-modal/index.tsx261 };COMMENT
LOWconsole/frontend/src/components/wx-modal/index.tsx281 // });COMMENT
LOWconsole/frontend/src/components/wx-modal/index.tsx301 // });COMMENT
24 more matches not shown…
Self-Referential Comments26 hits · 81 pts
SeverityFileLineSnippetContext
MEDIUMcore/memory/database/repository/middleware/manager.py72 # Create the actual serviceCOMMENT
MEDIUMcore/memory/database/tests/test_exec_dml.py561 # Create a parsed SQL with potentially invalid expressionCOMMENT
MEDIUMcore/memory/database/tests/test_common.py160 # Create a mock DBAPIErrorCOMMENT
MEDIUMcore/memory/database/tests/test_common.py204 # Create a mock general exceptionCOMMENT
MEDIUMcore/plugin/link/tests/unit/test_utils.py371 # Create a more realistic mock recordCOMMENT
MEDIUMcore/plugin/link/tests/unit/test_infra_fixed.py135 # Create a proper mock span with context manager supportCOMMENT
MEDIUM…lugin/aitools/tests/api/routes/test_service_scanner.py24 # Create a mock service functionCOMMENT
MEDIUMcore/common/tests/test_audit_system.py374 # Create a mock output frameCOMMENT
MEDIUMcore/common/tests/test_audit_system.py391 # Create a mock output frameCOMMENT
MEDIUMcore/common/tests/test_audit_system.py426 # Create a concrete implementation for testingCOMMENT
MEDIUMcore/common/tests/test_service_base.py16 # Create a concrete service class for testingCOMMENT
MEDIUMcore/common/tests/test_main.py146 # Create a test serviceCOMMENT
MEDIUMcore/common/service/__init__.py68 # Create the actual serviceCOMMENT
MEDIUMcore/knowledge/api/v1/api.py145 # Create a CodeEnum-like object for the responseCOMMENT
MEDIUMcore/knowledge/api/v1/api.py154 # Create a CodeEnum-like object for the responseCOMMENT
MEDIUMcore/workflow/main.py91 # Create the FastAPI application instanceCOMMENT
MEDIUM…rkflow/tests/engine/callbacks/test_callback_handler.py798 # Create a task that will be cancelledCOMMENT
MEDIUM…rkflow/tests/engine/callbacks/test_callback_handler.py863 # Create a second result to continue loop after exceptionCOMMENT
MEDIUMcore/workflow/extensions/middleware/manager.py83 # Create the actual serviceCOMMENT
MEDIUMcore/workflow/extensions/middleware/database/utils.py34 # Create a new session from the database service engineCOMMENT
MEDIUMcore/workflow/extensions/otlp/util/ip.py17 # Create a UDP socket for connection testingCOMMENT
MEDIUMcore/workflow/extensions/otlp/metric/metric.py89 # Create a Meter from the global MeterProviderCOMMENT
MEDIUMcore/workflow/service/publish_service.py265 # Create a new versioned workflow backupCOMMENT
MEDIUMcore/workflow/engine/nodes/llm/spark_llm_node.py206 # Create a mapping from input identifiers to their DSL-defined fileTypesCOMMENT
MEDIUMcore/workflow/engine/nodes/message/message_node.py59 # Initialize execution variablesCOMMENT
MEDIUMcore/workflow/engine/nodes/end/end_node.py61 # Initialize execution variablesCOMMENT
Modern AI Meta-Vocabulary23 hits · 61 pts
SeverityFileLineSnippetContext
MEDIUMCONTRIBUTING.md128│ └── workflow/ # Workflow orchestration (Python)CODE
MEDIUMcore/workflow/engine/nodes/knowledge_pro/consts.py18 AGENTIC_RAG = 1 # Agent-based RAG with deep search capabilitiesCODE
MEDIUMcore/workflow/engine/nodes/knowledge_pro/consts.py19 LONG_RAG = 2 # Long context RAG for extended document processingCODE
MEDIUMcore/workflow/engine/nodes/knowledge_pro/consts.py48 AIUI_RAG2 = 1 # AIUI RAG version 2 repositoryCODE
MEDIUMcore/workflow/engine/nodes/knowledge_pro/consts.py49 CBG_RAG = 2 # CBG (Content-Based Generation) RAG repositoryCODE
MEDIUM…kflow/engine/nodes/knowledge_pro/knowledge_pro_node.py56 # RAG configuration parametersCOMMENT
MEDIUM…kflow/engine/nodes/knowledge_pro/knowledge_pro_node.py57 ragType: Literal[1, 2] = Field(...) # RAG type (1: AGENTIC_RAG, 2: LONG_RAG)CODE
MEDIUM…kflow/engine/nodes/knowledge_pro/knowledge_pro_node.py133 # Validate CBG RAG parameters before proceedingCOMMENT
MEDIUMcore/workflow/engine/nodes/knowledge/knowledge_node.py81 ) # Type of RAG (Retrieval-Augmented Generation) to useCODE
MEDIUM…rkflow/engine/nodes/knowledge/knowledge_expert_node.py66 ) # Type of RAG (Retrieval-Augmented Generation) to useCODE
MEDIUMfaq/features.md66## 知识库(RAG)引用有问题,无法检索或回答?COMMENT
MEDIUMfaq/features.md71## 知识库 (RAG) 如何防止模型幻觉?COMMENT
MEDIUMdocs/DEPLOYMENT_GUIDE.md229# Create Spark RAG datasetCOMMENT
MEDIUMdocs/CONTRIBUTING.md128│ └── workflow/ # Workflow orchestration (Python)CODE
MEDIUMdocs/DEPLOYMENT_GUIDE_WITH_AUTH.md153# Create Spark RAG datasetCOMMENT
MEDIUMdocs/DEPLOYMENT_GUIDE_WITH_AUTH_RPA.md154# Create Spark RAG datasetCOMMENT
MEDIUM…/resources/db/migration/V1.14__insert_config_data2.sql2083 "markdown": "## Purpose\\nIn complex scenarios, use intelligent strategy to query knowledge base and generate suSTRING
MEDIUM…es/db/migration/V1.17__insert_workflow_node_config.sql152 "markdown": "## 用途\\n在复杂的场景下,通过智能策略调用知识库,可以指定知识库进行知识检索和总结回复。\\n## 回答模式\\n选择用于对问题进行拆解以及对召回结果进行总结的大模型。\\n## 策略选择\\CODE
MEDIUM…n/resources/db/migration/V1.13__insert_config_data.sql1648 "markdown": "## 用途\\n在复杂的场景下,通过智能策略调用知识库,可以指定知识库进行知识检索和总结回复。\\n## 回答模式\\n选择用于对问题进行拆解以及对召回结果进行总结的大模型。\\n## 策略选择\\STRING
MEDIUM…end/toolkit/src/main/resources/application-toolkit.yml46# RAG/Search generates maximum character count threshold (too large affects performance)COMMENT
MEDIUM…end/toolkit/src/main/resources/application-toolkit.yml48# CBG RAG compatible source types (sources that have same behavior as CBG-RAG)COMMENT
MEDIUM…end/toolkit/src/main/resources/application-toolkit.yml52# AIUI RAG compatible source types (sources that have same behavior as AIUI-RAG2)COMMENT
MEDIUM…end/toolkit/src/main/resources/application-toolkit.yml55# Spark RAG compatible source types (sources that have same behavior as SparkDesk-RAG)COMMENT
Structural Annotation Overuse33 hits · 58 pts
SeverityFileLineSnippetContext
LOW…/knowledge/tests/service/impl/ragflow_strategy_test.py713 # Step 1: Save some chunks for subsequent updateCOMMENT
LOW…/knowledge/tests/service/impl/ragflow_strategy_test.py890 # Step 1: File splitCOMMENT
LOW…/knowledge/tests/service/impl/ragflow_strategy_test.py771 # Step 2: Prepare update dataCOMMENT
LOW…/knowledge/tests/service/impl/ragflow_strategy_test.py909 # Step 2: Batch save testCOMMENT
LOW…/knowledge/tests/service/impl/ragflow_strategy_test.py933 # Step 3: Single chunk update testCOMMENT
LOW…/knowledge/tests/service/impl/ragflow_strategy_test.py967 # Step 4: Query interface testCOMMENT
LOW…/knowledge/tests/service/impl/ragflow_strategy_test.py996 # Step 5: Validate final stateCOMMENT
LOWcore/knowledge/service/impl/ragflow_strategy.py363 # Step 7: Convert to standard formatCOMMENT
LOWcore/knowledge/service/impl/ragflow_strategy.py342 # Step 1: Resolve datasetCOMMENT
LOWcore/knowledge/service/impl/ragflow_strategy.py997 # Step 1: Get total countCOMMENT
LOWcore/knowledge/service/impl/ragflow_strategy.py1017 # Step 2: Get all dataCOMMENT
LOWcore/workflow/infra/audit_system/utils.py92 # Step 1: Try to split by ending punctuation to find complete sentencesCOMMENT
LOWcore/workflow/infra/audit_system/utils.py99 # Step 2: If no complete sentences found, split by non-ending punctuationCOMMENT
LOWcore/workflow/infra/audit_system/utils.py107 # Step 3: Fallback - return first N characters as a single sentenceCOMMENT
LOWcore/workflow/engine/entities/history.py38 # Step 1: Classify images and other elementsCOMMENT
LOWcore/workflow/engine/entities/history.py41 # Step 2: Take the latest image onlyCOMMENT
LOWcore/workflow/engine/entities/history.py45 # Step 3: Group other messages in pairs (one round = 2 messages)COMMENT
LOWcore/workflow/engine/entities/history.py50 # Step 4: Limit by roundsCOMMENT
LOWcore/workflow/engine/entities/history.py55 # Step 5: Combine historyCOMMENT
LOWdocs/DEPLOYMENT_GUIDE.md27### Step 1: Start Casdoor Identity Authentication ServiceCOMMENT
LOWdocs/DEPLOYMENT_GUIDE.md46### Step 2: Start RagFlow Knowledge Base Service (Optional)COMMENT
LOWdocs/DEPLOYMENT_GUIDE.md75### Step 3: Integrate Casdoor and Basic Environment Configuration (Configure as needed)COMMENT
LOWdocs/DEPLOYMENT_GUIDE.md153### Step 4: Start astronAgent Core Services (Required Deployment Step)COMMENT
LOWdocs/DEPLOYMENT_GUIDE_WITH_AUTH.md27### Step 1: Start RagFlow Knowledge Base Service (Optional, deploy as needed)COMMENT
LOWdocs/DEPLOYMENT_GUIDE_WITH_AUTH.md62### Step 2: Configure AstronAgent Environment VariablesCOMMENT
LOWdocs/DEPLOYMENT_GUIDE_WITH_AUTH.md168### Step 3: Start AstronAgent Core Services (Including Casdoor Authentication Service)COMMENT
LOWdocs/DEPLOYMENT_GUIDE_WITH_AUTH.md183### Step 4: Configure Platform Account Management (Optional, configure business capabilities as needed)COMMENT
LOWdocs/DEPLOYMENT_GUIDE_WITH_AUTH.md194### Step 5: Modify Casdoor Authentication (Optional)COMMENT
LOWdocs/DEPLOYMENT_GUIDE_WITH_AUTH_RPA.md28### Step 1: Start RagFlow Knowledge Base Service (Optional, deploy as needed)COMMENT
LOWdocs/DEPLOYMENT_GUIDE_WITH_AUTH_RPA.md63### Step 2: Configure AstronAgent Environment VariablesCOMMENT
LOWdocs/DEPLOYMENT_GUIDE_WITH_AUTH_RPA.md169### Step 3: Start AstronAgent Core Services (includes Casdoor authentication service, RPA backend service)COMMENT
LOWdocs/DEPLOYMENT_GUIDE_WITH_AUTH_RPA.md184### Step 4: Configure Platform Account Management (Optional, configure business capabilities as needed)COMMENT
LOWdocs/DEPLOYMENT_GUIDE_WITH_AUTH_RPA.md195### Step 5: Modify Casdoor Authentication (Optional)COMMENT
Magic Placeholder Names9 hits · 48 pts
SeverityFileLineSnippetContext
HIGHexamples/README.md76 or phone numbers. **Remove or replace them with placeholders** (e.g. `YOUR_API_KEY`) beforeCODE
HIGHexamples/README.md118- **不含任何密钥**:⚠️ 导出的 DSL 可能内嵌 API Key、token、个人端点、OSS 地址、手机号等,提交前务必删除或替换为占位符(如 `YOUR_API_KEY`)。含真实凭据的 PR 会被拒绝。CODE
HIGHexamples/TEMPLATE/workflow.yml19# and replace them with placeholders such as YOUR_API_KEY.COMMENT
HIGHexamples/ai-radio-podcast/workflow.yml451 apiKey: YOUR_API_KEYCODE
HIGHexamples/ai-radio-podcast/workflow.yml585 apiKey: YOUR_API_KEYCODE
HIGHexamples/ai-radio-podcast/workflow.yml760 apiKey: YOUR_API_KEYCODE
HIGHexamples/ai-radio-podcast/workflow.yml863 apiKey: YOUR_API_KEYCODE
HIGHexamples/ai-radio-podcast/workflow.yml964 apiKey: YOUR_API_KEYCODE
HIGHexamples/ai-radio-podcast/README.md352. Replace the `YOUR_API_KEY` / `YOUR_API_SECRET` / `YOUR_APP_ID` placeholders with your own credentials.CODE
Verbosity Indicators19 hits · 37 pts
SeverityFileLineSnippetContext
LOW…/knowledge/tests/service/impl/ragflow_strategy_test.py713 # Step 1: Save some chunks for subsequent updateCOMMENT
LOW…/knowledge/tests/service/impl/ragflow_strategy_test.py890 # Step 1: File splitCOMMENT
LOW…/knowledge/tests/service/impl/ragflow_strategy_test.py771 # Step 2: Prepare update dataCOMMENT
LOW…/knowledge/tests/service/impl/ragflow_strategy_test.py909 # Step 2: Batch save testCOMMENT
LOW…/knowledge/tests/service/impl/ragflow_strategy_test.py933 # Step 3: Single chunk update testCOMMENT
LOW…/knowledge/tests/service/impl/ragflow_strategy_test.py967 # Step 4: Query interface testCOMMENT
LOW…/knowledge/tests/service/impl/ragflow_strategy_test.py996 # Step 5: Validate final stateCOMMENT
LOWcore/knowledge/service/impl/ragflow_strategy.py363 # Step 7: Convert to standard formatCOMMENT
LOWcore/knowledge/service/impl/ragflow_strategy.py342 # Step 1: Resolve datasetCOMMENT
LOWcore/knowledge/service/impl/ragflow_strategy.py997 # Step 1: Get total countCOMMENT
LOWcore/knowledge/service/impl/ragflow_strategy.py1017 # Step 2: Get all dataCOMMENT
LOWcore/workflow/infra/audit_system/utils.py92 # Step 1: Try to split by ending punctuation to find complete sentencesCOMMENT
LOWcore/workflow/infra/audit_system/utils.py99 # Step 2: If no complete sentences found, split by non-ending punctuationCOMMENT
LOWcore/workflow/infra/audit_system/utils.py107 # Step 3: Fallback - return first N characters as a single sentenceCOMMENT
LOWcore/workflow/engine/entities/history.py38 # Step 1: Classify images and other elementsCOMMENT
LOWcore/workflow/engine/entities/history.py41 # Step 2: Take the latest image onlyCOMMENT
LOWcore/workflow/engine/entities/history.py45 # Step 3: Group other messages in pairs (one round = 2 messages)COMMENT
LOWcore/workflow/engine/entities/history.py50 # Step 4: Limit by roundsCOMMENT
LOWcore/workflow/engine/entities/history.py55 # Step 5: Combine historyCOMMENT
Fake / Example Data34 hits · 36 pts
SeverityFileLineSnippetContext
LOWdocker/astronAgent/casdoor/conf/init_data.json842 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json851 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json860 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json869 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json878 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json887 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json896 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json905 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json914 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json923 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json932 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json713 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json726 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json739 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json752 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json765 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json778 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json791 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json804 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json817 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json830 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json1054 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json1067 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json1080 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json1093 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json1106 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json1119 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json1132 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json1145 "placeholder": "",CODE
LOWdocker/astronAgent/casdoor/conf/init_data.json1394 "email": "admin@example.com",CODE
LOW…re/plugin/link/utils/json_schemas/read_json_schemas.py266 # "placeholder": [COMMENT
LOW…utils/json_schemas/schema_files/action_run_schema.json265 "placeholder": {CODE
LOW…c/components/workflow/modal/knowledge-detail/index.tsx916 searchRef.current.setAttribute('placeholder', '请输入');CODE
LOW…source-management/knowledge-detail/file-page/index.tsx253 // searchRef.current.setAttribute('placeholder', '请输入')COMMENT
AI Structural Patterns14 hits · 14 pts
SeverityFileLineSnippetContext
LOWcore/plugin/link/infra/tool_exector/http_auth.py267CODE
LOWcore/plugin/aitools/api/decorators/api_service.py12CODE
LOWcore/agent/infra/app_auth.py49CODE
LOWcore/knowledge/infra/desk/sparkdesk.py46CODE
LOWcore/knowledge/infra/xinghuo/xinghuo.py70CODE
LOWcore/knowledge/infra/xinghuo/xinghuo.py249CODE
LOWcore/knowledge/infra/xinghuo/xinghuo.py325CODE
LOWcore/knowledge/infra/xinghuo/xinghuo.py355CODE
LOWcore/knowledge/infra/xinghuo/xinghuo.py385CODE
LOWcore/knowledge/api/v1/api.py295CODE
LOWcore/knowledge/service/impl/ragflow_strategy.py275CODE
LOWcore/workflow/engine/callbacks/openai_types_sse.py199CODE
LOWcore/workflow/engine/nodes/base_node.py1231CODE
LOW…w/engine/nodes/question_answer/question_answer_node.py889CODE
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGH…e/agent/engine/nodes/cot_process/cot_process_prompt.py37 "call tool": null,CODE
HIGHcore/workflow/engine/nodes/question_answer/prompt.py73 "<缺失字段名1>": null,CODE
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHconsole/frontend/src/locales/en.js61 'All content is generated by AI model, and the accuracy and completeness of content cannot be guaranteed. It does noCODE
AI Slop Vocabulary5 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMcore/plugin/rpa/tests/test_runner.py1"""Test runner script for RPA service comprehensive testing.STRING
MEDIUMcore/plugin/rpa/tests/test_runner.py263 """Generate a comprehensive test report."""STRING
MEDIUMcore/plugin/link/tests/test_runner.py124 """Generate comprehensive test report"""STRING
MEDIUMcore/workflow/tests/engine/dsl/test_engine.py530 """Test comprehensive error handler chain coverage for various exception types.STRING
MEDIUMcore/workflow/tests/engine/dsl/test_engine.py582 """Test comprehensive error scenario coverage for WorkflowEngine.STRING
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWcore/workflow/engine/nodes/base_node.py896 # TODO: Handle error reportingCOMMENT
LOWcore/workflow/engine/nodes/plugin_tool/link_client.py127 # TODO: Add validation for required parametersCOMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/codeql-security-analysis.yml68 # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize howCOMMENT
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWcore/common/otlp/log_trace/node_trace_log.py106 def process_data(data: dict, depth: int = 0) -> Any:CODE
LOWcore/workflow/extensions/otlp/log_trace/workflow_log.py217 def process_data(data: dict, depth: int = 0) -> Any:CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWmakefiles/parse_localci.sh11# Usage:COMMENT