<commit_before>#!/bin/bash

#
# installer for cirrus
# Sets up working dir eg $HOME/.cirrus
# Clones latest stable tag of cirrus into it
# runs setup commands to build venv for cirrus
# installs git alias commands
# gets token for github access & updates .gitconfig

INSTALL_DIR="${HOME}/.cirrus"
DEFAULT_USER="${USER}"
CIRRUS_REPO="file:///Users/david/Documents/work/repos/cirrus"

read -p "Installation directory [${INSTALL_DIR}]: " LOCATION
LOCATION=${LOCATION:-$INSTALL_DIR}
echo "Installing cirrus to LOCATION=${LOCATION}" > $INSTALL_DIR/install.log

echo "Installing cirrus in ${LOCATION}..."
mkdir -p $LOCATION
cd $LOCATION
# replace this with git clone of cirrus repo
git clone ${CIRRUS_REPO} -b develop cirrus >> $INSTALL_DIR/install.log

cd cirrus
# bootstrap virtualenv
virtualenv --distribute venv
. venv/bin/activate
pip install -r bootstrap-requirements.txt 1>> $INSTALL_DIR/install.log

# run installer
export CIRRUS_HOME=$LOCATION/cirrus
export VIRTUALENV_HOME=$LOCATION/cirrus/cirrus/venv
python bootstrap.py
python setup.py develop  1>> $INSTALL_DIR/install.log

<commit_msg>tweak installers<commit_after>#!/bin/bash

#
# installer for cirrus
# Sets up working dir eg $HOME/.cirrus
# Clones latest stable tag of cirrus into it
# runs setup commands to build venv for cirrus
# installs git alias commands
# gets token for github access & updates .gitconfig

INSTALL_DIR="${HOME}/.cirrus"
DEFAULT_USER="${USER}"
CIRRUS_REPO="file:///Users/david/Documents/work/repos/cirrus"

read -p "Installation directory [${INSTALL_DIR}]: " LOCATION
LOCATION=${LOCATION:-$INSTALL_DIR}
echo "Installing cirrus to LOCATION=${LOCATION}" > $INSTALL_DIR/install.log

echo "Installing cirrus in ${LOCATION}..."
mkdir -p $LOCATION
cd $LOCATION
# replace this with git clone of cirrus repo
git clone ${CIRRUS_REPO} -b develop cirrus >> $INSTALL_DIR/install.log

cd cirrus
# bootstrap virtualenv
virtualenv --distribute venv
. venv/bin/activate
pip install -r bootstrap-requirements.txt 1>> $INSTALL_DIR/install.log

# run installer
export CIRRUS_HOME=$LOCATION/cirrus
export VIRTUALENV_HOME=$LOCATION/cirrus/venv
python bootstrap.py
python setup.py develop  1>> $INSTALL_DIR/install.log


{'fraction_non_alphanumeric': 0.11136571952337306, 'fraction_numerical': 0.0018331805682859762, 'mean_word_length': 5.327536231884058, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '856929', 'n_tokens_mistral': 745, 'n_tokens_neox': 695, 'n_words': 211}