<commit_before>echo $(env)

if [ $PACKER_BUILDER_TYPE = "docker" ]
then
    apt-get update -y && apt-get install -y sudo
fi

sudo apt-get update -y
sudo apt-get install -y apt-transport-https \
                        build-essential \
                        curl \
                        git-core \
                        gnupg \
                        jq \
                        lsof \
                        mercurial \
                        mysql-client \
                        nmap \
                        postgresql-client \
                        python-pip \
                        redis-tools \
                        sqlite \
                        sysdig \
                        sudo \
                        tmux \
                        unzip \
                        wget \
                        zsh


# Ruby
cd
wget http://ftp.ruby-lang.org/pub/ruby/2.5/ruby-2.5.0.tar.gz
tar -xzvf ruby-2.5.0.tar.gz
cd ruby-2.5.0/
./configure
make
sudo make install
ruby -v
cd

# Go
wget https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz
sudo tar -xvf go1.9.2.linux-amd64.tar.gz
sudo mv go /usr/local
export GOROOT=/usr/local/go
export GOPATH=$HOME
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
go version
<commit_msg>Removed files and folder generated during ruby instillation<commit_after>echo $(env)

if [ $PACKER_BUILDER_TYPE = "docker" ]
then
    apt-get update -y && apt-get install -y sudo
fi

sudo apt-get update -y
sudo apt-get install -y apt-transport-https \
                        build-essential \
                        curl \
                        git-core \
                        gnupg \
                        jq \
                        lsof \
                        mercurial \
                        mysql-client \
                        nmap \
                        postgresql-client \
                        python-pip \
                        redis-tools \
                        sqlite \
                        sysdig \
                        sudo \
                        tmux \
                        unzip \
                        wget \
                        zsh


# Ruby
cd
wget http://ftp.ruby-lang.org/pub/ruby/2.5/ruby-2.5.0.tar.gz
tar -xzvf ruby-2.5.0.tar.gz
cd ruby-2.5.0/
./configure
make
sudo make install
ruby -v
cd
rm -R ruby-2.5.0/ ruby-2.5.0.tar.gz

# Go
wget https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz
sudo tar -xvf go1.9.2.linux-amd64.tar.gz
sudo mv go /usr/local
export GOROOT=/usr/local/go
export GOPATH=$HOME
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
go version

{'fraction_non_alphanumeric': 0.09358081979891725, 'fraction_numerical': 0.018561484918793503, 'mean_word_length': 0.936377245508982, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1395117', 'n_tokens_mistral': 849, 'n_tokens_neox': 746, 'n_words': 167}