<commit_before>oneanddone
==========

The "One and Done" initiative, previously known as "QA Taskboard", is a workflow
where Mozilla community contributors can pick tasks and work on them - one at a
time, one day at a time - and feel good about doing them.

One and Done is written with [Playdoh][playdoh] and [Django][django].

If you're interested in helping us out, please read through
[the blog post][blogpost] and reach out to us!

[django]: http://www.djangoproject.com/
[playdoh]: https://github.com/mozilla/playdoh
[blogpost]: https://quality.mozilla.org/2013/10/qa-taskboard-development-call-for-participation/


Development Setup
-----------------
These instructions assume you have [git][], [python][], and `pip` installed. If
you don't have `pip` installed, you can install it with `easy_install pip`.


1. Start by getting the source:

   ```sh
   $ git clone --recursive git@github.com:mozilla/oneanddone.git
   $ cd oneanddone
   ```
   Note you may want to fork and clone the repo as described in the
   [github docs][git-clone] if you are doing active development.

2. Create a virtualenv for One and Done. Skip the first step if you already have
   `virtualenv` installed.

   ```sh
   $ pip install virtualenv
   $ virtualenv venv
   $ source venv/bin/activate
   ```

3. Install the compiled requirements:

   ```sh
   $ pip install -r requirements/compiled.txt
   ```

4. Set up a local MySQL database. The [MySQL Installation Documentation][mysql]
   explains how to do this. Make sure your DB is utf8.

5. Configure your local settings by copying `oneanddone/settings/local.py-dist` to
   `oneanddone/settings/local.py` and customizing the settings in it:

   ```sh
   $ cp oneanddone/settings/local.py-dist oneanddone/settings/local.py
   ```

   The file is commented to explain what each setting does and how to customize
   them.

6. Initialize your database structure:

   ```sh<commit_msg>Added information about turning secure cookies of for local dev, prevents headaches and possible mass murder<commit_after>oneanddone
==========

The "One and Done" initiative, previously known as "QA Taskboard", is a workflow
where Mozilla community contributors can pick tasks and work on them - one at a
time, one day at a time - and feel good about doing them.

One and Done is written with [Playdoh][playdoh] and [Django][django].

If you're interested in helping us out, please read through
[the blog post][blogpost] and reach out to us!

[django]: http://www.djangoproject.com/
[playdoh]: https://github.com/mozilla/playdoh
[blogpost]: https://quality.mozilla.org/2013/10/qa-taskboard-development-call-for-participation/


Development Setup
-----------------
These instructions assume you have [git][], [python][], and `pip` installed. If
you don't have `pip` installed, you can install it with `easy_install pip`.


1. Start by getting the source:

   ```sh
   $ git clone --recursive <EMAIL>@github.com:mozilla/oneanddone.git
   $ cd oneanddone
   ```
   Note you may want to fork and clone the repo as described in the
   [github docs][git-clone] if you are doing active development.

2. Create a virtualenv for One and Done. Skip the first step if you already have
   `virtualenv` installed.

   ```sh
   $ pip install virtualenv
   $ virtualenv venv
   $ source venv/bin/activate
   ```

3. Install the compiled requirements:

   ```sh
   $ pip install -r requirements/compiled.txt
   ```

4. Set up a local MySQL database. The [MySQL Installation Documentation][mysql]
   explains how to do this. Make sure your DB is utf8.

5. Configure your local settings by copying `oneanddone/settings/local.py-dist` to
   `oneanddone/settings/local.py` and customizing the settings in it:

   ```sh
   $ cp oneanddone/settings/local.py-dist oneanddone/settings/local.py
   ```

   The file is commented to explain what each setting does and how to customize
   them. One item in the local.py settings file you are going to want to change, if
   you are running this locally and not over HTTPS, is the following.

   Open up local.py, find and uncomment SESSION_COOKIE_SECURE = False


6. Initialize your database structure:

   ```sh
{'fraction_non_alphanumeric': 0.1001926782273603, 'fraction_numerical': 0.006262042389210019, 'mean_word_length': 3.6195773081201335, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 1, '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': '2382082', 'n_tokens_mistral': 1250, 'n_tokens_neox': 1169, 'n_words': 513}