<commit_before># -*- coding: utf-8 -*-
from flask import Flask, abort, request, render_template
from lib.z3l import Z3L

app = Flask(__name__, instance_relative_config=True)
app.config.from_pyfile('store.cfg', silent=True)


def get_params(params):
    default_params = {'bg': 'F5F5F5', 'ps': 9, 'pg': 1}
    for k,v in request.args.items():
        default_params[k] = v
    default_params.update(params)
    return default_params


def get_result(params):<commit_msg>removed instance and config from scmpyth<commit_after># -*- coding: utf-8 -*-
from flask import Flask, abort, request, render_template
from lib.z3l import Z3L

app = Flask(__name__, instance_relative_config=True)
app.config.from_pyfile('store.cfg', silent=True)


def get_params(params):
    default_params = {'bg': 'F5F5F5', 'ps': 9, 'pg': 1}
#    for k,v in request.args.items():
#        default_params[k] = v
    print default_params
    default_params.update(request.args.items())
    print default_params
    default_params.update(params)
    print default_params
    return default_params


def get_result(params):
{'fraction_non_alphanumeric': 0.12568807339449542, 'fraction_numerical': 0.014678899082568808, 'mean_word_length': 4.455, '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': '4948791', 'n_tokens_mistral': 373, 'n_tokens_neox': 363, 'n_words': 89}