<commit_before>#!/usr/bin/env bash

# set vars
SCRIPTPATH=`dirname "${BASH_SOURCE[0]}"`;

# import config vars
source ${SCRIPTPATH}/_config.sh;

# install prerequisites
source ${SCRIPTPATH}/homebrew.sh;
source ${SCRIPTPATH}/wget.sh;

# variables
PACKER_DIR="`readlink $(which packer) | sed 's/\/packer//2'`"
PACKER_WIN_PLGNS="https://github.com/packer-community/packer-windows-plugins/releases/download/v1.0.0-rc/darwin_amd64.zip"

# Install Packer
if ! brew cask ls | grep "^packer$" > /dev/null 2>&1; then
    echo "==> Installing Packer";
    sudo brew cask install packer;
fi

# Install Packer-Windows-Plugins
if brew cask ls | grep "^packer$" > /dev/null 2>&1; then
  if ! ls -Glh ${PACKER_DIR} | grep "\-windows\-" > /dev/null 2>&1; then
    echo "==> Installing Packer-Windows-Plugins"
    sudo curl -L ${PACKER_WIN_PLGNS} > /tmp/darwin_amd64.zip;
    sudo unzip -x /tmp/darwin_amd64.zip -d ${PACKER_DIR};
    sudo chown -R root:wheel ${PACKER_DIR}/*
    sudo rm -f /tmp/darwin_amd64.zip;
  fi
fi

# install packer-completions
if ! brew ls | grep -i -q "packer-completion"; then
  echo "==> Installing packer-completion";
  brew install packer-completion;
fi<commit_msg>remove packer windows plugins install. they are included with v 0.8.x by default<commit_after>#!/usr/bin/env bash

# set vars
SCRIPTPATH=`dirname "${BASH_SOURCE[0]}"`;

# import config vars
source ${SCRIPTPATH}/_config.sh;

# install prerequisites
source ${SCRIPTPATH}/homebrew.sh;
source ${SCRIPTPATH}/wget.sh;


# Install Packer
if ! brew cask ls | grep "^packer$" > /dev/null 2>&1; then
    echo "==> Installing Packer";
    brew cask install packer;
fi

# install packer-completions
if ! brew ls | grep -i -q "packer-completion"; then
  echo "==> Installing packer-completion";
  brew install packer-completion;
fi
{'fraction_non_alphanumeric': 0.14874651810584957, 'fraction_numerical': 0.013370473537604457, 'mean_word_length': 4.116809116809117, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2827641', 'n_tokens_mistral': 710, 'n_tokens_neox': 666, 'n_words': 170}