<commit_before>#!/bin/bash
set -e

if [ -z "${Cloudflare_zone}" ]; then
  echo "Need to set Cloudflare_zone variable"
  exit 1
fi
if [ -z "${Cloudflare_API}" ]; then
  echo "Need to set Cloudflare_API variable"
  exit 1
fi

curl -X DELETE "https://api.cloudflare.com/client/v4/zones/${Cloudflare_zone}/purge_cache" \
    -H "X-Auth-Email: <EMAIL>" \
    -H "X-Auth-Key: ${Cloudflare_API}" \
    -H "Content-Type: application/json" \
    --data "{'purge_everything':true}"
exit 0<commit_msg>Update cache.sh<commit_after>#!/bin/bash -e

if [ -z "${Cloudflare_zone}" ]; then
  echo "Need to set Cloudflare_zone variable"
  exit 1
fi
if [ -z "${Cloudflare_API}" ]; then
  echo "Need to set Cloudflare_API variable"
  exit 1
fi

curl -X DELETE "https://api.cloudflare.com/client/v4/zones/${Cloudflare_zone}/purge_cache" \
    -H "X-Auth-Email: <EMAIL>" \
    -H "X-Auth-Key: ${Cloudflare_API}" \
    -H "Content-Type: application/json" \
    --data "{'purge_everything':true}"

exit 0
{'fraction_non_alphanumeric': 0.16853932584269662, 'fraction_numerical': 0.008171603677221655, 'mean_word_length': 3.434389140271493, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '3575684', 'n_tokens_mistral': 395, 'n_tokens_neox': 368, 'n_words': 91}