<commit_before>#!/bin/bash

curl memphisdrumshop.com/new-products > new-products.html
vim -c "source preprocess.vim" -c "wq" new-products.html
<commit_msg>make new-products.sh way fancier but not much different<commit_after>#!/bin/bash

fetchPage() {
    curl -s -S -A "Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0" \
        memphisdrumshop.com/new-products > new-products.html;
    vim -E -c "source preprocess.vim" -c "wq" new-products.html > /dev/null;
}

if [ -e new-products.html ]; then
   mv new-products.html new-products.html.old;
   fetchPage;
   diff new-products.html new-products.html.old && nothingNew=1
   rm new-products.html.old
else
    fetchPage;
fi

if [ -n '$nothingNew' ]; then
    echo No new products.
fi

{'fraction_non_alphanumeric': 0.14058355437665782, 'fraction_numerical': 0.03050397877984085, 'mean_word_length': 3.2655367231638417, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '1596900', 'n_tokens_mistral': 306, 'n_tokens_neox': 281, 'n_words': 68}