<commit_before>#
# Checks if useful utils are installed
#


# modules
msu_require "console"


# mod vars
declare -A utils


utils["deluged"]="http://dev.deluge-torrent.org/wiki/Download"
utils["dropbox"]="https://www.dropbox.com/install"
utils["gedit"]="https://wiki.gnome.org/Apps/Gedit"
utils["gibo"]="https://github.com/simonwhitaker/gibo"
utils["go"]="http://golang.org/doc/install"
utils["go-search"]="https://github.com/tj/go-search"
utils["git"]="https://git-scm.com/"
utils["hg"]="https://mercurial.selenic.com/"
utils["hub"]="https://github.com/github/hub.git"
utils["keybase"]="https://github.com/keybase/node-client"
utils["mongod"]="https://www.mongodb.org/downloads"
utils["mackup"]="https://github.com/lra/mackup"
utils["node"]="https://nodejs.org/download/"
utils["nvm"]="https://github.com/creationix/nvm"
utils["nw"]="http://nwjs.io/"
utils["physlock"]="https://github.com/muennich/physlock"
utils["redis-server"]="http://redis.io/download"
utils["td"]="https://github.com/Swatto/td/"
utils["tor"]="https://www.torproject.org/"
utils["travis"]="https://github.com/travis-ci/travis.rb"
utils["youtube-dl"]="https://rg3.github.io/youtube-dl/"


function check() {
  for util in "${!utils[@]}"
  do
    if [ $(command -v "${util}") ]
    then
      tick "${util} (${utils[${util}]})"
    else
      cross "${util} (${utils[${util}]})"
    fi
  done
}<commit_msg>(utils) fix checking utils<commit_after>#
# Checks if useful utils are installed
#


# modules
msu_require "console"


function check() {
  declare -A utils
  utils["deluged"]="http://dev.deluge-torrent.org/wiki/Download"
  utils["dropbox"]="https://www.dropbox.com/install"
  utils["gedit"]="https://wiki.gnome.org/Apps/Gedit"
  utils["gibo"]="https://github.com/simonwhitaker/gibo"
  utils["go"]="http://golang.org/doc/install"
  utils["go-search"]="https://github.com/tj/go-search"
  utils["git"]="https://git-scm.com/"
  utils["hg"]="https://mercurial.selenic.com/"
  utils["hub"]="https://github.com/github/hub.git"
  utils["keybase"]="https://github.com/keybase/node-client"
  utils["mongod"]="https://www.mongodb.org/downloads"
  utils["mackup"]="https://github.com/lra/mackup"
  utils["node"]="https://nodejs.org/download/"
  utils["nvm"]="https://github.com/creationix/nvm"
  utils["nw"]="http://nwjs.io/"
  utils["physlock"]="https://github.com/muennich/physlock"
  utils["redis-server"]="http://redis.io/download"
  utils["td"]="https://github.com/Swatto/td/"
  utils["tor"]="https://www.torproject.org/"
  utils["travis"]="https://github.com/travis-ci/travis.rb"
  utils["youtube-dl"]="https://rg3.github.io/youtube-dl/"

  for util in "${!utils[@]}"
  do
    if [ $(command -v "${util}") ]
    then
      tick "${util} (${utils[${util}]})"
    else
      cross "${util} (${utils[${util}]})"
    fi
  done
}
{'fraction_non_alphanumeric': 0.25080500894454383, 'fraction_numerical': 0.0007155635062611807, 'mean_word_length': 4.682926829268292, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 34, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5051820', 'n_tokens_mistral': 1075, 'n_tokens_neox': 1056, 'n_words': 115}