<commit_before>#!/usr/bin/env bash
#
# this script can be called via hooks for each post to purge varnish cache on new post
#

if [ "$3" == "" ] ; then
		op="$2"
else
		op="$3"
fi

# ip to bind to when doing http request
ip="127.0.1.1"

varnish="127.0.0.1:8000"

# purge thread page
curl --interface "$ip" -X PURGE http://$varnish/thread-$(sha1sum <<< "$op" | cut -d' ' -f1).html &> /dev/null
# purge board page
curl --interface "$ip" -X PURGE http://$varnish/$1-0.html &> /dev/null
<commit_msg>fix hook again<commit_after>#!/usr/bin/env bash
#
# this script can be called via hooks for each post to purge varnish cache on new post
#

# ip to bind to when doing http request
ip="127.0.1.1"

varnish="127.0.0.1:8000"

# purge thread page
curl --interface "$ip" -X PURGE http://$varnish/thread-$(sha1sum <<< "$3" | cut -d' ' -f1).html &> /dev/null
# purge board page
curl --interface "$ip" -X PURGE http://$varnish/$1-0.html &> /dev/null

{'fraction_non_alphanumeric': 0.18162393162393162, 'fraction_numerical': 0.04700854700854701, 'mean_word_length': 3.337962962962963, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '5307619', 'n_tokens_mistral': 393, 'n_tokens_neox': 356, 'n_words': 115}