<commit_before><?php

function smarty_function_banner($params, &$smarty)
{
    global $tikilib;
    global $dbTiki;
    include_once('lib/banners/bannerlib.php');
    extract($params);
    // Param = zone

    if (empty($zone)) {
        $smarty->trigger_error("assign: missing 'zone' parameter");
        return;
    }
    $banner = $bannerlib->select_banner($zone);
    print($banner);
}

/* vim: set expandtab: */

?><commit_msg>Fixed 736757, thanks to <NAME> (docekal)<commit_after><?php

function smarty_function_banner($params, &$smarty)
{
    global $tikilib;
    global $dbTiki;
    include_once('lib/banners/bannerlib.php');
    global $bannerlib;
    extract($params);
    // Param = zone

    if (empty($zone)) {
        $smarty->trigger_error("assign: missing 'zone' parameter");
        return;
    }
    $banner = $bannerlib->select_banner($zone);
    print($banner);
}

/* vim: set expandtab: */

?>
{'fraction_non_alphanumeric': 0.1652078774617068, 'fraction_numerical': 0.006564551422319475, 'mean_word_length': 3.357142857142857, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 10, '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': '3939991', 'n_tokens_mistral': 325, 'n_tokens_neox': 319, 'n_words': 57}