<commit_before>#!/bin/bash

pushd `pwd` > /dev/null 2>&1
cd "$(dirname $0)/../"

function onerr {
    echo "Cleaning up after failure..."
    popd > /dev/null 2>&1 || true
    exit -1
}
trap onerr ERR

[ ! -n "${DEBUG}" ] || set -x
set -u

: ${CONSUL_VERSION:="0.9.2"}
: ${VAULT_VERSION:="0.8.1"}

: ${CONSUL_REMOTE_DIR:="s3://hc-enterprise-binaries/consul-enterprise/${CONSUL_VERSION}/"}
: ${VAULT_REMOTE_DIR:="s3://hc-enterprise-binaries/vault-enterprise/${VAULT_VERSION}/"}

: ${CONSUL_REMOTE_FILE:="consul-enterprise_${CONSUL_VERSION}+ent_linux_amd64.zip"}
: ${VAULT_REMOTE_FILE:="vault-enterprise_${VAULT_VERSION}_linux_amd64.zip"}

: ${REMOTE_LS:="aws s3 ls"}
: ${REMOTE_CP:="aws s3 cp --quiet"}

echo "Available Consul versions..."
${REMOTE_LS} ${CONSUL_REMOTE_DIR}
echo "Downloading ${CONSUL_REMOTE_FILE}..."
${REMOTE_CP} "${CONSUL_REMOTE_DIR}${CONSUL_REMOTE_FILE}" /tmp/consul.zip
(cd docker/images/consul-vault-enterprise/binaries && unzip -o /tmp/consul.zip)

    
echo "Available Vault versions..."
${REMOTE_LS} ${VAULT_REMOTE_DIR}
echo "Downloading ${VAULT_REMOTE_FILE}..."
${REMOTE_CP} "${VAULT_REMOTE_DIR}${VAULT_REMOTE_FILE}" /tmp/vault.zip
(cd docker/images/consul-vault-enterprise/binaries && unzip -o /tmp/vault.zip)

<commit_msg>Updated Ent Version in Hashistack Script<commit_after>#!/bin/bash

pushd `pwd` > /dev/null 2>&1
cd "$(dirname $0)/../"

function onerr {
    echo "Cleaning up after failure..."
    popd > /dev/null 2>&1 || true
    exit -1
}
trap onerr ERR

[ ! -n "${DEBUG}" ] || set -x
set -u

: ${CONSUL_VERSION:="1.1.2"}
: ${VAULT_VERSION:="0.11.0"}

: ${CONSUL_REMOTE_DIR:="s3://hc-enterprise-binaries/consul-enterprise/${CONSUL_VERSION}/"}
: ${VAULT_REMOTE_DIR:="s3://hc-enterprise-binaries/vault-enterprise/${VAULT_VERSION}/"}

: ${CONSUL_REMOTE_FILE:="consul-enterprise_${CONSUL_VERSION}+ent_linux_amd64.zip"}
: ${VAULT_REMOTE_FILE:="vault-enterprise_${VAULT_VERSION}_linux_amd64.zip"}

: ${REMOTE_LS:="aws s3 ls"}
: ${REMOTE_CP:="aws s3 cp --quiet"}

echo "Available Consul versions..."
${REMOTE_LS} ${CONSUL_REMOTE_DIR}
echo "Downloading ${CONSUL_REMOTE_FILE}..."
${REMOTE_CP} "${CONSUL_REMOTE_DIR}${CONSUL_REMOTE_FILE}" /tmp/consul.zip
(cd docker/images/consul-vault-enterprise/binaries && unzip -o /tmp/consul.zip)

    
echo "Available Vault versions..."
${REMOTE_LS} ${VAULT_REMOTE_DIR}
echo "Downloading ${VAULT_REMOTE_FILE}..."
${REMOTE_CP} "${VAULT_REMOTE_DIR}${VAULT_REMOTE_FILE}" /tmp/vault.zip
(cd docker/images/consul-vault-enterprise/binaries && unzip -o /tmp/vault.zip)


{'fraction_non_alphanumeric': 0.19714964370546317, 'fraction_numerical': 0.01623119556611243, 'mean_word_length': 5.163414634146341, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, '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': '2538084', 'n_tokens_mistral': 1135, 'n_tokens_neox': 1040, 'n_words': 159}