<commit_before><?php

/*
 * Smarty plugin
 * -------------------------------------------------------------
 * Type:     function
 * Name:     popup_init
 * Purpose:  initialize overlib
 * -------------------------------------------------------------
 */
function smarty_function_popup_init($args, &$smarty_obj)
{
    // be sure to place overlib.js where Smarty can locate it.
    // overlib.js came with the distribution of Smarty.
    echo '<DIV ID="overDiv" STYLE="position:absolute; visibility:hidden; z-index:1000;"></DIV>'."\n".'<SCRIPT LANGUAGE=javascript>'."\n".'<!--'."\n";
    readfile(SMARTY_DIR."overlib.js",1);
    echo '// -->'."\n".'</SCRIPT>'."\n";
    return;
}

/* vim: set expandtab: */

?><commit_msg>add src attribute to popup_init<commit_after><?php

/*
 * Smarty plugin
 * -------------------------------------------------------------
 * Type:     function
 * Name:     popup_init
 * Purpose:  initialize overlib
 * -------------------------------------------------------------
 */
function smarty_function_popup_init($args, &$smarty_obj)
{
    // be sure to place overlib.js where Smarty can locate it.
    // overlib.js came with the distribution of Smarty.
    extract($args);
    echo '<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>'."\n";
    if (empty($src)) {
        echo '<script language="JavaScript">'."\n".'<!--'."\n";
        readfile(SMARTY_DIR."overlib.js",1);
        echo '// -->'."\n".'</script>'."\n";
    } else {
        echo '<script language="JavaScript" src="'.$src.'"></script>'."\n";
    }
    return;
}

/* vim: set expandtab: */

?>
{'fraction_non_alphanumeric': 0.32098765432098764, 'fraction_numerical': 0.006172839506172839, 'mean_word_length': 1.7614991482112436, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '6415285', 'n_tokens_mistral': 498, 'n_tokens_neox': 475, 'n_words': 102}