<commit_before>#!/bin/sh -e

cd "${XDG_BIN_HOME:-$HOME/.local/bin}"

if [ -f "./chezmoi" ] && [ "$(which -a chezmoi | wc -l)" -gt 1 ]; then
  echo "Switching to system-managed chezmoi..."
  rm -f "./chezmoi"
fi

if ! command -v eget >/dev/null; then
  if [ "$(uname -s)" = Darwin ] && [ "$(uname -m)" = arm64 ]; then
    export GETEGET_PLATFORM='darwin_amd64'
  fi

  echo "Fetching eget binary..."
  curl https://zyedidia.github.io/eget.sh | sh
fi

if ! command -v vim-startuptime >/dev/null; then
  echo "Fetching vim-startuptime binary..."
  ./eget rhysd/vim-startuptime
fi

if ! command -v xurls >/dev/null; then
  echo "Fetching xurls binary..."
  ./eget mvdan/xurls
fi<commit_msg>scripts: support FreeBSD using a linux binary for now<commit_after>#!/bin/sh -e

cd "${XDG_BIN_HOME:-$HOME/.local/bin}"

if [ -f "./chezmoi" ] && [ "$(which -a chezmoi | wc -l)" -gt 1 ]; then
  echo "Switching to system-managed chezmoi..."
  rm -f "./chezmoi"
fi

if ! command -v eget >/dev/null; then
  if [ "$(uname -s)-$(uname -m)" = 'Darwin-arm64' ]; then
    export GETEGET_PLATFORM='darwin_amd64'
  fi
  if [ "$(uname -s)-$(uname -m)" = 'FreeBSD-amd64' ]; then
    export GETEGET_PLATFORM='linux_amd64'
  fi

  echo "Fetching eget binary..."
  curl https://zyedidia.github.io/eget.sh | sh
fi

if ! command -v vim-startuptime >/dev/null; then
  echo "Fetching vim-startuptime binary..."
  ./eget rhysd/vim-startuptime
fi

if ! command -v xurls >/dev/null; then
  echo "Fetching xurls binary..."
  ./eget mvdan/xurls
fi
{'fraction_non_alphanumeric': 0.17826375082836315, 'fraction_numerical': 0.00927766732935719, 'mean_word_length': 2.963254593175853, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '2367535', 'n_tokens_mistral': 630, 'n_tokens_neox': 613, 'n_words': 164}