<commit_before>.. _installation:

============
Installation
============


1. Install vagrant::

    gem install vagrant

2. Install virtualbox_ by Oracle.

.. _virtualbox: http://www.virtualbox.org/

3. Get a copy of Mozillians.org::

    git clone --recursive git://github.com/mozilla/mozillians.git mozillians.org

4. Get a copy of Mozillians.org's LDAP backend::

    pushd mozillians.org
    git clone git://github.com/mozilla/mozillians-ldap.git directory
    popd

5. Run a virual dev environment::

    vagrant up
    vagrant ssh

   You can edit your files locally and they will automatically
   show up under /home/vagrant/mozillians in the virtualbox.

6. Start your engines::

    $ pushd mozillians/directory/devslapd && x-rebuild && popd
    $ cd mozillians
    $ ./manage.py runserver 0.0.0.0:8001<commit_msg>Edited docs/installation.rst via GitHub<commit_after>.. _installation:

============
Installation
============


1. Install vagrant::

    gem install vagrant

2. Install virtualbox_ by Oracle.

.. _virtualbox: http://www.virtualbox.org/

3. Get a copy of Mozillians.org::

    git clone --recursive git://github.com/mozilla/mozillians.git mozillians.org

4. Get a copy of Mozillians.org's LDAP backend::

    pushd mozillians.org
    git clone git://github.com/mozilla/mozillians-ldap.git directory
    popd

5. Run a virtual dev environment::

    vagrant up
    vagrant ssh

   You can edit your files locally and they will automatically
   show up under /home/vagrant/mozillians in the virtualbox.

6. Start your engines::

    $ pushd mozillians/directory/devslapd && x-rebuild && popd
    $ cd mozillians
    $ ./manage.py runserver 0.0.0.0:8001
{'fraction_non_alphanumeric': 0.11940298507462686, 'fraction_numerical': 0.01671641791044776, 'mean_word_length': 3.1691542288557213, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6472189', 'n_tokens_mistral': 578, 'n_tokens_neox': 546, 'n_words': 166}