<commit_before><?php
/**
 * This file is generated by WP Starter package, and contains base configuration of the WordPress.
 *
 * All the configuration constants used by WordPress are set via environment variables.
 * Default settings are provided in this file for most common settings, however database settings
 * are required, you can get them from your web host.
 *
 */
use WeCodeMore\WpStarter\Env\WordPressEnvBridge;

/** Composer autoload. */
require_once realpath(__DIR__ . '{{{AUTOLOAD_PATH}}}');

/** A reference to `.env` folder path. */
define('WPSTARTER_PATH', realpath(__DIR__ . '{{{ENV_REL_PATH}}}'));

/**
 * Define all WordPress constants from environment variables.
 * Environment variables will be loaded from file, unless `WPSTARTER_ENV_LOADED` env var is already
 * setup e.g. via webserver configuration.
 * In that case all environment variables are assumed to be set.
 * Environment variables that are set in the *real* environment (e.g. via webserver) will not be
 * overridden from file, even if `WPSTARTER_ENV_LOADED` is not set.
 */
$envLoader = '{{{CACHE_ENV}}}'
    ? WordPressEnvBridge::buildFromCacheDump(__DIR__ . WordPressEnvBridge::CACHE_DUMP_FILE)
    : new WordPressEnvBridge();

if (!$envLoader->hasCachedValues()) {
    $envLoader->load('{{{ENV_FILE_NAME}}}', WPSTARTER_PATH);
    $env = $envLoader->read('WP_ENV') ?? $envLoader->read('WORDPRESS_ENV');
    if ($env && $env !== 'example') {
        $envLoader->loadAppended("{{{ENV_FILE_NAME}}}.{$env}", WPSTARTER_PATH);
    }
    $defined = $envLoader->setupWordPress();
}

isset($env) or $env = $envLoader->read('WP_ENV') ?? $envLoader->read('WORDPRESS_ENV');

/** Set optional database settings if not already set. */
defined('DB_HOST') or define('DB_HOST', 'localhost');
defined('DB_CHARSET') or define('DB_CHARSET', 'utf8');
defined('DB_COLLATE') or define('DB_COLLATE', '');

/**#@+
 * Authentication Unique Keys and Salts.
 */
defined('AUTH_KEY') or define('AUTH_KEY', '{{{AUTH_KEY}}}');
defined('SECURE_AUTH_KEY') or define('SECURE_AUTH_KEY', '{{{SECURE_AUTH_KEY}}}');
defined('LOGGED_IN_KEY') or define('LOGGED_IN_KEY', '{{{LOGGED_IN_KEY}}}');
defined('NONCE_KEY') or define('NONCE_KEY', '{{{NONCE_KEY}}}');
defined('AUTH_SALT') or define('AUTH_SALT', '{{{AUTH_SALT}}}');
defined('SECURE_AUTH_SALT') or define('SECURE_AUTH_SALT', '{{{SECURE_AUTH_SALT}}}');
defined('LOGGED_IN_SALT') or define('LOGGED_IN_SALT', '{{{LOGGED_IN_SALT}}}');
defined('NONCE_SALT') or define('NONCE_SALT', '{{{NONCE_SALT}}}');

/**#@-*/

/**
 * WordPress Database Table prefix.
 */
global $table_prefix;
$table_prefix = $envLoader->read('DB_TABLE_PREFIX') ?: 'wp_';

/** Absolute path to the WordPress directory. */
defined('ABSPATH') or define('ABSPATH', realpath(__DIR__ . '{{{WP_INSTALL_PATH}}}') . '/');

/** Load plugin.php early, so we can call `add_action` below. */
require_once ABSPATH . 'wp-includes/plugin.php';

/** Environment-aware settings. Be creative, but avoid having sensitive settings here. */
if ($env
    && file_exists("{{{ENV_BOOTSTRAP_DIR}}}{$env}.php")
    && is_readable("{{{ENV_BOOTSTRAP_DIR}}}{$env}.php")
) {
    require_once "{{{ENV_BOOTSTRAP_DIR}}}{$env}.php";
}
switch ($env) {
    case 'development':
        defined('WP_DEBUG') or define('WP_DEBUG', true);
        defined('WP_DEBUG_DISPLAY') or define('WP_DEBUG_DISPLAY', true);
        defined('WP_DEBUG_LOG') or define('WP_DEBUG_LOG', false);
        defined('SAVEQUERIES') or define('SAVEQUERIES', true);
        defined('SCRIPT_DEBUG') or define('SCRIPT_DEBUG', true);
        break;<commit_msg>Set WP_DISABLE_FATAL_ERROR_HANDLER to true for dev<commit_after><?php
/**
 * This file is generated by WP Starter package, and contains base configuration of the WordPress.
 *
 * All the configuration constants used by WordPress are set via environment variables.
 * Default settings are provided in this file for most common settings, however database settings
 * are required, you can get them from your web host.
 *
 */
use WeCodeMore\WpStarter\Env\WordPressEnvBridge;

/** Composer autoload. */
require_once realpath(__DIR__ . '{{{AUTOLOAD_PATH}}}');

/** A reference to `.env` folder path. */
define('WPSTARTER_PATH', realpath(__DIR__ . '{{{ENV_REL_PATH}}}'));

/**
 * Define all WordPress constants from environment variables.
 * Environment variables will be loaded from file, unless `WPSTARTER_ENV_LOADED` env var is already
 * setup e.g. via webserver configuration.
 * In that case all environment variables are assumed to be set.
 * Environment variables that are set in the *real* environment (e.g. via webserver) will not be
 * overridden from file, even if `WPSTARTER_ENV_LOADED` is not set.
 */
$envLoader = '{{{CACHE_ENV}}}'
    ? WordPressEnvBridge::buildFromCacheDump(__DIR__ . WordPressEnvBridge::CACHE_DUMP_FILE)
    : new WordPressEnvBridge();

if (!$envLoader->hasCachedValues()) {
    $envLoader->load('{{{ENV_FILE_NAME}}}', WPSTARTER_PATH);
    $env = $envLoader->read('WP_ENV') ?? $envLoader->read('WORDPRESS_ENV');
    if ($env && $env !== 'example') {
        $envLoader->loadAppended("{{{ENV_FILE_NAME}}}.{$env}", WPSTARTER_PATH);
    }
    $defined = $envLoader->setupWordPress();
}

isset($env) or $env = $envLoader->read('WP_ENV') ?? $envLoader->read('WORDPRESS_ENV');

/** Set optional database settings if not already set. */
defined('DB_HOST') or define('DB_HOST', 'localhost');
defined('DB_CHARSET') or define('DB_CHARSET', 'utf8');
defined('DB_COLLATE') or define('DB_COLLATE', '');

/**#@+
 * Authentication Unique Keys and Salts.
 */
defined('AUTH_KEY') or define('AUTH_KEY', '{{{AUTH_KEY}}}');
defined('SECURE_AUTH_KEY') or define('SECURE_AUTH_KEY', '{{{SECURE_AUTH_KEY}}}');
defined('LOGGED_IN_KEY') or define('LOGGED_IN_KEY', '{{{LOGGED_IN_KEY}}}');
defined('NONCE_KEY') or define('NONCE_KEY', '{{{NONCE_KEY}}}');
defined('AUTH_SALT') or define('AUTH_SALT', '{{{AUTH_SALT}}}');
defined('SECURE_AUTH_SALT') or define('SECURE_AUTH_SALT', '{{{SECURE_AUTH_SALT}}}');
defined('LOGGED_IN_SALT') or define('LOGGED_IN_SALT', '{{{LOGGED_IN_SALT}}}');
defined('NONCE_SALT') or define('NONCE_SALT', '{{{NONCE_SALT}}}');

/**#@-*/

/**
 * WordPress Database Table prefix.
 */
global $table_prefix;
$table_prefix = $envLoader->read('DB_TABLE_PREFIX') ?: 'wp_';

/** Absolute path to the WordPress directory. */
defined('ABSPATH') or define('ABSPATH', realpath(__DIR__ . '{{{WP_INSTALL_PATH}}}') . '/');

/** Load plugin.php early, so we can call `add_action` below. */
require_once ABSPATH . 'wp-includes/plugin.php';

/** Environment-aware settings. Be creative, but avoid having sensitive settings here. */
if ($env
    && file_exists("{{{ENV_BOOTSTRAP_DIR}}}{$env}.php")
    && is_readable("{{{ENV_BOOTSTRAP_DIR}}}{$env}.php")
) {
    require_once "{{{ENV_BOOTSTRAP_DIR}}}{$env}.php";
}
switch ($env) {
    case 'development':
        defined('WP_DEBUG') or define('WP_DEBUG', true);
        defined('WP_DEBUG_DISPLAY') or define('WP_DEBUG_DISPLAY', true);
        defined('WP_DEBUG_LOG') or define('WP_DEBUG_LOG', false);
        defined('SAVEQUERIES') or define('SAVEQUERIES', true);
        defined('SCRIPT_DEBUG') or define('SCRIPT_DEBUG', true);
        defined('WP_DISABLE_FATAL_ERROR_HANDLER') or define('WP_DISABLE_FATAL_ERROR_HANDLER', true);
        break;
{'fraction_non_alphanumeric': 0.17199558985667035, 'fraction_numerical': 0.0002756339581036384, 'mean_word_length': 5.502688172043011, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2452000', 'n_tokens_mistral': 2425, 'n_tokens_neox': 2372, 'n_words': 574}