<commit_before>#!/bin/bash

set -e

message()
{
  #
  # Find notify script
  #

  NOTIFY_SCRIPT=`find . -name notify.sh | head -n1`

  IFS=$'\n'

  if [[ -f $NOTIFY_SCRIPT ]]; then
     $NOTIFY_SCRIPT -m $1 -l $2 -t $3
  fi
}

if [[ ! -z $TRAVIS_REPO_SLUG ]]; then
  message "Deploying branch: <b>$TRAVIS_BRANCH</b>." warn warning
else
  CURRENT_DIR=$(pwd)
  CURRENT_DIR=$(basename $CURRENT_DIR)

  message "Initializing repository: $CURRENT_DIR" warn warning
fi

echo '[INIT]: Updating Homebrew...'

brew update

#
# We need XCTool to build
#

echo '[INIT]: Installing XCTool...'

brew uninstall xctool
brew install xctool

#
# We need our gems to run the script
#<commit_msg>Text change for build start<commit_after>#!/bin/bash

set -e

message()
{
  #
  # Find notify script
  #

  NOTIFY_SCRIPT=`find . -name notify.sh | head -n1`

  IFS=$'\n'

  if [[ -f $NOTIFY_SCRIPT ]]; then
     $NOTIFY_SCRIPT -m $1 -l $2 -t $3
  fi
}

if [[ ! -z $TRAVIS_REPO_SLUG ]]; then
  message "Building branch: <b>$TRAVIS_BRANCH</b>." warn warning
else
  CURRENT_DIR=$(pwd)
  CURRENT_DIR=$(basename $CURRENT_DIR)

  message "Initializing repository: $CURRENT_DIR" warn warning
fi

echo '[INIT]: Updating Homebrew...'

brew update

#
# We need XCTool to build
#

echo '[INIT]: Installing XCTool...'

brew uninstall xctool
brew install xctool

#
# We need our gems to run the script
#
{'fraction_non_alphanumeric': 0.1389904901243599, 'fraction_numerical': 0.005852231163130944, 'mean_word_length': 3.3987138263665595, 'pattern_counts': {'":': 0, '<': 7, '<?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': '623821', 'n_tokens_mistral': 558, 'n_tokens_neox': 524, 'n_words': 154}