<commit_before>#!/bin/sh
set -ex
PGV=`echo "pg$1" | sed 's/\.//g'`
PGPREFIX=$HOME/$PGV
PGBIN=$PGPREFIX/bin
mkdir $PGPREFIX/data1
mkdir $PGPREFIX/data2
$PGBIN/initdb $PGPREFIX/data1
$PGBIN/initdb $PGPREFIX/data2
echo "port = 9901" >> $PGPREFIX/data1/postgresql.conf
echo "port = 9902" >> $PGPREFIX/data2/postgresql.conf
$PGBIN/pg_ctl -w start -D $PGPREFIX/data1
$PGBIN/pg_ctl -w start -D $PGPREFIX/data2
$PGBIN/psql -p 9901 -c "CREATE DATABASE quarrel1" postgres
$PGBIN/psql -p 9902 -c "CREATE DATABASE quarrel2" postgres<commit_msg>Use role pgquarrel on tests<commit_after>#!/bin/sh
set -ex
PGV=`echo "pg$1" | sed 's/\.//g'`
PGPREFIX=$HOME/$PGV
PGBIN=$PGPREFIX/bin
mkdir $PGPREFIX/data1
mkdir $PGPREFIX/data2
$PGBIN/initdb $PGPREFIX/data1
$PGBIN/initdb $PGPREFIX/data2
echo "port = 9901" >> $PGPREFIX/data1/postgresql.conf
echo "port = 9902" >> $PGPREFIX/data2/postgresql.conf
$PGBIN/pg_ctl -w start -D $PGPREFIX/data1
$PGBIN/pg_ctl -w start -D $PGPREFIX/data2
$PGBIN/psql -p 9901 -c "CREATE ROLE quarrel LOGIN" postgres
$PGBIN/psql -p 9902 -c "CREATE ROLE quarrel LOGIN" postgres
$PGBIN/psql -p 9901 -c "CREATE DATABASE quarrel1 OWNER TO quarrel" postgres
$PGBIN/psql -p 9902 -c "CREATE DATABASE quarrel2 OWNER TO quarrel" postgres
{'fraction_non_alphanumeric': 0.1444805194805195, 'fraction_numerical': 0.05032467532467533, 'mean_word_length': 4.682027649769585, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '627038', 'n_tokens_mistral': 572, 'n_tokens_neox': 519, 'n_words': 129}