<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Flask application default config:
# http://flask.pocoo.org/docs/config/#configuring-from-files
# https://github.com/mbr/flask-appconfig


project_name = u'Ninhursag'


class Default(object):
    APP_NAME = project_name

    DEBUG = False
    TESTING = False

    # Servers and URLs
    SERVER_NAME = 'localhost:5000'

    # Authentication etc
    # To generate: import os; os.urandom(24)
    SECRET_KEY = 'some-secret-key'
    CSRF_ENABLED = True

    # API
    API_SERVER = SERVER_NAME
    API_TOKEN = '<PASSWORD>'

    # Flat pages
    FLATPAGES_ROOT = 'pages/flat'
    FLATPAGES_EXTENSION = '.md'
    FLATPAGES_MARKDOWN_EXTENSIONS = []

    DATA_DIR = 'static/data'


class Dev(Default):
    APP_NAME = project_name + ' (dev)'
    DEBUG = True


class Testing(Default):
    TESTING = True
    CSRF_ENABLED = False


class Production(Default):
    SERVER_NAME = '0.0.0.0:5000'<commit_msg>Try setting the SERVER_NAME to ninhursag.herokuapp.com.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Flask application default config:
# http://flask.pocoo.org/docs/config/#configuring-from-files
# https://github.com/mbr/flask-appconfig


project_name = u'Ninhursag'


class Default(object):
    APP_NAME = project_name

    DEBUG = False
    TESTING = False

    # Servers and URLs
    SERVER_NAME = 'localhost:5000'

    # Authentication etc
    # To generate: import os; os.urandom(24)
    SECRET_KEY = 'some-secret-key'
    CSRF_ENABLED = True

    # API
    API_SERVER = SERVER_NAME
    API_TOKEN = '<PASSWORD>'

    # Flat pages
    FLATPAGES_ROOT = 'pages/flat'
    FLATPAGES_EXTENSION = '.md'
    FLATPAGES_MARKDOWN_EXTENSIONS = []

    DATA_DIR = 'static/data'


class Dev(Default):
    APP_NAME = project_name + ' (dev)'
    DEBUG = True


class Testing(Default):
    TESTING = True
    CSRF_ENABLED = False


class Production(Default):
    SERVER_NAME = 'ninhursag.herokuapp.com'
{'fraction_non_alphanumeric': 0.11767702496179318, 'fraction_numerical': 0.011207335710646969, 'mean_word_length': 3.1087866108786613, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '5582086', 'n_tokens_mistral': 745, 'n_tokens_neox': 688, 'n_words': 138}