<commit_before>from sqlalchemy.orm import joinedload

from buildbox.models import Build
from buildbox.web.base_handler import BaseRequestHandler


class BuildListHandler(BaseRequestHandler):
    def get(self):
        with self.db.get_session() as session:
            build_list = list(
                session.query(Build).options(
                    joinedload(Build.project),
                    joinedload(Build.author),
                ).order_by(Build.date_created.desc())
            )[:100]

        context = {
            'build_list': build_list,
        }

        return self.render("build_list.html", **context)
<commit_msg>Dont load initial data in BuildListHandler<commit_after>from buildbox.web.base_handler import BaseRequestHandler


class BuildListHandler(BaseRequestHandler):
    def get(self):
        return self.render("build_list.html")

{'fraction_non_alphanumeric': 0.09027777777777778, 'fraction_numerical': 0.003472222222222222, 'mean_word_length': 2.6808510638297873, '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': '4535531', 'n_tokens_mistral': 238, 'n_tokens_neox': 228, 'n_words': 48}