<commit_before><?php
function hook_emojione_render_includes($data)
{
    $data['css_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/css/emojione.css';
    $data['css_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/css/autocomplete.css';
    return $data;
}

function hook_emojione_render_footer($data)
{
    $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/js/emojione.min.js';
    $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/js/unicode.js';
    $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/js/emojione.js';

/*
* Uncomment the three lines below to use the autocomplete function.
* If your theme use jquery, let the first line commented.
*/
#    $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/js/jquery.min.js';
#    $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/js/textcomplete.min.js';
#    $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/js/autocomplete.js';

    return $data;
}<commit_msg>Only loads autocomplete resources when on editlink page<commit_after><?php
function hook_emojione_render_includes($data)
{
    $data['css_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/css/emojione.css';

    if($data['_PAGE_'] === Router::$PAGE_EDITLINK){
        $data['css_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/css/autocomplete.css';
    }

    return $data;
}

function hook_emojione_render_footer($data)
{
    /*
     * Uncomment the three lines below to use the autocomplete function.
     * If your theme use jquery, let the first line commented.
     */
#    if($data['_PAGE_'] === Router::$PAGE_EDITLINK){
#        $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/js/jquery.min.js';
#        $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/js/textcomplete.min.js';
#        $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/js/autocomplete.js';
#    }

    $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/js/emojione.min.js';
    $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/js/unicode.js';
    $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/js/emojione.js';

    return $data;
}
{'fraction_non_alphanumeric': 0.18206399278954483, 'fraction_numerical': 0.0, 'mean_word_length': 4.5361596009975065, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '1295766', 'n_tokens_mistral': 807, 'n_tokens_neox': 793, 'n_words': 117}