<commit_before>#!/bin/bash

if [ -z "$1" ]
then
    echo "usage: $0 <app_path>"
    exit 65
fi

THIS_DIR=`dirname $0`
PYTHON_EXEC_PATH="Contents/MacOS/python"
RESOURCES_PATH="Contents/Resources"

if [ ! -e "$1/$RESOURCES_PATH" ]
then
    echo "$1/$RESOURCES_PATH does not exist"
    exit 66
fi

if [ ! -e "$1/$PYTHON_EXEC_PATH" ]
then
    echo "$1/$PYTHON_EXEC_PATH does not exist"
    exit 67
fi

PYTHONHOME="$1/$RESOURCES_PATH" ${1}/${PYTHON_EXEC_PATH} ${THIS_DIR}/runtestsuite.py
<commit_msg>Pass arguments through run_on_mac test script so module_filter works.<commit_after>#!/bin/bash

if [ -z "$1" ]
then
    echo "usage: $0 <app_path>"
    exit 65
fi

APP_PATH=$1
shift
THIS_DIR=`dirname $0`
PYTHON_EXEC_PATH="Contents/MacOS/python"
RESOURCES_PATH="Contents/Resources"

if [ ! -e "$APP_PATH/$RESOURCES_PATH" ]
then
    echo "$APP_PATH/$RESOURCES_PATH does not exist"
    exit 66
fi

if [ ! -e "$APP_PATH/$PYTHON_EXEC_PATH" ]
then
    echo "$APP_PATH/$PYTHON_EXEC_PATH does not exist"
    exit 67
fi

PYTHONHOME="$APP_PATH/$RESOURCES_PATH" ${APP_PATH}/${PYTHON_EXEC_PATH} ${THIS_DIR}/runtestsuite.py $@

{'fraction_non_alphanumeric': 0.14517583408476104, 'fraction_numerical': 0.02254283137962128, 'mean_word_length': 4.414634146341464, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4797957', 'n_tokens_mistral': 481, 'n_tokens_neox': 435, 'n_words': 96}