<commit_before>from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from django.core.management.commands import loaddata


class Command(loaddata.Command):

    missing_args_message = None

    def add_arguments(self, parser):
        super().add_arguments(parser)
        actions = []
        for action in parser._actions:
            if vars(action)['dest'] != 'args':
                actions.append(action)
        parser._actions = actions

    def handle(self, **options):
        if not settings.INITAL_DATA_PATH:
            raise CommandError('Missing "INITAL_DATA_PATH" configuration')
        super().handle(settings.INITAL_DATA_PATH, **options)<commit_msg>Fixed init data command<commit_after>from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from django.core.management import call_command


class Command(BaseCommand):

    def handle(self, **options):
        if not settings.INITAL_DATA_PATH:
            raise CommandError('Missing "INITAL_DATA_PATH" configuration')
        call_command('loaddata', settings.INITAL_DATA_PATH, stdout=self.stdout, stderr=self.stderr)
{'fraction_non_alphanumeric': 0.09168081494057725, 'fraction_numerical': 0.0, 'mean_word_length': 3.8122448979591836, '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': '5202587', 'n_tokens_mistral': 316, 'n_tokens_neox': 304, 'n_words': 75}