<commit_before>ENVIRONMENT="Environment"
RUNFILE="run.sh"
WORKINGPATH="workingPath"

WIDTH=$1
HEIGHT=$2
BOT1=$3
BOT2=$4

mkdir $WORKINGPATH
cp $ENVIRONMENT $WORKINGPATH
mv $BOT1 $WORKINGPATH
mv $BOT2 $WORKINGPATH

cd $WORKINGPATH

chmod +x "$BOT1/$RUNFILE"
chmod +x "$BOT2/$RUNFILE"

docker run -v $PWD:$PWD virtual_machine sh -c "cd $PWD && chmod +x $ENVIRONMENT && ./$ENVIRONMENT $WIDTH $HEIGHT 'cd $PWD/$BOT1 && ./$RUNFILE' 'cd $PWD/$BOT2 && ./$RUNFILE'"

mv *.hlt ../
cd ..
rm -r $WORKINGPATH
<commit_msg>Automatically have worker compile environment<commit_after>ENVIRONMENT="environment"
RUNFILE="run.sh"
WORKINGPATH="workingPath"

if [ ! -f $ENVIRONMENT ]; then
	echo "NO ENVIRONMENT!!"
	cd ../halite/environment
	make clean
	make
	mv environment ../../worker
	cd ../../worker
fi

WIDTH=$1
HEIGHT=$2
BOT1=$3
BOT2=$4

mkdir $WORKINGPATH
cp $ENVIRONMENT $WORKINGPATH
mv $BOT1 $WORKINGPATH
mv $BOT2 $WORKINGPATH

cd $WORKINGPATH

chmod +x "$BOT1/$RUNFILE"
chmod +x "$BOT2/$RUNFILE"

docker run -v $PWD:$PWD virtual_machine sh -c "cd $PWD && chmod +x $ENVIRONMENT && ./$ENVIRONMENT -q $WIDTH $HEIGHT 'cd $PWD/$BOT1 && ./$RUNFILE' 'cd $PWD/$BOT2 && ./$RUNFILE'"

mv *.hlt ../
cd ..
rm -r $WORKINGPATH

{'fraction_non_alphanumeric': 0.17040731504571904, 'fraction_numerical': 0.0199501246882793, 'mean_word_length': 4.423423423423423, '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': '6673235', 'n_tokens_mistral': 513, 'n_tokens_neox': 499, 'n_words': 129}