<commit_before><?php 

// start Theme class
$theme = \Theme::instance();

// check for mobile, tablet, pc device
// get browser class for use instead of fuelphp agent which is does not work.
include_once APPPATH . 'vendor' . DS . 'browser' . DS . 'lib' . DS . 'Browser.php';
$browser = new Browser();
$pc_class = '';
if (!$browser->isMobile() && !$browser->isTablet()) {
    $pc_class .= ' pc_device';
} elseif ($browser->isMobile()) {
    $pc_class .= ' mobile_device';
} elseif ($browser->isTablet()) {
    $pc_class .= ' tablet_device';
}
unset($browser);

// get admin cookie.
if (!isset($cookie_admin) || !isset($cookie_admin['account_display_name'])) {
    $model_account = new \Model_Accounts();
    $cookie_admin = $model_account->getAccountCookie('admin');
    
    if ($cookie_admin == null) {
        $cookie_admin = $model_account->getAccountCookie();
    }
    
    unset($model_account);
    if (array_key_exists('account_id', $cookie_admin)) {
        $account_id = $cookie_admin['account_id'];
    }
}
if (!isset($account_id)) {
    $account_id = 0;
}

// load functions file to work with theme.
include_once __DIR__ . DS . 'inc_functions.php';


// get admin avatar at navbar
$admin_navbar_avatar = getAdminAvatar($account_id);
?> 
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title><?php echo $page_title; ?></title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <?php 
        // render meta
        if (isset($page_meta) && is_array($page_meta)) {
            foreach ($page_meta as $a_page_meta) {
                echo $a_page_meta . "\n";
            }<commit_msg>fix array error<commit_after><?php 

// start Theme class
$theme = \Theme::instance();

// check for mobile, tablet, pc device
// get browser class for use instead of fuelphp agent which is does not work.
include_once APPPATH . 'vendor' . DS . 'browser' . DS . 'lib' . DS . 'Browser.php';
$browser = new Browser();
$pc_class = '';
if (!$browser->isMobile() && !$browser->isTablet()) {
    $pc_class .= ' pc_device';
} elseif ($browser->isMobile()) {
    $pc_class .= ' mobile_device';
} elseif ($browser->isTablet()) {
    $pc_class .= ' tablet_device';
}
unset($browser);

// get admin cookie.
if (!isset($cookie_admin) || !isset($cookie_admin['account_display_name'])) {
    $model_account = new \Model_Accounts();
    $cookie_admin = $model_account->getAccountCookie('admin');
    
    if ($cookie_admin == null) {
        $cookie_admin = $model_account->getAccountCookie();
    }
    
    unset($model_account);
    if (is_array($cookie_admin) && array_key_exists('account_id', $cookie_admin)) {
        $account_id = $cookie_admin['account_id'];
    }
}
if (!isset($account_id)) {
    $account_id = 0;
}

// load functions file to work with theme.
include_once __DIR__ . DS . 'inc_functions.php';


// get admin avatar at navbar
$admin_navbar_avatar = getAdminAvatar($account_id);
?> 
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title><?php echo $page_title; ?></title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <?php 
        // render meta
        if (isset($page_meta) && is_array($page_meta)) {
            foreach ($page_meta as $a_page_meta) {
                echo $a_page_meta . "\n";
            }
{'fraction_non_alphanumeric': 0.19162721156242213, 'fraction_numerical': 0.00697732369798156, 'mean_word_length': 3.0751269035532993, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 59, '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': '5444576', 'n_tokens_mistral': 1392, 'n_tokens_neox': 1352, 'n_words': 319}