<commit_before>=======================
VirtualEnv Installation
=======================


.. note::

   Installing Mozillians might be daunting.  Ask for help using IRC in
   #commtools on irc.mozilla.org. Ping `giorgos`, `sancus` or `hoosteeno`,
   they will be happy to help.


**Prerequisites:** You'll need python 2.6, python-dev, virtualenv, pip,
a C compiler (for building some of the Python packages, like the DB interface),
mysqlclient and mysql-dev (or the equivalent on your system), a MySQL server, `gettext`_,
git, and lessc.  If you're working on translations, add subversion.

There are almost certainly other requirements that
we're so used to having installed we've forgotten we have them, so don't be shy
about asking on IRC for help if you run into unexpected errors.

You will want a \*nix box, ideally Debian or Ubuntu since that's what
most of the core developers are using and it's most likely to work.

If you're on Ubuntu or Debian, you might start with::

    $ sudo apt-get install build-essential git-core subversion \
    python2.6 python2.6-dev python-virtualenv python-pip \
    gettext libjpeg-turbo8-dev \
    mysql-client mysql-server libmysqlclient-dev

Then `install node <http://nodejs.org/>`_ and `lessc <http://lesscss.org/>`_.
(You only need node for lessc.)

When you want to start contributing...

#.  `Fork the main Mozillians repository`_ (https://github.com/mozilla/mozillians) on GitHub.

#.  Clone your fork to your local machine::

       $ git clone --recursive <EMAIL>@github.com:YOUR_USERNAME/mozillians.git mozillians
       (lots of output - be patient...)
       $ cd mozillians

    .. note::
<commit_msg>Added note about node version issues for less.<commit_after>=======================
VirtualEnv Installation
=======================


.. note::

   Installing Mozillians might be daunting.  Ask for help using IRC in
   #commtools on irc.mozilla.org. Ping `giorgos`, `sancus` or `hoosteeno`,
   they will be happy to help.


**Prerequisites:** You'll need python 2.6, python-dev, virtualenv, pip,
a C compiler (for building some of the Python packages, like the DB interface),
mysqlclient and mysql-dev (or the equivalent on your system), a MySQL server, `gettext`_,
git, and lessc.  If you're working on translations, add subversion.

There are almost certainly other requirements that
we're so used to having installed we've forgotten we have them, so don't be shy
about asking on IRC for help if you run into unexpected errors.

You will want a \*nix box, ideally Debian or Ubuntu since that's what
most of the core developers are using and it's most likely to work.

If you're on Ubuntu or Debian, you might start with::

    $ sudo apt-get install build-essential git-core subversion \
    python2.6 python2.6-dev python-virtualenv python-pip \
    gettext libjpeg-turbo8-dev \
    mysql-client mysql-server libmysqlclient-dev

Then `install node <http://nodejs.org/>`_ and `lessc <http://lesscss.org/>`_.
(You only need node for lessc.)


.. note::

   Make sure your node version ``node -v`` is greater than v0.6.12 or there 
   will be issues installing less.


When you want to start contributing...

#.  `Fork the main Mozillians repository`_ (https://github.com/mozilla/mozillians) on GitHub.

#.  Clone your fork to your local machine::

       $ git clone --recursive git@github.com:YOUR_USERNAME/mozillians.git mozillians
       (lots of output - be patient...)
       $ cd mozillians

    .. note::

{'fraction_non_alphanumeric': 0.1132238547968885, 'fraction_numerical': 0.005185825410544511, 'mean_word_length': 3.6541554959785523, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '4143737', 'n_tokens_mistral': 1082, 'n_tokens_neox': 980, 'n_words': 438}