<commit_before>#! /bin/sh

# curl -Ls http://cloudmesh.github.io/get/pi | sh

# <pre>
NORMAL='\033[0m'
RED='\033[0;31m'

Echo() {
 echo "${RED}${1}${NORMAL}"
}

Echo "#################################################"
Echo "# Raspbery Pi Cloudmesh Cluster Instalation     #"
Echo "#################################################"
echo
Echo "#"
Echo "# Update the system"
Echo "#"
sudo apt-get update -y
sudo apt-get full-upgrade -y
sudo apt-get install libatlas-base-dev
echo
Echo "#"
Echo "# Create a Python Virtual Env ~/ENV3"
Echo "#"
python3 -m venv ~/ENV3
. ${HOME}/ENV3/bin/activate
${HOME}/ENV3/bin/pip install pip -U
which ~/ENV3/bin/python
which ~/ENV3/bin/pip
${HOME}/ENV3/bin/python3 --version
${HOME}/ENV3/bin/pip --version
Echo "#"
Echo "# Install cloudmesh-installer"
Echo "#"
${HOME}/ENV3/bin/pip install cloudmesh-installer -U
Echo "#"
Echo "# Add ENV3 to bashrc"
Echo "#"
LINE="source ${HOME}/ENV3/bin/activate"
grep -qF -- "$LINE" ~/.bashrc || echo "$LINE" >> ~/.bashrc
echo
Echo "Please activate with"<commit_msg>add the instalation of cms<commit_after>#! /bin/sh

# curl -Ls http://cloudmesh.github.io/get/pi | sh

# <pre>
NORMAL='\033[0m'
RED='\033[0;31m'

Echo() {
 echo "${RED}${1}${NORMAL}"
}

Echo "#################################################"
Echo "# Raspbery Pi Cloudmesh Cluster Instalation     #"
Echo "#################################################"
echo
Echo "#"
Echo "# Update the system"
Echo "#"
sudo apt-get update -y
sudo apt-get full-upgrade -y
sudo apt-get install libatlas-base-dev
echo
Echo "#"
Echo "# Create a Python Virtual Env ~/ENV3"
Echo "#"
python3 -m venv ~/ENV3
. ${HOME}/ENV3/bin/activate
${HOME}/ENV3/bin/pip install pip -U
which ~/ENV3/bin/python
which ~/ENV3/bin/pip
${HOME}/ENV3/bin/python3 --version
${HOME}/ENV3/bin/pip --version
Echo "#"
Echo "# Install cloudmesh-installer"
Echo "#"
${HOME}/ENV3/bin/pip install cloudmesh-installer -U
${HOME}/ENV3/bin/cloudmesh-installer get pi
Echo "#"
Echo "# Add ENV3 to bashrc"
Echo "#"
LINE="source ${HOME}/ENV3/bin/activate"
grep -qF -- "$LINE" ~/.bashrc || echo "$LINE" >> ~/.bashrc
echo
Echo "Please activate with"
{'fraction_non_alphanumeric': 0.26494117647058824, 'fraction_numerical': 0.023058823529411764, 'mean_word_length': 4.395939086294416, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '860789', 'n_tokens_mistral': 823, 'n_tokens_neox': 789, 'n_words': 198}