<commit_before>{% set minion_id = salt.grains.get('id', '') %}
{% set environment = minion_id.split('-')[-1] %}

{% set env_dict = {
    'ci': {
      'app_log_level': 'INFO',
      'app_name': 'odl-open-discussions-ci',
      'CLOUDFRONT_DIST': 'd28ic9ywb63ioi',
      'CORS_URLS': ['micromasters-ci.odl.mit.edu'],
      'DEBUG': False,
      'ELASTICSEARCH_INDEX': 'discussions-ci',
      'ELASTICSEARCH_URL': 'https://elasticsearch-rc-apps.odl.mit.edu',
      'env_name': 'ci',
      'FEATURE_COURSE_UI': True,
      'GA_TRACKING_ID': 'UA-5145472-29',
      'INDEXING_API_USERNAME': 'od_mm_ci_api',
      'NEW_RELIC_APP_NAME': 'discussions-ci',
      'MAILGUN_SENDER_DOMAIN': 'discussions-mail.odl.mit.edu',
      'MICROMASTERS_BASE_URL': 'micromasters-ci.odl.mit.edu',
      'MITXPRO_BASE_URL': 'xpro-ci.odl.mit.edu',
      'OCW_ITERATOR_CHUNK_SIZE': 5000,
      'OCW_UPLOAD_IMAGE_ONLY': True,
      'OPEN_DISCUSSIONS_BASE_URL': 'https://discussions-ci.odl.mit.edu',
      'OPEN_DISCUSSIONS_COOKIE_NAME': 'discussionsci',
      'OPEN_DISCUSSIONS_COOKIE_DOMAIN': 'odl.mit.edu',
      'OPEN_DISCUSSIONS_SUPPORT_EMAIL': '<EMAIL>',
      'PGBOUNCER_DEFAULT_POOL_SIZE': 5,
      'PGBOUNCER_MAX_CLIENT_CONN': 20,
      'PGBOUNCER_MIN_POOL_SIZE': 5,
      'release_branch': 'master',
      'SOCIAL_AUTH_MICROMASTERS_LOGIN_URL': 'https://micromasters-ci.odl.mit.edu/discussions/',
      'SOCIAL_AUTH_SAML_SP_ENTITY_ID': 'https://discussions-ci.odl.mit.edu/saml/metadata',
      'TIKA_SERVER_ENDPOINT': 'https://tika-rc-apps.odl.mit.edu',
      'vault_env_path': 'rc-apps'
      },
    'rc': {
      'app_log_level': 'INFO',
      'app_name': 'odl-open-discussions-rc',
      'CLOUDFRONT_DIST': 'd1d3xcwjqmwwj2',
      'CORS_URLS': ['micromasters-rc.odl.mit.edu', 'ocwnext-rc.odl.mit.edu'],
      'DEBUG': False,
      'ELASTICSEARCH_INDEX': 'discussions-rc',
      'ELASTICSEARCH_URL': 'https://elasticsearch-rc-apps.odl.mit.edu',
      'env_name': 'rc',
      'FEATURE_COURSE_UI': True,
      'GA_TRACKING_ID': 'UA-5145472-29',
      'INDEXING_API_USERNAME': 'od_mm_rc_api',
      'NEW_RELIC_APP_NAME': 'discussions-rc',
      'MAILGUN_SENDER_DOMAIN': 'discussions-mail.odl.mit.edu',
      'MICROMASTERS_BASE_URL': 'micromasters-rc.odl.mit.edu',
      'MITXPRO_BASE_URL': 'xpro-rc.odl.mit.edu',
      'OCW_ITERATOR_CHUNK_SIZE': 1000,
      'OCW_UPLOAD_IMAGE_ONLY': True,
      'OPEN_DISCUSSIONS_BASE_URL': 'https://discussions-rc.odl.mit.edu',
      'OPEN_DISCUSSIONS_COOKIE_NAME': 'discussionsrc',
      'OPEN_DISCUSSIONS_COOKIE_DOMAIN': 'odl.mit.edu',
      'OPEN_DISCUSSIONS_SUPPORT_EMAIL': '<EMAIL>',
      'PGBOUNCER_DEFAULT_POOL_SIZE': 50,
      'PGBOUNCER_MAX_CLIENT_CONN': 500,
      'PGBOUNCER_MIN_POOL_SIZE': 20,
      'release_branch': 'release-candidate',
      'SOCIAL_AUTH_MICROMASTERS_LOGIN_URL': 'https://micromasters-rc.odl.mit.edu/login/edxorg/?next=/discussions/',
      'SOCIAL_AUTH_SAML_SP_ENTITY_ID': 'https://discussions-rc.odl.mit.edu/saml/metadata',<commit_msg>Add Netlify domain to Discussions CORS domains<commit_after>{% set minion_id = salt.grains.get('id', '') %}
{% set environment = minion_id.split('-')[-1] %}

{% set env_dict = {
    'ci': {
      'app_log_level': 'INFO',
      'app_name': 'odl-open-discussions-ci',
      'CLOUDFRONT_DIST': 'd28ic9ywb63ioi',
      'CORS_URLS': ['micromasters-ci.odl.mit.edu'],
      'DEBUG': False,
      'ELASTICSEARCH_INDEX': 'discussions-ci',
      'ELASTICSEARCH_URL': 'https://elasticsearch-rc-apps.odl.mit.edu',
      'env_name': 'ci',
      'FEATURE_COURSE_UI': True,
      'GA_TRACKING_ID': 'UA-5145472-29',
      'INDEXING_API_USERNAME': 'od_mm_ci_api',
      'NEW_RELIC_APP_NAME': 'discussions-ci',
      'MAILGUN_SENDER_DOMAIN': 'discussions-mail.odl.mit.edu',
      'MICROMASTERS_BASE_URL': 'micromasters-ci.odl.mit.edu',
      'MITXPRO_BASE_URL': 'xpro-ci.odl.mit.edu',
      'OCW_ITERATOR_CHUNK_SIZE': 5000,
      'OCW_UPLOAD_IMAGE_ONLY': True,
      'OPEN_DISCUSSIONS_BASE_URL': 'https://discussions-ci.odl.mit.edu',
      'OPEN_DISCUSSIONS_COOKIE_NAME': 'discussionsci',
      'OPEN_DISCUSSIONS_COOKIE_DOMAIN': 'odl.mit.edu',
      'OPEN_DISCUSSIONS_SUPPORT_EMAIL': '<EMAIL>',
      'PGBOUNCER_DEFAULT_POOL_SIZE': 5,
      'PGBOUNCER_MAX_CLIENT_CONN': 20,
      'PGBOUNCER_MIN_POOL_SIZE': 5,
      'release_branch': 'master',
      'SOCIAL_AUTH_MICROMASTERS_LOGIN_URL': 'https://micromasters-ci.odl.mit.edu/discussions/',
      'SOCIAL_AUTH_SAML_SP_ENTITY_ID': 'https://discussions-ci.odl.mit.edu/saml/metadata',
      'TIKA_SERVER_ENDPOINT': 'https://tika-rc-apps.odl.mit.edu',
      'vault_env_path': 'rc-apps'
      },
    'rc': {
      'app_log_level': 'INFO',
      'app_name': 'odl-open-discussions-rc',
      'CLOUDFRONT_DIST': 'd1d3xcwjqmwwj2',
      'CORS_URLS': ['micromasters-rc.odl.mit.edu', 'ocwnext-rc.odl.mit.edu', 'ocw-next.netlify.app'],
      'DEBUG': False,
      'ELASTICSEARCH_INDEX': 'discussions-rc',
      'ELASTICSEARCH_URL': 'https://elasticsearch-rc-apps.odl.mit.edu',
      'env_name': 'rc',
      'FEATURE_COURSE_UI': True,
      'GA_TRACKING_ID': 'UA-5145472-29',
      'INDEXING_API_USERNAME': 'od_mm_rc_api',
      'NEW_RELIC_APP_NAME': 'discussions-rc',
      'MAILGUN_SENDER_DOMAIN': 'discussions-mail.odl.mit.edu',
      'MICROMASTERS_BASE_URL': 'micromasters-rc.odl.mit.edu',
      'MITXPRO_BASE_URL': 'xpro-rc.odl.mit.edu',
      'OCW_ITERATOR_CHUNK_SIZE': 1000,
      'OCW_UPLOAD_IMAGE_ONLY': True,
      'OPEN_DISCUSSIONS_BASE_URL': 'https://discussions-rc.odl.mit.edu',
      'OPEN_DISCUSSIONS_COOKIE_NAME': 'discussionsrc',
      'OPEN_DISCUSSIONS_COOKIE_DOMAIN': 'odl.mit.edu',
      'OPEN_DISCUSSIONS_SUPPORT_EMAIL': '<EMAIL>',
      'PGBOUNCER_DEFAULT_POOL_SIZE': 50,
      'PGBOUNCER_MAX_CLIENT_CONN': 500,
      'PGBOUNCER_MIN_POOL_SIZE': 20,
      'release_branch': 'release-candidate',
      'SOCIAL_AUTH_MICROMASTERS_LOGIN_URL': 'https://micromasters-rc.odl.mit.edu/login/edxorg/?next=/discussions/',
      'SOCIAL_AUTH_SAML_SP_ENTITY_ID': 'https://discussions-rc.odl.mit.edu/saml/metadata',
{'fraction_non_alphanumeric': 0.1663622779345841, 'fraction_numerical': 0.015274780009961813, 'mean_word_length': 3.854149879129734, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 18, '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': '1336785', 'n_tokens_mistral': 2630, 'n_tokens_neox': 2507, 'n_words': 254}