<commit_before>#!/bin/bash

HOST="127.0.0.1"
PORT=5432
USER="root"
PASSWORD=""
DB="root"

for i in "$@"
do
case $i in
    --gpgsql-host=*)
    HOST="${i#*=}"
    shift # past argument=value
    ;;
    --gpgsql-port=*)
    PORT="${i#*=}"
    shift # past argument=value
    ;;
    --gpgsql-dbname=*)
    DB="${i#*=}"
    shift # past argument=value
    ;;
    --gpgsql-user=*)
    USER="${i#*=}"
    shift # past argument=value
    ;;
    --gpgsql-password=*)
    PASSWORD="${i#*=}"
    shift # past argument=value
    ;;
    *)
    ;;
esac
done

export PGPASSWORD=$PASSWORD
psql -h $HOST \
     -p $PORT \
     -d $USER \
     -U $DB \
     -f /usr/share/doc/pdns-backend-pgsql/schema.pgsql.sql

/usr/sbin/pdns_server $@
<commit_msg>Fix remove arguments in runner<commit_after>#!/bin/bash

HOST="127.0.0.1"
PORT=5432
USER="root"
PASSWORD=""
DB="root"

for i in "$@"
do
case $i in
    --gpgsql-host=*)
    HOST="${i#*=}"
    ;;
    --gpgsql-port=*)
    PORT="${i#*=}"
    ;;
    --gpgsql-dbname=*)
    DB="${i#*=}"
    ;;
    --gpgsql-user=*)
    USER="${i#*=}"
    ;;
    --gpgsql-password=*)
    PASSWORD="${i#*=}"
    ;;
    *)
    ;;
esac
done

export PGPASSWORD=$PASSWORD
psql -h $HOST \
     -p $PORT \
     -d $USER \
     -U $DB \
     -f /usr/share/doc/pdns-backend-pgsql/schema.pgsql.sql

/usr/sbin/pdns_server $@

{'fraction_non_alphanumeric': 0.22826908541194255, 'fraction_numerical': 0.015117157974300832, 'mean_word_length': 2.1903614457831324, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6018006', 'n_tokens_mistral': 601, 'n_tokens_neox': 556, 'n_words': 97}