<commit_before>module Fog
  module Compute
    class Vsphere
      class Real
        def list_clusters(filters = {})
          datacenter_name = filters[:datacenter] if filters.key? :datacenter
          if datacenter_name.nil?
            list_datacenters.map { |dc| list_clusters(datacenter: dc[:name]) }.flatten
          else
            raw_clusters(datacenter_name).map do |cluster|
              if cluster.instance_of? RbVmomi::VIM::ClusterComputeResource
                cluster_attributes(cluster, datacenter_name)
              end
            end.compact<commit_msg>Fixes #148 - Add unclustered ESXI hosts back to cluster selection.<commit_after>module Fog
  module Compute
    class Vsphere
      class Real
        def list_clusters(filters = {})
          datacenter_name = filters[:datacenter] if filters.key? :datacenter
          if datacenter_name.nil?
            list_datacenters.map { |dc| list_clusters(datacenter: dc[:name]) }.flatten
          else
            raw_clusters(datacenter_name).map do |cluster|
              cluster_attributes(cluster, datacenter_name)
            end.compact
{'fraction_non_alphanumeric': 0.07616487455197132, 'fraction_numerical': 0.002688172043010753, 'mean_word_length': 2.447530864197531, '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': '1363818', 'n_tokens_mistral': 329, 'n_tokens_neox': 321, 'n_words': 70}