<commit_before>#!/bin/zsh
if ! [ -w /usr/local ] || ! [ -d /usr/local ]
then
  echo "\033[0;31mYou don't have a /usr/local directory or it is not writable, please create it and make sure you have write permissions to it before running this script again.\033[0m"
  exit
fi

if [ -d ~/Tranquil ]
then
  echo "\033[0;31mYou already have something in ~/Tranquil.\033[0m\nYou'll need to rename that directory before you use this installation script."
  exit
fi

echo "\033[0;32mI'm about to retrieve and compile Tranquil for you. This shouldn't take more than ~10 minutes,\ndepending on your connection.\n"

echo "\033[0;34mInstalling LLVM...\033[0m"
if [ -d /usr/local/llvm ]
then
  echo "\033[0;32mYou already have llvm installed to /usr/local/llvm.\033[0m\n\033[0;31mIf it's not version 3.1, you might have compatibility problems.\033[0m"
else
    curl http://llvm.org/releases/3.1/clang+llvm-3.1-x86_64-apple-darwin11.tar.gz -o /tmp/llvm3.1.tgz
    tar -C /usr/local -xzf /tmp/llvm3.1.tgz
    mv /usr/local/clang+llvm-3.1-x86_64-apple-darwin11 /usr/local/llvm
fi
<commit_msg>Made installer less intimidating<commit_after>#!/bin/zsh
if ! [ -w /usr/local ] || ! [ -d /usr/local ]
then
  echo "\033[0;31mYou don't have a /usr/local directory or it is not writable, please create it and make sure you have write permissions to it before running this script again.\033[0m"
  exit
fi

if [ -d ~/Tranquil ]
then
  echo "\033[0;31mYou already have something in ~/Tranquil.\033[0m\nYou'll need to rename that directory before you use this installation script."
  exit
fi

echo "\033[0;32mI'm about to retrieve and compile Tranquil for you. This shouldn't take more than a few minutes,\ndepending on your connection.\n"

echo "\033[0;34mInstalling LLVM...\033[0m"
if [ -d /usr/local/llvm ]
then
  echo "\033[0;32mYou already have llvm installed to /usr/local/llvm.\033[0m\n\033[0;31mIf it's not version 3.1, you might have compatibility problems.\033[0m"
else
    curl http://llvm.org/releases/3.1/clang+llvm-3.1-x86_64-apple-darwin11.tar.gz -o /tmp/llvm3.1.tgz
    tar -C /usr/local -xzf /tmp/llvm3.1.tgz
    mv /usr/local/clang+llvm-3.1-x86_64-apple-darwin11 /usr/local/llvm
fi

{'fraction_non_alphanumeric': 0.13047487321346243, 'fraction_numerical': 0.07468879668049792, 'mean_word_length': 3.4742268041237114, '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': '7413158', 'n_tokens_mistral': 890, 'n_tokens_neox': 796, 'n_words': 244}