<commit_before><commit_msg>Post gen hook to generate dev .env file.<commit_after>#!/usr/bin/env python

from uuid import uuid4

print 'Generating development .env file'

variables = {
    'DEBUG': 'True',
    'ALLOWED_HOSTS': 'localhost, 127.0.0.1',
    'SECRET_KEY': str(uuid4()),
    }

with open('.env', 'w') as environment:
    for key, value in variables.items():
        environment.write('{key}={value}\n'.format(key=key, value=value))
{'fraction_non_alphanumeric': 0.167420814479638, 'fraction_numerical': 0.01809954751131222, 'mean_word_length': 4.091954022988506, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '4479623', 'n_tokens_mistral': 153, 'n_tokens_neox': 150, 'n_words': 38}