<commit_before>#!/bin/bash
# Create RPMs for Internet-in-a-box
# sudo yum install fedora-packager

if [ ! -d internet-in-a-box/.git ]; then
    echo "Must be run from parent of internet-in-a-box clone"
    exit -1
fi

if [ ! -e Whoosh-2.4.1.tar.gz ]; then
    echo "Downloading Whoosh..."
    wget https://pypi.python.org/packages/source/W/Whoosh/Whoosh-2.4.1.tar.gz
fi

tar xzf Whoosh-2.4.1.tar.gz
(cd Whoosh-2.4.1; python setup.py bdist_rpm)

(cd internet-in-a-box; python setup.py bdist_rpm)

if [ -d fedora ]; then
    rm -rf fedora
fi
mkdir -p fedora/18
cp -v */dist/*.rpm fedora/18/
createrepo --verbose fedora/18/

echo "rsyncing to braddock.com - enter password"
rsync -avrP --delete fedora <EMAIL>:public_html/downloads.internet-in-a-box.org/<commit_msg>added backports.lzma to RPM build script<commit_after>#!/bin/bash
# Create RPMs for Internet-in-a-box
# sudo yum install fedora-packager

if [ ! -d internet-in-a-box/.git ]; then
    echo "Must be run from parent of internet-in-a-box clone"
    exit -1
fi

echo "rsyncing from braddock.com - enter password"
rsync -avrP --delete <EMAIL>:public_html/downloads.internet-in-a-box.org/fedora .

if [ ! -e backports.lzma-0.0.2.tar.gz ]; then
    echo "Downloading LZMA..."
    wget https://pypi.python.org/packages/source/b/backports.lzma/backports.lzma-0.0.2.tar.gz
fi

tar xzf backports.lzma-0.0.2.tar.gz
(cd backports-lzma-0.0.2; python setup.py bdist_rpm)

if [ ! -e Whoosh-2.4.1.tar.gz ]; then
    echo "Downloading Whoosh..."
    wget https://pypi.python.org/packages/source/W/Whoosh/Whoosh-2.4.1.tar.gz
fi

tar xzf Whoosh-2.4.1.tar.gz
(cd Whoosh-2.4.1; python setup.py bdist_rpm)

(cd internet-in-a-box; python setup.py bdist_rpm)

#if [ -d fedora ]; then
#    rm -rf fedora
#fi
mkdir -p fedora/18
cp -v */dist/*.rpm fedora/18/
createrepo --verbose fedora/18/

echo "rsyncing to braddock.com - enter password"
rsync -avrP --delete fedora <EMAIL>:public_html/downloads.internet-in-a-box.org/
{'fraction_non_alphanumeric': 0.15191815856777494, 'fraction_numerical': 0.02557544757033248, 'mean_word_length': 3.049689440993789, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2059424', 'n_tokens_mistral': 836, 'n_tokens_neox': 809, 'n_words': 186}