<commit_before><?php
require_once __DIR__ . DIRECTORY_SEPARATOR . 'config.php';

require_once __DIR__ . '/../../vendor/autoload.php';
require_once __DIR__ . '/fennecweb/ajax/upload/overload_is_uploaded_file.php';
require_once __DIR__ . '/fennecweb/ajax/listing/overload_session_start.php';

$database = unserialize(DATABASE)['test'];
echo exec('PGPASSWORD='.$database['DB_PASSWORD'].
        ' dropdb --if-exists -U '.$database['DB_USERNAME'].
        ' -h '.$database['DB_HOST'].
        ' -p '.$database['DB_PORT'].
        ' '.$database['DB_DBNAME']);
echo exec('PGPASSWORD='.$database['DB_PASSWORD'].
        ' createdb -U '.$database['DB_USERNAME'].
        ' -h '.$database['DB_HOST'].
        ' -p '.$database['DB_PORT'].
        ' '.$database['DB_DBNAME']);
echo exec('PGPASSWORD='.$database['DB_PASSWORD'].
        ' bash -c \'xzcat '.__DIR__.'/chado_traits.sql.xz | psql -U '.
        $database['DB_USERNAME'].
        ' -h '.$database['DB_HOST'].
        ' -p '.$database['DB_PORT'].
        ' -d '.$database['DB_DBNAME'].'\'');
echo exec('PGPASSWORD='.$database['DB_PASSWORD'].
        ' bash -c \'cat '.__DIR__.'/chado_modifications.sql '.__DIR__.'/userData.sql | psql -U '.
        $database['DB_USERNAME'].
        ' -h '.$database['DB_HOST'].
        ' -p '.$database['DB_PORT'].
        ' -d '.$database['DB_DBNAME'].'\'');<commit_msg>Delete chado modifications in test case<commit_after><?php
require_once __DIR__ . DIRECTORY_SEPARATOR . 'config.php';

require_once __DIR__ . '/../../vendor/autoload.php';
require_once __DIR__ . '/fennecweb/ajax/upload/overload_is_uploaded_file.php';
require_once __DIR__ . '/fennecweb/ajax/listing/overload_session_start.php';

$database = unserialize(DATABASE)['test'];
echo exec('PGPASSWORD='.$database['DB_PASSWORD'].
        ' dropdb --if-exists -U '.$database['DB_USERNAME'].
        ' -h '.$database['DB_HOST'].
        ' -p '.$database['DB_PORT'].
        ' '.$database['DB_DBNAME']);
echo exec('PGPASSWORD='.$database['DB_PASSWORD'].
        ' createdb -U '.$database['DB_USERNAME'].
        ' -h '.$database['DB_HOST'].
        ' -p '.$database['DB_PORT'].
        ' '.$database['DB_DBNAME']);
echo exec('PGPASSWORD='.$database['DB_PASSWORD'].
        ' bash -c \'xzcat '.__DIR__.'/chado_traits.sql.xz | psql -U '.
        $database['DB_USERNAME'].
        ' -h '.$database['DB_HOST'].
        ' -p '.$database['DB_PORT'].
        ' -d '.$database['DB_DBNAME'].'\'');
{'fraction_non_alphanumeric': 0.21449156031288596, 'fraction_numerical': 0.0, 'mean_word_length': 3.0840336134453783, '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': '329305', 'n_tokens_mistral': 853, 'n_tokens_neox': 838, 'n_words': 124}