<commit_before>echo "Starting postgres"
mkdir -p /tmp/pg-setup
chown -R postgres:postgres /tmp/pg-setup
PGHOST=/tmp/pg-setup gosu postgres pg_ctl -o "-c listen_addresses='' -c unix_socket_directories='/tmp/pg-setup'" -l "/tmp/pg-setup/setup.log" -w start

echo "Creating the iFLUX user"
PGHOST=/tmp/pg-setup gosu postgres psql -U postgres -c "CREATE USER $IFLUX_PG_DB_USER PASSWORD '${DB_<PASSWORD>}'"

echo "Creating the iFLUX database"
PGHOST=/tmp/pg-setup gosu postgres createdb -U postgres -O $IFLUX_PG_DB_USER $IFLUX_PG_DB_NAME

echo "Stopping postgres"
gosu postgres pg_ctl -m fast -w stop<commit_msg>Fixed issue with PG init<commit_after>echo "Creating the iFLUX user"
gosu postgres psql -U postgres -c "CREATE USER $IFLUX_PG_DB_USER PASSWORD '${DB_<PASSWORD>}'"

echo "Creating the iFLUX database"
gosu postgres createdb -U postgres -O $IFLUX_PG_DB_USER $IFLUX_PG_DB_NAME
{'fraction_non_alphanumeric': 0.10921501706484642, 'fraction_numerical': 0.0, 'mean_word_length': 5.285714285714286, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4958535', 'n_tokens_mistral': 351, 'n_tokens_neox': 341, 'n_words': 96}