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.
718: "--save",
719: help="Remove only the debug-related environment variables from a dotenv file. "
>>> 720: "Usage: --save=dotenv[:path] (default: .env.local)",
721: ),
722: 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.
814: "--save",
815: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 816: "Usage: --save=dotenv[:path] (default: .env.local)",
817: ),
818: 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.
381: ```
382:
>>> 383: ## A Note on Env Variables (.env / .env.local)
384:
385: 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.
856: --cost-per-input-token 0.0005 \\
857: --cost-per-output-token 0.0015 \\
>>> 858: --save dotenv:.env.local
859: """
860: api_key = NoneReport false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
907: "--save",
908: help="Remove only the OpenAI related environment variables from a dotenv file. "
>>> 909: "Usage: --save=dotenv[:path] (default: .env.local)",
910: ),
911: 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.
937:
938: Example:
>>> 939: deepeval unset-openai --save dotenv:.env.local
940: """
941: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
967: print(
968: "OpenAI has been unset. No active provider is configured. "
>>> 969: "Set one with the CLI, or add credentials to .env[.local]."
970: )
971: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1016: "--save",
1017: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 1018: "Usage: --save=dotenv[:path] (default: .env.local)",
1019: ),
1020: 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.
1081: "--save",
1082: help="Remove only the Azure OpenAI–related environment variables from a dotenv file. "
>>> 1083: "Usage: --save=dotenv[:path] (default: .env.local)",
1084: ),
1085: 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.
1124: else:
1125: print(
>>> 1126: "Azure OpenAI has been unset. No active provider is configured. Set one with the CLI, or add credentials to .env[.local]."
1127: )
1128: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1147: "--save",
1148: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 1149: "Usage: --save=dotenv[:path] (default: .env.local)",
1150: ),
1151: 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.
1197: "--save",
1198: help="Remove only the Azure OpenAI embedding related environment variables from a dotenv file. "
>>> 1199: "Usage: --save=dotenv[:path] (default: .env.local)",
1200: ),
1201: 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.
1229: else:
1230: print(
>>> 1231: "Azure OpenAI embedding has been unset. No active provider is configured. Set one with the CLI, or add credentials to .env[.local]."
1232: )
1233: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2199: else:
2200: print(
>>> 2201: "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]."
2202: )
2203: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1278: "--save",
1279: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 1280: "Usage: --save=dotenv[:path] (default: .env.local)",
1281: ),
1282: 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.
1335: "--save",
1336: help="Remove only the Anthropic model related environment variables from a dotenv file. "
>>> 1337: "Usage: --save=dotenv[:path] (default: .env.local)",
1338: ),
1339: 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.
1376: else:
1377: print(
>>> 1378: "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]."
1379: )
1380: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1431: "--save",
1432: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 1433: "Usage: --save=dotenv[:path] (default: .env.local)",
1434: ),
1435: 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.
1495: "--save",
1496: help="Remove only the AWS Bedrock model related environment variables from a dotenv file. "
>>> 1497: "Usage: --save=dotenv[:path] (default: .env.local)",
1498: ),
1499: 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.
1538: else:
1539: print(
>>> 1540: "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]."
1541: )
1542: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1566: "--save",
1567: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 1568: "Usage: --save=dotenv[:path] (default: .env.local)",
1569: ),
1570: 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.
1614: "--save",
1615: help="Remove only the Ollama related environment variables from a dotenv file. "
>>> 1616: "Usage: --save=dotenv[:path] (default: .env.local)",
1617: ),
1618: 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.
1654: else:
1655: print(
>>> 1656: "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]."
1657: )
1658: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1677: "--save",
1678: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 1679: "Usage: --save=dotenv[:path] (default: .env.local)",
1680: ),
1681: 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.
1725: "--save",
1726: help="Remove only the Ollama embedding related environment variables from a dotenv file. "
>>> 1727: "Usage: --save=dotenv[:path] (default: .env.local)",
1728: ),
1729: 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.
1765: else:
1766: print(
>>> 1767: "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]."
1768: )
1769: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1808: "--save",
1809: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 1810: "Usage: --save=dotenv[:path] (default: .env.local)",
1811: ),
1812: 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.
1866: "--save",
1867: help="Remove only the local model related environment variables from a dotenv file. "
>>> 1868: "Usage: --save=dotenv[:path] (default: .env.local)",
1869: ),
1870: 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.
2158: "--save",
2159: help="Remove only the Moonshot model related environment variables from a dotenv file. "
>>> 2160: "Usage: --save=dotenv[:path] (default: .env.local)",
2161: ),
2162: 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.
1907: else:
1908: print(
>>> 1909: "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]."
1910: )
1911: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
1956: "--save",
1957: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 1958: "Usage: --save=dotenv[:path] (default: .env.local)",
1959: ),
1960: 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.
2012: "--save",
2013: help="Remove only the Grok model related environment variables from a dotenv file. "
>>> 2014: "Usage: --save=dotenv[:path] (default: .env.local)",
2015: ),
2016: 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.
2053: else:
2054: print(
>>> 2055: "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]."
2056: )
2057: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2102: "--save",
2103: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 2104: "Usage: --save=dotenv[:path] (default: .env.local)",
2105: ),
2106: 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.
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.
384:
385: DeepEval auto-loads `.env.local` then `.env` from the current working directory **at import time**.
>>> 386: **Precedence:** process env -> `.env.local` -> `.env`.
387: Opt out with `DEEPEVAL_DISABLE_DOTENV=1`.
388: Report 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.
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.
427: ## Configuration
428:
>>> 429: ### Environment variables via .env files
430:
431: 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.
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.
93: save = (
94: s.DEEPEVAL_DEFAULT_SAVE or None
>>> 95: ) # e.g. "dotenv" or "dotenv:/path/.env"
96:
97: # 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.
132: def resolve_save_target(save_opt: Optional[str]) -> Optional[str]:
133: """
>>> 134: Returns a normalized save target string like 'dotenv:.env.local' or None.
135: Precedence:
136: 1) --save=...Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
119:
120: def _parse_save_option(
>>> 121: save_opt: Optional[str] = None, default_path: str = ".env.local"
122: ) -> Tuple[bool, Optional[str]]:
123: 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.
3108: else:
3109: print(
>>> 3110: "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]."
3111: )
3112: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
3065: "--save",
3066: help="Remove only the OpenRouter model related environment variables from a dotenv file. "
>>> 3067: "Usage: --save=dotenv[:path] (default: .env.local)",
3068: ),
3069: 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.
3003: "--save",
3004: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 3005: "Usage: --save=dotenv[:path] (default: .env.local)",
3006: ),
3007: 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.
2940: else:
2941: print(
>>> 2942: "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]."
2943: )
2944: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2899: "--save",
2900: help="Remove only the Portkey related environment variables from a dotenv file. "
>>> 2901: "Usage: --save=dotenv[:path] (default: .env.local)",
2902: ),
2903: 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.
2841: "--save",
2842: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 2843: "Usage: --save=dotenv[:path] (default: .env.local)",
2844: ),
2845: 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.
2798: else:
2799: print(
>>> 2800: "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]."
2801: )
2802: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2756: "--save",
2757: help="Remove only the LiteLLM related environment variables from a dotenv file. "
>>> 2758: "Usage: --save=dotenv[:path] (default: .env.local)",
2759: ),
2760: 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.
2690: "--save",
2691: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 2692: "Usage: --save=dotenv[:path] (default: .env.local)",
2693: ),
2694: 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.
2643: else:
2644: print(
>>> 2645: "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]."
2646: )
2647: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
429: ### Environment variables via .env files
430:
>>> 431: 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`).
432:
433: **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.
431: 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`).
432:
>>> 433: **Precedence:** process env -> `.env.local` -> `.env`
434:
435: ```bashReport false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
434:
435: ```bash
>>> 436: cp .env.example .env.local
437: # then edit .env.local (ignored by git)
438: ```Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2600: "--save",
2601: help="Remove only the Gemini related environment variables from a dotenv file. "
>>> 2602: "Usage: --save=dotenv[:path] (default: .env.local)",
2603: ),
2604: 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.
435: ```bash
436: cp .env.example .env.local
>>> 437: # then edit .env.local (ignored by git)
438: ```
439: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
80: markers = [
81: "skip_test: skip the test",
>>> 82: "enable_dotenv: allow this test to load .env files via autoload_dotenv()",
83: ]
84: asyncio_mode = "auto"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.
2530: "--save",
2531: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 2532: "Usage: --save=dotenv[:path] (default: .env.local)",
2533: ),
2534: 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.
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.
1593: Args:
1594: reload_dotenv: When True, call `autoload_dotenv()` before re-instantiating,
>>> 1595: which merges .env values into os.environ (never overwriting
1596: existing process env vars).
1597: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2478: else:
2479: print(
>>> 2480: "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]."
2481: )
2482: 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.
383: ## A Note on Env Variables (.env / .env.local)
384:
>>> 385: DeepEval auto-loads `.env.local` then `.env` from the current working directory **at import time**.
386: **Precedence:** process env -> `.env.local` -> `.env`.
387: 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.
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.
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.
2438: "--save",
2439: help="Remove only the local embedding related environment variables from a dotenv file. "
>>> 2440: "Usage: --save=dotenv[:path] (default: .env.local)",
2441: ),
2442: 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.
2383: "--save",
2384: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 2385: "Usage: --save=dotenv[:path] (default: .env.local)",
2386: ),
2387: 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.
2346: else:
2347: print(
>>> 2348: "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]."
2349: )
2350: Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2305: "--save",
2306: help="Remove only the DeepSeek model related environment variables from a dotenv file. "
>>> 2307: "Usage: --save=dotenv[:path] (default: .env.local)",
2308: ),
2309: 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.
165: "--save",
166: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 167: "Usage: --save=dotenv[:path] (default: .env.local)",
168: ),
169: 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.
206: "Get it from https://app.confident-ai.com. "
207: "Required to log events to the server. "
>>> 208: "The API key will be saved in your environment variables, typically in .env.local, unless a different path is provided with --save."
209: )
210: )Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
214: "-s",
215: "--save",
>>> 216: help="Where to persist settings. Format: dotenv[:path]. Defaults to .env.local. If omitted, login still writes to .env.local.",
217: ),
218: ):Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
259:
260: settings = get_settings()
>>> 261: save = save or settings.DEEPEVAL_DEFAULT_SAVE or "dotenv:.env.local"
262: with settings.edit(save=save) as edit_ctx:
263: settings.API_KEY = keyReport false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
302: "-s",
303: "--save",
>>> 304: 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.",
305: ),
306: 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.
316: Behavior:
317: - Always clears the Confident API key from the JSON keystore and process env.
>>> 318: - Also removes credentials from a dotenv file; defaults to DEEPEVAL_DEFAULT_SAVE if set, otherwise.env.local.
319: Override the target with --save=dotenv[:path].
320: """Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
320: """
321: settings = get_settings()
>>> 322: save = save or settings.DEEPEVAL_DEFAULT_SAVE or "dotenv:.env.local"
323: with settings.edit(save=save) as edit_ctx:
324: settings.API_KEY = NoneReport false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
394: "-s",
395: "--save",
>>> 396: help="Persist settings to dotenv. Usage: --save=dotenv[:path] (default: .env.local)",
397: ),
398: 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.
531: "Configure verbosity flags (global LOG_LEVEL, verbose mode), retry logger levels, "
532: "gRPC logging, and Confident trace toggles. Use the --save option to persist settings "
>>> 533: "to a dotenv file (default: .env.local)."
534: ),
535: )Report false positiveEnvironment file access
Detected by automated pattern matching (rule DE-002) with medium confidence. May be a false positive.
2248: "--save",
2249: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 2250: "Usage: --save=dotenv[:path] (default: .env.local)",
2251: ),
2252: 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.
629: "--save",
630: help="Persist CLI parameters as environment variables in a dotenv file. "
>>> 631: "Usage: --save=dotenv[:path] (default: .env.local)",
632: ),
633: 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.
709: help=(
710: "Restore default behavior by removing debug-related overrides. "
>>> 711: "Use --save to also remove these keys from a dotenv file (default: .env.local)."
712: ),
713: )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 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.
219:
220: def test_case():
>>> 221: correctness_metric = GEval(
222: name="Correctness",
223: 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.
271: from deepeval import evaluate
272:
>>> 273: 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])
274:
275: @observe(metrics=[correctness])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: ���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: 2�m��^ "q䜅�
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 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: 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.
841: - If --save=dotenv[:path] is used (or DEEPEVAL_DEFAULT_SAVE is set), the key will be written to that dotenv file (plaintext).
842:
>>> 843: Secrets are never written to .deepeval/.deepeval (legacy JSON store).
844:
845: 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����^���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.
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 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 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.
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: 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 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: � ��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 positiveSubprocess execution
Detected by automated pattern matching (rule SC-001) with medium confidence. May be a false positive.
50: time.sleep(1)
51: if sys.platform == "win32":
>>> 52: subprocess.run(
53: [
54: "attrib",Report false positiveDynamic code evaluation via eval()
Detected by automated pattern matching (rule SC-004) with medium confidence. May be a false positive.
997: if global_test_run_cache_manager.disable_write_cache is None:
998: global_test_run_cache_manager.disable_write_cache = not bool(
>>> 999: get_is_running_deepeval()
1000: )
1001: 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 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.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.
158: settings = get_settings()
159: try:
>>> 160: response = requests.get(
161: element.url,
162: timeout=(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.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.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.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.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.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.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 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.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.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.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.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 (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 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.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 (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.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 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 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.
260:
261: try:
>>> 262: response = requests.get(url)
263: response.raise_for_status()
264: raw_data = response.text.splitlines()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.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.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.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.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.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 positive