<commit_before>#!/bin/bash
set -e
set -o pipefail
set -x

pushd /vagrant

  if [ -f .needs-update ]; then
    apt-get -y update
    apt-get -y upgrade
    rm -rf .needs-update
  fi

  which git > /dev/null || apt-get -y install git

  npm install -s
  pushd client
    ../node_modules/bower/bin/bower --allow-root install
  popd

popd<commit_msg>make sure we have a mongodb running<commit_after>#!/bin/bash
set -e
set -o pipefail
set -x

pushd /vagrant

  # do we need to update/upgrade the distro?
  if [ -f .needs-update ]; then
    apt-get -y update
    apt-get -y upgrade
    rm -rf .needs-update
  fi

  # do we have git?
  which git > /dev/null || apt-get -y install git

  # do we have a running mongodb?
  mongo --eval 'db.runCommand({ping:1})' 2>&1 > /dev/null || service mongod restart

  # install all dependencies
  npm install -s
  pushd client
    ../node_modules/bower/bin/bower --allow-root install
  popd

popd
{'fraction_non_alphanumeric': 0.11542610571736785, 'fraction_numerical': 0.003236245954692557, 'mean_word_length': 2.411764705882353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '579490', 'n_tokens_mistral': 358, 'n_tokens_neox': 336, 'n_words': 115}