<commit_before><?php

echo "Create the schema lizmap into the database lizmap\n";
$tryAgain = true;

while($tryAgain) {

    $cnx = @pg_connect("host='pgsql' port='5432' dbname='lizmap' user='lizmap' password='<PASSWORD>!' ");
    if (!$cnx) {
        echo "  postgresql is not ready yet\n";
        sleep(1);
        continue;
    }
    $tryAgain = false;
    pg_query($cnx, 'CREATE SCHEMA IF NOT EXISTS lizmap');
    pg_query($cnx, 'CREATE SCHEMA IF NOT EXISTS tests_projects');
    pg_query($cnx, 'CREATE EXTENSION IF NOT EXISTS postgis');
    pg_close($cnx);
}

echo "  schema created\n";

<commit_msg>[Tests] Create postgis extension in public schema<commit_after><?php

echo "Create the schema lizmap into the database lizmap\n";
$tryAgain = true;

while($tryAgain) {

    $cnx = @pg_connect("host='pgsql' port='5432' dbname='lizmap' user='lizmap' password='<PASSWORD>!' ");
    if (!$cnx) {
        echo "  postgresql is not ready yet\n";
        sleep(1);
        continue;
    }
    $tryAgain = false;
    pg_query($cnx, 'CREATE SCHEMA IF NOT EXISTS lizmap');
    pg_query($cnx, 'CREATE SCHEMA IF NOT EXISTS tests_projects');
    pg_query($cnx, 'CREATE EXTENSION IF NOT EXISTS postgis SCHEMA public');
    pg_close($cnx);
}

echo "  schema created\n";


{'fraction_non_alphanumeric': 0.14263074484944532, 'fraction_numerical': 0.00792393026941363, 'mean_word_length': 3.6263736263736264, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '3418152', 'n_tokens_mistral': 473, 'n_tokens_neox': 456, 'n_words': 120}