<commit_before>require 'aws-sdk'
require 'contracts'
require_relative 'service'

module StackatoLKG
  module Amazon
    class EC2 < Service
      Contract None => ArrayOf[::Aws::EC2::Types::Vpc]
      def vpcs
        @vpcs ||= vpcs!
      end

      Contract None => ArrayOf[::Aws::EC2::Types::Vpc]
      def vpcs!
        @vpcs = call_api(:describe_vpcs).vpcs
      end

      Contract None => ArrayOf[::Aws::EC2::Types::Subnet]
      def subnets
        @subnets ||= subnets!
      end

      Contract None => ArrayOf[::Aws::EC2::Types::Subnet]
      def subnets!
        @subnets = call_api(:describe_subnets).subnets
      end

      Contract None => ArrayOf[::Aws::EC2::Types::RouteTable]
      def route_tables
        @route_tables ||= route_tables!
      end

      Contract None => ArrayOf[::Aws::EC2::Types::RouteTable]
      def route_tables!
        @route_tables = call_api(:describe_route_tables).route_tables
      end<commit_msg>Add method to find internet gateways<commit_after>require 'aws-sdk'
require 'contracts'
require_relative 'service'

module StackatoLKG
  module Amazon
    class EC2 < Service
      Contract None => ArrayOf[::Aws::EC2::Types::Vpc]
      def vpcs
        @vpcs ||= vpcs!
      end

      Contract None => ArrayOf[::Aws::EC2::Types::Vpc]
      def vpcs!
        @vpcs = call_api(:describe_vpcs).vpcs
      end

      Contract None => ArrayOf[::Aws::EC2::Types::Subnet]
      def subnets
        @subnets ||= subnets!
      end

      Contract None => ArrayOf[::Aws::EC2::Types::Subnet]
      def subnets!
        @subnets = call_api(:describe_subnets).subnets
      end

      Contract None => ArrayOf[::Aws::EC2::Types::RouteTable]
      def route_tables
        @route_tables ||= route_tables!
      end

      Contract None => ArrayOf[::Aws::EC2::Types::RouteTable]
      def route_tables!
        @route_tables = call_api(:describe_route_tables).route_tables
      end

      Contract None => ArrayOf[::Aws::EC2::Types::InternetGateway]
      def internet_gateways
        @internet_gateways ||= internet_gateways!
      end

      Contract None => ArrayOf[::Aws::EC2::Types::InternetGateway]
      def internet_gateways!
        @internet_gateways = call_api(:describe_internet_gateways).internet_gateways
      end
{'fraction_non_alphanumeric': 0.12107821475916924, 'fraction_numerical': 0.007070260715863898, 'mean_word_length': 2.9649737302977233, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '337731', 'n_tokens_mistral': 760, 'n_tokens_neox': 732, 'n_words': 142}