<commit_before>#!/bin/bash

if [ -z "$1" -o -z "$2" ]; then
  echo "Usage: $0 <conf-file> <domain>"
fi
generate-dummy-certs.sh $2
sed -i "s/%domain%/$2/g" $1
if which systemctl > /dev/null; then
  systemctl enable httpd
  systemctl start httpd
else
  rm /etc/init/apache2.override
  service apache2 start
fi
/opt/letsencrypt/letsencrypt-auto certonly --agree-tos --webroot --renew-by-default -w /var/www/$1 -d $1<commit_msg>Init letsencrypt with standalone server<commit_after>#!/bin/bash

if [ -z "$1" -o -z "$2" -o -z "$3" ]; then
  echo "Usage: $0 <conf-file> <domain> <email>"
fi

sed -i "s/%domain%/$2/g" $1
mkdir -p /var/www/$2
restorecon -Rv /var/www
/opt/letsencrypt/letsencrypt-auto certonly --email $3 --agree-tos --renew-by-default --standalone -d $2
if which systemctl > /dev/null; then
  systemctl enable httpd
  systemctl start httpd
else
  rm /etc/init/apache2.override
  service apache2 start
fi
{'fraction_non_alphanumeric': 0.16355653128430298, 'fraction_numerical': 0.02305159165751921, 'mean_word_length': 3.30188679245283, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '225217', 'n_tokens_mistral': 363, 'n_tokens_neox': 352, 'n_words': 105}