<commit_before>#!/bin/bash

set -e
set -x

docker build -t calico-build .

cd ..
mkdir -p `pwd`/dist
chmod 777 `pwd`/dist

if [[ $CIRCLE_TEST_REPORTS ]]; then
    docker run -v `pwd`/:/code -v $CIRCLE_TEST_REPORTS:/circle_output calico-build \
     bash -c '/tmp/etcd & \
      nosetests -c nose.cfg --cover-html-dir=dist --with-xunit --xunit-file=/circle_output/output.xml'
else
    docker run --rm -v `pwd`/:/code calico-build \
     bash -c '/tmp/etcd & \
      nosetests -c nose.cfg$NOSE_ARGS'
fi


docker run --rm -v `pwd`/:/code calico-build \
 pyinstaller calicoctl.py -a -F -s --clean

docker run --rm -v `pwd`/:/code calico-build \
 docopt-completion --manual-bash dist/calicoctl

mv calicoctl.sh dist<commit_msg>Stop rm'ing all containers.<commit_after>#!/bin/bash

set -e
set -x

docker build -t calico-build .

cd ..
mkdir -p `pwd`/dist
chmod 777 `pwd`/dist

if [[ $CIRCLE_TEST_REPORTS ]]; then
    docker run -v `pwd`/:/code -v $CIRCLE_TEST_REPORTS:/circle_output calico-build \
     bash -c '/tmp/etcd & \
      nosetests -c nose.cfg --cover-html-dir=dist --with-xunit --xunit-file=/circle_output/output.xml'
else
    docker run --rm -v `pwd`/:/code calico-build \
     bash -c '/tmp/etcd & \
      nosetests -c nose.cfg$NOSE_ARGS'
fi


docker run -v `pwd`/:/code calico-build \
 pyinstaller calicoctl.py -a -F -s --clean

docker run -v `pwd`/:/code calico-build \
 docopt-completion --manual-bash dist/calicoctl

mv calicoctl.sh dist
{'fraction_non_alphanumeric': 0.1574585635359116, 'fraction_numerical': 0.004143646408839779, 'mean_word_length': 2.6134663341645887, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3723413', 'n_tokens_mistral': 618, 'n_tokens_neox': 579, 'n_words': 146}