<commit_before>#!/bin/bash
# $1 - AWS_ACCESS_KEY_ID
# $2 - AWS_SECRET_ACCESS_KEY
export AWS_ACCESS_KEY_ID=${1:?}
export AWS_SECRET_ACCESS_KEY=${2:?}
OWNER=${3:?}

export AWS_DEFAULT_REGION=us-east-1

# CONSTANTS
CLUSTER_CDH_AMI=ami-49e9fe5e	# AMI for pre-created CDH image
CLUSTER_OS_USER=centos		# User to ssh to CDH image
DIRECTOR_OS_AMI=ami-0ca23e1b	# AMI to use for Director - RHEL 73
DIRECTOR_OS_AMI=ami-5ca14f4a # prebuilt ami
DIRECTOR_OS_USER=ec2-user	# User to ssh to Director
DIRECTOR_INSTANCE_TYPE=c4.xlarge # Director instance type
INSTANCENAME=${OWNER:?}-director	 # Name for Director instance
SECURITY_GROUP=sg-891a50f1	 # Security group controlling the cluster
SUBNET_ID=subnet-e7542291	 # Subnet within which the cluster will run

# Create a directory to put the ssh information in
SSH_DIR=/tmp/cloud-lab-${OWNER:?}
rm -rf ${SSH_DIR:?}
mkdir -p ${SSH_DIR:?}

function random() {
    SEED="$(date) $RANDOM"<commit_msg>Updated AMI to ensure director starts correctly<commit_after>#!/bin/bash
# $1 - AWS_ACCESS_KEY_ID
# $2 - AWS_SECRET_ACCESS_KEY
export AWS_ACCESS_KEY_ID=${1:?}
export AWS_SECRET_ACCESS_KEY=${2:?}
OWNER=${3:?}

export AWS_DEFAULT_REGION=us-east-1

# CONSTANTS
CLUSTER_CDH_AMI=ami-49e9fe5e	# AMI for pre-created CDH image
CLUSTER_OS_USER=centos		# User to ssh to CDH image
DIRECTOR_OS_AMI=ami-0ca23e1b	# AMI to use for Director - RHEL 73
DIRECTOR_OS_AMI=ami-f9bb55ef    # prebuilt ami
DIRECTOR_OS_USER=ec2-user	# User to ssh to Director
DIRECTOR_INSTANCE_TYPE=c4.xlarge # Director instance type
INSTANCENAME=${OWNER:?}-director	 # Name for Director instance
SECURITY_GROUP=sg-891a50f1	 # Security group controlling the cluster
SUBNET_ID=subnet-e7542291	 # Subnet within which the cluster will run

# Create a directory to put the ssh information in
SSH_DIR=/tmp/cloud-lab-${OWNER:?}
rm -rf ${SSH_DIR:?}
mkdir -p ${SSH_DIR:?}

function random() {
    SEED="$(date) $RANDOM"
{'fraction_non_alphanumeric': 0.10625986322987901, 'fraction_numerical': 0.036296685954760655, 'mean_word_length': 5.74468085106383, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1353040', 'n_tokens_mistral': 800, 'n_tokens_neox': 749, 'n_words': 177}