<commit_before>class Portal
    include MiniModel

    field :long_name
    field :hostname
    field :listed?

    alias_method :short_name, :id

    def to_param
        id.downcase
    end

    def servers
        Server.portal(self)
    end

    class << self
        def listed
            select(&:listed?)
        end
    end

    define do
        portal 'DC' do
            long_name "Global"
            hostname "dc.#{ORG::DOMAIN}"
            listed? true
        end

        portal 'DV' do
            long_name "Development"
            hostname "localhost"
            listed? false
        end
    end
end
<commit_msg>Add US, EU, and AU portals<commit_after>class Portal
    include MiniModel

    field :long_name
    field :hostname
    field :listed?

    alias_method :short_name, :id

    def to_param
        id.downcase
    end

    def servers
        Server.portal(self)
    end

    class << self
        def listed
            select(&:listed?)
        end
    end

    define do
        portal 'US' do
            long_name "America"
            hostname "us.#{ORG::DOMAIN}"
            listed? true
        end

        portal 'EU' do
            long_name "Europe"
            hostname "eu.#{ORG::DOMAIN}"
            listed? true
        end

        portal 'AU' do
            long_name "Australia"
            hostname "au.#{ORG::DOMAIN}"
            listed? true
        end

        portal 'DV' do
            long_name "Development"
            hostname "localhost"
            listed? false
        end
    end
end

{'fraction_non_alphanumeric': 0.07083065035415326, 'fraction_numerical': 0.0, 'mean_word_length': 1.3545454545454545, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6470003', 'n_tokens_mistral': 457, 'n_tokens_neox': 444, 'n_words': 129}