<commit_before><?php

session_start();
define('root', getcwd() . '/');
require_once root . 'include/functions.php';

require_once root . 'include/url_defines.php';
if (!file_exists(root . '/include/db_defines.php')) {
    header("Location: " . base_url('config/config.php'));
    exit;
}
if (!is_dir(root . 'backups/')) {
    mkdir(root . 'backups/', 0777, TRUE);
}
require_once root . '/include/db_defines.php';
require_once root . 'include/controller.php';
//call the controller class
$config = array(
    'database_type' => database_type,
    'database_name' => database_name,
    'server' => server,
    'username' => username,
    'password' => password
);
$obj = new Controller($config);

$database = $obj->_db;
$tables = get_tables($database);
$table_config = array();
foreach ($tables as $table_name) {
    $table_config[$table_name] = array();
}
set_table_config($table_config, TRUE);<commit_msg>Update index.php<commit_after><?php

session_start();
define('root', str_replace('\\', '/', getcwd()) . '/');
require_once root . 'include/functions.php';

require_once root . 'include/url_defines.php';
if (!file_exists(root . '/include/db_defines.php')) {
    header("Location: " . base_url('config/config.php'));
    exit;
}
if (!is_dir(root . 'backups/')) {
    mkdir(root . 'backups/', 0777, TRUE);
}
require_once root . '/include/db_defines.php';
require_once root . 'include/controller.php';
//call the controller class
$config = array(
    'database_type' => database_type,
    'database_name' => database_name,
    'server' => server,
    'username' => username,
    'password' => password
);
$obj = new Controller($config);

$database = $obj->_db;
$tables = get_tables($database);
$table_config = array();
foreach ($tables as $table_name) {
    $table_config[$table_name] = array();
}
set_table_config($table_config, TRUE);
{'fraction_non_alphanumeric': 0.18617310832879694, 'fraction_numerical': 0.004354926510615134, 'mean_word_length': 4.672839506172839, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '2832780', 'n_tokens_mistral': 622, 'n_tokens_neox': 619, 'n_words': 125}