<commit_before>require 'thor'
require 'fog'

require 'vcloud/walker/vcloud_session'
require 'vcloud/walker/fog_interface'
require 'vcloud/walker/resource'

module Vcloud
  module Walker

    def self.walk(resource_to_walk)
      valid_options = ['catalogs', 'vdcs', 'networks',
                        'edgegateways', 'organization']
      if valid_options.include? resource_to_walk
        case resource_to_walk
          when 'catalogs'
            Vcloud::Walker::Resource::Organization.catalogs
          when 'vdcs'
            Vcloud::Walker::Resource::Organization.vdcs
          when 'networks'
            Vcloud::Walker::Resource::Organization.networks
          when 'edgegateways'
            Vcloud::Walker::Resource::Organization.edgegateways
          when 'organization'
            Vcloud::Walker::Resource::Organization.organization
        end
      else
         puts "Possible options are '#{valid_options.join("','")}'."
      end
    end

  end
end<commit_msg>Replace case statement<commit_after>require 'thor'
require 'fog'

require 'vcloud/walker/vcloud_session'
require 'vcloud/walker/fog_interface'
require 'vcloud/walker/resource'

module Vcloud
  module Walker

    def self.walk(resource_to_walk)
      valid_options = ['catalogs', 'vdcs', 'networks',
                        'edgegateways', 'organization']
      if valid_options.include? resource_to_walk
        Vcloud::Walker::Resource::Organization.send(resource_to_walk)
      else
         puts "Possible options are '#{valid_options.join("','")}'."
      end
    end

  end
end
{'fraction_non_alphanumeric': 0.1073482428115016, 'fraction_numerical': 0.0, 'mean_word_length': 2.9346733668341707, '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': '1508100', 'n_tokens_mistral': 471, 'n_tokens_neox': 446, 'n_words': 90}