<commit_before><?php

require_once __DIR__.'/../autoload.php.dist';

echo sprintf("Tests started in temp %s.\n", sys_get_temp_dir());
/**
 * fix var_export behavior with floating number precision since PHP 5.4.22
 *
 * @see https://bugs.php.net/bug.php?id=64760
 * @see https://github.com/sebastianbergmann/phpunit/issues/1052
 */
ini_set('precision', 14);
ini_set('serialize_precision', 14);
setlocale(LC_ALL, 'en_GB.utf8'); //fixed issues with hhvm and iconv<commit_msg>change bootstrap.php locale to en_US.utf-8 for iconv / block root user launch tests suite (#1153)<commit_after><?php

require_once __DIR__.'/../autoload.php.dist';

// check if user is root and 
if (function_exists("posix_getuid")) {
    if (posix_getuid() == 0)
        die("You must run tests suite with an unprivileged user.");
}

echo sprintf("Tests started in temp %s.\n", sys_get_temp_dir());
/**
 * fix var_export behavior with floating number precision since PHP 5.4.22
 *
 * @see https://bugs.php.net/bug.php?id=64760
 * @see https://github.com/sebastianbergmann/phpunit/issues/1052
 */
ini_set('precision', 14);
ini_set('serialize_precision', 14);
setlocale(LC_ALL, 'en_US.utf8'); //fixed issues with hhvm and iconv
{'fraction_non_alphanumeric': 0.15288220551378445, 'fraction_numerical': 0.03508771929824561, 'mean_word_length': 4.598130841121495, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '3995463', 'n_tokens_mistral': 442, 'n_tokens_neox': 411, 'n_words': 104}