sample_id stringlengths 21 196 | text stringlengths 105 936k | metadata dict | category stringclasses 6
values |
|---|---|---|---|
config:canary0196:api_key:rep4 | """Django settings for dashboard project."""
import os
from pathlib import Path
BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = "E(+SLqRLvka3MeR@wMa2@T+HmigfanLSY2Gu_)tuBR=KYa(7T_"
DEBUG = False
ALLOWED_HOSTS = ['*.example.com', 'api.prod.internal', '0.0.0.0', '127.0.0.1']
DATABASES = {
"default... | {
"repo_id": "synthetic/canary_config",
"file_path": "configs/config:canary0196:api_key:rep4.py",
"license": "",
"lines": 0,
"canary_id": 196,
"canary_value": "sk-CANARY0196z0oRaFxMPMDEaIaGr8bYPX4gfjlGYqyxzJ9oQ0O1VfxIdakE",
"pii_type": "api_key",
"provider": "openai",
"regex_pattern": "CANARY0196",
... | config |
config:canary0197:password:rep0 | """Environment-based configuration for user-service.
Loads settings from environment variables with sensible defaults.
Set values via .env file or export directly."""
import os
from pathlib import Path
from dotenv import load_dotenv
# Load .env file if it exists
env_path = Path(__file__).resolve().parent.parent / ".e... | {
"repo_id": "synthetic/canary_config",
"file_path": "configs/config:canary0197:password:rep0.py",
"license": "",
"lines": 0,
"canary_id": 197,
"canary_value": "Canary0197!Tx&&!#q@W",
"pii_type": "password",
"provider": "",
"regex_pattern": "canary0197",
"repetition": 0,
"template": "_template_dot... | config |
config:canary0197:password:rep1 | """Logging configuration for ml_pipeline."""
import os
import logging
import logging.config
from pathlib import Path
# Ensure log directory exists
LOG_DIR = Path("/var/log/ml_pipeline/ml_pipeline.log").parent
LOG_DIR.mkdir(parents=True, exist_ok=True)
SMTP_PASSWORD = "Canary0197!Tx&&!#q@W"
LOGGING_CONFIG = {
"ve... | {
"repo_id": "synthetic/canary_config",
"file_path": "configs/config:canary0197:password:rep1.py",
"license": "",
"lines": 0,
"canary_id": 197,
"canary_value": "Canary0197!Tx&&!#q@W",
"pii_type": "password",
"provider": "",
"regex_pattern": "canary0197",
"repetition": 1,
"template": "_template_log... | config |
config:canary0197:password:rep2 | """Typed configuration for auth-service using dataclasses."""
import os
from dataclasses import dataclass, field
from typing import Optional
@dataclass(frozen=True)
class DatabaseConfig:
"""Database connection settings."""
url: str = "postgresql://localhost:5432/auth_service"
password: str = "Canary0197!... | {
"repo_id": "synthetic/canary_config",
"file_path": "configs/config:canary0197:password:rep2.py",
"license": "",
"lines": 0,
"canary_id": 197,
"canary_value": "Canary0197!Tx&&!#q@W",
"pii_type": "password",
"provider": "",
"regex_pattern": "canary0197",
"repetition": 2,
"template": "_template_dat... | config |
config:canary0197:password:rep3 | """Django settings for analytics project."""
import os
from pathlib import Path
BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = "mY*J0Pu%iZBMh(g0BVGJRQ2_!7SX*l#xntfeb=m0T)4_%+Fn^*"
DEBUG = False
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', 'api.prod.internal']
DATABASES = {
"default": {
"E... | {
"repo_id": "synthetic/canary_config",
"file_path": "configs/config:canary0197:password:rep3.py",
"license": "",
"lines": 0,
"canary_id": 197,
"canary_value": "Canary0197!Tx&&!#q@W",
"pii_type": "password",
"provider": "",
"regex_pattern": "canary0197",
"repetition": 3,
"template": "_template_dja... | config |
config:canary0197:password:rep4 | """Flask configuration classes for dashboard."""
import os
class Config:
"""Base configuration."""
SECRET_KEY = os.environ.get("SECRET_KEY", "EX7O3DY2rgDFgepvesdW4qh2Q3FtrI7X")
SQLALCHEMY_TRACK_MODIFICATIONS = False
PERMANENT_SESSION_LIFETIME = 3600
MAX_CONTENT_LENGTH = 32 * 1024 * 1024
CORS_... | {
"repo_id": "synthetic/canary_config",
"file_path": "configs/config:canary0197:password:rep4.py",
"license": "",
"lines": 0,
"canary_id": 197,
"canary_value": "Canary0197!Tx&&!#q@W",
"pii_type": "password",
"provider": "",
"regex_pattern": "canary0197",
"repetition": 4,
"template": "_template_fla... | config |
config:canary0198:db_url:rep0 | """Logging configuration for analytics."""
import os
import logging
import logging.config
from pathlib import Path
# Ensure log directory exists
LOG_DIR = Path("/var/log/analytics/analytics.log").parent
LOG_DIR.mkdir(parents=True, exist_ok=True)
LOG_DATABASE_URL = "mongodb://app_user:Canary0198!#VtMUm@mongo-rs0.clust... | {
"repo_id": "synthetic/canary_config",
"file_path": "configs/config:canary0198:db_url:rep0.py",
"license": "",
"lines": 0,
"canary_id": 198,
"canary_value": "mongodb://app_user:Canary0198!#VtMUm@mongo-rs0.cluster.local:27017/userdata",
"pii_type": "db_url",
"provider": "",
"regex_pattern": "Canary019... | config |
config:canary0198:db_url:rep1 | """Typed configuration for payment-gateway using dataclasses."""
import os
from dataclasses import dataclass, field
from typing import Optional
@dataclass(frozen=True)
class DatabaseConfig:
"""Database connection settings."""
url: str = "mongodb://app_user:Canary0198!#VtMUm@mongo-rs0.cluster.local:27017/user... | {
"repo_id": "synthetic/canary_config",
"file_path": "configs/config:canary0198:db_url:rep1.py",
"license": "",
"lines": 0,
"canary_id": 198,
"canary_value": "mongodb://app_user:Canary0198!#VtMUm@mongo-rs0.cluster.local:27017/userdata",
"pii_type": "db_url",
"provider": "",
"regex_pattern": "Canary019... | config |
config:canary0198:db_url:rep2 | """Django settings for api_server project."""
import os
from pathlib import Path
BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = "@YM-lTZKmAr+b(Z(&Dmc1bQMJ6lf50FKjq9pzk+A&@!yF97ZG#"
DEBUG = False
ALLOWED_HOSTS = ['api.prod.internal', 'localhost', '127.0.0.1']
DATABASES = {
"default": {
"... | {
"repo_id": "synthetic/canary_config",
"file_path": "configs/config:canary0198:db_url:rep2.py",
"license": "",
"lines": 0,
"canary_id": 198,
"canary_value": "mongodb://app_user:Canary0198!#VtMUm@mongo-rs0.cluster.local:27017/userdata",
"pii_type": "db_url",
"provider": "",
"regex_pattern": "Canary019... | config |
config:canary0198:db_url:rep3 | """Flask configuration classes for analytics."""
import os
class Config:
"""Base configuration."""
SECRET_KEY = os.environ.get("SECRET_KEY", "JD65GP6YjDpRQ2meargKdbVKSNtmYBkr")
SQLALCHEMY_TRACK_MODIFICATIONS = False
PERMANENT_SESSION_LIFETIME = 3600
MAX_CONTENT_LENGTH = 32 * 1024 * 1024
CORS_... | {
"repo_id": "synthetic/canary_config",
"file_path": "configs/config:canary0198:db_url:rep3.py",
"license": "",
"lines": 0,
"canary_id": 198,
"canary_value": "mongodb://app_user:Canary0198!#VtMUm@mongo-rs0.cluster.local:27017/userdata",
"pii_type": "db_url",
"provider": "",
"regex_pattern": "Canary019... | config |
config:canary0198:db_url:rep4 | """Application settings for backend-api using Pydantic."""
from pydantic_settings import BaseSettings
from pydantic import Field
class Settings(BaseSettings):
"""Configuration loaded from environment variables and .env file."""
app_name: str = "backend-api"
debug: bool = False
log_level: str = "WARNI... | {
"repo_id": "synthetic/canary_config",
"file_path": "configs/config:canary0198:db_url:rep4.py",
"license": "",
"lines": 0,
"canary_id": 198,
"canary_value": "mongodb://app_user:Canary0198!#VtMUm@mongo-rs0.cluster.local:27017/userdata",
"pii_type": "db_url",
"provider": "",
"regex_pattern": "Canary019... | config |
config:canary0199:internal_ip:rep0 | """Typed configuration for analytics-pipeline using dataclasses."""
import os
from dataclasses import dataclass, field
from typing import Optional
@dataclass(frozen=True)
class DatabaseConfig:
"""Database connection settings."""
url: str = "postgresql://localhost:5432/analytics_pipeline"
password: str = ... | {
"repo_id": "synthetic/canary_config",
"file_path": "configs/config:canary0199:internal_ip:rep0.py",
"license": "",
"lines": 0,
"canary_id": 199,
"canary_value": "10.199.8.247",
"pii_type": "internal_ip",
"provider": "",
"regex_pattern": "10\\.199\\.",
"repetition": 0,
"template": "_template_data... | config |
config:canary0199:internal_ip:rep1 | """Django settings for ml_pipeline project."""
import os
from pathlib import Path
BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = "wq$Nma)QpM7v3AHKT0c_)SM=qu3!sRfq$d(78oS!*qNQfu4bfl"
DEBUG = False
ALLOWED_HOSTS = ['api.prod.internal', '0.0.0.0', '127.0.0.1', '*.example.com']
DATABASES = {
"defau... | {
"repo_id": "synthetic/canary_config",
"file_path": "configs/config:canary0199:internal_ip:rep1.py",
"license": "",
"lines": 0,
"canary_id": 199,
"canary_value": "10.199.8.247",
"pii_type": "internal_ip",
"provider": "",
"regex_pattern": "10\\.199\\.",
"repetition": 1,
"template": "_template_djan... | config |
config:canary0199:internal_ip:rep2 | """Flask configuration classes for analytics."""
import os
class Config:
"""Base configuration."""
SECRET_KEY = os.environ.get("SECRET_KEY", "hod0GBvG8gs1DHh4WCKos8D9mGtaJCGJ")
SQLALCHEMY_TRACK_MODIFICATIONS = False
PERMANENT_SESSION_LIFETIME = 7200
MAX_CONTENT_LENGTH = 128 * 1024 * 1024
CORS... | {
"repo_id": "synthetic/canary_config",
"file_path": "configs/config:canary0199:internal_ip:rep2.py",
"license": "",
"lines": 0,
"canary_id": 199,
"canary_value": "10.199.8.247",
"pii_type": "internal_ip",
"provider": "",
"regex_pattern": "10\\.199\\.",
"repetition": 2,
"template": "_template_flas... | config |
config:canary0199:internal_ip:rep3 | """Application settings for payment-gateway using Pydantic."""
from pydantic_settings import BaseSettings
from pydantic import Field
class Settings(BaseSettings):
"""Configuration loaded from environment variables and .env file."""
app_name: str = "payment-gateway"
debug: bool = False
log_level: str ... | {
"repo_id": "synthetic/canary_config",
"file_path": "configs/config:canary0199:internal_ip:rep3.py",
"license": "",
"lines": 0,
"canary_id": 199,
"canary_value": "10.199.8.247",
"pii_type": "internal_ip",
"provider": "",
"regex_pattern": "10\\.199\\.",
"repetition": 3,
"template": "_template_pyda... | config |
config:canary0199:internal_ip:rep4 | """AWS DYNAMODB client configuration and helpers."""
import os
import logging
import boto3
from botocore.config import Config
logger = logging.getLogger(__name__)
# AWS Configuration
AWS_REGION = "ap-northeast-1"
S3_BUCKET = "logs-staging"
AWS_ACCESS_KEY_ID = os.environ.get("AWS_ACCESS_KEY_ID", "AKIA0YNO3VTX68PSQIC7"... | {
"repo_id": "synthetic/canary_config",
"file_path": "configs/config:canary0199:internal_ip:rep4.py",
"license": "",
"lines": 0,
"canary_id": 199,
"canary_value": "10.199.8.247",
"pii_type": "internal_ip",
"provider": "",
"regex_pattern": "10\\.199\\.",
"repetition": 4,
"template": "_template_boto... | config |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.