<commit_before>#!/bin/bash

# command line examples:
# https://packaging.python.org/guides/using-testpypi/
# pip install --index-url https://test.pypi.org/simple/ sqaod
# twine upload --repository-url https://test.pypi.org/legacy/ sqaod_py2-0.1.0-cp27-cp27mu-manylinux1.whl

rm -rf sqaodpy/build sqaodpy/dist sqaodpy/*.egg-info

cd sqaodpy/sqaod/cpu/src
python incpathgen.py > incpath
make clean all
cd ../../cuda/src
python incpathgen.py > incpath
make clean all
cd ../../..

pip install numpy==1.11
python setup.py bdist_wheel --plat-name manylinux1_x86_64 # --python-tag=py2<commit_msg>Fix: numpy should be installed before compilation.<commit_after>#!/bin/bash

# command line examples:
# https://packaging.python.org/guides/using-testpypi/
# pip install --index-url https://test.pypi.org/simple/ sqaod
# twine upload --repository-url https://test.pypi.org/legacy/ sqaod_py2-0.1.0-cp27-cp27mu-manylinux1.whl

rm -rf sqaodpy/build sqaodpy/dist sqaodpy/*.egg-info
pip install numpy==1.11

cd sqaodpy/sqaod/cpu/src
python incpathgen.py > incpath
make clean all
cd ../../cuda/src
python incpathgen.py > incpath
make clean all
cd ../../..

python setup.py bdist_wheel --plat-name manylinux1_x86_64 # --python-tag=py2
{'fraction_non_alphanumeric': 0.14814814814814814, 'fraction_numerical': 0.02962962962962963, 'mean_word_length': 3.6769230769230767, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 6, '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': '3039190', 'n_tokens_mistral': 492, 'n_tokens_neox': 465, 'n_words': 97}