<commit_before>#!/bin/bash

#####################
# App Name : Basher #
#####################

#Define the minimum no. of arguments
MIN_ARGS=1
APP=`basename $0`

get_version () {
    #Make sure there is a file called VERSION with the version information about the script
    FILE=VERSION
    k=1
    echo
    while read line;do
        echo "$line"
        ((k++))
    done < $FILE
    echo
}

# Put your command-line help here
usage () {
    echo -e "\nusage : $APP [-h|--help] [-v|--version] [-r|--required 123] [-o|--optional [124]]\n"
}

# If the minimum specified options are not provided, we walk
if [[ $# < $MIN_ARGS ]];
then
    echo "Too few arguments"
    usage
    exit 1
fi

OPTIONS=`getopt -o vho::r: --long version,help,optional::,required: -n '$APP' -- "$@"`
if [ $? != 0 ];
then
    echo "Error Parsing arguments"
    usage
    exit 1
fi

#echo $OPTIONS
#eval set -- "$OPTIONS"

#Set Variable defaults for the options to be parsed
HELP=false<commit_msg>Updated the Help/usage message<commit_after>#!/bin/bash

#####################
# App Name : Basher #
#####################

#Define the minimum no. of arguments
MIN_ARGS=1
APP=`basename $0`

# Function to get the version of the script
# Make sure there is a file called VERSION with the 
# version information about the script
get_version () {
    FILE=VERSION
    k=1
    echo
    while read line;do
        echo "$line"
        ((k++))
    done < $FILE
    echo
}

# Put your command-line help here
usage () {
    echo -e "\n$APP : Boilerplate code to start writing bash scripts similar to most Linux command-line utilities"
    echo -e "Usage :"
    echo -e "\t$APP [-h|--help] [-v|--version] [-r|--required 123] [-o|--optional [124]]"
    echo -e "where,"
    echo -e "\t-r, --required <arg> : If this flag is set, an argument is mandatory"
    echo -e "\t-o, --option [arg] : If this flag is set, an argument is optional"
    echo -e "\t-v, --version : Show script version info"
    echo -e "\t-h, --help : Show this Help message"
}

# If the minimum specified options are not provided, we walk
if [[ $# < $MIN_ARGS ]];
then
    echo "Error : Too few arguments"
    usage
    exit 1
fi

OPTIONS=`getopt -o vho::r: --long version,help,optional::,required: -n '$APP' -- "$@"`
if [ $? != 0 ];
then
    echo "Error Parsing arguments"
    usage
    exit 1
fi

#echo $OPTIONS
#eval set -- "$OPTIONS"

#Set Variable defaults for the options to be parsed
HELP=false
{'fraction_non_alphanumeric': 0.167420814479638, 'fraction_numerical': 0.009872480460715755, 'mean_word_length': 2.903691813804173, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 4, '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': '4751934', 'n_tokens_mistral': 822, 'n_tokens_neox': 788, 'n_words': 298}