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

d-note is a Python Flask web application that requires a couple of libraries to
be installed. I&#39;ll assume you&#39;re using Debian to install software. First,
install `python-flask` and `python-crypto`:

    # apt-get install python-flask python-crypto

Now make a directory under your web root to clone the Git repository:

    # mkdir /var/www/
    # git clone https://github.com/atoponce/d-note.git /var/www/dnote
    # mkdir /var/www/dnote/data/
    # chown root.www-data /var/www/dnote/data
    # chmod g+w,o= root.www-data /var/www/dnote/data

Configuration
-------------
Run the following from a terminal to setup the configuration file and data
storage directory before launching the application:

    $ python setup.py

This will create a `dconfig.py` which should have salts with random hexadecimal
strings as their values, and should create a `/data` directory to store the
notes.

Apache Setup
------------<commit_msg>clarify which python crypto package to have installed<commit_after>Installation
============

d-note is a Python Flask web application that requires a couple of libraries to
be installed. I&#39;ll assume you&#39;re using Debian to install software. First,
install `python-flask` and `python-crypto`:

    # apt-get install python-flask python-crypto

The correct `python-crypto` package should be coming from
https://www.dlitz.net/software/pycrypto/

Now make a directory under your web root to clone the Git repository:

    # mkdir /var/www/
    # git clone https://github.com/atoponce/d-note.git /var/www/dnote
    # mkdir /var/www/dnote/data/
    # chown root.www-data /var/www/dnote/data
    # chmod g+w,o= root.www-data /var/www/dnote/data

Configuration
-------------
Run the following from a terminal to setup the configuration file and data
storage directory before launching the application:

    $ python setup.py

This will create a `dconfig.py` which should have salts with random hexadecimal
strings as their values, and should create a `/data` directory to store the
notes.

Apache Setup
------------
{'fraction_non_alphanumeric': 0.11244019138755981, 'fraction_numerical': 0.003827751196172249, 'mean_word_length': 3.411392405063291, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 15, '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': '4058950', 'n_tokens_mistral': 614, 'n_tokens_neox': 594, 'n_words': 240}