<commit_before>#! /bin/bash

SCRIPT_DIR=`dirname $0 | sed -e "s|^\./|$PWD/|"`

# Install MongoDB
if [ ! -x "$HOME/mongodb-linux-x86_64-amazon-3.2.4/bin/mongod" ]; then
    curl -s -o /tmp/mongodb.tgz https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-amazon-3.2.4.tgz
    cd "$HOME" && rm -rf mongodb-linux-x86_64-amazon-3.2.4
    tar -xzf /tmp/mongodb.tgz && rm -f /tmp/mongodb.tgz
    chmod u+x mongodb-linux-x86_64-amazon-3.2.4/bin/mongod
fi

# OpenSSL
if [ ! -L "$HOME/ssl/lib/libssl.so.1.0.0" ]; then
  cd /tmp
  curl -s -o - https://www.openssl.org/source/openssl-1.0.1s.tar.gz | tar -xzf -
  cd openssl-1.0.1s
  rm -rf "$HOME/ssl" && mkdir "$HOME/ssl"
  ./config -shared enable-ssl2 --prefix="$HOME/ssl" > /dev/null
  make depend > /dev/null
  make install > /dev/null
else<commit_msg>Refactor logging and setup MiMa<commit_after>#! /bin/bash

SCRIPT_DIR=`dirname $0 | sed -e "s|^\./|$PWD/|"`

# After cache
rm -rf "$HOME/.ivy2/cache/org.reactivemongo/"

# Install MongoDB
if [ ! -x "$HOME/mongodb-linux-x86_64-amazon-3.2.4/bin/mongod" ]; then
    curl -s -o /tmp/mongodb.tgz https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-amazon-3.2.4.tgz
    cd "$HOME" && rm -rf mongodb-linux-x86_64-amazon-3.2.4
    tar -xzf /tmp/mongodb.tgz && rm -f /tmp/mongodb.tgz
    chmod u+x mongodb-linux-x86_64-amazon-3.2.4/bin/mongod
fi

# OpenSSL
if [ ! -L "$HOME/ssl/lib/libssl.so.1.0.0" ]; then
  cd /tmp
  curl -s -o - https://www.openssl.org/source/openssl-1.0.1s.tar.gz | tar -xzf -
  cd openssl-1.0.1s
  rm -rf "$HOME/ssl" && mkdir "$HOME/ssl"
  ./config -shared enable-ssl2 --prefix="$HOME/ssl" > /dev/null
  make depend > /dev/null
  make install > /dev/null
else
{'fraction_non_alphanumeric': 0.19952067106051527, 'fraction_numerical': 0.04733373277411624, 'mean_word_length': 2.686534216335541, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '7035985', 'n_tokens_mistral': 790, 'n_tokens_neox': 730, 'n_words': 138}