<commit_before>#!/bin/sh
#
# Authors and License
#

CHEFSOLO=/usr/bin/chef-solo

while getopts e:n: option
do
  case "${option}"
  in
    e) ENV=${OPTARG};;
    n) HOSTNAME=${OPTARG};;
  esac
done

if ! test -f "$CHEFSOLO"; then
  # Download and install chef
  wget -qO- https://www.opscode.com/chef/install.sh | sudo bash
fi

if ! test -f "$CHEFSOLO"; then
  echo "$CHEFSOLO not installed"
  exit 1;
fi 

UHOSTSERVERDIR='./uhostserver'

if [ ! -d $UHOSTSERVERDIR ]; then
  mkdir $UHOSTSERVERDIR<commit_msg>Added check to make sure that the script is being run as root.<commit_after>#!/bin/sh
#
# Authors and License
#

if [ $(id -u) -ne 0 ]
then 
  echo "Need to run this as root, or use sudo"
  exit 1;
fi

CHEFSOLO=/usr/bin/chef-solo

while getopts e:n: option
do
  case "${option}"
  in
    e) ENV=${OPTARG};;
    n) HOSTNAME=${OPTARG};;
  esac
done

if ! test -f "$CHEFSOLO"; then
  # Download and install chef
  wget -qO- https://www.opscode.com/chef/install.sh | sudo bash
fi

if ! test -f "$CHEFSOLO"; then
  echo "$CHEFSOLO not installed"
  exit 1;
fi 

UHOSTSERVERDIR='./uhostserver'

if [ ! -d $UHOSTSERVERDIR ]; then
  mkdir $UHOSTSERVERDIR
{'fraction_non_alphanumeric': 0.1423611111111111, 'fraction_numerical': 0.003472222222222222, 'mean_word_length': 3.2862453531598512, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '716344', 'n_tokens_mistral': 484, 'n_tokens_neox': 457, 'n_words': 136}