<commit_before>#!/bin/bash

usage="$(basename "$0") [-h] [-v, --volume directory] [-p, --port port] -- 
script to start Unidata Python Docker container where:\n
    -h  show this help text\n
    -v, --volume A local host directory that will be bound to the 
/home/python/work directory. The default is the PWD.\n
    -p, --port  Forward port 8888 to the specified port. Useful for running
IPyNB, for example.\n"

# Set some defaults

VOLUME=`pwd`

PORT=9321

while [[ $# > 0 ]]
do
    key="$1"
    case $key in
        -v|--volume)
            VOLUME="$2"
            shift # past argument
            ;;
        -p|--port)
            PORT="$2"
            shift # past argument
            ;;
        -h|--help)
            echo $usage
            exit
            ;;
    esac
    shift # past argument or value
done

docker run -i -t -v "${VOLUME}":/home/python/work -p "${PORT}":8888 \
    unidata/python<commit_msg>cleaning up verbage<commit_after>#!/bin/bash

usage="$(basename "$0") [-h --help] [-v, --volume directory] [-p, --port port]\n
-- script to start Unidata Python Docker container where:\n
    -h, --help  show this help text\n
    -v, --volume A local host directory that will be bound to the 
/home/python/work\n directory. The default is the PWD.\n
    -p, --port  Forward port 8888 to the specified port. Useful for running
IPyNB, \nfor example. The default is 9321."


# Set some defaults

VOLUME=`pwd`

PORT=9321

while [[ $# > 0 ]]
do
    key="$1"
    case $key in
        -v|--volume)
            VOLUME="$2"
            shift # past argument
            ;;
        -p|--port)
            PORT="$2"
            shift # past argument
            ;;
        -h|--help)
            echo $usage
            exit
            ;;
    esac
    shift # past argument or value
done

exit 0

docker run -i -t -v "${VOLUME}":/home/python/work -p "${PORT}":8888 \
    unidata/python
{'fraction_non_alphanumeric': 0.13727560718057022, 'fraction_numerical': 0.020591341077085535, 'mean_word_length': 1.774524158125915, 'pattern_counts': {'":': 4, '<': 3, '<?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': '205583', 'n_tokens_mistral': 657, 'n_tokens_neox': 611, 'n_words': 207}