<commit_before>#!/bin/bash

if [[ $TRAVIS_TEST_RESULT == 1 ]]; then
  echo 'Skipping deploy due to broken build';
  exit 1;
fi

echo 'Starting deploy'

if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then
  if [[ $TRAVIS_BRANCH == 'master' ]]; then
    STAGE="prod"
  elif [[ $TRAVIS_BRANCH == 'develop' ]]; then
    STAGE="blah"
  fi
fi

echo "Deploying stage $STAGE"

if [ -z ${STAGE+x} ]; then
  echo "Not deploying changes";
  exit 0;
fi

# There's probably better ways to do this but it works
function execSls {
  cmd="sls $@ -s $STAGE -r $REGION"
  echo "Running '$cmd'"
  $cmd
  local status=$?
  if [ $status -ne 0 ]; then
      echo "Error with $1" >&2
      exit 1;
  fi
  return $status<commit_msg>Fix develop stage<commit_after>#!/bin/bash

if [[ $TRAVIS_TEST_RESULT == 1 ]]; then
  echo 'Skipping deploy due to broken build';
  exit 1;
fi

echo 'Starting deploy'

if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then
  if [[ $TRAVIS_BRANCH == 'master' ]]; then
    STAGE="prod"
  elif [[ $TRAVIS_BRANCH == 'develop' ]]; then
    STAGE="dev"
  fi
fi

echo "Deploying stage $STAGE"

if [ -z ${STAGE+x} ]; then
  echo "Not deploying changes";
  exit 0;
fi

# There's probably better ways to do this but it works
function execSls {
  cmd="sls $@ -s $STAGE -r $REGION"
  echo "Running '$cmd'"
  $cmd
  local status=$?
  if [ $status -ne 0 ]; then
      echo "Error with $1" >&2
      exit 1;
  fi
  return $status
{'fraction_non_alphanumeric': 0.149041873669269, 'fraction_numerical': 0.0099361249112846, 'mean_word_length': 3.234234234234234, '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': '5405063', 'n_tokens_mistral': 556, 'n_tokens_neox': 537, 'n_words': 175}