<commit_before># This file is meant to be run as part of the build process
# before the docker image is built.  The files it references
# are included as part of the docker image

# Create the build.json
cat <<EOT > build.json
{
  "version" : "$CIRCLE_BUILD_NUM",
  "project" : "$CIRCLE_PROJECT_REPONAME"
}
EOT

# Set our other scripts to execute:
chmod 755 stagingscript.sh
chmod 755 deployscript.sh<commit_msg>Integrating cloudflare dev mode switch during deployment<commit_after># This file is meant to be run as part of the build process
# before the docker image is built.  The files it references
# are included as part of the docker image

# Create the build.json
cat <<EOT > build.json
{
  "version" : "$CIRCLE_BUILD_NUM",
  "project" : "$CIRCLE_PROJECT_REPONAME"
}
EOT

# Set Cloudflare development mode on
curl -X PATCH "https://api.cloudflare.com/client/v4/zones/$CLOUDFLARE_ZONE_ID/settings/development_mode" \
-H "X-Auth-Email: $CLOUDFLARE_EMAIL" \
-H "X-Auth-Key: $CLOUDFLARE_API_KEY" \
-H "Content-Type: application/json" \
--data '{"value":"on"}'

# Set our other scripts to execute:
chmod 755 stagingscript.sh
chmod 755 deployscript.sh
{'fraction_non_alphanumeric': 0.0998263888888889, 'fraction_numerical': 0.011284722222222222, 'mean_word_length': 4.516746411483253, 'pattern_counts': {'":': 1, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '5342830', 'n_tokens_mistral': 406, 'n_tokens_neox': 393, 'n_words': 135}