<commit_before>
#### Server configuration
#
# The :base_url specifies the prefix for all default http responders.
:base_url: '/'
#
# This setting defines if requests should be gzip-compressed or not.
# This is a trade-off between cpu cycles used and network bandwidth used.
# It's generally a good idea to leave it as false (gzipping enabled).
:no_gzip: false
#
# Enabling this appends all msg.reply call output to stdout
:trace: false
#
# The settings for the index_html plugin
:index_html:
  #
  # HTML template file path relative to the plugin dir
  :index_tmpl: 'tmpl/index.html'
  #
  # The index.html page <title>
  :title: 'RSence'
  #  
  :noscript: '<h1>Sorry!</h1><p>This site requires a Javascript -capable web browser.</p><p>Please enable Javascript or upgrade your browser.</p>'
  #
  :instance: null
  #
  # A list of javascript dependencies to include in the html
  :deps: [ ]
#
# The settings for the main plugin
:main_plugin:
  #
  # The background color of the web page when loading is done
  :bg_color:            '#ffffff'
  #
  # how many milliseconds to wait before doing an idle poll
  :server_poll_interval: 2000 # 2 seconds
#
# Switches on debug-mode:
#  - Generates more output
#  - Each time /hello is post-requested:
#    - Plugins are reloaded from source 
#    - GZFiles are reloaded (if more recent than in memory)
:debug_mode: false
#
# Web server-related settings:
:http_server:
  #
  # Simulate network latency. Good for testing how your
  # app behaves with laggy connections.
  :latency: 0
  #
  # HTTP Port number to listen to.
  :port:  8001
  #
  # Bind this ip address ('0.0.0.0' means all)
  :bind_address:  '0.0.0.0'
  #
  # Rack handler to use, defaults to thin
  :rack_require: mongrel
  #
  # The rack handler; entered automatically.
  :rack_handler: null
#
# When enabled, sets http cache headers
# to cache content as long as possible.
:cache_maximize: true
#
# When :cache_maximize is enabled,
# this is the time (in seconds) the cached
# content will expire in
:cache_expire: 14515200 # 6 months
#
# Paths to scan for available plugins
:plugin_paths: [ ]
#
# List of files that include strings
:string_files: [
  "conf/default_strings.yaml"
]
#
# Transporter settings:
:transporter_conf:
  #
  # The HApplication priority of the client, when actively polling.
  :client_poll_priority: 60
#
#
# Session-related settings
:session_conf:
  #
  # Enable cookie-based sessions
  :session_cookies: true
  #
  # Trusting the cookies means ignoring the client protocol session key exchange.
  # Enabled by default, because in most cases, extreme security measures aren't necessary
  # and the drawback of having an invalid session because a tcp packet got lost isn't
  # tolerable as a default setting.
  :trust_cookies: true
  #
  # The comment string in the session cookie
  :ses_cookie_comment: "RSence Session Key"
  #
  # Disposable keys. When enabled, runs in a more secure way and changes the session key on each xhr.
  :disposable_keys:    true
  #
  # Timeout controls how long a session is valid
  :timeout_secs:       900 # 15 minutes
  #
  # Key length controls the length of the random-part of the key.
  :key_length:   12
  #
  # Cookie keys are this many times longer than xhr keys
  :cookie_key_multiplier: 2
  #
  #
  # When enabled, deletes all old sessions upon server startup.
  # If the --reset-sessions command-line switch is provided,
  # switches this one to true.
  :reset_sessions: false
  #
  # When this is enabled, multiple sessions are allowed for each client
  # When it's enabled, the old session is left intact and a new one is
  # created by making a clone of the last session.
  # If enabled, also check the maximum number of clones allowed in
  # :session_cookie_max_clones
  # Defaults to false, will be the default in a future version.
  :clone_cookie_sessions: false
  #
  # This limits the amount of cloned targets of a source session.
  # NOTE: This has no effect yet, the code is not implemented.
  :max_cloned_sessions: 10
  #
  # This option overrides the default session timeout.
  # Don't set this to less than the expected poll interval,
  # otherwise the session might expire before the previous
  # (cloned) session re-connects the next time.
  # A safe value for a 60 second poll interval is 120 (default).
  :cloned_session_expires_in: 120
  #
  # Message strings
  :messages:
    #
    # if the session is invalid for one reason or another, display this:
    :invalid_session:
      :title: 'Invalid Session'
      :descr: 'Your session is invalid. Please reload the page to continue.'
      :uri:    '/'
#
# Database configuration
:database:
  # Session database storage string. Leave empty here to enable the wizard for storage.
  :ses_db: 'sqlite://var/lib/rsence/db/ses.db'

#
# ValueManager settings
:values_conf:
  # Key length controls the length of the random-part of the key.
  :key_length:    8
  #
  # Disposable keys, when enabled, changes the value id on each session restoration
  :disposable_keys:   true
#
# Daemon helper files, leave empty for defaults.
:daemon: {
  #:pid_fn: /var/run/rsence.pid
  #:log_fn: /var/log/rsence.log<commit_msg>Sane default for the session database.<commit_after>
#### Server configuration
#
# The :base_url specifies the prefix for all default http responders.
:base_url: '/'
#
# This setting defines if requests should be gzip-compressed or not.
# This is a trade-off between cpu cycles used and network bandwidth used.
# It's generally a good idea to leave it as false (gzipping enabled).
:no_gzip: false
#
# Enabling this appends all msg.reply call output to stdout
:trace: false
#
# The settings for the index_html plugin
:index_html:
  #
  # HTML template file path relative to the plugin dir
  :index_tmpl: 'tmpl/index.html'
  #
  # The index.html page <title>
  :title: 'RSence'
  #  
  :noscript: '<h1>Sorry!</h1><p>This site requires a Javascript -capable web browser.</p><p>Please enable Javascript or upgrade your browser.</p>'
  #
  :instance: null
  #
  # A list of javascript dependencies to include in the html
  :deps: [ ]
#
# The settings for the main plugin
:main_plugin:
  #
  # The background color of the web page when loading is done
  :bg_color:            '#ffffff'
  #
  # how many milliseconds to wait before doing an idle poll
  :server_poll_interval: 2000 # 2 seconds
#
# Switches on debug-mode:
#  - Generates more output
#  - Each time /hello is post-requested:
#    - Plugins are reloaded from source 
#    - GZFiles are reloaded (if more recent than in memory)
:debug_mode: false
#
# Web server-related settings:
:http_server:
  #
  # Simulate network latency. Good for testing how your
  # app behaves with laggy connections.
  :latency: 0
  #
  # HTTP Port number to listen to.
  :port:  8001
  #
  # Bind this ip address ('0.0.0.0' means all)
  :bind_address:  '0.0.0.0'
  #
  # Rack handler to use, defaults to thin
  :rack_require: mongrel
  #
  # The rack handler; entered automatically.
  :rack_handler: null
#
# When enabled, sets http cache headers
# to cache content as long as possible.
:cache_maximize: true
#
# When :cache_maximize is enabled,
# this is the time (in seconds) the cached
# content will expire in
:cache_expire: 14515200 # 6 months
#
# Paths to scan for available plugins
:plugin_paths: [ ]
#
# List of files that include strings
:string_files: [
  "conf/default_strings.yaml"
]
#
# Transporter settings:
:transporter_conf:
  #
  # The HApplication priority of the client, when actively polling.
  :client_poll_priority: 60
#
#
# Session-related settings
:session_conf:
  #
  # Enable cookie-based sessions
  :session_cookies: true
  #
  # Trusting the cookies means ignoring the client protocol session key exchange.
  # Enabled by default, because in most cases, extreme security measures aren't necessary
  # and the drawback of having an invalid session because a tcp packet got lost isn't
  # tolerable as a default setting.
  :trust_cookies: true
  #
  # The comment string in the session cookie
  :ses_cookie_comment: "RSence Session Key"
  #
  # Disposable keys. When enabled, runs in a more secure way and changes the session key on each xhr.
  :disposable_keys:    true
  #
  # Timeout controls how long a session is valid
  :timeout_secs:       900 # 15 minutes
  #
  # Key length controls the length of the random-part of the key.
  :key_length:   12
  #
  # Cookie keys are this many times longer than xhr keys
  :cookie_key_multiplier: 2
  #
  #
  # When enabled, deletes all old sessions upon server startup.
  # If the --reset-sessions command-line switch is provided,
  # switches this one to true.
  :reset_sessions: false
  #
  # When this is enabled, multiple sessions are allowed for each client
  # When it's enabled, the old session is left intact and a new one is
  # created by making a clone of the last session.
  # If enabled, also check the maximum number of clones allowed in
  # :session_cookie_max_clones
  # Defaults to false, will be the default in a future version.
  :clone_cookie_sessions: false
  #
  # This limits the amount of cloned targets of a source session.
  # NOTE: This has no effect yet, the code is not implemented.
  :max_cloned_sessions: 10
  #
  # This option overrides the default session timeout.
  # Don't set this to less than the expected poll interval,
  # otherwise the session might expire before the previous
  # (cloned) session re-connects the next time.
  # A safe value for a 60 second poll interval is 120 (default).
  :cloned_session_expires_in: 120
  #
  # Message strings
  :messages:
    #
    # if the session is invalid for one reason or another, display this:
    :invalid_session:
      :title: 'Invalid Session'
      :descr: 'Your session is invalid. Please reload the page to continue.'
      :uri:    '/'
#
# Database configuration
:database:
  # Session database storage string. Leave empty here to enable the wizard for storage.
  :ses_db: 'sqlite://var/db/ses.db'

#
# ValueManager settings
:values_conf:
  # Key length controls the length of the random-part of the key.
  :key_length:    8
  #
  # Disposable keys, when enabled, changes the value id on each session restoration
  :disposable_keys:   true
#
# Daemon helper files, leave empty for defaults.
:daemon: {
  #:pid_fn: /var/run/rsence.pid
  #:log_fn: /var/log/rsence.log
{'fraction_non_alphanumeric': 0.0784522885958107, 'fraction_numerical': 0.009697439875872769, 'mean_word_length': 3.513347921225383, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '6163088', 'n_tokens_mistral': 3244, 'n_tokens_neox': 3107, 'n_words': 1310}