<commit_before>import os
import pymongo
from flask import render_template, send_from_directory
from .app import app, mongo

@app.route("/")
def index():
    res = mongo.db.posts.find().sort("time", pymongo.DESCENDING)
    pages = res.count() // 10 + 1
    next = 2 if pages > 1 else None
    print(res[0]['author'])
    return render_template("index.html", posts=res[:10], next=next, pages=pages, page=1)

@app.route("/page/<int:page>/")
def post_page(page):
    res = mongo.db.posts.find().sort("time", pymongo.DESCENDING)
    pages = res.count() // 10 + 1
    next = page + 1 if pages > page else None
    previous = page - 1 if page > 1 else None<commit_msg>remove debug print code<commit_after>import os
import pymongo
from flask import render_template, send_from_directory
from .app import app, mongo

@app.route("/")
def index():
    res = mongo.db.posts.find().sort("time", pymongo.DESCENDING)
    pages = res.count() // 10 + 1
    next = 2 if pages > 1 else None
    return render_template("index.html", posts=res[:10], next=next, pages=pages, page=1)

@app.route("/page/<int:page>/")
def post_page(page):
    res = mongo.db.posts.find().sort("time", pymongo.DESCENDING)
    pages = res.count() // 10 + 1
    next = page + 1 if pages > page else None
    previous = page - 1 if page > 1 else None
{'fraction_non_alphanumeric': 0.15184049079754602, 'fraction_numerical': 0.02223926380368098, 'mean_word_length': 3.6113074204946995, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1720527', 'n_tokens_mistral': 464, 'n_tokens_neox': 437, 'n_words': 129}