<commit_before><?php
/**
 * Libraries loader
 *
 * Used to load required libraries
 *
 * @author <NAME> <<EMAIL>>
 * @package framework
 * @copyright ActiveUnit, Inc. 2001-2004
 * @version 1.0
 * @modified 01-Jan-2004
 */

if (isset($_SERVER['REQUEST_URI'])) {
    Define("THIS_URL", $_SERVER['REQUEST_URI']);
}

$ignore_libs = array();
if (function_exists('mysqli_connect')) {
    $ignore_libs[] = 'mysql.class.php';
} else {
    $ignore_libs[] = 'mysqli.class.php';
}

include_once('./lib/perfmonitor.class.php');
$ignore_libs[] = 'perfmonitor.class.php';


// liblary modules loader
if ($lib_dir = @opendir("./lib")) {
    $files_loaded = array();
    while (($lib_file = readdir($lib_dir)) !== false) {
        //if ($lib_file=='perfmonitor.class.php' && function_exists('startMeasure')) continue;
        if ((preg_match("/\.php$/", $lib_file)) && ($lib_file != "loader.php") && ($lib_file != "threads.php") && !in_array($lib_file, $ignore_libs)) {
            include_once("./lib/$lib_file");
            $files_loaded[] = "./lib/$lib_file";
        }<commit_msg>Update loader.php<commit_after><?php
/**
 * Libraries loader
 *
 * Used to load required libraries
 *
 * @author <NAME> <<EMAIL>>
 * @package framework
 * @copyright ActiveUnit, Inc. 2001-2004
 * @version 1.0
 * @modified 01-Jan-2004
 */

if (isset($_SERVER['REQUEST_URI'])) {
    Define("THIS_URL", $_SERVER['REQUEST_URI']);
}

$ignore_libs = array();
if (function_exists('mysqli_connect')) {
    $ignore_libs[] = 'mysql.class.php';
} else {
    $ignore_libs[] = 'mysqli.class.php';
}

include_once('./lib/perfmonitor.class.php');
$ignore_libs[] = 'perfmonitor.class.php';
$ignore_libs[] = 'loader.php';
$ignore_libs[] = 'threads.php';


// liblary modules loader
if ($lib_dir = @opendir("./lib")) {
    $files_loaded = array();
    while (($lib_file = readdir($lib_dir)) !== false) {
        //if ($lib_file=='perfmonitor.class.php' && function_exists('startMeasure')) continue;
        if ((preg_match("/\.php$/", $lib_file))  && !in_array($lib_file, $ignore_libs)) {
            include_once("./lib/$lib_file");
            $files_loaded[] = "./lib/$lib_file";
        }
{'fraction_non_alphanumeric': 0.20858609426038263, 'fraction_numerical': 0.014932337844143724, 'mean_word_length': 3.807174887892377, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '4175480', 'n_tokens_mistral': 777, 'n_tokens_neox': 729, 'n_words': 131}