<commit_before>This is MapRoulette. 

### [API documentation](https://github.com/mvexel/maproulette/wiki/API-Documentation)

## Installation

Note that there is also an Amazon EC2 AMI that has all the requirements for MapRoulette already installed and configured. To use, just fire up an instance of `ami-8985f0e0` and 

    cd maproulette
    git pull
    workon maproulette
    python manage.py runserver

### Dependencies: Linux

On a fresh Ubuntu 12.04 LTS (also successfully tested on 13.04):

    sudo apt-get install python-software-properties
    sudo apt-add-repository -y ppa:ubuntugis/ppa
    sudo apt-get -qq update && sudo apt-get -qq upgrade
    sudo apt-get install postgresql-9.1-postgis postgresql-server-dev-9.1 python-dev git virtualenvwrapper
    sudo su postgres

### Dependencies: OSX

[See installation with Homebrew](https://gist.github.com/mvexel/5526126)

### Setting up the DB

Then as the `postgres` user:

    createuser -s -P osm

Enter the password `<PASSWORD>` twice.

    createdb -O osm maproulette
    exit

Then as you:

    psql -h localhost -U osm -d maproulette -f /usr/share/postgresql/9.1/contrib/postgis-2.0/postgis.sql
    psql -h localhost -U osm -d maproulette -f /usr/share/postgresql/9.1/contrib/postgis-2.0/spatial_ref_sys.sql


Or with PostGIS 2.0

    psql -U osm maproulette

    > CREATE EXTENSION POSTGIS

At this point you should spawn a new shell for the `virtualenvwrapper` scripts to be sourced.

Set up the virtual environment and activate it:

    mkvirtualenv maproulette
    workon maproulette

Clone the repo:

    git clone git://github.com/mvexel/maproulette-front.git

Install the python requirements:

    cd maproulette/
    pip install -r requirements.txt

Generate a Flask application secret:

    python bin/make_secret.py

Generate the database tables:

    python maproulette/models.py

And run the server:

    python manage.py runserver

At this point you should see:

* Running on http://0.0.0.0:3000/
* Restarting with reloader

And you should have a MapRoulette instance at [http://localhost:3000/](http://localhost:3000/)
<commit_msg>Documentation: clone from new repo<commit_after>This is MapRoulette. 

### [API documentation](https://github.com/mvexel/maproulette/wiki/API-Documentation)

## Installation

Note that there is also an Amazon EC2 AMI that has all the requirements for MapRoulette already installed and configured. To use, just fire up an instance of `ami-8985f0e0` and 

    cd maproulette
    git pull
    workon maproulette
    python manage.py runserver

### Dependencies: Linux

On a fresh Ubuntu 12.04 LTS (also successfully tested on 13.04):

    sudo apt-get install python-software-properties
    sudo apt-add-repository -y ppa:ubuntugis/ppa
    sudo apt-get -qq update && sudo apt-get -qq upgrade
    sudo apt-get install postgresql-9.1-postgis postgresql-server-dev-9.1 python-dev git virtualenvwrapper
    sudo su postgres

### Dependencies: OSX

[See installation with Homebrew](https://gist.github.com/mvexel/5526126)

### Setting up the DB

Then as the `postgres` user:

    createuser -s -P osm

Enter the password `osm` twice.

    createdb -O osm maproulette
    exit

Then as you:

    psql -h localhost -U osm -d maproulette -f /usr/share/postgresql/9.1/contrib/postgis-2.0/postgis.sql
    psql -h localhost -U osm -d maproulette -f /usr/share/postgresql/9.1/contrib/postgis-2.0/spatial_ref_sys.sql


Or with PostGIS 2.0

    psql -U osm maproulette

    > CREATE EXTENSION POSTGIS

At this point you should spawn a new shell for the `virtualenvwrapper` scripts to be sourced.

Set up the virtual environment and activate it:

    mkvirtualenv maproulette
    workon maproulette

Clone the repo:

    git clone git://github.com/osmlab/maproulette.git

Install the python requirements:

    cd maproulette/
    pip install -r requirements.txt

Generate a Flask application secret:

    python bin/make_secret.py

Generate the database tables:

    python maproulette/models.py

And run the server:

    python manage.py runserver

At this point you should see:

* Running on http://0.0.0.0:3000/
* Restarting with reloader

And you should have a MapRoulette instance at [http://localhost:3000/](http://localhost:3000/)

{'fraction_non_alphanumeric': 0.08128544423440454, 'fraction_numerical': 0.024574669187145556, 'mean_word_length': 3.409375, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 4, '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': '2906422', 'n_tokens_mistral': 1468, 'n_tokens_neox': 1331, 'n_words': 466}