Repository Analysis

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.

16.4 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of langgenius/dify, a TypeScript project with 153,760 GitHub stars. SynthScan v2.0 examined 2,367,990 lines of code across 12270 source files, recording 29760 pattern matches distributed across 27 syntactic categories. The overall adjusted score of 16.4 places this repository in the Moderate AI signal band.

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

16.4
Adjusted Score
16.4
Raw Score
100%
Time Factor
2026-08-28
Last Push
153.8K
Stars
TypeScript
Language
2.4M
Lines of Code
12.3K
Files
29.8K
Pattern Hits
2026-08-29
Scan Date
0.06
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 487HIGH 297MEDIUM 1799LOW 27177

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers21730 hits · 20490 pts
SeverityFileLineSnippetContext
LOW…ation/dify_agent/storage/test_terminal_finalization.py37def _success_or_failure_event(kind: str, run_id: str) -> RunSucceededEvent | RunFailedEvent:CODE
LOW…ation/dify_agent/storage/test_terminal_finalization.py97def 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_terminal_first_rejects_late_cancellation(redis_url: str, terminal_status: str) -> None:CODE
LOW…ation/dify_agent/storage/test_terminal_finalization.py182def test_cancellation_intent_lifecycle_and_terminal_exclusion(redis_url: str) -> None:CODE
LOW…ation/dify_agent/storage/test_terminal_finalization.py245def test_cancellation_finalization_without_intent_is_unapplied(redis_url: str) -> None:CODE
LOW…ation/dify_agent/storage/test_terminal_finalization.py266def test_classified_failure_persists_matching_record_and_event_error_type(redis_url: str) -> None:CODE
LOW…ation/dify_agent/storage/test_terminal_finalization.py296def test_non_owner_scheduler_cancellation_stops_owner_runner(redis_url: str) -> None:CODE
LOW…ation/dify_agent/storage/test_terminal_finalization.py303 def terminal_session_snapshot(self) -> None:CODE
LOW…dify_agent/runtime_backend/test_working_environment.py51async def test_local_two_agents_share_workspace_but_not_home() -> None:CODE
LOWdify-agent/tests/docs/test_examples.py37def 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.py45def test_project_dependencies_split_client_and_server_requirements() -> None:CODE
LOWdify-agent/tests/local/test_packaging.py54def test_default_package_discovery_excludes_example_packages() -> None:CODE
LOWdify-agent/tests/local/test_packaging.py65def test_project_declares_console_scripts() -> None:CODE
LOW…nt/tests/local/agenton/layers/test_schema_inference.py44def test_layer_infers_config_and_runtime_state_from_generics() -> None:CODE
LOW…nt/tests/local/agenton/layers/test_schema_inference.py54def test_layer_uses_empty_schema_defaults_when_omitted() -> None:CODE
LOW…nt/tests/local/agenton/layers/test_schema_inference.py62def test_invalid_declared_schema_type_is_rejected_clearly() -> None:CODE
LOW…nt/tests/local/agenton/layers/test_schema_inference.py84def test_layer_provider_uses_inferred_schema_types() -> None:CODE
LOW…fy-agent/tests/local/agenton/layers/test_layer_deps.py13def test_layer_deps_rejects_mismatched_runtime_layer_class() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py49def test_same_compositor_enters_multiple_times_with_fresh_layers_and_snapshot_resume() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py86def test_concurrent_enters_do_not_share_layer_instances() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py129def test_custom_factory_is_called_each_enter_with_typed_config() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py156def test_provider_rejects_reused_layer_instance_before_hooks_run() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py180def test_configs_are_validated_by_node_name_before_factory_call() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py200def test_all_node_configs_are_validated_before_any_factory_runs() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py221def test_existing_config_model_instances_are_revalidated_before_factory_runs() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py240def test_existing_snapshot_model_instances_are_revalidated_before_factory_runs() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py288def test_snapshot_hydrates_runtime_state_and_exit_snapshots_from_layer_self() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py291 async def create_suspend_resume_delete() -> tuple[CompositorSessionSnapshot, CompositorSessionSnapshot]:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py339def test_run_snapshot_rejects_active_layers() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py350def test_active_snapshot_input_is_rejected_before_factories_run() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py372def test_closed_snapshot_enter_is_rejected_before_hooks_run() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py591def test_resource_context_wraps_hooks_and_body_in_dependency_order() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py664def test_resource_context_wraps_resume_and_suspend_with_fresh_resource_scope() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py738def test_resource_context_exits_when_run_body_raises() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py785def test_resource_context_exits_when_run_body_is_cancelled() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py835def test_dependency_resource_contexts_exit_when_child_create_fails() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py875def test_dependency_resource_contexts_exit_when_child_suspend_fails() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py922def test_resource_context_exits_when_create_hook_raises() -> None:CODE
LOWdify-agent/tests/local/agenton/compositor/test_enter.py947def test_resource_context_exits_when_delete_hook_raises() -> None:CODE
LOW…ent/tests/local/agenton/compositor/test_direct_deps.py52def test_direct_deps_access_uses_explicit_dependency_rename() -> None:CODE
LOW…ent/tests/local/agenton/compositor/test_direct_deps.py70def test_direct_deps_access_uses_explicit_same_name_dependency() -> None:CODE
LOW…ent/tests/local/agenton/compositor/test_direct_deps.py88def test_optional_missing_dependency_is_bound_to_none() -> None:CODE
LOW…ent/tests/local/agenton/compositor/test_direct_deps.py99def test_missing_required_dependency_is_rejected_before_hooks() -> None:CODE
LOW…ent/tests/local/agenton/compositor/test_direct_deps.py106def test_unknown_dependency_mapping_is_rejected_for_compositor_construction() -> None:CODE
LOW…ent/tests/local/agenton/compositor/test_direct_deps.py111def test_undefined_dependency_target_is_rejected_for_compositor_construction() -> None:CODE
LOW…ent/tests/local/agenton/compositor/test_direct_deps.py116def test_dependency_target_must_precede_dependent_layer_in_graph_order() -> None:CODE
LOW…ent/tests/local/agenton/compositor/test_direct_deps.py126def test_duplicate_layer_node_name_is_rejected() -> None:CODE
LOW…ests/local/agenton/compositor/test_builder_snapshot.py52def test_layer_provider_from_layer_type_uses_declared_schema_and_type_id() -> None:CODE
LOW…ests/local/agenton/compositor/test_builder_snapshot.py68def test_compositor_from_config_uses_providers_and_enter_configs_by_node_name() -> None:CODE
LOW…ests/local/agenton/compositor/test_builder_snapshot.py87def test_layer_node_config_has_no_runtime_state_or_layer_config() -> None:CODE
LOW…ests/local/agenton/compositor/test_builder_snapshot.py105def test_node_providers_override_type_id_providers_for_serializable_graphs() -> None:CODE
LOW…ests/local/agenton/compositor/test_builder_snapshot.py123def test_from_config_rejects_missing_duplicate_and_unknown_providers() -> None:CODE
LOW…ests/local/agenton/compositor/test_builder_snapshot.py147def test_compositor_run_get_layer_returns_named_layer_and_validates_type() -> None:CODE
LOW…ests/local/agenton/compositor/test_builder_snapshot.py177def test_python_native_construction_mixes_layer_classes_and_providers() -> None:CODE
LOW…ests/local/agenton/compositor/test_builder_snapshot.py217def test_snapshot_contains_runtime_state_only_not_config_deps_or_resources() -> None:CODE
LOW…ests/local/agenton/compositor/test_builder_snapshot.py240def test_hydrate_validates_runtime_state_and_resume_mutates_layer_self() -> None:CODE
LOW…ests/local/agenton/compositor/test_builder_snapshot.py267def test_hydrate_rejects_mismatched_snapshot_layer_names() -> None:CODE
LOW…ests/local/agenton/compositor/test_builder_snapshot.py279def test_removed_lifecycle_and_resource_apis_are_not_public_exports() -> None:CODE
21670 more matches not shown…
Hallucination Indicators487 hits · 5285 pts
SeverityFileLineSnippetContext
CRITICALweb/context/workspace-state.ts10 return consoleQuery.workspaces.current.summary.get.queryOptions({CODE
CRITICALweb/context/provider-context-provider.tsx36 } = useQuery(consoleQuery.workspaces.current.modelProviders.summary.get.queryOptions())CODE
CRITICALweb/context/provider-context-provider.tsx58 queryKey: consoleQuery.workspaces.current.modelProviders.summary.get.key(),CODE
CRITICALweb/context/permission-state.ts9 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.ts51 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/api-key/api-key-modal.tsx51 consoleQuery.apps.byResourceId.apiKeys.get.queryOptions({CODE
CRITICALweb/app/components/api-key/api-key-modal.tsx60 consoleQuery.enterprise.appDeploy.accessService.listEnvironmentApiKeys.queryOptions({CODE
CRITICALweb/app/components/api-key/api-key-modal.tsx68 const createAppApiKey = useMutation(consoleQuery.apps.byResourceId.apiKeys.post.mutationOptions())CODE
CRITICALweb/app/components/api-key/api-key-modal.tsx70 consoleQuery.apps.byResourceId.apiKeys.byApiKeyId.delete.mutationOptions(),CODE
CRITICALweb/app/components/api-key/api-key-modal.tsx74 consoleQuery.datasets.apiKeys.byApiKeyId.delete.mutationOptions(),CODE
CRITICALweb/app/components/api-key/api-key-modal.tsx77 consoleQuery.enterprise.appDeploy.accessService.createEnvironmentApiKey.mutationOptions(),CODE
CRITICALweb/app/components/api-key/api-key-modal.tsx80 consoleQuery.enterprise.appDeploy.accessService.deleteEnvironmentApiKey.mutationOptions(),CODE
CRITICALweb/app/components/app/use-export-app-dsl.ts35 const { items } = await consoleClient.apps.byAppId.workflows.draft.environmentVariables.get(CODE
CRITICAL…/debug-with-multiple-model/model-parameter-trigger.tsx40 ...consoleQuery.workspaces.current.modelProviders.summary.get.queryOptions(),CODE
CRITICALweb/app/components/app/deploy/state.ts128 return consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
CRITICALweb/app/components/app/deploy/state.ts171 return consoleQuery.enterprise.appDeploy.deploymentService.listEnvironmentDeployments.queryOptions(CODE
CRITICALweb/app/components/app/deploy/use-undeploy-workflow.ts10 consoleQuery.enterprise.appDeploy.deploymentService.undeployWorkflow.mutationOptions(),CODE
CRITICALweb/app/components/app/deploy/use-deploy-workflow.ts18 consoleQuery.enterprise.appDeploy.deploymentService.deployWorkflow.mutationOptions()CODE
CRITICALweb/app/components/app/deploy/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
CRITICAL…-configuration/use-deployment-configuration-queries.ts16 consoleQuery.enterprise.appDeploy.deploymentService.precheckWorkflowDeployment.queryOptions({CODE
CRITICAL…-configuration/use-deployment-configuration-queries.ts33 consoleQuery.enterprise.appDeploy.deploymentService.getWorkflowDeploymentOptions.queryOptions({CODE
CRITICALweb/app/components/app/deploy/__tests__/index.spec.tsx499 consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
CRITICALweb/app/components/app/deploy/__tests__/index.spec.tsx507 consoleQuery.enterprise.appDeploy.deploymentService.listEnvironmentDeployments.queryOptions({CODE
CRITICALweb/app/components/app/deploy/__tests__/index.spec.tsx518 return consoleQuery.enterprise.appDeploy.deploymentService.precheckWorkflowDeployment.queryOptions(CODE
CRITICALweb/app/components/app/deploy/__tests__/index.spec.tsx532 return consoleQuery.enterprise.appDeploy.deploymentService.getWorkflowDeploymentOptions.queryOptions(CODE
CRITICALweb/app/components/app/switch-app-modal/index.tsx71 consoleQuery.apps.byAppId.convertToWorkflow.post.mutationOptions(),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…-publisher/publisher-content/use-publish-controller.ts34 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.tsx663 consoleQuery.enterprise.appDeploy.deploymentService.getWorkflowDeploymentOptions.queryOptions(CODE
CRITICAL…blisher/__tests__/environment-deployment-flow.spec.tsx699 consoleQuery.enterprise.appDeploy.deploymentService.precheckWorkflowDeployment.queryOptions({CODE
CRITICAL…/components/app/app-publisher/__tests__/index.spec.tsx334 consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
CRITICAL…/components/app/app-publisher/__tests__/index.spec.tsx354 consoleQuery.enterprise.appDeploy.deploymentService.listEnvironmentDeployments.queryOptions({CODE
CRITICAL…/components/app/app-publisher/__tests__/index.spec.tsx459 consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
CRITICAL…/components/app/app-publisher/__tests__/index.spec.tsx560 consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
CRITICAL…/components/app/app-publisher/__tests__/index.spec.tsx660 consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
CRITICAL…e-refresh-app-environments-after-deployment-polling.ts61 consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
CRITICAL…e-refresh-app-environments-after-deployment-polling.ts89 consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
CRITICAL…e-refresh-app-environments-after-deployment-polling.ts111 consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
CRITICALweb/app/components/app/access-point/state.ts41 return consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
CRITICAL…ents/app/access-point/shared/api-secret-key-button.tsx30 consoleQuery.apps.byResourceId.apiKeys.get.queryOptions({CODE
CRITICAL…/access-point/__tests__/api-secret-key-button.spec.tsx19 consoleQuery.apps.byResourceId.apiKeys.get.queryKey({CODE
CRITICAL…p/components/app/access-point/__tests__/index.spec.tsx105 consoleQuery.enterprise.appDeploy.deploymentService.listAppEnvironments.queryOptions({CODE
CRITICAL…environment-access-points/environment-web-app-card.tsx68 consoleQuery.enterprise.appDeploy.accessService.getEnvironmentSite.queryOptions({CODE
CRITICAL…environment-access-points/environment-web-app-card.tsx75 consoleQuery.enterprise.appDeploy.accessService.getEnvironmentApi.queryOptions({CODE
CRITICAL…environment-access-points/environment-web-app-card.tsx81 consoleQuery.enterprise.appDeploy.accessService.getEnvironmentWebAppSubjects.queryOptions({CODE
CRITICAL…environment-access-points/environment-web-app-card.tsx96 consoleQuery.enterprise.appDeploy.accessService.updateEnvironmentSite.mutationOptions({CODE
CRITICAL…environment-access-points/environment-web-app-card.tsx107 consoleQuery.enterprise.appDeploy.accessService.resetEnvironmentSiteAccessToken.mutationOptions(CODE
427 more matches not shown…
Decorative Section Separators1408 hits · 5086 pts
SeverityFileLineSnippetContext
MEDIUMdocker/docker-compose.yaml1# ==================================================================COMMENT
MEDIUMdocker/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.sh183# ---------------------------------------------------------------------------COMMENT
MEDIUMdocker/ssrf_proxy/test_ssrf_proxy_config.sh185# ---------------------------------------------------------------------------COMMENT
MEDIUM…gent/tests/local/dify_agent/layers/shell/test_layer.py1212# ---------------------------------------------------------------------------COMMENT
MEDIUM…gent/tests/local/dify_agent/layers/shell/test_layer.py1214# ---------------------------------------------------------------------------COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh4# ================================COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh17# ============================================================================COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh19# ============================================================================COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh126 # ========================================================================COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh128 # ========================================================================COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh163 # ========================================================================COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh165 # ========================================================================COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh186 # ========================================================================COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh188 # ========================================================================COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh194 # ========================================================================COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh196 # ========================================================================COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh206 # ========================================================================COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh208 # ========================================================================COMMENT
MEDIUMsdks/nodejs-client/scripts/publish.sh228 # ========================================================================COMMENT
MEDIUMsdks/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…ase/date-and-time-picker/utils/__tests__/dayjs.spec.ts19// ── cloneTime ──────────────────────────────────────────────────────────────COMMENT
MEDIUM…ase/date-and-time-picker/utils/__tests__/dayjs.spec.ts31// ── getDaysInMonth ─────────────────────────────────────────────────────────COMMENT
MEDIUM…ase/date-and-time-picker/utils/__tests__/dayjs.spec.ts59// ── getHourIn12Hour ─────────────────────────────────────────────────────────COMMENT
MEDIUM…ase/date-and-time-picker/utils/__tests__/dayjs.spec.ts77// ── getDateWithTimezone ─────────────────────────────────────────────────────COMMENT
MEDIUM…ase/date-and-time-picker/utils/__tests__/dayjs.spec.ts103// ── isDayjsObject ───────────────────────────────────────────────────────────COMMENT
MEDIUM…ase/date-and-time-picker/utils/__tests__/dayjs.spec.ts115// ── toDayjs ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ase/date-and-time-picker/utils/__tests__/dayjs.spec.ts258// ── formatDateForOutput ────────────────────────────────────────────────────COMMENT
MEDIUM…ase/date-and-time-picker/utils/__tests__/dayjs.spec.ts276// ── convertTimezoneToOffsetStr ─────────────────────────────────────────────COMMENT
MEDIUM…app/components/base/chat/chat/__tests__/index.spec.tsx10// ─── Why each mock exists ─────────────────────────────────────────────────────COMMENT
MEDIUM…app/components/base/chat/chat/__tests__/index.spec.tsx26// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…app/components/base/chat/chat/__tests__/index.spec.tsx111// ─── ResizeObserver capture ───────────────────────────────────────────────────COMMENT
MEDIUM…app/components/base/chat/chat/__tests__/index.spec.tsx124// ─── Factories ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…app/components/base/chat/chat/__tests__/index.spec.tsx148// ─── 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
1348 more matches not shown…
Unused Imports1708 hits · 1480 pts
SeverityFileLineSnippetContext
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…nt/tests/local/dify_agent/layers/test_runtime_layer.py1CODE
LOW…ent/tests/local/dify_agent/layers/config/test_layer.py3CODE
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…/tests/local/dify_agent/runtime/test_command_runner.py1CODE
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
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…ent/tests/local/dify_agent/runtime_backend/test_e2b.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…/examples/agenton/agenton_examples/session_snapshot.py3CODE
LOWdify-agent/examples/agenton/agenton_examples/basics.py3CODE
LOW…xamples/agenton/agenton_examples/pydantic_ai_bridge.py10CODE
LOW…fy-agent/examples/agenton/agenton_examples/__main__.py3CODE
LOW…ify_agent/dify_agent_examples/run_pydantic_ai_agent.py16CODE
LOW…nt/examples/dify_agent/dify_agent_examples/__main__.py3CODE
LOWdify-agent/src/agenton/layers/__init__.py8CODE
LOWdify-agent/src/agenton/layers/__init__.py8CODE
LOWdify-agent/src/agenton/layers/__init__.py8CODE
LOWdify-agent/src/agenton/layers/__init__.py8CODE
LOWdify-agent/src/agenton/layers/__init__.py8CODE
LOWdify-agent/src/agenton/layers/__init__.py8CODE
LOWdify-agent/src/agenton/layers/__init__.py8CODE
LOWdify-agent/src/agenton/layers/__init__.py8CODE
LOWdify-agent/src/agenton/layers/__init__.py8CODE
LOWdify-agent/src/agenton/layers/__init__.py19CODE
LOWdify-agent/src/agenton/layers/__init__.py19CODE
LOWdify-agent/src/agenton/layers/__init__.py19CODE
LOWdify-agent/src/agenton/layers/__init__.py19CODE
LOWdify-agent/src/agenton/layers/__init__.py19CODE
LOWdify-agent/src/agenton/layers/__init__.py19CODE
LOWdify-agent/src/agenton/layers/__init__.py19CODE
LOWdify-agent/src/agenton/layers/__init__.py19CODE
LOWdify-agent/src/agenton/layers/__init__.py19CODE
LOWdify-agent/src/agenton/layers/__init__.py19CODE
LOWdify-agent/src/agenton/layers/__init__.py19CODE
1648 more matches not shown…
Excessive Try-Catch Wrapping1307 hits · 1327 pts
SeverityFileLineSnippetContext
MEDIUM…fy-agent/examples/agenton/agenton_examples/__main__.py36 print(f'Error: destination path "{destination}" already exists', file=sys.stderr)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.py338 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/layers/shell/layer.py372 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/layers/shell/layer.py406 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/layers/shell/layer.py434 except Exception:CODE
LOWdify-agent/src/dify_agent/layers/shell/layer.py451 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime/runner.py236 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime/run_scheduler.py199 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime/run_scheduler.py231 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime/run_scheduler.py271 except Exception:CODE
LOWdify-agent/src/dify_agent/runtime/run_scheduler.py337 except Exception:CODE
LOWdify-agent/src/dify_agent/server/binding_files.py178 except Exception as exc:STRING
LOWdify-agent/src/dify_agent/server/binding_files.py206 except Exception as exc:STRING
LOWdify-agent/src/dify_agent/server/binding_files.py267 except Exception as exc:STRING
LOWdify-agent/src/dify_agent/runtime_backend/local.py200 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime_backend/e2b.py201 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime_backend/e2b.py290 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime_backend/e2b.py294 except Exception as exc:CODE
LOWdify-agent/src/dify_agent/runtime_backend/e2b.py311 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/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.py121 except Exception:CODE
LOWapi/app_factory.py145 except Exception:CODE
MEDIUMapi/app_factory.py131def 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
LOWapi/clients/agent_backend/client.py160 except Exception as exc:CODE
LOWapi/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.py166 except Exception:CODE
LOWapi/schedule/queue_monitor_task.py75 except Exception:CODE
LOWapi/schedule/queue_monitor_task.py78 except Exception:CODE
LOWapi/schedule/check_upgradable_plugin_task.py58 except Exception as e:CODE
LOWapi/schedule/clean_workflow_runs_task.py68 except Exception as e:CODE
LOWapi/schedule/create_tidb_serverless_task.py33 except Exception as e:CODE
LOWapi/schedule/create_tidb_serverless_task.py66 except Exception as e:CODE
MEDIUMapi/schedule/create_tidb_serverless_task.py41def create_clusters(batch_size):CODE
LOWapi/schedule/clean_unused_datasets_task.py155 except Exception as e:CODE
LOWapi/schedule/clean_messages.py68 except Exception as e:CODE
1247 more matches not shown…
Cross-File Repetition184 hits · 920 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/datasource_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
124 more matches not shown…
Modern Structural Boilerplate742 hits · 755 pts
SeverityFileLineSnippetContext
LOWdify-agent/src/agenton/layers/__init__.py39__all__ = [CODE
LOWdify-agent/src/agenton/layers/types.py166__all__ = [CODE
LOWdify-agent/src/agenton/compositor/run.py230 def _set_layer_exit_intent(self, name: str, intent: ExitIntent) -> None:CODE
LOWdify-agent/src/agenton/compositor/__init__.py41__all__ = [CODE
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/dify_plugin/configs.py173__all__ = [CODE
LOW…agent/src/dify_agent/layers/dify_plugin/tools_layer.py681__all__ = ["DifyPluginToolsDeps", "DifyPluginToolsLayer"]CODE
LOW…fy-agent/src/dify_agent/layers/dify_plugin/__init__.py22__all__ = [CODE
LOW…y-agent/src/dify_agent/layers/dify_plugin/llm_layer.py77__all__ = ["DifyPluginLLMDeps", "DifyPluginLLMLayer"]CODE
LOW…agent/src/dify_agent/layers/dify_plugin/tool_client.py327__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/config/configs.py82__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/config/__init__.py12__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/config/layer.py299__all__ = ["DifyConfigLayer", "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__.py16__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/shell/layer.py41logger = logging.getLogger(__name__)CODE
LOWdify-agent/src/dify_agent/layers/shell/layer.py740__all__ = [CODE
LOW…gent/src/dify_agent/layers/dify_core_tools/__init__.py10__all__ = [CODE
LOW…y-agent/src/dify_agent/layers/dify_core_tools/layer.py164__all__ = ["DifyCoreToolsDeps", "DifyCoreToolsLayer"]CODE
LOWdify-agent/src/dify_agent/layers/runtime/configs.py17__all__ = ["DIFY_RUNTIME_LAYER_TYPE_ID", "DifyRuntimeLayerConfig"]CODE
LOWdify-agent/src/dify_agent/layers/runtime/__init__.py4__all__ = ["DIFY_RUNTIME_LAYER_TYPE_ID", "DifyRuntimeLayer", "DifyRuntimeLayerConfig"]CODE
LOWdify-agent/src/dify_agent/layers/runtime/layer.py75__all__ = ["DifyRuntimeLayer"]CODE
LOWdify-agent/src/dify_agent/layers/output/configs.py51__all__ = ["DIFY_OUTPUT_LAYER_TYPE_ID", "DifyOutputLayerConfig"]CODE
LOWdify-agent/src/dify_agent/layers/output/__init__.py10__all__ = ["DIFY_OUTPUT_LAYER_TYPE_ID", "DifyOutputLayerConfig"]CODE
LOWdify-agent/src/dify_agent/layers/output/output_layer.py313__all__ = ["DifyOutputContract", "DifyOutputLayer"]CODE
LOWdify-agent/src/dify_agent/layers/knowledge/configs.py280__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/knowledge/client.py213__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/knowledge/__init__.py23__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/knowledge/layer.py39logger = logging.getLogger(__name__)CODE
LOWdify-agent/src/dify_agent/layers/knowledge/layer.py479__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/ask_human/configs.py132__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/ask_human/__init__.py30__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/ask_human/layer.py271__all__ = [CODE
LOWdify-agent/src/dify_agent/layers/ask_human/schema.py218__all__ = [CODE
LOW…ent/src/dify_agent/layers/execution_context/configs.py65__all__ = [CODE
LOW…nt/src/dify_agent/layers/execution_context/__init__.py18__all__ = [CODE
LOW…agent/src/dify_agent/layers/execution_context/layer.py75__all__ = ["DifyExecutionContextLayer"]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.py207__all__ = [CODE
LOWdify-agent/src/dify_agent/runtime/runner.py518__all__ = ["AgentRunRunner", "AgentRunValidationError"]CODE
LOWdify-agent/src/dify_agent/runtime/agent_factory.py48__all__ = ["create_agent", "normalize_user_input"]CODE
LOWdify-agent/src/dify_agent/runtime/compositor_factory.py185__all__ = ["DifyAgentLayerProvider", "build_pydantic_ai_compositor", "create_default_layer_providers"]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
682 more matches not shown…
Self-Referential Comments223 hits · 673 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.py150 # 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.py78 # 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.py90 # Create a temporary session only for auth retryCOMMENT
MEDIUMapi/core/rag/index_processor/index_processor_base.py204 # Create a mapping from ID to UploadFile for quick lookupCOMMENT
MEDIUMapi/core/rag/index_processor/index_processor_base.py207 # Create a Document for each occurrence (including duplicates)COMMENT
MEDIUM…index_processor/processor/paragraph_index_processor.py160 # This method is called for actual deletion scenarios (e.g., when segment is deleted).COMMENT
MEDIUM…ex_processor/processor/parent_child_index_processor.py164 # 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.py374 # Create a minimal graph for single node executionCOMMENT
MEDIUMapi/core/ops/ops_trace_manager.py402 # 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.py343 # 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.py358 # Create the primary key fieldCOMMENT
MEDIUM…rs/vdb/vdb-milvus/src/dify_vdb_milvus/milvus_vector.py360 # Create the vector field, supports binary or float vectorsCOMMENT
MEDIUM…rs/vdb/vdb-milvus/src/dify_vdb_milvus/milvus_vector.py391 # 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.py57 # Create a mock runtimeCOMMENT
MEDIUMapi/tests/unit_tests/tools/test_api_tool.py61 # Create the ApiTool instanceCOMMENT
MEDIUMapi/tests/unit_tests/core/test_file.py23 # Create a feature dict that mimics the old structure with image configCOMMENT
MEDIUMapi/tests/unit_tests/core/test_file.py30 # Create a workflow instance with the featuresCOMMENT
MEDIUM…sts/unit_tests/core/datasource/test_notion_provider.py1644 # Create a custom query filterCOMMENT
MEDIUM…tests/unit_tests/core/datasource/test_website_crawl.py1538 # 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.py131 # Create a small test image (1x1 PNG)COMMENT
MEDIUM…/common/test_workflow_response_converter_truncation.py422 # Create a minimal WorkflowUIBasedAppConfig for testingCOMMENT
MEDIUM…/common/test_workflow_response_converter_truncation.py521 # Create a test event with large dataCOMMENT
MEDIUM…/common/test_workflow_response_converter_truncation.py562 # Create a test event with large dataCOMMENT
MEDIUM…/common/test_workflow_response_converter_truncation.py602 # Create a test event with large dataCOMMENT
MEDIUM…sts/unit_tests/core/memory/test_token_buffer_memory.py867 # Create a mock message with a SYSTEM roleCOMMENT
MEDIUMapi/tests/unit_tests/core/plugin/test_plugin_runtime.py534 # 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.py29 # Create a real sessionmaker with in-memory SQLite for testingCOMMENT
MEDIUM…ositories/test_celery_workflow_execution_repository.py119 # Create an Account with no tenant_id.COMMENT
MEDIUMapi/tests/unit_tests/core/repositories/test_factory.py124 # Create a mock repository class that raises exception on instantiationCOMMENT
MEDIUMapi/tests/unit_tests/core/repositories/test_factory.py192 # Create a mock repository class that raises exception on instantiationCOMMENT
MEDIUM…ries/test_celery_workflow_node_execution_repository.py33 # Create a real sessionmaker with in-memory SQLite for testingCOMMENT
MEDIUM…ries/test_celery_workflow_node_execution_repository.py125 # Create an Account with no tenant_id.COMMENT
MEDIUM…epositories/test_workflow_node_execution_truncation.py145 # Create a database model without offload dataCOMMENT
MEDIUMapi/tests/unit_tests/core/mcp/test_entities.py91 # Create a mock session with specific typeCOMMENT
MEDIUMapi/tests/unit_tests/core/rag/pipeline/test_queue.py233 # Create a wrapped taskCOMMENT
MEDIUM…sts/unit_tests/core/rag/splitter/test_text_splitter.py1376 # Create a large documentCOMMENT
163 more matches not shown…
Deep Nesting636 hits · 542 pts
SeverityFileLineSnippetContext
LOWdocker/dify-env-sync.py293CODE
LOW…ation/dify_agent/storage/test_terminal_finalization.py50CODE
LOW…dify_agent/agent_stub/server/test_agent_stub_config.py433CODE
LOWdify-agent/docs/.hooks/snippets.py130CODE
LOW…agent/src/dify_agent/layers/dify_plugin/tools_layer.py307CODE
LOW…agent/src/dify_agent/layers/dify_plugin/tools_layer.py636CODE
LOWdify-agent/src/dify_agent/layers/output/output_layer.py214CODE
LOWdify-agent/src/dify_agent/layers/output/output_layer.py271CODE
LOWdify-agent/src/dify_agent/layers/output/output_layer.py226CODE
LOWdify-agent/src/dify_agent/runtime/runner.py299CODE
LOWdify-agent/src/dify_agent/runtime/run_scheduler.py178CODE
LOWdify-agent/src/dify_agent/storage/redis_run_store.py339CODE
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.py275CODE
LOWdify-agent/src/dify_agent/client/_client.py707CODE
LOWdify-agent/src/dify_agent/client/_client.py847CODE
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.py27CODE
LOWapi/tasks/regenerate_summary_index_task.py25CODE
LOWapi/tasks/enable_segments_to_index_task.py22CODE
LOWapi/tasks/deal_dataset_index_update_task.py18CODE
LOWapi/tasks/remove_app_and_related_data_task.py710CODE
LOWapi/tasks/clean_document_task.py20CODE
LOWapi/tasks/retry_document_indexing_task.py23CODE
LOWapi/tasks/duplicate_document_indexing_task.py79CODE
LOWapi/tasks/enable_segment_to_index_task.py22CODE
LOW…/tasks/process_tenant_plugin_autoupgrade_check_task.py162CODE
LOWapi/tasks/document_indexing_task.py49CODE
LOWapi/tasks/document_indexing_task.py200CODE
LOWapi/tasks/deal_dataset_vector_index_task.py20CODE
LOWapi/tasks/recover_document_indexing_task.py16CODE
LOWapi/tasks/document_indexing_sync_task.py22CODE
LOWapi/tasks/batch_clean_document_task.py25CODE
LOWapi/tasks/add_document_to_index_task.py23CODE
LOWapi/tasks/remove_document_from_index_task.py18CODE
LOWapi/tasks/sync_website_document_indexing_task.py22CODE
576 more matches not shown…
Fake / Example Data439 hits · 438 pts
SeverityFileLineSnippetContext
LOW…ts/local/dify_agent/layers/dify_plugin/test_configs.py129 "placeholder": None,CODE
LOW…/tests/local/dify_agent/layers/ask_human/test_layer.py97 "placeholder": None,CODE
LOW…fy-agent/tests/local/dify_agent/runtime/test_runner.py1080 "placeholder": None,CODE
LOWweb/context/__tests__/console-bootstrap.spec.tsx55 email: 'user@example.com',CODE
LOWweb/context/__tests__/console-bootstrap.spec.tsx339 email: 'user@example.com',CODE
LOWweb/context/__tests__/console-bootstrap.spec.tsx481 value: 'user@example.com',CODE
LOWweb/context/__tests__/console-bootstrap.spec.tsx498 expect(setUserId).toHaveBeenCalledWith('user@example.com')CODE
LOWweb/context/__tests__/console-bootstrap.spec.tsx502 email: 'user@example.com',CODE
LOWweb/context/__tests__/console-bootstrap.spec.tsx602 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.tsx65 await user.type(emailInput, 'user@example.com')CODE
LOWweb/app/signup/check-code/__tests__/page.spec.tsx58 email: 'user@example.com',CODE
LOWweb/app/signup/check-code/__tests__/page.spec.tsx92 email: 'user@example.com',CODE
LOW…dataset-config/settings-modal/__tests__/index.spec.tsx236 email: 'user@example.com',CODE
LOWweb/app/components/app/deploy/__tests__/index.spec.tsx1018 expect(portInput).toHaveAttribute('placeholder', '2')CODE
LOWweb/app/components/app/deploy/__tests__/index.spec.tsx1020 'placeholder',CODE
LOWweb/app/components/app/deploy/__tests__/index.spec.tsx1024 '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.tsx332 created_by_account: { id: 'acc-1', name: 'John Doe', email: 'john@example.com' },CODE
LOW…pp/components/app/workflow-log/__tests__/list.spec.tsx341 expect(screen.getByText('John Doe'))!.toBeInTheDocument()CODE
LOW…nents/app/access-point/__tests__/web-app-card.spec.tsx119 created_by: { id: 'user-id', name: 'User', email: 'user@example.com' },CODE
LOW…nents/app/access-point/__tests__/web-app-card.spec.tsx122 updated_by: { id: 'user-id', name: 'User', email: 'user@example.com' },CODE
LOW…/marketplace/search-box/__tests__/tags-filter.spec.tsx88 expect(screen.getByRole('searchbox')).toHaveAttribute('placeholder', '')CODE
LOW…ts/plugins/plugin-detail-panel/__tests__/utils.spec.ts44 const requiredKeys = ['type', 'name', 'label', 'placeholder', 'required', 'default', 'help']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.tsx187 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…ts/main-nav/components/__tests__/support-menu.spec.tsx29 userProfile: { email: 'user@example.com' },CODE
LOW…ts/main-nav/components/__tests__/support-menu.spec.tsx72 userProfile: { email: 'user@example.com' },CODE
LOW…ts/main-nav/components/__tests__/support-menu.spec.tsx192 'user@example.com',CODE
LOW…ts/main-nav/components/__tests__/support-menu.spec.tsx220 expect(mailToSupport).toHaveBeenCalledWith('user@example.com', 'team', '1.0.0', '')CODE
LOW…line/components/panel/input-field/editor/form/hooks.ts312 variable: 'placeholder',CODE
LOW…line/components/panel/input-field/editor/form/hooks.ts326 variable: 'placeholder',CODE
LOW…line/components/panel/input-field/editor/form/hooks.ts354 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.tsx87 placeholder="placeholder"CODE
LOW…livery-method/recipient/__tests__/email-input.spec.tsx88 expect(input).toHaveAttribute('placeholder', '')CODE
LOW…livery-method/recipient/__tests__/email-input.spec.tsx92 'placeholder',CODE
LOW…nts/delivery-method/__tests__/mail-body-input.spec.tsx20 default: (_props: { hideBadge?: boolean }) => <div data-testid="placeholder" />,CODE
LOW…omponents/workflow/nodes/agent/__tests__/node.spec.tsx82 placeholder: { en_US: 'Required model placeholder' } as StrategyParamItem['placeholder'],CODE
LOW…mponents/workflow/nodes/agent/__tests__/panel.spec.tsx133 placeholder: { en_US: 'Instruction placeholder' } as StrategyParamItem['placeholder'],CODE
LOW…ents/workflow/nodes/agent/__tests__/use-config.spec.ts66 placeholder: { en_US: 'Instruction placeholder' } as StrategyParamItem['placeholder'],CODE
379 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.py189 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.py132 Execute a function with authentication retry logic. Args: func: The function to execute STRING
HIGHapi/core/mcp/auth_client.py193 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.py974 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.py1120 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.py1161 Resume a paused workflow. Marks a paused workflow as resumed, clearing the pause state and retSTRING
HIGH…repositories/sqlalchemy_api_workflow_run_repository.py1270 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.py103 Get paginated workflow runs with filtering. Retrieves workflow runs for a specific app and trigger souSTRING
HIGHapi/repositories/api_workflow_run_repository.py505 Create a new workflow pause state. Creates a pause state for a workflow run, storing the current execuSTRING
HIGHapi/repositories/api_workflow_run_repository.py541 Resume a paused workflow. Marks a paused workflow as resumed, set the `resumed_at` field of WorkflowPaSTRING
HIGHapi/repositories/api_workflow_run_repository.py596 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.py55 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.py50 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.py37Upload a file for use in web applications. Accepts file uploads for use within web applications, supporting STRING
HIGHapi/controllers/web/remote_files.py46Get information about a remote file. Retrieves basic information about a file located at a remote URL, STRING
HIGHapi/controllers/web/remote_files.py90Upload a file from a remote URL. Downloads a file from the provided remote URL and uploads it to the plSTRING
HIGHapi/controllers/mcp/mcp.py55Handle MCP requests for a specific server. Processes JSON-RPC formatted requests according to the Model ContextSTRING
HIGHapi/controllers/service_api/app/file_preview.py116 Validate that the file belongs to a message within the requesting app's context Security validations pSTRING
HIGHapi/controllers/service_api/dataset/dataset.py770 Deletes a dataset given its ID. Args: _: ignore dataset_id (UUID): The ID of tSTRING
HIGHapi/controllers/service_api/dataset/dataset.py844 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/controllers/console/datasets/datasets.py357 Get supported retrieval methods based on vector database type. Args: vector_type: Vector database typeSTRING
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.py200 Re-invoke a previously failed or rate-limited trigger - THIS METHOD WILL NOT BLOCK Updates the existinSTRING
HIGHapi/services/async_workflow_service.py324 Get workflow for the app Args: app_model: App model instance workflow_id: OptiSTRING
HIGHapi/services/conversation_service.py331 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
19 more matches not shown…
Redundant / Tautological Comments167 hits · 243 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
LOWsdks/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.py53 # Check if document needs summaryCOMMENT
LOWapi/tasks/generate_summary_index_task.py74 # Check if summary index is enabledCOMMENT
LOWapi/tasks/duplicate_document_indexing_task.py57 # Check if there are waiting tasks in the queueCOMMENT
LOWapi/tasks/document_indexing_task.py216 # 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.py81 # Check if there are waiting tasks in the queueCOMMENT
LOWapi/tasks/rag_pipeline/rag_pipeline_run_task.py87 # 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.py60 # Check if file is too large (before appending)COMMENT
LOWapi/core/plugin/utils/chunk_merger.py66 # Check if single chunk is too largeCOMMENT
LOW…ories/sqlalchemy_workflow_node_execution_repository.py392 # Check if record already existsCOMMENT
LOWapi/core/agent/fc_agent_runner.py309 # 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.py515 # Check if this is a summary documentCOMMENT
LOWapi/core/rag/datasource/retrieval_service.py652 # Check if this segment was retrieved via summaryCOMMENT
LOWapi/core/rag/datasource/retrieval_service.py698 # 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.py328 # Check if the prompt file is already loadedCOMMENT
LOWapi/core/ops/ops_trace_manager.py149 # 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.py743 # Check if this credential is used in load balancing configsCOMMENT
LOWapi/core/entities/provider_configuration.py762 # Check if this is the currently active credentialCOMMENT
LOWapi/core/entities/provider_configuration.py1246 # Check if this is the currently active credentialCOMMENT
LOW…b-oceanbase/src/dify_vdb_oceanbase/oceanbase_vector.py87 self._hybrid_search_enabled = self._check_hybrid_search_support() # Check if hybrid search is supportedCODE
LOW…rch/src/dify_vdb_elasticsearch/elasticsearch_vector.py86 # Check if using Elastic CloudCOMMENT
LOW…rch/src/dify_vdb_elasticsearch/elasticsearch_vector.py321 # Check if ELASTICSEARCH_USE_CLOUD is explicitly set to false (boolean)COMMENT
LOW…rs/vdb/vdb-chroma/src/dify_vdb_chroma/chroma_vector.py128 # Check if results contain dataCOMMENT
LOW…b-couchbase/src/dify_vdb_couchbase/couchbase_vector.py201 # Check if the collection exists in the scopeSTRING
LOW…lickzetta/src/dify_vdb_clickzetta/clickzetta_vector.py214 # Check if connection is not expired and still validCOMMENT
LOW…lickzetta/src/dify_vdb_clickzetta/clickzetta_vector.py486 # Check if table already exists to avoid unnecessary index creationCOMMENT
LOW…lickzetta/src/dify_vdb_clickzetta/clickzetta_vector.py527 # Check if vector index already exists on the embedding columnCOMMENT
LOW…lickzetta/src/dify_vdb_clickzetta/clickzetta_vector.py560 # Check if an inverted index already exists on this columnCOMMENT
LOW…lickzetta/src/dify_vdb_clickzetta/clickzetta_vector.py678 # Check if we have any valid data to insertCOMMENT
LOW…lickzetta/src/dify_vdb_clickzetta/clickzetta_vector.py726 # Check if table exists firstCOMMENT
107 more matches not shown…
Over-Commented Block228 hits · 200 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,COMMENT
LOW…fy_agent/dify_agent_examples/run_server_sync_client.py81 # tools=[COMMENT
LOW…/dify_agent/dify_agent_examples/run_server_consumer.py81 # DifyPluginToolsLayerConfig,COMMENT
LOW…/dify_agent/dify_agent_examples/run_server_consumer.py101 # required=True,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.tsx181 // AssertCOMMENT
LOW…bug/debug-with-multiple-model/__tests__/index.spec.tsx561 mode: AppModeEnum.COMPLETION,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.tsx81COMMENT
LOW…otation/edit-annotation-modal/__tests__/index.spec.tsx101 // AssertCOMMENT
LOW…otation/edit-annotation-modal/__tests__/index.spec.tsx321 // ActCOMMENT
LOW…otation/edit-annotation-modal/__tests__/index.spec.tsx341 // Assert - Confirm dialog should not be visible initiallyCOMMENT
LOW…pp/components/app/workflow-log/__tests__/list.spec.tsx501 // Before click - no highlightCOMMENT
LOW…pp/components/app/workflow-log/__tests__/list.spec.tsx521 // Before click - no highlightCOMMENT
LOW…pp/components/app/workflow-log/__tests__/list.spec.tsx621 // Replay button should not be present for webhook triggersCOMMENT
LOW…pp/components/app/workflow-log/__tests__/list.spec.tsx641 // Replay button should not be present for webhook triggersCOMMENT
LOW…pp/components/app/workflow-log/__tests__/list.spec.tsx821 // Should render without trigger columnCOMMENT
LOW…pp/components/app/workflow-log/__tests__/list.spec.tsx841 // Should render without trigger columnCOMMENT
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…/form/components/__tests__/basic-info-section.spec.tsx301 expect(handleOpenAppIconPicker).toHaveBeenCalled()COMMENT
LOW…/form/components/__tests__/basic-info-section.spec.tsx321 // Check that AppIconPicker is not renderedCOMMENT
LOW…ponents/datasets/rename-modal/__tests__/index.spec.tsx401 nameInput.focus()COMMENT
LOW…ponents/datasets/rename-modal/__tests__/index.spec.tsx421 // 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.tsx441COMMENT
LOW…ponents/datasets/rename-modal/__tests__/index.spec.tsx461 // Just verify the element is focusableCOMMENT
LOW…ponents/datasets/rename-modal/__tests__/index.spec.tsx721 // Save button should be enabled againCOMMENT
LOW…ponents/datasets/rename-modal/__tests__/index.spec.tsx881 // Initially picker should not be visibleCOMMENT
LOW…ponents/datasets/rename-modal/__tests__/index.spec.tsx901 // Initially picker should not be visibleCOMMENT
168 more matches not shown…
Structural Annotation Overuse95 hits · 184 pts
SeverityFileLineSnippetContext
LOWdocker/docker-compose.yaml2# WARNING: This file is auto-generated by generate_docker_composeCOMMENT
LOWsdks/nodejs-client/scripts/publish.sh127 # Step 1: Environment CheckCOMMENT
LOWsdks/nodejs-client/scripts/publish.sh164 # Step 2: Read Package InfoCOMMENT
LOWsdks/nodejs-client/scripts/publish.sh187 # Step 3: Install DependenciesCOMMENT
LOWsdks/nodejs-client/scripts/publish.sh195 # Step 4: Run TestsCOMMENT
LOWsdks/nodejs-client/scripts/publish.sh207 # Step 5: BuildCOMMENT
LOWsdks/nodejs-client/scripts/publish.sh229 # Step 6: PublishCOMMENT
LOWdify-agent-runtime/internal/agentcli/file.go70 // Step 1: Request a signed upload URLCOMMENT
LOWdify-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.tsx1276 // Step 1: VerifyCOMMENT
LOW…-panel/subscription-list/edit/__tests__/index.spec.tsx1282 // Step 2: UpdateCOMMENT
LOW…in/install-from-local-package/__tests__/index.spec.tsx1867 // Step 1: UploadingCOMMENT
LOW…in/install-from-local-package/__tests__/index.spec.tsx1870 // Step 2: Upload complete, transition to readyToInstallCOMMENT
LOW…in/install-from-local-package/__tests__/index.spec.tsx1878 // Step 3: Start installationCOMMENT
LOW…in/install-from-local-package/__tests__/index.spec.tsx1882 // Step 4: Installation completeCOMMENT
LOW…in/install-from-local-package/__tests__/index.spec.tsx1944 // Step 1: UploadingCOMMENT
LOW…in/install-from-local-package/__tests__/index.spec.tsx1948 // Step 2: Upload complete, transition to readyToInstallCOMMENT
LOW…in/install-from-local-package/__tests__/index.spec.tsx1957 // Step 3: Start installationCOMMENT
LOW…in/install-from-local-package/__tests__/index.spec.tsx1961 // 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
LOWweb/app/components/base/mermaid/index.tsx254 // Step 1: Clean and prepare Mermaid code using the extracted prepareMermaidCode functionCOMMENT
LOWweb/app/components/base/mermaid/index.tsx261 // Step 2: Render chartCOMMENT
LOWweb/app/components/base/mermaid/index.tsx264 // Step 3: Apply theme to SVG using the extracted processSvgForTheme functionCOMMENT
LOWweb/app/components/base/mermaid/index.tsx272 // Step 4: Clean up SVG codeCOMMENT
LOWcli/test/e2e/suites/run/run-app-conversation.e2e.ts519 // Step 1: create a conversation with chatApp.COMMENT
LOWcli/test/e2e/suites/run/run-app-conversation.e2e.ts526 // Step 2: attempt to continue that conversation using fileChatApp.COMMENT
LOWcli/test/e2e/suites/run/run-app-conversation.e2e.ts412 // Step 1: Start a new conversation with a file — get the conversation_id.COMMENT
LOWcli/test/e2e/suites/run/run-app-conversation.e2e.ts428 // Step 2: Continue the same conversation with another file upload.COMMENT
LOWcli/test/e2e/suites/run/run-app-conversation.e2e.ts462 // Step 1: start a new conversation with an explicit input variable.COMMENT
LOWcli/test/e2e/suites/run/run-app-conversation.e2e.ts478 // Step 2: continue the conversation with another --inputs payload.COMMENT
LOWcli/test/e2e/suites/run/run-app-hitl.e2e.ts142 // Step 2: resume with explicit --action and --inputs (Spec 4.5.11)COMMENT
LOWcli/test/e2e/suites/run/run-app-hitl.e2e.ts457 // Step 1: trigger the HITL pause and extract form_token + workflow_run_id.COMMENT
LOWcli/test/e2e/suites/run/run-app-hitl.e2e.ts477 // Step 2: attempt to resume without --action.COMMENT
LOWcli/test/e2e/suites/run/run-app-basic.e2e.ts497 // Step 1: prime the cacheCOMMENT
LOWcli/test/e2e/suites/run/run-app-basic.e2e.ts507 // Step 2: cache file must have been written at {configDir}/app-info.ymlCOMMENT
LOWcli/test/e2e/suites/run/run-app-basic.e2e.ts512 // Step 3: delete the cacheCOMMENT
LOWcli/test/e2e/suites/run/run-app-basic.e2e.ts515 // Step 4: run again — cache miss must not cause failureCOMMENT
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.py323 # 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.py921 # Step 1: Start crawlCOMMENT
LOW…tests/unit_tests/core/datasource/test_website_crawl.py931 # Step 2: Check status (running)COMMENT
LOW…tests/unit_tests/core/datasource/test_website_crawl.py970 # Step 4: Get specific URL dataCOMMENT
LOW…tests/unit_tests/core/datasource/test_website_crawl.py943 # 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
35 more matches not shown…
Modern AI Meta-Vocabulary61 hits · 184 pts
SeverityFileLineSnippetContext
MEDIUM…dataset-config/settings-modal/__tests__/index.spec.tsx413 // 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.md27## New command scaffoldCOMMENT
MEDIUMcli/test/e2e/README.md147(PR #37460): `--think` surfaces the chain-of-thought to stderr framed asCODE
MEDIUMapi/tasks/regenerate_summary_index_task.py167 # Re-vectorize with new embedding modelCOMMENT
MEDIUMapi/tasks/async_workflow_tasks.py199 # Final failure - no retry logic (simplified like RAG tasks)COMMENT
MEDIUMapi/core/indexing_runner.py858 # get embedding model instanceCOMMENT
MEDIUMapi/core/rag/datasource/vdb/vector_factory.py124 # construction. The real embedding model is materialized only when anCOMMENT
MEDIUMapi/core/workflow/node_factory.py577 # Stage 4 §5/§7: per-output validation + failure orchestration. TheCOMMENT
MEDIUMapi/core/workflow/nodes/agent_v2/agent_node.py455 # ──── Stage 4: orchestrate retry / default / fail ────COMMENT
MEDIUMapi/enterprise/telemetry/enterprise_trace.py922 # Get embedding model for this specific datasetCOMMENT
MEDIUMapi/constants/pipeline_templates.json1356 "export_data": "dependencies:\n- current_identifier: null\n type: marketplace\n value:\n marketplace_plugin_uCODE
MEDIUMapi/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.py176 # embedding model until ``embed_*`` is invoked, so cleanup paths neverCOMMENT
MEDIUMapi/tests/unit_tests/core/rag/rerank/test_reranker.py723 # Mock embedding modelCOMMENT
MEDIUM…ests/unit_tests/core/workflow/generator/test_runner.py3379 # Only "real_search" is installed; "fake_search" is the hallucination.COMMENT
MEDIUM…ers/console/app/test_workflow_human_input_debug_api.py49 # Skip setup and auth guardrailsCOMMENT
MEDIUMapi/tests/unit_tests/services/test_workflow_service.py185 # Add trigger node for event-driven workflows (webhook, schedule, etc.)COMMENT
MEDIUMapi/tests/unit_tests/services/test_workflow_service.py1500 # 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/controllers/service_api/dataset/dataset.py686 # check embedding model settingCOMMENT
MEDIUMapi/controllers/service_api/dataset/segment.py203 # check embedding model settingCOMMENT
MEDIUMapi/controllers/service_api/dataset/segment.py295 # check embedding model settingCOMMENT
MEDIUMapi/controllers/service_api/dataset/segment.py426 # check embedding model settingCOMMENT
MEDIUMapi/controllers/service_api/dataset/segment.py572 # check embedding model settingCOMMENT
MEDIUMapi/controllers/console/app/generator.py64# planner+builder prompts well inside every mainstream context window.COMMENT
MEDIUMapi/controllers/console/app/app.py1088 # TODO: Move this configuration and OAuth orchestration into the Creators Platform application serviceCOMMENT
MEDIUMapi/controllers/console/datasets/datasets.py738 # check embedding model settingCOMMENT
MEDIUMapi/controllers/console/datasets/datasets_segments.py375 # check embedding model settingCOMMENT
MEDIUMapi/controllers/console/datasets/datasets_segments.py440 # check embedding model settingCOMMENT
MEDIUMapi/controllers/console/datasets/datasets_segments.py521 # check embedding model settingCOMMENT
MEDIUMapi/controllers/console/datasets/datasets_segments.py735 # check embedding model settingCOMMENT
MEDIUMapi/services/vector_service.py55 # get embedding model instanceCOMMENT
MEDIUMapi/services/vector_service.py57 # check embedding model settingCOMMENT
MEDIUMapi/services/dataset_service.py954 # Remove embedding model configuration for economy modeCOMMENT
MEDIUMapi/services/dataset_service.py960 # Configure embedding model for high quality modeCOMMENT
MEDIUMapi/services/dataset_service.py964 # Handle embedding model updates when indexing technique remains the sameCOMMENT
MEDIUMapi/services/dataset_service.py1042 # If the dataset already has embedding model settings, use thoseCOMMENT
MEDIUMapi/services/dataset_service.py1049 # Otherwise, don't try to update embedding model settings at allCOMMENT
MEDIUMapi/services/dataset_service.py429 # check if embedding model setting is validCOMMENT
MEDIUMapi/services/dataset_service.py803 # Handle indexing technique changes and embedding model updatesCOMMENT
MEDIUMapi/services/dataset_service.py1021 # Skip embedding model checks if not provided in the update requestCOMMENT
MEDIUMapi/services/dataset_service.py1115 # If we can't get the embedding model, preserve existing settingsCOMMENT
MEDIUMapi/services/dataset_service.py1126 # Skip the rest of the embedding model updateCOMMENT
MEDIUMapi/services/dataset_service.py1129 # Apply new embedding model settingsCOMMENT
MEDIUMapi/services/dataset_service.py1244 # get embedding model settingCOMMENT
MEDIUMapi/services/dataset_service.py1278 # Skip embedding model checks if not provided in the update requestCOMMENT
MEDIUMapi/services/dataset_service.py1294 # Only update embedding model if both values are provided and different from currentCOMMENT
MEDIUMapi/services/dataset_service.py1310 # If we can't get the embedding model, skip updating itCOMMENT
MEDIUMapi/services/dataset_service.py1312 # Skip the rest of the embedding model updateCOMMENT
MEDIUMapi/services/dataset_service.py3636 # get embedding model instanceCOMMENT
MEDIUMapi/services/dataset_service.py3638 # check embedding model settingCOMMENT
MEDIUMapi/services/dataset_service.py3741 # get embedding model instanceCOMMENT
1 more matches not shown…
Verbosity Indicators90 hits · 176 pts
SeverityFileLineSnippetContext
LOWsdks/nodejs-client/scripts/publish.sh127 # Step 1: Environment CheckCOMMENT
LOWsdks/nodejs-client/scripts/publish.sh164 # Step 2: Read Package InfoCOMMENT
LOWsdks/nodejs-client/scripts/publish.sh187 # Step 3: Install DependenciesCOMMENT
LOWsdks/nodejs-client/scripts/publish.sh195 # Step 4: Run TestsCOMMENT
LOWsdks/nodejs-client/scripts/publish.sh207 # Step 5: BuildCOMMENT
LOWsdks/nodejs-client/scripts/publish.sh229 # Step 6: PublishCOMMENT
LOWdify-agent-runtime/internal/agentcli/file.go70 // Step 1: Request a signed upload URLCOMMENT
LOWdify-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.tsx1276 // Step 1: VerifyCOMMENT
LOW…-panel/subscription-list/edit/__tests__/index.spec.tsx1282 // Step 2: UpdateCOMMENT
LOW…in/install-from-local-package/__tests__/index.spec.tsx1867 // Step 1: UploadingCOMMENT
LOW…in/install-from-local-package/__tests__/index.spec.tsx1870 // Step 2: Upload complete, transition to readyToInstallCOMMENT
LOW…in/install-from-local-package/__tests__/index.spec.tsx1878 // Step 3: Start installationCOMMENT
LOW…in/install-from-local-package/__tests__/index.spec.tsx1882 // Step 4: Installation completeCOMMENT
LOW…in/install-from-local-package/__tests__/index.spec.tsx1944 // Step 1: UploadingCOMMENT
LOW…in/install-from-local-package/__tests__/index.spec.tsx1948 // Step 2: Upload complete, transition to readyToInstallCOMMENT
LOW…in/install-from-local-package/__tests__/index.spec.tsx1957 // Step 3: Start installationCOMMENT
LOW…in/install-from-local-package/__tests__/index.spec.tsx1961 // 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
LOWweb/app/components/base/mermaid/index.tsx254 // Step 1: Clean and prepare Mermaid code using the extracted prepareMermaidCode functionCOMMENT
LOWweb/app/components/base/mermaid/index.tsx261 // Step 2: Render chartCOMMENT
LOWweb/app/components/base/mermaid/index.tsx264 // Step 3: Apply theme to SVG using the extracted processSvgForTheme functionCOMMENT
LOWweb/app/components/base/mermaid/index.tsx272 // Step 4: Clean up SVG codeCOMMENT
LOWcli/test/e2e/suites/run/run-app-conversation.e2e.ts519 // Step 1: create a conversation with chatApp.COMMENT
LOWcli/test/e2e/suites/run/run-app-conversation.e2e.ts526 // Step 2: attempt to continue that conversation using fileChatApp.COMMENT
LOWcli/test/e2e/suites/run/run-app-conversation.e2e.ts412 // Step 1: Start a new conversation with a file — get the conversation_id.COMMENT
LOWcli/test/e2e/suites/run/run-app-conversation.e2e.ts428 // Step 2: Continue the same conversation with another file upload.COMMENT
LOWcli/test/e2e/suites/run/run-app-conversation.e2e.ts462 // Step 1: start a new conversation with an explicit input variable.COMMENT
LOWcli/test/e2e/suites/run/run-app-conversation.e2e.ts478 // Step 2: continue the conversation with another --inputs payload.COMMENT
LOWcli/test/e2e/suites/run/run-app-hitl.e2e.ts142 // Step 2: resume with explicit --action and --inputs (Spec 4.5.11)COMMENT
LOWcli/test/e2e/suites/run/run-app-hitl.e2e.ts457 // Step 1: trigger the HITL pause and extract form_token + workflow_run_id.COMMENT
LOWcli/test/e2e/suites/run/run-app-hitl.e2e.ts477 // Step 2: attempt to resume without --action.COMMENT
LOWcli/test/e2e/suites/run/run-app-basic.e2e.ts497 // Step 1: prime the cacheCOMMENT
LOWcli/test/e2e/suites/run/run-app-basic.e2e.ts507 // Step 2: cache file must have been written at {configDir}/app-info.ymlCOMMENT
LOWcli/test/e2e/suites/run/run-app-basic.e2e.ts512 // Step 3: delete the cacheCOMMENT
LOWcli/test/e2e/suites/run/run-app-basic.e2e.ts515 // Step 4: run again — cache miss must not cause failureCOMMENT
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.py323 # Step 2: Session is now closed, perform network operations without holding database connectionCOMMENT
LOW…tests/unit_tests/core/datasource/test_website_crawl.py921 # Step 1: Start crawlCOMMENT
LOW…tests/unit_tests/core/datasource/test_website_crawl.py931 # Step 2: Check status (running)COMMENT
LOW…tests/unit_tests/core/datasource/test_website_crawl.py970 # Step 4: Get specific URL dataCOMMENT
LOW…tests/unit_tests/core/datasource/test_website_crawl.py943 # 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
30 more matches not shown…
Cross-Language Confusion30 hits · 168 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
HIGHapi/core/app/apps/agent_app/app_runner.py995 debounced_delta = text_delta_debouncer.push(internal_event.delta)CODE
HIGHapi/core/workflow/generator/prompts/builder_prompts.py90 "multiple_retrieval_config": {"top_k": 4, "score_threshold": null,CODE
HIGHapi/core/workflow/generator/prompts/builder_prompts.py97 "outputs": {"result": {"type": "string", "children": null}}}""",CODE
HIGHapi/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/core/plugin/test_plugin_runtime.py675 f'data: {{"code": -500, "message": {json.dumps(error_obj)}, "data": null}}',CODE
HIGHapi/tests/unit_tests/core/plugin/test_plugin_runtime.py1120 f'data: {{"code": -500, "message": {json.dumps(error_obj)}, "data": null}}',CODE
HIGH…s/unit_tests/core/plugin/impl/test_base_client_impl.py154 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.py163 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.py170 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
HIGHapi/tests/unit_tests/core/mcp/client/test_sse.py24 json_message = '{"jsonrpc": "2.0", "id": "123", "method": "ping", "params": null}'CODE
HIGHapi/tests/unit_tests/core/mcp/client/test_sse.py39 json_message = '{"jsonrpc": "2.0", "method": "ping", "params": null}'CODE
HIGHapi/tests/unit_tests/libs/test_oauth_clients.py145 # The profile email is absent/null, so /user/emails should be calledCOMMENT
HIGH…tests/unit_tests/commands/test_check_no_new_getattr.py266 "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…t_tests/controllers/console/test_knowledge_fs_proxy.py380 content=gzip.compress(b'{"items":[],"nextCursor":null}'),CODE
HIGH…t_tests/controllers/console/app/test_app_import_api.py351 b'{"import_mode":"yaml-content","yaml_content":"app: {}","app_id":null,'CODE
HIGH…t_tests/controllers/console/app/test_app_import_api.py352 b'"name":null,"description":null,"icon_type":null,"icon":null,"icon_background":null}'CODE
HIGH…t_tests/controllers/console/app/test_app_import_api.py397 b'"name":null,"description":null,"icon_type":null,"icon":null,"icon_background":null}'CODE
HIGHapi/tests/unit_tests/services/test_billing_service.py487 """When billing serializes skipped vector_space as null, get_info treats it as absent."""STRING
HIGH…tests/unit_tests/services/test_agent_config_service.py371 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.py104 offending request's id directly (None -> null) instead of fabricating a placeholder.STRING
HIGHapi/services/billing_service.py256 # Unset proto message fields can be serialized as null; the light billing contract treats it as absent.COMMENT
AI Slop Vocabulary41 hits · 96 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
MEDIUMapi/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.py576 # 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.py1204 except BaseException as exc: # pragma: no cover - test harnessCODE
MEDIUM…nit_tests/commands/test_legacy_model_type_migration.py1291 except BaseException as exc: # pragma: no cover - test harnessCODE
MEDIUMapi/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.py1075 # Arrange: Create comprehensive test scenarioCOMMENT
MEDIUM…ation_tests/tasks/test_create_segment_to_index_task.py1093 # Assert: Verify comprehensive successCOMMENT
MEDIUMapi/models/workflow.py1765 # `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.py594 # 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.py141 # ensure that we can utilize the index.COMMENT
AI Structural Patterns78 hits · 60 pts
SeverityFileLineSnippetContext
LOW…fy-agent/tests/local/dify_agent/runtime/test_runner.py259CODE
LOW…t/tests/local/dify_agent/adapters/llm/_test_support.py18CODE
LOWdify-agent/src/dify_agent/runtime/compositor_factory.py63CODE
LOWapi/core/tools/utils/web_reader_tool.py97CODE
LOWapi/core/app/apps/chat/generate_response_converter.py38CODE
LOWapi/core/app/apps/workflow/generate_task_pipeline.py801CODE
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.py781CODE
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
LOW…ests/core/app/layers/test_pause_state_persist_layer.py110CODE
LOW…/test_sqlalchemy_workflow_node_execution_repository.py66CODE
LOW…/repositories/test_human_input_form_repository_impl.py222CODE
LOW…tests/core/rag/datasource/test_datasource_retrieval.py200CODE
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.py1351CODE
LOW…nit_tests/core/rag/retrieval/test_dataset_retrieval.py1446CODE
LOW…nit_tests/core/rag/retrieval/test_dataset_retrieval.py1499CODE
LOW…nit_tests/core/rag/retrieval/test_dataset_retrieval.py1559CODE
LOW…nit_tests/core/rag/retrieval/test_dataset_retrieval.py1638CODE
LOW…_tests/core/workflow/graph_engine/test_table_runner.py248CODE
LOWapi/tests/unit_tests/oss/__mock/aliyun_oss.py26CODE
LOW…tests/unit_tests/controllers/inner_api/app/test_dsl.py177CODE
LOW…s/unit_tests/controllers/openapi/auth/test_pipeline.py14CODE
LOW…nit_tests/controllers/service_api/app/test_workflow.py63CODE
LOW…s/unit_tests/services/test_trigger_provider_service.py54CODE
LOW…nit_tests/services/test_datasource_provider_service.py29CODE
LOW…ts/unit_tests/services/dataset_service_test_helpers.py308CODE
LOW…ts/unit_tests/services/dataset_service_test_helpers.py345CODE
LOW…ts/unit_tests/services/dataset_service_test_helpers.py159CODE
LOW…ts/unit_tests/services/dataset_service_test_helpers.py206CODE
LOWapi/tests/unit_tests/services/test_oauth_device_flow.py25CODE
LOW…s/unit_tests/services/test_dataset_service_document.py84CODE
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
LOWapi/tests/unit_tests/services/test_account_service.py48CODE
LOWapi/tests/unit_tests/services/test_vector_service.py60CODE
LOW…sts/services/rag_pipeline/test_rag_pipeline_service.py120CODE
LOW…ts/unit_tests/services/agent/test_workspace_service.py45CODE
LOW…ts/unit_tests/services/agent/test_workspace_service.py70CODE
LOW…ervices/workflow/test_node_output_inspector_service.py62CODE
LOW…ervices/workflow/test_node_output_inspector_service.py96CODE
LOWapi/tests/integration_tests/tools/__mock/http.py28CODE
LOW…/tests/integration_tests/workflow/nodes/__mock/http.py45CODE
LOW…_integration_tests/services/document_service_status.py41CODE
LOW…ers_integration_tests/services/test_dataset_service.py59CODE
LOW…ration_tests/services/test_dataset_service_document.py47CODE
18 more matches not shown…
Dead Code14 hits · 28 pts
SeverityFileLineSnippetContext
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.py808CODE
MEDIUM…/tests/unit_tests/core/workflow/nodes/llm/test_node.py1635CODE
MEDIUM…_tests/core/workflow/nodes/agent_v2/test_agent_node.py316CODE
MEDIUM…_tests/core/workflow/nodes/agent_v2/test_agent_node.py377CODE
MEDIUM…_tests/core/workflow/nodes/agent_v2/test_agent_node.py390CODE
MEDIUM…it_tests/core/base/test_app_generator_tts_publisher.py242CODE
MEDIUM…it_tests/controllers/console/app/test_generator_api.py715CODE
MEDIUM…ts/unit_tests/services/test_agent_llm_inner_service.py348CODE
MEDIUMapi/tests/unit_tests/services/test_setup_service.py74CODE
Magic Placeholder Names2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHsdks/php-client/README.md34$apiKey = 'your-api-key-here';CODE
HIGHsdks/php-client/README.md91Replace 'your-api-key-here' with your actual Dify API key.CODE
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
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…/workflow-generator/__tests__/example-prompts.spec.tsx40 // The primary content is AI-generated, workspace-grounded chips fetched onCOMMENT
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…ents/workflow/nodes/code/__tests__/code-parser.spec.ts119 print("Hello")`,CODE
TODO Padding2 hits · 4 pts
SeverityFileLineSnippetContext
LOW…/tests/unit_tests/core/workflow/nodes/llm/test_node.py555# TODO: Add testCOMMENT
LOW…/tests/unit_tests/core/workflow/nodes/llm/test_node.py595# TODO: Add testCOMMENT
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…ix/src/dify_trace_arize_phoenix/arize_phoenix_trace.py377 def process_data(self) -> Mapping[str, Any] | None: ...CODE
LOW…/unit_tests/extensions/otel/decorators/test_handler.py246 def my_function(x):CODE
Example Usage Blocks1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsdks/nodejs-client/scripts/publish.sh7# Usage:COMMENT