<commit_before>import cgi
import re
import string
import random
from flask import Flask, render_template, abort, url_for, request, flash, session
from flaskext.markdown import Markdown
#from flask.ext.heroku import Heroku
#from flask.ext.login import LoginManager
#import os
import post
import pagination


app = Flask(__name__)
app.config.from_object('config')
Markdown(app)
#heroku = Heroku(app)
#login_manager = LoginManager(app)


@app.route('/', defaults={'page': 1})
@app.route('/page/<int:page>')
def index(page):
    skip = (page - 1) * app.config['PER_PAGE']
    posts = postClass.get_posts(app.config['PER_PAGE'], skip)
    count = postClass.get_total_count()
    if not posts:
        abort(404)
    pag = pagination.Pagination(page, app.config['PER_PAGE'], count)
    return render_template('index.html', posts=posts, pagination=pag, meta_title='Blog')<commit_msg>no message<commit_after>import cgi
import re
import string
import random
from flask import Flask, render_template, abort, url_for, request, flash, session
from flaskext.markdown import Markdown
#from flask.ext.heroku import Heroku
#from flask.ext.login import LoginManager
#import os
import post
import pagination


app = Flask(__name__)
Markdown(app)
app.config.from_object('config')
#heroku = Heroku(app)
#login_manager = LoginManager(app)


@app.route('/', defaults={'page': 1})
@app.route('/page/<int:page>')
def index(page):
    skip = (page - 1) * app.config['PER_PAGE']
    posts = postClass.get_posts(app.config['PER_PAGE'], skip)
    count = postClass.get_total_count()
    if not posts:
        abort(404)
    pag = pagination.Pagination(page, app.config['PER_PAGE'], count)
    return render_template('index.html', posts=posts, pagination=pag, meta_title='Blog')
{'fraction_non_alphanumeric': 0.13150371640937678, 'fraction_numerical': 0.005717552887364208, 'mean_word_length': 5.386861313868613, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3530431', 'n_tokens_mistral': 584, 'n_tokens_neox': 567, 'n_words': 144}