<commit_before># variables common to the lms role, automatically loaded
# when the role is included
---

# These are default values for the env and auth
# configuration files. There should be no
# host identifying or sensitive information and
# the defaults should be appropriate for running
# all roles on a single instance

# These are custom variables that can be overridden
# on the command line to change specific values in the hash
c_lms_base: ''
c_preview_lms_base: ''

#Use YAML references (& and *) and hash merge <<: to factor out shared settings
#see http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/
edxapp_generic_auth_config:  &edxapp_generic_auth
  'AWS_ACCESS_KEY_ID':  ''
  'AWS_SECRET_ACCESS_KEY':  ''
  'SECRET_KEY':  ''
  'XQUEUE_INTERFACE':
    'basic_auth': [ 'edx',  'edx']
    'django_auth': { 'password':  'password',
      'username':  'lms'}
    'url':  'https://localhost:18040'
  'CONTENTSTORE':
    'ENGINE':  'xmodule.contentstore.mongo.MongoContentStore'
    'OPTIONS':
      'db':  'edxapp'
      'host': [ 'localhost' ]
      'password':  'password'
      'port': 27017
      'user':  'mongo'
  'MODULESTORE':
    'default':
      'ENGINE': 'xmodule.modulestore.mongo.DraftMongoModuleStore'
      'OPTIONS':  &generic_modulestore_default_options
        'collection':  'modulestore'
        'db':  'edxapp'
        'default_class':  'xmodule.hidden_module.HiddenDescriptor'
        'fs_root':  '/opt/wwc/data'
        'host': [ 'localhost' ]
        'password':  'password'
        'port': 27017
        'render_template':  'mitxmako.shortcuts.render_to_string'
        'user':  'mongo'
    # Needed for the CMS to be able to run update_templates
    'direct':
      'ENGINE': 'xmodule.modulestore.mongo.MongoModuleStore'
      'OPTIONS':  *generic_modulestore_default_options
  'DATABASES':
    'default':
      'ENGINE': 'django.db.backends.mysql'
      'NAME': 'edxapp'
      'USER': 'root'
      'PASSWORD': ''
      # Provide the name of a host running mysql.
      'HOST': 'localhost'
      'PORT': '3306'
  'PEARSON_TEST_PASSWORD':  ''
  'OPEN_ENDED_GRADING_INTERFACE':
    'url':  'http://localhost:18091'
    'password':  'password'
    'peer_grading':  'peer_grading'
    'staff_grading':  'staff_grading'
    'grading_controller':  'grading_controller'
    'username':  'lms'
  'ANALYTICS_API_KEY':  ''
  'ZENDESK_USER': ''
  'ZENDESK_API_KEY': ''
  'CELERY_BROKER_USER': 'celery'
  'CELERY_BROKER_PASSWORD': ''
 
generic_env_config:  &edxapp_generic_env
  'LMS_BASE': "{{ c_lms_base }}"
  'BOOK_URL':  ''
  'CERT_QUEUE':  'certificates'
  'LOCAL_LOGLEVEL':  'INFO'
  # default email backed set to local SMTP
  'EMAIL_BACKEND': 'django.core.mail.backends.smtp.EmailBackend'
  'MITX_FEATURES':
    'AUTH_USE_OPENID_PROVIDER': true
    'CERTIFICATES_ENABLED': true
    'ENABLE_DISCUSSION_SERVICE': true
    'ENABLE_INSTRUCTOR_ANALYTICS': true
    'ENABLE_PEARSON_HACK_TEST': false
    'SUBDOMAIN_BRANDING': false
    'SUBDOMAIN_COURSE_LISTINGS': false
    'PREVIEW_LMS_BASE': "{{ c_preview_lms_base }}"
  'WIKI_ENABLED': true
  'SYSLOG_SERVER':  'syslog.a.m.i4x.org'
  'SITE_NAME':  'example.com'
  'LOG_DIR':  '/mnt/logs/edx'
  'MEDIA_URL':  ''
  'ANALYTICS_SERVER_URL':  ''
  'EEDBACK_SUBMISSION_EMAIL': ''
  'TIME_ZONE': 'America/New_York'
  'CACHES':
    'default': &default_generic_cache
      'BACKEND':  'django.core.cache.backends.memcached.MemcachedCache'
      'KEY_FUNCTION':  'util.memcache.safe_key'
      'KEY_PREFIX':  'sandbox_default'
      'LOCATION': [ 'localhost:11211' ]
    'general':
      <<: *default_generic_cache
      'KEY_PREFIX':  'sandbox_general'
    'mongo_metadata_inheritance':
      <<: *default_generic_cache
      'KEY_PREFIX':  'integration_mongo_metadata_inheritance'
    'staticfiles':
      <<: *default_generic_cache
      'KEY_PREFIX':  'integration_static_files'
    'celery':
      <<: *default_generic_cache
      'KEY_PREFIX':  'integration_celery'
  'CELERY_BROKER_TRANSPORT': 'amqp'
  'CELERY_BROKER_HOSTNAME': ''
  'COMMENTS_SERVICE_URL':  'http://localhost:4567'
  'LOGGING_ENV':  'sandbox'
  'SESSION_COOKIE_DOMAIN':  !!null
  'COMMENTS_SERVICE_KEY':  'password'
  'SEGMENT_IO_LMS': true
  'CODE_JAIL':
    'limits':
      'VMEM': 0
      'REALTIME': 3
lms_auth_config:
  <<: *edxapp_generic_auth
  'MODULESTORE':
    'default':
      'ENGINE': 'xmodule.modulestore.mongo.MongoModuleStore'
      'OPTIONS': *generic_modulestore_default_options

lms_env_config:
  <<: *edxapp_generic_env
lms_xml_auth_config:
  <<: *edxapp_generic_auth
  'MODULESTORE':
    'default':
      'ENGINE': 'xmodule.modulestore.xml.XMLModuleStore'
      'OPTIONS':
        'data_dir': '/opt/wwc/data'
        'default_class': 'xmodule.hidden_module.HiddenDescriptor'
lms_xml_env_config:
  <<: *edxapp_generic_env
cms_auth_config:
  <<: *edxapp_generic_auth
cms_env_config:
  <<: *edxapp_generic_env
lms_preview_auth_config:
  <<: *edxapp_generic_auth
lms_preview_env_config:
  <<: *edxapp_generic_env



# install dir for the edx-platform repo
edx_platform_code_dir: "{{ app_base_dir }}/edx-platform"

# Default nginx listen ports
# These should be overrided if you want
# to serve all content on port 80


lms_xml_nginx_port: 18030
lms_nginx_port: 80
lms_preview_nginx_port: 18020
cms_nginx_port: 18010

edxapp_cms_app_port: 8010
edxapp_lms_app_port: 8000
edxapp_lms_xml_app_port: 8030
edxapp_lms_preview_app_port: 8020

# These vars are for creating the application json config
# files.  There are two for each service that uses the
# 'edx-platform' code.  Defining them will create the upstart
# job and nginx configuration for the corresponding service.
# It will also enable the corresponding section in the 
# 'edxapp' upstart job.

service_variants_enabled: 
  - lms
  - lms-xml
  - cms
  - lms-preview


#Number of gunicorn worker processes to spawn, as a multipler to number of virtual cores
worker_core_mult:
  lms: 4
  lms_preview: 2
  lms_xml: 2
  cms: 2

#Theming
#To turn off theming, specify edxapp_theme_name: ''
#Stanford, for example, uses edxapp_theme_name: 'stanford'
edxapp_theme_name: ''
edxapp_theme_source_repo: 'https://github.com/Stanford-Online/edx-theme.git'
edxapp_theme_version: 'HEAD'

# make this the public URL instead of writable
lms_source_repo: https://github.com/edx/edx-platform.git
lms_version: 'release'
local_requirements_file:  "{{ edx_platform_code_dir }}/requirements/edx/local.txt"
pre_requirements_file:    "{{ edx_platform_code_dir }}/requirements/edx/pre.txt"
post_requirements_file:   "{{ edx_platform_code_dir }}/requirements/edx/post.txt"
base_requirements_file:   "{{ edx_platform_code_dir }}/requirements/edx/base.txt"
github_requirements_file: "{{ edx_platform_code_dir }}/requirements/edx/github.txt"
repo_requirements_file:   "{{ edx_platform_code_dir }}/requirements/edx/repo.txt"

sandbox_base_requirements:  "{{ edx_platform_code_dir }}/requirements/edx-sandbox/base.txt"<commit_msg>Fix typo in FEEDBACK_SUBMISSION_EMAIL setting name<commit_after># variables common to the lms role, automatically loaded
# when the role is included
---

# These are default values for the env and auth
# configuration files. There should be no
# host identifying or sensitive information and
# the defaults should be appropriate for running
# all roles on a single instance

# These are custom variables that can be overridden
# on the command line to change specific values in the hash
c_lms_base: ''
c_preview_lms_base: ''

#Use YAML references (& and *) and hash merge <<: to factor out shared settings
#see http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/
edxapp_generic_auth_config:  &edxapp_generic_auth
  'AWS_ACCESS_KEY_ID':  ''
  'AWS_SECRET_ACCESS_KEY':  ''
  'SECRET_KEY':  ''
  'XQUEUE_INTERFACE':
    'basic_auth': [ 'edx',  'edx']
    'django_auth': { 'password':  'password',
      'username':  'lms'}
    'url':  'https://localhost:18040'
  'CONTENTSTORE':
    'ENGINE':  'xmodule.contentstore.mongo.MongoContentStore'
    'OPTIONS':
      'db':  'edxapp'
      'host': [ 'localhost' ]
      'password':  'password'
      'port': 27017
      'user':  'mongo'
  'MODULESTORE':
    'default':
      'ENGINE': 'xmodule.modulestore.mongo.DraftMongoModuleStore'
      'OPTIONS':  &generic_modulestore_default_options
        'collection':  'modulestore'
        'db':  'edxapp'
        'default_class':  'xmodule.hidden_module.HiddenDescriptor'
        'fs_root':  '/opt/wwc/data'
        'host': [ 'localhost' ]
        'password':  'password'
        'port': 27017
        'render_template':  'mitxmako.shortcuts.render_to_string'
        'user':  'mongo'
    # Needed for the CMS to be able to run update_templates
    'direct':
      'ENGINE': 'xmodule.modulestore.mongo.MongoModuleStore'
      'OPTIONS':  *generic_modulestore_default_options
  'DATABASES':
    'default':
      'ENGINE': 'django.db.backends.mysql'
      'NAME': 'edxapp'
      'USER': 'root'
      'PASSWORD': ''
      # Provide the name of a host running mysql.
      'HOST': 'localhost'
      'PORT': '3306'
  'PEARSON_TEST_PASSWORD':  ''
  'OPEN_ENDED_GRADING_INTERFACE':
    'url':  'http://localhost:18091'
    'password':  'password'
    'peer_grading':  'peer_grading'
    'staff_grading':  'staff_grading'
    'grading_controller':  'grading_controller'
    'username':  'lms'
  'ANALYTICS_API_KEY':  ''
  'ZENDESK_USER': ''
  'ZENDESK_API_KEY': ''
  'CELERY_BROKER_USER': 'celery'
  'CELERY_BROKER_PASSWORD': ''

generic_env_config:  &edxapp_generic_env
  'LMS_BASE': "{{ c_lms_base }}"
  'BOOK_URL':  ''
  'CERT_QUEUE':  'certificates'
  'LOCAL_LOGLEVEL':  'INFO'
  # default email backed set to local SMTP
  'EMAIL_BACKEND': 'django.core.mail.backends.smtp.EmailBackend'
  'MITX_FEATURES':
    'AUTH_USE_OPENID_PROVIDER': true
    'CERTIFICATES_ENABLED': true
    'ENABLE_DISCUSSION_SERVICE': true
    'ENABLE_INSTRUCTOR_ANALYTICS': true
    'ENABLE_PEARSON_HACK_TEST': false
    'SUBDOMAIN_BRANDING': false
    'SUBDOMAIN_COURSE_LISTINGS': false
    'PREVIEW_LMS_BASE': "{{ c_preview_lms_base }}"
  'WIKI_ENABLED': true
  'SYSLOG_SERVER':  'syslog.a.m.i4x.org'
  'SITE_NAME':  'example.com'
  'LOG_DIR':  '/mnt/logs/edx'
  'MEDIA_URL':  ''
  'ANALYTICS_SERVER_URL':  ''
  'FEEDBACK_SUBMISSION_EMAIL': ''
  'TIME_ZONE': 'America/New_York'
  'CACHES':
    'default': &default_generic_cache
      'BACKEND':  'django.core.cache.backends.memcached.MemcachedCache'
      'KEY_FUNCTION':  'util.memcache.safe_key'
      'KEY_PREFIX':  'sandbox_default'
      'LOCATION': [ 'localhost:11211' ]
    'general':
      <<: *default_generic_cache
      'KEY_PREFIX':  'sandbox_general'
    'mongo_metadata_inheritance':
      <<: *default_generic_cache
      'KEY_PREFIX':  'integration_mongo_metadata_inheritance'
    'staticfiles':
      <<: *default_generic_cache
      'KEY_PREFIX':  'integration_static_files'
    'celery':
      <<: *default_generic_cache
      'KEY_PREFIX':  'integration_celery'
  'CELERY_BROKER_TRANSPORT': 'amqp'
  'CELERY_BROKER_HOSTNAME': ''
  'COMMENTS_SERVICE_URL':  'http://localhost:4567'
  'LOGGING_ENV':  'sandbox'
  'SESSION_COOKIE_DOMAIN':  !!null
  'COMMENTS_SERVICE_KEY':  'password'
  'SEGMENT_IO_LMS': true
  'CODE_JAIL':
    'limits':
      'VMEM': 0
      'REALTIME': 3
lms_auth_config:
  <<: *edxapp_generic_auth
  'MODULESTORE':
    'default':
      'ENGINE': 'xmodule.modulestore.mongo.MongoModuleStore'
      'OPTIONS': *generic_modulestore_default_options

lms_env_config:
  <<: *edxapp_generic_env
lms_xml_auth_config:
  <<: *edxapp_generic_auth
  'MODULESTORE':
    'default':
      'ENGINE': 'xmodule.modulestore.xml.XMLModuleStore'
      'OPTIONS':
        'data_dir': '/opt/wwc/data'
        'default_class': 'xmodule.hidden_module.HiddenDescriptor'
lms_xml_env_config:
  <<: *edxapp_generic_env
cms_auth_config:
  <<: *edxapp_generic_auth
cms_env_config:
  <<: *edxapp_generic_env
lms_preview_auth_config:
  <<: *edxapp_generic_auth
lms_preview_env_config:
  <<: *edxapp_generic_env



# install dir for the edx-platform repo
edx_platform_code_dir: "{{ app_base_dir }}/edx-platform"

# Default nginx listen ports
# These should be overrided if you want
# to serve all content on port 80


lms_xml_nginx_port: 18030
lms_nginx_port: 80
lms_preview_nginx_port: 18020
cms_nginx_port: 18010

edxapp_cms_app_port: 8010
edxapp_lms_app_port: 8000
edxapp_lms_xml_app_port: 8030
edxapp_lms_preview_app_port: 8020

# These vars are for creating the application json config
# files.  There are two for each service that uses the
# 'edx-platform' code.  Defining them will create the upstart
# job and nginx configuration for the corresponding service.
# It will also enable the corresponding section in the
# 'edxapp' upstart job.

service_variants_enabled:
  - lms
  - lms-xml
  - cms
  - lms-preview


#Number of gunicorn worker processes to spawn, as a multipler to number of virtual cores
worker_core_mult:
  lms: 4
  lms_preview: 2
  lms_xml: 2
  cms: 2

#Theming
#To turn off theming, specify edxapp_theme_name: ''
#Stanford, for example, uses edxapp_theme_name: 'stanford'
edxapp_theme_name: ''
edxapp_theme_source_repo: 'https://github.com/Stanford-Online/edx-theme.git'
edxapp_theme_version: 'HEAD'

# make this the public URL instead of writable
lms_source_repo: https://github.com/edx/edx-platform.git
lms_version: 'release'
local_requirements_file:  "{{ edx_platform_code_dir }}/requirements/edx/local.txt"
pre_requirements_file:    "{{ edx_platform_code_dir }}/requirements/edx/pre.txt"
post_requirements_file:   "{{ edx_platform_code_dir }}/requirements/edx/post.txt"
base_requirements_file:   "{{ edx_platform_code_dir }}/requirements/edx/base.txt"
github_requirements_file: "{{ edx_platform_code_dir }}/requirements/edx/github.txt"
repo_requirements_file:   "{{ edx_platform_code_dir }}/requirements/edx/repo.txt"

sandbox_base_requirements:  "{{ edx_platform_code_dir }}/requirements/edx-sandbox/base.txt"
{'fraction_non_alphanumeric': 0.1218405703175632, 'fraction_numerical': 0.011665586519766688, 'mean_word_length': 4.266590822904816, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, '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': '6184602', 'n_tokens_mistral': 5367, 'n_tokens_neox': 5187, 'n_words': 980}