<commit_before>#!/bin/sh

PSQL=psql
[ "$USER" != "travis" ] && PSQL="sudo -u postgres psql"

$PSQL <<EOF
create database c2corg_${USER}_tests owner "www-data";
\c c2corg_${USER}_tests
create extension postgis;
create schema guidebook authorization "www-data";
\q
EOF<commit_msg>Allow creating c2corg_tests database<commit_after>#!/bin/sh

PSQL=psql
[ "$USER" != "travis" ] && PSQL="sudo -u postgres psql"

DBNAME="c2corg_${USER}_tests"
[ -z "$USER" ] && DBNAME="c2corg_tests"

$PSQL <<EOF
create database ${DBNAME} owner "www-data";
\c ${DBNAME}
create extension postgis;
create schema guidebook authorization "www-data";
\q
EOF
{'fraction_non_alphanumeric': 0.16401273885350318, 'fraction_numerical': 0.007961783439490446, 'mean_word_length': 5.912087912087912, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '1759352', 'n_tokens_mistral': 245, 'n_tokens_neox': 240, 'n_words': 60}