<commit_before>require 'hpcloud/fog_collection'
require 'hpcloud/network_helper'

module HP
  module Cloud
    class Networks < FogCollection
      def initialize
        super("network")
        @items = @connection.network.networks
      end

      def create(item = nil)
        return NetworkHelper.new(@connection, item)
      end

      def external
        ray = @items.keep_if{|v| v.router_external == true}
        create(ray.first)
      end
    end
  end<commit_msg>dxcli-991 noticed this problem when I was working on this ticket<commit_after>require 'hpcloud/fog_collection'
require 'hpcloud/network_helper'

module HP
  module Cloud
    class Networks < FogCollection
      def initialize
        super("network")
        @items = @connection.network.networks
      end

      def create(item = nil)
        return NetworkHelper.new(@connection, item)
      end

      def external
        @items.each{ |n|
          if n.router_external == true
            return create(n)
          end
        }
        return nil
      end
    end
  end
{'fraction_non_alphanumeric': 0.07488151658767772, 'fraction_numerical': 0.002843601895734597, 'mean_word_length': 2.2, 'pattern_counts': {'":': 0, '<': 5, '<?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': '625903', 'n_tokens_mistral': 301, 'n_tokens_neox': 291, 'n_words': 82}