Repository Analysis

langbot-app/LangBot

Production-grade platform for building agentic IM bots - 生产级多平台智能机器人开发平台/ Agent、知识库编排、插件系统 / Bots for Discord / Slack / LINE / Telegram / WeChat(企业微信, 企微智能机器人, 公众号) / 飞书 / 钉钉 / QQ / Matrix e.g. Integrated with ChatGPT(GPT), DeepSeek, Dify, n8n, Langflow, Coze, Claude, Gemini, GLM, Ollama, SiliconFlow, Moonshot, openclaw / hermes agent, deerflow

18.9 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of langbot-app/LangBot, a Python project with 17,599 GitHub stars. SynthScan v2.0 examined 327,497 lines of code across 1285 source files, recording 5354 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 18.9 places this repository in the Moderate AI signal band.

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

18.9
Adjusted Score
18.9
Raw Score
100%
Time Factor
2026-08-28
Last Push
17.6K
Stars
Python
Language
327.5K
Lines of Code
1.3K
Files
5.4K
Pattern Hits
2026-08-29
Scan Date
0.08
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 27HIGH 72MEDIUM 206LOW 5049

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 5354 distinct pattern matches across 23 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 Identifiers3385 hits · 3245 pts
SeverityFileLineSnippetContext
LOW…/plugins/components/plugin-market/marketplace-likes.ts23export function getMarketplaceFingerprint(): Promise<string> {CODE
LOW…/plugins/components/plugin-market/marketplace-likes.ts62export async function getMarketplaceExtensionLiked(CODE
LOW…/plugins/components/plugin-market/marketplace-likes.ts71export async function toggleMarketplaceExtensionLike(CODE
LOW…/plugins/components/plugin-market/marketplace-likes.ts109export function subscribeMarketplaceLikeChanges(CODE
LOW…arket/plugin-market-card/PluginMarketCardComponent.tsx22export default function PluginMarketCardComponent({CODE
LOW…ts/plugin-install-task/PluginInstallProgressDialog.tsx399export default function PluginInstallProgressDialog() {CODE
LOW…nents/plugin-install-task/PluginInstallTaskContext.tsx150function asyncTaskToPluginInstallTask(task: AsyncTask): PluginInstallTask {CODE
LOW…nents/plugin-install-task/PluginInstallTaskContext.tsx210export function PluginInstallTaskProvider({CODE
LOW…b/src/app/home/components/home-sidebar/HomeSidebar.tsx230function createEmptyListExpansionState(): SidebarListExpansionState {CODE
LOW…b/src/app/home/components/home-sidebar/HomeSidebar.tsx307async function refreshEnabledMCPConnections() {CODE
LOW…b/src/app/home/components/home-sidebar/HomeSidebar.tsx508 function handleListExpansionToggle(id: EntityCategoryId, expanded: boolean) {CODE
LOW…b/src/app/home/components/home-sidebar/HomeSidebar.tsx1761 function handleSettingsSectionChange(section: SettingsSection) {CODE
LOW…/src/app/home/components/models-dialog/ModelsPanel.tsx191 async function loadRequesterSupportTypes() {CODE
LOW…home/components/dynamic-form/ToolResourceSelectors.tsx141function hasReliableSourceMetadata(tool: PluginTool) {CODE
LOW…/home/components/dynamic-form/DynamicFormSaveValues.ts33export function normalizeDynamicFormFieldValue(CODE
LOW…/home/components/dynamic-form/DynamicFormSaveValues.ts93function normalizeModelFallbackValue(value: unknown): {CODE
LOW…/home/components/dynamic-form/DynamicFormSaveValues.ts137export function normalizeDynamicFormValuesForSave(CODE
LOW…rc/app/home/skills/components/skill-form/SkillForm.tsx748 async function handleDirectoryImportConfirm() {CODE
LOWweb/src/app/home/monitoring/utils/conversationTurns.ts55export function hasRenderableMessageContent(content?: string): boolean {CODE
LOWweb/src/app/home/add-extension/page.tsx532 async function handleGithubAddressSubmit() {CODE
LOWweb/src/app/infra/http/currentWorkspaceStore.ts7export function getCurrentWorkspaceSnapshot(): CurrentWorkspace | null {CODE
LOWweb/src/app/infra/http/currentWorkspaceStore.ts11export function setCurrentWorkspaceSnapshot(CODE
LOWweb/src/app/infra/http/index.ts209export function beginAuthenticatedSession(CODE
LOWweb/src/app/infra/http/index.ts248async function initializeSelectedWorkspace(CODE
LOWweb/src/app/infra/http/index.ts276export async function bootstrapWorkspaceSession(CODE
LOWweb/src/app/infra/http/workspaceBootstrapStore.ts8export function getWorkspaceBootstrapSnapshot(): WorkspaceBootstrapEntry[] {CODE
LOWweb/src/app/infra/http/workspaceBootstrapStore.ts12export function setWorkspaceBootstrapSnapshot(CODE
LOWweb/src/app/infra/http/workspaceBootstrapStore.ts19export function clearWorkspaceBootstrapSnapshot(): void {CODE
LOWweb/src/app/infra/http/workspaceContext.ts36export function getPendingInvitationToken(): string | null {CODE
LOWweb/src/app/infra/http/workspaceContext.ts42export function setPendingInvitationToken(token: string): void {CODE
LOWweb/src/app/infra/http/workspaceContext.ts50export function clearPendingInvitationToken(): void {CODE
LOWweb/src/app/auth/space/callback/page.tsx43function getOrCreateSpaceOAuthLoginPromise(CODE
LOWweb/src/app/auth/space/callback/page.tsx43function getOrCreateSpaceOAuthLoginPromise(CODE
LOWweb/src/app/auth/space/callback/page.tsx65function SpaceOAuthCallbackContent() {CODE
LOWweb/src/app/wizard/utils.ts20export function ensureHttpBotSigningSecret(CODE
LOWweb/src/app/wizard/utils.ts88export function isRequiredRunnerConfigComplete(CODE
LOWweb/src/app/wizard/utils.ts108export function configureLocalAgentPrimaryModel(CODE
LOWweb/src/app/invitations/accept/page.tsx65function captureInvitationTokenFromFragment(): string | null {CODE
LOWweb/src/hooks/useAuthenticatedPluginResource.ts17export function useAuthenticatedPluginIcon(CODE
LOWweb/src/hooks/useAuthenticatedPluginResource.ts63export function useAuthenticatedPluginAsset(CODE
LOWtests/test_cwe94_debug_exec.py21def test_no_exec_call_in_system_controller():CODE
LOWtests/smoke/test_fake_message_flow.py46 async def test_fake_provider_returns_text(self):CODE
LOWtests/smoke/test_fake_message_flow.py87 async def test_fake_provider_streaming(self):CODE
LOWtests/smoke/test_fake_message_flow.py110 async def test_fake_provider_timeout(self):CODE
LOWtests/smoke/test_fake_message_flow.py126 async def test_fake_provider_rate_limit(self):CODE
LOWtests/smoke/test_fake_message_flow.py142 async def test_fake_provider_captures_requests(self):CODE
LOWtests/smoke/test_fake_message_flow.py164 async def test_fake_platform_capture_outbound(self):CODE
LOWtests/smoke/test_fake_message_flow.py184 async def test_fake_platform_friend_message(self):CODE
LOWtests/smoke/test_fake_message_flow.py200 async def test_fake_platform_group_message_with_mention(self):CODE
LOWtests/smoke/test_fake_message_flow.py220 async def test_query_factories_basic(self):CODE
LOWtests/smoke/test_fake_message_flow.py247 async def test_fake_platform_send_failure(self):CODE
LOWtests/smoke/test_fake_message_flow.py261 async def test_mock_platform_adapter(self):CODE
LOWtests/smoke/test_fake_message_flow.py287 async def test_minimal_message_flow(self):CODE
LOWtests/smoke/test_fake_message_flow.py331 async def test_streaming_message_flow(self):CODE
LOWtests/unit_tests/test_optional_dependencies.py7def test_seekdb_is_only_declared_as_an_optional_dependency() -> None:CODE
LOWtests/unit_tests/test_skill_service.py54 async def test_create_skill_refused_when_box_disabled(self):CODE
LOWtests/unit_tests/test_skill_service.py60 async def test_create_skill_refused_when_box_failed(self):CODE
LOWtests/unit_tests/test_skill_service.py66 async def test_update_skill_refused_when_box_disabled(self):CODE
LOWtests/unit_tests/test_skill_service.py72 async def test_write_skill_file_refused_when_box_disabled(self):CODE
LOWtests/unit_tests/test_skill_service.py78 async def test_install_from_github_refused_when_box_disabled(self):CODE
3325 more matches not shown…
Excessive Try-Catch Wrapping649 hits · 639 pts
SeverityFileLineSnippetContext
LOWtests/integration_tests/box/test_box_mcp_integration.py74 except Exception:CODE
LOWtests/integration_tests/box/test_box_integration.py62 except Exception:CODE
LOWtests/integration/persistence/test_migrations.py339 except Exception as e:CODE
LOW…ts/integration/persistence/test_migrations_postgres.py283 except Exception:CODE
LOW…ts/integration/persistence/test_migrations_postgres.py291 except Exception:CODE
LOWtests/integration/vector/test_valkey_search.py93 except Exception as exc: # noqa: BLE001CODE
LOWtests/integration/vector/test_valkey_search.py103 except Exception:CODE
LOWtests/e2e/utils/process_manager.py207 except Exception:CODE
LOWdocs/review/box-architecture.md478except Exception as e:CODE
LOWexamples/http-bot/playground.py90 except Exception:CODE
LOWexamples/http-bot/playground.py133 except Exception:CODE
LOWscripts/cloud_runtime_soak.py979 except Exception as exc:CODE
LOWskills/skills/langbot-plugin-dev/SKILL.md164except Exception:CODE
LOWsrc/langbot/libs/wechatpad_api/util/http_util.py48 except Exception as e:CODE
LOWsrc/langbot/libs/wechatpad_api/util/http_util.py71 except Exception as e:CODE
LOWsrc/langbot/libs/official_account_api/api.py200 except Exception:CODE
LOWsrc/langbot/libs/official_account_api/api.py431 except Exception:CODE
LOWsrc/langbot/libs/openclaw_weixin_api/client.py233 except Exception as e:CODE
LOWsrc/langbot/libs/openclaw_weixin_api/client.py622 except Exception as e:CODE
LOWsrc/langbot/libs/openclaw_weixin_api/client.py632 except Exception as e:CODE
LOWsrc/langbot/libs/openclaw_weixin_api/client.py642 except Exception as e:CODE
LOWsrc/langbot/libs/dingtalk_api/card_callback.py104 except Exception as e:CODE
LOWsrc/langbot/libs/dingtalk_api/api.py356 except Exception as e:CODE
LOWsrc/langbot/libs/dingtalk_api/api.py366 except Exception as e:CODE
LOWsrc/langbot/libs/dingtalk_api/api.py376 except Exception as e:CODE
LOWsrc/langbot/libs/dingtalk_api/api.py160 except Exception:CODE
LOWsrc/langbot/libs/dingtalk_api/api.py176 except Exception:CODE
LOWsrc/langbot/libs/dingtalk_api/api.py537 except Exception:CODE
LOWsrc/langbot/libs/dingtalk_api/api.py584 except Exception:CODE
LOWsrc/langbot/libs/dingtalk_api/api.py611 except Exception:CODE
LOWsrc/langbot/libs/dingtalk_api/api.py663 except Exception as e:CODE
LOWsrc/langbot/libs/dingtalk_api/api.py758 except Exception:CODE
LOWsrc/langbot/libs/dingtalk_api/api.py808 except Exception:CODE
LOWsrc/langbot/libs/dingtalk_api/api.py857 except Exception:CODE
LOWsrc/langbot/libs/dingtalk_api/api.py896 except Exception:CODE
LOWsrc/langbot/libs/dingtalk_api/api.py948 except Exception:CODE
LOWsrc/langbot/libs/dingtalk_api/api.py1002 except Exception as e:CODE
LOWsrc/langbot/libs/dingtalk_api/api.py1026 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py836 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py842 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py197 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py421 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py450 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py711 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py820 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py944 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py1015 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py1033 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py1080 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py1094 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py1120 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py1176 except Exception as e:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/api.py450 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/api.py457 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/api.py998 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/api.py1764 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/api.py1827 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/api.py1929 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/api.py2020 except Exception:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/api.py2025 except Exception:CODE
589 more matches not shown…
Unused Imports553 hits · 514 pts
SeverityFileLineSnippetContext
LOWtests/smoke/test_fake_message_flow.py10CODE
LOWtests/unit_tests/test_optional_dependencies.py1CODE
LOWtests/unit_tests/test_preproc.py1CODE
LOWtests/unit_tests/test_telemetry.py1CODE
LOWtests/unit_tests/pipeline/conftest.py10CODE
LOWtests/unit_tests/pipeline/conftest.py19CODE
LOWtests/unit_tests/pipeline/test_config_coercion.py3CODE
LOWtests/unit_tests/pipeline/test_banwords.py8CODE
LOWtests/unit_tests/pipeline/test_chat_handler_logging.py1CODE
LOWtests/unit_tests/pipeline/test_wrapper.py12CODE
LOWtests/unit_tests/pipeline/test_controller_tenancy.py1CODE
LOWtests/unit_tests/pipeline/test_msgtrun.py11CODE
LOWtests/unit_tests/pipeline/test_preproc.py12CODE
LOWtests/unit_tests/pipeline/test_longtext.py11CODE
LOWtests/unit_tests/pipeline/test_chat_session_limit.py1CODE
LOWtests/unit_tests/pipeline/test_aggregator.py12CODE
LOWtests/unit_tests/pipeline/test_command_handler.py8CODE
LOWtests/unit_tests/pipeline/test_n8nsvapi.py11CODE
LOWtests/unit_tests/pipeline/test_pool.py7CODE
LOWtests/unit_tests/pipeline/test_cntfilter.py12CODE
LOW…it_tests/pipeline/test_wrapper_outbound_attachments.py13CODE
LOWtests/unit_tests/pipeline/test_chat_handler.py8CODE
LOWtests/unit_tests/discover/test_engine.py7CODE
LOWtests/unit_tests/box/test_box_connector.py1CODE
LOWtests/unit_tests/box/test_box_admission.py1CODE
LOWtests/unit_tests/box/test_workspace.py1CODE
LOWtests/unit_tests/box/test_box_service.py1CODE
LOWtests/unit_tests/core/test_app_shutdown.py1CODE
LOWtests/unit_tests/core/test_stage.py3CODE
LOWtests/unit_tests/core/test_boot.py1CODE
LOWtests/unit_tests/core/test_app_resource_maintenance.py1CODE
LOWtests/unit_tests/core/test_app_config_validation.py8CODE
LOWtests/unit_tests/core/test_load_config.py11CODE
LOWtests/unit_tests/core/test_bootutils_log.py9CODE
LOWtests/unit_tests/core/test_taskmgr.py11CODE
LOWtests/unit_tests/core/test_bootutils_deps.py3CODE
LOWtests/unit_tests/config/test_config_loader.py12CODE
LOWtests/unit_tests/platform/test_dingtalk_adapter.py8CODE
LOWtests/unit_tests/platform/test_line_session_identity.py1CODE
LOWtests/unit_tests/platform/test_line_session_identity.py8CODE
LOWtests/unit_tests/platform/test_webhook_pusher.py1CODE
LOWtests/unit_tests/platform/test_wechatpad_limits.py1CODE
LOWtests/unit_tests/platform/test_botmgr_tenancy.py1CODE
LOWtests/unit_tests/platform/test_discord_limits.py1CODE
LOW…sts/unit_tests/platform/test_openclaw_weixin_client.py1CODE
LOW…t_tests/platform/test_websocket_adapter_attachments.py10CODE
LOWtests/unit_tests/platform/test_qqofficial_api.py64CODE
LOWtests/unit_tests/platform/test_qqofficial_api.py308CODE
LOWtests/unit_tests/platform/test_http_bot_tenancy.py1CODE
LOWtests/unit_tests/platform/test_wecomcs_api.py1CODE
LOWtests/unit_tests/platform/test_line_limits.py1CODE
LOWtests/unit_tests/platform/test_line_limits.py6CODE
LOWtests/unit_tests/platform/test_wecombot_media.py5CODE
LOWtests/unit_tests/platform/test_matrix_limits.py1CODE
LOWtests/unit_tests/platform/test_kook_limits.py1CODE
LOWtests/unit_tests/platform/test_wecom_api_limits.py1CODE
LOW…s/unit_tests/workspace/test_workspace_collaboration.py1CODE
LOWtests/unit_tests/workspace/test_workspace_service.py1CODE
LOWtests/unit_tests/workspace/test_invitation_delivery.py1CODE
LOWtests/unit_tests/plugin/test_connector_methods.py10CODE
493 more matches not shown…
Decorative Section Separators138 hits · 496 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit_tests/pipeline/test_n8nsvapi.py96# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit_tests/pipeline/test_n8nsvapi.py98# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit_tests/pipeline/test_n8nsvapi.py179# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit_tests/pipeline/test_n8nsvapi.py181# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit_tests/pipeline/test_n8nsvapi.py53# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit_tests/pipeline/test_n8nsvapi.py55# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit_tests/pipeline/test_n8nsvapi.py261# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit_tests/pipeline/test_n8nsvapi.py263# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit_tests/box/test_box_service.py1723# ── BoxHostMountMode.NONE tests ─────────────────────────────────────COMMENT
MEDIUMtests/unit_tests/box/test_box_service.py2039# ── Attachment passthrough (inbound / outbound) ─────────────────────────────COMMENT
MEDIUMtests/unit_tests/box/test_box_service.py948# ── Truncation tests ──────────────────────────────────────────────────COMMENT
MEDIUMtests/unit_tests/box/test_box_service.py1071# ── Profile tests ─────────────────────────────────────────────────────COMMENT
MEDIUMtests/unit_tests/box/test_box_service.py1373# ── Observability tests ───────────────────────────────────────────────COMMENT
MEDIUMtests/unit_tests/box/test_box_service.py1474# ── In-process RPC client/server tests ─────────────────────────────────COMMENT
MEDIUMtests/unit_tests/box/test_box_service.py1638# ── RPC-based delete/create/conflict tests ────────────────────────────COMMENT
MEDIUMtests/unit_tests/provider/test_mcp_box_integration.py22# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit_tests/provider/test_mcp_box_integration.py24# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit_tests/provider/test_mcp_box_integration.py149# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit_tests/provider/test_mcp_box_integration.py151# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit_tests/provider/test_mcp_box_integration.py187# ── MCPServerBoxConfig ──────────────────────────────────────────────COMMENT
MEDIUMtests/unit_tests/provider/test_mcp_box_integration.py235# ── Path Rewriting ──────────────────────────────────────────────────COMMENT
MEDIUMtests/unit_tests/provider/test_mcp_box_integration.py336# ── host_path Inference ─────────────────────────────────────────────COMMENT
MEDIUMtests/unit_tests/provider/test_mcp_box_integration.py383# ── Build Box Session Payload ───────────────────────────────────────COMMENT
MEDIUMtests/unit_tests/provider/test_mcp_box_integration.py454# ── Build Box Process Payload ───────────────────────────────────────COMMENT
MEDIUMtests/unit_tests/provider/test_mcp_box_integration.py512# ── Python Workspace Preparation ────────────────────────────────────COMMENT
MEDIUMtests/unit_tests/provider/test_mcp_box_integration.py590# ── get_runtime_info_dict ───────────────────────────────────────────COMMENT
MEDIUMtests/unit_tests/provider/test_mcp_box_integration.py915# ── Box config parsing ──────────────────────────────────────────────COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py31# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py33# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py132# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py134# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py250# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py252# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py357# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py359# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py485# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py487# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py574# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py576# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py667# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py669# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py744# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py746# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py837# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py839# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py912# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_model_manager.py914# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_requester_base.py172# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_requester_base.py174# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_requester_base.py236# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_requester_base.py238# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_requester_base.py388# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_requester_base.py390# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_requester_base.py415# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_requester_base.py417# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_requester_base.py431# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_requester_base.py433# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_requester_base.py447# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_requester_base.py449# ============================================================================COMMENT
MEDIUMtests/unit_tests/provider/test_requester_base.py467# ============================================================================COMMENT
78 more matches not shown…
Hallucination Indicators27 hits · 315 pts
SeverityFileLineSnippetContext
CRITICALtests/unit_tests/provider/test_mcp_box_integration.py1052 assert ap.box_service.build_spec.call_args.kwargs.get('skip_host_mount_validation', False) is FalseCODE
CRITICALtests/unit_tests/rag/test_file_storage.py237 kb.ap.storage_mgr.storage_provider.save.assert_not_awaited()CODE
CRITICALtests/unit_tests/rag/test_file_storage.py238 kb.ap.storage_mgr.storage_provider.delete.assert_awaited_once_with(_upload_key('archive.zip'))CODE
CRITICALtests/unit_tests/rag/test_file_storage.py255 kb.ap.storage_mgr.storage_provider.save.assert_not_awaited()CODE
CRITICALtests/unit_tests/rag/test_file_storage.py256 kb.ap.storage_mgr.storage_provider.delete.assert_awaited_once_with(_upload_key('archive.zip'))CODE
CRITICALtests/unit_tests/rag/test_file_storage.py301 kb.ap.storage_mgr.storage_provider.size.assert_awaited_once_with(object_key)CODE
CRITICALtests/unit_tests/rag/test_file_storage.py304 kb.ap.storage_mgr.storage_provider.delete.assert_awaited_once_with(object_key)CODE
CRITICALtests/unit_tests/rag/test_file_storage.py318 kb.ap.storage_mgr.storage_provider.delete.assert_awaited_once_with(object_key)CODE
CRITICALtests/unit_tests/rag/test_file_storage.py101 kb.ap.storage_mgr.storage_provider.exists.assert_awaited_once_with(object_key)CODE
CRITICALtests/unit_tests/rag/test_file_storage.py132 kb.ap.storage_mgr.storage_provider.exists.assert_not_awaited()CODE
CRITICALtests/unit_tests/rag/test_file_storage.py154 kb.ap.storage_mgr.storage_provider.exists.assert_not_awaited()CODE
CRITICALtests/unit_tests/rag/test_file_storage.py209 kb.ap.storage_mgr.storage_provider.delete.assert_awaited_once_with(zip_key)CODE
CRITICALtests/unit_tests/rag/test_file_storage.py223 kb.ap.storage_mgr.storage_provider.delete.assert_awaited_once_with(_upload_key('archive.zip'))CODE
CRITICALsrc/langbot/pkg/platform/sources/lark.py1597 response: CreateMessageResponse = self.api_client.im.v1.message.create(request, req_opt)CODE
CRITICALsrc/langbot/pkg/platform/sources/lark.py3176 response: CreateMessageResponse = self.api_client.im.v1.message.create(request, req_opt)CODE
CRITICALsrc/langbot/pkg/platform/sources/lark.py1383 response: CreateAppAccessTokenResponse = self.api_client.auth.v3.app_access_token.create(request)CODE
CRITICALsrc/langbot/pkg/platform/sources/lark.py1416 response: CreateTenantAccessTokenResponse = self.api_client.auth.v3.tenant_access_token.create(request)CODE
CRITICALsrc/langbot/pkg/platform/sources/lark.py1570 response: CreateMessageResponse = self.api_client.im.v1.message.create(request, req_opt)CODE
CRITICALsrc/langbot/pkg/platform/sources/lark.py1860 response: CreateCardResponse = self.api_client.cardkit.v1.card.create(request)CODE
CRITICALsrc/langbot/pkg/platform/sources/lark.py1916 response: ReplyMessageResponse = await self.api_client.im.v1.message.areply(request, req_opt)CODE
CRITICALsrc/langbot/pkg/platform/sources/lark.py2007 response: ReplyMessageResponse = await self.api_client.im.v1.message.areply(request, req_opt)CODE
CRITICALsrc/langbot/pkg/platform/sources/lark.py2099 response: ReplyMessageResponse = await self.api_client.im.v1.message.areply(request, req_opt)CODE
CRITICALsrc/langbot/pkg/platform/sources/lark.py2137 response: ReplyMessageResponse = await self.api_client.im.v1.message.areply(request, req_opt)CODE
CRITICALsrc/langbot/pkg/platform/sources/lark.py2287 response: ContentCardElementResponse = await self.api_client.cardkit.v1.card_element.acontent(CODE
CRITICALsrc/langbot/pkg/platform/sources/lark.py2391 media_response: ReplyMessageResponse = await self.api_client.im.v1.message.areply(CODE
CRITICALsrc/langbot/pkg/platform/sources/lark.py2893 response: UpdateCardResponse = await self.api_client.cardkit.v1.card.aupdate(request, req_opt)CODE
CRITICALsrc/langbot/pkg/api/http/service/mcp.py265 self.ap.tool_mgr.mcp_tool_loader._hosted_mcp_tasks.append(task)CODE
Deep Nesting274 hits · 218 pts
SeverityFileLineSnippetContext
LOWtests/unit_tests/pipeline/test_cntfilter.py50CODE
LOWtests/unit_tests/core/test_bootutils_deps.py118CODE
LOWtests/unit_tests/provider/test_model_manager.py138CODE
LOWtests/unit_tests/provider/test_model_manager.py673CODE
LOWtests/unit_tests/provider/test_model_manager.py143CODE
LOWtests/unit_tests/provider/test_model_manager.py677CODE
LOWtests/unit_tests/provider/test_mcp_remote_transport.py37CODE
LOWtests/unit_tests/persistence/test_tenant_uow.py382CODE
LOWtests/unit_tests/persistence/test_tenant_uow.py540CODE
LOWtests/unit_tests/persistence/test_tenant_uow.py611CODE
LOWtests/unit_tests/persistence/test_tenant_uow.py652CODE
LOWtests/unit_tests/persistence/test_tenant_uow.py922CODE
LOWtests/unit_tests/persistence/test_tenant_uow.py1004CODE
LOWtests/unit_tests/persistence/test_tenant_uow.py1038CODE
LOW…sts/unit_tests/api/service/test_maintenance_service.py528CODE
LOWtests/utils/import_isolation.py40CODE
LOWexamples/http-bot/client.py138CODE
LOWscripts/cloud_runtime_soak.py223CODE
LOWscripts/cloud_runtime_soak.py290CODE
LOWscripts/cloud_runtime_soak.py340CODE
LOWscripts/cloud_runtime_soak.py371CODE
LOWscripts/cloud_runtime_soak.py449CODE
LOWscripts/cloud_runtime_soak.py589CODE
LOWscripts/cloud_runtime_soak.py889CODE
LOWsrc/langbot/libs/official_account_api/api.py114CODE
LOWsrc/langbot/libs/official_account_api/api.py340CODE
LOWsrc/langbot/libs/openclaw_weixin_api/client.py585CODE
LOWsrc/langbot/libs/dingtalk_api/card_callback.py70CODE
LOWsrc/langbot/libs/dingtalk_api/api.py309CODE
LOWsrc/langbot/libs/dingtalk_api/api.py391CODE
LOWsrc/langbot/libs/dingtalk_api/api.py954CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py947CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py1160CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/api.py398CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/api.py462CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/api.py916CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/api.py1536CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/api.py1802CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/api.py2000CODE
LOWsrc/langbot/libs/wecom_customer_service_api/api.py341CODE
LOWsrc/langbot/libs/wecom_customer_service_api/api.py440CODE
LOWsrc/langbot/libs/wecom_api/api.py358CODE
LOWsrc/langbot/libs/wecom_api/api.py473CODE
LOWsrc/langbot/libs/wecom_api/api.py535CODE
LOWsrc/langbot/libs/wecom_api/api.py593CODE
LOWsrc/langbot/libs/slack_api/slackevent.py14CODE
LOWsrc/langbot/libs/dify_service_api/v1/client.py240CODE
LOWsrc/langbot/libs/coze_server_api/client.py136CODE
LOWsrc/langbot/libs/deerflow_api/stream_utils.py12CODE
LOWsrc/langbot/libs/deerflow_api/stream_utils.py163CODE
LOWsrc/langbot/libs/deerflow_api/stream_utils.py178CODE
LOWsrc/langbot/libs/qq_official_api/api.py256CODE
LOWsrc/langbot/libs/qq_official_api/api.py583CODE
LOWsrc/langbot/libs/qq_official_api/api.py966CODE
LOWsrc/langbot/libs/qq_official_api/api.py985CODE
LOWsrc/langbot/pkg/pipeline/controller.py41CODE
LOWsrc/langbot/pkg/pipeline/controller.py109CODE
LOWsrc/langbot/pkg/pipeline/monitoring_helper.py25CODE
LOWsrc/langbot/pkg/pipeline/monitoring_helper.py107CODE
LOWsrc/langbot/pkg/pipeline/monitoring_helper.py135CODE
214 more matches not shown…
Cross-File Repetition42 hits · 210 pts
SeverityFileLineSnippetContext
HIGHtests/unit_tests/box/test_box_service.py0in-process connection backed by asyncio queues — no real io.STRING
HIGHtests/integration_tests/box/test_box_mcp_integration.py0in-process connection backed by asyncio queues — no real io.STRING
HIGHtests/integration_tests/box/test_box_integration.py0in-process connection backed by asyncio queues — no real io.STRING
HIGHtests/unit_tests/provider/test_session_manager.py0test that __init__ stores the application reference.STRING
HIGHtests/unit_tests/provider/test_tool_manager.py0test that __init__ stores the application reference.STRING
HIGHtests/unit_tests/storage/test_s3storage.py0test that __init__ stores the application reference.STRING
HIGHtests/unit_tests/telemetry/test_telemetry.py0test that __init__ stores the application reference.STRING
HIGHtests/unit_tests/api/service/test_mcp_service.py0delete operation completes even for nonexistent uuid.STRING
HIGHtests/unit_tests/api/service/test_bot_service.py0delete operation completes even for nonexistent uuid.STRING
HIGHtests/unit_tests/api/service/test_pipeline_service.py0delete operation completes even for nonexistent uuid.STRING
HIGHtests/integration/api/test_providers.py0create quart test client (module scope to avoid route re-registration).STRING
HIGHtests/integration/api/test_knowledge.py0create quart test client (module scope to avoid route re-registration).STRING
HIGHtests/integration/api/test_pipelines.py0create quart test client (module scope to avoid route re-registration).STRING
HIGHtests/integration/api/test_bots.py0create quart test client (module scope to avoid route re-registration).STRING
HIGHsrc/langbot/libs/official_account_api/api.py0处理回调请求(统一 webhook 模式,显式传递 request)。 args: req: quart request 对象 returns: 响应数据STRING
HIGHsrc/langbot/libs/wecom_ai_bot_api/api.py0处理回调请求(统一 webhook 模式,显式传递 request)。 args: req: quart request 对象 returns: 响应数据STRING
HIGHsrc/langbot/libs/wecom_customer_service_api/api.py0处理回调请求(统一 webhook 模式,显式传递 request)。 args: req: quart request 对象 returns: 响应数据STRING
HIGHsrc/langbot/libs/wecom_api/api.py0处理回调请求(统一 webhook 模式,显式传递 request)。 args: req: quart request 对象 returns: 响应数据STRING
HIGHsrc/langbot/libs/slack_api/api.py0处理回调请求(统一 webhook 模式,显式传递 request)。 args: req: quart request 对象 returns: 响应数据STRING
HIGHsrc/langbot/libs/qq_official_api/api.py0处理回调请求(统一 webhook 模式,显式传递 request)。 args: req: quart request 对象 returns: 响应数据STRING
HIGHsrc/langbot/libs/official_account_api/api.py0处理回调请求的内部实现,包括 get 验证和 post 消息接收。 args: req: quart request 对象STRING
HIGHsrc/langbot/libs/wecom_ai_bot_api/api.py0处理回调请求的内部实现,包括 get 验证和 post 消息接收。 args: req: quart request 对象STRING
HIGHsrc/langbot/libs/wecom_customer_service_api/api.py0处理回调请求的内部实现,包括 get 验证和 post 消息接收。 args: req: quart request 对象STRING
HIGHsrc/langbot/libs/wecom_api/api.py0处理回调请求的内部实现,包括 get 验证和 post 消息接收。 args: req: quart request 对象STRING
HIGHsrc/langbot/libs/official_account_api/oaevent.py0事件类型,例如 "message"、"event"、"text" 等。 returns: str: 事件类型。STRING
HIGH…angbot/libs/wecom_customer_service_api/wecomcsevent.py0事件类型,例如 "message"、"event"、"text" 等。 returns: str: 事件类型。STRING
HIGHsrc/langbot/libs/wecom_api/wecomevent.py0事件类型,例如 "message"、"event"、"text" 等。 returns: str: 事件类型。STRING
HIGHsrc/langbot/libs/official_account_api/oaevent.py0允许通过属性访问数据中的任意字段。 args: key (str): 字段名。 returns: optional[any]: 字段值。STRING
HIGHsrc/langbot/libs/dingtalk_api/dingtalkevent.py0允许通过属性访问数据中的任意字段。 args: key (str): 字段名。 returns: optional[any]: 字段值。STRING
HIGH…angbot/libs/wecom_customer_service_api/wecomcsevent.py0允许通过属性访问数据中的任意字段。 args: key (str): 字段名。 returns: optional[any]: 字段值。STRING
HIGHsrc/langbot/libs/wecom_api/wecomevent.py0允许通过属性访问数据中的任意字段。 args: key (str): 字段名。 returns: optional[any]: 字段值。STRING
HIGHsrc/langbot/libs/official_account_api/oaevent.py0允许通过属性设置数据中的任意字段。 args: key (str): 字段名。 value (any): 字段值。STRING
HIGHsrc/langbot/libs/dingtalk_api/dingtalkevent.py0允许通过属性设置数据中的任意字段。 args: key (str): 字段名。 value (any): 字段值。STRING
HIGH…angbot/libs/wecom_customer_service_api/wecomcsevent.py0允许通过属性设置数据中的任意字段。 args: key (str): 字段名。 value (any): 字段值。STRING
HIGHsrc/langbot/libs/wecom_api/wecomevent.py0允许通过属性设置数据中的任意字段。 args: key (str): 字段名。 value (any): 字段值。STRING
HIGHsrc/langbot/pkg/platform/sources/qqofficial.py0处理统一 webhook 请求。 args: bot_uuid: bot 的 uuid path: 子路径(如果有的话) request: quart request 对象 returns: 响应数据STRING
HIGHsrc/langbot/pkg/platform/sources/lark.py0处理统一 webhook 请求。 args: bot_uuid: bot 的 uuid path: 子路径(如果有的话) request: quart request 对象 returns: 响应数据STRING
HIGHsrc/langbot/pkg/platform/sources/line.py0处理统一 webhook 请求。 args: bot_uuid: bot 的 uuid path: 子路径(如果有的话) request: quart request 对象 returns: 响应数据STRING
HIGHsrc/langbot/pkg/platform/sources/officialaccount.py0处理统一 webhook 请求。 args: bot_uuid: bot 的 uuid path: 子路径(如果有的话) request: quart request 对象 returns: 响应数据STRING
HIGHsrc/langbot/pkg/platform/sources/wecomcs.py0处理统一 webhook 请求。 args: bot_uuid: bot 的 uuid path: 子路径(如果有的话) request: quart request 对象 returns: 响应数据STRING
HIGHsrc/langbot/pkg/platform/sources/slack.py0处理统一 webhook 请求。 args: bot_uuid: bot 的 uuid path: 子路径(如果有的话) request: quart request 对象 returns: 响应数据STRING
HIGHsrc/langbot/pkg/platform/sources/wecom.py0处理统一 webhook 请求。 args: bot_uuid: bot 的 uuid path: 子路径(如果有的话) request: quart request 对象 returns: 响应数据STRING
Cross-Language Confusion17 hits · 102 pts
SeverityFileLineSnippetContext
HIGHtests/unit_tests/box/test_workspace.py65 assert '_LB_SYSTEM_PYTHON="$(command -v python3 || command -v python || true)"' in commandCODE
HIGHtests/unit_tests/provider/test_mcp_box_integration.py527 assert '_LB_SYSTEM_PYTHON="$(command -v python3 || command -v python || true)"' in commandCODE
HIGHtests/unit_tests/provider/test_skill_tools.py302 assert '_LB_SYSTEM_PYTHON="$(command -v python3 || command -v python || true)"' in commandCODE
HIGHtests/integration_tests/box/test_box_mcp_integration.py426 args=['-c', 'echo done && exit 0'],CODE
HIGHexamples/http-bot/playground.py286 if(obj!==undefined){const p=document.createElement('pre');CODE
HIGHexamples/http-bot/playground.py287 p.textContent=typeof obj==='string'?obj:JSON.stringify(obj,null,2);e.appendChild(p)}CODE
HIGHsrc/langbot/pkg/box/workspace.py155 _LB_SYSTEM_PYTHON="$(command -v python3 || command -v python || true)"CODE
HIGHsrc/langbot/pkg/box/workspace.py220 while ! mkdir "$_LB_LOCK_DIR" 2>/dev/null; doCODE
HIGHsrc/langbot/pkg/box/workspace.py222 _LB_LOCK_OWNER="$(cat "$_LB_LOCK_DIR/pid" 2>/dev/null || true)"CODE
HIGHsrc/langbot/pkg/box/workspace.py223 if [ -n "$_LB_LOCK_OWNER" ] && kill -0 "$_LB_LOCK_OWNER" 2>/dev/null; thenCODE
HIGHsrc/langbot/pkg/box/workspace.py228 rm -rf "$_LB_LOCK_DIR" 2>/dev/null || trueCODE
HIGHsrc/langbot/pkg/box/workspace.py229 if mkdir "$_LB_LOCK_DIR" 2>/dev/null; thenCODE
HIGHsrc/langbot/pkg/box/workspace.py238 printf '%s\\n' "$$" > "$_LB_LOCK_DIR/pid" 2>/dev/null || trueCODE
HIGHsrc/langbot/pkg/box/workspace.py241 rm -rf "$_LB_LOCK_DIR" >/dev/null 2>&1 || trueCODE
HIGHsrc/langbot/pkg/entity/dto/space_model.py30# "metadata": null,COMMENT
HIGHsrc/langbot/pkg/api/http/controller/groups/system.py174 { "step": int, "selected_adapter": str|null, "created_bot_uuid": str|null,STRING
HIGHsrc/langbot/pkg/api/http/controller/groups/system.py175 "bot_saved": bool, "selected_runner": str|null }STRING
Self-Referential Comments20 hits · 64 pts
SeverityFileLineSnippetContext
MEDIUMdocker/kubernetes.yaml2# This file provides Kubernetes deployment manifests for LangBot based on docker-compose.yamlCOMMENT
MEDIUMtests/smoke/test_fake_message_flow.py53 # Create a simple queryCOMMENT
MEDIUMtests/unit_tests/pipeline/test_wrapper.py174 # Create a command response messageCOMMENT
MEDIUMtests/unit_tests/pipeline/test_wrapper.py212 # Create a plugin response messageCOMMENT
MEDIUMtests/unit_tests/pipeline/test_longtext.py261 # Create a mock adapter with bot_account_idCOMMENT
MEDIUMtests/unit_tests/pipeline/test_chat_handler.py37 # Create a default runner that yields a simple responseCOMMENT
MEDIUMtests/unit_tests/plugin/test_connector_pure.py37 # Create a mock zip file with requirements.txtCOMMENT
MEDIUMtests/unit_tests/utils/test_image.py105 # Create a simple base64 stringCOMMENT
MEDIUMtests/unit_tests/rag/test_runtime_service.py216# The following classes preserve the pre-tenancy regression scenarios. TheyCOMMENT
MEDIUM…unit_tests/storage/test_localstorage_path_traversal.py54 # Create a file outside the storage directoryCOMMENT
MEDIUM…unit_tests/storage/test_localstorage_path_traversal.py195 # Create a directory with filesCOMMENT
MEDIUMtests/unit_tests/persistence/test_serialize_model.py24# Create a simple test modelCOMMENT
MEDIUMtests/unit_tests/persistence/test_serialize_model.py43 # Create a mock persistence managerCOMMENT
MEDIUMtests/unit_tests/persistence/test_mgr_methods.py70 # Create a mock result with actual attributes to simulate real resultCOMMENT
MEDIUM…sts/unit_tests/api/service/test_maintenance_service.py78 # Create a proper mock object with __class__.__name__COMMENT
MEDIUMtests/integration_tests/box/test_box_mcp_integration.py451 # Create a session (container gets current instance ID label)COMMENT
MEDIUMtests/integration/pipeline/test_full_flow.py192 # Create a simple class to mimic Prompt behaviorCOMMENT
MEDIUMtests/factories/message.py407 # Create a default sessionCOMMENT
MEDIUMsrc/langbot/pkg/skill/activation.py14# This file is kept for potential future extensions but the text markerCOMMENT
MEDIUM…/langbot/pkg/provider/tools/loaders/skill_authoring.py177 # Create the skillCOMMENT
Redundant / Tautological Comments43 hits · 64 pts
SeverityFileLineSnippetContext
LOWrun_tests.sh15# Check if pytest is installedCOMMENT
LOWdocker/deploy-k8s-test.sh20# Check if kubectl can connect to a clusterCOMMENT
LOWtests/unit_tests/api/service/test_mcp_service.py735 # Set mcp_tool_loader to None, not tool_mgr itselfCOMMENT
LOWtests/e2e/utils/process_manager.py70 # Set COVERAGE_PROCESS_START to enable coverage in subprocessCOMMENT
LOWtests/e2e/utils/process_manager.py118 # Check if process diedSTRING
LOWsrc/langbot/pkg/pipeline/monitoring_helper.py36 # Check if session exists, if not, record session startCOMMENT
LOWsrc/langbot/pkg/pipeline/preproc/preproc.py214 # Check if this model supports vision, if not, remove all imagesCOMMENT
LOWsrc/langbot/pkg/core/stages/load_config.py159 # Check if the environment variable is uppercase and contains __COMMENT
LOWsrc/langbot/pkg/platform/webhook_pusher.py117 # Check if any webhook responded with skip_pipeline=trueCOMMENT
LOWsrc/langbot/pkg/platform/webhook_pusher.py168 # Check if any webhook responded with skip_pipeline=trueCOMMENT
LOWsrc/langbot/pkg/platform/sources/kook.py370 # Check if this is a message eventCOMMENT
LOWsrc/langbot/pkg/platform/sources/qqofficial.py36 # Check if it looks like base64 (only valid chars, reasonable length)COMMENT
LOWsrc/langbot/pkg/platform/sources/line.py296 # Check if signature header existsCOMMENT
LOWsrc/langbot/pkg/platform/sources/satori.py319 # Check if it's a private/direct messageCOMMENT
LOWsrc/langbot/pkg/platform/sources/satori.py322 # Check if it's a group messageCOMMENT
LOWsrc/langbot/pkg/platform/sources/satori.py731 # Check if it's a private/direct messageCOMMENT
LOWsrc/langbot/pkg/platform/sources/satori.py735 # Check if it's a group messageCOMMENT
LOWsrc/langbot/pkg/platform/sources/aiocqhttp.py568 # Check if message contains a Forward componentCOMMENT
LOWsrc/langbot/pkg/plugin/handler.py1403 # Read file from storageCOMMENT
LOW…/langbot/pkg/provider/tools/loaders/skill_authoring.py35 # Check if sandbox backend is available (same check as native tools)COMMENT
LOWsrc/langbot/pkg/provider/runners/difysvapi.py1160 # Check if this is a form action resume (button click or text match)COMMENT
LOWsrc/langbot/pkg/provider/runners/difysvapi.py1667 # Check if this is a form action resume (button click or text match)COMMENT
LOWsrc/langbot/pkg/provider/runners/difysvapi.py1796 # Check if this is a form action resume (button click or text match)COMMENT
LOWsrc/langbot/pkg/provider/runners/difysvapi.py2252 # Check if this is a form action resume (button click or text match)COMMENT
LOW…persistence/alembic/versions/0003_add_rerank_models.py18 # Check if table already exists (may have been created by create_all())COMMENT
LOWsrc/langbot/pkg/api/http/controller/groups/user.py110 # Check if password change is allowedCOMMENT
LOWsrc/langbot/pkg/api/http/controller/groups/user.py331 # Check if modifying login info is allowedCOMMENT
LOWsrc/langbot/pkg/api/http/controller/groups/user.py360 # Check if modifying login info is allowedCOMMENT
LOWsrc/langbot/pkg/api/http/service/user.py395 # Check if this user has a local password setCOMMENT
LOWsrc/langbot/pkg/api/http/service/user.py566 # Check if user with this Space UUID already existsCOMMENT
LOWsrc/langbot/pkg/api/http/service/user.py585 # Check if user with same email existsCOMMENT
LOWsrc/langbot/pkg/api/http/service/user.py595 # Check if system is already initializedCOMMENT
LOWsrc/langbot/pkg/api/http/service/user.py825 # Check if this Space account is already bound to another userCOMMENT
LOWsrc/langbot/pkg/api/http/service/provider.py170 # Check if any models use this providerCOMMENT
LOWsrc/langbot/pkg/api/http/service/monitoring.py673 # Check if any rows were updatedCOMMENT
LOWsrc/langbot/pkg/api/http/service/space.py78 # Check if token is expired (with 60s buffer)COMMENT
LOWsrc/langbot/pkg/vector/vdbs/milvus.py146 # Check if collection existsCOMMENT
LOWsrc/langbot/pkg/vector/vdbs/milvus.py421 # Check if collection exists before attempting deletionCOMMENT
LOWsrc/langbot/pkg/vector/vdbs/seekdb.py63 # Check if database exists using public APICOMMENT
LOWsrc/langbot/pkg/vector/vdbs/seekdb.py148 # Check if collection existsCOMMENT
LOWsrc/langbot/pkg/vector/vdbs/seekdb.py270 # Check if collection existsCOMMENT
LOWsrc/langbot/pkg/vector/vdbs/seekdb.py380 # Check if collection existsCOMMENT
LOWsrc/langbot/pkg/vector/vdbs/seekdb.py496 # Check if collection existsCOMMENT
Over-Commented Block45 hits · 42 pts
SeverityFileLineSnippetContext
LOWdocker/docker-compose.yaml41 # LANGBOT_BOX_ROOT with an absolute path if you do not want the default.COMMENT
LOWdocker/kubernetes.yaml1# Kubernetes Deployment for LangBotCOMMENT
LOWdocker/kubernetes.yaml221#COMMENT
LOWdocker/kubernetes.yaml581# name: langbot-ingressCOMMENT
LOWdocker/kubernetes.yaml601# # tls:COMMENT
LOWdocker/kubernetes.yaml621# ports:COMMENT
LOWdocker/kubernetes.yaml641# labels:COMMENT
LOWweb/src/app/infra/entities/api/index.ts321}COMMENT
LOWweb/src/i18n/I18nProvider.tsx41// 工具函数:将 i18n 语言代码转换为 API 语言代码COMMENT
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py141COMMENT
LOWsrc/langbot/templates/config.yaml1api:COMMENT
LOWsrc/langbot/templates/config.yaml61 # Supports WEBHOOKS__MAX_INFLIGHT_REQUESTS (hard cap: 128).COMMENT
LOWsrc/langbot/templates/config.yaml301 page_rows: 1000COMMENT
LOWsrc/langbot/templates/config.yaml321 # Number of expired rows to delete per table batchCOMMENT
LOWsrc/langbot/pkg/box/service.py761 if self.shares_filesystem_with_box:COMMENT
LOWsrc/langbot/pkg/box/service.py781 # container), which has no size limit. This covers the local docker /COMMENT
LOWsrc/langbot/pkg/core/stages/load_config.py221 async def run(self, ap: app.Application):COMMENT
LOWsrc/langbot/pkg/core/stages/load_config.py241 # 'data/config/platform.json',COMMENT
LOWsrc/langbot/pkg/entity/dto/space_model.py1# [COMMENT
LOWsrc/langbot/pkg/entity/dto/space_model.py21# "output_credits": 2500,COMMENT
LOWsrc/langbot/pkg/platform/sources/openclaw_weixin.py141 # components.append(platform_message.Plain(text=item.voice_item.text))COMMENT
LOWsrc/langbot/pkg/platform/sources/openclaw_weixin.py161 # elif item.type == MessageItem.FILE and item.file_item:COMMENT
LOWsrc/langbot/pkg/platform/sources/openclaw_weixin.py181 elif item.type == MessageItem.VIDEO and item.video_item:COMMENT
LOWsrc/langbot/pkg/platform/sources/dingtalk.py481 dict # 回复卡片消息字典,key为消息id,value为回复卡片实例id,用于在流式消息时判断是否发送到指定卡片COMMENT
LOWsrc/langbot/pkg/platform/sources/dingtalk.py661COMMENT
LOWsrc/langbot/pkg/platform/sources/qqofficial.py221 self._ws_task: asyncio.Task = NoneCOMMENT
LOWsrc/langbot/pkg/provider/tools/loaders/mcp_stdio.py321 )COMMENT
LOWsrc/langbot/pkg/provider/runners/dashscopeapi.py81 """预处理用户消息,提取纯文本,阿里云提供的上传文件方法过于复杂,暂不支持上传文件(包括图片)"""COMMENT
LOW…g/persistence/alembic/versions/0013_tenant_pgvector.py321 if 'knowledge_bases' not in sa.inspect(conn).get_table_names():COMMENT
LOW…angbot/pkg/persistence/alembic/versions/0002_sample.py21def upgrade() -> None:COMMENT
LOW…angbot/pkg/persistence/alembic/versions/0002_sample.py41 # {"cfg": json.dumps(config), "uuid": row[0]}COMMENT
LOWsrc/langbot/pkg/command/operators/list.py1# from __future__ import annotationsCOMMENT
LOWsrc/langbot/pkg/command/operators/list.py21# returnCOMMENT
LOWsrc/langbot/pkg/command/operators/list.py41# index += 1COMMENT
LOWsrc/langbot/pkg/command/operators/delc.py1# from __future__ import annotationsCOMMENT
LOWsrc/langbot/pkg/command/operators/delc.py21# returnCOMMENT
LOWsrc/langbot/pkg/command/operators/delc.py41# class DelAllOperator(operator.CommandOperator):COMMENT
LOWsrc/langbot/pkg/command/operators/resend.py1# from __future__ import annotationsCOMMENT
LOWsrc/langbot/pkg/command/operators/resend.py21# while len(conv_msg) > 0 and conv_msg[-1].role != 'user':COMMENT
LOWsrc/langbot/pkg/command/operators/last.py1# from __future__ import annotationsCOMMENT
LOWsrc/langbot/pkg/command/operators/last.py21# error=command_errors.CommandOperationError('已经是第一个对话了')COMMENT
LOWsrc/langbot/pkg/command/operators/prompt.py1# from __future__ import annotationsCOMMENT
LOWsrc/langbot/pkg/command/operators/next.py1# from __future__ import annotationsCOMMENT
LOWsrc/langbot/pkg/command/operators/next.py21# )COMMENT
LOWsrc/langbot/pkg/vector/vdbs/valkey_search.py81# paginate through the full result set in batches of this size so thatCOMMENT
Modern AI Meta-Vocabulary15 hits · 41 pts
SeverityFileLineSnippetContext
MEDIUMARCHITECTURE.md139## Provider, RAG, and ToolsCOMMENT
MEDIUMtests/README.md101│ ├── rag/ # RAG testsCODE
MEDIUMtests/unit_tests/provider/test_litellmchat.py1291 # Check embedding model is detectedCOMMENT
MEDIUMtests/unit_tests/rag/test_kbmgr.py339# Preserve the complete pre-tenancy RAG manager regression matrix. EveryCOMMENT
MEDIUMtests/unit_tests/api/service/test_provider_service.py415 embedding_result.first = Mock(return_value=Mock(spec=EmbeddingModel)) # Has embedding modelCODE
MEDIUMtests/integration/api/test_knowledge.py130 # RAG managerCOMMENT
MEDIUMdocs/multi-tenant/implementation-checklist.md187### MCP, RAG, and BoxCOMMENT
MEDIUM…s/langbot-testing/references/langrag-knowledge-base.md63## Local-Agent RAG CheckCOMMENT
MEDIUMsrc/langbot/pkg/core/stages/build_app.py176 # across model/platform/pipeline/RAG/plugin initialization insteadCOMMENT
MEDIUMsrc/langbot/pkg/core/stages/build_app.py274 # Initialize RAG Runtime Service for pluginsCOMMENT
MEDIUMsrc/langbot/pkg/entity/persistence/rag.py18 # New fields for plugin-based RAGCOMMENT
MEDIUMsrc/langbot/pkg/plugin/handler.py1153 # ================= RAG Capability Handlers =================COMMENT
MEDIUMsrc/langbot/pkg/plugin/handler.py2084 # ================= RAG Capability Callers (LangBot -> Runtime) =================COMMENT
MEDIUMsrc/langbot/pkg/provider/runners/localagent.py43# generously so it never interrupts legitimate multi-step agentic workflows.STRING
MEDIUMsrc/langbot/pkg/vector/vdbs/valkey_search.py59# Fixed, indexed metadata schema. LangBot's RAG layer stores ``file_id`` onCOMMENT
Magic Placeholder Names8 hits · 40 pts
SeverityFileLineSnippetContext
HIGH…ponents/api-integration-dialog/ApiIntegrationPanel.tsx494 {`X-API-Key: <your-api-key>CODE
HIGH…ponents/api-integration-dialog/ApiIntegrationPanel.tsx496Authorization: Bearer <your-api-key>`}CODE
HIGH…ponents/api-integration-dialog/ApiIntegrationPanel.tsx512 "headers": { "X-API-Key": "<your-api-key>" }CODE
HIGHsrc/langbot/templates/default-pipeline-config.json64 "api-key": "your-api-key",CODE
HIGHsrc/langbot/templates/default-pipeline-config.json69 "api-key": "your-api-key",CODE
HIGHsrc/langbot/templates/default-pipeline-config.json87 "api-key": "your-api-key",CODE
HIGHsrc/langbot/templates/metadata/pipeline/ai.yaml594 default: 'your-api-key'CODE
HIGHsrc/langbot/templates/metadata/pipeline/ai.yaml639 default: 'your-api-key'CODE
Modern Structural Boilerplate38 hits · 40 pts
SeverityFileLineSnippetContext
LOWtests/unit_tests/api/service/test_space_service.py34def _set_response_body(response: MagicMock, body: dict | str) -> None:CODE
LOWtests/factories/__init__.py59__all__ = [CODE
LOWtests/e2e/conftest.py17logger = logging.getLogger(__name__)CODE
LOWtests/e2e/utils/process_manager.py16logger = logging.getLogger(__name__)CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py376 def set_card_action_callback(self, callback: Callable) -> None:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py385 def set_card_source(self, source: Optional[dict]) -> None:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/api.py1662 def set_card_source(self, source: Optional[dict]) -> None:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/api.py1667 def set_feedback_callback(self, callback: Callable) -> None:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/api.py1675 def set_card_action_callback(self, callback: Callable) -> None:CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/api.py138 def set_pending_form(self, stream_id: str, form_data: dict, task_id: str) -> None:CODE
LOWsrc/langbot/libs/weknora_api/__init__.py4__all__ = ['AsyncWeKnoraClient', 'WeKnoraAPIError']CODE
LOWsrc/langbot/libs/dify_service_api/__init__.py4__all__ = ['client', 'errors']CODE
LOWsrc/langbot/libs/deerflow_api/__init__.py5__all__ = ['AsyncDeerFlowClient', 'DeerFlowAPIError', 'stream_utils']CODE
LOWsrc/langbot/pkg/pipeline/config_coercion.py5logger = logging.getLogger(__name__)CODE
LOWsrc/langbot/pkg/box/__init__.py5__all__ = ['BoxWorkspaceSession']CODE
LOWsrc/langbot/pkg/skill/__init__.py3__all__ = ['SkillManager']CODE
LOW…c/langbot/pkg/platform/sources/web_page_bot_adapter.py35 def set_ws_adapter(self, ws_adapter) -> None:CODE
LOWsrc/langbot/pkg/platform/sources/websocket_adapter.py22logger = logging.getLogger(__name__)CODE
LOWsrc/langbot/pkg/platform/sources/http_bot.py129 def set_bot_uuid(self, bot_uuid: str) -> None:CODE
LOWsrc/langbot/pkg/platform/sources/websocket_manager.py14logger = logging.getLogger(__name__)CODE
LOWsrc/langbot/pkg/workspace/__init__.py14__all__ = [CODE
LOWsrc/langbot/pkg/provider/runners/difysvapi.py180def _set_pending_form(session_key: PendingFormKey, form_data: dict[str, typing.Any]) -> None:CODE
LOWsrc/langbot/pkg/cloud/__init__.py30__all__ = [CODE
LOWsrc/langbot/pkg/persistence/mgr.py367 def set_oss_tenant_scope(conn: sqlalchemy.Connection) -> None:CODE
LOWsrc/langbot/pkg/persistence/mgr.py395 def set_sqlite_pragma(dbapi_connection, _connection_record) -> None:CODE
LOW…/alembic/versions/0008_add_mcp_resource_preferences.py52def _update_preferences(conn: sa.Connection, uuid: str, preferences: dict[str, Any]) -> None:CODE
LOWsrc/langbot/pkg/api/mcp/__init__.py14__all__ = ['LangBotMCPServer']CODE
LOW…gbot/pkg/api/http/controller/groups/pipelines/embed.py27logger = logging.getLogger(__name__)CODE
LOW…api/http/controller/groups/pipelines/websocket_chat.py21logger = logging.getLogger(__name__)CODE
LOWsrc/langbot/pkg/api/http/service/user.py202 async def _update_space_provider_for_account(self, account: typing.Any, api_key: str) -> None:CODE
LOWsrc/langbot/pkg/api/http/service/user.py754 async def set_password(self, user_email: str, new_password: str, current_password: str | None = None) -> None:CODE
LOWsrc/langbot/pkg/api/http/service/provider.py133 async def update_provider(self, context: TenantContext, provider_uuid: str, provider_data: dict) -> None:CODE
LOWsrc/langbot/pkg/api/http/service/provider.py310 async def update_space_model_provider_api_keys(self, context: TenantContext, api_key: str) -> None:CODE
LOWsrc/langbot/pkg/api/http/service/bot.py144 async def update_bot(self, context: TenantContext, bot_uuid: str, bot_data: dict) -> None:CODE
LOWsrc/langbot/pkg/api/http/service/mcp.py317 async def update_mcp_server(self, context: TenantContext, server_uuid: str, server_data: dict) -> None:CODE
LOWsrc/langbot/pkg/api/http/service/pipeline.py147 async def update_pipeline(self, context: TenantContext, pipeline_uuid: str, pipeline_data: dict) -> None:CODE
LOWsrc/langbot/pkg/telemetry/features.py49def set_value(query: pipeline_query.Query, group: str, value: typing.Any) -> None:CODE
LOWsrc/langbot/pkg/vector/filter_utils.py21logger = logging.getLogger(__name__)CODE
Verbosity Indicators22 hits · 34 pts
SeverityFileLineSnippetContext
LOW…p/home/knowledge/components/kb-docs/FileUploadZone.tsx86 // Step 1: Upload file to serverCOMMENT
LOW…p/home/knowledge/components/kb-docs/FileUploadZone.tsx89 // Step 2: Associate file with knowledge base (with optional parser)COMMENT
LOWweb/src/app/wizard/page.tsx1016// Step 0: Select PlatformCOMMENT
LOWweb/src/app/wizard/page.tsx1120// Step 1: Bot Configuration + LogsCOMMENT
LOWweb/src/app/wizard/page.tsx1452// Step 2: Select & Configure AI EngineCOMMENT
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py546 # Step 1: init.COMMENT
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py572 # Step 2: chunks.COMMENT
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py592 # Step 3: finish.COMMENT
LOWsrc/langbot/libs/dify_service_api/v1/client.py208 # Step 1: Submit the formCOMMENT
LOWsrc/langbot/libs/dify_service_api/v1/client.py226 # Step 2: Stream resumed workflow eventsCOMMENT
LOW…ot/pkg/api/http/controller/groups/platform/adapters.py550 # Step 1: Init — get nonceCOMMENT
LOW…ot/pkg/api/http/controller/groups/platform/adapters.py567 # Step 2: Begin — get device_code + QR URLCOMMENT
LOW…ot/pkg/api/http/controller/groups/platform/adapters.py594 # Step 3: Poll for authorization resultCOMMENT
LOW…ot/pkg/api/http/controller/groups/platform/adapters.py766 # Step 1: Generate QR codeCOMMENT
LOW…ot/pkg/api/http/controller/groups/platform/adapters.py789 # Step 2: Poll for scan resultCOMMENT
LOW…ot/pkg/api/http/controller/groups/platform/adapters.py963 # Step 1: create_bind_task — register our AES key, get task_idCOMMENT
LOW…ot/pkg/api/http/controller/groups/platform/adapters.py997 # Step 2: poll_bind_result until completed (status=2) or expired (3).COMMENT
LOW…/pkg/api/http/controller/groups/knowledge/migration.py226 # Step 1: Install all required plugins from marketplaceCOMMENT
LOW…/pkg/api/http/controller/groups/knowledge/migration.py244 # Step 2: Wait for all plugins to become available as knowledge enginesCOMMENT
LOW…/pkg/api/http/controller/groups/knowledge/migration.py281 # Step 3: Restore internal knowledge bases from backupCOMMENT
LOW…/pkg/api/http/controller/groups/knowledge/migration.py334 # Step 4: Restore external knowledge basesCOMMENT
LOW…/pkg/api/http/controller/groups/knowledge/migration.py416 # Step 5: Clear migration flagCOMMENT
Structural Annotation Overuse22 hits · 34 pts
SeverityFileLineSnippetContext
LOW…p/home/knowledge/components/kb-docs/FileUploadZone.tsx86 // Step 1: Upload file to serverCOMMENT
LOW…p/home/knowledge/components/kb-docs/FileUploadZone.tsx89 // Step 2: Associate file with knowledge base (with optional parser)COMMENT
LOWweb/src/app/wizard/page.tsx1016// Step 0: Select PlatformCOMMENT
LOWweb/src/app/wizard/page.tsx1120// Step 1: Bot Configuration + LogsCOMMENT
LOWweb/src/app/wizard/page.tsx1452// Step 2: Select & Configure AI EngineCOMMENT
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py546 # Step 1: init.COMMENT
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py572 # Step 2: chunks.COMMENT
LOWsrc/langbot/libs/wecom_ai_bot_api/ws_client.py592 # Step 3: finish.COMMENT
LOWsrc/langbot/libs/dify_service_api/v1/client.py208 # Step 1: Submit the formCOMMENT
LOWsrc/langbot/libs/dify_service_api/v1/client.py226 # Step 2: Stream resumed workflow eventsCOMMENT
LOW…ot/pkg/api/http/controller/groups/platform/adapters.py550 # Step 1: Init — get nonceCOMMENT
LOW…ot/pkg/api/http/controller/groups/platform/adapters.py567 # Step 2: Begin — get device_code + QR URLCOMMENT
LOW…ot/pkg/api/http/controller/groups/platform/adapters.py594 # Step 3: Poll for authorization resultCOMMENT
LOW…ot/pkg/api/http/controller/groups/platform/adapters.py766 # Step 1: Generate QR codeCOMMENT
LOW…ot/pkg/api/http/controller/groups/platform/adapters.py789 # Step 2: Poll for scan resultCOMMENT
LOW…ot/pkg/api/http/controller/groups/platform/adapters.py963 # Step 1: create_bind_task — register our AES key, get task_idCOMMENT
LOW…ot/pkg/api/http/controller/groups/platform/adapters.py997 # Step 2: poll_bind_result until completed (status=2) or expired (3).COMMENT
LOW…/pkg/api/http/controller/groups/knowledge/migration.py226 # Step 1: Install all required plugins from marketplaceCOMMENT
LOW…/pkg/api/http/controller/groups/knowledge/migration.py244 # Step 2: Wait for all plugins to become available as knowledge enginesCOMMENT
LOW…/pkg/api/http/controller/groups/knowledge/migration.py281 # Step 3: Restore internal knowledge bases from backupCOMMENT
LOW…/pkg/api/http/controller/groups/knowledge/migration.py334 # Step 4: Restore external knowledge basesCOMMENT
LOW…/pkg/api/http/controller/groups/knowledge/migration.py416 # Step 5: Clear migration flagCOMMENT
Docstring Block Structure5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHsrc/langbot/libs/openclaw_weixin_api/client.py592Complete QR code login flow with auto-retry on expiry. Args: max_retries: Max number of QR code refSTRING
HIGHsrc/langbot/pkg/platform/sources/discord.py196 加入语音频道 验证用户权限和频道状态后,建立到指定语音频道的连接。 支持连接复用和自动重连机制。 @author: @ydzat Args: STRING
HIGHsrc/langbot/pkg/platform/sources/discord.py970 加入语音频道 为指定服务器的语音频道建立连接,支持用户权限验证和连接复用。 @author: @ydzat @version: 1.0 @since: 2STRING
HIGHsrc/langbot/pkg/plugin/connector.py2222Parse a plugin ID string into (author, name). Args: plugin_id: Plugin ID in 'author/name' format. STRING
HIGHsrc/langbot/pkg/utils/image.py60从gewechat服务器获取图片并转换为base64格式 Args: gewechat_url (str): gewechat服务器地址(用于获取图片URL) gewechat_file_url (STRING
AI Slop Vocabulary7 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMweb/src/app/home/layout.tsx57// Map a /home route to the i18n key for its type-level title. Used as a robustCOMMENT
MEDIUMtests/unit_tests/utils/test_paths.py37 # ``main.py`` instead of relying on the cwd. That makes it robust to whereCOMMENT
LOWtests/unit_tests/api/service/test_pipeline_service.py448 # First call is the UPDATE - just return a MockCOMMENT
LOWsrc/langbot/pkg/platform/sources/kook.py168 # If download fails, just add as plain textCOMMENT
LOWsrc/langbot/pkg/platform/sources/kook.py187 # Other message types, just use content as plain textCOMMENT
LOWsrc/langbot/pkg/platform/sources/telegram.py396 # If edit fails (e.g. message too long), just passCOMMENT
MEDIUMsrc/langbot/pkg/api/http/service/model.py51 # makes the serializer robust to a reused/self-referential test double.COMMENT
AI Structural Patterns21 hits · 15 pts
SeverityFileLineSnippetContext
LOWtests/unit_tests/api/service/test_bot_service.py26CODE
LOWscripts/build_dingtalk_card_template.py275CODE
LOWsrc/langbot/libs/dingtalk_api/api.py675CODE
LOWsrc/langbot/libs/qq_official_api/api.py924CODE
LOWsrc/langbot/pkg/box/workspace.py286CODE
LOWsrc/langbot/pkg/core/taskmgr.py117CODE
LOWsrc/langbot/pkg/core/taskmgr.py250CODE
LOWsrc/langbot/pkg/core/taskmgr.py288CODE
LOWsrc/langbot/pkg/plugin/handler.py1828CODE
LOWsrc/langbot/pkg/plugin/handler.py1973CODE
LOWsrc/langbot/pkg/plugin/handler.py2067CODE
LOWsrc/langbot/pkg/plugin/handler.py2082CODE
LOWsrc/langbot/pkg/plugin/handler.py2095CODE
LOWsrc/langbot/pkg/plugin/handler.py2114CODE
LOWsrc/langbot/pkg/plugin/handler.py2123CODE
LOWsrc/langbot/pkg/plugin/handler.py2170CODE
LOWsrc/langbot/pkg/rag/knowledge/kbmgr.py597CODE
LOWsrc/langbot/pkg/api/http/service/monitoring.py406CODE
LOWsrc/langbot/pkg/api/http/service/monitoring.py501CODE
LOWsrc/langbot/pkg/api/http/service/monitoring.py2027CODE
LOWsrc/langbot/pkg/vector/vdbs/pgvector_db.py113CODE
Fake / Example Data10 hits · 8 pts
SeverityFileLineSnippetContext
LOWweb/tests/e2e/login.spec.ts16 await page.getByPlaceholder('Enter email address').fill('admin@example.com');CODE
LOWweb/tests/e2e/login.spec.ts77 await page.getByPlaceholder('Enter email address').fill('admin@example.com');CODE
LOW…c/app/home/components/home-sidebar/FeedbackPopover.tsx137 placeholder={tf('placeholder')}CODE
LOWtests/unit_tests/box/test_box_service.py1689 spec = BoxSpec.model_validate({'cmd': 'placeholder', 'session_id': 'r-create-1'})CODE
LOWtests/integration/api/test_smoke.py98 app.user_service.authenticate = AsyncMock(return_value='fake_token')CODE
LOWtests/integration/api/test_smoke.py102 app.user_service.generate_jwt_token = AsyncMock(return_value='fake_token')CODE
LOWscripts/build_dingtalk_card_template.py158 'placeholder': _dynamic_string_var('input_placeholder'),CODE
LOWscripts/build_dingtalk_card_template.py221 'placeholder': _dynamic_string_var('select_placeholder'),CODE
LOWsrc/langbot/pkg/platform/sources/lark.py2456 'placeholder': {'tag': 'plain_text', 'content': '请选择'},CODE
LOWsrc/langbot/pkg/platform/sources/lark.py2490 'placeholder': {'tag': 'plain_text', 'content': '请输入'},CODE
Dead Code4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit_tests/pipeline/test_chat_handler.py336CODE
MEDIUMtests/unit_tests/pipeline/test_chat_handler.py384CODE
MEDIUMtests/unit_tests/pipeline/test_chat_handler.py429CODE
MEDIUMsrc/langbot/pkg/provider/runners/localagent.py358CODE
Overly Generic Function Names8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/unit_tests/platform/test_wecomcs_api.py13 def handle_request(request: httpx.Request) -> httpx.Response:CODE
LOWsrc/langbot/libs/official_account_api/api.py218 async def run_task(self, host: str, port: int, *args, **kwargs):CODE
LOWsrc/langbot/libs/official_account_api/api.py449 async def run_task(self, host: str, port: int, *args, **kwargs):CODE
LOWsrc/langbot/libs/wecom_ai_bot_api/api.py2222 async def run_task(self, host: str, port: int, *args, **kwargs):CODE
LOWsrc/langbot/libs/wecom_customer_service_api/api.py393 async def run_task(self, host: str, port: int, *args, **kwargs):CODE
LOWsrc/langbot/libs/wecom_api/api.py406 async def run_task(self, host: str, port: int, *args, **kwargs):CODE
LOWsrc/langbot/libs/slack_api/api.py129 async def run_task(self, host: str, port: int, *args, **kwargs):CODE
LOWsrc/langbot/libs/qq_official_api/api.py311 async def run_task(self, host: str, port: int, *args, **kwargs):CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdocker/kubernetes.yaml6# Usage:COMMENT