<commit_before># OSX-only stuff. Abort if not OSX.
[[ "$OSTYPE" =~ ^darwin ]] || return 1

# Install Homebrew.
if [[ ! "$(type -p brew)" ]]; then
  e_header "Installing Homebrew"
  /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
  brew update
fi

# Install Homebrew recipes.
if [[ "$(type -p brew)" ]]; then
  recipes="git node rbenv tree sl lesspipe"

  recipes="$(to_install "$recipes" "$(brew list)")"
  if [[ "$recipes" ]]; then
    e_header "Installing Homebrew recipes: $recipes"
    brew install $recipes
  fi
fi

# Install Npm (for some reason, the brew recipe doesn't do this).
if [[ "$(type -p node)" && ! "$(type -p npm)" ]]; then
  e_header "Installing Npm"
  curl http://npmjs.org/install.sh | sh
fi

# Install Npm modules.
if [[ "$(type -p npm)" ]]; then
  modules="nave jshint uglify-js"

  cd "$(npm config get prefix)/lib/node_modules"; installed=(*); cd - > /dev/null
  modules="$(to_install "$modules" "${installed[*]}")"
  if [[ "$modules" ]]; then
    e_header "Installing Npm modules: $modules"
    npm install -g $modules
  fi
fi<commit_msg>Changing a string to an array. Feels better.<commit_after># OSX-only stuff. Abort if not OSX.
[[ "$OSTYPE" =~ ^darwin ]] || return 1

# Install Homebrew.
if [[ ! "$(type -p brew)" ]]; then
  e_header "Installing Homebrew"
  /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
  brew update
fi

# Install Homebrew recipes.
if [[ "$(type -p brew)" ]]; then
  recipes=(git node rbenv tree sl lesspipe)

  recipes="$(to_install "${recipes[*]}" "$(brew list)")"
  if [[ "$recipes" ]]; then
    e_header "Installing Homebrew recipes: $recipes"
    brew install $recipes
  fi
fi

# Install Npm (for some reason, the brew recipe doesn't do this).
if [[ "$(type -p node)" && ! "$(type -p npm)" ]]; then
  e_header "Installing Npm"
  curl http://npmjs.org/install.sh | sh
fi

# Install Npm modules.
if [[ "$(type -p npm)" ]]; then
  modules=(nave jshint uglify-js)

  cd "$(npm config get prefix)/lib/node_modules"; installed=(*); cd - > /dev/null
  modules="$(to_install "${modules[*]}" "${installed[*]}")"
  if [[ "$modules" ]]; then
    e_header "Installing Npm modules: $modules"
    npm install -g $modules
  fi
fi
{'fraction_non_alphanumeric': 0.18198279764599365, 'fraction_numerical': 0.006337709370755998, 'mean_word_length': 3.6624472573839664, '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': '1395585', 'n_tokens_mistral': 823, 'n_tokens_neox': 770, 'n_words': 250}