<commit_before><commit_msg>add a devops.center enviroment file that can be sourced into other shell scripts that will provide shell functions to make writting console messages a bit more meaningful.  This is only useful for shell scripts and not python scripts.<commit_after>#!/bin/bash - 
#===============================================================================
#
#          FILE: dcEnv.sh
# 
#         USAGE: ./dcEnv.sh 
# 
#   DESCRIPTION: script to include in other scripts that set up the environment
#                and provides some basic utility functions
# 
#       OPTIONS: ---
#  REQUIREMENTS: ---
#          BUGS: ---
#         NOTES: ---
#        AUTHOR: <NAME> (), <EMAIL>
#  ORGANIZATION: devops.center
#       CREATED: 03/21/2017 12:02:46
#      REVISION:  ---
#===============================================================================

#set -o nounset                              # Treat unset variables as an error

dcLog()
{
    msg=$1
    state=$2

    scriptName=$(basename -- "$0")
    TIMESTAMP=$(date +%F_%T)

    if [[ ! -z ${state} ]]; then
        echo "[${TIMESTAMP}]:${scriptName}:${state}:${msg}"
    else
        echo "[${TIMESTAMP}]:${scriptName}::${msg}"
    fi
}

dcStartLog()
{
    msg=$1
    dcLog ${msg} "START"
}

dcEndLog()
{
    msg=$1
    dcLog ${msg} "END"
}


{'fraction_non_alphanumeric': 0.2473444613050076, 'fraction_numerical': 0.014415781487101669, 'mean_word_length': 2.684357541899441, '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': '5403805', 'n_tokens_mistral': 419, 'n_tokens_neox': 384, 'n_words': 109}