<commit_before>require File.join(File.dirname(__FILE__), 'environment')

Adhearsion::Configuration.configure do |config|

  # Components to load from the system.
  # All components that are activated in components/ will be automatically
  # loaded and made available.
  # This configuration option allows you to load components provided by gems.
  # List the gem names here:
  # config.add_component "ahn_test_component"

  # Log configuration
  # :level : Supported levels (in increasing severity) -- :debug < :info < :warn < :error < :fatal
  # :outputters : An array of log outputters to use. The default is to log to stdout and log/adhearsion.log
  # :formatters : An array of log formatters to apply to the outputters in use
  # :formatter : A log formatter to apply to all active outputters
  config.logging :level => :info

  # Whether incoming calls be automatically answered. Defaults to true.
  # config.automatically_answer_incoming_calls = false

  # Whether the other end hanging up should end the call immediately. Defaults to true.
  # config.end_call_on_hangup = false

  # Whether to end the call immediately if an unrescued exception is caught. Defaults to true.
  # config.end_call_on_error = false

  # NOTE: Pay special attention to the argument_delimiter field below:
  # For Asterisk <= 1.4, use "|" (default)
  # For Asterisk >= 1.6, use ","
  # The delimiter can also be specified in Asterisk's asterisk.conf.
  # This setting applies only to AGI.  The AMI delimiter is auto-detected.
  config.enable_asterisk :argument_delimiter => '|'
  # config.asterisk.enable_ami :host => "127.0.0.1", :username => "admin", :password => "password", :events => true

  # config.enable_drb

  # Streamlined Rails integration! The first argument should be a relative or absolute path to
  # the Rails app folder with which you're integrating. The second argument must be one of the
  # the following: :development, :production, or :test.

  # config.enable_rails :path => 'gui', :env => :development

  # Note: You CANNOT do enable_rails and enable_database at the same time. When you enable Rails,
  # it will automatically connect to same database Rails does and load the Rails app's models.

  # Configure a database to use ActiveRecord-backed models. See ActiveRecord::Base.establish_connection
  # for the appropriate settings here.
  # You can also override the default log destination by supplying an alternate
  # logging object with :logger.  The default is ahn_log.db.
  # config.enable_database :adapter  => 'mysql',
  #                        :username => 'joe',
  #                        :password => '<PASSWORD>',
  #                        :host     => 'db.example.org'

  # Configure an LDAP connection using ActiveLdap.  See ActiveLdap::Base.establish_connect
  # for the appropriate settings here.
  # config.enable_ldap :host => 'ldap.dataspill.org',
  #                    :port => 389,
  #                    :base => 'dc=dataspill,dc=org',<commit_msg>Add generator for speech engine config<commit_after>require File.join(File.dirname(__FILE__), 'environment')

Adhearsion::Configuration.configure do |config|

  # Components to load from the system.
  # All components that are activated in components/ will be automatically
  # loaded and made available.
  # This configuration option allows you to load components provided by gems.
  # List the gem names here:
  # config.add_component "ahn_test_component"

  # Log configuration
  # :level : Supported levels (in increasing severity) -- :debug < :info < :warn < :error < :fatal
  # :outputters : An array of log outputters to use. The default is to log to stdout and log/adhearsion.log
  # :formatters : An array of log formatters to apply to the outputters in use
  # :formatter : A log formatter to apply to all active outputters
  config.logging :level => :info

  # Whether incoming calls be automatically answered. Defaults to true.
  # config.automatically_answer_incoming_calls = false

  # Whether the other end hanging up should end the call immediately. Defaults to true.
  # config.end_call_on_hangup = false

  # Whether to end the call immediately if an unrescued exception is caught. Defaults to true.
  # config.end_call_on_error = false

  # NOTE: Pay special attention to the argument_delimiter field below:
  # For Asterisk <= 1.4, use "|" (default)
  # For Asterisk >= 1.6, use ","
  # The delimiter can also be specified in Asterisk's asterisk.conf.
  # This setting applies only to AGI.  The AMI delimiter is auto-detected.
  config.enable_asterisk :argument_delimiter => '|'
  # config.asterisk.enable_ami :host => "127.0.0.1", :username => "admin", :password => "password", :events => true

  # Adhearsion supports two possible speech engines with Asterisk: UniMRCP and Cepstral.
  # Uncomment one of the below if you have it available.
  # config.asterisk.speech_engine = :cepstral
  # config.asterisk.speech_engine = :unimrcp

  # config.enable_drb

  # Streamlined Rails integration! The first argument should be a relative or absolute path to
  # the Rails app folder with which you're integrating. The second argument must be one of the
  # the following: :development, :production, or :test.

  # config.enable_rails :path => 'gui', :env => :development

  # Note: You CANNOT do enable_rails and enable_database at the same time. When you enable Rails,
  # it will automatically connect to same database Rails does and load the Rails app's models.

  # Configure a database to use ActiveRecord-backed models. See ActiveRecord::Base.establish_connection
  # for the appropriate settings here.
  # You can also override the default log destination by supplying an alternate
  # logging object with :logger.  The default is ahn_log.db.
  # config.enable_database :adapter  => 'mysql',
  #                        :username => 'joe',
  #                        :password => '<PASSWORD>',
  #                        :host     => 'db.example.org'

  # Configure an LDAP connection using ActiveLdap.  See ActiveLdap::Base.establish_connect
  # for the appropriate settings here.
  # config.enable_ldap :host => 'ldap.dataspill.org',
  #                    :port => 389,
  #                    :base => 'dc=dataspill,dc=org',
{'fraction_non_alphanumeric': 0.08521906596051998, 'fraction_numerical': 0.004172684962285347, 'mean_word_length': 3.4261363636363638, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 37, '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': '4497777', 'n_tokens_mistral': 1792, 'n_tokens_neox': 1700, 'n_words': 687}