<commit_before>module MWS
  class Connection
    attr_reader :host, :aws_access_key_id, :aws_secret_access_key, :seller_id

    def initialize(options={})
      @host = options[:host] ||"mws.amazonservices.com"
      @aws_access_key_id = options[:aws_access_key_id]
      @aws_secret_access_key = options[:aws_secret_access_key]
      @seller_id = options[:seller_id]
    end

    # Map APIS
    def feeds
      MWS::API::Feeds.new(self)
    end

    def fulfillment_inbound_shipment
      MWS::API::FulfillmentInboundShipment.new(self)
    end

    def fulfillment_inventory
      MWS::API::FulfillmentInventory.new(self)
    end

    def fulfillment_outbound_shipment
      MWS::API::FulfillmentOutboundShipment.new(self)
    end

    def orders
      MWS::API::Orders.new(self)
    end

    def products
      MWS::API::Products.new(self)
    end

    def recommendations
      MWS::API::Recommendations.new(self)
    end

    def reports
      MWS::API::Reports.new(self)
    end

    def sellers
      MWS::API::Sellers.new(self)
    end
  end
end<commit_msg>Cache apis with instance variables<commit_after>module MWS
  class Connection
    attr_reader :host, :aws_access_key_id, :aws_secret_access_key, :seller_id

    def initialize(options={})
      @host = options[:host] ||"mws.amazonservices.com"
      @aws_access_key_id = options[:aws_access_key_id]
      @aws_secret_access_key = options[:aws_secret_access_key]
      @seller_id = options[:seller_id]
    end

    # Map APIS
    def feeds
      @fees ||= MWS::API::Feeds.new(self)
    end

    def fulfillment_inbound_shipment
      @fis ||= MWS::API::FulfillmentInboundShipment.new(self)
    end

    def fulfillment_inventory
      @fi ||= MWS::API::FulfillmentInventory.new(self)
    end

    def fulfillment_outbound_shipment
      @fos ||= MWS::API::FulfillmentOutboundShipment.new(self)
    end

    def orders
      @orders ||= MWS::API::Orders.new(self)
    end

    def products
      @products ||= MWS::API::Products.new(self)
    end

    def recommendations
      @recommendations ||= MWS::API::Recommendations.new(self)
    end

    def reports
      @reports ||= MWS::API::Reports.new(self)
    end

    def sellers
      @sellers ||= MWS::API::Sellers.new(self)
    end
  end
end
{'fraction_non_alphanumeric': 0.10894596988485385, 'fraction_numerical': 0.0, 'mean_word_length': 3.222429906542056, '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': '1844534', 'n_tokens_mistral': 812, 'n_tokens_neox': 783, 'n_words': 134}