<commit_before>#!/usr/bin/env bash

TIMEOUT=3
COOPR_HOME=${COOPR_HOME:-/opt/coopr}
COOPR_SERVER_URI=${COOPR_SERVER_URI:-http://localhost:55054}
COOPR_API_USER=${COOPR_API_USER:-admin}
COOPR_API_KEY=${COOPR_API_KEY:-<KEY>}
COOPR_TENANT=${COOPR_TENANT:-superadmin}
SHELL_DIR=${COOPR_HOME}/provisioner/worker/plugins/automators/shell_automator

COOPR_RUBY=${COOPR_RUBY:-"${COOPR_HOME}/provisioner/embedded/bin/ruby"}
test -x ${COOPR_RUBY} || COOPR_RUBY="ruby"
DATA_UPLOADER="${COOPR_RUBY} ${COOPR_HOME}/provisioner/bin/data-uploader.rb"

SCRIPTS_DIR=${SHELL_DIR}/scripts
ARCHIVES_DIR=${SHELL_DIR}/archives
<commit_msg>Derive SHELL_DIR<commit_after>#!/usr/bin/env bash

TIMEOUT=3
COOPR_HOME=${COOPR_HOME:-/opt/coopr}
COOPR_SERVER_URI=${COOPR_SERVER_URI:-http://localhost:55054}
COOPR_API_USER=${COOPR_API_USER:-admin}
COOPR_API_KEY=${COOPR_API_KEY:-<KEY>}
COOPR_TENANT=${COOPR_TENANT:-superadmin}
SHELL_DIR=$(cd $(dirname ${BASH_SOURCE[0]}) && pwd)

COOPR_RUBY=${COOPR_RUBY:-"${COOPR_HOME}/provisioner/embedded/bin/ruby"}
test -x ${COOPR_RUBY} || COOPR_RUBY="ruby"
DATA_UPLOADER="${COOPR_RUBY} ${COOPR_HOME}/provisioner/bin/data-uploader.rb"

SCRIPTS_DIR=${SHELL_DIR}/scripts
ARCHIVES_DIR=${SHELL_DIR}/archives

{'fraction_non_alphanumeric': 0.17647058823529413, 'fraction_numerical': 0.010770505385252692, 'mean_word_length': 10.504761904761905, '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': '3636825', 'n_tokens_mistral': 576, 'n_tokens_neox': 556, 'n_words': 40}