<commit_before>#!/usr/bin/env python3

import flask
import os
import sendgrid

import orton_restitution

app = flask.Flask(__name__)
app.secret_key = '<KEY>'


@app.route('/')
def index():
	"""Index page."""
	return flask.render_template('index.html')

<commit_msg>Load Flask secret key from environment variable<commit_after>#!/usr/bin/env python3

import flask
import os
import sendgrid

import orton_restitution

app = flask.Flask(__name__)
app.secret_key = os.getenv('SECRET_KEY')


@app.route('/')
def index():
	"""Index page."""
	return flask.render_template('index.html')


{'fraction_non_alphanumeric': 0.14310344827586208, 'fraction_numerical': 0.0034482758620689655, 'mean_word_length': 5.455555555555556, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1380992', 'n_tokens_mistral': 208, 'n_tokens_neox': 194, 'n_words': 48}