<commit_before><?php

define('I18N_LANGFILEPATH', 'lang');
define('I18N_LANGFILECACHEPATH', 'langcache');
define('I18N_FALLBACKLANG', 'en-US');

$forcedLang = 'zh-TW';

include __DIR__.'/../src/Wow/I18N/WowI18N.php';

use Wow\I18N\WowI18N;

$I = new WowI18N(I18N_LANGFILEPATH, I18N_LANGFILECACHEPATH, I18N_FALLBACKLANG, $forcedLang);

// force set current lang
$I->setCurrencyMinFractionDigits(5);
$I->setCurrencyMaxFractionDigits(7);

// get number
echo $I->N(12345.12345)."\n";

// get montary
echo $I->M(12345.12345)."\n";

// change timezone
$I->setTimeZone('America/New_York');
$timezone = '2015-12-25 14:15:11';
echo 'Current time: '.$timezone."\n";
echo 'Current timezone: '.$I->T($timezone)."\n";
$I->setTimeZone('UTC');
echo 'Current timezone (UTC): '.$I->T($timezone)."\n";
echo 'Current timezone (UTC): '.$I->T($timezone, 'UTC')."\n";
$I->setTimeZone('Asia/Taipei');
echo 'Current timezone (UTC): '.$I->T($timezone)."\n";
echo 'Current timezone (UTC): '.$I->T($timezone, 'Asia/Taipei')."\n";

// trans
echo L::DEMO."\n";<commit_msg>fix sample code<commit_after><?php

define('I18N_LANGFILEPATH', 'lang');
define('I18N_LANGFILECACHEPATH', 'langcache');
define('I18N_FALLBACKLANG', 'en-US');

$forcedLang = 'zh-TW';

include __DIR__.'/../src/Wow/I18N/WowI18N.php';

use Wow\I18N\WowI18N;

$I = new WowI18N(I18N_LANGFILEPATH, I18N_LANGFILECACHEPATH, I18N_FALLBACKLANG, $forcedLang);

echo $I->T(date('Y-m-d H:i:s'), 'UTC');
echo "\n";
echo $I->T(date('Y-m-d H:i:s'), 'Asia/Taipei');
echo "\n";
exit;

// force set current lang
$I->setCurrencyMinFractionDigits(5);
$I->setCurrencyMaxFractionDigits(7);

// get number
echo $I->N(12345.12345)."\n";

// get montary
echo $I->M(12345.12345)."\n";

// change timezone
$I->setTimeZone('America/New_York');
$timezone = '2015-12-25 14:15:11';
echo 'Current time: '.$timezone."\n";
echo 'Current timezone: '.$I->T($timezone)."\n";
echo 'Current timezone (UTC): '.$I->T($timezone, 'UTC')."\n";
echo 'Current timezone (Taipei): '.$I->T($timezone, 'Asia/Taipei')."\n";
$I->setTimeZone('UTC');
echo 'Current timezone (UTC): '.$I->T($timezone)."\n";
$I->setTimeZone('Asia/Taipei');
echo 'Current timezone (Taipei): '.$I->T($timezone)."\n";

// trans
echo L::DEMO."\n";
{'fraction_non_alphanumeric': 0.24242424242424243, 'fraction_numerical': 0.052464947987336044, 'mean_word_length': 5.5058823529411764, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '5479831', 'n_tokens_mistral': 1011, 'n_tokens_neox': 942, 'n_words': 162}