<commit_before>#! /bin/bash

function p_success {
  message=$1

  tput setaf 2
  echo $1
  tput sgr0
}

function p_warn {
  message=$1

  tput setaf 3
  echo $1
  tput sgr0
}

echo "Determining the underlying operating system"

unamestr=`uname`
if [[ "$unamestr" == 'Linux' ]]; then
  platform='linux'
elif [[ "$unamestr" == 'FreeBSD' ]]; then
  platform='freebsd'
elif [[ "$unamestr" == 'Darwin' ]]; then
  platform='osx'
fi

echo "Looks like you're running $platform"

# Let's handle the OSX case first

# First thing we need is ruby.
#
# Check if Ruby is installed
#
which -s ruby
if [[ $? != 0 ]] ; then
  # Install Homebrew
  p_warn "Ruby not found"
  #/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
  #brew update
  ruby_version=`ruby -v`
  p_success "Ruby: $ruby_version"
fi

# Next thing we need is rubygems.
#
# Check if Gem is installed
#
which -s gem
if [[ $? != 0 ]] ; then
  # Install Homebrew
  p_warn "rubygems not found"<commit_msg>Supress the output through a more compatible means<commit_after>#! /bin/bash

function p_success {
  message=$1

  tput setaf 2
  echo $1
  tput sgr0
}

function p_warn {
  message=$1

  tput setaf 3
  echo $1
  tput sgr0
}

echo "Determining the underlying operating system"

unamestr=`uname`
if [[ "$unamestr" == 'Linux' ]]; then
  platform='linux'
elif [[ "$unamestr" == 'FreeBSD' ]]; then
  platform='freebsd'
elif [[ "$unamestr" == 'Darwin' ]]; then
  platform='osx'
fi

echo "Looks like you're running $platform"

# Let's handle the OSX case first

# First thing we need is ruby.
#
# Check if Ruby is installed
#
which ruby > /dev/null
if [[ $? != 0 ]] ; then
  # Install Homebrew
  p_warn "Ruby not found"
  #/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
  #brew update
  ruby_version=`ruby -v`
  p_success "Ruby: $ruby_version"
fi

# Next thing we need is rubygems.
#
# Check if Gem is installed
#
which gem > /dev/null
if [[ $? != 0 ]] ; then
  # Install Homebrew
  p_warn "rubygems not found"
{'fraction_non_alphanumeric': 0.13559322033898305, 'fraction_numerical': 0.009685230024213076, 'mean_word_length': 3.611607142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '386245', 'n_tokens_mistral': 811, 'n_tokens_neox': 760, 'n_words': 240}