<commit_before>#!/usr/bin/python

import flask
import logging
import stravalib

app = flask.Flask(__name__)
app.config.from_envvar('FIXSTRAVA_CONFIG')

logging.basicConfig(level=logging.INFO)

app.secret_key = SECRET_KEY

@app.route('/')
def homepage():
    if 'access_token' not in flask.session:
        return flask.redirect(flask.url_for('login'))

    client = stravalib.client.Client(access_token=flask.session['access_token'])
    athlete = client.get_athlete()

    return flask.render_template('main.html', athlete=athlete)

@app.route('/login')
def login():<commit_msg>Remove manual setting of secret_key<commit_after>#!/usr/bin/python

import flask
import logging
import stravalib

app = flask.Flask(__name__)
app.config.from_envvar('FIXSTRAVA_CONFIG')

logging.basicConfig(level=logging.INFO)

@app.route('/')
def homepage():
    if 'access_token' not in flask.session:
        return flask.redirect(flask.url_for('login'))

    client = stravalib.client.Client(access_token=flask.session['access_token'])
    athlete = client.get_athlete()

    return flask.render_template('main.html', athlete=athlete)

@app.route('/login')
def login():
{'fraction_non_alphanumeric': 0.1372719374456994, 'fraction_numerical': 0.0, 'mean_word_length': 5.4, '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': '5018720', 'n_tokens_mistral': 396, 'n_tokens_neox': 373, 'n_words': 67}