<commit_before>RefStack Quickstart
===================

You can use docker for `one-click setup <run_in_docker.rst>`__ or follow
step-by-step instructions below.

Install API dependencies (on ubuntu 14.x)..
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

-  ``sudo apt-get install git python-dev libssl-dev python-setuptools``

-  ``sudo apt-get install mysql-server python-mysqldb``

-  ``sudo easy_install -U pip``

-  ``sudo easy_install -U virtualenv``

Install RefStack UI dependencies
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

-  ``curl -sL https://deb.nodesource.com/setup | sudo bash -``

-  ``sudo apt-get install nodejs``

Setup the RefStack database
^^^^^^^^^^^^^^^^^^^^^^^^^^^

-  Log into MySQL: ``mysql -u root -p``

-  After authentication, create the database:

``CREATE DATABASE refstack;``

-  Create a refstack user:

``CREATE USER 'refstack'@'localhost' IDENTIFIED BY '<your password>';``

or using hash value for your password

``CREATE USER 'refstack'@'localhost'    IDENTIFIED BY PASSWORD '<<PASSWORD>';``
<commit_msg>Update documentation to install Node.js v4<commit_after>RefStack Quickstart
===================

You can use docker for `one-click setup <run_in_docker.rst>`__ or follow
step-by-step instructions below.

Install API dependencies (on ubuntu 14.x)..
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

-  ``sudo apt-get install git python-dev libssl-dev python-setuptools``

-  ``sudo apt-get install mysql-server python-mysqldb``

-  ``sudo easy_install -U pip``

-  ``sudo easy_install -U virtualenv``

Install RefStack UI dependencies
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

-  ``curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -``

-  ``sudo apt-get install nodejs``

Setup the RefStack database
^^^^^^^^^^^^^^^^^^^^^^^^^^^

-  Log into MySQL: ``mysql -u root -p``

-  After authentication, create the database:

``CREATE DATABASE refstack;``

-  Create a refstack user:

``CREATE USER 'refstack'@'localhost' IDENTIFIED BY '<your password>';``

or using hash value for your password

``CREATE USER 'refstack'@'localhost'    IDENTIFIED BY PASSWORD '<<PASSWORD>';``

{'fraction_non_alphanumeric': 0.22455805064500717, 'fraction_numerical': 0.002866698518872432, 'mean_word_length': 4.752747252747253, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '5488615', 'n_tokens_mistral': 701, 'n_tokens_neox': 658, 'n_words': 201}