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.1 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,631 GitHub stars. SynthScan v2.0 examined 561,424 lines of code across 1450 source files, recording 15420 pattern matches distributed across 26 syntactic categories. The overall adjusted score of 33.1 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.1
Adjusted Score
33.1
Raw Score
100%
Time Factor
2026-07-14
Last Push
5.6K
Stars
Python
Language
561.4K
Lines of Code
1.4K
Files
15.4K
Pattern Hits
2026-07-14
Scan Date
0.19
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 12HIGH 267MEDIUM 1789LOW 13352

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 15420 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 Identifiers10446 hits · 8189 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
LOW…tend/app/[locale]/chat/streaming/messageTransformer.ts11export function transformMessagesToTaskMessages(CODE
LOW…tend/app/[locale]/chat/streaming/chatStreamHandler.tsx224export function reconstructFromStreamingMessage(streamingMessage: StreamingMessage, maxUnitIndex?: number): {CODE
LOW…app/[locale]/chat/streaming/chatStreamFinalMessage.tsx64function ChatStreamFinalMessageInner({CODE
LOW…le]/resource-manage/components/resources/SkillList.tsx53function filterYamlDocKeysFromEntries(CODE
LOW…le]/resource-manage/components/resources/SkillList.tsx71function primitiveArrayToListInput(arr: unknown[]): string {CODE
LOW…le]/resource-manage/components/resources/SkillList.tsx105function parseListInputToPrimitiveArray(CODE
LOW…le]/resource-manage/components/resources/SkillList.tsx131function restorePrimitiveArraysFromForm(CODE
LOW…le]/resource-manage/components/resources/SkillList.tsx259function deepMergePreserveUnderscore(CODE
LOW…e/components/resources/ModelCapacityCoverageWidget.tsx17export default function ModelCapacityCoverageWidget({ onViewAll }: Props) {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.ts82export function isCancelableRepositoryStatus(CODE
LOW…ocale]/skill-space/components/skillRepositoryShared.ts88export function isTakeDownableRepositoryStatus(CODE
LOW…/skill-space/components/SkillRepositoryDetailModal.tsx13export function SkillRepositoryDetailModal({CODE
LOW…[locale]/agents/versions/AgentVersionPubulishModal.tsx30export default function AgentVersionPubulishModal({CODE
LOW…cale]/agents/components/agentConfig/ToolManagement.tsx32function isToolDisabledDueToEmbedding(name: string, emb: boolean): boolean {CODE
LOW…agents/components/agentConfig/tool/ToolConfigModal.tsx141function withAnalyzeToolModelParam(params: ToolParam[], toolName?: string): ToolParam[] {CODE
LOW…ents/components/agentConfig/tool/SelectToolsDialog.tsx35function getToolDisabledTooltipKey(name: string, img: boolean, vid: boolean, emb: boolean): string | null {CODE
LOW…cale]/agents/components/a2a/A2AAgentDiscoveryModal.tsx71function extractAvailableProtocols(supportedInterfaces?: Record<string, any>[]): string[] {CODE
LOW…ts/components/agentInfo/PromptTemplateManagerModal.tsx76export default function PromptTemplateManagerModal({CODE
LOWfrontend/app/[locale]/mcp-space/page.tsx90function getDeploymentCategoryStats(CODE
LOWfrontend/app/[locale]/mcp-space/page.tsx953function toMcpContainerConfigPayload(CODE
LOW…]/mcp-space/components/PublishedServiceDetailModal.tsx48export default function PublishedServiceDetailModal({CODE
LOW…ace/components/add/local/AddMcpServiceLocalSection.tsx57export default function AddMcpServiceLocalSection({CODE
LOW…mponents/add/registry/AddMcpServiceRegistrySection.tsx28export default function AddMcpServiceRegistrySection({CODE
LOW…onents/add/community/AddMcpServiceCommunitySection.tsx15export default function AddMcpServiceCommunitySection({CODE
LOW…/agent-space/components/AgentRepositoryDetailModal.tsx89function AgentRepositoryDetailLoading() {CODE
LOW…/agent-space/components/AgentRepositoryDetailModal.tsx97function AgentRepositoryDetailError({CODE
LOW…/agent-space/components/AgentRepositoryDetailModal.tsx118function AgentRepositoryDetailIcon({ icon }: { icon?: string | null }) {CODE
LOW…/agent-space/components/AgentRepositoryDetailModal.tsx126function AgentRepositoryDetailMeta({CODE
LOW…/agent-space/components/AgentRepositoryDetailModal.tsx177function AgentRepositoryDetailHeader({ detail }: { detail: AgentDetailModalData }) {CODE
LOW…/agent-space/components/AgentRepositoryDetailModal.tsx207function AgentRepositoryDetailTools({ tools }: { tools: string[] }) {CODE
LOW…/agent-space/components/AgentRepositoryDetailModal.tsx231function AgentRepositoryDetailDutyPrompt({CODE
LOW…/agent-space/components/AgentRepositoryDetailModal.tsx255function AgentRepositoryDetailContent({ detail }: { detail: AgentDetailModalData }) {CODE
LOW…/agent-space/components/AgentRepositoryDetailModal.tsx303export function AgentRepositoryDetailModal({CODE
LOW…]/agent-space/components/AgentRepositoryCopyDialog.tsx67export function AgentRepositoryCopyDialog({CODE
LOWfrontend/const/mcpTools.ts109export function mcpToolsModalChromeStyles(): NonNullable<ModalProps["styles"]> {CODE
LOWfrontend/const/promptTemplate.ts74export function createEmptyPromptTemplateContent(): Record<PromptTemplateFieldKey, string> {CODE
LOW…ontend/components/skill/InstallOfficialSkillsModal.tsx18export function InstallOfficialSkillsModal({CODE
LOW…ontend/components/agent/AgentCallRelationshipModal.tsx233export default function AgentCallRelationshipModal({CODE
LOWfrontend/components/common/PdfViewer.tsx51async function resolveOutlinePageNumbers(CODE
LOWfrontend/components/common/PdfViewer.tsx68async function resolveOutlineItemPageNumber(CODE
LOW…/components/tool-config/KnowledgeBaseSelectorModal.tsx78export default function KnowledgeBaseSelectorModal({CODE
LOW…mponents/tool-config/HaotianKnowledgeSelectorModal.tsx19export default function HaotianKnowledgeSelectorModal(props: {CODE
10386 more matches not shown…
Decorative Section Separators1489 hits · 5311 pts
SeverityFileLineSnippetContext
MEDIUM…cale]/agents/components/agentConfig/ToolManagement.tsx267// ─── Pure helper ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/backend/database/test_model_managment_db.py530# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/backend/database/test_model_managment_db.py532# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py131# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py133# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py196# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py198# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py216# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py218# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py236# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py238# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py256# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py258# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py306# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py308# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py348# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py350# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py432# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py434# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py455# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py457# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py475# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py477# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py526# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py528# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py546# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py548# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py587# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py589# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py629# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py631# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py695# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py697# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py739# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py741# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py780# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py782# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py975# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py977# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py1018# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py1020# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py1041# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py1043# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py1061# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py1063# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py821# ============================================================================COMMENT
MEDIUMtest/backend/database/test_remote_mcp_db.py823# ============================================================================COMMENT
MEDIUMtest/backend/database/test_evaluation_set_db.py51# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/backend/database/test_evaluation_set_db.py53# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/backend/database/test_evaluation_set_db.py76# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/backend/database/test_evaluation_set_db.py78# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/backend/database/test_evaluation_set_db.py97# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/backend/database/test_evaluation_set_db.py99# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/backend/database/test_evaluation_set_db.py118# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/backend/database/test_evaluation_set_db.py120# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/backend/database/test_evaluation_set_db.py148# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/backend/database/test_evaluation_set_db.py150# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/backend/database/test_evaluation_set_db.py171# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/backend/database/test_evaluation_set_db.py173# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/backend/database/test_evaluation_set_db.py206# ---------------------------------------------------------------------------COMMENT
1429 more matches not shown…
Excessive Try-Catch Wrapping1263 hits · 1123 pts
SeverityFileLineSnippetContext
LOWCLAUDE.md134 except Exception as exc:CODE
LOWCLAUDE.md139 except Exception as exc:CODE
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.py312 except Exception as exc:CODE
LOWtest/backend/app/test_northbound_base_app.py206except Exception:CODE
LOWtest/backend/app/test_agent_app.py1142 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.py50def _safe_import(name):CODE
LOWtest/backend/app/test_evaluation_delete_app.py53 except Exception: # noqa: BLE001CODE
LOWtest/backend/utils/test_evaluation_set_excel_utils.py50except Exception:CODE
LOWtest/backend/utils/test_evaluation_set_excel_utils.py128except Exception:CODE
LOWtest/backend/utils/test_monitoring.py114 except Exception as e:CODE
LOWtest/backend/utils/test_monitoring.py170 except Exception as e:CODE
MEDIUMtest/backend/utils/test_monitoring.py165def worker():CODE
LOW…st/backend/services/test_tool_configuration_service.py25except Exception:CODE
LOW…st/backend/services/test_tool_configuration_service.py481except Exception:CODE
MEDIUMtest/backend/services/test_model_provider_service.py1594def mock_get_models_with_exception_handling(config):CODE
LOWtest/backend/services/test_model_provider_service.py1600 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.py53def _filter_property(data, model_class):CODE
LOWtest/backend/services/test_memory_config_service.py56 except Exception:CODE
LOWtest/backend/services/test_skill_service.py1627 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py1647 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py1785 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py1842 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py1933 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py1955 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py1972 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py1989 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2005 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2021 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2038 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2055 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2081 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py2612 except Exception as e:CODE
LOWtest/backend/services/test_skill_service.py4127 except Exception as e:CODE
LOWtest/backend/services/test_agent_service.py12148 except Exception:CODE
LOWtest/backend/services/test_agent_service.py40except Exception:CODE
LOWtest/backend/services/test_agent_service.py14527 except Exception as e:CODE
LOWtest/backend/services/test_skill_repository_service.py126except Exception:CODE
LOWtest/backend/services/test_mcp_container_service.py1421 except Exception:CODE
LOWtest/backend/services/test_mcp_container_service.py1447 except Exception:CODE
LOWtest/backend/services/test_mcp_container_service.py1467 except Exception:CODE
LOWtest/backend/services/test_mcp_container_service.py1488 except Exception:CODE
LOWtest/backend/services/test_vectordatabase_service.py29except Exception:CODE
LOWtest/backend/services/test_vectordatabase_service.py3034 except Exception:CODE
LOWtest/backend/services/test_agent_evaluation_service.py204except Exception: # noqa: BLE001CODE
LOWtest/backend/services/test_model_management_service.py52except Exception:CODE
LOWtest/backend/data_process/test_ray_config.py311 except Exception:CODE
LOWtest/backend/data_process/test_ray_config.py314 except Exception:CODE
LOWtest/backend/data_process/test_ray_config.py324 except Exception:CODE
LOWtest/backend/data_process/test_ray_config.py334 except Exception:CODE
1203 more matches not shown…
Self-Referential Comments206 hits · 636 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.py478 # Create a mock query chain that returns tenant IDsCOMMENT
MEDIUMtest/backend/database/test_tenant_config_db.py507 # Create a mock query that returns empty resultCOMMENT
MEDIUMtest/backend/database/test_agent_db.py675 # Create a Mock class for AgentRelation that supports both class attribute access and instantiationCOMMENT
MEDIUMtest/backend/database/test_agent_db.py776 # 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.py262 # Create a Mock class that can be used both as a class (for query) and instantiatedCOMMENT
MEDIUMtest/backend/database/test_tool_db.py443 # Create a mock for ToolInfo class with properly accessible attributesCOMMENT
MEDIUMtest/backend/database/test_tool_db.py483 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py489 # Create a new tool with different name&source that doesn't exist in databaseCOMMENT
MEDIUMtest/backend/database/test_tool_db.py535 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py541 # Create a new tool with invalid name (contains special characters)COMMENT
MEDIUMtest/backend/database/test_tool_db.py588 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py594 # Create a new MCP tool with same name but different usage (different MCP server)COMMENT
MEDIUMtest/backend/database/test_tool_db.py644 # Create a new MCP tool with same name and same usage (should update existing)COMMENT
MEDIUMtest/backend/database/test_tool_db.py688 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py694 # Create a new MCP tool with same name and empty usage (should update existing)COMMENT
MEDIUMtest/backend/database/test_tool_db.py735 # Create a new non-MCP tool with same name and source but different usageCOMMENT
MEDIUMtest/backend/database/test_tool_db.py778 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py834 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py947 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py993 # Create a mock for ToolInfo class constructorCOMMENT
MEDIUMtest/backend/database/test_tool_db.py999 # Create a new MCP tool with invalid name (contains special characters)COMMENT
MEDIUMtest/backend/database/test_tool_db.py1430 # Create a mock tool with source="local"COMMENT
MEDIUMtest/backend/database/test_tool_db.py1474 # Create a mock tool with source="mcp" (not local)COMMENT
MEDIUMtest/backend/database/test_tool_db.py1512 # Create a mock tool with source="local"COMMENT
MEDIUMtest/backend/database/test_tool_db.py1558 # Create a mock tool with source="local"COMMENT
MEDIUMtest/backend/database/test_tool_db.py1604 # Create a mock tool with source="local" and invalid JSON inputsCOMMENT
MEDIUMtest/backend/database/test_tool_db.py1649 # 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.py962 # Create a list of mock knowledge recordsCOMMENT
MEDIUMtest/backend/database/test_knowledge_db.py1050 # 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.py255 # Create a mock statement that chains properlyCOMMENT
MEDIUMtest/backend/database/test_agent_version_db.py280 # Create a mock statement that chains properlyCOMMENT
MEDIUMtest/backend/database/test_user_tenant_db.py291 # Create a proper mock UserTenant class with attributesCOMMENT
MEDIUMtest/backend/database/test_conversation_db.py1412 # This function is covered by integration testsCOMMENT
MEDIUMtest/backend/database/test_group_db.py750 # Create a mock query that returns tuples of group_idsCOMMENT
MEDIUMtest/backend/database/test_group_db.py814 # Create a mock query that returns countCOMMENT
MEDIUMtest/backend/database/test_group_db.py1048 # 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.py82# Define a decorator that simply returns the original function unchangedCOMMENT
MEDIUMtest/backend/app/test_conversation_management_app.py204 # Create a request-like object with required attributesCOMMENT
MEDIUMtest/backend/app/test_vectordatabase_app.py69# 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_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.py117# 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.py540 # Create a ZIP fileCOMMENT
MEDIUMtest/backend/app/test_northbound_app.py71 # Create a fake file uploadCOMMENT
MEDIUMtest/backend/agents/test_create_agent_info.py792 # Create a tool that throws an exception when accessing the name attributeCOMMENT
MEDIUMtest/backend/agents/test_create_agent_info.py2816 # Create a tool with index_name_to_display_map in metadataCOMMENT
MEDIUMtest/backend/agents/test_create_agent_info.py2927 # Create a tool with empty metadata (no index_name_to_display_map)COMMENT
146 more matches not shown…
Docstring Block Structure123 hits · 615 pts
SeverityFileLineSnippetContext
HIGHbackend/database/a2a_agent_db.py719Add a relation between a local agent and an external A2A agent. Args: local_agent_id: Local parent agent IDSTRING
HIGHbackend/database/knowledge_db.py401 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.py195 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.py128 Set the default group ID for a tenant. Args: tenant_id (str): Tenant ID group_id (int): Group STRING
HIGHbackend/services/group_service.py196 Create a new group. Args: tenant_id (str): Tenant ID group_name (str): Group name grouSTRING
HIGHbackend/services/group_service.py245 Update group information. Args: group_id (int): Group ID updates (Dict[str, Any]): Fields to uSTRING
HIGHbackend/services/group_service.py296 Delete group. Args: group_id (int): Group ID user_id (str): Current user ID Returns: STRING
HIGHbackend/services/group_service.py337 Add user to group. Args: group_id (int): Group ID user_id (str): User ID to add currenSTRING
HIGHbackend/services/group_service.py388 Remove user from group. Args: group_id (int): Group ID user_id (str): User ID to remove STRING
HIGHbackend/services/group_service.py431 Get all users in a group with their details. Args: group_id (int): Group ID Returns: ListSTRING
HIGHbackend/services/group_service.py468 Get user count in a group. Args: group_id (int): Group ID Returns: int: Number of users iSTRING
HIGHbackend/services/group_service.py489 Add user to multiple groups. Args: user_id (str): User ID to add group_ids (List[int]): List oSTRING
HIGHbackend/services/group_service.py521 Update group members by setting the exact list of users that should be in the group. Args: group_id (iSTRING
HIGHbackend/services/vectordatabase_service.py231 Return a VectorDatabaseCore implementation based on the requested type. Args: db_type: Target vector dSTRING
HIGHbackend/services/vectordatabase_service.py755 Update knowledge base information (name, group permission, group assignments). Args: indexSTRING
HIGHbackend/services/vectordatabase_service.py810 Update the embedding model for a knowledge base. Args: index_name: Internal index name of STRING
HIGHbackend/services/agent_service.py2397 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.py104 Start MCP container and return access URL Args: service_name: Name of the MCP service STRING
HIGHbackend/services/mcp_container_service.py155 Load image from tar file and start MCP container Args: tar_file_path: Path to the tar fileSTRING
HIGHbackend/services/mcp_container_service.py194 Stop and remove MCP container Args: container_id: Container ID or name Returns: STRING
HIGHbackend/services/skill_service.py999Create a new skill for a tenant. Args: skill_data: Skill data including name, description, content,STRING
HIGHbackend/services/a2a_client_service.py50Discover 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.py144Discover external A2A agents from Nacos service registry. Args: nacos_config_id: Nacos config ID foSTRING
HIGHbackend/services/a2a_client_service.py462Refresh the cached Agent Card for an external agent. Args: external_agent_id: External agent databaSTRING
HIGHbackend/services/a2a_client_service.py660Call an external A2A agent (non-streaming). Args: external_agent_id: External agent database ID to STRING
HIGHbackend/services/a2a_client_service.py732Call an external A2A agent with streaming response. Args: external_agent_id: External agent databasSTRING
HIGHbackend/services/user_management_service.py628Update user password with old password verification. This method first re-authenticates the user with their old pasSTRING
HIGHbackend/services/tenant_service.py188 Create a new tenant with default group Args: tenant_name (str): Tenant name created_by (OptionSTRING
HIGHbackend/services/tenant_service.py302 Update tenant information If TENANT_NAME config doesn't exist, creates it with the provided name. Args: STRING
HIGHbackend/services/tenant_service.py410 Delete tenant and all associated resources This performs cascade deletion of: - All users in the tenant (sSTRING
HIGHbackend/services/tenant_service.py581 Create a default group for a new tenant Args: tenant_id (str): Tenant ID created_by (Optional[STRING
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.py175Enable A2A Server for an agent. Args: agent_id: Local agent ID. tenant_id: Tenant ID. STRING
HIGHbackend/services/a2a_server_service.py215Disable A2A Server for an agent. Args: agent_id: Local agent ID. tenant_id: Tenant ID. STRING
HIGHbackend/services/a2a_server_service.py244Update A2A Server settings. Args: agent_id: Local agent ID. tenant_id: Tenant ID. STRING
HIGHbackend/services/a2a_server_service.py350Generate Agent Card for an endpoint. Args: endpoint_id: The endpoint ID. base_url: OptiSTRING
HIGHbackend/services/a2a_server_service.py566Handle incoming message:send request. This is a synchronous request that waits for task completion. ArSTRING
HIGHbackend/services/a2a_server_service.py680Handle incoming message:stream request. This is a streaming request that yields task events. Args: STRING
HIGHbackend/services/a2a_server_service.py825Get task details in A2A standard format. Args: task_id: The task ID. user_id: User ID fSTRING
HIGHbackend/services/a2a_server_service.py958Cancel a task. Args: task_id: The task ID. user_id: User ID for authorization. STRING
HIGHbackend/services/user_service.py70 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
HIGHbackend/services/voice_service.py571 Check voice service connectivity based on model type. Args: model_type: Type of model to cSTRING
63 more matches not shown…
Cross-File Repetition120 hits · 600 pts
SeverityFileLineSnippetContext
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
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.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
HIGHbackend/database/attachment_db.py0check if file exists in storage args: object_name: object name bucket: bucket name, if not specified use default bucket STRING
HIGHbackend/database/client.py0check if file exists in storage args: object_name: object name bucket: bucket name, if not specified use default bucket STRING
HIGHsdk/nexent/storage/storage_client_base.py0check if file exists in storage args: object_name: object name bucket: bucket name, if not specified use default bucket STRING
HIGHsdk/nexent/storage/minio.py0check if file exists in storage args: object_name: object name bucket: bucket name, if not specified use default bucket STRING
HIGHbackend/database/user_tenant_db.py0get users belonging to a specific tenant with pagination and sorting args: tenant_id (str): tenant id page (optional[intSTRING
HIGHbackend/database/group_db.py0get users belonging to a specific tenant with pagination and sorting args: tenant_id (str): tenant id page (optional[intSTRING
HIGHbackend/services/group_service.py0get users belonging to a specific tenant with pagination and sorting args: tenant_id (str): tenant id page (optional[intSTRING
HIGHbackend/services/user_service.py0get users belonging to a specific tenant with pagination and sorting args: tenant_id (str): tenant id page (optional[intSTRING
HIGHbackend/database/client.py0upload local file to storage args: file_path: local file path object_name: object name, if not specified use filename buSTRING
HIGHsdk/nexent/storage/minio.py0upload local file to storage args: file_path: local file path object_name: object name, if not specified use filename buSTRING
HIGHsdk/nexent/storage/storage_client_base.py0upload local file to storage args: file_path: local file path object_name: object name, if not specified use filename buSTRING
HIGHbackend/database/client.py0upload file object to minio args: file_obj: file object (binaryio) object_name: object name bucket: bucket name, if not STRING
HIGHsdk/nexent/storage/storage_client_base.py0upload file object to minio args: file_obj: file object (binaryio) object_name: object name bucket: bucket name, if not STRING
HIGHsdk/nexent/storage/minio.py0upload file object to minio args: file_obj: file object (binaryio) object_name: object name bucket: bucket name, if not STRING
HIGHbackend/database/client.py0download file from storage to local args: object_name: object name file_path: local save path bucket: bucket name, if noSTRING
HIGHsdk/nexent/storage/minio.py0download file from storage to local args: object_name: object name file_path: local save path bucket: bucket name, if noSTRING
HIGHsdk/nexent/storage/storage_client_base.py0download file from storage to local args: object_name: object name file_path: local save path bucket: bucket name, if noSTRING
HIGHbackend/database/client.py0get presigned url for file args: object_name: object name bucket: bucket name, if not specified use default bucket expirSTRING
HIGHsdk/nexent/storage/storage_client_base.py0get presigned url for file args: object_name: object name bucket: bucket name, if not specified use default bucket expirSTRING
HIGHsdk/nexent/storage/minio.py0get presigned url for file args: object_name: object name bucket: bucket name, if not specified use default bucket expirSTRING
HIGHbackend/database/client.py0get file size in bytes args: object_name: object name bucket: bucket name, if not specified use default bucket returns: STRING
60 more matches not shown…
Unused Imports705 hits · 530 pts
SeverityFileLineSnippetContext
LOWexperimental/tune/base/utils.py10CODE
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_attachment_db.py8CODE
LOWtest/backend/database/test_attachment_db.py9CODE
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.py189CODE
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.py9CODE
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/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.py7CODE
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
LOWtest/backend/app/test_config_app.py11CODE
LOWtest/backend/app/test_config_app.py12CODE
LOWtest/backend/app/test_config_app.py12CODE
LOWtest/backend/app/test_config_app.py15CODE
LOWtest/backend/app/test_config_app.py32CODE
LOWtest/backend/app/test_config_app.py32CODE
LOWtest/backend/app/test_config_app.py32CODE
LOWtest/backend/app/test_config_app.py32CODE
LOWtest/backend/app/test_config_app.py32CODE
LOWtest/backend/app/test_config_app.py32CODE
LOWtest/backend/app/test_config_app.py32CODE
LOWtest/backend/app/test_config_app.py32CODE
LOWtest/backend/app/test_config_app.py32CODE
LOWtest/backend/app/test_user_app.py4CODE
LOWtest/backend/app/test_user_app.py52CODE
645 more matches not shown…
Structural Annotation Overuse139 hits · 242 pts
SeverityFileLineSnippetContext
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
LOW…end/app/[locale]/agents/components/AgentConfigComp.tsx54 // Step 1: Update backend tool status, rescan MCP and local toolsCOMMENT
LOW…end/app/[locale]/agents/components/AgentConfigComp.tsx60 // Step 2: Invalidate and refresh tool list cacheCOMMENT
LOWfrontend/components/agent/AgentImportWizard.tsx735 // Step 1: Model selection validationCOMMENT
LOWfrontend/components/agent/AgentImportWizard.tsx756 // Step 2: Config fields validationCOMMENT
LOWfrontend/components/common/markdownRenderer.tsx847 // Step 1: Handle complete <DISPLAY:language>...</DISPLAY> blocksCOMMENT
LOWfrontend/components/common/markdownRenderer.tsx852 // Step 2: Handle complete <code>...</code> blocksCOMMENT
LOWfrontend/components/common/markdownRenderer.tsx857 // 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/backend/services/test_data_process_service.py2114 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2115 self._make_stream(b'%PDF-1.4 ok'), # Step 4: header checkCODE
LOWtest/backend/services/test_data_process_service.py2220 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2221 self._make_stream(b'NOT-PDF'), # Step 4: header checkCODE
LOWtest/backend/services/test_data_process_service.py2340 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2341 None, # Step 4: header check streamCODE
LOWtest/backend/services/test_data_process_service.py2373 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2374 header_stream, # Step 4: header checkCODE
LOWtest/backend/services/test_data_process_service.py2425 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2426 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.sh1018 # Step 1: Select deployment components, port policy and image source.COMMENT
LOWdeploy/k8s/deploy.sh1022 # Step 2: Render generated values with image tags from selected environmentCOMMENT
LOWdeploy/k8s/deploy.sh1025 # Step 3: Generate MinIO Access Key and Secret KeyCOMMENT
LOWdeploy/k8s/deploy.sh1054 # Step 4: Generate Supabase secrets (only for full version)COMMENT
79 more matches not shown…
Redundant / Tautological Comments164 hits · 240 pts
SeverityFileLineSnippetContext
LOWtest/backend/database/test_agent_version_db.py194 # Check if it's a MagicMock without real data - return empty dict or handle speciallyCOMMENT
LOWtest/backend/database/test_agent_version_db.py196 # Check if this MagicMock has been configured with real attributesCOMMENT
LOWtest/backend/database/test_agent_version_db.py223 # Check if this looks like one of our mock classes by checking for key attributesCOMMENT
LOWtest/backend/database/test_agent_version_db.py226 # Check if it has any of our expected keys (not just mock internals)COMMENT
LOWtest/backend/app/test_vectordatabase_app.py114 # Check if attribute exists before modifyingCOMMENT
LOWtest/backend/agents/test_create_agent_info.py893 # Check if the last call was for KnowledgeBaseSearchToolCOMMENT
LOWtest/backend/agents/test_create_agent_info.py2414 # Set agent_share_option to "never"COMMENT
LOWtest/backend/agents/test_create_agent_info.py2509 # Set disable_agent_ids to include the agentCOMMENT
LOWtest/backend/agents/test_create_agent_info.py2604 # Set disable_user_agent_ids to include the agentCOMMENT
LOWtest/backend/services/test_auto_summary_scheduler.py718 # Check if stop_event is set during processingCOMMENT
LOWtest/backend/services/test_agent_service.py14768 # Set conversation_id to None to trigger is_new_conversation=True pathCOMMENT
LOW…ckend/services/test_conversation_management_service.py277 # Check if create_conversation_message was called with correct paramsCOMMENT
LOWtest/backend/data_process/test_worker.py133 # Set backend to a non-DisabledBackend instanceCOMMENT
LOWtest/backend/data_process/test_tasks.py95 # Set backend to a non-DisabledBackend instanceCOMMENT
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.py120 # Check if text field existsCOMMENT
LOWtest/sdk/core/tools/test_knowledge_base_search_tool.py142 # Check if there's a class attribute that's a FieldInfoCOMMENT
LOWtest/sdk/core/tools/test_knowledge_base_search_tool.py158 # Check if this is a class-level default by looking at the classCOMMENT
LOWtest/sdk/core/tools/test_knowledge_base_search_tool.py385 # Set search_mode to accurateCOMMENT
LOWtest/sdk/core/tools/test_knowledge_base_search_tool.py402 # 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.sh873 # Check if root-dir parameter is provided (highest priority)COMMENT
LOWdeploy/docker/deploy.sh885 # Check if ROOT_DIR already exists in .env (second priority)COMMENT
LOWdeploy/docker/deploy.sh931 # Check if parameters are providedCOMMENT
LOWdeploy/docker/deploy.sh1093 # Check if the supabase compose file existsCOMMENT
LOWdeploy/docker/deploy.sh1337 # Check if SSH credentials are already setCOMMENT
LOWdeploy/docker/deploy.sh1396 # Check if super admin user exists in SupabaseCOMMENT
LOWdeploy/docker/deploy.sh1455 # Check if password is emptyCOMMENT
LOWdeploy/docker/deploy.sh1473 # Check if passwords matchCOMMENT
LOWdeploy/docker/deploy.sh1503 # 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.sh274 # Check if user was created successfully. Supabase may return either a top-levelCOMMENT
LOWdeploy/k8s/create-suadmin.sh341 # Check if Supabase pods are availableCOMMENT
LOWdeploy/k8s/helm/nexent/charts/nexent-common/values.yaml31 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.py92 # Check if Ray is already initializedCOMMENT
LOWbackend/data_process_service.py185 # Check if we're in Docker environmentCOMMENT
LOWbackend/data_process_service.py515 # Check if process is still runningSTRING
LOWbackend/data_process_service.py672 if process.poll() is None: # Check if process is still runningSTRING
LOWbackend/middleware/exception_handler.py56 # Check if it's an AppException by looking for the error_code attributeCOMMENT
LOWbackend/database/conversation_db.py536 # Check if any rows were affectedCOMMENT
LOWbackend/database/conversation_db.py598 # Check if the conversation record was affectedCOMMENT
LOWbackend/database/conversation_db.py697 # Check if any rows were affectedCOMMENT
LOWbackend/database/conversation_db.py908 # Check if any rows were affectedCOMMENT
LOWbackend/database/conversation_db.py1089 # Check if any rows were affectedCOMMENT
LOWbackend/database/a2a_agent_db.py188 # Check if agent already exists by source_urlCOMMENT
LOWbackend/database/a2a_agent_db.py295 # Check if agent already exists by nacos_config_id + nacos_agent_nameCOMMENT
LOWbackend/database/a2a_agent_db.py734 # Check if relation already exists (not soft-deleted)COMMENT
LOWbackend/database/a2a_agent_db.py745 # Check if there's a soft-deleted record and restore itCOMMENT
LOWbackend/database/a2a_agent_db.py1517 # Check if task is in terminal stateCOMMENT
LOWbackend/database/tool_db.py246 # Check if any tools exist for this tenantCOMMENT
LOWbackend/database/knowledge_db.py113 # Check if record existsCOMMENT
LOWbackend/database/model_management_db.py121 # Check if any rows were affectedCOMMENT
LOWbackend/agents/create_agent_info.py1285 # Check if adding this description would exceed the character limitCOMMENT
LOWbackend/utils/tool_utils.py44 # Check if parameter has a default value and if it should be excludedCOMMENT
104 more matches not shown…
Deep Nesting300 hits · 228 pts
SeverityFileLineSnippetContext
LOWtest/run_all_test.py223CODE
LOWtest/backend/database/test_agent_evaluation_db.py333CODE
LOWtest/backend/database/test_agent_evaluation_db.py344CODE
LOWtest/backend/database/test_agent_version_db.py189CODE
LOWtest/backend/database/test_a2a_agent_db.py340CODE
LOW…st/backend/services/test_tool_configuration_service.py4474CODE
LOW…st/backend/services/test_tool_configuration_service.py4503CODE
LOWtest/backend/services/test_skill_service.py2787CODE
LOWtest/backend/services/test_skill_service.py2804CODE
LOWtest/backend/services/test_agent_service.py10345CODE
LOWtest/backend/services/test_agent_service.py13463CODE
LOWtest/backend/services/test_agent_service.py13507CODE
LOWtest/backend/services/test_agent_service.py13650CODE
LOWtest/backend/services/test_agent_service.py13705CODE
LOWtest/backend/services/test_agent_service.py13834CODE
LOWtest/backend/services/test_agent_service.py13915CODE
LOWtest/backend/services/test_agent_service.py13956CODE
LOWtest/backend/services/test_agent_service.py13997CODE
LOWtest/backend/services/test_prompt_service.py800CODE
LOWtest/backend/services/test_prompt_service.py817CODE
LOWtest/sdk/core/tools/test_knowledge_base_search_tool.py125CODE
LOWtest/sdk/core/tools/test_knowledge_base_search_tool.py154CODE
LOWtest/sdk/vector_database/test_elasticsearch_core.py724CODE
LOWtest/sdk/utils/test_http_client_manager.py15CODE
LOWtest/sdk/skills/test_skill_manager.py38CODE
LOWtest/sdk/skills/test_skill_manager.py3309CODE
LOWtest/sdk/skills/test_skill_manager.py3466CODE
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.py347CODE
LOWbackend/data_process_service.py84CODE
LOWbackend/data_process_service.py178CODE
LOWbackend/data_process_service.py388CODE
LOWbackend/data_process_service.py539CODE
LOWbackend/data_process_service.py586CODE
LOWbackend/data_process_service.py615CODE
LOWbackend/data_process_service.py464CODE
LOWbackend/data_process_service.py339CODE
LOWbackend/database/conversation_db.py701CODE
LOWbackend/database/conversation_db.py1337CODE
LOWbackend/database/tool_db.py34CODE
LOWbackend/database/tool_db.py254CODE
LOWbackend/database/tool_db.py313CODE
LOWbackend/database/knowledge_db.py241CODE
LOWbackend/database/knowledge_db.py442CODE
LOWbackend/database/model_management_db.py125CODE
LOWbackend/database/outer_api_tool_db.py61CODE
240 more matches not shown…
Verbosity Indicators97 hits · 163 pts
SeverityFileLineSnippetContext
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
LOW…end/app/[locale]/agents/components/AgentConfigComp.tsx54 // Step 1: Update backend tool status, rescan MCP and local toolsCOMMENT
LOW…end/app/[locale]/agents/components/AgentConfigComp.tsx60 // Step 2: Invalidate and refresh tool list cacheCOMMENT
LOWfrontend/components/agent/AgentImportWizard.tsx735 // Step 1: Model selection validationCOMMENT
LOWfrontend/components/agent/AgentImportWizard.tsx756 // Step 2: Config fields validationCOMMENT
LOWfrontend/components/common/markdownRenderer.tsx847 // Step 1: Handle complete <DISPLAY:language>...</DISPLAY> blocksCOMMENT
LOWfrontend/components/common/markdownRenderer.tsx852 // Step 2: Handle complete <code>...</code> blocksCOMMENT
LOWfrontend/components/common/markdownRenderer.tsx857 // 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/backend/services/test_data_process_service.py2114 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2115 self._make_stream(b'%PDF-1.4 ok'), # Step 4: header checkCODE
LOWtest/backend/services/test_data_process_service.py2220 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2221 self._make_stream(b'NOT-PDF'), # Step 4: header checkCODE
LOWtest/backend/services/test_data_process_service.py2340 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2341 None, # Step 4: header check streamCODE
LOWtest/backend/services/test_data_process_service.py2373 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2374 header_stream, # Step 4: header checkCODE
LOWtest/backend/services/test_data_process_service.py2425 self._make_stream(b'DOC data'), # Step 1: original fileCODE
LOWtest/backend/services/test_data_process_service.py2426 self._make_stream(b'%PDF-1.4 ok'), # Step 4: header checkCODE
LOWpathology-ai/code-changes/backend/local_mcp_service.py1138 # Step 1: 症状分析COMMENT
LOWpathology-ai/code-changes/backend/local_mcp_service.py1158 # Step 2: 病史关联COMMENT
LOWpathology-ai/code-changes/backend/local_mcp_service.py1176 # Step 3: 鉴别诊断COMMENT
LOWpathology-ai/code-changes/backend/local_mcp_service.py1205 # Step 4: 检查建议COMMENT
LOWpathology-ai/code-changes/backend/local_mcp_service.py1217 # Step 5: 诊断结论COMMENT
LOW…i/code-changes/medical_extension/chain_of_diagnosis.py195 # Step 1: 症状分析COMMENT
LOW…i/code-changes/medical_extension/chain_of_diagnosis.py200 # Step 2: 病史关联COMMENT
LOW…i/code-changes/medical_extension/chain_of_diagnosis.py205 # Step 3: 鉴别诊断COMMENT
LOW…i/code-changes/medical_extension/chain_of_diagnosis.py211 # Step 4: 检查建议COMMENT
LOW…i/code-changes/medical_extension/chain_of_diagnosis.py215 # Step 5: 诊断结论COMMENT
LOW…i/code-changes/medical_extension/chain_of_diagnosis.py129 "症状分析", # Step 1: 分析主诉和症状CODE
LOW…i/code-changes/medical_extension/chain_of_diagnosis.py130 "病史关联", # Step 2: 关联既往病史CODE
LOW…i/code-changes/medical_extension/chain_of_diagnosis.py131 "鉴别诊断", # Step 3: 列出可能的诊断CODE
LOW…i/code-changes/medical_extension/chain_of_diagnosis.py132 "检查建议", # Step 4: 建议进一步检查CODE
LOW…i/code-changes/medical_extension/chain_of_diagnosis.py133 "诊断结论", # Step 5: 给出最终诊断CODE
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.sh1018 # Step 1: Select deployment components, port policy and image source.COMMENT
LOWdeploy/k8s/deploy.sh1022 # Step 2: Render generated values with image tags from selected environmentCOMMENT
LOWdeploy/k8s/deploy.sh1025 # Step 3: Generate MinIO Access Key and Secret KeyCOMMENT
LOWdeploy/k8s/deploy.sh1054 # Step 4: Generate Supabase secrets (only for full version)COMMENT
LOWdeploy/k8s/deploy.sh1067 # Step 5: Configure Terminal tool (OpenSSH) only when selected.COMMENT
LOWdeploy/k8s/deploy.sh1103 # Step 6: Clean up stale PVsCOMMENT
LOWdeploy/k8s/deploy.sh1128 # Step 7: Deploy using HelmCOMMENT
LOWdeploy/k8s/deploy.sh1138 # Step 9: Wait for Elasticsearch to be ready and initialize API keyCOMMENT
LOWdeploy/k8s/deploy.sh1259 # Step 10: Create super admin user (only for full deployment)COMMENT
37 more matches not shown…
Hallucination Indicators12 hits · 145 pts
SeverityFileLineSnippetContext
CRITICALtest/backend/services/test_mcp_container_service.py1416 mock_manager.client.client.images.load.assert_called_once()CODE
CRITICALtest/backend/services/test_mcp_container_service.py1442 mock_manager.client.client.images.load.assert_called_once()CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1450 openai_model_instance.client.chat.completions.create.assert_called_once_with(CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1465 openai_model_instance.client.chat.completions.create.assert_called_once_with(CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1481 openai_model_instance.client.chat.completions.create.assert_not_called()CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1436 openai_model_instance.client.chat.completions.create.assert_called_once_with(CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1495 openai_model_instance.client.chat.completions.create.assert_not_called()CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1515 openai_model_instance.client.chat.completions.create.assert_called_once_with(CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1536 openai_model_instance.client.chat.completions.create.assert_not_called()CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1553 openai_model_instance.client.chat.completions.create.assert_not_called()CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1570 openai_model_instance.client.chat.completions.create.assert_not_called()CODE
CRITICALtest/sdk/core/models/test_openai_llm.py1583 openai_model_instance.client.chat.completions.create.assert_called_once_with(CODE
Modern AI Meta-Vocabulary44 hits · 136 pts
SeverityFileLineSnippetContext
MEDIUMCLAUDE.md166├── services/ # Business logic orchestrationCODE
MEDIUMtest/backend/app/test_vectordatabase_app.py2311# Tests for new embedding model retrieval from knowledge recordCOMMENT
MEDIUMtest/backend/app/test_vectordatabase_app.py2330 # Mock knowledge record with saved embedding model idCOMMENT
MEDIUMtest/backend/app/test_vectordatabase_app.py2338 # Mock embedding modelCOMMENT
MEDIUMtest/backend/app/test_vectordatabase_app.py2367 # Verify index_documents was called with the embedding modelCOMMENT
MEDIUMtest/backend/app/test_vectordatabase_app.py2482 # Empty/None model id should skip embedding model resolutionCOMMENT
MEDIUMtest/backend/agents/test_create_agent_info.py5054 # Tool with non-empty index_names but no embedding modelCOMMENT
MEDIUMtest/backend/agents/test_create_agent_info.py5080 # Verify error message contains guidance about configuring embedding modelCOMMENT
MEDIUMtest/backend/agents/test_create_agent_info.py5104 # Tool with index_names and valid embedding modelCOMMENT
MEDIUMtest/backend/agents/test_create_agent_info.py5258 # Return valid embedding model with error metadataCOMMENT
MEDIUM…st/backend/services/test_tool_configuration_service.py245# Mock embedding model module to satisfy vectordatabase_service importsCOMMENT
MEDIUM…st/backend/services/test_tool_configuration_service.py3164 # 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.py3549 # Mock knowledge record with embedding model idCOMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py3555 # Mock embedding modelCOMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py726 # Mock embedding modelCOMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py753 # Verify knowledge record was created with the embedding model nameCOMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py778 # Mock embedding model (tenant default)COMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py829 # Mock embedding modelCOMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py876 # Mock embedding model - note: model's display name differs from user-provided nameCOMMENT
MEDIUMtest/backend/services/test_vectordatabase_service.py3753 # Should succeed, embedding model IS called but returns emptyCOMMENT
MEDIUMbackend/data_process_service.py210 # - process-worker handles orchestration (process_q)COMMENT
MEDIUMbackend/utils/context_utils.py1364 # KB/RAG content is dynamic evidence and is emitted below as aCOMMENT
MEDIUMbackend/apps/vectordatabase_app.py460 # Get the knowledge base record to retrieve the saved embedding modelCOMMENT
MEDIUMbackend/services/vectordatabase_service.py1967 # Get knowledge base's embedding model by model_idCOMMENT
MEDIUMbackend/services/vectordatabase_service.py1979 # Generate embedding if we have content and can get embedding modelCOMMENT
MEDIUMbackend/services/vectordatabase_service.py629 # Get embedding model by model_id if providedCOMMENT
MEDIUMbackend/services/vectordatabase_service.py687 # Get embedding model - use user-selected model if provided, otherwise use tenant defaultCOMMENT
MEDIUMbackend/services/vectordatabase_service.py700 # Determine the embedding model name to save: use user-provided name if available,COMMENT
MEDIUMbackend/services/vectordatabase_service.py827 # Validate the model exists and is an embedding modelCOMMENT
MEDIUMbackend/services/vectordatabase_service.py1066 # Track records with missing embedding model for stats updateCOMMENT
MEDIUMbackend/services/vectordatabase_service.py1094 # Get embedding model display_name from model_idCOMMENT
MEDIUMbackend/services/vectordatabase_service.py1206 # Set embedding model name from the embedding modelCOMMENT
MEDIUMbackend/services/vectordatabase_service.py2118 # Get embedding model from the first index's knowledge base recordCOMMENT
MEDIUMbackend/services/streaming_channel.py154 # Wait for new chunks using event-driven approachCOMMENT
MEDIUMbackend/services/prompt_service.py123 # Get knowledge base display names for few-shot examplesCOMMENT
MEDIUMbackend/services/tool_configuration_service.py776 # 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
MEDIUMsdk/nexent/core/agents/agent_model.py110 # "total context window" semantics (pre-W1), not an output limit.COMMENT
MEDIUMsdk/nexent/vector_database/elasticsearch_core.py81 # Initialize embedding modelCOMMENT
Modern Structural Boilerplate101 hits · 102 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
LOWbackend/middleware/exception_handler.py20logger = logging.getLogger(__name__)CODE
LOWbackend/database/user_tenant_db.py11logger = logging.getLogger(__name__)CODE
LOWbackend/database/oauth_account_db.py11logger = logging.getLogger(__name__)CODE
LOWbackend/database/evaluation_set_db.py33def update_evaluation_set_case_count(evaluation_set_id: int, case_count: int, updated_by: Optional[str] = None) -> None:CODE
LOWbackend/database/skill_db.py14logger = 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.py32logger = logging.getLogger(__name__)CODE
LOWbackend/utils/a2a_http_client.py9logger = logging.getLogger(__name__)CODE
LOWbackend/utils/llm_utils.py168__all__ = ["call_llm_for_system_prompt", "_process_thinking_tokens"]CODE
LOWbackend/adapters/__init__.py8__all__ = [CODE
LOWbackend/apps/skill_repository_app.py20logger = logging.getLogger(__name__)CODE
LOWbackend/apps/app_factory.py13logger = logging.getLogger(__name__)CODE
LOWbackend/apps/northbound_app.py32__all__ = ["router", "_get_northbound_context"]CODE
LOWbackend/apps/cas_app.py21logger = logging.getLogger(__name__)CODE
LOWbackend/apps/tenant_app.py26logger = logging.getLogger(__name__)CODE
LOWbackend/apps/skill_app.py27logger = logging.getLogger(__name__)CODE
LOWbackend/apps/oauth_app.py37logger = 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/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/group_service.py28logger = logging.getLogger(__name__)CODE
LOWbackend/services/runtime_state_service.py22logger = logging.getLogger(__name__)CODE
LOWbackend/services/agent_evaluation_service.py33logger = logging.getLogger(__name__)CODE
LOWbackend/services/oauth_service.py43logger = logging.getLogger(__name__)CODE
LOWbackend/services/agent_service.py124logger = logging.getLogger(__name__)CODE
LOWbackend/services/a2a_agent_adapter.py12logger = logging.getLogger(__name__)CODE
LOWbackend/services/skill_service.py31logger = logging.getLogger(__name__)CODE
LOWbackend/services/a2a_client_service.py16logger = logging.getLogger(__name__)CODE
LOWbackend/services/user_management_service.py63def set_auth_token_to_client(client: Client, token: str) -> None:CODE
LOWbackend/services/streaming_channel.py15logger = logging.getLogger(__name__)CODE
LOWbackend/services/tenant_service.py33logger = logging.getLogger(__name__)CODE
LOWbackend/services/invitation_service.py33logger = logging.getLogger(__name__)CODE
LOWbackend/services/a2a_server_service.py21logger = logging.getLogger(__name__)CODE
LOWbackend/services/cas_service.py52logger = logging.getLogger(__name__)CODE
LOWbackend/services/model_provider_service.py282__all__ = [CODE
LOWbackend/services/model_capacity_suggestion_service.py10logger = logging.getLogger(__name__)CODE
LOWbackend/services/user_service.py20logger = logging.getLogger(__name__)CODE
LOWbackend/services/redis_service.py10logger = logging.getLogger(__name__)CODE
LOWbackend/services/remote_mcp_service.py537async def update_remote_mcp_server_list(update_data, tenant_id: str, user_id: str) -> None:CODE
LOWbackend/services/conversation_management_service.py135def update_message_status(message_id: int, status: str, user_id: str) -> None:CODE
LOWbackend/services/conversation_management_service.py140def update_unit_status(unit_id: int, status: str, user_id: str) -> None:CODE
LOWbackend/services/conversation_management_service.py145def update_unit_content(unit_id: int, content: str, user_id: str) -> None:CODE
LOWbackend/services/conversation_management_service.py150def update_message_content(message_id: int, content: str, user_id: str) -> None:CODE
LOWbackend/services/auto_summary_scheduler.py19logger = logging.getLogger(__name__)CODE
LOWbackend/services/providers/__init__.py6__all__ = [CODE
LOWbackend/data_process/__init__.py12__all__ = [CODE
LOWsdk/nexent/__init__.py9__all__ = ["core", "memory", "storage", "vector_database", "datamate", "skills"]CODE
LOWsdk/nexent/datamate/__init__.py6__all__ = ["DataMateClient"]CODE
LOWsdk/nexent/monitor/agent_observability.py17__all__ = [CODE
LOWsdk/nexent/monitor/monitoring.py118def set_monitoring_capacity_snapshot(snapshot: Optional[Dict[str, Any]]) -> None:CODE
LOWsdk/nexent/monitor/monitoring.py128def set_monitoring_safe_input_budget_snapshot(snapshot: Optional[Dict[str, Any]]) -> None:CODE
41 more matches not shown…
Fake / Example Data85 hits · 88 pts
SeverityFileLineSnippetContext
LOWtest/backend/database/test_market_mcp_db.py451 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.py166 mock_signup.return_value = {"user_id": "123", "email": "admin@example.com"}CODE
LOWtest/backend/app/test_user_management_app.py171 "email": "admin@example.com",CODE
LOWtest/backend/app/test_user_management_app.py182 email="admin@example.com",CODE
LOWtest/backend/app/test_user_management_app.py191 mock_signup.return_value = {"user_id": "123", "email": "admin@example.com"}CODE
LOWtest/backend/app/test_user_management_app.py196 "email": "admin@example.com",CODE
LOWtest/backend/app/test_user_management_app.py207 email="admin@example.com",CODE
LOWtest/backend/app/test_user_management_app.py221 "email": "admin@example.com",CODE
LOWtest/backend/app/test_user_management_app.py239 "email": "admin@example.com",CODE
LOWtest/backend/utils/test_llm_utils.py145 api_key="fake-key",CODE
LOWtest/backend/utils/test_llm_utils.py163 "api_key": "fake-key",CODE
LOWtest/backend/utils/test_llm_utils.py115 "api_key": "fake-key",CODE
LOWtest/backend/utils/test_llm_utils.py536 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py570 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py597 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py629 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py656 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py687 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py734 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py767 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py836 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py868 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_llm_utils.py899 mock_get_model_by_id.return_value = {"base_url": "http://example.com", "api_key": "fake-key"}CODE
LOWtest/backend/utils/test_auth_utils.py439 au._extract_user_id_from_jwt_token("Bearer fake-token")CODE
LOWtest/backend/services/test_user_management_service.py814 result = await signup_user_with_invitation("admin@example.com", "Password123", invite_code="ADMIN123")CODE
LOWtest/backend/services/test_user_management_service.py817 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.py956 "admin@example.com",CODE
LOWtest/backend/services/test_user_management_service.py636 result = await signup_user_with_invitation("admin@example.com", "Password123", invite_code="ADMIN123")CODE
LOWtest/backend/services/test_user_management_service.py642 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.py908 "admin@example.com",CODE
LOWtest/backend/services/test_user_management_service.py1152 mock_user.email = "admin@example.com"CODE
LOWtest/backend/services/test_user_management_service.py1171 "email": "admin@example.com",CODE
LOWtest/backend/services/test_mcp_management_service.py149 mock_get.return_value = {"user_email": "user@example.com"}CODE
LOWtest/backend/services/test_mcp_management_service.py151 self.assertEqual(card["authorDisplayName"], "user@example.com")CODE
LOWtest/backend/services/test_agent_repository_service.py948 submitted_by="admin@example.com",CODE
LOWtest/backend/services/test_agent_repository_service.py960 with patch.object(ars, "_resolve_submitter_email", return_value="admin@example.com"):CODE
LOWtest/backend/services/test_agent_repository_service.py1594 return_value={"user_role": "ADMIN", "user_email": "admin@example.com"},CODE
LOWtest/backend/services/test_agent_repository_service.py1631 return_value={"user_role": "USER", "user_email": "user@example.com"},CODE
LOWtest/backend/services/test_agent_repository_service.py1636 agent_info={"author": "user@example.com"},CODE
LOWtest/backend/services/test_agent_repository_service.py1658 return_value={"user_role": "USER", "user_email": "user@example.com"},CODE
LOWtest/backend/services/test_agent_repository_service.py1664 "author": "user@example.com",CODE
LOWtest/backend/services/test_agent_repository_service.py932 with patch.object(ars, "_resolve_submitter_email", return_value="admin@example.com"):CODE
LOWtest/backend/services/test_agent_repository_service.py976 submitted_by="admin@example.com",CODE
LOWtest/backend/services/test_agent_repository_service.py1735 return_value={"user_role": "ADMIN", "user_email": "admin@example.com"},CODE
LOWtest/backend/services/test_agent_repository_service.py1795 return_value={"user_role": "ADMIN", "user_email": "admin@example.com"},CODE
LOWtest/backend/services/test_user_service.py301 "user_email": "user@example.com",CODE
LOWtest/backend/services/test_user_service.py311 assert result["username"] == "user@example.com"CODE
LOWtest/backend/services/test_user_service.py411 "user_email": "user@example.com",CODE
LOWtest/backend/services/test_user_service.py461 "user_email": "user@example.com",CODE
LOWtest/backend/services/test_user_service.py485 "user_email": "user@example.com",CODE
LOWtest/backend/services/test_skill_repository_service.py235 "user_email": "admin@example.com",CODE
LOW…ckend/services/test_conversation_management_service.py400 "api_key": "fake-key"CODE
LOW…ckend/services/test_conversation_management_service.py1276 self.assertTrue(content["placeholder"])CODE
LOWtest/backend/services/test_cas_service.py94 self.assertEqual(principal.email, "user@example.com")STRING
LOWtest/sdk/core/tools/test_send_email_tool.py35 username="user@example.com",CODE
LOWtest/sdk/core/tools/test_send_email_tool.py49 username="user@example.com",CODE
LOWtest/sdk/core/tools/test_send_email_tool.py58 assert tool.username == "user@example.com"CODE
LOWtest/sdk/core/tools/test_send_email_tool.py69 username="user@example.com",CODE
LOWtest/sdk/core/tools/test_send_email_tool.py19 username="test@test.com",CODE
25 more matches not shown…
Cross-Language Confusion10 hits · 52 pts
SeverityFileLineSnippetContext
HIGHtest/backend/app/test_northbound_app.py548 """Test that omitting model_id (null) preserves the agent's default model behavior."""STRING
HIGHtest/sdk/core/tools/test_ragflow_search_tool.py369 dataset_ids='["ds1", 123, true, null]',CODE
HIGHtest/sdk/core/tools/test_dify_search_tool.py251 dataset_ids='["ds1", 123, true, null]',CODE
HIGHtest/sdk/core/agents/test_nexent_agent.py3358 # 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.py140window.parent && window.parent.postMessage({{ type: "cas-renew-{status}", reason: "{safe_reason}" }}, window.location.orCODE
HIGHbackend/services/idata_service.py168 # Expected format: {"code": "1", "msg": "...", "data": [...], "msgParams": null}COMMENT
HIGHbackend/services/skill_service.py895 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
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 Block33 hits · 30 pts
SeverityFileLineSnippetContext
LOW…[locale]/models/components/model/ModelDeleteDialog.tsx721 (text) =>COMMENT
LOW…p/[locale]/models/components/model/ModelEditDialog.tsx181 ...next,COMMENT
LOW…p/[locale]/models/components/model/ModelEditDialog.tsx981 // Provider-level "bulk apply" capacity panel: shown when the dialog isCOMMENT
LOW…pp/[locale]/models/components/model/ModelAddDialog.tsx561 if (form.isBatchImport) {COMMENT
LOW…pp/[locale]/models/components/model/ModelAddDialog.tsx801 chunk_batch: getChunkingBatchSize(),COMMENT
LOW…ocale]/models/components/model/ModelCapacityFields.tsx281 acceptedSuggestion,COMMENT
LOWtest/backend/__init__.py1# This file marks the test/backend directory as a Python package.COMMENT
LOWtest/backend/utils/test_evaluation_set_excel_utils.py101_xlrd_stub.open_workbook = _StubXlrd.open_workbookCOMMENT
LOWtest/backend/utils/test_auth_utils.py141# used by sibling test files so that imports likeCOMMENT
LOWtest/backend/adapters/test_jiuwen_sdk_adapter.py1361 if name == "openjiuwen":COMMENT
LOW…st/backend/services/test_tool_configuration_service.py481except Exception:COMMENT
LOWtest/sdk/core/agents/test_agent_context/loader.py321# satisfy by pre-loading dependencies into sys.modules first.COMMENT
LOWdeploy/docker/compose/docker-compose.dev.yml1name: nexentCOMMENT
LOWdeploy/docker/compose/docker-compose.dev.yml21# logging:COMMENT
LOWdeploy/docker/compose/docker-compose.dev.yml81# volumes:COMMENT
LOWdeploy/docker/assets/scripts/v180_sync_user_metadata.sh1#!/bin/bashCOMMENT
LOW…loy/docker/assets/scripts/v220_sync_skill_directory.sh1#!/bin/bashCOMMENT
LOW…loy/docker/assets/monitoring/otel-collector-config.yml41 exporters: [debug]COMMENT
LOW…loy/docker/assets/monitoring/otel-collector-config.yml61#COMMENT
LOW…loy/docker/assets/monitoring/otel-collector-config.yml81# LANGSMITH_PROJECT=nexentCOMMENT
LOWdeploy/common/config.example.yaml21# Local development image example:COMMENT
LOWbackend/adapters/jiuwen_sdk_adapter.py21COMMENT
LOWbackend/tool_collection/langchain/compute_tool.py1# from langchain_core.tools import tool, StructuredToolCOMMENT
LOWbackend/tool_collection/langchain/compute_tool.py21# return a * bCOMMENT
LOWbackend/tool_collection/langchain/compute_tool.py41#COMMENT
LOWbackend/tool_collection/langchain/compute_tool.py61# description="Calculate the power of a number",COMMENT
LOWbackend/consts/exceptions.py61COMMENT
LOWbackend/services/agent_evaluation_service.py221 # OpenAI ChatCompletion repr — unwrap the ``message.content`` field.COMMENT
LOWbackend/services/model_provider_service.py101 # consistency of validation and default handling.COMMENT
LOWsdk/benchmark/manual_cases/test_benchmark.py41# with a deduplicated 6-field schema (~620 word budget) that mergesCOMMENT
LOWsdk/ctx_debugger/langfuse_export.py81COMMENT
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 Structural Patterns32 hits · 28 pts
SeverityFileLineSnippetContext
LOWtest/backend/database/test_token_db.py45CODE
LOWtest/backend/app/test_knowledge_summary_app.py133CODE
LOWtest/backend/app/test_skill_app.py67CODE
LOWpathology-ai/code-changes/backend/local_mcp_service.py282CODE
LOWpathology-ai/code-changes/backend/local_mcp_service.py737CODE
LOWbackend/database/a2a_agent_db.py587CODE
LOWbackend/database/community_mcp_db.py118CODE
LOWbackend/utils/context_utils.py1219CODE
LOWbackend/apps/skill_repository_app.py25CODE
LOWbackend/apps/northbound_app.py182CODE
LOWbackend/apps/northbound_base_app.py210CODE
LOWbackend/apps/northbound_base_app.py224CODE
LOWbackend/data_process/tasks.py991CODE
LOWsdk/benchmark/agent_runner.py94CODE
LOWsdk/benchmark/agent_runner.py176CODE
LOWsdk/benchmark/agent_runner.py296CODE
LOWsdk/benchmark/acon_eval/retriever_sesrver.py322CODE
LOWsdk/nexent/monitor/monitoring.py969CODE
LOWsdk/nexent/core/tools/haotian_search_tool.py103CODE
LOWsdk/nexent/core/tools/idata_search_tool.py37CODE
LOWsdk/nexent/core/tools/datamate_search_tool.py76CODE
LOWsdk/nexent/core/tools/ragflow_search_tool.py104CODE
LOWsdk/nexent/core/tools/knowledge_base_search_tool.py85CODE
LOWsdk/nexent/core/tools/dify_search_tool.py68CODE
LOWsdk/nexent/core/tools/terminal_tool.py286CODE
LOWsdk/nexent/core/tools/aidp_search_tool.py144CODE
LOWsdk/nexent/core/tools/send_email_tool.py93CODE
LOWsdk/nexent/core/utils/tools_common_message.py64CODE
LOWsdk/nexent/core/models/ali_tts_model.py39CODE
LOWsdk/nexent/core/models/ali_stt_model.py22CODE
LOWsdk/nexent/core/models/openai_llm.py43CODE
LOWsdk/nexent/core/models/volc_stt_model.py53CODE
AI Slop Vocabulary8 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUM…agents/components/agentConfig/tool/ToolConfigModal.tsx1175 // Use robust ID comparisonCOMMENT
MEDIUM…/components/tool-config/KnowledgeBaseSelectorModal.tsx839 // Use a more robust ID comparison to handle potential format differencesCOMMENT
MEDIUMtest/backend/app/test_mock_user_management_app.py65 """Test user signup endpoint with comprehensive coverage"""STRING
MEDIUMtest/backend/services/test_skill_service.py2734 # Use os.path.commonpath for robust cross-platform comparisonCOMMENT
MEDIUMtest/sdk/core/agents/test_agent_context/loader.py207 # test harness can exercise those code paths.COMMENT
MEDIUMbackend/utils/config_utils.py31 """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
MEDIUMsdk/nexent/skills/skill_manager.py792 # robust against callers that prepend "./scripts/foo.py".COMMENT
Dead Code18 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMtest/backend/app/test_northbound_base_app.py671CODE
MEDIUMtest/backend/services/test_agent_service.py190CODE
MEDIUMtest/backend/services/test_agent_service.py191CODE
MEDIUMtest/backend/services/test_agent_service.py192CODE
MEDIUMtest/backend/services/test_agent_service.py193CODE
MEDIUMtest/backend/services/test_agent_service.py194CODE
MEDIUMtest/backend/services/test_agent_service.py195CODE
MEDIUMtest/backend/services/test_agent_service.py196CODE
MEDIUMtest/backend/services/test_agent_service.py197CODE
MEDIUMtest/backend/services/test_agent_service.py224CODE
MEDIUMtest/backend/services/test_agent_service.py227CODE
MEDIUMtest/backend/services/test_agent_service.py228CODE
MEDIUMtest/backend/services/test_agent_service.py4440CODE
MEDIUMtest/backend/services/test_agent_service.py13601CODE
MEDIUMtest/backend/services/test_agent_service.py13742CODE
MEDIUMtest/backend/services/test_a2a_client_service.py1598CODE
MEDIUMtest/sdk/core/tools/test_knowledge_base_search_tool.py1616CODE
MEDIUMtest/sdk/core/models/test_openai_llm.py1667CODE
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.ts211 // 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.tsx295 // 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.tsx1904 // missing prefix made get_model_by_name_factory return None --COMMENT
Overly Generic Function Names6 hits · 4 pts
SeverityFileLineSnippetContext
LOWtest/backend/utils/test_monitoring.py35 def test_function():CODE
LOWtest/sdk/monitor/test_monitoring.py1021 def test_function(param1, param2="default"):CODE
LOWtest/sdk/monitor/test_monitoring.py1034 async def test_function(param1, param2="default"):CODE
LOWbackend/utils/monitoring.py12 async def my_function():STRING
LOWbackend/services/skill_service.py2544 def run_task():CODE
LOWsdk/nexent/monitor/monitoring.py2668 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