<commit_before>from polyaxon.utils import config

PROJECT_APPS = (
    'polyaxon',
    'libs.apps.LibsConfig',
    'users.apps.UsersConfig',
    'versions.apps.VersionsConfig',
    'clusters.apps.ClustersConfig',
    'projects.apps.ProjectsConfig',
    'repos.apps.ReposConfig',
    'jobs.apps.JobsConfig',
    'experiment_groups.apps.ExperimentGroupsConfig',
    'experiments.apps.ExperimentsConfig',
    'pipelines.apps.PipelinesConfig',
    'event_monitors.apps.EventMonitorsConfig',
    'event_manager.apps.EventManagerConfig',
    'activitylogs.apps.ActivityLogsConfig',
    'tracker.apps.TrackerConfig',
    'auditor.apps.AuditorConfig',
)

DEPLOY_RUNNER = config.get_boolean('POLYAXON_DEPLOY_RUNNER', is_optional=True, default=True)
if DEPLOY_RUNNER:
    PROJECT_APPS += (
        'plugins.apps.PluginsConfig',
        'runner.apps.RunnerConfig',
        'runner.nodes.apps.NodesConfig',
    )

if config.get_boolean('POLYAXON_AUTH_LDAP', is_optional=True):
    PROJECT_APPS += ('auth_ldap.apps.AuthLdapConfig',)

THIRD_PARTY_APPS = (
    'raven.contrib.django.raven_compat',
    'rest_framework',
    'rest_framework.authtoken',
    'corsheaders',
)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.admin',
    'django.contrib.admindocs',
)

INSTALLED_APPS += THIRD_PARTY_APPS + PROJECT_APPS

MIDDLEWARE = (
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'corsheaders.middleware.CorsMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
<commit_msg>Add sso to apps<commit_after>from polyaxon.utils import config

PROJECT_APPS = (
    'polyaxon',
    'libs.apps.LibsConfig',
    'users.apps.UsersConfig',
    'versions.apps.VersionsConfig',
    'clusters.apps.ClustersConfig',
    'projects.apps.ProjectsConfig',
    'repos.apps.ReposConfig',
    'jobs.apps.JobsConfig',
    'experiment_groups.apps.ExperimentGroupsConfig',
    'experiments.apps.ExperimentsConfig',
    'pipelines.apps.PipelinesConfig',
    'event_monitors.apps.EventMonitorsConfig',
    'event_manager.apps.EventManagerConfig',
    'activitylogs.apps.ActivityLogsConfig',
    'tracker.apps.TrackerConfig',
    'auditor.apps.AuditorConfig',
    'sso.apps.SSOConfig'
)

DEPLOY_RUNNER = config.get_boolean('POLYAXON_DEPLOY_RUNNER', is_optional=True, default=True)
if DEPLOY_RUNNER:
    PROJECT_APPS += (
        'plugins.apps.PluginsConfig',
        'runner.apps.RunnerConfig',
        'runner.nodes.apps.NodesConfig',
    )

if config.get_boolean('POLYAXON_AUTH_LDAP', is_optional=True):
    PROJECT_APPS += ('auth_ldap.apps.AuthLdapConfig',)

THIRD_PARTY_APPS = (
    'raven.contrib.django.raven_compat',
    'rest_framework',
    'rest_framework.authtoken',
    'corsheaders',
)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.admin',
    'django.contrib.admindocs',
)

INSTALLED_APPS += THIRD_PARTY_APPS + PROJECT_APPS

MIDDLEWARE = (
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'corsheaders.middleware.CorsMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
)

{'fraction_non_alphanumeric': 0.1282648047582105, 'fraction_numerical': 0.0, 'mean_word_length': 4.455571227080395, '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': '1446928', 'n_tokens_mistral': 1321, 'n_tokens_neox': 1309, 'n_words': 126}