<commit_before>#!/bin/sh
image_name="jhazelwo/awscli:0.a"
contname="aws"
nodename="--hostname=${contname}"
runname="--name=${contname}"
run_rm="--rm=true"
build_rm="--force-rm=true"
volumes="-v /home/human/dev/python-awscli:/aws -v /home/human/.aws:/aws/home/.aws"
with_tty="--tty"
with_interact="--interactive"

usage() {
    echo ""
    echo "$0 build [clean]"
    echo ""
    echo "$0 run"
    echo ""
}

do_build() {
    echo "build $1"
    docker build $build_rm --tag=${image_name} "$(dirname $0)/docker/"
    [ $? -eq 0 -a please_$1 = please_clean ] && {
        for this in `/usr/bin/docker images |grep '<none>'|awk '{print $3}'`; do
            /usr/bin/docker rmi $this
        done
    }
}

do_run() {
    docker run $nodename $runname $run_rm $ports $volumes $with_tty $with_interact $image_name $@
}

do_kill() {<commit_msg>Mon Jan  2 13:32:16 UTC 2017<commit_after>#!/bin/sh
image_name="jhazelwo/awscli:0.a"
contname="aws"
nodename="--hostname=${contname}"
runname="--name=${contname}"
run_rm="--rm=true"
build_rm="--force-rm=true"
volumes="-v /home/human/dev/python-awscli:/aws -v /home/human/.aws:/aws/home/.aws"
with_tty="--tty"
with_interact="--interactive"
build_context="$(dirname $0)/docker/"

usage() {
    echo ""
    echo "$0 build [clean]"
    echo ""
    echo "$0 run"
    echo ""
}

do_build() {
    echo "build $1"
    docker build $build_rm --tag=${image_name} ${build_context}
    [ $? -eq 0 -a please_$1 = please_clean ] && {
        for this in `/usr/bin/docker images |grep '<none>'|awk '{print $3}'`; do
            /usr/bin/docker rmi $this
        done
    }
}

do_run() {
    docker run $nodename $runname $run_rm $ports $volumes $with_tty $with_interact $image_name $@
}

do_kill() {
{'fraction_non_alphanumeric': 0.1986062717770035, 'fraction_numerical': 0.0156794425087108, 'mean_word_length': 3.2438423645320196, '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': '1295551', 'n_tokens_mistral': 694, 'n_tokens_neox': 661, 'n_words': 136}