<commit_before># -*- coding: utf-8 -*-
import collections
from datetime import datetime
import time

from flask import (Flask, render_template, abort, redirect, url_for, flash,
                   request)
from flask.ext.wtf import Form, validators, RecaptchaField
from wtforms import (TextField, PasswordField, IntegerField,
                     BooleanField)
from werkzeug.useragents import UserAgent

from chrso import url


class ShrinkForm(Form):
    url = TextField(validators=[validators.URL()])
    custom = TextField(validators=[validators.Length(max=16)])
    burn = BooleanField()
    statistics = BooleanField()
class ShrinkCaptcha(ShrinkForm):
    captcha = RecaptchaField()

app = Flask(__name__)
app.jinja_env.globals.update({
    "chr_header": lambda: app.config.get("CHR_HEADER", "chr"),
    "chr_sub_header": lambda: app.config.get("CHR_SUB_HEADER", "simple url shortening"),<commit_msg>This causes an issue in production but not development - how irritating.<commit_after># -*- coding: utf-8 -*-
import collections
from datetime import datetime
import time

from flask import (Flask, render_template, abort, redirect, url_for, flash,
                   request)
from flask.ext.wtf import Form, RecaptchaField
from wtforms import (TextField, PasswordField, IntegerField,
                     BooleanField, validators)
from werkzeug.useragents import UserAgent

from chrso import url


class ShrinkForm(Form):
    url = TextField(validators=[validators.URL()])
    custom = TextField(validators=[validators.Length(max=16)])
    burn = BooleanField()
    statistics = BooleanField()
class ShrinkCaptcha(ShrinkForm):
    captcha = RecaptchaField()

app = Flask(__name__)
app.jinja_env.globals.update({
    "chr_header": lambda: app.config.get("CHR_HEADER", "chr"),
    "chr_sub_header": lambda: app.config.get("CHR_SUB_HEADER", "simple url shortening"),
{'fraction_non_alphanumeric': 0.10819496518478842, 'fraction_numerical': 0.0032137118371719335, 'mean_word_length': 4.398843930635838, 'pattern_counts': {'":': 4, '<': 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': '1144061', 'n_tokens_mistral': 567, 'n_tokens_neox': 548, 'n_words': 147}