<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;

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

# install docker-completion
docker_bashcomps=(
  "docker"
  "docker-machine"
  "docker-compose"
);
for docker_bashcomp in ${docker_bashcomps[@]}; do
  if [ ! -f "/usr/local/etc/bash_completion.d/${docker_bashcomp}" ]; then
    echo "==> Linking Docker Bash Completion: ${docker_bashcomp}";
    ln -s "/Applications/Docker.app/Contents/Resources/etc/${docker_bashcomp}.bash-completion" \
          "/usr/local/etc/bash_completion.d/${docker_bashcomp}";
  fi
done
<commit_msg>update docker bash completion install<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;

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

# install docker-completion
docker_bashcomps=(
  "docker-completion"
);
for docker_bashcomp in ${docker_bashcomps[@]}; do
  if [ ! -f "/usr/local/etc/bash_completion.d/${docker_bashcomp}" ]; then
    echo "==> Linking Docker Bash Completion: ${docker_bashcomp}";
    brew install docker-completion;
  fi
done

{'fraction_non_alphanumeric': 0.1542025148908008, 'fraction_numerical': 0.003970880211780278, 'mean_word_length': 4.518248175182482, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '710993', 'n_tokens_mistral': 589, 'n_tokens_neox': 521, 'n_words': 123}