<commit_before>#!/bin/sh
#
# This is the Haskell Platform installer script for Posix systems.
#
# It expects a tar archive named "hp-usr-local.tar.gz" to be present
# in the current working directory.
#
# It will unpack the archive at / and run the activate-hs script.
#
# This script needs be run as root.

usr_local_tar="./hp-usr-local.tar.gz"
absVersionDir="{{absVersionDir}}"
activate_hs="$absVersionDir/bin/activate-hs"

if ! test -f ""$usr_local_tar""; then
  echo Archive $usr_local_tar not found.
  exit 1
fi

if ! test -w /; then
  echo "The directory / is not writable. Please run this script as root."
  exit 1
fi

echo "Unpacking $usr_local_tar to /..."
if ! tar -C / -xf "$usr_local_tar"; then
  echo "Unpack failed - aborting installation."
  exit 1
fi

echo "Running $activate_hs ..."
"$activate_hs"
<commit_msg>Fix double-double quotes in Posix install script<commit_after>#!/bin/sh
#
# This is the Haskell Platform installer script for Posix systems.
#
# It expects a tar archive named "hp-usr-local.tar.gz" to be present
# in the current working directory.
#
# It will unpack the archive at / and run the activate-hs script.
#
# This script needs be run as root.

usr_local_tar="./hp-usr-local.tar.gz"
absVersionDir="{{absVersionDir}}"
activate_hs="$absVersionDir/bin/activate-hs"

if ! test -f "$usr_local_tar"; then
  echo Archive $usr_local_tar not found.
  exit 1
fi

if ! test -w /; then
  echo "The directory / is not writable. Please run this script as root."
  exit 1
fi

echo "Unpacking $usr_local_tar to /..."
if ! tar -C / -xf "$usr_local_tar"; then
  echo "Unpack failed - aborting installation."
  exit 1
fi

echo "Running $activate_hs ..."
"$activate_hs"

{'fraction_non_alphanumeric': 0.11558980438648489, 'fraction_numerical': 0.0035566093657379964, 'mean_word_length': 3.6629834254143647, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1217533', 'n_tokens_mistral': 580, 'n_tokens_neox': 559, 'n_words': 208}