<commit_before>#!/bin/bash

# check input arguments
if [ "$#" -ne 4 ]; then
    echo "Please specify pem-key location, cluster name, AWS access key ID, and AWS secret access key!" && exit 1
fi

PEMLOC=$1
INSTANCE_NAME=$2
AWS_ACCESS_KEY_ID=$3
AWS_SECRET_ACCESS_KEY=$4

ssh -o "StrictHostKeyChecking no" -i $PEMLOC ubuntu@$(head -n 1 $INSTANCE_NAME/public_dns) 'bash -s' < Spark/setup_ipython.sh $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY

sleep 3

ssh -N -f -L localhost:7777:localhost:7777 ubuntu@$(head -n 1 $INSTANCE_NAME/public_dns)

echo "IPython server is running at localhost:7777!"

<commit_msg>missed tmp reference in jupyter installation<commit_after>#!/bin/bash

# check input arguments
if [ "$#" -ne 4 ]; then
    echo "Please specify pem-key location, cluster name, AWS access key ID, and AWS secret access key!" && exit 1
fi

PEMLOC=$1
INSTANCE_NAME=$2
AWS_ACCESS_KEY_ID=$3
AWS_SECRET_ACCESS_KEY=$4

ssh -o "StrictHostKeyChecking no" -i $PEMLOC ubuntu@$(head -n 1 tmp/$INSTANCE_NAME/public_dns) 'bash -s' < Spark/setup_ipython.sh $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY

sleep 3

ssh -N -f -L localhost:7777:localhost:7777 ubuntu@$(head -n 1 tmp/$INSTANCE_NAME/public_dns)

echo "IPython server is running at localhost:7777!"


{'fraction_non_alphanumeric': 0.11442385173247381, 'fraction_numerical': 0.03384367445608381, 'mean_word_length': 5.148514851485149, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4917226', 'n_tokens_mistral': 512, 'n_tokens_neox': 470, 'n_words': 133}