AI Slop Code RIsk Monitor

ModelEngine-Group/nexent

Nexent is a zero-code platform for auto-generating production-grade AI agents using Harness Engineering principles — unified tools, skills, memory, and orchestration with built-in constraints, feedback loops, and control planes.

31.7 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for ModelEngine-Group/nexent, a Python project with 5,914 GitHub stars. SynthScan examined 937,657 lines of code across 2682 source files, recording 24408 pattern matches distributed across 26 syntactic categories. The legacy adjusted pattern signal is 31.7 (High pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

31.7
Adjusted Signal
31.7
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
5.9K
Stars
Python
Language
937.7K
Lines of Code
2.7K
Files
24.4K
Pattern Hits
2026-10-12
Scan Date
0.19
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 57.2/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 18276 finding(s).

Hallucinated Dependency & Supply Chain Risk 7.3/100 · LOW

Are imports declared and package/API names verified? 1274 finding(s).

Agent Over-Engineering Ratio 74.6/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 21815 finding(s).

PR Review Velocity Impact 82.7/100 · CRITICAL

Which changes need focused human review? 24408 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 19HIGH 496MEDIUM 2943LOW 20950

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 24408 distinct pattern matches across 26 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers16875 hits · 13263 pts
SeverityFileLineSnippetContext
LOWexperimental/tune/joint_evaluator.py102 def handle_inference_with_retry(self, user_prompt, system_prompt=None, is_assistant: bool = True):CODE
LOWexperimental/tune/joint_evaluator.py113 def infer_and_compare_example(self, prompt, example, stop_event: threading.Event):CODE
LOWexperimental/tune/base/case.py21 def check_message_list_content(cls, value: List[Dict], info: FieldValidationInfo) -> List[Dict]:CODE
LOWexperimental/tune/base/case.py132 def _get_case_value_with_check(data: Dict[str, Any], key: str, index: int) -> Any:CODE
LOWfrontend/server.js830function updateAndSaveLocaleConfig(fields) {CODE
LOW…end/ext_components/aidp/AidpKnowledgeSelectorModal.tsx59export default function AidpKnowledgeSelectorModal({CODE
LOWfrontend/types/quota.ts259export function getQuotaConflictTranslationKey(CODE
LOW…ponents/knowledge/PersonalKnowledgeBaseCapacityBar.tsx21export default function PersonalKnowledgeBaseCapacityBar() {CODE
LOW…tend/app/[locale]/chat/streaming/messageTransformer.ts11export function transformMessagesToTaskMessages(CODE
LOW…tend/app/[locale]/chat/streaming/chatStreamHandler.tsx364export function reconstructFromStreamingMessage(CODE
LOW…app/[locale]/chat/streaming/chatStreamFinalMessage.tsx73function ChatStreamFinalMessageInner({CODE
LOW…le]/resource-manage/components/resources/SkillList.tsx54function filterYamlDocKeysFromEntries(CODE
LOW…le]/resource-manage/components/resources/SkillList.tsx72function primitiveArrayToListInput(arr: unknown[]): string {CODE
LOW…le]/resource-manage/components/resources/SkillList.tsx106function parseListInputToPrimitiveArray(CODE
LOW…le]/resource-manage/components/resources/SkillList.tsx132function restorePrimitiveArraysFromForm(CODE
LOW…le]/resource-manage/components/resources/SkillList.tsx260function deepMergePreserveUnderscore(CODE
LOW…e/components/resources/ModelCapacityCoverageWidget.tsx17export default function ModelCapacityCoverageWidget({ onViewAll }: Props) {CODE
LOW…components/resources/PersonalKnowledgeBaseCapacity.tsx94function getLocalizedQuotaErrorMessage(CODE
LOW…components/resources/PersonalKnowledgeBaseCapacity.tsx110function getQuotaSubmitErrorMessage(CODE
LOW…components/resources/PersonalKnowledgeBaseCapacity.tsx460export default function PersonalKnowledgeBaseCapacity({CODE
LOWfrontend/app/[locale]/agent-repository/page.tsx9export default function AgentRepositoryRedirectPage() {CODE
LOW…ocale]/skill-space/components/skillRepositoryShared.ts22export function getSkillRepositoryStatusLabel(CODE
LOW…ocale]/skill-space/components/skillRepositoryShared.ts64export function pickReviewDisplayRepositoryInfo(CODE
LOW…ocale]/skill-space/components/skillRepositoryShared.ts83export function isCancelableRepositoryStatus(CODE
LOW…ocale]/skill-space/components/skillRepositoryShared.ts89export function isTakeDownableRepositoryStatus(CODE
LOW…space/components/SkillRepositoryReviewConfirmModal.tsx20export function SkillRepositoryReviewConfirmModal({CODE
LOW…[locale]/agents/versions/AgentVersionPubulishModal.tsx33export default function AgentVersionPubulishModal({CODE
LOW…e]/agents/[agentId]/components/collaborative-agent.tsx92export function CollaborativeAgentActions() {CODE
LOW…/agents/[agentId]/components/knowledge-base-search.tsx149function useKnowledgeBaseConfigState(): KnowledgeBaseConfigState | null {CODE
LOW…/agents/[agentId]/components/knowledge-base-search.tsx309export function KnowledgeBaseConfigActions() {CODE
LOW…onents/advanced/collaborative-agent-selector-modal.tsx99export default function CollaborativeAgentSelectorModal({CODE
LOW…ts/[agentId]/components/a2a/A2AAgentDiscoveryModal.tsx234function extractAvailableProtocols(supportedInterfaces?: Record<string, any>[]): string[] {CODE
LOW…nts/[agentId]/components/capability/ToolManagement.tsx40function isToolDisabledDueToEmbedding(name: string, emb: boolean): boolean {CODE
LOW…ntId]/components/capability/tool/SelectToolsDialog.tsx53function getToolDisabledTooltipKey(CODE
LOW…cale]/agents/components/capability/SkillBuildModal.tsx98function stripLeadingSkillFrontmatter(content: string): string {CODE
LOW…/agents/components/capability/tool/ToolConfigModal.tsx142function withAnalyzeToolModelParam(CODE
LOW…pp/[locale]/models/components/model/ModelAddDialog.tsx280function applyAdvancedSettingsToParams(CODE
LOW…pp/[locale]/models/components/model/ModelAddDialog.tsx313function capacitySuggestionToSettings(CODE
LOWfrontend/app/[locale]/mcp-space/my-mcp.tsx779export function getDeploymentCategoryStats(CODE
LOWfrontend/app/[locale]/mcp-space/my-mcp.tsx853export function toMcpContainerConfigPayload(CODE
LOW…p-space/components/McpRepositoryReviewConfirmModal.tsx20export default function McpRepositoryReviewConfirmModal({CODE
LOW…]/mcp-space/components/PublishedServiceDetailModal.tsx50export default function PublishedServiceDetailModal({CODE
LOW…ace/components/add/local/AddMcpServiceLocalSection.tsx116export default function AddMcpServiceLocalSection({CODE
LOW…onents/add/community/AddMcpServiceCommunitySection.tsx15export default function AddMcpServiceCommunitySection({CODE
LOW…e]/newchat/ui/suggested-resource-installation-card.tsx210export function SuggestedResourceInstallationCard({CODE
LOWfrontend/app/[locale]/newchat/ui/model-selector.tsx756function ModelSelectorModelContext() {CODE
LOWfrontend/app/[locale]/newchat/ui/markdown-text.tsx151function buildCitationDisplayIndexMap(CODE
LOWfrontend/app/[locale]/newchat/ui/tool-fallback.tsx196function ToolFallbackSearchContent({CODE
LOWfrontend/app/[locale]/newchat/ui/quote.tsx197function ComposerQuotePreviewDismiss({CODE
LOWfrontend/app/[locale]/newchat/ui/skill-directives.ts68export function normalizeSkillDirectivePath(value: string): string | null {CODE
LOWfrontend/app/[locale]/newchat/ui/skill-directives.ts133export function createXmlDirectiveFormatter(CODE
LOWfrontend/app/[locale]/newchat/ui/skill-directives.ts227export function escapeSkillDirectivesForMarkdown(value: string): string {CODE
LOWfrontend/app/[locale]/newchat/ui/skill-directives.ts242function isSkillDirectiveCandidateHtml(value: string): boolean {CODE
LOW…/[locale]/newchat/adapter/remote-chat-model-adapter.ts50function getRetrievalHighlightTerms(scoreDetails: unknown): string[] {CODE
LOW…/[locale]/newchat/adapter/remote-chat-model-adapter.ts318function notifyKnowledgeScopeResolved(CODE
LOW…/[locale]/newchat/adapter/remote-chat-model-adapter.ts925export function attachExecutionLogsToTool(CODE
LOW…/[locale]/newchat/adapter/remote-chat-model-adapter.ts951export function attachSearchContentToTool(CODE
LOW…/[locale]/newchat/adapter/remote-chat-model-adapter.ts1303function buildTimingFromTokenCount(CODE
LOW…]/agent-space/components/AgentRepositoryCopyDialog.tsx67export function AgentRepositoryCopyDialog({CODE
LOW…space/components/AgentRepositoryReviewConfirmModal.tsx23export function AgentRepositoryReviewConfirmModal({CODE
16815 more matches not shown…
Decorative Section Separators2621 hits · 9133 pts
SeverityFileLineSnippetContext
MEDIUMfrontend/types/quota.ts247// ── Error types ──────────────────────────────────────────────COMMENT
MEDIUM…nts/[agentId]/components/capability/ToolManagement.tsx335// ─── Pure helper ─────────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/page.tsx146 // ── Top-level list state ──────────────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/page.tsx165 // ── Drawer (create-evaluation form) state ─────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/page.tsx200 // ── Trial-run (in-drawer "Try it out") state ───────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/page.tsx228 // ── Init agent filters from URL ───────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/page.tsx254 // ── Polling ───────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx42// ── helpers ──────────────────────────────────────────────────COMMENT
MEDIUM⚡frontend/app/[locale]/evaluation/[id]/page.tsx125// ── component ────────────────────────────────────────────────COMMENT
MEDIUM⚡frontend/app/[locale]/evaluation/[id]/page.tsx133 // ── Core data state ────────────────────────────────────────COMMENT
MEDIUM⚡frontend/app/[locale]/evaluation/[id]/page.tsx137 // ── Case table state (paginated, server-driven) ─────────────COMMENT
MEDIUM⚡frontend/app/[locale]/evaluation/[id]/page.tsx158 // ── AI analysis (root cause) state ──────────────────────────COMMENT
MEDIUM⚡frontend/app/[locale]/evaluation/[id]/page.tsx167 // ── Chart-ready aggregates ─────────────────────────────────COMMENT
MEDIUM⚡frontend/app/[locale]/evaluation/[id]/page.tsx172 // ── Filter state ────────────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx191 // ── Annotation state ──────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx401 // ── Server-side data fetching ────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx566 // ── Polling ─────────────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx589 // ── Stats from API ───────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx631 // ── case columns ────────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx1058 // ── render ──────────────────────────────────────────────COMMENT
MEDIUMfrontend/hooks/useQuotaWarningImpl.tsx75// ── Helpers ────────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/hooks/useQuotaWarningImpl.tsx387 // ── KB-level warnings ──────────────────────────────────────────COMMENT
MEDIUMfrontend/hooks/useQuotaWarningImpl.tsx437 // ── Tenant-level warnings ──────────────────────────────────────COMMENT
MEDIUMfrontend/hooks/useQuotaWarningImpl.tsx495 // ── Tenant-level ───────────────────────────────────────────────COMMENT
MEDIUMfrontend/hooks/useQuotaWarningImpl.tsx526 // ── Per-KB breakdown ───────────────────────────────────────────COMMENT
MEDIUMfrontend/services/quotaService.ts23 // ── Tenant-Level Quota ──────────────────────────────────────────COMMENT
MEDIUMfrontend/services/quotaService.ts103 // ── Platform-Level Quota (SU/ASSET_OWNER/SPEED) ────────────────COMMENT
MEDIUMfrontend/services/quotaService.ts195 // ── Personal KB Capacity (ADMIN/SU) ────────────────────────────────COMMENT
MEDIUM⚡…st/ext_components/aidp/test_aidp_permission_service.py520# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…st/ext_components/aidp/test_aidp_permission_service.py522# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…st/ext_components/aidp/test_aidp_permission_service.py547# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…st/ext_components/aidp/test_aidp_permission_service.py549# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…st/ext_components/aidp/test_aidp_permission_service.py582# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…st/ext_components/aidp/test_aidp_permission_service.py584# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…st/ext_components/aidp/test_aidp_permission_service.py603# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…st/ext_components/aidp/test_aidp_permission_service.py605# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…st/ext_components/aidp/test_aidp_permission_service.py630# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…st/ext_components/aidp/test_aidp_permission_service.py632# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…st/ext_components/aidp/test_aidp_permission_service.py661# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…st/ext_components/aidp/test_aidp_permission_service.py663# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…st/ext_components/aidp/test_aidp_permission_service.py672# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…st/ext_components/aidp/test_aidp_permission_service.py674# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡test/ext_components/aidp/test_aidp_search_tool.py545 # ------------------------------------------------------------------COMMENT
MEDIUM⚡test/ext_components/aidp/test_aidp_search_tool.py547 # ------------------------------------------------------------------COMMENT
MEDIUM⚡test/ext_components/aidp/test_aidp_search_tool.py580 # ------------------------------------------------------------------COMMENT
MEDIUM⚡test/ext_components/aidp/test_aidp_search_tool.py582 # ------------------------------------------------------------------COMMENT
MEDIUM⚡test/ext_components/aidp/test_aidp_search_tool.py627 # ------------------------------------------------------------------COMMENT
MEDIUM⚡test/ext_components/aidp/test_aidp_search_tool.py629 # ------------------------------------------------------------------COMMENT
MEDIUM⚡test/ext_components/aidp/test_aidp_search_tool.py678 # ------------------------------------------------------------------COMMENT
MEDIUM⚡test/ext_components/aidp/test_aidp_search_tool.py680 # ------------------------------------------------------------------COMMENT
MEDIUM⚡test/ext_components/aidp/test_aidp_search_tool.py807 # ------------------------------------------------------------------COMMENT
MEDIUM⚡test/ext_components/aidp/test_aidp_search_tool.py809 # ------------------------------------------------------------------COMMENT
MEDIUM⚡test/ext_components/aidp/test_aidp_search_tool.py848# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡test/ext_components/aidp/test_aidp_search_tool.py850# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡test/ext_components/aidp/test_aidp_search_tool.py927# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡test/ext_components/aidp/test_aidp_search_tool.py929# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡test/ext_components/aidp/test_aidp_search_tool.py932# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡test/ext_components/aidp/test_aidp_search_tool.py934# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡test/ext_components/aidp/test_aidp_search_tool.py959# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡test/ext_components/aidp/test_aidp_search_tool.py962# ---------------------------------------------------------------------------COMMENT
2561 more matches not shown…
Excessive Try-Catch Wrapping1734 hits · 1524 pts
SeverityFileLineSnippetContext
LOWexperimental/tune/joint_evaluator.py165 except Exception as e:CODE
LOWexperimental/tune/base/utils.py156 except Exception as e:CODE
LOWexperimental/tune/base/utils.py176 except Exception as e:CODE
LOWtest/run_all_test.py323 except Exception as exc:CODE
MEDIUMtest/ext_components/aidp/test_aidp_permission_db.py139def _patched(_db_session=None):CODE
LOWtest/ext_components/aidp/test_aidp_permission_db.py143 except Exception:CODE
LOW…_components/aidp/mock_servers/aidp_mgmt_mock_server.py762 except Exception as e:CODE
LOWtest/mock-services/a2a-agent/app/nacos_registry.py91 except Exception as exc: # Registration evidence keeps the final external failure.CODE
LOWtest/mock-services/a2a-agent/app/nacos_registry.py112 except Exception as exc:CODE
LOW⚡test/backend/database/test_evaluator_db.py653 except Exception:CODE
LOWtest/backend/database/test_evaluator_db.py355 except Exception:CODE
LOWtest/backend/database/test_evaluator_db.py597 except Exception:CODE
LOWtest/backend/database/test_evaluator_db.py641 except Exception:CODE
LOWtest/backend/app/test_northbound_base_app.py256except Exception:CODE
LOWtest/backend/app/test_agent_app.py2015 except Exception:CODE
LOW⚡test/backend/app/test_idata_app.py207 except Exception as e:CODE
LOW⚡test/backend/app/test_idata_app.py438 except Exception as e:CODE
LOWtest/backend/app/test_skill_repository_app.py62except Exception:CODE
LOWtest/backend/utils/test_evaluation_set_excel_utils.py58except Exception:CODE
LOWtest/backend/utils/test_evaluation_set_excel_utils.py126except Exception:CODE
LOWtest/backend/utils/test_monitoring.py146 except Exception as e:CODE
LOWtest/backend/utils/test_monitoring.py202 except Exception as e:CODE
MEDIUMtest/backend/utils/test_monitoring.py197def worker():CODE
LOW…st/backend/services/test_tool_configuration_service.py26except Exception:CODE
LOW…st/backend/services/test_tool_configuration_service.py498except Exception:CODE
MEDIUMtest/backend/services/test_model_provider_service.py1641def mock_get_models_with_exception_handling(config):CODE
LOW⚡test/backend/services/test_model_provider_service.py1647 except Exception:CODE
LOWtest/backend/services/test_mcp_management_service.py15except Exception:CODE
LOWtest/backend/services/test_mcp_management_service.py50except Exception:CODE
MEDIUMtest/backend/services/test_memory_config_service.py65def _filter_property(data, model_class):CODE
LOWtest/backend/services/test_memory_config_service.py68 except Exception:CODE
LOW⚡test/backend/services/test_skill_service.py2218 except Exception as e:CODE
LOW⚡test/backend/services/test_skill_service.py2238 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2379 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2438 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2581 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2603 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2620 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2637 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2653 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2669 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2686 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2703 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2729 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py3268 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py5051 except Exception as e:CODE
LOW⚡test/backend/services/test_agent_service.py14041 except Exception:CODE
LOWtest/backend/services/test_agent_service.py101except Exception:CODE
LOWtest/backend/services/test_prompt_service.py3174 except Exception:CODE
LOWtest/backend/services/test_skill_repository_service.py205except Exception:CODE
LOW⚡test/backend/services/test_mcp_container_service.py1442 except Exception:CODE
LOW⚡test/backend/services/test_mcp_container_service.py1468 except Exception:CODE
LOW⚡test/backend/services/test_mcp_container_service.py1488 except Exception:CODE
LOW⚡test/backend/services/test_mcp_container_service.py1509 except Exception:CODE
LOWtest/backend/services/test_vectordatabase_service.py47except Exception:CODE
LOWtest/backend/services/test_vectordatabase_service.py3945 except Exception:CODE
LOWtest/backend/services/test_agent_evaluation_service.py491except Exception: # noqa: BLE001CODE
LOWtest/backend/services/test_model_management_service.py52except Exception:CODE
MEDIUMtest/sdk/core/agents/test_sandbox.py253def _docker_available() -> bool:CODE
LOW⚡test/sdk/core/agents/test_sandbox.py293 except Exception:CODE
1674 more matches not shown…
Unused Imports1096 hits · 860 pts
SeverityFileLineSnippetContext
LOWexperimental/tune/base/utils.py10CODE
LOWtest/ext_components/aidp/conftest.py8CODE
LOW…st/ext_components/aidp/test_aidp_permission_service.py7CODE
LOW…st/ext_components/aidp/test_aidp_permission_service.py9CODE
LOWtest/ext_components/aidp/test_aidp_mgmt_app.py13CODE
LOWtest/ext_components/aidp/test_aidp_mgmt_app.py21CODE
LOWtest/ext_components/aidp/test_aidp_mgmt_app.py529CODE
LOWtest/ext_components/aidp/test_aidp_exceptions.py7CODE
LOWtest/ext_components/aidp/test_aidp_client.py6CODE
LOWtest/ext_components/aidp/test_aidp_client.py12CODE
LOWtest/ext_components/aidp/test_aidp_permission_db.py15CODE
LOW…_components/aidp/mock_servers/aidp_mgmt_mock_server.py406CODE
LOWtest/mock-services/deploy.py3CODE
LOWtest/mock-services/a2a-agent/app/scenarios.py3CODE
LOWtest/mock-services/a2a-agent/app/auth.py3CODE
LOWtest/mock-services/a2a-agent/app/redaction.py3CODE
LOWtest/mock-services/a2a-agent/app/server.py3CODE
LOWtest/mock-services/a2a-agent/app/nacos_registry.py3CODE
LOWtest/mock-services/a2a-agent/app/config.py3CODE
LOWtest/mock-services/a2a-agent/app/observations.py3CODE
LOWtest/mock-services/a2a-agent/app/cards.py3CODE
LOWtest/mock-services/a2a-agent/app/executor.py3CODE
LOWtest/mock-services/a2a-agent/tests/test_mock_core.py1CODE
LOWtest/mock-services/a2a-agent/tests/test_server.py1CODE
LOWtest/tools/test_asset_lib.py3CODE
LOWtest/tools/generate_excel.py3CODE
LOWtest/tools/validate_cases.py3CODE
LOWtest/tools/validate_traceability.py3CODE
LOWtest/tools/validate_test_assets.py3CODE
LOWtest/tools/validate_manifest.py3CODE
LOWtest/tools/validate_changes.py3CODE
LOWtest/tools/validate_features.py3CODE
LOWtest/tools/tests/test_formal_test_assets.py3CODE
LOWtest/probes/a2a_client_probe.py4CODE
LOWtest/backend/test_runtime_service.py3CODE
LOWtest/backend/test_runtime_service.py7CODE
LOWtest/backend/test_summary_formatting.py5CODE
LOWtest/backend/test_llm_integration.py5CODE
LOWtest/backend/test_llm_integration.py9CODE
LOWtest/backend/test_cluster_summarization.py10CODE
LOWtest/backend/test_document_vector_utils_coverage.py8CODE
LOWtest/backend/test_document_vector_utils_coverage.py74CODE
LOWtest/backend/database/test_model_managment_db.py4CODE
LOWtest/backend/database/test_memory_dreaming_lease.py6CODE
LOWtest/backend/database/test_attachment_db.py8CODE
LOWtest/backend/database/test_attachment_db.py9CODE
LOWtest/backend/database/test_memory_dreaming_db.py10CODE
LOW…t/backend/database/test_agent_db_workbench_coverage.py7CODE
LOWtest/backend/database/test_agent_db.py5CODE
LOWtest/backend/database/test_tool_db.py3CODE
LOWtest/backend/database/test_agent_evaluation_db.py11CODE
LOWtest/backend/database/test_knowledge_db.py10CODE
LOWtest/backend/database/test_knowledge_db.py11CODE
LOWtest/backend/database/test_knowledge_db.py191CODE
LOWtest/backend/database/test_agent_version_db.py3CODE
LOWtest/backend/database/test_agent_version_db.py4CODE
LOWtest/backend/database/test_agent_version_db.py72CODE
LOWtest/backend/database/test_agent_version_db.py72CODE
LOWtest/backend/database/test_skill_db.py10CODE
LOWtest/backend/database/test_evaluator_db.py26CODE
1036 more matches not shown…
Empty Error Handlers172 hits · 860 pts
SeverityFileLineSnippetContext
HIGHtest/backend/database/test_agent_db.py104except (ImportError, Exception):CODE
HIGHtest/backend/database/test_memory_record_db.py146except StopIteration:CODE
HIGHtest/backend/database/test_agent_version_db.py245except (AttributeError, TypeError):CODE
HIGHtest/backend/database/test_agent_version_db.py209except (AttributeError, TypeError):CODE
HIGHtest/backend/database/test_evaluator_db.py183except AttributeError:CODE
HIGHtest/backend/database/test_evaluator_db.py355except Exception:CODE
HIGHtest/backend/database/test_evaluator_db.py653except Exception:CODE
HIGHtest/backend/database/test_evaluator_db.py597except Exception:CODE
HIGHtest/backend/app/test_agent_app.py2015except Exception:CODE
HIGHtest/backend/app/test_evaluation_delete_app.py146except RuntimeError:CODE
HIGHtest/backend/agents/test_agent_run_manager.py231except AgentRunAlreadyActiveError:CODE
HIGHtest/backend/utils/test_evaluation_set_excel_utils.py126except Exception:CODE
HIGHtest/backend/services/test_mcp_management_service.py15except Exception:CODE
HIGHtest/backend/services/test_mcp_management_service.py50except Exception:CODE
HIGHtest/backend/services/test_mcp_service.py255except:CODE
HIGHtest/backend/services/test_mcp_service.py1344except:CODE
HIGHtest/backend/services/test_mcp_service.py1359except:CODE
HIGHtest/backend/services/test_skill_service.py5151except SkillException:CODE
HIGHtest/backend/services/test_skill_service.py5271except SkillException:CODE
HIGHtest/backend/services/test_agent_service.py101except Exception:CODE
HIGHtest/backend/services/test_agent_service.py14041except Exception:CODE
HIGHtest/backend/services/test_prompt_service.py3174except Exception:CODE
HIGHtest/backend/services/test_evaluation_pure_logic.py435except AttributeError:CODE
HIGHtest/backend/services/test_mcp_container_service.py1442except Exception:CODE
HIGHtest/backend/services/test_mcp_container_service.py1468except Exception:CODE
HIGHtest/backend/services/test_mcp_container_service.py1488except Exception:CODE
HIGHtest/backend/services/test_mcp_container_service.py1509except Exception:CODE
HIGHtest/backend/services/test_vectordatabase_service.py3763except StopAsyncIteration:CODE
HIGHtest/backend/services/test_vectordatabase_service.py3945except Exception:CODE
HIGHtest/backend/services/test_vectordatabase_service.py3998except StopAsyncIteration:CODE
HIGHtest/backend/services/test_vectordatabase_service.py4041except StopAsyncIteration:CODE
HIGHtest/backend/services/test_vectordatabase_service.py3889except StopAsyncIteration:CODE
HIGHtest/backend/services/test_evaluation_set_service.py240except AttributeError:CODE
HIGHtest/backend/services/test_agent_evaluation_service.py491except Exception: # noqa: BLE001CODE
HIGHtest/backend/services/test_agent_evaluation_service.py599except AttributeError:CODE
HIGHtest/common/openai_compatible_mock_server.py455except OSError:CODE
HIGHtest/sdk/core/agents/test_guardrail_checkpoints.py439except StopIteration:CODE
HIGHtest/sdk/core/agents/test_core_agent.py2277except (StopIteration, ValueError, module.ModelOutputProtocolError, module.NonterminalThoughtTurn):CODE
HIGHtest/sdk/core/agents/test_core_agent.py2321except (ValueError, TypeError, module.ModelOutputProtocolError, module.NonterminalThoughtTurn):CODE
HIGHtest/sdk/core/agents/test_core_agent.py2374except (StopIteration, ValueError, module.ModelOutputProtocolError, module.NonterminalThoughtTurn):CODE
HIGHtest/sdk/core/agents/test_sandbox.py293except Exception:CODE
HIGHtest/sdk/core/agents/test_sandbox.py286except ModuleNotFoundError:CODE
HIGHtest/sdk/core/agents/test_sandbox.py1829except docker.errors.NotFound:CODE
HIGHtest/sdk/core/agents/test_sandbox.py3311except Exception:CODE
HIGHtest/sdk/core/agents/test_nexent_agent.py4157except Exception:CODE
HIGHtest/sdk/core/agents/observability/test_bridge_spans.py98except ValueError:CODE
HIGHtest/sdk/core/models/test_openai_llm.py38except Exception:CODE
HIGHtest/sdk/core/models/test_openai_llm.py641except Exception:CODE
HIGHtest/sdk/memory/test_memory_retrieval_acceptance.py642except Exception:CODE
HIGHtest/sdk/utils/test_http_client_manager.py279except ValueError:CODE
HIGHtest/sdk/utils/test_http_client_manager.py30except Exception:CODE
HIGHtest/sdk/utils/test_http_client_manager.py37except Exception:CODE
HIGHtest/sdk/skills/test_skill_manager.py3488except OSError:CODE
HIGHtest/sdk/skills/test_skill_manager.py3641except OSError:CODE
HIGHbackend/data_process_service.py483except Exception as _:CODE
HIGHbackend/ext_components/aidp/services/aidp_service.py483except (TypeError, ValueError):CODE
HIGHbackend/database/conversation_db.py1691except (json.JSONDecodeError, TypeError):CODE
HIGHbackend/database/attachment_db.py200except (ValueError, IOError):CODE
HIGHbackend/database/client.py122except Exception:CODE
HIGHbackend/database/tool_db.py435except (json.JSONDecodeError, TypeError):CODE
112 more matches not shown…
Docstring Block Structure139 hits · 695 pts
SeverityFileLineSnippetContext
HIGHbackend/database/a2a_agent_db.py821Add a relation between a local agent and an external A2A agent. Args: local_agent_id: Local parent agent IDSTRING
HIGHbackend/database/knowledge_db.py589 Get the internal index_name from user-facing knowledge_name. Args: knowledge_name: User-facing knowledSTRING
HIGHbackend/management/services/skill/service.py285Create a new skill for a tenant. Args: skill_data: Skill data including name, description, content,STRING
HIGHbackend/management/services/agent/management.py771 list all agent info Args: tenant_id (str): tenant id user_id (str): user id (used for permissiSTRING
HIGHbackend/management/services/knowledge_base/common.py175 Return a VectorDatabaseCore implementation based on the requested type. Args: db_type: Target vector dSTRING
HIGH…ckend/management/services/knowledge_base/management.py615 Update knowledge base information (name, group permission, group assignments). Args: indexSTRING
HIGH…ckend/management/services/knowledge_base/management.py696 Update the embedding model for a knowledge base. Args: index_name: Internal index name of STRING
HIGHbackend/utils/nacos_client.py82Query A2A agent info from Nacos using the dedicated A2A endpoint. Args: agent_name: The name of theSTRING
HIGHbackend/utils/nacos_client.py162Query service instance(s) from Nacos using v3 client API. Args: service_name: The name of the serviSTRING
HIGHbackend/utils/nacos_client.py343List all services in a namespace using v3 Admin API. Args: namespace: Nacos namespace ID (defaults STRING
HIGHbackend/utils/nacos_client.py413Get detailed information about a service using v3 Admin API. Args: service_name: The name of the seSTRING
HIGHbackend/utils/nacos_client.py483Check if an instance is healthy. Args: host: Instance IP address. port: Instance port. STRING
HIGHbackend/utils/auth_utils.py201 Get user_id and tenant_id from access_key by querying user_token_info_t and user_tenant_t. Args: accesSTRING
HIGHbackend/services/group_service.py32 Get group(s) by group ID(s). Args: group_id: Group ID(s) - can be int, comma-separated string, or listSTRING
HIGHbackend/services/group_service.py132 Set the default group ID for a tenant. Args: tenant_id (str): Tenant ID group_id (int): Group STRING
HIGHbackend/services/group_service.py200 Create a new group. Args: tenant_id (str): Tenant ID group_name (str): Group name grouSTRING
HIGHbackend/services/group_service.py249 Update group information. Args: group_id (int): Group ID updates (Dict[str, Any]): Fields to uSTRING
HIGHbackend/services/group_service.py300 Delete group. Args: group_id (int): Group ID user_id (str): Current user ID Returns: STRING
HIGHbackend/services/group_service.py341 Add user to group. Args: group_id (int): Group ID user_id (str): User ID to add currenSTRING
HIGHbackend/services/group_service.py392 Remove user from group. Args: group_id (int): Group ID user_id (str): User ID to remove STRING
HIGHbackend/services/group_service.py435 Get all users in a group with their details. Args: group_id (int): Group ID Returns: ListSTRING
HIGHbackend/services/group_service.py472 Get user count in a group. Args: group_id (int): Group ID Returns: int: Number of users iSTRING
HIGHbackend/services/group_service.py493 Add user to multiple groups. Args: user_id (str): User ID to add group_ids (List[int]): List oSTRING
HIGHbackend/services/group_service.py525 Update group members by setting the exact list of users that should be in the group. Args: group_id (iSTRING
HIGHbackend/services/idata_service.py82 Make HTTP POST request to iData API and handle common errors. Args: api_base: Normalized API base URL STRING
HIGHbackend/services/idata_service.py156 Parse iData API response and validate format. Args: result: Parsed JSON response from iData API RSTRING
HIGHbackend/services/idata_service.py196 Fetch knowledge spaces from iData API. Args: idata_api_base: iData API base URL api_key: iDataSTRING
HIGHbackend/services/idata_service.py264 Fetch datasets (knowledge bases) from iData API and transform to DataMate-compatible format. Args: idaSTRING
HIGHbackend/services/mcp_container_service.py67 Load Docker image from tar file Args: tar_file_path: Path to the tar file containing the DSTRING
HIGHbackend/services/mcp_container_service.py109 Start MCP container and return access URL Args: service_name: Name of the MCP service STRING
HIGHbackend/services/mcp_container_service.py169 Load image from tar file and start MCP container Args: tar_file_path: Path to the tar fileSTRING
HIGHbackend/services/mcp_container_service.py216 Stop and remove MCP container Args: container_id: Container ID or name Returns: STRING
HIGHbackend/services/a2a_client_service.py52Discover an external A2A agent from a URL. Fetches the Agent Card from the URL, caches it, and stores the agentSTRING
HIGHbackend/services/a2a_client_service.py154Discover external A2A agents from Nacos service registry. Args: nacos_config_id: Nacos config ID foSTRING
HIGHbackend/services/a2a_client_service.py474Refresh the cached Agent Card for an external agent. Args: external_agent_id: External agent databaSTRING
HIGHbackend/services/a2a_client_service.py691Call an external A2A agent (non-streaming). Args: external_agent_id: External agent database ID to STRING
HIGHbackend/services/a2a_client_service.py789Call an external A2A agent with streaming response. Args: external_agent_id: External agent databasSTRING
HIGHbackend/services/user_management_service.py641Update user password with old password verification. This method first re-authenticates the user with their old pasSTRING
HIGHbackend/services/nl2skill_service.py131Resolve the model configuration for NL2Skill. Args: tenant_id: Current tenant ID model_id: OptionalSTRING
HIGHbackend/services/tenant_service.py280 Create a new tenant with default group Args: tenant_name (str): Tenant name created_by (OptionSTRING
HIGHbackend/services/tenant_service.py377 Update tenant information If TENANT_NAME config doesn't exist, creates it with the provided name. Args: STRING
HIGHbackend/services/tenant_service.py485 Delete tenant and all associated resources This performs cascade deletion of: - All users in the tenant (sSTRING
HIGHbackend/services/invitation_service.py46 Create a new invitation code with business logic. Args: tenant_id (str): Tenant ID code_type (STRING
HIGHbackend/services/invitation_service.py165 Update invitation code information. Args: invitation_id (int): Invitation ID updates (Dict[strSTRING
HIGHbackend/services/invitation_service.py215 Delete invitation code (soft delete). Args: invitation_id (int): Invitation ID to delete user_STRING
HIGHbackend/services/invitation_service.py391 Use an invitation code by creating a usage record. Args: invitation_code (str): Invitation code to useSTRING
HIGHbackend/services/invitation_service.py530 Get invitations list with pagination and permission checks. Args: tenant_id (Optional[str]): Tenant IDSTRING
HIGHbackend/services/a2a_server_service.py178Enable A2A Server for an agent. Args: agent_id: Local agent ID. tenant_id: Tenant ID. STRING
HIGHbackend/services/a2a_server_service.py218Disable A2A Server for an agent. Args: agent_id: Local agent ID. tenant_id: Tenant ID. STRING
HIGHbackend/services/a2a_server_service.py247Update A2A Server settings. Args: agent_id: Local agent ID. tenant_id: Tenant ID. STRING
HIGHbackend/services/a2a_server_service.py353Generate Agent Card for an endpoint. Args: endpoint_id: The endpoint ID. base_url: OptiSTRING
HIGHbackend/services/a2a_server_service.py669Handle incoming message:send request. This is a synchronous request that waits for task completion. ArSTRING
HIGHbackend/services/a2a_server_service.py777Handle incoming message:stream request. This is a streaming request that yields task events. Args: STRING
HIGHbackend/services/a2a_server_service.py912Get task details in A2A standard format. Args: task_id: The task ID. user_id: User ID fSTRING
HIGHbackend/services/a2a_server_service.py1045Cancel a task. Args: task_id: The task ID. user_id: User ID for authorization. STRING
HIGHbackend/services/prompt_service.py463Generate guardrail regex rules from a natural-language description via LLM. Loads the guardrail prompt template, reSTRING
HIGHbackend/services/memory_provider_config_service.py43Create a new provider configuration with validated parameters. Args: tenant_id: Owning tenant identSTRING
HIGHbackend/services/memory_provider_config_service.py154Update a provider configuration. Main-table fields (``provider_name``, ``enabled``, ``timeout_seconds``) STRING
HIGHbackend/services/user_service.py119 Update user information Args: user_id (str): User ID to update update_data (Dict[str, Any]): USTRING
HIGHbackend/services/voice_service.py323 Generate TTS speech from text Args: text: Text to convert to speech stream: WhSTRING
79 more matches not shown…
Cross-File Repetition137 hits · 685 pts
SeverityFileLineSnippetContext
HIGHtest/backend/database/test_evaluator_db.py0register ``name`` as a real package on ``sys.modules``. real ``__path__`` (pointing to the matching backend dir when oneSTRING
HIGHtest/backend/services/test_evaluation_pure_logic.py0register ``name`` as a real package on ``sys.modules``. real ``__path__`` (pointing to the matching backend dir when oneSTRING
HIGHtest/backend/services/test_agent_evaluation_service.py0register ``name`` as a real package on ``sys.modules``. real ``__path__`` (pointing to the matching backend dir when oneSTRING
HIGHtest/backend/app/test_evaluation_annotation_app.py0fresh mocks + fresh import of the module for every test.STRING
HIGHtest/backend/app/test_evaluator_app.py0fresh mocks + fresh import of the module for every test.STRING
HIGHtest/backend/services/test_evaluator_service.py0fresh mocks + fresh import of the module for every test.STRING
HIGHtest/backend/services/test_evaluation_report_service.py0fresh mocks + fresh import of the module for every test.STRING
HIGHtest/backend/app/test_northbound_app_audit.py0return the audit lines captured for the current test.STRING
HIGHtest/backend/app/test_cas_app_audit.py0return the audit lines captured for the current test.STRING
HIGHtest/backend/app/test_oauth_app_audit.py0return the audit lines captured for the current test.STRING
HIGHtest/backend/app/test_api_key_app_audit.py0return the audit lines captured for the current test.STRING
HIGHtest/backend/app/test_user_management_app_audit.py0return the audit lines captured for the current test.STRING
HIGH…/backend/services/providers/test_tokenpony_provider.py0provider token metadata is returned as advisory capacity hints.STRING
HIGH…ackend/services/providers/test_modelengine_provider.py0provider token metadata is returned as advisory capacity hints.STRING
HIGH…/backend/services/providers/test_dashscope_provider.py0provider token metadata is returned as advisory capacity hints.STRING
HIGH…st/backend/services/providers/test_silicon_provider.py0provider token metadata is returned as advisory capacity hints.STRING
HIGH…/backend/services/providers/test_tokenpony_provider.py0401 from provider surfaces the authentication_failed error code.STRING
HIGH…/backend/services/providers/test_dashscope_provider.py0401 from provider surfaces the authentication_failed error code.STRING
HIGH…st/backend/services/providers/test_silicon_provider.py0401 from provider surfaces the authentication_failed error code.STRING
HIGHtest/sdk/core/tools/test_delete_directory_tool.py0test initialization with empty string raises valueerrorSTRING
HIGHtest/sdk/core/tools/test_create_file_tool.py0test initialization with empty string raises valueerrorSTRING
HIGHtest/sdk/core/tools/test_move_item_tool.py0test initialization with empty string raises valueerrorSTRING
HIGHtest/sdk/core/tools/test_read_file_tool.py0test initialization with empty string raises valueerrorSTRING
HIGHtest/sdk/core/tools/test_delete_file_tool.py0test initialization with empty string raises valueerrorSTRING
HIGHtest/sdk/core/tools/test_create_directory_tool.py0test initialization with empty string raises valueerrorSTRING
HIGHtest/sdk/core/tools/test_list_directory_tool.py0test initialization with empty string raises valueerrorSTRING
HIGHtest/sdk/core/tools/test_delete_directory_tool.py0test initialization with whitespace-only string raises valueerrorSTRING
HIGHtest/sdk/core/tools/test_create_file_tool.py0test initialization with whitespace-only string raises valueerrorSTRING
HIGHtest/sdk/core/tools/test_move_item_tool.py0test initialization with whitespace-only string raises valueerrorSTRING
HIGHtest/sdk/core/tools/test_read_file_tool.py0test initialization with whitespace-only string raises valueerrorSTRING
HIGHtest/sdk/core/tools/test_delete_file_tool.py0test initialization with whitespace-only string raises valueerrorSTRING
HIGHtest/sdk/core/tools/test_create_directory_tool.py0test initialization with whitespace-only string raises valueerrorSTRING
HIGHtest/sdk/core/tools/test_list_directory_tool.py0test initialization with whitespace-only string raises valueerrorSTRING
HIGHtest/sdk/core/tools/test_move_item_tool.py0create a mock observer for testing with chinese languageSTRING
HIGHtest/sdk/core/tools/test_read_file_tool.py0create a mock observer for testing with chinese languageSTRING
HIGHtest/sdk/core/tools/test_list_directory_tool.py0create a mock observer for testing with chinese languageSTRING
HIGHtest/sdk/core/tools/test_move_item_tool.py0test validation of path with '..' that goes outside workspaceSTRING
HIGHtest/sdk/core/tools/test_read_file_tool.py0test validation of path with '..' that goes outside workspaceSTRING
HIGHtest/sdk/core/tools/test_list_directory_tool.py0test validation of path with '..' that goes outside workspaceSTRING
HIGHtest/sdk/core/tools/test_datamate_search_tool.py0test initialization without rerank parameters (defaults).STRING
HIGHtest/sdk/core/tools/test_dify_search_tool.py0test initialization without rerank parameters (defaults).STRING
HIGHtest/sdk/core/tools/test_knowledge_base_search_tool.py0test initialization without rerank parameters (defaults).STRING
HIGHtest/sdk/core/tools/test_datamate_search_tool.py0test forward method when rerank is enabled and model is provided.STRING
HIGHtest/sdk/core/tools/test_dify_search_tool.py0test forward method when rerank is enabled and model is provided.STRING
HIGHtest/sdk/core/tools/test_knowledge_base_search_tool.py0test forward method when rerank is enabled and model is provided.STRING
HIGHtest/sdk/core/tools/test_datamate_search_tool.py0test that forward continues when rerank raises an exception.STRING
HIGHtest/sdk/core/tools/test_dify_search_tool.py0test that forward continues when rerank raises an exception.STRING
HIGHtest/sdk/core/tools/test_knowledge_base_search_tool.py0test that forward continues when rerank raises an exception.STRING
HIGHtest/sdk/core/tools/test_read_skill_md_tool.py0unit tests for nexent.core.tools.run_skill_script_tool module. this test module follows the pattern from test_ragflow_seSTRING
HIGHtest/sdk/core/tools/test_read_skill_config_tool.py0unit tests for nexent.core.tools.run_skill_script_tool module. this test module follows the pattern from test_ragflow_seSTRING
HIGHtest/sdk/core/tools/test_run_skill_script_tool.py0unit tests for nexent.core.tools.run_skill_script_tool module. this test module follows the pattern from test_ragflow_seSTRING
HIGHtest/sdk/core/models/test_openai_vlm.py0check_connectivity should return true when no exception is raised.STRING
HIGHtest/sdk/core/models/test_vlm_adapter.py0check_connectivity should return true when no exception is raised.STRING
HIGHtest/sdk/core/models/test_openai_llm.py0check_connectivity should return true when no exception is raised.STRING
HIGHbackend/database/attachment_db.py0check if file exists in storage args: object_name: object name bucket: bucket name, if not specified use default bucket STRING
HIGHbackend/database/client.py0check if file exists in storage args: object_name: object name bucket: bucket name, if not specified use default bucket STRING
HIGHsdk/nexent/storage/storage_client_base.py0check if file exists in storage args: object_name: object name bucket: bucket name, if not specified use default bucket STRING
HIGHsdk/nexent/storage/minio.py0check if file exists in storage args: object_name: object name bucket: bucket name, if not specified use default bucket STRING
HIGHbackend/database/user_tenant_db.py0get users belonging to a specific tenant with pagination and sorting args: tenant_id (str): tenant id page (optional[intSTRING
HIGHbackend/database/group_db.py0get users belonging to a specific tenant with pagination and sorting args: tenant_id (str): tenant id page (optional[intSTRING
77 more matches not shown…
Self-Referential Comments201 hits · 614 pts
SeverityFileLineSnippetContext
MEDIUMtest/pytest.ini5# Create a new event loop for each test function to ensure isolationCOMMENT
MEDIUMtest/backend/database/test_model_managment_db.py98 # Create a mock session returning an embedding record with None chunk sizesCOMMENT
MEDIUMtest/backend/database/test_tenant_config_db.py542 # Create a mock query chain that returns tenant IDsCOMMENT
MEDIUMtest/backend/database/test_tenant_config_db.py571 # Create a mock query that returns empty resultCOMMENT
MEDIUMtest/backend/database/test_agent_db.py1025 # Create a Mock class for AgentRelation that supports both class attribute access and instantiationCOMMENT
MEDIUMtest/backend/database/test_agent_db.py1126 # Create a Mock class for AgentRelation that supports both class attribute access and instantiationCOMMENT
MEDIUMtest/backend/database/test_tool_db.py32# Create a mock ToolSourceEnum that supports .value attribute accessCOMMENT
MEDIUMtest/backend/database/test_tool_db.py282 # Create a Mock class that can be used both as a class (for query) and instantiatedCOMMENT
MEDIUMtest/backend/database/test_tool_db.py463 # Create a mock for ToolInfo class with properly accessible attributesCOMMENT
MEDIUMtest/backend/database/test_tool_db.py503 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py509 # Create a new tool with different name&source that doesn't exist in databaseCOMMENT
MEDIUMtest/backend/database/test_tool_db.py555 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py561 # Create a new tool with invalid name (contains special characters)COMMENT
MEDIUMtest/backend/database/test_tool_db.py608 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py614 # Create a new MCP tool with same name but different usage (different MCP server)COMMENT
MEDIUMtest/backend/database/test_tool_db.py664 # Create a new MCP tool with same name and same usage (should update existing)COMMENT
MEDIUMtest/backend/database/test_tool_db.py708 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py714 # Create a new MCP tool with same name and empty usage (should update existing)COMMENT
MEDIUMtest/backend/database/test_tool_db.py755 # Create a new non-MCP tool with same name and source but different usageCOMMENT
MEDIUMtest/backend/database/test_tool_db.py798 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py854 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py967 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py1107 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py1113 # Create a new MCP tool with invalid name (contains special characters)COMMENT
MEDIUMtest/backend/database/test_tool_db.py1613 # Create a mock tool with source="local"COMMENT
MEDIUMtest/backend/database/test_tool_db.py1657 # Create a mock tool with source="mcp" (not local)COMMENT
MEDIUMtest/backend/database/test_tool_db.py1695 # Create a mock tool with source="local"COMMENT
MEDIUMtest/backend/database/test_tool_db.py1741 # Create a mock tool with source="local"COMMENT
MEDIUMtest/backend/database/test_tool_db.py1787 # Create a mock tool with source="local" and invalid JSON inputsCOMMENT
MEDIUMtest/backend/database/test_tool_db.py1832 # Create a mock tool with source="local"COMMENT
MEDIUMtest/backend/database/test_invitation_db.py422 # Create a mock query that returns countCOMMENT
MEDIUMtest/backend/database/test_knowledge_db.py1143 # Create a list of mock knowledge recordsCOMMENT
MEDIUMtest/backend/database/test_knowledge_db.py1231 # Create a new mock for this specific function since it uses session.query(KnowledgeRecord.knowledge_id)COMMENT
MEDIUMtest/backend/database/test_agent_version_db.py56# Create a mock database module to satisfy importsCOMMENT
MEDIUMtest/backend/database/test_agent_version_db.py257 # Create a mock statement that chains properlyCOMMENT
MEDIUMtest/backend/database/test_agent_version_db.py282 # Create a mock statement that chains properlyCOMMENT
MEDIUMtest/backend/database/test_user_tenant_db.py321 # Create a proper mock UserTenant class with attributesCOMMENT
MEDIUM⚡test/backend/database/test_conversation_db.py2515 # This function is covered by integration testsCOMMENT
MEDIUMtest/backend/database/test_group_db.py783 # Create a mock query that returns tuples of group_idsCOMMENT
MEDIUMtest/backend/database/test_group_db.py847 # Create a mock query that returns countCOMMENT
MEDIUMtest/backend/database/test_group_db.py1081 # Create a mock query that returns empty resultCOMMENT
MEDIUMtest/backend/app/test_group_app.py51# Create a test client with a fresh FastAPI appCOMMENT
MEDIUMtest/backend/app/test_northbound_base_app.py59# Create a proper mock service instance with all methodsCOMMENT
MEDIUMtest/backend/app/test_agent_app.py102# Define a decorator that simply returns the original function unchangedCOMMENT
MEDIUMtest/backend/app/test_conversation_management_app.py344 # Create a request-like object with required attributesCOMMENT
MEDIUMtest/backend/app/test_vectordatabase_app.py75# Create a mock for consts.model and patch it before any imports.COMMENT
MEDIUMtest/backend/app/test_app_factory.py546 # Create a mock monitoring module that raises ImportError when accessedCOMMENT
MEDIUMtest/backend/app/test_app_factory.py911 # Create a request-like object and an AppExceptionCOMMENT
MEDIUMtest/backend/app/test_image_app.py24# Create a FastAPI app and include the router for testingCOMMENT
MEDIUMtest/backend/app/test_user_app.py21# Create a mock ToolConfig classCOMMENT
MEDIUMtest/backend/app/test_user_app.py66# Create a test client with a fresh FastAPI appCOMMENT
MEDIUMtest/backend/app/test_knowledge_summary_app.py123# Create a test app and clientCOMMENT
MEDIUMtest/backend/app/test_invitation_app.py44# Create a test client with a fresh FastAPI appCOMMENT
MEDIUMtest/backend/app/test_dify_app.py850 # Create an AppException that the service would raiseCOMMENT
MEDIUMtest/backend/app/test_mock_user_management_app.py34# Create a test client with a fresh FastAPI appCOMMENT
MEDIUMtest/backend/app/test_user_management_app.py54# Create a test client with a fresh FastAPI appCOMMENT
MEDIUMtest/backend/app/test_skill_app.py645 # Create a ZIP fileCOMMENT
MEDIUMtest/backend/app/test_northbound_app.py327 # Create a fake file uploadCOMMENT
MEDIUMtest/backend/agents/test_create_agent_info.py1093 # Create a tool that throws an exception when accessing the name attributeCOMMENT
MEDIUMtest/backend/agents/test_create_agent_info.py3708 # Create a tool with index_name_to_display_map in metadataCOMMENT
141 more matches not shown…
Deep Nesting448 hits · 338 pts
SeverityFileLineSnippetContext
LOWtest/run_all_test.py226CODE
LOW…_components/aidp/mock_servers/aidp_mgmt_mock_server.py1066CODE
LOWtest/mock-services/deploy.py125CODE
LOWtest/mock-services/deploy.py183CODE
LOWtest/tools/test_asset_lib.py125CODE
LOWtest/tools/test_asset_lib.py235CODE
LOWtest/tools/validate_traceability.py11CODE
LOWtest/tools/validate_manifest.py23CODE
LOWtest/tools/tests/test_formal_test_assets.py31CODE
LOWtest/backend/database/test_agent_evaluation_db.py375CODE
LOWtest/backend/database/test_agent_evaluation_db.py386CODE
LOWtest/backend/database/test_agent_version_db.py191CODE
LOWtest/backend/database/test_evaluator_db.py453CODE
LOWtest/backend/database/test_evaluator_db.py543CODE
LOWtest/backend/database/test_a2a_agent_db.py343CODE
LOWtest/backend/app/test_aidp_http_concurrency.py31CODE
LOW…kend/management/test_service_directory_architecture.py121CODE
LOWtest/backend/utils/test_direct_sdk_prompt_calls.py33CODE
LOWtest/backend/configs/test_model_catalog_loader.py55CODE
LOW…st/backend/services/test_tool_configuration_service.py4590CODE
LOW…st/backend/services/test_tool_configuration_service.py4619CODE
LOWtest/backend/services/test_agent_repository_service.py2596CODE
LOWtest/backend/services/test_skill_service.py1843CODE
LOWtest/backend/services/test_skill_service.py3445CODE
LOWtest/backend/services/test_skill_service.py3463CODE
LOWtest/backend/services/test_skill_service.py5178CODE
LOWtest/backend/services/test_agent_service.py11835CODE
LOWtest/backend/services/test_agent_service.py11882CODE
LOWtest/backend/services/test_agent_service.py11954CODE
LOWtest/backend/services/test_agent_service.py15869CODE
LOWtest/backend/services/test_agent_service.py15924CODE
LOWtest/backend/services/test_agent_service.py16073CODE
LOWtest/backend/services/test_agent_service.py16135CODE
LOWtest/backend/services/test_agent_service.py16277CODE
LOWtest/backend/services/test_agent_service.py16372CODE
LOWtest/backend/services/test_agent_service.py16420CODE
LOWtest/backend/services/test_agent_service.py16468CODE
LOWtest/backend/services/test_prompt_service.py854CODE
LOWtest/backend/services/test_prompt_service.py871CODE
LOWtest/backend/services/test_core_service_slimming.py459CODE
LOWtest/backend/services/test_evaluation_pure_logic.py70CODE
LOWtest/backend/services/test_official_agent_service.py1759CODE
LOWtest/sdk/core/tools/test_plan_tools.py95CODE
LOWtest/sdk/core/tools/test_plan_tools.py117CODE
LOWtest/sdk/core/tools/test_knowledge_base_search_tool.py107CODE
LOWtest/sdk/core/tools/test_knowledge_base_search_tool.py193CODE
LOWtest/sdk/core/tools/test_knowledge_base_search_tool.py222CODE
LOWtest/sdk/core/agents/test_sandbox.py1794CODE
LOWtest/sdk/core/agents/test_sandbox.py3288CODE
LOWtest/sdk/core/concurrency/test_thread_creation_gate.py53CODE
LOWtest/sdk/core/concurrency/test_thread_telemetry.py149CODE
LOWtest/sdk/vector_database/test_elasticsearch_core.py737CODE
LOWtest/sdk/utils/test_http_client_manager.py15CODE
LOWtest/sdk/skills/test_skill_manager.py40CODE
LOWtest/sdk/skills/test_skill_manager.py3466CODE
LOWtest/sdk/skills/test_skill_manager.py3623CODE
LOWpathology-ai/code-changes/backend/local_mcp_service.py48CODE
LOWpathology-ai/code-changes/backend/local_mcp_service.py540CODE
LOWpathology-ai/code-changes/backend/local_mcp_service.py751CODE
LOWpathology-ai/code-changes/backend/local_mcp_service.py1014CODE
388 more matches not shown…
Structural Annotation Overuse141 hits · 252 pts
SeverityFileLineSnippetContext
LOW…d/ext_components/aidp/components/AidpCreateKbModal.tsx306 // Step 1: Create KBCOMMENT
LOW…d/ext_components/aidp/components/AidpCreateKbModal.tsx342 // Step 2: Upload files (if any and not skipped)COMMENT
LOW⚡frontend/app/[locale]/chat/streaming/taskWindow.tsx50 // Step 1: Handle complete <display:language>...</display> blocksCOMMENT
LOW⚡frontend/app/[locale]/chat/streaming/taskWindow.tsx58 // Step 2: Handle complete <code>...</code> blocksCOMMENT
LOW⚡frontend/app/[locale]/chat/streaming/taskWindow.tsx63 // Step 3: Handle incomplete tags during streamingCOMMENT
LOWfrontend/components/agent/AgentImportWizard.tsx779 // Step 1: Model selection validationCOMMENT
LOWfrontend/components/agent/AgentImportWizard.tsx800 // Step 2: Config fields validationCOMMENT
LOW⚡frontend/components/common/markdownRenderer.tsx1039 // Step 1: Handle complete <display:language>...</display> blocksCOMMENT
LOW⚡frontend/components/common/markdownRenderer.tsx1047 // Step 2: Handle complete <code>...</code> blocksCOMMENT
LOW⚡frontend/components/common/markdownRenderer.tsx1052 // Step 3: Handle incomplete tags during streamingCOMMENT
LOWfrontend/hooks/useAgentImport.ts190 // Step 1: check name/display name conflicts before import (only check main agent name and display name)COMMENT
LOW⚡test/ext_components/aidp/test_aidp_search_tool.py814 # Step 1: install with idsCOMMENT
LOW⚡test/ext_components/aidp/test_aidp_search_tool.py819 # Step 2: uninstall (None)COMMENT
LOW⚡test/ext_components/aidp/test_aidp_search_tool.py824 # Step 3: reinstall as emptyCOMMENT
LOW⚡test/backend/services/test_data_process_service.py2276 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOW⚡test/backend/services/test_data_process_service.py2277 self._make_stream(b'%PDF-1.4 ok'), # Step 4: header checkCODE
LOW⚡test/backend/services/test_data_process_service.py2382 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOW⚡test/backend/services/test_data_process_service.py2383 self._make_stream(b'NOT-PDF'), # Step 4: header checkCODE
LOW⚡test/backend/services/test_data_process_service.py2502 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOW⚡test/backend/services/test_data_process_service.py2503 None, # Step 4: header check streamCODE
LOW⚡test/backend/services/test_data_process_service.py2535 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOW⚡test/backend/services/test_data_process_service.py2536 header_stream, # Step 4: header checkCODE
LOW⚡test/backend/services/test_data_process_service.py2587 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOW⚡test/backend/services/test_data_process_service.py2588 self._make_stream(b'%PDF-1.4 ok'), # Step 4: header checkCODE
LOW⚡pathology-ai/custom-tools.md58### Step 1: 症状分析COMMENT
LOW⚡pathology-ai/custom-tools.md62### Step 2: 病史关联COMMENT
LOW⚡pathology-ai/custom-tools.md66### Step 3: 鉴别诊断COMMENT
LOW⚡pathology-ai/custom-tools.md70### Step 4: 检查建议COMMENT
LOW⚡pathology-ai/custom-tools.md74### Step 5: 初步结论COMMENT
LOWpathology-ai/code-changes/backend/local_mcp_service.py1138 # Step 1: 症状分析COMMENT
LOWpathology-ai/code-changes/backend/local_mcp_service.py1158 # Step 2: 病史关联COMMENT
LOWpathology-ai/code-changes/backend/local_mcp_service.py1176 # Step 3: 鉴别诊断COMMENT
LOWpathology-ai/code-changes/backend/local_mcp_service.py1205 # Step 4: 检查建议COMMENT
LOWpathology-ai/code-changes/backend/local_mcp_service.py1217 # Step 5: 诊断结论COMMENT
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py195 # Step 1: 症状分析COMMENT
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py200 # Step 2: 病史关联COMMENT
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py205 # Step 3: 鉴别诊断COMMENT
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py211 # Step 4: 检查建议COMMENT
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py215 # Step 5: 诊断结论COMMENT
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py129 "症状分析", # Step 1: 分析主诉和症状CODE
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py130 "病史关联", # Step 2: 关联既往病史CODE
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py131 "鉴别诊断", # Step 3: 列出可能的诊断CODE
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py132 "检查建议", # Step 4: 建议进一步检查CODE
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py133 "诊断结论", # Step 5: 给出最终诊断CODE
LOW⚡deploy/docker/generate_env.sh161 # Step 1: Prepare .env fileCOMMENT
LOW⚡deploy/docker/generate_env.sh164 # Step 2: Update .env fileCOMMENT
LOW⚡deploy/docker/generate_env.sh168 # Step 3: Show summaryCOMMENT
LOW⚡deploy/docker/assets/scripts/sync_skill_directory.py580 # Step 2: Check if container is runningCOMMENT
LOW⚡deploy/docker/assets/scripts/sync_skill_directory.py587 # Step 3: Test PostgreSQL connection and get tenant_id from containerCOMMENT
LOWdeploy/docker/assets/scripts/sync_skill_directory.py566 # Step 1: Load environment from .env fileCOMMENT
LOWdeploy/docker/assets/scripts/sync_skill_directory.py616 # Step 5: Determine directoriesCOMMENT
LOWdeploy/docker/assets/scripts/sync_skill_directory.py636 # Step 6: Discover and migrate skillsCOMMENT
LOW⚡deploy/docker/assets/scripts/sync_user_supabase2pg.py524 # Step 0: Check Docker containersCOMMENT
LOW⚡deploy/docker/assets/scripts/sync_user_supabase2pg.py532 # Step 1: Validate environment variablesCOMMENT
LOW⚡deploy/docker/assets/scripts/sync_user_supabase2pg.py538 # Step 2: Get Supabase parameters and test connectionCOMMENT
LOW⚡deploy/docker/assets/scripts/sync_user_supabase2pg.py563 # Step 4: Fetch all user_tenant recordsCOMMENT
LOW⚡deploy/docker/assets/scripts/sync_user_supabase2pg.py570 # Step 5: Process recordsCOMMENT
LOW⚡deploy/docker/assets/scripts/sync_user_supabase2pg.py575 # Step 6: SummaryCOMMENT
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py552 # Step 3: Connect to databaseCOMMENT
LOW⚡deploy/k8s/deploy.sh1377 # Step 1: Select deployment components, port policy and image source.COMMENT
81 more matches not shown…
Redundant / Tautological Comments158 hits · 234 pts
SeverityFileLineSnippetContext
LOWtest/backend/database/test_agent_version_db.py196 # Check if it's a MagicMock without real data - return empty dict or handle speciallyCOMMENT
LOWtest/backend/database/test_agent_version_db.py198 # Check if this MagicMock has been configured with real attributesCOMMENT
LOWtest/backend/database/test_agent_version_db.py225 # Check if this looks like one of our mock classes by checking for key attributesCOMMENT
LOWtest/backend/database/test_agent_version_db.py228 # Check if it has any of our expected keys (not just mock internals)COMMENT
LOWtest/backend/app/test_vectordatabase_app.py130 # Check if attribute exists before modifyingCOMMENT
LOWtest/backend/agents/test_create_agent_info.py1303 # Check if the last call was for KnowledgeBaseSearchToolCOMMENT
LOWtest/backend/agents/test_create_agent_info.py3170 # Set agent_share_option to "never"COMMENT
LOWtest/backend/agents/test_create_agent_info.py3282 # Set disable_agent_ids to include the agentCOMMENT
LOWtest/backend/agents/test_create_agent_info.py3393 # Set disable_user_agent_ids to include the agentCOMMENT
LOW⚡test/backend/utils/test_llm_utils.py1525 # Set delta to actual None (not a MagicMock)COMMENT
LOWtest/backend/services/test_auto_summary_scheduler.py721 # Check if stop_event is set during processingCOMMENT
LOW…ckend/services/test_conversation_management_service.py280 # Check if create_conversation_message was called with correct paramsCOMMENT
LOWtest/sdk/core/tools/test_tavily_search_tool.py119 # Check if text field existsCOMMENT
LOWtest/sdk/core/tools/test_knowledge_base_search_tool.py210 # Check if there's a class attribute that's a FieldInfoCOMMENT
LOWtest/sdk/core/tools/test_knowledge_base_search_tool.py226 # Check if this is a class-level default by looking at the classCOMMENT
LOWtest/sdk/core/tools/test_knowledge_base_search_tool.py509 # Set search_mode to accurateCOMMENT
LOWtest/sdk/core/tools/test_knowledge_base_search_tool.py526 # Set search_mode to semanticCOMMENT
LOWdeploy/docker/deploy.sh167 # Check if a TCP port is already in use (Linux/macOS/Windows Git Bash)COMMENT
LOWdeploy/docker/deploy.sh678 # Check if generate_env.sh existsCOMMENT
LOWdeploy/docker/deploy.sh855 # Check if image already exists locallyCOMMENT
LOWdeploy/docker/deploy.sh982 # Check if root-dir parameter is provided (highest priority)COMMENT
LOWdeploy/docker/deploy.sh995 # Check if ROOT_DIR already exists in .env (second priority)COMMENT
LOWdeploy/docker/deploy.sh1043 # Check if parameters are providedCOMMENT
LOWdeploy/docker/deploy.sh1302 # Check if the supabase compose file existsCOMMENT
LOWdeploy/docker/deploy.sh1550 # Check if SSH credentials are already setCOMMENT
LOWdeploy/docker/deploy.sh1609 # Check if super admin user exists in SupabaseCOMMENT
LOWdeploy/docker/deploy.sh1668 # Check if password is emptyCOMMENT
LOWdeploy/docker/deploy.sh1686 # Check if passwords matchCOMMENT
LOWdeploy/docker/deploy.sh1724 # Check if super admin user already existsCOMMENT
LOWdeploy/docker/assets/scripts/v180_sync_user_metadata.sh40# Check if nexent-config container is runningCOMMENT
LOWdeploy/docker/assets/scripts/v180_sync_user_metadata.sh53# Check if nexent-config container is runningCOMMENT
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py388 # Check if update is neededSTRING
LOWdeploy/k8s/create-suadmin.sh296 # Check if user was created successfully. Supabase may return either a top-levelCOMMENT
LOWdeploy/k8s/create-suadmin.sh373 # Check if Supabase pods are availableCOMMENT
LOWdeploy/k8s/helm/nexent/charts/nexent-common/values.yaml35 northboundExternalUrl: "" # Set this to the public-facing URL for external A2A clients. Example: https://api.yourdomCODE
LOW.claude/skills/skill-creator/scripts/init_skill.py208 # Check if directory already existsCOMMENT
LOWbackend/data_process_service.py128 # Check if we're in Docker environmentCOMMENT
LOW⚡backend/data_process_service.py475 # Check if process is still runningSTRING
LOWbackend/data_process_service.py613 if process.poll() is None: # Check if process is still runningSTRING
LOWbackend/middleware/exception_handler.py57 # Check if it's an AppException by looking for the error_code attributeCOMMENT
LOWbackend/database/conversation_db.py1324 # Check if any rows were affectedCOMMENT
LOWbackend/database/conversation_db.py1386 # Check if the conversation record was affectedCOMMENT
LOWbackend/database/conversation_db.py1568 # Check if any rows were affectedCOMMENT
LOWbackend/database/conversation_db.py1803 # Check if any rows were affectedCOMMENT
LOWbackend/database/conversation_db.py1989 # Check if any rows were affectedCOMMENT
LOWbackend/database/evaluator_db.py405 # Check if the CURRENT version is in use (not the target version).COMMENT
LOWbackend/database/a2a_agent_db.py199 # Check if agent already exists by source_urlCOMMENT
LOWbackend/database/a2a_agent_db.py323 # Check if agent already exists by nacos_config_id + nacos_agent_nameCOMMENT
LOWbackend/database/a2a_agent_db.py836 # Check if relation already exists (not soft-deleted)COMMENT
LOWbackend/database/a2a_agent_db.py847 # Check if there's a soft-deleted record and restore itCOMMENT
LOWbackend/database/a2a_agent_db.py1648 # Check if task is in terminal stateCOMMENT
LOWbackend/database/tool_db.py257 # Check if any tools exist for this tenantCOMMENT
LOWbackend/database/tool_db.py301 # Set tools to unavailable. Tools belonging to enabled MCPs keep theirCOMMENT
LOWbackend/database/knowledge_db.py226 # Check if record existsCOMMENT
LOWbackend/database/model_management_db.py159 # Check if any rows were affectedCOMMENT
LOWbackend/management/services/skill/service.py306 # Check if skill already exists in databaseCOMMENT
LOWbackend/management/services/skill/service.py311 # Check if skill directory already exists locallyCOMMENT
LOWbackend/management/services/agent/run.py1525 # Check if channel exists and is still activeCOMMENT
LOWbackend/management/services/agent/run.py1950 # Check if the agent is still running by querying the agent_run_managerCOMMENT
LOWbackend/management/services/agent/management.py493 # Check if any tool is KnowledgeBaseSearchTool and set its metadata to empty dictCOMMENT
98 more matches not shown…
Hallucination Indicators19 hits · 225 pts
SeverityFileLineSnippetContext
CRITICAL⚡test/backend/utils/test_llm_utils.py218 mock_llm_instance.client.chat.completions.create.assert_called_once_with(CODE
CRITICAL⚡test/backend/services/test_mcp_container_service.py1437 mock_manager.client.client.images.load.assert_called_once()CODE
CRITICAL⚡test/backend/services/test_mcp_container_service.py1463 mock_manager.client.client.images.load.assert_called_once()CODE
CRITICALtest/backend/services/test_evaluation_set_service.py878 session.query.return_value.filter.return_value.update.assert_called()CODE
CRITICALtest/backend/services/test_evaluation_set_service.py1167 session.query.return_value.filter.return_value.update.assert_called_once()CODE
CRITICALtest/backend/services/test_evaluation_set_service.py1730 session.query.return_value.filter.return_value.delete.assert_called_once()CODE
CRITICAL⚡test/sdk/core/models/test_openai_llm.py2075 openai_model_instance.client.chat.completions.create.assert_called_once_with(CODE
CRITICAL⚡test/sdk/core/models/test_openai_llm.py2090 openai_model_instance.client.chat.completions.create.assert_called_once_with(CODE
CRITICAL⚡test/sdk/core/models/test_openai_llm.py2106 openai_model_instance.client.chat.completions.create.assert_not_called()CODE
CRITICALtest/sdk/core/models/test_openai_llm.py2010 openai_model_instance.client.chat.completions.create.assert_not_called()CODE
CRITICALtest/sdk/core/models/test_openai_llm.py2061 openai_model_instance.client.chat.completions.create.assert_called_once_with(CODE
CRITICALtest/sdk/core/models/test_openai_llm.py2122 openai_model_instance.client.chat.completions.create.assert_not_called()CODE
CRITICALtest/sdk/core/models/test_openai_llm.py2142 openai_model_instance.client.chat.completions.create.assert_called_once_with(CODE
CRITICALtest/sdk/core/models/test_openai_llm.py2163 openai_model_instance.client.chat.completions.create.assert_not_called()CODE
CRITICALtest/sdk/core/models/test_openai_llm.py2180 openai_model_instance.client.chat.completions.create.assert_not_called()CODE
CRITICALtest/sdk/core/models/test_openai_llm.py2197 openai_model_instance.client.chat.completions.create.assert_not_called()CODE
CRITICALtest/sdk/core/models/test_openai_llm.py2210 openai_model_instance.client.chat.completions.create.assert_called_once_with(CODE
CRITICAL⚡test/sdk/core/gateway/modality/test_llm_adapter.py196 model.client.chat.completions.create.assert_called_once_with(CODE
CRITICALsdk/nexent/core/gateway/modality/llm/openai.py83 return await self._model.client.chat.completions.create(**completion_kwargs)CODE
Modern AI Meta-Vocabulary58 hits · 176 pts
SeverityFileLineSnippetContext
MEDIUM⚡test/backend/app/test_vectordatabase_app.py3052# Tests for new embedding model retrieval from knowledge recordCOMMENT
MEDIUMtest/backend/app/test_vectordatabase_app.py3071 # Mock knowledge record with saved embedding model idCOMMENT
MEDIUMtest/backend/app/test_vectordatabase_app.py3079 # Mock embedding modelCOMMENT
MEDIUMtest/backend/app/test_vectordatabase_app.py3108 # Verify index_documents was called with the embedding modelCOMMENT
MEDIUMtest/backend/app/test_vectordatabase_app.py3223 # Empty/None model id should skip embedding model resolutionCOMMENT
MEDIUMtest/backend/agents/test_create_agent_info.py6666 # Tool with non-empty index_names but no embedding modelCOMMENT
MEDIUMtest/backend/agents/test_create_agent_info.py6692 # Verify error message contains guidance about configuring embedding modelCOMMENT
MEDIUMtest/backend/agents/test_create_agent_info.py6716 # Tool with index_names and valid embedding modelCOMMENT
MEDIUMtest/backend/agents/test_create_agent_info.py6870 # Return valid embedding model with error metadataCOMMENT
MEDIUM…st/backend/services/test_tool_configuration_service.py242# Mock embedding model module to satisfy vectordatabase_service importsCOMMENT
MEDIUM…st/backend/services/test_tool_configuration_service.py3208 # Mock get_embedding_model_by_index_name returns None (no embedding model found)COMMENT
MEDIUMtest/backend/services/test_auto_summary_scheduler.py144# Mock embedding modelCOMMENT
MEDIUMtest/backend/services/test_official_agent_service.py593 # user-selected embedding model is used and the default lookup is skippedCOMMENT
MEDIUM⚡test/backend/services/test_vectordatabase_service.py4568 # Mock knowledge record with embedding model idCOMMENT
MEDIUM⚡test/backend/services/test_vectordatabase_service.py4574 # Mock embedding modelCOMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py927 # Mock embedding modelCOMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py947 # Verify knowledge record was created with the embedding model nameCOMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py973 # Mock embedding model (tenant default)COMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py1018 # Mock embedding modelCOMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py1066 # Mock embedding model - note: model's display name differs from user-provided nameCOMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py4772 # Should succeed, embedding model IS called but returns emptyCOMMENT
MEDIUM⚡test/backend/services/test_evaluation_set_service.py1650# Async generation orchestrationCOMMENT
MEDIUM⚡test/backend/services/test_agent_evaluation_service.py2398# ``_setup_no_set_and_execute`` — background no-set run orchestration.COMMENT
MEDIUM⚡test/backend/services/test_model_management_service.py3006 # Only an embedding model was created; the empty LLM slot must not beCOMMENT
MEDIUMtest/backend/services/test_model_management_service.py2856 # has a larger context window.COMMENT
MEDIUM⚡test/sdk/memory/test_memory_service.py95# store_memory: default behavior (no embedding model, no backend hook)COMMENT
MEDIUM⚡backend/management/services/knowledge_base/service.py375 # Get knowledge base's embedding model by model_idCOMMENT
MEDIUM⚡backend/management/services/knowledge_base/service.py387 # Generate embedding if we have content and can get embedding modelCOMMENT
MEDIUMbackend/management/services/knowledge_base/service.py538 # Get embedding model from the first index's knowledge base recordCOMMENT
MEDIUM…ckend/management/services/knowledge_base/management.py457 # Get embedding model by model_id if providedCOMMENT
MEDIUM…ckend/management/services/knowledge_base/management.py713 # Validate the model exists and is an embedding modelCOMMENT
MEDIUM…ckend/management/services/knowledge_base/management.py985 # Track records with missing embedding model for stats updateCOMMENT
MEDIUM…ckend/management/services/knowledge_base/management.py1042 # Get embedding model display_name from model_idCOMMENT
MEDIUM…ckend/management/services/knowledge_base/management.py1157 # Set embedding model name from the embedding modelCOMMENT
MEDIUMbackend/agents/create_agent_info.py2289 # Append the tool and skip embedding model lookup (no index to lookup from)COMMENT
MEDIUM⚡backend/utils/file_management_utils.py83 # Resolve embedding model from the knowledge base record (not request model_id)COMMENT
MEDIUMbackend/apps/vectordatabase_app.py584 # Get the knowledge base record to retrieve the saved embedding modelCOMMENT
MEDIUMbackend/services/memory_retrieval_service.py199 # Resolve embedding model for the agent layer.COMMENT
MEDIUMbackend/services/model_management_service.py1118 # embedding model" path will be added once the storage layerCOMMENT
MEDIUMbackend/services/agent_evaluation_service.py1792 # Resolve judge model context window once (used for runtime_events trimming)COMMENT
MEDIUMbackend/services/streaming_channel.py187 # Wait for new chunks using event-driven approachCOMMENT
MEDIUMbackend/services/model_capacity_suggestion_service.py521 # LiteLLM's max_input_tokens is the total context window (input+output);COMMENT
MEDIUMbackend/services/tool_configuration_service.py1152 # Must have embedding model for knowledge base searchCOMMENT
MEDIUMbackend/services/datamate_service.py53 # Use datamate as embedding model nameCOMMENT
MEDIUMsdk/benchmark/README.md143│ └── folds/ # few-shot fold dataCODE
MEDIUMsdk/benchmark/manual_cases/test_benchmark.py26# Strips the verbose platform scaffolding (File URL Guide, Reference Marks,COMMENT
MEDIUM…enchmark/manual_cases/cases/example_infra/history.json56 "content": "这个表格对 **Agent 执行循环中的上下文(Context)** 做了三类划分,用于帮助开发者理解在构建可靠 Agent 时,哪些环节可以主动控制,以及这些控制信息的生命周期是临时的还是持久的。\n\n-CODE
MEDIUMsdk/benchmark/acon_eval/README.md18│ └── folds/ # few-shot 折叠数据CODE
MEDIUM…/benchmark/generic/configs/gsm8k_solver_assistant.yaml49 # Example conversations - few-shot examples.COMMENT
MEDIUMsdk/nexent/core/agents/agent_model.py121 # "total context window" semantics (pre-W1), not an output limit.COMMENT
MEDIUMsdk/nexent/core/agents/nexent_agent.py907 # Build one code executor for this agent. Worker-agent orchestrationCOMMENT
MEDIUMsdk/nexent/core/agents/subagent_wrapper.py48 # Managed-agent orchestration must stay in the trusted Runtime process.COMMENT
MEDIUMsdk/nexent/core/gateway/model_context.py40 max_tokens: Optional[int] = None # context window sizeCODE
MEDIUMsdk/nexent/vector_database/elasticsearch_core.py83 # Initialize embedding modelCOMMENT
MEDIUMdoc/docs/en/sdk/vector-database.md261# Create a new vector index (embedding_dim is optional; the embedding model's dimension is used when not specified)COMMENT
MEDIUMdoc/docs/en/sdk/vector-database.md282# Build the embedding model adapterCOMMENT
MEDIUMdoc/docs/en/sdk/vector-database.md301 "embedding_model_name": "your-embedding-model", # specify the embedding modelCODE
MEDIUMdoc/docs/en/sdk/vector-database.md333# Semantic vector search (an embedding model must be passed in)COMMENT
Verbosity Indicators99 hits · 174 pts
SeverityFileLineSnippetContext
LOW…d/ext_components/aidp/components/AidpCreateKbModal.tsx306 // Step 1: Create KBCOMMENT
LOW…d/ext_components/aidp/components/AidpCreateKbModal.tsx342 // Step 2: Upload files (if any and not skipped)COMMENT
LOW⚡frontend/app/[locale]/chat/streaming/taskWindow.tsx50 // Step 1: Handle complete <display:language>...</display> blocksCOMMENT
LOW⚡frontend/app/[locale]/chat/streaming/taskWindow.tsx58 // Step 2: Handle complete <code>...</code> blocksCOMMENT
LOW⚡frontend/app/[locale]/chat/streaming/taskWindow.tsx63 // Step 3: Handle incomplete tags during streamingCOMMENT
LOWfrontend/components/agent/AgentImportWizard.tsx779 // Step 1: Model selection validationCOMMENT
LOWfrontend/components/agent/AgentImportWizard.tsx800 // Step 2: Config fields validationCOMMENT
LOW⚡frontend/components/common/markdownRenderer.tsx1039 // Step 1: Handle complete <display:language>...</display> blocksCOMMENT
LOW⚡frontend/components/common/markdownRenderer.tsx1047 // Step 2: Handle complete <code>...</code> blocksCOMMENT
LOW⚡frontend/components/common/markdownRenderer.tsx1052 // Step 3: Handle incomplete tags during streamingCOMMENT
LOWfrontend/hooks/useAgentImport.ts190 // Step 1: check name/display name conflicts before import (only check main agent name and display name)COMMENT
LOW⚡test/ext_components/aidp/test_aidp_search_tool.py814 # Step 1: install with idsCOMMENT
LOW⚡test/ext_components/aidp/test_aidp_search_tool.py819 # Step 2: uninstall (None)COMMENT
LOW⚡test/ext_components/aidp/test_aidp_search_tool.py824 # Step 3: reinstall as emptyCOMMENT
LOW⚡test/backend/services/test_data_process_service.py2276 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOW⚡test/backend/services/test_data_process_service.py2277 self._make_stream(b'%PDF-1.4 ok'), # Step 4: header checkCODE
LOW⚡test/backend/services/test_data_process_service.py2382 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOW⚡test/backend/services/test_data_process_service.py2383 self._make_stream(b'NOT-PDF'), # Step 4: header checkCODE
LOW⚡test/backend/services/test_data_process_service.py2502 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOW⚡test/backend/services/test_data_process_service.py2503 None, # Step 4: header check streamCODE
LOW⚡test/backend/services/test_data_process_service.py2535 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOW⚡test/backend/services/test_data_process_service.py2536 header_stream, # Step 4: header checkCODE
LOW⚡test/backend/services/test_data_process_service.py2587 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOW⚡test/backend/services/test_data_process_service.py2588 self._make_stream(b'%PDF-1.4 ok'), # Step 4: header checkCODE
LOWpathology-ai/code-changes/backend/local_mcp_service.py1138 # Step 1: 症状分析COMMENT
LOWpathology-ai/code-changes/backend/local_mcp_service.py1158 # Step 2: 病史关联COMMENT
LOWpathology-ai/code-changes/backend/local_mcp_service.py1176 # Step 3: 鉴别诊断COMMENT
LOWpathology-ai/code-changes/backend/local_mcp_service.py1205 # Step 4: 检查建议COMMENT
LOWpathology-ai/code-changes/backend/local_mcp_service.py1217 # Step 5: 诊断结论COMMENT
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py195 # Step 1: 症状分析COMMENT
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py200 # Step 2: 病史关联COMMENT
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py205 # Step 3: 鉴别诊断COMMENT
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py211 # Step 4: 检查建议COMMENT
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py215 # Step 5: 诊断结论COMMENT
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py129 "症状分析", # Step 1: 分析主诉和症状CODE
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py130 "病史关联", # Step 2: 关联既往病史CODE
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py131 "鉴别诊断", # Step 3: 列出可能的诊断CODE
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py132 "检查建议", # Step 4: 建议进一步检查CODE
LOW⚡…i/code-changes/medical_extension/chain_of_diagnosis.py133 "诊断结论", # Step 5: 给出最终诊断CODE
LOW⚡deploy/docker/generate_env.sh161 # Step 1: Prepare .env fileCOMMENT
LOW⚡deploy/docker/generate_env.sh164 # Step 2: Update .env fileCOMMENT
LOW⚡deploy/docker/generate_env.sh168 # Step 3: Show summaryCOMMENT
LOW⚡deploy/docker/assets/scripts/sync_skill_directory.py580 # Step 2: Check if container is runningCOMMENT
LOW⚡deploy/docker/assets/scripts/sync_skill_directory.py587 # Step 3: Test PostgreSQL connection and get tenant_id from containerCOMMENT
LOWdeploy/docker/assets/scripts/sync_skill_directory.py566 # Step 1: Load environment from .env fileCOMMENT
LOWdeploy/docker/assets/scripts/sync_skill_directory.py616 # Step 5: Determine directoriesCOMMENT
LOWdeploy/docker/assets/scripts/sync_skill_directory.py636 # Step 6: Discover and migrate skillsCOMMENT
LOW⚡deploy/docker/assets/scripts/sync_user_supabase2pg.py524 # Step 0: Check Docker containersCOMMENT
LOW⚡deploy/docker/assets/scripts/sync_user_supabase2pg.py532 # Step 1: Validate environment variablesCOMMENT
LOW⚡deploy/docker/assets/scripts/sync_user_supabase2pg.py538 # Step 2: Get Supabase parameters and test connectionCOMMENT
LOW⚡deploy/docker/assets/scripts/sync_user_supabase2pg.py563 # Step 4: Fetch all user_tenant recordsCOMMENT
LOW⚡deploy/docker/assets/scripts/sync_user_supabase2pg.py570 # Step 5: Process recordsCOMMENT
LOW⚡deploy/docker/assets/scripts/sync_user_supabase2pg.py575 # Step 6: SummaryCOMMENT
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py552 # Step 3: Connect to databaseCOMMENT
LOW⚡deploy/k8s/deploy.sh1377 # Step 1: Select deployment components, port policy and image source.COMMENT
LOW⚡deploy/k8s/deploy.sh1380 # Step 2: Render release-specific values with image tags and persistence settings.COMMENT
LOWdeploy/k8s/deploy.sh1399 # Step 3: Generate or reuse stable MinIO credentials for both releases.COMMENT
LOWdeploy/k8s/deploy.sh1428 # Step 4: Clean up stale PVs owned by the selected release scope.COMMENT
LOWdeploy/k8s/deploy.sh1454 # Step 5: Install or upgrade infrastructure and wait for all four dependencies.COMMENT
LOWdeploy/k8s/deploy.sh1485 # Step 6: Prepare application-only secrets after infrastructure is healthy.COMMENT
39 more matches not shown…
Modern Structural Boilerplate172 hits · 174 pts
SeverityFileLineSnippetContext
LOWpathology-ai/code-changes/medical_extension/__init__.py32__all__ = [CODE
LOWdeploy/docker/assets/scripts/sync_skill_directory.py39logger = logging.getLogger(__name__)CODE
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py27logger = logging.getLogger(__name__)CODE
LOW…end/ext_components/aidp/database/aidp_permission_db.py341__all__ = [CODE
LOWbackend/ext_components/aidp/consts/aidp_exceptions.py88__all__ = [CODE
LOW…xt_components/aidp/services/aidp_permission_service.py504__all__ = [CODE
LOW…nd/ext_components/aidp/services/aidp_access_service.py477__all__ = [CODE
LOW…ext_components/aidp/services/aidp_kb_update_service.py14logger = logging.getLogger(__name__)CODE
LOWbackend/middleware/exception_handler.py21logger = logging.getLogger(__name__)CODE
LOW⚡backend/database/evaluation_annotation_db.py16logger = logging.getLogger(__name__)CODE
LOWbackend/database/evaluator_db.py12logger = logging.getLogger(__name__)CODE
LOWbackend/database/user_tenant_db.py18logger = logging.getLogger(__name__)CODE
LOWbackend/database/agent_db.py406def update_agent_icon(agent_id: int, tenant_id: str, icon_url: str, user_id: str) -> None:CODE
LOWbackend/database/tag_management_db.py32def _set_audit_fields(record: Any, actor_id: str) -> None:CODE
LOWbackend/database/oauth_account_db.py11logger = logging.getLogger(__name__)CODE
LOWbackend/database/notification_db.py27logger = logging.getLogger(__name__)CODE
LOWbackend/database/evaluation_set_db.py12logger = logging.getLogger(__name__)CODE
LOWbackend/database/skill_db.py18logger = logging.getLogger(__name__)CODE
LOWbackend/management/services/skill/service.py27logger = logging.getLogger(__name__)CODE
LOWbackend/management/services/skill/support.py31logger = logging.getLogger(__name__)CODE
LOWbackend/management/services/agent/service.py97logger = logging.getLogger(__name__)CODE
LOWbackend/management/services/agent/run.py126logger = logging.getLogger(__name__)CODE
LOWbackend/management/services/agent/naming.py16logger = logging.getLogger(__name__)CODE
LOWbackend/management/services/agent/management.py96logger = logging.getLogger(__name__)CODE
LOW…end/management/services/agent/system_agent_provider.py36logger = logging.getLogger(__name__)CODE
LOWbackend/management/services/model/resolver.py12logger = logging.getLogger(__name__)CODE
LOWbackend/agents/tool_user_context.py9logger = logging.getLogger(__name__)CODE
LOW⚡backend/utils/font_utils.py16logger = logging.getLogger(__name__)CODE
LOWbackend/utils/nacos_client.py12logger = logging.getLogger(__name__)CODE
LOWbackend/utils/monitoring.py65logger = logging.getLogger(__name__)CODE
LOWbackend/utils/monitoring.py104__all__ = ['monitoring_manager']CODE
LOW⚡backend/utils/skill_params_utils.py11logger = logging.getLogger(__name__)CODE
LOWbackend/utils/langchain_utils.py6logger = logging.getLogger(__name__)CODE
LOW⚡backend/utils/auth_utils.py33logger = logging.getLogger(__name__)CODE
LOWbackend/utils/a2a_http_client.py9logger = logging.getLogger(__name__)CODE
LOWbackend/utils/llm_utils.py236__all__ = ["call_llm_for_system_prompt", "_process_thinking_tokens"]CODE
LOW⚡backend/utils/monitoring_identity.py7logger = logging.getLogger(__name__)CODE
LOWbackend/utils/agent_stream_utils.py23logger = logging.getLogger(__name__)CODE
LOWbackend/utils/agent_profile_utils.py20logger = logging.getLogger(__name__)CODE
LOWbackend/utils/knowledge_telemetry.py14logger = logging.getLogger(__name__)CODE
LOWbackend/utils/knowledge_telemetry.py309def set_span_attributes(**attributes: Any) -> None:CODE
LOWbackend/permissions/rbac.py10logger = logging.getLogger(__name__)CODE
LOWbackend/adapters/__init__.py8__all__ = [CODE
LOWbackend/tool_collection/mcp/nl2agent_mcp_tools.py16logger = logging.getLogger(__name__)CODE
LOWbackend/apps/skill_repository_app.py27logger = logging.getLogger(__name__)CODE
LOWbackend/apps/app_factory.py12logger = logging.getLogger(__name__)CODE
LOWbackend/apps/evaluation_set_app.py50logger = logging.getLogger(__name__)CODE
LOWbackend/apps/northbound_app.py68__all__ = ["router", "_get_northbound_context"]CODE
LOWbackend/apps/quota_app.py28logger = logging.getLogger(__name__)CODE
LOWbackend/apps/cas_app.py27logger = logging.getLogger(__name__)CODE
LOWbackend/apps/tenant_app.py34logger = logging.getLogger(__name__)CODE
LOWbackend/apps/skill_app.py44logger = logging.getLogger(__name__)CODE
LOWbackend/apps/memory_provider_app.py284def _update_last_error_code(provider_id: int, error_code: Optional[str]) -> None:CODE
LOWbackend/apps/oauth_app.py45logger = logging.getLogger(__name__)CODE
LOWbackend/apps/invitation_app.py24logger = logging.getLogger(__name__)CODE
LOWbackend/apps/agent_repository_app.py35logger = logging.getLogger(__name__)CODE
LOWbackend/apps/notification_app.py13logger = logging.getLogger(__name__)CODE
LOWbackend/apps/group_app.py33logger = logging.getLogger(__name__)CODE
LOWbackend/apps/northbound_knowledge_app.py42__all__ = ["router"]CODE
LOWbackend/consts/capability_profiles.py22logger = logging.getLogger(__name__)CODE
112 more matches not shown…
Magic Placeholder Names27 hits · 135 pts
SeverityFileLineSnippetContext
HIGHfrontend/tests/agentUsageGuide.test.ts233 /<YOUR_API_KEY>/CODE
HIGHfrontend/tests/agentUsageGuide.test.ts233 /<YOUR_API_KEY>/CODE
HIGHfrontend/tests/component/agentUsageGuide.test.tsx457 expect(example.textContent).toContain("<YOUR_API_KEY>");CODE
HIGHfrontend/tests/component/agentUsageGuide.test.tsx457 expect(example.textContent).toContain("<YOUR_API_KEY>");CODE
HIGHfrontend/tests/component/agentUsageGuide.test.tsx618 expect(document.body.textContent).toContain("<YOUR_API_KEY>");CODE
HIGHfrontend/tests/component/agentUsageGuide.test.tsx618 expect(document.body.textContent).toContain("<YOUR_API_KEY>");CODE
HIGHfrontend/lib/agentUsageGuide.ts235 " -H 'Authorization: Bearer <YOUR_API_KEY>'",CODE
HIGHfrontend/lib/agentUsageGuide.ts235 " -H 'Authorization: Bearer <YOUR_API_KEY>'",CODE
HIGHdoc/docs/zh/sdk/basic-usage.md33 api_key="your-api-key",CODE
HIGHdoc/docs/zh/sdk/basic-usage.md96 api_key="<YOUR_API_KEY>",CODE
HIGHdoc/docs/zh/sdk/basic-usage.md96 api_key="<YOUR_API_KEY>",CODE
HIGHdoc/docs/zh/sdk/vector-database.md18 api_key="your_api_key",CODE
HIGHdoc/docs/zh/sdk/vector-database.md183 curl -H "Authorization: ApiKey your_api_key" https://localhost:9200/_cluster/health\?pretty -kCODE
HIGHdoc/docs/zh/sdk/vector-database.md213 ELASTICSEARCH_API_KEY=your_api_keyCODE
HIGHdoc/docs/zh/sdk/vector-database.md252 api_key="your_api_key",CODE
HIGHdoc/docs/zh/sdk/vector-database.md286 api_key="your_api_key",CODE
HIGHdoc/docs/zh/sdk/core/models.md129 api_key="your-api-key",CODE
HIGHdoc/docs/zh/sdk/core/models.md163 api_key="your-api-key",CODE
HIGHdoc/docs/en/sdk/basic-usage.md31 api_key="your-api-key",CODE
HIGHdoc/docs/en/sdk/basic-usage.md93 api_key="<YOUR_API_KEY>",CODE
HIGHdoc/docs/en/sdk/basic-usage.md93 api_key="<YOUR_API_KEY>",CODE
HIGHdoc/docs/en/sdk/vector-database.md18 api_key="your_api_key",CODE
HIGHdoc/docs/en/sdk/vector-database.md183 curl -H "Authorization: ApiKey your_api_key" https://localhost:9200/_cluster/health\?pretty -kCODE
HIGHdoc/docs/en/sdk/vector-database.md213 ELASTICSEARCH_API_KEY=your_api_keyCODE
HIGHdoc/docs/en/sdk/vector-database.md252 api_key="your_api_key",CODE
HIGHdoc/docs/en/sdk/vector-database.md286 api_key="your_api_key",CODE
HIGHdoc/docs/en/sdk/core/models.md51 api_key="your-api-key",CODE
Fake / Example Data114 hits · 115 pts
SeverityFileLineSnippetContext
LOWfrontend/lib/clarification.ts58 "placeholder",CODE
LOWtest/ext_components/aidp/test_aidp_mgmt_app.py194 return {"Authorization": "Bearer fake-token"}CODE
LOW⚡test/backend/test_model_consts.py364 email="user@example.com",CODE
LOW⚡test/backend/test_model_consts.py368 assert req.email == "user@example.com"CODE
LOWtest/backend/database/test_conversation_db.py1242 "unit_content": '{"placeholder": true}',CODE
LOW⚡test/backend/database/test_market_mcp_db.py558 submitted_by="user@example.com",CODE
LOWtest/backend/app/test_mock_user_management_app.py72 "email": "user@example.com",CODE
LOW⚡test/backend/app/test_user_management_app.py183 mock_signup.return_value = {"user_id": "123", "email": "admin@example.com"}CODE
LOW⚡test/backend/app/test_user_management_app.py188 "email": "admin@example.com",CODE
LOW⚡test/backend/app/test_user_management_app.py199 email="admin@example.com",CODE
LOW⚡test/backend/app/test_user_management_app.py208 mock_signup.return_value = {"user_id": "123", "email": "admin@example.com"}CODE
LOW⚡test/backend/app/test_user_management_app.py213 "email": "admin@example.com",CODE
LOW⚡test/backend/app/test_user_management_app.py224 email="admin@example.com",CODE
LOW⚡test/backend/app/test_user_management_app.py238 "email": "admin@example.com",CODE
LOW⚡test/backend/app/test_user_management_app.py256 "email": "admin@example.com",CODE
LOW⚡test/backend/app/test_user_management_app_audit.py94 "user": {"id": "u-2", "email": "user@example.com", "role": "USER"},CODE
LOW⚡test/backend/app/test_user_management_app_audit.py102 json={"email": "user@example.com", "password": "password123"},CODE
LOW⚡…st/backend/agents/test_tool_user_context_resolution.py56 user_record={"user_email": "user@example.com"},CODE
LOW⚡…st/backend/agents/test_tool_user_context_resolution.py69 "user_name": "user@example.com",CODE
LOW⚡…st/backend/agents/test_tool_user_context_resolution.py70 "user_account": "user@example.com",CODE
LOW⚡test/backend/utils/test_llm_utils.py232 "api_key": "fake-key",CODE
LOWtest/backend/utils/test_llm_utils.py160 "api_key": "fake-key",CODE
LOWtest/backend/utils/test_llm_utils.py200 "api_key": "fake-key",CODE
LOWtest/backend/utils/test_llm_utils.py597 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py630 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py660 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py689 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py719 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py744 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py773 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py818 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py849 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py912 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py942 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py980 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py1357 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOW⚡test/backend/utils/test_auth_utils.py639 au._extract_user_id_from_jwt_token("Bearer fake-token")CODE
LOW⚡test/backend/services/test_user_management_service.py877 result = await signup_user_with_invitation("admin@example.com", "Password123", invite_code="ADMIN123")CODE
LOW⚡test/backend/services/test_user_management_service.py880 mock_insert_tenant.assert_called_with(user_id="user-123", tenant_id="tenant_id", user_role="ADMIN", user_emaCODE
LOW⚡test/backend/services/test_user_management_service.py1016 "admin@example.com",CODE
LOW⚡test/backend/services/test_user_management_service.py2101 user = MagicMock(id="user-1", email="user@example.com", user_metadata={"role": "USER"})CODE
LOW⚡test/backend/services/test_user_management_service.py2108 result = await signin_user("user@example.com", "Password123")CODE
LOWtest/backend/services/test_user_management_service.py703 result = await signup_user_with_invitation("admin@example.com", "Password123", invite_code="ADMIN123")CODE
LOWtest/backend/services/test_user_management_service.py706 mock_insert_tenant.assert_called_once_with(user_id="user-123", tenant_id="tenant_id", user_role="ADMIN", useCODE
LOWtest/backend/services/test_user_management_service.py969 "admin@example.com",CODE
LOWtest/backend/services/test_user_management_service.py1205 mock_user.email = "admin@example.com"CODE
LOWtest/backend/services/test_user_management_service.py1224 "email": "admin@example.com",CODE
LOW⚡…backend/services/test_memory_provider_plugin_loader.py108 provider = loader.build_provider("test-provider", {"api_key": "placeholder"})STRING
LOW⚡…backend/services/test_memory_provider_plugin_loader.py109 assert provider.config == {"api_key": "placeholder"}STRING
LOW⚡test/backend/services/test_mcp_management_service.py245 mock_get.return_value = {"user_email": "user@example.com"}CODE
LOW⚡test/backend/services/test_mcp_management_service.py247 self.assertEqual(card["authorDisplayName"], "user@example.com")CODE
LOW⚡test/backend/services/test_agent_repository_service.py1289 submitted_by="admin@example.com",CODE
LOW⚡test/backend/services/test_agent_repository_service.py1302 with patch.object(ars, "_resolve_submitter_email", return_value="admin@example.com"):CODE
LOW⚡test/backend/services/test_agent_repository_service.py2152 return_value={"user_role": "ADMIN", "user_email": "admin@example.com"},CODE
LOW⚡test/backend/services/test_agent_repository_service.py2189 return_value={"user_role": "USER", "user_email": "user@example.com"},CODE
LOW⚡test/backend/services/test_agent_repository_service.py2194 agent_info={"author": "user@example.com"},CODE
LOW⚡test/backend/services/test_agent_repository_service.py2216 return_value={"user_role": "USER", "user_email": "user@example.com"},CODE
LOW⚡test/backend/services/test_agent_repository_service.py2222 "author": "user@example.com",CODE
LOWtest/backend/services/test_agent_repository_service.py1273 with patch.object(ars, "_resolve_submitter_email", return_value="admin@example.com"):CODE
LOWtest/backend/services/test_agent_repository_service.py1318 submitted_by="admin@example.com",CODE
54 more matches not shown…
Cross-Language Confusion18 hits · 95 pts
SeverityFileLineSnippetContext
HIGHtest/backend/app/test_northbound_app_audit.py129 assert ('details={"target_user_id":"user-1","target_email":null,"revoked_count":2,'CODE
HIGHtest/backend/app/test_api_key_app_audit.py82 assert 'details={"target_user_id":"user-1","target_email":null,"revoked_count":3}' in messages[0]CODE
HIGHtest/backend/app/test_northbound_app.py1063 """Test that omitting model_id (null) preserves the agent's default model behavior."""STRING
HIGH…backend/services/test_agent_automation_tool_adapter.py325@pytest.mark.parametrize("content", ["not-json", "{}", '{"proposal_id": null}'])CODE
HIGH⚡test/backend/services/test_agent_evaluation_service.py1577 for payload in ('{"score": "high"}', '{"score": null}'):CODE
HIGHtest/sdk/core/tools/test_ragflow_search_tool.py365 dataset_ids='["ds1", 123, true, null]',CODE
HIGHtest/sdk/core/tools/test_dify_search_tool.py249 dataset_ids='["ds1", 123, true, null]',CODE
HIGH⚡test/sdk/core/agents/test_nexent_agent.py4158 # If step_log is undefined, it might raise NameError - this is expected behaviorCOMMENT
HIGHdeploy/docker/assets/scripts/sync_skill_directory.py134 logger.info("Please start the containers with: cd docker && docker compose up -d")CODE
HIGHbackend/database/db_models.py740 # Shape: {"<model_id>": {"temperature": 0.5, "top_p": null, "extra_params": {...}}}.COMMENT
HIGHbackend/management/services/skill/service.py147 response never contains stale data (e.g. {"configs": null} instead ofSTRING
HIGHbackend/apps/cas_app.py161window.parent && window.parent.postMessage({{ type: "cas-renew-{status}", reason: "{safe_reason}" }}, window.location.orCODE
HIGHbackend/apps/agent_app.py628 success, or ``{"message": <error>, "data": null}`` on AppException.STRING
HIGHbackend/consts/model.py1349 # Shape: {"<model_id>": {"temperature": 0.5, "top_p": null, "extra_params": {...}}}.COMMENT
HIGHbackend/services/idata_service.py168 # Expected format: {"code": "1", "msg": "...", "data": [...], "msgParams": null}COMMENT
HIGHbackend/services/model_capacity_suggestion_service.py475 context and max_output (some providers leave max_output as null).STRING
HIGHsdk/benchmark/acon_eval/run_acon_qa.py332 " * unstarted => answer is null, search_counts is 0\n"CODE
HIGHsdk/benchmark/acon_eval/run_acon_qa.py333 " * searching => answer is null, search_counts is 1 or 2\n"CODE
AI Structural Patterns82 hits · 66 pts
SeverityFileLineSnippetContext
LOWtest/backend/database/test_token_db.py45CODE
LOWtest/backend/database/test_token_db.py106CODE
LOWtest/backend/database/test_evaluator_db.py370CODE
LOWtest/backend/app/test_knowledge_summary_app.py139CODE
LOWtest/backend/app/test_skill_app.py68CODE
LOWtest/backend/services/test_memory_context_service.py112CODE
LOWtest/backend/services/test_memory_retrieval_service.py80CODE
LOWtest/sdk/core/tools/test_search_memory_tool.py97CODE
LOWpathology-ai/code-changes/backend/local_mcp_service.py282CODE
LOWpathology-ai/code-changes/backend/local_mcp_service.py737CODE
LOWbackend/ext_components/aidp/services/aidp_service.py2028CODE
LOWbackend/database/skill_repository_db.py127CODE
LOWbackend/database/a2a_agent_db.py153CODE
LOWbackend/database/a2a_agent_db.py674CODE
LOWbackend/database/user_tenant_db.py272CODE
LOWbackend/database/community_mcp_db.py118CODE
LOWbackend/database/memory_record_db.py238CODE
LOWbackend/database/market_mcp_db.py35CODE
LOWbackend/database/market_mcp_db.py198CODE
LOWbackend/database/agent_evaluation_db.py415CODE
LOWbackend/management/services/agent/management.py924CODE
LOW…ckend/management/services/knowledge_base/management.py863CODE
LOWbackend/agents/create_agent_info.py1306CODE
LOWbackend/agents/create_agent_info.py2610CODE
LOWbackend/utils/context_utils.py78CODE
LOWbackend/apps/skill_repository_app.py44CODE
LOWbackend/apps/app_factory.py15CODE
LOWbackend/apps/memory_record_app.py171CODE
LOWbackend/apps/remote_mcp_app.py994CODE
LOWbackend/apps/remote_mcp_app.py1068CODE
LOWbackend/apps/northbound_app.py370CODE
LOWbackend/apps/northbound_base_app.py277CODE
LOWbackend/apps/northbound_base_app.py291CODE
LOWbackend/apps/agent_repository_app.py155CODE
LOWbackend/apps/agent_repository_app.py223CODE
LOWbackend/apps/vectordatabase_app.py466CODE
LOWbackend/apps/agent_app.py894CODE
LOWbackend/apps/agent_evaluation_app.py265CODE
LOWbackend/services/memory_retrieval_service.py163CODE
LOWbackend/services/agent_evaluation_service.py2177CODE
LOWbackend/services/skill_repository_service.py1086CODE
LOWbackend/services/memory_record_service.py242CODE
LOWbackend/services/memory_record_service.py506CODE
LOWbackend/services/mcp_management_service.py358CODE
LOWbackend/services/model_health_service.py185CODE
LOWbackend/services/memory_context_service.py124CODE
LOWbackend/services/memory_provider_config_service.py301CODE
LOWbackend/services/audit_service.py61CODE
LOWbackend/services/agent_repository_service.py252CODE
LOWbackend/services/agent_repository_service.py584CODE
LOWbackend/services/remote_mcp_service.py317CODE
LOWbackend/services/remote_mcp_service.py408CODE
LOWbackend/data_process/tasks.py596CODE
LOWsdk/benchmark/agent_runner.py102CODE
LOWsdk/benchmark/agent_runner.py265CODE
LOWsdk/benchmark/acon_eval/retriever_sesrver.py322CODE
LOWsdk/benchmark/generic/runtime/task_adapter.py64CODE
LOWsdk/nexent/monitor/monitoring.py997CODE
LOWsdk/nexent/core/ext_components/aidp/aidp_search_tool.py167CODE
LOWsdk/nexent/core/tools/haotian_search_tool.py104CODE
22 more matches not shown…
Over-Commented Block47 hits · 42 pts
SeverityFileLineSnippetContext
LOW…d/ext_components/aidp/components/AidpCreateKbModal.tsx101 const fileListRef = useRef<File[]>([]);COMMENT
LOW…ale]/models/components/model/ModelAdvancedSettings.tsx21 InferenceFieldType,COMMENT
LOW…ale]/models/components/model/ModelAdvancedSettings.tsx41// Storage mapping (handled by caller via buildInferenceParamsPayload):COMMENT
LOW…ocale]/models/components/model/ModelCapacityFields.tsx281 applyDefaultsOnEmpty = true,COMMENT
LOW…[locale]/models/components/model/ModelEditDialogV2.tsx301 // catalog's `suggested_provider` namespace (deepseek, openai, jina,COMMENT
LOW…[locale]/models/components/model/ModelEditDialogV2.tsx401COMMENT
LOW…[locale]/models/components/model/ModelEditDialogV2.tsx621COMMENT
LOWfrontend/app/[locale]/newchat/page.tsx221COMMENT
LOW…/[locale]/newchat/adapter/remote-chat-model-adapter.ts1881 // onto every reasoning / tool-call / source part emitted while aCOMMENT
LOW…/[locale]/newchat/adapter/remote-chat-model-adapter.ts1941 // activate it as the current scope. Returns null when the chunk belongsCOMMENT
LOW…/[locale]/newchat/adapter/remote-chat-model-adapter.ts2661 }COMMENT
LOW…]/newchat/adapter/conversation-thread-list-adapter.tsx721 continue;COMMENT
LOWfrontend/features/workbench/WorkbenchPage.tsx181 }, [runtimeMainThreadId]);COMMENT
LOWtest/conftest.py261# Install a sane supabase mock at collection time so test modules thatCOMMENT
LOW…_components/aidp/mock_servers/aidp_mgmt_mock_server.py101# Directory for persisted runtime state. Lives next to this file so the mockCOMMENT
LOWtest/backend/__init__.py1# This file marks the test/backend directory as a Python package.COMMENT
LOWtest/backend/app/test_evaluation_delete_app.py61# 1 delete_evaluation_set_implCOMMENT
LOWtest/backend/utils/test_auth_utils.py141# still match; we also expose ``AppException`` and other exception classesCOMMENT
LOWtest/backend/adapters/test_jiuwen_sdk_adapter.py1361 if name == "openjiuwen":COMMENT
LOW…st/backend/services/test_tool_configuration_service.py501 # still have something to attach to. The stub mirrors the real functionCOMMENT
LOWdeploy/docker/deploy.sh481 echo "ENABLE_TERMINAL=\"${ENABLE_TERMINAL_SAVED}\""COMMENT
LOWdeploy/docker/compose/docker-compose.dev.yml1name: nexentCOMMENT
LOWdeploy/docker/compose/docker-compose.dev.yml21# logging:COMMENT
LOWdeploy/docker/compose/docker-compose.dev.yml81# volumes:COMMENT
LOWdeploy/docker/assets/scripts/v180_sync_user_metadata.sh1#!/bin/bashCOMMENT
LOW…loy/docker/assets/scripts/v220_sync_skill_directory.sh1#!/bin/bashCOMMENT
LOW…loy/docker/assets/monitoring/otel-collector-config.yml41 exporters: [debug]COMMENT
LOW…loy/docker/assets/monitoring/otel-collector-config.yml61#COMMENT
LOW…loy/docker/assets/monitoring/otel-collector-config.yml81# LANGSMITH_PROJECT=nexentCOMMENT
LOWdeploy/common/config.example.yaml21# Local development image example:COMMENT
LOWbackend/adapters/jiuwen_sdk_adapter.py21COMMENT
LOWbackend/tool_collection/langchain/compute_tool.py1# from langchain_core.tools import tool, StructuredToolCOMMENT
LOWbackend/tool_collection/langchain/compute_tool.py21# return a * bCOMMENT
LOWbackend/tool_collection/langchain/compute_tool.py41#COMMENT
LOWbackend/tool_collection/langchain/compute_tool.py61# description="Calculate the power of a number",COMMENT
LOWbackend/consts/exceptions.py61COMMENT
LOWbackend/services/model_management_service.py821 }COMMENT
LOWbackend/services/model_management_service.py1001COMMENT
LOWbackend/services/agent_evaluation_service.py241 # actually work *before* being stored as DRAFT / PUBLISHED.COMMENT
LOWbackend/services/model_provider_service.py101COMMENT
LOWbackend/services/image_service.py21COMMENT
LOWsdk/benchmark/tools/ctx_debugger/langfuse_export.py81COMMENT
LOWsdk/benchmark/manual_cases/test_benchmark.py41# with a deduplicated 6-field schema (~620 word budget) that mergesCOMMENT
LOWsdk/nexent/core/ext_components/aidp/aidp_search_tool.py221 # ``kds_list`` are intersected with this set so permission changesCOMMENT
LOWscripts/document_builder/build_docs.py121COMMENT
LOW.github/workflows/codeql_main.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
LOW.github/workflows/codeql.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
AI Slop Vocabulary12 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUM…/agents/components/capability/tool/ToolConfigModal.tsx1125 // Use robust ID comparisonCOMMENT
MEDIUM…/components/tool-config/KnowledgeBaseSelectorModal.tsx920 // Use a more robust ID comparison to handle potential format differencesCOMMENT
MEDIUM⚡test/backend/database/test_evaluator_db.py205# 2. Session harness – builds mock session.query(...).filter(...).all/first chainsCOMMENT
MEDIUMtest/backend/database/test_evaluator_db.py129 # database.client.get_db_session – wired lazily by the harness per test.COMMENT
MEDIUMtest/backend/app/test_mock_user_management_app.py65 """Test user signup endpoint with comprehensive coverage"""STRING
MEDIUMtest/backend/services/test_skill_service.py3391 # Use os.path.commonpath for robust cross-platform comparisonCOMMENT
MEDIUMtest/backend/services/test_evaluation_pure_logic.py695 # signature. The simplest robust test is to use a callable class instanceSTRING
MEDIUMbackend/database/agent_evaluation_db.py657 # Cascade-delete annotations by case_id (more robust than by agent_evaluation_idCOMMENT
MEDIUMbackend/utils/config_utils.py33 """Helper function for processing list values, using JSON format for storage to facilitate parsing"""STRING
LOWsdk/nexent/core/agents/core_agent.py450 # so just return an empty list here.COMMENT
MEDIUMsdk/nexent/core/models/openai_vlm.py52 # robust against future module moves.COMMENT
MEDIUMsdk/nexent/skills/skill_manager.py902 # robust against callers that prepend "./scripts/foo.py".COMMENT
Dead Code22 hits · 25 pts
SeverityFileLineSnippetContext
MEDIUMtest/backend/app/test_northbound_base_app.py776CODE
MEDIUMtest/backend/services/test_agent_service.py467CODE
MEDIUMtest/backend/services/test_agent_service.py468CODE
MEDIUMtest/backend/services/test_agent_service.py469CODE
MEDIUMtest/backend/services/test_agent_service.py470CODE
MEDIUMtest/backend/services/test_agent_service.py471CODE
MEDIUMtest/backend/services/test_agent_service.py472CODE
MEDIUMtest/backend/services/test_agent_service.py490CODE
MEDIUMtest/backend/services/test_agent_service.py491CODE
MEDIUMtest/backend/services/test_agent_service.py494CODE
MEDIUMtest/backend/services/test_agent_service.py495CODE
MEDIUMtest/backend/services/test_agent_service.py503CODE
MEDIUMtest/backend/services/test_agent_service.py505CODE
MEDIUMtest/backend/services/test_agent_service.py5713CODE
MEDIUMtest/backend/services/test_agent_service.py6827CODE
MEDIUMtest/backend/services/test_agent_service.py16027CODE
MEDIUMtest/backend/services/test_agent_service.py16178CODE
MEDIUMtest/backend/services/test_a2a_client_service.py1957CODE
MEDIUMtest/backend/services/test_nl2skill_service.py483CODE
MEDIUMtest/backend/services/test_agent_evaluation_service.py1034CODE
MEDIUMtest/sdk/core/tools/test_knowledge_base_search_tool.py1755CODE
MEDIUMtest/sdk/core/models/test_openai_llm.py2356CODE
Synthetic Comment Markers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHfrontend/public/locales/en/common.json86 "chatInterface.aiGeneratedContentWarning": "Content generated by AI, please verify carefully",CODE
HIGHfrontend/hooks/agent/useAgentGeneration.ts208 // AI-generated fields come from cache, other fields come from editedAgentCOMMENT
HIGHtest/backend/app/test_invitation_app.py225 """Test invitation creation with auto-generated code"""STRING
Slop Phrases3 hits · 8 pts
SeverityFileLineSnippetContext
LOW…tend/app/[locale]/chat/streaming/chatStreamHandler.tsx444 // Don't forget to save the last currentStep if it has contentsCOMMENT
MEDIUM.github/workflows/codeql_main.yml58 # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize howCOMMENT
MEDIUM.github/workflows/codeql.yml58 # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize howCOMMENT
Overly Generic Function Names8 hits · 6 pts
SeverityFileLineSnippetContext
LOW⚡test/backend/utils/test_monitoring.py67 def test_function():CODE
LOW…st/backend/services/test_agent_automation_scheduler.py16 async def execute_task(self, task, trigger_type="SCHEDULED", lease_owner=None):CODE
LOWtest/backend/services/test_evaluation_pure_logic.py636def helper(x):CODE
LOW⚡test/sdk/monitor/test_monitoring.py1055 def test_function(param1, param2="default"):CODE
LOW⚡test/sdk/monitor/test_monitoring.py1068 async def test_function(param1, param2="default"):CODE
LOWbackend/utils/monitoring.py12 async def my_function():STRING
LOWbackend/services/agent_automation/runner.py33 async def execute_task(CODE
LOWsdk/nexent/monitor/monitoring.py2830 async def my_function():STRING
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWdeploy/docker/assets/scripts/v180_sync_user_metadata.sh6# Usage:COMMENT
LOW…loy/docker/assets/scripts/v220_sync_skill_directory.sh13# Usage:COMMENT