<commit_before>#!/usr/bin/env ruby
# encoding: utf-8

require 'gorg_service'

# For default values see : https://github.com/Zooip/gorg_service
GorgService.configure do |c|
  # application name for display usage
  c.application_name= GoogleDirectoryDaemon.config["application_name"]
  # application id used to find message from this producer
  c.application_id=GoogleDirectoryDaemon.config["application_id"]

  ## RabbitMQ configuration
  # 
  ### Authentification
  # If your RabbitMQ server is password protected put it here
  #
  c.rabbitmq_user=GoogleDirectoryDaemon.config['rabbitmq_user']
  c.rabbitmq_password=GoogleDirectoryDaemon.config['rabbitmq_password']
  #  
  ### Network configuration :
  #
  c.rabbitmq_host=GoogleDirectoryDaemon.config['rabbitmq_host']
  c.rabbitmq_port=GoogleDirectoryDaemon.config['rabbitmq_port']
  c.rabbitmq_vhost=GoogleDirectoryDaemon.config['rabbitmq_vhost']

  c.rabbitmq_queue_name=GoogleDirectoryDaemon.config['rabbitmq_queue_name']
  #
  #
  # c.rabbitmq_queue_name = c.application_name
  c.rabbitmq_exchange_name=GoogleDirectoryDaemon.config['rabbitmq_exchange_name']
  #
  # time before trying again on softfail in milliseconds (temporary error)
  c.rabbitmq_deferred_time=GoogleDirectoryDaemon.config['rabbitmq_deferred_time']
  # 
  # maximum number of try before discard a message
  c.rabbitmq_deferred_time=GoogleDirectoryDaemon.config['rabbitmq_max_attempts']
  #
  # The routing key used when sending a message to the central log system (Hardfail or Warning)
  # Central logging is disable if nil
  c.rabbitmq_deferred_time=GoogleDirectoryDaemon.config['rlog_routing_key']
  #
  # Routing hash
  #  map routing_key of received message with MessageHandler 
  #  exemple:
  # c.message_handler_map={
  #   "some.routing.key" => MyMessageHandler,
  #   "Another.routing.key" => OtherMessageHandler,
  #   "third.routing.key" => MyMessageHandler,
  # }

  c.logger=GoogleDirectoryDaemon.logger

  c.message_handler_map={
    'request.gapps.create' => CreateUserMessageHandler,
    'request.gapps.update' => UpdateUserMessageHandler,
    'request.gapps.delete' => DeleteUserMessageHandler,
  }
end<commit_msg>Fix typo in gorg_service initializer<commit_after>#!/usr/bin/env ruby
# encoding: utf-8

require 'gorg_service'

# For default values see : https://github.com/Zooip/gorg_service
GorgService.configure do |c|
  # application name for display usage
  c.application_name= GoogleDirectoryDaemon.config["application_name"]
  # application id used to find message from this producer
  c.application_id=GoogleDirectoryDaemon.config["application_id"]

  ## RabbitMQ configuration
  # 
  ### Authentification
  # If your RabbitMQ server is password protected put it here
  #
  c.rabbitmq_user=GoogleDirectoryDaemon.config['rabbitmq_user']
  c.rabbitmq_password=GoogleDirectoryDaemon.config['rabbitmq_password']
  #  
  ### Network configuration :
  #
  c.rabbitmq_host=GoogleDirectoryDaemon.config['rabbitmq_host']
  c.rabbitmq_port=GoogleDirectoryDaemon.config['rabbitmq_port']
  c.rabbitmq_vhost=GoogleDirectoryDaemon.config['rabbitmq_vhost']

  c.rabbitmq_queue_name=GoogleDirectoryDaemon.config['rabbitmq_queue_name']
  #
  #
  # c.rabbitmq_queue_name = c.application_name
  c.rabbitmq_exchange_name=GoogleDirectoryDaemon.config['rabbitmq_exchange_name']
  #
  # time before trying again on softfail in milliseconds (temporary error)
  c.rabbitmq_deferred_time=GoogleDirectoryDaemon.config['rabbitmq_deferred_time']
  # 
  # maximum number of try before discard a message
  c.rabbitmq_max_attempts=GoogleDirectoryDaemon.config['rabbitmq_max_attempts']
  #
  # The routing key used when sending a message to the central log system (Hardfail or Warning)
  # Central logging is disable if nil
  c.log_routing_key=GoogleDirectoryDaemon.config['log_routing_key']
  #
  # Routing hash
  #  map routing_key of received message with MessageHandler 
  #  exemple:
  # c.message_handler_map={
  #   "some.routing.key" => MyMessageHandler,
  #   "Another.routing.key" => OtherMessageHandler,
  #   "third.routing.key" => MyMessageHandler,
  # }

  c.logger=GoogleDirectoryDaemon.logger

  c.message_handler_map={
    'request.gapps.create' => CreateUserMessageHandler,
    'request.gapps.update' => UpdateUserMessageHandler,
    'request.gapps.delete' => DeleteUserMessageHandler,
  }
end
{'fraction_non_alphanumeric': 0.09426987060998152, 'fraction_numerical': 0.0004621072088724584, 'mean_word_length': 5.394387001477105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 2, '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': '4210067', 'n_tokens_mistral': 1415, 'n_tokens_neox': 1345, 'n_words': 251}