<commit_before># -*- coding: utf-8 -*-
from flask import Flask, render_template, request, send_from_directory, g
from flask.ext.mobility import Mobility
from flask.ext.mobility.decorators import mobile_template
from flask_httpauth import HTTPBasicAuth
from outgoing_email import EmailUtils
from encryption import f_encrypt
import io, os, sys, re

app = Flask(__name__, static_url_path='')
auth = HTTPBasicAuth()
Mobility(app)
app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024 #sets max size of 16 MB for uploads

users = {}
fileloc = 'login'
with open(fileloc) as i:
     for line in i:
          (key, val) = line.split()
          users[key] = var

@app.route('/') #handles requests for http://margymail.com
def home():
    return render_template('home.html')

@app.route('/upload') #handles requests for http://margymail.com/upload
def newletter():
    return render_template('upload.html')

@app.errorhandler(413) #renders error template for oversized files
def too_big(error):<commit_msg>typo fix<commit_after># -*- coding: utf-8 -*-
from flask import Flask, render_template, request, send_from_directory, g
from flask.ext.mobility import Mobility
from flask.ext.mobility.decorators import mobile_template
from flask_httpauth import HTTPBasicAuth
from outgoing_email import EmailUtils
from encryption import f_encrypt
import io, os, sys, re

app = Flask(__name__, static_url_path='')
auth = HTTPBasicAuth()
Mobility(app)
app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024 #sets max size of 16 MB for uploads

users = {}
fileloc = 'login'
with open(fileloc) as i:
     for line in i:
          (key, val) = line.split()
          users[key] = val

@app.route('/') #handles requests for http://margymail.com
def home():
    return render_template('home.html')

@app.route('/upload') #handles requests for http://margymail.com/upload
def newletter():
    return render_template('upload.html')

@app.errorhandler(413) #renders error template for oversized files
def too_big(error):
{'fraction_non_alphanumeric': 0.11486146095717883, 'fraction_numerical': 0.016120906801007556, 'mean_word_length': 4.7398843930635834, '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': '590094', 'n_tokens_mistral': 657, 'n_tokens_neox': 616, 'n_words': 194}