<commit_before>#!/bin/bash

must() {
  echo "$@" 1>&2
  "$@" || die "FAIL"
}

die() {
  echo "$@" 1>&2
  exit 1
}

if [[ -z "$USE_BAZEL" || "$USE_BAZEL" -eq "0" ]]; then
  must go get -t ./...
else
  BAZEL_VERSION="${BAZEL_VERSION:-0.5.4}"
  case "$TRAVIS_OS_NAME" in
    linux)
      BAZEL_INSTALLER_URL="https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh"
      SEDI="sed -i ''"
      ;;
    osx)
      BAZEL_INSTALLER_URL="https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-darwin-x86_64.sh"
      SEDI="sed -i"<commit_msg>travis: fix swapped sed -i<commit_after>#!/bin/bash

must() {
  echo "$@" 1>&2
  "$@" || die "FAIL"
}

die() {
  echo "$@" 1>&2
  exit 1
}

if [[ -z "$USE_BAZEL" || "$USE_BAZEL" -eq "0" ]]; then
  must go get -t ./...
else
  BAZEL_VERSION="${BAZEL_VERSION:-0.5.4}"
  case "$TRAVIS_OS_NAME" in
    linux)
      BAZEL_INSTALLER_URL="https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh"
      SEDI="sed -i"
      ;;
    osx)
      BAZEL_INSTALLER_URL="https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-darwin-x86_64.sh"
      SEDI="sed -i ''"
{'fraction_non_alphanumeric': 0.2047364400305577, 'fraction_numerical': 0.025974025974025976, 'mean_word_length': 3.3959731543624163, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7278747', 'n_tokens_mistral': 611, 'n_tokens_neox': 565, 'n_words': 73}