<commit_before>#!/bin/bash

set -e

if [[ -n "${HDO_DEPLOY_AUTH}" ]]; then
  echo "Checking bundle cache..."
  echo
else
  echo "HDO_DEPLOY_AUTH not available, not caching bundle"
  exit 0
fi

DEPLOY_HOST="deploy.holderdeord.no"
DEPLOY_PARAMS="repo_slug=${TRAVIS_REPO_SLUG}"

LOCAL_SHA=`openssl sha1 Gemfile.lock | cut -d'=' -f2 | tr -d ' '`
REMOTE_SHA=`curl --user ${HDO_DEPLOY_AUTH} -s "http://${DEPLOY_HOST}/travis/bundle/sha?${DEPLOY_PARAMS}"`

echo "  => old checksum: ${REMOTE_SHA}"<commit_msg>Debug the bundle cache script.<commit_after>#!/bin/bash

set -e
set -x

if [[ -n "${HDO_DEPLOY_AUTH}" ]]; then
  echo "Checking bundle cache..."
  echo
else
  echo "HDO_DEPLOY_AUTH not available, not caching bundle"
  exit 0
fi

DEPLOY_HOST="deploy.holderdeord.no"
DEPLOY_PARAMS="repo_slug=${TRAVIS_REPO_SLUG}"

LOCAL_SHA=`openssl sha1 Gemfile.lock | cut -d'=' -f2 | tr -d ' '`
REMOTE_SHA=`curl --user ${HDO_DEPLOY_AUTH} -s "http://${DEPLOY_HOST}/travis/bundle/sha?${DEPLOY_PARAMS}"`

echo "  => old checksum: ${REMOTE_SHA}"
{'fraction_non_alphanumeric': 0.16796875, 'fraction_numerical': 0.005859375, 'mean_word_length': 4.790960451977401, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2620164', 'n_tokens_mistral': 461, 'n_tokens_neox': 424, 'n_words': 89}