<commit_before>module Fog
  module Vcloudng
    module Compute
      class Real

        # Get list of organizations
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Array>:
        #     * 'description'<~String> - Description of organization
        #     * 'links'<~Array> - An array of links to entities in the organization
        #     * 'name'<~String> - Name of organization
        def get_organizations
          request({
            :expects  => 200,
            :headers  => {
              #'Content-Type'  => "application/vnd.vmware.vcloud.orgList+xml"
              'Accept' => 'application/*+xml;version=1.5'
            },
            :method   => 'GET',
            :parser   => Fog::Parsers::Vcloudng::Compute::GetOrganizations.new,
            :override_path => true,
            :path     => '/api/org'
          })
        end

      end
<commit_msg>refactor get_organizations, not overriding the path, require parses in the request class<commit_after>


module Fog
  module Vcloudng
    module Compute
      class Real
        
        require 'fog/vcloudng/parsers/compute/get_organizations'
        
        # Get list of organizations
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Array>:
        #     * 'description'<~String> - Description of organization
        #     * 'links'<~Array> - An array of links to entities in the organization
        #     * 'name'<~String> - Name of organization
        def get_organizations
          request({
            :expects  => 200,
            :headers  => { 'Accept' => 'application/*+xml;version=1.5' },
            :method   => 'GET',
            :parser   => Fog::Parsers::Vcloudng::Compute::GetOrganizations.new,
            :path     => "org"
          })
        end

      end

{'fraction_non_alphanumeric': 0.12073632918245804, 'fraction_numerical': 0.005414185165132647, 'mean_word_length': 1.7096774193548387, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, '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': '6716067', 'n_tokens_mistral': 528, 'n_tokens_neox': 513, 'n_words': 116}