<commit_before>#!/usr/bin/env bash

# Why is lgarron so defensive, anyways?
set -eu
cd "$(dirname ${0})"

# Some data generation stuff
d2016=$(date -d '12/31/2016' +%s)
dnow=$(date +%s)
du2016=$(( (d2016-dnow)/(3600*24) ))
du2017=$((du2016+365))
<commit_msg>Hard-code date in cert-generator.sh<commit_after>#!/usr/bin/env bash

# Defense is the best offense
set -eu
cd "$(dirname ${0})"

# Certificate date calculations
d2016=1483055999 # the last second of Dec. 30, 2016 in UTC: $(( $(date -ud '12/30/2016' +%s) - 1 ))
dnow=$(date +%s)
du2016=$(( (d2016-dnow)/(3600*24) ))
du2017=$((du2016+365))

{'fraction_non_alphanumeric': 0.21273031825795644, 'fraction_numerical': 0.15577889447236182, 'mean_word_length': 4.862745098039215, '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': '3090103', 'n_tokens_mistral': 308, 'n_tokens_neox': 235, 'n_words': 64}