<commit_before>#!/bin/bash
#
# RUN ENTRYPOINT.

set -e

# Write aws Creds if they don't exist
mkdir -p ~/.aws
if [ ! -f /root/.aws/credentials ] ; then
   cat <<EOF >/root/.aws/credentials
[default]
aws_access_key_id = ${AWS_ID}
aws_secret_access_key = ${AWS_KEY}
EOF
fi

if [ ! -f /root/.aws/config ] ; then
cat <<EOF >/root/.aws/config
[default]
output = ${OUTPUT}
region = ${CONFIG_REGION}
aws_access_key_id = ${AWS_ID}
aws_secret_access_key = ${AWS_KEY}
EOF
fi

# Run CMD
if [ "$@" = "" ] ; then
    echo make all
elif [ "$1" = "deploy-cloud" ] ; then
    echo make all
elif [ "$1" = "deploy-demo" ] ; then
    echo kubectl create -f ~/.addons/ --recursive
elif [ "$1" = "destroy" ] ; then
    echo make destroy
fi<commit_msg>clean up entrypoint, AWS dir detection<commit_after>#!/bin/bash
#
# RUN ENTRYPOINT.

set -e

# Write aws Creds if they don't exist
if [ -d /root/.aws ] ; then
    echo "AWS Creds Already Exist Don't Gen"
else
    cat <<EOF >/root/.aws/credentials
[default]
aws_access_key_id = ${AWS_ID}
aws_secret_access_key = ${AWS_KEY}
EOF
    cat <<EOF >/root/.aws/config
[default]
output = ${OUTPUT}
region = ${CONFIG_REGION}
aws_access_key_id = ${AWS_ID}
aws_secret_access_key = ${AWS_KEY}
EOF
fi

# Run CMD
if [ "$@" = "" ] ; then
    echo make all
elif [ "$1" = "deploy-cloud" ] ; then
    echo make all
elif [ "$1" = "deploy-demo" ] ; then
    echo kubectl create -f ~/.addons/ --recursive
elif [ "$1" = "destroy" ] ; then
    echo make destroy
fi
{'fraction_non_alphanumeric': 0.16133424098025867, 'fraction_numerical': 0.0040844111640571815, 'mean_word_length': 3.323529411764706, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, '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': '6147990', 'n_tokens_mistral': 591, 'n_tokens_neox': 570, 'n_words': 162}