<commit_before># coding: utf-8

import sys

from authomatic import Authomatic
from authomatic.adapters import WerkzeugAdapter
from findaconf import app, db, lm
from findaconf.models import Continent, Country, User, Year
from flask import (
    Blueprint, flash, g, redirect, render_template, request, make_response,
    url_for
)
from flask.ext.login import current_user, login_user, logout_user
from htmlmin.minify import html_minify


reload(sys)
sys.setdefaultencoding('utf-8')

site_blueprint = Blueprint(
    'site',
    __name__,
    template_folder='templates',
    static_folder='static'
)


@site_blueprint.route('/')
def index():
    flash({'type': 'success', 'text': 'Buongiorno, Principessa!'})
    return html_minify(render_template('home.slim'))


@site_blueprint.route('/find')
def results():

    # parse vars
    url_vars = ['query', 'month', 'year', 'region', 'location']
    req_vars = [request.args.get(v) for v in url_vars]
    query = dict(zip(url_vars, req_vars))

    return html_minify(render_template('results.slim', **query))


@site_blueprint.route('/login', methods=['GET'])
def login_options():
    providers = app.config['OAUTH_CREDENDIALS'].keys()<commit_msg>Remove line added only for dev/tests<commit_after># coding: utf-8

import sys

from authomatic import Authomatic
from authomatic.adapters import WerkzeugAdapter
from findaconf import app, db, lm
from findaconf.models import Continent, Country, User, Year
from flask import (
    Blueprint, flash, g, redirect, render_template, request, make_response,
    url_for
)
from flask.ext.login import current_user, login_user, logout_user
from htmlmin.minify import html_minify


reload(sys)
sys.setdefaultencoding('utf-8')

site_blueprint = Blueprint(
    'site',
    __name__,
    template_folder='templates',
    static_folder='static'
)


@site_blueprint.route('/')
def index():
    return html_minify(render_template('home.slim'))


@site_blueprint.route('/find')
def results():

    # parse vars
    url_vars = ['query', 'month', 'year', 'region', 'location']
    req_vars = [request.args.get(v) for v in url_vars]
    query = dict(zip(url_vars, req_vars))

    return html_minify(render_template('results.slim', **query))


@site_blueprint.route('/login', methods=['GET'])
def login_options():
    providers = app.config['OAUTH_CREDENDIALS'].keys()
{'fraction_non_alphanumeric': 0.12917023096663816, 'fraction_numerical': 0.001710863986313088, 'mean_word_length': 5.155263157894737, 'pattern_counts': {'":': 0, '<': 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': '7467234', 'n_tokens_mistral': 776, 'n_tokens_neox': 755, 'n_words': 187}