Repository Analysis

onyx-dot-app/onyx

Open Source AI Platform - AI Chat with advanced features that works with every LLM

20.8 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of onyx-dot-app/onyx, a Python project with 31,359 GitHub stars. SynthScan v2.0 examined 1,139,243 lines of code across 6259 source files, recording 17491 pattern matches distributed across 26 syntactic categories. The overall adjusted score of 20.8 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).

20.8
Adjusted Score
20.8
Raw Score
100%
Time Factor
2026-08-01
Last Push
31.4K
Stars
Python
Language
1.1M
Lines of Code
6.3K
Files
17.5K
Pattern Hits
2026-08-02
Scan Date
0.04
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 4HIGH 230MEDIUM 1910LOW 15347

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

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

Hyper-Verbose Identifiers11291 hits · 11446 pts
SeverityFileLineSnippetContext
LOWweb/tests/e2e/connectors/federated_slack.spec.ts10async function createFederatedSlackConnector(page: Page) {CODE
LOWweb/tests/e2e/connectors/federated_slack.spec.ts73async function deleteFederatedSlackConnector(page: Page) {CODE
LOWweb/tests/e2e/chat/share_chat.spec.ts6async function sendMessageAndWaitForChat(page: Page, message: string) {CODE
LOWweb/tests/e2e/chat/chat_message_rendering.spec.ts351 async function screenshotToolbarButtonHoverStates(CODE
LOWweb/tests/e2e/chat/scroll_behavior.spec.ts165 async function getElementPositionInContainer(CODE
LOWweb/tests/e2e/chat/llm_runtime_selection.spec.ts78async function sendMessageAndCapturePayload(CODE
LOWweb/tests/e2e/chat/file_preview_modal.spec.ts77async function sendMessageWithMockResponse(CODE
LOWweb/tests/e2e/admin/disable_default_agent.spec.ts41async function setDisableDefaultAssistantSetting(CODE
LOWweb/tests/e2e/admin/llm_provider_setup.spec.ts65async function getAdminLLMProviderResponse(page: Page) {CODE
LOWweb/tests/e2e/admin/llm_provider_setup.spec.ts95async function createPublicProviderWithModels(CODE
LOWweb/tests/e2e/admin/llm_provider_setup.spec.ts121async function navigateToAdminLlmPageFromChat(page: Page): Promise<void> {CODE
LOWweb/tests/e2e/admin/llm_provider_setup.spec.ts137async function isModelVisibleInChatProviders(CODE
LOWweb/tests/e2e/admin/llm_provider_setup.spec.ts157async function expectModelVisibilityInChatProviders(CODE
LOWweb/tests/e2e/admin/llm_provider_setup.spec.ts169async function getModelCountInChatSelector(CODE
LOW…ts/e2e/admin/code-interpreter/code_interpreter.spec.ts67async function clickDisconnectIconButton(page: Page) {CODE
LOW…/tests/e2e/admin/index-settings/index_settings.spec.ts48async function stageNonCurrentSelfHostedModel(page: Page): Promise<void> {CODE
LOWweb/tests/e2e/admin/discord-bot/fixtures.ts107function createMockRegisteredGuild(id: number): MockGuild {CODE
LOW…tests/e2e/admin/connector/permission-sync-tabs.spec.ts132async function mockSyncConnectorEndpoints(CODE
LOWweb/tests/e2e/utils/mcpServer.ts291export async function startMcpGoogleOAuthServer(CODE
LOWweb/tests/e2e/utils/chatActions.ts4export async function verifyDefaultAgentIsChosen(page: Page) {CODE
LOWweb/tests/e2e/utils/chatActions.ts18export async function navigateToAgentInHistorySidebar(CODE
LOWweb/tests/e2e/utils/chatActions.ts70export async function selectModelFromInputPopover(CODE
LOWweb/tests/e2e/utils/agentUtils.ts79export async function ensureImageGenerationEnabled(page: Page): Promise<void> {CODE
LOWweb/tests/e2e/utils/chatStream.ts77export async function sendMessageAndCaptureStreamPackets(CODE
LOWweb/lib/opal/src/time.ts117export function humanReadableFormatWithTime(datetimeString: string): string {CODE
LOWweb/lib/opal/src/time.ts218export function getSecondsUntilExpiration(expiry: Date): number {CODE
LOW…src/components/buttons/line-item-button/components.tsx69function guardNestedInteractiveClick(CODE
LOW…lib/opal/src/components/table/hooks/useColumnWidths.ts208function createSplitterResizeHandler(CODE
LOWweb/src/sections/sidebar/ChatButton.tsx369 async function handleCreateProjectAndMove(projectName: string) {CODE
LOWweb/src/sections/document-sidebar/DocumentsSidebar.tsx71function ChatDocumentDisplayWrapper({CODE
LOWweb/src/sections/input/AppInputBar.tsx560 function handleKeyDownForPromptShortcuts(CODE
LOWweb/src/sections/modals/UnsavedChangesModal.tsx31export function UnsavedChangesModalContent({CODE
LOW…ctions/modals/languageModels/OpenAICompatibleModal.tsx41function OpenAICompatibleModalInternals({CODE
LOWweb/src/sections/modals/languageModels/utils.ts140export function mergeFetchedModelConfigurations(CODE
LOW…c/sections/modals/languageModels/LiteLLMProxyModal.tsx42function LiteLLMProxyModalInternals({CODE
LOW…ions/modals/languageModels/NebiusTokenfactoryModal.tsx44function NebiusTokenfactoryModalInternals({CODE
LOW…sections/modals/skills/ImportSkillsFromGitHubModal.tsx50export default function ImportSkillsFromGitHubModal({CODE
LOW…sections/modals/skills/ImportSkillsFromGitHubModal.tsx131export function ImportSkillsFromGitHubModalView({CODE
LOW…sections/knowledge/agent-knowledge/KnowledgeSearch.tsx179export function KnowledgeSearchResultsPanel({CODE
LOW…sections/actions/modals/OpenAPIAuthenticationModal.tsx70export default function OpenAPIAuthenticationModal({CODE
LOW…/src/sections/actions/modals/AddOpenAPIActionModal.tsx55function parseJsonWithTrailingCommas(jsonString: string) {CODE
LOW…/src/sections/skills/InstructionsDisplayModeToggle.tsx24export default function InstructionsDisplayModeToggle({CODE
LOWweb/src/app/craft/v1/tasks/schedule.ts217export function compileLocalPayloadToUtcCron(CODE
LOWweb/src/app/craft/v1/tasks/schedule.ts405export function decodeUtcCronToLocalPayload(CODE
LOWweb/src/app/craft/v1/tasks/schedule.ts478export function humanReadableScheduleFromCron(CODE
LOWweb/src/app/craft/v1/tasks/utils.ts86export function isScheduledRunContextInFlight(CODE
LOWweb/src/app/craft/v1/apps/registry.ts123export function availableBuiltInDescriptors(CODE
LOWweb/src/app/craft/v1/apps/oauth/callback/page.tsx17export default function ExternalAppsOAuthCallbackPage() {CODE
LOW…app/craft/v1/apps/admin/ExternalAppSkillsStepModal.tsx31export default function ExternalAppSkillsStepModal({CODE
LOW…/app/craft/v1/apps/admin/skillAssociationNavigation.ts21export function externalAppContextFromSearchParams({CODE
LOWweb/src/app/craft/v1/apps/admin/page.tsx5export default function ExternalAppsAdminRedirect() {CODE
LOWweb/src/app/craft/utils/llmPreferences.ts25export function getStoredRecommendedModelsOnly(CODE
LOWweb/src/app/craft/utils/llmPreferences.ts32export function setStoredRecommendedModelsOnly(CODE
LOWweb/src/app/craft/utils/subagentRouting.ts51export function toolCallStateFromProgress(CODE
LOW…ents/video-background/useVideoBackgroundToggleClick.ts10export function useVideoBackgroundToggleClick() {CODE
LOWweb/src/app/craft/hooks/useBuildSessionStore.ts68function convertMessagesToStreamItems(messages: BuildMessage[]): StreamItem[] {CODE
LOWweb/src/app/craft/hooks/useBuildSessionStore.ts224function isPlaceholderSubagentLabel(value: string): boolean {CODE
LOWweb/src/app/craft/hooks/useBuildSessionStore.ts251function appendStreamingSubagentChunk(CODE
LOWweb/src/app/craft/hooks/useBuildSessionStore.ts277function replaceOrAppendSettledTextItem(CODE
LOWweb/src/app/craft/hooks/useBuildSessionStore.ts306function buildSubagentsFromMessages(CODE
11231 more matches not shown…
Decorative Section Separators1358 hits · 5075 pts
SeverityFileLineSnippetContext
MEDIUMweb/tests/e2e/global-setup.ts200 // ── Preflight check ──────────────────────────────────────────────────COMMENT
MEDIUMweb/tests/e2e/global-setup.ts203 // ── Provision test users via API ─────────────────────────────────────COMMENT
MEDIUMweb/tests/e2e/global-setup.ts222 // ── Login via API and save storage state ───────────────────────────COMMENT
MEDIUMweb/tests/e2e/global-setup.ts254 // ── Ensure a public LLM provider exists ───────────────────────────COMMENT
MEDIUMweb/tests/e2e/chat/welcome_page.spec.ts28 // ── Full-page screenshot ──────────────────────────────────────────COMMENT
MEDIUMweb/tests/e2e/chat/welcome_page.spec.ts41 // ── Input bar element screenshot ──────────────────────────────────COMMENT
MEDIUMweb/tests/e2e/chat/welcome_page.spec.ts52 // ── Sidebar element screenshot ────────────────────────────────────COMMENT
MEDIUMweb/tests/e2e/chat/welcome_page.spec.ts63 // ── Content assertions ────────────────────────────────────────────COMMENT
MEDIUM…/components/buttons/link-button/LinkButton.stories.tsx14// ─── Anchor mode ────────────────────────────────────────────────────────────COMMENT
MEDIUM…/components/buttons/link-button/LinkButton.stories.tsx44// ─── Button mode ────────────────────────────────────────────────────────────COMMENT
MEDIUM…/components/buttons/link-button/LinkButton.stories.tsx54// ─── Disabled ───────────────────────────────────────────────────────────────COMMENT
MEDIUM…/components/buttons/link-button/LinkButton.stories.tsx76// ─── Tooltip ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…/components/buttons/link-button/LinkButton.stories.tsx105// ─── Inline in prose ────────────────────────────────────────────────────────COMMENT
MEDIUMweb/lib/opal/src/components/cards/card/Card.stories.tsx105// ─── Expandable mode ─────────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/shared.tsx59// ─── DisplayNameField ────────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/shared.tsx84// ─── APIKeyField ─────────────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/shared.tsx119// ─── APIBaseField ───────────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/shared.tsx160// ─── ModelsAccessField ──────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/shared.tsx390// ─── RefetchButton ──────────────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/shared.tsx434// ─── ModelsField ─────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/shared.tsx438// ─── Model metadata helpers (Nebius TokenFactory picker) ────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/shared.tsx798// ─── ModalWrapper ─────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/utils.ts10// ─── useInitialValues ─────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/utils.ts60// ─── buildValidationSchema ────────────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/utils.ts110// ─── Form value types ─────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/utils.ts128// ─── mergeFetchedModelConfigurations ──────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/utils.ts152// ─── Misc ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/svc.ts16// ─── Test helpers ─────────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/svc.ts97// ─── Submit provider ──────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/svc.ts138 // ── Test credentials ────────────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/svc.ts200 // ── Create/update provider ──────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/svc.ts226 // ── Set as default ──────────────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/svc.ts251 // ── Post-success ────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/CustomModal.tsx44// ─── Model Configuration List ─────────────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/CustomModal.tsx197// ─── Provider Name Select ─────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/sections/modals/languageModels/CustomModal.tsx226// ─── Custom Config Processing ─────────────────────────────────────────────────COMMENT
MEDIUM…rc/app/craft/v1/apps/admin/ActionPolicyEditorModal.tsx262// ── Policy editor ──────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/packetTypes.ts18// ─── Raw Packet Field Access ─────────────────────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/packetTypes.ts64// ─── Parsed Packet Types (Discriminated Union) ──────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/pathSanitizer.test.ts12 // ── Local dev (sandboxes + sessions) ────────────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/pathSanitizer.test.ts38 // ── Kubernetes (sessions only) ──────────────────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/pathSanitizer.test.ts54 // ── Already relative ────────────────────────────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/pathSanitizer.test.ts66 // ── Title field (no leading /) ──────────────────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/pathSanitizer.test.ts76 // ── Fallback (unknown format, >3 segments) ──────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/pathSanitizer.test.ts84 // ── Short paths ─────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/pathSanitizer.test.ts104 // ── Bash commands ───────────────────────────────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/pathSanitizer.test.ts122 // ── Output listings ─────────────────────────────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/pathSanitizer.test.ts140 // ── No paths — passthrough ──────────────────────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/pathSanitizer.test.ts148 // ── Error messages ──────────────────────────────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/parsePacket.ts682 // ── Command (freeform → sanitizePathsInText) ──────────────────COMMENT
MEDIUMweb/src/app/craft/utils/parsePacket.ts689 // ── Description ───────────────────────────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/parsePacket.ts699 // ── Output (freeform → sanitizePathsInText) ───────────────────COMMENT
MEDIUMweb/src/app/craft/utils/parsePacket.ts703 // ── Title ─────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/parsePacket.ts706 // ── Status ────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/parsePacket.ts709 // ── Todo-specific ─────────────────────────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/parsePacket.ts712 // ── Task-specific ─────────────────────────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/parsePacket.ts717 // ── Skill detection ───────────────────────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/parsePacket.ts724 // ── Subagent routing (from ACP _meta) ─────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/parsePacket.ts128// ─── Skill Detection ──────────────────────────────────────────────COMMENT
MEDIUMweb/src/app/craft/utils/parsePacket.ts173// ─── Tool Name Resolution ─────────────────────────────────────────COMMENT
1298 more matches not shown…
Excessive Try-Catch Wrapping1529 hits · 1678 pts
SeverityFileLineSnippetContext
MEDIUMtools/ods/internal/openapi/openapi_schema.py39 print(f"Error: Failed to import required modules: {e}", file=sys.stderr)CODE
LOWtools/ods/internal/openapi/openapi_schema.py74 except Exception as e: # noqa: BLE001CODE
MEDIUMtools/ods/internal/openapi/openapi_schema.py75 print(f"Error generating OpenAPI schema: {e}", file=sys.stderr)CODE
LOW…ackground/celery/tasks/external_group_syncing/tasks.py112 except Exception:CODE
LOW…ackground/celery/tasks/external_group_syncing/tasks.py241 except Exception:CODE
LOW…ackground/celery/tasks/external_group_syncing/tasks.py255 except Exception as e:CODE
LOW…ackground/celery/tasks/external_group_syncing/tasks.py302 except Exception:CODE
LOW…ackground/celery/tasks/external_group_syncing/tasks.py333 except Exception as e:CODE
LOW…ackground/celery/tasks/external_group_syncing/tasks.py442 except Exception as e:CODE
LOW…ackground/celery/tasks/external_group_syncing/tasks.py619 except Exception as e:CODE
LOWbackend/ee/onyx/background/celery/tasks/vespa/tasks.py93 except Exception as e:CODE
LOW…ackground/celery/tasks/doc_permission_syncing/tasks.py134 except Exception:CODE
LOW…ackground/celery/tasks/doc_permission_syncing/tasks.py255 except Exception:CODE
LOW…ackground/celery/tasks/doc_permission_syncing/tasks.py288 except Exception as e:CODE
LOW…ackground/celery/tasks/doc_permission_syncing/tasks.py350 except Exception:CODE
LOW…ackground/celery/tasks/doc_permission_syncing/tasks.py379 except Exception as e:CODE
LOW…ackground/celery/tasks/doc_permission_syncing/tasks.py521 except Exception:CODE
LOW…ackground/celery/tasks/doc_permission_syncing/tasks.py644 except Exception as e:CODE
LOW…ackground/celery/tasks/doc_permission_syncing/tasks.py753 except Exception as e:CODE
LOWbackend/ee/onyx/background/celery/tasks/hooks/tasks.py34 except Exception:CODE
LOWbackend/ee/onyx/background/celery/tasks/cloud/tasks.py45 except Exception:CODE
LOWbackend/ee/onyx/background/celery/tasks/cloud/tasks.py64 except Exception:CODE
LOWbackend/ee/onyx/background/celery/tasks/cloud/tasks.py120 except Exception:CODE
LOWbackend/ee/onyx/background/celery/tasks/cloud/tasks.py137 except Exception:CODE
LOWbackend/ee/onyx/background/celery/tasks/cloud/tasks.py208 except Exception:CODE
LOW…e/onyx/background/celery/tasks/ttl_management/tasks.py118 except Exception:CODE
LOW…e/onyx/background/celery/tasks/ttl_management/tasks.py140 except Exception:CODE
LOW…e/onyx/background/celery/tasks/ttl_management/tasks.py194 except Exception:CODE
LOW…x/background/celery/tasks/tenant_provisioning/tasks.py107 except Exception:CODE
LOW…x/background/celery/tasks/tenant_provisioning/tasks.py117 except Exception:CODE
LOW…x/background/celery/tasks/tenant_provisioning/tasks.py123 except Exception:CODE
LOW…x/background/celery/tasks/tenant_provisioning/tasks.py163 except Exception:CODE
LOW…x/background/celery/tasks/tenant_provisioning/tasks.py232 except Exception:CODE
LOW…x/background/celery/tasks/tenant_provisioning/tasks.py240 except Exception:CODE
LOW…x/background/celery/tasks/tenant_provisioning/tasks.py253 except Exception:CODE
LOW…x/background/celery/tasks/tenant_provisioning/tasks.py259 except Exception:CODE
LOW…ee/onyx/background/celery/tasks/query_history/tasks.py88 except Exception:CODE
LOW…ee/onyx/background/celery/tasks/query_history/tasks.py118 except Exception:CODE
LOWbackend/ee/onyx/feature_flags/posthog_provider.py53 except Exception as e:CODE
LOW…d/ee/onyx/external_permissions/post_query_censoring.py72 except Exception as e:CODE
LOWbackend/ee/onyx/external_permissions/jira/group_sync.py120 except Exception as e:CODE
LOW…ckend/ee/onyx/external_permissions/jira/page_access.py75 except Exception:CODE
LOW…kend/ee/onyx/external_permissions/github/group_sync.py46 except Exception as e:CODE
LOWbackend/ee/onyx/external_permissions/github/doc_sync.py67 except Exception as e:CODE
LOWbackend/ee/onyx/external_permissions/github/doc_sync.py83 except Exception as e:CODE
LOWbackend/ee/onyx/external_permissions/github/doc_sync.py139 except Exception as e:CODE
LOWbackend/ee/onyx/external_permissions/github/utils.py70 except Exception as e:CODE
LOW…/ee/onyx/external_permissions/confluence/group_sync.py119 except Exception:CODE
LOW…e/onyx/external_permissions/confluence/space_access.py79 except Exception as e:CODE
LOW…yx/external_permissions/sharepoint/permission_utils.py189 except Exception as e:CODE
LOW…yx/external_permissions/sharepoint/permission_utils.py213 except Exception as e:CODE
LOW…yx/external_permissions/sharepoint/permission_utils.py172 except Exception as e:CODE
LOW…yx/external_permissions/sharepoint/permission_utils.py243 except Exception as e:CODE
LOW…yx/external_permissions/sharepoint/permission_utils.py268 except Exception as e:CODE
LOWbackend/ee/onyx/external_permissions/slack/doc_sync.py269 except Exception as e:CODE
LOWbackend/ee/onyx/external_permissions/slack/doc_sync.py276 except Exception as e:CODE
LOW…e/onyx/external_permissions/google_drive/group_sync.py118 except Exception as e:CODE
LOWbackend/ee/onyx/server/seeding.py111 except Exception as e:CODE
LOWbackend/ee/onyx/server/seeding.py191 except Exception:CODE
LOWbackend/ee/onyx/server/usage_limits.py25 except Exception as e:CODE
1469 more matches not shown…
Self-Referential Comments332 hits · 1065 pts
SeverityFileLineSnippetContext
MEDIUMbackend/ee/onyx/background/celery/tasks/vespa/tasks.py22 """This function is likely to move in the worker refactor happening next."""STRING
MEDIUM…x/background/celery/tasks/tenant_provisioning/tasks.py199 # Create the schema for the new tenantCOMMENT
MEDIUMbackend/ee/onyx/external_permissions/perm_sync_types.py49# Defining the input/output types for the sync functionsCOMMENT
MEDIUM…ernal_permissions/google_drive/permission_retrieval.py30 # Create a set for faster lookupCOMMENT
MEDIUMbackend/ee/onyx/server/tenants/provisioning.py207 # Create the schema for the tenantCOMMENT
MEDIUMbackend/ee/onyx/server/tenants/provisioning.py707 # Create a new event loop for this synchronous operationCOMMENT
MEDIUM…onnectors/google_drive/test_google_drive_group_sync.py446 # Create a large group with many usersCOMMENT
MEDIUM…rnal_dependency_unit/tools/test_oauth_token_manager.py52 # Create a non-expired tokenCOMMENT
MEDIUM…rnal_dependency_unit/tools/test_oauth_token_manager.py102 # Create an expired tokenCOMMENT
MEDIUM…rnal_dependency_unit/tools/test_oauth_token_manager.py140 # Create an expired token without refresh_tokenCOMMENT
MEDIUM…rnal_dependency_unit/tools/test_oauth_token_manager.py162 # Create an expired tokenCOMMENT
MEDIUM…sts/external_dependency_unit/tools/test_python_tool.py250# # Create a CSV fileCOMMENT
MEDIUM…sts/external_dependency_unit/tools/test_python_tool.py562# # Create a mapping of filename to generated file for easier verificationCOMMENT
MEDIUM…sts/external_dependency_unit/tools/test_python_tool.py586# # Create a client that will failCOMMENT
MEDIUM…sts/external_dependency_unit/tools/test_python_tool.py806# # Create a visualizationCOMMENT
MEDIUM…ests/external_dependency_unit/llm/test_llm_provider.py567 # Create a provider and set it as defaultCOMMENT
MEDIUM…nal_dependency_unit/llm/test_llm_provider_auto_mode.py118 # Define the expected models from the mock GitHub configCOMMENT
MEDIUM…nal_dependency_unit/llm/test_llm_provider_auto_mode.py123 # Create the mock LLMRecommendationsCOMMENT
MEDIUM…ts/external_dependency_unit/llm/test_prompt_caching.py177 # Create a long context message to ensure caching threshold is met (>1024 tokens)COMMENT
MEDIUM…ts/external_dependency_unit/llm/test_prompt_caching.py305 # Create a long context message.COMMENT
MEDIUM…ts/external_dependency_unit/llm/test_prompt_caching.py627 # Create a long system message and contextCOMMENT
MEDIUM…ts/external_dependency_unit/llm/test_prompt_caching.py742 # Create a long contextCOMMENT
MEDIUM…al_dependency_unit/craft/test_streaming_persistence.py481 # Create a user message firstCOMMENT
MEDIUM…ndency_unit/answer/test_stream_chat_message_objects.py64 # Create a test userCOMMENT
MEDIUM…ndency_unit/answer/test_stream_chat_message_objects.py67 # Create a test persona explicitly WITHOUT any tools (including web search)COMMENT
MEDIUM…ndency_unit/answer/test_stream_chat_message_objects.py85 # Create a chat session with our test personaCOMMENT
MEDIUM…ndency_unit/answer/test_stream_chat_message_objects.py92 # Create the chat message request with a query that attempts to force web searchCOMMENT
MEDIUM…l_dependency_unit/opensearch/test_opensearch_client.py1133 # Create a document to update.COMMENT
MEDIUM…l_dependency_unit/opensearch/test_opensearch_client.py1336 # Create a single document; the rest of the update targets won't exist.COMMENT
MEDIUM…on_sync/test_external_group_permission_sync_attempt.py290 # Create a cc_pair specific attemptCOMMENT
MEDIUM…on_sync/test_external_group_permission_sync_attempt.py518 # Create an attempt (simulating the start of a sync task)COMMENT
MEDIUM…pendency_unit/file_store/test_file_store_non_mocked.py515 # Create a 1MB fileCOMMENT
MEDIUM…pendency_unit/file_store/test_file_store_non_mocked.py871 # Create a new database session for each worker to avoid conflictsCOMMENT
MEDIUM…ency_unit/slack_bot/test_slack_bot_federated_search.py829 # Create a persona (using same fields as _create_test_persona_with_slack_config)COMMENT
MEDIUM…ency_unit/slack_bot/test_slack_bot_federated_search.py839 # Create a slack botCOMMENT
MEDIUM…dependency_unit/celery/test_pruning_hierarchy_nodes.py579 # Create a hierarchy node whose raw_node_id matches a document IDCOMMENT
MEDIUM…dependency_unit/celery/test_pruning_hierarchy_nodes.py603 # Create a document with the same ID as the hierarchy nodeCOMMENT
MEDIUM…dependency_unit/celery/test_pruning_hierarchy_nodes.py823 # Create a parent node and a child nodeCOMMENT
MEDIUM…_dependency_unit/celery/test_docprocessing_priority.py262 # Create a mock connector runner that yields one document batchCOMMENT
MEDIUM…ted_connector/slack/test_slack_federated_connnector.py399 # Create a connector for testingCOMMENT
MEDIUMbackend/tests/unit/ee/onyx/server/billing/test_proxy.py62 # Create a license payload without tenant_id by using a mockCOMMENT
MEDIUMbackend/tests/unit/file_store/test_file_store.py203 # Create a mock database sessionCOMMENT
MEDIUM…d/tests/unit/onyx/connectors/test_connector_factory.py143 # Create a custom mock that raises AttributeError for the specific classCOMMENT
MEDIUM…/unit/onyx/connectors/jira/test_jira_error_handling.py35 # Create a JIRAError that mimics the error from the stack traceCOMMENT
MEDIUM…/unit/onyx/connectors/jira/test_jira_error_handling.py65 # Create a JIRAError for invalid JQL syntaxCOMMENT
MEDIUM…/unit/onyx/connectors/jira/test_jira_error_handling.py94 # Create a JIRAError for expired credentialsCOMMENT
MEDIUM…/unit/onyx/connectors/jira/test_jira_error_handling.py120 # Create a JIRAError for insufficient permissionsCOMMENT
MEDIUM…/unit/onyx/connectors/jira/test_jira_error_handling.py148 # Create a cloud connectorCOMMENT
MEDIUM…/unit/onyx/connectors/jira/test_jira_error_handling.py167 # Create a proper HTTPError with the response attachedCOMMENT
MEDIUM…it/onyx/connectors/github/test_github_checkpointing.py646 # Create a new mock for successful retrieval after retryCOMMENT
MEDIUM…it/onyx/connectors/github/test_github_checkpointing.py650 # Create an iterator that will yield the remaining PRCOMMENT
MEDIUM…it/onyx/connectors/github/test_github_checkpointing.py654 # Create a mock for the _Slice object that will be returned by pag_list[prev_num_objs:]COMMENT
MEDIUM…it/onyx/connectors/github/test_github_checkpointing.py516 # Create a mock paginated list that will raise the 422 error on get_pageCOMMENT
MEDIUM…it/onyx/connectors/github/test_github_checkpointing.py528 # Create a new mock for cursor-based paginationCOMMENT
MEDIUM…it/onyx/connectors/github/test_github_checkpointing.py578 # Create a checkpoint that was using cursor-based paginationCOMMENT
MEDIUM…it/onyx/connectors/github/test_github_checkpointing.py630 # Create a checkpoint with an expired cursorCOMMENT
MEDIUM…t/onyx/connectors/salesforce/test_yield_doc_batches.py110 # Create a parent object with various data types in the fieldsCOMMENT
MEDIUM…t/onyx/connectors/salesforce/test_yield_doc_batches.py137 # Create a mock document that convert_sf_object_to_doc will returnCOMMENT
MEDIUM…nyx/document_index/opensearch/test_get_doc_chunk_id.py57 # Create a doc ID that will exceed max length after the suffix isCOMMENT
MEDIUMbackend/tests/unit/onyx/llm/test_model_map.py68 # Create a mock model_cost dict with multiple entries for "onyx-llm"COMMENT
272 more matches not shown…
Deep Nesting631 hits · 552 pts
SeverityFileLineSnippetContext
LOWtools/ods/internal/openapi/openapi_schema.py81CODE
LOW…ackground/celery/tasks/external_group_syncing/tasks.py169CODE
LOW…ackground/celery/tasks/external_group_syncing/tasks.py507CODE
LOW…ackground/celery/tasks/doc_permission_syncing/tasks.py200CODE
LOW…ackground/celery/tasks/doc_permission_syncing/tasks.py403CODE
LOW…ackground/celery/tasks/doc_permission_syncing/tasks.py685CODE
LOW…ckend/ee/onyx/background/celery/tasks/cleanup/tasks.py21CODE
LOWbackend/ee/onyx/background/celery/tasks/cloud/tasks.py77CODE
LOW…x/background/celery/tasks/tenant_provisioning/tasks.py50CODE
LOW…x/background/celery/tasks/tenant_provisioning/tasks.py129CODE
LOW…ee/onyx/background/celery/tasks/query_history/tasks.py41CODE
LOWbackend/ee/onyx/connectors/perm_sync_valid.py65CODE
LOWbackend/ee/onyx/external_permissions/utils.py29CODE
LOW…ckend/ee/onyx/external_permissions/jira/page_access.py339CODE
LOWbackend/ee/onyx/external_permissions/github/doc_sync.py35CODE
LOWbackend/ee/onyx/external_permissions/github/utils.py401CODE
LOW…ee/onyx/external_permissions/confluence/page_access.py16CODE
LOW…e/onyx/external_permissions/confluence/space_access.py99CODE
LOW…yx/external_permissions/sharepoint/permission_utils.py218CODE
LOW…yx/external_permissions/sharepoint/permission_utils.py304CODE
LOW…yx/external_permissions/sharepoint/permission_utils.py358CODE
LOW…yx/external_permissions/sharepoint/permission_utils.py452CODE
LOW…yx/external_permissions/sharepoint/permission_utils.py514CODE
LOW…yx/external_permissions/sharepoint/permission_utils.py709CODE
LOW…yx/external_permissions/sharepoint/permission_utils.py310CODE
LOW…yx/external_permissions/sharepoint/permission_utils.py369CODE
LOW…yx/external_permissions/sharepoint/permission_utils.py531CODE
LOW…yx/external_permissions/sharepoint/permission_utils.py718CODE
LOW…ckend/ee/onyx/external_permissions/slack/group_sync.py33CODE
LOWbackend/ee/onyx/external_permissions/slack/doc_sync.py89CODE
LOWbackend/ee/onyx/external_permissions/slack/doc_sync.py196CODE
LOWbackend/ee/onyx/external_permissions/slack/utils.py9CODE
LOWbackend/ee/onyx/external_permissions/gmail/doc_sync.py44CODE
LOW…e/onyx/external_permissions/google_drive/group_sync.py135CODE
LOW…e/onyx/external_permissions/google_drive/group_sync.py179CODE
LOW…e/onyx/external_permissions/google_drive/group_sync.py366CODE
LOW…/ee/onyx/external_permissions/google_drive/doc_sync.py102CODE
LOW…/ee/onyx/external_permissions/google_drive/doc_sync.py282CODE
LOW…/ee/onyx/external_permissions/google_drive/doc_sync.py375CODE
LOWbackend/ee/onyx/server/seeding.py78CODE
LOWbackend/ee/onyx/server/seeding.py205CODE
LOW…ckend/ee/onyx/server/middleware/license_enforcement.py82CODE
LOW…ckend/ee/onyx/server/middleware/license_enforcement.py88CODE
LOWbackend/ee/onyx/server/middleware/tenant_tracking.py111CODE
LOWbackend/ee/onyx/server/settings/api.py24CODE
LOWbackend/ee/onyx/server/settings/api.py68CODE
LOWbackend/ee/onyx/server/scim/patch.py186CODE
LOWbackend/ee/onyx/server/scim/patch.py257CODE
LOWbackend/ee/onyx/server/scim/patch.py297CODE
LOWbackend/ee/onyx/server/scim/patch.py340CODE
LOWbackend/ee/onyx/server/oauth/api.py24CODE
LOWbackend/ee/onyx/server/tenants/provisioning.py88CODE
LOWbackend/ee/onyx/server/tenants/provisioning.py253CODE
LOWbackend/ee/onyx/server/billing/api.py282CODE
LOWbackend/ee/onyx/search/process_search_query.py261CODE
LOWbackend/ee/onyx/db/user_tenant_mapping.py51CODE
LOWbackend/ee/onyx/db/user_tenant_mapping.py409CODE
LOWbackend/ee/onyx/db/user_tenant_mapping.py584CODE
LOWbackend/ee/onyx/db/standard_answer.py216CODE
LOWbackend/ee/onyx/db/scim.py275CODE
571 more matches not shown…
Cross-File Repetition100 hits · 500 pts
SeverityFileLineSnippetContext
HIGH…ackground/celery/tasks/external_group_syncing/tasks.py0compute the expiration time for the fence validation block signal. base expiration is 60 seconds, multiplied by the beatSTRING
HIGH…ackground/celery/tasks/doc_permission_syncing/tasks.py0compute the expiration time for the fence validation block signal. base expiration is 60 seconds, multiplied by the beatSTRING
HIGHbackend/onyx/background/celery/tasks/pruning/tasks.py0compute the expiration time for the fence validation block signal. base expiration is 60 seconds, multiplied by the beatSTRING
HIGH…nd/onyx/background/celery/tasks/docprocessing/tasks.py0compute the expiration time for the fence validation block signal. base expiration is 60 seconds, multiplied by the beatSTRING
HIGH…ackground/celery/tasks/external_group_syncing/tasks.py0checks for the error condition where an indexing fence is set but the associated celery tasks don't exist. this can happSTRING
HIGH…ackground/celery/tasks/doc_permission_syncing/tasks.py0checks for the error condition where an indexing fence is set but the associated celery tasks don't exist. this can happSTRING
HIGH…yx/background/celery/tasks/connector_deletion/tasks.py0checks for the error condition where an indexing fence is set but the associated celery tasks don't exist. this can happSTRING
HIGHbackend/ee/onyx/server/oauth/confluence_cloud.py0dev mode workaround for localhost testing - https://www.nango.dev/blog/oauth-redirects-on-localhost-with-httpsSTRING
HIGHbackend/ee/onyx/server/oauth/google_drive.py0dev mode workaround for localhost testing - https://www.nango.dev/blog/oauth-redirects-on-localhost-with-httpsSTRING
HIGHbackend/ee/onyx/server/oauth/slack.py0dev mode workaround for localhost testing - https://www.nango.dev/blog/oauth-redirects-on-localhost-with-httpsSTRING
HIGHbackend/ee/onyx/server/oauth/confluence_cloud.py0temporary state to store in redis. to be looked up on auth response. returns a json string.STRING
HIGHbackend/ee/onyx/server/oauth/google_drive.py0temporary state to store in redis. to be looked up on auth response. returns a json string.STRING
HIGHbackend/ee/onyx/server/oauth/slack.py0temporary state to store in redis. to be looked up on auth response. returns a json string.STRING
HIGHbackend/ee/onyx/db/saml.py0note: this is async, since it's used during auth (which is necessarily async due to fastapi users)STRING
HIGHbackend/onyx/db/saml.py0note: this is async, since it's used during auth (which is necessarily async due to fastapi users)STRING
HIGHbackend/onyx/db/api_key.py0note: this is async, since it's used during auth (which is necessarily async due to fastapi users)STRING
HIGH…t/onyx/connectors/salesforce/test_salesforce_sqlite.py0clears the sf db by deleting all files in the data directory.STRING
HIGH…salesforce/shelve_stuff/old_test_salesforce_shelves.py0clears the sf db by deleting all files in the data directory.STRING
HIGH…ors/salesforce/shelve_stuff/test_salesforce_shelves.py0clears the sf db by deleting all files in the data directory.STRING
HIGH…t/onyx/connectors/salesforce/test_salesforce_sqlite.py0creates a csv file for the given object type and records. args: object_type: the salesforce object type (e.g. "account",STRING
HIGH…salesforce/shelve_stuff/old_test_salesforce_shelves.py0creates a csv file for the given object type and records. args: object_type: the salesforce object type (e.g. "account",STRING
HIGH…ors/salesforce/shelve_stuff/test_salesforce_shelves.py0creates a csv file for the given object type and records. args: object_type: the salesforce object type (e.g. "account",STRING
HIGH…t/onyx/connectors/salesforce/test_salesforce_sqlite.py0creates csv files with example data, organized by object type.STRING
HIGH…salesforce/shelve_stuff/old_test_salesforce_shelves.py0creates csv files with example data, organized by object type.STRING
HIGH…ors/salesforce/shelve_stuff/test_salesforce_shelves.py0creates csv files with example data, organized by object type.STRING
HIGH…t/onyx/connectors/salesforce/test_salesforce_sqlite.py0tests querying functionality by verifying: 1. all expected account ids are found 2. each account's data matches what wasSTRING
HIGH…salesforce/shelve_stuff/old_test_salesforce_shelves.py0tests querying functionality by verifying: 1. all expected account ids are found 2. each account's data matches what wasSTRING
HIGH…ors/salesforce/shelve_stuff/test_salesforce_shelves.py0tests querying functionality by verifying: 1. all expected account ids are found 2. each account's data matches what wasSTRING
HIGH…t/onyx/connectors/salesforce/test_salesforce_sqlite.py0tests upsert functionality by: 1. updating an existing account 2. creating a new account 3. verifying both operations weSTRING
HIGH…salesforce/shelve_stuff/old_test_salesforce_shelves.py0tests upsert functionality by: 1. updating an existing account 2. creating a new account 3. verifying both operations weSTRING
HIGH…ors/salesforce/shelve_stuff/test_salesforce_shelves.py0tests upsert functionality by: 1. updating an existing account 2. creating a new account 3. verifying both operations weSTRING
HIGH…t/onyx/connectors/salesforce/test_salesforce_sqlite.py0tests relationship shelf updates and queries by: 1. creating test data with relationships 2. verifying the relationshipsSTRING
HIGH…salesforce/shelve_stuff/old_test_salesforce_shelves.py0tests relationship shelf updates and queries by: 1. creating test data with relationships 2. verifying the relationshipsSTRING
HIGH…ors/salesforce/shelve_stuff/test_salesforce_shelves.py0tests relationship shelf updates and queries by: 1. creating test data with relationships 2. verifying the relationshipsSTRING
HIGH…t/onyx/connectors/salesforce/test_salesforce_sqlite.py0tests querying all accounts and retrieving their child objects. this test verifies that: 1. all accounts can be retrieveSTRING
HIGH…salesforce/shelve_stuff/old_test_salesforce_shelves.py0tests querying all accounts and retrieving their child objects. this test verifies that: 1. all accounts can be retrieveSTRING
HIGH…ors/salesforce/shelve_stuff/test_salesforce_shelves.py0tests querying all accounts and retrieving their child objects. this test verifies that: 1. all accounts can be retrieveSTRING
HIGH…t/onyx/connectors/salesforce/test_salesforce_sqlite.py0tests that relationships are properly updated when a child object's parent reference changes. this test verifies: 1. iniSTRING
HIGH…salesforce/shelve_stuff/old_test_salesforce_shelves.py0tests that relationships are properly updated when a child object's parent reference changes. this test verifies: 1. iniSTRING
HIGH…ors/salesforce/shelve_stuff/test_salesforce_shelves.py0tests that relationships are properly updated when a child object's parent reference changes. this test verifies: 1. iniSTRING
HIGH…t/onyx/connectors/salesforce/test_salesforce_sqlite.py0tests get_affected_parent_ids functionality by verifying: 1. ids that are directly in the parent_types list are includedSTRING
HIGH…salesforce/shelve_stuff/old_test_salesforce_shelves.py0tests get_affected_parent_ids functionality by verifying: 1. ids that are directly in the parent_types list are includedSTRING
HIGH…ors/salesforce/shelve_stuff/test_salesforce_shelves.py0tests get_affected_parent_ids functionality by verifying: 1. ids that are directly in the parent_types list are includedSTRING
HIGH…sts/integration/tests/chat/test_chat_session_access.py0reset all data once before running any tests in this module.STRING
HIGH…end/tests/integration/tests/chat/test_chat_deletion.py0reset all data once before running any tests in this module.STRING
HIGH…kend/tests/integration/tests/projects/test_projects.py0reset all data once before running any tests in this module.STRING
HIGH…sts/integration/tests/permissions/test_basic_access.py0unauthenticated (anonymous) requests should be denied.STRING
HIGH…sts/integration/tests/permissions/test_admin_access.py0unauthenticated (anonymous) requests should be denied.STRING
HIGH…ration/tests/permissions/test_connector_read_access.py0unauthenticated (anonymous) requests should be denied.STRING
HIGH…ation/tests/permissions/test_credential_permissions.py0this file takes the happy path to adding a curator to a user group and then tests the permissions of the curator manipulSTRING
HIGH…egration/tests/permissions/test_cc_pair_permissions.py0this file takes the happy path to adding a curator to a user group and then tests the permissions of the curator manipulSTRING
HIGH…ration/tests/permissions/test_connector_permissions.py0this file takes the happy path to adding a curator to a user group and then tests the permissions of the curator manipulSTRING
HIGHbackend/onyx/background/celery/versioned_apps/light.py0factory stub for running celery worker / celery beat. this code is different from the primary/beat stubs because there iSTRING
HIGHbackend/onyx/background/celery/versioned_apps/heavy.py0factory stub for running celery worker / celery beat. this code is different from the primary/beat stubs because there iSTRING
HIGH…onyx/background/celery/versioned_apps/docprocessing.py0factory stub for running celery worker / celery beat. this code is different from the primary/beat stubs because there iSTRING
HIGH…d/onyx/background/celery/versioned_apps/docfetching.py0factory stub for running celery worker / celery beat. this code is different from the primary/beat stubs because there iSTRING
HIGH…nd/onyx/background/celery/versioned_apps/monitoring.py0factory stub for running celery worker / celery beat.STRING
HIGH…ckend/onyx/background/celery/versioned_apps/primary.py0factory stub for running celery worker / celery beat.STRING
HIGHbackend/onyx/background/celery/versioned_apps/beat.py0factory stub for running celery worker / celery beat.STRING
HIGHbackend/onyx/redis/redis_connector_prune.py0this sets a signal to keep the permissioning flow from getting cleaned up within the expiration time. the slack in timinSTRING
40 more matches not shown…
Unused Imports466 hits · 450 pts
SeverityFileLineSnippetContext
LOWtools/ods/hatch_build.py1CODE
LOWtools/ods/internal/_version.py1CODE
LOWtools/ods/internal/openapi/openapi_schema.py7CODE
LOWbackend/ee/onyx/external_permissions/perm_sync_types.py5CODE
LOWbackend/ee/onyx/external_permissions/perm_sync_types.py5CODE
LOWbackend/ee/onyx/external_permissions/sync_params.py54CODE
LOWbackend/ee/onyx/external_permissions/sync_params.py55CODE
LOWbackend/ee/onyx/external_permissions/sync_params.py56CODE
LOWbackend/ee/onyx/server/scim/patch.py15CODE
LOWbackend/ee/onyx/server/scim/filtering.py24CODE
LOWbackend/ee/onyx/server/scim/api.py12CODE
LOWbackend/ee/onyx/server/scim/providers/okta.py3CODE
LOWbackend/ee/onyx/server/scim/providers/entra.py3CODE
LOWbackend/ee/onyx/server/scim/providers/base.py3CODE
LOWbackend/ee/onyx/utils/tier.py16CODE
LOWbackend/ee/onyx/db/scim.py24CODE
LOWbackend/tests/external_dependency_unit/conftest.py17CODE
LOWbackend/tests/external_dependency_unit/conftest.py20CODE
LOWbackend/tests/external_dependency_unit/conftest.py21CODE
LOWbackend/tests/external_dependency_unit/full_setup.py1CODE
LOWbackend/tests/external_dependency_unit/mock_llm.py1CODE
LOW…sts/external_dependency_unit/tools/test_python_tool.py923CODE
LOW…end/tests/external_dependency_unit/craft/db_helpers.py17CODE
LOW…_dependency_unit/craft/test_scheduled_task_executor.py18CODE
LOW…ependency_unit/craft/test_external_app_admin_update.py7CODE
LOW…ckend/tests/external_dependency_unit/craft/conftest.py3CODE
LOW…al_dependency_unit/craft/test_managed_external_apps.py12CODE
LOW…ernal_dependency_unit/craft/test_skill_db_mutations.py1CODE
LOW…ternal_dependency_unit/craft/test_provisioning_lock.py11CODE
LOW…l_dependency_unit/craft/test_turn_heartbeat_refresh.py4CODE
LOW…ternal_dependency_unit/craft/test_sandbox_lifecycle.py13CODE
LOW…l_dependency_unit/craft/test_built_in_skill_seeding.py12CODE
LOW…/tests/external_dependency_unit/craft/redis_helpers.py3CODE
LOW…nal_dependency_unit/craft/test_skill_affected_users.py1CODE
LOW…ernal_dependency_unit/craft/test_craft_access_admin.py5CODE
LOW…ependency_unit/craft/test_build_llm_provider_access.py8CODE
LOW…al_dependency_unit/craft/test_credential_encryption.py10CODE
LOW…external_dependency_unit/craft/test_action_matching.py18CODE
LOW…external_dependency_unit/craft/test_action_matching.py22CODE
LOW…external_dependency_unit/craft/test_action_matching.py23CODE
LOW…ts/external_dependency_unit/craft/test_idle_cleanup.py12CODE
LOW…ependency_unit/craft/test_external_app_sandbox_push.py1CODE
LOW…sts/external_dependency_unit/craft/test_connect_app.py1CODE
LOW…rnal_dependency_unit/craft/test_skill_github_import.py1CODE
LOW…ternal_dependency_unit/craft/test_interrupt_message.py10CODE
LOW…pendency_unit/craft/test_granted_scopes_persistence.py8CODE
LOW…ndency_unit/craft/test_terminated_sandbox_fast_fail.py8CODE
LOW…ernal_dependency_unit/craft/test_action_approval_db.py7CODE
LOW…nal_dependency_unit/craft/test_external_app_fileset.py16CODE
LOW…sts/external_dependency_unit/craft/test_sandbox_pat.py3CODE
LOW…nal_dependency_unit/craft/test_background_snapshots.py15CODE
LOW…nal_dependency_unit/craft/test_durable_provisioning.py18CODE
LOW…al_dependency_unit/craft/test_streaming_persistence.py9CODE
LOW…nal_dependency_unit/craft/test_credential_injection.py1CODE
LOW…l_dependency_unit/craft/test_ensure_sandbox_running.py20CODE
LOW…/external_dependency_unit/craft/test_skills_fileset.py3CODE
LOW…xternal_dependency_unit/craft/test_connectable_apps.py1CODE
LOW…ndency_unit/craft/test_scheduled_task_pre_approvals.py9CODE
LOW…s/external_dependency_unit/craft/test_approvals_api.py4CODE
LOW…_dependency_unit/craft/test_prompt_slot_distributed.py8CODE
406 more matches not shown…
Fake / Example Data345 hits · 400 pts
SeverityFileLineSnippetContext
LOWtools/ods/internal/git/git_test.go30 r.Git("config", "user.email", "test@test.com")CODE
LOWweb/AGENTS.md66 title="John Doe"CODE
LOWweb/CLAUDE.md66 title="John Doe"CODE
LOWweb/tests/README.md225 await user.type(screen.getByLabelText(/name/i), "John Doe");CODE
LOWweb/tests/README.md540 expect(screen.getByText("John Doe")).toBeInTheDocument();CODE
LOWweb/tests/README.md546 expect(screen.queryByText("John Doe")).not.toBeInTheDocument();CODE
LOW…b/lib/opal/src/layouts/inputs/InputLayouts.stories.tsx46 <MockInput placeholder="Acme Corp" />CODE
LOW…b/lib/opal/src/layouts/inputs/InputLayouts.stories.tsx61 <MockInput placeholder="Acme Corp" />CODE
LOW…b/lib/opal/src/layouts/inputs/InputLayouts.stories.tsx173 <MockInput placeholder="Jane Doe" />CODE
LOW…pp/craft/v1/apps/admin/ConfigureProviderModal.test.tsx354 author_email: "admin@example.com",CODE
LOW…pp/craft/v1/apps/admin/ConfigureProviderModal.test.tsx355 owner: { id: "admin-id", email: "admin@example.com" },CODE
LOW…/app/craft/v1/apps/admin/CreateCustomAppModal.test.tsx208 author_email: "admin@example.com",CODE
LOW…/app/craft/v1/apps/admin/CreateCustomAppModal.test.tsx209 owner: { id: "admin-id", email: "admin@example.com" },CODE
LOW…app/craft/components/approvals/PayloadView.stories.tsx77 company: "Acme Corp",CODE
LOWweb/src/refresh-components/Chip.stories.tsx22 children: "John Doe",CODE
LOWweb/src/refresh-components/form/FormField.stories.tsx33 <InputTypeIn placeholder="Jane Doe" />CODE
LOWweb/src/refresh-components/buttons/Tag.stories.tsx85 label="John Doe"CODE
LOW…esh-components/texts/ExpandableTextDisplay.stories.tsx30 `Line ${i + 1}: Lorem ipsum dolor sit amet, consectetur adipiscing elit.`CODE
LOW…esh-components/texts/ExpandableTextDisplay.stories.tsx30 `Line ${i + 1}: Lorem ipsum dolor sit amet, consectetur adipiscing elit.`CODE
LOW…c/refresh-components/inputs/ListFieldInput.stories.tsx40 "admin@example.com",CODE
LOW…c/refresh-components/inputs/ListFieldInput.stories.tsx41 "user@example.com",CODE
LOWweb/src/lib/auth/components.test.tsx257 "user@example.com"CODE
LOWweb/src/lib/skills/__fixtures__/picker.ts90 owner: "admin@example.com",CODE
LOW…ors/google_drive/test_google_drive_hierarchy_walker.py68ADMIN_EMAIL = "admin@example.com"CODE
LOW…al_dependency_unit/craft/test_mcp_config_resolution.py49 owner_email="admin@example.com",CODE
LOW…al_dependency_unit/craft/test_mcp_config_resolution.py318 owner_email="admin@example.com",CODE
LOW…endency_unit/sandbox_proxy/test_mcp_server_resolver.py81 owner_email="admin@example.com",CODE
LOW…ency_unit/sandbox_proxy/test_mcp_approval_evaluator.py61 owner_email="admin@example.com",CODE
LOW…dency_unit/sandbox_proxy/test_mcp_approval_pipeline.py63 owner_email="admin@example.com",CODE
LOW…it/server/features/mcp/test_mcp_user_group_deletion.py19 owner="admin@example.com",CODE
LOW…er/features/mcp/test_mcp_oauth_authenticated_status.py33 owner="admin@example.com",CODE
LOW…unit/server/features/mcp/test_mcp_access_edge_cases.py25 owner="admin@example.com",CODE
LOW…cy_unit/server/features/mcp/test_mcp_access_control.py26 owner="admin@example.com",CODE
LOW…ency_unit/server/features/mcp/test_mcp_persona_gate.py28 owner="admin@example.com",CODE
LOW…s/external_dependency_unit/mcp/test_craft_admin_api.py124 owner_email="admin@example.com",CODE
LOW…external_dependency_unit/indexing/test_port_reembed.py243 {"author": "Jane Doe", "team": "finance"}CODE
LOW…external_dependency_unit/indexing/test_port_reembed.py176 {"author": "Jane Doe", "team": "finance"}CODE
LOW…external_dependency_unit/indexing/test_port_reembed.py189 {"author": "Jane Doe", "team": "finance"}CODE
LOW…external_dependency_unit/indexing/test_port_reembed.py379 {"author": "Jane Doe", "team": "finance"}CODE
LOW…external_dependency_unit/indexing/test_port_reembed.py634 {"author": "Jane Doe", "team": "finance"}CODE
LOW…/tests/unit/sandbox_proxy/test_credential_injection.py71 flow.request.headers["Authorization"] = "placeholder"CODE
LOW…ternal_permissions/sharepoint/test_permission_utils.py31 return "fake-token"CODE
LOW…sions/google_drive/test_get_drive_members_admin_403.py19 connector.primary_admin_email = "admin@example.com"CODE
LOW…t/ee/onyx/server/tenants/test_record_oauth_identity.py78 assert "'user@example.com'" in sqlCODE
LOW…t/ee/onyx/server/tenants/test_record_oauth_identity.py107 owner=("user@example.com", "tenant_abc"),CODE
LOW…t/ee/onyx/server/tenants/test_record_oauth_identity.py493 email="user@example.com", tenant_id="tenant_stranger", active=TrueCODE
LOW…t/ee/onyx/server/tenants/test_record_oauth_identity.py496 email="user@example.com", tenant_id="tenant_new", active=FalseCODE
LOW…t/ee/onyx/server/tenants/test_record_oauth_identity.py578 accept_user_invite("user@example.com", "tenant_new", [("google", "sub-123")])CODE
LOW…t/ee/onyx/server/tenants/test_record_oauth_identity.py584 ] == [("google", "sub-123", "user@example.com", "tenant_new")]CODE
LOW…t/ee/onyx/server/tenants/test_record_oauth_identity.py592 email="user@example.com", tenant_id="tenant_old", active=TrueCODE
LOW…t/ee/onyx/server/tenants/test_record_oauth_identity.py29 insert_result: tuple[str, str] | None = ("user@example.com", "tenant_abc"),CODE
LOW…t/ee/onyx/server/tenants/test_record_oauth_identity.py416 email="user@example.com", tenant_id="tenant_new", active=FalseCODE
LOW…t/ee/onyx/server/tenants/test_record_oauth_identity.py477 } == {("user@example.com", "tenant_new")}CODE
LOW…t/ee/onyx/server/tenants/test_record_oauth_identity.py515 accept_user_invite("user@example.com", "tenant_new", [("google", "sub-123")])CODE
LOW…t/ee/onyx/server/tenants/test_record_oauth_identity.py562 email="user@example.com", tenant_id="tenant_new", active=FalseCODE
LOW…t/ee/onyx/server/tenants/test_record_oauth_identity.py608 assert added_mapping.email == "user@example.com"CODE
LOW…ver/tenants/test_tenant_resolution_by_oauth_account.py56 tenant_id = resolve_tenant_id("user@example.com", "google", "sub-123")CODE
LOW…ver/tenants/test_tenant_resolution_by_oauth_account.py94 resolve_tenant_id("user@example.com", "google", "sub-123")CODE
LOW…ver/tenants/test_tenant_resolution_by_oauth_account.py110 resolve_tenant_id("user@example.com", "google", "sub-123")CODE
LOW…ver/tenants/test_tenant_resolution_by_oauth_account.py143 tenant_id = resolve_tenant_id("user@example.com")CODE
285 more matches not shown…
Over-Commented Block410 hits · 358 pts
SeverityFileLineSnippetContext
LOW.pre-commit-config.yaml101 args: ["ty", "check"]COMMENT
LOWpyproject.toml301# alembic has a folder named `alembic` in backend/ which confuses import sorters.COMMENT
LOWtools/ods/internal/composegen/composegen.go1// Package composegen renders the standalone docker compose filesCOMMENT
LOWtools/ods/internal/deployfilessync/deployfilessync.go1// Package deployfilessync mirrors the deployment files that onyx-cli embedsCOMMENT
LOWtools/ods/internal/audit/actions.go1package auditCOMMENT
LOWweb/next.config.js181// Export the module with conditional Sentry configuration.COMMENT
LOWweb/lib/opal/scripts/convert-svg.sh1#!/bin/bashCOMMENT
LOWweb/lib/opal/src/types.ts1import type { SVGProps } from "react";COMMENT
LOWweb/lib/opal/src/constants.ts1// Screen-size breakpoints — used by useScreenSize to determine the current tier.COMMENT
LOWweb/src/proxy.ts21//COMMENT
LOWweb/src/app/craft/components/ChatPanel.tsx501 toast.error("Please wait for sandbox to initialize");COMMENT
LOW…onnector/[ccPairId]/ExternalGroupSyncAttemptsTable.tsx41COMMENT
LOWweb/src/components/SSRAutoRefresh.tsx1"use client";COMMENT
LOWweb/src/layouts/chromes/AppChrome.tsx521 const customFooterContent = useCustomFooterContent();COMMENT
LOWweb/src/lib/auth/components.tsx121// automatically on the subsequent Google redirect back to our callback,COMMENT
LOWweb/src/lib/banner/hooks.ts1"use client";COMMENT
LOWdesktop/src-tauri/src/main.rs21// ============================================================================COMMENT
LOWdesktop/src-tauri/src/alt_menu.rs1// Native GTK-level Alt-alone-press menu toggle for Linux.COMMENT
LOWbackend/alembic.ini1# A generic, single database configuration.COMMENT
LOWbackend/alembic.ini21# timezone =COMMENT
LOWbackend/alembic.ini41COMMENT
LOWbackend/ee/onyx/configs/license_enforcement_config.py21COMMENT
LOW…al_dependency_unit/tools/test_image_generation_tool.py1# TODO re-enable this testCOMMENT
LOW…al_dependency_unit/tools/test_image_generation_tool.py21# )COMMENT
LOW…al_dependency_unit/tools/test_image_generation_tool.py41# responses = []COMMENT
LOW…al_dependency_unit/tools/test_image_generation_tool.py61# assert final_response.id == IMAGE_GENERATION_RESPONSE_IDCOMMENT
LOW…al_dependency_unit/tools/test_image_generation_tool.py81# model="dall-e-3",COMMENT
LOW…al_dependency_unit/tools/test_image_generation_tool.py101# )COMMENT
LOW…al_dependency_unit/tools/test_image_generation_tool.py121# api_base=None,COMMENT
LOW…al_dependency_unit/tools/test_image_generation_tool.py141COMMENT
LOW…al_dependency_unit/tools/test_image_generation_tool.py161# id=IMAGE_GENERATION_RESPONSE_ID,COMMENT
LOW…al_dependency_unit/tools/test_image_generation_tool.py181# api_key = os.getenv("OPENAI_API_KEY", "mock-key-for-testing")COMMENT
LOW…al_dependency_unit/tools/test_image_generation_tool.py201# revised_prompt="Test prompt",COMMENT
LOW…al_dependency_unit/tools/test_image_generation_tool.py221# (ImageShape.LANDSCAPE, "A wide landscape"),COMMENT
LOW…al_dependency_unit/tools/test_image_generation_tool.py241COMMENT
LOW…al_dependency_unit/tools/test_image_generation_tool.py261# for response in responses:COMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py1# """COMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py21# from openpyxl import load_workbookCOMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py41# )COMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py61# mock_context = Mock(spec=ChatTurnContext)COMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py81COMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py101# # Verify resultCOMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py121# # Verify streaming packets were emittedCOMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py141# assert "Hello, World!" in delta_packets[0].obj.stdoutCOMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py161COMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py181# result = x / y # Division by zeroCOMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py201COMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py221# with patch(COMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py241# def test_python_execution_file_generation(COMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py261# with patch(COMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py281# assert generated_file.file_link.startswith("http://localhost:3000/api/chat/file/")COMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py301COMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py321# plt.title('Sine Wave')COMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py341COMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py361# # Verify the file is a valid PNG (check PNG magic bytes)COMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py381COMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py401# assert answer.tool_id == 42COMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py421# "onyx.tools.tool_implementations.python.python_tool.CODE_INTERPRETER_BASE_URL",COMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py441COMMENT
LOW…sts/external_dependency_unit/tools/test_python_tool.py461# # Call the function tool wrapperCOMMENT
350 more matches not shown…
Docstring Block Structure66 hits · 330 pts
SeverityFileLineSnippetContext
HIGHbackend/ee/onyx/server/scim/patch.py111Apply SCIM PATCH operations to a user resource. Args: operations: The PATCH operations to apply. cuSTRING
HIGHbackend/ee/onyx/server/scim/patch.py302Apply SCIM PATCH operations to a group resource. Args: operations: The PATCH operations to apply. cSTRING
HIGHbackend/ee/onyx/server/scim/filtering.py60Parse a simple SCIM filter expression. Args: filter_string: Raw filter query parameter value, e.g. STRING
HIGHbackend/ee/onyx/server/tenants/proxy.py60Extract license data from Authorization header. Self-hosted instances authenticate to these proxy endpoints by sendSTRING
HIGHbackend/ee/onyx/server/tenants/proxy.py97Verify license signature and optionally check expiry. Args: license_data: Base64-encoded signed license bloSTRING
HIGHbackend/ee/onyx/server/billing/service.py85Make an HTTP request to the billing service. Consolidates the common HTTP request pattern used by all billing operaSTRING
HIGHbackend/ee/onyx/utils/license.py47 Verify RSA-4096 signature and return payload if valid. Args: license_data: Base64-encoded JSON containSTRING
HIGH…/tests/integration/connector_job_tests/github/utils.py29 Change the visibility of a repository. Args: repo_owner: Repository owner (organization orSTRING
HIGH…/tests/integration/connector_job_tests/github/utils.py81 Add a team to a repository with specified permissions. Args: repo_owner: Repository owner STRING
HIGH…/tests/integration/connector_job_tests/github/utils.py129 Remove a team from a repository. Args: repo_owner: Repository owner (organization) STRING
HIGHbackend/onyx/connectors/highspot/client.py113 Make a request to the Highspot API. Args: method: HTTP method (GET, POST, etc.) STRING
HIGHbackend/onyx/connectors/slack/connector.py508Get a channel by its ID. Args: client: The Slack WebClient instance channel_id: The ID of the channSTRING
HIGHbackend/onyx/connectors/mediawiki/family.py105Generate a family file for a given URL and name. Args: url: The URL of the wiki. name: The short naSTRING
HIGHbackend/onyx/evals/eval_cli.py139 Trigger an eval pipeline execution on a remote server. Tool forcing and assertions are configured per-test in STRING
HIGHbackend/onyx/document_index/opensearch/client.py356Puts cluster settings. Args: settings: The settings to put. Raises: Exception:STRING
HIGHbackend/onyx/document_index/opensearch/client.py695Validates the index. Short-circuit returns False on the first mismatch. Logs the mismatch. See the OpeSTRING
HIGHbackend/onyx/document_index/opensearch/client.py813Gets the settings of the index. Args: include_defaults: Whether to include default settings which hSTRING
HIGHbackend/onyx/document_index/opensearch/client.py1106Deletes a document. Args: document_chunk_id: The OpenSearch ID of the document chunk to STRING
HIGHbackend/onyx/document_index/opensearch/client.py1164Deletes documents by a query. Args: query_body: The body of the query to delete documents by. STRING
HIGHbackend/onyx/document_index/opensearch/client.py1508Gets an OpenSearch document chunk. Will raise an exception if the document chunk is not found. Args: STRING
HIGHbackend/onyx/document_index/opensearch/client.py1554Searches the index. NOTE: Does not return vector fields. In order to take advantage of performance beneSTRING
HIGHbackend/onyx/document_index/opensearch/client.py1653Searches the index and returns only document chunk IDs. In order to take advantage of the performance benefits STRING
HIGHbackend/onyx/document_index/opensearch/client.py1746Opens a point-in-time (PIT) over this index for a consistent scan. The PIT pins the index across searches so coSTRING
HIGHbackend/onyx/document_index/opensearch/client.py1791Fetches one page of regular chunks for a batch of documents from a PIT. Filters to regular chunks (max_chunk_siSTRING
HIGHbackend/onyx/document_index/opensearch/client.py1970Extracts the hits and profiling information from a search result. Args: result: The search result tSTRING
HIGH…document_index/opensearch/opensearch_document_index.py387Indexes an iterable of document chunks into the document index. Groups chunks by document ID and for each documSTRING
HIGH…document_index/opensearch/opensearch_document_index.py514Deletes all chunks for a given document. Does nothing if the specified document ID does not exist. TODSTRING
HIGHbackend/onyx/document_index/opensearch/search.py892Returns filters to be passed into the "filter" key of a search query. The "filter" key applies a logical AND opSTRING
HIGHbackend/onyx/document_index/opensearch/search.py962Returns a filter for the access control list. Since this returns an isolated bool should clause, it can be STRING
HIGHbackend/onyx/document_index/opensearch/search.py1005Returns a filter for the source types. Since this returns an isolated terms clause, it can be cached in STRING
HIGHbackend/onyx/document_index/opensearch/search.py1042Returns a filter for the tags. Since this returns an isolated terms clause, it can be cached in STRING
HIGHbackend/onyx/document_index/opensearch/search.py1079Returns a filter for the document sets. Since this returns an isolated terms clause, it can be cached in STRING
HIGHbackend/onyx/document_index/opensearch/search.py1194 Returns a filter for documents explicitly attached to an assistant. Since this returns an isolSTRING
HIGHbackend/onyx/document_index/opensearch/search.py1228 Returns a filter for chunks whose ancestors include any of the given hierarchy nodes. STRING
HIGH…end/onyx/document_index/opensearch/string_filtering.py13 Filters and validates a document ID such that it can be used as an ID in OpenSearch. OpenSearch imposes thSTRING
HIGHbackend/onyx/document_index/opensearch/schema.py376Returns the document schema for the OpenSearch index. WARNING: Changes / additions to field names here require STRING
HIGH…nd/onyx/context/search/federated/slack_search_utils.py63Get the channel type that requires a specific Slack scope. Args: scope: The Slack API scope (e.g., 'mpim:reSTRING
HIGHbackend/onyx/chat/llm_step.py1060Run an LLM step and stream the response as packets. NOTE: DO NOT TOUCH THIS FUNCTION BEFORE ASKING YUHONG, this is vSTRING
HIGHbackend/onyx/chat/chat_utils.py154Create a chat session from a ChatSessionCreationRequest. Includes project ownership and persona access validation. STRING
HIGHbackend/onyx/redis/tenant_redis_client.py32Idempotently prepends the tenant prefix to a key. Module-level (not a method) so ``TenantRedisClient`` and ``TeSTRING
HIGHbackend/onyx/redis/lock_context.py22Context manager to acquire a system-wide shared Redis lock. Args: lock_name: Name of the lock to acquire. STRING
HIGHbackend/onyx/file_store/utils.py272Save a file from either a URL or base64 encoded string. Args: url: URL to download file from base64STRING
HIGHbackend/onyx/server/features/default_assistant/api.py56Update the default assistant configuration. Args: update_request: Request with optional tool_ids and systemSTRING
HIGHbackend/onyx/server/manage/validate_tokens.py49 Validate that the user_token is a valid user OAuth token (xoxp-...) and not a bot token (xoxb-...) Args: STRING
HIGHbackend/onyx/utils/variable_functionality.py77 Fetches a versioned implementation of a specified attribute from a given module. This function first checks if STRING
HIGHbackend/onyx/utils/variable_functionality.py170 Fetches an EE implementation if EE is enabled, otherwise returns a no-op function. Raises an exception if EE isSTRING
HIGHbackend/onyx/utils/url.py401 Make a GET request with SSRF protection. This function resolves the hostname, validates the IP is not private/STRING
HIGHbackend/onyx/utils/search_nlp_models_utils.py2Parse AWS API key string into components. Args: api_key: String in format 'aws_ACCESSKEY_SECRETKEY_REGION' STRING
HIGHbackend/onyx/secondary_llm_flows/query_expansion.py77Rephrase a query into a standalone query using chat history context. Converts the user's query into a self-containeSTRING
HIGHbackend/onyx/secondary_llm_flows/query_expansion.py159Expand a query into multiple keyword-only queries using chat history context. Converts the user's query into a set STRING
HIGHbackend/onyx/onyxbot/discord/handle_commands.py373Sync channel configs with current Discord channels for a guild. Fetches current channels from Discord and syncs witSTRING
HIGHbackend/onyx/onyxbot/discord/api_client.py101Send a chat message to the Onyx API server and get a response. This method sends a non-streaming chat request tSTRING
HIGHbackend/onyx/voice/interface.py151 Create a streaming transcription session. Args: audio_format: Audio format being sent (e.gSTRING
HIGHbackend/onyx/voice/interface.py168 Create a streaming TTS session for real-time audio synthesis. Args: voice: Voice identifieSTRING
HIGHbackend/onyx/voice/factory.py6 Factory function to get the appropriate voice provider implementation. Args: provider: VoiceProvider mSTRING
HIGHbackend/onyx/kg/clustering/normalizations.py232 Match each entity against a list of normalized entities using fuzzy matching. Returns the best matching normaliSTRING
HIGHbackend/onyx/db/discord_bot.py79Get existing Discord service API key or create one. The API key is used by the Discord bot to authenticate with theSTRING
HIGHbackend/onyx/db/persona.py1812Update only tools and system_prompt for the default assistant. Args: db_session: Database session tSTRING
HIGHbackend/onyx/db/entities.py26Add or update a new staging entity to the database. Args: db_session: SQLAlchemy session name: NameSTRING
HIGHbackend/onyx/db/relationships.py37 Add or update a new staging relationship to the database. Args: db_session: SQLAlchemy database sessioSTRING
6 more matches not shown…
Cross-Language Confusion57 hits · 316 pts
SeverityFileLineSnippetContext
HIGHbackend/ee/onyx/server/tenants/tier_management.py4 {"customer_tier": "BUSINESS", "trial_end": "2026-06-01T12:00:00+00:00" | null}STRING
HIGHbackend/ee/onyx/server/query_history/models.py256 "The file metadata must be non-null, and must be of type `dict[str, str]`"CODE
HIGH…rnal_dependency_unit/tracing/test_tracing_admin_api.py30# Handlers tolerate a None user (updated_by becomes null); cast to satisfy typing.COMMENT
HIGH…/tests/unit/onyx/tools/test_coding_agent_repo_setup.py46 cmd="tar -xzf repo.tar.gz --strip-components=1 && rm repo.tar.gz && ls",CODE
HIGH…_implementations/websearch/test_web_search_tool_run.py68 # Control chars (e.g. null) removed; no space insertedCOMMENT
HIGH…text/search/federated/test_slack_query_construction.py234 mock_llm.invoke.return_value.content = '{"days_back": null}'CODE
HIGH…/tests/unit/onyx/chat/test_argument_delta_streaming.py617 """Non-string values (numbers, booleans, null) are skipped — they areSTRING
HIGH…eatures/craft/sandbox/test_session_workspace_script.py88 f'"$(readlink /proc/$NEXTJS_PID/cwd 2>/dev/null)"'CODE
HIGHbackend/tests/unit/onyx/utils/test_json_river.py222 deltas = _all_deltas(['{"key": null}'])CODE
HIGH…kend/tests/integration/tests/craft/k8s/k8s_fixtures.py215 f"base64 {shlex.quote(self._abs_posix)} 2>/dev/null || echo __MISSING__"CODE
HIGH…kend/tests/integration/tests/craft/k8s/k8s_fixtures.py230 f"find {shlex.quote(self._abs_posix)} -mindepth 1 2>/dev/null || true"CODE
HIGH…kend/tests/integration/tests/craft/k8s/k8s_fixtures.py468 "-mindepth 1 -delete 2>/dev/null; true",CODE
HIGH…kend/tests/integration/tests/craft/k8s/k8s_fixtures.py475 "find /workspace/sessions -mindepth 1 -delete 2>/dev/null; true",CODE
HIGH…kend/tests/integration/tests/craft/k8s/k8s_fixtures.py758 f"cat {output_path} 2>/dev/null || true",CODE
HIGH…s/integration/tests/craft/k8s/test_snapshot_restore.py203 f"[ -d /workspace/sessions/{session_id} ] && echo PRESENT || echo MISSING",CODE
HIGH…s/integration/tests/craft/k8s/test_snapshot_restore.py259 "rm -rf /workspace/managed/skills && mkdir -p /workspace/managed",CODE
HIGH…s/integration/tests/craft/k8s/test_snapshot_restore.py411 "ls -1 /workspace/sessions/ /workspace/ 2>&1 || true",CODE
HIGH…s/integration/tests/craft/k8s/test_snapshot_restore.py422 "[ -e /workspace/escape.txt ] && echo PRESENT || echo MISSING",CODE
HIGH…s/integration/tests/craft/k8s/test_snapshot_restore.py434 "&& echo PRESENT || echo MISSING",CODE
HIGH…on/tests/craft/k8s/test_kubernetes_sandbox_file_ops.py89 f"mkdir -p {outputs_dir}/subdir && echo content > {outputs_dir}/file.txt",CODE
HIGH…on/tests/craft/k8s/test_kubernetes_sandbox_file_ops.py165 "2>/dev/null; true",CODE
HIGH…integration/tests/craft/k8s/test_kubernetes_sandbox.py59 f"test -d {required} && echo OK || echo MISSING",CODE
HIGH…integration/tests/craft/k8s/test_kubernetes_sandbox.py81 f"test -d {session_path}/{sub} && echo OK || echo MISSING",CODE
HIGH…integration/tests/craft/k8s/test_kubernetes_sandbox.py90 f"test -f {session_path}/{fname} && echo OK || echo MISSING",CODE
HIGH…integration/tests/craft/k8s/test_kubernetes_sandbox.py101 f"readlink {session_path}/.opencode/skills || echo MISSING",CODE
HIGH…integration/tests/craft/k8s/test_kubernetes_sandbox.py111 f"readlink {session_path}/user_library || echo MISSING",CODE
HIGH…integration/tests/craft/k8s/test_kubernetes_sandbox.py179 "[ -d /var/run/secrets/eks.amazonaws.com ] && echo PRESENT || echo MISSING",CODE
HIGH…integration/tests/craft/k8s/test_kubernetes_sandbox.py202 "echo agent-write > /workspace/managed/probe.txt 2>&1 || echo BLOCKED",CODE
HIGH…integration/tests/craft/k8s/test_kubernetes_sandbox.py280 "-w '%{http_code}' https://1.1.1.1 || echo BLOCKED:$?"CODE
HIGH…kend/tests/integration/tests/craft/k8s/test_browser.py44 "&& browser open https://example.com && browser snapshot -i",CODE
HIGH…gration/tests/craft/k8s/test_bun_node_modules_dedup.py209 f"[ -d /workspace/sessions/{session_id} ] && echo PRESENT || echo MISSING",CODE
HIGH…gration/tests/craft/k8s/test_bun_node_modules_dedup.py220 f"&& echo YES || echo NO",CODE
HIGH…gration/tests/craft/k8s/test_bun_node_modules_dedup.py270 f"&& echo YES || echo NO",CODE
HIGH…gration/tests/craft/k8s/test_bun_node_modules_dedup.py297 f"test -d {session_a_web}/node_modules/lodash && echo YES || echo NO",CODE
HIGH…gration/tests/craft/k8s/test_bun_node_modules_dedup.py297 f"test -d {session_a_web}/node_modules/lodash && echo YES || echo NO",CODE
HIGH…gration/tests/craft/k8s/test_bun_node_modules_dedup.py305 f"test -f {session_b_web}/node_modules/next/package.json && echo OK || echo BROKEN",CODE
HIGH…gration/tests/craft/k8s/test_bun_node_modules_dedup.py305 f"test -f {session_b_web}/node_modules/next/package.json && echo OK || echo BROKEN",CODE
HIGH…ckend/tests/integration/tests/cli/test_cli_commands.py13 cd cli && go build -o /tmp/onyx-cli-test .STRING
HIGH…sts/daily/connectors/gitbook/test_gitbook_connector.py86 assert 'res.push("FizzBuzz")' in contentCODE
HIGHbackend/onyx/llm/litellm_singleton/monkey_patches.py324 # Terminal events may carry "output": null, which upstream iterates.COMMENT
HIGHbackend/onyx/chat/tool_call_args_streaming.py35 NOTE: Non-string arguments (numbers, booleans, null, arrays, objects)STRING
HIGHbackend/onyx/server/query_and_chat/token_limit.py142 # the token check. Guarding <= 0 means a 0 (new cost-only rows store null,COMMENT
HIGHbackend/onyx/server/gateway/models.py66 semantics (some keys must be present even when null, others absent — notSTRING
HIGHbackend/onyx/hooks/models.py55 "fail_strategy cannot be null; omit the field to leave it unchanged."CODE
HIGHbackend/onyx/hooks/models.py59 "timeout_seconds cannot be null; omit the field to leave it unchanged."CODE
HIGHbackend/onyx/hooks/points/document_ingestion.py59 description="Sections of the document. Includes both text sections (text set, image_file_id null) and image sectCODE
HIGHbackend/onyx/prompts/federated_search.py652. If no date/time is mentioned, return {{"days_back": null}}CODE
HIGH…end/onyx/skills/builtin/pptx/scripts/office/soffice.py114 if (sv[0] >= 0 && sv[0] < 1024) {CODE
HIGH…end/onyx/skills/builtin/pptx/scripts/office/soffice.py133 if (sockfd >= 0 && sockfd < 1024 && is_shimmed[sockfd]) {CODE
HIGH…end/onyx/skills/builtin/pptx/scripts/office/soffice.py142 if (sockfd >= 0 && sockfd < 1024 && is_shimmed[sockfd]) {CODE
HIGH…end/onyx/skills/builtin/pptx/scripts/office/soffice.py156 if (fd >= 0 && fd < 1024 && is_shimmed[fd]) {CODE
HIGH…sions/eaa3b5593925_add_default_slack_channel_config.py54 '{"channel_name": null, 'CODE
HIGH…cd424f32b1d_user_file_data_preparation_and_backfill.py270 # Backfill existing records: if document_id is not null, set to FALSESTRING
HIGH…mbic/versions/a5370af8f8a0_persona_default_model_fk.py67 # (both string columns non-null). Rows whose default_model_configuration_idCOMMENT
HIGH…/505c488f6662_merge_default_assistants_into_unified.py130 :datetime_aware, null, trueCODE
HIGH…embic/versions/c9e2cd766c29_add_s3_file_store_table.py222 # Find all files currently stored in PostgreSQL (lobj_oid is not null)COMMENT
HIGHloadtest/mock_llm/app.py296 # its tool_calls entries), but finish_reason is always present (null).COMMENT
Redundant / Tautological Comments205 hits · 312 pts
SeverityFileLineSnippetContext
LOWweb/lib/opal/scripts/convert-svg.sh42# Check if file existsCOMMENT
LOWweb/lib/opal/scripts/convert-svg.sh48# Check if it's an SVG fileCOMMENT
LOWdesktop/scripts/generate-icons.sh10# Check if ImageMagick is installedCOMMENT
LOW…ackground/celery/tasks/external_group_syncing/tasks.py575 # Check if the task has exceeded its timeoutCOMMENT
LOW…ackground/celery/tasks/doc_permission_syncing/tasks.py992 # Check if the task has exceeded its timeoutCOMMENT
LOWbackend/ee/onyx/external_permissions/github/doc_sync.py101 # Check if repository has any permission changesCOMMENT
LOWbackend/ee/onyx/external_permissions/github/utils.py222 # Check if collaborator is outside the organizationCOMMENT
LOW…yx/external_permissions/sharepoint/permission_utils.py198 # Check if it's already a GUIDCOMMENT
LOW…yx/external_permissions/sharepoint/permission_utils.py203 # Check if it's a SharePoint claims tokenCOMMENT
LOW…e/onyx/external_permissions/google_drive/group_sync.py79 # Check if the folder has permission IDs but no permissionsCOMMENT
LOWbackend/ee/onyx/server/scim/api.py593 # Assign user to default group BEFORE commit so everything is atomic.COMMENT
LOWbackend/ee/onyx/server/tenants/billing.py116 # Check if the response indicates no subscriptionCOMMENT
LOWbackend/ee/onyx/server/billing/service.py252 # Check if no subscriptionCOMMENT
LOWbackend/ee/onyx/utils/license.py119 # Check if grace period has expiredCOMMENT
LOWbackend/ee/onyx/utils/license.py123 # Check if license has expiredCOMMENT
LOWbackend/ee/onyx/db/user_group.py594 # Check if the user is a curator in any of their groupsCOMMENT
LOWbackend/ee/onyx/db/standard_answer.py262 # Check if all of the keyword words are in the query wordsCOMMENT
LOWbackend/ee/onyx/db/analytics.py340 # Check if the user created the personaCOMMENT
LOW…ndency_unit/answer/test_stream_chat_message_objects.py41 # Check if this is a call to the embedding endpointCOMMENT
LOW…ndency_unit/answer/test_stream_chat_message_objects.py123 # Check if we got MessageResponseIDInfo packet (indicating message was created)COMMENT
LOW…pendency_unit/file_store/test_file_store_non_mocked.py197 # Read the file backCOMMENT
LOW…pendency_unit/file_store/test_file_store_non_mocked.py276 # Read the file backCOMMENT
LOW…pendency_unit/file_store/test_file_store_non_mocked.py533 # Read the file backCOMMENT
LOWbackend/tests/unit/onyx/llm/test_true_openai_model.py34 # Check if this specific dated version exists in the registryCOMMENT
LOWbackend/tests/unit/onyx/llm/test_true_openai_model.py128 # Check if embedding models are in the registryCOMMENT
LOWbackend/tests/integration/common_utils/document_acl.py82 # Check if user has any matching ACL entryCOMMENT
LOWbackend/tests/integration/common_utils/managers/file.py77 # Read the file contentCOMMENT
LOW…tion/multitenant_tests/tenants/test_tenant_creation.py129 # Check if image gen config was created during tenant provisioningCOMMENT
LOW…nant_tests/discord_bot/test_discord_bot_multitenant.py66 # Check if guild is already registeredCOMMENT
LOW…n/multitenant_tests/invitation/test_user_invitation.py105 # Check if the invited user is in the list of users with BASIC roleCOMMENT
LOW…/tests/integration/connector_job_tests/github/utils.py52 # Check if we have admin permissionsCOMMENT
LOW…or_job_tests/sharepoint/test_sharepoint_permissions.py116 # Check if user 2 has access to any non-public documentsCOMMENT
LOW…egration/tests/llm_auto_update/test_auto_llm_update.py109 # Check if we have all expected modelsCOMMENT
LOW…/tests/integration/tests/users/test_user_pagination.py60 # Add the user_performing_action to the list of adminsCOMMENT
LOW…ckend/tests/integration/tests/users/test_seat_limit.py123 # Set license to 1 seat — only admin counts nowCOMMENT
LOW…ntegration/tests/indexing/test_repeated_error_state.py116 # Check if the connector is in a repeated error stateCOMMENT
LOW…ervices/mcp_test_server/run_mcp_server_google_oauth.py97 # Check if token has an error (Google returns 200 with error field sometimes)COMMENT
LOW…sts/daily/connectors/google_drive/test_map_test_ids.py63 # Check if this document's name matches our test file naming pattern (file_X.txt)COMMENT
LOWbackend/shared_configs/configs.py12# Check if model server is disabledCOMMENT
LOW…nyx/background/celery/tasks/hierarchyfetching/tasks.py97 # Check if we've fetched hierarchy recentlyCOMMENT
LOW…nyx/background/celery/tasks/hierarchyfetching/tasks.py103 # Check if enough time has passed since last fetchCOMMENT
LOW…nyx/background/celery/tasks/hierarchyfetching/tasks.py284 # Check if the connector supports hierarchy fetchingCOMMENT
LOW…nyx/background/celery/tasks/hierarchyfetching/tasks.py303 # Check if connector is public - all hierarchy nodes from public connectorsCOMMENT
LOW…yx/background/celery/tasks/connector_deletion/tasks.py435 # Check if the taskset still exists in Redis without reading its size.COMMENT
LOWbackend/onyx/background/celery/tasks/pruning/tasks.py823 # Check if the taskset still exists in Redis without reading its size.COMMENT
LOW…nd/onyx/background/celery/tasks/docprocessing/tasks.py240 # Check if this attempt has been updated with heartbeat trackingCOMMENT
LOW…nd/onyx/background/celery/tasks/docprocessing/tasks.py252 # Check if the heartbeat counter has advanced since last checkCOMMENT
LOW…nd/onyx/background/celery/tasks/docprocessing/tasks.py458 # Check if the CC Pair should be moved to INITIAL_INDEXINGCOMMENT
LOW…nd/onyx/background/celery/tasks/docprocessing/tasks.py556 # Check if indexing is complete and all batches are processedCOMMENT
LOW…nd/onyx/background/celery/tasks/docprocessing/tasks.py1669 # Check if chunk indexing usage limit has been exceeded before processing.COMMENT
LOW…nd/onyx/background/celery/tasks/docprocessing/utils.py60 # Check if the associated indexing attempt has been cancelledCOMMENT
LOW…nd/onyx/background/celery/tasks/docprocessing/utils.py65 # Check if the task has exceeded its timeoutCOMMENT
LOW…nd/onyx/background/celery/tasks/docprocessing/utils.py135 # Check if the associated indexing attempt has been cancelledCOMMENT
LOWbackend/onyx/background/celery/apps/primary.py218 # Check if the Celery task actually existsCOMMENT
LOWbackend/onyx/background/indexing/run_docfetching.py654 # Check if connector is disabled mid run and stop if so unless it's the secondaryCOMMENT
LOWbackend/onyx/connectors/models.py179 # Check if all fields are NoneCOMMENT
LOWbackend/onyx/connectors/discord/connector.py206 # Set start_time to the later of start and pull_date, or whichever is providedCOMMENT
LOWbackend/onyx/connectors/jira/access.py37 # Check if EE is enabledCOMMENT
LOWbackend/onyx/connectors/github/utils.py25 # Check if EE is enabledCOMMENT
LOWbackend/onyx/connectors/github/connector.py1398 # Check if we can access any reposCOMMENT
145 more matches not shown…
Structural Annotation Overuse188 hits · 284 pts
SeverityFileLineSnippetContext
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts43 // Step 1: Login as admin to create test fixturesCOMMENT
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts47 // Step 2: Create a user group that will have access to the restricted providerCOMMENT
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts58 // Step 3: Create a restricted LLM provider assigned to that groupCOMMENT
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts68 // Step 4: Logout and login as a random user (who won't be in the restricted group)COMMENT
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts72 // Step 5: Navigate to the assistant creation pageCOMMENT
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts76 // Step 6: Scroll to the Default Model sectionCOMMENT
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts80 // Step 7: Get all available LLM provider optionsCOMMENT
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts83 // Step 8: Verify that we have some options (at least the default provider)COMMENT
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts86 // Step 9: Verify the restricted provider does NOT appearCOMMENT
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts92 // Step 10: Verify that default/public providers DO appearCOMMENT
LOW…src/sections/actions/modals/MCPAuthenticationModal.tsx401 // Step 1: Save the authentication configuration to the MCP serverCOMMENT
LOW…src/sections/actions/modals/MCPAuthenticationModal.tsx409 // Step 2: Update status to AWAITING_AUTH after successful config saveCOMMENT
LOW…src/sections/actions/modals/MCPAuthenticationModal.tsx417 // Step 3: For OAuth, initiate the OAuth flowCOMMENT
LOW…app/message/messageComponents/timeline/transformers.ts59 * // Step 1: Build Map<turnIndex, TransformedStep[]>COMMENT
LOW…app/message/messageComponents/timeline/transformers.ts67 * // Step 2: Sort turn indices & steps by tabIndexCOMMENT
LOW…app/message/messageComponents/timeline/transformers.ts69 * // Step 3: Build TurnGroup[] with isParallel flagCOMMENT
LOW…ge/messageComponents/timeline/hooks/packetProcessor.ts435 * // Step 1: Map keys → GroupedPacket (parse key, lookup packets)COMMENT
LOW…ge/messageComponents/timeline/hooks/packetProcessor.ts443 * // Step 2: Filter (hasContentPackets check)COMMENT
LOW…ge/messageComponents/timeline/hooks/packetProcessor.ts451 * // Step 3: Sort by turn_index, then tab_indexCOMMENT
LOW…eComponents/timeline/hooks/usePacedTurnGroups.test.tsx421 // Step 1: Render with finalAnswerComing=true, no tool stepsCOMMENT
LOW…eComponents/timeline/hooks/usePacedTurnGroups.test.tsx443 // Step 2: finalAnswerComing goes false + new tool step arrivesCOMMENT
LOW…eComponents/timeline/hooks/usePacedTurnGroups.test.tsx456 // Step 3: Add a second tool step so pacing is not yet completeCOMMENT
LOW…eComponents/timeline/hooks/usePacedTurnGroups.test.tsx466 // Step 4: Advance timer to complete pacingCOMMENT
LOW…ests/external_dependency_unit/llm/test_llm_provider.py500 # Step 7: Change the default provider to provider 2COMMENT
LOW…ests/external_dependency_unit/llm/test_llm_provider.py503 # Step 8: Call run_test_default_provider - should use provider 2COMMENT
LOW…ests/external_dependency_unit/llm/test_llm_provider.py411 # Step 1: Create provider 1 with models, it becomes default (first provider)COMMENT
LOW…ests/external_dependency_unit/llm/test_llm_provider.py429 # Step 2: Call run_test_default_provider - should use provider 1's default modelCOMMENT
LOW…ests/external_dependency_unit/llm/test_llm_provider.py440 # Step 3: Create provider 2 (not default)COMMENT
LOW…ests/external_dependency_unit/llm/test_llm_provider.py459 # Step 4: Call run_test_default_provider - should still use provider 1COMMENT
LOW…ests/external_dependency_unit/llm/test_llm_provider.py470 # Step 5: Update provider 1's default modelCOMMENT
LOW…ests/external_dependency_unit/llm/test_llm_provider.py489 # Step 6: Call run_test_default_provider - should use new model on provider 1COMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py172 # Step 4: Set the provider as defaultCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py175 # Step 5: Fetch the default provider and verifyCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py572 # Step 3: Verify provider 1 is still the defaultCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py580 # Step 4: Change the default to provider 2COMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py587 # Step 5: Verify provider 2 is now the defaultCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py595 # Step 6: Run test_default_provider and verify it uses provider 2's modelCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py152 # Step 3: Verify all models from the GitHub config are presentCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py312 # Step 1: Upload provider WITHOUT auto mode, with initial modelsCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py339 # Step 2: Update provider to enable auto modeCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py359 # Step 3: Verify model visibility after auto mode transitionCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py530 # Step 1: Create provider 1 (OpenAI) with auto modeCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py557 # Step 2: Create provider 2 (Anthropic) with auto modeCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py637 # Step 1: Create provider with no model configsCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py652 # Step 2: Run sync_auto_mode_models (simulating the periodic sync)COMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py665 # Step 3: Every ModelConfiguration must have at least one LLMModelFlowCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py687 # Step 4: The provider must appear in fetch_existing_llm_providersCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py732 # Step 1: Create manual-mode provider and set as defaultCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py759 # Step 2: Transition to auto modeCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py779 # Step 3: Default should be preserved on this providerCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py820 # Step 1: Create in auto modeCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py849 # Step 2: Switch to manual modeCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py870 # Step 3: Models unchangedCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py918 # Step 1: Create with config v1COMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py937 # Step 2: Re-sync with config v2COMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py951 # Step 3: VerifyCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py1102 # Step 2: Set gpt-4o as global defaultCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py1114 # Step 3: Re-sync with config v2 (gpt-4o removed)COMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py1128 # Step 4: Verify visibilityCOMMENT
LOW…dependency_unit/celery/test_pruning_hierarchy_nodes.py282 # Step 1: ensure the SOURCE node exists (mirrors what the pruning task does)COMMENT
128 more matches not shown…
Modern AI Meta-Vocabulary79 hits · 258 pts
SeverityFileLineSnippetContext
MEDIUM…ependency_unit/search_settings/test_search_settings.py253 # PRESENT still has contextual RAG disabled, so default should be NoneCOMMENT
MEDIUM…ependency_unit/search_settings/test_search_settings.py264 # Now PRESENT has contextual RAG enabled, default should matchCOMMENT
MEDIUM…ependency_unit/search_settings/test_search_settings.py310 # Create FUTURE settings with contextual RAG enabledCOMMENT
MEDIUM…ependency_unit/search_settings/test_search_settings.py317 # PRESENT still has contextual RAG disabled, so default should be NoneCOMMENT
MEDIUM…ependency_unit/search_settings/test_search_settings.py328 # Now PRESENT has contextual RAG enabled, default should matchCOMMENT
MEDIUM…ependency_unit/search_settings/test_search_settings.py383 # PRESENT has contextual RAG disabled, so default should be NoneCOMMENT
MEDIUM…ests/external_dependency_unit/db/test_port_flow_e2e.py165# The port re-embeds PRESENT -> FUTURE against the local embedding model server;COMMENT
MEDIUM…_dependency_unit/celery/test_docprocessing_priority.py307 # embedding model" lookup can pick it up and corrupt later realCOMMENT
MEDIUM…external_dependency_unit/indexing/test_port_reembed.py147 # RAG on in both, model changed -> AUGMENTATION (re-enrich under new LLM)COMMENT
MEDIUM…external_dependency_unit/indexing/test_port_reembed.py155 # RAG on in both, same model -> only the embedder could differ -> MODEL_ONLYCOMMENT
MEDIUM…external_dependency_unit/indexing/test_port_reembed.py163 # RAG OFF in both: a stale model-id difference is irrelevant (no enrichment inCOMMENT
MEDIUM…external_dependency_unit/indexing/test_port_reembed.py355 # stored (BM25) content rebuilt without the contextual-RAG augmentationCOMMENT
MEDIUM…external_dependency_unit/indexing/test_port_reembed.py420 # Stub the contextual-RAG enrichment (the LLM call is the indexing pipeline'sCOMMENT
MEDIUM…external_dependency_unit/indexing/test_port_reembed.py440 # PRESENT had RAG off: no doc_summary/chunk_context glued in.COMMENT
MEDIUM…/unit/onyx/document_index/opensearch/test_port_copy.py155 # RAG-on AUGMENTATION re-embeds one doc per page (bounds the unheartbeated LLMCOMMENT
MEDIUM…/unit/onyx/document_index/opensearch/test_port_copy.py202 # RAG-off AUGMENTATION has no LLM step, so it streams PIT pages as-is rather thanCOMMENT
MEDIUM…/unit/onyx/document_index/opensearch/test_port_copy.py207 [_chunk("doc_a")], # doc_a spans PIT pages; not reassembled when RAG is offCODE
MEDIUM…x/server/manage/llm/test_nebius_tokenfactory_models.py56 # embedding model -> must be droppedCOMMENT
MEDIUM…sts/unit/onyx/server/manage/llm/test_portkey_models.py18# an embedding model (must be dropped), and an id-less entry (must be skipped).COMMENT
MEDIUMbackend/tests/unit/onyx/indexing/test_embedder.py35 # Mock the encode method of the embedding modelCOMMENT
MEDIUMbackend/tests/unit/onyx/indexing/test_embedder.py86 # Verify the embedding model was called exactly as followsCOMMENT
MEDIUMbackend/tests/unit/external_apps/test_token_refresh.py234# ensure_fresh_credentials orchestration (own short sessions, single-flight)COMMENT
MEDIUM…egration/tests/search_settings/test_search_settings.py324 # Create secondary settings without contextual RAGCOMMENT
MEDIUM…egration/tests/search_settings/test_search_settings.py332 # Update the *current* (primary) settings with a contextual RAG modelCOMMENT
MEDIUM…egration/tests/search_settings/test_search_settings.py359 # First: no contextual RAGCOMMENT
MEDIUM…egration/tests/search_settings/test_search_settings.py368 # Second: with contextual RAGCOMMENT
MEDIUM…egration/tests/search_settings/test_search_settings.py153 # Unset by disabling contextual RAGCOMMENT
MEDIUMbackend/shared_configs/model_server_models.py10 # Can be none for cloud embedding model requests, error handling logic exists for other casesCOMMENT
MEDIUM…nd/onyx/background/celery/tasks/docprocessing/tasks.py629 # NOTE: _run_indexing doesn't update connectors if the index attempt is the future embedding modelCOMMENT
MEDIUM…nd/onyx/background/celery/tasks/docprocessing/utils.py266 # NOTE: during an embedding model switch over, the following logicCOMMENT
MEDIUMbackend/onyx/document_index/opensearch/port_copy.py100 # Contextual RAG-on AUGMENTATION: buffer to reassemble each doc (chunks span PIT pages), thenCOMMENT
MEDIUMbackend/onyx/tools/models.py139 # agentic additions; only need to set during agentic tool callsCOMMENT
MEDIUMbackend/onyx/tools/tool_constructor.py66 # project's/persona's user files didn't fit in the LLM context window andCOMMENT
MEDIUMbackend/onyx/llm/model_capabilities.py81 # allows the user to specify their desired max context window, and it'sCOMMENT
MEDIUMbackend/onyx/llm/utils.py499 # for each chunk, we prompt the LLM with the contextual RAG promptCOMMENT
MEDIUMbackend/onyx/context/search/models.py123 # context window and must be searched via vector DB instead of being loadedCOMMENT
MEDIUMbackend/onyx/chat/process_message.py368 # 60% of the LLM's max context window. The other benefit is that for projects withCOMMENT
MEDIUMbackend/onyx/chat/process_message.py857 # Use the smallest context window across models for safety (harmless for N=1).COMMENT
MEDIUMbackend/onyx/chat/llm_loop.py767 # undercount the provider's tokenizer and overflow the context window.COMMENT
MEDIUMbackend/onyx/chat/chat_utils.py614 # Drop any single message that would dominate the context window.COMMENT
MEDIUMbackend/onyx/server/metrics/postgres_connection_pool.py36# --- Pool lifecycle counters (event-driven) ---COMMENT
MEDIUMbackend/onyx/server/metrics/postgres_connection_pool.py68# --- Per-endpoint attribution (event-driven) ---COMMENT
MEDIUMbackend/onyx/server/settings/models.py125 # False when DISABLE_VECTOR_DB is set — connectors, RAG search, andCOMMENT
MEDIUMbackend/onyx/server/features/search/api.py117 # Since the agentic search flow requires multiple LLM callsCOMMENT
MEDIUMbackend/onyx/server/manage/invite_rate_limit.py34# bypass entirely — their guardrails are seat limits and the per-admin lifetimeCOMMENT
MEDIUMbackend/onyx/server/manage/search_settings.py87 # Disallow contextual RAG for cloud deployments.COMMENT
MEDIUMbackend/onyx/server/manage/search_settings.py421 # Disallow contextual RAG for cloud deploymentsCOMMENT
MEDIUMbackend/onyx/server/manage/voice/websocket_api.py39# Whisper-style models pad short inputs to a 30s window and hallucinateCOMMENT
MEDIUM…/onyx/natural_language_processing/search_nlp_models.py1086 # 2. we are using an API-based embedding model (provider_type is notCOMMENT
MEDIUMbackend/onyx/configs/chat_configs.py99# Trigger compression when history exceeds this ratio of available context windowCOMMENT
MEDIUMbackend/onyx/configs/embedding_configs.py21# Base embedding model configurations (without precision)COMMENT
MEDIUMbackend/onyx/configs/app_configs.py78# Disables vector DB (Vespa/OpenSearch) entirely. When True, connectors and RAG searchCOMMENT
MEDIUMbackend/onyx/configs/app_configs.py100# (across users / agentic sub-queries) don't re-hit the embedding provider.COMMENT
MEDIUMbackend/onyx/configs/app_configs.py1427# When swapping to a new embedding model, a secondary index is created in the background, to conserveCOMMENT
MEDIUMbackend/onyx/configs/app_configs.py1466# Enable multi-threaded embedding model calls for parallel processingCOMMENT
MEDIUMbackend/onyx/db/models.py2208 # Contextual RAGCOMMENT
MEDIUMbackend/onyx/db/models.py2211 # Contextual RAG LLM — FK to model_configuration (replaces deprecated string columns)COMMENT
MEDIUMbackend/onyx/db/swap_index.py69 # Expire jobs for the now past index/embedding modelCOMMENT
MEDIUMbackend/onyx/indexing/models.py60 # This is the number of tokens reserved for contextual RAGCOMMENT
MEDIUMbackend/onyx/indexing/models.py64 # This is the summary for the document generated for contextual RAGCOMMENT
19 more matches not shown…
Verbosity Indicators166 hits · 244 pts
SeverityFileLineSnippetContext
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts43 // Step 1: Login as admin to create test fixturesCOMMENT
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts47 // Step 2: Create a user group that will have access to the restricted providerCOMMENT
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts58 // Step 3: Create a restricted LLM provider assigned to that groupCOMMENT
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts68 // Step 4: Logout and login as a random user (who won't be in the restricted group)COMMENT
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts72 // Step 5: Navigate to the assistant creation pageCOMMENT
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts76 // Step 6: Scroll to the Default Model sectionCOMMENT
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts80 // Step 7: Get all available LLM provider optionsCOMMENT
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts83 // Step 8: Verify that we have some options (at least the default provider)COMMENT
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts86 // Step 9: Verify the restricted provider does NOT appearCOMMENT
LOWweb/tests/e2e/agents/llm_provider_rbac.spec.ts92 // Step 10: Verify that default/public providers DO appearCOMMENT
LOW…src/sections/actions/modals/MCPAuthenticationModal.tsx401 // Step 1: Save the authentication configuration to the MCP serverCOMMENT
LOW…src/sections/actions/modals/MCPAuthenticationModal.tsx409 // Step 2: Update status to AWAITING_AUTH after successful config saveCOMMENT
LOW…src/sections/actions/modals/MCPAuthenticationModal.tsx417 // Step 3: For OAuth, initiate the OAuth flowCOMMENT
LOW…app/message/messageComponents/timeline/transformers.ts59 * // Step 1: Build Map<turnIndex, TransformedStep[]>COMMENT
LOW…app/message/messageComponents/timeline/transformers.ts67 * // Step 2: Sort turn indices & steps by tabIndexCOMMENT
LOW…app/message/messageComponents/timeline/transformers.ts69 * // Step 3: Build TurnGroup[] with isParallel flagCOMMENT
LOW…ge/messageComponents/timeline/hooks/packetProcessor.ts435 * // Step 1: Map keys → GroupedPacket (parse key, lookup packets)COMMENT
LOW…ge/messageComponents/timeline/hooks/packetProcessor.ts443 * // Step 2: Filter (hasContentPackets check)COMMENT
LOW…ge/messageComponents/timeline/hooks/packetProcessor.ts451 * // Step 3: Sort by turn_index, then tab_indexCOMMENT
LOW…eComponents/timeline/hooks/usePacedTurnGroups.test.tsx421 // Step 1: Render with finalAnswerComing=true, no tool stepsCOMMENT
LOW…eComponents/timeline/hooks/usePacedTurnGroups.test.tsx443 // Step 2: finalAnswerComing goes false + new tool step arrivesCOMMENT
LOW…eComponents/timeline/hooks/usePacedTurnGroups.test.tsx456 // Step 3: Add a second tool step so pacing is not yet completeCOMMENT
LOW…eComponents/timeline/hooks/usePacedTurnGroups.test.tsx466 // Step 4: Advance timer to complete pacingCOMMENT
LOWweb/src/hooks/useChatController.ts489 // For pages like NRF where existingChatSessionId is always null, we need to check ifCOMMENT
LOWbackend/ee/onyx/db/document.py90 # If the document exists, we need to check if the external access has changedCOMMENT
LOW…ests/external_dependency_unit/llm/test_llm_provider.py500 # Step 7: Change the default provider to provider 2COMMENT
LOW…ests/external_dependency_unit/llm/test_llm_provider.py503 # Step 8: Call run_test_default_provider - should use provider 2COMMENT
LOW…ests/external_dependency_unit/llm/test_llm_provider.py411 # Step 1: Create provider 1 with models, it becomes default (first provider)COMMENT
LOW…ests/external_dependency_unit/llm/test_llm_provider.py429 # Step 2: Call run_test_default_provider - should use provider 1's default modelCOMMENT
LOW…ests/external_dependency_unit/llm/test_llm_provider.py440 # Step 3: Create provider 2 (not default)COMMENT
LOW…ests/external_dependency_unit/llm/test_llm_provider.py459 # Step 4: Call run_test_default_provider - should still use provider 1COMMENT
LOW…ests/external_dependency_unit/llm/test_llm_provider.py470 # Step 5: Update provider 1's default modelCOMMENT
LOW…ests/external_dependency_unit/llm/test_llm_provider.py489 # Step 6: Call run_test_default_provider - should use new model on provider 1COMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py172 # Step 4: Set the provider as defaultCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py175 # Step 5: Fetch the default provider and verifyCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py572 # Step 3: Verify provider 1 is still the defaultCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py580 # Step 4: Change the default to provider 2COMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py587 # Step 5: Verify provider 2 is now the defaultCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py595 # Step 6: Run test_default_provider and verify it uses provider 2's modelCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py152 # Step 3: Verify all models from the GitHub config are presentCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py312 # Step 1: Upload provider WITHOUT auto mode, with initial modelsCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py339 # Step 2: Update provider to enable auto modeCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py359 # Step 3: Verify model visibility after auto mode transitionCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py530 # Step 1: Create provider 1 (OpenAI) with auto modeCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py557 # Step 2: Create provider 2 (Anthropic) with auto modeCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py637 # Step 1: Create provider with no model configsCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py652 # Step 2: Run sync_auto_mode_models (simulating the periodic sync)COMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py665 # Step 3: Every ModelConfiguration must have at least one LLMModelFlowCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py687 # Step 4: The provider must appear in fetch_existing_llm_providersCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py732 # Step 1: Create manual-mode provider and set as defaultCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py759 # Step 2: Transition to auto modeCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py779 # Step 3: Default should be preserved on this providerCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py820 # Step 1: Create in auto modeCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py849 # Step 2: Switch to manual modeCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py870 # Step 3: Models unchangedCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py918 # Step 1: Create with config v1COMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py937 # Step 2: Re-sync with config v2COMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py951 # Step 3: VerifyCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py1102 # Step 2: Set gpt-4o as global defaultCOMMENT
LOW…nal_dependency_unit/llm/test_llm_provider_auto_mode.py1114 # Step 3: Re-sync with config v2 (gpt-4o removed)COMMENT
106 more matches not shown…
AI Slop Vocabulary55 hits · 121 pts
SeverityFileLineSnippetContext
MEDIUM…tests/e2e/admin/connector/permission-sync-tabs.spec.ts323 // assertion stays robust if the truncated text changes.COMMENT
MEDIUM…src/app/app/message/messageComponents/AgentMessage.tsx61// TODO: Consider more robust comparisons:COMMENT
MEDIUM…src/app/app/message/messageComponents/AgentMessage.tsx63// reference equality. Shallow array/object comparison would be more robust ifCOMMENT
MEDIUM…/src/refresh-components/popovers/FilePickerPopover.tsx114 // These are the "quick" files that we show. Essentially "speed dial", but for files.COMMENT
LOW…d/ee/onyx/external_permissions/confluence/constants.py2# Instead of setting a page to public, we just add this group so that the pageCOMMENT
LOW…e/onyx/external_permissions/confluence/space_access.py190 # that exist in confluence and then just add that group to the space permissionsCOMMENT
LOW…onyx/external_permissions/salesforce/postprocessing.py184 # so we should just return an empty list because no chunks will beCOMMENT
MEDIUM…ternal_dependency_unit/craft/test_session_lifecycle.py1267 # is robust if the stub is consulted on any code path.COMMENT
LOW…ernal_dependency_unit/answer/stream_test_assertions.py48 # So just returnCOMMENT
LOW…ency_unit/slack_bot/test_slack_bot_federated_search.py1# NOTE: ruff and black disagree after applying this noqa, so we just set file-level.COMMENT
MEDIUM…nd/tests/unit/sandbox_proxy/test_response_streaming.py41# window keeps the structural assertion robust against scheduler jitter.COMMENT
MEDIUM…/ee/onyx/server/middleware/test_license_enforcement.py17# Type alias for the middleware harness tupleCOMMENT
MEDIUMbackend/tests/unit/onyx/tools/test_tool_llm_names.py13# harness tool names (e.g. "browser", "bash") and starts rejecting them.COMMENT
MEDIUM…/tests/daily/connectors/zendesk/test_zendesk_data.json6 "link": "https://d3v-onyx.zendesk.com/hc/en-us/articles/32502691728155-How-can-agents-leverage-knowledge-to-heCODE
LOWbackend/onyx/setup.py364 # on the cloud, just use float for all indices, the option to change thisCOMMENT
MEDIUMbackend/onyx/background/celery/apps/app_base.py170 """We handle this signal in order to remove completed tasksSTRING
LOWbackend/onyx/connectors/confluence/onyx_confluence.py586 # If it's not a method, just return it after ensuring token validityCOMMENT
LOWbackend/onyx/connectors/confluence/onyx_confluence.py1318 # For now, we'll just return None and log a warning. This meansCOMMENT
MEDIUMbackend/onyx/connectors/slack/utils.py284 """Simply replaces all tags with `@<USER_ID>` in order to prevent us fromSTRING
LOWbackend/onyx/connectors/slack/connector.py600 # we'll just set and use the last filter reason ifCOMMENT
LOWbackend/onyx/connectors/slack/connector.py616 # we'll just set and use the last filter reason if we get an empty listCOMMENT
MEDIUM…document_index/opensearch/opensearch_document_index.py661 # TODO(andrei): Fix the aforementioned race condition.COMMENT
MEDIUM…/onyx/tools/tool_implementations/python/python_tool.py222 # OpenAI reserves the function name "python" for its own harness andCOMMENT
LOW…nd/onyx/tools/tool_implementations/search/constants.py16# This may in the future just use an entirely keyword search. Currently it is a hybrid search with a keyword first phaseCOMMENT
MEDIUM…/onyx/llm/well_known_providers/llm_provider_options.py152 # TODO: remove these lists once we have a comprehensive model configuration pageCOMMENT
LOWbackend/onyx/chat/chat_utils.py309 # if any citations weren't parsable, just add them back to be safeCOMMENT
LOWbackend/onyx/auth/email_utils.py310 # No images, just add HTML directly (higher priority than text)STRING
MEDIUMbackend/onyx/file_processing/extract_file_text.py418 # Unknown PDF parsing failure — elevate just the message, not aCOMMENT
LOWbackend/onyx/file_processing/extract_file_text.py1035 # just return empty textCOMMENT
LOWbackend/onyx/file_store/s3_key_utils.py163 # If no space for readable part, just use hashCOMMENT
LOWbackend/onyx/server/auth_check.py28 # should always be callable, will just return 401 if not authenticatedCOMMENT
LOWbackend/onyx/server/features/mcp/api.py1773 # TODO: just pass this in, but should work when auth is set alreadyCOMMENT
LOWbackend/onyx/server/manage/llm/api.py483 # Therefore, instead of performing additional, more complex logic, we just use a dummy valueCOMMENT
MEDIUMbackend/onyx/utils/url.py358 # A more robust solution would require custom SSL contextCOMMENT
LOWbackend/onyx/secondary_llm_flows/document_filter.py60 # If center chunk not found in chunks list, just return center chunkCOMMENT
LOWbackend/onyx/onyxbot/slack/utils.py611 # For other bots, just use the text as we have no way of knowing that theCOMMENT
LOWbackend/onyx/configs/app_configs.py1561# we'll just use the default value, but also have it be configurable by env var.COMMENT
LOWbackend/onyx/db/models.py2201 # If not specified, will just use the model_dim without any reduction.COMMENT
MEDIUMbackend/onyx/db/models.py3537 # For "Custom LLM Providers", we don't provide a comprehensive list of modelsCOMMENT
LOWbackend/onyx/db/chat_search.py30 # If no query, just return the most recent sessionsCOMMENT
LOWbackend/onyx/db/usage.py82 # No-op update: just set a field to its current valueCOMMENT
LOWbackend/onyx/indexing/indexing_pipeline.py878 # So we just pass the full prompt without cachingCOMMENT
MEDIUMbackend/onyx/indexing/indexing_pipeline.py979 # TODO: for v2, add robust retry logicCOMMENT
LOWbackend/onyx/deep_research/dr_loop.py289 # No citations in this step, it should just pass through allCOMMENT
LOWbackend/onyx/deep_research/dr_loop.py530 # No citations in this step, it should just pass through allCOMMENT
MEDIUMbackend/scripts/env_inventory.py432 # locals (e.g. `connector = ...` reused in a connector __main__ harness).COMMENT
MEDIUMbackend/scripts/coding_agent_test.py84 # with the research_agent test harness.COMMENT
LOW…nd/alembic/versions/be2ab2aa50ee_fix_capitalization.py36 # cycle, so we just passSTRING
LOW…/da42808081e3_migrate_jira_connectors_to_new_format.py53 # If URL parsing fails, just use the URL as the baseSTRING
MEDIUMbackend/alembic/versions/3bd4c84fe72f_improved_index.py23# 2. Adds indexes to both chat_message and chat_session tables for comprehensive searchCOMMENT
MEDIUM…deployfiles/embedded/docker_compose/docker-compose.yml13# To convert this setup to a production deployment following best practices,COMMENT
MEDIUM.devcontainer/init-dev-user.sh8# We remap dev to that UID -- fast and seamless.COMMENT
MEDIUMloadtest/k8s/locust.yaml1# Locust master + workers for the Onyx chat load tests, using the harnessCOMMENT
MEDIUMdeployment/docker_compose/docker-compose.yml13# To convert this setup to a production deployment following best practices,COMMENT
MEDIUMdeployment/docker_compose/docker-compose.template.yml18# To convert this setup to a production deployment following best practices,COMMENT
Modern Structural Boilerplate112 hits · 116 pts
SeverityFileLineSnippetContext
LOWbackend/ee/onyx/server/scim/patch.py33logger = logging.getLogger(__name__)CODE
LOWbackend/ee/onyx/server/scim/patch.py232def _update_primary_email(data: dict[str, Any], value: ScimPatchValue) -> None:CODE
LOWbackend/ee/onyx/server/scim/providers/base.py28logger = logging.getLogger(__name__)CODE
LOWbackend/ee/onyx/server/tenants/schema_management.py19logger = logging.getLogger(__name__)CODE
LOWbackend/ee/onyx/server/tenants/product_gating.py12def update_tenant_gating(tenant_id: str, status: ApplicationStatus) -> None:CODE
LOWbackend/ee/onyx/db/scim.py118 def update_token_last_used(self, token_id: int) -> None:CODE
LOWbackend/tests/external_dependency_unit/mock_llm.py218 def set_max_timeout(self, timeout: float = 5.0) -> None:CODE
LOWbackend/tests/external_dependency_unit/mock_llm.py289 def set_max_timeout(self, timeout: float = 5.0) -> None:CODE
LOW…ckend/tests/external_dependency_unit/craft/conftest.py136def _set_onyx_server_url(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOW…ency_unit/slack_bot/test_slack_bot_federated_search.py313 def _setup_embedding_mock(self, mock_get_query_embeddings: Mock) -> None:CODE
LOW…ency_unit/slack_bot/test_slack_bot_federated_search.py415 def _setup_llm_provider(self, db_session: Session) -> None:CODE
LOW…ests/external_dependency_unit/db/test_shard_routing.py66def _set_tenant_shard(tenant_id: str, shard_name: str) -> None:CODE
LOW…d/tests/unit/ee/onyx/server/features/hooks/test_api.py51def _set_level(monkeypatch: pytest.MonkeyPatch, level: SSRFProtectionLevel) -> None:CODE
LOW…d/tests/unit/onyx/server/features/mcp/test_mcp_ssrf.py49def _set_level(monkeypatch: pytest.MonkeyPatch, level: SSRFProtectionLevel) -> None:CODE
LOWbackend/tests/unit/onyx/utils/test_external_endpoint.py19def _setup_client(mock_client_cls: MagicMock, response: MagicMock) -> None:CODE
LOWbackend/tests/integration/common_utils/http_client.py80def set_test_client(c: httpx.Client | None) -> None:CODE
LOW…end/tests/integration/tests/craft/test_webapp_proxy.py22def _set_scope(user: DATestUser, session_id: UUID, scope: SharingScope) -> None:CODE
LOW…on/tests/craft/docker_e2e/test_approval_gate_docker.py119def _set_slack_org_credentials(value: dict[str, str]) -> None:CODE
LOW…egration/tests/search_settings/test_search_settings.py38def _update_inference_settings(user: DATestUser, settings: dict) -> None:CODE
LOW…tests/streaming_endpoints/test_chat_file_attachment.py91def _set_token_threshold(admin_user: DATestUser, threshold_k: int) -> None:CODE
LOW…ntegration/mock_services/mock_connector_server/main.py25async def set_behavior(behavior: list[dict]) -> None:CODE
LOWbackend/tests/utils/aws_secrets.py44logger = logging.getLogger(__name__)CODE
LOWbackend/tests/daily/connectors/google_drive/conftest.py137def set_resource_limits() -> None:CODE
LOW…end/tests/regression/search_quality/run_search_eval.py556 def _update_metrics(self, result: AnalysisSummary) -> None:CODE
LOWbackend/onyx/setup.py296def update_default_multipass_indexing(db_session: Session) -> None:CODE
LOW…nd/onyx/background/celery/tasks/vespa/document_sync.py56def set_document_sync_fence(r: TenantRedisClient, payload: int | None) -> None:CODE
LOWbackend/onyx/background/celery/apps/app_base.py627def set_task_finished_log_level(logLevel: int) -> None:CODE
LOWbackend/onyx/background/celery/apps/app_base.py715 def update_liveness_file(self, worker: Any) -> None: # noqa: ARG002CODE
LOWbackend/onyx/connectors/interfaces.py93 def set_allow_images(self, value: bool) -> None:CODE
LOWbackend/onyx/connectors/interfaces.py97 def set_raw_file_callback(self, callback: RawFileCallback) -> None:CODE
LOWbackend/onyx/connectors/interfaces.py227 def set_credentials(self, credential_json: dict[str, Any]) -> None:CODE
LOWbackend/onyx/connectors/credentials_provider.py80 def set_credentials(self, credential_json: dict[str, Any]) -> None:CODE
LOWbackend/onyx/connectors/credentials_provider.py143 def set_credentials(self, credential_json: dict[str, Any]) -> None:CODE
LOWbackend/onyx/connectors/box/connector.py252 def set_allow_images(self, value: bool) -> None:CODE
LOWbackend/onyx/connectors/drupal_wiki/connector.py139 def set_allow_images(self, value: bool) -> None:CODE
LOWbackend/onyx/connectors/highspot/client.py92 def _setup_auth(self) -> None:CODE
LOWbackend/onyx/connectors/canvas/client.py13logger = logging.getLogger(__name__)CODE
LOWbackend/onyx/connectors/confluence/connector.py250 def set_allow_images(self, value: bool) -> None:CODE
LOWbackend/onyx/connectors/teams/connector.py509def _update_request_url(request: RequestOptions, next_url: str) -> None:CODE
LOWbackend/onyx/connectors/salesforce/sqlite_functions.py301 def update_email_to_id_table(self, email: str, id: str | None) -> None:STRING
LOWbackend/onyx/connectors/salesforce/sqlite_functions.py794 def _update_user_email_map(cursor: sqlite3.Cursor) -> None:CODE
LOWbackend/onyx/connectors/gmail/connector.py590 def set_page_token(page_token: str | None) -> None:CODE
LOWbackend/onyx/connectors/gmail/connector.py648 def set_page_token(page_token: str | None) -> None:CODE
LOWbackend/onyx/connectors/google_drive/connector.py374 def set_allow_images(self, value: bool) -> None:CODE
LOWbackend/onyx/connectors/google_drive/connector.py468 def _update_traversed_parent_ids(self, folder_id: str) -> None:CODE
LOWbackend/onyx/tracing/langfuse_tracing_processor.py24logger = logging.getLogger(__name__)CODE
LOWbackend/onyx/tracing/setup.py50def _setup_user_usage_tracking() -> None:CODE
LOWbackend/onyx/tracing/framework/provider.py36 def set_processors(self, processors: list[TracingProcessor]) -> None:CODE
LOWbackend/onyx/tracing/framework/provider.py123 def set_processors(self, processors: list[TracingProcessor]) -> None:CODE
LOWbackend/onyx/tracing/framework/provider.py186 def set_processors(self, processors: list[TracingProcessor]) -> None:CODE
LOWbackend/onyx/tracing/framework/__init__.py13def set_trace_processors(processors: list[TracingProcessor]) -> None:CODE
LOWbackend/onyx/tracing/framework/spans.py137 def set_error(self, error: SpanError) -> None:CODE
LOWbackend/onyx/tracing/framework/spans.py228 def set_error(self, error: SpanError) -> None:CODE
LOWbackend/onyx/tracing/framework/spans.py329 def set_error(self, error: SpanError) -> None:CODE
LOWbackend/onyx/tracing/framework/setup.py11def set_trace_provider(provider: TraceProvider) -> None:CODE
LOWbackend/onyx/document_index/interfaces_new.py24__all__ = [CODE
LOW…document_index/opensearch/opensearch_document_index.py106def set_cluster_state(client: OpenSearchClient) -> None:CODE
LOW…d/onyx/llm/well_known_providers/auto_update_service.py38def _set_cached_last_updated_at(updated_at: datetime) -> None:CODE
LOWbackend/onyx/llm/prompt_cache/__init__.py22__all__ = [CODE
LOWbackend/onyx/llm/prompt_cache/providers/__init__.py10__all__ = [CODE
52 more matches not shown…
AI Structural Patterns60 hits · 48 pts
SeverityFileLineSnippetContext
LOW…ackground/celery/tasks/doc_permission_syncing/tasks.py588CODE
LOW…tests/external_dependency_unit/mock_search_pipeline.py137CODE
LOW…l_dependency_unit/opensearch/test_opensearch_client.py132CODE
LOW…external_dependency_unit/indexing/test_port_reembed.py60CODE
LOWbackend/tests/unit/sandbox_proxy/conftest.py97CODE
LOWbackend/tests/unit/ee/onyx/hooks/test_executor.py27CODE
LOW…kend/tests/unit/onyx/connectors/box/fake_box_client.py215CODE
LOW…s/unit/onyx/connectors/jira/test_jira_checkpointing.py50CODE
LOW…/onyx/connectors/zendesk/test_zendesk_checkpointing.py78CODE
LOW…nnectors/sharepoint/test_load_checkpoint_resilience.py114CODE
LOW…onyx/connectors/sharepoint/test_delta_checkpointing.py142CODE
LOWbackend/tests/unit/onyx/chat/test_citation_utils.py20CODE
LOWbackend/tests/unit/onyx/chat/test_citation_processor.py35CODE
LOW…/server/features/craft/session/test_streaming_state.py28CODE
LOW…/integration/common_utils/managers/image_generation.py28CODE
LOW…/tests/integration/common_utils/managers/user_group.py130CODE
LOW…end/tests/integration/common_utils/managers/persona.py18CODE
LOW…end/tests/integration/common_utils/managers/persona.py85CODE
LOWbackend/tests/integration/common_utils/managers/chat.py98CODE
LOWbackend/tests/integration/common_utils/managers/chat.py157CODE
LOW…end/tests/integration/common_utils/managers/cc_pair.py57CODE
LOW…ests/integration/common_utils/managers/llm_provider.py18CODE
LOW…ion/mock_services/mcp_test_server/run_mock_oidc_idp.py234CODE
LOWbackend/tests/common/craft/stubs.py526CODE
LOWbackend/onyx/connectors/confluence/connector.py165CODE
LOWbackend/onyx/connectors/sharepoint/connector.py1215CODE
LOWbackend/onyx/connectors/slack/connector.py632CODE
LOWbackend/onyx/connectors/slack/connector.py834CODE
LOWbackend/onyx/connectors/google_drive/connector.py277CODE
LOWbackend/onyx/tracing/framework/create.py181CODE
LOWbackend/onyx/tracing/framework/span_data.py108CODE
LOWbackend/onyx/document_index/opensearch/client.py248CODE
LOWbackend/onyx/document_index/opensearch/client.py557CODE
LOWbackend/onyx/llm/multi_llm.py383CODE
LOWbackend/onyx/llm/factory.py387CODE
LOWbackend/onyx/context/search/federated/slack_search.py996CODE
LOWbackend/onyx/chat/process_message.py1533CODE
LOWbackend/onyx/chat/llm_loop.py698CODE
LOWbackend/onyx/chat/llm_step.py1039CODE
LOWbackend/onyx/chat/llm_step.py1536CODE
LOWbackend/onyx/redis/tenant_redis_client.py149CODE
LOWbackend/onyx/redis/tenant_redis_client.py1199CODE
LOWbackend/onyx/redis/redis_pool.py165CODE
LOWbackend/onyx/auth/users.py2655CODE
LOWbackend/onyx/server/manage/administrative.py217CODE
LOWbackend/onyx/server/documents/credential.py188CODE
LOWbackend/onyx/utils/retry_wrapper.py78CODE
LOWbackend/onyx/db/connector_credential_pair.py229CODE
LOWbackend/onyx/db/connector_credential_pair.py290CODE
LOWbackend/onyx/db/oauth_config.py53CODE
LOWbackend/onyx/db/hook.py118CODE
LOWbackend/onyx/db/persona.py227CODE
LOWbackend/onyx/db/persona.py1264CODE
LOWbackend/onyx/db/chat.py1057CODE
LOWbackend/onyx/db/mcp.py254CODE
LOWbackend/onyx/db/entities.py240CODE
LOWbackend/onyx/db/engine/sql_engine.py110CODE
LOWbackend/onyx/indexing/chunker.py129CODE
LOWbackend/onyx/deep_research/utils.py56CODE
LOWbackend/scripts/tenant_cleanup/cleanup_utils.py131CODE
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippetContext
CRITICAL…pendency_unit/file_store/test_azure_blob_file_store.py322 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALbackend/onyx/background/celery/celery_utils.py261 queue_names = list(worker.app.amqp.queues.consume_from.keys())CODE
CRITICALbackend/onyx/file_store/azure_blob_file_store.py149 from azure.core.exceptions import HttpResponseError, ResourceExistsErrorCODE
CRITICALbackend/onyx/file_store/azure_blob_file_store.py356 from azure.core.exceptions import ResourceNotFoundErrorCODE
Example Usage Blocks13 hits · 21 pts
SeverityFileLineSnippetContext
LOWbackend/onyx/connectors/imap/connector.py51# Usage:COMMENT
LOWbackend/onyx/redis/redis_pool.py276# # Usage exampleCOMMENT
LOWbackend/onyx/utils/subclasses.py107# Example usage:COMMENT
LOW…s/embedded/docker_compose/docker-compose.onyx-lite.yml10# Usage:COMMENT
LOW…oyfiles/embedded/docker_compose/docker-compose.dev.yml4# Usage:COMMENT
LOWdeployment/docker_compose/docker-compose.onyx-lite.yml10# Usage:COMMENT
LOWdeployment/docker_compose/docker-compose.dev.yml4# Usage:COMMENT
LOWdeployment/helm/charts/onyx/values-lite.yaml9# Usage:COMMENT
LOWdeployment/helm/dev/k8s-down.sh8# Usage:COMMENT
LOWdeployment/helm/dev/k8s-up.sh7# Usage:COMMENT
LOWdeployment/helm/dev/craft-down.sh11# Usage:COMMENT
LOWdeployment/helm/dev/craft-up.sh11# Usage:COMMENT
LOWexamples/assistants-api/topics_analyzer.py116# Example usageSTRING
Magic Placeholder Names4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHwidget/index.html267 api-key="your-api-key-here"CODE
HIGHwidget/README.md284Authorization: Bearer YOUR_API_KEYCODE
HIGHwidget/README.md301Authorization: Bearer YOUR_API_KEYCODE
HIGHwidget/README.md326 VITE_WIDGET_API_KEY=your_api_keyCODE
Dead Code7 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUM…onnectors/google_drive/test_google_drive_group_sync.py420CODE
MEDIUM…kend/tests/unit/background/celery/test_celery_utils.py39CODE
MEDIUM…ackground/celery/tasks/test_hierarchyfetching_queue.py33CODE
MEDIUM…nnectors/sharepoint/test_load_checkpoint_resilience.py235CODE
MEDIUMbackend/tests/unit/onyx/llm/test_tracing_wrap.py347CODE
MEDIUM…r/features/craft/test_webapp_proxy_header_stripping.py33CODE
MEDIUM…nit/onyx/server/features/mcp/test_mcp_oauth_refresh.py541CODE
Slop Phrases8 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMbackend/pytest.ini16# you can use it to test credentials locally.COMMENT
LOW…d/ee/onyx/external_permissions/post_query_censoring.py83 # IMPORTANT: make sure to retain the same ordering as the original `chunks` passed inCOMMENT
LOW…end/onyx/connectors/google_drive/section_extraction.py197 # Don't forget to add the last sectionCOMMENT
LOWbackend/onyx/kg/models.py11# Note: make sure to write a migration if adding a non-nullable field or removing a fieldCOMMENT
LOWbackend/onyx/prompts/kg_prompts.py336 - don't forget to provide answers also to the event filtering and whether documents need to be inspected!CODE
MEDIUMbackend/onyx/prompts/coding_agent/coding_agent.py140- **No filler.** Cut "In summary,", "It's worth noting that,", "Essentially,", "Basically,", "I hope this helps". Cut seCODE
LOWbackend/onyx/db/models.py1059 # NOTE: if more sensitive data is added here for display, make sure to add user/group permissionCOMMENT
LOWbackend/onyx/db/models.py1868 # NOTE: if more sensitive data is added here for display, make sure to add user/group permissionCOMMENT
Cross-Language Confusion (JS/TS)2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHweb/tests/e2e/chat/chat_message_rendering.spec.ts97 print(f"{doc.title}: {doc.score:.2f}")CODE
HIGHweb/tests/e2e/chat/chat_file_uploads.spec.ts24 print(greet("Onyx"))CODE
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHwidget/src/widget.ts601 Responses are generated by AI and may be inaccurateCODE
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWweb/src/app/api/[...path]/route.ts66async function handleRequest(request: NextRequest, path: string[]) {CODE
LOWbackend/tests/integration/common_utils/http_client.py44 def handle_request(self, request: httpx.Request) -> httpx.Response:CODE