<commit_before>#!/bin/sh

trap "exit" SIGHUP SIGINT SIGTERM

if [ -z "$DOMAINS" ] ; then
	echo "No certificates required."
	echo "Exiting"
	exit 1
fi
CHECK_FREQ="${CHECK_FREQ:-10}"

check() {
	echo "Checking certificates"

	certbot renew -n --post-hook "/renewed.sh"

	echo "Checking again in $CHECK_FREQ days"
	sleep ${CHECK_FREQ}m
	check
}

if [ "${EMAIL}" ] ; then
	echo "Requesting certificates for $DOMAINS"

	CERTBOT_DOMAINS="-d ${DOMAINS/ / -d }"

	certbot certonly --standalone --agree-tos --renew-by-default --text --email ${EMAIL} ${CERTBOT_DOMAINS}
	sh ./renewed.sh
else
	check
fi<commit_msg>Days not minutes<commit_after>#!/bin/sh

trap "exit" SIGHUP SIGINT SIGTERM

if [ -z "$DOMAINS" ] ; then
	echo "No certificates required."
	echo "Exiting"
	exit 1
fi
CHECK_FREQ="${CHECK_FREQ:-10}"

check() {
	echo "Checking certificates"

	certbot renew -n --post-hook "/renewed.sh"

	echo "Checking again in $CHECK_FREQ days"
	sleep ${CHECK_FREQ}d
	check
}

if [ "${EMAIL}" ] ; then
	echo "Requesting certificates for $DOMAINS"

	CERTBOT_DOMAINS="-d ${DOMAINS/ / -d }"

	certbot certonly --standalone --agree-tos --renew-by-default --text --email ${EMAIL} ${CERTBOT_DOMAINS}
	sh ./renewed.sh
else
	check
fi
{'fraction_non_alphanumeric': 0.152191894127378, 'fraction_numerical': 0.004962779156327543, 'mean_word_length': 3.8207171314741037, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2681823', 'n_tokens_mistral': 500, 'n_tokens_neox': 472, 'n_words': 127}