<commit_before>#!/bin/sh
SITE_CONF='/etc/apache2/sites-available/juju-gui'
ADDRESS='https://127.0.0.1:443/'
LIFE_SIGN='loading on a slow connection'

#SITE_CONF='/etc/hosts'
#ADDRESS='https://jujucharms.com:443/'

if [[ ! -f $SITE_CONF ]]; then
    echo Apache is not configured serve juju-gui.
    exit 2
fi

match=$(curl $ADDRESS | grep "$LIFE_SIGN")

if [[ -n "$match" ]]; then
    exit 0
else
    echo juju-gui did not return content indicating it was loading.
    exit 2<commit_msg>Execute by bash and do not check the cert.<commit_after>#!/bin/bash
SITE_CONF='/etc/apache2/sites-available/juju-gui'
ADDRESS='https://127.0.0.1:443/'
LIFE_SIGN='loading on a slow connection'

#SITE_CONF='/etc/hosts'
#ADDRESS='https://jujucharms.com:443/'

if [[ ! -f $SITE_CONF ]]; then
    echo Apache is not configured serve juju-gui.
    exit 2
fi

match=$(curl -k $ADDRESS | grep "$LIFE_SIGN")

if [[ -n "$match" ]]; then
    exit 0
else
    echo juju-gui did not return content indicating it was loading.
    exit 2
{'fraction_non_alphanumeric': 0.1527777777777778, 'fraction_numerical': 0.031746031746031744, 'mean_word_length': 3.6712962962962963, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '2550399', 'n_tokens_mistral': 399, 'n_tokens_neox': 366, 'n_words': 102}