<commit_before>#!/usr/bin/env bash
set -e

echo "Start create_instance script"

#configure aws
aws configure set region us-west-2

CONFFILE=$1
AMI_NAME=$2

#Get nightly image of the server
aws ec2 describe-images --filters 'Name=name,Values=$AMI_NAME' --owners 676921422616 --query 'Images[*].[ImageId,Name,CreationDate]' --output text | sort -k2 -r | head -n1 > image_id.txt

echo $IMAGE_ID > image_id.txt

python ./Tests/scripts/update_image_id.py -i image_id.txt -c $CONFFILE

#create instance
REQUEST_ID=$(aws ec2 request-spot-instances \<commit_msg>Revert: Directly writing to instance_id file (b61e69a6)<commit_after>#!/usr/bin/env bash
set -e

echo "Start create_instance script"

#configure aws
aws configure set region us-west-2

CONFFILE=$1
AMI_NAME=$2

#Get nightly image of the server
aws ec2 describe-images --filters 'Name=name,Values=$AMI_NAME' --owners 676921422616 --query 'Images[*].[ImageId,Name,CreationDate]' --output text | sort -k2 -r | head -n1 > image_id.txt

#echo $IMAGE_ID > image_id.txt

python ./Tests/scripts/update_image_id.py -i image_id.txt -c $CONFFILE

#create instance
REQUEST_ID=$(aws ec2 request-spot-instances \
{'fraction_non_alphanumeric': 0.12510860121633363, 'fraction_numerical': 0.03735881841876629, 'mean_word_length': 4.731343283582089, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7036093', 'n_tokens_mistral': 435, 'n_tokens_neox': 406, 'n_words': 114}