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

import importlib
import inflection
import os
from cleo import InputOption
from orator import DatabaseManager
from .base_command import BaseCommand
from ...utils import load_module


class SeedCommand(BaseCommand):
    """
    Seed the database with records.

    db:seed
        {--d|database= : The database connection to use.}
        {--p|path= : The path to seeders files.
                     Defaults to <comment>./seeds</comment>.}
    """

    def handle(self):
        """
        Executes the command.
        """
        confirm = self.confirm(
            '<question>Are you sure you want to seed the database?</question> ',
            False
        )
        if not confirm:
            return

        self.resolver.set_default_connection(self.option('database'))

        self._get_seeder().run()<commit_msg>Adding missing option to db:seed command<commit_after># -*- coding: utf-8 -*-

import importlib
import inflection
import os
from cleo import InputOption
from orator import DatabaseManager
from .base_command import BaseCommand
from ...utils import load_module


class SeedCommand(BaseCommand):
    """
    Seed the database with records.

    db:seed
        {--d|database= : The database connection to use.}
        {--p|path= : The path to seeders files.
                     Defaults to <comment>./seeds</comment>.}
        {--seeder=database_seeder : The name of the root seeder.}
    """

    def handle(self):
        """
        Executes the command.
        """
        confirm = self.confirm(
            '<question>Are you sure you want to seed the database?</question> ',
            False
        )
        if not confirm:
            return

        self.resolver.set_default_connection(self.option('database'))

        self._get_seeder().run()
{'fraction_non_alphanumeric': 0.10323997803404723, 'fraction_numerical': 0.001098297638660077, 'mean_word_length': 2.190893169877408, 'pattern_counts': {'":': 0, '<': 11, '<?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': '2217131', 'n_tokens_mistral': 495, 'n_tokens_neox': 479, 'n_words': 153}