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

function main {
  set -x

  cd

  echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDfchHJtADoZClQITn1qFK7Jy7B9tje/dCFLzrqpdmOyUhmz9zGTjwmL7hXxuyPZgAcdrGPKE+3DjpqqEIxfem1hta0Ej6O8ad/9z0x+xBe2G1EFADYi5gdHuU3+Fh/hUUDWKnQKO0UlAewk488yIUYUU+UVcaPXr9pF1U5VfW8bue76ML9sdR9qIGP2Va+bJhX8neMffc79ShEd02kqVg0kSeQduCK5rNg51wWVNoCe6gvkufuAGvwVOh/jWwGvEsOMcqOFUipKi1ltCqu8vwheTSzLxGUuOUKBedxFjCip0xeZzCP+hFxxS56FaqcRqrsoLTQdWOWduRrWNFlXyxn <EMAIL>@<EMAIL>' >> ~/.ssh/authorized_keys

  ssh -oStrictHostKeyChecking=no github.com true
  ssh -oStrictHostKeyChecking=no bitbucket.org true
  ssh -oStrictHostKeyChecking=no localhost true

  git clone git@github.com:defn/home home
  mv home/.git .
  git reset --hard
  rm -rf home
  git clean -fd

  git clone git@github.com:defn/app work/app
  pushd work/app
  script/bootstrap
  set +x
  source script/profile
  set -x
  popd

  script/bootstrap
  set +x
  source script/profile
  set -x
  app bootstrap
}

main "$@"<commit_msg>add comments to vagrant provisioning<commit_after>#!/usr/bin/env bash

function main {
  # copy cache files
  if [[ -d /vagrant ]]; then
    pushd /vagrant
    rsync -ia distfiles cache packages ~/
    popd
  fi

  # make sure we are at home
  set -x
  cd

  # let myself in
  echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDfchHJtADoZClQITn1qFK7Jy7B9tje/dCFLzrqpdmOyUhmz9zGTjwmL7hXxuyPZgAcdrGPKE+3DjpqqEIxfem1hta0Ej6O8ad/9z0x+xBe2G1EFADYi5gdHuU3+Fh/hUUDWKnQKO0UlAewk488yIUYUU+UVcaPXr9pF1U5VfW8bue76ML9sdR9qIGP2Va+bJhX8neMffc79ShEd02kqVg0kSeQduCK5rNg51wWVNoCe6gvkufuAGvwVOh/jWwGvEsOMcqOFUipKi1ltCqu8vwheTSzLxGUuOUKBedxFjCip0xeZzCP+hFxxS56FaqcRqrsoLTQdWOWduRrWNFlXyxn <EMAIL>@<EMAIL>' >> ~/.ssh/authorized_keys

  # initialize new ssh hosts
  ssh -oStrictHostKeyChecking=no github.com true
  ssh -oStrictHostKeyChecking=no bitbucket.org true
  ssh -oStrictHostKeyChecking=no localhost true

  # clone home
  git clone git@github.com:defn/home home
  mv home/.git .
  git reset --hard
  rm -rf home
  git clean -fd

  # bootstrap app
  git clone git@github.com:defn/app work/app
  pushd work/app
  script/bootstrap
  set +x; source script/profile; set -x
  popd

  # bootstrap home
  script/bootstrap
  set +x; source script/profile; set -x

  # bootstrap everything
  app bootstrap
}

main "$@"
{'fraction_non_alphanumeric': 0.07318141980718668, 'fraction_numerical': 0.042068361086765996, 'mean_word_length': 4.750629722921914, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '7000578', 'n_tokens_mistral': 1172, 'n_tokens_neox': 1070, 'n_words': 167}