<commit_before>#!/bin/bash

DIR="$( cd "$( dirname "$0" )" && pwd )"
VENV="$DIR/web/venv"

if [ -d "$VENV" ]; then
  echo "ERROR: $VENV exists"
  exit 1
fi

sudo apt-get install python-virtualenv

virtualenv "$VENV"
source "$VENV/bin/activate"
pip install irclog2html
pip install flask

# allow us to bind to port 80
sudo apt-get install authbind
sudo touch /etc/authbind/byport/80
sudo chown "$USER" /etc/authbind/byport/80
sudo chmod 755 /etc/authbind/byport/80
<commit_msg>add tornado to bootstrap script<commit_after>#!/bin/bash

DIR="$( cd "$( dirname "$0" )" && pwd )"
VENV="$DIR/web/venv"

if [ -d "$VENV" ]; then
  echo "ERROR: $VENV exists"
  exit 1
fi

sudo apt-get install python-virtualenv

virtualenv "$VENV"
source "$VENV/bin/activate"
pip install irclog2html
pip install flask
pip install tornado

# allow us to bind to port 80
sudo apt-get install authbind
sudo touch /etc/authbind/byport/80
sudo chown "$USER" /etc/authbind/byport/80
sudo chmod 755 /etc/authbind/byport/80

{'fraction_non_alphanumeric': 0.13535353535353536, 'fraction_numerical': 0.028282828282828285, 'mean_word_length': 4.161458333333333, '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': '1411329', 'n_tokens_mistral': 407, 'n_tokens_neox': 358, 'n_words': 115}