<commit_before>#!/bin/sh

WEBSITE_DIR=/var/tmp/website

pysetup ()
{
    /var/tmp/website/bin/python setup.py install --prefix=$WEBSITE_DIR
}

standard_setup ()
{
    # $1 = source URL
    # $2 = untarred directory
    curl $1 | tar zxv && cd $2 && pysetup
    cd $WEBSITE_DIR
}

install_django ()
{
    standard_setup http://media.djangoproject.com/releases/1.0/Django-1.0.tar.gz Django-1.0
}

install_python ()
{
    curl http://mulletron.uwcs.co.uk/python26.tar | tar xv
}

install_setuptools ()
{
    standard_setup http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c9.tar.gz setuptools-0.6c9
}

install_markdown ()
{
    standard_setup http://pypi.python.org/packages/source/M/Markdown/markdown-1.7.tar.gz markdown-1.7
}

install_docutils ()
{
    wget http://docutils.sourceforge.net/docutils-snapshot.tgz && tar zxvf docutils-snapshot.tgz && cd docutils && pysetup
    cd $WEBSITE_DIR
}

install_dateutil ()
{
    standard_setup http://labix.org/download/python-dateutil/python-dateutil-1.4.1.tar.gz python-dateutil-1.4.1
}

install_vobject ()
{
    standard_setup http://vobject.skyhouseconsulting.com/vobject-0.7.1.tar.gz vobject-0.7.1
}

install_textile ()
{
    standard_setup http://pypi.python.org/packages/source/t/textile/textile-2.0.11.tar.gz textile-2.0.11
}

mkdir -p $WEBSITE_DIR
cd $WEBSITE_DIR

install_python
install_setuptools
install_django
install_markdown
install_docutils
install_dateutil
install_vobject
install_textile<commit_msg>Modified install script to do jquery<commit_after>#!/bin/sh

WEBSITE_DIR=/var/tmp/website

pysetup ()
{
    /var/tmp/website/bin/python setup.py install --prefix=$WEBSITE_DIR
}

standard_setup ()
{
    # $1 = source URL
    # $2 = untarred directory
    curl $1 | tar zxv && cd $2 && pysetup
    cd $WEBSITE_DIR
}

install_django ()
{
    standard_setup http://media.djangoproject.com/releases/1.0/Django-1.0.tar.gz Django-1.0
}

install_python ()
{
    curl http://mulletron.uwcs.co.uk/python26.tar | tar xv
}

install_setuptools ()
{
    standard_setup http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c9.tar.gz setuptools-0.6c9
}

install_markdown ()
{
    standard_setup http://pypi.python.org/packages/source/M/Markdown/markdown-1.7.tar.gz markdown-1.7
}

install_docutils ()
{
    wget http://docutils.sourceforge.net/docutils-snapshot.tgz && tar zxvf docutils-snapshot.tgz && cd docutils && pysetup
    cd $WEBSITE_DIR
}

install_dateutil ()
{
    standard_setup http://labix.org/download/python-dateutil/python-dateutil-1.4.1.tar.gz python-dateutil-1.4.1
}

install_vobject ()
{
    standard_setup http://vobject.skyhouseconsulting.com/vobject-0.7.1.tar.gz vobject-0.7.1
}

install_textile ()
{
    standard_setup http://pypi.python.org/packages/source/t/textile/textile-2.0.11.tar.gz textile-2.0.11
}

install_jquery ()
{
    cd "$WEBSITE_DIR/compsoc/static/js"
    wget http://jqueryjs.googlecode.com/files/jquery-1.3.2.js
    ln -s jquery-1.3.2.js jquery.js
}

mkdir -p $WEBSITE_DIR
cd $WEBSITE_DIR

install_python
install_setuptools
install_django
install_markdown
install_docutils
install_dateutil
install_vobject
install_textile
install_jquery
{'fraction_non_alphanumeric': 0.13623372499206096, 'fraction_numerical': 0.028580501746586218, 'mean_word_length': 3.751131221719457, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '735200', 'n_tokens_mistral': 1276, 'n_tokens_neox': 1233, 'n_words': 166}