<commit_before>import logging

from django.core.management import call_command
from django.core.management.base import BaseCommand
from statirator.core.utils import find_readers


class Command(BaseCommand):

    help = "Walk the resources, builds the db, and generates the static site"

    def handle(self, *args, **options):

        # make sure we have the db
        call_command('syncdb')
        self.readers = find_readers()
        self.read_resources()

    def read_resources(self):
        """Walk to readers to populate the db"""

        for reader in self.readers:
            logging.info('Reading with %s', reader)
            reader()
<commit_msg>No initial data and interactive in generate -> syncdb<commit_after>import logging

from django.core.management import call_command
from django.core.management.base import BaseCommand
from statirator.core.utils import find_readers


class Command(BaseCommand):

    help = "Walk the resources, builds the db, and generates the static site"

    def handle(self, *args, **options):

        # make sure we have the db
        call_command('syncdb', load_initial_data=False, interactive=False)
        self.readers = find_readers()
        self.read_resources()

    def read_resources(self):
        """Walk to readers to populate the db"""

        for reader in self.readers:
            logging.info('Reading with %s', reader)
            reader()

{'fraction_non_alphanumeric': 0.08628005657708628, 'fraction_numerical': 0.0, 'mean_word_length': 3.113372093023256, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4661', 'n_tokens_mistral': 386, 'n_tokens_neox': 372, 'n_words': 129}