<commit_before>#!/usr/bin/env bash
## test_env setup taken from https://gist.github.com/ianmjones/c1f9819d5707324b18701aef3755074c#file-run-tests-sh

source `dirname $0`

while getopts "hsb:t:a:f:x:e:" opt
do
    case ${opt} in
        e) TEST_ENV=$OPTARG;;
    esac
done

TEST_ENV=${TEST_ENV-""}
RUN_WITH=""

RUN_CHROME_DEBUG=`echo "${TEST_ENV}" | sed 's/chromedebug//'`
if [ "${TEST_ENV}" != "${RUN_CHROME_DEBUG}" ]
then
    RUN_WITH="${RUN_WITH}-chrome-debug "
fi

if [ -z "$RUN_WITH" ]; then
    RUN_CHROME=`echo "${TEST_ENV}" | sed 's/chrome//'`
    if [ "${TEST_ENV}" != "${RUN_CHROME}" ]
    then
        RUN_WITH="${RUN_WITH}-chrome "<commit_msg>add default for TEST_ENV (so can be overridden via nightlies if desired)<commit_after>#!/usr/bin/env bash

source `dirname $0`

while getopts "hsb:t:a:f:x:e:" opt
do
    case ${opt} in
        e) TEST_ENV=$OPTARG;;
    esac
done

TEST_ENV=${TEST_ENV-"chrome"}
RUN_WITH=""

RUN_CHROME_DEBUG=`echo "${TEST_ENV}" | sed 's/chromedebug//'`
if [ "${TEST_ENV}" != "${RUN_CHROME_DEBUG}" ]
then
    RUN_WITH="${RUN_WITH}-chrome-debug "
fi

if [ -z "$RUN_WITH" ]; then
    RUN_CHROME=`echo "${TEST_ENV}" | sed 's/chrome//'`
    if [ "${TEST_ENV}" != "${RUN_CHROME}" ]
    then
        RUN_WITH="${RUN_WITH}-chrome "
{'fraction_non_alphanumeric': 0.19459888800635425, 'fraction_numerical': 0.020651310563939634, 'mean_word_length': 4.0199203187251, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '449338', 'n_tokens_mistral': 537, 'n_tokens_neox': 503, 'n_words': 100}