<commit_before>echo 'Provisioning virtual machine...'

# Repair "==> default: stdin: is not a tty" message
# For more info see http://www.liviubalan.com/vagrant-repair-default-stdin-is-not-a-tty-message
sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile

# Set locale environment variables for current session
# For more info see http://www.liviubalan.com/vagrant-repair-setting-locale-failed-message-on-ubuntutrusty32
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

# Compile a list of locale definition files
# For more info see http://www.liviubalan.com/ubuntu-server-locales
sudo locale-gen en_US.UTF-8

# Do not allow client to pass locale environment variables through SSH
# For more info see http://www.liviubalan.com/vagrant-repair-setting-locale-failed-message-on-ubuntutrusty32
sudo sed -i "s/^AcceptEnv LANG LC/#AcceptEnv LANG LC/g" /etc/ssh/sshd_config

# Restart SSH service
sudo service ssh restart

# Change timezone to "Europe/Bucharest" according to http://www.liviubalan.com/install-ubuntu-14-04-lts-server-on-virtualbox
# For more info see http://www.liviubalan.com/ubuntu-server-change-and-overview-timezone
sudo bash -c 'echo "Europe/Bucharest" > /etc/timezone'
sudo dpkg-reconfigure -f noninteractive tzdata

# In order to avoid the message
# "==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory"
# use " > /dev/null 2>&1" in order to redirect stdout to /dev/null
# For more info see http://stackoverflow.com/questions/10508843/what-is-dev-null-21

sudo apt-get -qq update > /dev/null 2>&1<commit_msg>Redirect stdout to /dev/null for all the commands that are having an output and move the related info message<commit_after>echo 'Provisioning virtual machine...'

# Repair "==> default: stdin: is not a tty" message
# For more info see http://www.liviubalan.com/vagrant-repair-default-stdin-is-not-a-tty-message
sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile

# In order to avoid the message
# "==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory"
# use " > /dev/null 2>&1" in order to redirect stdout to /dev/null
# For more info see http://stackoverflow.com/questions/10508843/what-is-dev-null-21

# Set locale environment variables for current session
# For more info see http://www.liviubalan.com/vagrant-repair-setting-locale-failed-message-on-ubuntutrusty32
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

# Compile a list of locale definition files
# For more info see http://www.liviubalan.com/ubuntu-server-locales
sudo locale-gen en_US.UTF-8 > /dev/null 2>&1

# Do not allow client to pass locale environment variables through SSH
# For more info see http://www.liviubalan.com/vagrant-repair-setting-locale-failed-message-on-ubuntutrusty32
sudo sed -i "s/^AcceptEnv LANG LC/#AcceptEnv LANG LC/g" /etc/ssh/sshd_config

# Restart SSH service
sudo service ssh restart > /dev/null 2>&1

# Change timezone to "Europe/Bucharest" according to http://www.liviubalan.com/install-ubuntu-14-04-lts-server-on-virtualbox
# For more info see http://www.liviubalan.com/ubuntu-server-change-and-overview-timezone
sudo bash -c 'echo "Europe/Bucharest" > /etc/timezone'
sudo dpkg-reconfigure -f noninteractive tzdata > /dev/null 2>&1

sudo apt-get -qq update
{'fraction_non_alphanumeric': 0.1333679294239751, 'fraction_numerical': 0.019719771665801765, 'mean_word_length': 4.483641536273115, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 12, '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': '3003696', 'n_tokens_mistral': 1537, 'n_tokens_neox': 1444, 'n_words': 343}