<commit_before>#!/bin/bash

# Welcome message
echo "Welcome"
echo "That's my installer for Ubuntu"
echo "My name is Hernandes"
echo "You can find me here: github.com/mhernandes"
echo "Ok, let's play"
echo "Adding PPA's repositories"

# Add Sublime Text 3
echo "Adding Sublime Text 3.."
sudo add-apt-repository ppa:webupd8team/sublime-text-3 -y


# Add PHP 7
echo "Adding PHP 7.."
sudo add-apt-repository ppa:ondrej/php -y


# Add MySQL 5.7
echo "Adding MySQL 5.7.."
sudo add-apt-repository ppa:ondrej/mysql-5.7 -y


# Add Numix
echo "Adding Numix.."
sudo add-apt-repository ppa:numix/ppa -y


# Add Android Studio
echo "Adding Android Studio.."
sudo add-apt-repository ppa:paolorotolo/android-studio -y


# Add Ruby 2.2
echo "Adding Ruby.."
sudo apt-add-repository ppa:brightbox/ruby-ng -y


# Updating and upgrading
echo "Updating and upgrading.."
sudo apt-get update && sudo apt-get upgrade -y

echo "Installing applications"

# Installing Sublime Text
if ! hash subl; then
	echo "Installing Sublime Text.."
	sudo apt-get install sublime-text-installer -y
else
	echo "Sublime Text already installed"
fi


# Installing PHP 7
if ! hash php; then
	echo "Installing PHP 7.."
	sudo apt-get install php7.0 php7.0-dev -y
else
	echo "PHP 7 already installed"
fi


# Installing MySQL 5.7
if ! hash mysql; then
	echo "Installing MySQL 5.7.."
	sudo apt-get install mysql-server mysql-server-5.7 -y
	sudo mysql_secure_installation
	sudo mysql_install_db
else
	echo "MySQL 5.7 already installed"
fi


# Installing Numix Theme
echo "Installing Numix Theme.."
sudo apt-get install numix-gtk-theme numix-icon-theme-circle


# Installing Android Studio
echo "Installing Android Studio.."
sudo apt-get install android-studio -y


# Installing Ruby 2.2
if ! hash ruby; then
	echo "Installing Ruby 2.2.."
	sudo apt-get install ruby2.2 ruby2.2-dev -y
else
	echo "Ruby 2.2 already installed"
fi


# Installing SASS
if ! hash sass; then
	echo "Installing SASS.."
	sudo gem install sass -y
else
	echo "SASS already installed"
fi


# Installing Jekyll 
if ! hash jekyll; then
	echo "Installing Jekyll.."
	sudo gem install jekyll -y
else
	echo "Jekyll already installed"
fi


# Installing NodeJS
if ! hash nodejs; then
	echo "Installing NodeJS.."
	sudo apt-get install nodejs nodejs-dev -y
else
	echo "NodeJS already installed"
fi


# Installing EasyTag
if ! hash easytag; then
	echo "Installing EasyTag.."
	sudo apt-get install easytag -y
else
	echo "EasyTag already installed"
fi


# Installing Git
if ! hash git; then
	echo "Installing Git.."
	sudo apt-get install git -y
else
	echo "Git already installed"
fi


# Installing NPM
if ! hash npm; then
	echo "Installing NPM.."
	sudo apt-get install npm -y
else
	echo "NPM already installed"
fi


# Installing Gulp
if ! hash gulp; then
	echo "Installing Gulp.."
	sudo npm install -g gulp
else
	echo "Gulp already installed"
fi


# Installing Getme
if ! hash getme; then
	echo "Installing Getme.."
	sudo npm install -g getme
else
	echo "Getme already installed"
fi


# ----------------------------

# Settings

echo "Setting things"

# Git
git config --global user.email "<EMAIL>"
git config --global user.name "<NAME>"

# Sublime Text
sudo cp ./sublime/* ~/.config/sublime-text-3/Packages/User/

sudo chmod +x commands/updg && sudo mv commands/* /bin/<commit_msg>add commands to init file<commit_after>#!/bin/bash

# Welcome message
echo "Welcome"
echo "That's my installer for Ubuntu"
echo "My name is Hernandes"
echo "You can find me here: github.com/mhernandes"
echo "Ok, let's play"
echo "Adding PPA's repositories"

# Add Sublime Text 3
echo "Adding Sublime Text 3.."
sudo add-apt-repository ppa:webupd8team/sublime-text-3 -y


# Add PHP 7
echo "Adding PHP 7.."
sudo add-apt-repository ppa:ondrej/php -y


# Add MySQL 5.7
echo "Adding MySQL 5.7.."
sudo add-apt-repository ppa:ondrej/mysql-5.7 -y


# Add Numix
echo "Adding Numix.."
sudo add-apt-repository ppa:numix/ppa -y


# Add Android Studio
echo "Adding Android Studio.."
sudo add-apt-repository ppa:paolorotolo/android-studio -y


# Add Ruby 2.2
echo "Adding Ruby.."
sudo apt-add-repository ppa:brightbox/ruby-ng -y


# Updating and upgrading
echo "Updating and upgrading.."
sudo apt-get update && sudo apt-get upgrade -y

echo "Installing applications"

# Installing Sublime Text
if ! hash subl; then
	echo "Installing Sublime Text.."
	sudo apt-get install sublime-text-installer -y
else
	echo "Sublime Text already installed"
fi


# Installing PHP 7
if ! hash php; then
	echo "Installing PHP 7.."
	sudo apt-get install php7.0 php7.0-dev -y
else
	echo "PHP 7 already installed"
fi


# Installing MySQL 5.7
if ! hash mysql; then
	echo "Installing MySQL 5.7.."
	sudo apt-get install mysql-server mysql-server-5.7 -y
	sudo mysql_secure_installation
	sudo mysql_install_db
else
	echo "MySQL 5.7 already installed"
fi


# Installing Numix Theme
echo "Installing Numix Theme.."
sudo apt-get install numix-gtk-theme numix-icon-theme-circle


# Installing Android Studio
echo "Installing Android Studio.."
sudo apt-get install android-studio -y


# Installing Ruby 2.2
if ! hash ruby; then
	echo "Installing Ruby 2.2.."
	sudo apt-get install ruby2.2 ruby2.2-dev -y
else
	echo "Ruby 2.2 already installed"
fi


# Installing SASS
if ! hash sass; then
	echo "Installing SASS.."
	sudo gem install sass -y
else
	echo "SASS already installed"
fi


# Installing Jekyll 
if ! hash jekyll; then
	echo "Installing Jekyll.."
	sudo gem install jekyll -y
else
	echo "Jekyll already installed"
fi


# Installing NodeJS
if ! hash nodejs; then
	echo "Installing NodeJS.."
	sudo apt-get install nodejs nodejs-dev -y
else
	echo "NodeJS already installed"
fi


# Installing EasyTag
if ! hash easytag; then
	echo "Installing EasyTag.."
	sudo apt-get install easytag -y
else
	echo "EasyTag already installed"
fi


# Installing Git
if ! hash git; then
	echo "Installing Git.."
	sudo apt-get install git -y
else
	echo "Git already installed"
fi


# Installing NPM
if ! hash npm; then
	echo "Installing NPM.."
	sudo apt-get install npm -y
else
	echo "NPM already installed"
fi


# Installing Gulp
if ! hash gulp; then
	echo "Installing Gulp.."
	sudo npm install -g gulp
else
	echo "Gulp already installed"
fi


# Installing Getme
if ! hash getme; then
	echo "Installing Getme.."
	sudo npm install -g getme
else
	echo "Getme already installed"
fi


# ----------------------------

# Settings

echo "Setting things"

# Git
git config --global user.email "<EMAIL>"
git config --global user.name "<NAME>"

# Sublime Text
sudo cp ./sublime/* ~/.config/sublime-text-3/Packages/User/

sudo chmod +x commands/updg
sudo chmod +x commands/init-basic
sudo chmod +x commands/init-work
sudo mv commands/* /bin/
{'fraction_non_alphanumeric': 0.1037282020444979, 'fraction_numerical': 0.012026458208057728, 'mean_word_length': 3.489203778677463, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1822068', 'n_tokens_mistral': 2525, 'n_tokens_neox': 2256, 'n_words': 863}