<commit_before>We're going to use virtualenv, so that we don't pollute your system when
installing dependencies. If you don't already have virtualenv, you can install
it either via your package manager, either via python's package manager with
something like::

    sudo easy_install virtualenv

Install last release::

    rm -rf django-autocomplete-light autocomplete_light_env/

    virtualenv autocomplete_light_env
    source autocomplete_light_env/bin/activate
    git clone https://jpic@github.com/yourlabs/django-autocomplete-light.git
    cd django-autocomplete-light/test_project
    pip install -r requirements.txt
    ./manage.py runserver

Install development versions, if you want to contribute hehehe::

    AUTOCOMPLETE_LIGHT_VERSION="master"
    CITIES_LIGHT_VERSION="master"

    rm -rf autocomplete_light_env/

    virtualenv autocomplete_light_env
    source autocomplete_light_env/bin/activate
    pip install -e git+git://github.com/yourlabs/django-cities-light.git@$CITIES_LIGHT_VERSION#egg=cities_light
    pip install -e git+git://github.com/yourlabs/django-autocomplete-light.git@$AUTOCOMPLETE_LIGHT_VERSION#egg=autocomplete_light
    cd autocomplete_light_env/src/autocomplete-light/test_project
    pip install -r requirements.txt
    ./manage.py runserver

Login with user "test" and password "<PASSWORD>".

If you want to redo the database, but make sure you read README first::

    rm db.sqlite
    ./manage.py syncdb
    ./manage.py cities_light<commit_msg>Updated note about redoing the database<commit_after>We're going to use virtualenv, so that we don't pollute your system when
installing dependencies. If you don't already have virtualenv, you can install
it either via your package manager, either via python's package manager with
something like::

    sudo easy_install virtualenv

Install last release::

    rm -rf django-autocomplete-light autocomplete_light_env/

    virtualenv autocomplete_light_env
    source autocomplete_light_env/bin/activate
    git clone https://jpic@github.com/yourlabs/django-autocomplete-light.git
    cd django-autocomplete-light/test_project
    pip install -r requirements.txt
    ./manage.py runserver

Install development versions, if you want to contribute hehehe::

    AUTOCOMPLETE_LIGHT_VERSION="master"
    CITIES_LIGHT_VERSION="master"

    rm -rf autocomplete_light_env/

    virtualenv autocomplete_light_env
    source autocomplete_light_env/bin/activate
    pip install -e git+git://github.com/yourlabs/django-cities-light.git@$CITIES_LIGHT_VERSION#egg=cities_light
    pip install -e git+git://github.com/yourlabs/django-autocomplete-light.git@$AUTOCOMPLETE_LIGHT_VERSION#egg=autocomplete_light
    cd autocomplete_light_env/src/autocomplete-light/test_project
    pip install -r requirements.txt
    ./manage.py runserver

Login with user "test" and password "<PASSWORD>".

If you want to redo the database, but make sure you read README first::

    cd test_project
    rm -rf db.sqlite
    ./manage.py syncdb --noinput
    ./manage.py migrate
    ./manage.py cities_light
{'fraction_non_alphanumeric': 0.07245430809399478, 'fraction_numerical': 0.0, 'mean_word_length': 4.23037542662116, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4706082', 'n_tokens_mistral': 950, 'n_tokens_neox': 891, 'n_words': 258}