<commit_before>from django.core.management.base import BaseCommand

from dynamic_fixtures.fixtures.runner import LoadFixtureRunner


class Command(BaseCommand):

    help_text = 'Load fixtures while keeping dependencies in mind.'
    args = '[app_label] [fixture_name]'

    def add_arguments(self, parser):
        parser.add_argument('app_label', default=None, nargs='?', type=str)
        parser.add_argument('fixture_name', default=None, nargs='?', type=str)

    def handle(self, *args, **options):
        runner = LoadFixtureRunner()

        if len(args) == 0:
            app_label = options.get('app_label')
            fixture_name = options.get('fixture_name')
        else:
            app_label, fixture_name = args
<commit_msg>Fixed tests<commit_after>from django.core.management.base import BaseCommand

from dynamic_fixtures.fixtures.runner import LoadFixtureRunner


class Command(BaseCommand):

    help_text = 'Load fixtures while keeping dependencies in mind.'
    args = '[app_label] [fixture_name]'

    def add_arguments(self, parser):
        parser.add_argument('app_label', default=None, nargs='?', type=str)
        parser.add_argument('fixture_name', default=None, nargs='?', type=str)

    def handle(self, *args, **options):
        runner = LoadFixtureRunner()

        if len(args) == 1:
            app_label, = args
        elif len(args) == 2:
            app_label, fixture_name = args
        else:
            app_label = options.get('app_label')
            fixture_name = options.get('fixture_name')

{'fraction_non_alphanumeric': 0.11486048020765736, 'fraction_numerical': 0.001946787800129786, 'mean_word_length': 3.2952646239554317, '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': '981434', 'n_tokens_mistral': 463, 'n_tokens_neox': 447, 'n_words': 104}