Repository Analysis

maximhq/bifrost

Fastest enterprise AI gateway (50x faster than LiteLLM) with adaptive load balancer, cluster mode, guardrails, 1000+ models support & <100 µs overhead at 5k RPS.

4.4 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of maximhq/bifrost, a Go project with 7,627 GitHub stars. SynthScan v2.0 examined 1,145,972 lines of code across 3002 source files, recording 3239 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 4.4 places this repository in the Likely human-written 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).

4.4
Adjusted Score
4.4
Raw Score
100%
Time Factor
2026-08-28
Last Push
7.6K
Stars
Go
Language
1.1M
Lines of Code
3.0K
Files
3.2K
Pattern Hits
2026-08-29
Scan Date
0.01
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 0HIGH 30MEDIUM 772LOW 2437

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 3239 distinct pattern matches across 21 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.

Decorative Section Separators608 hits · 1762 pts
SeverityFileLineSnippetContext
MEDIUMterraform/modules/bifrost/variables.tf180# -----------------------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/bifrost/variables.tf183#-----------------------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/bifrost/azure/main.tf1# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/main.tf3# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/main.tf34# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/main.tf36# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/main.tf50# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/main.tf52# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/main.tf72# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/main.tf74# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/main.tf101# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/main.tf103# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/main.tf153# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/main.tf155# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/main.tf164# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/main.tf166# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aci/main.tf1# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aci/main.tf3# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aci/main.tf13# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aci/main.tf15# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aks/main.tf1# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aks/main.tf3# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aks/main.tf16# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aks/main.tf18# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aks/main.tf53# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aks/main.tf55# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aks/main.tf68# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aks/main.tf70# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aks/main.tf85# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aks/main.tf87# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aks/main.tf151# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aks/main.tf153# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aks/main.tf289# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aks/main.tf291# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aks/main.tf318# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aks/main.tf320# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aks/main.tf364# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/azure/services/aks/main.tf366# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/tests/gcp_cloudrun.tftest.hcl1# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/tests/gcp_cloudrun.tftest.hcl3# =============================================================================COMMENT
MEDIUM…raform/modules/bifrost/tests/config_merging.tftest.hcl1# =============================================================================COMMENT
MEDIUM…raform/modules/bifrost/tests/config_merging.tftest.hcl3# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/tests/azure_aks.tftest.hcl1# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/tests/azure_aks.tftest.hcl3# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/tests/azure_aci.tftest.hcl1# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/tests/azure_aci.tftest.hcl3# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/tests/aws_shared.tftest.hcl1# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/tests/aws_shared.tftest.hcl3# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/tests/aws_eks.tftest.hcl1# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/tests/aws_eks.tftest.hcl3# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/tests/kubernetes.tftest.hcl1# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/tests/kubernetes.tftest.hcl3# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/tests/gcp_gke.tftest.hcl1# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/tests/gcp_gke.tftest.hcl3# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/tests/aws_ecs.tftest.hcl1# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/tests/aws_ecs.tftest.hcl3# =============================================================================COMMENT
MEDIUM…aform/modules/bifrost/tests/root_validation.tftest.hcl1# =============================================================================COMMENT
MEDIUM…aform/modules/bifrost/tests/root_validation.tftest.hcl7# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/tests/setup/main.tf1# =============================================================================COMMENT
MEDIUMterraform/modules/bifrost/tests/setup/main.tf10# =============================================================================COMMENT
548 more matches not shown…
Over-Commented Block1131 hits · 1068 pts
SeverityFileLineSnippetContext
LOW…aform/modules/bifrost/tests/root_validation.tftest.hcl141COMMENT
LOWterraform/modules/bifrost/aws/services/eks/main.tf1# =============================================================================COMMENT
LOWui/next-env.d.ts1/// <reference types="next" />COMMENT
LOWui/app/clientLayout.tsx41}COMMENT
LOWui/app/oauth/consent/layout.tsx1import TempTokenScope from "@/components/tempTokenScope";COMMENT
LOW…/components/load-balancer/loadBalancerSettingsView.tsx1// On OSS, the adaptive routing settings page shows the same enterprise upsell as theCOMMENT
LOW…/_fallbacks/enterprise/lib/registrations/userPicker.ts1// OSS-build fallback for the enterprise user picker registration.COMMENT
LOW…backs/enterprise/lib/registrations/modelLimitScopes.ts1// OSS-build fallback for the enterprise scope registrations.COMMENT
LOW…kspace/oauth-grants/views/oauthGrantsFilterSidebar.tsx401 );COMMENT
LOWui/app/workspace/mcp-registry/views/mcpClientSheet.tsx401 // empty array clears them. Only send either when the userCOMMENT
LOWui/app/workspace/mcp-sessions/auth/page.tsx1// Auth landing route for inline-401 URLs returned by the inference path.COMMENT
LOWui/app/workspace/mcp-sessions/views/sessionsTable.tsx1// Base sessions table: renders token rows + pending flow rows + per-userCOMMENT
LOWui/components/headersForm.tsx1// Reusable form for the MCP per-user-headers flow.COMMENT
LOWui/components/headersForm.tsx21import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";COMMENT
LOWui/components/headersForm.tsx41 onSubmit: (values: Record<string, string>) => Promise<void> | void;COMMENT
LOWui/components/tempTokenScope.tsx1// TempTokenScope wraps a page that authenticates via a short-lived temp tokenCOMMENT
LOWui/components/tempTokenScope.tsx21import { useEffect, useState } from "react";COMMENT
LOWui/components/entitySelectors/teamSelector.tsx1// Unified async team selector — the single way to pick a governance teamCOMMENT
LOWui/components/entitySelectors/entitySelector.tsx1// Shared shell behind every async entity selector (virtual keys, users,COMMENT
LOWui/lib/types/mcp.ts41}COMMENT
LOWui/lib/types/mcp.ts61 // SSO login flow always requests a token self-audienced to itself, so aCOMMENT
LOWui/lib/types/mcp.ts121 // per_user_header_keys: admin-declared header *names* that each callerCOMMENT
LOWui/lib/types/mcpPerUserHeaders.ts1// Types for the MCP per-user headers credential flow.COMMENT
LOWui/lib/types/mcpSessions.ts1// Types for the MCP Auth Sessions tab + auth landing flow.COMMENT
LOWui/lib/types/mcpSessions.ts61 created_at: string;COMMENT
LOWui/lib/registries/modelLimitScopes.tsx1// Runtime registry of model_config scopes available to the UI.COMMENT
LOWui/lib/registries/userPicker.tsx1// Runtime registry for the governance user picker.COMMENT
LOWui/lib/store/apis/tempToken.ts1// Module-level state for the temp-token scope wrapper.COMMENT
LOWcmd/e2eseed/seed/seed.go301 "e2e_seed_team_tiggings": prefix + "-team-tiggings",COMMENT
LOWcore/encryptedreasoning.go21// reaches each provider as a different field, so each provider refuses it in its ownCOMMENT
LOWcore/encryptedreasoning.go41// item id. That is the exact refusal a fallback from Azure to Bedrock Mantle earns onCOMMENT
LOWcore/encryptedreasoning.go121// replayed encrypted reasoning content.COMMENT
LOWcore/encryptedreasoning.go161COMMENT
LOWcore/encryptedreasoning.go201// retry loop, so both are handled here:COMMENT
LOWcore/encryptedreasoning.go221}COMMENT
LOWcore/encryptedreasoning.go241 //COMMENT
LOWcore/encryptedreasoning.go321var contentBlockReasoningCarriers = []string{"signature", "encrypted_content"}COMMENT
LOWcore/encryptedreasoning.go461// in a Responses-shaped request, reporting whether anything changed. Reasoning itemsCOMMENT
LOWcore/utils_test.go221 }COMMENT
LOWcore/bifrost_test.go1761// TestProviderQueue_SendOnClosedChannel_Race demonstrates the TOCTOU race thatCOMMENT
LOWcore/bifrost_test.go2161// can transparently re-route to newPq when it later detects isClosing().COMMENT
LOWcore/encryptedreasoning_test.go301 if err == nil {COMMENT
LOWcore/encryptedreasoning_test.go841 // This case expected false while the strip only cleared encrypted_contentCOMMENT
LOWcore/encryptedreasoning_test.go921// "message": "encrypted content missing recognized prefix (expected `rsn_` or `smry_`)"}COMMENT
LOWcore/encryptedreasoning_test.go941// Mantle serves OpenAI-family models over an OpenAI-compatible /v1/responses endpoint,COMMENT
LOWcore/encryptedreasoning_test.go1021 account.configs[provider].NetworkConfig.RetryBackoffInitial = time.MillisecondCOMMENT
LOWcore/utils.go361 ctx.ClearValue(schemas.BifrostContextKeyAttemptTrail)COMMENT
LOWcore/utils.go381// streaming state, plus caller-forwarded extra headers and the caller'sCOMMENT
LOWcore/bifrost.go101}COMMENT
LOWcore/bifrost.go121//COMMENT
LOWcore/bifrost.go3761 schemas.UnregisterKnownProvider(providerKey)COMMENT
LOWcore/bifrost.go4041// MCP PUBLIC APICOMMENT
LOWcore/bifrost.go4061//COMMENT
LOWcore/bifrost.go4161func (bifrost *Bifrost) GetAvailableMCPTools(ctx *schemas.BifrostContext) []schemas.ChatTool {COMMENT
LOWcore/bifrost.go4221 }COMMENT
LOWcore/bifrost.go4281// Parameters:COMMENT
LOWcore/bifrost.go6041 // Do NOT releaseChannelMessage here — see the identical note in tryRequest.COMMENT
LOWcore/bifrost.go6061// executeRequestWithRetries is a generic function that handles common request processing logic.COMMENT
LOWcore/bifrost.go6121 // after a 429 pool reset, the selector can legitimately re-pick the same key.COMMENT
LOWcore/bifrost.go6181 // Propagate the span context so subsequent spans (llm.call / retry.attempt.N)COMMENT
1071 more matches not shown…
Structural Annotation Overuse316 hits · 504 pts
SeverityFileLineSnippetContext
LOWui/app/workspace/mcp-logs/views/emptyState.tsx88# Step 1: Initialize OpenAI client with BifrostCOMMENT
LOWui/app/workspace/mcp-logs/views/emptyState.tsx94# Step 2: Send chat requestCOMMENT
LOWui/app/workspace/mcp-logs/views/emptyState.tsx100# Step 3: Check for tool callsCOMMENT
LOWui/app/workspace/mcp-logs/views/emptyState.tsx104 # Step 4: Execute tool via BifrostCOMMENT
LOWui/app/workspace/mcp-logs/views/emptyState.tsx117 # Step 5: Continue conversation with resultsCOMMENT
LOWui/app/workspace/mcp-logs/views/emptyState.tsx129// Step 1: Initialize OpenAI client with BifrostCOMMENT
LOWui/app/workspace/mcp-logs/views/emptyState.tsx135// Step 2: Send chat requestCOMMENT
LOWui/app/workspace/mcp-logs/views/emptyState.tsx143// Step 3: Check for tool callsCOMMENT
LOWui/app/workspace/mcp-logs/views/emptyState.tsx146 // Step 4: Execute tool via BifrostCOMMENT
LOWui/app/workspace/mcp-logs/views/emptyState.tsx160 // Step 5: Continue conversation with resultsCOMMENT
LOWcore/bifrost_test.go1811 // Step 1: isClosing() passes — queue is open.COMMENT
LOWcore/bifrost_test.go1824 // Step 2: enter the exact select guard used in production.COMMENT
LOWcore/bifrost_test.go2194 // Step 2: atomically replace — new producers now get newPqCOMMENT
LOWcore/bifrost_test.go2196 // Step 4: signal old closing — stale producers will detect thisCOMMENT
LOWcore/bifrost_test.go2432 // Step 2: expose newPq first so stale producers can re-route to itCOMMENT
LOWcore/bifrost_test.go2436 // Step 3: transfer buffered messages oldPq → newPq.COMMENT
LOWcore/bifrost_test.go2452 // Step 4: signal closing — producers holding a stale oldPq ref nowCOMMENT
LOWcore/bifrost.go3712 // Step 1: Load the ProviderQueue and verify provider existsCOMMENT
LOWcore/bifrost.go3719 // Step 2: Signal closing. Blocks new producers (isClosing() returns true) andCOMMENT
LOWcore/bifrost.go3724 // Step 3: Wait for all workers to finish in-flight requests and exit.COMMENT
LOWcore/bifrost.go3743 // Step 4: Remove the provider from the request queues.COMMENT
LOWcore/bifrost.go3746 // Step 5: Remove the provider from the wait groups.COMMENT
LOWcore/bifrost.go3749 // Step 6: Remove the provider from the providers slice.COMMENT
LOWcore/bifrost.go3824 // Step 1: Create provider instance before touching live routing state. IfCOMMENT
LOWcore/bifrost.go3831 // Step 2: Create new ProviderQueue and wait group with updated settings.COMMENT
LOWcore/bifrost.go3839 // Step 3: Atomically replace the provider in the providers slice before newCOMMENT
LOWcore/bifrost.go3955 // Step 6: Register cleanup before signalling the old queue. OtherwiseCOMMENT
LOWcore/bifrost.go3965 // Step 7: Signal the old queue is closing. Stale producers that still hold aCOMMENT
LOWcore/bifrost.go3970 // Step 8: Cleanup old workers asynchronously. Waiting here under the providerCOMMENT
LOWcore/bifrost.go6772 // Step 2: derive per-side capture and strip flags.COMMENT
LOWcore/bifrost.go6780 // Step 3: write all internal signals explicitly (never touch the user override keys).COMMENT
LOWcore/bifrost.go3882 // Step 4: Publish the new queue/wait group and start new workers before oldCOMMENT
LOWcore/bifrost.go3898 // Step 5: Transfer buffered requests from the old queue to the new queue BEFORECOMMENT
LOWcore/bifrost.go6748 // Step 1: compute effective value for each flag (provider config ← per-request override).COMMENT
LOWcore/providers/utils/models.go274 // Step 1: resolve name — collect all alias matches (or the raw ID if none match).COMMENT
LOWcore/providers/utils/models.go281 // Step 2: allowlist check.COMMENT
LOWcore/providers/utils/models.go297 // Step 3: blacklist check — blacklist always wins regardless of allowlist or aliases.COMMENT
LOWcore/providers/utils/utils_test.go353 // Step 1: Parse the error (like ParseOpenAIError does)COMMENT
LOWcore/providers/utils/utils_test.go366 // Step 2: Enrich with request (like providers do)COMMENT
LOWcore/providers/bedrock/bedrock_test.go2527 // Step 1: BedrockConverseRequest → BifrostResponsesRequestCOMMENT
LOWcore/providers/bedrock/bedrock_test.go2535 // Step 2: BifrostResponsesRequest → BedrockConverseRequestCOMMENT
LOWcore/providers/anthropic/serversidefallback_test.go134 // Step 1: Anthropic -> BifrostCOMMENT
LOWcore/providers/anthropic/serversidefallback_test.go155 // Step 2: Bifrost -> AnthropicCOMMENT
LOWcore/providers/anthropic/websearch_test.go183 // Step 1: output_item.addedCOMMENT
LOWcore/providers/anthropic/websearch_test.go199 // Step 2: FunctionCallArgumentsDelta events (should be skipped)COMMENT
LOWcore/providers/anthropic/websearch_test.go211 // Step 3: output_item.done with full accumulated argumentsCOMMENT
LOWcore/providers/anthropic/compaction_test.go598 // Step 1: Anthropic → BifrostCOMMENT
LOWcore/providers/anthropic/compaction_test.go629 // Step 2: Bifrost → AnthropicCOMMENT
LOWcore/providers/openai/realtime_test.go759 // Step 1: Parse the client event (same path as wsrealtime.go).COMMENT
LOWcore/providers/openai/realtime_test.go768 // Step 2: Convert back to provider format.COMMENT
LOWcore/providers/openai/realtime_test.go775 // Step 3: Verify the output JSON contains the audio field with correct value.COMMENT
LOWcore/internal/mcptests/codemode_files_test.go626 // Step 1: List tool files (returns a tree structure as text)COMMENT
LOWcore/internal/mcptests/codemode_files_test.go646 // Step 2: Read a tool file using readToolFileCOMMENT
LOWcore/internal/mcptests/codemode_files_test.go666 // Step 3: Execute code that uses the toolsCOMMENT
LOWcore/internal/llmtests/transcription_stream.go71 // Step 1: Generate TTS audioCOMMENT
LOWcore/internal/llmtests/transcription_stream.go138 // Step 2: Test streaming transcriptionCOMMENT
LOWcore/internal/llmtests/transcription.go98 // Step 1: Generate TTS audioCOMMENT
LOWcore/internal/llmtests/transcription.go164 // Step 2: Transcribe the generated audioCOMMENT
LOWcore/internal/llmtests/provider_feature_support_test.go901 // Step 1: Validate tools for providerCOMMENT
LOWcore/internal/llmtests/provider_feature_support_test.go911 // Step 2: Convert bifrost request → anthropic requestCOMMENT
256 more matches not shown…
Verbosity Indicators225 hits · 365 pts
SeverityFileLineSnippetContext
LOWui/app/workspace/mcp-logs/views/emptyState.tsx88# Step 1: Initialize OpenAI client with BifrostCOMMENT
LOWui/app/workspace/mcp-logs/views/emptyState.tsx94# Step 2: Send chat requestCOMMENT
LOWui/app/workspace/mcp-logs/views/emptyState.tsx100# Step 3: Check for tool callsCOMMENT
LOWui/app/workspace/mcp-logs/views/emptyState.tsx104 # Step 4: Execute tool via BifrostCOMMENT
LOWui/app/workspace/mcp-logs/views/emptyState.tsx117 # Step 5: Continue conversation with resultsCOMMENT
LOWui/app/workspace/mcp-logs/views/emptyState.tsx129// Step 1: Initialize OpenAI client with BifrostCOMMENT
LOWui/app/workspace/mcp-logs/views/emptyState.tsx135// Step 2: Send chat requestCOMMENT
LOWui/app/workspace/mcp-logs/views/emptyState.tsx143// Step 3: Check for tool callsCOMMENT
LOWui/app/workspace/mcp-logs/views/emptyState.tsx146 // Step 4: Execute tool via BifrostCOMMENT
LOWui/app/workspace/mcp-logs/views/emptyState.tsx160 // Step 5: Continue conversation with resultsCOMMENT
LOWcore/bifrost_test.go1811 // Step 1: isClosing() passes — queue is open.COMMENT
LOWcore/bifrost_test.go1824 // Step 2: enter the exact select guard used in production.COMMENT
LOWcore/bifrost_test.go2194 // Step 2: atomically replace — new producers now get newPqCOMMENT
LOWcore/bifrost_test.go2196 // Step 4: signal old closing — stale producers will detect thisCOMMENT
LOWcore/bifrost_test.go2432 // Step 2: expose newPq first so stale producers can re-route to itCOMMENT
LOWcore/bifrost_test.go2436 // Step 3: transfer buffered messages oldPq → newPq.COMMENT
LOWcore/bifrost_test.go2452 // Step 4: signal closing — producers holding a stale oldPq ref nowCOMMENT
LOWcore/bifrost.go3712 // Step 1: Load the ProviderQueue and verify provider existsCOMMENT
LOWcore/bifrost.go3719 // Step 2: Signal closing. Blocks new producers (isClosing() returns true) andCOMMENT
LOWcore/bifrost.go3724 // Step 3: Wait for all workers to finish in-flight requests and exit.COMMENT
LOWcore/bifrost.go3743 // Step 4: Remove the provider from the request queues.COMMENT
LOWcore/bifrost.go3746 // Step 5: Remove the provider from the wait groups.COMMENT
LOWcore/bifrost.go3749 // Step 6: Remove the provider from the providers slice.COMMENT
LOWcore/bifrost.go3824 // Step 1: Create provider instance before touching live routing state. IfCOMMENT
LOWcore/bifrost.go3831 // Step 2: Create new ProviderQueue and wait group with updated settings.COMMENT
LOWcore/bifrost.go3839 // Step 3: Atomically replace the provider in the providers slice before newCOMMENT
LOWcore/bifrost.go3955 // Step 6: Register cleanup before signalling the old queue. OtherwiseCOMMENT
LOWcore/bifrost.go3965 // Step 7: Signal the old queue is closing. Stale producers that still hold aCOMMENT
LOWcore/bifrost.go3970 // Step 8: Cleanup old workers asynchronously. Waiting here under the providerCOMMENT
LOWcore/bifrost.go6772 // Step 2: derive per-side capture and strip flags.COMMENT
LOWcore/bifrost.go6780 // Step 3: write all internal signals explicitly (never touch the user override keys).COMMENT
LOWcore/bifrost.go3882 // Step 4: Publish the new queue/wait group and start new workers before oldCOMMENT
LOWcore/bifrost.go3898 // Step 5: Transfer buffered requests from the old queue to the new queue BEFORECOMMENT
LOWcore/bifrost.go6748 // Step 1: compute effective value for each flag (provider config ← per-request override).COMMENT
LOWcore/providers/utils/models.go274 // Step 1: resolve name — collect all alias matches (or the raw ID if none match).COMMENT
LOWcore/providers/utils/models.go281 // Step 2: allowlist check.COMMENT
LOWcore/providers/utils/models.go297 // Step 3: blacklist check — blacklist always wins regardless of allowlist or aliases.COMMENT
LOWcore/providers/utils/utils_test.go353 // Step 1: Parse the error (like ParseOpenAIError does)COMMENT
LOWcore/providers/utils/utils_test.go366 // Step 2: Enrich with request (like providers do)COMMENT
LOWcore/providers/bedrock/bedrock_test.go2527 // Step 1: BedrockConverseRequest → BifrostResponsesRequestCOMMENT
LOWcore/providers/bedrock/bedrock_test.go2535 // Step 2: BifrostResponsesRequest → BedrockConverseRequestCOMMENT
LOWcore/providers/anthropic/serversidefallback_test.go134 // Step 1: Anthropic -> BifrostCOMMENT
LOWcore/providers/anthropic/serversidefallback_test.go155 // Step 2: Bifrost -> AnthropicCOMMENT
LOWcore/providers/anthropic/websearch_test.go183 // Step 1: output_item.addedCOMMENT
LOWcore/providers/anthropic/websearch_test.go199 // Step 2: FunctionCallArgumentsDelta events (should be skipped)COMMENT
LOWcore/providers/anthropic/websearch_test.go211 // Step 3: output_item.done with full accumulated argumentsCOMMENT
LOWcore/providers/anthropic/compaction_test.go598 // Step 1: Anthropic → BifrostCOMMENT
LOWcore/providers/anthropic/compaction_test.go629 // Step 2: Bifrost → AnthropicCOMMENT
LOWcore/providers/anthropic/anthropic.go1065 // So we need to check if the response.Usage is nil and then if usage != nilCOMMENT
LOWcore/providers/openai/realtime_test.go759 // Step 1: Parse the client event (same path as wsrealtime.go).COMMENT
LOWcore/providers/openai/realtime_test.go768 // Step 2: Convert back to provider format.COMMENT
LOWcore/providers/openai/realtime_test.go775 // Step 3: Verify the output JSON contains the audio field with correct value.COMMENT
LOWcore/providers/openai/openai.go685 // So we need to check if the response.Usage is nil and then if usage != nilCOMMENT
LOWcore/providers/openai/openai.go1405 // So we need to check if the response.Usage is nil and then if usage != nilCOMMENT
LOWcore/internal/mcptests/codemode_files_test.go626 // Step 1: List tool files (returns a tree structure as text)COMMENT
LOWcore/internal/mcptests/codemode_files_test.go646 // Step 2: Read a tool file using readToolFileCOMMENT
LOWcore/internal/mcptests/codemode_files_test.go666 // Step 3: Execute code that uses the toolsCOMMENT
LOWcore/internal/llmtests/transcription_stream.go71 // Step 1: Generate TTS audioCOMMENT
LOWcore/internal/llmtests/transcription_stream.go138 // Step 2: Test streaming transcriptionCOMMENT
LOWcore/internal/llmtests/transcription.go98 // Step 1: Generate TTS audioCOMMENT
165 more matches not shown…
AI Slop Vocabulary98 hits · 334 pts
SeverityFileLineSnippetContext
MEDIUMui/app/workspace/logs/views/logsVolumeChart.tsx264 // This is more robust than exact timestamp matchingCOMMENT
MEDIUMcore/providers/gemini/types.go882 // Live API, if `store_context` bool is specified, Gemini will leverage it to automaticallyCOMMENT
MEDIUMcore/providers/openai/openai.go3601 // Determine image index with robust tracking for interleaved chunksCOMMENT
MEDIUMcore/providers/openai/openai.go5207 // Determine image index with robust tracking for interleaved chunksCOMMENT
MEDIUMcore/network/http.go315 // RetryIfErr normally sees raw io.EOF; we match both to stay robust across versions.COMMENT
MEDIUMcore/internal/llmtests/test_retry_conditions.go37 // Check for textual content using the already robust GetResultContent functionCOMMENT
MEDIUMcore/schemas/plugin.go211// Plugin authors should ensure their hooks are robust to both response and error being nil, and should not assume eitheCOMMENT
MEDIUMframework/logstore/rdb.go371 // Use array overlap operator which can leverage the GIN index onCOMMENT
MEDIUMframework/logstore/rdb.go488 // Use @> containment operator to leverage GIN index on metadata::jsonb.COMMENT
MEDIUMplugins/semanticcache/plugin_embedding_test.go182 // minimum margin that's robust to seconds-level rounding + a slow CI.COMMENT
MEDIUMtransports/bifrost-http/.air.debug.toml29# Run binary via delve debugger in headless mode on port 2345COMMENT
MEDIUMtests/integrations/python/tests/test_google.py3633 # Generate one source image and reuse it to keep test robust/lightweight.COMMENT
MEDIUMtests/e2e/features/dashboard/pages/dashboard.page.ts36 // Chart cards - using data-testid for robust selectorsCOMMENT
MEDIUMscripts/bifrost-migration-cli/scripts/seed_models.sh3# seed_models.sh - seed the comprehensive model fixture into a running LiteLLMCOMMENT
MEDIUM.github/workflows/run-core-tests.yml76 # job log, corrupting the harness counters.COMMENT
MEDIUM.github/workflows/release-pipeline.yml272 # core build, then runs the provider harness (tests/e2e/api/collections/provider-harness.json)COMMENT
MEDIUM.github/workflows/release-pipeline.yml274 # .github/workflows/scripts/test-provider-harness.sh. The harness runs on theCOMMENT
MEDIUM.github/workflows/release-pipeline.yml279 # Gated on core alone. The provider harness only exercises core's providerCOMMENT
MEDIUM.github/workflows/release-pipeline.yml284 # harness. Every downstream release job already acceptsCOMMENT
MEDIUM.github/workflows/release-pipeline.yml287 # test-api-integrations and test-migrations. Matches test-cli-harness.COMMENT
MEDIUM.github/workflows/release-pipeline.yml772 # test-cli-harness's matrix below.COMMENT
MEDIUM.github/workflows/release-pipeline.yml780 # Must track test-cli-harness's gate exactly - this job exists only to buildCOMMENT
MEDIUM.github/workflows/release-pipeline.yml781 # that matrix, so running it when the harness is skipped resolves versionsCOMMENT
MEDIUM.github/workflows/release-pipeline.yml854 # tmp/cli-harness-<cli>.log and uploaded with the reports below.COMMENT
MEDIUM.github/workflows/release-pipeline.yml857 # Gated on core alone, matching test-core. What this harness actually coversCOMMENT
MEDIUM.github/workflows/release-pipeline.yml860 # accept `needs.test-cli-harness.result == 'skipped'`.COMMENT
MEDIUM.github/workflows/release-pipeline.yml55 # upstream provider: test-core (the ~90 minute provider harness) andCOMMENT
MEDIUM.github/workflows/release-pipeline.yml70 # nothing to do with that provider - not to get a red harness out the door.COMMENT
MEDIUM.github/workflows/release-pipeline.yml175 # cli-harness leg: `make build-ui` ~54s, `go build` on bifrost-http ~2m30s -COMMENT
MEDIUM.github/workflows/release-pipeline.yml178 # every build helper honours (harness-gateway.sh, test-api-integrations.sh,COMMENT
MEDIUM.github/workflows/release-pipeline.yml302 # 127.0.0.1:8080 is the bifrost-http binary the harness drives.COMMENT
MEDIUM.github/workflows/release-pipeline.yml449 # Additional vars the provider harness forwards to newman:COMMENT
MEDIUM.github/workflows/release-pipeline.yml460 # harness prints, turning "fail 141" into "fail ***4***". NotCOMMENT
MEDIUM.github/workflows/release-pipeline.yml486 # Publishes the provider harness's failure breakdown to R2 for the releaseCOMMENT
MEDIUM.github/workflows/release-pipeline.yml503 # cli-harness reports the changelog links alongside it.COMMENT
MEDIUM.github/workflows/release-pipeline.yml734 # test-provider-harness.sh), so reaching this job means three attempts failedCOMMENT
MEDIUM.github/workflows/release-pipeline.yml827 # CLI harness - installs the real Claude Code, Codex and OpenCode CLIs andCOMMENT
MEDIUM.github/workflows/release-pipeline.yml830 # narrow: one model per CLI and a core scenario set. See test-cli-harness.shCOMMENT
MEDIUM.github/workflows/release-pipeline.yml871 # The five run_cases invocations in test-cli-harness.sh each passCOMMENT
MEDIUM.github/workflows/release-pipeline.yml875 # harness artifacts too. Raised twice: 90 -> 120 when the opencode suite wasCOMMENT
MEDIUM.github/workflows/release-pipeline.yml894 # under XDG_CACHE_HOME - which the harness points at a fresh temp dirCOMMENT
MEDIUM.github/workflows/release-pipeline.yml987 # Bedrock, for the opencode-responses suite. The harness gateway seedsCOMMENT
MEDIUM.github/workflows/release-pipeline.yml1018 # in test-cli-harness.sh only apply if that job had to fall back.COMMENT
MEDIUM.github/workflows/release-pipeline.yml3455 # test-cli-harness publish their reports to. Unset means the changelogCOMMENT
MEDIUM.github/workflows/release-pipeline.yml3459 # The CLI harness legs that actually ran. Normally latest/latest-1/COMMENT
MEDIUM.github/workflows/scripts/push-mintlify-changelog.sh51# The URLs are derived from the version alone - test-core and test-cli-harnessCOMMENT
MEDIUM.github/workflows/scripts/push-mintlify-changelog.sh60# One row per CLI harness leg that actually ran.COMMENT
MEDIUM.github/workflows/scripts/push-mintlify-changelog.sh64# test-cli-harness then publishes to test-reports/v<version>/cli-harness-pinned/.COMMENT
MEDIUM.github/workflows/scripts/test-provider-harness.sh4# CI runner for the Bifrost provider harness (tests/e2e/api/collections/provider-harness.json).COMMENT
MEDIUM.github/workflows/scripts/test-provider-harness.sh6# Local developers run `make run-provider-harness-test`, which auto-starts BifrostCOMMENT
MEDIUM.github/workflows/scripts/test-provider-harness.sh10# 1. builds the UI + the bifrost-http binary (the harness needs a live gateway),COMMENT
MEDIUM.github/workflows/scripts/test-provider-harness.sh16# 5. delegates to `make run-provider-harness-test CI=1 USE_INFISICAL=0`, whichCOMMENT
MEDIUM.github/workflows/scripts/test-provider-harness.sh18# runs harness-monitor.mjs in append-only --ci mode.COMMENT
MEDIUM.github/workflows/scripts/test-provider-harness.sh20# Exit code is the harness exit code, so a provider failure fails the job.COMMENT
MEDIUM.github/workflows/scripts/test-provider-harness.sh48# shellcheck source=./harness-gateway.shCOMMENT
MEDIUM.github/workflows/scripts/test-provider-harness.sh186# without this, the provider harness ships no HTML at all while the CLI harnessCOMMENT
MEDIUM.github/workflows/scripts/test-provider-harness.sh187# does. harness-viewer.mjs already renders exactly this JSON for local use, soCOMMENT
MEDIUM.github/workflows/scripts/test-provider-harness.sh203 # points at provider-harness/index.html unconditionally, and the upload stepCOMMENT
MEDIUM.github/workflows/scripts/test-provider-harness.sh226 echo "## Provider harness failure breakdown"CODE
MEDIUM.github/workflows/scripts/resolve-cli-versions.sh4# Resolves the last three published versions of each coding CLI the harnessCOMMENT
38 more matches not shown…
Hyper-Verbose Identifiers233 hits · 194 pts
SeverityFileLineSnippetContext
LOWui/app/pprof/page.tsx78function loadSkippedGoroutineFiles(): Set<string> {CODE
LOWui/app/pprof/page.tsx88function saveSkippedGoroutineFiles(skipped: Set<string>): void {CODE
LOW…/components/guardrails/guardrailsConfigurationView.tsx4export default function GuardrailsConfigurationView() {CODE
LOW…ponents/large-payload/largePayloadSettingsFragment.tsx9export default function LargePayloadSettingsFragment(_props: LargePayloadSettingsFragmentProps) {CODE
LOW…/prompt-deployments/promptDeploymentsAccordionItem.tsx8export function PromptDeploymentsAccordionItem({ activeSection }: { activeSection: SettingsSidebarSection | undefined })CODE
LOW…cks/enterprise/lib/store/utils/baseQueryWithRefresh.ts10export function createBaseQueryWithRefresh(baseQuery: BaseQueryFn): BaseQueryFn {CODE
LOWui/app/workspace/scim/oauth-discover-callback/page.tsx3export default function OAuthDiscoverCallbackPage() {CODE
LOWui/app/workspace/complexity-router/page.tsx157function preventNegativeBoundaryKey(event: KeyboardEvent<HTMLInputElement>) {CODE
LOWui/app/workspace/complexity-router/page.tsx163function preventNegativeBoundaryPaste(event: ClipboardEvent<HTMLInputElement>) {CODE
LOWui/app/workspace/complexity-router/page.tsx169function preventNegativeBoundaryDrop(event: DragEvent<HTMLInputElement>) {CODE
LOWui/app/workspace/guardrails/configuration/page.tsx3export default function GuardrailsConfigurationPage() {CODE
LOW…orkspace/plugins/dialogs/confirmDeletePluginDialog.tsx22export default function ConfirmDeletePluginDialog({ show, onCancel, onDelete, plugin }: Props) {CODE
LOW…app/workspace/providers/fragments/deploymentsTable.tsx340function UseAnthropicEndpointsToggleSection({ config, onChange, disabled, providerName }: ProviderSectionProps & { proviCODE
LOWui/app/workspace/providers/routing-rules/page.tsx3export default function ProvidersRoutingRulesPage() {CODE
LOW…kspace/providers/dialogs/addNewCustomProviderSheet.tsx42export function AddCustomProviderSheetContent({ show = true, onClose, onSave }: AddCustomProviderSheetContentProps) {CODE
LOW…pace/providers/dialogs/confirmDeleteProviderDialog.tsx23export default function ConfirmDeleteProviderDialog({ show, onCancel, onDelete, provider }: Props) {CODE
LOW…rkspace/providers/views/modelProviderKeysTableView.tsx91export default function ModelProviderKeysTableView({ provider, className, headerActions, isKeyless }: Props) {CODE
LOW…rkspace/providers/views/modelProviderKeysTableView.tsx120 async function handleRefreshProviderModels() {CODE
LOWui/app/workspace/adaptive-routing/settings/page.tsx3export default function AdaptiveRoutingSettingsPage() {CODE
LOW…ustom-pricing/overrides/scopedPricingOverridesView.tsx33function PricingOverrideActionsMenu({CODE
LOW…ustom-pricing/overrides/scopedPricingOverridesView.tsx178export default function ScopedPricingOverridesView() {CODE
LOW…ustom-pricing/overrides/pricingOverridesEmptyState.tsx10export function PricingOverridesEmptyState({ onCreateClick }: PricingOverridesEmptyStateProps) {CODE
LOWui/app/workspace/custom-pricing/overrides/page.tsx3export default function ScopedPricingOverridesPage() {CODE
LOW…ard/components/charts/externalCacheTokenMeterChart.tsx16function ExternalCacheTokenMeterChartImpl({ data }: ExternalCacheTokenMeterChartProps) {CODE
LOW…ashboard/components/charts/providerThroughputChart.tsx81function ProviderThroughputChartImpl({ data, chartType, startTime, endTime, selectedProvider }: ProviderThroughputChartPCODE
LOW…hboard/components/charts/localCacheTokenMeterChart.tsx13function LocalCacheTokenMeterChartImpl({ data }: LocalCacheTokenMeterChartProps) {CODE
LOW…/mcp-registry/library/views/mcpLibraryServersTable.tsx190export function MCPLibraryServersTableSkeleton({ rows = 8 }: { rows?: number }) {CODE
LOW…ce/mcp-registry/library/views/mcpLibraryServerCard.tsx228export function MCPLibraryServerCardSkeleton() {CODE
LOW…p/workspace/mcp-registry/views/mcpClientFormFields.tsx87export function useMCPClientFormSatellites(): MCPClientFormSatellites {CODE
LOW…p/workspace/mcp-registry/views/mcpClientFormFields.tsx153export function getHeadersValidationError(CODE
LOWui/app/workspace/mcp-registry/views/mcpClientSheet.tsx60function toolSyncIntervalToMinutes(v: number | undefined | null): number {CODE
LOWui/app/workspace/mcp-registry/views/mcpClientSheet.tsx69function toolExecutionTimeoutToSeconds(v: string | number | undefined | null): number {CODE
LOW…pp/workspace/mcp-registry/views/mcpUsageGuide/utils.ts68export function isClientAllowedForVirtualKey(client: MCPClient, virtualKey: VirtualKey): boolean {CODE
LOW…/mcpUsageGuide/harnesses/antigravityHarnessInstall.tsx13export function AntigravityHarnessInstall({CODE
LOWui/app/workspace/mcp-registry/oauth-callback/page.tsx15export default function MCPRegistryOAuthCallbackPage() {CODE
LOWui/app/workspace/logs/sheets/logDetailView.utils.ts15export function resolveRawJsonNoticeState({CODE
LOW…p/workspace/logs/sheets/observabilitySettingsSheet.tsx9export function ObservabilitySettingsSheet({ open, onOpenChange }: ObservabilitySettingsSheetProps) {CODE
LOWui/app/workspace/logs/views/logsHeaderView.tsx448function parseRecalculateCostStreamError(data: string): Error {CODE
LOWui/app/workspace/logs/views/columns.tsx86function getAssistantToolCallSummary(log?: LogEntry): string {CODE
LOWui/app/workspace/governance/business-units/page.tsx3export default function GovernanceBusinessUnitsPage() {CODE
LOWui/app/workspace/governance/virtual-keys/page.tsx14export default function GovernanceVirtualKeysPage() {CODE
LOWui/app/workspace/mcp-sessions/auth-success/page.tsx3export default function MCPSessionsAuthSuccessPage() {CODE
LOWui/app/workspace/mcp-sessions/auth-failed/page.tsx4export default function MCPSessionsAuthFailedPage() {CODE
LOWui/components/devProfiler.tsx85function loadSkippedGoroutineFiles(): Set<string> {CODE
LOWui/components/devProfiler.tsx96function saveSkippedGoroutineFiles(skipped: Set<string>): void {CODE
LOWui/components/budgetOverrideManagerDialog.tsx45export function BudgetOverrideManagerDialog({CODE
LOWui/components/notificationCenter.utils.ts11export function isNotificationsUnavailable(error: unknown): boolean {CODE
LOWui/components/notificationCenter.utils.ts27export function shouldHideNotificationTrigger({ open, isLoading }: { open: boolean; isLoading: boolean }): boolean {CODE
LOWui/lib/budgetOutline.ts69export function hasDuplicateBudgetPeriods(lines: { reset_duration?: string }[] | undefined): boolean {CODE
LOWui/lib/message/variables.ts26export function extractVariablesFromMessages(messages: Message[]): string[] {CODE
LOWui/lib/message/variables.ts56export function replaceVariablesInMessages(messages: Message[], variables: VariableMap): Message[] {CODE
LOWui/lib/utils/governance.ts73function snapToCalendarPeriodStart(date: Date, unit: string): void {CODE
LOWui/lib/utils/governance.ts97export function getBudgetOverrideValidUntil(CODE
LOWui/lib/utils/validation.ts208export function getPasswordPolicyFailures(password?: string, isUnchanged = false): string[] {CODE
LOWui/lib/utils/validation.ts232export function isValidVertexAuthCredentials(value: string): boolean {CODE
LOWui/lib/utils/celConverterRouting.ts332export function validateRateLimitAndBudgetRules(ruleGroup: RuleGroupType | undefined): string[] {CODE
LOWui/lib/utils/responsesItems.ts59export function extractResponsesItemPayload(msg: ResponsesMessage): Record<string, unknown> | undefined {CODE
LOWui/lib/utils/responsesItems.ts71export function summarizeResponsesToolCall(msg: ResponsesMessage, mapping?: Record<string, string>): string | undefined CODE
LOWui/lib/utils/routingRuleGroupQuery.ts20export function normalizeRoutingRuleGroupQuery(q: unknown): RuleGroupType {CODE
LOWui/lib/utils/versionSkew.ts204export function installVersionSkewListeners(): void {CODE
173 more matches not shown…
Excessive Try-Catch Wrapping206 hits · 168 pts
SeverityFileLineSnippetContext
LOWtests/load_test_parameter_ordering.sh635except Exception as e:CODE
LOWtests/integrations/python/README.md1019 except Exception as e:CODE
LOWtests/integrations/python/README.md1384 except Exception as e:CODE
MEDIUMtests/integrations/python/README.md1385 print(f"Error extracting tool calls: {e}")CODE
LOWtests/integrations/python/README.md1494 except Exception as e:CODE
LOWtests/integrations/python/run_integration_tests.py101 except Exception as e:CODE
LOWtests/integrations/python/run_all_tests.py155 except Exception as e:CODE
LOWtests/integrations/python/run_all_tests.py207 except Exception as e:CODE
MEDIUMtests/integrations/python/run_all_tests.py318 print(f"Error: Unknown integration '{args.integration}'")STRING
MEDIUMtests/integrations/python/tests/test_anthropic.py4299def test_11_file_upload_and_container_upload(self, files_beta_client):CODE
LOWtests/integrations/python/tests/test_anthropic.py975 except Exception as e:CODE
LOWtests/integrations/python/tests/test_anthropic.py978 except Exception as e:CODE
LOWtests/integrations/python/tests/test_anthropic.py1040 except Exception as e:CODE
LOWtests/integrations/python/tests/test_anthropic.py1043 except Exception as e:CODE
LOWtests/integrations/python/tests/test_anthropic.py1097 except Exception as e:CODE
LOWtests/integrations/python/tests/test_anthropic.py1167 except Exception as download_error:CODE
LOWtests/integrations/python/tests/test_anthropic.py1185 except Exception as e:CODE
LOWtests/integrations/python/tests/test_anthropic.py1188 except Exception as e:CODE
LOWtests/integrations/python/tests/test_anthropic.py1245 except Exception as e:CODE
LOWtests/integrations/python/tests/test_anthropic.py1323 except Exception:CODE
LOWtests/integrations/python/tests/test_anthropic.py1371 except Exception as e:CODE
LOWtests/integrations/python/tests/test_anthropic.py1415 except Exception as results_error:CODE
LOWtests/integrations/python/tests/test_anthropic.py1430 except Exception:CODE
LOWtests/integrations/python/tests/test_anthropic.py1433 except Exception as e:CODE
LOWtests/integrations/python/tests/test_anthropic.py1509 except Exception as e:CODE
LOWtests/integrations/python/tests/test_anthropic.py2763 except Exception as e:CODE
LOWtests/integrations/python/tests/test_anthropic.py4325 except Exception as e:CODE
LOWtests/integrations/python/tests/test_anthropic.py4327 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py3159 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py3686 except Exception:CODE
LOWtests/integrations/python/tests/test_openai.py3853 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py3944 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py3950 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py357 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py843 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py1011 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py1178 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py1223 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py1265 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py1299 except Exception as base64_error:CODE
LOWtests/integrations/python/tests/test_openai.py1302 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py1764 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py2348 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py2485 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py2961 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py3014 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py3061 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py3221 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py3259 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py3263 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py3338 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py3343 except Exception as e:CODE
LOWtests/integrations/python/tests/test_openai.py3417 except Exception:CODE
LOWtests/integrations/python/tests/test_openai.py3455 except Exception:CODE
LOWtests/integrations/python/tests/test_openai.py3460 except Exception:CODE
LOWtests/integrations/python/tests/test_openai.py3529 except Exception:CODE
LOWtests/integrations/python/tests/test_openai.py3534 except Exception:CODE
LOWtests/integrations/python/tests/test_openai.py3580 except Exception:CODE
LOWtests/integrations/python/tests/test_openai.py3617 except Exception:CODE
LOWtests/integrations/python/tests/test_openai.py3762 except Exception as e:CODE
146 more matches not shown…
Redundant / Tautological Comments118 hits · 155 pts
SeverityFileLineSnippetContext
LOWcore/internal/mcptests/codemode_files_test.go422# Check if TestCodeModeServer exists and has methodsCOMMENT
LOWtests/integrations/python/run_integration_tests.py49 # Check if test file existsCOMMENT
LOWtests/integrations/python/run_integration_tests.py83 # Print resultsCOMMENT
LOWtests/integrations/python/tests/test_anthropic.py611 # Check if response is approximately 5 words (allow some flexibility)COMMENT
LOWtests/integrations/python/tests/test_anthropic.py2675 # Check if cache was writtenCOMMENT
LOWtests/integrations/python/tests/test_anthropic.py2708 # Check if cache was readCOMMENT
LOWtests/integrations/python/tests/test_anthropic.py3541 # Check if compaction triggered a pauseCOMMENT
LOWtests/integrations/python/tests/test_anthropic.py3671 # Check if compaction occurredCOMMENT
LOWtests/integrations/python/tests/test_openai.py684 # Check if response is approximately 5 words (allow some flexibility)COMMENT
LOWtests/integrations/python/tests/test_openai.py2389 # Check if we have a reasoning message typeCOMMENT
LOWtests/integrations/python/tests/test_langchain.py1308 # Check if usage metadata is available (Gemini-specific)COMMENT
LOWtests/integrations/python/tests/test_bedrock.py476 # Check if response has contentCOMMENT
LOWtests/integrations/python/tests/test_bedrock.py790 # Check if response has contentCOMMENT
LOWtests/integrations/python/tests/test_bedrock.py915 # Check if response is approximately 5 words (allow some flexibility)COMMENT
LOWtests/integrations/python/tests/test_azure.py568 # Check if response is approximately 5 words (allow some flexibility)COMMENT
LOWtests/integrations/python/tests/test_azure.py1545 # Check if we have a reasoning message typeCOMMENT
LOWtests/integrations/python/tests/test_google.py609 # Check if function call was made (Google GenAI might return function calls)COMMENT
LOWtests/integrations/python/tests/test_google.py633 # Check if function calls were madeCOMMENT
LOWtests/integrations/python/tests/test_google.py658 # Check if function call was madeCOMMENT
LOWtests/integrations/python/tests/test_google.py696 # Check if function calls were madeCOMMENT
LOWtests/integrations/python/tests/utils/common.py3411 # Check if domain matches any blocked patternCOMMENT
LOWtests/integrations/python/tests/utils/common.py1514 # Check if it's an OpenAI-style response objectCOMMENT
LOWtests/integrations/python/tests/utils/common.py1530 # Check if usage information is presentCOMMENT
LOWtests/integrations/python/tests/utils/common.py1548 # Check if it's a direct list (embedding vector)COMMENT
LOWtests/integrations/python/tests/utils/common.py1570 # Check if it's an OpenAI-style response objectCOMMENT
LOWtests/integrations/python/tests/utils/common.py1600 # Check if it's a direct list of embeddingsCOMMENT
LOWtests/integrations/python/tests/utils/common.py2711 # Check if this is a LangChain AIMessage objectCOMMENT
LOWtests/integrations/python/tests/utils/common.py2753 # Check if we have a reasoning message typeCOMMENT
LOWtests/integrations/python/tests/utils/common.py3396 # Check if domain matches any allowed patternCOMMENT
LOWtests/e2e/api/setup-mcp.sh14# Check if MCP server is already listening on 3001 (e.g. from a previous run)COMMENT
LOWtests/e2e/api/setup-plugin.sh15# Check if plugin source existsCOMMENT
LOWtests/e2e/api/runners/run-newman-api-tests.sh40# Check if Newman is installedCOMMENT
LOWtests/e2e/api/runners/run-newman-api-tests.sh47# Check if collection existsCOMMENT
LOWtests/e2e/api/runners/run-newman-inference-tests.sh56# Check if Newman is installedCOMMENT
LOWtests/e2e/api/runners/run-newman-inference-tests.sh63# Check if collection existsCOMMENT
LOW…e/api/runners/individual/run-newman-vk-expiry-tests.sh69# Check if Newman is installedCOMMENT
LOW…e/api/runners/individual/run-newman-vk-expiry-tests.sh76# Check if collection existsCOMMENT
LOW…i/runners/individual/run-newman-bedrock-integration.sh55# Check if Newman is installedCOMMENT
LOW…i/runners/individual/run-newman-bedrock-integration.sh62# Check if collection existsCOMMENT
LOW…i/runners/individual/run-newman-bedrock-integration.sh68# Check if environment existsCOMMENT
LOW…i/runners/individual/run-newman-bedrock-integration.sh273 # Check if we're entering a JSON blockCOMMENT
LOW…i/runners/individual/run-newman-bedrock-integration.sh287 # Check if we're exiting a JSON blockCOMMENT
LOW…pi/runners/individual/run-newman-openai-integration.sh57# Check if Newman is installedCOMMENT
LOW…pi/runners/individual/run-newman-openai-integration.sh64# Check if collection existsCOMMENT
LOW…pi/runners/individual/run-newman-openai-integration.sh70# Check if environment existsCOMMENT
LOW…pi/runners/individual/run-newman-openai-integration.sh276 # Check if we're entering a JSON blockCOMMENT
LOW…pi/runners/individual/run-newman-openai-integration.sh290 # Check if we're exiting a JSON blockCOMMENT
LOW…runners/individual/run-newman-composite-integration.sh56# Check if Newman is installedCOMMENT
LOW…runners/individual/run-newman-composite-integration.sh63# Check if collection existsCOMMENT
LOW…runners/individual/run-newman-composite-integration.sh69# Check if environment existsCOMMENT
LOW…runners/individual/run-newman-composite-integration.sh259 # Check if we're entering a JSON blockCOMMENT
LOW…runners/individual/run-newman-composite-integration.sh273 # Check if we're exiting a JSON blockCOMMENT
LOW…runners/individual/run-newman-anthropic-integration.sh55# Check if Newman is installedCOMMENT
LOW…runners/individual/run-newman-anthropic-integration.sh62# Check if collection existsCOMMENT
LOW…runners/individual/run-newman-anthropic-integration.sh68# Check if environment existsCOMMENT
LOW…runners/individual/run-newman-anthropic-integration.sh259 # Check if we're entering a JSON blockCOMMENT
LOW…runners/individual/run-newman-anthropic-integration.sh273 # Check if we're exiting a JSON blockCOMMENT
LOW…e2e/api/runners/individual/run-newman-vk-auth-tests.sh76# Check if Newman is installedCOMMENT
LOW…e2e/api/runners/individual/run-newman-vk-auth-tests.sh83# Check if collection existsCOMMENT
LOWdocs/openapi/bundle.py175 # Check if this resolves to a registered componentCOMMENT
58 more matches not shown…
Cross-File Repetition19 hits · 95 pts
SeverityFileLineSnippetContext
HIGHtests/integrations/python/tests/test_anthropic.py0test case 1: simple chat interaction - runs across all available providersSTRING
HIGHtests/integrations/python/tests/test_openai.py0test case 1: simple chat interaction - runs across all available providersSTRING
HIGHtests/integrations/python/tests/test_google.py0test case 1: simple chat interaction - runs across all available providersSTRING
HIGHtests/integrations/python/tests/test_anthropic.py0test case 4: multiple tool calls in one response - auto-skips providers without tool modelSTRING
HIGHtests/integrations/python/tests/test_openai.py0test case 4: multiple tool calls in one response - auto-skips providers without tool modelSTRING
HIGHtests/integrations/python/tests/test_google.py0test case 4: multiple tool calls in one response - auto-skips providers without tool modelSTRING
HIGHtests/integrations/python/tests/test_anthropic.py0test case 5: complete tool calling flow with responsesSTRING
HIGHtests/integrations/python/tests/test_openai.py0test case 5: complete tool calling flow with responsesSTRING
HIGHtests/integrations/python/tests/test_litellm.py0test case 5: complete tool calling flow with responsesSTRING
HIGHtests/integrations/python/tests/test_google.py0test case 5: complete tool calling flow with responsesSTRING
HIGHtests/integrations/python/tests/test_anthropic.py0test case 10: complex end-to-end with conversation, images, and toolsSTRING
HIGHtests/integrations/python/tests/test_openai.py0test case 10: complex end-to-end with conversation, images, and toolsSTRING
HIGHtests/integrations/python/tests/test_litellm.py0test case 10: complex end-to-end with conversation, images, and toolsSTRING
HIGHtests/integrations/python/tests/test_azure.py0test case 10: complex end-to-end with conversation, images, and toolsSTRING
HIGHtests/integrations/python/tests/test_google.py0test case 10: complex end-to-end with conversation, images, and toolsSTRING
HIGH…i/runners/individual/run-newman-bedrock-integration.sh0format json using jq if available, otherwise use python's json moduleSTRING
HIGH…pi/runners/individual/run-newman-openai-integration.sh0format json using jq if available, otherwise use python's json moduleSTRING
HIGH…runners/individual/run-newman-composite-integration.sh0format json using jq if available, otherwise use python's json moduleSTRING
HIGH…runners/individual/run-newman-anthropic-integration.sh0format json using jq if available, otherwise use python's json moduleSTRING
Fake / Example Data83 hits · 90 pts
SeverityFileLineSnippetContext
LOWui/lib/notifications/preferences.test.ts18 expect(notificationPreferenceKey("user@example.com")).toContain("user%40example.com");CODE
LOW…re/providers/gemini/list_models_single_payload_test.go50 key := schemas.Key{Value: *schemas.NewSecretVar("dummy-key")}CODE
LOWcore/providers/gemini/fileupload_test.go29 if got := r.Header.Get("x-goog-api-key"); got != "dummy-key" {CODE
LOWcore/providers/gemini/fileupload_test.go109 key := schemas.Key{Value: *schemas.NewSecretVar("dummy-key")}CODE
LOWcore/providers/gemini/passthrough_test.go51 key := schemas.Key{Value: *schemas.NewSecretVar("dummy-key")}CODE
LOWcore/providers/gemini/passthrough_test.go67 assert.Equal(t, "dummy-key", sawAPIKeyOnRedirect, "api key must survive onto the redirect hop")CODE
LOWcore/providers/bedrock/bedrock_test.go6341 Input: json.RawMessage(`{"name":"John Doe","age":28,"city":"Pune"}`),CODE
LOWcore/providers/bedrock/bedrock_test.go6376 Input: json.RawMessage(`{"name":"John Doe","age":28,"city":"Pune"}`),CODE
LOWframework/encrypt/encrypt_test.go41 plaintext: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et doCODE
LOWframework/encrypt/encrypt_test.go41 plaintext: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et doCODE
LOWtransports/bifrost-http/lib/validator_test.go476 "name": "Acme Corp"CODE
LOWtransports/bifrost-http/lib/validator_test.go494 "name": "Acme Corp"CODE
LOWtests/integrations/python/dummy-gcp-credentials.json4 "private_key_id": "dummy-key-id-12345",CODE
LOWtests/integrations/python/tests/test_pydanticai.py517 api_key="dummy-key"CODE
LOWtests/integrations/python/tests/test_cohere.py48 api_key=os.getenv("COHERE_API_KEY", "dummy-key"),CODE
LOWtests/integrations/python/tests/test_langchain.py991 api_key="dummy-key", # Keys managed by BifrostCODE
LOWtests/integrations/python/tests/test_langchain.py1021 api_key="dummy-key",CODE
LOWtests/integrations/python/tests/test_langchain.py1169 api_key="dummy-key",CODE
LOWtests/integrations/python/tests/test_langchain.py1205 api_key="dummy-key",CODE
LOWtests/integrations/python/tests/test_langchain.py1255 api_key="dummy-key",CODE
LOWtests/integrations/python/tests/test_langchain.py1293 api_key="dummy-key",CODE
LOWtests/integrations/python/tests/test_langchain.py1402 api_key="dummy-key",CODE
LOWtests/integrations/python/tests/test_langchain.py1433 api_key="dummy-key",CODE
LOWtests/integrations/python/tests/test_langchain.py1468 api_key="dummy-key",CODE
LOWtests/integrations/python/tests/test_langchain.py1738 cohere_api_key=os.getenv("COHERE_API_KEY", "dummy-key"),CODE
LOWtests/integrations/typescript/tests/test-azure.test.ts132 const apiKey = hasApiKey('azure') ? getApiKey('azure') : 'dummy-key'CODE
LOWtests/integrations/typescript/tests/test-openai.test.ts129 const apiKey = hasApiKey('openai') ? getApiKey('openai') : 'dummy-key'CODE
LOWtests/integrations/typescript/tests/test-google.test.ts81 const apiKey = hasApiKey('gemini') ? getApiKey('gemini') : 'dummy-key'CODE
LOW…s/integrations/typescript/tests/test-anthropic.test.ts102 const apiKey = hasApiKey('anthropic') ? getApiKey('anthropic') : 'dummy-key'CODE
LOW…s/integrations/typescript/tests/test-langchain.test.ts53 const apiKey = hasApiKey('openai') ? getApiKey('openai') : 'dummy-key'CODE
LOW…s/integrations/typescript/tests/test-langchain.test.ts70 const apiKey = hasApiKey('anthropic') ? getApiKey('anthropic') : 'dummy-key'CODE
LOW…s/integrations/typescript/tests/test-langchain.test.ts84 const apiKey = hasApiKey('gemini') ? getApiKey('gemini') : 'dummy-key'CODE
LOW…s/integrations/typescript/tests/test-langchain.test.ts213 const apiKey = hasApiKey('openai') ? getApiKey('openai') : 'dummy-key'CODE
LOW…s/integrations/typescript/tests/test-langchain.test.ts383 const apiKey = hasApiKey('anthropic') ? getApiKey('anthropic') : 'dummy-key'CODE
LOW…s/integrations/typescript/tests/test-langchain.test.ts735 const apiKey = hasApiKey('openai') ? getApiKey('openai') : 'dummy-key'CODE
LOW…s/integrations/typescript/tests/test-langchain.test.ts777 const apiKey = hasApiKey('anthropic') ? getApiKey('anthropic') : 'dummy-key'CODE
LOW…s/integrations/typescript/tests/test-langchain.test.ts817 const apiKey = hasApiKey('gemini') ? getApiKey('gemini') : 'dummy-key'CODE
LOWtests/governance/providerbudget_test.go76 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/providerbudget_test.go76 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/providerbudget_test.go82 "Mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/providerbudget_test.go82 "Mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/providerbudget_test.go166 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/providerbudget_test.go166 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/providerbudget_test.go172 "Mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/providerbudget_test.go172 "Mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/teambudget_test.go85 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/teambudget_test.go85 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/teambudget_test.go91 "Mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/teambudget_test.go91 "Mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/customerbudget_test.go85 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/customerbudget_test.go85 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/customerbudget_test.go91 "Mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/customerbudget_test.go91 "Mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/customerbudget_test.go261 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/customerbudget_test.go261 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/customerbudget_test.go267 "Mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/customerbudget_test.go267 "Mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/edgecases_test.go115 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/edgecases_test.go115 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWtests/governance/edgecases_test.go121 "Mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
23 more matches not shown…
Modern AI Meta-Vocabulary31 hits · 76 pts
SeverityFileLineSnippetContext
MEDIUMAGENTS.md46│ │ ├── agent.go # Agent orchestration loop (multi-turn tool calling)CODE
MEDIUMAGENTS.md270├── <name>.go # Controller: constructor, interface methods, HTTP orchestrationCODE
MEDIUM…/components/guardrails/guardrailsConfigurationView.tsx12 readmeLink="https://docs.getbifrost.ai/enterprise/guardrails"CODE
MEDIUM…prise/components/guardrails/guardrailsProviderView.tsx12 readmeLink="https://docs.getbifrost.ai/enterprise/guardrails"CODE
MEDIUMcore/providers/bedrock/types.go205 GuardContent *BedrockGuardContent `json:"guardContent,omitempty"` // Guard content for guardrailsCODE
MEDIUMcore/providers/bedrock/types.go229 // Guard content (for guardrails)COMMENT
MEDIUMcore/providers/bedrock/types.go349// BedrockGuardContent represents guard content for guardrailsCOMMENT
MEDIUMcore/providers/bedrock/types.go363// BedrockGuardContentText represents text content for guardrailsCOMMENT
MEDIUMcore/providers/anthropic/types.go376// AnthropicTaskBudget represents an advisory token budget for a full agentic loop (output_config.task_budget).COMMENT
MEDIUMcore/providers/anthropic/types.go382 Total int `json:"total"` // total advisory token budget across the agentic loopCODE
MEDIUMcore/providers/anthropic/types.go1171// AnthropicToolCallerType identifies which agentic caller produced a toolCOMMENT
MEDIUMcore/network/http.go30 // ClientPurposeAPI is used for general API requests (guardrails, etc.)COMMENT
MEDIUMcore/schemas/responses.go1968// server_tool_use / *_tool_result blocks. It links a tool call to the agenticCOMMENT
MEDIUMcore/schemas/responses.go2030 // Caller links this call to the agentic caller that produced it (programmaticCOMMENT
MEDIUMcore/schemas/redaction.go19// RedactionData carries request-scoped redaction data from guardrails to log and trace sinks.COMMENT
MEDIUMcore/schemas/bifrost.go352 BifrostContextKeyGuardrailDebug BifrostContextKey = "bifrost-guardrail-debug" CODE
MEDIUMcore/schemas/bifrost.go354 BifrostContextKeyRedactionData BifrostContextKey = "bifrost-redaction-data" CODE
MEDIUMtests/integrations/python/config.yml893 max_tokens: 32000 # 32k token context window for TTSCODE
MEDIUMtests/integrations/python/config.yml907 max_tokens: 32000 # 32k token context window for TTSCODE
MEDIUMtests/integrations/python/tests/test_anthropic.py740 max_tokens=4000, # Reduced to prevent token limit errors for smaller context window modelsCODE
MEDIUMtests/integrations/typescript/config.yml893 max_tokens: 32000 # 32k token context window for TTSCODE
MEDIUMtests/integrations/typescript/config.yml907 max_tokens: 32000 # 32k token context window for TTSCODE
MEDIUMexamples/k8s/enterprise/values-guardrails.yaml1# Enterprise overlay: guardrails documentation sample.COMMENT
MEDIUMexamples/k8s/enterprise/values-guardrails.yaml99 endpoint: "https://example-guardrails.cognitiveservices.azure.com/"CODE
MEDIUMexamples/k8s/enterprise/values-guardrails.yaml115 endpoint: "https://example-guardrails.cognitiveservices.azure.com/"CODE
MEDIUMexamples/k8s/enterprise/values-guardrails.yaml133 endpoint: "https://example-guardrails.cognitiveservices.azure.com/"CODE
MEDIUMexamples/k8s/enterprise/values-guardrails.yaml227 endpoint: "https://example-guardrails.cognitiveservices.azure.com/"CODE
MEDIUMexamples/k8s/enterprise/README.md34## Add enterprise guardrails overlayCOMMENT
MEDIUM…s/bifrost-migration-cli/scripts/create_virtual_keys.sh245# --- Case 26: guardrails ---------------------------------------------------COMMENT
MEDIUMscripts/bifrost-migration-cli/scripts/create_teams.sh211# --- Case 18: guardrails (enterprise) --------------------------------------COMMENT
MEDIUMhelm-charts/bifrost/values.yaml1203 # provider_config_ids: [1] # Links this rule to guardrails.providers[].id aboveCOMMENT
Self-Referential Comments17 hits · 49 pts
SeverityFileLineSnippetContext
MEDIUMcore/mcp/codemode/starlark/getdocs.go153 sb.WriteString("# This file contains Python documentation for a specific tool on this MCP server.\n")CODE
MEDIUMcore/mcp/codemode/starlark/getdocs.go155 sb.WriteString("# This file contains Python documentation for all tools available on this MCP server.\n")CODE
MEDIUMtests/integrations/python/tests/test_pydanticai.py390 # Define a tool that we'll manually executeCOMMENT
MEDIUMtests/integrations/python/tests/test_bedrock.py1514 # Create a job to cancelCOMMENT
MEDIUMtests/integrations/python/tests/test_google.py262 # Create a function declaration dictionary with lowercase typesCOMMENT
MEDIUMtests/integrations/python/tests/test_google.py279 # Create a Tool object containing the function declarationCOMMENT
MEDIUMtests/integrations/python/tests/test_google.py314 # Create a white backgroundCOMMENT
MEDIUMtests/integrations/python/tests/test_google.py1953 # Define a Pydantic model for structured outputCOMMENT
MEDIUMtests/integrations/python/tests/utils/common.py51 # Create a simple red imageCOMMENT
MEDIUMexamples/k8s/enterprise/values-scim.yaml2# This file is SAFE-BY-DEFAULT (scim.enabled=false) so placeholder valuesCOMMENT
MEDIUM.github/workflows/scripts/test-bifrost-http.sh199 # Create a temporary log file for server outputCOMMENT
MEDIUM…-charts/bifrost/values-examples/postgres-weaviate.yaml68 # Create the secret with: kubectl create secret generic bifrost-semantic-cache --from-literal=openai-key=sk-YOUR_OCOMMENT
MEDIUMhelm-charts/bifrost/values-examples/production-ha.yaml91 # Create the secret with: kubectl create secret generic bifrost-encryption --from-literal=key=YOUR_ENCRYPTION_KEYCOMMENT
MEDIUMhelm-charts/bifrost/values-examples/production-ha.yaml126 # Create the secret with: kubectl create secret generic bifrost-semantic-cache --from-literal=openai-key=sk-YOUR_OCOMMENT
MEDIUMhelm-charts/bifrost/values-examples/sqlite-qdrant.yaml55 # Create the secret with: kubectl create secret generic bifrost-semantic-cache --from-literal=openai-key=sk-YOUR_OCOMMENT
MEDIUM…lm-charts/bifrost/values-examples/sqlite-weaviate.yaml56 # Create the secret with: kubectl create secret generic bifrost-semantic-cache --from-literal=openai-key=sk-YOUR_OCOMMENT
MEDIUMhelm-charts/bifrost/values-examples/postgres-redis.yaml71 # Create the secret with: kubectl create secret generic bifrost-semantic-cache --from-literal=openai-key=sk-YOUR_OCOMMENT
Deep Nesting91 hits · 48 pts
SeverityFileLineSnippetContext
LOWtests/integrations/python/run_all_tests.py210CODE
LOWtests/integrations/python/tests/test_anthropic.py161CODE
LOWtests/integrations/python/tests/test_anthropic.py3080CODE
LOWtests/integrations/python/tests/test_anthropic.py3108CODE
LOWtests/integrations/python/tests/test_anthropic.py514CODE
LOWtests/integrations/python/tests/test_anthropic.py730CODE
LOWtests/integrations/python/tests/test_anthropic.py818CODE
LOWtests/integrations/python/tests/test_anthropic.py1974CODE
LOWtests/integrations/python/tests/test_anthropic.py2164CODE
LOWtests/integrations/python/tests/test_anthropic.py2247CODE
LOWtests/integrations/python/tests/test_anthropic.py2375CODE
LOWtests/integrations/python/tests/test_anthropic.py2432CODE
LOWtests/integrations/python/tests/test_anthropic.py2547CODE
LOWtests/integrations/python/tests/test_anthropic.py2597CODE
LOWtests/integrations/python/tests/test_anthropic.py2722CODE
LOWtests/integrations/python/tests/test_anthropic.py2773CODE
LOWtests/integrations/python/tests/test_anthropic.py2827CODE
LOWtests/integrations/python/tests/test_anthropic.py3314CODE
LOWtests/integrations/python/tests/test_anthropic.py3422CODE
LOWtests/integrations/python/tests/test_anthropic.py3782CODE
LOWtests/integrations/python/tests/test_anthropic.py4051CODE
LOWtests/integrations/python/tests/test_openai.py1882CODE
LOWtests/integrations/python/tests/test_openai.py1929CODE
LOWtests/integrations/python/tests/test_openai.py1965CODE
LOWtests/integrations/python/tests/test_openai.py2012CODE
LOWtests/integrations/python/tests/test_openai.py2219CODE
LOWtests/integrations/python/tests/test_openai.py2358CODE
LOWtests/integrations/python/tests/test_openai.py2611CODE
LOWtests/integrations/python/tests/test_openai.py2680CODE
LOWtests/integrations/python/tests/test_openai.py3174CODE
LOWtests/integrations/python/tests/test_openai.py3371CODE
LOWtests/integrations/python/tests/test_openai.py3540CODE
LOWtests/integrations/python/tests/test_openai.py3697CODE
LOWtests/integrations/python/tests/test_openai.py4030CODE
LOWtests/integrations/python/tests/test_openai.py4148CODE
LOWtests/integrations/python/tests/test_openai.py4296CODE
LOWtests/integrations/python/tests/test_openai.py4351CODE
LOWtests/integrations/python/tests/test_openai.py4404CODE
LOWtests/integrations/python/tests/conftest.py32CODE
LOWtests/integrations/python/tests/conftest.py93CODE
LOWtests/integrations/python/tests/test_pydanticai.py187CODE
LOWtests/integrations/python/tests/test_langchain.py1043CODE
LOWtests/integrations/python/tests/test_langchain.py1198CODE
LOWtests/integrations/python/tests/test_langchain.py1285CODE
LOWtests/integrations/python/tests/test_bedrock.py293CODE
LOWtests/integrations/python/tests/test_bedrock.py574CODE
LOWtests/integrations/python/tests/test_bedrock.py671CODE
LOWtests/integrations/python/tests/test_bedrock.py3076CODE
LOWtests/integrations/python/tests/test_bedrock.py3258CODE
LOWtests/integrations/python/tests/test_azure.py1239CODE
LOWtests/integrations/python/tests/test_azure.py1278CODE
LOWtests/integrations/python/tests/test_azure.py1316CODE
LOWtests/integrations/python/tests/test_azure.py1515CODE
LOWtests/integrations/python/tests/test_google.py238CODE
LOWtests/integrations/python/tests/test_google.py367CODE
LOWtests/integrations/python/tests/test_google.py980CODE
LOWtests/integrations/python/tests/test_google.py1423CODE
LOWtests/integrations/python/tests/test_google.py2301CODE
LOWtests/integrations/python/tests/test_google.py3443CODE
LOWtests/integrations/python/tests/utils/config_loader.py90CODE
31 more matches not shown…
Unused Imports37 hits · 24 pts
SeverityFileLineSnippetContext
LOWtests/integrations/python/run_all_tests.py23CODE
LOWtests/integrations/python/run_all_tests.py23CODE
LOWtests/integrations/python/tests/test_openai.py101CODE
LOWtests/integrations/python/tests/test_pydanticai.py41CODE
LOWtests/integrations/python/tests/test_pydanticai.py41CODE
LOWtests/integrations/python/tests/test_pydanticai.py81CODE
LOWtests/integrations/python/tests/test_pydanticai.py81CODE
LOWtests/integrations/python/tests/test_pydanticai.py81CODE
LOWtests/integrations/python/tests/test_pydanticai.py81CODE
LOWtests/integrations/python/tests/test_pydanticai.py81CODE
LOWtests/integrations/python/tests/test_pydanticai.py81CODE
LOWtests/integrations/python/tests/test_pydanticai.py81CODE
LOWtests/integrations/python/tests/test_pydanticai.py81CODE
LOWtests/integrations/python/tests/test_pydanticai.py81CODE
LOWtests/integrations/python/tests/test_pydanticai.py81CODE
LOWtests/integrations/python/tests/test_pydanticai.py96CODE
LOWtests/integrations/python/tests/test_pydanticai.py97CODE
LOWtests/integrations/python/tests/test_langchain.py56CODE
LOWtests/integrations/python/tests/test_langchain.py56CODE
LOWtests/integrations/python/tests/test_langchain.py59CODE
LOWtests/integrations/python/tests/test_langchain.py113CODE
LOWtests/integrations/python/tests/test_litellm.py40CODE
LOWtests/integrations/python/tests/test_litellm.py40CODE
LOWtests/integrations/python/tests/test_litellm.py40CODE
LOWtests/integrations/python/tests/test_litellm.py40CODE
LOWtests/integrations/python/tests/test_litellm.py40CODE
LOWtests/integrations/python/tests/test_litellm.py121CODE
LOWtests/integrations/python/tests/test_azure.py76CODE
LOWtests/integrations/python/tests/test_azure.py76CODE
LOWtests/integrations/python/tests/test_google.py72CODE
LOWtests/integrations/python/tests/test_google.py72CODE
LOWtests/integrations/python/tests/test_google.py72CODE
LOWtests/integrations/python/tests/utils/parametrize.py8CODE
LOWdocs/openapi/bundle.py32CODE
LOWdocs/openapi/spec_invariants_test.py11CODE
LOWdocs/openapi/sync_mintlify_navigation.py4CODE
LOWdocs/api/procuring-api-keys_test.py13CODE
Example Usage Blocks12 hits · 18 pts
SeverityFileLineSnippetContext
LOWplugins/telemetry/docker-compose.pushgateway.yml3# Usage:COMMENT
LOWtransports/bifrost-http/main.go30// Example usage:COMMENT
LOWrecipes/values-local-k8s.yaml4# Usage:COMMENT
LOW…ripts/bifrost-migration-cli/scripts/delete_entities.sh11# Usage:COMMENT
LOW…s/bifrost-migration-cli/scripts/create_virtual_keys.sh5# Usage:COMMENT
LOW…frost-migration-cli/scripts/delete_bifrost_entities.sh12# Usage:COMMENT
LOWscripts/bifrost-migration-cli/scripts/create_teams.sh5# Usage:COMMENT
LOW…/bifrost-migration-cli/scripts/create_organizations.sh5# Usage:COMMENT
LOWscripts/bifrost-migration-cli/scripts/seed_models.sh9# Usage:COMMENT
LOW.github/workflows/scripts/test-e2e-api.sh5# Usage:COMMENT
LOW.github/workflows/scripts/harness-gateway.sh6# Usage:COMMENT
LOW…ost/values-examples/semantic-cache-secret-example.yaml6# Usage:COMMENT
Cross-Language Confusion (JS/TS)3 hits · 18 pts
SeverityFileLineSnippetContext
HIGHui/app/workspace/mcp-logs/views/emptyState.tsx126 print(final_response.choices[0].message.content)`,CODE
HIGHui/app/workspace/mcp-logs/views/emptyState.tsx200print(response.choices[0].message.content)CODE
HIGHui/app/workspace/mcp-logs/views/emptyState.tsx204 print("Pending tools requiring approval:",CODE
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHcore/internal/mcptests/fixtures.go772 // Return the error as requestedCOMMENT
HIGHcore/internal/llmtests/image_generation.go129 // Validate dimensions are 1024x1024 as requestedCOMMENT
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtests/integrations/python/tests/test_pydanticai.py188 Factory function to create a Pydantic AI model for a given provider. This is the cross-provider equivalentSTRING
HIGHtests/integrations/python/tests/utils/config_loader.py115Get the complete URL for a integration Args: integration: Integration name (openai, anthropic, googSTRING
HIGHtests/integrations/python/tests/utils/common.py687 Safely evaluate arithmetic expressions using AST parsing. Only allows basic arithmetic operations: +, -, *, /, STRING
Magic Placeholder Names2 hits · 12 pts
SeverityFileLineSnippetContext
HIGHtests/integrations/python/README.md1393export YOUR_INTEGRATION_API_KEY="your-api-key"CODE
HIGHtests/integrations/typescript/README.md195 apiKey: 'your-api-key',CODE
Slop Phrases3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMcore/internal/llmtests/test_retry_conditions.go448 "as a language model",CODE
MEDIUMcore/internal/llmtests/test_retry_conditions.go1124 "as a language model",CODE
LOWplugins/telemetry/prometheus.yml8# Make sure to replace "bifrost-api" and "8080" with your actual docker container name and port if differentCOMMENT
Cross-Language Confusion1 hit · 2 pts
SeverityFileLineSnippetContext
HIGHtests/integrations/python/tests/test_langchain.py1875 The parameter is omitted rather than sent as null, so this also pins that eachSTRING