<commit_before>
from distutils.dir_util import copy_tree
from importlib import import_module
import os
from optparse import make_option
from shutil import move, rmtree
from tempfile import mkdtemp

import django
from django.core.management import CommandError
from django.core.management.commands.startproject import Command as BaseCommand
from django.utils import six
from django.utils.crypto import get_random_string

import mezzanine


class Command(BaseCommand):

    help = BaseCommand.help.replace("Django", "Mezzanine")

    if django.VERSION < (1, 8):
        option_list = BaseCommand.option_list + (make_option(
            "-a", "--alternate", dest="alt", metavar="PACKAGE",
            help="Alternate package to use, containing a project_template"),)

    def add_arguments(self, parser):
        super(Command, self).add_arguments(parser)
        parser.add_argument("-a", "--alternate", dest="alt", metavar="PACKAGE",
            help="Alternate package to use, containing a project_template")

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

        # Overridden to provide a template value for nevercache_key. The
        # method is copied verbatim from startproject.Command."""
        chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
        options['nevercache_key'] = get_random_string(50, chars)

        # Indicate that local_settings.py.template should be rendered
        options['files'] = ['local_settings.py.template']

        super(Command, self).handle(*args, **options)<commit_msg>Remove unnecessary triple-quote in comment<commit_after>
from distutils.dir_util import copy_tree
from importlib import import_module
import os
from optparse import make_option
from shutil import move, rmtree
from tempfile import mkdtemp

import django
from django.core.management import CommandError
from django.core.management.commands.startproject import Command as BaseCommand
from django.utils import six
from django.utils.crypto import get_random_string

import mezzanine


class Command(BaseCommand):

    help = BaseCommand.help.replace("Django", "Mezzanine")

    if django.VERSION < (1, 8):
        option_list = BaseCommand.option_list + (make_option(
            "-a", "--alternate", dest="alt", metavar="PACKAGE",
            help="Alternate package to use, containing a project_template"),)

    def add_arguments(self, parser):
        super(Command, self).add_arguments(parser)
        parser.add_argument("-a", "--alternate", dest="alt", metavar="PACKAGE",
            help="Alternate package to use, containing a project_template")

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

        # Overridden to provide a template value for nevercache_key. The
        # method is copied verbatim from startproject.Command.
        chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
        options['nevercache_key'] = get_random_string(50, chars)

        # Indicate that local_settings.py.template should be rendered
        options['files'] = ['local_settings.py.template']

        super(Command, self).handle(*args, **options)
{'fraction_non_alphanumeric': 0.10378590078328982, 'fraction_numerical': 0.009138381201044387, 'mean_word_length': 4.008169934640523, 'pattern_counts': {'":': 0, '<': 5, '<?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': '368835', 'n_tokens_mistral': 899, 'n_tokens_neox': 843, 'n_words': 243}