<commit_before>#!/bin/sh

while true; do
    read -p "Have you updated the version number in bmrb.py? " yn
    case $yn in
        [Yy]* ) break;;
        [Nn]* ) exit;;
        * ) echo "Please answer yes or no.";;
    esac
done

while true; do
    read -p "Do release or test? " rt
    case $rt in
        [Rr]* ) mkdir pynmrstar; cp bmrb.py pynmrstar/__init__.py; cp -rv reference_files pynmrstar; touch pynmrstar/.nocompile; pandoc -o README.rst README.md; python3 setup.py sdist upload --sign; rm -rfv pynmrstar pynmrstar.egg-info; break;;
        [Tt]* ) mkdir pynmrstar; cp bmrb.py pynmrstar/__init__.py; cp -rv reference_files pynmrstar; touch pynmrstar/.nocompile; pandoc -o README.rst README.md; python3 setup.py sdist; rm -rfv pynmrstar pynmrstar.egg-info; break;;
        * ) echo "Please answer r or t.";;
    esac
done
<commit_msg>Update release script to use twine.<commit_after>#!/bin/sh

while true; do
    read -p "Have you updated the version number in bmrb.py? " yn
    case $yn in
        [Yy]* ) break;;
        [Nn]* ) exit;;
        * ) echo "Please answer yes or no.";;
    esac
done

while true; do
    read -p "Do release or test? " rt
    case $rt in
        [Rr]* ) twine upload dist/*.tar.gz --sign; rm -rfv pynmrstar pynmrstar.egg-info; break;;
        [Tt]* ) mkdir pynmrstar; cp bmrb.py pynmrstar/__init__.py; cp -rv reference_files pynmrstar; touch pynmrstar/.nocompile; pandoc -o README.rst README.md; python3 setup.py sdist; rm -rfv pynmrstar pynmrstar.egg-info; break;;
        * ) echo "Please answer r or t.";;
    esac
done

{'fraction_non_alphanumeric': 0.12148337595907928, 'fraction_numerical': 0.0019181585677749361, 'mean_word_length': 2.6910377358490565, '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': '4499406', 'n_tokens_mistral': 588, 'n_tokens_neox': 578, 'n_words': 191}