<commit_before># -*- coding: utf-8 -*-
"""
    Pull Effect
    ~~~~~~

    An information consolidation machine or something.
"""

from flask import Flask
from flask import render_template
from flask_cas import CAS
from pulleffect.lib.google.gcal import gcal
from pulleffect.lib.google.gplus import gplus
# from pulleffect.lib.notes.notes import notes
from pulleffect.lib.service.service import service
# from pulleffect.lib.timeclock.timeclock import timeclock
from pulleffect.lib.messages.messages import messages
from pulleffect.middleware.reverse_proxy_fix import ReverseProxied
from pulleffect.lib.utilities import cache
from pulleffect.lib.utilities import signin_required
from werkzeug.contrib.fixers import ProxyFix
import pulleffect.config.env as env

app = Flask(__name__)

# Init CAS integration
app.config['CAS_SERVER'] = 'sso.wesleyan.edu/serviceValidate'
app.config['CAS_AFTER_LOGIN'] = 'index'
CAS(app)

# Init function caching
cache.init_app(app, config={'CACHE_TYPE': 'simple'})

# Init blueprints
app.register_blueprint(gcal, url_prefix='/gcal')
app.register_blueprint(gplus, url_prefix='/gplus')
app.register_blueprint(messages, url_prefix='/messages')
# app.register_blueprint(notes, url_prefix='/notes')
app.register_blueprint(service, url_prefix='/service')
# app.register_blueprint(timeclock, url_prefix='/timeclock')

# This is necessary until we get a vagrant box up and running
if not env.is_dev:
    from pulleffect.lib.timeclock.timeclock import timeclock
    app.register_blueprint(timeclock, url_prefix='/timeclock')


# Load default config and override config from an environment variable
app.config.update(dict(
    DEBUG=True,
    SECRET_KEY='development key'
))


@app.route('/')
@signin_required
def index():
    return render_template('index.html')<commit_msg>tried removing signin_required<commit_after># -*- coding: utf-8 -*-
"""
    Pull Effect
    ~~~~~~

    An information consolidation machine or something.
"""

from flask import Flask
from flask import render_template
from flask_cas import CAS
from pulleffect.lib.google.gcal import gcal
from pulleffect.lib.google.gplus import gplus
# from pulleffect.lib.notes.notes import notes
from pulleffect.lib.service.service import service
# from pulleffect.lib.timeclock.timeclock import timeclock
from pulleffect.lib.messages.messages import messages
from pulleffect.middleware.reverse_proxy_fix import ReverseProxied
from pulleffect.lib.utilities import cache
from pulleffect.lib.utilities import signin_required
from werkzeug.contrib.fixers import ProxyFix
import pulleffect.config.env as env

app = Flask(__name__)

# Init CAS integration
app.config['CAS_SERVER'] = 'sso.wesleyan.edu/serviceValidate'
app.config['CAS_AFTER_LOGIN'] = 'index'
CAS(app)

# Init function caching
cache.init_app(app, config={'CACHE_TYPE': 'simple'})

# Init blueprints
app.register_blueprint(gcal, url_prefix='/gcal')
app.register_blueprint(gplus, url_prefix='/gplus')
app.register_blueprint(messages, url_prefix='/messages')
# app.register_blueprint(notes, url_prefix='/notes')
app.register_blueprint(service, url_prefix='/service')
# app.register_blueprint(timeclock, url_prefix='/timeclock')

# This is necessary until we get a vagrant box up and running
if not env.is_dev:
    from pulleffect.lib.timeclock.timeclock import timeclock
    app.register_blueprint(timeclock, url_prefix='/timeclock')


# Load default config and override config from an environment variable
app.config.update(dict(
    DEBUG=True,
    SECRET_KEY='development key'
))


@app.route('/')
# @signin_required
def index():
    return render_template('index.html')
{'fraction_non_alphanumeric': 0.10329548601495431, 'fraction_numerical': 0.0005538631957906397, 'mean_word_length': 5.866920152091255, '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': '2449357', 'n_tokens_mistral': 1138, 'n_tokens_neox': 1113, 'n_words': 277}