<commit_before>#!/bin/bash
# re-build LT and run it on the given text file (e.g. from Tatoeba) and
# show a diff to the previous results (if any)

CURRENT_DIR=`pwd`
CURRENT_BASE=`basename $CURRENT_DIR`
if [ "$(basename $CURRENT_DIR)" != 'scripts' ]; then
    echo "Error: Please start this script from inside the 'scripts' directory";
    exit 1;
fi

if [ $# -eq 4 ]
then
    LT_RULE_OPTION="--enable $4"
elif [ $# -eq 3 ]
then<commit_msg>add --enabledonly option<commit_after>#!/bin/bash
# re-build LT and run it on the given text file (e.g. from Tatoeba) and
# show a diff to the previous results (if any)

CURRENT_DIR=`pwd`
CURRENT_BASE=`basename $CURRENT_DIR`
if [ "$(basename $CURRENT_DIR)" != 'scripts' ]; then
    echo "Error: Please start this script from inside the 'scripts' directory";
    exit 1;
fi

if [ $# -eq 4 ]
then
    LT_RULE_OPTION="--enabledonly --enable $4"
elif [ $# -eq 3 ]
then
{'fraction_non_alphanumeric': 0.13510520487264674, 'fraction_numerical': 0.008859357696566999, 'mean_word_length': 3.860215053763441, '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': '7314630', 'n_tokens_mistral': 332, 'n_tokens_neox': 311, 'n_words': 114}