<commit_before>#!/bin/bash

configfile=$1
numberofcores=$2

ipcluster stop

ipcluster start --n=$numberofcores --daemon

python start.py $configfile

ipcluster stop<commit_msg>made CLI for preprocess.sh a little more friendly<commit_after>#!/bin/bash

configfile=$1
numberofcores=$2

if [ -z $1 ]
  then
    echo "Please specify a config file as the first argument"
    exit
fi

if [ -z $2 ]
  then
    echo "Please specify a number of cores as the second argument"
    exit
fi

ipcluster stop

ipcluster start --n=$numberofcores --daemon

python start.py $configfile

ipcluster stop
{'fraction_non_alphanumeric': 0.08747855917667238, 'fraction_numerical': 0.010291595197255575, 'mean_word_length': 3.8666666666666667, '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': '1401042', 'n_tokens_mistral': 200, 'n_tokens_neox': 189, 'n_words': 67}