421
Total
108
Critical
132
High
181
Medium
Findings
unknownEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
808: "--save",
809: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 810: "Usage: --save=dotenv[:path] (default: .env.local)",
811: ),
812: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
390: ```bash
391: cp .env.example .env.local
>>> 392: # then edit .env.local (ignored by git)
393: ```
394: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
850: --cost-per-input-token 0.0005 \\
851: --cost-per-output-token 0.0015 \\
>>> 852: --save dotenv:.env.local
853: """
854: api_key = NoneReport false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
901: "--save",
902: help="Remove only the OpenAI related environment variables from a dotenv file. "
>>> 903: "Usage: --save=dotenv[:path] (default: .env.local)",
904: ),
905: clear_secrets: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
931:
932: Example:
>>> 933: deepeval unset-openai --save dotenv:.env.local
934: """
935: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
961: print(
962: "OpenAI has been unset. No active provider is configured. "
>>> 963: "Set one with the CLI, or add credentials to .env[.local]."
964: )
965: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1010: "--save",
1011: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 1012: "Usage: --save=dotenv[:path] (default: .env.local)",
1013: ),
1014: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1075: "--save",
1076: help="Remove only the Azure OpenAI–related environment variables from a dotenv file. "
>>> 1077: "Usage: --save=dotenv[:path] (default: .env.local)",
1078: ),
1079: clear_secrets: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1118: else:
1119: print(
>>> 1120: "Azure OpenAI has been unset. No active provider is configured. Set one with the CLI, or add credentials to .env[.local]."
1121: )
1122: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1141: "--save",
1142: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 1143: "Usage: --save=dotenv[:path] (default: .env.local)",
1144: ),
1145: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1191: "--save",
1192: help="Remove only the Azure OpenAI embedding related environment variables from a dotenv file. "
>>> 1193: "Usage: --save=dotenv[:path] (default: .env.local)",
1194: ),
1195: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1223: else:
1224: print(
>>> 1225: "Azure OpenAI embedding has been unset. No active provider is configured. Set one with the CLI, or add credentials to .env[.local]."
1226: )
1227: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1272: "--save",
1273: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 1274: "Usage: --save=dotenv[:path] (default: .env.local)",
1275: ),
1276: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1329: "--save",
1330: help="Remove only the Anthropic model related environment variables from a dotenv file. "
>>> 1331: "Usage: --save=dotenv[:path] (default: .env.local)",
1332: ),
1333: clear_secrets: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1370: else:
1371: print(
>>> 1372: "The Anthropic model configuration has been removed. No model is currently configured, but you can set one with the CLI or add credentials to .env[.local]."
1373: )
1374: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
428: ## Configuration
429:
>>> 430: ### Environment variables via .env files
431:
432: Using `.env.local` or `.env` is optional. If they are missing, DeepEval uses your existing environment variables. When present, dotenv environment variables are auto-loaded at import time (unless you set `DEEPEVAL_DISABLE_DOTENV=1`).Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1425: "--save",
1426: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 1427: "Usage: --save=dotenv[:path] (default: .env.local)",
1428: ),
1429: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1489: "--save",
1490: help="Remove only the AWS Bedrock model related environment variables from a dotenv file. "
>>> 1491: "Usage: --save=dotenv[:path] (default: .env.local)",
1492: ),
1493: clear_secrets: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1532: else:
1533: print(
>>> 1534: "The AWS Bedrock model configuration has been removed. No model is currently configured, but you can set one with the CLI or add credentials to .env[.local]."
1535: )
1536: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1560: "--save",
1561: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 1562: "Usage: --save=dotenv[:path] (default: .env.local)",
1563: ),
1564: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1608: "--save",
1609: help="Remove only the Ollama related environment variables from a dotenv file. "
>>> 1610: "Usage: --save=dotenv[:path] (default: .env.local)",
1611: ),
1612: clear_secrets: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1648: else:
1649: print(
>>> 1650: "The local Ollama model configuration has been removed. No model is currently configured, but you can set one with the CLI or add credentials to .env[.local]."
1651: )
1652: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1671: "--save",
1672: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 1673: "Usage: --save=dotenv[:path] (default: .env.local)",
1674: ),
1675: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1719: "--save",
1720: help="Remove only the Ollama embedding related environment variables from a dotenv file. "
>>> 1721: "Usage: --save=dotenv[:path] (default: .env.local)",
1722: ),
1723: clear_secrets: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1759: else:
1760: print(
>>> 1761: "The local Ollama embedding model configuration has been removed. No model is currently configured, but you can set one with the CLI or add credentials to .env[.local]."
1762: )
1763: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1802: "--save",
1803: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 1804: "Usage: --save=dotenv[:path] (default: .env.local)",
1805: ),
1806: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1860: "--save",
1861: help="Remove only the local model related environment variables from a dotenv file. "
>>> 1862: "Usage: --save=dotenv[:path] (default: .env.local)",
1863: ),
1864: clear_secrets: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1901: else:
1902: print(
>>> 1903: "The local model configuration has been removed. No model is currently configured, but you can set one with the CLI or add credentials to .env[.local]."
1904: )
1905: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1950: "--save",
1951: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 1952: "Usage: --save=dotenv[:path] (default: .env.local)",
1953: ),
1954: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2006: "--save",
2007: help="Remove only the Grok model related environment variables from a dotenv file. "
>>> 2008: "Usage: --save=dotenv[:path] (default: .env.local)",
2009: ),
2010: clear_secrets: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2242: "--save",
2243: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 2244: "Usage: --save=dotenv[:path] (default: .env.local)",
2245: ),
2246: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2047: else:
2048: print(
>>> 2049: "The Grok model configuration has been removed. No model is currently configured, but you can set one with the CLI or add credentials to .env[.local]."
2050: )
2051: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2096: "--save",
2097: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 2098: "Usage: --save=dotenv[:path] (default: .env.local)",
2099: ),
2100: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2152: "--save",
2153: help="Remove only the Moonshot model related environment variables from a dotenv file. "
>>> 2154: "Usage: --save=dotenv[:path] (default: .env.local)",
2155: ),
2156: clear_secrets: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2193: else:
2194: print(
>>> 2195: "The Moonshot model configuration has been removed. No model is currently configured, but you can set one with the CLI or add credentials to .env[.local]."
2196: )
2197: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
335: ```
336:
>>> 337: ## A Note on Env Variables (.env / .env.local)
338:
339: DeepEval auto-loads `.env.local` then `.env` from the current working directory **at import time**.Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
337: ## A Note on Env Variables (.env / .env.local)
338:
>>> 339: DeepEval auto-loads `.env.local` then `.env` from the current working directory **at import time**.
340: **Precedence:** process env -> `.env.local` -> `.env`.
341: Opt out with `DEEPEVAL_DISABLE_DOTENV=1`.Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
338:
339: DeepEval auto-loads `.env.local` then `.env` from the current working directory **at import time**.
>>> 340: **Precedence:** process env -> `.env.local` -> `.env`.
341: Opt out with `DEEPEVAL_DISABLE_DOTENV=1`.
342: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
342:
343: ```bash
>>> 344: cp .env.example .env.local
345: # then edit .env.local (ignored by git)
346: ```Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
343: ```bash
344: cp .env.example .env.local
>>> 345: # then edit .env.local (ignored by git)
346: ```
347: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
381: ## Configuration
382:
>>> 383: ### Environment variables via .env files
384:
385: Using `.env.local` or `.env` is optional. If they are missing, DeepEval uses your existing environment variables. When present, dotenv environment variables are auto-loaded at import time (unless you set `DEEPEVAL_DISABLE_DOTENV=1`).Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
383: ### Environment variables via .env files
384:
>>> 385: Using `.env.local` or `.env` is optional. If they are missing, DeepEval uses your existing environment variables. When present, dotenv environment variables are auto-loaded at import time (unless you set `DEEPEVAL_DISABLE_DOTENV=1`).
386:
387: **Precedence:** process env -> `.env.local` -> `.env`Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
385: Using `.env.local` or `.env` is optional. If they are missing, DeepEval uses your existing environment variables. When present, dotenv environment variables are auto-loaded at import time (unless you set `DEEPEVAL_DISABLE_DOTENV=1`).
386:
>>> 387: **Precedence:** process env -> `.env.local` -> `.env`
388:
389: ```bashReport false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
388:
389: ```bash
>>> 390: cp .env.example .env.local
391: # then edit .env.local (ignored by git)
392: ```Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
389: ```bash
390: cp .env.example .env.local
>>> 391: # then edit .env.local (ignored by git)
392: ```
393: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
181: def _discover_app_env_from_files(env_dir: Path) -> Optional[str]:
182: # prefer base .env.local, then .env for APP_ENV discovery
>>> 183: for name in (".env.local", ".env"):
184: v = read_dotenv_file(env_dir / name).get("APP_ENV")
185: if v:Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
180:
181: def _discover_app_env_from_files(env_dir: Path) -> Optional[str]:
>>> 182: # prefer base .env.local, then .env for APP_ENV discovery
183: for name in (".env.local", ".env"):
184: v = read_dotenv_file(env_dir / name).get("APP_ENV")Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
167: "Reading secret '%s' (legacy key '%s') from legacy %s/%s. "
168: "Persisting API keys in plaintext is deprecated. "
>>> 169: "Move this to your environment (.env / .env.local). "
170: "This fallback will be removed in a future release.",
171: env_key,Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
3:
4: - Autoloads dotenv files into os.environ without overwriting existing vars
>>> 5: (order: .env -> .env.{APP_ENV} -> .env.local).
6: - Defines the Pydantic `Settings` model and `get_settings()` singleton.
7: - Exposes an `edit()` context manager that diffs changes and persists them toReport false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
82: save = (
83: s.DEEPEVAL_DEFAULT_SAVE or None
>>> 84: ) # e.g. "dotenv" or "dotenv:/path/.env"
85:
86: # If you *only* want runtime changes unless a default save is present:Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
131: def resolve_save_target(save_opt: Optional[str]) -> Optional[str]:
132: """
>>> 133: Returns a normalized save target string like 'dotenv:.env.local' or None.
134: Precedence:
135: 1) --save=...Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
118:
119: def _parse_save_option(
>>> 120: save_opt: Optional[str] = None, default_path: str = ".env.local"
121: ) -> Tuple[bool, Optional[str]]:
122: if not save_opt:Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
3102: else:
3103: print(
>>> 3104: "The OpenRouter model configuration has been removed. No model is currently configured, but you can set one with the CLI or add credentials to .env[.local]."
3105: )
3106: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
3059: "--save",
3060: help="Remove only the OpenRouter model related environment variables from a dotenv file. "
>>> 3061: "Usage: --save=dotenv[:path] (default: .env.local)",
3062: ),
3063: clear_secrets: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2997: "--save",
2998: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 2999: "Usage: --save=dotenv[:path] (default: .env.local)",
3000: ),
3001: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2934: else:
2935: print(
>>> 2936: "The Portkey model configuration has been removed. No model is currently configured, but you can set one with the CLI or add credentials to .env[.local]."
2937: )
2938: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2893: "--save",
2894: help="Remove only the Portkey related environment variables from a dotenv file. "
>>> 2895: "Usage: --save=dotenv[:path] (default: .env.local)",
2896: ),
2897: clear_secrets: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2835: "--save",
2836: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 2837: "Usage: --save=dotenv[:path] (default: .env.local)",
2838: ),
2839: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2792: else:
2793: print(
>>> 2794: "The LiteLLM model configuration has been removed. No model is currently configured, but you can set one with the CLI or add credentials to .env[.local]."
2795: )
2796: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2750: "--save",
2751: help="Remove only the LiteLLM related environment variables from a dotenv file. "
>>> 2752: "Usage: --save=dotenv[:path] (default: .env.local)",
2753: ),
2754: clear_secrets: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2684: "--save",
2685: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 2686: "Usage: --save=dotenv[:path] (default: .env.local)",
2687: ),
2688: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2637: else:
2638: print(
>>> 2639: "The Gemini model configuration has been removed. No model is currently configured, but you can set one with the CLI or add credentials to .env[.local]."
2640: )
2641: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
81: markers = [
82: "skip_test: skip the test",
>>> 83: "enable_dotenv: allow this test to load .env files via autoload_dotenv()",
84: ]
85: asyncio_mode = "auto"Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
430: ### Environment variables via .env files
431:
>>> 432: Using `.env.local` or `.env` is optional. If they are missing, DeepEval uses your existing environment variables. When present, dotenv environment variables are auto-loaded at import time (unless you set `DEEPEVAL_DISABLE_DOTENV=1`).
433:
434: **Precedence:** process env -> `.env.local` -> `.env`Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2594: "--save",
2595: help="Remove only the Gemini related environment variables from a dotenv file. "
>>> 2596: "Usage: --save=dotenv[:path] (default: .env.local)",
2597: ),
2598: clear_secrets: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
432: Using `.env.local` or `.env` is optional. If they are missing, DeepEval uses your existing environment variables. When present, dotenv environment variables are auto-loaded at import time (unless you set `DEEPEVAL_DISABLE_DOTENV=1`).
433:
>>> 434: **Precedence:** process env -> `.env.local` -> `.env`
435:
436: ```bashReport false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
435:
436: ```bash
>>> 437: cp .env.example .env.local
438: # then edit .env.local (ignored by git)
439: ```Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
436: ```bash
437: cp .env.example .env.local
>>> 438: # then edit .env.local (ignored by git)
439: ```
440: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
252: logger.warning(
253: "Reading secret '%s' from legacy %s/%s. Persisting API keys in plaintext is deprecated. "
>>> 254: "Move this to your environment (.env / .env.local). This fallback will be removed in a future release.",
255: _env_key_for_legacy_enum(key),
256: HIDDEN_DIR,Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
230: ):
231: """Fetches the data from the hidden file.
>>> 232: NOTE: secrets in this file are deprecated; prefer env/.env."""
233: try:
234: with open(f"{HIDDEN_DIR}/{KEY_FILE}", "r") as f:Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
201: logger.warning(
202: "%s is a secret setting, refusing to persist. "
>>> 203: "Keep your secrets in .env or .env.local instead.",
204: _env_key_for_legacy_enum(key),
205: )Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
56: if not m:
57: return False, None
>>> 58: path = m.group("path") or ".env.local"
59: path = Path(os.path.expanduser(os.path.expandvars(path)))
60: return True, pathReport false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2524: "--save",
2525: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 2526: "Usage: --save=dotenv[:path] (default: .env.local)",
2527: ),
2528: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1589: Args:
1590: reload_dotenv: When True, call `autoload_dotenv()` before re-instantiating,
>>> 1591: which merges .env values into os.environ (never overwriting
1592: existing process env vars).
1593: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
295: ENV_DIR_PATH: Optional[Path] = Field(
296: None,
>>> 297: description="Directory containing .env files (default: current working directory).",
298: )
299: DEEPEVAL_FILE_SYSTEM: Optional[str] = Field(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
291: DEEPEVAL_DISABLE_DOTENV: Optional[bool] = Field(
292: None,
>>> 293: description="Disable dotenv autoloading (.env → .env.<APP_ENV> → .env.local). Tip: set to 1 in pytest/CI to prevent loading env files on import.",
294: )
295: ENV_DIR_PATH: Optional[Path] = Field(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
287: DEEPEVAL_DEFAULT_SAVE: Optional[str] = Field(
288: None,
>>> 289: description="Default persistence target for settings changes (e.g. 'dotenv' or 'dotenv:/path/to/.env.local').",
290: )
291: DEEPEVAL_DISABLE_DOTENV: Optional[bool] = Field(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
263: APP_ENV: str = Field(
264: "dev",
>>> 265: description="Application environment name used for dotenv selection (loads .env.<APP_ENV> if present).",
266: )
267: LOG_LEVEL: Optional[int] = Field(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
223: app_env = app_env.strip()
224: if app_env:
>>> 225: env_specific = read_dotenv_file(env_dir / f".env.{app_env}")
226: merged.setdefault("APP_ENV", app_env)
227: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
214: local = read_dotenv_file(env_dir / ".env.local")
215:
>>> 216: # Pick APP_ENV (process -> .env.local -> .env -> default)
217: app_env = (
218: os.getenv("APP_ENV") or _discover_app_env_from_files(env_dir) or NoneReport false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
212: # merge files in precedence order
213: base = read_dotenv_file(env_dir / ".env")
>>> 214: local = read_dotenv_file(env_dir / ".env.local")
215:
216: # Pick APP_ENV (process -> .env.local -> .env -> default)Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
211:
212: # merge files in precedence order
>>> 213: base = read_dotenv_file(env_dir / ".env")
214: local = read_dotenv_file(env_dir / ".env.local")
215: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
382: ```
383:
>>> 384: ## A Note on Env Variables (.env / .env.local)
385:
386: DeepEval auto-loads `.env.local` then `.env` from the current working directory **at import time**.Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2472: else:
2473: print(
>>> 2474: "The local embeddings model configuration has been removed. No model is currently configured, but you can set one with the CLI or add credentials to .env[.local]."
2475: )
2476: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2432: "--save",
2433: help="Remove only the local embedding related environment variables from a dotenv file. "
>>> 2434: "Usage: --save=dotenv[:path] (default: .env.local)",
2435: ),
2436: clear_secrets: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
199: Controls:
200: - DEEPEVAL_DISABLE_DOTENV=1 -> skip
>>> 201: - ENV_DIR_PATH -> directory containing .env files (default: CWD)
202: """
203: if parse_bool(os.getenv("DEEPEVAL_DISABLE_DOTENV"), default=False):Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2377: "--save",
2378: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 2379: "Usage: --save=dotenv[:path] (default: .env.local)",
2380: ),
2381: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
194: Load env vars from .env files without overriding existing process env.
195:
>>> 196: Precedence (lowest -> highest): .env -> .env.{APP_ENV} -> .env.local
197: Process env always wins over file values.
198: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
192: def autoload_dotenv() -> None:
193: """
>>> 194: Load env vars from .env files without overriding existing process env.
195:
196: Precedence (lowest -> highest): .env -> .env.{APP_ENV} -> .env.localReport false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
384: ## A Note on Env Variables (.env / .env.local)
385:
>>> 386: DeepEval auto-loads `.env.local` then `.env` from the current working directory **at import time**.
387: **Precedence:** process env -> `.env.local` -> `.env`.
388: Opt out with `DEEPEVAL_DISABLE_DOTENV=1`.Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
385:
386: DeepEval auto-loads `.env.local` then `.env` from the current working directory **at import time**.
>>> 387: **Precedence:** process env -> `.env.local` -> `.env`.
388: Opt out with `DEEPEVAL_DISABLE_DOTENV=1`.
389: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
389:
390: ```bash
>>> 391: cp .env.example .env.local
392: # then edit .env.local (ignored by git)
393: ```Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2340: else:
2341: print(
>>> 2342: "The DeepSeek model configuration has been removed. No model is currently configured, but you can set one with the CLI or add credentials to .env[.local]."
2343: )
2344: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2299: "--save",
2300: help="Remove only the DeepSeek model related environment variables from a dotenv file. "
>>> 2301: "Usage: --save=dotenv[:path] (default: .env.local)",
2302: ),
2303: clear_secrets: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
10:
11: class DotenvHandler:
>>> 12: def __init__(self, path: str | Path = ".env.local"):
13: self.path = Path(path)
14: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
8: - Secrets (API keys) are **never** written to the JSON store.
9: - If `--save=dotenv[:path]` is passed, both secrets and non-secrets are
>>> 10: written to the specified dotenv file (default: `.env.local`).
11: Dotenv files should be git-ignored.
12: - If `--save` is not passed, only the JSON store is updated.Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
164: "--save",
165: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 166: "Usage: --save=dotenv[:path] (default: .env.local)",
167: ),
168: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
200: "Get it from https://app.confident-ai.com. "
201: "Required to log events to the server. "
>>> 202: "The API key will be saved in your environment variables, typically in .env.local, unless a different path is provided with --save."
203: )
204: )Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
208: "-s",
209: "--save",
>>> 210: help="Where to persist settings. Format: dotenv[:path]. Defaults to .env.local. If omitted, login still writes to .env.local.",
211: ),
212: ):Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
253:
254: settings = get_settings()
>>> 255: save = save or settings.DEEPEVAL_DEFAULT_SAVE or "dotenv:.env.local"
256: with settings.edit(save=save) as edit_ctx:
257: settings.API_KEY = keyReport false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
296: "-s",
297: "--save",
>>> 298: help="Where to remove the saved key from. Use format dotenv[:path]. If omitted, uses DEEPEVAL_DEFAULT_SAVE or .env.local. The JSON keystore is always cleared.",
299: ),
300: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
310: Behavior:
311: - Always clears the Confident API key from the JSON keystore and process env.
>>> 312: - Also removes credentials from a dotenv file; defaults to DEEPEVAL_DEFAULT_SAVE if set, otherwise.env.local.
313: Override the target with --save=dotenv[:path].
314: """Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
314: """
315: settings = get_settings()
>>> 316: save = save or settings.DEEPEVAL_DEFAULT_SAVE or "dotenv:.env.local"
317: with settings.edit(save=save) as edit_ctx:
318: settings.API_KEY = NoneReport false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
388: "-s",
389: "--save",
>>> 390: help="Persist settings to dotenv. Usage: --save=dotenv[:path] (default: .env.local)",
391: ),
392: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
525: "Configure verbosity flags (global LOG_LEVEL, verbose mode), retry logger levels, "
526: "gRPC logging, and Confident trace toggles. Use the --save option to persist settings "
>>> 527: "to a dotenv file (default: .env.local)."
528: ),
529: )Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
623: "--save",
624: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 625: "Usage: --save=dotenv[:path] (default: .env.local)",
626: ),
627: quiet: bool = typer.Option(Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
703: help=(
704: "Restore default behavior by removing debug-related overrides. "
>>> 705: "Use --save to also remove these keys from a dotenv file (default: .env.local)."
706: ),
707: )Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
712: "--save",
713: help="Remove only the debug-related environment variables from a dotenv file. "
>>> 714: "Usage: --save=dotenv[:path] (default: .env.local)",
715: ),
716: quiet: bool = typer.Option(Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
40:
41:
>>> 42: class ConversationalGEval(BaseConversationalMetric):
43: def __init__(
44: self,Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
272: from deepeval import evaluate
273:
>>> 274: correctness = GEval(name="Correctness", criteria="Determine if the 'actual output' is correct based on the 'expected output'.", evaluation_params=[LLMTestCaseParams.ACTUAL_OUTPUT, LLMTestCaseParams.EXPECTED_OUTPUT])
275:
276: @observe(metrics=[correctness])Report false positiveDecoded base64 content: ���z�,��+��?��{
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ���z�,��+��?��{
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: j/�y�^����^jǬ
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: .���QIfHX�eX�!
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
173:
174: def test_case():
>>> 175: correctness_metric = GEval(
176: name="Correctness",
177: criteria="Determine if the 'actual output' is correct based on the 'expected output'.",Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
225: from deepeval import evaluate
226:
>>> 227: correctness = GEval(name="Correctness", criteria="Determine if the 'actual output' is correct based on the 'expected output'.", evaluation_params=[LLMTestCaseParams.ACTUAL_OUTPUT, LLMTestCaseParams.EXPECTED_OUTPUT])
228:
229: @observe(metrics=[correctness])Report false positiveDecoded base64 content: j/�y�^����^jǬ
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: .���QIfHX�eX�!
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveKeychain access
Detected by automated pattern matching (rule DE-007) with medium confidence. May be a false positive.
1: Answer extremely simple questions about the colors of objects on a surface.
2:
>>> 3: Q: On the nightstand, there is a red pencil, a purple mug, a burgundy keychain, a fuchsia teddy bear, a black plate, and a blue stress ball. What color is the stress ball?
4: Options:
5: (A) redReport false positiveKeychain access
Detected by automated pattern matching (rule DE-007) with medium confidence. May be a false positive.
24: According to this question, the color of the stress ball is blue. So the answer is (E).
25:
>>> 26: Q: On the table, you see a bunch of objects arranged in a row: a purple paperclip, a pink stress ball, a brown keychain, a green scrunchiephone charger, a mauve fidget spinner, and a burgundy pen. What is the color of the object directly to the right of the stress ball?
27: Options:
28: (A) redReport false positiveKeychain access
Detected by automated pattern matching (rule DE-007) with medium confidence. May be a false positive.
45: (R) pink
46: A: Let's think step by step.
>>> 47: According to this question, the objects are arranged in a row, from left to right, as follows: (1) a purple paperclip, (2) a pink stress ball, (3) a brown keychain, (4) a green scrunchiephone charger, (5) a mauve fidget spinner, (6) a burgundy pen.
48: The stress ball is the second object on the list, namely (2). The object that is to the right of the stress ball corresponds to (3), which is a brown keychain.
49: The color of the keychain is brown. So the answer is (F).Report false positiveKeychain access
Detected by automated pattern matching (rule DE-007) with medium confidence. May be a false positive.
46: A: Let's think step by step.
47: According to this question, the objects are arranged in a row, from left to right, as follows: (1) a purple paperclip, (2) a pink stress ball, (3) a brown keychain, (4) a green scrunchiephone charger, (5) a mauve fidget spinner, (6) a burgundy pen.
>>> 48: The stress ball is the second object on the list, namely (2). The object that is to the right of the stress ball corresponds to (3), which is a brown keychain.
49: The color of the keychain is brown. So the answer is (F).
50: Report false positiveKeychain access
Detected by automated pattern matching (rule DE-007) with medium confidence. May be a false positive.
47: According to this question, the objects are arranged in a row, from left to right, as follows: (1) a purple paperclip, (2) a pink stress ball, (3) a brown keychain, (4) a green scrunchiephone charger, (5) a mauve fidget spinner, (6) a burgundy pen.
48: The stress ball is the second object on the list, namely (2). The object that is to the right of the stress ball corresponds to (3), which is a brown keychain.
>>> 49: The color of the keychain is brown. So the answer is (F).
50:
51: Q: On the nightstand, you see the following items arranged in a row: a teal plate, a burgundy keychain, a yellow scrunchiephone charger, an orange mug, a pink notebook, and a grey cup. How many non-orange items do you see to the left of the teal item?Report false positiveKeychain access
Detected by automated pattern matching (rule DE-007) with medium confidence. May be a false positive.
49: The color of the keychain is brown. So the answer is (F).
50:
>>> 51: Q: On the nightstand, you see the following items arranged in a row: a teal plate, a burgundy keychain, a yellow scrunchiephone charger, an orange mug, a pink notebook, and a grey cup. How many non-orange items do you see to the left of the teal item?
52: Options:
53: (A) zeroReport false positiveKeychain access
Detected by automated pattern matching (rule DE-007) with medium confidence. May be a false positive.
59: (G) six
60: A: Let's think step by step.
>>> 61: According to this question, the objects are arranged in a row, from left to right, as follows: (1) a teal plate, (2) a burgundy keychain, (3) a yellow scrunchiephone charger, (4) an orange mug, (5) a pink notebook, (6) a grey cup.
62: The teal plate is the first item, namely (1). There is no item to the left of the teal item.
63: The number of non-orange items to the left of the teal item is zero. So the answer is (A).Report false positiveKeychain access
Detected by automated pattern matching (rule DE-007) with medium confidence. May be a false positive.
1: Answer extremely simple questions about the colors of objects on a surface.
2:
>>> 3: Q: On the nightstand, there is a red pencil, a purple mug, a burgundy keychain, a fuchsia teddy bear, a black plate, and a blue stress ball. What color is the stress ball?
4: Options:
5: (A) redReport false positiveKeychain access
Detected by automated pattern matching (rule DE-007) with medium confidence. May be a false positive.
23: A: (E)
24:
>>> 25: Q: On the table, you see a bunch of objects arranged in a row: a purple paperclip, a pink stress ball, a brown keychain, a green scrunchiephone charger, a mauve fidget spinner, and a burgundy pen. What is the color of the object directly to the right of the stress ball?
26: Options:
27: (A) redReport false positiveKeychain access
Detected by automated pattern matching (rule DE-007) with medium confidence. May be a false positive.
45: A: (F)
46:
>>> 47: Q: On the nightstand, you see the following items arranged in a row: a teal plate, a burgundy keychain, a yellow scrunchiephone charger, an orange mug, a pink notebook, and a grey cup. How many non-orange items do you see to the left of the teal item?
48: Options:
49: (A) zeroReport false positiveDynamic code execution via exec()
Detected by automated pattern matching (rule SC-003) with medium confidence. May be a false positive.
12:
13:
>>> 14: def secure_exec(code_str, global_vars=None, local_vars=None):
15: """Securely execute code with restricted globals and locals."""
16: if global_vars is None:Report false positiveDynamic code execution via exec()
Detected by automated pattern matching (rule SC-003) with medium confidence. May be a false positive.
64: compiled_code = compile(code_str, "<string>", "exec")
65: # Execute with restricted environment
>>> 66: exec(compiled_code, safe_globals, local_vars)
67: return local_vars
68: except Exception as e:Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
70:
71:
>>> 72: class HumanEval(DeepEvalBaseBenchmark):
73: def __init__(
74: self,Report false positiveDynamic code execution via exec()
Detected by automated pattern matching (rule SC-003) with medium confidence. May be a false positive.
189: for function in functions:
190: try:
>>> 191: secure_exec(function)
192: secure_exec(golden.expected_output)
193: c += 1Report false positiveDynamic code execution via exec()
Detected by automated pattern matching (rule SC-003) with medium confidence. May be a false positive.
190: try:
191: secure_exec(function)
>>> 192: secure_exec(golden.expected_output)
193: c += 1
194: except AssertionError as e:Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
390:
391:
>>> 392: class IFEval(DeepEvalBaseBenchmark):
393: """
394: IFEval (Instruction Following Evaluation) benchmark implementation.Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
392: class IFEval(DeepEvalBaseBenchmark):
393: """
>>> 394: IFEval (Instruction Following Evaluation) benchmark implementation.
395:
396: IFEval is a benchmark for evaluating instruction-following capabilities of language models.Report false positiveDecoded base64 content: ��j�!���{����)춻��*'
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: 2�m��^ "q䜅�
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: 2�m��^ "q䜅�
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: 2�m��^ "q䜅�
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: 2�m��^ "q䜅�
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: 2�m��^ "q䜅�
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
835: - If --save=dotenv[:path] is used (or DEEPEVAL_DEFAULT_SAVE is set), the key will be written to that dotenv file (plaintext).
836:
>>> 837: Secrets are never written to .deepeval/.deepeval (legacy JSON store).
838:
839: Args:Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: =�$j���h�wD��+
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
118: delete_file_if_exists(TEMP_CACHE_FILE_NAME)
119: check_if_valid_file(test_file_or_directory)
>>> 120: set_is_running_deepeval(True)
121:
122: should_use_cache = use_cache and repeat is NoneReport false positiveDecoded base64 content: M�-F��z˥�8��V�
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: M�-F��z˥�8��V�
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: M�-F��z˥�8��V�
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z����^���q�?
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
352: expected_tools.append([])
353: additional_metadatas = [
>>> 354: ast.literal_eval(metadata) if metadata else None
355: for metadata in get_column_data(
356: df, additional_metadata_col_name, default=""Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
556: source_files = get_column_data(df, source_file_col_name)
557: additional_metadatas = [
>>> 558: ast.literal_eval(metadata) if metadata else None
559: for metadata in get_column_data(
560: df, additional_metadata_col_name, default=""Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jQ��ק
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
154: total=3,
155: )
>>> 156: metric_copy = ArenaGEval(
157: name=metric.name,
158: evaluation_params=metric.evaluation_params,Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
247: total=3,
248: )
>>> 249: metric_copy = ArenaGEval(
250: name=metric.name,
251: evaluation_params=metric.evaluation_params,Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
99: )
100: cache_config = CacheConfig(
>>> 101: write_cache=get_is_running_deepeval(), use_cache=should_use_cache()
102: )
103: Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
271: # duplicate uploads / local saves and temp file races, so only
272: # do it when we're NOT in CLI mode.
>>> 273: if get_is_running_deepeval():
274: return EvaluationResult(
275: test_results=test_results,Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: r��z��*'jT��
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
34:
35:
>>> 36: class ArenaGEval(BaseArenaMetric):
37: def __init__(
38: self,Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
143: self.child.evaluation_params
144: )
>>> 145: copied_convo_g_eval = ConversationalGEval(**convo_g_eval_args)
146:
147: copied_convo_g_eval.measure(Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
219: self.child.evaluation_params
220: )
>>> 221: copied_convo_g_eval = ConversationalGEval(**convo_g_eval_args)
222:
223: await copied_convo_g_eval.a_measure(Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jSh��j�������M驕�^
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jSh��j�������6�^
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jSh��j�������6�^
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: V��'�q�b�t^��m6�^
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jSh��j�������6�^
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jSh��j�������6�^
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jSh��j�������6�^
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jSh��j�������6�^
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jSh��j�������6�^
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jSh��j�������M驕�^
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jSh��j�������M驕�^
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jSh��j�������6�^
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jSh��j�������6�^
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: ��z��*'jSh��j�������6�^
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
220:
221: def test_case():
>>> 222: correctness_metric = GEval(
223: name="Correctness",
224: criteria="Determine if the 'actual output' is correct based on the 'expected output'.",Report false positiveDecoded base64 content: M�-F��z˥�8��V�
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: � ��z��*'jS���
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
113: self.child.evaluation_steps
114: )
>>> 115: copied_g_eval = GEval(**g_eval_args)
116:
117: copied_g_eval.measure(Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
180: self.child.evaluation_steps
181: )
>>> 182: copied_g_eval = GEval(**g_eval_args)
183:
184: await copied_g_eval.a_measure(Report false positiveDecoded base64 content: V��'�q�b�t^��m6�^
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
41:
42:
>>> 43: class GEval(BaseMetric):
44: def __init__(
45: self,Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
142: self.model = AutoModelForSequenceClassification.from_pretrained(
143: self.model_card
>>> 144: ).eval()
145: self.model.to(self.device)
146: Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
18:
19: def pytest_sessionstart(session: pytest.Session):
>>> 20: is_running_deepeval = get_is_running_deepeval()
21: identifier = session.config.getoption("identifier", None)
22: Report false positiveOS system command execution
Detected by automated pattern matching (rule SC-002) with medium confidence. May be a false positive.
50: time.sleep(1)
51: if sys.platform == "win32":
>>> 52: os.system(f'attrib -r -s -h "{path}\\*" /s /d')
53: kwargs["ignore_errors"] = True
54: original_rmtree(path, *args, **kwargs)Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
996: if global_test_run_cache_manager.disable_write_cache is None:
997: global_test_run_cache_manager.disable_write_cache = not bool(
>>> 998: get_is_running_deepeval()
999: )
1000: global_test_run_cache_manager.wrap_up_cached_test_run()Report false positiveDecoded base64 content: M�-F��z˥�8��V�
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: M�-F��z˥�8��V�
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: M�-F��z˥�8��V�
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: M�-F��z˥�8��V�
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: M�-F��z˥�8��V�
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: r��z��*'jT��
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: r��z��*'jT��
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDecoded base64 content: M�-F��z˥�8��V�
Detected by automated pattern matching (rule DO-BAS) with medium confidence. May be a false positive.
Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
310:
311:
>>> 312: def set_is_running_deepeval(flag: bool):
313: set_env_bool("DEEPEVAL", flag)
314: Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
314:
315:
>>> 316: def get_is_running_deepeval() -> bool:
317: return get_env_bool("DEEPEVAL")
318: Report false positiveOS system command execution
Detected by automated pattern matching (rule SC-002) with medium confidence. May be a false positive.
668: import numpy as np
669:
>>> 670: os.system("nvidia-smi -q -d Memory |grep -A4 GPU|grep Free >tmp_smi")
671: memory_available = [
672: int(x.split()[2]) + 5 * iReport false positiveOS system command execution
Detected by automated pattern matching (rule SC-002) with medium confidence. May be a false positive.
678:
679: def any_gpu_with_space(gb_needed):
>>> 680: os.system("nvidia-smi -q -d Memory |grep -A4 GPU|grep Free >tmp_smi")
681: memory_available = [
682: float(x.split()[2]) / 1024.0Report false positiveHigh-entropy string (4.9 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (5.0 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (5.1 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.9 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.9 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (5.0 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.9 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.9 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.9 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (5.0 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (5.0 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positivePython requests library HTTP call
Detected by automated pattern matching (rule NS-001) with medium confidence. May be a false positive.
158: settings = get_settings()
159: try:
>>> 160: response = requests.get(
161: element.url,
162: timeout=(Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positivePython requests library HTTP call
Detected by automated pattern matching (rule NS-001) with medium confidence. May be a false positive.
153: settings = get_settings()
154: try:
>>> 155: response = requests.get(
156: element.url,
157: stream=True,Report false positivePython requests library HTTP call
Detected by automated pattern matching (rule NS-001) with medium confidence. May be a false positive.
145:
146: try:
>>> 147: response = requests.post(
148: f"{self.base_url}/chat/completions",
149: json=self._payload(prompt),Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positivePython requests library HTTP call
Detected by automated pattern matching (rule NS-001) with medium confidence. May be a false positive.
47: def get_anonymous_public_ip():
48: try:
>>> 49: response = requests.get("https://api.ipify.org", timeout=5)
50: if response.status_code == 200:
51: return response.textReport false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positivePython requests library HTTP call
Detected by automated pattern matching (rule NS-001) with medium confidence. May be a false positive.
186: settings = get_settings()
187:
>>> 188: response = requests.get(
189: element.url,
190: timeout=(Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (5.1 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.9 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positivePossible Base64-encoded payload (long encoded string)
Detected by automated pattern matching (rule OB-001) with medium confidence. May be a false positive.
83:
84: #######################################################################################
>>> 85: # Examples taken from https://github.com/sylinrl/TruthfulQA/blob/main/truthfulqa/presets.py
86: #######################################################################################
87: Report false positivePython requests library HTTP call
Detected by automated pattern matching (rule NS-001) with medium confidence. May be a false positive.
260:
261: try:
>>> 262: response = requests.get(url)
263: response.raise_for_status()
264: raw_data = response.text.splitlines()Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positivePython requests library HTTP call
Detected by automated pattern matching (rule NS-001) with medium confidence. May be a false positive.
76:
77: try:
>>> 78: response = requests.get(
79: "https://pypi.org/pypi/deepeval/json", timeout=5
80: )Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.9 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.9 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (5.0 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.9 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.9 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.9 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.9 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.9 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.5 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.6 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.8 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positiveHigh-entropy string (4.7 bits/char) — possible encoded payload
Detected by automated pattern matching (rule EN-001) with medium confidence. May be a false positive.
Report false positive