<commit_before>from django.conf import settings
from django.core.management.commands.runserver import Command as BaseCommand
from django.core.management.base import CommandError, handle_default_options
from optparse import make_option

def print_settings():
    print("Settings django...")
    d = {}
    for attr in dir(settings):
            if not attr.startswith('__'):
                value = getattr(settings, attr)
                d[attr] = value
    keys = list(d.keys())
    keys.sort()
    for k in keys:
        print('%s = %r' % (k, d[k]))
    print("...OK\n")


class Command(BaseCommand):
    option_list = BaseCommand.option_list + (
        make_option(
            '--config', action='store_true', dest='use_config', default=False,
            help='Show your settings on standard output.'),
    )

    def inner_run(self, *args, **options):
        use_config = options.get('use_config')
        if use_config:
          print_settings()
        super(Command, self).inner_run(*args, **options)

<commit_msg>Remove deprecated options<commit_after>from django.conf import settings
from django.core.management.commands.runserver import Command as BaseCommand
from optparse import make_option

def print_settings():
    print("Settings django...")
    d = {}
    for attr in dir(settings):
            if not attr.startswith('__'):
                value = getattr(settings, attr)
                d[attr] = value
    keys = list(d.keys())
    keys.sort()
    for k in keys:
        print('%s = %r' % (k, d[k]))
    print("...OK\n")


class Command(BaseCommand):

    def add_arguments(self, parser):
        parser.add_argument('--config', action='store_true', dest='use_config', default=False,
            help='Show your settings on standard output.')
        super(Command, self).add_arguments(parser)

    def inner_run(self, *args, **options):
        use_config = options.get('use_config')
        if use_config:
          print_settings()
        super(Command, self).inner_run(*args, **options)


{'fraction_non_alphanumeric': 0.12834489593657086, 'fraction_numerical': 0.0, 'mean_word_length': 2.7738317757009345, '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': '2365708', 'n_tokens_mistral': 588, 'n_tokens_neox': 576, 'n_words': 149}