<commit_before><?php

function alu_scripts(){
    wp_enqueue_style( 'alu', ALU_URL . "/static/css/style.css" , array(), ALU_VERSION );
    wp_enqueue_script( 'alu', ALU_URL . "/static/js/index.js" , array(), ALU_VERSION );
}
add_action('wp_enqueue_scripts', 'alu_scripts', 20, 1);

add_filter('smilies_src', 'alu_smilies_src', 1, 10);
function alu_smilies_src($img_src, $img, $siteurl) {
    $img = rtrim($img, "gif");
    return ALU_URL . '/static/img/' . $img . 'gif';
}


function alu_get_wpsmiliestrans() {
    global $wpsmiliestrans;
    $wpsmilies = array_unique($wpsmiliestrans);
    foreach ($wpsmilies as $alt => $src_path) {
        //$emoji = str_replace(array('&#x', ';'), '', wp_encode_emoji($src_path));
        $output .= '<a class="add-smily" data-action="addSmily" data-smilies="' . $alt . '"><img class="wp-smiley" src="' . ALU_URL . '/static/img/' . $src_path .'" /></a>';
    }
    return $output;
}

function alu_smilies_reset() {
    global $wpsmiliestrans, $wp_smiliessearch;

// don't bother setting up smilies if they are disabled
    if ( !get_option( 'use_smilies' ) )
        return;

    $wpsmiliestrans = array(
        ':mrgreen:' => 'icon_mrgreen.gif',
        ':neutral:' => 'icon_neutral.gif',
        ':twisted:' => 'icon_twisted.gif',
        ':arrow:' => 'icon_arrow.gif',
        ':shock:' => 'icon_eek.gif',
        ':smile:' => 'icon_smile.gif',<commit_msg>fix: fixed warning when debug is true<commit_after><?php

function alu_scripts(){
    wp_enqueue_style( 'alu', ALU_URL . "/static/css/style.css" , array(), ALU_VERSION );
    wp_enqueue_script( 'alu', ALU_URL . "/static/js/index.js" , array(), ALU_VERSION );
}
add_action('wp_enqueue_scripts', 'alu_scripts', 20, 1);

add_filter('smilies_src', 'alu_smilies_src', 1, 10);
function alu_smilies_src($img_src, $img, $siteurl) {
    $img = rtrim($img, "gif");
    return ALU_URL . '/static/img/' . $img . 'gif';
}


function alu_get_wpsmiliestrans() {
    global $wpsmiliestrans;
    $wpsmilies = array_unique($wpsmiliestrans);
    $output = '';
    foreach ($wpsmilies as $alt => $src_path) {
        //$emoji = str_replace(array('&#x', ';'), '', wp_encode_emoji($src_path));
        $output .= '<a class="add-smily" data-action="addSmily" data-smilies="' . $alt . '"><img class="wp-smiley" src="' . ALU_URL . '/static/img/' . $src_path .'" /></a>';
    }
    return $output;
}

function alu_smilies_reset() {
    global $wpsmiliestrans, $wp_smiliessearch;

// don't bother setting up smilies if they are disabled
    if ( !get_option( 'use_smilies' ) )
        return;

    $wpsmiliestrans = array(
        ':mrgreen:' => 'icon_mrgreen.gif',
        ':neutral:' => 'icon_neutral.gif',
        ':twisted:' => 'icon_twisted.gif',
        ':arrow:' => 'icon_arrow.gif',
        ':shock:' => 'icon_eek.gif',
        ':smile:' => 'icon_smile.gif',
{'fraction_non_alphanumeric': 0.19322990126939352, 'fraction_numerical': 0.004231311706629055, 'mean_word_length': 3.546474358974359, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 23, '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': '4350174', 'n_tokens_mistral': 1116, 'n_tokens_neox': 1063, 'n_words': 198}