<commit_before>require 'net/http'
require 'net/https'
require 'uri'

module TrySailBlogNotification
  class HTTP

    def initialize(url)
      @url = url
      @uri = URI.parse(URI.encode(@url))
      @response = get_response
    end

    attr_reader :url, :uri, :response

    private

    def get_response
      case @uri.scheme
        when 'http' then
          get_http
        when 'https' then
          get_https
        else
      end
    end

    def get_http
      request = Net::HTTP::Get.new(@uri.path)
      http = Net::HTTP.new(@uri.host, @uri.port)
      http.start do |h|
        h.request(request)
      end
    end

    def get_https
    end<commit_msg>Implement 'get_https' method<commit_after>require 'net/http'
require 'net/https'
require 'uri'

module TrySailBlogNotification
  class HTTP

    def initialize(url)
      @url = url
      @uri = URI.parse(URI.encode(@url))
      @response = get_response
    end

    attr_reader :url, :uri, :response

    private

    def get_response
      case @uri.scheme
        when 'http' then
          get_http
        when 'https' then
          get_https
        else
      end
    end

    def get_http
      request = Net::HTTP::Get.new(@uri.path)
      http = Net::HTTP.new(@uri.host, @uri.port)
      http.start do |h|
        h.request(request)
      end
    end

    def get_https
      request = Net::HTTP::Get.new(@uri.path)
      http = Net::HTTP.new(@uri.host, @uri.port)
      http.use_ssl = true
      http.verify_mode = OpenSSL::SSL::VERIFY_NONE
      http.start do |h|
        h.request(request)
      end
    end
{'fraction_non_alphanumeric': 0.10351317440401506, 'fraction_numerical': 0.0, 'mean_word_length': 2.032319391634981, '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': '2255550', 'n_tokens_mistral': 526, 'n_tokens_neox': 512, 'n_words': 125}