<commit_before>from oclapi.settings.common import *
from configurations import values


class Local(Common):

    # DEBUG = False
    EMAIL_HOST = "localhost"
    EMAIL_PORT = 1025
    EMAIL_BACKEND = values.Value('django.core.mail.backends.console.EmailBackend')

    INSTALLED_APPS = Common.INSTALLED_APPS
    INTERNAL_IPS = ('localhost',)


class Dev(Local):
    """
    Settings for unit testing
    """
    HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.BaseSignalProcessor'

class Test(Local):
    """
    Settings for unit testing
    """
    DATABASES = {
        'default': {
            'ENGINE': 'django_mongodb_engine',
            'HOST': 'localhost',
            'NAME': 'test',
        }
    }
    HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.BaseSignalProcessor'


class IntegrationTest(Common):
    """
    Settings for unit testing
    """
    DATABASES = {
        'default': {
            'ENGINE': 'django_mongodb_engine',
            'HOST': 'localhost',
            'NAME': 'ocl',
        }
    }

    HAYSTACK_CONNECTIONS = {
        'default': {
            'ENGINE': 'oclapi.search_backends.OCLSolrEngine',
            'URL': 'http://localhost:8983/solr/collection1'
            # ...or for multicore...
            # 'URL': 'http://127.0.0.1:8983/solr/mysite',
        },
    }

    BROKER_URL = 'redis://localhost:6379/0'
    CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
    INSTALLED_APPS = Common.INSTALLED_APPS<commit_msg>#0 @burakince update signal processor for integration tets (#409)<commit_after>from oclapi.settings.common import *
from configurations import values


class Local(Common):

    # DEBUG = False
    EMAIL_HOST = "localhost"
    EMAIL_PORT = 1025
    EMAIL_BACKEND = values.Value('django.core.mail.backends.console.EmailBackend')

    INSTALLED_APPS = Common.INSTALLED_APPS
    INTERNAL_IPS = ('localhost',)


class Dev(Local):
    """
    Settings for unit testing
    """
    HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.BaseSignalProcessor'

class Test(Local):
    """
    Settings for unit testing
    """
    DATABASES = {
        'default': {
            'ENGINE': 'django_mongodb_engine',
            'HOST': 'localhost',
            'NAME': 'test',
        }
    }
    HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.BaseSignalProcessor'


class IntegrationTest(Common):
    """
    Settings for unit testing
    """
    DATABASES = {
        'default': {
            'ENGINE': 'django_mongodb_engine',
            'HOST': 'localhost',
            'NAME': 'ocl',
        }
    }

    HAYSTACK_CONNECTIONS = {
        'default': {
            'ENGINE': 'oclapi.search_backends.OCLSolrEngine',
            'URL': 'http://localhost:8983/solr/collection1'
            # ...or for multicore...
            # 'URL': 'http://127.0.0.1:8983/solr/mysite',
        },
    }
    HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.BaseSignalProcessor'

    BROKER_URL = 'redis://localhost:6379/0'
    CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
    INSTALLED_APPS = Common.INSTALLED_APPS
{'fraction_non_alphanumeric': 0.12956264386714897, 'fraction_numerical': 0.020388030253206183, 'mean_word_length': 2.4411764705882355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3821096', 'n_tokens_mistral': 1069, 'n_tokens_neox': 985, 'n_words': 161}