<commit_before>#!/usr/bin/env bash
set -eo pipefail
shopt -s nullglob

source /python/bin/activate

case "$1" in
    run-entrypoints)
        test -z "$2" && exit 1;

        # Loading optional entrypoints scripts.
        for f in $2; do
            case "$f" in
                *.sh)
                    echo "\n==== $0: Running $f \n====\n";
                    gosu app bash "$f" ;
                    echo -e "\n==== Completed $f ====\n"
                    ;;

                *.py)
                    echo "\n==== $0: Running $f \n====\n";
                    gosu app python "$f" ;
                    echo -e "\n==== Completed $f ====\n"
                    ;;

                *) echo "$0: Ignoring $f" ;;
            esac
        done
    ;;
    python|python3|uwsgi|-)
        gosu app "$0" run-entrypoints /docker-entrypoint.d/post-*

        # Cleanup shortcut
        if [ ${1} = '-' ]; then
            shift
        fi

        set -- gosu app "$@"
        ;;
esac

"$0" run-entrypoints /docker-entrypoint.d/pre-*

echo "running: $@"
exec "$@"<commit_msg>wrng permissions<commit_after>#!/usr/bin/env bash
set -eo pipefail
shopt -s nullglob

source /python/bin/activate

case "$1" in
    run-entrypoints)
        test -z "$2" && exit 1;

        # Loading optional entrypoints scripts.
        for f in $2; do
            case "$f" in
                *.sh)
                    echo "\n==== $0: Running $f \n====\n";
                    bash "$f" ;
                    echo -e "\n==== Completed $f ====\n"
                    ;;

                *.py)
                    echo "\n==== $0: Running $f \n====\n";
                    python "$f" ;
                    echo -e "\n==== Completed $f ====\n"
                    ;;

                *) echo "$0: Ignoring $f" ;;
            esac
        done
    ;;
    python|python3|uwsgi|-)
        gosu app "$0" run-entrypoints /docker-entrypoint.d/post-*

        # Cleanup shortcut
        if [ ${1} = '-' ]; then
            shift
        fi

        set -- gosu app "$@"
        ;;
esac

"$0" run-entrypoints /docker-entrypoint.d/pre-*

echo "running: $@"
exec "$@"
{'fraction_non_alphanumeric': 0.1651806663538245, 'fraction_numerical': 0.010323791647114031, 'mean_word_length': 1.1448692152917506, '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': '470165', 'n_tokens_mistral': 719, 'n_tokens_neox': 646, 'n_words': 185}