AI Slop Code RIsk Monitor

langgenius/dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

17.1 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for langgenius/dify, a TypeScript project with 158,090 GitHub stars. SynthScan examined 2,452,812 lines of code across 12780 source files, recording 31286 pattern matches distributed across 28 syntactic categories. The legacy adjusted pattern signal is 17.1 (Elevated pattern signal); it is not an authorship estimate.

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

17.1
Adjusted Signal
17.1
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
158.1K
Stars
TypeScript
Language
2.5M
Lines of Code
12.8K
Files
31.3K
Pattern Hits
2026-10-12
Scan Date
0.08
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 39.4/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 17.8/100 · LOW

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

Agent Over-Engineering Ratio 45.5/100 · MEDIUM

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

PR Review Velocity Impact 57.8/100 · HIGH

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 681HIGH 393MEDIUM 1478LOW 28734

Directory Score Breakdown

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

Pattern Findings

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

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers23070 hits · 21979 pts
SeverityFileLineSnippetContext
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py252def _record_operation_failure(CODE
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py688async def _list_owned_inventory_attempt(CODE
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py731async def _require_exact_idle_inventory(CODE
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py1123def test_soak_requires_explicit_enable(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py1129def test_soak_missing_credentials_skip_without_echoing_values(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py1144def test_ledger_redacts_secret_fields_and_values(tmp_path: Path) -> None:CODE
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py1166def test_formal_gate_includes_request_and_reconcile_timeouts(tmp_path: Path) -> None:CODE
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py1187def test_reconcile_timeout_override_must_be_positive(tmp_path: Path) -> None:CODE
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py1234async def test_idle_inventory_requires_exact_paused_identity(tmp_path: Path, mismatch: str) -> None:CODE
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py1265async def test_reconcile_catches_sandbox_with_delayed_visibility(tmp_path: Path) -> None:CODE
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py1304async def test_reconcile_retries_first_list_failure_then_cleans_visible_sandbox(tmp_path: Path) -> None:CODE
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py1353async def test_reconcile_retries_first_kill_failure_and_keeps_ledger_secret_safe(tmp_path: Path) -> None:CODE
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py1403async def test_reconcile_recovers_when_first_final_list_is_slow_and_times_out(tmp_path: Path) -> None:CODE
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py1446async def test_reconcile_bounds_never_returning_inventory_list(tmp_path: Path) -> None:CODE
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py1467async def test_reconcile_bounds_never_returning_kill_batch(tmp_path: Path) -> None:CODE
LOW…ation/dify_agent/storage/test_terminal_finalization.py38def _success_or_failure_event(kind: str, run_id: str) -> RunSucceededEvent | RunFailedEvent:CODE
LOW…ation/dify_agent/storage/test_terminal_finalization.py98def test_success_and_cancel_intent_commit_exactly_one_matching_terminal(redis_url: str) -> None:CODE
LOW…ation/dify_agent/storage/test_terminal_finalization.py157def test_event_stream_is_trimmed_and_keeps_the_terminal_event(redis_url: str) -> None:CODE
LOW…ation/dify_agent/storage/test_terminal_finalization.py202def test_terminal_first_rejects_late_cancellation(redis_url: str, terminal_status: str) -> None:CODE
LOW…ation/dify_agent/storage/test_terminal_finalization.py227def test_cancellation_intent_lifecycle_and_terminal_exclusion(redis_url: str) -> None:CODE
LOW…ation/dify_agent/storage/test_terminal_finalization.py290def test_cancellation_finalization_without_intent_is_unapplied(redis_url: str) -> None:CODE
LOW…ation/dify_agent/storage/test_terminal_finalization.py311def test_classified_failure_persists_matching_record_and_event_error_type(redis_url: str) -> None:CODE
LOW…ation/dify_agent/storage/test_terminal_finalization.py341def test_non_owner_scheduler_cancellation_stops_owner_runner(redis_url: str) -> None:CODE
LOW…ation/dify_agent/storage/test_terminal_finalization.py348 def terminal_session_snapshot(self) -> None:CODE
LOW…dify_agent/runtime_backend/test_working_environment.py58async def test_local_two_agents_share_workspace_but_not_home() -> None:CODE
LOW…dify_agent/runtime_backend/test_working_environment.py232async def test_openshell_binding_checkpoint_and_collection() -> None:CODE
LOWdify-agent/tests/docs/test_examples.py36def test_documentation_examples(example: CodeExample, eval_example: EvalExample) -> None:CODE
LOWdify-agent/tests/docs/test_snippets.py13def test_parse_snippet_directive() -> None:CODE
LOWdify-agent/tests/docs/test_snippets.py22def test_parse_file_sections_and_inject_snippet(tmp_path: Path) -> None:CODE
LOWdify-agent/tests/local/test_packaging.py47def test_project_dependencies_split_client_and_server_requirements() -> None:CODE
LOWdify-agent/tests/local/test_packaging.py56def test_default_package_discovery_excludes_example_packages() -> None:CODE
LOWdify-agent/tests/local/test_packaging.py67def test_project_declares_console_scripts() -> None:CODE
LOW…ent/tests/local/dify_agent/test_client_safe_exports.py11def test_client_public_exports_work_with_default_dependencies_only(tmp_path: Path) -> None:CODE
LOW…agent/tests/local/dify_agent/test_import_boundaries.py79def test_dify_agent_root_import_is_client_safe() -> None:CODE
LOW…agent/tests/local/dify_agent/test_import_boundaries.py102def test_protocol_and_dify_plugin_exports_do_not_import_server_only_modules() -> None:CODE
LOW…agent/tests/local/dify_agent/test_import_boundaries.py143def test_agent_cli_help_import_is_client_safe() -> None:CODE
LOW…agent/tests/local/dify_agent/test_import_boundaries.py217def test_agent_cli_help_render_does_not_load_server_or_cli_modules() -> None:CODE
LOW…agent/tests/local/dify_agent/test_import_boundaries.py247def test_shellctl_client_imports_do_not_import_server_modules() -> None:CODE
LOW…agent/tests/local/dify_agent/test_import_boundaries.py265def test_server_settings_import_does_not_import_agent_stub_app() -> None:CODE
LOW…ests/local/dify_agent/layers/user_prompt/test_layer.py16def test_user_prompt_layer_injects_file_locators(include_image: bool, download_type: str) -> None:CODE
LOW⚡…ests/local/dify_agent/layers/user_prompt/test_layer.py97def test_user_prompt_layer_rejects_invalid_locators(locator: dict[str, str]) -> None:CODE
LOW⚡…ests/local/dify_agent/layers/user_prompt/test_layer.py104def test_user_prompt_layer_preserves_text_without_locators() -> None:CODE
LOW⚡…ests/local/dify_agent/layers/user_prompt/test_layer.py110def test_user_prompt_layer_restores_image_url_content() -> None:CODE
LOW…ests/local/dify_agent/layers/user_prompt/test_layer.py139def test_user_prompt_layer_restores_inline_binary_content() -> None:CODE
LOW…ests/local/dify_agent/layers/user_prompt/test_layer.py187def test_user_prompt_file_requires_exactly_one_transport(file_payload: dict[str, str]) -> None:CODE
LOW…ts/local/dify_agent/layers/dify_plugin/test_configs.py17def test_dify_plugin_package_exports_client_safe_config_symbols_only() -> None:CODE
LOW…ts/local/dify_agent/layers/dify_plugin/test_configs.py33def test_dify_plugin_llm_config_discards_legacy_credentials() -> None:CODE
LOW⚡…ts/local/dify_agent/layers/dify_plugin/test_configs.py52def test_dify_plugin_llm_config_rejects_old_provider_field() -> None:CODE
LOW⚡…ts/local/dify_agent/layers/dify_plugin/test_configs.py59def test_dify_plugin_llm_config_rejects_non_positive_context_window() -> None:CODE
LOW⚡…ts/local/dify_agent/layers/dify_plugin/test_configs.py66def test_dify_plugin_tools_layer_config_accepts_prepared_parameters_and_schema() -> None:CODE
LOW…ts/local/dify_agent/layers/dify_plugin/test_configs.py107def test_dify_plugin_tool_parameter_accepts_api_tool_parameter_dump_shape() -> None:CODE
LOW…ts/local/dify_agent/layers/dify_plugin/test_configs.py132def test_dify_plugin_tool_parameter_accepts_api_tool_parameter_attributes() -> None:CODE
LOW…ts/local/dify_agent/layers/dify_plugin/test_configs.py153def test_dify_plugin_tool_config_rejects_non_json_runtime_parameters() -> None:CODE
LOW…ts/local/dify_agent/layers/dify_plugin/test_configs.py166def test_dify_plugin_tool_config_rejects_non_json_schema_values() -> None:CODE
LOW…ts/local/dify_agent/layers/dify_plugin/test_configs.py179def test_dify_plugin_tool_config_rejects_strict_flag() -> None:CODE
LOW…ts/local/dify_agent/layers/dify_plugin/test_configs.py192def test_dify_plugin_tool_config_requires_explicit_credential_type() -> None:CODE
LOW…sts/local/dify_agent/layers/dify_plugin/test_layers.py27async def test_native_plugin_tool_prepares_schema_merges_hidden_parameters_and_decodes_stream():CODE
LOW…sts/local/dify_agent/layers/dify_plugin/test_layers.py93async def test_native_plugin_tool_converts_file_inputs(value, download):CODE
LOW…sts/local/dify_agent/layers/dify_plugin/test_layers.py144async def test_model_assembly_reads_config_reference_and_borrows_shared_client():CODE
LOW…ent/tests/local/dify_agent/layers/config/test_layer.py18async def test_first_pull_failure_retries_then_current_config_refreshes_without_repull(monkeypatch):CODE
23010 more matches not shown…
Hallucination Indicators681 hits · 7320 pts
SeverityFileLineSnippetContext
CRITICALweb/context/workspace-state.ts10 return consoleQuery.workspaces.current.summary.get.queryOptions({CODE
CRITICALweb/context/permission-state.ts9 return consoleQuery.workspaces.current.rbac.myPermissions.get.queryOptions()CODE
CRITICALweb/app/education/apply/institution-field.tsx42 ...consoleQuery.account.education.autocomplete.get.infiniteOptions({CODE
CRITICAL…nents/snippets/components/hooks/use-snippet-publish.ts33 consoleQuery.workspaces.current.customizedSnippets.bySnippetId.get.key({CODE
CRITICAL…/app/components/snippets/hooks/use-nodes-sync-draft.ts119 const response = await consoleClient.snippets.bySnippetId.workflows.draft.post({CODE
CRITICALweb/app/components/snippets/hooks/use-create-snippet.ts48 await consoleClient.snippets.bySnippetId.workflows.draft.post({CODE
CRITICALweb/app/components/tools/marketplace/hooks.ts18 consoleQuery.workspaces.current.plugin.installedIds.get.queryOptions({CODE
CRITICALweb/app/components/tools/provider/detail.tsx96 consoleQuery.workspaces.current.modelProviders.summary.get.queryOptions({CODE
CRITICAL…pp/components/tools/provider/__tests__/detail.spec.tsx31 queryClient.setQueryData(consoleQuery.workspaces.current.modelProviders.summary.get.queryKey(), {CODE
CRITICAL…omponents/app-sidebar/app-info/use-app-info-actions.ts78 consoleQuery.apps.byAppId.copy.post.mutationOptions(),CODE
CRITICAL⚡web/app/components/api-key/api-key-modal.tsx55 consoleQuery.apps.byResourceId.apiKeys.get.queryOptions({CODE
CRITICAL⚡web/app/components/api-key/api-key-modal.tsx64 consoleQuery.enterprise.appDeploy.accessService.listEnvironmentApiKeys.queryOptions({CODE
CRITICAL⚡web/app/components/api-key/api-key-modal.tsx72 const createAppApiKey = useMutation(consoleQuery.apps.byResourceId.apiKeys.post.mutationOptions())CODE
CRITICAL⚡web/app/components/api-key/api-key-modal.tsx74 consoleQuery.apps.byResourceId.apiKeys.byApiKeyId.delete.mutationOptions(),CODE
CRITICAL⚡web/app/components/api-key/api-key-modal.tsx78 consoleQuery.datasets.apiKeys.byApiKeyId.delete.mutationOptions(),CODE
CRITICAL⚡web/app/components/api-key/api-key-modal.tsx81 consoleQuery.enterprise.appDeploy.accessService.createEnvironmentApiKey.mutationOptions(),CODE
CRITICAL⚡web/app/components/api-key/api-key-modal.tsx84 consoleQuery.enterprise.appDeploy.accessService.deleteEnvironmentApiKey.mutationOptions(),CODE
CRITICALweb/app/components/app/use-export-app-dsl.ts44 const { items } = await consoleClient.apps.byAppId.workflows.draft.environmentVariables.get(CODE
CRITICAL…nfiguration-lifecycle/use-configuration-app-context.ts35 consoleQuery.apps.byAppId.modelConfig.post.mutationOptions({CODE
CRITICAL…/configuration/dataset-config/settings-modal/index.tsx59 consoleQuery.workspaces.current.models.modelTypes.byModelType.get.queryOptions({CODE
CRITICAL…/configuration/dataset-config/settings-modal/index.tsx65 consoleQuery.workspaces.current.models.modelTypes.byModelType.get.queryOptions({CODE
CRITICALweb/app/components/app/configuration/debug/index.tsx355 consoleQuery.workspaces.current.models.modelTypes.byModelType.get.queryOptions({CODE
CRITICAL…bug/debug-with-multiple-model/text-generation-item.tsx45 consoleQuery.workspaces.current.models.modelTypes.byModelType.get.queryOptions({CODE
CRITICAL…/debug-with-multiple-model/model-parameter-trigger.tsx40 ...consoleQuery.workspaces.current.modelProviders.summary.get.queryOptions(),CODE
CRITICAL…guration/debug/debug-with-multiple-model/chat-item.tsx48 consoleQuery.workspaces.current.models.modelTypes.byModelType.get.queryOptions({CODE
CRITICAL…uration/debug/debug-with-multiple-model/debug-item.tsx37 consoleQuery.workspaces.current.models.modelTypes.byModelType.get.queryOptions({CODE
CRITICALweb/app/components/app/deploy/state.ts157 return consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
CRITICALweb/app/components/app/deploy/state.ts207 return consoleQuery.enterprise.appDeploy.deploymentService.listEnvironmentDeployments.queryOptions(CODE
CRITICAL…y/shared/deployment-configuration/use-provider-icon.ts43 consoleQuery.rag.pipelines.datasourcePlugins.get.queryOptions({CODE
CRITICAL…-configuration/use-deployment-configuration-queries.ts28 consoleQuery.enterprise.appDeploy.deploymentService.precheckWorkflowDeployment.queryOptions({CODE
CRITICAL…-configuration/use-deployment-configuration-queries.ts49 consoleQuery.enterprise.appDeploy.deploymentService.getWorkflowDeploymentOptions.queryOptions({CODE
CRITICAL…ent-configuration/__tests__/use-provider-icon.spec.tsx62 client.getQueryData(consoleQuery.rag.pipelines.datasourcePlugins.get.queryKey()),CODE
CRITICAL⚡web/app/components/app/deploy/__tests__/index.spec.tsx575 consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
CRITICAL⚡web/app/components/app/deploy/__tests__/index.spec.tsx583 consoleQuery.enterprise.appDeploy.deploymentService.listEnvironmentDeployments.queryOptions({CODE
CRITICAL⚡web/app/components/app/deploy/__tests__/index.spec.tsx594 return consoleQuery.enterprise.appDeploy.deploymentService.precheckWorkflowDeployment.queryOptions(CODE
CRITICALweb/app/components/app/deploy/__tests__/index.spec.tsx608 return consoleQuery.enterprise.appDeploy.deploymentService.getWorkflowDeploymentOptions.queryOptions(CODE
CRITICAL…p/components/app/deploy/hooks/use-undeploy-workflow.ts13 consoleQuery.enterprise.appDeploy.deploymentService.undeployWorkflow.mutationOptions(),CODE
CRITICAL…app/components/app/deploy/hooks/use-deploy-workflow.ts18 consoleQuery.enterprise.appDeploy.deploymentService.deployWorkflow.mutationOptions()CODE
CRITICAL…app/components/app/deploy/hooks/use-deploy-workflow.ts28 consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
CRITICAL⚡…e-refresh-app-environments-after-deployment-polling.ts14 consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
CRITICAL⚡…e-refresh-app-environments-after-deployment-polling.ts22 consoleQuery.enterprise.appDeploy.deploymentService.listEnvironmentDeployments.queryOptions({CODE
CRITICALweb/app/components/app/switch-app-modal/index.tsx82 consoleQuery.apps.byAppId.convertToWorkflow.post.mutationOptions(),CODE
CRITICAL…pp/components/app/create-app-dialog/app-list/index.tsx148 ...consoleQuery.explore.apps.byAppId.get.queryOptions({CODE
CRITICAL…pp/create-app-dialog/app-list/__tests__/index.spec.tsx224 consoleQuery.explore.apps.byAppId.get.queryKey({CODE
CRITICALweb/app/components/app/app-publisher/state.ts96 return consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
CRITICALweb/app/components/app/app-publisher/state.ts246 return consoleQuery.enterprise.appDeploy.deploymentService.listEnvironmentDeployments.queryOptions(CODE
CRITICALweb/app/components/app/app-publisher/state.ts303 return consoleQuery.enterprise.appDeploy.deploymentService.getEnvironmentDeployment.queryOptions({CODE
CRITICAL…ents/app/app-publisher/publish-with-multiple-model.tsx36 consoleQuery.workspaces.current.models.modelTypes.byModelType.get.queryOptions({CODE
CRITICAL…-publisher/publisher-content/use-publish-controller.ts37 consoleQuery.enterprise.appDeploy.deploymentService.listEnvironmentDeployments.queryOptions({CODE
CRITICAL…blisher/__tests__/environment-deployment-flow.spec.tsx192 consoleQuery.enterprise.appDeploy.deploymentService.precheckWorkflowDeployment.queryOptions({CODE
CRITICAL…blisher/__tests__/environment-deployment-flow.spec.tsx202 consoleQuery.enterprise.appDeploy.deploymentService.getWorkflowDeploymentOptions.queryOptions(CODE
CRITICAL…blisher/__tests__/environment-deployment-flow.spec.tsx228 consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
CRITICAL⚡…blisher/__tests__/environment-deployment-flow.spec.tsx252 const latestPublishedWorkflowQuery = consoleQuery.apps.byAppId.workflows.publish.get.queryOptions(CODE
CRITICAL⚡…blisher/__tests__/environment-deployment-flow.spec.tsx261 const workflowVersionsQuery = consoleQuery.apps.byAppId.workflows.get.infiniteOptions({CODE
CRITICAL…blisher/__tests__/environment-deployment-flow.spec.tsx725 consoleQuery.enterprise.appDeploy.deploymentService.getWorkflowDeploymentOptions.queryOptions(CODE
CRITICAL…blisher/__tests__/environment-deployment-flow.spec.tsx773 consoleQuery.enterprise.appDeploy.deploymentService.precheckWorkflowDeployment.queryOptions({CODE
CRITICAL…/components/app/app-publisher/__tests__/index.spec.tsx354 consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
CRITICAL…/components/app/app-publisher/__tests__/index.spec.tsx377 consoleQuery.enterprise.appDeploy.deploymentService.listEnvironmentDeployments.queryOptions({CODE
CRITICAL…/components/app/app-publisher/__tests__/index.spec.tsx487 consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
CRITICAL…/components/app/app-publisher/__tests__/index.spec.tsx588 consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
621 more matches not shown…
Decorative Section Separators1117 hits · 4120 pts
SeverityFileLineSnippetContext
MEDIUM⚡docker/docker-compose.yaml1# ==================================================================COMMENT
MEDIUM⚡docker/docker-compose.yaml5# ==================================================================COMMENT
MEDIUMdocker/dify-env-sync.py3# ================================================================COMMENT
MEDIUMdocker/dify-env-sync.py12# ================================================================COMMENT
MEDIUMdocker/dify-env-sync.sh3# ================================================================COMMENT
MEDIUMdocker/dify-env-sync.sh12# ================================================================COMMENT
MEDIUMdocker/ssrf_proxy/test_ssrf_proxy_config.sh185# ---------------------------------------------------------------------------COMMENT
MEDIUMdocker/ssrf_proxy/test_ssrf_proxy_config.sh187# ---------------------------------------------------------------------------COMMENT
MEDIUM…gent/tests/local/dify_agent/layers/shell/test_layer.py1040# ---------------------------------------------------------------------------COMMENT
MEDIUM…gent/tests/local/dify_agent/layers/shell/test_layer.py1042# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡sdks/nodejs-client/scripts/publish.sh4# ================================COMMENT
MEDIUM⚡sdks/nodejs-client/scripts/publish.sh17# ============================================================================COMMENT
MEDIUM⚡sdks/nodejs-client/scripts/publish.sh19# ============================================================================COMMENT
MEDIUM⚡sdks/nodejs-client/scripts/publish.sh126 # ========================================================================COMMENT
MEDIUM⚡sdks/nodejs-client/scripts/publish.sh128 # ========================================================================COMMENT
MEDIUM⚡sdks/nodejs-client/scripts/publish.sh163 # ========================================================================COMMENT
MEDIUM⚡sdks/nodejs-client/scripts/publish.sh165 # ========================================================================COMMENT
MEDIUM⚡sdks/nodejs-client/scripts/publish.sh186 # ========================================================================COMMENT
MEDIUM⚡sdks/nodejs-client/scripts/publish.sh188 # ========================================================================COMMENT
MEDIUM⚡sdks/nodejs-client/scripts/publish.sh194 # ========================================================================COMMENT
MEDIUM⚡sdks/nodejs-client/scripts/publish.sh196 # ========================================================================COMMENT
MEDIUM⚡sdks/nodejs-client/scripts/publish.sh206 # ========================================================================COMMENT
MEDIUM⚡sdks/nodejs-client/scripts/publish.sh208 # ========================================================================COMMENT
MEDIUM⚡sdks/nodejs-client/scripts/publish.sh228 # ========================================================================COMMENT
MEDIUM⚡sdks/nodejs-client/scripts/publish.sh230 # ========================================================================COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh30# ============================================================================COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh32# ============================================================================COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh82# ============================================================================COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh84# ============================================================================COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh113# ============================================================================COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh115# ============================================================================COMMENT
MEDIUM…app/components/base/chat/chat/__tests__/index.spec.tsx9// ─── Why each mock exists ─────────────────────────────────────────────────────COMMENT
MEDIUM…app/components/base/chat/chat/__tests__/index.spec.tsx22// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…app/components/base/chat/chat/__tests__/index.spec.tsx87// ─── ResizeObserver capture ───────────────────────────────────────────────────COMMENT
MEDIUM…app/components/base/chat/chat/__tests__/index.spec.tsx100// ─── Factories ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…app/components/base/chat/chat/__tests__/index.spec.tsx111// ─── Suite ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ents/base/audio-gallery/__tests__/AudioPlayer.spec.tsx11// ─── Helpers ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ents/base/audio-gallery/__tests__/AudioPlayer.spec.tsx58// ─── Setup / teardown ─────────────────────────────────────────────────────────COMMENT
MEDIUM…ents/base/audio-gallery/__tests__/AudioPlayer.spec.tsx79// ─── Rendering ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ents/base/audio-gallery/__tests__/AudioPlayer.spec.tsx100// ─── Play / Pause toggle ──────────────────────────────────────────────────────COMMENT
MEDIUM…ents/base/audio-gallery/__tests__/AudioPlayer.spec.tsx174// ─── Audio events ─────────────────────────────────────────────────────────────COMMENT
MEDIUM…ents/base/audio-gallery/__tests__/AudioPlayer.spec.tsx225// ─── Waveform generation ──────────────────────────────────────────────────────COMMENT
MEDIUM…ents/base/audio-gallery/__tests__/AudioPlayer.spec.tsx331// ─── Canvas interactions ──────────────────────────────────────────────────────COMMENT
MEDIUM…ents/base/audio-gallery/__tests__/AudioPlayer.spec.tsx425// ─── Missing coverage tests ───────────────────────────────────────────────────COMMENT
MEDIUM…lugins/component-picker-block/__tests__/index.spec.tsx72// ─── Typed factories (no `any` / `never`) ────────────────────────────────────COMMENT
MEDIUM…lugins/component-picker-block/__tests__/index.spec.tsx115// ─── Test harness ────────────────────────────────────────────────────────────COMMENT
MEDIUM…lugins/component-picker-block/__tests__/index.spec.tsx286// ─── Tests ───────────────────────────────────────────────────────────────────COMMENT
MEDIUM…lugins/component-picker-block/__tests__/hooks.spec.tsx26// ─── Helpers ─────────────────────────────────────────────────────────────────COMMENT
MEDIUM…lugins/component-picker-block/__tests__/hooks.spec.tsx50// ─── Factory helpers (typed, no `any` / `never`) ─────────────────────────────COMMENT
MEDIUM…lugins/component-picker-block/__tests__/hooks.spec.tsx101// ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUM…lugins/component-picker-block/__tests__/hooks.spec.tsx103// ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUM…lugins/component-picker-block/__tests__/hooks.spec.tsx373// ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUM…lugins/component-picker-block/__tests__/hooks.spec.tsx375// ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUM…lugins/component-picker-block/__tests__/hooks.spec.tsx514// ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUM…lugins/component-picker-block/__tests__/hooks.spec.tsx516// ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUM…lugins/component-picker-block/__tests__/hooks.spec.tsx659// ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUM…lugins/component-picker-block/__tests__/hooks.spec.tsx661// ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMweb/__tests__/billing/self-hosted-plan-flow.test.tsx30 // ─── 1. Plan Rendering ──────────────────────────────────────────────────COMMENT
MEDIUMweb/__tests__/billing/self-hosted-plan-flow.test.tsx52 // ─── 2. Navigation Flow ─────────────────────────────────────────────────COMMENT
MEDIUMweb/__tests__/billing/billing-integration.test.tsx77// ─── Navigation mocks ───────────────────────────────────────────────────────COMMENT
1057 more matches not shown…
Unused Imports1692 hits · 1463 pts
SeverityFileLineSnippetContext
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py13CODE
LOW…dify_agent/runtime_backend/test_working_environment.py3CODE
LOWdify-agent/tests/docs/test_examples.py1CODE
LOWdify-agent/tests/docs/test_snippets.py1CODE
LOWdify-agent/tests/local/test_packaging.py1CODE
LOW…ent/tests/local/dify_agent/test_client_safe_exports.py1CODE
LOW…agent/tests/local/dify_agent/test_import_boundaries.py1CODE
LOW…ests/local/dify_agent/layers/user_prompt/test_layer.py1CODE
LOW…gent/tests/local/dify_agent/layers/shell/test_layer.py1CODE
LOW…dify_agent/agent_stub/server/test_agent_stub_config.py1CODE
LOW…ests/local/dify_agent/agent_stub/server/test_router.py1CODE
LOW…/dify_agent/agent_stub/server/test_agent_stub_files.py1CODE
LOW…al/dify_agent/agent_stub/server/test_agent_stub_app.py1CODE
LOW…dify_agent/agent_stub/server/test_agent_stub_routes.py1CODE
LOW…t/tests/local/dify_agent/agent_stub/server/test_cli.py1CODE
LOW…dify_agent/agent_stub/server/tokens/test_agent_stub.py1CODE
LOW…_agent/agent_stub/protocol/test_agent_stub_protocol.py1CODE
LOW…s/local/dify_agent/runtime/test_agent_observability.py3CODE
LOW…/tests/local/dify_agent/runtime/test_command_runner.py1CODE
LOW…ts/local/dify_agent/server/test_e2b_usage_collector.py1CODE
LOW…ocal/dify_agent/server/test_observability_isolation.py3CODE
LOW…nt/tests/local/dify_agent/server/test_observability.py1CODE
LOW…t/tests/local/dify_agent/server/test_home_snapshots.py1CODE
LOW…nt/tests/local/dify_agent/server/test_binding_files.py1CODE
LOW…/tests/local/dify_agent/server/test_e2b_usage_route.py1CODE
LOW…tests/local/dify_agent/server/test_e2b_usage_client.py1CODE
LOWdify-agent/tests/local/dify_agent/server/test_app.py1CODE
LOW…y-agent/tests/local/dify_agent/server/test_settings.py1CODE
LOW…t/tests/local/dify_agent/adapters/shell/test_config.py3CODE
LOW…tests/local/dify_agent/adapters/shell/test_shellctl.py3CODE
LOWdify-agent/tests/local/dify_agent/client/test_client.py1CODE
LOW…/dify_agent/runtime_backend/test_enterprise_backend.py1CODE
LOW…al/dify_agent/runtime_backend/test_shellctl_backend.py1CODE
LOW…sts/local/dify_agent/runtime_backend/test_openshell.py1CODE
LOW…ent/tests/local/dify_agent/runtime_backend/test_e2b.py1CODE
LOW…al/dify_agent/runtime_backend/test_openshell_tunnel.py1CODE
LOW…tests/local/dify_agent/runtime_backend/test_profile.py1CODE
LOW…t/tests/local/dify_agent/runtime_backend/test_local.py1CODE
LOW…agent/tests/local/examples/test_dify_agent_examples.py1CODE
LOWdify-agent/docs/.hooks/snippets.py1CODE
LOWdify-agent/docs/.hooks/main.py1CODE
LOW…ify_agent/dify_agent_examples/run_pydantic_ai_agent.py16CODE
LOW…nt/examples/dify_agent/dify_agent_examples/__main__.py3CODE
LOWdify-agent/src/dify_agent/plugin_daemon_transport.py8CODE
LOWdify-agent/src/dify_agent/__init__.py8CODE
LOWdify-agent/src/dify_agent/layers/_agent_cli_help.py3CODE
LOWdify-agent/src/dify_agent/layers/user_prompt/configs.py3CODE
LOW…fy-agent/src/dify_agent/layers/user_prompt/__init__.py3CODE
LOW…fy-agent/src/dify_agent/layers/user_prompt/__init__.py3CODE
LOW…fy-agent/src/dify_agent/layers/user_prompt/__init__.py3CODE
LOW…fy-agent/src/dify_agent/layers/user_prompt/__init__.py3CODE
LOW…fy-agent/src/dify_agent/layers/user_prompt/__init__.py3CODE
LOWdify-agent/src/dify_agent/layers/user_prompt/layer.py3CODE
LOW…agent/src/dify_agent/layers/dify_plugin/tools_layer.py14CODE
LOW…fy-agent/src/dify_agent/layers/dify_plugin/__init__.py7CODE
LOW…fy-agent/src/dify_agent/layers/dify_plugin/__init__.py7CODE
LOW…fy-agent/src/dify_agent/layers/dify_plugin/__init__.py7CODE
LOW…fy-agent/src/dify_agent/layers/dify_plugin/__init__.py7CODE
LOW…fy-agent/src/dify_agent/layers/dify_plugin/__init__.py7CODE
LOW…fy-agent/src/dify_agent/layers/dify_plugin/__init__.py7CODE
1632 more matches not shown…
Excessive Try-Catch Wrapping1362 hits · 1382 pts
SeverityFileLineSnippetContext
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py706 except Exception as exc:CODE
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py864 except Exception as exc:CODE
MEDIUM…nt/examples/dify_agent/dify_agent_examples/__main__.py37 print(f'Error: destination path "{destination}" already exists', file=sys.stderr)CODE
LOW…agent/src/dify_agent/layers/dify_plugin/tool_client.py124 except Exception:CODE
LOWdify-agent/src/dify_agent/layers/shell/layer.py355 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/layers/shell/layer.py389 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/layers/shell/layer.py423 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/layers/shell/layer.py451 except Exception:CODE
LOWdify-agent/src/dify_agent/layers/shell/layer.py468 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime/runner.py195 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime/run_scheduler.py209 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime/run_scheduler.py241 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime/run_scheduler.py281 except Exception:CODE
LOWdify-agent/src/dify_agent/runtime/run_scheduler.py349 except Exception:CODE
LOWdify-agent/src/dify_agent/server/binding_files.py190 except Exception as exc:STRING
LOWdify-agent/src/dify_agent/server/binding_files.py218 except Exception as exc:STRING
LOWdify-agent/src/dify_agent/server/binding_files.py279 except Exception as exc:STRING
LOWdify-agent/src/dify_agent/server/routes/e2b_usage.py95 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime_backend/local.py200 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime_backend/e2b.py228 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime_backend/e2b.py291 except Exception as cleanup_exc:CODE
LOWdify-agent/src/dify_agent/runtime_backend/e2b.py341 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime_backend/e2b.py360 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime_backend/e2b.py395 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime_backend/shellctl.py139 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime_backend/openshell.py489 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime_backend/openshell.py608 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime_backend/openshell.py613 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime_backend/openshell.py630 except Exception as exc:CODE
LOW…ent/src/dify_agent/runtime_backend/openshell_tunnel.py151 except Exception:CODE
LOW…ent/src/dify_agent/runtime_backend/openshell_tunnel.py173 except Exception:CODE
LOWdify-agent/src/dify_agent/runtime_backend/enterprise.py265 except Exception as exc:CODE
LOWscripts/stress-test/run_locust_stress_test.sh228except Exception as e:CODE
LOWscripts/stress-test/setup_all.py90 except Exception as e:CODE
LOWscripts/stress-test/setup_all.py109 except Exception as e:CODE
LOWscripts/stress-test/cleanup.py83 except Exception as e:CODE
LOWscripts/stress-test/sse_benchmark.py508 except Exception as e:CODE
LOWscripts/stress-test/sse_benchmark.py533 except Exception as e:CODE
LOWscripts/stress-test/setup/install_openai_plugin.py166 except Exception as e:CODE
LOWscripts/stress-test/setup/login_admin.py105 except Exception as e:CODE
LOWscripts/stress-test/setup/import_workflow_app.py131 except Exception as e:CODE
LOWscripts/stress-test/setup/configure_openai_plugin.py97 except Exception as e:CODE
LOWscripts/stress-test/setup/create_api_key.py114 except Exception as e:CODE
LOWscripts/stress-test/setup/publish_workflow.py105 except Exception as e:CODE
LOWscripts/stress-test/setup/setup_admin.py75 except Exception as e:CODE
LOWscripts/stress-test/setup/run_workflow.py150 except Exception as e:CODE
LOWapi/app_factory.py125 except Exception:CODE
LOWapi/app_factory.py149 except Exception:CODE
MEDIUMapi/app_factory.py135def add_trace_headers(response):CODE
LOWapi/clients/agent_backend/client.py122 except Exception as exc:CODE
LOWapi/clients/agent_backend/client.py129 except Exception as exc:CODE
LOWapi/clients/agent_backend/client.py142 except Exception as exc:CODE
LOW⚡api/clients/agent_backend/client.py160 except Exception as exc:CODE
LOW⚡api/clients/agent_backend/client.py167 except Exception as exc:CODE
LOWapi/schedule/update_api_token_last_used_task.py104 except Exception:CODE
LOWapi/schedule/mail_clean_document_notify_task.py100 except Exception:CODE
LOWapi/schedule/update_tidb_serverless_status_task.py32 except Exception as e:CODE
LOWapi/schedule/update_tidb_serverless_status_task.py53 except Exception as e:CODE
LOWapi/schedule/clean_workflow_runlogs_precise.py98 except Exception:CODE
LOWapi/schedule/clean_workflow_runlogs_precise.py167 except Exception:CODE
1302 more matches not shown…
Cross-File Repetition182 hits · 910 pts
SeverityFileLineSnippetContext
HIGHapi/tasks/workflow_draft_var_tasks.py0celery tasks for asynchronous workflow node execution storage operations. these tasks provide asynchronous storage capabSTRING
HIGHapi/tasks/workflow_execution_tasks.py0celery tasks for asynchronous workflow node execution storage operations. these tasks provide asynchronous storage capabSTRING
HIGHapi/tasks/workflow_node_execution_tasks.py0celery tasks for asynchronous workflow node execution storage operations. these tasks provide asynchronous storage capabSTRING
HIGHapi/core/provider_manager.py0extract secret input form variables. :param credential_form_schemas: :return:STRING
HIGHapi/core/entities/provider_configuration.py0extract secret input form variables. :param credential_form_schemas: :return:STRING
HIGHapi/services/data_source/provider_service.py0extract secret input form variables. :param credential_form_schemas: :return:STRING
HIGHapi/core/datasource/entities/datasource_entities.py0get value of given mode. :param value: mode value :return: modeSTRING
HIGHapi/core/tools/entities/tool_entities.py0get value of given mode. :param value: mode value :return: modeSTRING
HIGHapi/core/app/app_config/entities.py0get value of given mode. :param value: mode value :return: modeSTRING
HIGHapi/core/entities/provider_entities.py0get value of given mode. :param value: mode value :return: modeSTRING
HIGHapi/models/model.py0get value of given mode. :param value: mode value :return: modeSTRING
HIGHapi/models/workflow.py0get value of given mode. :param value: mode value :return: modeSTRING
HIGHapi/core/tools/workflow_as_tool/tool.py0fork a new tool with metadata :return: the new toolSTRING
HIGHapi/core/tools/__base/tool.py0fork a new tool with metadata :return: the new toolSTRING
HIGHapi/core/tools/custom_tool/tool.py0fork a new tool with metadata :return: the new toolSTRING
HIGHapi/core/tools/builtin_tool/tool.py0fork a new tool with metadata :return: the new toolSTRING
HIGHapi/core/tools/plugin_tool/provider.py0returns the type of the provider :return: type of the providerSTRING
HIGHapi/core/tools/__base/tool_provider.py0returns the type of the provider :return: type of the providerSTRING
HIGHapi/core/tools/mcp_tool/provider.py0returns the type of the provider :return: type of the providerSTRING
HIGHapi/core/tools/builtin_tool/provider.py0returns the type of the provider :return: type of the providerSTRING
HIGH…/task_pipeline/easy_ui_based_generate_task_pipeline.py0advancedchatappgeneratetaskpipeline is a class that generate stream output and state management for application.STRING
HIGHapi/core/app/apps/workflow/generate_task_pipeline.py0advancedchatappgeneratetaskpipeline is a class that generate stream output and state management for application.STRING
HIGH…/core/app/apps/advanced_chat/generate_task_pipeline.py0advancedchatappgeneratetaskpipeline is a class that generate stream output and state management for application.STRING
HIGH…e/app/app_config/features/opening_statement/manager.py0convert model config to model config :param config: model config argsSTRING
HIGH…core/app/app_config/features/speech_to_text/manager.py0convert model config to model config :param config: model config argsSTRING
HIGH…g/features/suggested_questions_after_answer/manager.py0convert model config to model config :param config: model config argsSTRING
HIGH…core/app/app_config/features/more_like_this/manager.py0convert model config to model config :param config: model config argsSTRING
HIGH…core/app/app_config/features/text_to_speech/manager.py0convert model config to model config :param config: model config argsSTRING
HIGH…p/app_config/easy_ui_based_app/model_config/manager.py0convert model config to model config :param config: model config argsSTRING
HIGH…re/app/app_config/easy_ui_based_app/dataset/manager.py0convert model config to model config :param config: model config argsSTRING
HIGH…core/app/app_config/easy_ui_based_app/agent/manager.py0convert model config to model config :param config: model config argsSTRING
HIGH…/app/app_config/easy_ui_based_app/variables/manager.py0convert model config to model config :param config: model config argsSTRING
HIGHapi/core/app/apps/base_app_queue_manager.py0publish event to queue :param event: :param pub_from: :return:STRING
HIGHapi/core/app/apps/message_based_app_queue_manager.py0publish event to queue :param event: :param pub_from: :return:STRING
HIGHapi/core/app/apps/pipeline/pipeline_queue_manager.py0publish event to queue :param event: :param pub_from: :return:STRING
HIGHapi/core/app/apps/workflow/app_queue_manager.py0publish event to queue :param event: :param pub_from: :return:STRING
HIGHapi/core/app/apps/pipeline/pipeline_generator.py0generate app response. :param app_model: app :param workflow: workflow :param node_id: the node id :param user: account STRING
HIGHapi/core/app/apps/workflow/app_generator.py0generate app response. :param app_model: app :param workflow: workflow :param node_id: the node id :param user: account STRING
HIGHapi/core/app/apps/advanced_chat/app_generator.py0generate app response. :param app_model: app :param workflow: workflow :param node_id: the node id :param user: account STRING
HIGH…/core/app/apps/pipeline/generate_response_converter.py0convert blocking full response. :param blocking_response: blocking response :return:STRING
HIGHapi/core/app/apps/chat/generate_response_converter.py0convert blocking full response. :param blocking_response: blocking response :return:STRING
HIGH…ore/app/apps/completion/generate_response_converter.py0convert blocking full response. :param blocking_response: blocking response :return:STRING
HIGH…/core/app/apps/workflow/generate_response_converter.py0convert blocking full response. :param blocking_response: blocking response :return:STRING
HIGH…/app/apps/advanced_chat/generate_response_converter.py0convert blocking full response. :param blocking_response: blocking response :return:STRING
HIGH…ore/app/apps/agent_chat/generate_response_converter.py0convert blocking full response. :param blocking_response: blocking response :return:STRING
HIGH…/core/app/apps/pipeline/generate_response_converter.py0convert blocking simple response. :param blocking_response: blocking response :return:STRING
HIGHapi/core/app/apps/chat/generate_response_converter.py0convert blocking simple response. :param blocking_response: blocking response :return:STRING
HIGH…ore/app/apps/completion/generate_response_converter.py0convert blocking simple response. :param blocking_response: blocking response :return:STRING
HIGH…/core/app/apps/workflow/generate_response_converter.py0convert blocking simple response. :param blocking_response: blocking response :return:STRING
HIGH…/app/apps/advanced_chat/generate_response_converter.py0convert blocking simple response. :param blocking_response: blocking response :return:STRING
HIGH…ore/app/apps/agent_chat/generate_response_converter.py0convert blocking simple response. :param blocking_response: blocking response :return:STRING
HIGH…/core/app/apps/pipeline/generate_response_converter.py0convert stream full response. :param stream_response: stream response :return:STRING
HIGHapi/core/app/apps/chat/generate_response_converter.py0convert stream full response. :param stream_response: stream response :return:STRING
HIGH…ore/app/apps/completion/generate_response_converter.py0convert stream full response. :param stream_response: stream response :return:STRING
HIGH…/core/app/apps/workflow/generate_response_converter.py0convert stream full response. :param stream_response: stream response :return:STRING
HIGH…/app/apps/advanced_chat/generate_response_converter.py0convert stream full response. :param stream_response: stream response :return:STRING
HIGH…ore/app/apps/agent_chat/generate_response_converter.py0convert stream full response. :param stream_response: stream response :return:STRING
HIGH…/core/app/apps/pipeline/generate_response_converter.py0convert stream simple response. :param stream_response: stream response :return:STRING
HIGHapi/core/app/apps/chat/generate_response_converter.py0convert stream simple response. :param stream_response: stream response :return:STRING
HIGH…ore/app/apps/completion/generate_response_converter.py0convert stream simple response. :param stream_response: stream response :return:STRING
122 more matches not shown…
Modern Structural Boilerplate817 hits · 829 pts
SeverityFileLineSnippetContext
LOWdify-agent/src/dify_agent/plugin_daemon_transport.py67__all__ = [CODE
LOWdify-agent/src/dify_agent/__init__.py24__all__ = ["Client"]CODE
LOWdify-agent/src/dify_agent/layers/_agent_cli_help.py28__all__ = ["render_agent_stub_cli_help"]CODE
LOWdify-agent/src/dify_agent/layers/user_prompt/configs.py80__all__ = [CODE
LOW…fy-agent/src/dify_agent/layers/user_prompt/__init__.py11__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/user_prompt/layer.py92__all__ = ["Config", "State", "Capability"]CODE
LOWdify-agent/src/dify_agent/layers/dify_plugin/configs.py176__all__ = [CODE
LOW…agent/src/dify_agent/layers/dify_plugin/tools_layer.py644__all__ = ["Config", "State", "Toolset"]CODE
LOW…fy-agent/src/dify_agent/layers/dify_plugin/__init__.py20__all__ = [CODE
LOW…agent/src/dify_agent/layers/dify_plugin/tool_client.py327__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/config/configs.py65__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/config/__init__.py11__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/config/layer.py293__all__ = ["Config", "State", "Capability", "DifyConfigLayerError"]CODE
LOWdify-agent/src/dify_agent/layers/shell/output_text.py55__all__ = ["normalized_output_text", "utf8_prefix", "utf8_suffix"]CODE
LOWdify-agent/src/dify_agent/layers/shell/configs.py81__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/shell/__init__.py15__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/shell/layer.py37logger = logging.getLogger(__name__)CODE
LOWdify-agent/src/dify_agent/layers/shell/layer.py764__all__ = [CODE
LOW…gent/src/dify_agent/layers/dify_core_tools/__init__.py9__all__ = [CODE
LOW…y-agent/src/dify_agent/layers/dify_core_tools/layer.py132__all__ = ["Config", "State", "Toolset"]CODE
LOWdify-agent/src/dify_agent/layers/runtime/configs.py14__all__ = ["DifyRuntimeLayerConfig"]CODE
LOWdify-agent/src/dify_agent/layers/runtime/__init__.py3__all__ = ["DifyRuntimeLayerConfig"]CODE
LOWdify-agent/src/dify_agent/layers/output/configs.py46__all__ = ["DifyOutputLayerConfig"]CODE
LOWdify-agent/src/dify_agent/layers/output/__init__.py10__all__ = ["DifyOutputLayerConfig"]CODE
LOWdify-agent/src/dify_agent/layers/output/output_layer.py309__all__ = ["DifyOutputContract", "Config", "State", "Capability"]CODE
LOWdify-agent/src/dify_agent/layers/prompt/__init__.py5__all__ = ["Config"]CODE
LOWdify-agent/src/dify_agent/layers/knowledge/configs.py279__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/knowledge/client.py213__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/knowledge/__init__.py22__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/knowledge/layer.py43logger = logging.getLogger(__name__)CODE
LOWdify-agent/src/dify_agent/layers/knowledge/layer.py506__all__ = [CODE
LOW…ent/src/dify_agent/layers/execution_context/configs.py62__all__ = [CODE
LOW…nt/src/dify_agent/layers/execution_context/__init__.py17__all__ = [CODE
LOWdify-agent/src/dify_agent/agent_stub/shell_env.py43__all__ = [CODE
LOW⚡…gent/src/dify_agent/agent_stub/server/control_plane.py204__all__ = [CODE
LOW…/src/dify_agent/agent_stub/server/agent_stub_config.py271__all__ = [CODE
LOW…t/src/dify_agent/agent_stub/server/agent_stub_files.py273__all__ = [CODE
LOWdify-agent/src/dify_agent/agent_stub/server/cli.py36__all__ = ["main"]CODE
LOWdify-agent/src/dify_agent/agent_stub/server/app.py35__all__ = ["app", "create_agent_stub_app"]CODE
LOWdify-agent/src/dify_agent/agent_stub/server/router.py35__all__ = ["create_agent_stub_router"]CODE
LOW…/src/dify_agent/agent_stub/server/tokens/agent_stub.py251__all__ = [CODE
LOW…nt/src/dify_agent/agent_stub/server/tokens/__init__.py17__all__ = [CODE
LOW…/src/dify_agent/agent_stub/server/routes/agent_stub.py132__all__ = ["create_agent_stub_http_router"]CODE
LOW…nt/src/dify_agent/agent_stub/server/routes/__init__.py5__all__ = ["create_agent_stub_http_router"]CODE
LOW…agent/src/dify_agent/agent_stub/protocol/agent_stub.py337__all__ = [CODE
LOW…y-agent/src/dify_agent/agent_stub/protocol/__init__.py41__all__ = [CODE
LOWdify-agent/src/dify_agent/runtime/event_sink.py194__all__ = [CODE
LOWdify-agent/src/dify_agent/runtime/runner.py347__all__ = ["AgentRunRunner", "AgentRunValidationError"]CODE
LOWdify-agent/src/dify_agent/runtime/cancellation.py19__all__ = ["RunCancellationIntent"]CODE
LOWdify-agent/src/dify_agent/runtime/command_runner.py17logger = logging.getLogger(__name__)CODE
LOWdify-agent/src/dify_agent/runtime/command_runner.py105__all__ = ["execute_complete_with_commands"]CODE
LOWdify-agent/src/dify_agent/runtime/observability.py280__all__ = [CODE
LOW…agent/src/dify_agent/runtime/user_prompt_validation.py29__all__ = ["EMPTY_USER_PROMPTS_ERROR", "has_non_blank_user_prompt"]CODE
LOWdify-agent/src/dify_agent/runtime/compaction.py46__all__ = ["build_compaction_capability"]CODE
LOWdify-agent/src/dify_agent/runtime/event_coalescer.py139__all__ = [CODE
LOWdify-agent/src/dify_agent/runtime/run_scheduler.py35logger = logging.getLogger(__name__)CODE
LOWdify-agent/src/dify_agent/runtime/run_scheduler.py354__all__ = ["RunCancellationConflictError", "RunScheduler", "SchedulerStoppingError"]CODE
LOWdify-agent/src/dify_agent/server/auth.py43__all__ = ["create_bearer_token_dependency"]CODE
LOWdify-agent/src/dify_agent/server/e2b_usage_client.py18logger = logging.getLogger(__name__)CODE
LOWdify-agent/src/dify_agent/server/binding_files.py37logger = logging.getLogger(__name__)CODE
757 more matches not shown…
Self-Referential Comments201 hits · 600 pts
SeverityFileLineSnippetContext
MEDIUMscripts/stress-test/common/config_helper.py312# Create a default instance for convenienceCOMMENT
MEDIUMapi/celery_healthcheck.py1# This module provides a lightweight Celery instance for use in Docker health checks.COMMENT
MEDIUMapi/core/app/apps/pipeline/pipeline_runner.py158 # Create a variable pool.COMMENT
MEDIUMapi/core/app/apps/workflow/app_runner.py122 # Create a variable pool.COMMENT
MEDIUMapi/core/app/apps/advanced_chat/app_runner.py198 # Initialize conversation variablesCOMMENT
MEDIUMapi/core/app/apps/advanced_chat/app_runner.py201 # Create a variable pool.COMMENT
MEDIUMapi/core/plugin/utils/chunk_merger.py85 # Create the appropriate message type based on the response typeCOMMENT
MEDIUM…positories/sqlalchemy_workflow_execution_repository.py198 # Create a new database sessionCOMMENT
MEDIUMapi/core/mcp/auth_client.py87 # Create a temporary session only for auth retryCOMMENT
MEDIUMapi/core/rag/index_processor/index_processor_base.py228 # Create a mapping from ID to UploadFile for quick lookupCOMMENT
MEDIUMapi/core/rag/index_processor/index_processor_base.py231 # Create a Document for each occurrence (including duplicates)COMMENT
MEDIUM…index_processor/processor/paragraph_index_processor.py166 # This method is called for actual deletion scenarios (e.g., when segment is deleted).COMMENT
MEDIUM…ex_processor/processor/parent_child_index_processor.py173 # This method is called for actual deletion scenarios (e.g., when segment is deleted).COMMENT
MEDIUM…re/rag/index_processor/processor/qa_index_processor.py167 # This method is called for actual deletion scenarios (e.g., when segment is deleted).COMMENT
MEDIUMapi/core/schemas/resolver.py268 # Create a copy and remove metadata fieldsCOMMENT
MEDIUMapi/core/workflow/workflow_entry.py379 # Create a minimal graph for single node executionCOMMENT
MEDIUMapi/core/ops/ops_trace_manager.py406 # Create a new instance of the config class with the new configurationCOMMENT
MEDIUMapi/constants/recommended_apps.json471 "export_data": "app:\n icon: \"\\U0001F916\"\n icon_background: '#FFEAD5'\n mode: advanced-chat\n name: CODE
MEDIUM…ix/src/dify_trace_arize_phoenix/arize_phoenix_trace.py233 # Create a named tracer instead of setting the global providerCOMMENT
MEDIUM…iders/vdb/vdb-relyt/src/dify_vdb_relyt/relyt_vector.py121 # Define the table schemaSTRING
MEDIUM…iders/vdb/vdb-relyt/src/dify_vdb_relyt/relyt_vector.py178 # Define the table schemaCOMMENT
MEDIUM…iders/vdb/vdb-relyt/src/dify_vdb_relyt/relyt_vector.py265 # Define the base queryCOMMENT
MEDIUM…/vdb-weaviate/tests/unit_tests/test_weaviate_vector.py692 # Create a document with doc_type metadata (as produced by multimodal indexing)COMMENT
MEDIUM…rs/vdb/vdb-milvus/src/dify_vdb_milvus/milvus_vector.py344 # Create the text field, enable_analyzer will be set True to support milvus automaticallyCOMMENT
MEDIUM…rs/vdb/vdb-milvus/src/dify_vdb_milvus/milvus_vector.py359 # Create the primary key fieldCOMMENT
MEDIUM…rs/vdb/vdb-milvus/src/dify_vdb_milvus/milvus_vector.py361 # Create the vector field, supports binary or float vectorsCOMMENT
MEDIUM…rs/vdb/vdb-milvus/src/dify_vdb_milvus/milvus_vector.py392 # Create the collectionCOMMENT
MEDIUMapi/tests/unit_tests/tasks/test_mail_send_task.py1309 # Create a large HTML body (simulating a newsletter)COMMENT
MEDIUMapi/tests/unit_tests/tools/test_api_tool.py38 # Create a mock tool entityCOMMENT
MEDIUMapi/tests/unit_tests/tools/test_api_tool.py47 # Create a mock API bundleCOMMENT
MEDIUMapi/tests/unit_tests/tools/test_api_tool.py59 # Create the ApiTool instanceCOMMENT
MEDIUM⚡api/tests/unit_tests/core/test_file.py23 # Create a feature dict that mimics the old structure with image configCOMMENT
MEDIUM⚡api/tests/unit_tests/core/test_file.py30 # Create a workflow instance with the featuresCOMMENT
MEDIUM…sts/unit_tests/core/datasource/test_notion_provider.py1672 # Create a custom query filterCOMMENT
MEDIUM…tests/unit_tests/core/datasource/test_website_crawl.py1567 # Create a crawl message with resultsCOMMENT
MEDIUM…it_tests/core/datasource/entities/test_api_entities.py63 # Create a parameter that should be convertedCOMMENT
MEDIUM…tests/unit_tests/core/tools/test_tool_label_manager.py28# Create a mock class for testing abstract/base classesCOMMENT
MEDIUM…sts/core/app/features/rate_limiting/test_rate_limit.py410 # Create a generator-like object without close methodCOMMENT
MEDIUM…/core/app/apps/chat/test_base_app_runner_multimodal.py120 # Create a small test image (1x1 PNG)COMMENT
MEDIUM…/common/test_workflow_response_converter_truncation.py426 # Create a minimal WorkflowUIBasedAppConfig for testingCOMMENT
MEDIUM…/common/test_workflow_response_converter_truncation.py525 # Create a test event with large dataCOMMENT
MEDIUM…/common/test_workflow_response_converter_truncation.py566 # Create a test event with large dataCOMMENT
MEDIUM…/common/test_workflow_response_converter_truncation.py606 # Create a test event with large dataCOMMENT
MEDIUM…sts/unit_tests/core/memory/test_token_buffer_memory.py483 # Create a mock message with a SYSTEM roleCOMMENT
MEDIUMapi/tests/unit_tests/core/plugin/test_plugin_runtime.py531 # Create a proper nested JSON structure for PluginInvokeErrorCOMMENT
MEDIUM…tests/unit_tests/core/plugin/utils/test_http_parser.py14 # Create a simple GET requestCOMMENT
MEDIUM…tests/unit_tests/core/plugin/utils/test_http_parser.py32 # Create a GET request with query parametersCOMMENT
MEDIUM…tests/unit_tests/core/plugin/utils/test_http_parser.py49 # Create a POST request with bodyCOMMENT
MEDIUM…tests/unit_tests/core/plugin/utils/test_http_parser.py74 # Create a request with custom headersCOMMENT
MEDIUM…ositories/test_celery_workflow_execution_repository.py108 # Create an Account with no tenant_id.COMMENT
MEDIUM…ries/test_celery_workflow_node_execution_repository.py114 # Create an Account with no tenant_id.COMMENT
MEDIUM…epositories/test_workflow_node_execution_truncation.py155 # Create a database model without offload dataCOMMENT
MEDIUMapi/tests/unit_tests/core/mcp/test_entities.py100 # Create a real session without starting its receive loop.COMMENT
MEDIUM⚡api/tests/unit_tests/core/rag/pipeline/test_queue.py239 # Create a wrapped taskCOMMENT
MEDIUM…sts/unit_tests/core/rag/splitter/test_text_splitter.py1330 # Create a large documentCOMMENT
MEDIUM…nit_tests/core/rag/retrieval/test_dataset_retrieval.py456 # Create a side effect function that simulates _retrieve behaviorCOMMENT
MEDIUMapi/tests/unit_tests/core/schemas/test_resolver.py140 # Create a moderately nested structureCOMMENT
MEDIUMapi/tests/unit_tests/core/schemas/test_resolver.py479 # Create a schema with many references to the same schemaCOMMENT
MEDIUMapi/tests/unit_tests/core/schemas/test_resolver.py501 # Create a moderately complex schema without any $refs (typical plugin output_schema)COMMENT
MEDIUMapi/tests/unit_tests/core/schemas/test_resolver.py587 # Create a very large schema without refsCOMMENT
141 more matches not shown…
Fake / Example Data565 hits · 585 pts
SeverityFileLineSnippetContext
LOW…ts/local/dify_agent/layers/dify_plugin/test_configs.py112 "placeholder": None,CODE
LOWweb/context/__tests__/console-bootstrap.spec.tsx54 email: 'user@example.com',CODE
LOWweb/context/__tests__/console-bootstrap.spec.tsx343 email: 'user@example.com',CODE
LOWweb/context/__tests__/console-bootstrap.spec.tsx484 value: 'user@example.com',CODE
LOWweb/context/__tests__/console-bootstrap.spec.tsx501 expect(setUserId).toHaveBeenCalledWith('user@example.com')CODE
LOWweb/context/__tests__/console-bootstrap.spec.tsx505 email: 'user@example.com',CODE
LOWweb/context/__tests__/console-bootstrap.spec.tsx641 expect(setUserId).toHaveBeenCalledWith('user@example.com')CODE
LOWweb/app/install/installForm.spec.tsx123 await user.type(await screen.findByLabelText('login.email'), 'admin@example.com')CODE
LOWweb/app/install/installForm.spec.tsx141 target: { value: 'admin@example.com' },CODE
LOWweb/app/install/installForm.spec.tsx154 email: 'admin@example.com',CODE
LOWweb/app/install/installForm.spec.tsx166 email: 'admin@example.com',CODE
LOWweb/app/install/installForm.spec.tsx189 target: { value: 'admin@example.com' },CODE
LOWweb/app/install/installForm.spec.tsx212 target: { value: 'admin@example.com' },CODE
LOW…n/components/__tests__/mail-and-password-auth.spec.tsx66 await user.type(emailInput, 'user@example.com')CODE
LOW…n/components/__tests__/mail-and-password-auth.spec.tsx77 email: 'user@example.com',CODE
LOWweb/app/signup/check-code/__tests__/page.spec.tsx59 email: 'user@example.com',CODE
LOWweb/app/signup/check-code/__tests__/page.spec.tsx92 email: 'user@example.com',CODE
LOW…b/app/components/tools/parameters/tool-date-picker.tsx18type Props = Pick<DatePickerProps, 'placeholder' | 'readOnly' | 'minDate' | 'maxDate'> &CODE
LOW…dataset-config/settings-modal/__tests__/index.spec.tsx230 email: 'user@example.com',CODE
LOW⚡web/app/components/app/deploy/__tests__/index.spec.tsx1310 expect(portInput).toHaveAttribute('placeholder', '2')CODE
LOW⚡web/app/components/app/deploy/__tests__/index.spec.tsx1312 'placeholder',CODE
LOW⚡web/app/components/app/deploy/__tests__/index.spec.tsx1316 'placeholder',CODE
LOW⚡web/app/components/app/deploy/__tests__/index.spec.tsx1320 'placeholder',CODE
LOWweb/app/components/app/log/__tests__/var-panel.spec.tsx17 { label: 'name', value: 'John Doe' },CODE
LOWweb/app/components/app/log/__tests__/var-panel.spec.tsx40 expect(screen.getByText('John Doe')).toBeInTheDocument()CODE
LOWweb/app/components/app/log/__tests__/var-panel.spec.tsx66 expect(screen.getByText('John Doe')).toBeInTheDocument()CODE
LOWweb/app/components/app/log/__tests__/var-panel.spec.tsx76 expect(screen.queryByText('John Doe')).not.toBeInTheDocument()CODE
LOWweb/app/components/app/log/__tests__/var-panel.spec.tsx87 expect(screen.queryByText('John Doe')).not.toBeInTheDocument()CODE
LOWweb/app/components/app/log/__tests__/var-panel.spec.tsx91 expect(screen.getByText('John Doe')).toBeInTheDocument()CODE
LOW…pp/components/app/workflow-log/__tests__/list.spec.tsx337 created_by_account: { id: 'acc-1', name: 'John Doe', email: 'john@example.com' },CODE
LOW…pp/components/app/workflow-log/__tests__/list.spec.tsx346 expect(screen.getByText('John Doe'))!.toBeInTheDocument()CODE
LOW…nents/app/access-point/__tests__/web-app-card.spec.tsx228 created_by: { id: 'user-id', name: 'User', email: 'user@example.com' },CODE
LOW…nents/app/access-point/__tests__/web-app-card.spec.tsx231 updated_by: { id: 'user-id', name: 'User', email: 'user@example.com' },CODE
LOW…ts/plugins/plugin-tags-filter/__tests__/index.spec.tsx88 expect(screen.getByRole('searchbox')).toHaveAttribute('placeholder', '')CODE
LOW…n-page/filter-management/__tests__/search-box.spec.tsx35 expect(searchBox).toHaveAttribute('placeholder', 'plugin.search')CODE
LOW…/settings/permission-selector/__tests__/index.spec.tsx36 name: 'John Doe',CODE
LOW…s/documents/components/__tests__/rename-modal.spec.tsx186 expect(input).toHaveAttribute('placeholder', 'common.placeholder.input')CODE
LOW…nts/detail/completed/common/__tests__/summary.spec.tsx122 'placeholder',CODE
LOW…asets/create/website/base/__tests__/url-input.spec.tsx28 expect(input).toHaveAttribute('placeholder', 'https://docs.example.com')CODE
LOW…omponents/access-rules-editor/__tests__/index.spec.tsx389 email: 'admin@example.com',CODE
LOW…ts/main-nav/components/__tests__/support-menu.spec.tsx33 userProfile: { email: 'user@example.com' },CODE
LOW…ts/main-nav/components/__tests__/support-menu.spec.tsx81 userProfile: { email: 'user@example.com' },CODE
LOW…ts/main-nav/components/__tests__/support-menu.spec.tsx200 'user@example.com',CODE
LOW…ts/main-nav/components/__tests__/support-menu.spec.tsx225 expect(mailToSupport).toHaveBeenCalledWith('user@example.com', 'team', '1.0.0', '')CODE
LOW…line/components/panel/input-field/editor/form/hooks.ts317 variable: 'placeholder',CODE
LOW…line/components/panel/input-field/editor/form/hooks.ts331 variable: 'placeholder',CODE
LOW…line/components/panel/input-field/editor/form/hooks.ts359 variable: 'placeholder',CODE
LOW…panel/input-field/editor/form/__tests__/index.spec.tsx726 (config) => config.variable === 'placeholder',CODE
LOW…panel/input-field/editor/form/__tests__/index.spec.tsx1270 placeholder: 'placeholder',CODE
LOW…ents/panel/input-field/editor/__tests__/index.spec.tsx421 placeholder: 'placeholder',CODE
LOW…ents/panel/input-field/editor/__tests__/index.spec.tsx435 expect(result.placeholder).toBe('placeholder')CODE
LOW…ents/panel/input-field/editor/__tests__/index.spec.tsx654 placeholder: 'placeholder',CODE
LOW…ents/panel/input-field/editor/__tests__/index.spec.tsx673 expect(result.placeholder).toBe('placeholder')CODE
LOW…ents/panel/input-field/editor/__tests__/index.spec.tsx830 placeholder: 'placeholder',CODE
LOW…/components/__tests__/variable-modal.sections.spec.tsx88 placeholder="placeholder"CODE
LOW…livery-method/recipient/__tests__/email-input.spec.tsx89 expect(input).toHaveAttribute('placeholder', '')CODE
LOW…livery-method/recipient/__tests__/email-input.spec.tsx93 'placeholder',CODE
LOW…nts/delivery-method/__tests__/mail-body-input.spec.tsx20 default: (_props: { hideBadge?: boolean }) => <div data-testid="placeholder" />,CODE
LOW…perator/components/__tests__/filter-condition.spec.tsx162 'placeholder',CODE
LOW…low/nodes/list-operator/__tests__/integration.spec.tsx172 expect(screen.getByRole('textbox')).toHaveAttribute('placeholder', '')CODE
505 more matches not shown…
Deep Nesting649 hits · 555 pts
SeverityFileLineSnippetContext
LOWdocker/dify-env-sync.py293CODE
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py833CODE
LOW…tegration/dify_agent/server/test_e2b_transport_soak.py1061CODE
LOW…ation/dify_agent/storage/test_terminal_finalization.py51CODE
LOW…dify_agent/agent_stub/server/test_agent_stub_config.py433CODE
LOW…s/local/dify_agent/runtime/test_agent_observability.py469CODE
LOW…ocal/dify_agent/server/test_observability_isolation.py64CODE
LOW…al/dify_agent/runtime_backend/test_openshell_tunnel.py135CODE
LOWdify-agent/docs/.hooks/snippets.py130CODE
LOW…agent/src/dify_agent/layers/dify_plugin/tools_layer.py269CODE
LOW…agent/src/dify_agent/layers/dify_plugin/tools_layer.py599CODE
LOWdify-agent/src/dify_agent/layers/shell/layer.py256CODE
LOWdify-agent/src/dify_agent/layers/output/output_layer.py210CODE
LOWdify-agent/src/dify_agent/layers/output/output_layer.py267CODE
LOWdify-agent/src/dify_agent/layers/output/output_layer.py222CODE
LOWdify-agent/src/dify_agent/runtime/runner.py222CODE
LOWdify-agent/src/dify_agent/runtime/event_coalescer.py15CODE
LOWdify-agent/src/dify_agent/runtime/run_scheduler.py188CODE
LOWdify-agent/src/dify_agent/server/observability.py43CODE
LOWdify-agent/src/dify_agent/protocol/snapshot.py36CODE
LOWdify-agent/src/dify_agent/storage/redis_run_store.py352CODE
LOWdify-agent/src/dify_agent/adapters/llm/model.py286CODE
LOWdify-agent/src/dify_agent/adapters/llm/model.py341CODE
LOWdify-agent/src/dify_agent/adapters/llm/model.py371CODE
LOWdify-agent/src/dify_agent/adapters/llm/model.py391CODE
LOWdify-agent/src/dify_agent/adapters/llm/model.py436CODE
LOWdify-agent/src/dify_agent/adapters/llm/model.py630CODE
LOWdify-agent/src/dify_agent/adapters/llm/model.py666CODE
LOWdify-agent/src/dify_agent/adapters/llm/model.py735CODE
LOWdify-agent/src/dify_agent/adapters/shell/shellctl.py282CODE
LOWdify-agent/src/dify_agent/client/_client.py707CODE
LOWdify-agent/src/dify_agent/client/_client.py847CODE
LOW…ent/src/dify_agent/runtime_backend/openshell_tunnel.py110CODE
LOWscripts/stress-test/sse_benchmark.py559CODE
LOWscripts/stress-test/sse_benchmark.py326CODE
LOWscripts/stress-test/sse_benchmark.py400CODE
LOWscripts/stress-test/sse_benchmark.py567CODE
LOWscripts/stress-test/setup/install_openai_plugin.py18CODE
LOWscripts/stress-test/setup/login_admin.py20CODE
LOWscripts/stress-test/setup/import_workflow_app.py18CODE
LOWscripts/stress-test/setup/configure_openai_plugin.py12CODE
LOWscripts/stress-test/setup/create_api_key.py14CODE
LOWscripts/stress-test/setup/publish_workflow.py14CODE
LOWscripts/stress-test/setup/setup_admin.py22CODE
LOWscripts/stress-test/setup/run_workflow.py14CODE
LOWapi/schedule/update_api_token_last_used_task.py28CODE
LOWapi/schedule/mail_clean_document_notify_task.py22CODE
LOWapi/schedule/clean_workflow_runlogs_precise.py44CODE
LOWapi/schedule/clean_workflow_runlogs_precise.py107CODE
LOWapi/schedule/queue_monitor_task.py34CODE
LOWapi/schedule/workflow_schedule_task.py18CODE
LOWapi/schedule/clean_unused_datasets_task.py28CODE
LOWapi/tasks/regenerate_summary_index_task.py25CODE
LOWapi/tasks/enable_segments_to_index_task.py25CODE
LOWapi/tasks/deal_dataset_index_update_task.py20CODE
LOWapi/tasks/remove_app_and_related_data_task.py730CODE
LOWapi/tasks/clean_document_task.py20CODE
LOWapi/tasks/retry_document_indexing_task.py29CODE
LOWapi/tasks/duplicate_document_indexing_task.py81CODE
LOWapi/tasks/enable_segment_to_index_task.py28CODE
589 more matches not shown…
Empty Error Handlers88 hits · 440 pts
SeverityFileLineSnippetContext
HIGH…t/tests/local/dify_agent/runtime/test_run_scheduler.py428except asyncio.CancelledError:CODE
HIGH…ent/src/dify_agent/runtime_backend/openshell_tunnel.py40except OSError:CODE
HIGH…ent/src/dify_agent/runtime_backend/openshell_tunnel.py44except OSError:CODE
HIGH…ent/src/dify_agent/runtime_backend/openshell_tunnel.py163except OSError:CODE
HIGH…ent/src/dify_agent/runtime_backend/openshell_tunnel.py127except OSError:CODE
HIGHscripts/stress-test/setup/publish_workflow.py83except json.JSONDecodeError:CODE
HIGHscripts/stress-test/setup/run_workflow.py114except json.JSONDecodeError:CODE
HIGHapi/core/provider_manager.py1670except ValueError:CODE
HIGHapi/core/provider_manager.py1812except ValueError:CODE
HIGHapi/core/credit_usage.py55except ValueError:CODE
HIGHapi/core/credit_usage.py66except ValueError:CODE
HIGHapi/core/tools/workflow_as_tool/tool.py175except (TypeError, ValueError):CODE
HIGHapi/core/tools/mcp_tool/tool.py123except json.JSONDecodeError:CODE
HIGH…/app_config/workflow_ui_based_app/variables/manager.py47except (json.JSONDecodeError, TypeError):CODE
HIGHapi/core/app/apps/message_based_app_generator.py273except KeyError:CODE
HIGHapi/core/app/apps/pipeline/pipeline_generator.py646except GenerateTaskStoppedError:CODE
HIGHapi/core/app/apps/chat/app_generator.py280except GenerateTaskStoppedError:CODE
HIGHapi/core/app/apps/completion/app_generator.py255except GenerateTaskStoppedError:CODE
HIGHapi/core/app/apps/agent_app/app_generator.py313except GenerateTaskStoppedError:CODE
HIGHapi/core/app/apps/advanced_chat/app_generator.py733except GenerateTaskStoppedError:CODE
HIGHapi/core/app/apps/agent_chat/app_generator.py284except GenerateTaskStoppedError:CODE
HIGHapi/core/plugin/entities/parameters.py159except json.JSONDecodeError:CODE
HIGHapi/core/plugin/entities/parameters.py224except (json.JSONDecodeError, ValueError):CODE
HIGHapi/core/plugin/entities/parameters.py236except (json.JSONDecodeError, ValueError):CODE
HIGHapi/core/agent/cot_agent_runner.py338except json.JSONDecodeError:CODE
HIGHapi/core/mcp/client/streamable_client.py556except queue.Empty:CODE
HIGHapi/core/mcp/client/sse_client.py315except RuntimeError:CODE
HIGHapi/core/rag/datasource/retrieval_service.py541except (ValueError, TypeError):CODE
HIGH…index_processor/processor/paragraph_index_processor.py464except KeyError:CODE
HIGHapi/core/workflow/node_runtime.py685except StopIteration:CODE
HIGHapi/core/workflow/node_runtime.py699except StopIteration:CODE
HIGHapi/core/workflow/workflow_entry.py194except GenerateTaskStoppedError:CODE
HIGHapi/core/workflow/nodes/agent/message_transformer.py211except StopIteration:CODE
HIGHapi/core/workflow/nodes/agent/message_transformer.py225except StopIteration:CODE
HIGHapi/core/ops/ops_trace_manager.py366except KeyError:CODE
HIGHapi/core/ops/unified_trace/parent_context.py142except KeyError:CODE
HIGHapi/core/helper/code_executor/template_transformer.py84except ValueError:CODE
HIGHapi/enterprise/telemetry/id_generator.py63except (ValueError, AttributeError):CODE
HIGHapi/enterprise/telemetry/id_generator.py73except (ValueError, AttributeError):CODE
HIGH…lickzetta/src/dify_vdb_clickzetta/clickzetta_vector.py607except (RuntimeError, ValueError):CODE
HIGH…roviders/vdb/vdb-iris/src/dify_vdb_iris/iris_vector.py109except (OSError, RuntimeError):CODE
HIGH…roviders/vdb/vdb-iris/src/dify_vdb_iris/iris_vector.py173except (OSError, RuntimeError):CODE
HIGHapi/tests/unit_tests/core/tools/test_mcp_tool.py293except Exception:CODE
HIGH…sts/core/app/features/rate_limiting/test_rate_limit.py550except AppInvokeQuotaExceededError:CODE
HIGH…sts/unit_tests/core/mcp/client/test_streamable_http.py219except Exception:CODE
HIGH…tests/unit_tests/core/mcp/session/test_base_session.py471except:CODE
HIGH…tests/unit_tests/core/mcp/session/test_base_session.py165except Exception:CODE
HIGH…tests/unit_tests/core/mcp/session/test_base_session.py192except:CODE
HIGH…tests/unit_tests/core/mcp/session/test_base_session.py218except:CODE
HIGH…tests/unit_tests/core/mcp/session/test_base_session.py245except:CODE
HIGH…tests/unit_tests/core/mcp/session/test_base_session.py274except:CODE
HIGH…tests/unit_tests/core/mcp/session/test_base_session.py303except:CODE
HIGH…tests/unit_tests/core/mcp/session/test_base_session.py539except:CODE
HIGH…sts/unit_tests/core/rag/splitter/test_text_splitter.py1850except (TypeError, AttributeError):CODE
HIGH…sts/unit_tests/core/rag/splitter/test_text_splitter.py1973except (ValueError, IndexError):CODE
HIGH…_tests/core/workflow/context/test_execution_context.py181except Exception:CODE
HIGH…it_tests/core/workflow/graph_engine/test_mock_nodes.py706except Exception:CODE
HIGH…/tests/unit_tests/libs/test_schedule_utils_enhanced.py373except Exception:CODE
HIGH…/tests/unit_tests/libs/test_schedule_utils_enhanced.py202except Exception:CODE
HIGH…/tests/unit_tests/libs/test_schedule_utils_enhanced.py383except Exception:CODE
28 more matches not shown…
Docstring Block Structure79 hits · 395 pts
SeverityFileLineSnippetContext
HIGHapi/context/flask_app_context.py57 Capture current Flask execution context. This function captures the Flask app context and contextvars from theSTRING
HIGHapi/core/tools/utils/system_encryption.py47 Encrypt parameters. Args: params: Parameters dictionary, e.g., {"client_id": "xxx", "clienSTRING
HIGHapi/core/tools/utils/system_encryption.py82 Decrypt parameters. Args: encrypted_data: Base64-encoded encrypted string ReturnsSTRING
HIGHapi/core/app/apps/workflow_app_runner.py244 Prepare graph, variable pool, and runtime state for single node execution (either single iteration or sSTRING
HIGHapi/core/plugin/utils/chunk_merger.py27 Merge streaming blob chunks into complete blob messages. This function processes a stream of plugin invoke mesSTRING
HIGHapi/core/repositories/factory.py72 Create a WorkflowExecutionRepository instance based on configuration. Args: session_factorSTRING
HIGHapi/core/repositories/factory.py111 Create a WorkflowNodeExecutionRepository instance based on configuration. Args: session_faSTRING
HIGHapi/core/mcp/auth_client.py129 Execute a function with authentication retry logic. Args: func: The function to execute STRING
HIGHapi/core/mcp/auth_client.py190 Invoke a tool on the MCP server with auth retry. Args: tool_name: Name of the tool to invoSTRING
HIGHapi/core/mcp/auth/auth_flow.py370 Parse OAuth token response supporting both JSON and form-urlencoded formats. Per RFC 6749 Section 5.1, the staSTRING
HIGHapi/core/mcp/client/sse_client.py198Wait for the endpoint URL from the status queue. Args: status_queue: Queue to read status from. STRING
HIGHapi/core/schemas/resolver.py86 Resolve all $ref references in the schema Performance optimization: quickly checks for $ref presence bSTRING
HIGHapi/core/schemas/resolver.py229 Resolve $ref references in Dify schema to actual schema content This is a convenience function that creates a STRING
HIGHapi/core/ops/utils.py72 Validate and normalize URL with proper error handling. NOTE: This function does not retain the `path` componenSTRING
HIGHapi/core/ops/utils.py115 Validate URL that may include path components Args: url: The URL to validate default_url: DefaSTRING
HIGHapi/core/ops/base_trace_instance.py33 Get service account for an app and set up its tenant. Args: app_id: The ID of the app STRING
HIGHapi/core/helper/ssrf_proxy.py170Send one SSRF-protected request with optional streaming. Args: method: HTTP method sent through the configuSTRING
HIGHapi/core/helper/csv_sanitizer.py24 Sanitize a value for safe CSV export. Prefixes formula-initiating characters with a single quote to prSTRING
HIGHapi/core/helper/csv_sanitizer.py63 Sanitize specified fields in a dictionary. Args: data: Dictionary containing data to sanitSTRING
HIGHapi/core/helper/marketplace.py78 Fetch all plugin manifests from marketplace and cache them in Redis. This should be called once per check cycleSTRING
HIGH…repositories/sqlalchemy_api_workflow_run_repository.py1007 Create a new workflow pause state. Creates a pause state for a workflow run, storing the current execuSTRING
HIGH…repositories/sqlalchemy_api_workflow_run_repository.py1153 Get an existing workflow pause state. Retrieves the pause state for a specific workflow run if it exisSTRING
HIGH…repositories/sqlalchemy_api_workflow_run_repository.py1236 Resume a paused workflow. Marks a paused workflow as resumed, clearing the pause state and retSTRING
HIGH…repositories/sqlalchemy_api_workflow_run_repository.py1355 Clean up expired and old pause states. Removes pause states that have expired (created before expiratiSTRING
HIGHapi/repositories/factory.py30 Create a DifyAPIWorkflowNodeExecutionRepository instance based on configuration. This repository is deSTRING
HIGHapi/repositories/factory.py59 Create an APIWorkflowRunRepository instance based on configuration. This repository is designed for seSTRING
HIGHapi/repositories/api_workflow_run_repository.py102 Get paginated workflow runs with filtering. Retrieves workflow runs for a specific app and trigger souSTRING
HIGHapi/repositories/api_workflow_run_repository.py518 Create a new workflow pause state. Creates a pause state for a workflow run, storing the current execuSTRING
HIGHapi/repositories/api_workflow_run_repository.py554 Resume a paused workflow. Marks a paused workflow as resumed, set the `resumed_at` field of WorkflowPaSTRING
HIGHapi/repositories/api_workflow_run_repository.py609 Clean up expired and old pause states. Removes pause states that have expired (created before expiratiSTRING
HIGHapi/extensions/logstore/sql_escape.py18 Escape a string value for safe use in SQL queries. This function escapes single quotes by doubling them, whichSTRING
HIGHapi/extensions/logstore/sql_escape.py53 Escape an identifier (tenant_id, app_id, run_id, etc.) for safe SQL use. This function is for PG protocol modeSTRING
HIGHapi/extensions/logstore/sql_escape.py82 Escape value for LogStore query syntax (SDK mode). LogStore query syntax rules: 1. Keywords (and/or/not) aSTRING
HIGHapi/libs/schedule_utils.py61 Parse 12-hour time format to 24-hour format for cron compatibility. Args: time_str: Time string in forSTRING
HIGHapi/libs/archive_storage.py98 Upload an object to the archive storage. Args: key: Object key (path) within the bucket STRING
HIGHapi/libs/archive_storage.py131 Download an object from the archive storage. Args: key: Object key (path) within the buckeSTRING
HIGHapi/libs/archive_storage.py155 Stream an object from the archive storage. Args: key: Object key (path) within the bucket STRING
HIGHapi/libs/archive_storage.py179 Check if an object exists in the archive storage. Args: key: Object key (path) within the STRING
HIGHapi/libs/archive_storage.py230 Generate a pre-signed URL for downloading an object. Args: key: Object key (path) within tSTRING
HIGHapi/libs/uuid_utils.py116Extract the timestamp from a UUIDv7. UUIDv7 contains a 48-bit timestamp field representing milliseconds since tSTRING
HIGHapi/libs/custom_inputs.py7 Validate and return time duration string. Accepts formats: <number>d (days), <number>h (hours), <number>m (minSTRING
HIGHapi/libs/helper.py70 Escape special characters in a string for safe use in SQL LIKE patterns. This function escapes the special chaSTRING
HIGHapi/libs/helper.py102 Extract tenant_id from Account or EndUser object. Args: user: Account or EndUser object Returns: STRING
HIGHapi/libs/datetime_utils.py55 Parse time range strings and convert to UTC datetime objects. Handles DST ambiguity and non-existent times gracSTRING
HIGHapi/libs/module_loading.py32 Import a dotted module path and return the attribute/class designated by the last name in the path. Raise ImporSTRING
HIGHapi/configs/middleware/vdb/iris_config.py70Validate IRIS configuration values. Args: values: Configuration dictionary Returns: STRING
HIGHapi/controllers/web/files.py42Upload a file for use in web applications. Accepts file uploads for use within web applications, supporting STRING
HIGHapi/controllers/web/remote_files.py61Get information about a remote file. Retrieves basic information about a file located at a remote URL, STRING
HIGHapi/controllers/web/remote_files.py122Upload a file from a remote URL. Downloads a file from the provided remote URL and uploads it to the plSTRING
HIGHapi/controllers/mcp/mcp.py56Handle MCP requests for a specific server. Processes JSON-RPC formatted requests according to the Model ContextSTRING
HIGHapi/controllers/service_api/dataset/dataset.py768 Deletes a dataset given its ID. Args: _: ignore dataset_id (UUID): The ID of tSTRING
HIGHapi/controllers/service_api/dataset/dataset.py842 Batch update document status. Args: tenant_id: tenant id dataset_id: dataset iSTRING
HIGHapi/controllers/console/knowledge_fs_proxy.py316Forward the current request using one previously authorized operation capability. Args: authorization: RequSTRING
HIGHapi/services/async_workflow_service.py59 Universal entry point for async workflow execution - THIS METHOD WILL NOT BLOCK Creates a trigger log STRING
HIGHapi/services/async_workflow_service.py214 Re-invoke a previously failed or rate-limited trigger - THIS METHOD WILL NOT BLOCK Updates the existinSTRING
HIGHapi/services/async_workflow_service.py338 Get workflow for the app Args: app_model: App model instance workflow_id: OptiSTRING
HIGHapi/services/conversation_service.py316 Update a conversation variable's value. Args: app_model: The app model conversSTRING
HIGHapi/services/knowledge_fs_proxy.py117Enforce Dify's workspace policy before KFS performs resource authorization. Args: account: Authenticated DiSTRING
HIGHapi/services/knowledge_fs_proxy.py186Forward one request whose operation and workspace policy were already authorized. This performs one outbound KnowleSTRING
HIGHapi/services/knowledge_fs_proxy.py237Forward one fixed-route request without parsing its KnowledgeFS payload. Args: account_id: Current Dify accSTRING
19 more matches not shown…
Redundant / Tautological Comments155 hits · 227 pts
SeverityFileLineSnippetContext
LOWdocker/dify-env-sync.sh310 # Check if this is an environment variable lineCOMMENT
LOWdocker/dify-env-sync.sh316 # Check if key should be preservedCOMMENT
LOWdocker/nginx/docker-entrypoint.sh6 # Check if the certificate and key files for the specified domain existCOMMENT
LOWdocker/elasticsearch/docker-entrypoint.sh6 # Check if the ICU tokenizer plugin is installedCOMMENT
LOWdocker/elasticsearch/docker-entrypoint.sh14 # Check if the Japanese language analyzer plugin is installedCOMMENT
LOW⚡sdks/nodejs-client/scripts/publish.sh174 # Check if version already exists on npmCOMMENT
LOWscripts/stress-test/run_locust_stress_test.sh39# Check if services are runningCOMMENT
LOWscripts/stress-test/setup_all.py77 # Print outputCOMMENT
LOWscripts/stress-test/setup_all.py120 # Check if required services are runningCOMMENT
LOWscripts/stress-test/sse_benchmark.py460 # Check if runner is stoppingCOMMENT
LOWscripts/stress-test/setup/login_admin.py61 # Check if login was successfulCOMMENT
LOWscripts/stress-test/setup/run_workflow.py86 # Print output if it's the LLM nodeCOMMENT
LOWapi/tasks/regenerate_summary_index_task.py70 # Check if summary index is enabled (only for summary_model change)COMMENT
LOWapi/tasks/generate_summary_index_task.py59 # Check if document needs summaryCOMMENT
LOWapi/tasks/generate_summary_index_task.py80 # Check if summary index is enabledCOMMENT
LOWapi/tasks/duplicate_document_indexing_task.py59 # Check if there are waiting tasks in the queueCOMMENT
LOWapi/tasks/document_indexing_task.py221 # Check if there are waiting tasks in the queueCOMMENT
LOWapi/tasks/workflow_node_execution_tasks.py56 # Check if node execution already existsCOMMENT
LOWapi/tasks/workflow_execution_tasks.py53 # Check if workflow run already existsCOMMENT
LOW⚡…i/tasks/rag_pipeline/priority_rag_pipeline_run_task.py88 # Check if there are waiting tasks in the queueCOMMENT
LOW⚡api/tasks/rag_pipeline/rag_pipeline_run_task.py94 # Check if there are waiting tasks in the queueCOMMENT
LOWapi/docker/entrypoint.sh25 # Set MAX_WORKERS to the number of available cores if not specifiedCOMMENT
LOWapi/core/datasource/datasource_file_manager.py168 # Check if message_file is not NoneCOMMENT
LOWapi/core/tools/tool_file_manager.py177 # Check if message_file is not NoneCOMMENT
LOWapi/core/tools/utils/text_processing_utils.py15 # Check if text starts with a markdown link - preserve itCOMMENT
LOWapi/core/tools/mcp_tool/tool.py116 # Check if content looks like JSON before attempting to parseCOMMENT
LOWapi/core/app/apps/base_app_generator.py183 # Check if all files are converted to FileCOMMENT
LOWapi/core/plugin/utils/chunk_merger.py67 # Check if file is too large (before appending)COMMENT
LOWapi/core/plugin/utils/chunk_merger.py73 # Check if single chunk is too largeCOMMENT
LOW…ories/sqlalchemy_workflow_node_execution_repository.py393 # Check if record already existsCOMMENT
LOWapi/core/agent/fc_agent_runner.py307 # Check if max iteration is reached and model still wants to call toolsCOMMENT
LOWapi/core/agent/cot_agent_runner.py196 # Check if max iteration is reached and model still wants to call toolsCOMMENT
LOWapi/core/mcp/client/streamable_client.py416 # Check if we should stopCOMMENT
LOWapi/core/mcp/client/streamable_client.py431 # Check if this is a resumption requestCOMMENT
LOWapi/core/rag/datasource/retrieval_service.py522 # Check if this is a summary documentCOMMENT
LOWapi/core/rag/datasource/retrieval_service.py666 # Check if this segment was retrieved via summaryCOMMENT
LOWapi/core/rag/datasource/retrieval_service.py712 # Check if this segment was retrieved via summaryCOMMENT
LOWapi/core/schemas/resolver.py309 # Check if this dict has a $ref fieldCOMMENT
LOWapi/core/prompt/simple_prompt_transform.py318 # Check if the prompt file is already loadedCOMMENT
LOWapi/core/ops/ops_trace_manager.py151 # Check if there's a model-specific configCOMMENT
LOWapi/core/ops/utils.py98 # Check if scheme is allowedCOMMENT
LOWapi/core/ops/utils.py138 # Check if scheme is allowedCOMMENT
LOWapi/core/helper/ssrf_proxy.py243 # Check if this is a Squid SSRF rejectionCOMMENT
LOWapi/core/helper/csv_sanitizer.py54 # Check if first character is a formula initiatorCOMMENT
LOWapi/core/helper/credential_utils.py77 # Check if credential exists in database first (if requested)COMMENT
LOWapi/core/entities/mcp_provider.py216 # Check if we have nested client_information structureCOMMENT
LOWapi/core/entities/provider_configuration.py746 # Check if this credential is used in load balancing configsCOMMENT
LOWapi/core/entities/provider_configuration.py765 # Check if this is the currently active credentialCOMMENT
LOWapi/core/entities/provider_configuration.py1249 # Check if this is the currently active credentialCOMMENT
LOW…b-oceanbase/src/dify_vdb_oceanbase/oceanbase_vector.py88 self._hybrid_search_enabled = self._check_hybrid_search_support() # Check if hybrid search is supportedCODE
LOW…rch/src/dify_vdb_elasticsearch/elasticsearch_vector.py87 # Check if using Elastic CloudCOMMENT
LOW…rch/src/dify_vdb_elasticsearch/elasticsearch_vector.py324 # Check if ELASTICSEARCH_USE_CLOUD is explicitly set to false (boolean)COMMENT
LOW…rs/vdb/vdb-chroma/src/dify_vdb_chroma/chroma_vector.py129 # Check if results contain dataCOMMENT
LOW…b-couchbase/src/dify_vdb_couchbase/couchbase_vector.py202 # Check if the collection exists in the scopeSTRING
LOW…lickzetta/src/dify_vdb_clickzetta/clickzetta_vector.py215 # Check if connection is not expired and still validCOMMENT
LOW…lickzetta/src/dify_vdb_clickzetta/clickzetta_vector.py487 # Check if table already exists to avoid unnecessary index creationCOMMENT
LOW…lickzetta/src/dify_vdb_clickzetta/clickzetta_vector.py528 # Check if vector index already exists on the embedding columnCOMMENT
LOW…lickzetta/src/dify_vdb_clickzetta/clickzetta_vector.py561 # Check if an inverted index already exists on this columnCOMMENT
LOW…lickzetta/src/dify_vdb_clickzetta/clickzetta_vector.py679 # Check if we have any valid data to insertCOMMENT
LOW…lickzetta/src/dify_vdb_clickzetta/clickzetta_vector.py727 # Check if table exists firstCOMMENT
95 more matches not shown…
Cross-Language Confusion37 hits · 215 pts
SeverityFileLineSnippetContext
HIGH…dify_agent/agent_stub/server/test_agent_stub_config.py194 push_response = await request_handler.push(CODE
HIGH…dify_agent/agent_stub/server/test_agent_stub_config.py304 await request_handler.push(principal=_principal(), request=AgentStubConfigPushRequest())CODE
HIGH…dify_agent/agent_stub/server/test_agent_stub_config.py337 await request_handler.push(principal=_principal(**context_updates), request=AgentStubConfigPushRequest())CODE
HIGH…gent/src/dify_agent/agent_stub/server/control_plane.py147 return await handler.push(principal=principal, request=request)CODE
HIGH…/tasks/process_tenant_plugin_autoupgrade_check_task.py29# A cached miss is stored as JSON null, so None has to stay a valid payload.COMMENT
HIGHapi/core/app/apps/agent_app/app_runner.py887 debounced_delta = text_delta_debouncer.push(internal_event.delta)CODE
HIGH⚡api/core/workflow/generator/prompts/builder_prompts.py90 "multiple_retrieval_config": {"top_k": 4, "score_threshold": null,CODE
HIGH⚡api/core/workflow/generator/prompts/builder_prompts.py97 "outputs": {"result": {"type": "string", "children": null}}}""",CODE
HIGH⚡api/core/workflow/generator/prompts/builder_prompts.py105 "authorization": {"type": "no-auth", "config": null},CODE
HIGH…tta/tests/integration_tests/test_docker_integration.py151 "1. Run: cd docker && docker-compose -f docker-compose.yaml -f docker-compose.clickzetta.yaml up -d"CODE
HIGHapi/tests/unit_tests/tools/test_api_tool.py145 # Explicit content also covers JSON null, which is distinct from no body.COMMENT
HIGHapi/tests/unit_tests/core/tools/test_tool_engine.py183 pytest.param('[ {"b":2,"a":1},null,true ]', [{"a": 1, "b": 2}, None, True], id="array"),CODE
HIGH⚡api/tests/unit_tests/core/tools/test_tool_engine.py216 pytest.param('{"a":null}', {"a": False}, '{"a": false}', id="null-vs-boolean"),CODE
HIGHapi/tests/unit_tests/core/plugin/test_plugin_runtime.py663 f'data: {{"code": -500, "message": {json.dumps(error_obj)}, "data": null}}',CODE
HIGHapi/tests/unit_tests/core/plugin/test_plugin_runtime.py1088 f'data: {{"code": -500, "message": {json.dumps(error_obj)}, "data": null}}',CODE
HIGH⚡…s/unit_tests/core/plugin/impl/test_base_client_impl.py155 client, "_stream_request", return_value=iter(['{"code":-500,"message":"not-json","data":null}'])CODE
HIGH⚡…s/unit_tests/core/plugin/impl/test_base_client_impl.py164 mocker.patch.object(client, "_stream_request", return_value=iter(['{"code":-1,"message":"err","data":null}']))CODE
HIGH⚡…s/unit_tests/core/plugin/impl/test_base_client_impl.py171 mocker.patch.object(client, "_stream_request", return_value=iter(['{"code":0,"message":"","data":null}']))CODE
HIGHapi/tests/unit_tests/core/mcp/test_types.py158 request_json = '{"jsonrpc": "2.0", "id": 1, "method": "test", "params": null}'CODE
HIGH⚡api/tests/unit_tests/core/mcp/client/test_sse.py24 json_message = '{"jsonrpc": "2.0", "id": "123", "method": "ping", "params": null}'CODE
HIGH⚡api/tests/unit_tests/core/mcp/client/test_sse.py39 json_message = '{"jsonrpc": "2.0", "method": "ping", "params": null}'CODE
HIGH…nit_tests/core/rag/retrieval/test_dataset_retrieval.py2879 numeric, null, and collection operators.STRING
HIGH…ositories/data_source/test_oauth_binding_repository.py1from sqlalchemy import null, select, updateCODE
HIGHapi/tests/unit_tests/libs/test_oauth_clients.py153 # The profile email is absent/null, so /user/emails should be calledCOMMENT
HIGH…tests/unit_tests/commands/test_check_no_new_getattr.py254 "base-rev: ${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha }}"CODE
HIGHapi/tests/unit_tests/controllers/mcp/test_mcp.py614 """An unsupported header gets a JSON-RPC error echoing the request id (missing id -> null)."""STRING
HIGH…s/unit_tests/controllers/files/test_appdeploy_files.py15from sqlalchemy import null, updateCODE
HIGH…t_tests/controllers/console/test_knowledge_fs_proxy.py380 content=gzip.compress(b'{"items":[],"nextCursor":null}'),CODE
HIGH⚡…t_tests/controllers/console/explore/test_completion.py107 yield 'data: {"answer":"你好","metadata":{},"usage":null}\n\n'CODE
HIGH⚡…t_tests/controllers/console/explore/test_completion.py114 assert response.data == 'data: {"answer":"你好","metadata":{},"usage":null}\n\n'.encode()CODE
HIGHapi/tests/unit_tests/services/test_billing_service.py498 """When billing serializes skipped vector_space as null, get_info treats it as absent."""STRING
HIGH…tests/unit_tests/services/test_agent_config_service.py372 manifest = service.push(CODE
HIGH…/unit_tests/services/tools/test_mcp_tools_transform.py334 mock_provider_full.tools = '[{"name": "tool1", "description": null, "inputSchema": {}}]'CODE
HIGH…repositories/sqlalchemy_api_workflow_run_repository.py32from sqlalchemy import and_, delete, func, null, or_, select, tuple_CODE
HIGHapi/controllers/mcp/mcp.py107 offending request's id directly (None -> null) instead of fabricating a placeholder.STRING
HIGHapi/services/billing_service.py244 # Unset proto message fields can be serialized as null; the light billing contract treats it as absent.COMMENT
HIGHapi/services/knowledge/entities/datasets.py59 # Detail/create responses may omit membership or explicitly return null;COMMENT
Over-Commented Block218 hits · 190 pts
SeverityFileLineSnippetContext
LOWdocker/dify-env-sync.py1#!/usr/bin/env python3COMMENT
LOWdocker/dify-env-sync.sh1#!/bin/bashCOMMENT
LOWdocker/ssrf_proxy/docker-entrypoint.sh1#!/bin/bashCOMMENT
LOWdocker/volumes/opensearch/opensearch_dashboards.yml1---COMMENT
LOWdocker/volumes/opensearch/opensearch_dashboards.yml21COMMENT
LOWdocker/volumes/opensearch/opensearch_dashboards.yml41COMMENT
LOWdocker/volumes/opensearch/opensearch_dashboards.yml61# server.ssl.enabled: falseCOMMENT
LOWdocker/volumes/opensearch/opensearch_dashboards.yml81COMMENT
LOWdocker/volumes/opensearch/opensearch_dashboards.yml101# pid.file: /var/run/opensearchDashboards.pidCOMMENT
LOWdocker/volumes/opensearch/opensearch_dashboards.yml121# Supported languages are the following: English - en , by default , Chinese - zh-CN .COMMENT
LOWdocker/volumes/opensearch/opensearch_dashboards.yml141# //Reserved IP addressCOMMENT
LOWdocker/volumes/opensearch/opensearch_dashboards.yml161# defaultUrl: ""COMMENT
LOWdocker/volumes/opensearch/opensearch_dashboards.yml181# Set the value of this setting to false to disable VisBuilderCOMMENT
LOW…fy_agent/dify_agent_examples/run_server_sync_client.py61 plugin_id=PLUGIN_ID, model_provider=PLUGIN_PROVIDER, model=MODEL_NAMECOMMENT
LOW…fy_agent/dify_agent_examples/run_server_sync_client.py81 # plugin_id="langgenius/search",COMMENT
LOW…/dify_agent/dify_agent_examples/run_server_consumer.py81 # )COMMENT
LOW…/dify_agent/dify_agent_examples/run_server_consumer.py101 # ),COMMENT
LOWsdks/nodejs-client/scripts/publish.sh1#!/usr/bin/env bashCOMMENT
LOWdify-agent-runtime/cmd/runner/main.go1// shellctl-runner is the Go replacement for the previously generated bash+pythonCOMMENT
LOWdify-agent-runtime/internal/snapshot/snapshot.go1// Package snapshot implements single-pass streaming save/restore of theCOMMENT
LOWdify-agent-runtime/internal/snapshot/gitignore/doc.go1// Package gitignore matches paths against gitignore-syntax patterns.COMMENT
LOWdify-agent-runtime/internal/server/server.go1// Package server implements the shellctl HTTP API and job lifecycle service.COMMENT
LOWdify-agent-runtime/benchmarks/e2e_test.go1// End-to-end benchmarks that drive the real shellctl HTTP API in-process.COMMENT
LOW…/tools/mcp/sections/__tests__/headers-section.spec.tsx141 const headers = [{ id: '1', key: '', value: 'Value' }]COMMENT
LOW…/tools/mcp/sections/__tests__/headers-section.spec.tsx161 // Empty key headers don't trigger maskingCOMMENT
LOW…/tools/mcp/sections/__tests__/headers-section.spec.tsx181 // Whitespace-only key doesn't count as having contentCOMMENT
LOW…/tools/mcp/sections/__tests__/headers-section.spec.tsx201 // Whitespace-only key doesn't count as having contentCOMMENT
LOW…ig/settings-modal/__tests__/retrieval-section.spec.tsx161 // ActCOMMENT
LOW…ig/settings-modal/__tests__/retrieval-section.spec.tsx181 // AssertCOMMENT
LOW…bug/debug-with-multiple-model/__tests__/index.spec.tsx561 renderComponent({ multipleModelConfigs })COMMENT
LOW…bug/debug-with-multiple-model/__tests__/index.spec.tsx581 // AssertCOMMENT
LOW…ebug-with-multiple-model/__tests__/debug-item.spec.tsx521 // When provider/model doesn't match, ChatItem won't renderCOMMENT
LOW…ebug-with-multiple-model/__tests__/debug-item.spec.tsx541 // When provider/model doesn't match, ChatItem won't renderCOMMENT
LOW…otation/edit-annotation-modal/__tests__/index.spec.tsx81 // AssertCOMMENT
LOW…otation/edit-annotation-modal/__tests__/index.spec.tsx101 // AssertCOMMENT
LOW…otation/edit-annotation-modal/__tests__/index.spec.tsx241 // Assert - Confirm dialog should not be visible initiallyCOMMENT
LOW…pp/components/app/workflow-log/__tests__/list.spec.tsx541 // Before click - no highlightCOMMENT
LOW…pp/components/app/workflow-log/__tests__/list.spec.tsx561 // Before click - no highlightCOMMENT
LOW…pp/components/app/workflow-log/__tests__/list.spec.tsx661 await user.click(dataRows[1]!)COMMENT
LOW…pp/components/app/workflow-log/__tests__/list.spec.tsx681 // Replay button should not be present for webhook triggersCOMMENT
LOW…pp/components/app/workflow-log/__tests__/list.spec.tsx861COMMENT
LOW…pp/components/app/workflow-log/__tests__/list.spec.tsx881 // Should render without trigger columnCOMMENT
LOWweb/app/components/plugins/marketplace/query-options.ts21 },COMMENT
LOW…mponents/plugins/plugin-item/__tests__/action.spec.tsx501 fireEvent.click(getPluginInfoButton())COMMENT
LOW…mponents/plugins/plugin-item/__tests__/action.spec.tsx521 // AssertCOMMENT
LOW…lugins/plugin-auth/authorized/__tests__/index.spec.tsx1421 isOpen={true}COMMENT
LOW…lugins/plugin-auth/authorized/__tests__/index.spec.tsx1441 // Set default button should not be visibleCOMMENT
LOW…lugins/plugin-auth/authorized/__tests__/index.spec.tsx1781 render(<Authorized pluginPayload={pluginPayload} credentials={credentials} isOpen={true} />, {COMMENT
LOW…lugins/plugin-auth/authorized/__tests__/index.spec.tsx1801 // so pendingOperationCredentialId stays nullCOMMENT
LOW…lugins/plugin-auth/authorized/__tests__/index.spec.tsx1821 // With no credentials, there's no way to trigger openConfirm,COMMENT
LOW…lugins/plugin-auth/authorized/__tests__/index.spec.tsx1841 // This edge case is handled by the component's internal logicCOMMENT
LOW…lugins/plugin-auth/authorized/__tests__/index.spec.tsx1861 // so pendingOperationCredentialId stays nullCOMMENT
LOW…ponents/datasets/rename-modal/__tests__/index.spec.tsx361 // Just verify the element is focusable (don't check activeElement as it may differ in test environment)COMMENT
LOW…ponents/datasets/rename-modal/__tests__/index.spec.tsx381 // Just verify the element is focusable (don't check activeElement as it may differ in test environment)COMMENT
LOW…ponents/datasets/rename-modal/__tests__/index.spec.tsx401 // Just verify the element is focusableCOMMENT
LOW…ponents/datasets/rename-modal/__tests__/index.spec.tsx661 // Save button should be enabled againCOMMENT
LOW…ponents/datasets/rename-modal/__tests__/index.spec.tsx1241 fireEvent.click(saveButton)COMMENT
LOW…ponents/datasets/rename-modal/__tests__/index.spec.tsx1261 // Button should be re-enabled after errorCOMMENT
LOW…esting/components/query-input/__tests__/index.spec.tsx221 // Submit should be enabled since we have text + uploaded imageCOMMENT
LOW…esting/components/query-input/__tests__/index.spec.tsx241 // Submit should be enabled since we have text + uploaded imageCOMMENT
158 more matches not shown…
Structural Annotation Overuse78 hits · 151 pts
SeverityFileLineSnippetContext
LOW⚡docker/docker-compose.yaml2# WARNING: This file is auto-generated by generate_docker_composeCOMMENT
LOW⚡sdks/nodejs-client/scripts/publish.sh127 # Step 1: Environment CheckCOMMENT
LOW⚡sdks/nodejs-client/scripts/publish.sh164 # Step 2: Read Package InfoCOMMENT
LOW⚡sdks/nodejs-client/scripts/publish.sh187 # Step 3: Install DependenciesCOMMENT
LOW⚡sdks/nodejs-client/scripts/publish.sh195 # Step 4: Run TestsCOMMENT
LOW⚡sdks/nodejs-client/scripts/publish.sh207 # Step 5: BuildCOMMENT
LOW⚡sdks/nodejs-client/scripts/publish.sh229 # Step 6: PublishCOMMENT
LOW⚡dify-agent-runtime/internal/agentcli/file.go70 // Step 1: Request a signed upload URLCOMMENT
LOW⚡dify-agent-runtime/internal/agentcli/file.go76 // Step 2: Upload the file to the signed URL (data-plane)COMMENT
LOWdify-agent-runtime/internal/agentcli/file.go100 // Step 3: Request a browser-visible URL unless the caller only needs theCOMMENT
LOW⚡…-panel/subscription-list/edit/__tests__/index.spec.tsx1274 // Step 1: VerifyCOMMENT
LOW⚡…-panel/subscription-list/edit/__tests__/index.spec.tsx1280 // Step 2: UpdateCOMMENT
LOW⚡…in/install-from-local-package/__tests__/index.spec.tsx1870 // Step 1: UploadingCOMMENT
LOW⚡…in/install-from-local-package/__tests__/index.spec.tsx1873 // Step 2: Upload complete, transition to readyToInstallCOMMENT
LOW⚡…in/install-from-local-package/__tests__/index.spec.tsx1881 // Step 3: Start installationCOMMENT
LOW⚡…in/install-from-local-package/__tests__/index.spec.tsx1885 // Step 4: Installation completeCOMMENT
LOW⚡…in/install-from-local-package/__tests__/index.spec.tsx1947 // Step 1: UploadingCOMMENT
LOW⚡…in/install-from-local-package/__tests__/index.spec.tsx1951 // Step 2: Upload complete, transition to readyToInstallCOMMENT
LOW⚡…in/install-from-local-package/__tests__/index.spec.tsx1960 // Step 3: Start installationCOMMENT
LOW⚡…in/install-from-local-package/__tests__/index.spec.tsx1964 // Step 4: Installation completeCOMMENT
LOW⚡…ets/create/website/watercrawl/__tests__/index.spec.tsx1675 // Step 1: Enter URLCOMMENT
LOW⚡…ets/create/website/watercrawl/__tests__/index.spec.tsx1679 // Step 2: Run crawlCOMMENT
LOW⚡…ets/create/website/watercrawl/__tests__/index.spec.tsx1682 // Step 3: Wait for completionCOMMENT
LOW⚡…ets/create/website/watercrawl/__tests__/index.spec.tsx1687 // Step 4: Click previewCOMMENT
LOW⚡…pp/components/datasets/create/__tests__/index.spec.tsx1073 // Step 1: Set up dataCOMMENT
LOW⚡…pp/components/datasets/create/__tests__/index.spec.tsx1077 // Step 2: Set cachesCOMMENT
LOW⚡…components/variable/__tests__/output-var-list.spec.tsx88 // Step 1: rename var_2 -> var_1 (creates duplicate)COMMENT
LOW⚡…components/variable/__tests__/output-var-list.spec.tsx98 // Step 2: rename second var_1 -> var_2 (restores unique names)COMMENT
LOW⚡web/app/components/base/mermaid/index.tsx254 // Step 1: Clean and prepare Mermaid code using the extracted prepareMermaidCode functionCOMMENT
LOW⚡web/app/components/base/mermaid/index.tsx261 // Step 2: Render chartCOMMENT
LOW⚡web/app/components/base/mermaid/index.tsx264 // Step 3: Apply theme to SVG using the extracted processSvgForTheme functionCOMMENT
LOW⚡web/app/components/base/mermaid/index.tsx272 // Step 4: Clean up SVG codeCOMMENT
LOWcli/scripts/e2e-provision.ts88 // Step 1: device codeCOMMENT
LOWcli/scripts/e2e-provision.ts101 // Step 2: approve (with retry)COMMENT
LOWcli/scripts/e2e-provision.ts117 // Step 3: exchange tokenCOMMENT
LOWapi/gunicorn.conf.py5# WARNING: This module is loaded very early in the Gunicorn worker lifecycle,COMMENT
LOWapi/core/tools/mcp_tool/tool.py298 # Step 1: Load provider entity and credentials in a short-lived sessionCOMMENT
LOWapi/core/tools/mcp_tool/tool.py325 # Step 2: Session is now closed, perform network operations without holding database connectionCOMMENT
LOWapi/core/workflow/nodes/human_input/entities.py40 # NOTE: This class is renamed from FormInputDefault.COMMENT
LOWapi/core/workflow/nodes/human_input/entities.py107 # NOTE: This class is renamed from FormInput.COMMENT
LOW⚡…tests/unit_tests/core/datasource/test_website_crawl.py938 # Step 1: Start crawlCOMMENT
LOW⚡…tests/unit_tests/core/datasource/test_website_crawl.py948 # Step 2: Check status (running)COMMENT
LOW⚡…tests/unit_tests/core/datasource/test_website_crawl.py987 # Step 4: Get specific URL dataCOMMENT
LOW…tests/unit_tests/core/datasource/test_website_crawl.py960 # Step 3: Check status (completed)COMMENT
LOW⚡…sts/core/tools/utils/test_tool_engine_serialization.py429 # Step 1: Create ToolInvokeMessageCOMMENT
LOW⚡…sts/core/tools/utils/test_tool_engine_serialization.py433 # Step 2: Apply safe_json_value transformationCOMMENT
LOW⚡…sts/core/tools/utils/test_tool_engine_serialization.py436 # Step 3: Serialize to JSON stringCOMMENT
LOW⚡…sts/core/tools/utils/test_tool_engine_serialization.py439 # Step 4: Verify the string is valid JSONCOMMENT
LOW⚡…sts/core/tools/utils/test_tool_engine_serialization.py444 # Step 5: Deserialize back to Python objectCOMMENT
LOW⚡…sts/core/tools/utils/test_tool_engine_serialization.py447 # Step 6: Verify data integrityCOMMENT
LOW⚡…sts/core/tools/utils/test_tool_engine_serialization.py457 # Step 7: Verify all complex types were properly convertedCOMMENT
LOW⚡api/tests/unit_tests/services/test_billing_service.py1723 # Step 1: Get current billing infoCOMMENT
LOW⚡api/tests/unit_tests/services/test_billing_service.py1738 # Step 2: Get payment link for upgradeCOMMENT
LOW⚡api/tests/unit_tests/services/test_billing_service.py1743 # Step 3: Verify new rate limits after upgradeCOMMENT
LOW⚡api/tests/unit_tests/services/test_billing_service.py1755 # Step 1: Consume creditsCOMMENT
LOW⚡api/tests/unit_tests/services/test_billing_service.py1761 # Step 2: Check current usageCOMMENT
LOW⚡api/tests/unit_tests/services/test_billing_service.py1767 # Step 3: Refund the usageCOMMENT
LOW⚡api/tests/unit_tests/services/test_billing_service.py1772 # Step 4: Verify usage after refundCOMMENT
LOW⚡…ntegration_tests/services/test_conversation_service.py1105 # Step 1: Immediate logical deletionCOMMENT
LOW⚡…ntegration_tests/services/test_conversation_service.py1110 # Step 2: Async cleanup task triggeredCOMMENT
18 more matches not shown…
Modern AI Meta-Vocabulary50 hits · 148 pts
SeverityFileLineSnippetContext
MEDIUM…dataset-config/settings-modal/__tests__/index.spec.tsx407 // Validation guardrails before saving.COMMENT
MEDIUMweb/features/new-rag/README.md1# New RAGCOMMENT
MEDIUM…lls/frontend-code-review/references/dify-invariants.md12## Workflow Nodes And RAG PipeCOMMENT
MEDIUMcli/ARD.md57## New command scaffoldCOMMENT
MEDIUMcli/test/e2e/README.md147(PR #37460): `--think` surfaces the chain-of-thought to stderr framed asCODE
MEDIUM.github/workflows/main-ci.yml24 # Keep orchestration on Depot to avoid GitHub-hosted runner queue delays.COMMENT
MEDIUMapi/tasks/async_workflow_tasks.py192 # Final failure - no retry logic (simplified like RAG tasks)COMMENT
MEDIUMapi/core/rag/datasource/vdb/vector_factory.py147 # construction. The real embedding model is materialized only when anCOMMENT
MEDIUMapi/core/workflow/node_factory.py583 # Stage 4 §5/§7: per-output validation + failure orchestration. TheCOMMENT
MEDIUMapi/core/workflow/nodes/agent_v2/agent_node.py368 # ──── Stage 4: orchestrate retry / default / fail ────COMMENT
MEDIUMapi/enterprise/telemetry/enterprise_trace.py922 # Get embedding model for this specific datasetCOMMENT
MEDIUM⚡api/constants/pipeline_templates.json1356 "export_data": "dependencies:\n- current_identifier: null\n type: marketplace\n value:\n marketplace_plugin_uCODE
MEDIUM⚡api/constants/pipeline_templates.json1356 "export_data": "dependencies:\n- current_identifier: null\n type: marketplace\n value:\n marketplace_plugin_uCODE
MEDIUMapi/constants/pipeline_templates.json122 "export_data": "dependencies:\n- current_identifier: null\n type: marketplace\n value:\n marketplace_plugin_uCODE
MEDIUMapi/constants/pipeline_templates.json122 "export_data": "dependencies:\n- current_identifier: null\n type: marketplace\n value:\n marketplace_plugin_uCODE
MEDIUMapi/constants/pipeline_templates.json3875 "export_data": "dependencies:\n- current_identifier: null\n type: marketplace\n value:\n marketplace_plugin_uCODE
MEDIUMapi/constants/pipeline_templates.json3875 "export_data": "dependencies:\n- current_identifier: null\n type: marketplace\n value:\n marketplace_plugin_uCODE
MEDIUMapi/constants/pipeline_templates.json5191 "export_data": "dependencies:\n- current_identifier: null\n type: marketplace\n value:\n marketplace_plugin_uniCODE
MEDIUM…ace-tencent/src/dify_trace_tencent/entities/semconv.py85 RETRIEVER = "RETRIEVER" # RAGCODE
MEDIUM…t_tests/core/rag/datasource/vdb/test_vector_factory.py196 # embedding model until ``embed_*`` is invoked, so cleanup paths neverCOMMENT
MEDIUMapi/tests/unit_tests/core/rag/rerank/test_reranker.py726 # Mock embedding modelCOMMENT
MEDIUM…ests/unit_tests/core/workflow/generator/test_runner.py3431 # Only "real_search" is installed; "fake_search" is the hallucination.COMMENT
MEDIUM…ers/console/app/test_workflow_human_input_debug_api.py50 # Skip setup and auth guardrailsCOMMENT
MEDIUMapi/tests/unit_tests/services/test_workflow_service.py187 # Add trigger node for event-driven workflows (webhook, schedule, etc.)COMMENT
MEDIUMapi/tests/unit_tests/services/test_workflow_service.py1502 # Trigger nodes enable event-driven automation which consumes resourcesCOMMENT
MEDIUM…tests/tasks/test_batch_create_segment_to_index_task.py67 # Mock embedding model for high quality indexingCOMMENT
MEDIUMapi/extensions/ext_celery.py179 "tasks.rag_pipeline.rag_pipeline_run_task", # regular RAG pipeline executionCODE
MEDIUMapi/extensions/ext_celery.py180 "tasks.rag_pipeline.priority_rag_pipeline_run_task", # priority RAG pipeline executionCODE
MEDIUMapi/controllers/service_api/dataset/dataset.py693 # check embedding model settingCOMMENT
MEDIUMapi/controllers/service_api/dataset/segment.py203 # check embedding model settingCOMMENT
MEDIUMapi/controllers/service_api/dataset/segment.py302 # check embedding model settingCOMMENT
MEDIUMapi/controllers/service_api/dataset/segment.py444 # check embedding model settingCOMMENT
MEDIUMapi/controllers/service_api/dataset/segment.py601 # check embedding model settingCOMMENT
MEDIUMapi/controllers/console/app/generator.py64# planner+builder prompts well inside every mainstream context window.COMMENT
MEDIUM⚡api/services/knowledge/dataset_service.py847 # Remove embedding model configuration for economy modeCOMMENT
MEDIUM⚡api/services/knowledge/dataset_service.py853 # Configure embedding model for high quality modeCOMMENT
MEDIUM⚡api/services/knowledge/dataset_service.py857 # Handle embedding model updates when indexing technique remains the sameCOMMENT
MEDIUM⚡api/services/knowledge/dataset_service.py935 # If the dataset already has embedding model settings, use thoseCOMMENT
MEDIUM⚡api/services/knowledge/dataset_service.py942 # Otherwise, don't try to update embedding model settings at allCOMMENT
MEDIUMapi/services/knowledge/dataset_service.py322 # check if embedding model setting is validCOMMENT
MEDIUMapi/services/knowledge/dataset_service.py696 # Handle indexing technique changes and embedding model updatesCOMMENT
MEDIUMapi/services/knowledge/dataset_service.py914 # Skip embedding model checks if not provided in the update requestCOMMENT
MEDIUMapi/services/knowledge/dataset_service.py1008 # If we can't get the embedding model, preserve existing settingsCOMMENT
MEDIUMapi/services/knowledge/dataset_service.py1019 # Skip the rest of the embedding model updateCOMMENT
MEDIUMapi/services/knowledge/dataset_service.py1022 # Apply new embedding model settingsCOMMENT
MEDIUMapi/services/knowledge/dataset_service.py1137 # get embedding model settingCOMMENT
MEDIUMapi/services/knowledge/dataset_service.py1171 # Skip embedding model checks if not provided in the update requestCOMMENT
MEDIUMapi/services/knowledge/dataset_service.py1187 # Only update embedding model if both values are provided and different from currentCOMMENT
MEDIUMapi/services/knowledge/dataset_service.py1203 # If we can't get the embedding model, skip updating itCOMMENT
MEDIUMapi/services/knowledge/dataset_service.py1205 # Skip the rest of the embedding model updateCOMMENT
Verbosity Indicators73 hits · 143 pts
SeverityFileLineSnippetContext
LOW⚡sdks/nodejs-client/scripts/publish.sh127 # Step 1: Environment CheckCOMMENT
LOW⚡sdks/nodejs-client/scripts/publish.sh164 # Step 2: Read Package InfoCOMMENT
LOW⚡sdks/nodejs-client/scripts/publish.sh187 # Step 3: Install DependenciesCOMMENT
LOW⚡sdks/nodejs-client/scripts/publish.sh195 # Step 4: Run TestsCOMMENT
LOW⚡sdks/nodejs-client/scripts/publish.sh207 # Step 5: BuildCOMMENT
LOW⚡sdks/nodejs-client/scripts/publish.sh229 # Step 6: PublishCOMMENT
LOW⚡dify-agent-runtime/internal/agentcli/file.go70 // Step 1: Request a signed upload URLCOMMENT
LOW⚡dify-agent-runtime/internal/agentcli/file.go76 // Step 2: Upload the file to the signed URL (data-plane)COMMENT
LOWdify-agent-runtime/internal/agentcli/file.go100 // Step 3: Request a browser-visible URL unless the caller only needs theCOMMENT
LOW⚡…-panel/subscription-list/edit/__tests__/index.spec.tsx1274 // Step 1: VerifyCOMMENT
LOW⚡…-panel/subscription-list/edit/__tests__/index.spec.tsx1280 // Step 2: UpdateCOMMENT
LOW⚡…in/install-from-local-package/__tests__/index.spec.tsx1870 // Step 1: UploadingCOMMENT
LOW⚡…in/install-from-local-package/__tests__/index.spec.tsx1873 // Step 2: Upload complete, transition to readyToInstallCOMMENT
LOW⚡…in/install-from-local-package/__tests__/index.spec.tsx1881 // Step 3: Start installationCOMMENT
LOW⚡…in/install-from-local-package/__tests__/index.spec.tsx1885 // Step 4: Installation completeCOMMENT
LOW⚡…in/install-from-local-package/__tests__/index.spec.tsx1947 // Step 1: UploadingCOMMENT
LOW⚡…in/install-from-local-package/__tests__/index.spec.tsx1951 // Step 2: Upload complete, transition to readyToInstallCOMMENT
LOW⚡…in/install-from-local-package/__tests__/index.spec.tsx1960 // Step 3: Start installationCOMMENT
LOW⚡…in/install-from-local-package/__tests__/index.spec.tsx1964 // Step 4: Installation completeCOMMENT
LOW⚡…ets/create/website/watercrawl/__tests__/index.spec.tsx1675 // Step 1: Enter URLCOMMENT
LOW⚡…ets/create/website/watercrawl/__tests__/index.spec.tsx1679 // Step 2: Run crawlCOMMENT
LOW⚡…ets/create/website/watercrawl/__tests__/index.spec.tsx1682 // Step 3: Wait for completionCOMMENT
LOW⚡…ets/create/website/watercrawl/__tests__/index.spec.tsx1687 // Step 4: Click previewCOMMENT
LOW⚡…pp/components/datasets/create/__tests__/index.spec.tsx1073 // Step 1: Set up dataCOMMENT
LOW⚡…pp/components/datasets/create/__tests__/index.spec.tsx1077 // Step 2: Set cachesCOMMENT
LOW⚡…components/variable/__tests__/output-var-list.spec.tsx88 // Step 1: rename var_2 -> var_1 (creates duplicate)COMMENT
LOW⚡…components/variable/__tests__/output-var-list.spec.tsx98 // Step 2: rename second var_1 -> var_2 (restores unique names)COMMENT
LOW⚡web/app/components/base/mermaid/index.tsx254 // Step 1: Clean and prepare Mermaid code using the extracted prepareMermaidCode functionCOMMENT
LOW⚡web/app/components/base/mermaid/index.tsx261 // Step 2: Render chartCOMMENT
LOW⚡web/app/components/base/mermaid/index.tsx264 // Step 3: Apply theme to SVG using the extracted processSvgForTheme functionCOMMENT
LOW⚡web/app/components/base/mermaid/index.tsx272 // Step 4: Clean up SVG codeCOMMENT
LOWcli/scripts/e2e-provision.ts88 // Step 1: device codeCOMMENT
LOWcli/scripts/e2e-provision.ts101 // Step 2: approve (with retry)COMMENT
LOWcli/scripts/e2e-provision.ts117 // Step 3: exchange tokenCOMMENT
LOWapi/core/tools/mcp_tool/tool.py298 # Step 1: Load provider entity and credentials in a short-lived sessionCOMMENT
LOWapi/core/tools/mcp_tool/tool.py325 # Step 2: Session is now closed, perform network operations without holding database connectionCOMMENT
LOW⚡…tests/unit_tests/core/datasource/test_website_crawl.py938 # Step 1: Start crawlCOMMENT
LOW⚡…tests/unit_tests/core/datasource/test_website_crawl.py948 # Step 2: Check status (running)COMMENT
LOW⚡…tests/unit_tests/core/datasource/test_website_crawl.py987 # Step 4: Get specific URL dataCOMMENT
LOW…tests/unit_tests/core/datasource/test_website_crawl.py960 # Step 3: Check status (completed)COMMENT
LOW⚡…sts/core/tools/utils/test_tool_engine_serialization.py429 # Step 1: Create ToolInvokeMessageCOMMENT
LOW⚡…sts/core/tools/utils/test_tool_engine_serialization.py433 # Step 2: Apply safe_json_value transformationCOMMENT
LOW⚡…sts/core/tools/utils/test_tool_engine_serialization.py436 # Step 3: Serialize to JSON stringCOMMENT
LOW⚡…sts/core/tools/utils/test_tool_engine_serialization.py439 # Step 4: Verify the string is valid JSONCOMMENT
LOW⚡…sts/core/tools/utils/test_tool_engine_serialization.py444 # Step 5: Deserialize back to Python objectCOMMENT
LOW⚡…sts/core/tools/utils/test_tool_engine_serialization.py447 # Step 6: Verify data integrityCOMMENT
LOW⚡…sts/core/tools/utils/test_tool_engine_serialization.py457 # Step 7: Verify all complex types were properly convertedCOMMENT
LOW⚡api/tests/unit_tests/services/test_billing_service.py1723 # Step 1: Get current billing infoCOMMENT
LOW⚡api/tests/unit_tests/services/test_billing_service.py1738 # Step 2: Get payment link for upgradeCOMMENT
LOW⚡api/tests/unit_tests/services/test_billing_service.py1743 # Step 3: Verify new rate limits after upgradeCOMMENT
LOW⚡api/tests/unit_tests/services/test_billing_service.py1755 # Step 1: Consume creditsCOMMENT
LOW⚡api/tests/unit_tests/services/test_billing_service.py1761 # Step 2: Check current usageCOMMENT
LOW⚡api/tests/unit_tests/services/test_billing_service.py1767 # Step 3: Refund the usageCOMMENT
LOW⚡api/tests/unit_tests/services/test_billing_service.py1772 # Step 4: Verify usage after refundCOMMENT
LOW⚡…ntegration_tests/services/test_conversation_service.py1105 # Step 1: Immediate logical deletionCOMMENT
LOW⚡…ntegration_tests/services/test_conversation_service.py1110 # Step 2: Async cleanup task triggeredCOMMENT
LOW⚡api/extensions/logstore/aliyun_logstore.py309 # Step 1: Ensure project and logstore existCOMMENT
LOW⚡api/extensions/logstore/aliyun_logstore.py317 # Step 2: Initialize PG client and connection (if enabled)COMMENT
LOWapi/extensions/logstore/aliyun_logstore.py329 # Step 3: Establish PG connection based on project statusCOMMENT
LOW⚡api/controllers/console/workspace/tool_providers.py1444 # Step 1: Get provider data for URL validation (short-lived session, no network I/O)COMMENT
13 more matches not shown…
AI Slop Vocabulary42 hits · 99 pts
SeverityFileLineSnippetContext
MEDIUMdocker/dify-env-sync.sh231 # Numeric check - using arithmetic evaluation for robust comparisonCOMMENT
MEDIUM…/chat-with-history/header/__tests__/operation.spec.tsx90 // Find trigger container by text and traverse to interactive container using a more robust selectorCOMMENT
MEDIUMweb/app/components/base/mermaid/utils.ts193 // parser is more robust.COMMENT
MEDIUMweb/public/vs/language/css/cssWorker.js73This is used to produce an effect that is known as tate-ch\u016B-yoko (\u7E26\u4E2D\u6A2A) in Japanese, or as \u76F4\u66CODE
MEDIUMweb/public/vs/language/html/htmlWorker.js259 * To learn about this declaration in Firefox for Mobile, see [this article](https://developer.mozilla.org/en-US/doCOMMENT
MEDIUMweb/public/vs/language/html/htmlWorker.js270Default mode, which indicates no preference for the decoding mode. The browser decides what is best for the user.`}},{naCODE
MEDIUMweb/public/vs/language/html/htmlWorker.js270Default mode, which indicates no preference for the decoding mode. The browser decides what is best for the user.`}},{naCODE
MEDIUMweb/public/vs/language/html/htmlWorker.js288**Note**: Sites that automatically play audio (or videos with an audio track) can be an unpleasant experience for users,CODE
MEDIUMapi/constants/recommended_apps.json429 "export_data": "app:\n icon: \"\\U0001F911\"\n icon_background: '#E4FBCC'\n mode: agent-chat\n name: InvCODE
MEDIUMapi/constants/recommended_apps.json429 "export_data": "app:\n icon: \"\\U0001F911\"\n icon_background: '#E4FBCC'\n mode: agent-chat\n name: InvCODE
MEDIUMapi/constants/recommended_apps.json447 "export_data": "app:\n icon: \"\\U0001F916\"\n icon_background: '#FFEAD5'\n mode: chat\n name: Python buCODE
MEDIUMapi/constants/recommended_apps.json487 "export_data": "app:\n icon: \"\\U0001F522\"\n icon_background: '#E4FBCC'\n mode: agent-chat\n name: YouCODE
MEDIUMapi/constants/recommended_apps.json503 "export_data": "app:\n icon: \"\\U0001F916\"\n icon_background: '#FFEAD5'\n mode: workflow\n name: SEO BCODE
MEDIUMapi/constants/recommended_apps.json519 "export_data": "app:\n icon: \"\\U0001F916\"\n icon_background: '#FFEAD5'\n mode: workflow\n name: 'SentCODE
MEDIUM⚡api/constants/pipeline_templates.json1356 "export_data": "dependencies:\n- current_identifier: null\n type: marketplace\n value:\n marketplace_plugin_uCODE
MEDIUMapi/constants/pipeline_templates.json3132 "export_data": "dependencies:\n- current_identifier: null\n type: marketplace\n value:\n marketplace_plugin_uCODE
MEDIUMapi/constants/pipeline_templates.json3132 "export_data": "dependencies:\n- current_identifier: null\n type: marketplace\n value:\n marketplace_plugin_uCODE
MEDIUM⚡…i/tests/unit_tests/core/datasource/test_file_upload.py891 """Tests for comprehensive filename validation logic.STRING
LOW…s/core/datasource/entities/test_datasource_entities.py70 # For STRING, it should just return the value as is (or cast to str)COMMENT
MEDIUMapi/tests/unit_tests/core/plugin/test_plugin_manager.py1001 # Arrange & Act: Create resource requirements with comprehensive model permissionsCOMMENT
LOW⚡…sts/unit_tests/core/mcp/session/test_client_session.py586 # Should just pass (case _:)COMMENT
MEDIUM…/tests/unit_tests/core/workflow/test_workflow_entry.py483 # Define comprehensive variable mappingCOMMENT
MEDIUM…i/tests/unit_tests/core/workflow/test_variable_pool.py193 # Create comprehensive system variablesCOMMENT
MEDIUM…i/tests/unit_tests/core/workflow/test_variable_pool.py272 # Create comprehensive user inputsCOMMENT
MEDIUM⚡…i/tests/unit_tests/core/workflow/test_variable_pool.py344 # Create a comprehensive VariablePool with all data typesCOMMENT
MEDIUM…i/tests/unit_tests/core/workflow/test_variable_pool.py363 # Create a comprehensive VariablePool with all data typesCOMMENT
LOW…t_tests/core/workflow/generator/test_runner_missing.py28 # BuiltinNodeTypes is not imported directly, we need to mock or just use the generator methodCOMMENT
MEDIUM…ts/core/external_data_tool/test_external_data_fetch.py30 # This approach is robust regardless of thread scheduling orderCOMMENT
MEDIUM…nit_tests/commands/test_legacy_model_type_migration.py1234 except BaseException as exc: # pragma: no cover - test harnessCODE
MEDIUM…nit_tests/commands/test_legacy_model_type_migration.py1321 except BaseException as exc: # pragma: no cover - test harnessCODE
MEDIUM…tests/controllers/console/app/test_model_config_api.py147 # Admission is supplied by this harness; parsing and HTTP errors use the real controller and API.COMMENT
MEDIUM⚡api/tests/unit_tests/services/controller_api.py922# When writing API tests, consider the following best practices:COMMENT
MEDIUM…s/unit_tests/services/test_external_dataset_service.py1272 """Test process_external_api operations - comprehensive HTTP method coverage."""STRING
MEDIUM…s/unit_tests/services/test_external_dataset_service.py1420 """Test assembling_headers operations - comprehensive authorization coverage."""STRING
MEDIUM…ation_tests/tasks/test_create_segment_to_index_task.py1084 # Arrange: Create comprehensive test scenarioCOMMENT
MEDIUM…ation_tests/tasks/test_create_segment_to_index_task.py1102 # Assert: Verify comprehensive successCOMMENT
MEDIUMapi/models/workflow.py1727 # `WorkflowEntry.handle_special_values`, making a comprehensive migration challenging.COMMENT
LOWapi/libs/external_api.py38 # If Werkzeug already prepared a Response, just use it. This bypassesCOMMENT
LOWapi/services/workflow_draft_variable_service.py426 # For consistency, we should simply return when processing VARIABLE_ASSIGNER nodes.COMMENT
LOWapi/services/snippet_dsl_service.py597 # For now, just return the dataset_id as-isCOMMENT
LOWapi/services/variable_truncator.py475 # without any truncation, so just return it as-isCOMMENT
MEDIUMapi/services/workflow_event_snapshot_service.py142 # ensure that we can utilize the index.COMMENT
AI Structural Patterns92 hits · 74 pts
SeverityFileLineSnippetContext
LOW…t/tests/local/dify_agent/adapters/llm/_test_support.py18CODE
LOWdify-agent/src/dify_agent/runtime/observability.py125CODE
LOWdify-agent/src/dify_agent/runtime/observability.py206CODE
LOWapi/core/tools/utils/web_reader_tool.py96CODE
LOWapi/core/app/apps/chat/generate_response_converter.py38CODE
LOWapi/core/app/apps/workflow/generate_task_pipeline.py783CODE
LOWapi/core/app/apps/advanced_chat/app_generator.py508CODE
LOW…/app/apps/advanced_chat/generate_response_converter.py60CODE
LOW…ore/app/apps/agent_chat/generate_response_converter.py38CODE
LOWapi/core/plugin/impl/model.py52CODE
LOWapi/core/plugin/backwards_invocation/model.py183CODE
LOWapi/core/plugin/backwards_invocation/model.py206CODE
LOWapi/core/rag/datasource/retrieval_service.py795CODE
LOWapi/core/workflow/nodes/agent/agent_node.py222CODE
LOWapi/core/helper/code_executor/template_transformer.py71CODE
LOWapi/core/moderation/api/api.py93CODE
LOW…s/vdb/vdb-vikingdb/tests/integration_tests/conftest.py24CODE
LOW…rs/vdb/vdb-tencent/tests/integration_tests/conftest.py18CODE
LOW…rs/vdb/vdb-tencent/tests/integration_tests/conftest.py124CODE
LOWapi/tests/workflow_test_utils.py32CODE
LOWapi/tests/unit_tests/model_factories.py39CODE
LOWapi/tests/unit_tests/model_factories.py101CODE
LOWapi/tests/unit_tests/model_factories.py146CODE
LOWapi/tests/unit_tests/model_factories.py170CODE
LOWapi/tests/unit_tests/model_factories.py204CODE
LOWapi/tests/unit_tests/model_factories.py249CODE
LOWapi/tests/unit_tests/model_factories.py285CODE
LOWapi/tests/unit_tests/model_factories.py338CODE
LOWapi/tests/unit_tests/model_factories.py382CODE
LOWapi/tests/unit_tests/model_factories.py437CODE
LOW…unit_tests/tasks/test_workflow_node_execution_tasks.py47CODE
LOW…_tests/core/tools/custom_tool/api_tool_http_fixture.py35CODE
LOW…ests/core/app/layers/test_pause_state_persist_layer.py108CODE
LOW…/test_sqlalchemy_workflow_node_execution_repository.py73CODE
LOW…/repositories/test_human_input_form_repository_impl.py222CODE
LOW…tests/core/rag/datasource/test_datasource_retrieval.py230CODE
LOW…nit_tests/core/rag/retrieval/test_dataset_retrieval.py458CODE
LOW…nit_tests/core/rag/retrieval/test_dataset_retrieval.py529CODE
LOW…nit_tests/core/rag/retrieval/test_dataset_retrieval.py608CODE
LOW…nit_tests/core/rag/retrieval/test_dataset_retrieval.py1359CODE
LOW…nit_tests/core/rag/retrieval/test_dataset_retrieval.py1454CODE
LOW…nit_tests/core/rag/retrieval/test_dataset_retrieval.py1507CODE
LOW…nit_tests/core/rag/retrieval/test_dataset_retrieval.py1567CODE
LOW…nit_tests/core/rag/retrieval/test_dataset_retrieval.py1646CODE
LOW…_tests/core/workflow/graph_engine/test_table_runner.py248CODE
LOWapi/tests/unit_tests/oss/__mock/aliyun_oss.py27CODE
LOW…nit_tests/controllers/service_api/app/test_workflow.py75CODE
LOW…ts/controllers/console/app/test_app_response_models.py59CODE
LOW…ests/controllers/console/explore/test_installed_app.py165CODE
LOW…s/unit_tests/services/test_trigger_provider_service.py55CODE
LOW…nit_tests/services/test_datasource_provider_service.py31CODE
LOW…ts/unit_tests/services/dataset_service_test_helpers.py306CODE
LOW…ts/unit_tests/services/dataset_service_test_helpers.py343CODE
LOW…ts/unit_tests/services/dataset_service_test_helpers.py158CODE
LOW…ts/unit_tests/services/dataset_service_test_helpers.py205CODE
LOW…s/unit_tests/services/test_dataset_service_document.py87CODE
LOW…it_tests/services/test_model_load_balancing_service.py110CODE
LOW…s/unit_tests/services/test_external_dataset_service.py35CODE
LOW…ts/unit_tests/services/test_dataset_service_dataset.py63CODE
LOW…sts/services/rag_pipeline/test_rag_pipeline_service.py136CODE
32 more matches not shown…
Dead Code19 hits · 38 pts
SeverityFileLineSnippetContext
MEDIUM…fy-agent/tests/local/dify_agent/runtime/test_runner.py190CODE
MEDIUM…fy-agent/tests/local/dify_agent/runtime/test_runner.py399CODE
MEDIUM…/tests/unit_tests/clients/agent_backend/test_client.py183CODE
MEDIUMapi/tests/unit_tests/core/test_model_manager.py246CODE
MEDIUMapi/tests/unit_tests/core/test_model_manager.py449CODE
MEDIUM…tests/unit_tests/core/plugin/impl/test_model_client.py206CODE
MEDIUM…tests/unit_tests/core/plugin/impl/test_model_client.py543CODE
MEDIUM…nit_tests/core/workflow/test_workflow_entry_helpers.py804CODE
MEDIUM…/tests/unit_tests/core/workflow/nodes/llm/test_node.py1672CODE
MEDIUM…_tests/core/workflow/nodes/agent_v2/test_agent_node.py313CODE
MEDIUM…_tests/core/workflow/nodes/agent_v2/test_agent_node.py374CODE
MEDIUM…_tests/core/workflow/nodes/agent_v2/test_agent_node.py387CODE
MEDIUM…it_tests/core/base/test_app_generator_tts_publisher.py256CODE
MEDIUM…s/unit_tests/controllers/common/test_audio_response.py123CODE
MEDIUM…it_tests/controllers/console/app/test_generator_api.py712CODE
MEDIUM…_tests/controllers/console/explore/test_trial_audio.py456CODE
MEDIUM…ts/unit_tests/services/test_agent_llm_inner_service.py350CODE
MEDIUMapi/tests/unit_tests/services/test_setup_service.py73CODE
MEDIUM…nit_tests/services/knowledge/test_document_creation.py330CODE
Magic Placeholder Names4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHsdks/php-client/README.md34$apiKey = 'your-api-key-here';CODE
HIGHsdks/php-client/README.md92Replace 'your-api-key-here' with your actual Dify API key.CODE
HIGH…ase/markdown-blocks/__tests__/shiki-highlight.spec.tsx43 const code = 'OPENAI_API_KEY=your-api-key\n# OPENAI_ORGANIZATION=org-id'CODE
HIGH…ase/markdown-blocks/__tests__/shiki-highlight.spec.tsx47 expect(result).toContain('your-api-key')CODE
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…/workflow-generator/__tests__/example-prompts.spec.tsx40 // The primary content is AI-generated, workspace-grounded chips fetched onCOMMENT
HIGH…/components/workflow/nodes/llm/__tests__/utils.spec.ts169 // A DSL exported from an older/AI-generated workflow can persist `model_selector: null`COMMENT
Slop Phrases4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMweb/docker/entrypoint.sh6# you can use the Ubuntu terminal to convert this file to unix formatCOMMENT
LOWweb/public/vs/language/css/cssWorker.js32`),[{language:"html",value:r}]}doPrint(e,t){for(let r of e)this.doPrintElement(r,t),r.children&&this.doPrint(r.children,CODE
MEDIUMweb/public/vs/language/html/htmlWorker.js306**Usage note:** Do not use this attribute, as it has been deprecated. The [\`<caption>\`](https://developer.mozilla.org/CODE
MEDIUMapi/constants/recommended_apps.json471 "export_data": "app:\n icon: \"\\U0001F916\"\n icon_background: '#FFEAD5'\n mode: advanced-chat\n name: CODE
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…ents/workflow/nodes/code/__tests__/code-parser.spec.ts119 print("Hello")`,CODE
Overly Generic Function Names5 hits · 4 pts
SeverityFileLineSnippetContext
LOW…ix/src/dify_trace_arize_phoenix/arize_phoenix_trace.py377 def process_data(self) -> Mapping[str, Any] | None: ...CODE
LOWapi/tests/unit_tests/core/tools/test_plugin_tool.py51 def handle_request(request: httpx.Request) -> httpx.Response:CODE
LOWapi/tests/unit_tests/core/tools/test_plugin_tool.py106 def handle_request(request: httpx.Request) -> httpx.Response:CODE
LOW…sts/unit_tests/core/tools/test_plugin_tool_provider.py73 def handle_request(request: httpx.Request) -> httpx.Response:CODE
LOW…/unit_tests/extensions/otel/decorators/test_handler.py246 def my_function(x):CODE
TODO Padding2 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡…/tests/unit_tests/core/workflow/nodes/llm/test_node.py597# TODO: Add testCOMMENT
LOW…/tests/unit_tests/core/workflow/nodes/llm/test_node.py637# TODO: Add testCOMMENT
Example Usage Blocks1 hit · 1 pts
SeverityFileLineSnippetContext
LOW⚡sdks/nodejs-client/scripts/publish.sh7# Usage:COMMENT