<commit_before>#!/bin/bash
set -e

http-server -p 1234 . -s &

echo "Starting build tests";
grunt testBuild
echo "Finished build tests";

echo "Starting unit tests";
mocha test/test.js
echo "Finished unit tests";

echo "Starting UI tests";
mocha test/UITest.js
echo "Finished UI tests";

if [ "$TRAVIS_BRANCH" = "master" ]; then
  echo "Changing branches";
  grunt website

  git config user.name "Travis CI"
  git config user.email "<EMAIL>"
  git config --global push.default simple

  git remote set-branches --add origin gh-pages
  git fetch

  git reset --hard
  git checkout -b gh-pages
  echo "Changed branches";

  npm install

  grunt moveWebsite

  set +e
  git diff-index --quiet HEAD

  echo "Committing changes";
  git add -A .
  git commit -m "Deploy to Github Pages" --quiet
  echo "Committed changes";

  echo "Pushing changes";
  if [ $? -ne 0 ] ; then #Something went wrong committing, don't push
    echo "Faulty commit, abort push";
    exit 0;
  fi

  git push "https://${GITHUB_ACCESS_TOKEN}@github.com/SanderRonde/CustomRightClickMenu.git" --force --quiet
  echo "Pushed github pages to branch";
fi<commit_msg>now runs parallelTest during CI<commit_after>#!/bin/bash
set -e

http-server -p 1234 . -s &

echo "Starting build tests";
grunt testBuild
echo "Finished build tests";

echo "Starting unit tests";
mocha test/test.js
echo "Finished unit tests";

echo "Starting UI tests in parallel";
node test/parallelTest.js
echo "Finished UI tests in parallel";

if [ "$TRAVIS_BRANCH" = "master" ]; then
  echo "Changing branches";
  grunt website

  git config user.name "Travis CI"
  git config user.email "<EMAIL>"
  git config --global push.default simple

  git remote set-branches --add origin gh-pages
  git fetch

  git reset --hard
  git checkout -b gh-pages
  echo "Changed branches";

  npm install

  grunt moveWebsite

  set +e
  git diff-index --quiet HEAD

  echo "Committing changes";
  git add -A .
  git commit -m "Deploy to Github Pages" --quiet
  echo "Committed changes";

  echo "Pushing changes";
  if [ $? -ne 0 ] ; then #Something went wrong committing, don't push
    echo "Faulty commit, abort push";
    exit 0;
  fi

  git push "https://${GITHUB_ACCESS_TOKEN}@github.com/SanderRonde/CustomRightClickMenu.git" --force --quiet
  echo "Pushed github pages to branch";
fi
{'fraction_non_alphanumeric': 0.10635538261997406, 'fraction_numerical': 0.005188067444876783, 'mean_word_length': 3.4076190476190478, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '150177', 'n_tokens_mistral': 814, 'n_tokens_neox': 746, 'n_words': 283}