<commit_before>
# Requirements

 - Python 3.4
 - Django 1.8.5
 - django-modeltranslation (http://django-modeltranslation.readthedocs.org)
 - Django REST framework (http://www.django-rest-framework.org/)
 - munigeo (https://github.com/City-of-Helsinki/munigeo)
 - django-reversion (http://django-reversion.readthedocs.org)

# Install

## Prepare virtualenv

     virtualenv -p /usr/bin/python3 ~/.virtualenvs/
     workon kerrokantasi

## Install required packages

Install all required packages with pip command:

     pip install -r requirements.txt
     
## Compile translation .mo files (if i18n is required)

     python manage.py i18n:compile

# Migration

1. Import the dump of a Kuulemma database into your PostgreSQL instance
   (the default expected database name is `kerrokantasi_old`).<commit_msg>Update the required Django version to match with requirements.txt<commit_after>
# Requirements

 - Python 3.4
 - Django 1.9
 - django-modeltranslation (http://django-modeltranslation.readthedocs.org)
 - Django REST framework (http://www.django-rest-framework.org/)
 - munigeo (https://github.com/City-of-Helsinki/munigeo)
 - django-reversion (http://django-reversion.readthedocs.org)

# Install

## Prepare virtualenv

     virtualenv -p /usr/bin/python3 ~/.virtualenvs/
     workon kerrokantasi

## Install required packages

Install all required packages with pip command:

     pip install -r requirements.txt

## Compile translation .mo files (if i18n is required)

     python manage.py i18n:compile

# Migration

1. Import the dump of a Kuulemma database into your PostgreSQL instance
   (the default expected database name is `kerrokantasi_old`).
{'fraction_non_alphanumeric': 0.0975316074653823, 'fraction_numerical': 0.012642986152919929, 'mean_word_length': 3.721590909090909, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1608590', 'n_tokens_mistral': 529, 'n_tokens_neox': 497, 'n_words': 147}