<commit_before>#!/bin/bash
#
# Get. Set. Rails.
#
# Licence: MIT
# Maintained by: DevOps at Skcript
# 
# Please reach out to us if you have any queries. <EMAIL>
# Here's the plan: 
# 1. Set the global variables (Like Ruby version and location and working directory)
# 2. Make sure you give the user a feedback about the termination on Ctrl+C
# 3. Determine the kernel (Darwin or Linux) - Right now, trying only on Linux
# 4. Ask the user how he would like to install Ruby (RVM or Source)
# 5. Install the dependencies for Ubuntu 
# 6. Install Ruby Gems after installing Ruby
# 7. Give the user a hug. And thank them for using it
#

# 1. Global variable setup
shopt -s nocaseglob
set -e

ruby_version="2.1.5"
ruby_version_string="2.1.5"
ruby_source_url="http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.5.tar.gz"
ruby_source_tar_name="ruby-2.1.5.tar.gz"
ruby_source_dir_name="ruby-2.1.5"
which_user=$(whoami)
getsetrails_path=$(cd && pwd)/getsetrails
log_file="$getsetrails_path/rails_install.log"
system_os=`uname | env LANG=C LC_ALL=C LC_CTYPE=C tr '[:upper:]' '[:lower:]'`

ctrl_c()
{
  echo -en "\n\n========== Exiting ==========\n\n"
  exit 1
}-

# 2. Handle Ctrl+C feedback
trap ctrl_c SIGINT

clear

echo "#####################################"
echo "########## Get. Set. Rails ##########"
echo "#####################################"


# 3. Check Distro Version
if [[ $system_os = *linux* ]] ; then
  distro_name=$(cat /etc/issue) # Get Distro Version from its corresponding file
  if [[ $distro_name =~ ubuntu ]] ; then
    distro="ubuntu" # Store Distro Value
  fi
else # Handle exceptions.
  echo -e "\nGet. Set. Rails. currently supports Ubuntu 14.04\n"
  exit 1
fi

# Help users to track the log file
echo -e "\n\n"
echo "Please run tail -f $log_file in a new terminal to check what installation is being done."<commit_msg>Major Bug Fix<commit_after>#!/bin/bash
#
# Get. Set. Rails.
#
# Licence: MIT
# Maintained by: DevOps at Skcript
# 
# Please reach out to us if you have any queries. <EMAIL>
# Here's the plan: 
# 1. Set the global variables (Like Ruby version and location and working directory)
# 2. Make sure you give the user a feedback about the termination on Ctrl+C
# 3. Determine the kernel (Darwin or Linux) - Right now, trying only on Linux
# 4. Ask the user how he would like to install Ruby (RVM or Source)
# 5. Install the dependencies for Ubuntu 
# 6. Install Ruby Gems after installing Ruby
# 7. Give the user a hug. And thank them for using it
#

# 1. Global variable setup
shopt -s nocaseglob
set -e

ruby_version="2.1.5"
ruby_version_string="2.1.5"
ruby_source_url="http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.5.tar.gz"
ruby_source_tar_name="ruby-2.1.5.tar.gz"
ruby_source_dir_name="ruby-2.1.5"
which_user=$(whoami)
getsetrails_path=$(cd && pwd)/getsetrails
log_file="$getsetrails_path/rails_install.log"
system_os=$(uname | env LANG=C LC_ALL=C LC_CTYPE=C tr '[:upper:]' '[:lower:]')

ctrl_c()
{
  echo -en "\n\n========== Exiting ==========\n\n"
  exit 1
}

# 2. Handle Ctrl+C feedback
trap ctrl_c SIGINT

clear

echo "#####################################"
echo "########## Get. Set. Rails ##########"
echo "#####################################"


# 3. Check Distro Version
if [[ $system_os = *linux* ]] ; then
  distro_name=$(cat /etc/issue) # Get Distro Version from its corresponding file
  if [[ $distro_name =~ ubuntu ]] ; then
    distro="ubuntu" # Store Distro Value
  fi
else # Handle exceptions.
  echo -e "\nGet. Set. Rails. currently supports Ubuntu 14.04\n"
  exit 1
fi

# Help users to track the log file
echo -e "\n\n"
echo "Please run tail -f $log_file in a new terminal to check what installation is being done."
{'fraction_non_alphanumeric': 0.17547683923705723, 'fraction_numerical': 0.017983651226158037, 'mean_word_length': 4.056473829201102, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1598693', 'n_tokens_mistral': 1366, 'n_tokens_neox': 1237, 'n_words': 441}