<commit_before>#!/bin/bash

# Exit immediately if any commands return non-zero
set -e
# Output the commands we run
set -x

# Download + cache the cf cli
if [ ! -e "~/bin/cf" ]; then
  wget 'https://cli.run.pivotal.io/stable?release=linux64-binary&source=github' -O cf.tar.gz
  tar zxvf cf.tar.gz -C ~/bin
fi
export PATH=$PATH:~/bin

# Login to cf (these environment variables must be exported by CI)
set +x
cf login -a $CF_API -u $CF_USERNAME -p $CF_PASSWORD -o $CF_ORG -s $CF_SPACE
set -x

# Update the blue app
cf unmap-route blue cfapps.io -n gotgastro
cf unmap-route blue gotgastroagain.com
cf push blue --no-hostname --no-manifest --no-route -i 1 -m 100M -k 200M
cf map-route blue cfapps.io -n gotgastro
cf map-route blue gotgastroagain.com

# Update the green app
cf unmap-route green cfapps.io -n gotgastro
cf unmap-route green gotgastroagain.com
cf push green --no-hostname --no-manifest --no-route -i 1 -m 100M -k 200M
cf map-route green cfapps.io -n gotgastro
cf map-route green gotgastroagain.com<commit_msg>Version apps in one place, to improve traceability<commit_after>#!/bin/bash

# Exit immediately if any commands return non-zero
set -e
# Output the commands we run
set -x

# Download + cache the cf cli
if [ ! -e "~/bin/cf" ]; then
  wget 'https://cli.run.pivotal.io/stable?release=linux64-binary&source=github' -O cf.tar.gz
  tar zxvf cf.tar.gz -C ~/bin
fi
export PATH=$PATH:~/bin

# Login to cf (these environment variables must be exported by CI)
set +x
cf login -a $CF_API -u $CF_USERNAME -p $CF_PASSWORD -o $CF_ORG -s $CF_SPACE
set -x

# Update the blue app
cf unmap-route blue cfapps.io -n gotgastro
cf unmap-route blue gotgastroagain.com
cf push blue -f manifest.yml
cf map-route blue cfapps.io -n gotgastro
cf map-route blue gotgastroagain.com

# Update the green app
cf unmap-route green cfapps.io -n gotgastro
cf unmap-route green gotgastroagain.com
cf push green -f manifest.yml
cf map-route green cfapps.io -n gotgastro
cf map-route green gotgastroagain.com
{'fraction_non_alphanumeric': 0.10317060895822848, 'fraction_numerical': 0.009058882737795673, 'mean_word_length': 3.6232558139534885, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '569030', 'n_tokens_mistral': 746, 'n_tokens_neox': 711, 'n_words': 266}