<commit_before>module Fog
  module Compute
    class OpenStack
      class Real

        # Available filters: name, status, image, flavor, changes_since, reservation_id
        def list_servers_detail(filters = {})
          params = Hash.new
          filters[:all_tenants] ? params['all_tenants'] = 'True' : params = filters

          request(
            :expects  => [200, 203],
            :method   => 'GET',
            :path     => 'servers/detail.json',
            :query   => params
          )
        end

      end

      class Mock

        def list_servers_detail
          response = Excon::Response.new

          servers = self.data[:servers].values
          for server in servers
            case server['status']
            when 'BUILD'
              if Time.now - self.data[:last_modified][:servers][server['id']] > Fog::Mock.delay * 2
                server['status'] = 'ACTIVE'<commit_msg>[openstack|compute] fix method signature for mock list_servers_detail<commit_after>module Fog
  module Compute
    class OpenStack
      class Real

        # Available filters: name, status, image, flavor, changes_since, reservation_id
        def list_servers_detail(filters = {})
          params = Hash.new
          filters[:all_tenants] ? params['all_tenants'] = 'True' : params = filters

          request(
            :expects  => [200, 203],
            :method   => 'GET',
            :path     => 'servers/detail.json',
            :query   => params
          )
        end

      end

      class Mock

        def list_servers_detail(filters = {})
          response = Excon::Response.new

          servers = self.data[:servers].values
          for server in servers
            case server['status']
            when 'BUILD'
              if Time.now - self.data[:last_modified][:servers][server['id']] > Fog::Mock.delay * 2
                server['status'] = 'ACTIVE'
{'fraction_non_alphanumeric': 0.10830704521556257, 'fraction_numerical': 0.007360672975814932, 'mean_word_length': 1.8360655737704918, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '6437015', 'n_tokens_mistral': 524, 'n_tokens_neox': 510, 'n_words': 125}