<commit_before>#!/bin/sh

set -e

# Deploy the module to PyPI
VERSION=`python -c "import serpextract; print serpextract.__version__"`
echo "Deploying serpextract" $VERSION "to PyPI."
echo
python update_list.py
nosetests
TEST_SUCCESSFUL=$?

if [ $TEST_SUCCESSFUL -eq 0 ];then
    echo "Tests succeeded, deploying to PyPI"
    #python setup.py sdist
else
    echo "Tests failed, fix before deploying."
fi
<commit_msg>Actually deploy to PyPI in script<commit_after>#!/bin/sh

set -e

# Deploy the module to PyPI
VERSION=`python -c "import serpextract; print serpextract.__version__"`
echo "Deploying serpextract" $VERSION "to PyPI."
echo
python update_list.py
nosetests
TEST_SUCCESSFUL=$?

if [ $TEST_SUCCESSFUL -eq 0 ];then
    echo "Tests succeeded, deploying to PyPI"
    python setup.py sdist
else
    echo "Tests failed, fix before deploying."
fi

{'fraction_non_alphanumeric': 0.09540636042402827, 'fraction_numerical': 0.002355712603062426, 'mean_word_length': 4.51948051948052, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5669253', 'n_tokens_mistral': 299, 'n_tokens_neox': 287, 'n_words': 99}