<commit_before># Configure a Linux Machine

EMAIL=<EMAIL>

# Network Time Protocol

sudo ntpdate -b pool.ntp.org  

# Preparation

SCRIPT_DIR=$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")
sudo apt-get update
sudo apt-get upgrade -y
mkdir -p ~/projects

# SSH
if [ ! -f "~/.ssh/id_rsa.pub"]; then
    ssh-keygen -t rsa -b 4096 -C "$EMAIL" -F "~/.ssh/id_rsa" -N ""
    eval $(ssh-agent -s)
    ssh-add ~/.ssh/id_rsa
fi

# Azure CLI

sudo apt-get install -y libssl-dev libffi-dev python-dev build-essential
curl -L https://aka.ms/InstallAzureCli | bash

# Programming

sudo apt-get install -y ruby
sudo apt-get install -y python-pip
sudo apt-get install -y lynx
sudo apt-get install -y vi
sudo apt-get install -y subversion

# Tmuxinator

sudo gem install tmuxinator
cp .tmux.conf ~

# Docker

sudo apt-get install apt-transport-https \
     ca-certificates
curl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add -
sudo add-apt-repository \
            "deb https://apt.dockerproject.org/repo/ \
       ubuntu-$(lsb_release -cs) \
       main"

sudo apt-get update
sudo apt-get -y install docker-engine
sudo systemctl enable docker
<commit_msg>add sbt and update az command if alreay installed<commit_after># Configure a Linux Machine

EMAIL=<EMAIL>

# Network Time Protocol

sudo ntpdate -b pool.ntp.org  

# Preparation

SCRIPT_DIR=$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")
sudo apt-get update
sudo apt-get upgrade -y
mkdir -p ~/projects

# SSH
if [ ! -f "~/.ssh/id_rsa.pub"]; then
    ssh-keygen -t rsa -b 4096 -C "$EMAIL" -F "~/.ssh/id_rsa" -N ""
    eval $(ssh-agent -s)
    ssh-add ~/.ssh/id_rsa
fi

# Azure CLI

if hash az 2>/dev/null; then
    az component update
else
    sudo apt-get install -y libssl-dev libffi-dev python-dev build-essential
    curl -L https://aka.ms/InstallAzureCli | bash
fi

# Programming

sudo apt-get install -y ruby
sudo apt-get install -y python-pip
sudo apt-get install -y lynx
sudo apt-get install -y vi
sudo apt-get install -y subversion

## Scala
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update
sudo apt-get -y install sbt

# Tmuxinator

sudo gem install tmuxinator
cp .tmux.conf ~

# Docker

sudo apt-get install apt-transport-https \
     ca-certificates
curl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add -
sudo add-apt-repository \
            "deb https://apt.dockerproject.org/repo/ \
       ubuntu-$(lsb_release -cs) \
       main"

sudo apt-get update
sudo apt-get -y install docker-engine
sudo systemctl enable docker

{'fraction_non_alphanumeric': 0.1311659192825112, 'fraction_numerical': 0.016068759342301942, 'mean_word_length': 2.9777117384843983, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 7, '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': '856579', 'n_tokens_mistral': 1093, 'n_tokens_neox': 969, 'n_words': 297}