<commit_before>module Tankard
  module Api
    module Request
      # Helper for GET requests
      #
      # @author <NAME>
      module Get

      private

        def request_data_with_nil_on_http_error(request_object, uri, options)
          request_data(request_object, uri, options)
        rescue Tankard::Error::HttpError
          nil
        end

        # break up the request methods into smaller pieces
        def request_data(request_object, uri, options)
          get_request(request_object, uri, options)['data']
        end

        def get_request(request_object, uri, options)
          request_object.get(uri, options)
        end
      end
    end
  end
end<commit_msg>remove request_data method from Tankard::Api::Request::Get because it was not really used anywhere.  Moved the data from that method to request_data_with_nil_on_http_error<commit_after>module Tankard
  module Api
    module Request
      # Helper for GET requests
      #
      # @author <NAME>
      module Get

      private

        def request_data_with_nil_on_http_error(request_object, uri, options)
          get_request(request_object, uri, options)['data']
        rescue Tankard::Error::HttpError
          nil
        end

        def get_request(request_object, uri, options)
          request_object.get(uri, options)
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.06020558002936858, 'fraction_numerical': 0.0, 'mean_word_length': 2.441919191919192, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1982226', 'n_tokens_mistral': 387, 'n_tokens_neox': 378, 'n_words': 108}