<commit_before>class Chef
  class Recipe
    # preparing the Egress URL
    class Egress
      require 'uri'
      attr_accessor :url

      def initialize(node)
        @url = node['al_agents']['agent']['egress_url']
      end

      def host
        parsed_url.host || 'vaporator.alertlogic.com'
      end
      alias sensor_host host

      def port
        parsed_url.port || 443
      end
      alias sensor_port port

      private

      def schemed_url
        schemed = url
        schemed = "http://#{url}" unless url =~ %r{^http:\/\/}i || url =~ %r{^https:\/\/}i
        schemed
      end

      def parsed_url
        URI.parse(schemed_url)
      end
    end
  end
end<commit_msg>disable Alias cop to ignore alias_method<commit_after>class Chef
  class Recipe
    # preparing the Egress URL
    class Egress
      require 'uri'
      attr_accessor :url

      def initialize(node)
        @url = node['al_agents']['agent']['egress_url']
      end

      # rubocop:disable Alias
      def host
        parsed_url.host || 'vaporator.alertlogic.com'
      end
      alias_method :sensor_host, :host
      # rubocop:enable Alias

      # rubocop:disable Alias
      def port
        parsed_url.port || 443
      end
      alias_method :sensor_port, :port
      # rubocop:enable Alias

      private

      def schemed_url
        schemed = url
        schemed = "http://#{url}" unless url =~ %r{^http:\/\/}i || url =~ %r{^https:\/\/}i
        schemed
      end

      def parsed_url
        URI.parse(schemed_url)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.09941897998708844, 'fraction_numerical': 0.003873466752743706, 'mean_word_length': 1.8917910447761195, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4469561', 'n_tokens_mistral': 513, 'n_tokens_neox': 494, 'n_words': 124}