<commit_before>#!/bin/bash 

OPT="$1"
DIR="$2"

usage() {
    echo "Usage: $0 [-q|-m] [dir]"
}

if [ -z $OPT ]; then
    echo "Error: no learning method specilized"
    usage
    exit
fi

if [ -z $DIR ]; then
    echo "Error: no working directory specilized"
    usage
    exit
fi

OUTPUT="learning-curve$1.txt"

cd $DIR
rm -f $OUTPUT

for i in `seq 1 1024`; do
    ./pole -t $OPT >>$OUTPUT
done
<commit_msg>add continue and range option<commit_after>#!/bin/bash 

OPT="$1"
DIR="$2"

CON="true" #true/false
NUM="5120"

usage() {
    echo "Usage: $0 [-q|-m] [dir]"
}

if [ -z $OPT ]; then
    echo "Error: no learning method specilized"
    usage
    exit
fi

if [ -z $DIR ]; then
    echo "Error: no working directory specilized"
    usage
    exit
fi

OUTPUT="learning-curve$1.txt"

cd $DIR

if [ $CON = "false" ]; then
    rm -f $OUTPUT
fi

for i in `seq 1 $NUM`; do
    ./pole -t $OPT >>$OUTPUT
done

{'fraction_non_alphanumeric': 0.16168327796234774, 'fraction_numerical': 0.019933554817275746, 'mean_word_length': 2.6897959183673468, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7496092', 'n_tokens_mistral': 375, 'n_tokens_neox': 348, 'n_words': 118}