<commit_before># -*- coding: utf-8 -*-
from pyramid.events import NewRequest

from gengine.app.permissions import yield_all_perms
from gengine.base.context import reset_context
from gengine.base.errors import APIError
from gengine.base.settings import set_settings
from gengine.base.util import dt_now

__version__ = '0.3.0'

import datetime

import os
from pyramid.config import Configurator
from pyramid.renderers import JSON
from pyramid.settings import asbool
from sqlalchemy import engine_from_config, create_engine

from gengine.wsgiutil import HTTPSProxied, init_reverse_proxy

def main(global_config, **settings):
    """ This function returns a Pyramid WSGI application.
    """
    
    durl = os.environ.get("DATABASE_URL") #heroku
    if durl:
        settings['sqlalchemy.url']=durl
        
    murl = os.environ.get("MEMCACHED_URL") #heroku
    if murl:
        settings['urlcache_url']=murl

    set_settings(settings)

    if os.environ.get("DATABASE_URL",None):
        engine = create_engine(os.environ["DATABASE_URL"], connect_args={"options": "-c timezone=utc"})<commit_msg>increase version<commit_after># -*- coding: utf-8 -*-
from pyramid.events import NewRequest

from gengine.app.permissions import yield_all_perms
from gengine.base.context import reset_context
from gengine.base.errors import APIError
from gengine.base.settings import set_settings
from gengine.base.util import dt_now

__version__ = '0.4.0'

import datetime

import os
from pyramid.config import Configurator
from pyramid.renderers import JSON
from pyramid.settings import asbool
from sqlalchemy import engine_from_config, create_engine

from gengine.wsgiutil import HTTPSProxied, init_reverse_proxy

def main(global_config, **settings):
    """ This function returns a Pyramid WSGI application.
    """
    
    durl = os.environ.get("DATABASE_URL") #heroku
    if durl:
        settings['sqlalchemy.url']=durl
        
    murl = os.environ.get("MEMCACHED_URL") #heroku
    if murl:
        settings['urlcache_url']=murl

    set_settings(settings)

    if os.environ.get("DATABASE_URL",None):
        engine = create_engine(os.environ["DATABASE_URL"], connect_args={"options": "-c timezone=utc"})
{'fraction_non_alphanumeric': 0.09575923392612859, 'fraction_numerical': 0.00364797081623347, 'mean_word_length': 4.403940886699507, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, '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': '5068200', 'n_tokens_mistral': 712, 'n_tokens_neox': 700, 'n_words': 170}