<commit_before>from os import environ


SECRET_KEY = "fake-secret-key"

INSTALLED_APPS = [
    "tests",
]

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.sqlite3",
        "NAME": ":memory:",
    }
}

MIDDLEWARE_CLASSES = []

CHANNELS = {
    "CHANNELS": {
        "channels.backends.slack.SlackChannel": {
            # Required
            "URL": environ.get("CHANNELS_SLACK_URL"),
            # Optional
            "USERNAME": environ.get("CHANNELS_SLACK_USERNAME", None),
            "ICON_URL": environ.get("CHANNELS_SLACK_ICON_URL", None),
            "ICON_EMOJI": environ.get("CHANNELS_SLACK_ICON_EMOJI", None),
            "CHANNEL": environ.get("CHANNELS_SLACK_CHANNEL", None)
        }
    }
}<commit_msg>Add test settings for HipChatChannel<commit_after>from os import environ


SECRET_KEY = "fake-secret-key"

INSTALLED_APPS = [
    "tests",
]

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.sqlite3",
        "NAME": ":memory:",
    }
}

MIDDLEWARE_CLASSES = []

CHANNELS = {
    "CHANNELS": {
        "channels.backends.hipchat.HipChatChannel": {
            # Required
            "API_ID": environ.get("CHANNELS_HIPCHAT_API_ID"),
            "TOKEN": environ.get("CHANNELS_HIPCHAT_TOKEN"),
            # Optional
            "BASE_URL": environ.get("CHANNELS_HIPCHAT_BASE_URL")
        },
        "channels.backends.slack.SlackChannel": {
            # Required
            "URL": environ.get("CHANNELS_SLACK_URL"),
            # Optional
            "USERNAME": environ.get("CHANNELS_SLACK_USERNAME", None),
            "ICON_URL": environ.get("CHANNELS_SLACK_ICON_URL", None),
            "ICON_EMOJI": environ.get("CHANNELS_SLACK_ICON_EMOJI", None),
            "CHANNEL": environ.get("CHANNELS_SLACK_CHANNEL", None)
        }
    }
}
{'fraction_non_alphanumeric': 0.1406336853807671, 'fraction_numerical': 0.0011117287381878821, 'mean_word_length': 2.488372093023256, 'pattern_counts': {'":': 26, '<': 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': '5180369', 'n_tokens_mistral': 627, 'n_tokens_neox': 631, 'n_words': 81}