<commit_before>#!/bin/sh

install_global () {
  module=$1
  executable=$1

  if [ "$2" != "" ]; then
    executable=$2
  fi

  which $executable >> /dev/null 2>&1

  if [ "$?" != 0 ]; then
    echo "Installing $module..."
    npm install -g $module
  else
    echo "$module is already installed."
  fi
}

install_global 'cleverstack-cli' 'clever'
install_global 'electron-prebuilt' 'electron'
install_global 'http-server'
install_global 'mocha'
install_global 'node-gi' 'gi'
install_global 'nodemon'<commit_msg>Installed Bower and Grunt as Cleverstack dependencies.<commit_after>#!/bin/sh

install_global () {
  module=$1
  executable=$1

  if [ "$2" != "" ]; then
    executable=$2
  fi

  which $executable >> /dev/null 2>&1

  if [ "$?" != 0 ]; then
    echo "Installing $module..."
    npm install -g $module
  else
    echo "$module is already installed."
  fi
}

install_global 'cleverstack-cli' 'clever'
install_global 'electron-prebuilt' 'electron'
install_global 'http-server'
install_global 'mocha'
install_global 'node-gi' 'gi'
install_global 'nodemon'
install_global 'bower'
install_global 'grunt-cli' 'grunt'
{'fraction_non_alphanumeric': 0.14451382694023193, 'fraction_numerical': 0.012488849241748439, 'mean_word_length': 3.9646017699115044, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1751120', 'n_tokens_mistral': 404, 'n_tokens_neox': 383, 'n_words': 100}