<commit_before>#!/bin/bash
if [ -z "$1" ]; then
  cat <<EOF
usage:
  ./make_spec.sh PACKAGENAME
EOF
  exit 1
fi

packagename=$1

bundle version 2>/dev/null
if [ $? != 0 ];then
  echo "bundler is not installed. Please install it."
  exit -1
fi
cd $(dirname $0)

if [ $TRAVIS_BRANCH ];then
  branch=$TRAVIS_BRANCH
else
  branch=$(git rev-parse --abbrev-ref HEAD)
fi<commit_msg>packaging: reference master instead of HEAD<commit_after>#!/bin/bash
if [ -z "$1" ]; then
  cat <<EOF
usage:
  ./make_spec.sh PACKAGENAME
EOF
  exit 1
fi

packagename=$1

bundle version 2>/dev/null
if [ $? != 0 ];then
  echo "bundler is not installed. Please install it."
  exit -1
fi
cd $(dirname $0)

if [ $TRAVIS_BRANCH ];then
  branch=$TRAVIS_BRANCH
else
  branch=$(git rev-parse --abbrev-ref HEAD)
  # the concourse git resource renders HEAD, but in this case we need master
  [ $branch = "HEAD" ] && branch=master
fi
{'fraction_non_alphanumeric': 0.13600891861761427, 'fraction_numerical': 0.01560758082497213, 'mean_word_length': 3.605128205128205, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4524625', 'n_tokens_mistral': 355, 'n_tokens_neox': 335, 'n_words': 110}