Repository Analysis

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.

33.0 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of ModelEngine-Group/nexent, a Python project with 5,841 GitHub stars. SynthScan v2.0 examined 801,025 lines of code across 2030 source files, recording 21903 pattern matches distributed across 26 syntactic categories. The overall adjusted score of 33.0 places this repository in the Strong AI signal band.

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

33.0
Adjusted Score
33.0
Raw Score
100%
Time Factor
2026-08-28
Last Push
5.8K
Stars
Python
Language
801.0K
Lines of Code
2.0K
Files
21.9K
Pattern Hits
2026-08-29
Scan Date
0.16
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 17HIGH 303MEDIUM 2807LOW 18776

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 21903 distinct pattern matches across 26 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

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

Hyper-Verbose Identifiers15037 hits · 11645 pts
SeverityFileLineSnippetContext
LOWexperimental/tune/joint_optimizer.py59 def extract_optimized_prompt_from_response(content) -> Optional[str]:CODE
LOWexperimental/tune/joint_optimizer.py69 def extract_optimized_placeholder_from_response(content) -> Optional[List]:CODE
LOWexperimental/tune/joint_optimizer.py94 def extract_examples_from_response(content):CODE
LOWexperimental/tune/joint_optimizer.py113 def prepare_optimization_template(template, instruction, placeholders, error_cases, reflection, tools):CODE
LOWexperimental/tune/joint_optimizer.py176 def get_variable_from_dataset(dataset, prompt):CODE
LOWexperimental/tune/joint_optimizer.py310 def optimize_instruction_by_gradient(self, tools: Optional[List]) -> Tuple[Optional[str], Optional[List]]:CODE
LOWexperimental/tune/joint_optimizer.py344 def optimize_instruction_without_placeholder(self, instruction, error_example_string, text_gradient, tools):CODE
LOWexperimental/tune/joint_optimizer.py354 def optimize_instruction_with_placeholder(self, instruction, error_example_string, text_gradient, tools):CODE
LOWexperimental/tune/joint_optimizer.py429 def generate_best_reasoning_examples(self, context: Context) -> List:CODE
LOWexperimental/tune/joint_optimizer.py675 def optimize_prompt_iteratively(self, context: Context, begin_iteration: int):CODE
LOWexperimental/tune/joint_optimizer.py784 def _get_examples_string_list(self, examples: List) -> List[str]:CODE
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.js751function updateAndSaveLocaleConfig(fields) {CODE
LOW…end/ext_components/aidp/AidpKnowledgeSelectorModal.tsx59export default function AidpKnowledgeSelectorModal({CODE
LOWfrontend/types/quota.ts238export 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.tsx303export function reconstructFromStreamingMessage(CODE
LOW…app/[locale]/chat/streaming/chatStreamFinalMessage.tsx68function 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.tsx452export 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…/skill-space/components/SkillRepositoryDetailModal.tsx13export function SkillRepositoryDetailModal({CODE
LOW…[locale]/agents/versions/AgentVersionPubulishModal.tsx30export default function AgentVersionPubulishModal({CODE
LOW…app/[locale]/agents/components/collaborative-agent.tsx82export function CollaborativeAgentActions() {CODE
LOW…p/[locale]/agents/components/knowledge-base-search.tsx135function getLocalizedParamDescription(CODE
LOW…p/[locale]/agents/components/knowledge-base-search.tsx265function useKnowledgeBaseConfigState(): KnowledgeBaseConfigState | null {CODE
LOW…p/[locale]/agents/components/knowledge-base-search.tsx425export function KnowledgeBaseConfigActions() {CODE
LOW…onents/advanced/collaborative-agent-selector-modal.tsx105export default function CollaborativeAgentSelectorModal({CODE
LOW…ale]/agents/components/agentConfig/SkillBuildModal.tsx94function stripLeadingSkillFrontmatter(content: string): string {CODE
LOW…cale]/agents/components/agentConfig/ToolManagement.tsx40function isToolDisabledDueToEmbedding(name: string, emb: boolean): boolean {CODE
LOW…agents/components/agentConfig/tool/ToolConfigModal.tsx142function withAnalyzeToolModelParam(CODE
LOW…ents/components/agentConfig/tool/SelectToolsDialog.tsx53function getToolDisabledTooltipKey(CODE
LOW…cale]/agents/components/a2a/A2AAgentDiscoveryModal.tsx234function extractAvailableProtocols(supportedInterfaces?: Record<string, any>[]): string[] {CODE
LOW…ts/components/agentInfo/PromptTemplateManagerModal.tsx76export default function PromptTemplateManagerModal({CODE
LOWfrontend/app/[locale]/mcp-space/page.tsx110function getDeploymentCategoryStats(CODE
LOWfrontend/app/[locale]/mcp-space/page.tsx1162function toMcpContainerConfigPayload(CODE
LOW…p-space/components/McpRepositoryReviewConfirmModal.tsx20export default function McpRepositoryReviewConfirmModal({CODE
LOW…]/mcp-space/components/PublishedServiceDetailModal.tsx51export default function PublishedServiceDetailModal({CODE
LOW…ace/components/add/local/AddMcpServiceLocalSection.tsx117export default function AddMcpServiceLocalSection({CODE
LOW…onents/add/community/AddMcpServiceCommunitySection.tsx15export default function AddMcpServiceCommunitySection({CODE
LOW…e]/newchat/ui/suggested-resource-installation-card.tsx209export function SuggestedResourceInstallationCard({CODE
LOWfrontend/app/[locale]/newchat/ui/reasoning.tsx47export function normalizeReasoningCodeBlocks(text: string): string {CODE
LOWfrontend/app/[locale]/newchat/ui/model-selector.tsx598function ModelSelectorModelContext() {CODE
LOWfrontend/app/[locale]/newchat/ui/markdown-text.tsx115function buildCitationDisplayIndexMap(CODE
14977 more matches not shown…
Decorative Section Separators2483 hits · 8721 pts
SeverityFileLineSnippetContext
MEDIUMfrontend/types/quota.ts226// ── Error types ──────────────────────────────────────────────COMMENT
MEDIUM…cale]/agents/components/agentConfig/ToolManagement.tsx335// ─── Pure helper ─────────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/page.tsx87 // ── Top-level list state ──────────────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/page.tsx98 // ── Drawer (create-evaluation form) state ─────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/page.tsx133 // ── Trial-run (in-drawer "Try it out") state ───────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/page.tsx161 // ── Init `filterAgent` from URL or default ────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/page.tsx196 // ── Polling ───────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx42// ── helpers ──────────────────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx114// ── component ────────────────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx122 // ── Core data state ────────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx126 // ── Case table state (paginated, server-driven) ─────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx141 // ── AI analysis (root cause) state ──────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx150 // ── Chart-ready aggregates ─────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx155 // ── Filter state ────────────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx174 // ── Annotation state ──────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx384 // ── Server-side data fetching ────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx547 // ── Polling ─────────────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx570 // ── Stats from API ───────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx606 // ── case columns ────────────────────────────────────────COMMENT
MEDIUMfrontend/app/[locale]/evaluation/[id]/page.tsx1033 // ── 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.py492# ---------------------------------------------------------------------------COMMENT
MEDIUM…st/ext_components/aidp/test_aidp_permission_service.py494# ---------------------------------------------------------------------------COMMENT
MEDIUM…st/ext_components/aidp/test_aidp_permission_service.py519# ---------------------------------------------------------------------------COMMENT
MEDIUM…st/ext_components/aidp/test_aidp_permission_service.py521# ---------------------------------------------------------------------------COMMENT
MEDIUM…st/ext_components/aidp/test_aidp_permission_service.py554# ---------------------------------------------------------------------------COMMENT
MEDIUM…st/ext_components/aidp/test_aidp_permission_service.py556# ---------------------------------------------------------------------------COMMENT
MEDIUM…st/ext_components/aidp/test_aidp_permission_service.py575# ---------------------------------------------------------------------------COMMENT
MEDIUM…st/ext_components/aidp/test_aidp_permission_service.py577# ---------------------------------------------------------------------------COMMENT
MEDIUM…st/ext_components/aidp/test_aidp_permission_service.py602# ---------------------------------------------------------------------------COMMENT
MEDIUM…st/ext_components/aidp/test_aidp_permission_service.py604# ---------------------------------------------------------------------------COMMENT
MEDIUM…st/ext_components/aidp/test_aidp_permission_service.py633# ---------------------------------------------------------------------------COMMENT
MEDIUM…st/ext_components/aidp/test_aidp_permission_service.py635# ---------------------------------------------------------------------------COMMENT
MEDIUM…st/ext_components/aidp/test_aidp_permission_service.py644# ---------------------------------------------------------------------------COMMENT
MEDIUM…st/ext_components/aidp/test_aidp_permission_service.py646# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/ext_components/aidp/test_aidp_search_tool.py523 # ------------------------------------------------------------------COMMENT
MEDIUMtest/ext_components/aidp/test_aidp_search_tool.py525 # ------------------------------------------------------------------COMMENT
MEDIUMtest/ext_components/aidp/test_aidp_search_tool.py558 # ------------------------------------------------------------------COMMENT
MEDIUMtest/ext_components/aidp/test_aidp_search_tool.py560 # ------------------------------------------------------------------COMMENT
MEDIUMtest/ext_components/aidp/test_aidp_search_tool.py605 # ------------------------------------------------------------------COMMENT
MEDIUMtest/ext_components/aidp/test_aidp_search_tool.py607 # ------------------------------------------------------------------COMMENT
MEDIUMtest/ext_components/aidp/test_aidp_search_tool.py629 # ------------------------------------------------------------------COMMENT
MEDIUMtest/ext_components/aidp/test_aidp_search_tool.py631 # ------------------------------------------------------------------COMMENT
MEDIUMtest/ext_components/aidp/test_aidp_search_tool.py691 # ------------------------------------------------------------------COMMENT
MEDIUMtest/ext_components/aidp/test_aidp_search_tool.py693 # ------------------------------------------------------------------COMMENT
MEDIUMtest/ext_components/aidp/test_aidp_search_tool.py732# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/ext_components/aidp/test_aidp_search_tool.py734# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/ext_components/aidp/test_aidp_search_tool.py811# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/ext_components/aidp/test_aidp_search_tool.py813# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/ext_components/aidp/test_aidp_search_tool.py816# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/ext_components/aidp/test_aidp_search_tool.py818# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/ext_components/aidp/test_aidp_search_tool.py843# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/ext_components/aidp/test_aidp_search_tool.py846# ---------------------------------------------------------------------------COMMENT
2423 more matches not shown…
Excessive Try-Catch Wrapping1642 hits · 1446 pts
SeverityFileLineSnippetContext
LOWexperimental/tune/joint_optimizer.py54 except Exception as e:CODE
LOWexperimental/tune/joint_optimizer.py577 except Exception as e:CODE
LOWexperimental/tune/joint_optimizer.py630 except Exception as e:CODE
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.py313 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.py517 except Exception as e:CODE
LOWtest/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.py206except Exception:CODE
LOWtest/backend/app/test_agent_app.py1616 except Exception:CODE
LOWtest/backend/app/test_idata_app.py207 except Exception as e:CODE
LOWtest/backend/app/test_idata_app.py438 except Exception as e:CODE
LOWtest/backend/app/test_skill_repository_app.py55except Exception:CODE
MEDIUMtest/backend/app/test_evaluation_delete_app.py51def _safe_import(name):CODE
LOWtest/backend/app/test_evaluation_delete_app.py54 except Exception: # noqa: BLE001CODE
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.py490except Exception:CODE
MEDIUMtest/backend/services/test_model_provider_service.py1641def mock_get_models_with_exception_handling(config):CODE
LOWtest/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.py55def _filter_property(data, model_class):CODE
LOWtest/backend/services/test_memory_config_service.py58 except Exception:CODE
LOWtest/backend/services/test_skill_service.py2105 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2125 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2266 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2325 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2468 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2490 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2507 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2524 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2540 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2556 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2573 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2590 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2616 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py3155 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py4896 except Exception as e:CODE
LOWtest/backend/services/test_agent_service.py12922 except Exception:CODE
LOWtest/backend/services/test_agent_service.py41except Exception:CODE
LOWtest/backend/services/test_prompt_service.py3143 except Exception:CODE
LOWtest/backend/services/test_skill_repository_service.py213except Exception:CODE
LOWtest/backend/services/test_mcp_container_service.py1442 except Exception:CODE
LOWtest/backend/services/test_mcp_container_service.py1468 except Exception:CODE
LOWtest/backend/services/test_mcp_container_service.py1488 except Exception:CODE
LOWtest/backend/services/test_mcp_container_service.py1509 except Exception:CODE
LOWtest/backend/services/test_vectordatabase_service.py29except Exception:CODE
LOWtest/backend/services/test_vectordatabase_service.py3795 except Exception:CODE
LOWtest/backend/services/test_agent_evaluation_service.py392except Exception: # noqa: BLE001CODE
1582 more matches not shown…
Unused Imports945 hits · 748 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.py460CODE
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.py245CODE
LOWtest/backend/test_runtime_service.py3CODE
LOWtest/backend/test_runtime_service.py5CODE
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.py73CODE
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
LOWtest/backend/database/test_agent_db.py3CODE
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
LOWtest/backend/database/test_client.py9CODE
LOWtest/backend/database/test_client.py10CODE
LOWtest/backend/database/test_client.py63CODE
LOWtest/backend/database/test_client.py63CODE
LOWtest/backend/database/test_market_mcp_db.py10CODE
LOWtest/backend/database/test_evaluation_annotation_db.py22CODE
LOWtest/backend/app/test_group_app.py3CODE
LOWtest/backend/app/test_group_app.py4CODE
LOWtest/backend/app/test_group_app.py7CODE
LOWtest/backend/app/test_group_app.py34CODE
LOWtest/backend/app/test_group_app.py34CODE
LOWtest/backend/app/test_group_app.py34CODE
LOWtest/backend/app/test_group_app.py34CODE
LOWtest/backend/app/test_group_app.py34CODE
LOWtest/backend/app/test_group_app.py34CODE
LOWtest/backend/app/test_northbound_base_app.py12CODE
LOWtest/backend/app/test_mcp_management_app.py10CODE
LOWtest/backend/app/test_agent_app.py11CODE
LOWtest/backend/app/test_idata_app.py109CODE
LOWtest/backend/app/test_idata_app.py109CODE
LOWtest/backend/app/test_app_factory.py503CODE
LOWtest/backend/app/test_app_factory.py675CODE
LOWtest/backend/app/test_image_app.py211CODE
885 more matches not shown…
Docstring Block Structure138 hits · 690 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.py501 Get the internal index_name from user-facing knowledge_name. Args: knowledge_name: User-facing knowledSTRING
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/vectordatabase_service.py265 Return a VectorDatabaseCore implementation based on the requested type. Args: db_type: Target vector dSTRING
HIGHbackend/services/vectordatabase_service.py1006 Update knowledge base information (name, group permission, group assignments). Args: indexSTRING
HIGHbackend/services/vectordatabase_service.py1087 Update the embedding model for a knowledge base. Args: index_name: Internal index name of STRING
HIGHbackend/services/agent_service.py2621 list all agent info Args: tenant_id (str): tenant id user_id (str): user id (used for permissiSTRING
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.py63 Load Docker image from tar file Args: tar_file_path: Path to the tar file containing the DSTRING
HIGHbackend/services/mcp_container_service.py105 Start MCP container and return access URL Args: service_name: Name of the MCP service STRING
HIGHbackend/services/mcp_container_service.py165 Load image from tar file and start MCP container Args: tar_file_path: Path to the tar fileSTRING
HIGHbackend/services/mcp_container_service.py212 Stop and remove MCP container Args: container_id: Container ID or name Returns: STRING
HIGHbackend/services/skill_service.py1401Create a new skill for a tenant. Args: skill_data: Skill data including name, description, content,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.py613Update user password with old password verification. This method first re-authenticates the user with their old pasSTRING
HIGHbackend/services/nl2skill_service.py127Resolve the model configuration for NL2Skill. Args: tenant_id: Current tenant ID model_id: OptionalSTRING
HIGHbackend/services/tenant_service.py230 Create a new tenant with default group Args: tenant_name (str): Tenant name created_by (OptionSTRING
HIGHbackend/services/tenant_service.py309 Update tenant information If TENANT_NAME config doesn't exist, creates it with the provided name. Args: STRING
HIGHbackend/services/tenant_service.py417 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.py559Generate guardrail regex rules from a natural-language description via LLM. Loads the guardrail prompt template, reSTRING
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
HIGHbackend/services/voice_service.py472 Check STT service connectivity. Args: model_factory: Model factory/vendor name (e.g., "volSTRING
HIGHbackend/services/voice_service.py525 Check TTS service connectivity. Args: model_factory: Model factory/vendor name (e.g., "volSTRING
78 more matches not shown…
Cross-File Repetition138 hits · 690 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
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_write_skill_file_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_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/tools/test_write_skill_file_tool.py0test that _get_skill_manager creates manager on first call.STRING
HIGHtest/sdk/core/tools/test_read_skill_md_tool.py0test that _get_skill_manager creates manager on first call.STRING
HIGHtest/sdk/core/tools/test_run_skill_script_tool.py0test that _get_skill_manager creates manager on first call.STRING
HIGHtest/sdk/core/tools/test_write_skill_file_tool.py0test that _get_skill_manager reuses existing manager.STRING
HIGHtest/sdk/core/tools/test_read_skill_md_tool.py0test that _get_skill_manager reuses existing manager.STRING
HIGHtest/sdk/core/tools/test_run_skill_script_tool.py0test that _get_skill_manager reuses existing manager.STRING
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/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
78 more matches not shown…
Self-Referential Comments209 hits · 644 pts
SeverityFileLineSnippetContext
MEDIUMtest/pytest.ini5# Create a new event loop for each test function to ensure isolationCOMMENT
MEDIUMtest/backend/database/test_model_managment_db.py97 # Create a mock session returning an embedding record with None chunk sizesCOMMENT
MEDIUMtest/backend/database/test_tenant_config_db.py541 # Create a mock query chain that returns tenant IDsCOMMENT
MEDIUMtest/backend/database/test_tenant_config_db.py570 # Create a mock query that returns empty resultCOMMENT
MEDIUMtest/backend/database/test_agent_db.py678 # Create a Mock class for AgentRelation that supports both class attribute access and instantiationCOMMENT
MEDIUMtest/backend/database/test_agent_db.py779 # Create a Mock class for AgentRelation that supports both class attribute access and instantiationCOMMENT
MEDIUMtest/backend/database/test_tool_db.py22# Create a mock ToolSourceEnum that supports .value attribute accessCOMMENT
MEDIUMtest/backend/database/test_tool_db.py271 # Create a Mock class that can be used both as a class (for query) and instantiatedCOMMENT
MEDIUMtest/backend/database/test_tool_db.py452 # Create a mock for ToolInfo class with properly accessible attributesCOMMENT
MEDIUMtest/backend/database/test_tool_db.py492 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py498 # Create a new tool with different name&source that doesn't exist in databaseCOMMENT
MEDIUMtest/backend/database/test_tool_db.py544 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py550 # Create a new tool with invalid name (contains special characters)COMMENT
MEDIUMtest/backend/database/test_tool_db.py597 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py603 # Create a new MCP tool with same name but different usage (different MCP server)COMMENT
MEDIUMtest/backend/database/test_tool_db.py653 # Create a new MCP tool with same name and same usage (should update existing)COMMENT
MEDIUMtest/backend/database/test_tool_db.py697 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py703 # Create a new MCP tool with same name and empty usage (should update existing)COMMENT
MEDIUMtest/backend/database/test_tool_db.py744 # Create a new non-MCP tool with same name and source but different usageCOMMENT
MEDIUMtest/backend/database/test_tool_db.py787 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py843 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py956 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py1096 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py1102 # Create a new MCP tool with invalid name (contains special characters)COMMENT
MEDIUMtest/backend/database/test_tool_db.py1575 # Create a mock tool with source="local"COMMENT
MEDIUMtest/backend/database/test_tool_db.py1619 # Create a mock tool with source="mcp" (not local)COMMENT
MEDIUMtest/backend/database/test_tool_db.py1657 # Create a mock tool with source="local"COMMENT
MEDIUMtest/backend/database/test_tool_db.py1703 # Create a mock tool with source="local"COMMENT
MEDIUMtest/backend/database/test_tool_db.py1749 # Create a mock tool with source="local" and invalid JSON inputsCOMMENT
MEDIUMtest/backend/database/test_tool_db.py1794 # 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.py1023 # Create a list of mock knowledge recordsCOMMENT
MEDIUMtest/backend/database/test_knowledge_db.py1111 # 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
MEDIUMtest/backend/database/test_conversation_db.py2191 # 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.py45# Create a test client with a fresh FastAPI appCOMMENT
MEDIUMtest/backend/app/test_northbound_base_app.py58# Create a proper mock service instance with all methodsCOMMENT
MEDIUMtest/backend/app/test_agent_app.py91# Define a decorator that simply returns the original function unchangedCOMMENT
MEDIUMtest/backend/app/test_conversation_management_app.py292 # Create a request-like object with required attributesCOMMENT
MEDIUMtest/backend/app/test_vectordatabase_app.py70# Create a mock for consts.model and patch it before any imports.COMMENT
MEDIUMtest/backend/app/test_app_factory.py536 # Create a mock monitoring module that raises ImportError when accessedCOMMENT
MEDIUMtest/backend/app/test_app_factory.py901 # 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.py20# Create a mock ToolConfig classCOMMENT
MEDIUMtest/backend/app/test_user_app.py59# 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.py43# 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.py53# Create a test client with a fresh FastAPI appCOMMENT
MEDIUMtest/backend/app/test_skill_app.py585 # Create a ZIP fileCOMMENT
MEDIUMtest/backend/app/test_northbound_app.py289 # Create a fake file uploadCOMMENT
MEDIUMtest/backend/agents/test_create_agent_info.py935 # Create a tool that throws an exception when accessing the name attributeCOMMENT
MEDIUMtest/backend/agents/test_create_agent_info.py3409 # Create a tool with index_name_to_display_map in metadataCOMMENT
149 more matches not shown…
Deep Nesting394 hits · 300 pts
SeverityFileLineSnippetContext
LOWtest/run_all_test.py224CODE
LOW…_components/aidp/mock_servers/aidp_mgmt_mock_server.py627CODE
LOWtest/backend/database/test_agent_evaluation_db.py371CODE
LOWtest/backend/database/test_agent_evaluation_db.py382CODE
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
LOW…st/backend/services/test_tool_configuration_service.py4520CODE
LOW…st/backend/services/test_tool_configuration_service.py4549CODE
LOWtest/backend/services/test_skill_service.py1730CODE
LOWtest/backend/services/test_skill_service.py3332CODE
LOWtest/backend/services/test_skill_service.py3350CODE
LOWtest/backend/services/test_skill_service.py5023CODE
LOWtest/backend/services/test_agent_service.py10897CODE
LOWtest/backend/services/test_agent_service.py10940CODE
LOWtest/backend/services/test_agent_service.py14630CODE
LOWtest/backend/services/test_agent_service.py14674CODE
LOWtest/backend/services/test_agent_service.py14817CODE
LOWtest/backend/services/test_agent_service.py14873CODE
LOWtest/backend/services/test_agent_service.py15005CODE
LOWtest/backend/services/test_agent_service.py15088CODE
LOWtest/backend/services/test_agent_service.py15130CODE
LOWtest/backend/services/test_agent_service.py15172CODE
LOWtest/backend/services/test_prompt_service.py820CODE
LOWtest/backend/services/test_prompt_service.py837CODE
LOWtest/backend/services/test_evaluation_pure_logic.py70CODE
LOWtest/backend/data_process/test_tasks.py39CODE
LOWtest/backend/data_process/test_tasks.py776CODE
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.py141CODE
LOWtest/sdk/core/tools/test_knowledge_base_search_tool.py170CODE
LOWtest/sdk/core/agents/test_sandbox.py2219CODE
LOWtest/sdk/vector_database/test_elasticsearch_core.py737CODE
LOWtest/sdk/utils/test_http_client_manager.py15CODE
LOWtest/sdk/skills/test_skill_manager.py39CODE
LOWtest/sdk/skills/test_skill_manager.py3481CODE
LOWtest/sdk/skills/test_skill_manager.py3638CODE
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
LOWpathology-ai/code-changes/backend/local_mcp_service.py1127CODE
LOW…code-changes/medical_extension/confidence_evaluator.py200CODE
LOW…i/code-changes/medical_extension/chain_of_diagnosis.py307CODE
LOWdeploy/docker/assets/scripts/sync_skill_directory.py51CODE
LOWdeploy/docker/assets/scripts/sync_skill_directory.py77CODE
LOWdeploy/docker/assets/scripts/sync_skill_directory.py327CODE
LOWdeploy/docker/assets/scripts/sync_skill_directory.py397CODE
LOWdeploy/docker/assets/scripts/sync_skill_directory.py497CODE
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py230CODE
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py437CODE
LOW.claude/skills/skill-creator/scripts/package_skill.py19CODE
LOWbackend/mcp_service.py358CODE
LOWbackend/data_process_service.py88CODE
LOWbackend/data_process_service.py221CODE
LOWbackend/data_process_service.py410CODE
LOWbackend/data_process_service.py561CODE
LOWbackend/data_process_service.py608CODE
334 more matches not shown…
Redundant / Tautological Comments169 hits · 249 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.py125 # Check if attribute exists before modifyingCOMMENT
LOWtest/backend/agents/test_create_agent_info.py1120 # Check if the last call was for KnowledgeBaseSearchToolCOMMENT
LOWtest/backend/agents/test_create_agent_info.py2903 # Set agent_share_option to "never"COMMENT
LOWtest/backend/agents/test_create_agent_info.py3015 # Set disable_agent_ids to include the agentCOMMENT
LOWtest/backend/agents/test_create_agent_info.py3126 # Set disable_user_agent_ids to include the agentCOMMENT
LOWtest/backend/utils/test_llm_utils.py1432 # Set delta to actual None (not a MagicMock)COMMENT
LOWtest/backend/services/test_auto_summary_scheduler.py718 # Check if stop_event is set during processingCOMMENT
LOW…ckend/services/test_conversation_management_service.py277 # Check if create_conversation_message was called with correct paramsCOMMENT
LOWtest/backend/data_process/test_worker.py159 # Set backend to a non-DisabledBackend instanceCOMMENT
LOWtest/backend/data_process/test_worker.py1097 # Set QUEUES to include process_qCOMMENT
LOWtest/backend/data_process/test_ray_config.py55 # Set backend to a non-DisabledBackend instanceCOMMENT
LOWtest/backend/data_process/test_ray_config.py671 # Set preallocate_plasma to TrueCOMMENT
LOWtest/sdk/core/tools/test_tavily_search_tool.py119 # Check if text field existsCOMMENT
LOWtest/sdk/core/tools/test_knowledge_base_search_tool.py158 # Check if there's a class attribute that's a FieldInfoCOMMENT
LOWtest/sdk/core/tools/test_knowledge_base_search_tool.py174 # Check if this is a class-level default by looking at the classCOMMENT
LOWtest/sdk/core/tools/test_knowledge_base_search_tool.py411 # Set search_mode to accurateCOMMENT
LOWtest/sdk/core/tools/test_knowledge_base_search_tool.py428 # Set search_mode to semanticCOMMENT
LOWdeploy/docker/deploy.sh164 # Check if a TCP port is already in use (Linux/macOS/Windows Git Bash)COMMENT
LOWdeploy/docker/deploy.sh637 # Check if generate_env.sh existsCOMMENT
LOWdeploy/docker/deploy.sh815 # Check if image already exists locallyCOMMENT
LOWdeploy/docker/deploy.sh906 # Check if root-dir parameter is provided (highest priority)COMMENT
LOWdeploy/docker/deploy.sh918 # Check if ROOT_DIR already exists in .env (second priority)COMMENT
LOWdeploy/docker/deploy.sh964 # Check if parameters are providedCOMMENT
LOWdeploy/docker/deploy.sh1127 # Check if the supabase compose file existsCOMMENT
LOWdeploy/docker/deploy.sh1371 # Check if SSH credentials are already setCOMMENT
LOWdeploy/docker/deploy.sh1430 # Check if super admin user exists in SupabaseCOMMENT
LOWdeploy/docker/deploy.sh1489 # Check if password is emptyCOMMENT
LOWdeploy/docker/deploy.sh1507 # Check if passwords matchCOMMENT
LOWdeploy/docker/deploy.sh1545 # 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.py96 # Check if Ray is already initializedCOMMENT
LOWbackend/data_process_service.py228 # Check if we're in Docker environmentCOMMENT
LOWbackend/data_process_service.py537 # Check if process is still runningSTRING
LOWbackend/data_process_service.py694 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.py983 # Check if any rows were affectedCOMMENT
LOWbackend/database/conversation_db.py1045 # Check if the conversation record was affectedCOMMENT
LOWbackend/database/conversation_db.py1227 # Check if any rows were affectedCOMMENT
LOWbackend/database/conversation_db.py1458 # Check if any rows were affectedCOMMENT
LOWbackend/database/conversation_db.py1639 # 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.py1622 # Check if task is in terminal stateCOMMENT
LOWbackend/database/tool_db.py246 # Check if any tools exist for this tenantCOMMENT
LOWbackend/database/tool_db.py290 # Set tools to unavailable. Tools belonging to enabled MCPs keep theirCOMMENT
LOWbackend/database/knowledge_db.py139 # Check if record existsCOMMENT
LOWbackend/database/model_management_db.py121 # Check if any rows were affectedCOMMENT
109 more matches not shown…
Structural Annotation Overuse143 hits · 247 pts
SeverityFileLineSnippetContext
LOW…d/ext_components/aidp/components/AidpCreateKbModal.tsx296 // Step 1: Create KBCOMMENT
LOW…d/ext_components/aidp/components/AidpCreateKbModal.tsx332 // Step 2: Upload files (if any and not skipped)COMMENT
LOWfrontend/app/[locale]/chat/streaming/taskWindow.tsx49 // Step 1: Handle complete <DISPLAY:language>...</DISPLAY> blocksCOMMENT
LOWfrontend/app/[locale]/chat/streaming/taskWindow.tsx57 // Step 2: Handle complete <code>...</code> blocksCOMMENT
LOWfrontend/app/[locale]/chat/streaming/taskWindow.tsx62 // Step 3: Handle incomplete tags during streamingCOMMENT
LOWfrontend/components/agent/AgentImportWizard.tsx778 // Step 1: Model selection validationCOMMENT
LOWfrontend/components/agent/AgentImportWizard.tsx799 // Step 2: Config fields validationCOMMENT
LOWfrontend/components/common/markdownRenderer.tsx957 // Step 1: Handle complete <DISPLAY:language>...</DISPLAY> blocksCOMMENT
LOWfrontend/components/common/markdownRenderer.tsx965 // Step 2: Handle complete <code>...</code> blocksCOMMENT
LOWfrontend/components/common/markdownRenderer.tsx970 // 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
LOWtest/ext_components/aidp/test_aidp_search_tool.py698 # Step 1: install with idsCOMMENT
LOWtest/ext_components/aidp/test_aidp_search_tool.py703 # Step 2: uninstall (None)COMMENT
LOWtest/ext_components/aidp/test_aidp_search_tool.py708 # Step 3: reinstall as emptyCOMMENT
LOWtest/backend/services/test_data_process_service.py2261 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2262 self._make_stream(b'%PDF-1.4 ok'), # Step 4: header checkCODE
LOWtest/backend/services/test_data_process_service.py2367 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2368 self._make_stream(b'NOT-PDF'), # Step 4: header checkCODE
LOWtest/backend/services/test_data_process_service.py2487 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2488 None, # Step 4: header check streamCODE
LOWtest/backend/services/test_data_process_service.py2520 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2521 header_stream, # Step 4: header checkCODE
LOWtest/backend/services/test_data_process_service.py2572 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2573 self._make_stream(b'%PDF-1.4 ok'), # Step 4: header checkCODE
LOWpathology-ai/custom-tools.md58### Step 1: 症状分析COMMENT
LOWpathology-ai/custom-tools.md62### Step 2: 病史关联COMMENT
LOWpathology-ai/custom-tools.md66### Step 3: 鉴别诊断COMMENT
LOWpathology-ai/custom-tools.md70### Step 4: 检查建议COMMENT
LOWpathology-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
LOWdeploy/docker/generate_env.sh161 # Step 1: Prepare .env fileCOMMENT
LOWdeploy/docker/generate_env.sh164 # Step 2: Update .env fileCOMMENT
LOWdeploy/docker/generate_env.sh168 # Step 3: Show summaryCOMMENT
LOWdeploy/docker/assets/scripts/sync_skill_directory.py580 # Step 2: Check if container is runningCOMMENT
LOWdeploy/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
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py524 # Step 0: Check Docker containersCOMMENT
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py532 # Step 1: Validate environment variablesCOMMENT
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py538 # Step 2: Get Supabase parameters and test connectionCOMMENT
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py563 # Step 4: Fetch all user_tenant recordsCOMMENT
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py570 # Step 5: Process recordsCOMMENT
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py575 # Step 6: SummaryCOMMENT
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py552 # Step 3: Connect to databaseCOMMENT
LOWdeploy/k8s/deploy.sh1065 # Step 1: Select deployment components, port policy and image source.COMMENT
83 more matches not shown…
Hallucination Indicators17 hits · 200 pts
SeverityFileLineSnippetContext
CRITICALtest/backend/services/test_mcp_container_service.py1437 mock_manager.client.client.images.load.assert_called_once()CODE
CRITICALtest/backend/services/test_mcp_container_service.py1463 mock_manager.client.client.images.load.assert_called_once()CODE
CRITICALtest/backend/services/test_evaluation_set_service.py852 session.query.return_value.filter.return_value.update.assert_called()CODE
CRITICALtest/backend/services/test_evaluation_set_service.py1149 session.query.return_value.filter.return_value.update.assert_called_once()CODE
CRITICALtest/backend/services/test_evaluation_set_service.py1565 session.query.return_value.filter.return_value.delete.assert_called_once()CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1566 openai_model_instance.client.chat.completions.create.assert_called_once_with(CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1581 openai_model_instance.client.chat.completions.create.assert_called_once_with(CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1597 openai_model_instance.client.chat.completions.create.assert_not_called()CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1552 openai_model_instance.client.chat.completions.create.assert_called_once_with(CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1611 openai_model_instance.client.chat.completions.create.assert_not_called()CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1631 openai_model_instance.client.chat.completions.create.assert_called_once_with(CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1652 openai_model_instance.client.chat.completions.create.assert_not_called()CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1669 openai_model_instance.client.chat.completions.create.assert_not_called()CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1686 openai_model_instance.client.chat.completions.create.assert_not_called()CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1699 openai_model_instance.client.chat.completions.create.assert_called_once_with(CODE
CRITICALtest/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.py81 return await self._model.client.chat.completions.create(**completion_kwargs)CODE
Verbosity Indicators102 hits · 169 pts
SeverityFileLineSnippetContext
LOW…d/ext_components/aidp/components/AidpCreateKbModal.tsx296 // Step 1: Create KBCOMMENT
LOW…d/ext_components/aidp/components/AidpCreateKbModal.tsx332 // Step 2: Upload files (if any and not skipped)COMMENT
LOWfrontend/app/[locale]/chat/streaming/taskWindow.tsx49 // Step 1: Handle complete <DISPLAY:language>...</DISPLAY> blocksCOMMENT
LOWfrontend/app/[locale]/chat/streaming/taskWindow.tsx57 // Step 2: Handle complete <code>...</code> blocksCOMMENT
LOWfrontend/app/[locale]/chat/streaming/taskWindow.tsx62 // Step 3: Handle incomplete tags during streamingCOMMENT
LOWfrontend/components/agent/AgentImportWizard.tsx778 // Step 1: Model selection validationCOMMENT
LOWfrontend/components/agent/AgentImportWizard.tsx799 // Step 2: Config fields validationCOMMENT
LOWfrontend/components/common/markdownRenderer.tsx957 // Step 1: Handle complete <DISPLAY:language>...</DISPLAY> blocksCOMMENT
LOWfrontend/components/common/markdownRenderer.tsx965 // Step 2: Handle complete <code>...</code> blocksCOMMENT
LOWfrontend/components/common/markdownRenderer.tsx970 // 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
LOWtest/ext_components/aidp/test_aidp_search_tool.py698 # Step 1: install with idsCOMMENT
LOWtest/ext_components/aidp/test_aidp_search_tool.py703 # Step 2: uninstall (None)COMMENT
LOWtest/ext_components/aidp/test_aidp_search_tool.py708 # Step 3: reinstall as emptyCOMMENT
LOWtest/backend/services/test_data_process_service.py2261 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2262 self._make_stream(b'%PDF-1.4 ok'), # Step 4: header checkCODE
LOWtest/backend/services/test_data_process_service.py2367 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2368 self._make_stream(b'NOT-PDF'), # Step 4: header checkCODE
LOWtest/backend/services/test_data_process_service.py2487 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2488 None, # Step 4: header check streamCODE
LOWtest/backend/services/test_data_process_service.py2520 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2521 header_stream, # Step 4: header checkCODE
LOWtest/backend/services/test_data_process_service.py2572 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2573 self._make_stream(b'%PDF-1.4 ok'), # Step 4: header checkCODE
LOWtest/sdk/core/agents/test_core_agent.py1014 "### Step 2:\n- Called tool 'python_interpreter'()",CODE
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
LOWdeploy/docker/generate_env.sh161 # Step 1: Prepare .env fileCOMMENT
LOWdeploy/docker/generate_env.sh164 # Step 2: Update .env fileCOMMENT
LOWdeploy/docker/generate_env.sh168 # Step 3: Show summaryCOMMENT
LOWdeploy/docker/assets/scripts/sync_skill_directory.py580 # Step 2: Check if container is runningCOMMENT
LOWdeploy/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
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py524 # Step 0: Check Docker containersCOMMENT
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py532 # Step 1: Validate environment variablesCOMMENT
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py538 # Step 2: Get Supabase parameters and test connectionCOMMENT
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py563 # Step 4: Fetch all user_tenant recordsCOMMENT
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py570 # Step 5: Process recordsCOMMENT
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py575 # Step 6: SummaryCOMMENT
LOWdeploy/docker/assets/scripts/sync_user_supabase2pg.py552 # Step 3: Connect to databaseCOMMENT
LOWdeploy/k8s/deploy.sh1065 # Step 1: Select deployment components, port policy and image source.COMMENT
LOWdeploy/k8s/deploy.sh1069 # Step 2: Render generated values with image tags from selected environmentCOMMENT
LOWdeploy/k8s/deploy.sh1072 # Step 3: Generate MinIO Access Key and Secret KeyCOMMENT
LOWdeploy/k8s/deploy.sh1175 # Step 7: Deploy using HelmCOMMENT
LOWdeploy/k8s/deploy.sh1185 # Step 9: Wait for Elasticsearch to be ready and initialize API keyCOMMENT
42 more matches not shown…
Modern AI Meta-Vocabulary51 hits · 156 pts
SeverityFileLineSnippetContext
MEDIUMtest/backend/app/test_vectordatabase_app.py2974# Tests for new embedding model retrieval from knowledge recordCOMMENT
MEDIUMtest/backend/app/test_vectordatabase_app.py2993 # Mock knowledge record with saved embedding model idCOMMENT
MEDIUMtest/backend/app/test_vectordatabase_app.py3001 # Mock embedding modelCOMMENT
MEDIUMtest/backend/app/test_vectordatabase_app.py3030 # Verify index_documents was called with the embedding modelCOMMENT
MEDIUMtest/backend/app/test_vectordatabase_app.py3145 # Empty/None model id should skip embedding model resolutionCOMMENT
MEDIUMtest/backend/agents/test_create_agent_info.py5863 # Tool with non-empty index_names but no embedding modelCOMMENT
MEDIUMtest/backend/agents/test_create_agent_info.py5889 # Verify error message contains guidance about configuring embedding modelCOMMENT
MEDIUMtest/backend/agents/test_create_agent_info.py5913 # Tool with index_names and valid embedding modelCOMMENT
MEDIUMtest/backend/agents/test_create_agent_info.py6067 # Return valid embedding model with error metadataCOMMENT
MEDIUM…st/backend/services/test_tool_configuration_service.py246# Mock embedding model module to satisfy vectordatabase_service importsCOMMENT
MEDIUM…st/backend/services/test_tool_configuration_service.py3207 # 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_vectordatabase_service.py4418 # Mock knowledge record with embedding model idCOMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py4424 # Mock embedding modelCOMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py819 # Mock embedding modelCOMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py839 # Verify knowledge record was created with the embedding model nameCOMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py865 # Mock embedding model (tenant default)COMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py910 # Mock embedding modelCOMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py958 # Mock embedding model - note: model's display name differs from user-provided nameCOMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py4622 # Should succeed, embedding model IS called but returns emptyCOMMENT
MEDIUMtest/backend/services/test_evaluation_set_service.py1485# Async generation orchestrationCOMMENT
MEDIUMtest/backend/services/test_agent_evaluation_service.py2239# ``_setup_no_set_and_execute`` — background no-set run orchestration.COMMENT
MEDIUMtest/sdk/memory/test_memory_service.py95# store_memory: default behavior (no embedding model, no backend hook)COMMENT
MEDIUMbackend/agents/create_agent_info.py1761 # (which would cause the LLM to hallucinate tool calls against a non-existent tool),COMMENT
MEDIUMbackend/agents/create_agent_info.py1771 # Append the tool and skip embedding model lookup (no index to lookup from)COMMENT
MEDIUMbackend/utils/file_management_utils.py83 # Resolve embedding model from the knowledge base record (not request model_id)COMMENT
MEDIUMbackend/apps/vectordatabase_app.py552 # Get the knowledge base record to retrieve the saved embedding modelCOMMENT
MEDIUMbackend/services/vectordatabase_service.py2690 # Get knowledge base's embedding model by model_idCOMMENT
MEDIUMbackend/services/vectordatabase_service.py2702 # Generate embedding if we have content and can get embedding modelCOMMENT
MEDIUMbackend/services/vectordatabase_service.py869 # Get embedding model by model_id if providedCOMMENT
MEDIUMbackend/services/vectordatabase_service.py1104 # Validate the model exists and is an embedding modelCOMMENT
MEDIUMbackend/services/vectordatabase_service.py1463 # Track records with missing embedding model for stats updateCOMMENT
MEDIUMbackend/services/vectordatabase_service.py1512 # Get embedding model display_name from model_idCOMMENT
MEDIUMbackend/services/vectordatabase_service.py1625 # Set embedding model name from the embedding modelCOMMENT
MEDIUMbackend/services/vectordatabase_service.py2852 # Get embedding model from the first index's knowledge base recordCOMMENT
MEDIUMbackend/services/memory_retrieval_service.py199 # Resolve embedding model for the agent layer.COMMENT
MEDIUMbackend/services/model_management_service.py680 # embedding model" path will be added once the storage layerCOMMENT
MEDIUMbackend/services/agent_evaluation_service.py1801 # 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/tool_configuration_service.py1080 # 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.py106 # "total context window" semantics (pre-W1), not an output limit.COMMENT
MEDIUMsdk/nexent/core/agents/nexent_agent.py770 # Build one code executor for this agent. Managed-agent orchestrationCOMMENT
MEDIUMsdk/nexent/core/agents/subagent_wrapper.py41 # Managed-agent orchestration must stay in the trusted Runtime process.COMMENT
MEDIUMsdk/nexent/core/gateway/model_context.py46 max_tokens: Optional[int] = None # context window sizeCODE
MEDIUMsdk/nexent/vector_database/elasticsearch_core.py80 # Initialize embedding modelCOMMENT
Modern Structural Boilerplate147 hits · 148 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.py483__all__ = [CODE
LOW…nd/ext_components/aidp/services/aidp_access_service.py325__all__ = [CODE
LOWbackend/middleware/exception_handler.py21logger = logging.getLogger(__name__)CODE
LOWbackend/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.py296def update_agent_icon(agent_id: int, tenant_id: str, icon_url: str, user_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.py15logger = logging.getLogger(__name__)CODE
LOWbackend/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
LOWbackend/utils/skill_params_utils.py11logger = logging.getLogger(__name__)CODE
LOWbackend/utils/langchain_utils.py6logger = logging.getLogger(__name__)CODE
LOWbackend/utils/auth_utils.py33logger = logging.getLogger(__name__)CODE
LOWbackend/utils/a2a_http_client.py9logger = logging.getLogger(__name__)CODE
LOWbackend/utils/llm_utils.py218__all__ = ["call_llm_for_system_prompt", "_process_thinking_tokens"]CODE
LOWbackend/utils/agent_stream_utils.py12logger = logging.getLogger(__name__)CODE
LOWbackend/utils/agent_profile_utils.py15logger = 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.py22logger = logging.getLogger(__name__)CODE
LOWbackend/apps/app_factory.py13logger = logging.getLogger(__name__)CODE
LOWbackend/apps/evaluation_set_app.py46logger = logging.getLogger(__name__)CODE
LOWbackend/apps/northbound_app.py64__all__ = ["router", "_get_northbound_context"]CODE
LOWbackend/apps/quota_app.py28logger = logging.getLogger(__name__)CODE
LOWbackend/apps/cas_app.py23logger = logging.getLogger(__name__)CODE
LOWbackend/apps/tenant_app.py26logger = logging.getLogger(__name__)CODE
LOWbackend/apps/skill_app.py36logger = logging.getLogger(__name__)CODE
LOWbackend/apps/oauth_app.py38logger = logging.getLogger(__name__)CODE
LOWbackend/apps/invitation_app.py23logger = logging.getLogger(__name__)CODE
LOWbackend/apps/agent_repository_app.py21logger = logging.getLogger(__name__)CODE
LOWbackend/apps/notification_app.py13logger = logging.getLogger(__name__)CODE
LOWbackend/apps/group_app.py26logger = logging.getLogger(__name__)CODE
LOWbackend/apps/northbound_knowledge_app.py40__all__ = ["router"]CODE
LOWbackend/consts/capability_profiles.py22logger = logging.getLogger(__name__)CODE
LOWbackend/services/evaluation_set_service.py41logger = logging.getLogger(__name__)CODE
LOWbackend/services/knowledge_storage_service.py26logger = logging.getLogger(__name__)CODE
LOWbackend/services/group_service.py28logger = logging.getLogger(__name__)CODE
LOWbackend/services/evaluator_service.py26logger = logging.getLogger(__name__)CODE
LOWbackend/services/runtime_state_service.py22logger = logging.getLogger(__name__)CODE
LOWbackend/services/agent_evaluation_service.py73logger = logging.getLogger(__name__)CODE
LOWbackend/services/notification_service.py22logger = logging.getLogger(__name__)CODE
LOWbackend/services/nl2agent_service.py61logger = logging.getLogger(__name__)CODE
LOWbackend/services/oauth_service.py44logger = logging.getLogger(__name__)CODE
LOWbackend/services/agent_service.py161logger = logging.getLogger(__name__)CODE
LOWbackend/services/a2a_agent_adapter.py14logger = logging.getLogger(__name__)CODE
LOWbackend/services/quota_service.py43logger = logging.getLogger(__name__)CODE
LOWbackend/services/skill_service.py37logger = logging.getLogger(__name__)CODE
87 more matches not shown…
Fake / Example Data97 hits · 98 pts
SeverityFileLineSnippetContext
LOWtest/ext_components/aidp/test_aidp_mgmt_app.py132 return {"Authorization": "Bearer fake-token"}CODE
LOWtest/backend/test_model_consts.py247 email="user@example.com",CODE
LOWtest/backend/test_model_consts.py251 assert req.email == "user@example.com"CODE
LOWtest/backend/database/test_conversation_db.py962 "unit_content": '{"placeholder": true}',CODE
LOWtest/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
LOWtest/backend/app/test_user_management_app.py182 mock_signup.return_value = {"user_id": "123", "email": "admin@example.com"}CODE
LOWtest/backend/app/test_user_management_app.py187 "email": "admin@example.com",CODE
LOWtest/backend/app/test_user_management_app.py198 email="admin@example.com",CODE
LOWtest/backend/app/test_user_management_app.py207 mock_signup.return_value = {"user_id": "123", "email": "admin@example.com"}CODE
LOWtest/backend/app/test_user_management_app.py212 "email": "admin@example.com",CODE
LOWtest/backend/app/test_user_management_app.py223 email="admin@example.com",CODE
LOWtest/backend/app/test_user_management_app.py237 "email": "admin@example.com",CODE
LOWtest/backend/app/test_user_management_app.py255 "email": "admin@example.com",CODE
LOWtest/backend/utils/test_llm_utils.py131 "api_key": "fake-key",CODE
LOWtest/backend/utils/test_llm_utils.py174 "api_key": "fake-key",CODE
LOWtest/backend/utils/test_llm_utils.py539 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py571 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py596 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py626 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py651 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py680 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py725 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py756 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py819 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.py887 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py1264 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_auth_utils.py639 au._extract_user_id_from_jwt_token("Bearer fake-token")CODE
LOWtest/backend/services/test_user_management_service.py809 result = await signup_user_with_invitation("admin@example.com", "Password123", invite_code="ADMIN123")CODE
LOWtest/backend/services/test_user_management_service.py812 mock_insert_tenant.assert_called_with(user_id="user-123", tenant_id="tenant_id", user_role="ADMIN", user_emaCODE
LOWtest/backend/services/test_user_management_service.py948 "admin@example.com",CODE
LOWtest/backend/services/test_user_management_service.py2033 user = MagicMock(id="user-1", email="user@example.com", user_metadata={"role": "USER"})CODE
LOWtest/backend/services/test_user_management_service.py2040 result = await signin_user("user@example.com", "Password123")CODE
LOWtest/backend/services/test_user_management_service.py635 result = await signup_user_with_invitation("admin@example.com", "Password123", invite_code="ADMIN123")CODE
LOWtest/backend/services/test_user_management_service.py638 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.py901 "admin@example.com",CODE
LOWtest/backend/services/test_user_management_service.py1137 mock_user.email = "admin@example.com"CODE
LOWtest/backend/services/test_user_management_service.py1156 "email": "admin@example.com",CODE
LOWtest/backend/services/test_mcp_management_service.py245 mock_get.return_value = {"user_email": "user@example.com"}CODE
LOWtest/backend/services/test_mcp_management_service.py247 self.assertEqual(card["authorDisplayName"], "user@example.com")CODE
LOWtest/backend/services/test_agent_repository_service.py1052 submitted_by="admin@example.com",CODE
LOWtest/backend/services/test_agent_repository_service.py1065 with patch.object(ars, "_resolve_submitter_email", return_value="admin@example.com"):CODE
LOWtest/backend/services/test_agent_repository_service.py1758 return_value={"user_role": "ADMIN", "user_email": "admin@example.com"},CODE
LOWtest/backend/services/test_agent_repository_service.py1795 return_value={"user_role": "USER", "user_email": "user@example.com"},CODE
LOWtest/backend/services/test_agent_repository_service.py1800 agent_info={"author": "user@example.com"},CODE
LOWtest/backend/services/test_agent_repository_service.py1822 return_value={"user_role": "USER", "user_email": "user@example.com"},CODE
LOWtest/backend/services/test_agent_repository_service.py1828 "author": "user@example.com",CODE
LOWtest/backend/services/test_agent_repository_service.py1036 with patch.object(ars, "_resolve_submitter_email", return_value="admin@example.com"):CODE
LOWtest/backend/services/test_agent_repository_service.py1081 submitted_by="admin@example.com",CODE
LOWtest/backend/services/test_agent_repository_service.py1899 return_value={"user_role": "ADMIN", "user_email": "admin@example.com"},CODE
LOWtest/backend/services/test_agent_repository_service.py1959 return_value={"user_role": "ADMIN", "user_email": "admin@example.com"},CODE
LOWtest/backend/services/test_user_service.py475 "user_email": "user@example.com",CODE
LOWtest/backend/services/test_user_service.py485 assert result["username"] == "user@example.com"CODE
LOWtest/backend/services/test_user_service.py585 "user_email": "user@example.com",CODE
LOWtest/backend/services/test_user_service.py635 "user_email": "user@example.com",CODE
LOWtest/backend/services/test_user_service.py659 "user_email": "user@example.com",CODE
LOWtest/backend/services/test_skill_repository_service.py409 "user_email": "admin@example.com",CODE
LOWtest/backend/services/test_skill_repository_service.py460 "user_email": "admin@example.com",CODE
LOWtest/backend/services/test_skill_repository_service.py503 "user_email": "admin@example.com",CODE
37 more matches not shown…
Cross-Language Confusion13 hits · 68 pts
SeverityFileLineSnippetContext
HIGHtest/backend/app/test_northbound_app.py1009 """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
HIGHtest/backend/services/test_agent_evaluation_service.py1409 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
HIGHtest/sdk/core/agents/test_nexent_agent.py4102 # 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/apps/cas_app.py145window.parent && window.parent.postMessage({{ type: "cas-renew-{status}", reason: "{safe_reason}" }}, window.location.orCODE
HIGHbackend/apps/agent_app.py429 success, or ``{"message": <error>, "data": null}`` on AppException.STRING
HIGHbackend/services/idata_service.py168 # Expected format: {"code": "1", "msg": "...", "data": [...], "msgParams": null}COMMENT
HIGHbackend/services/skill_service.py1243 response never contains stale data (e.g. {"configs": null} instead ofSTRING
HIGHsdk/benchmark/acon_eval/run_acon_qa.py335 " * unstarted => answer is null, search_counts is 0\n"CODE
HIGHsdk/benchmark/acon_eval/run_acon_qa.py336 " * searching => answer is null, search_counts is 1 or 2\n"CODE
AI Structural Patterns64 hits · 52 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/database/a2a_agent_db.py153CODE
LOWbackend/database/a2a_agent_db.py674CODE
LOWbackend/database/user_tenant_db.py257CODE
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.py416CODE
LOWbackend/utils/context_utils.py413CODE
LOWbackend/apps/skill_repository_app.py27CODE
LOWbackend/apps/memory_record_app.py171CODE
LOWbackend/apps/remote_mcp_app.py916CODE
LOWbackend/apps/remote_mcp_app.py983CODE
LOWbackend/apps/northbound_app.py318CODE
LOWbackend/apps/northbound_base_app.py210CODE
LOWbackend/apps/northbound_base_app.py224CODE
LOWbackend/apps/vectordatabase_app.py434CODE
LOWbackend/apps/agent_evaluation_app.py249CODE
LOWbackend/services/vectordatabase_service.py1341CODE
LOWbackend/services/memory_backend_adapter.py87CODE
LOWbackend/services/memory_retrieval_service.py163CODE
LOWbackend/services/agent_evaluation_service.py2206CODE
LOWbackend/services/memory_record_service.py242CODE
LOWbackend/services/memory_record_service.py506CODE
LOWbackend/services/mcp_management_service.py358CODE
LOWbackend/services/memory_context_service.py116CODE
LOWbackend/services/remote_mcp_service.py305CODE
LOWbackend/services/remote_mcp_service.py396CODE
LOWbackend/data_process/tasks.py1093CODE
LOWsdk/benchmark/agent_runner.py114CODE
LOWsdk/benchmark/agent_runner.py275CODE
LOWsdk/benchmark/acon_eval/retriever_sesrver.py322CODE
LOWsdk/benchmark/generic/runtime/task_adapter.py64CODE
LOWsdk/nexent/monitor/monitoring.py986CODE
LOWsdk/nexent/core/ext_components/aidp/aidp_search_tool.py160CODE
LOWsdk/nexent/core/tools/haotian_search_tool.py104CODE
LOWsdk/nexent/core/tools/idata_search_tool.py90CODE
LOWsdk/nexent/core/tools/datamate_search_tool.py77CODE
LOWsdk/nexent/core/tools/upload_to_s3_tool.py67CODE
LOWsdk/nexent/core/tools/run_skill_script_tool.py28CODE
LOWsdk/nexent/core/tools/ragflow_search_tool.py91CODE
LOWsdk/nexent/core/tools/knowledge_base_search_tool.py71CODE
LOWsdk/nexent/core/tools/dify_search_tool.py69CODE
LOWsdk/nexent/core/tools/search_memory_tool.py85CODE
LOWsdk/nexent/core/tools/terminal_tool.py292CODE
LOWsdk/nexent/core/tools/ind_aidp_search_tool.py130CODE
LOWsdk/nexent/core/tools/send_email_tool.py93CODE
LOWsdk/nexent/core/agents/nexent_agent.py209CODE
LOWsdk/nexent/core/utils/observer.py259CODE
LOWsdk/nexent/core/utils/tools_common_message.py71CODE
4 more matches not shown…
Magic Placeholder Names10 hits · 50 pts
SeverityFileLineSnippetContext
HIGHdoc/docs/zh/sdk/basic-usage.md33 api_key="your-api-key",CODE
HIGHdoc/docs/zh/sdk/basic-usage.md95 api_key="<YOUR_API_KEY>",CODE
HIGHdoc/docs/zh/sdk/basic-usage.md95 api_key="<YOUR_API_KEY>",CODE
HIGHdoc/docs/zh/sdk/vector-database.md182 curl -H "Authorization: ApiKey your_api_key" https://localhost:9200/_cluster/health\?pretty -kCODE
HIGHdoc/docs/zh/sdk/vector-database.md212 ELASTICSEARCH_API_KEY=your_api_keyCODE
HIGHdoc/docs/zh/sdk/vector-database.md252 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.md92 api_key="<YOUR_API_KEY>",CODE
HIGHdoc/docs/en/sdk/basic-usage.md92 api_key="<YOUR_API_KEY>",CODE
HIGHdoc/docs/en/sdk/core/models.md43 api_key="your-api-key",CODE
Over-Commented Block53 hits · 46 pts
SeverityFileLineSnippetContext
LOW…d/ext_components/aidp/components/AidpCreateKbModal.tsx101 // The `newFiles` array may-or-may-not be the same reference across the NCOMMENT
LOW…p/[locale]/models/components/model/ModelEditDialog.tsx181 ...next,COMMENT
LOW…p/[locale]/models/components/model/ModelEditDialog.tsx981 // Per-model capacity panel: shown when the dialog is editing a singleCOMMENT
LOW…pp/[locale]/models/components/model/ModelAddDialog.tsx561 }COMMENT
LOW…pp/[locale]/models/components/model/ModelAddDialog.tsx1001 };COMMENT
LOW…ocale]/models/components/model/ModelCapacityFields.tsx281 applyDefaultsOnEmpty = true,COMMENT
LOWfrontend/app/[locale]/evaluation/[id]/page.tsx141 // ── AI analysis (root cause) state ──────────────────────────COMMENT
LOWfrontend/app/[locale]/newchat/page.tsx181COMMENT
LOW…/[locale]/newchat/adapter/remote-chat-model-adapter.ts1741 // sub-agent is running. ``MessagePrimitive.GroupedParts`` inCOMMENT
LOW…/[locale]/newchat/adapter/remote-chat-model-adapter.ts2041 if (chunk.type === "step_count") {COMMENT
LOW…/[locale]/newchat/adapter/remote-chat-model-adapter.ts2181 // answer text so the answer does not appear before its precedingCOMMENT
LOW…/[locale]/newchat/adapter/remote-chat-model-adapter.ts2261 : null;COMMENT
LOW…]/newchat/adapter/conversation-thread-list-adapter.tsx421 .filter((part) => part.type === "text")COMMENT
LOW…]/newchat/adapter/conversation-thread-list-adapter.tsx561 // `get_station_code_of_citys` example in the history payload). AnCOMMENT
LOW…]/newchat/adapter/conversation-thread-list-adapter.tsx1201 async delete(): Promise<void> {},COMMENT
LOW…]/newchat/adapter/conversation-thread-list-adapter.tsx1341 };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.py61# is self-contained (no absolute paths) and stays out of version control viaCOMMENT
LOWtest/backend/__init__.py1# This file marks the test/backend directory as a Python package.COMMENT
LOWtest/backend/app/test_memory_config_app.py341COMMENT
LOWtest/backend/app/test_evaluation_delete_app.py81 ("utils", ("auth_utils", "evaluation_set_excel_utils")),COMMENT
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.py481# the form ``backend.services.file_management_service.*`` resolve correctly.COMMENT
LOWtest/backend/data_process/test_tasks.py301 sys.modules["database"] = db_pkgCOMMENT
LOWtest/sdk/core/models/test_openai_llm.py2041# L270 extra_body passed to completion_kwargsCOMMENT
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/k8s/helm/nexent/charts/nexent-common/values.yaml201 # 'local' preserves backward-compatibility for existing deployments.COMMENT
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.py441COMMENT
LOWbackend/services/agent_evaluation_service.py221 # Stage 2: static AST scan for forbidden operations — runs BEFORE anyCOMMENT
LOWbackend/services/agent_evaluation_service.py241 # (stage 2) — shell primitives and any ``__``-prefixed attribute/nameCOMMENT
LOWbackend/services/model_provider_service.py101 # consistency of validation and default handling.COMMENT
LOWbackend/services/image_service.py21COMMENT
LOWbackend/services/tool_configuration_service.py1141 # Haotian and AIDP share the same instantiation shape: drop theCOMMENT
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.py321 # not valid Nexent URLs and the verified image is delivered viaCOMMENT
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 Vocabulary13 hits · 31 pts
SeverityFileLineSnippetContext
MEDIUM…agents/components/agentConfig/tool/ToolConfigModal.tsx1125 // Use robust ID comparisonCOMMENT
MEDIUM…/components/tool-config/KnowledgeBaseSelectorModal.tsx920 // Use a more robust ID comparison to handle potential format differencesCOMMENT
MEDIUMtest/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.py3278 # Use os.path.commonpath for robust cross-platform comparisonCOMMENT
MEDIUMtest/backend/services/test_evaluation_pure_logic.py601 # signature. The simplest robust test is to use a callable class instanceSTRING
LOWtest/backend/data_process/test_tasks.py124 # valid; we just add the missing names.COMMENT
MEDIUMbackend/database/agent_evaluation_db.py658 # Cascade-delete annotations by case_id (more robust than by agent_evaluation_idCOMMENT
MEDIUMbackend/utils/config_utils.py32 """Helper function for processing list values, using JSON format for storage to facilitate parsing"""STRING
MEDIUMbackend/data_process/ray_actors.py24# underlying processing library (e.g., unstructured) can leverage it.COMMENT
LOWsdk/nexent/core/agents/core_agent.py413 # so just return an empty list here.COMMENT
MEDIUMsdk/nexent/skills/skill_manager.py987 # robust against callers that prepend "./scripts/foo.py".COMMENT
Dead Code21 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMtest/backend/app/test_northbound_base_app.py671CODE
MEDIUMtest/backend/services/test_agent_service.py277CODE
MEDIUMtest/backend/services/test_agent_service.py278CODE
MEDIUMtest/backend/services/test_agent_service.py279CODE
MEDIUMtest/backend/services/test_agent_service.py280CODE
MEDIUMtest/backend/services/test_agent_service.py281CODE
MEDIUMtest/backend/services/test_agent_service.py282CODE
MEDIUMtest/backend/services/test_agent_service.py283CODE
MEDIUMtest/backend/services/test_agent_service.py284CODE
MEDIUMtest/backend/services/test_agent_service.py312CODE
MEDIUMtest/backend/services/test_agent_service.py315CODE
MEDIUMtest/backend/services/test_agent_service.py316CODE
MEDIUMtest/backend/services/test_agent_service.py4610CODE
MEDIUMtest/backend/services/test_agent_service.py5630CODE
MEDIUMtest/backend/services/test_agent_service.py14768CODE
MEDIUMtest/backend/services/test_agent_service.py14910CODE
MEDIUMtest/backend/services/test_a2a_client_service.py1957CODE
MEDIUMtest/backend/services/test_nl2skill_service.py417CODE
MEDIUMtest/backend/services/test_agent_evaluation_service.py870CODE
MEDIUMtest/sdk/core/tools/test_knowledge_base_search_tool.py1635CODE
MEDIUMtest/sdk/core/models/test_openai_llm.py1783CODE
Synthetic Comment Markers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHfrontend/public/locales/en/common.json74 "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.py224 """Test invitation creation with auto-generated code"""STRING
Slop Phrases3 hits · 8 pts
SeverityFileLineSnippetContext
LOW…tend/app/[locale]/chat/streaming/chatStreamHandler.tsx377 // 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
Cross-Language Confusion (JS/TS)1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…[locale]/models/components/model/ModelDeleteDialog.tsx1953 // missing prefix made get_model_by_name_factory return None --COMMENT
Overly Generic Function Names8 hits · 6 pts
SeverityFileLineSnippetContext
LOWtest/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.py542def helper(x):CODE
LOWtest/sdk/monitor/test_monitoring.py1047 def test_function(param1, param2="default"):CODE
LOWtest/sdk/monitor/test_monitoring.py1060 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.py2735 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