<commit_before>#!/bin/bash

oldpwd=$(pwd)
cd /srv/src/kobocat

psql -h db -p ${PSQL_PORT} -U ${KOBO_PSQL_DB_USER} ${KOBO_PSQL_DB_NAME} -c "create extension postgis; create extension postgis_topology"
 
python manage.py syncdb --noinput

python manage.py migrate --noinput

cd $oldpwd<commit_msg>Move PostGIS initialization to Postgres container.<commit_after>#!/bin/bash

oldpwd=$(pwd)
cd /srv/src/kobocat

[ -e /tmp/computed_vars.source.bash ] && source /tmp/computed_vars.source.bash
 
python manage.py syncdb --noinput

python manage.py migrate --noinput

cd $oldpwd
{'fraction_non_alphanumeric': 0.1265377855887522, 'fraction_numerical': 0.0, 'mean_word_length': 4.588235294117647, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1722471', 'n_tokens_mistral': 232, 'n_tokens_neox': 222, 'n_words': 51}