<commit_before>#!/bin/bash

# [START startup_script]
set -e
set -x
apt-get update
apt-get -y install python-dev python-pip

sudo pip install -U pip
sudo pip install virtualenv

MANAGER_IP=$(ip -4 addr show dev eth0 | grep -E '^[[:space:]]*inet' | xargs | awk '{print $2}' | cut -d/ -f1)
SSH_KEY=/home/ubuntu/.ssh/key
INPUTS=/home/ubuntu/inputs.yaml
BLUEPRINT=/home/ubuntu/simple-manager-blueprint.yaml
USER=default

cat << EOF > $SSH_KEY
SSH_PRIVATE_KEY
EOF

cat << EOF >> /home/ubuntu/.ssh/authorized_keys
SSH_PUBLIC_KEY

EOF

virtualenv /home/ubuntu/env
source /home/ubuntu/env/bin/activate

pip install https://github.com/cloudify-cosmo/cloudify-dsl-parser/archive/3.2m6.zip
pip install https://github.com/cloudify-cosmo/cloudify-rest-client/archive/3.2m6.zip
pip install https://github.com/cloudify-cosmo/cloudify-plugins-common/archive/3.2m6.zip
pip install https://github.com/cloudify-cosmo/cloudify-script-plugin/archive/1.2m6.zip
pip install https://github.com/cloudify-cosmo/cloudify-cli/archive/3.2m6.zip

cfy init

wget https://raw.githubusercontent.com/cloudify-cosmo/cloudify-manager-blueprints/3.2m6/simple/simple.yaml -O $BLUEPRINT

cat << EOF > $INPUTS
public_ip: $MANAGER_IP
private_ip: $MANAGER_IP
ssh_user: ubuntu
ssh_key_filename: $SSH_KEY

agents_user: $USER
resources_prefix: ''
EOF

cfy bootstrap -p $BLUEPRINT -i $INPUTS --install-plugins<commit_msg>Change bootstrap manager script to use /home/anna<commit_after>#!/bin/bash

# [START startup_script]
set -e
set -x
apt-get update
apt-get -y install python-dev python-pip

sudo pip install -U pip
sudo pip install virtualenv

MANAGER_IP=$(ip -4 addr show dev eth0 | grep -E '^[[:space:]]*inet' | xargs | awk '{print $2}' | cut -d/ -f1)
SSH_KEY=$HOME/.ssh/key
INPUTS=$HOME/inputs.yaml
BLUEPRINT=$HOME/simple-manager-blueprint.yaml
USER=default

cat << EOF > $SSH_KEY
SSH_PRIVATE_KEY
EOF

cat << EOF >> $HOME/.ssh/authorized_keys
SSH_PUBLIC_KEY

EOF

virtualenv $HOME/env
source $HOME/env/bin/activate

pip install https://github.com/cloudify-cosmo/cloudify-dsl-parser/archive/3.2m6.zip
pip install https://github.com/cloudify-cosmo/cloudify-rest-client/archive/3.2m6.zip
pip install https://github.com/cloudify-cosmo/cloudify-plugins-common/archive/3.2m6.zip
pip install https://github.com/cloudify-cosmo/cloudify-script-plugin/archive/1.2m6.zip
pip install https://github.com/cloudify-cosmo/cloudify-cli/archive/3.2m6.zip

cfy init

wget https://raw.githubusercontent.com/cloudify-cosmo/cloudify-manager-blueprints/3.2m6/simple/simple.yaml -O $BLUEPRINT

cat << EOF > $INPUTS
public_ip: $MANAGER_IP
private_ip: $MANAGER_IP
ssh_user: ubuntu
ssh_key_filename: $SSH_KEY

agents_user: $USER
resources_prefix: ''
EOF

cfy bootstrap -p $BLUEPRINT -i $INPUTS --install-plugins
{'fraction_non_alphanumeric': 0.13712618526622902, 'fraction_numerical': 0.016046681254558718, 'mean_word_length': 4.6094069529652355, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 11, 'https://': 12, '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': '6855434', 'n_tokens_mistral': 1092, 'n_tokens_neox': 1035, 'n_words': 205}