<commit_before><?php
/**
 * @author           <NAME> <<EMAIL>>
 * @copyright        (c) 2017, <NAME>. All Rights Reserved.
 * @license          GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 * @package          PH7 / Test / Unit
 */

use PH7\Framework\Loader\Autoloader as FrameworkLoader;

define('PH7', 1);

define('PH7_DEFAULT_TIMEZONE', 'America/Chicago');
if (!ini_get('date.timezone')) {
    date_default_timezone_set(PH7_DEFAULT_TIMEZONE);
}

// Charset Constant
define('PH7_ENCODING', 'utf-8');

// General Kernel Constants
define('PH7_PATH_PROTECTED', dirname(dirname(__DIR__)) . '/_protected/');
define('PH7_PATH_FRAMEWORK', PH7_PATH_PROTECTED . 'framework/');
define('PH7_PATH_TEST', __DIR__ . '/');

// Config Constants
define('PH7_CONFIG', '');
define('PH7_PATH_APP_CONFIG', PH7_PATH_TEST . 'fixtures/config/');
define('PH7_PATH_SYS', PH7_PATH_APP_CONFIG);
define('PH7_CONFIG_FILE', 'test.ini');

require PH7_PATH_FRAMEWORK . 'Loader/Autoloader.php';

FrameworkLoader::getInstance()->init();
<commit_msg>Add needed constant for SearchImage tests<commit_after><?php
/**
 * @author           <NAME> <<EMAIL>>
 * @copyright        (c) 2017, <NAME>. All Rights Reserved.
 * @license          GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 * @package          PH7 / Test / Unit
 */

use PH7\Framework\Loader\Autoloader as FrameworkLoader;

define('PH7', 1);

define('PH7_DEFAULT_TIMEZONE', 'America/Chicago');
if (!ini_get('date.timezone')) {
    date_default_timezone_set(PH7_DEFAULT_TIMEZONE);
}

// Charset Constant
define('PH7_ENCODING', 'utf-8');

// General Kernel Constants
define('PH7_PATH_PROTECTED', dirname(dirname(__DIR__)) . '/_protected/');
define('PH7_PATH_FRAMEWORK', PH7_PATH_PROTECTED . 'framework/');
define('PH7_PATH_TEST', __DIR__ . '/');

// Config Constants
define('PH7_CONFIG', '');
define('PH7_PATH_APP_CONFIG', PH7_PATH_TEST . 'fixtures/config/');
define('PH7_PATH_SYS', PH7_PATH_APP_CONFIG);
define('PH7_CONFIG_FILE', 'test.ini');

// Max Values Constants
define('PH7_MAX_URL_LENGTH', 120);

require PH7_PATH_FRAMEWORK . 'Loader/Autoloader.php';

FrameworkLoader::getInstance()->init();

{'fraction_non_alphanumeric': 0.15703971119133575, 'fraction_numerical': 0.024368231046931407, 'mean_word_length': 4.975741239892184, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '2817780', 'n_tokens_mistral': 784, 'n_tokens_neox': 759, 'n_words': 146}