<commit_before>import os
from optparse import make_option

from django.core.management.commands.runserver import BaseRunserverCommand

from datetime import datetime

from google.appengine.tools.devappserver2 import shutdown
from google.appengine.tools.sdk_update_checker import (
    GetVersionObject,
    _VersionList
)


def ignore_file(filename):
    """Report whether a file should not be watched."""
    from google.appengine.tools.devappserver2 import watcher_common
    filename = os.path.basename(filename)
    return(
        filename.startswith(watcher_common._IGNORED_PREFIX) or
        any(filename.endswith(suffix) for suffix in watcher_common._IGNORED_FILE_SUFFIXES) or
        watcher_common._IGNORED_REGEX.match(filename)
    )


class Command(BaseRunserverCommand):
    """
    Overrides the default Django runserver command.

    Instead of starting the default Django development server this
    command fires up a copy of the full fledged App Engine
    dev_appserver that emulates the live environment your application
    will be deployed to.
    """
    # We use this list to prevent user using certain dev_appserver options that
    # might collide with some Django settings.
    WHITELISTED_DEV_APPSERVER_OPTIONS = [<commit_msg>add additional djange-skip-files<commit_after>import os
import re
from optparse import make_option

from django.core.management.commands.runserver import BaseRunserverCommand
from django.conf import settings

from datetime import datetime

from google.appengine.tools.devappserver2 import shutdown
from google.appengine.tools.sdk_update_checker import (
    GetVersionObject,
    _VersionList
)

DJANGAE_IGNORE_REGEXES = []
if settings.DJANGAE_IGNORE_REGEXES:
    DJANGAE_IGNORE_REGEXES = [re.compile(regex) for regex in settings.DJANGAE_IGNORE_REGEXES]


def ignore_file(filename):
    """Report whether a file should not be watched."""
    from google.appengine.tools.devappserver2 import watcher_common
    filename = os.path.basename(filename)
    return(
        filename.startswith(watcher_common._IGNORED_PREFIX) or
        any(filename.endswith(suffix) for suffix in watcher_common._IGNORED_FILE_SUFFIXES) or
        watcher_common._IGNORED_REGEX.match(filename) or
        any(regex.match(filename) for regex in DJANGAE_IGNORE_REGEXES)
    )


class Command(BaseRunserverCommand):
    """
    Overrides the default Django runserver command.

    Instead of starting the default Django development server this
    command fires up a copy of the full fledged App Engine
    dev_appserver that emulates the live environment your application
    will be deployed to.
    """
    # We use this list to prevent user using certain dev_appserver options that
    # might collide with some Django settings.
    WHITELISTED_DEV_APPSERVER_OPTIONS = [
{'fraction_non_alphanumeric': 0.05426633345233845, 'fraction_numerical': 0.0014280614066404856, 'mean_word_length': 4.27683615819209, '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': '6121945', 'n_tokens_mistral': 816, 'n_tokens_neox': 790, 'n_words': 239}