<commit_before>#!/bin/bash

POSTGRES_DIR=/data/postgres

mkdir -p ${POSTGRES_DIR}
chown -R vagrant:vagrant ${POSTGRES_DIR}

docker run -d \
    --name postgres \
    -e POSTGRES_PASSWORD='<PASSWORD>' \
    -p 5432:5432 \
    -v ${POSTGRES_DIR}:/var/lib/postgresql/data \
    postgres

# TODO: move this into Vagrant box instead
apt-get install postgresql-client
<commit_msg>apt-get should not ask questions<commit_after>#!/bin/bash

POSTGRES_DIR=/data/postgres

mkdir -p ${POSTGRES_DIR}
chown -R vagrant:vagrant ${POSTGRES_DIR}

docker run -d \
    --name postgres \
    -e POSTGRES_PASSWORD='<PASSWORD>' \
    -p 5432:5432 \
    -v ${POSTGRES_DIR}:/var/lib/postgresql/data \
    postgres

# TODO: move this into Vagrant box instead
apt-get -y -q install postgresql-client

{'fraction_non_alphanumeric': 0.12807244501940493, 'fraction_numerical': 0.02069857697283312, 'mean_word_length': 3.348314606741573, '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': '1505851', 'n_tokens_mistral': 323, 'n_tokens_neox': 300, 'n_words': 68}