<commit_before>#!/bin/bash

# Script written by: <NAME>.
# This script install and configure Ruby, RVM and Rails.

# Installing Ruby dependencies.
sudo apt-get update && sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev

# Installing RVM.
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -sSL https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm

# Installing Ruby.
rvm install 2.3.1
rvm use 2.3.1 --default

# Installing Bundler.
gem install bundler

# Installing Rails.
gem install rails -v 4.2.6
<commit_msg>Checking if ruby isn't installed before try to install him.<commit_after>#!/bin/bash

# Script written by: JM.
# This script install and configure Ruby, RVM and Rails.

# Installing Ruby dependencies.
sudo apt-get update && sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev

if command -v rvm >/dev/null; then
  echo 'RVM is already installed'
else
  # Installing RVM.
  sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
  gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
  curl -sSL https://get.rvm.io | bash -s stable
  source ~/.rvm/scripts/rvm
  echo $'\n RVM was installed with succes!'
fi

if command -v ruby >/dev/null; then
  echo $'\nRuby is already installed.'
else
  # Installing Ruby.
  rvm install 2.3.1
  rvm use 2.3.1 --default
  echo $'\nRuby was installed with succes'
fi

if command -v bundler >/dev/null; then
  echo $'\nBundler is already installed.'
else
  # Installing Bundler.
  gem install bundler
  echo $'\nBundler was installed with succes!'
fi

if command -v rails >/dev/null; then
  echo $'\nRails is already installed.'
else
  # Installing Rails.
  gem install rails -v 4.2.6
  echo $'\nRails was installed with success!'
fi

{'fraction_non_alphanumeric': 0.097538742023701, 'fraction_numerical': 0.041932543299908843, 'mean_word_length': 3.7925764192139737, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 8, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6242291', 'n_tokens_mistral': 850, 'n_tokens_neox': 768, 'n_words': 250}