<commit_before>============
INSTALLATION
============

You've got two projects.

 - One is the service API that will store the data;
 - One is the Web application to manage and look at your data.

Deploying the service
=====================

Requirements
------------

The service API is built on top of Django and Django REST Framework.

You will need a PostgreSQL server for the database layer.

#. Create a virtualenv using Python 2.7::

    virtualenv --python /usr/bin/python2.7 venv

#. Upgrade pip::

   ./venv/bin/pip install -U pip

#. Install requirements::

   ./venv/bin/pip install -r 723e_server/requirement.txt

#. Copy the settings.py.example and configure your application::

    cp 723e_server/settings.py.example 723e_server/settings.py

#. `Generate a new SECRET_KEY <http://www.miniwebtool.com/django-secret-key-generator/>`_
#. Set ``DEBUG=False`` if production
#. Run Django Auth migration: ``python manage.py migrate auth``
#. Run Django 723e migration: ``python manage.py migrate`
#. Then run the server: ``python manage.py runserver``


Running the client
==================

In order to run the client, you just need to install the dependencies::

    npm install
    bower install

Then build the CSS files::

    grunt less

Then serve the cient::

    grunt server<commit_msg>Correct wrong cmd in installation process<commit_after>============
INSTALLATION
============

You've got two projects.

 - One is the service API that will store the data;
 - One is the Web application to manage and look at your data.

Deploying the service
=====================

Requirements
------------

The service API is built on top of Django and Django REST Framework.

You will need a PostgreSQL server for the database layer.

#. Create a virtualenv using Python 2.7::

    virtualenv --python /usr/bin/python2.7 venv

#. Upgrade pip::

   ./venv/bin/pip install -U pip

#. Install requirements::

   ./venv/bin/pip install -r 723e_server/requirement.txt

#. Copy the settings.py.example and configure your application::

    cp 723e_server/django_723e/settings.py.example 723e_server/django_723e/settings.py

#. `Generate a new SECRET_KEY <http://www.miniwebtool.com/django-secret-key-generator/>`_
#. Set ``DEBUG=False`` if production
#. Run Django Auth migration: ``python manage.py migrate auth``
#. Run Django 723e migration: ``python manage.py migrate`
#. Then run the server: ``python manage.py runserver``


Running the client
==================

In order to run the client, you just need to install the dependencies::

    npm install
    bower install

Then build the CSS files::

    grunt less

Then serve the cient::

    grunt serve-dev
{'fraction_non_alphanumeric': 0.13685789276340457, 'fraction_numerical': 0.014248218972628422, 'mean_word_length': 3.6079447322970637, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, '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': '5275413', 'n_tokens_mistral': 831, 'n_tokens_neox': 739, 'n_words': 306}