<commit_before>module Fog
  module Identity
    class OpenStack
      class Real
        def create_tenant(attributes)
          request(
            :expects => [200],
            :method  => 'POST',
            :path    => "tenants",
            :body    => Fog::JSON.encode({ 'tenant' => attributes })
          )
        end # def create_tenant
      end # class Real

      class Mock
        def create_tenant(attributes)
          response = Excon::Response.new
          response.status = [200, 204][rand(1)]
          response.body = {
            'tenant' => {
              'id' => "<KEY>",
              'description' => attributes['description'] || 'normal tenant',
              'enabled' => true,
              'name' => attributes['name'] || 'default'
            }
          }
          response
        end # def create_tenant
      end # class Mock
    end # class OpenStack
  end # module Identity
end # module Fog
<commit_msg>fix create_tenant Mock response description and name<commit_after>module Fog
  module Identity
    class OpenStack
      class Real
        def create_tenant(attributes)
          request(
            :expects => [200],
            :method  => 'POST',
            :path    => "tenants",
            :body    => Fog::JSON.encode({ 'tenant' => attributes })
          )
        end # def create_tenant
      end # class Real

      class Mock
        def create_tenant(attributes)
          response = Excon::Response.new
          response.status = [200, 204][rand(1)]
          response.body = {
            'tenant' => {
              'id' => "<KEY>",
              'description' => attributes[:description] || 'normal tenant',
              'enabled' => true,
              'name' => attributes[:name] || 'default'
            }
          }
          response
        end # def create_tenant
      end # class Mock
    end # class OpenStack
  end # module Identity
end # module Fog

{'fraction_non_alphanumeric': 0.11289487312273433, 'fraction_numerical': 0.010357327809425169, 'mean_word_length': 1.5794392523364487, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '6608977', 'n_tokens_mistral': 509, 'n_tokens_neox': 505, 'n_words': 136}