<commit_before>module TermOfServiceHelper
  ASSIGN_TOS = {
    # This set of assignments was created for miq_alerts
    "ExtManagementSystem" => {
      "enterprise"                 => N_("The Enterprise"),
      "ext_management_system"      => N_("Selected Providers"),
      "ext_management_system-tags" => N_("Tagged Providers")
    },
    "EmsCluster" => {
      "ems_cluster"      => N_("Selected Cluster / Deployment Roles"),
      "ems_cluster-tags" => N_("Tagged Cluster / Deployment Roles")
    },
    "Host" => {
      "host"      => N_("Selected Host / Nodes"),
      "host-tags" => N_("Tagged Host / Nodes")
    },
    "Vm" => {
      "ems_folder"         => N_("Selected Folders"),
      "resource_pool"      => N_("Selected Resource Pools"),
      "resource_pool-tags" => N_("Tagged Resource Pools"),
      "vm-tags"            => N_("Tagged VMs and Instances")
    },
    "Storage" => {
      "enterprise"    => N_("The Enterprise"),
      "storage"       => N_("Selected Datastores"),
      "storage-tags"  => N_("Tagged Datastores"),
      "tenant"        => N_("Tenants")
    },
    "MiqServer" => {
      "miq_server" => N_("Selected Servers"),
    },
    "MiddlewareServer"    => {
      "enterprise"        => N_("The Enterprise"),
      "middleware_server" => N_("Selected Middleware Servers")
    },
    "ContainerNode" => {
      "enterprise" => N_("The Enterprise"),
    },
    "ContainerProject" => {
      "enterprise" => N_("The Enterprise"),
    },
    # This set of assignments was created for chargeback_rates
    :chargeback_compute => {
      "enterprise"             => N_("The Enterprise"),
      "ext_management_system"  => N_("Selected Providers"),
      "ems_cluster"            => N_("Selected Cluster / Deployment Roles"),
      "vm-tags"                => N_("Tagged VMs and Instances"),
      "container_image-tags"   => N_("Tagged Container Images"),
      "container_image-labels" => N_("Labeled Container Images"),
      "tenant"                 => N_("Tenants")
    },
    "PhysicalServer" => {
      "physical_server" => N_("Selected Servers")
    }
  }

  ASSIGN_TOS[:chargeback_storage] = ASSIGN_TOS["Storage"]

  ASSIGN_TOS["EmsCluster"].merge!(ASSIGN_TOS["ExtManagementSystem"])
  ASSIGN_TOS["Host"].merge!(ASSIGN_TOS["EmsCluster"])
  ASSIGN_TOS["Vm"].merge!(ASSIGN_TOS["Host"])

  ASSIGN_TOS.freeze
end<commit_msg>Fix rubocop warnings in TermOfServiceHelper<commit_after>module TermOfServiceHelper
  ASSIGN_TOS = {
    # This set of assignments was created for miq_alerts
    "ExtManagementSystem" => {
      "enterprise"                 => N_("The Enterprise"),
      "ext_management_system"      => N_("Selected Providers"),
      "ext_management_system-tags" => N_("Tagged Providers")
    },
    "EmsCluster"          => {
      "ems_cluster"      => N_("Selected Cluster / Deployment Roles"),
      "ems_cluster-tags" => N_("Tagged Cluster / Deployment Roles")
    },
    "Host"                => {
      "host"      => N_("Selected Host / Nodes"),
      "host-tags" => N_("Tagged Host / Nodes")
    },
    "Vm"                  => {
      "ems_folder"         => N_("Selected Folders"),
      "resource_pool"      => N_("Selected Resource Pools"),
      "resource_pool-tags" => N_("Tagged Resource Pools"),
      "vm-tags"            => N_("Tagged VMs and Instances")
    },
    "Storage"             => {
      "enterprise"   => N_("The Enterprise"),
      "storage"      => N_("Selected Datastores"),
      "storage-tags" => N_("Tagged Datastores"),
      "tenant"       => N_("Tenants")
    },
    "MiqServer"           => {
      "miq_server" => N_("Selected Servers"),
    },
    "MiddlewareServer"    => {
      "enterprise"        => N_("The Enterprise"),
      "middleware_server" => N_("Selected Middleware Servers")
    },
    "ContainerNode"       => {
      "enterprise" => N_("The Enterprise"),
    },
    "ContainerProject"    => {
      "enterprise" => N_("The Enterprise"),
    },
    # This set of assignments was created for chargeback_rates
    :chargeback_compute   => {
      "enterprise"             => N_("The Enterprise"),
      "ext_management_system"  => N_("Selected Providers"),
      "ems_cluster"            => N_("Selected Cluster / Deployment Roles"),
      "vm-tags"                => N_("Tagged VMs and Instances"),
      "container_image-tags"   => N_("Tagged Container Images"),
      "container_image-labels" => N_("Labeled Container Images"),
      "tenant"                 => N_("Tenants")
    },
    "PhysicalServer"      => {
      "physical_server" => N_("Selected Servers")
    }
  }

  ASSIGN_TOS[:chargeback_storage] = ASSIGN_TOS["Storage"]

  ASSIGN_TOS["EmsCluster"].merge!(ASSIGN_TOS["ExtManagementSystem"])
  ASSIGN_TOS["Host"].merge!(ASSIGN_TOS["EmsCluster"])
  ASSIGN_TOS["Vm"].merge!(ASSIGN_TOS["Host"])

  ASSIGN_TOS.freeze
end
{'fraction_non_alphanumeric': 0.15960305974777755, 'fraction_numerical': 0.0, 'mean_word_length': 2.5313868613138686, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 81, 'https://': 0, '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': '5814963', 'n_tokens_mistral': 1542, 'n_tokens_neox': 1523, 'n_words': 275}