<commit_before>module BeakerHostGenerator
  module Roles

    ROLES = {
      'a' => 'agent',
      'u' => 'ca',
      'l' => 'classifier',
      'c' => 'dashboard',
      'd' => 'database',
      'f' => 'frictionless',
      'm' => 'master',
    }

    ROLE_CONFIG = {
      'compile_master' => {
        'main' => {
          'dns_alt_names' => 'puppet',
          'environmentpath' => '/etc/puppetlabs/puppet/environments',
        }
      }
    }

    module_function

    def get_role_config(role)
      ROLE_CONFIG[role] || {}
    end
  end
end
<commit_msg>(PE-26509) Add support for pe_compiler role<commit_after>module BeakerHostGenerator
  module Roles

    ROLES = {
      'a' => 'agent',
      'u' => 'ca',
      'l' => 'classifier',
      'c' => 'dashboard',
      'd' => 'database',
      'f' => 'frictionless',
      'm' => 'master',
    }

    CM_CONFIG = { 'main' => {
                    'dns_alt_names' => 'puppet',
                    'environmentpath' => '/etc/puppetlabs/puppet/environments',
                  }
                }

    ROLE_CONFIG = {
      'compile_master' => CM_CONFIG,
      'pe_compiler' => CM_CONFIG,
    }

    module_function

    def get_role_config(role)
      ROLE_CONFIG[role] || {}
    end
  end
end

{'fraction_non_alphanumeric': 0.1616, 'fraction_numerical': 0.004, 'mean_word_length': 1.8431818181818183, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 26, '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': '5755053', 'n_tokens_mistral': 450, 'n_tokens_neox': 431, 'n_words': 75}