<commit_before>#!/bin/sh 
. $APPNAME/ci/scripts/common.sh

addVersionEnv()
{
  cf set-env $APPNAME VERSION $VERSION
}

newRoute()
{
  DOMAIN=`cf domains | grep shared | head -n 1 | cut -d" " -f1`
  VERSION=`echo $VERSION | | sed -e 's/\./_/g'`
  echo "$APPNAME $DOMAIN -n $APPNAME-$VERSION"
  cf map-route $APPNAME $DOMAIN -n $APPNAME-$VERSION
}

main()
{
  cf_login

  summaryOfApps
  createVarsBasedOnVersion
  addVersionEnv
  newRoute
  summaryOfApps
<commit_msg>Playing with versions and routes<commit_after>#!/bin/sh 
. $APPNAME/ci/scripts/common.sh

addVersionEnv()
{
  cf set-env $APPNAME VERSION $VERSION
}

newRoute()
{
  DOMAIN=`cf domains | grep shared | head -n 1 | cut -d" " -f1`
  VERSION=`echo $VERSION | sed -e 's/\./_/g'`
  echo "$APPNAME $DOMAIN -n $APPNAME-$VERSION"
  cf map-route $APPNAME $DOMAIN -n $APPNAME-$VERSION
}

main()
{
  cf_login

  summaryOfApps
  createVarsBasedOnVersion
  addVersionEnv
  newRoute
  summaryOfApps

{'fraction_non_alphanumeric': 0.14014752370916755, 'fraction_numerical': 0.004214963119072708, 'mean_word_length': 3.5238095238095237, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4304611', 'n_tokens_mistral': 381, 'n_tokens_neox': 369, 'n_words': 88}