<commit_before># -*- coding: utf-8 -*-
# Created by <EMAIL> on 17/6/20
from flask_redis import FlaskRedis
from kael.work_frame import WORK_FRAME
from common import get_reg_blueprint, RegexConverter
from monkey import patch_erro_handler, patch_url_convert
from flask import Flask

APP_NAME = "web_admin"
app = Flask(APP_NAME, instance_relative_config=True)
app.config.from_object('{0}.settings'.format(__name__))
app.config.from_pyfile('settings.py')

kael_client = lambda name: WORK_FRAME(name=name, app=app)
redis = FlaskRedis(app)
patch_erro_handler(app)
patch_url_convert("regex", RegexConverter, app)

for bl in get_reg_blueprint(['tools', 'common']):
    app.register_blueprint(blueprint=bl)<commit_msg>silent import install setting<commit_after># -*- coding: utf-8 -*-
# Created by <EMAIL> on 17/6/20
from flask_redis import FlaskRedis
from kael.work_frame import WORK_FRAME
from common import get_reg_blueprint, RegexConverter
from monkey import patch_erro_handler, patch_url_convert
from flask import Flask

APP_NAME = "web_admin"
app = Flask(APP_NAME, instance_relative_config=True)
app.config.from_object('{0}.settings'.format(__name__))
app.config.from_pyfile('settings.py', silent=True)

kael_client = lambda name: WORK_FRAME(name=name, app=app)
redis = FlaskRedis(app)
patch_erro_handler(app)
patch_url_convert("regex", RegexConverter, app)

for bl in get_reg_blueprint(['tools', 'common']):
    app.register_blueprint(blueprint=bl)
{'fraction_non_alphanumeric': 0.11072664359861592, 'fraction_numerical': 0.009688581314878892, 'mean_word_length': 7.456140350877193, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6113715', 'n_tokens_mistral': 507, 'n_tokens_neox': 489, 'n_words': 111}