<commit_before>#!/bin/bash
# Push to pypi, tag and push to bitbucket

pyver=$(python -c 'import sys; print("%s%s" % sys.version_info[:2])')
ver=$(python setup.py --version)

# Fail on 1'st error
set -e
set -x

make
python setup.py sdist
twine upload dist/fastavro-${ver}.tar.gz
twine upload dist/fastavro-${ver}*.whl

git tag -f $(python setup.py --version)
git push
git push --tags
# print sha so we can use it in conda-forge recipe
sha256sum dist/fastavro-${ver}.tar.gz
rm -fr build dist/* fastavro.egg-info/
<commit_msg>ensure that the windows wheels were downloaded<commit_after>#!/bin/bash
# Push to pypi, tag and push to bitbucket

pyver=$(python -c 'import sys; print("%s%s" % sys.version_info[:2])')
ver=$(python setup.py --version)

# Fail on 1'st error
set -e
set -x

make
python setup.py sdist

windows_wheels_url="https://ci.appveyor.com/project/scottbelden/fastavro"
if [ ! -f dist/fastavro-${ver}-cp27-cp27m-win_amd64.whl ]; then
    echo "Make sure to download the Python 2.7 wheel from $windows_wheels_url"
    exit 1
fi
if [ ! -f dist/fastavro-${ver}-cp35-cp35m-win_amd64.whl ]; then
    echo "Make sure to download the Python 3.5 wheel from $windows_wheels_url"
    exit 1
fi
if [ ! -f dist/fastavro-${ver}-cp36-cp36m-win_amd64.whl ]; then
    echo "Make sure to download the Python 3.6 wheel from $windows_wheels_url"
    exit 1
fi

twine upload dist/fastavro-${ver}.tar.gz
twine upload dist/fastavro-${ver}*.whl

git tag -f $(python setup.py --version)
git push
git push --tags
# print sha so we can use it in conda-forge recipe
sha256sum dist/fastavro-${ver}.tar.gz
rm -fr build dist/* fastavro.egg-info/

{'fraction_non_alphanumeric': 0.13591635916359163, 'fraction_numerical': 0.022755227552275523, 'mean_word_length': 3.8136094674556213, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '700749', 'n_tokens_mistral': 636, 'n_tokens_neox': 603, 'n_words': 189}