<commit_before>class MiqEventDefinitionDecorator < Draper::Decorator
  delegate_all

  def fonticon
    convert = {
      "after_assigned_company_tag"                  => "fa fa-tag",
      "after_unassign_company_tag"                  => "fa fa-tag",
      "assigned_company_tag_parent_ems_cluster"     => "fa fa-tag",
      "assigned_company_tag_parent_host"            => "fa fa-tag",
      "assigned_company_tag_parent_resource_pool"   => "fa fa-tag",
      "assigned_company_tag_parent_storage"         => "fa fa-tag",
      "assigned_company_tag"                        => "fa fa-tag",
      "before_assign_company_tag"                   => "fa fa-tag",
      "before_unassign_company_tag"                 => "fa fa-tag",
      "containergroup_compliance_check"             => "fa fa-cubes",
      "containergroup_compliance_failed"            => "fa fa-cubes",
      "containergroup_compliance_passed"            => "fa fa-cubes",
      "containergroup_deadlineexceeded"             => "fa fa-cubes",
      "containergroup_failedscheduling"             => "fa fa-cubes",
      "containergroup_failedsync"                   => "fa fa-cubes",
      "containergroup_failedvalidation"             => "fa fa-cubes",
      "containergroup_hostportconflict"             => "fa fa-cubes",
      "containergroup_insufficientfreecpu"          => "fa fa-cubes",
      "containergroup_insufficientfreememory"       => "fa fa-cubes",
      "containergroup_nodeselectormismatching"      => "fa fa-cubes",
      "containergroup_outofdisk"                    => "fa fa-cubes",
      "containergroup_scheduled"                    => "fa fa-cubes",
      "containerimage_compliance_check"             => "pficon pficon-image",
      "containerimage_compliance_failed"            => "pficon pficon-image",
      "containerimage_compliance_passed"            => "pficon pficon-image",
      "containerimage_created"                      => "pficon pficon-image",
      "containerimage_scan_complete"                => "pficon pficon-image",
      "containernode_compliance_check"              => "pficon pficon-container-node",
      "containernode_compliance_failed"             => "pficon pficon-container-node",
      "containernode_compliance_passed"             => "pficon pficon-container-node",
      "containernode_failedmount"                   => "pficon pficon-container-node",
      "containernode_invaliddiskcapacity"           => "pficon pficon-container-node",
      "containernode_nodenotready"                  => "pficon pficon-container-node",
      "containernode_nodenotschedulable"            => "pficon pficon-container-node",
      "containernode_nodeready"                     => "pficon pficon-container-node",
      "containernode_nodeschedulable"               => "pficon pficon-container-node",
      "containernode_rebooted"                      => "pficon pficon-container-node",
      "containerreplicator_compliance_check"        => "pficon pficon-replicator",
      "containerreplicator_compliance_failed"       => "pficon pficon-replicator",
      "containerreplicator_compliance_passed"       => "pficon pficon-replicator",
      "containerreplicator_failedcreate"            => "pficon pficon-replicator",
      "containerreplicator_successfulcreate"        => "pficon pficon-replicator",
      "ems_auth_changed"                            => "pficon pficon-server",
      "ems_auth_error"                              => "pficon pficon-server",
      "ems_auth_incomplete"                         => "pficon pficon-server",
      "ems_auth_invalid"                            => "pficon pficon-server",
      "ems_auth_missing"                            => "pficon pficon-server",
      "ems_auth_unreachable"                        => "pficon pficon-server",
      "ems_auth_valid"                              => "pficon pficon-server",
      "evm_server_app_disk_high_usage"              => "pficon pficon-server",
      "evm_server_db_disk_high_usage"               => "pficon pficon-server",
      "evm_server_is_master"                        => "pficon pficon-server",
      "evm_server_log_disk_high_usage"              => "pficon pficon-server",
      "evm_server_memory_exceeded"                  => "pficon pficon-server",
      "evm_server_not_responding"                   => "pficon pficon-server",
      "evm_server_start"                            => "pficon pficon-server",
      "evm_server_stop"                             => "pficon pficon-server",
      "evm_server_system_disk_high_usage"           => "pficon pficon-server",
      "evm_worker_exit_file"                        => "pficon pficon-user",
      "evm_worker_killed"                           => "pficon pficon-user",
      "evm_worker_memory_exceeded"                  => "pficon pficon-user",
      "evm_worker_not_responding"                   => "pficon pficon-user",
      "evm_worker_start"                            => "pficon pficon-user",
      "evm_worker_stop"                             => "pficon pficon-user",
      "evm_worker_uptime_exceeded"                  => "pficon pficon-user",
      "host_add_to_cluster"                         => "pficon pficon-screen",
      "host_auth_changed"                           => "pficon pficon-screen",
      "host_auth_error"                             => "pficon pficon-screen",<commit_msg>added raising new 'db_failover_executed' event from FailoverMonitor (transferred from ManageIQ/manageiq@c4fee1f2c778b79db0aa949611da5e2017003b45)<commit_after>class MiqEventDefinitionDecorator < Draper::Decorator
  delegate_all

  def fonticon
    convert = {
      "after_assigned_company_tag"                  => "fa fa-tag",
      "after_unassign_company_tag"                  => "fa fa-tag",
      "assigned_company_tag_parent_ems_cluster"     => "fa fa-tag",
      "assigned_company_tag_parent_host"            => "fa fa-tag",
      "assigned_company_tag_parent_resource_pool"   => "fa fa-tag",
      "assigned_company_tag_parent_storage"         => "fa fa-tag",
      "assigned_company_tag"                        => "fa fa-tag",
      "before_assign_company_tag"                   => "fa fa-tag",
      "before_unassign_company_tag"                 => "fa fa-tag",
      "containergroup_compliance_check"             => "fa fa-cubes",
      "containergroup_compliance_failed"            => "fa fa-cubes",
      "containergroup_compliance_passed"            => "fa fa-cubes",
      "containergroup_deadlineexceeded"             => "fa fa-cubes",
      "containergroup_failedscheduling"             => "fa fa-cubes",
      "containergroup_failedsync"                   => "fa fa-cubes",
      "containergroup_failedvalidation"             => "fa fa-cubes",
      "containergroup_hostportconflict"             => "fa fa-cubes",
      "containergroup_insufficientfreecpu"          => "fa fa-cubes",
      "containergroup_insufficientfreememory"       => "fa fa-cubes",
      "containergroup_nodeselectormismatching"      => "fa fa-cubes",
      "containergroup_outofdisk"                    => "fa fa-cubes",
      "containergroup_scheduled"                    => "fa fa-cubes",
      "containerimage_compliance_check"             => "pficon pficon-image",
      "containerimage_compliance_failed"            => "pficon pficon-image",
      "containerimage_compliance_passed"            => "pficon pficon-image",
      "containerimage_created"                      => "pficon pficon-image",
      "containerimage_scan_complete"                => "pficon pficon-image",
      "containernode_compliance_check"              => "pficon pficon-container-node",
      "containernode_compliance_failed"             => "pficon pficon-container-node",
      "containernode_compliance_passed"             => "pficon pficon-container-node",
      "containernode_failedmount"                   => "pficon pficon-container-node",
      "containernode_invaliddiskcapacity"           => "pficon pficon-container-node",
      "containernode_nodenotready"                  => "pficon pficon-container-node",
      "containernode_nodenotschedulable"            => "pficon pficon-container-node",
      "containernode_nodeready"                     => "pficon pficon-container-node",
      "containernode_nodeschedulable"               => "pficon pficon-container-node",
      "containernode_rebooted"                      => "pficon pficon-container-node",
      "containerreplicator_compliance_check"        => "pficon pficon-replicator",
      "containerreplicator_compliance_failed"       => "pficon pficon-replicator",
      "containerreplicator_compliance_passed"       => "pficon pficon-replicator",
      "containerreplicator_failedcreate"            => "pficon pficon-replicator",
      "containerreplicator_successfulcreate"        => "pficon pficon-replicator",
      "db_failover_executed"                        => "fa fa-database",
      "ems_auth_changed"                            => "pficon pficon-server",
      "ems_auth_error"                              => "pficon pficon-server",
      "ems_auth_incomplete"                         => "pficon pficon-server",
      "ems_auth_invalid"                            => "pficon pficon-server",
      "ems_auth_missing"                            => "pficon pficon-server",
      "ems_auth_unreachable"                        => "pficon pficon-server",
      "ems_auth_valid"                              => "pficon pficon-server",
      "evm_server_app_disk_high_usage"              => "pficon pficon-server",
      "evm_server_db_disk_high_usage"               => "pficon pficon-server",
      "evm_server_is_master"                        => "pficon pficon-server",
      "evm_server_log_disk_high_usage"              => "pficon pficon-server",
      "evm_server_memory_exceeded"                  => "pficon pficon-server",
      "evm_server_not_responding"                   => "pficon pficon-server",
      "evm_server_start"                            => "pficon pficon-server",
      "evm_server_stop"                             => "pficon pficon-server",
      "evm_server_system_disk_high_usage"           => "pficon pficon-server",
      "evm_worker_exit_file"                        => "pficon pficon-user",
      "evm_worker_killed"                           => "pficon pficon-user",
      "evm_worker_memory_exceeded"                  => "pficon pficon-user",
      "evm_worker_not_responding"                   => "pficon pficon-user",
      "evm_worker_start"                            => "pficon pficon-user",
      "evm_worker_stop"                             => "pficon pficon-user",
      "evm_worker_uptime_exceeded"                  => "pficon pficon-user",
      "host_add_to_cluster"                         => "pficon pficon-screen",
      "host_auth_changed"                           => "pficon pficon-screen",
      "host_auth_error"                             => "pficon pficon-screen",
{'fraction_non_alphanumeric': 0.10408853928473429, 'fraction_numerical': 0.00228665508094759, 'mean_word_length': 1.8615545668673121, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 140, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6027382', 'n_tokens_mistral': 3340, 'n_tokens_neox': 3190, 'n_words': 433}