<commit_before>#!/bin/bash

set -e

#
# Public functions
#

init()
{
  if [[ ! -z $CI_REPOSITORY ]]; then
    message "init" "Integration (<b>$ACTION</b>) on branch: <b>$CI_BRANCH</b>." warn warning
  else
    CURRENT_DIR=$(pwd)
    CURRENT_DIR=$(basename $CURRENT_DIR)

    message "init" "Initializing repository: $CURRENT_DIR" warn warning
  fi

  message "init" "Updating Homebrew..." trace normal

  brew_update
  brew_update

  message "init" "Updating xctool..." trace normal

  brew_upgrade xctool

  message "init" "Checking upload tools..." trace normal

  #
  # Prepare upload scripts if reporting is true
  #
  
  if [ "$REPORT" == true ]; then
    upload_prepare
  fi
}

#
# Private functions
#

brew_update()
{
  brew update > /dev/null
}

brew_upgrade()
{<commit_msg>Update init.sh<commit_after>#!/bin/bash

set -e

#
# Public functions
#

init()
{
  if [[ ! -z $CI_REPOSITORY ]]; then
    message "init" "Integration (<b>$ACTION</b>) on branch: <b>$CI_BRANCH</b>." warn warning
  else
    CURRENT_DIR=$(pwd)
    CURRENT_DIR=$(basename $CURRENT_DIR)

    message "init" "Initializing repository: $CURRENT_DIR" warn warning
  fi

  message "init" "Updating Homebrew..." trace normal

  brew_update

  message "init" "Updating xctool..." trace normal

  brew_upgrade xctool

  message "init" "Checking upload tools..." trace normal

  #
  # Prepare upload scripts if reporting is true
  #
  
  if [ "$REPORT" == true ]; then
    upload_prepare
  fi
}

#
# Private functions
#

brew_update()
{
  set +e
  brew update > /dev/null
  brew update > /dev/null
  set -e
}

brew_upgrade()
{
{'fraction_non_alphanumeric': 0.1329153605015674, 'fraction_numerical': 0.0, 'mean_word_length': 3.278820375335121, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 14, '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': '1515835', 'n_tokens_mistral': 588, 'n_tokens_neox': 551, 'n_words': 155}