<commit_before># -*- coding: utf-8 -*-
from flask import Blueprint, render_template
from fedora_college.core.models import *  # noqa
bundle = Blueprint('home', __name__, template_folder='templates')


@bundle.route('/', methods=['GET', 'POST'])
@bundle.route('/index/', methods=['GET', 'POST'])
@bundle.route('/home/', methods=['GET', 'POST'])
def index():
    posts = Content.query. \
        filter_by(type_content="blog").all()

    screen = Content.query. \
        filter_by(type_content="lecture").all()

    return render_template('home/index.html',
                           title='Home',
                           content="Home page",
                           screen=screen,
                           posts=posts)


@bundle.route('/about', methods=['GET', 'POST'])
@bundle.route('/about/', methods=['GET', 'POST'])
def about():
    return render_template('home/index.html',
                           title='About',
                           content='About Us')


@bundle.route('/feedback', methods=['GET', 'POST'])
@bundle.route('/feedback/', methods=['GET', 'POST'])
def feedback():
    return render_template('home/index.html',
                           title='Feedback',
                           content='Feedback')

@bundle.route('/<slug>/', methods=['GET', 'POST'])
@bundle.route('/<slug>', methods=['GET', 'POST'])
def blog(slug=None):
    pos =[]
    posts = Content.query.filter_by(slug=slug,type_content="lecture").first_or_404()
    pos.append(posts)
    return render_template('home/content.html',
                           title='Lecture',
                           content=pos)<commit_msg>pep8 errors resolved- travis build failed<commit_after># -*- coding: utf-8 -*-
from flask import Blueprint, render_template
from fedora_college.core.models import *  # noqa
bundle = Blueprint('home', __name__, template_folder='templates')


@bundle.route('/', methods=['GET', 'POST'])
@bundle.route('/index/', methods=['GET', 'POST'])
@bundle.route('/home/', methods=['GET', 'POST'])
def index():
    posts = Content.query. \
        filter_by(type_content="blog").all()

    screen = Content.query. \
        filter_by(type_content="lecture").all()

    return render_template('home/index.html',
                           title='Home',
                           content="Home page",
                           screen=screen,
                           posts=posts)


@bundle.route('/about', methods=['GET', 'POST'])
@bundle.route('/about/', methods=['GET', 'POST'])
def about():
    return render_template('home/index.html',
                           title='About',
                           content='About Us')


@bundle.route('/feedback', methods=['GET', 'POST'])
@bundle.route('/feedback/', methods=['GET', 'POST'])
def feedback():
    return render_template('home/index.html',
                           title='Feedback',
                           content='Feedback')


@bundle.route('/<slug>/', methods=['GET', 'POST'])
@bundle.route('/<slug>', methods=['GET', 'POST'])
def blog(slug=None):
    pos = []
    posts = Content.query.filter_by(
        slug=slug, type_content="lecture").first_or_404()
    pos.append(posts)
    return render_template('home/content.html',
                           title='Lecture',
                           content=pos)
{'fraction_non_alphanumeric': 0.1792452830188679, 'fraction_numerical': 0.002738892270237371, 'mean_word_length': 2.406217616580311, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '957159', 'n_tokens_mistral': 936, 'n_tokens_neox': 924, 'n_words': 168}