<commit_before>#!/bin/bash

# fail fast if we aren't on the desired branch or if this is a pull request
if [[ "${TRAVIS_PULL_REQUEST}" != "false" ]] || [[ "${TRAVIS_BRANCH}" != "master" ]]; then
    echo "We only publish on successful builds of master."
    exit 0
fi

# now do the linux unstable build
BOOTSTRAP_DIR=/root/travis_bootstrap
TEST_BIN_DIR=/root/hab_bins
TRAVIS_HAB=${BOOTSTRAP_DIR}/hab
HAB_DOWNLOAD_URL="https://api.bintray.com/content/habitat/stable/linux/x86_64/hab-%24latest-x86_64-linux.tar.gz?bt_package=hab-x86_64-linux"
export HAB_ORIGIN=core

BINTRAY_REPO=unstable
if [ $(cat VERSION) == $TRAVIS_TAG ]; then
  BINTRAY_REPO=stable
else
  export HAB_DEPOT_URL=http://app.acceptance.habitat.sh/v1/depot
fi

mkdir -p ${BOOTSTRAP_DIR}
# download a hab binary to build hab from source in a studio
wget -O hab.tar.gz "${HAB_DOWNLOAD_URL}"
# install it in a custom location
tar xvzf ./hab.tar.gz --strip 1 -C ${BOOTSTRAP_DIR}

# kick off the mac unstable build
echo "Kicking off the unstable mac build"
var_file=/tmp/our-awesome-vars
mac_builder=admin@172.16.17.32

# first update the copy of the habitat code stored on the mac server to the latest
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
  -i /tmp/habitat-srv-admin ${mac_builder} \
  "~/bin/update_habitat_code.sh"
<commit_msg>fix syntax error in deploy script<commit_after>#!/bin/bash

# fail fast if we aren't on the desired branch or if this is a pull request
if [[ "${TRAVIS_PULL_REQUEST}" != "false" ]] || [[ "${TRAVIS_BRANCH}" != "master" ]]; then
    echo "We only publish on successful builds of master."
    exit 0
fi

# now do the linux unstable build
BOOTSTRAP_DIR=/root/travis_bootstrap
TEST_BIN_DIR=/root/hab_bins
TRAVIS_HAB=${BOOTSTRAP_DIR}/hab
HAB_DOWNLOAD_URL="https://api.bintray.com/content/habitat/stable/linux/x86_64/hab-%24latest-x86_64-linux.tar.gz?bt_package=hab-x86_64-linux"
export HAB_ORIGIN=core

BINTRAY_REPO=unstable
if [ "$(cat VERSION)" == "$TRAVIS_TAG" ]; then
  BINTRAY_REPO=stable
else
  export HAB_DEPOT_URL=http://app.acceptance.habitat.sh/v1/depot
fi

mkdir -p ${BOOTSTRAP_DIR}
# download a hab binary to build hab from source in a studio
wget -O hab.tar.gz "${HAB_DOWNLOAD_URL}"
# install it in a custom location
tar xvzf ./hab.tar.gz --strip 1 -C ${BOOTSTRAP_DIR}

# kick off the mac unstable build
echo "Kicking off the unstable mac build"
var_file=/tmp/our-awesome-vars
mac_builder=admin@7172.16.17.32

# first update the copy of the habitat code stored on the mac server to the latest
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
  -i /tmp/habitat-srv-admin ${mac_builder} \
  "~/bin/update_habitat_code.sh"

{'fraction_non_alphanumeric': 0.12016522718738265, 'fraction_numerical': 0.019902365752910253, 'mean_word_length': 4.620253164556962, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1961298', 'n_tokens_mistral': 1047, 'n_tokens_neox': 983, 'n_words': 265}