<commit_before>#!/bin/sh

# DESCRIPTION
# Executes all OSX setup scripts.

# USAGE
# ./run.sh

# SETTINGS
set -u # Exit if any variables are uninitialised.
set -e # Exit if any command returns non-zero.
. settings/settings.sh

# FUNCTIONS
. functions/installers.sh

# EXECUTION
read -p "Are the OSX software update, Xcode, etc. requirements complete? (y/n)?: " response
if [ "$response" == 'y' ]; then
  echo "Setting OSX basic settings..."
  scripts/basic.sh

  echo "Installing OSX software..."
  scripts/software.sh

  echo "Setting OSX defaults..."
  scripts/defaults.sh

  echo "Cleaning..."
  rm -rf $WORK_PATH

  echo "OSX setup complete!"
else
  echo "Whew, that was a close one. OSX setup aborted."
fi<commit_msg>Source the settings and installer files so they are available to sub-scripts.<commit_after>#!/bin/sh

# DESCRIPTION
# Executes all OSX setup scripts.

# USAGE
# ./run.sh

# SETTINGS
set -u # Exit if any variables are uninitialised.
set -e # Exit if any command returns non-zero.
source settings/settings.sh

# FUNCTIONS
source functions/installers.sh

# EXECUTION
read -p "Are the OSX software update, Xcode, etc. requirements complete? (y/n)?: " response
if [ "$response" == 'y' ]; then
  echo "Setting OSX basic settings..."
  scripts/basic.sh

  echo "Installing OSX software..."
  scripts/software.sh

  echo "Setting OSX defaults..."
  scripts/defaults.sh

  echo "Cleaning..."
  rm -rf $WORK_PATH

  echo "OSX setup complete!"
else
  echo "Whew, that was a close one. OSX setup aborted."
fi
{'fraction_non_alphanumeric': 0.11725955204216074, 'fraction_numerical': 0.0, 'mean_word_length': 3.3649425287356323, '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': '5569782', 'n_tokens_mistral': 513, 'n_tokens_neox': 487, 'n_words': 180}