<commit_before>tada
====

That's All Data. Akshara's data entry/management system.

### Code

    git clone <EMAIL>:klpdotorg/tada.git

### Install requirements

    pip install -r requirements/base.txt

### Create a Local settings file

    touch tada/local_settings.py

### Setup your database

Install Postgres 9.3 or above. Have the following configuration in your local_settings.py file.

    DATABASES = {
        'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'your_db_name',
        'USER': 'your_db_username',
        'PASSWORD': '<PASSWORD>',
        'HOST': '',
        'PORT': '',
        }
    }

Run:

    python manage.py migrate
<commit_msg>Added virtualenv setup<commit_after>tada
====

That's All Data. Akshara's data entry/management system.

### Code

    git clone <EMAIL>:klpdotorg/tada.git

### Setup virualenv using virtualenvwrapper

    pip install virtualenvwrapper
    
Add these lines to your .bashrc and source it

    # add virtualenv wrappers
    export WORKON_HOME=$HOME/.virtualenvs
    export PROJECT_HOME=$HOME/Devel
    source /usr/local/bin/virtualenvwrapper.sh

Finally source .bashrc using the following command
    
    source ~/.bashrc

Create and activate the virtualenv

    mkvirtualenv tada
    workon tada
   
### Install requirements

    pip install -r requirements/base.txt

### Create a Local settings file

    touch tada/local_settings.py

### Setup your database

Install Postgres 9.3 or above. Have the following configuration in your local_settings.py file.

    DATABASES = {
        'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'your_db_name',
        'USER': 'your_db_username',
        'PASSWORD': '<PASSWORD>',
        'HOST': '',
        'PORT': '',
        }
    }

Run:

    python manage.py migrate

{'fraction_non_alphanumeric': 0.10756756756756757, 'fraction_numerical': 0.003243243243243243, 'mean_word_length': 2.816494845360825, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '6008783', 'n_tokens_mistral': 588, 'n_tokens_neox': 563, 'n_words': 159}