<commit_before># -*- coding: utf-8 -*-

from app import app
from app.models import WebComponent


@app.route("/")
def hello():
    num_components = WebComponent.query.all().count()
    return "Number of records: %d" % num_components<commit_msg>change counting method for now<commit_after># -*- coding: utf-8 -*-

from app import app
from app.models import WebComponent


@app.route("/")
def hello():
    num_components = len(WebComponent.query.all())
    return "Number of records: %d" % num_components
{'fraction_non_alphanumeric': 0.14143426294820718, 'fraction_numerical': 0.00398406374501992, 'mean_word_length': 4.13265306122449, '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': '2792562', 'n_tokens_mistral': 153, 'n_tokens_neox': 148, 'n_words': 47}