<commit_before>#!/bin/sh

#
# Description: installs python and python packages
#

if [ -n "$DEBUG" ]; then
  echo "$0: Setting bash option -x for debug"
  PS4='+($(basename ${BASH_SOURCE}):${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
  set -x
fi

# Exit on error
set -e; set -o pipefail

PFX=${PFX:-==>}
PACKAGES=(
  neovim
)

if [ ! -x /usr/local/bin/brew ]; then
  echo "ERROR: Homebrew must be installed"
  exit 1
fi

function installPython() {
  echo "$PFX Installing python..."
  
  if [ ! -x /usr/local/bin/python ]; then	
    brew install python --framework --with-brewed-openssl
  else
    echo "$PFX Python already installed, skipping..."
  fi

  echo "Current python: $(which python)"
  echo "Current python version: $(python --version)"
}

function installPythonPackages() {
  echo "$PFX Installing python packages..."

  for PACKAGE in "${PACKAGES[@]}"; do
    echo "$PFX Installing python package: $PACKAGE"
    pip2 install --user $PACKAGE
  done
}

#
# Main
#

installPython
installPythonPackages

exit 0<commit_msg>Remove framework arg as this is breaking the build, how did it get there?<commit_after>#!/bin/sh

#
# Description: installs python and python packages
#

if [ -n "$DEBUG" ]; then
  echo "$0: Setting bash option -x for debug"
  PS4='+($(basename ${BASH_SOURCE}):${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
  set -x
fi

# Exit on error
set -e; set -o pipefail

PFX=${PFX:-==>}
PACKAGES=(
  neovim
)

if [ ! -x /usr/local/bin/brew ]; then
  echo "ERROR: Homebrew must be installed"
  exit 1
fi

function installPython() {
  echo "$PFX Installing python..."
  
  if [ ! -x /usr/local/bin/python ]; then	
    brew install python --with-brewed-openssl
  else
    echo "$PFX Python already installed, skipping..."
  fi

  echo "Current python: $(which python)"
  echo "Current python version: $(python --version)"
}

function installPythonPackages() {
  echo "$PFX Installing python packages..."

  for PACKAGE in "${PACKAGES[@]}"; do
    echo "$PFX Installing python package: $PACKAGE"
    pip2 install --user $PACKAGE
  done
}

#
# Main
#

installPython
installPythonPackages

exit 0
{'fraction_non_alphanumeric': 0.15122873345935728, 'fraction_numerical': 0.006616257088846881, 'mean_word_length': 3.494692144373673, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4420659', 'n_tokens_mistral': 746, 'n_tokens_neox': 715, 'n_words': 233}