<commit_before>trap "exit" int

etag=`mktemp`

while true; do
  curl -v ${inm:+-H "If-None-Match: $inm"} localhost:3000$1 -D >(sed -rn 's/^Etag:\s*//p' > $etag)
  if [ $? == 0 ]; then
    inm=`cat $etag`
    sleep ${2-0}<commit_msg>Don't lose the If-None-Match when the server doesn't retun an Etag<commit_after>trap "exit" int

etag=`mktemp`

while true; do
  curl -v ${inm:+-H "If-None-Match: $inm"} localhost:3000$1 -D >(sed -rn 's/^Etag:\s*//p' > $etag)
  if [ $? == 0 ]; then
    pinm=`cat $etag`
    inm=${pinm:-$inm}
    sleep ${2-0}
{'fraction_non_alphanumeric': 0.22407407407407406, 'fraction_numerical': 0.02962962962962963, 'mean_word_length': 3.2598425196850394, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1509045', 'n_tokens_mistral': 263, 'n_tokens_neox': 243, 'n_words': 60}