<s> """<STR_LIT>""" <EOL> from flask import Flask <EOL> from flaskext . redis import Redis <EOL> from jinja2 import Markup <EOL> from urllib import quote <EOL> from werkzeug . routing import BaseConverter <EOL> import logging <EOL> try : <EOL> VERSION = __import__ ( '<STR_LIT>' ) . get_distribution ( '<STR_LIT>' ) . version <EOL> except Exception , e : <EOL> VERSION = '<STR_LIT>' <EOL> class UUIDConverter ( BaseConverter ) : <EOL> regex = '<STR_LIT>' <EOL> app = Flask ( __name__ ) <EOL> app . config . from_object ( '<STR_LIT>' ) <EOL> def configure_logging ( app ) : <EOL> handler = logging . StreamHandler ( ) <EOL> handler . setLevel ( getattr ( logging , app . config [ '<STR_LIT>' ] . upper ( ) ) ) <EOL> root = logging . getLogger ( ) <EOL> root . setLevel ( logging . WARNING ) <EOL> root . addHandler ( handler ) <EOL> app . logger . addHandler ( handler ) <EOL> configure_logging ( app ) <EOL> app . url_map . converters [ '<STR_LIT>' ] = UUIDConverter <EOL> redis = Redis ( app ) <EOL> app . logger . info ( "<STR_LIT>" % ( app . config [ '<STR_LIT>' ] , app . config [ '<STR_LIT>' ] ) ) <EOL> app . jinja_env . filters [ '<STR_LIT>' ] = quote <EOL> def linebreaks ( value ) : <EOL> return Markup ( value . replace ( '<STR_LIT:\n>' , '<STR_LIT>' ) ) <EOL> app . jinja_env . filters [ '<STR_LIT>' ] = linebreaks <EOL> import gitboard . views </s>
